/* Press Pass: the press card, the offer, the conversion strips, practice, and the member-only frames.
   Same programme language as everything else (docs/DESIGN.md): ink rules, vermilion for the stamp, no gradients for show. */

/* The "Press" mark beside a member's name: a small rubber stamp. */
.press-mark {
  display: inline-block; vertical-align: .15em; margin-left: 4px; padding: 1px 5px 0; border: 1.5px solid var(--signal); border-radius: var(--r-0);
  font: 800 .62rem/1.25 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); transform: rotate(-3deg); white-space: nowrap;
}
.stage .press-mark, .party .press-mark { border-color: #F0603F; color: #F0603F; }
.rarity-pass { --rc: var(--signal); }

/* A quiet line that names the player's own numbers. Never a pop-up. */
.pass-strip {
  display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: var(--s3) var(--s4);
  border: 1px solid var(--ink); border-left: 4px solid var(--signal); border-radius: var(--r-1); background: var(--paper-2);
  color: var(--ink); text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.pass-strip > .g:first-child { width: 26px; height: 26px; flex: none; color: var(--signal); stroke-width: 1.6; }
.pass-strip .small { display: block; margin-top: 2px; color: var(--ink-2); }
.pass-strip > .g:last-child { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
a.pass-strip:hover { transform: translate(-1px, -1px); box-shadow: var(--press); }
.pass-strip.on { border-left-color: var(--right); }
.pass-strip.on > .g:first-child { color: var(--right); }
.pass-strip button { flex: none; }
.report .pass-strip { margin: 0 0 var(--s3); }

/* ---- the press card ---------------------------------------------------------------------------- */
.pass-hero { display: grid; gap: var(--s5); align-items: center; margin-top: var(--s2); }
.pass-hero h1 { font: var(--t-1); letter-spacing: -.03em; }
.pass-hero .lede { color: var(--ink-2); max-width: 40ch; }
@media (min-width: 720px) { .pass-hero { grid-template-columns: auto 1fr; gap: var(--s7); } }

.press-card {
  position: relative; width: min(280px, 78vw); justify-self: center; padding: 34px 18px 16px; border: 1.5px solid var(--ink); border-radius: 14px;
  background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-3deg); overflow: hidden; isolation: isolate;
  animation: card-in .7s var(--ease-snap) both;
}
.press-card .punch { position: absolute; top: 10px; left: 50%; width: 44px; height: 9px; translate: -50% 0; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.press-card .band {
  display: block; margin: 0 -18px 14px; padding: 6px 18px 4px; background: var(--signal); color: var(--on-signal);
  font: italic 900 2.6rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
}
.press-card .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.press-card .who .avatar { --size: 58px; flex: none; }
.press-card .who b { display: block; font: 800 1.25rem/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.press-card .who small { color: var(--ink-2); font-size: .8rem; }
.press-card .who > span:last-child { min-width: 0; }
.press-card dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; margin: 16px 0 0; padding-top: 10px; border-top: 1px dashed var(--rule); }
.press-card dt { font: 700 .62rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.press-card dd { margin: 4px 0 0; font: 700 .95rem/1 var(--display); }
/* Not yet a member: the card is printed but unstamped. */
.press-card:not(.live) .band { background: transparent; color: var(--signal); -webkit-text-stroke: 1.5px var(--signal); -webkit-text-fill-color: transparent; border-bottom: 1.5px dashed var(--signal); }
/* A member's card catches the light now and then. */
.press-card.live::after {
  content: ""; position: absolute; inset: -40% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .38) 50%, transparent 58%); animation: sheen 5s 1s ease-in-out infinite;
}
@keyframes card-in { from { opacity: 0; transform: rotate(-9deg) translateY(24px) scale(.94); } }
@keyframes sheen { 0%, 70% { translate: -60% 0; } 100% { translate: 60% 0; } }

/* ---- the offer ----------------------------------------------------------------------------------- */
.pass-offer { margin-top: var(--s6); max-width: 560px; }
.plans { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan-card { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); border: 1.5px solid var(--ink); border-radius: var(--r-1); background: var(--paper-2); }
.plan-card header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.plan-card header b { font: 800 1.15rem/1.1 var(--display); }
.plan-card .price { font: 800 1.5rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.plan-card .price small { font: 500 .75rem var(--body); margin-left: 4px; color: var(--ink-2); }
/* The renewal terms sit directly under the button they apply to, at a readable size. */
.plan-card .renewal { font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
.trial-note { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-1); background: var(--paper-3); }
.trial-note .g { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.member-box { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--ink); border-left: 4px solid var(--right); border-radius: var(--r-1); }
.terms { margin-top: var(--s6); max-width: 60ch; }

.perks { list-style: none; margin: 0; padding: 0; counter-reset: perk; }
.perks li { display: grid; grid-template-columns: 34px 1fr auto; gap: var(--s3); align-items: start; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.perks li:first-child { border-top: 0; }
.perks .g { width: 28px; height: 28px; color: var(--signal); stroke-width: 1.5; margin-top: 2px; }
.perks b { font: 700 1.1rem/1.2 var(--display); }
.perks p { color: var(--ink-2); font-size: .95rem; margin-top: 2px; }
.perks p b { font: inherit; font-weight: 700; color: var(--ink); }
.perks .link { align-self: center; }

/* ---- practice ------------------------------------------------------------------------------------ */
.practice-list .tg .g { width: 28px; height: 28px; color: var(--topic); stroke-width: 1.5; }
.practice-list button { flex: none; min-width: 112px; }
.lock-tag .g { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }

/* ---- couch party: reserved seats ---------------------------------------------------------------- */
.slots:has(> :nth-child(5)) .slot { min-height: clamp(110px, 12vw, 190px); }
.slots:has(> :nth-child(9)) .slot { min-height: clamp(84px, 8vw, 130px); }
.slot.reserved { border-style: dashed; opacity: .75; text-align: center; padding: 12px; font: italic 500 clamp(.85rem, 1.2vw, 1.1rem)/1.3 var(--display); }
.slot.reserved .g { width: 28px; height: 28px; color: #F0603F; }
.party .opener { text-align: center; color: var(--stage-ink-2); }
.party .opener .g { width: 20px; height: 20px; vertical-align: -4px; color: #F0603F; }

/* ---- member-only frames: one a month, kept forever (src/rewards.js) ------------------------------ */
.avatar[data-frame="pass_frame_ticker"] { --fr: repeating-conic-gradient(#F2ECDF 0 8deg, #B8321A 0 16deg, #1A1712 0 24deg); }
.avatar[data-frame="pass_frame_foil"] { --fr: conic-gradient(from var(--spin), #FFF3C4, #C98A12, #FFF8E1, #8A5C00, #F6D77A, #FFF3C4); animation: spin 8s linear infinite; }
.avatar[data-frame="pass_frame_spotlight"] { --fr: conic-gradient(from calc(var(--spin) * -1), #1A1712 0 70%, #FFF8E1 82%, #1A1712 94%); animation: spin 4s linear infinite; }
.avatar[data-frame="pass_frame_letterpress"] { --fr: repeating-conic-gradient(#B8321A 0 3deg, transparent 0 9deg), #1A1712; }
.avatar[data-frame="pass_frame_flap"] { --fr: repeating-conic-gradient(#1C1813 0 28deg, #F0B33A 0 30deg); }
.avatar[data-frame="pass_frame_curtain"] { --fr: repeating-conic-gradient(#8A1F12 0 10deg, #5A1408 0 20deg); }

@media (prefers-reduced-motion: reduce) { .press-card, .press-card.live::after { animation: none; } }
:root[data-motion="reduce"] .press-card, :root[data-motion="reduce"] .press-card.live::after { animation: none; }

/* ---- storage notice (public/js/consent.js) ---- */
.notice { position: fixed; z-index: 70; left: 50%; translate: -50% 0; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px));
  display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border: 1.5px solid var(--ink); border-radius: var(--r-1); background: var(--paper-2); box-shadow: var(--press); font-size: .9rem; }
.notice p { flex: 1; }
.notice button { flex: none; }
@media (min-width: 900px) { .notice { bottom: 16px; } }

/* ---- age gate and consent ---- */
.agegate { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.agegate legend { font: 600 .875rem/1.3 var(--body); color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.agegate .row { gap: var(--s2); }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; padding: 0; accent-color: var(--signal); }
.legal-links { margin-top: var(--s4); text-align: center; }
.pass-strip-wrap { display: grid; justify-items: end; gap: 2px; } .pass-strip-wrap .pass-strip { width: 100%; }
.shell.bare ~ .notice { bottom: calc(16px + env(safe-area-inset-bottom)); }
body.has-notice { padding-bottom: 150px; }

/* Family Pass */
.family-card { margin-top: var(--s3); border-style: dashed; }
.family-box h2 { font: italic 800 1.3rem var(--display); }
.family-invite { border: 2px solid var(--signal); }
.family-invite .g { width: 20px; height: 20px; vertical-align: -4px; color: var(--signal); }

/* Founding Member launch offer (views/pass.js). */
.founding-card { position: relative; border: 2px solid var(--gold); background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--gold) 22%, var(--paper-2)), var(--paper-2) 60%); margin-top: var(--s3); }
.founding-card .ribbon { position: absolute; top: -11px; left: var(--s4); background: var(--gold); color: #1A1714; font: 800 .7rem var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.founder-mark { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: #1A1714; font: 700 .72rem var(--body); vertical-align: 2px; }
/* Gift a Pass. */
.gift-box .row button svg { width: 18px; height: 18px; }
.gift-codes { margin-top: var(--s3); }
.gift-codes .num { letter-spacing: .08em; }
.redeem { margin-top: var(--s3); gap: var(--s2); }
.redeem input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.gift-box .renewal { font-size: .78rem; color: var(--ink-2); margin-top: var(--s2); }
