/* v11 "message" theme. Loaded last. (The file is still called brick.css; the color is now a bold orange.)
   One saturated color edge to edge, white text, a little grain. Two typefaces only: one for reading
   (DM Sans) and Caveat for handwriting.
   Dense tools (Quests, ReadiTV, forms, dialogs) sit on off-white "paper" panels.
   Sizes are fluid: the margins, the text and the sticker shrink with the window, down to a 16px gutter on phones. */
:root {
  /* The grain lightens the color a little: #C6420A shows on screen as about #CA4D0F, the brightest orange that still
     gives white text 4.5:1 (measured from a screenshot: 4.58). Brighter fails WCAG AA. */
  --bg: #C6420A; --surface: rgba(0, 0, 0, .13); --surface-2: rgba(0, 0, 0, .22); --text: #FFFFFF; --mute: #FFFFFF; --dim-text: #FFFFFF;
  --line: rgba(255, 255, 255, .26); --edge: rgba(255, 255, 255, .55); --well: rgba(0, 0, 0, .22);
  --accent: #FFE9D6; --accent-text: #FFFFFF; --on-accent: #6B2000; --focus: #fff; --logo: #fff; --brand: #FFE9D6;
  --btn-bg: #FFFFFF; --btn-fg: #7A2A04; --btn-hover: #FFEFE2;
  --btn2-bg: transparent; --btn2-fg: #fff; --btn2-line: rgba(255, 255, 255, .6); --btn2-hover: rgba(0, 0, 0, .16);
  --radius: 6px; --radius-sm: 4px; --radius-btn: 2px; --r-scale: .2; --r: 6px;
  --shadow: 0 18px 40px -22px rgba(60, 16, 0, .7);
  --f-main: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --f-hand: "Caveat", "Bradley Hand", cursive;
  --f-body: var(--f-main); --f-head: var(--f-main); --f-btn: var(--f-main); --f-msg: var(--f-main);
  --w-h: 600; --w-btn: 500; --tr-h: -.015em; --lh-h: 1.12; --msg-wt: 500; --ui-fs: 15px;
  --head-h: 0px; --bar-h: 68px; --grain: .5;
  --mx: clamp(16px, 13vw - 48px, 200px); --my: clamp(20px, 6vh, 64px);
  --msg-fs: clamp(18px, 14.6px + .52vw, 26px); --msg-lh: 1.6; --msg-w: 34em; --msg-gap: clamp(12px, 1.25vw, 18px);
  --stk: clamp(34px, 14px + 2.2vw, 58px); --stk-gap: clamp(12px, 1.5vw, 22px); --msg-fade: 130ms; --media-min: 0px;
  --paper: var(--bg); --ink: var(--text); --cream: rgba(0, 0, 0, .2); --coral: var(--accent); --coral-deep: #FFE9D6; --butter: #FFE9D6;
  --grain-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* paper: the light look, for panels that hold forms and tools */
.paper, dialog, .qb, .waitlist:not(.bare), .card-form, .done-card, .qb-pop, .mnav {
  --bg: #F6F4EE; --surface: #EDEAE3; --surface-2: #E2DFD6; --text: #161312; --mute: #57514C; --dim-text: #68625C;
  --line: rgba(22, 19, 18, .14); --edge: rgba(22, 19, 18, .3); --well: #E2DFD6;
  --accent: #CB470B; --accent-text: #B83D0A; --on-accent: #fff; --focus: #B83D0A; --brand: #CB470B;
  --btn-bg: #CB470B; --btn-fg: #fff; --btn-hover: #A83A08; --btn2-bg: transparent; --btn2-fg: #161312; --btn2-line: rgba(22, 19, 18, .3); --btn2-hover: #E2DFD6;
  --shadow: 0 18px 40px -22px rgba(60, 16, 0, .45);
  --paper: var(--bg); --ink: var(--text); --cream: #fff; --coral: var(--accent); --coral-deep: #B83D0A; --butter: #FFD5BD;
  background: var(--bg); color: var(--text);
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); padding-bottom: var(--bar-h); font-size: 17px; }
/* grain: one fixed layer over the color, under everything else. The bar carries the same layer, so the two match. */
body::before, .bar::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: soft-light; background-image: var(--grain-img); }
.bar::before { position: absolute; }
main, .end, .bar { position: relative; z-index: 1; }

/* ---------- type: one voice everywhere ---------- */
h1, h2, h3, .display, .dsp { font-family: var(--f-head); font-weight: var(--w-h); letter-spacing: var(--tr-h); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.75rem); line-height: 1.18; }
h3, .tcard :is(h2, h3) { font: var(--w-h) 1.125rem/1.3 var(--f-head); letter-spacing: -.005em; }
/* handwriting: the small notes above a heading, the accent word in a title, captions, signatures */
.eyebrow, .rules2 small { font: 600 1.5rem/1.1 var(--f-hand); letter-spacing: 0; text-transform: none; color: var(--text); }
.lbl, .label { font: 600 .8125rem/1.3 var(--f-body); letter-spacing: 0; text-transform: none; }
em.px, h1 .hand, h2 .hand { font-family: var(--f-hand); font-style: normal; font-weight: 600; font-size: 1.24em; line-height: .8; letter-spacing: 0; color: inherit; }
.fine, .hint, small { letter-spacing: 0; }

