/* 메인 전용 시즌 스타일. html의 속성을 제거하면 기본 화면으로 즉시 복귀합니다. */
.halloween-hero-art,.halloween-pet-art,.halloween-online-art{display:none!important}
.halloween-online-label{display:none}
html[data-halloween-active="2026"] body[data-page-kind="hub"]{
  --real-ink:#35205b;
  background-color:#30204f!important;
  background-image:radial-gradient(ellipse at 50% 0%,#71539a 0%,#513472 46%,#30204f 100%)!important;
  color:#f8edff!important;
}
html[data-halloween-active="2026"] body[data-page-kind="hub"]::before{
  background:radial-gradient(circle at 88% 12%,rgba(255,208,130,.22),transparent 14rem),radial-gradient(circle at 8% 60%,rgba(158,98,231,.20),transparent 26rem),radial-gradient(#ead5ff88 1px,transparent 1px);
  background-size:auto,auto,78px 84px;
}
html[data-halloween-active="2026"] body[data-page-kind="hub"]::after{background:linear-gradient(0deg,#110a28c9,transparent)}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-topbar{
  border-color:#b481e2!important;background:linear-gradient(125deg,#392067f2,#5b2c86e8)!important;
  color:#fff0cf!important;box-shadow:0 12px 32px #10042599!important;
}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-brand-mini,
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-topbar b{color:#fff4d7}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-topbar button,
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-topbar select{border-color:#b88ce0;background:#f9eefe;color:#392163}
html[data-halloween-active="2026"] .real-hero{background:#281657;box-shadow:0 10px 0 #a66cdb,0 20px 40px #12052499}
html[data-halloween-active="2026"] .real-hero__art:not(.halloween-hero-art){display:none}
html[data-halloween-active="2026"] .halloween-hero-art{display:block!important}
html[data-halloween-active="2026"] .real-hero-action{background:linear-gradient(145deg,#a55ce0,#562985);border-color:#ffe1aa;box-shadow:0 4px 10px #180b42a8}
html[data-halloween-active="2026"] .halloween-pet-invite{
  display:flex!important;align-items:center;justify-content:space-between;gap:15px;
  margin:19px 0;padding:17px 22px;border:2px solid #e7b975;border-radius:22px;
  background:linear-gradient(105deg,#482577,#703888 54%,#b36437);box-shadow:0 7px 0 #2b164b,0 17px 25px #1308278c;
  color:#fff4dc;text-decoration:none;
}
.halloween-pet-invite__icon{font-size:34px;line-height:1}
.halloween-pet-invite__copy{min-width:0;flex:1}
.halloween-pet-invite__copy strong{display:block;font-size:clamp(18px,2.8vw,25px);font-weight:1000;line-height:1.25;word-break:keep-all}
.halloween-pet-invite__copy small{display:block;margin-top:5px;color:#ffe7bd;font-size:13px;font-weight:700;line-height:1.4;word-break:keep-all}
.halloween-pet-invite__go{flex:none;padding:10px 14px;border-radius:99px;background:#fff0d3;color:#492273;font-size:13px;font-weight:900;white-space:nowrap}
html[data-halloween-active="2026"] .real-tools,
html[data-halloween-active="2026"] .real-recommend{
  border:2px solid #b58ddf;background:linear-gradient(165deg,#faf2ff,#f0e6ff);
  box-shadow:0 9px 0 #2a164b,0 19px 29px #10052587;color:#3b2264;
}
html[data-halloween-active="2026"] .real-tools-icon{border-color:#c6a2e7;background:linear-gradient(145deg,#ffecc5,#f8d2a7);box-shadow:0 8px 0 #d4acd9}
html[data-halloween-active="2026"] .real-tools-copy strong,
html[data-halloween-active="2026"] .real-recommend-title strong{color:#4b2477}
html[data-halloween-active="2026"] .real-tools-banner{border-color:#d5a9ef;box-shadow:0 7px 0 #a47aca}
html[data-halloween-active="2026"] .real-tool-link{border-color:#d9bee9;background:linear-gradient(#fffaf4,#f8efff);box-shadow:0 5px 0 #dbc4ea;color:#422569}
html[data-halloween-active="2026"] .real-category-card{border-color:#d2a8e9;box-shadow:0 8px 0 #39215e,0 18px 28px #0e052987}
html[data-halloween-active="2026"] .real-category-card--pet{aspect-ratio:1/1;background:#281657}
html[data-halloween-active="2026"] .real-category-card--pet img:not(.halloween-pet-art){display:none}
html[data-halloween-active="2026"] .real-category-card--pet .halloween-pet-art{display:block!important;width:100%;height:100%;aspect-ratio:1/1;object-fit:contain}
html[data-halloween-active="2026"] .real-category-card--online{display:flex;align-items:stretch}
html[data-halloween-active="2026"] .real-category-card--online{aspect-ratio:1/1}
html[data-halloween-active="2026"] .real-category-card--online img:not(.halloween-online-art){display:none}
html[data-halloween-active="2026"] .real-category-card--online .halloween-online-art{display:block!important;width:100%;height:100%;aspect-ratio:1/1;object-fit:contain}
html[data-halloween-active="2026"] .real-category-card--online .halloween-online-label{display:none;position:absolute;top:0;left:0;right:0;align-items:flex-start;flex-direction:column;gap:2px;padding:clamp(8px,3%,19px) clamp(10px,5%,24px) 14px;background:linear-gradient(180deg,#211447eb 0%,#211447a8 75%,transparent);color:#fff7dd!important;text-align:left;text-shadow:0 2px 3px #160d36}
.halloween-online-label strong{font-size:clamp(16px,3vw,29px);font-weight:1000;line-height:1.14}
.halloween-online-label small{font-size:clamp(10px,1.6vw,15px);font-weight:800;line-height:1.2;color:#ffe2a6}
html[data-halloween-active="2026"] .real-recommend-title small{color:#6b4d86}
/* 밝은 카드에는 진한 글씨를 명시해 시즌 배경의 흰 글씨가 스며들지 않게 합니다. */
html[data-halloween-active="2026"] #hubScreen .real-tools,
html[data-halloween-active="2026"] #hubScreen .real-recommend,
html[data-halloween-active="2026"] #hubScreen .real-library-tabs,
html[data-halloween-active="2026"] #hubScreen .game-tab-panel,
html[data-halloween-active="2026"] #hubScreen .random-recommend-section{color:#f5f8ff!important}
html[data-halloween-active="2026"] #hubScreen .real-tools-copy small,
html[data-halloween-active="2026"] #hubScreen .real-recommend-title small{color:#513b65!important}
html[data-halloween-active="2026"] #hubScreen .game-tab-panel .game-tile,
html[data-halloween-active="2026"] #hubScreen .random-recommend-section .game-tile{color:#2c2048!important}
html[data-halloween-active="2026"] #hubScreen .game-tab-panel .game-tile small,
html[data-halloween-active="2026"] #hubScreen .random-recommend-section .game-tile small{color:#55456e!important}
html[data-halloween-active="2026"] .real-game-card{border-color:#bca1d8;box-shadow:0 6px 0 #9a7cc0}
html[data-halloween-active="2026"] .real-game-copy,
html[data-halloween-active="2026"] .real-game-card:nth-child(3) .real-game-copy{background:linear-gradient(120deg,#49246f,#291a55)}
html[data-halloween-active="2026"] .real-library-tabs,
html[data-halloween-active="2026"] #hubScreen .game-tab-panel{
  border-color:#ab85d2!important;background:#f9f2ffed!important;color:#412564;
  box-shadow:0 8px 0 #3d225d,0 16px 25px #11062d80!important;
}
html[data-halloween-active="2026"] #hubScreen .game-tile{border-color:#c6aadd!important;box-shadow:0 5px 0 #c1a7dc!important}
html[data-halloween-active="2026"] #hubScreen .real-bottom-banner{border-color:#f8b45f;background:linear-gradient(115deg,#512c80,#783b83 65%,#a15341);box-shadow:0 7px 0 #28153f}
html[data-halloween-active="2026"] #hubScreen .real-bottom-banner>img{display:none}
.halloween-bottom-party{display:none}
html[data-halloween-active="2026"] #hubScreen .halloween-bottom-party{display:flex;align-items:center;justify-content:center;gap:18px;min-height:116px;padding:10px 22px;color:#fff4dc;text-align:center}
.halloween-bottom-party img{flex:0 0 95px;width:95px;height:95px;border:2px solid #ffc267;border-radius:20px;object-fit:cover;box-shadow:0 4px 12px #1b073d88}
.halloween-bottom-party strong{display:block;font-size:clamp(17px,2.4vw,29px);font-weight:1000;line-height:1.25}
.halloween-bottom-party small{display:block;margin-top:5px;font-size:clamp(11px,1.5vw,16px);font-weight:800;color:#ffe0aa}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .home-info-footer{
  border-color:#d4b0e8;background:linear-gradient(145deg,#f9f0ff,#f5eafa);box-shadow:0 6px 0 #39215e,0 15px 25px #1006259e;color:#402363;
}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .home-info-footer__heading-icon{background:linear-gradient(140deg,#7d43b0,#d7853d)}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .home-info-footer__mark{color:#7c3db0}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .real-live-footer{border-color:#855aac;background:#322052ed;color:#ffe8c8}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .real-live-footer nav a{background:#4d316d;color:#fff0d6;border-color:#8d60ac}
@media(max-width:640px){
  html[data-halloween-active="2026"] #hubScreen .halloween-bottom-party{min-height:100px;gap:10px;padding:9px 11px}
  .halloween-bottom-party img{flex-basis:72px;width:72px;height:72px}
  .halloween-pet-invite{flex-wrap:wrap;padding:12px 14px!important;gap:8px!important}
  .halloween-pet-invite__icon{font-size:26px}
  .halloween-pet-invite__copy{flex-basis:calc(100% - 42px)}
  .halloween-pet-invite__copy small{font-size:11px}
  .halloween-pet-invite__go{margin-left:34px;padding:7px 11px;font-size:12px}
  .halloween-online-label strong{font-size:clamp(15px,4.3vw,22px)}
  .halloween-online-label small{font-size:clamp(10px,2.7vw,13px)}
}
/* 떠다니는 귀신과 사탕 보상 창은 메인에만 그리며 종료 즉시 숨깁니다. */
.halloween-ghost,.halloween-candy-overlay{display:none}
:is(html[data-halloween-active="2026"],body[data-home-celebration]) .halloween-ghost{display:flex;position:fixed;z-index:90010;align-items:center;justify-content:center;flex-direction:column;width:120px;height:145px;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;filter:drop-shadow(0 4px 16px #ad5cf4b5);animation:halloweenGhostReveal .72s cubic-bezier(.2,1.3,.35,1) both,halloweenGhostFloat 2.2s ease-in-out .72s infinite alternate;touch-action:manipulation}
.halloween-ghost img{display:block;width:120px;height:122px;object-fit:contain;pointer-events:none}
.halloween-ghost span{display:block;max-width:120px;margin-top:-2px;padding:5px 8px;border:2px solid #ffcb75;border-radius:999px;background:#351755f2;color:#fff5db;font-size:12px;font-weight:1000;line-height:1.15;white-space:nowrap;box-shadow:0 3px 9px #180a3480;pointer-events:none}
.halloween-scare-burst{position:fixed;inset:0;z-index:90009;pointer-events:none;background:radial-gradient(circle 110px at var(--ghost-x) var(--ghost-y),#ffcd816b,#7642b629 42%,transparent 78%);animation:halloweenScareBurst .8s ease-out both}
.halloween-ghost:focus-visible,.halloween-candy-card button:focus-visible{outline:3px solid #ffcf6a;outline-offset:3px}
@keyframes halloweenGhostReveal{0%{opacity:0;transform:scale(.17) rotate(-16deg)}58%{opacity:1;transform:scale(1.35) rotate(7deg)}78%{transform:scale(.93) rotate(-3deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes halloweenGhostFloat{to{transform:translateY(-11px) rotate(4deg)}}
@keyframes halloweenScareBurst{0%{opacity:0}20%{opacity:.85}100%{opacity:0}}
:is(html[data-halloween-active="2026"],body[data-home-celebration]) .halloween-candy-overlay:not([hidden]){display:flex;position:fixed;inset:0;z-index:90020;align-items:center;justify-content:center;padding:14px;background:#160a2dd9;backdrop-filter:blur(5px)}
.halloween-candy-card{position:relative;width:min(410px,100%);max-height:calc(100dvh - 28px);overflow:auto;padding:20px 20px 24px;border:3px solid #ffc568;border-radius:24px;background:linear-gradient(155deg,#fff8ec,#f4e6ff);box-shadow:0 18px 60px #100821b3;color:#372255;text-align:center}
.halloween-candy-card>img{display:block;width:min(245px,65vw);height:min(245px,65vw);margin:0 auto 10px;object-fit:contain}
.halloween-candy-card h2{margin:5px 0 9px;font-size:clamp(22px,6vw,29px);line-height:1.2;color:#442167}
.halloween-candy-card p{margin:0 0 18px;line-height:1.5;word-break:keep-all}
.halloween-candy-card button{min-height:48px;border:0;border-radius:13px;cursor:pointer;font:inherit;font-weight:900}
.halloween-candy-card .candy-open{padding:10px 20px;background:linear-gradient(125deg,#f29231,#e65d58);color:white;box-shadow:0 5px 0 #a1444b}
.halloween-candy-card .candy-close{position:absolute;top:9px;right:10px;width:40px;height:40px;background:#e8d7f0;color:#42265d}
.halloween-scratch{margin-top:12px}
.halloween-scratch-guide{margin:0 0 10px!important;font-size:15px;font-weight:900;color:#4d2872}
.halloween-scratch-ticket{position:relative;display:grid;place-items:center;width:min(320px,100%);min-height:128px;margin:0 auto 12px;overflow:hidden;border:2px solid #d09d54;border-radius:17px;background:radial-gradient(circle at 50% 30%,#fff1d2,#f8dce9 70%,#ead7fb);box-shadow:0 5px 13px #42225b25}
.halloween-scratch-ticket .halloween-candy-result{margin:0!important;padding:12px;line-height:1.35;word-break:keep-all}
.halloween-scratch-cover{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.halloween-candy-card .halloween-scratch-skip{min-height:38px;padding:7px 12px;background:#eee0f4;color:#4b286b;font-size:13px}
.halloween-scratch[hidden],.halloween-scratch-guide[hidden],.halloween-scratch-cover[hidden],.halloween-candy-card .halloween-scratch-skip[hidden]{display:none}
.halloween-candy-result{font-weight:1000;font-size:20px;color:#5b2b86;white-space:pre-line}
.halloween-candy-result[hidden],.halloween-candy-card .candy-open[hidden]{display:none}
@media(prefers-reduced-motion:reduce){:is(html[data-halloween-active="2026"],body[data-home-celebration]) .halloween-ghost,.halloween-scare-burst{animation:none}.halloween-scare-burst{display:none}}
@media(prefers-reduced-motion:reduce){html[data-halloween-active="2026"] .halloween-pet-invite{transition:none}}

/* 어두운 시즌 헤더의 글씨와 설치 버튼을 각각 충분한 대비로 고정합니다. */
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-brand-mini>b{color:#fff4d7!important;text-shadow:0 2px 3px #160a36!important}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-topbar .real-install-quick{background:#4e277b!important;border-color:#f5bc6a!important;color:#fff4dc!important;box-shadow:0 3px 0 #251248!important}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-topbar .real-install-quick b{color:#fff4dc!important}
html[data-halloween-active="2026"] body[data-page-kind="hub"] #hubScreen .arcade-brand-mini svg{color:#392063!important}
html[data-halloween-active="2026"] #hubScreen .real-category-card--online .halloween-online-art{object-fit:contain!important}


/* 축하일에는 동일한 보상 카드에 리본 상자와 행사 색을 적용합니다. */
body[data-home-celebration] .halloween-ghost .celebration-gift-art {
  display:block;width:100px;height:100px;object-fit:contain;
}
body[data-home-celebration] .halloween-ghost { filter:drop-shadow(0 4px 9px #bc708254); }
body[data-home-celebration] .halloween-candy-card { background:linear-gradient(155deg,#fffaf1,#ffe7ed);border-color:#f6c58c; }
body[data-home-celebration] .halloween-candy-card>img {width:100%;height:clamp(85px,20vh,165px);}
body[data-home-celebration="anniversary"] .halloween-candy-card { background:linear-gradient(150deg,#fff9e5,#f7eacc); }
body[data-home-celebration] .halloween-candy-card {border:2px solid #e5b78a;box-shadow:inset 0 0 0 5px #fff9,0 18px 60px #451c40a6;background:radial-gradient(ellipse at 50% 10%,#fff6df,transparent 54%),linear-gradient(150deg,#fff2ed,#fbd9e4);}
