/* LFPs prototype — brand: hot pink #FF2D82, gold #DEAF6B, near-black + cream.
   Fonts: Bebas Neue (headings, never the word "LFPs"), Inter (body + anything that says LFPs). */
@font-face { font-family: 'Bebas Neue'; src: url('/fonts/bebas-neue-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --pink: #FF2D82; --pink-deep: #C8125F; --pink-soft: #FF7FB2;
  --gold: #DEAF6B; --gold-deep: #A97B3C; --gold-soft: #F3D7A5;
  --ink: #0E0A0D; --ink-2: #1A1218; --ink-3: #2A1E26; --line: rgba(255,255,255,.09);
  --cream: #FFF6EC; --cream-2: #F4E6D3; --text: #F7EFF3; --muted: #B9A9B2;
  --r: 18px; --shadow: 0 18px 50px rgba(0,0,0,.45);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, a, label, input, textarea, select { touch-action: manipulation; }
body { min-height: 100svh; background:
  radial-gradient(120% 60% at 50% -10%, rgba(255,45,130,.20), transparent 60%),
  radial-gradient(90% 50% at 100% 110%, rgba(222,175,107,.12), transparent 60%), var(--ink); background-attachment: fixed; }
main { max-width: 480px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px calc(40px + env(safe-area-inset-bottom)); min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--gold); }
.bebas, h1, h2, .h { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .02em; line-height: .95; margin: 0; }
h1 { font-size: clamp(40px, 12vw, 56px); overflow-wrap: break-word; } h2 { font-size: 34px; overflow-wrap: break-word; }
.wordmark { min-height: 44px; text-decoration: none; display: inline-flex; align-items: flex-end; gap: 2px; padding: 6px 0; }
.wordmark img { height: 22px; width: auto; display: block; }
.wordmark i { font: 800 15px/1 'Inter'; font-style: normal; color: var(--pink); margin-bottom: 1px; letter-spacing: -.02em; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; min-height: 36px; }
.chip { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: var(--ink-3); color: var(--muted); border: 1px solid var(--line); }
.chip.gold { color: var(--ink); background: var(--gold); border-color: transparent; }
.chip.pink { color: #fff; background: var(--pink); border-color: transparent; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.spacer { flex: 1; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 14px 0; }
.card.cream { background: var(--cream); color: var(--ink); border: 0; }
.btn { appearance: none; border: 0; cursor: pointer; font: 700 17px/1 'Inter'; padding: 18px 20px; border-radius: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: transform .12s ease, filter .2s ease, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #FF4A95, var(--pink) 60%, var(--pink-deep)); color: #fff; box-shadow: 0 10px 30px rgba(255,45,130,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--ink); box-shadow: 0 10px 30px rgba(222,175,107,.25), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.18); }
.btn.small { min-height: 44px; padding: 11px 14px; font-size: 14px; width: auto; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 10px; align-items: center; } .row > * { flex: 1; }
label.f { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 7px; letter-spacing: .02em; }
input, textarea, select { width: 100%; font: 500 17px 'Inter'; color: var(--text); background: var(--ink-2); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 15px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,45,130,.18); }
textarea { resize: none; min-height: 96px; line-height: 1.4; }
input[type=date], input[type=datetime-local] { color-scheme: dark; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; } .counter.warn { color: var(--pink); }
.err { color: #fff; background: rgba(255,45,130,.18); border: 1px solid rgba(255,45,130,.5); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-top: 12px; display: none; }
.err.show { display: block; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 14px; }
.privacy svg { flex: none; margin-top: 2px; }

.float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-14deg); } 50% { transform: translateY(-12px) rotate(-9deg); } }
.wiggle { animation: wiggle .5s ease-in-out 2; }
@keyframes wiggle { 0%,100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-8deg) scale(1.04); } 75% { transform: rotate(8deg) scale(1.04); } }