/* buttons and links you press: plain words, no capitals. Solid white, or a see-through second. */
.btn, .pill { min-height: 44px; padding: 0 18px; border-radius: var(--radius-btn); font: 500 var(--ui-fs)/1 var(--f-btn); letter-spacing: 0; text-transform: none; }
.btn.sm, .pill.sm { min-height: 44px; padding: 0 16px; font-size: var(--ui-fs); }
.pill.on { background: var(--text); color: var(--bg); }
.icon-btn { border-radius: var(--radius-btn); border-color: var(--edge); color: var(--text); }
.icon-btn:hover { background: var(--btn2-hover); color: var(--text); }
.icon-btn[disabled] { opacity: .45; pointer-events: none; }
.wl-row input, .field input, .field select, .field textarea, .search { border-radius: var(--radius-sm); }
.toast { background: #161312; color: #fff; border-radius: var(--radius-btn); top: 22px; }
.tcard, .callout, .faq details, .rules2 blockquote, .cta-band, .kit .tcard, .biglist li, .app-cta { border: 1px solid var(--line); }
.icards li, .m-card { color: #161312; } .c-green, .c-ink, .c-brick { color: #fff !important; }
html:not([data-route="quests"]) .lb-tab { display: none; }              /* the leaderboard lives on Quests only */
.lb-tab { bottom: calc(var(--bar-h) + 16px); }
.compare { bottom: calc(var(--bar-h) + 12px); } .ed-fab { bottom: calc(var(--bar-h) + 12px); } .ed { bottom: calc(var(--bar-h) + 66px); max-height: calc(100dvh - var(--bar-h) - 90px); }
.qb-err { bottom: calc(var(--bar-h) + 16px); }

/* ---------- the bar: fixed to the bottom. Logo, the waitlist field, the links. Same color and grain as the page. ---------- */
.bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); background: var(--bg); border: 0; box-shadow: 0 -1px 0 var(--line); }
.bar { box-shadow: 0 -1px 0 rgba(255, 255, 255, calc(.26 * (1 - var(--endp, 0)))); }     /* the line fades away as the end comes in. A shadow, so nothing is left behind. */
.bar > * { position: relative; z-index: 1; grid-row: 1; }
.bar .logo { color: #fff; grid-column: 1; justify-self: start; } .bar .logo img { height: 22px; }
.bar-join, .bar-apply, .bar > .metal-host { grid-column: 2; justify-self: center; }
.bar-links, .bar-legal, .bar .menu-btn { grid-column: 3; justify-self: end; }
.bar-join { display: flex; gap: 6px; align-items: center; }
/* the field is white and the button takes the field's old look (Damien, 2026-11-25) */
.bar-join input { width: 230px; height: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-btn); border: 1px solid #fff; background: #fff; color: #161312; font: 400 var(--ui-fs)/1.2 var(--f-body); }
.bar-join input::placeholder { color: #6B645E; opacity: 1; }
.on-shell .wl-row input::placeholder { color: #fff; opacity: 1; }
.bar-join .btn.primary { background: rgba(0, 0, 0, .16); border: 1px solid #fff; color: #fff; font-weight: 650; box-shadow: none; }
.bar-join .btn.primary:hover { background: rgba(0, 0, 0, .26); border-color: #fff; color: #fff; }
.bar-join input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wl-row .btn.primary, .bar-apply .j-no { font-weight: 650; }
html[data-joined] .bar-join { display: none; } html:not([data-joined]) .bar-apply { display: none; }
.bar-links, .bar-legal { display: flex; align-items: center; gap: 2px; }
.bar-links a, .bar-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-btn); font: 500 var(--ui-fs)/1 var(--f-btn); text-decoration: none; color: var(--text); transition: background var(--t); }
.bar-links a:hover, .bar-legal a:hover { background: rgba(0, 0, 0, .14); }
.bar-links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
/* as the end block comes in, the field and links fade out of the bar (they have moved up into the page) and the legal links fade in */
.bar-join, .bar-apply, .bar-links, .bar .menu-btn { opacity: calc(1 - var(--endp, 0) * 2.2); }
.bar-legal { display: none; opacity: calc(var(--endp, 0) * 2.4 - 1.4); }
html.at-end .bar-join, html.at-end .bar-apply, html.at-end .bar-links, html.at-end .bar .menu-btn, html.at-end .bar .metal-host { display: none; }
html.at-end .bar-legal { display: flex; }
.bar .menu-btn { border-radius: 50%; background: rgba(0, 0, 0, .16); color: var(--text); box-shadow: none; transition: transform .12s ease-out, background-color var(--t); }
.metal-host.is-nav { margin-left: 0; }
.fly-logo { position: fixed; z-index: 70; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; will-change: transform, opacity, filter; }
.fly-logo i { display: block; width: 100%; height: 100%; background: #fff; -webkit-mask: url("img/readi-wordmark.png") center / contain no-repeat; mask: url("img/readi-wordmark.png") center / contain no-repeat; }   /* the blur goes on the outside, the shape on the inside: a filter is applied before a mask */

/* ---------- the menu on phones: a bubble that pops out of the dot button and snaps back into it ---------- */
.mnav { position: fixed; z-index: 59; top: auto; left: auto; right: 12px; bottom: calc(var(--bar-h) + 12px); width: min(320px, calc(100vw - 24px)); padding: 8px; display: grid; gap: 2px; border: 0; border-radius: 24px; box-shadow: 0 20px 50px -14px rgba(60, 16, 0, .6); clip-path: none;
  transform-origin: calc(100% - 22px) calc(100% + 34px); transform: scale(.3); opacity: 0; transition: transform .15s cubic-bezier(.5, 0, 1, .6), opacity .13s linear; }
html.menu-open .mnav { clip-path: none; transform: none; opacity: 1; transition: transform .36s cubic-bezier(.3, 1.5, .5, 1), opacity .09s linear; }
.mnav::after { content: ""; position: absolute; right: 16px; bottom: -5px; width: 14px; height: 14px; border-radius: 3px; background: var(--bg); rotate: 45deg; }
.mnav > a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; justify-content: start; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 16px; }
.mnav > a > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--accent-text); font-size: 1.3rem; }
.mnav b { display: block; font: 600 16px/1.25 var(--f-body); letter-spacing: 0; } .mnav small { display: block; font-size: 13.5px; line-height: 1.3; color: var(--mute); }
.mnav-more { display: flex; flex-wrap: wrap; margin: 4px 0 0; padding: 4px 4px 0; border-top: 1px solid var(--line); }
.mnav-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px; font-size: 14.5px; color: var(--mute); text-decoration: none; }
html.menu-open .mnav > * { animation: bub .34s cubic-bezier(.3, 1.4, .5, 1) backwards; }
html.menu-open .mnav > :nth-child(2) { animation-delay: 25ms; } html.menu-open .mnav > :nth-child(3) { animation-delay: 50ms; } html.menu-open .mnav > :nth-child(4) { animation-delay: 75ms; } html.menu-open .mnav > :nth-child(5) { animation-delay: 100ms; }
@keyframes bub { from { opacity: 0; transform: translateY(10px) scale(.92); } }

