:root { --bg: #cdbdf2; --ink: #141414; --font: "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); transition: background-color .8s ease; }
body[data-mode="pack"] { background: #121214; color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }

/* giant outlined flavour number behind the bars */
.num { position: fixed; right: 4vw; top: 50%; transform: translateY(-58%); z-index: 0; font-family: var(--display); font-size: 34vh; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(20,20,20,.22); transition: transform .8s ease, opacity .6s; pointer-events: none; }
body[data-mode="focus"] .num { transform: translate(-30vw, -58%) scale(1.45); -webkit-text-stroke-color: rgba(20,20,20,.3); }
body[data-mode="pack"] .num { opacity: 0; }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 24px; }
.logo { font-family: var(--display); font-size: 22px; letter-spacing: .02em; color: inherit; text-decoration: none; }
.pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); backdrop-filter: blur(10px); }
body[data-mode="pack"] .pill { background: rgba(255,255,255,.1); }
.pill button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill button[aria-current="page"] { background: var(--ink); color: #fff; }
body[data-mode="pack"] .pill button[aria-current="page"] { background: #fff; color: var(--ink); }
.right { justify-self: end; display: flex; gap: 8px; }
.cart { border: 1.5px solid currentColor; background: none; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.order { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 700; }
body[data-mode="pack"] .order { background: #fff; color: var(--ink); }

/* flavour title */
.title { position: fixed; left: 0; right: 0; bottom: 7vh; z-index: 2; text-align: center; pointer-events: none; transition: opacity .5s; }
.title h1 { margin: 0; position: relative; height: 1em; overflow: hidden; font-family: var(--display); font-weight: 900; font-size: 120px; line-height: 1;
  letter-spacing: -0.03em; }
.title span { position: absolute; left: 0; right: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.title span.out { transform: translateY(-100%); opacity: 0; }
.title span.in { transform: translateY(100%); opacity: 0; }
body:not([data-mode="fan"]) .title { opacity: 0; }

.plus { position: fixed; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 24px; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .2s, opacity .3s; }
.plus:hover { transform: scale(1.1); }
body:not([data-mode="fan"]) .plus { opacity: 0; pointer-events: none; }

.arrows { position: fixed; z-index: 3; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; transition: opacity .4s; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(255,255,255,.3); font-size: 18px; }
.pos { font-size: 12px; font-weight: 700; letter-spacing: .08em; min-width: 54px; text-align: center; }
body[data-mode="pack"] .arrows { opacity: 0; pointer-events: none; }

/* focus card */
.card { position: fixed; z-index: 3; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); border-radius: 20px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.focus-card { left: 4vw; top: 50%; width: min(340px, 86vw); transform: translate(-30px, -50%); opacity: 0; pointer-events: none; transition: opacity .5s, transform .6s; }
body[data-mode="focus"] .focus-card { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.focus-card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.facts div { background: rgba(0,0,0,.05); border-radius: 12px; padding: 10px; }
.facts dt { font-size: 11px; opacity: .6; } .facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; }
.desc { font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.row { display: flex; gap: 8px; }
.dark { flex: 1; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px; font-weight: 700; }
.ghost { border: 1.5px solid var(--ink); background: none; border-radius: 999px; padding: 10px 14px; font-weight: 600; }
kbd { font: inherit; font-size: 10px; opacity: .6; }

/* pack */
.pack { position: fixed; z-index: 3; left: 5vw; top: 50%; transform: translate(-40px, -50%); width: min(430px, 90vw); opacity: 0; pointer-events: none; transition: opacity .5s .15s, transform .6s .15s; }
body[data-mode="pack"] .pack { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.pack h2 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -0.02em; }
.box { display: inline-grid; place-items: center; min-width: 1.05em; padding: 0 .1em; border: 3px solid #fff; border-radius: 10px; }
.sub { margin: 0 0 16px; font-size: 14px; opacity: .75; }
.plist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.plist button { width: 100%; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 8px 12px; text-align: left; }
.plist button[aria-checked="true"] { background: rgba(255,255,255,.16); border-color: #fff; }
.plist button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.plist .sw { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.plist .nm { flex: 1; font-weight: 700; font-size: 14px; } .plist .pr { font-size: 12px; opacity: .7; }
.plist .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 12px; }
.plist button[aria-checked="true"] .ck { background: #fff; color: #121214; border-color: #fff; }
.plist button[aria-checked="true"] .ck::after { content: "✓"; }
.buy { width: 100%; border: 0; border-radius: 999px; padding: 14px; background: #fff; color: #121214; font-weight: 800; font-size: 15px; }
.buy:disabled { background: rgba(255,255,255,.18); color: rgba(255,255,255,.7); cursor: default; }
.spot { position: fixed; z-index: 0; right: 8vw; top: 50%; width: min(46vw, 70vh); aspect-ratio: 1; transform: translateY(-50%) scale(.7); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.2), rgba(255,255,255,.06) 60%, transparent); opacity: 0; transition: opacity .6s, transform .8s; pointer-events: none; }
body[data-mode="pack"] .spot { opacity: 1; transform: translateY(-50%) scale(1); }

.toast { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 9; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.on { opacity: 1; }

@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr; row-gap: 8px; padding: 12px; }
  .pill { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .pill button { padding: 7px 10px; font-size: 12px; }
  .cart { display: none; }
  .title { bottom: 13vh; }
  .arrows { left: 0; right: 0; justify-content: center; bottom: 4vh; }
  .num { font-size: 22vh; top: 30%; }
  .focus-card { left: 3vw; right: 3vw; width: auto; top: auto; bottom: 3vh; transform: translateY(30px); }
  body[data-mode="focus"] .focus-card { transform: none; }
  .pack { left: 4vw; right: 4vw; width: auto; top: auto; bottom: 3vh; transform: translateY(30px); }
  body[data-mode="pack"] .pack { transform: none; }
  .plist { grid-template-columns: 1fr 1fr; } .plist .pr { display: none; }
  .spot { right: 50%; top: 24%; transform: translate(50%, -50%) scale(.7); width: 70vw; }
  body[data-mode="pack"] .spot { transform: translate(50%, -50%); }
}
@media (prefers-reduced-motion: reduce) { body, .title span, .num, .focus-card, .pack, .spot { transition: none; } }