/* ---------- pile ---------- */
.pile { position: relative; width: 100%; margin: 6px auto 0; }
.pile .cap { position: absolute; transform-origin: center; }
.pile.locked .cap { filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)) saturate(.75) brightness(.8); }
.pile.live .cap { cursor: pointer; transition: transform .2s; }
.pile .cap.drop { animation: drop .9s cubic-bezier(.25,1.35,.5,1) both; }
@keyframes drop { 0% { transform: translateY(-115vh) rotate(var(--r0)); opacity: 1; } 70% { transform: translateY(0) rotate(var(--r)); } 82% { transform: translateY(-10px) rotate(var(--r)); } 100% { transform: translateY(0) rotate(var(--r)); } }
.pile .cap.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); } 50% { filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(255,45,130,.8)); } }
.seal { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seal .lock { width: 64px; height: 64px; border-radius: 50%; background: rgba(14,10,13,.82); border: 2px solid var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(222,175,107,.12), 0 10px 30px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.seal .tag { font: 400 18px 'Bebas Neue'; letter-spacing: .14em; color: var(--gold); background: rgba(14,10,13,.82); padding: 3px 10px 1px; border-radius: 8px; }
.empty-pile { height: 120px; border: 2px dashed rgba(255,255,255,.14); border-radius: 22px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* ---------- countdown ---------- */
.count { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.count div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; min-width: 66px; padding: 10px 6px 7px; text-align: center; }
.count b { display: block; font: 400 40px/1 'Bebas Neue'; color: var(--text); letter-spacing: .02em; }
.count span { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.count.sm div { min-width: 52px; padding: 7px 4px 5px; } .count.sm b { font-size: 28px; }
.bigcount { font: 400 64px/1 'Bebas Neue'; color: var(--pink); }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero .stage { height: 210px; display: grid; place-items: center; position: relative; }
.hero .stage .cap.small1 { position: absolute; left: 6%; top: 18%; transform: rotate(28deg); --w: 70px; --h: 29px; }
.hero .stage .cap.small2 { position: absolute; right: 4%; bottom: 10%; transform: rotate(-22deg); --w: 76px; --h: 31px; }
.tagline { font-family: 'Inter'; font-weight: 900; font-size: clamp(28px, 8vw, 34px); line-height: 1.05; letter-spacing: -.035em; margin: 6px 0 12px; }
.tagline em { font-style: normal; color: var(--pink); }
.lede { color: var(--muted); font-size: 17px; margin: 0 auto 22px; max-width: 340px; }
.steps { display: grid; gap: 10px; margin: 26px 0 8px; }
.step { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.step .n { font: 400 40px/1 'Bebas Neue'; color: var(--gold); width: 30px; text-align: center; }
.step b { display: block; font-size: 15px; } .step span { color: var(--muted); font-size: 14px; }
.mission { text-align: center; margin: 26px 0 10px; }
.mission .h { font-size: 36px; color: var(--gold); }
footer { text-align: center; color: #7D6C76; font-size: 12px; margin-top: 26px; line-height: 1.6; }

/* ---------- open choice cards ---------- */
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--pink); flex: none; }
.choice b { display: block; font-size: 15px; } .choice span { font-size: 13px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--pink); background: rgba(255,45,130,.08); }
.swatches { display: flex; gap: 14px; }
.swatch { background: none; border: 2px solid transparent; border-radius: 16px; padding: 8px; cursor: pointer; }
.swatch[aria-pressed=true] { border-color: var(--gold); background: rgba(222,175,107,.08); }
.swatch .cap { --w: 70px; --h: 29px; }

/* ---------- recorder ---------- */
.rec { display: flex; align-items: center; gap: 14px; }
.recbtn { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; flex: none; background: radial-gradient(circle at 35% 30%, #FF7FB2, var(--pink) 55%, var(--pink-deep)); box-shadow: 0 8px 24px rgba(255,45,130,.4); display: grid; place-items: center; position: relative; }
.recbtn .dot { width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: border-radius .2s, width .2s, height .2s; }
.recbtn.on .dot { border-radius: 5px; width: 20px; height: 20px; }
.recbtn.on::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--pink); animation: ring 1.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.recinfo { flex: 1; min-width: 0; }
.recinfo b { font-size: 15px; display: block; }
.meter { height: 6px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 99px; transition: width .2s linear; }
.recdone { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- link cards ---------- */
.linkcard { padding: 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); margin: 10px 0; }
.linkcard .lbl { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; }
.linkcard .sub { color: var(--muted); font-size: 13px; margin: 3px 0 10px; }
.linkcard code { display: block; font: 500 13px ui-monospace, Menlo, monospace; color: var(--gold-soft); background: rgba(0,0,0,.3); padding: 10px; border-radius: 10px; word-break: break-all; margin-bottom: 10px; }

/* ---------- manage list ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .cap { --w: 54px; --h: 22px; flex: none; }
.list .who { flex: 1; } .list .who b { display: block; font-size: 15px; } .list .who span { font-size: 13px; color: var(--muted); }
.upsell { position: relative; background: linear-gradient(135deg, rgba(222,175,107,.18), rgba(255,45,130,.10)); border: 1px solid rgba(222,175,107,.45); }
.upsell .h { font-size: 30px; color: var(--gold); }

/* ---------- reveal ---------- */
.reveal-head { text-align: center; margin: 6px 0 4px; }
.reveal-head h1 { font-size: 64px; color: var(--text); text-shadow: 0 0 30px rgba(255,45,130,.5); }
.hint { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0; min-height: 20px; }
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px; background: rgba(8,5,7,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet.show { opacity: 1; pointer-events: auto; }
.sheet .inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; margin: auto 0; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.sheet .capwrap { height: 120px; display: grid; place-items: center; margin-bottom: -10px; z-index: 2; }
.note { width: 100%; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 26px 22px 20px; box-shadow: var(--shadow); position: relative; transform: translateY(30px) scale(.9); opacity: 0; transition: transform .5s cubic-bezier(.2,1.3,.4,1) .25s, opacity .3s .25s; overflow: hidden; }
.note.in { transform: none; opacity: 1; }
.note::before { content: '\201C'; position: absolute; right: 14px; top: -24px; font: 900 150px/1 Georgia, serif; color: rgba(222,175,107,.35); }
.note .from { font: 400 26px/1 'Bebas Neue'; letter-spacing: .04em; color: var(--pink); }
.note .line { font-weight: 800; font-size: 25px; line-height: 1.22; letter-spacing: -.02em; margin: 12px 0 16px; position: relative; }
.note .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #7A6A72; }
.note.gold { background: linear-gradient(160deg, #FFF3DC, #F6DFB4); }
.note.pinkbg { background: linear-gradient(160deg, #FFF1F6, #FFD9E8); }
.voicebar { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 14px 10px 10px; margin-bottom: 14px; }
.voicebar button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.voicebar .track { flex: 1; height: 6px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
.voicebar .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.voicebar .t { font-size: 13px; font-variant-numeric: tabular-nums; color: #D9C9D1; }
.sheetnav { display: flex; gap: 10px; width: 100%; margin-top: 14px; }
.sheetnav .btn { padding: 14px; }
.sparkle { position: fixed; top: -20px; z-index: 40; pointer-events: none; width: 10px; height: 10px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
.toss { position: fixed; z-index: 60; transition: transform .9s cubic-bezier(.5,-0.3,.7,1), opacity .9s; pointer-events: none; }
a.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--cream); color: var(--ink); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 99px; opacity: 0; transition: all .25s; z-index: 99; pointer-events: none; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.fadein { animation: fadein .5s ease both; } @keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .float, .pile .cap.drop, .pile .cap.pulse { animation: none !important; } }

/* ---------- capsule (final C3 renders, two halves cut at the seam; never stretched) ---------- */
.cap { --w: 100px; width: var(--w); aspect-ratio: 720 / 252; display: inline-flex; position: relative; flex: none; filter: drop-shadow(0 7px 9px rgba(0,0,0,.5)); }
.cap .h { display: block; height: 100%; width: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; will-change: transform; }
.cap .glowseam { position: absolute; left: 50%; top: 50%; width: 30%; height: 160%; transform: translate(-50%,-50%) scale(.2); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,230,180,.95), rgba(222,175,107,.45) 45%, rgba(222,175,107,0)); opacity: 0; pointer-events: none; }
.cap.cracked .h.l { animation: splitL .62s cubic-bezier(.2,1.6,.35,1) forwards; }
.cap.cracked .h.r { animation: splitR .62s cubic-bezier(.2,1.6,.35,1) forwards; }
.cap.cracked .glowseam { animation: seamglow 1.4s ease-out forwards; }
@keyframes splitL { 0% { transform: none; } 100% { transform: translateX(-17%) rotate(-7deg); } }
@keyframes splitR { 0% { transform: none; } 100% { transform: translateX(17%) rotate(7deg); } }
@keyframes seamglow { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2); } 25% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: .55; transform: translate(-50%,-50%) scale(.9); } }
.cap.seen { opacity: .62; } .cap.seen .h.l { transform: translateX(-5%) rotate(-3deg); } .cap.seen .h.r { transform: translateX(5%) rotate(3deg); }
.cap.big { --w: min(78vw, 300px); filter: drop-shadow(0 22px 26px rgba(0,0,0,.55)) drop-shadow(0 0 34px rgba(255,45,130,.22)); }
.cap.golden.big { filter: drop-shadow(0 22px 26px rgba(0,0,0,.55)) drop-shadow(0 0 34px rgba(222,175,107,.35)); }
.fleck { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF1CF, #DEAF6B 55%, #9C6F33); pointer-events: none; animation: fleck 1.1s cubic-bezier(.15,.7,.35,1) forwards; }
@keyframes fleck { 0% { transform: translate(0,0) scale(.3); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; } }
.pile .cap { position: absolute; transform-origin: center; }
.pile.locked .cap { filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)) saturate(.8) brightness(.78); }
.pile.live .cap { cursor: pointer; }
.pile.live .cap::before { content: ''; position: absolute; inset: -10px -4px; }
.pile .cap.wave { animation: wave .7s ease-in-out; }
@keyframes wave { 0%,100% { translate: 0 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); } 45% { translate: 0 -14px; filter: drop-shadow(0 0 16px rgba(255,214,150,.95)); } }
.tag-spons { display: inline-block; font: 700 10px/1 'Inter'; letter-spacing: .1em; text-transform: uppercase; color: #6B5A63; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; padding: 4px 6px; }
.tag-spons.dark { color: var(--muted); border-color: rgba(255,255,255,.2); }
.pile .spons { position: absolute; z-index: 99; font: 700 9px/1 'Inter'; letter-spacing: .08em; color: var(--ink); background: var(--cream); border-radius: 4px; padding: 3px 4px; pointer-events: none; text-transform: uppercase; }
.gold-badge { display: inline-flex; align-items: center; gap: 4px; font: 800 10px/1 'Inter'; letter-spacing: .1em; color: var(--ink); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); padding: 4px 7px; border-radius: 6px; text-transform: uppercase; vertical-align: middle; }

/* jewel box for the turntable video (cream stage, like the renders) */
.jewel { width: min(86vw, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #F3E9DA; box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(222,175,107,.5); position: relative; }
.jewel video, .jewel img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* row of two buttons */
.btnrow { display: flex; gap: 10px; margin-top: 10px; } .btnrow .btn { flex: 1; padding: 15px 10px; font-size: 15px; }

/* full-screen panels */
.panel { position: fixed; inset: 0; z-index: 70; background: #0A0709; overflow-y: auto; -webkit-overflow-scrolling: touch; opacity: 0; pointer-events: none; transition: opacity .3s; }
.panel.show { opacity: 1; pointer-events: auto; }
.panel .wrap { max-width: 480px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom)); min-height: 100%; display: flex; flex-direction: column; }
.xbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--text); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.consent { font-size: 14px; color: var(--text); background: rgba(222,175,107,.1); border: 1px solid rgba(222,175,107,.35); border-radius: 14px; padding: 12px 14px; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; min-height: 44px; cursor: pointer; }
.chk input { width: 22px; height: 22px; accent-color: var(--pink); flex: none; margin: 1px 0 0; }

/* chorus bubbles */
.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.bubble { --lvl: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bubble .dot { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 400 34px/1 'Bebas Neue'; color: #fff; background: radial-gradient(circle at 35% 30%, #FF7FB2, var(--pink) 60%, var(--pink-deep)); opacity: calc(.35 + var(--lvl) * .65); transform: scale(calc(.92 + var(--lvl) * .18)); box-shadow: 0 0 calc(var(--lvl) * 34px) rgba(255,45,130,.9), 0 0 0 calc(var(--lvl) * 4px) rgba(222,175,107,.6); transition: opacity .08s linear; }
.bubble .dot.text { background: var(--ink-3); color: var(--muted); opacity: .5; }
.bubble span { font-size: 13px; font-weight: 700; color: var(--muted); }
.v0 { font: 800 10px/1 'Inter'; letter-spacing: .12em; color: var(--ink); background: var(--cream); padding: 5px 7px; border-radius: 6px; text-transform: uppercase; }

/* constellation */
.sky { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 10px auto; border-radius: 24px; background: radial-gradient(70% 70% at 50% 40%, #241320, #0B0709); overflow: hidden; border: 1px solid var(--line); }
.sky .dust { position: absolute; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #FFF6EC; opacity: .45; transition: transform 1.8s cubic-bezier(.3,.9,.3,1), opacity 1.8s; }
.sky .star { position: absolute; width: 44px; height: 44px; margin: -22px; border: 0; padding: 0; background: transparent; cursor: pointer; transition: transform 1.9s cubic-bezier(.3,.9,.3,1); }
.sky .star i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: radial-gradient(circle, #fff, #FFE2B0 45%, rgba(222,175,107,0) 72%); box-shadow: 0 0 16px 4px rgba(255,214,150,.7); animation: twinkle 2.6s ease-in-out infinite; }
.sky .star.on i { background: radial-gradient(circle, #fff, #FF9CC6 45%, rgba(255,45,130,0) 72%); box-shadow: 0 0 22px 7px rgba(255,45,130,.75); }
.sky .star b { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font: 700 11px 'Inter'; color: var(--text); white-space: nowrap; opacity: 0; transition: opacity .6s 1.6s; }
.sky.formed .star b { opacity: .85; }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; pointer-events: none; }
.sky.formed svg { opacity: 1; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.starcard { min-height: 110px; }

/* ripple */
.ripplebox { position: relative; height: 230px; display: grid; place-items: center; }
.ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
.ripplebox.go .ring { animation: ripple 2.4s ease-out infinite; }
.ripplebox.go .ring:nth-child(2) { animation-delay: .8s; border-color: var(--pink); } .ripplebox.go .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.banner { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 90; max-width: 456px; margin: 0 auto; background: rgba(255,246,236,.97); color: var(--ink); border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 16px 40px rgba(0,0,0,.5); transform: translateY(-140%); transition: transform .5s cubic-bezier(.2,1.3,.4,1); }
.banner.show { transform: none; }
.banner .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; flex: none; }
.banner .ico img { width: 28px; height: auto; }
.banner b { display: block; font-size: 15px; } .banner span { font-size: 13px; color: #6B5A63; }
.status { list-style: none; padding: 0; margin: 0; }
.status li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--muted); font-size: 15px; min-height: 44px; }
.status li i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); border: 2px solid rgba(255,255,255,.2); flex: none; }
.status li.done { color: var(--text); } .status li.done i { background: var(--gold); border-color: var(--gold); }

/* tiers */
.tiers { display: grid; gap: 10px; }
.tier { border-radius: 16px; padding: 14px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.12); text-align: left; color: var(--text); font: inherit; width: 100%; cursor: pointer; display: block; min-height: 44px; }
.tier.lead { border-color: var(--gold); background: linear-gradient(135deg, rgba(222,175,107,.16), rgba(255,45,130,.06)); }
.tier[aria-pressed=true] { box-shadow: 0 0 0 2px var(--pink); }
.tier .top2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tier .nm { font: 400 24px/1 'Bebas Neue'; letter-spacing: .04em; } .tier .pr { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tier p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.demo-note { text-align: center; font: 800 12px/1.2 'Inter'; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 10px; padding: 9px; }
.sheet2 { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-height: 92svh; overflow-y: auto; background: #151014; border-radius: 24px 24px 0 0; border-top: 1px solid rgba(222,175,107,.4); padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .4s cubic-bezier(.2,1,.3,1); box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
.sheet2.show { transform: none; }
.sheet2 .grab { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); margin: 0 auto 12px; }
.sheet2 .inner2 { max-width: 444px; margin: 0 auto; }
.scrim { position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* nearby radar */
.radar { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 8px auto; border-radius: 50%; background: radial-gradient(circle, rgba(255,45,130,.16), rgba(255,45,130,.02) 60%, transparent 70%); }
.radar::before, .radar::after { content: ''; position: absolute; inset: 16%; border-radius: 50%; border: 1px dashed rgba(222,175,107,.3); }
.radar::after { inset: 34%; }
.radar .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-size: 26px; box-shadow: 0 0 0 8px rgba(255,45,130,.18); }
.radar .who { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: var(--text); cursor: pointer; min-width: 64px; min-height: 64px; padding: 0; font: inherit; }
.radar .who .em { width: 50px; height: 50px; border-radius: 50%; background: var(--ink-3); border: 2px solid rgba(222,175,107,.6); display: grid; place-items: center; font-size: 22px; }
.radar .who span { font-size: 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .chips .chip { font-size: 11px; }
.emojis { display: flex; gap: 8px; flex-wrap: wrap; }
.emojis button { width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,.15); background: var(--ink-2); font-size: 22px; cursor: pointer; }
.emojis button[aria-pressed=true] { border-color: var(--pink); background: rgba(255,45,130,.15); }
.inbox { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.inbox .cap { --w: 82px; }
.inbox b { display: block; } .inbox .btnrow { margin-top: 8px; } .inbox .btn { padding: 12px 8px; min-height: 44px; }
.qr { background: #fff; padding: 14px; border-radius: 18px; width: min(70vw, 240px); margin: 10px auto; }
.qr svg, .qr img { width: 100%; height: auto; display: block; }
.code { font: 400 54px/1 'Bebas Neue'; letter-spacing: .2em; text-align: center; color: var(--gold); }

/* hunt map (stylized, no real map data) */
.map { position: relative; width: 100%; aspect-ratio: 1 / 1.05; border-radius: 22px; overflow: hidden; background: #18111A; border: 1px solid var(--line); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .spot { position: absolute; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: transparent; padding: 0; }
.map .spot .cap { --w: 56px; }
.map .spot.found::after { content: '✓'; position: absolute; right: -2px; top: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 12px/20px 'Inter'; text-align: center; }
.map .spot.locked { opacity: .35; filter: grayscale(.6); }
.map .spot.current::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--pink); animation: ring 1.6s ease-out infinite; }
.map .lbl { position: absolute; transform: translate(-50%, 0); font: 700 11px 'Inter'; color: var(--muted); white-space: nowrap; pointer-events: none; }
.clue { background: var(--cream); color: var(--ink); border-radius: 20px; padding: 16px; margin-top: 12px; }
.clue .h { color: var(--pink); font-size: 26px; }
.clue p { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 6px 0 12px; }
.clue input { background: #fff; color: var(--ink); border-color: rgba(0,0,0,.15); text-transform: uppercase; letter-spacing: .1em; }
.linkbtn { background: none; border: 0; color: var(--gold); font: 700 14px 'Inter'; padding: 12px 0; min-height: 44px; cursor: pointer; text-decoration: underline; }
.clue .linkbtn { color: #9C6F33; }

/* afterglows */
.ag { position: fixed; inset: 0; z-index: 95; pointer-events: auto; display: grid; place-items: center; opacity: 0; transition: opacity .35s; }
.ag.show { opacity: 1; }
.ag .cap-line { position: absolute; bottom: calc(80px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); text-align: center; font: 800 17px 'Inter'; color: #fff; background: rgba(14,9,12,.82); border: 1px solid rgba(222,175,107,.45); padding: 12px 18px; border-radius: 99px; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.ag .skip { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; font: 700 12px 'Inter'; color: rgba(255,255,255,.75); background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 99px; min-height: 44px; display: flex; align-items: center; }
.ag.hype { background: radial-gradient(60% 40% at 50% 45%, rgba(255,226,170,.55), rgba(222,175,107,.18) 50%, rgba(0,0,0,0) 75%); }
.ag.hype .flare { width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,250,235,.9), rgba(255,214,150,.35) 30%, rgba(255,214,150,0) 65%); animation: flare 3s ease-in-out forwards; }
@keyframes flare { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.ag.golden { background: rgba(222,175,107,.55); mix-blend-mode: color; }
.ag.goldenlay { background: radial-gradient(70% 50% at 50% 40%, rgba(255,240,205,.45), rgba(222,175,107,.25) 60%, rgba(160,110,50,.35)); }
.ag.pilewave { background: linear-gradient(0deg, rgba(255,45,130,.22), rgba(0,0,0,0) 45%); }
.ag.pilewave .row { position: absolute; bottom: calc(130px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.ag.pilewave .row .cap { --w: 52px; animation: candle 1.1s ease-in-out both; }
@keyframes candle { 0%,100% { transform: translateY(0); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); } 40% { transform: translateY(-26px) rotate(-6deg); filter: drop-shadow(0 0 18px rgba(255,214,150,1)); } }
body.toned { filter: grayscale(1) contrast(.95); transition: filter .6s; }
body { transition: filter .6s; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; min-height: 44px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--ink-3); border: 1px solid rgba(255,255,255,.2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--pink); } .switch input:checked + span::after { transform: translateX(20px); }
.hubsec { margin: 12px 0; }
.hubsec .n { font: 400 18px/1 'Bebas Neue'; color: var(--gold); letter-spacing: .1em; }
.hubsec h3 { font: 800 17px/1.2 'Inter'; margin: 4px 0 4px; }
.hubsec p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.hubsec .btn { margin-top: 8px; }
.hero-img { width: 100%; height: auto; display: block; -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .cap.cracked .h.l, .cap.cracked .h.r { animation-duration: .01s; } .fleck, .ring, .ag .flare, .ag.pilewave .row .cap { animation: none !important; } .sky .star, .sky .dust { transition-duration: .01s; } }

/* ---------- v3: utilities inside a capsule ---------- */
.eyebrow { font: 700 12px 'Inter'; letter-spacing: .16em; color: var(--pink); margin: 4px 0 6px; }
.uico { flex: none; color: var(--gold); }
.utiles { display: grid; gap: 10px; }
.utile { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 3px; align-items: start; text-align: left; width: 100%; min-height: 64px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.utile .uico { grid-row: span 3; margin-top: 2px; }
.utile .nm { font-weight: 800; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.utile .ld { grid-column: 2; font-size: 13px; line-height: 1.4; color: var(--muted); }
.utile .exnote, .exnote { grid-column: 2; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9C8A93; }
.utile[aria-pressed="true"] { border-color: var(--pink); background: rgba(255,45,130,.1); }
.utile.soon { opacity: .55; cursor: default; }
.utile.static { cursor: default; }
.utile .btn { grid-column: 2; width: auto; justify-self: start; }
.star-l { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.inside-sel { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(222,175,107,.55); background: linear-gradient(160deg, rgba(222,175,107,.14), rgba(222,175,107,.04)); }
.inside-sel b { display: block; font-size: 16px; margin: 2px 0; }
.inside-sel .small { display: block; }
.utag-l { display: inline-flex; align-items: center; gap: 5px; font: 800 11px/1 'Inter'; letter-spacing: .1em; text-transform: uppercase; color: #9C6F33; }
.inside-sel .utag-l { color: var(--gold); }
.ucard { background: #fff; color: var(--ink); border: 1.5px solid var(--gold); border-radius: 18px; padding: 14px; margin: 0 0 14px; position: relative; box-shadow: 0 10px 30px rgba(222,175,107,.25); }
.ucard .uico { color: #B98A45; }
.ucard .ut { display: block; font-size: 19px; margin-top: 8px; letter-spacing: -.01em; }
.ucard .btnrow { margin-top: 0; }
.ucard .btn.ghost.dark { color: var(--ink); border-color: rgba(0,0,0,.22); background: transparent; }
.edition { font: 400 22px/1 'Bebas Neue'; letter-spacing: .06em; color: #B98A45; }
.codebox { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #FFF6E6; border: 1px dashed #DEAF6B; border-radius: 12px; padding: 8px 8px 8px 14px; margin: 0 0 10px; }
.codebox code { font: 800 16px 'Inter'; letter-spacing: .04em; color: var(--ink); white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.codebox .btn { width: auto; flex: none; }
.cap .utag { position: absolute; right: -3px; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #3A2A12; font: 900 10px/18px 'Inter'; text-align: center; box-shadow: 0 0 0 2px rgba(10,7,9,.85), 0 0 12px rgba(222,175,107,.7); z-index: 3; font-style: normal; }
.cap.cracked .utag { opacity: 0; }
.utag.inline { position: static; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #3A2A12; font: 900 10px/18px 'Inter'; text-align: center; }
.ulinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ulink { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.2; }
.ulink .uico { color: var(--gold); }
.chip[data-style][aria-pressed="true"] { background: var(--pink); color: #fff; border-color: transparent; }

/* ---------- real-time 3D capsule (public/js/capsule3d.js) ---------- */
.c3d-host { position: relative; }
.c3d-host .c3d-canvas { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .6s ease; z-index: 1; }
.c3d-host.c3d-on .c3d-canvas { opacity: 1; }
.c3d-only { display: none; } body.has3d .c3d-only { display: block; }
.jewel.c3d-host.c3d-on { background: #0E0B0C; }
.jewel.c3d-host::after, .pile3d::after, .single3d::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(222,175,107,.38), inset 0 -40px 60px rgba(14,11,12,.35); }
.pile3d { width: 100%; border-radius: 24px; overflow: hidden; background: #0E0B0C; margin: 6px 0 0; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
#pileWrap.is3d > .pile { display: none; }
.c3d-badge { position: absolute; left: 0; top: 0; z-index: 3; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #3A2A12; font: 900 10px/18px 'Inter'; text-align: center; font-style: normal;
  box-shadow: 0 0 0 2px rgba(10,7,9,.85), 0 0 12px rgba(222,175,107,.7); pointer-events: none; opacity: 0; transition: opacity .3s; }
.sheet .capwrap.is3d { height: auto; width: 100%; margin-bottom: 12px; }
.sheet .capwrap.is3d #sc { width: 100%; }
.sheet .capwrap.is3d #sc > .cap { display: none; }
.single3d { width: 100%; height: min(62vw, 250px); border-radius: 24px; overflow: hidden; background: #0E0B0C; }
.tapopen { appearance: none; border: 1px solid rgba(222,175,107,.55); background: rgba(14,11,12,.7); color: var(--gold-soft); font: 700 13px/1 'Inter'; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 99px; margin: -4px auto 12px; display: block; animation: tapPulse 1.8s ease-in-out infinite; transition: opacity .3s; cursor: pointer; }
.tapopen.gone { opacity: 0; pointer-events: none; height: 0; padding: 0; margin: 0; border: 0; }
@keyframes tapPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(222,175,107,.0); } 50% { box-shadow: 0 0 0 6px rgba(222,175,107,.14); } }
@media (prefers-reduced-motion: reduce) { .tapopen { animation: none; } }

/* ---------- reveals ---------- */
.single3d.tall { height: min(84vw, 330px); }
.disc { text-align: center; margin: 2px 0 10px; color: var(--muted); font-size: 14px; } .disc b { color: var(--gold); font-weight: 800; }
#chorus:disabled { opacity: .55; filter: saturate(.6); }
.rv { margin: 4px 0 14px; position: relative; }
.rv .hide { display: none; }
.rv-q { font-weight: 800; font-size: 17px; line-height: 1.3; margin: 0 0 10px; }
.rv-opts { display: grid; gap: 8px; }
.rv-opts .opt { text-align: left; border: 1.5px solid rgba(169,123,60,.45); background: #FFFBF4; color: var(--ink); border-radius: 14px; padding: 12px 14px; font: 700 15px/1.25 'Inter'; cursor: pointer; min-height: 48px; }
.rv-opts .opt span { display: block; font-weight: 500; font-size: 13px; color: #7A6A72; margin-top: 2px; }
.rv-opts .opt.on { border-color: var(--pink); background: #FFF0F6; box-shadow: 0 0 0 3px rgba(255,45,130,.14); }
.rv-opts .opt:disabled:not(.on) { opacity: .5; }
.rv-fb { min-height: 20px; margin: 8px 0; font-weight: 700; color: var(--pink-deep); font-size: 14px; }
.rv-label { font-size: 12.5px; color: #7A6A72; margin: 8px 0 0; }
.rv-msg { font-weight: 700; font-size: 16px; line-height: 1.35; margin: 8px 0 0; }
.rv-msg.big { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.rv details summary { cursor: pointer; font-weight: 700; color: #9C6F33; min-height: 44px; display: flex; align-items: center; }
.rv-receipt { background: #FFF6E6; border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; font-weight: 700; margin: 10px 0 0; }
.scratch { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #FFF3DC, #F6DFB4); box-shadow: inset 0 0 0 1.5px rgba(169,123,60,.5); touch-action: none; }
.scratch .under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.scratch .under b { font: 400 34px/1 'Bebas Neue'; letter-spacing: .02em; color: var(--pink); }
.scratch .under span { font-size: 14px; font-weight: 600; color: #5A3E16; margin-top: 6px; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .5s; }
.scratch canvas.gone { opacity: 0; pointer-events: none; }
.scratch.nudge { animation: nudge .5s ease; }
@keyframes nudge { 30% { transform: rotate(-1.2deg); } 60% { transform: rotate(1deg); } }
.gc { position: relative; border-radius: 18px; aspect-ratio: 1.586; padding: 16px 18px; color: var(--ink); background: linear-gradient(140deg, #FFF6EC 0%, #F3E9DA 55%, #F6DFB4 100%); box-shadow: inset 0 0 0 1.5px rgba(222,175,107,.8), 0 10px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 12px; overflow: hidden; }
.gc::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,45,130,.22), transparent 70%); }
.gc-m { font: 800 15px 'Inter'; letter-spacing: .02em; }
.gc-a { font: 400 64px/1 'Bebas Neue'; color: var(--pink); }
.gc-tag, .cd-tag { align-self: flex-start; font: 800 11px 'Inter'; letter-spacing: .14em; background: var(--ink); color: var(--gold-soft); padding: 4px 8px; border-radius: 6px; }
.flip { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; position: relative; }
.flip .f { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s cubic-bezier(.3,1.2,.4,1); box-shadow: 0 0 0 8px #fff, 0 14px 30px rgba(0,0,0,.25); }
.flip .front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip .back { transform: rotateY(180deg); background: #FFFDF8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; }
.flip .back b { font: 400 40px/1.05 'Bebas Neue'; color: var(--pink); }
.flip .back i { font-style: normal; font-size: 14px; color: #7A6A72; margin-top: 10px; }
.flip.on .front { transform: rotateY(-180deg); } .flip.on .back { transform: rotateY(0); }
.flip + .rv-label { margin-top: 16px; }
.tix { display: flex; border-radius: 16px; overflow: hidden; background: #FFFBF4; box-shadow: inset 0 0 0 1.5px rgba(222,175,107,.8); margin-bottom: 12px; transform-origin: top; transform: perspective(700px) rotateX(58deg) scaleY(.6); opacity: .75; transition: transform .7s cubic-bezier(.3,1.3,.4,1), opacity .4s; }
.tix.open { transform: none; opacity: 1; }
.tix-a { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tix-a b { font: 400 36px/1 'Bebas Neue'; color: var(--ink); }
.tix-a span { font-size: 13px; color: #5A4A52; }
.tix-k { font: 800 11px 'Inter' !important; letter-spacing: .12em; text-transform: uppercase; color: #9C6F33 !important; }
.tix-b { width: 96px; border-left: 2px dashed rgba(222,175,107,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; background: linear-gradient(180deg, #F6DFB4, #DEAF6B); }
.tix-b b { font: 400 44px/1 'Bebas Neue'; color: var(--ink); } .tix-b span { font-size: 12px; font-weight: 700; }
.tix-b code { font: 800 11px 'Inter'; margin-top: 6px; letter-spacing: .04em; overflow-wrap: anywhere; text-align: center; }
.finale h1 { color: var(--gold); text-shadow: 0 0 30px rgba(222,175,107,.35); }
.collection { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 18px; }
.col-item { border-radius: 16px; padding: 12px; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 3px; min-height: 92px; }
.col-item.pink { background: linear-gradient(160deg, #FFF1F6, #FFD9E8); } .col-item.golden { background: linear-gradient(160deg, #FFF3DC, #F6DFB4); }
.col-item .ci-k { font: 800 10.5px 'Inter'; letter-spacing: .12em; text-transform: uppercase; color: #9C6F33; }
.col-item b { font: 400 24px/1 'Bebas Neue'; color: var(--pink); }
.col-item span:last-child { font-size: 12.5px; line-height: 1.3; color: #4A3A42; }
.finale .btn { text-align: center; text-decoration: none; }

/* ---------- /cafe and /experience ---------- */
.cafe h1 { margin-bottom: 8px; } .cafe h2 { margin: 30px 0 10px; color: var(--gold); }
.cafe .lede { margin-left: 0; }
.jewel > .cap { position: absolute; inset: 0; margin: auto; }
.jewel.c3d-on > .cap { visibility: hidden; }
.cafe3d, #exp3d { margin: 18px auto 0; }
.cafe-photo { margin: 22px 0 0; } .cafe-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; display: block; }
.cafe-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cafe-demo .cd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.cafe-demo .cd-k { font: 800 13px 'Inter'; letter-spacing: .04em; }
.cafe-demo .btn { width: auto; }
.cd-out { margin-top: 12px; background: #fff; border-radius: 12px; padding: 12px; font-size: 14px; min-height: 44px; }
.cd-out code { font: 800 14px 'Inter'; }
.cafe-report td:last-child { text-align: right; font-weight: 800; }

/* ---------- positioning v5 ---------- */
.hero-h { font-size: clamp(44px, 13vw, 60px); line-height: .95; margin: 2px 0 6px; }
.roast { text-align: center; }
.roast-q { font-weight: 800; font-size: 19px; line-height: 1.3; margin: 0; color: var(--text); }
.btnrow .btn { text-align: center; }