/* ---------- home: the message ---------- */
html[data-route="home"] body { overflow: hidden; padding-bottom: 0; }
.mhome { position: fixed; z-index: 1; inset: 0 0 var(--bar-h) 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: var(--my) var(--mx) 0; touch-action: none; }
/* the stage clips what rolls out of view. It is a little bigger than the text so the sticker's edge is never cut. */
.msg-stage { position: relative; min-height: 0; overflow: hidden; margin: -16px -8px 0; }
.msg-stage[data-rolled] { -webkit-mask-image: linear-gradient(transparent, #000 30px); mask-image: linear-gradient(transparent, #000 30px); }
.msg-roll { position: absolute; inset: 16px 8px 0; transition: transform .34s cubic-bezier(.22, 1, .36, 1); }
.msg-page { position: absolute; top: 0; right: 0; left: calc(var(--stk) + var(--stk-gap)); min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(var(--media-min), 1fr); gap: clamp(16px, 3vh, 28px); opacity: 0; transform: translateY(-6px); }
.msg-page.on { opacity: 1; transform: none; transition: opacity var(--msg-fade) ease-out, transform calc(var(--msg-fade) * 1.6) cubic-bezier(.22, 1, .36, 1); }
.msg-page.out { opacity: 0; transform: translateY(5px); transition: opacity calc(var(--msg-fade) * .7) ease-in, transform calc(var(--msg-fade) * .7) ease-in; }
.msg-text { display: grid; gap: var(--msg-gap); max-width: var(--msg-w); font: var(--msg-wt) var(--msg-fs)/var(--msg-lh) var(--f-msg); letter-spacing: -.005em; }
.msg-text .b { font: inherit; letter-spacing: inherit; margin: 0; text-wrap: pretty; }
.stk { position: absolute; z-index: 2; left: 0; top: 0; width: var(--stk); height: auto; margin-top: calc((var(--msg-fs) * var(--msg-lh) - var(--stk) * 1.22) / 2); filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); pointer-events: none; }
/* media under the text. Nothing shows below the progress line. */
.msg-media { min-height: 0; display: flex; align-items: flex-start; gap: 22px; container-type: size; overflow: hidden; padding: 6px 4px 0; }
.msg-media .pol { position: relative; inset: auto; flex: none; width: min(190px, 46cqh, 31cqw); margin-left: -18px; } .msg-media .pol:first-child { margin-left: 0; }
.m-photo img { height: min(100%, 300px); width: auto; max-width: 100%; object-fit: cover; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.m-app .lphone { margin: 0; font-size: min(7.4px, calc(100cqh / 65)); flex: none; }
.m-chat { align-self: flex-start; display: grid; gap: 8px; padding: 14px; border-radius: 12px; width: 250px; font-size: 14px; line-height: 1.35; box-shadow: var(--shadow); }
.m-chat small { font: 600 1.1rem/1 var(--f-hand); color: var(--mute); }
.m-chat p { display: flex; gap: 8px; align-items: center; } .m-chat img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.m-chat .match { justify-content: center; padding: 8px; border-radius: 99px; background: #161312; color: #fff; font-weight: 600; }
.m-row { align-items: flex-start; flex-wrap: wrap; }
.m-pols { padding: 16px 16px 0; margin-left: -12px; }
.m-num { display: grid; justify-items: center; gap: 6px; padding: 12px 14px; background: #1B1B1F; color: #F4F4F5; border-radius: 12px; }
.m-num small { font-size: 12px; font-weight: 500; color: #D4D4D8; } .m-num b { display: flex; gap: 4px; }
.m-num i { font: 600 2rem/1 var(--f-body); font-style: normal; width: 40px; height: 54px; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(#34343A 49%, #111 49% 52%, #2A2A2F 52%); }
.m-squad { display: grid; justify-items: start; gap: 2px; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 15px; } .m-squad small { color: var(--mute); }
.m-squad .avs { display: flex; margin-bottom: 6px; } .m-squad .avs img { width: 36px; height: 36px; border-radius: 50%; margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); } .m-squad .avs img:first-child { margin-left: 0; }
.m-card { display: grid; justify-items: center; gap: 8px; align-content: center; width: 150px; height: 112px; border-radius: var(--radius); text-align: center; font-size: 15px; } .m-card i { font-size: 1.6rem; }
.msg-media .coin { width: 84px; height: 84px; font-size: 2.2rem; flex: none; animation-duration: calc(11s * var(--m)); }
.m-health { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; width: 240px; box-shadow: var(--shadow); }
.m-health p { display: grid; grid-template-columns: 28px 52px 1fr; gap: 8px; align-items: center; font-size: 14px; } .m-health img { width: 28px; height: 28px; border-radius: 50%; }
.m-health u { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2E9E52 var(--h), var(--surface-2) 0); } .m-health u.low { background: linear-gradient(90deg, #CB470B var(--h), var(--surface-2) 0); }
/* progress: one line along the bottom, from the text's left edge to the right margin. It is as thick as the
   horizontal strokes of the letters above it (DM Sans 500: 0.0825em, measured), so it reads as part of the text. */
.msg-foot { height: 34px; display: grid; align-content: end; padding: 0 0 16px calc(var(--stk) + var(--stk-gap)); }
.prog-line { height: calc(var(--msg-fs) * .0825); background: rgba(255, 255, 255, .24); }
.prog-line i { display: block; height: 100%; width: var(--p, 0%); background: #fff; transition: width .28s cubic-bezier(.22, 1, .36, 1); }
/* the two step buttons are for keyboard and screen reader users: they show only when focused */
.msg-ctl { position: absolute; right: var(--mx); bottom: 12px; display: flex; gap: 6px; opacity: 0; pointer-events: none; }
.msg-ctl:focus-within { opacity: 1; pointer-events: auto; }

/* first page: the waitlist field sits under the text, and the bar has neither the field nor its top line.
   From the second page on the field is in the bar (msg.js flies it there). */
.msg-page.has-join { grid-template-rows: auto auto minmax(var(--media-min), 1fr); }
.home-join { display: flex; }
html[data-route="home"].home-first .bar > .bar-join, html[data-route="home"].home-first .bar > .bar-apply, html[data-route="home"].home-first .bar > .metal-host { visibility: hidden; }
html[data-route="home"].home-first .bar { box-shadow: none; }
.msg-media .pol:only-child { width: min(260px, 74cqh, 72cqw); }                 /* one photo can be bigger than three */
.m-badges { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 0; }
/* the badges with a few words under each: a name, what it's for, and when it was earned (or how close you are) */
.m-badgeset { flex: none; display: grid; grid-template-rows: minmax(0, 1fr) auto; width: min(560px, 100cqw - 270px); height: min(290px, 100cqh); }
.m-badge-text { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 14px; text-align: center; color: #fff; }
.m-badge { grid-row: span 3; display: grid; grid-template-rows: subgrid; justify-items: center; align-items: start; row-gap: 4px; }   /* names, lines and statuses line up across the three */
.m-badge b { font: 600 17px/1.2 var(--f-body); letter-spacing: -.01em; }
.m-badge p { margin: 0; font-size: 14px; line-height: 1.35; text-wrap: balance; }
.m-earned, .m-prog { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font: 600 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.m-earned i { font-size: 12px; }
.m-prog { flex-wrap: wrap; justify-content: center; row-gap: 5px; } .m-earned span, .m-prog span { white-space: nowrap; }   /* on a narrow column the bar sits above the words instead of breaking them */
.m-prog u { position: relative; display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.m-prog u::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: #fff; }
/* the 3D canvas reaches --bpad past the box on every side (and past the media row's clip), so a turning or growing badge is never cut off */
.m-badges { --bpad: 36px; } .msg-media:has(.m-badges) { overflow: visible; }
.m-badges > div { inset: calc(var(--bpad) * -1) !important; pointer-events: none; }
.m-badges canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; } .m-badges.gl .coin { visibility: hidden; }
/* reveal: lines you have not reached yet are dim. They light up the first time you reach them and stay lit.
   Dim text is under 4.5:1 on purpose; every line is at full strength once it is reached. */
.msg-text .b { transition: opacity .3s ease; }
.msg-text .b[data-unread] { opacity: .4; }

/* ---------- the end block: the last step of the message, and the footer of every other page ---------- */
.end { padding: clamp(56px, 10vh, 120px) var(--mx) 36px; min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
html[data-route="home"] .end { position: fixed; z-index: 2; inset: 0 0 var(--bar-h) 0; min-height: 0; padding: var(--my) var(--mx) 20px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.end-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px clamp(32px, 6vw, 96px); align-items: center; width: 100%; max-width: 1180px; }
.end-brand { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vh, 24px); justify-items: start; min-width: 0; }
/* the wordmark, with the globe behind it: a little above center, on the right, like a sun coming up behind the name */
.end-logo { position: relative; width: min(100%, 560px); aspect-ratio: 1462 / 368; margin-top: min(26%, 146px); }
.end-wipe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.end-word { position: relative; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; background: #fff; -webkit-mask: url("img/readi-wordmark.png") center / contain no-repeat; mask: url("img/readi-wordmark.png") center / contain no-repeat; object-fit: none; object-position: -9999px 0; }
.end .globe-slot { position: absolute; z-index: 0; left: 30%; bottom: -24%; width: 58%; height: auto; aspect-ratio: 1; transform-origin: 50% 70%; }
.end .globe { width: 150%; height: 150%; opacity: .66; cursor: crosshair; }
.end-line { font: 600 clamp(26px, 20px + 1vw, 34px)/1.1 var(--f-hand); margin: 4px 0 0; text-wrap: balance; }
.waitlist.bare.on-shell { width: min(460px, 100%); }
.on-shell .wl-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.on-shell .wl-row input { background: rgba(0, 0, 0, .14); color: var(--text); border-color: var(--edge); }
.on-shell .wl-more { padding: 16px; border-radius: var(--radius); background: #F6F4EE; color: #161312; --text: #161312; --bg: #F6F4EE; --mute: #57514C; --dim-text: #68625C; --edge: rgba(22, 19, 18, .3); --line: rgba(22, 19, 18, .14); --surface: #EDEAE3; --surface-2: #E2DFD6; --focus: #B83D0A; --accent: #CB470B; --accent-text: #B83D0A; }
.on-shell .wl-ok { font-family: var(--f-body); font-weight: 600; }
/* the links: a square block, then the name, then one line about it. Nothing moves on hover. */
.end-links { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vh, 44px) clamp(18px, 3vw, 40px); }
.end-links a { display: grid; gap: 5px; justify-items: start; align-content: start; color: var(--text); text-decoration: none; }
.end-links .tile { width: clamp(60px, 44px + 3.4vw, 92px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 8px; border-radius: var(--radius); background: #fff; color: var(--bg); font-size: clamp(26px, 18px + 1.5vw, 40px); transition: background-color var(--t); }
.end-links b { font: 600 1.0625rem/1.25 var(--f-body); }
.end-links a > span:not(.tile) { font-size: .9375rem; line-height: 1.45; max-width: 17em; }
.end-links a:hover .tile, .end-links a:focus-visible .tile { background: var(--accent); }
.end-links a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.end-fine { grid-column: 1 / -1; font-size: .875rem; margin: 0; }
.end-fine a { color: inherit; text-underline-offset: 3px; }

/* ---------- the other pages: the same column, sticker and type as the message ---------- */
.page, .page.narrow, .page.wide { max-width: none; margin: 0; min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); padding: var(--my) var(--mx) clamp(64px, 9vw, 110px) calc(var(--mx) + var(--stk) + var(--stk-gap)); text-align: left; }
.page > * { max-width: 1000px; }
.page .page-hero, .page.center .page-hero, .page.wide .page-hero { justify-items: start; text-align: left; gap: var(--msg-gap); margin-bottom: clamp(32px, 5vw, 56px); }
/* the title is the first line of a message from Damien, with his sticker beside it */
.page h1 { position: relative; max-width: 20em; font: var(--msg-wt) calc(var(--msg-fs) * 1.5)/1.2 var(--f-msg); letter-spacing: -.015em; text-wrap: balance; }
.page h1::before, .tv-title::before, .watch-meta h1::before { content: ""; position: absolute; left: calc((var(--stk) + var(--stk-gap)) * -1); top: calc((var(--msg-fs) * 1.8 - var(--stk) * 1.22) / 2); width: var(--stk); aspect-ratio: 498 / 608; background: url("img/damien-cut.png") center / contain no-repeat; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.lead, .sec-sub { max-width: var(--msg-w); font: var(--msg-wt) var(--msg-fs)/var(--msg-lh) var(--f-msg); letter-spacing: -.005em; color: var(--text); text-wrap: pretty; }
.sec-sub { font-size: 1.0625rem; font-weight: 400; line-height: 1.55; }
.band { justify-items: start; text-align: left; margin-top: clamp(56px, 8vw, 96px); }
.band h2 { max-width: 22em; }
.doc { justify-content: start; grid-template-columns: 200px minmax(0, 640px); }
.toc a { color: var(--text); } .toc .eyebrow { margin-bottom: 4px; }
.doc-body h2, .callout h2, .plain h2, .card-form h2, .done-card h2 { font: var(--w-h) 1.375rem/1.2 var(--f-head); letter-spacing: var(--tr-h); }
.page.narrow > .callout, .callout { justify-items: start; text-align: left; }
.page.narrow > .callout { max-width: 640px; }
.card-form, .done-card, .plain.left, .faq, .apply-note { margin-left: 0; margin-right: 0; }
/* a message on the background, like home (The Bridge) */
.note { margin-top: calc(var(--msg-gap) * -1 + 4px); } .note .sign { font: 600 calc(var(--msg-fs) * 1.7)/1 var(--f-hand); margin-top: 6px; }
.note-cta { display: grid; gap: 10px; justify-items: start; margin-top: clamp(24px, 4vw, 40px); }
.page > .card-form, .page > .done-card, .page > [data-apply-need] { max-width: 620px; }
.faq { max-width: 720px; }
.page-hero .search { width: min(520px, 100%); }
.thanks, .lost { justify-items: start; text-align: left; align-content: start; }
.lost { min-height: calc(92svh - var(--bar-h)); align-content: center; } .lost h1 { font-size: calc(var(--msg-fs) * 2.2); line-height: 1.1; }
.thanks .cta-row, .cta-row { justify-content: flex-start; }
.thanks .tickc { margin: 0; }
.cta-band { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); width: 100%; max-width: 640px; }
.nos { justify-content: flex-start; }
.trio, .quad, .kit { margin-left: 0; margin-right: 0; } .quad { text-align: left; margin-top: 28px; }
.tcard, .founder { justify-items: start; text-align: left; } .founder { justify-content: start; }
.tcard .n { font: 600 1.6rem/1 var(--f-hand); letter-spacing: 0; color: var(--text); }
.story p { font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); line-height: 1.3; }
.faq summary { font-weight: 500; }
.quad h3, .band h3 { font: var(--w-h) 1.125rem/1.3 var(--f-head); letter-spacing: -.005em; }
.invite-hero, .invite-copy { text-align: left; justify-items: start; } .invite-copy .cta-row { justify-content: flex-start; }
/* ---------- ReadiTV: on the background, in the same column as every other page ---------- */
.tv-wrap { max-width: none; margin: 0; min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); padding: var(--my) var(--mx) clamp(64px, 9vw, 110px) calc(var(--mx) + var(--stk) + var(--stk-gap)); }
.tv-wrap > * { max-width: 1060px; }
.tv-title { position: relative; text-align: left; font: var(--msg-wt) calc(var(--msg-fs) * 1.5)/1.2 var(--f-msg); letter-spacing: -.015em; }
.tv-sub { text-align: left; margin: var(--msg-gap) 0 0; max-width: var(--msg-w); font: var(--msg-wt) var(--msg-fs)/var(--msg-lh) var(--f-msg); letter-spacing: -.005em; }
.topics, .tv-tools, .tv-group { justify-content: flex-start; text-align: left; }
.topics { margin-top: clamp(24px, 4vw, 36px); } .topics .pill.on { background: #fff; color: var(--btn-fg); border-color: #fff; }
.tv-group { font: var(--w-h) 1.375rem/1.2 var(--f-head); letter-spacing: var(--tr-h); border-top-color: var(--line); }
.tv-group small { font-weight: 500; }
.tv-row { border-top-color: var(--line); }
.tv-thumb, .player { background: #1A110D; border-color: transparent; } .tv-thumb .len { background: #161312; color: #fff; } .tv-thumb .play { background: #fff; color: #161312; border-color: transparent; }
.tv-meta h3 { font: var(--w-h) clamp(1.25rem, 1rem + .9vw, 1.6rem)/1.15 var(--f-head); letter-spacing: var(--tr-h); }
.tv-meta .label, .watch-meta .label { font: 600 1.35rem/1.1 var(--f-hand); }
.watch-meta h1 { font: var(--msg-wt) calc(var(--msg-fs) * 1.5)/1.2 var(--f-msg); letter-spacing: -.015em; }
.upnext a { border-top-color: var(--line); } .upnext small { color: var(--text); } .upnext img { border-color: transparent; }
.player-error { background: var(--surface); border-color: var(--line); }

/* ---------- Quests: create a Quest, laid out like Luma's create-event page. Dark, like the room the card hangs in.
   Laptop: the form on the left, the card on the right, all on one screen. Phone: tabs, the card, its buttons, then the form. ---------- */
.quest { --bg: #09090A; --surface: rgba(255, 255, 255, .07); --surface-2: rgba(255, 255, 255, .13); --text: #F4F3F0; --mute: #A9A8A5; --dim-text: #A9A8A5; --line: rgba(255, 255, 255, .1); --edge: rgba(255, 255, 255, .36);
  --accent: #FF8B52; --accent-text: #FF9B6A; --focus: #FFFFFF; --coral-deep: #FF9B8A;
  --btn-bg: #F4F3F0; --btn-fg: #141414; --btn-hover: #FFFFFF; --btn2-bg: transparent; --btn2-fg: #F4F3F0; --btn2-line: rgba(255, 255, 255, .4); --btn2-hover: rgba(255, 255, 255, .1);
  position: relative; display: grid; grid-template-columns: minmax(340px, 500px) minmax(320px, 620px); justify-content: center; gap: 0 clamp(16px, 4vw, 64px);
  height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h)); min-height: 600px; padding: 0 24px; background: var(--bg); color: var(--text); color-scheme: dark; text-align: left; }
.quest :focus-visible { border-radius: 10px; }
.quest-side { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; min-height: 0; padding: clamp(16px, 3vh, 32px) 0 16px; }
.quest-tabs { justify-self: start; display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); }
.quest-tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--mute); font: 500 15px/1 var(--f-body); cursor: pointer; }
.quest-tabs [aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.quest-form, .quest-list { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; min-height: 0; overflow-y: auto; padding: 4px; margin: -4px; scrollbar-width: thin; }
.quest-form > form { display: contents; }
.quest-name input { width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: 600 clamp(1.9rem, 1.2rem + 1.5vw, 2.5rem)/1.15 var(--f-head); letter-spacing: -.02em; }
.quest-name input::placeholder, .quest-signin input::placeholder { color: #8F8E8B; opacity: 1; }
.quest-lead { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.45; }
.quest-fine { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.45; } .quest-fine i { vertical-align: -1px; }
/* rows, grouped in blocks like Luma's */
.q-block { border-radius: 12px; background: var(--surface); }
.q-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 14px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 500 16px/1.3 var(--f-body); text-align: left; }
.q-row + .q-row { box-shadow: inset 0 1px 0 var(--line); }
button.q-row { cursor: pointer; } button.q-row:hover:not(:disabled) { background: rgba(255, 255, 255, .05); } button.q-row:disabled { cursor: default; color: var(--text); }
.q-row > i { flex: none; width: 20px; text-align: center; font-size: 1.2rem; color: var(--mute); }
.q-lab { flex: none; width: 56px; color: var(--mute); }
.q-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; } .q-val.is-empty { color: var(--mute); }
.q-row > .q-car { font-size: 1rem; }
/* the three places: dots joined by a dotted line, the main one filled in */
.q-row > .q-dot { position: relative; height: 10px; }
.q-dot::before { content: ""; position: absolute; left: 5px; top: 0; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--mute); }
.q-dot.on::before { background: var(--text); border-color: var(--text); }
.q-stops .q-row + .q-row .q-dot::after { content: ""; position: absolute; left: 9.25px; bottom: calc(100% + 2px); height: 38px; border-left: 1.5px dotted rgba(255, 255, 255, .32); }
.q-when input { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font: 500 15px/1 var(--f-body); }
.q-when input:disabled { opacity: 1; background: none; }
.q-who .qb-seats { flex: 1; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
.q-who .qb-seat, .q-who .qb-seat img { width: 44px; height: 44px; } .q-who .qb-seat { margin: 0; font-size: 1rem; } .q-who .qb-seat span { display: none; }
.quest-go { width: 100%; min-height: 52px; border-radius: 12px; font-size: 17px; font-weight: 600; }
.quest-links { display: grid; gap: 4px; padding: 6px 14px; border-radius: 12px; background: var(--surface); } .quest-links > div { display: flex; flex-wrap: wrap; gap: 0 20px; }
.quest-links .link-btn { min-height: 44px; color: var(--text); font-size: 15px; }
/* Templates and My Quests: lists like Luma's events page (the day on the left, a card with a picture on the right) */
.ql-item { display: grid; } .ql-item.dated { grid-template-columns: 86px minmax(0, 1fr); gap: 0 14px; }
.ql-date { position: relative; padding-top: 14px; } .ql-date b { display: block; font: 600 16px/1.2 var(--f-body); } .ql-date small { color: var(--mute); font-size: 14px; }
.ql-date::after { content: ""; position: absolute; right: -2px; top: 26px; bottom: -14px; border-right: 1.5px dashed rgba(255, 255, 255, .22); }
.ql-date::before { content: ""; position: absolute; z-index: 1; right: -6px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #777674; }
.ql-card { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; align-items: start; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ql-card:hover { border-color: var(--edge); } .quest .ql-card:focus-visible { border-radius: 14px; }
.ql-text { display: grid; gap: 4px; min-width: 0; } .ql-text small { color: var(--mute); font-size: 14px; } .ql-text b { font: 600 18px/1.25 var(--f-body); }
.ql-text > span { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--mute); font-size: 15px; }
.ql-text em { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); font: 500 14px/1 var(--f-body); }
.ql-thumb { width: 84px; height: 84px; border-radius: 10px; background: #3A2A22 center / cover; }
.quest-gate { display: grid; justify-items: start; gap: 10px; padding: 22px; border-radius: 14px; background: var(--surface); }
.quest-gate > i { font-size: 1.8rem; color: var(--accent); } .quest-gate h2 { margin: 0; font: 600 1.25rem/1.2 var(--f-head); letter-spacing: -.01em; } .quest-gate p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.5; }
.quest-signin { display: flex; gap: 8px; width: 100%; }
.quest-signin input { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text); font: 400 16px/1 var(--f-body); }
/* the card: black, with a soft pool of dark grey light where it hangs, so it reads as floating in space */
.quest-stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.quest-card { position: relative; display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); container-type: size; min-height: 0; padding: clamp(20px, 5vh, 56px) 12px clamp(8px, 2vh, 18px); background: radial-gradient(closest-side, #2E2D2C, #1A1A1A 52%, #09090A); cursor: pointer; }
/* The Flick Card (flick.js): drag or flick it to spin, tap it to turn it over. Sized to the stage. */
.qcard3 { position: relative; width: min(380px, 100%, calc(100cqh * 5 / 7)); height: auto; aspect-ratio: 5 / 7; perspective: 1100px; touch-action: pan-y; -webkit-user-select: none; user-select: none; border-radius: 22px; outline: none; cursor: default; }
.qcard3:focus-visible { border-radius: 22px; outline-offset: 6px; }
.fk-tilt, .fk-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.fk-tilt { transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
.fk-card { cursor: grab; } .qcard3:active .fk-card { cursor: grabbing; }
.fk-edge { position: absolute; inset: 0; border-radius: 22px; background: #CFC2AD; }
.fk-shadow { position: absolute; left: 8%; right: 8%; bottom: -26px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .75); filter: blur(12px); pointer-events: none; }
.fk-light { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fk-shade { position: absolute; inset: 0; background: #000; opacity: 0; }
.fk-band { flex: none; width: 33%; height: 220%; background: #fff; opacity: 0; }
.qc-face.qc-back { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 26px 22px; background: radial-gradient(120% 80% at 50% 0%, #D9551A, #C6420A 55%, #A9370A); color: #fff; text-align: center; border-color: rgba(0, 0, 0, .2); }
.qc-back::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 14px; pointer-events: none; }
.qc-back-top { font: 700 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.qc-back-mark { width: 68%; aspect-ratio: 1462 / 368; background: #fff; -webkit-mask: url("img/readi-wordmark.png") center / contain no-repeat; mask: url("img/readi-wordmark.png") center / contain no-repeat; }
.qc-back-line { font: 500 1.35rem/1.1 var(--f-hand); }
.qc-face { border-radius: 18px; background: #FBF7EE; }
.qc-places { display: flex; gap: 6px; } .qc-place { flex: .62; } .qc-place.main { flex: 3; }
.qc-front [data-qc-go] { cursor: pointer; } .qc-when { margin: 0; }
.qc-front .is-empty { border: 2px dashed rgba(22, 19, 18, .42); border-radius: 10px; background: rgba(22, 19, 18, .04); color: #5A534C; }
.qc-front h2.is-empty { padding: 8px 12px; font-size: 1.1rem; } .qc-when.is-empty { padding: 6px 12px; }
.qc-place.is-empty { align-content: center; text-align: center; } .qc-place.is-empty::before { display: none; } .qc-place.is-empty small { color: inherit; }
.qc-seat.next { border-color: #B83D0A; }
/* under the card: calendar and share; for a card someone sent you, also save and make your own */
.quest-under { display: grid; justify-items: center; gap: 10px; padding: 0 12px clamp(16px, 3vh, 30px); color: var(--mute); font-size: 13px; text-align: center; }
.quest-under-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quest-under p { margin: 0; min-height: 1.5em; } .quest-under p i { color: #6FCF8E; vertical-align: -2px; font-size: 1.15em; } .quest-under p[data-k="saved"] { color: var(--text); }
.quest-under .btn[aria-disabled="true"] { opacity: .45; }
.quest-x, .quest-from { display: none; }
/* a card someone sent you: this block alone, over the blurred page */
.quest-veil { position: fixed; z-index: 140; inset: 0; background: rgba(6, 6, 7, .66); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html.quest-shared main { z-index: 150; } html.quest-shared .toast { z-index: 160; }
html.quest-shared .quest-stage { position: fixed; z-index: 141; inset: 0; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px 16px max(18px, env(safe-area-inset-bottom)); }
html.quest-shared .quest-card { justify-self: center; width: min(100%, 560px); background: radial-gradient(closest-side, rgba(70, 68, 66, .5), transparent); cursor: default; }
html.quest-shared .quest-x { display: grid; position: absolute; z-index: 2; right: 14px; top: 14px; color: var(--text); border-color: var(--edge); }
html.quest-shared .quest-from { display: block; margin: 0; padding: 8px 56px 0; text-align: center; color: var(--text); font: 500 1.9rem/1.1 var(--f-hand); }
/* the pickers (a light sheet, like Luma's) */
.qb-sheet { position: fixed; margin: 0; padding: 0; width: min(460px, calc(100vw - 24px)); max-height: min(560px, calc(100svh - 24px)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 28px 70px -22px rgba(0, 0, 0, .8); text-align: left; }
.qb-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.qb-sheet.pop { right: auto; bottom: auto; } .qb-sheet.pop[open] { animation: popin calc(.2s * var(--m)) var(--spring); transform-origin: top left; }
.qb-sheet.sheet-b { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; max-height: 82vh; max-height: 82svh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheetup calc(.3s * var(--m)) var(--ease); }
.qb-sheet::backdrop { background: rgba(0, 0, 0, .3); } .qb-sheet.sheet-b::backdrop { background: rgba(0, 0, 0, .55); }
.qb-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 8px 18px; } .qb-sheet-head h2 { margin: 0; font: 600 1.1rem/1.25 var(--f-head); letter-spacing: -.01em; }
.qb-sheet-body { display: grid; align-content: start; gap: 10px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 18px; }
.qb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); background: #fff; color: var(--text); font: 500 14px/1 var(--f-body); cursor: pointer; }
.qb-chip i { font-size: 1.15rem; color: var(--accent); }
.qb-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); } .qb-chip[aria-pressed="true"] i { color: inherit; }
.qb-list { display: grid; gap: 6px; max-height: none; overflow: visible; padding: 0; }
.qb-pl { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.qb-pl b { flex: 1; min-width: 0; font-weight: 600; } .qb-pl small { flex: none; max-width: 48%; color: var(--mute); font-size: 12px; text-align: right; }
.qb-pl:hover, .qb-chip:hover { border-color: var(--text); } .qb-pl[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.qb-sheet .qb-own { justify-self: start; }
@media (max-width: 480px) {
  .q-when .q-lab { display: none; } .q-when input { padding: 0 8px; }                       /* room for the whole date and time on a phone */
  .q-who .q-lab { width: auto; } .q-who .qb-seats { gap: 5px; }
  .ql-item.dated { grid-template-columns: minmax(0, 1fr); gap: 6px; } .ql-date { padding: 4px 2px 0; } .ql-date b, .ql-date small { display: inline; } .ql-date small::before { content: " · "; } .ql-date::before, .ql-date::after { display: none; }
  .ql-card { grid-template-columns: minmax(0, 1fr) 68px; } .ql-thumb { width: 68px; height: 68px; }
}
@media (max-width: 480px) { .quest-under-row { gap: 6px; } .quest-under .btn { padding: 0 10px; font-size: 14px; } .quest-under .btn i { display: none; } html.quest-shared .quest-from { font-size: 1.55rem; padding: 12px 52px 0; } }
@media (max-width: 899px) {
  .quest { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; padding: 0 16px 28px; }
  .quest-side { display: contents; }
  .quest-tabs { order: 1; margin-top: 14px; } .quest-stage { order: 2; } .quest-form, .quest-list { order: 3; overflow: visible; }
  .quest-card { height: min(40vh, 330px); height: min(40svh, 330px); padding: 10px 0 6px; }   /* a small "cover", so the name and the first rows show under it */
  .quest-under { padding-bottom: 14px; }
  html.quest-shared .quest-card { height: auto; }
}
.qb .eyebrow, dialog .eyebrow, .card-form .eyebrow { color: var(--accent-text); }

/* ---------- phones and small windows. Like Notion's phone site: a 16px gutter, one column, full-width buttons, a compact bar. ---------- */
@media (max-width: 899px) {
  :root { --bar-h: 64px; --media-min: clamp(120px, 24vh, 190px); --my: clamp(16px, 3.4vh, 28px); --stk: 30px; --stk-gap: 10px; }
  .bar { gap: 8px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .bar-links, .bar .bar-join input { display: none; }
  .home-join .bar-join { width: 100%; } .home-join .bar-join input { flex: 1 1 0; width: 0; min-width: 0; }
  .bar .menu-btn { display: grid; }
  .bar-legal { grid-column: 1 / -1; justify-self: stretch; margin: 0 -8px; justify-content: space-between; } .bar-legal a { padding: 0 8px; }
  html.at-end .bar .logo { display: none; }
  .end, html[data-route="home"] .end { align-items: start; padding-bottom: 28px; }
  .end-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .end-logo { width: min(100%, 420px); margin-top: min(24%, 100px); }
  .end-links { gap: 26px 16px; }
  .m-chat { display: none; } .m-health { width: 190px; } .m-badgeset { width: 100cqw; height: min(250px, 100cqh); } .m-badges { --bpad: 14px; } .m-badgeset ~ .m-health { display: none; } .m-badge-text { gap: 0 8px; } .m-badge b { font-size: 15px; } .m-badge p { font-size: 13px; } .m-earned, .m-prog { font-size: 10px; letter-spacing: .08em; } .m-prog u { width: 28px; } .m-row { flex-wrap: nowrap; gap: 8px; } .m-card { width: auto; flex: 1; height: 84px; font-size: 13px; } .m-num i { width: 30px; height: 42px; font-size: 1.5rem; } .m-squad { padding: 10px 12px; font-size: 13px; }
  .msg-media { gap: 12px; } .msg-media .coin { width: 60px; height: 60px; font-size: 1.6rem; }
  .compare { display: none; }
  .page, .page.narrow, .page.wide { padding-right: var(--mx); padding-bottom: 72px; }
  .doc { grid-template-columns: 1fr; }
  .tv-wrap { padding-right: var(--mx); padding-bottom: 72px; }
  .page .btn.primary, .cta-band .btn, .callout .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 599px) { .end .wl-row, .page .wl-row { flex-direction: column; } .end .wl-row .btn, .page .wl-row .btn { width: 100%; } }
@media (max-width: 359px) { .bar-legal a:last-child { display: none; } .bar .logo img { height: 18px; } .bar .btn.sm { padding: 0 12px; } }
/* short windows (a phone on its side): tighter rhythm, and the media can go */
@media (max-height: 560px) { :root { --my: 16px; --msg-gap: 8px; --msg-lh: 1.45; --media-min: 0px; } .end-logo { margin-top: min(18%, 80px); } }
@media (max-height: 480px) { .msg-media { display: none; } }
@media (prefers-reduced-motion: reduce) { :root { --msg-fade: 260ms; } .mnav, html.menu-open .mnav { transition-duration: .2s, .1s; } }

/* preview tools can be tucked away: one small button in the corner brings them back */
.tools-show { display: none; position: fixed; z-index: 81; left: 12px; bottom: calc(var(--bar-h) + 12px); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: #18181B; color: #F4F4F5; place-items: center; opacity: .55; cursor: pointer; transition: opacity var(--t); }
.tools-show:hover, .tools-show:focus-visible { opacity: 1; }
.tools-show::before { content: ""; position: absolute; inset: -4px; }   /* 44px tap area */
html[data-tools-hidden] .compare, html[data-tools-hidden] .ed-fab, html[data-tools-hidden] .ed { display: none; }
html[data-tools-hidden]:not([data-clean]) .tools-show { display: grid; }
.compare .seg-reset { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- after joining: your place in line and your link ---------- */
.spot { gap: 18px; }
.spot-h { display: grid; gap: 2px; margin: 0; font: var(--w-h) clamp(1.9rem, 1.2rem + 2vw, 2.8rem)/1.08 var(--f-head); letter-spacing: var(--tr-h); }
.spot-n { font-size: 1.6em; line-height: 1; font-variant-numeric: tabular-nums; }
.spot-card { display: grid; gap: 14px; width: 100%; max-width: 640px; padding: clamp(18px, 3vw, 28px); border-radius: 16px; }
.spot-card h2 { margin: 0; font: var(--w-h) 1.375rem/1.2 var(--f-head); letter-spacing: var(--tr-h); } .spot-card > p { margin: 0; }
.spot-link { display: flex; gap: 8px; } .spot-link input { flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--edge); background: #fff; color: var(--text); font: 400 15px/1 var(--f-body); }
.spot-ways { display: flex; flex-wrap: wrap; gap: 8px; } .spot-ways .btn { gap: 6px; }
.spot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 0; }
.spot-stats div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface); } .spot-stats dt { font-size: 13px; color: var(--mute); } .spot-stats dd { margin: 0; font: 650 1.4rem/1 var(--f-body); font-variant-numeric: tabular-nums; } .spot-stats small { font-size: 13px; font-weight: 500; color: var(--mute); }
.spot-lock { display: flex; align-items: center; gap: 8px; margin: 0; }
.spot-apply { display: grid; justify-items: start; gap: 12px; } .spot-apply h2 { margin: 0; font: var(--w-h) 1.375rem/1.2 var(--f-head); } .spot-apply:focus { outline: none; }
@media (max-width: 599px) { .spot-stats { grid-template-columns: 1fr; } .spot-link .btn span { display: none; } }
.spot .lead { margin: 4px 0 10px; } .spot-card { margin-top: 6px; } .spot-lock { margin-top: 4px; }
