:root {
  color-scheme: light;
  --paper: #f6f3ee;
  --white: #fffdf9;
  --ink: #1e1b28;
  --muted: #625d6c;
  --line: #e2dcd4;
  --orange: #ffd36b;
  --accent: #4f3598;
  --hero: #1a172c;
  --radius: 20px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); line-height: 1.5; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #7954d5; outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; flex: none; }
main, footer { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.topbar {
  position: sticky; top: 0; z-index: 10; min-height: 72px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  padding: 10px max(32px, calc((100% - 1160px) / 2));
  background: #f6f3eef5; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.brand, .desktop-nav, .top-actions { display: flex; align-items: center; }
.brand { gap: 11px; text-decoration: none; line-height: 1.15; font-size: 19px; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.desktop-nav { gap: clamp(15px, 3vw, 36px); font-size: 14px; font-weight: 650; }
.desktop-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--accent); text-decoration: underline; }
.top-actions { gap: 10px; min-width: 0; }
.top-actions .square { flex: none; }
.button, .square {
  display: inline-flex; gap: 8px; justify-content: center; align-items: center;
  min-height: 44px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 760;
  text-decoration: none; text-align: center; line-height: 1.25; transition: background .18s, box-shadow .18s;
}
.button:hover:not(:disabled) { box-shadow: inset 0 0 0 100px #ffffff1d; }
.button.blue, .button.green { background: var(--ink); }
.button.yellow { background: var(--orange); color: #241a09; }
.button.hero-secondary, .square { color: inherit; background: transparent; border-color: currentColor; }
.square { position: relative; padding: 9px 11px; border-color: var(--line); }
#cart-count { position: absolute; right: -6px; top: -6px; min-width: 19px; padding-inline: 3px; border-radius: 99px; background: var(--orange); color: var(--ink); font-size: 11px; line-height: 19px; }
.full-width { width: 100%; }

.season-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  min-height: 420px; margin-top: 24px; border-radius: 25px; overflow: hidden;
  color: #fffdf5; background: var(--hero);
}
.hero-copy { padding: clamp(30px, 5vw, 64px); }
.eyebrow { color: var(--orange); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.hero-copy h1 { margin: 12px 0 18px; font-size: clamp(43px, 6vw, 80px); font-weight: 880; letter-spacing: -.075em; line-height: .98; }
.hero-copy em { font-style: normal; color: var(--orange); }
.hero-description { max-width: 340px; color: #ddd6ee; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { align-self: stretch; min-width: 0; position: relative; isolation: isolate; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--hero),transparent 26%); pointer-events: none; }
.offers-section, .store-grid, .promo-section { margin-top: 38px; }
.section-line, .panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-line h2, .panel-title h2, .promo-copy h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.055em; line-height: 1.1; }
.store-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.store-section { min-width: 0; }
.gem-grid, .pass-grid, .offer-cards { display: grid; gap: 12px; }
.gem-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pass-grid { grid-template-columns: minmax(0,1fr); }
.offer-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr)); }
.product-card {
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; min-width: 0; text-align: left; position: relative; display: flex; flex-direction: column;
  padding: 14px; gap: 11px; transition: border-color .18s, box-shadow .18s;
}
.product-card:hover { border-color: #937bc5; box-shadow: 0 6px 18px #30244512; }
.card-head { font-size: 15px; line-height: 1.25; font-weight: 800; }
.card-art { position: relative; display: grid; place-items: center; border-radius: 12px; min-height: 104px; background: #e9f1e6; }
.product-image { display: block; width: 100%; max-height: 105px; object-fit: contain; padding: 6px; }
.gem-count { display: none; }
.card-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
.price { white-space: nowrap; font-size: 17px; font-weight: 850; }
.card-caption, .card-badge, .pass-description { color: var(--muted); font-size: 12px; }
.card-caption { color: var(--accent); font-weight: 650; }
.product-card:hover .card-caption, .product-card:focus-visible .card-caption { text-decoration: underline; text-underline-offset: 2px; }
.card-badge { width: fit-content; background: #eee8fa; border-radius: 7px; padding: 2px 7px; color: #513382; font-weight: 700; }
.pass-grid .card-art { background: #fff0cb; }
.pass-grid .plus .card-art { background: #ede2ff; }
.pass-grid .product-card { display: grid; grid-template-columns: 1fr 90px; gap: 5px 12px; }
.pass-grid .card-art { grid-column: 2; grid-row: 1 / span 3; min-height: 85px; }
.pass-grid .card-head, .pass-grid .pass-description, .pass-grid .card-footer { grid-column: 1; }
.offer-cards .product-card { background: #f0eafa; padding: 18px 20px; display: grid; grid-template-columns: 1fr minmax(100px,24%); gap: 7px 16px; }
.offer-cards .card-art { grid-column: 2; grid-row: 1 / span 3; background: #e4daf6; min-height: 90px; }
.offer-cards .card-head, .offer-cards .card-badge, .offer-cards .card-footer { grid-column: 1; }
.offer-cards .card-footer { justify-content: flex-start; }
.offer-cards .card-badge { display: none; }
.section-note, .status-banner, .commerce-notice, .fine-print, .muted, #promo-feedback, #checkout-feedback, #login-feedback { color: var(--muted); font-size: 13px; }
.section-note { margin-top: 12px; }
.section-note svg { vertical-align: middle; margin-right: 4px; width: 16px; height: 16px; color: #326655; }
.status-banner, .commerce-notice { margin-top: 14px; background: #fff1ce; padding: 12px 16px; border-radius: 11px; }
.loading-card { min-height: 110px; border-radius: var(--radius); background: #ebe5dd; }

.promo-panel { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 20px; border-radius: var(--radius); background: #ebe5f7; padding: 24px; }
.promo-copy p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.input-row { display: flex; gap: 8px; }
.input-row input { min-width: 0; flex: 1; }
#promo-feedback { margin-top: 5px; }
footer { margin-top: 38px; padding: 22px 0 30px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 17px; font-weight: 850; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: 13px; margin: 10px 0 19px; }
footer > p { color: var(--muted); font-size: 13px; }
.client-download { margin-top: 13px; }
.client-download .button { min-height: 38px; }
.bottom-nav { display: none; }

dialog {
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; width: min(470px,calc(100% - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: 0 24px 75px #17132355; overflow: auto;
}
dialog::backdrop { background: #17132396; }
.wide-dialog { width: min(620px,calc(100% - 24px)); }
.dialog-heading { background: var(--white); position: sticky; top: 0; z-index: 2; padding: 18px 58px 16px 22px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 21px; letter-spacing: -.035em; }
.close-dialog { position: absolute; right: 15px; top: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; }
.dialog-body { padding: 20px 22px; }
.dialog-body label:not(.checkout-agreement) { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.dialog-body input:not([type=checkbox]) { width: 100%; margin-bottom: 12px; }
input:not([type=checkbox]) { border: 1px solid #cfc6d4; border-radius: 9px; padding: 10px 12px; background: #fff; color: var(--ink); min-height: 44px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.login-emblem img, .profile img { display: block; border-radius: 13px; width: 52px; height: 52px; object-fit: cover; }
.dialog-lead, .fine-print { margin: 8px 0 13px; }
.dialog-body a { color: var(--accent); text-underline-offset: 2px; }
.detail-art { max-height: 130px; padding: 10px; background: #efeafa; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.detail-art img { width: auto; max-height: 109px; }
.reward-list, .account-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.reward-list span { display: inline-block; padding: 5px 9px; border-radius: 7px; background: var(--paper); font-size: 13px; }
.cart-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item-art { flex: 0 0 55px; border-radius: 8px; background: #edf1e7; }
.cart-item-art img { width: 55px; height: 52px; padding: 3px; vertical-align: middle; }
.cart-item-text { min-width: 0; flex: 1; }
.cart-item-text small, .order-card small { display: block; color: var(--muted); }
.quantity { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.quantity button, .remove-item, .order-card button { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; min-height: 31px; padding: 3px 8px; }
.empty-cart { display: grid; gap: 12px; justify-items: center; padding: 18px 0; text-align: center; }
.empty-icon { color: var(--accent); font-size: 26px; }
.account-check { margin: 14px 0; padding: 11px 13px; background: #eee8fa; color: #342754; border-radius: 9px; font-size: 13px; }
.total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 820; }
.total-row strong { font-size: 24px; }
.checkout-agreement { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; margin: 14px 0; color: var(--ink); }
#checkout-feedback, #login-feedback { margin-top: 8px; }
.profile { display: flex; align-items: center; gap: 10px; }
.text-button { background: transparent; border: 0; color: var(--accent); text-decoration: underline; padding: 8px; }
.orders-heading { margin: 16px 0 8px; font-size: 16px; }
.order-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-top: 8px; overflow-wrap: anywhere; }
.order-card-top { display: flex; justify-content: space-between; gap: 9px; font-weight: 750; }
.order-status { display: block; font-size: 12px; color: var(--accent); margin: 5px 0; }
.order-card button { margin: 2px 6px 0 0; }
.toast { position: fixed; z-index: 30; bottom: 22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 28px); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 6px 22px #17132335; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 820px) {
  main, footer { width: calc(100% - 34px); }
  .topbar { padding-inline: 17px; min-height: 62px; }
  .desktop-nav { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4,1fr); position: fixed; inset: auto 0 0; z-index: 9; background: #fffdf9f8; border-top: 1px solid var(--line); padding: 5px 4px max(5px,env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; place-items: center; gap: 2px; padding: 3px; text-decoration: none; font-weight: 750; font-size: 10px; color: var(--muted); }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(53px + env(safe-area-inset-bottom)); }
  .toast { bottom: 63px; }
  .season-hero { min-height: 340px; }
  .store-grid { grid-template-columns: 1fr; gap: 28px; }
  .pass-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 550px) {
  .brand { font-size: 17px; }
  .brand img { width: 35px; height: 35px; }
  .topbar { gap: 9px; }
  .top-actions { gap: 6px; }
  .top-actions .login-trigger { display: block; min-width: 0; max-width: 110px; padding-inline: 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .login-trigger svg { display: none; }
  .season-hero { grid-template-columns: minmax(0,1fr); margin-top: 13px; border-radius: 17px; }
  .hero-copy { padding: 25px 23px; }
  .hero-copy h1 { font-size: clamp(39px,11vw,55px); }
  .hero-description { font-size: 15px; }
  .hero-actions { margin-top: 17px; gap: 7px; }
  .hero-actions .button { padding-inline: 10px; font-size: 12px; }
  .hero-art { aspect-ratio: 1.4; }
  .hero-art img { object-position: 50% 67%; }
  .hero-art::after { background: linear-gradient(180deg,var(--hero),transparent 22%); }
  .offers-section, .store-grid, .promo-section { margin-top: 27px; }
  .gem-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .pass-grid, .promo-panel { grid-template-columns: minmax(0,1fr); }
  .product-card { padding: 10px; gap: 8px; border-radius: 13px; }
  .card-art { min-height: 83px; }
  .product-image { max-height: 87px; }
  .promo-panel { padding: 17px; gap: 13px; }
  .dialog-heading, .dialog-body { padding-left: 15px; padding-right: 15px; }
  .dialog-heading { padding-right: 53px; }
  .quantity button, .remove-item { min-width: 36px; min-height: 38px; }
  .cart-item-art { flex-basis: 45px; }
  .cart-item-art img { width: 45px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
}
