@font-face {
  font-family: Lilita One;
  src: url('/static/lilita-one.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Lilita One", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  --paper: #fff8eb;
  --ink: #271b38;
  --muted: #62526a;
  --purple: #512474;
  --outline: #e4d3b9;
  --season-color: #203d35;
  --season-image: url('/static/hero.jpg');
  --frame: min(1200px, calc(100% - 72px));
  color: var(--ink);
  background: #f9edd8;
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 290px, #fff8eb 0, #f8ead2 850px); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid #9248b4; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); letter-spacing: -.025em; }
time { font-variant-numeric: tabular-nums; }
.frame { width: var(--frame); margin-inline: auto; }
main { padding-bottom: 52px; }
.top { background: #28163c; color: #fff6ea; border-bottom: 4px solid #e1a650; }
.bar, .bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bar { min-height: 77px; }
.identity { display: inline-flex; align-items: center; flex: none; gap: 11px; font: 400 1.85rem/.85 var(--display); }
.identity img { width: 48px; height: 48px; border-radius: 12px; }
.identity small { display: block; margin-bottom: 5px; font: 800 .59rem/1.1 system-ui, sans-serif; letter-spacing: .18em; color: #ffd884; }
.bar nav, .bottom nav { display: flex; align-items: center; gap: clamp(11px, 2.4vw, 30px); flex-wrap: wrap; font-size: .9rem; font-weight: 750; }
.bar nav a:not(.profile-link):hover, .bottom nav a:hover { color: #ffd884; }
.locale, .quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid #d5bdde; border-radius: 13px; background: #fff7ed; color: #43225b; font-weight: 800; }
.locale:hover, .quiet:hover { background: #f6e8fe; }
.locale, .header-signin { color: #fff4e8; background: #49305d; border-color: #76558b; }
.locale:hover, .header-signin:hover { color: #2e1744; }
.profile-link { display: inline-flex; align-items: center; gap: 7px; }
.profile-link img { border-radius: 11px; object-fit: cover; background: #63497a; }
.profile-link span { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

[data-season='autumn'] { --season-image: url('/static/world-autumn.webp'); --season-color: #4a2d37; }
[data-season='christmas'] { --season-image: url('/static/world-christmas.webp'); --season-color: #472539; }
[data-season='easter'] { --season-image: url('/static/world-easter.webp'); --season-color: #465339; }
[data-season='halloween'] { --season-image: url('/static/world-halloween.webp'); --season-color: #41244f; }
[data-season='spring'] { --season-image: url('/static/world-spring.webp'); --season-color: #283f35; }
[data-season='summer'] { --season-image: url('/static/world-summer.webp'); --season-color: #214750; }
[data-season='winter'] { --season-image: url('/static/world-winter.webp'); --season-color: #27395b; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: clamp(390px, 40vw, 532px); margin-top: 30px; border: 1px solid #a4774d;
  border-radius: 32px; background: var(--season-color); color: #fff8e9;
  box-shadow: 0 6px 0 #bb925d, 0 20px 46px #69422438;
}
.hero-background {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(90deg, #1d142e 1%, #211731f5 29%, #221a3680 57%, #25223c00 79%),
    linear-gradient(0deg, #21163274, transparent 37%), var(--season-image) center 57%/cover;
}
.hero-copy { z-index: 1; position: relative; padding: 48px 0 47px clamp(32px, 5.4vw, 78px); max-width: 58%; }
.kicker { font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.67rem, 1.15vw, .8rem); line-height: 1.3; }
.hero .kicker { color: #ffdc8c; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: .87; letter-spacing: -.04em; margin: .19em 0 .26em; text-shadow: 0 4px 0 #251431, 0 6px 18px #1a1025b3; }
.hero h1 em { color: #ffcf69; font-style: normal; }
.hero p { max-width: 34ch; color: #fff1db; font-size: clamp(.96rem, 1.45vw, 1.19rem); margin-bottom: 21px; }
.primary {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 47px; padding: 10px 19px; border: 1px solid #ffedaa; border-radius: 13px; color: #3a241c;
  background: linear-gradient(#ffe49b, #ffc654 62%, #efac3d); box-shadow: inset 0 1px 0 #fff8d8, 0 4px 0 #955420;
  font-weight: 850; line-height: 1.2; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.primary:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.09); }
.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff8d8, 0 1px 0 #955420; }
.availability { display: block; margin-top: 15px; color: #f3dfc5; font-weight: 650; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 46%; pointer-events: none; }
.hero-art img { position: absolute; height: auto; object-fit: contain; }
.hero-mascot { width: min(64%, 375px); right: 16%; bottom: 21%; filter: drop-shadow(0 11px 14px #191128aa); }
.hero-chest { width: min(48%, 277px); right: 8%; bottom: 1%; filter: drop-shadow(0 17px 14px #171126a3); }
.float-coin { filter: drop-shadow(0 9px 10px #1c1328ad); animation: float 4.5s ease-in-out infinite; }
.coin-left { width: min(16%, 92px); left: 3%; bottom: 16%; transform: rotate(-15deg); }
.coin-right { width: min(19%, 111px); right: 6%; top: 16%; transform: rotate(12deg); animation-delay: -2s; }

.benefits { display: grid; grid-template-columns: 1.2fr 1fr; gap: 21px; margin-top: 33px; }
.gift-panel, .bonus-panel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(106px, 15vw, 205px); align-items: center; min-height: 185px; gap: 8px; border: 1px solid #8951a4; border-radius: 23px; padding: 22px 22px 22px 27px; overflow: hidden; }
.gift-panel { color: #fff8e8; background: radial-gradient(circle at 82% 45%, #9056bd, #4d266d 64%, #372052); box-shadow: 0 4px 0 #3c2154; }
.gift-panel img, .bonus-panel img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 10px #32173063); }
.benefits .opening { animation: chest-open .64s ease-out; }
.bonus-panel { background: radial-gradient(ellipse at 88% 18%, #ffe1a0, #ffedc5 64%, #fff2d6); color: #533622; border-color: #dfab61; box-shadow: 0 4px 0 #d9ad70; }
.benefit-copy h2 { font-size: clamp(1.75rem, 3.15vw, 3rem); }
.benefit-copy h2 span { font-size: .72em; }
.benefit-copy p { margin-top: 7px; font-size: .94rem; }
.benefit-copy small, .benefit-copy a { display: inline-block; margin-top: 9px; font-size: .84rem; font-weight: 750; }
.benefit-copy a:hover { text-decoration: underline; }
.benefit-copy .primary { margin-top: 13px; min-height: 42px; }

.offers-section { margin-top: 52px; scroll-margin-top: 23px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading p { color: var(--purple); font-weight: 800; }
.campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 19px; }
.campaign-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: 256px; align-items: end;
  border-radius: 22px; border: 1px solid #7d5a92; color: #fff6eb; background: radial-gradient(ellipse at 80% 34%, #645285, var(--season-color) 85%);
  box-shadow: 0 5px 0 #c6a889;
}
.campaign-card img { position: absolute; z-index: -1; pointer-events: none; object-fit: cover; inset: 0; width: 100%; height: 100%; }
.campaign-card.feature-art img { inset: 12px 14px auto auto; width: 48%; height: 67%; object-fit: contain; }
.campaign-card.feature-art:only-child img { height: 96%; width: 37%; inset: 2% 5% auto auto; }
.campaign-card.feature-art:only-child .campaign-copy { max-width: 62%; }
.campaign-card.landscape img { object-position: 28% center; }
.campaign-card::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(0deg, #221532 7%, #261937ee 27%, #22153220 91%); }
.campaign-copy { padding: 32px 22px 19px; }
.campaign-copy .kicker { color: #ffdc92; }
.campaign-copy h3 { font-size: clamp(1.9rem, 3.55vw, 2.75rem); margin: 5px 0 7px; }
.campaign-copy p { margin-top: 6px; font-size: .91rem; }
.campaign-copy .campaign-date { color: #ffddaa; font-size: .83rem; }
.campaign-copy time { display: inline-block; margin-top: 9px; border-radius: 7px; padding: 3px 8px; background: #382953; color: #fff6ea; font-size: .87rem; font-weight: 800; }
.campaign-copy .primary { display: flex; width: fit-content; margin-top: 12px; }

.products { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.pack-card {
  --art-base: #f7c4a4; --art-light: #ffe2c9;
  min-width: 0; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--outline);
  padding: 7px 7px 12px; text-align: center; box-shadow: 0 4px 0 #ddc7aa;
}
.tone-mint { --art-base: #9cdbc0; --art-light: #e1f3ce; }
.tone-violet { --art-base: #c9afe9; --art-light: #efe0fa; }
.tone-sky { --art-base: #a7cfed; --art-light: #e1f5ff; }
.tone-amber { --art-base: #f7c27a; --art-light: #ffedb7; }
.tone-royal { --art-base: #a778db; --art-light: #e8c5f6; border-color: #a577ba; }
.pack-art {
  position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1.18;
  border-radius: 14px 14px 23px 23px;
  background: radial-gradient(ellipse at 50% 34%, var(--art-light), var(--art-base) 85%);
}
.pack-art::before { content: ""; position: absolute; width: 62%; height: 16%; top: 76%; border-radius: 50%; background: #613a6d35; filter: blur(7px); }
.pack-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, #fff7 48%, transparent 62%); transform: translateX(-120%); transition: transform .58s ease; }
.pack-card:hover .pack-art::after, .pack-card:focus-within .pack-art::after { transform: translateX(120%); }
.pack-art img { position: relative; max-height: 88%; height: auto; width: 86%; object-fit: contain; filter: drop-shadow(0 9px 6px #643c7655); }
.pack-card h3 { margin-top: 13px; font-size: clamp(1.48rem, 2.55vw, 2.35rem); }
.pack-card h3 span { display: block; font-size: .63em; color: var(--purple); }
.pack-card h3 + p { min-height: 2.8em; margin: 8px 2px 6px; color: #5f4b65; font-size: .77rem; line-height: 1.25; }
.pack-price { display: flex; width: calc(100% - 10px); margin: 0 5px; min-height: 44px; justify-content: center; align-items: center; font-weight: 850; white-space: nowrap; }
.preview-price { color: #53315f; background: #f1e4f6; border-radius: 12px; }

.account, .receipt, .mobile-install { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px; margin-top: 25px; border: 1px solid var(--outline); border-radius: 20px; background: var(--paper); }
.account > img { width: 74px; aspect-ratio: 1; height: auto; object-fit: contain; }
.account h1, .receipt h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-block: 4px; }
.account p, .receipt p, .mobile-install p, .history p, .history li small { color: var(--muted); }
.balances, .receipt-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-left: auto; }
.balances > div { display: grid; grid-template-columns: 24px auto; align-items: center; column-gap: 6px; padding: 6px 12px; border-radius: 11px; background: #f1e5f6; }
.balances img { width: 23px; }
.balances small { grid-column: 2; }
.history { margin-top: 36px; }
.history h2, .mobile-install h2 { font-size: clamp(1.4rem, 2.9vw, 2.15rem); }
.history ul { padding: 0; list-style: none; border: 1px solid var(--outline); border-radius: 14px; background: var(--paper); }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 15px; }
.history li + li { border-top: 1px solid var(--outline); }
.history li small { display: block; }
.mobile-install { justify-content: space-between; margin-top: 43px; }
.mobile-install h2 { margin-bottom: 5px; }
.footer { background: #28163c; color: #fff7ea; border-top: 4px solid #d9a95e; }
.bottom { padding-block: 26px max(26px, env(safe-area-inset-bottom)); }
.bottom nav { font-size: .83rem; gap: 10px 17px; }
.withdrawal-link {
  display: inline-flex; align-items: center; flex: none; min-height: 36px; padding: 5px 10px;
  border: 1px solid #d6b278; border-radius: 8px; background: #422951; color: #fff3da;
  font-size: .83rem; font-weight: 750;
}
.withdrawal-link:hover { background: #543762; text-decoration: underline; }
.message, .loading, .error { margin: 11px 0; }
.message a, dialog p a { text-decoration: underline; text-underline-offset: .15em; }
.loading { display: flex; align-items: center; gap: 9px; grid-column: 1/-1; }
.loading::before { content: ""; display: block; width: 18px; height: 18px; border: 3px solid #e3cbf0; border-top-color: #723599; border-radius: 50%; animation: spin .8s linear infinite; }
.error { color: #7b2337; padding: 12px; border: 1px solid #d98695; border-radius: 11px; background: #ffe7eb; }
dialog { width: min(455px,calc(100% - 26px)); max-height: 90dvh; padding: 24px; border: 2px solid #9a6caf; border-radius: 21px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 70px #1c0c2d77; }
dialog::backdrop { background: #211431ad; }
dialog h2 { font-size: 2.15rem; margin-bottom: 14px; padding-right: 35px; }
dialog p { margin-bottom: 12px; color: var(--muted); }
dialog .dismiss { position: absolute; top: 9px; right: 9px; width: 43px; height: 43px; border: 1px solid var(--outline); background: #f5e8fb; color: var(--purple); border-radius: 11px; font-size: 1.4rem; }
.pair-code { display: block; background: #f0e2f7; border-radius: 12px; margin: 12px 0; padding: 13px; color: var(--purple); font-weight: 850; letter-spacing: .14em; text-align: center; }
.pair-account { font-size: 1.2rem; font-weight: 800; }
dialog dl div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
dialog dd { margin: 0; color: var(--purple); font-weight: 800; }

.withdrawal { max-width: 46rem; margin-inline: auto; padding: 24px; }
.withdrawal form, .withdrawal label { display: grid; gap: .6rem; }
.withdrawal form { gap: 1rem; }
.withdrawal input { padding: .7rem; font: inherit; }
.withdrawal button { justify-self: start; }
.withdrawal pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page main { flex: 1; }
.legal-back { background: #49305d; border-color: #76558b; color: #fff4e8; }
.legal-back:hover { color: #2e1744; }
.legal-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 155px; margin: 28px 0 24px; padding: 18px clamp(20px, 5vw, 64px);
  color: #fff8e9; border: 1px solid #a4774d; border-radius: 25px; box-shadow: 0 4px 0 #bb925d;
  background: linear-gradient(90deg, #211731 12%, #211731e8 53%, #21173136), url('/static/hero.jpg') center 53%/cover;
}
.legal-hero h1 { font-size: clamp(2.35rem, 5.2vw, 4.65rem); letter-spacing: -.025em; }
.legal-hero img { width: clamp(58px, 12vw, 108px); height: auto; flex: none; filter: drop-shadow(0 6px 6px #21173199); }
.legal-layout { display: grid; width: min(100%, 53rem); margin-inline: auto; }
.legal-layout-with-outline { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; gap: 20px; width: min(100%, 70rem); }
.legal-document, .legal-outline { border: 1px solid var(--outline); border-radius: 20px; background: var(--paper); }
.legal-document { min-width: 0; padding: clamp(19px, 4.1vw, 48px); overflow-wrap: anywhere; }
.legal-section { scroll-margin-top: 16px; }
.legal-section + .legal-section { margin-top: 27px; padding-top: 26px; border-top: 1px solid var(--outline); }
.legal-document h2 { font-size: clamp(1.55rem, 3.2vw, 2.45rem); margin-bottom: 14px; color: var(--purple); }
.legal-document p { line-height: 1.7; }
.legal-document p + p { margin-top: 13px; }
.legal-document a, .legal-outline a { color: var(--purple); text-decoration: underline; text-underline-offset: .15em; }
.legal-outline { padding: 18px 22px; }
.legal-outline h2 { font-size: 1.55rem; }
.legal-outline ul { display: grid; gap: 7px; padding-left: 18px; margin: 11px 0 0; }
.legal-outline li { font-size: .92rem; }
@media (max-width: 760px) {
  .legal-layout-with-outline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .legal-hero { min-height: 126px; margin-top: 18px; }
}
@media (max-width: 400px) {
  .legal-hero h1 { font-size: 2rem; }
  .legal-hero img { width: 48px; }
}
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes chest-open { 0% { transform: rotate(-5deg) scale(.85); } 55% { transform: rotate(4deg) scale(1.13); } }

@media (max-width: 1020px) {
  .products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .pack-art { aspect-ratio: 1.6; }
  .pack-art img { max-width: 63%; }
  .pack-card h3 span { display: inline; }
}
@media (max-width: 760px) {
  :root { --frame: calc(100% - 36px); }
  .bar { min-height: 67px; gap: 10px; }
  .bar nav { gap: 10px; }
  .top nav > a:not(.profile-link) { display: none; }
  .profile-link span { display: none; }
  .hero { border-radius: 25px; margin-top: 18px; }
  .hero h1 { font-size: clamp(2.6rem, 8.4vw, 4.6rem); }
  .hero-copy { max-width: 67%; padding-left: 26px; }
  .hero-mascot { bottom: 25%; width: 72%; right: 14%; }
  .hero-chest { bottom: 11%; width: 53%; right: 4%; }
  .benefits { margin-top: 24px; gap: 12px; }
  .gift-panel, .bonus-panel { padding: 17px; grid-template-columns: minmax(0, 1fr) clamp(66px, 13vw, 105px); min-height: 155px; }
  .offers-section { margin-top: 39px; }
  .bottom { align-items: flex-start; flex-direction: column; }
  .balances, .receipt-actions { margin-left: 0; }
}
@media (max-width: 510px) {
  :root { --frame: calc(100% - 28px); }
  .identity { font-size: 1.61rem; gap: 8px; }
  .identity img { width: 39px; height: 39px; }
  .identity small { font-size: .50rem; letter-spacing: .12em; }
  .hero { min-height: 525px; align-items: start; }
  .hero-copy { max-width: 100%; padding: 26px 20px; }
  .hero h1 { font-size: clamp(2.5rem, 10.25vw, 4rem); margin-block: .22em; }
  .hero p { font-size: .92rem; max-width: 29ch; margin-bottom: 16px; }
  .hero-art { inset: 36% 0 0 0; }
  .hero-mascot { width: min(57%, 246px); right: 24%; bottom: 15%; }
  .hero-chest { width: min(43%, 184px); right: 10%; bottom: 0; }
  .coin-left { left: 10%; bottom: 17%; }
  .coin-right { top: 25%; }
  .hero-background { background: linear-gradient(#211731f7 1%, #211731ec 39%, #2117312b 73%, #21173148), var(--season-image) center/cover; }
  .benefits { grid-template-columns: 1fr; gap: 15px; }
  .gift-panel, .bonus-panel { grid-template-columns: minmax(0,1fr) min(33%, 120px); min-height: 131px; padding-block: 13px; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .pack-art { aspect-ratio: 1.25; }
  .pack-art img { max-width: 78%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .campaign-card { min-height: 243px; }
  .campaign-card.feature-art:only-child img { width: 42%; height: 65%; inset: 3% 3% auto auto; }
  .campaign-card.feature-art:only-child .campaign-copy { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
