/* BRAIN BEAN COFFEE: the counter on Planet Zee, the cup that almost comes to you, Pam's lines, the living button, the celebration. */
.bean-page { padding: calc(var(--bar-h) + clamp(14px, 1.8vw, 40px)) var(--gutter) 40px; max-width: calc(1100px + 2 * var(--gutter)); margin: 0 auto; }
.bean-head .kicker { display: block; font-size: var(--fs-small); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .3em; }
.bean-head h1 { margin: 0 0 .2em; font-size: var(--fs-h1); line-height: 1; letter-spacing: .02em; }
.bean-head p { margin: 0 0 clamp(14px, 1.8vw, 24px); font-size: var(--fs-lead); max-width: 60ch; }
.bean-head .test { color: var(--gold); font-weight: 600; letter-spacing: .06em; }
.bean-stage { position: relative; border-radius: 18px; overflow: hidden; background: #0b0a09; border: 1px solid var(--line); isolation: isolate; }
/* the scene is Pam's film, the counter is hers */
.scene { position: relative; aspect-ratio: 16 / 9; max-height: 72vh; overflow: hidden; background: #0b0a09; }
.scene .shop { position: absolute; inset: 0; background: #0b0a09 center / cover no-repeat; filter: saturate(.8) brightness(.5); }
.pam-film { position: absolute; inset: 0; background: #0b0a09 center / cover no-repeat; }
.pam-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.pam-film video.on { opacity: 1; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, .55)); pointer-events: none; }
.scene > * { position: absolute; z-index: 1; }
/* the two of them at the edges of her counter; Pam is the film */
.crew { left: 0; right: 0; bottom: 4%; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 clamp(10px, 2vw, 26px); pointer-events: none; }
.who { display: grid; justify-items: center; text-align: center; gap: 3px; font-size: var(--fs-small); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.who i { display: block; width: clamp(54px, 9vw, 110px); height: clamp(54px, 9vw, 110px); border-radius: 50%; background: var(--pic, radial-gradient(circle at 50% 35%, #3b3a44, #15141a 70%)) center 28% / cover no-repeat; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.who.craig i { background-position: center 22%; border-color: rgba(255, 200, 87, .5); }
.who b { font: 600 1.05em/1.1 var(--display); letter-spacing: .06em; }
.who small { opacity: .8; }
.who.pam { align-self: flex-end; padding-bottom: 6px; }
.ticket { right: clamp(12px, 2vw, 24px); top: clamp(12px, 2vw, 24px); display: grid; text-align: center; padding: 8px 12px; border-radius: 8px; background: rgba(241, 231, 214, .92); color: #1b140f; font: 600 var(--fs-small)/1 var(--display); letter-spacing: .1em; text-transform: uppercase; transform: rotate(3deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.ticket b { font-size: 1.6em; letter-spacing: 0; margin-top: 4px; }
/* under the film: Pam's line, the board, the button */
.panel { position: relative; padding: 14px clamp(12px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px); background: linear-gradient(180deg, #14110e, #0b0a09); }
.say { min-height: 5.2em; }
.say .nm { display: block; font: 600 var(--fs-small)/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .4em; }
.say p { margin: 0; font-size: var(--fs-lead); line-height: 1.35; }
.say .aside { margin-top: .4em; font-size: var(--fs-body); opacity: .8; min-height: 1.4em; }
.board { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 0 0; font-size: var(--fs-small); opacity: .9; }
.board b { color: var(--gold); margin-left: .3em; }
.btnrow { padding: 14px 0 0; display: flex; align-items: center; gap: 14px; }
.sim { padding: 12px 0 0; font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ghostbtn { font: inherit; font-size: var(--fs-small); color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
/* the living button: thin white outline, transparent inside, white text, width animates on 400ms; it answers, holds, leaves, the next arrives */
.living { position: relative; display: inline-grid; grid-template-columns: 1fr; align-items: center; justify-items: start; min-height: 46px; padding: 0 22px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px; background: transparent; color: #fff; font: 500 var(--fs-body)/1 var(--ui); letter-spacing: .04em; cursor: pointer; transition: border-color .3s, background .3s, opacity .4s, transform .4s; -webkit-tap-highlight-color: transparent; }
.living .ghost, .living .label { grid-area: 1 / 1; white-space: nowrap; }
.living .ghost { visibility: hidden; }     /* the longest label it will ever carry keeps the width; the width never jumps */
.living .label { transition: opacity .25s; }
.living:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.living.answering { border-color: rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .92); cursor: default; }
.living.answering .label { font-style: italic; }
.living.gone { opacity: 0; transform: translateY(6px); }
.living.arrive { animation: livingIn .4s ease-out; }
@keyframes livingIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* the euphoria. Off the page entirely until it is on (display:grid used to beat the hidden attribute and ate every tap). Layers, back to
   front: the Planet Zee nebula, a colour trip that cycles, the aliens' disco, Pierce's zombies and the band floating through, confetti,
   the words, the button. His clips are never filtered; the colour lives on its own layer. */
.win { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: #000; opacity: 0; transition: opacity .6s; pointer-events: none; overflow: hidden; }
.win[hidden] { display: none; }
.win.on { opacity: 1; pointer-events: auto; }
.win .sky, .win .disco { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.win .sky { transform: scale(1.08); animation: beanSky 24s ease-in-out infinite alternate; }
@keyframes beanSky { from { transform: scale(1.04) rotate(-1deg); } to { transform: scale(1.14) rotate(1.5deg); } }
.win .trip { position: absolute; inset: -20%; background: conic-gradient(from 0deg, rgba(255, 0, 128, .55), rgba(255, 200, 0, .55), rgba(0, 255, 160, .55), rgba(0, 160, 255, .55), rgba(170, 0, 255, .55), rgba(255, 0, 128, .55)); mix-blend-mode: screen; opacity: .55; animation: beanTrip 9s linear infinite, beanBreathe 3.1s ease-in-out infinite; filter: blur(40px); }
@keyframes beanTrip { to { transform: rotate(360deg); } }
@keyframes beanBreathe { 0%, 100% { opacity: .4; } 50% { opacity: .7; } }
.win .disco { opacity: .78; mix-blend-mode: lighten; animation: beanDisco 2.2s ease-in-out infinite; }
@keyframes beanDisco { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.win .orbit { position: absolute; inset: 0; pointer-events: none; }
.win .fl { position: absolute; width: clamp(150px, 22vw, 340px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .25), 0 0 40px rgba(255, 200, 87, .35); animation: beanFloat var(--d, 7s) ease-in-out infinite alternate; }
.win .fl video { width: 100%; height: 100%; object-fit: cover; display: block; }
.win .f1 { left: 4%; top: 10%; --d: 6.5s; } .win .f2 { right: 5%; top: 8%; --d: 7.5s; animation-delay: -2s; } .win .f3 { left: 6%; bottom: 10%; --d: 8s; animation-delay: -4s; }
.win .f4 { right: 6%; bottom: 12%; --d: 7s; animation-delay: -1s; } .win .f5 { left: 50%; top: 4%; margin-left: calc(clamp(150px, 22vw, 340px) / -2); --d: 9s; animation-delay: -3s; }
@keyframes beanFloat { from { transform: translateY(-14px) rotate(-3deg) scale(.98); } to { transform: translateY(16px) rotate(3deg) scale(1.04); } }
.win .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.win .wincopy { position: relative; z-index: 2; text-align: center; max-width: min(820px, 92vw); padding: 0 var(--gutter); text-shadow: 0 2px 24px rgba(0, 0, 0, .9), 0 0 60px rgba(0, 0, 0, .8); }
.win .kicker { display: block; font-size: var(--fs-small); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.win h2 { margin: 0; font-size: clamp(44px, 9vw, 120px); line-height: .92; letter-spacing: .01em; color: #fff; animation: beanPulse 1.55s ease-in-out infinite; }
@keyframes beanPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255, 200, 87, .5)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(255, 200, 87, .9)); } }
.win p { font-size: var(--fs-lead); margin: 14px auto 22px; max-width: 46ch; }
.win.sipped h2 { color: var(--gold); }
.win .winbtn { display: flex; justify-content: center; }
.win .winbtn .living { background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
@media (max-width: 700px) { .win .f3, .win .f4 { display: none; } .win .fl { width: 38vw; } }
@media (prefers-reduced-motion: reduce) { .win .trip, .win .sky, .win .disco, .win .fl, .win h2 { animation: none; } }
@media (max-width: 600px) { .who small { display: none; } .who i { width: 44px; height: 44px; } .ticket { transform: rotate(3deg) scale(.8); transform-origin: top right; } .scene { max-height: none; } }
/* the card on the Games page: Pam at her counter, the name top-left like the other games, the odds in the corner */
.bean-art { position: absolute; inset: 0; display: block; background: #1b140f; overflow: hidden; }
.bean-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; filter: saturate(.95); }
.bean-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 11, .84), rgba(7, 7, 11, 0) 55%), linear-gradient(90deg, rgba(7, 7, 11, .55), rgba(7, 7, 11, 0) 55%); pointer-events: none; }
.bean-art .odds { position: absolute; right: 6%; top: 10%; z-index: 2; font: 700 clamp(16px, 5cqw, 34px)/1 var(--display); color: var(--gold); letter-spacing: .04em; display: flex; align-items: baseline; gap: .15em; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); white-space: nowrap; }
.bean-art .odds small { font-size: .45em; font-weight: 500; opacity: .8; }
.bean-art .ttl { position: absolute; z-index: 2; left: 6%; top: 9%; text-align: left; font: 700 clamp(16px, 7.2cqw, 36px)/.94 var(--display); letter-spacing: .02em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
@container (max-width: 330px) { .bean-art .ttl { display: none; } }
