/* Alphabibi Cards funnel: layout shared by index, try, frames, thanks and claim (Front A). Built on ui.css: no new
   colours, radii or shadows here, only layout and the pieces the funnel pages share (header, footer, the stream frame,
   the channel-points panel, the chat, the catch-log grid, the channel field row, the flip). */

[hidden] { display: none !important; }
.sign, .h2 { overflow-wrap: break-word; }

/* ---- header (the .brand mark and the .foot footer are in ui.css) ---- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.top .wrap > nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top .wrap > nav a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font: 600 15px/1 var(--font-tag); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--foam); padding: 0 10px; border-radius: var(--r-s); }
.top .wrap > nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--brass); }
@media (max-width: 760px) { .top .wrap > nav a:not(.keep) { display: none; } }


/* ---- the channel field with its kraft "See your deck" tag ---- */
.cast-form { display: grid; gap: 8px; max-width: 520px; }
.cast-form .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cast-form input { flex: 1 1 220px; min-width: 0; }
.cast-form .tag { font-size: 17px; min-height: 48px; padding: 0 1.1em 0 1.9em; }
.cast-form .err:empty { display: none; }
.buy-status { margin: 10px 0 0; font-size: 15px; color: var(--foam-dim); }
.buy-status:empty { display: none; }
.buy-status a { color: var(--foam); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--foam-dim); margin: 0; }
.note .icon { margin-top: .2em; color: var(--brass); }
.tag-ex { --tag-tilt: -3deg; font-size: 12px; padding: .3em .7em .3em 1.5em; }

/* ---- the stream frame: the BRB loop as the "stream", the real overlay on top ---- */
.stream { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--lake-950); box-shadow: var(--lift); isolation: isolate; }
.stream video, .stream img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stream iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; background: transparent; pointer-events: none; }
.stream.crop { aspect-ratio: 8 / 9; }   /* phones: the middle of the stream close up (funnel.js Stage) */
.stream .tag-ex { position: absolute; left: 12px; top: 12px; z-index: 4; }
.stream.crop .tag-ex { left: auto; right: 12px; }   /* the centred catch hangs on the left half of the crop */
.stream .fallback { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.stream[data-overlay="on"] .fallback { display: none; }
/* the page's own reveal, only when the overlay doesn't answer (see funnel.js Stage) */
.fb-catch { position: absolute; left: 11%; top: 0; width: var(--w); }
.fb-hang { position: relative; transform-origin: 50% 0; }
.fb-hang::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 400px; margin-left: -1px; background: color-mix(in srgb, var(--foam) 80%, transparent); }
.fb-tag { position: absolute; left: 50%; top: 100%; margin-top: 8px; translate: -50% 0; white-space: nowrap; font-size: clamp(10px, 1.4vw, 15px); }

/* ---- the flip: a card back turning to the face ---- */
.flip { perspective: 1400px; }
.flip .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s var(--ease-swing); }
.flip.shown .in { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .face.front { transform: rotateY(180deg); }
.flip .face .cc-tilt { transform-style: flat; }
.flip .face .cc-fit { border-radius: calc(var(--r) * 1.2); box-shadow: var(--lift); }
.flip:not(.shown) .face.front, .flip.shown .face.back { pointer-events: none; }

/* ---- channel points panel and chat (the visitor's side of the stream) ---- */
.points { display: grid; gap: 14px; align-content: start; }
.reward { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r); text-align: left; cursor: pointer;
  color: var(--foam); background: linear-gradient(180deg, var(--lake-600), var(--lake-700)); box-shadow: var(--lift-s), inset 0 1px 0 rgb(255 255 255 / .12); transition: transform .2s var(--ease-out); }
.reward:hover { transform: translateY(-2px); }
.reward:active { transform: translateY(1px); }
.reward .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-s); background: var(--lake-950); color: var(--brass); font-size: 24px; }
.reward b { display: block; font: 700 20px/1.1 var(--font-tag); letter-spacing: .04em; text-transform: uppercase; }
.reward small { color: var(--foam-dim); font-size: 14px; }
.reward .cost { display: inline-flex; align-items: center; gap: 6px; font: 700 20px/1 var(--font-tag); color: var(--brass); }
.chat { margin: 0; padding: 12px 14px; list-style: none; border-radius: var(--r); background: var(--lake-950); box-shadow: inset 0 2px 8px rgb(0 0 0 / .4); font-size: 15px; line-height: 1.45; min-height: 150px; max-height: 260px; overflow: auto; display: flex; flex-direction: column; justify-content: flex-end; }
.chat li { padding: 4px 0; overflow-wrap: anywhere; }
.chat li.redeem { margin: 3px -6px; padding: 6px; border-radius: var(--r-s); background: color-mix(in srgb, var(--lake-500) 22%, transparent); }
.chat li.redeem .icon { color: var(--brass); }
.chat .sys { color: var(--foam-dim); font-style: italic; }
.chat b { font-weight: 700; }
.chat .n1 { color: var(--brass); } .chat .n2 { color: var(--reed); } .chat .n3 { color: var(--lake-300); } .chat .n4 { color: var(--kraft); } .chat .n5 { color: var(--lake-200); } .chat .n0 { color: var(--foam); }

/* ---- the catch log grid on .log paper ---- */
.log-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.log-head .h3 { color: var(--paper-ink); }
.log-head .count { font: 700 18px/1 var(--font-tag); letter-spacing: .06em; text-transform: uppercase; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--slot, 80px), 1fr)); gap: 14px 10px; justify-items: center; }
.slot { position: relative; display: grid; justify-items: center; gap: 4px; }
.slot .no { font: 600 13px/1 var(--font-tag); letter-spacing: .08em; color: var(--paper-dim); }
.slot .cc-fit { border-radius: calc(var(--r) * .7); }
.slot .missing { border-radius: calc(var(--r) * .7); }
.slot.got .no { color: var(--paper-ink); }
.slot .mark-count { bottom: 26px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--paper-dim); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { position: relative; display: inline-block; width: 16px; height: 22px; border-radius: 3px; background: var(--paper-rule); }
.legend i.l-missing { background: transparent; outline: 2px dashed var(--paper-dim); outline-offset: -2px; }
.legend i.l-new { background: var(--brass); clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); width: 22px; }

/* ---- the drop line used while something loads ---- */
.drop { display: grid; justify-items: center; gap: 14px; padding: 24px 0; text-align: center; }
.drop .ln { width: 2px; height: 90px; background: linear-gradient(var(--foam), color-mix(in srgb, var(--foam) 30%, transparent)); transform-origin: 50% 0; animation: drop 1.4s var(--ease-out) infinite alternate; }
.drop .bob { color: var(--bobber); font-size: 34px; margin-top: -18px; animation: bob 1.4s var(--ease-out) infinite alternate; }
@keyframes drop { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes bob { from { transform: translateY(-58px); } to { transform: translateY(0); } }

/* ---- sections ---- */
.sec { padding-top: 96px; }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.sec-head .h2 { margin-bottom: 14px; }
@media (max-width: 640px) { .sec { padding-top: 72px; } .foot { margin-top: 72px; } }
code { overflow-wrap: anywhere; }
