/* v9 theme: concept 02 "Index" (off-white, ink, hairlines) + about 15% brick accent, with the type and spacing
   measured from the friend's Lovable site: DM Sans + Caveat, 15px spacing unit (15 / 37.5 / 75), 1200px page, h1 78/1.04, h2 39/1.17, body 16/1.8.
   Design rules applied here are listed in docs/design-rules.md. Loaded last, so it overrides style.css. */
:root {
  --bg: #F3F2ED; --surface: #EBE9E4; --surface-2: #E1E0D8; --text: #161312; --mute: #57514C; --dim-text: #68625C;
  --line: rgba(22, 19, 18, .14); --edge: rgba(22, 19, 18, .28); --well: var(--surface-2);
  --accent: #B5482A; --accent-text: #A33F24; --on-accent: #fff; --focus: #B5482A; --brand: #DE5E48; --logo: var(--text);
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-hover: #8A3219;
  --btn2-bg: transparent; --btn2-fg: var(--text); --btn2-line: var(--edge); --btn2-hover: var(--surface-2);
  --nav-bg: rgba(243, 242, 237, .86); --nav-fg: var(--text);
  --radius: 6px; --radius-sm: 6px; --radius-btn: 6px; --r-scale: .3; --r: 6px;
  --shadow: 0 18px 40px -22px rgba(27, 18, 11, .45);
  --f-head: "DM Sans", system-ui, sans-serif; --f-body: "DM Sans", system-ui, sans-serif; --f-hand: "Caveat", "Bradley Hand", cursive;
  --fs-h1: 78px; --fs-h2: 39px; --fs-h3: 21px; --fs-body: 16px; --fs-lead: 16px; --fs-small: 14px; --fs-nav: 14px; --fs-btn: 14px;
  --lh-h: 1.06; --lh-body: 1.7; --tr-h: -.01em; --w-h: 600; --w-btn: 500; --measure: 34em;
  --wrap: 1200px; --gut: 32px; --sec: 75px; --gap: 38px; --u: 15px;
  --globe2: 380px; --hero-dim: .62; --hero-h: 640px;
  --coral: var(--accent); --coral-deep: var(--accent-text); --cream: #fff; --butter: #FFD5BD;
  --d-wght: 600; --l-wght: 600; --d-scale: .5;
}
body { font: 400 var(--fs-body)/var(--lh-body) var(--f-body); }
h1 { font-size: clamp(2.5rem, 11vw, var(--fs-h1)); line-height: var(--lh-h); }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--fs-h2)); line-height: 1.17; }
h3 { font: 600 var(--fs-h3)/1.4 var(--f-body); }
.hand, em.hand { font-family: var(--f-hand); font-style: normal; font-weight: 500; letter-spacing: 0; }
h1 .hand, h2 .hand { font-size: 1.22em; line-height: .8; color: var(--butter); }
.eyebrow, .lbl, .label { font: 700 14px/1.5 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* buttons: flat. Nothing "3D" on a control that already sits on a floating surface. */
.btn, .pill { min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn); font-weight: 500; box-shadow: none; }
html .btn.primary, html .pill.coral { box-shadow: none; }
.btn.sm, .pill.sm { min-height: 44px; }
.btn i, .arrow i { font-weight: 500; }                /* icon stroke matched to the label's weight */
.btn.ghost-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .12); }
html[data-joined]:not([data-applied]) .btn.primary[data-join] { box-shadow: none; }
.arrow { color: var(--text); font-weight: 500; }

/* nav: full width at the top, a floating centered bar once you scroll (Save.design) */
html .nav-bar { max-width: calc(var(--wrap) + var(--gut) * 2); padding: 6px var(--gut); background: transparent; border: 1px solid transparent; border-radius: 12px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: max-width calc(.5s * var(--m)) var(--ease), background .3s, border-color .3s, padding .3s, color .3s; }
html.scrolled .nav-bar, html.menu-open .nav-bar { max-width: 680px; padding: 6px 6px 6px 18px; background: var(--nav-bg); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-route="home"]:not(.scrolled):not(.menu-open) .nav-bar { --nav-fg: #fff; color: #fff; }
html[data-route="home"]:not(.scrolled):not(.menu-open) .logo { color: #fff; }
html[data-route="home"]:not(.scrolled):not(.menu-open) .menu-btn { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.nav-bar .btn { min-height: 44px; }                    /* concentric: bar radius 12 = button radius 6 + 6 padding */
.dd-menu { border-radius: 12px; } .dd-menu a { border-radius: 6px; }

/* hero */
.hero2 { --globe: var(--globe2); position: relative; min-height: max(var(--hero-h), 76svh); display: grid; align-items: center; padding: calc(var(--head-h) + 30px) 0 110px; color: #fff; overflow: hidden; isolation: isolate; background: #2A211B; }
.hero2-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(33, 18, 9, calc(var(--hero-dim) + .28)) 0%, rgba(33, 18, 9, var(--hero-dim)) 55%, rgba(33, 18, 9, calc(var(--hero-dim) - .1)) 100%); }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero2-copy { display: grid; gap: var(--u); justify-items: start; text-align: left; }
.hero2-copy h1 { max-width: 9.5em; margin-bottom: 8px; }
.hero2-sub { max-width: 27em; font-size: var(--fs-lead); line-height: 1.8; }
.eyebrow.on-photo, .eyebrow.on-dark { color: #fff; font-size: 12px; }
.hero2 .live { background: var(--brand); }
.hero2-art { position: relative; min-height: calc(var(--globe2) + 40px); display: grid; place-items: center; }
.hero2-art .globe-slot { width: var(--globe2); height: var(--globe2); }
.pol { position: absolute; margin: 0; width: 150px; padding: 6px 6px 8px; background: #fff; color: #151515; border-radius: 8px; box-shadow: var(--shadow); rotate: var(--r, -6deg); transition: rotate var(--t) var(--spring), scale var(--t) var(--spring); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }   /* inner radius = outer 8 - padding 6 */
.pol figcaption { font: 500 1.15rem/1.2 var(--f-hand); padding: 6px 2px 0; text-align: left; }
.pol.p1 { left: -2%; top: 0; --r: -7deg; } .pol.p2 { right: -2%; top: 14%; --r: 6deg; width: 132px; } .pol.p3 { left: 6%; bottom: -4%; --r: 4deg; width: 140px; }
.tag-note { position: absolute; right: 0; bottom: 2%; font-size: 1.6rem; rotate: -5deg; }
/* the waitlist form sitting on the photo */
.waitlist.bare.on-photo { width: min(460px, 100%); margin-top: 8px; }
.on-photo .wl-row input { background: #fff; color: #151515; border-color: transparent; }
.on-photo .wl-more { padding: 16px; border-radius: 12px; background: var(--bg); color: var(--text); }
.on-photo .fine, .on-photo .fine a, .on-photo .wl-next { color: #fff; }
.on-photo .err { color: #fff; background: #8E2A16; padding: 8px 12px; border-radius: 6px; }
.on-photo .wl-ok { color: #fff; font-family: var(--f-head); font-weight: 600; } .on-photo .wl-ok i { color: var(--butter); }
.creed { display: flex; align-items: center; gap: 10px; min-height: 84px; border-bottom: 1px solid var(--line); font-size: 14px; padding: 0 max(var(--gut), calc((100% - var(--wrap)) / 2)); }
.creed i { color: var(--accent); font-size: 1.2rem; }

/* sections: one rhythm. 75 between sections, 38 under a title block, 15 inside it. */
.sec2 { padding: var(--sec) 0; text-align: left; }
.sec2.tight-top { padding-top: 0; }
.sec2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: var(--gap); }
.sec2-head > div, .mock-copy, .tease-grid > div:first-child { display: grid; gap: var(--u); justify-items: start; }
.sec2 h2 { max-width: 15em; } .sec2 h2 .hand { color: var(--accent); }
.sec2 p { max-width: var(--measure); } .sec2 .sub, .mock-copy p { color: var(--mute); }
.aside { font-size: 1.6rem; color: var(--accent); }

/* the app phone (light UI, clean). It pokes up into the hero. */
.mock { padding-top: 0; }
.mock-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: center; }
.mock-copy { order: -1; padding-top: var(--sec); }
.lphone { position: relative; z-index: 3; margin-top: -210px; font-size: clamp(7.4px, .82vw, 10px); width: 31em; height: 64em; padding: 1em; border-radius: 5.4em; background: linear-gradient(145deg, #6B6B70, #1D1D20 30%, #47474C 62%, #17171A); box-shadow: inset 0 0 0 .14em rgba(255, 255, 255, .35), 0 4em 6em -3em rgba(27, 18, 11, .6); font-family: var(--f-body); color: #17171A; line-height: 1.3; }
.lphone::before { content: ""; position: absolute; right: -.3em; top: 17em; width: .35em; height: 7em; border-radius: .2em; background: #2A2A2E; }
.ls { position: relative; height: 100%; border-radius: 4.4em; overflow: hidden; background: linear-gradient(#EEF0FF, #fff 34%); padding: 5.6em 1.8em 0; display: grid; gap: 1.5em; align-content: start; }   /* 5.4 - 1 padding */
.l-status { position: absolute; inset: 1.6em 2.8em auto 3.2em; display: flex; justify-content: space-between; font-size: 1.35em; font-weight: 600; } .l-status span { display: flex; gap: .3em; }
.l-island { position: absolute; left: 50%; top: 1.2em; width: 9.6em; height: 2.8em; margin-left: -4.8em; border-radius: 2em; background: #0B0B0D; }
.l-head { display: flex; justify-content: space-between; align-items: center; } .l-head b { font-size: 2.3em; letter-spacing: -.02em; }
.l-av { width: 4.4em; height: 4.4em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #FFD08A, #F08A5D); font-weight: 700; }
.l-search { display: flex; align-items: center; gap: 1em; height: 5.6em; padding: 0 .7em; border-radius: 3em; background: #fff; box-shadow: 0 1em 2.4em -1.2em rgba(41, 43, 70, .5); font-size: 1em; color: #6B6B73; } .l-search { font-size: 1.35em; height: 4.1em; }
.l-dot { width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; background: #151515; color: #fff; }
.l-label, .l-row small { font-size: 1.3em; font-weight: 600; color: #55555C; } .l-row { display: flex; justify-content: space-between; }
.l-next { display: flex; justify-content: space-between; gap: 1em; align-items: center; } .l-next b { display: block; font-size: 3em; line-height: 1; letter-spacing: -.03em; margin-bottom: .25em; }
.l-next div span { display: flex; gap: .4em; } .l-next div span i { font-style: normal; font-size: 1.15em; font-weight: 600; padding: .35em .8em; border-radius: 2em; background: #151515; color: #fff; } .l-next div span .lt { background: #ECECF1; color: #17171A; }
.l-next small { display: block; margin-top: .7em; font-size: 1.2em; color: #55555C; }
.l-map { position: relative; flex: none; width: 9em; height: 9em; border-radius: 2.4em; background: #F1F1F4; box-shadow: 0 1em 2em -1em rgba(41, 43, 70, .45); }
.l-map i { position: absolute; width: 1.3em; height: 1.3em; border-radius: 50%; border: .3em solid #151515; background: #fff; } .l-map i:nth-child(1) { left: 2em; top: 5.6em; } .l-map i:nth-child(2) { left: 5.6em; top: 4.4em; background: var(--brand); border-color: var(--brand); } .l-map i:nth-child(3) { left: 6em; top: 1.6em; }
.l-card { isolation: isolate; position: relative; height: 17em; border-radius: 2.6em; overflow: hidden; color: #fff; display: grid; align-content: end; padding: 1.6em; gap: .3em; }
.l-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; } .l-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgba(11, 11, 11, .78)); }
.l-card span { display: flex; gap: .4em; } .l-card span i { font-style: normal; font-size: 1.1em; font-weight: 600; padding: .3em .8em; border-radius: 2em; background: #fff; color: #17171A; }
.l-card b { font-size: 1.9em; } .l-card small { font-size: 1.2em; }
.l-dock { position: absolute; left: 50%; bottom: 2em; transform: translateX(-50%); display: flex; gap: .4em; padding: .5em; border-radius: 4em; background: #fff; box-shadow: 0 1.2em 3em -1em rgba(41, 43, 70, .5); }
.l-dock span { display: grid; justify-items: center; gap: .1em; padding: .7em 1.7em; border-radius: 3em; font-size: 1.1em; font-weight: 600; color: #55555C; } .l-dock span i { font-size: 1.9em; } .l-dock .on { background: #151515; color: #fff; }

/* the why */
.why { background: #234C35; color: #fff; }
.why-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 60px; align-items: center; }
.sticker { display: grid; place-items: center; }
.sticker img { width: min(330px, 100%); height: auto; rotate: -4deg; filter: drop-shadow(5px 0 0 #fff) drop-shadow(-5px 0 0 #fff) drop-shadow(0 5px 0 #fff) drop-shadow(0 -5px 0 #fff) drop-shadow(0 16px 22px rgba(2, 15, 6, .5)); transition: rotate calc(.4s * var(--m)) var(--spring); }
.sticker img:hover { rotate: 2deg; }
.why-copy { display: grid; gap: var(--u); justify-items: start; }
.why h2 .hand { color: var(--butter); display: block; margin-top: .12em; }
.why p { max-width: 34em; }
.draft-note { font-size: 13px; padding: 2px 8px; border-radius: 4px; background: #F6D653; color: #151515; }

/* how it works: an Index-style spec grid */
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap) 56px; }
.spec li { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 1px solid var(--edge); }
.spec .n { font-size: 1.8rem; line-height: 1; color: var(--accent); }
.spec p { font-size: 14px; line-height: 1.8; color: var(--mute); max-width: 22em; }

/* info cards, like the friend's inspiration cards */
.icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.icards li { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 196px; padding: 30px 26px; border-radius: var(--radius); text-align: center; border: 1px solid rgba(22, 19, 18, .08); transition: translate var(--t) var(--spring); }
.icards li:hover { translate: 0 -3px; }
.icards small { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.icards i { font-size: 1.9rem; }
.icards h3 { font: 700 clamp(1.25rem, 2.2vw, 1.875rem)/1.1 var(--f-body); letter-spacing: -.01em; text-wrap: balance; }
.c-peach { background: #FFD5BD; } .c-lav { background: #E2D8F8; } .c-sand { background: var(--surface-2); }
.c-green { background: #234C35; color: #fff; } .c-ink { background: #161312; color: #fff; } .c-brick { background: #A73B15; color: #fff; }

.tease { border-top: 1px solid var(--line); }
.tease-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.waitlist { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.waitlist.bare { border: 0; background: none; }
.wl-h, .wl-ok, dialog.sheet h3, .wl-dialog-head h2, .lb-head h2 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.01em; }
.wl-row input, .field input, .field select, .field textarea { border-radius: 6px; }
.ichip span, .seg-radio span { border-radius: 6px; }

/* footer: links, then the wordmark blown up (concept 02), drawn in dots with the Wake */
.foot2 { padding: 56px 0 28px; border-top: 1px solid var(--line); text-align: left; }
.foot2-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.foot2-top p { max-width: 22em; } .foot2-top b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.foot2-top a { display: flex; align-items: center; min-height: 44px; text-decoration: none; } .foot2-top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo-wake { display: block; width: 100%; color: var(--text); cursor: crosshair; touch-action: pan-y; }
.foot2 .fine { margin-top: 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.foot2 .fine a { display: inline-block; padding: 12px 2px; }
html[data-route="invite"] .foot2-top { display: none; }

/* edit panel */
.ed-fab { position: fixed; z-index: 81; right: 14px; bottom: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: #18181B; color: #F4F4F5; font: 600 13px/1 system-ui, sans-serif; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
html[data-clean] .ed-fab, html[data-clean] .ed { display: none; }
.ed { position: fixed; z-index: 82; right: 14px; bottom: 68px; width: 320px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 90px); overflow: auto; padding: 14px; border-radius: 14px; background: #18181B; color: #F4F4F5; font: 400 13px/1.4 system-ui, sans-serif; box-shadow: 0 24px 60px -20px #000; text-align: left; }
.ed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .ed-head b { font-size: 15px; } .ed .icon-btn { border-color: rgba(255, 255, 255, .3); color: #F4F4F5; }
.ed fieldset { margin: 12px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 4px; } .ed legend { padding: 0; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #C4C4CC; }
.ed-k { display: grid; grid-template-columns: 116px 1fr 54px; align-items: center; gap: 8px; min-height: 32px; } .ed-k output { text-align: right; font-variant-numeric: tabular-nums; color: #C4C4CC; } .ed-k input { width: 100%; accent-color: #FF8A6E; }
.ed-check, .ed-color { display: flex; align-items: center; gap: 8px; min-height: 40px; flex-wrap: wrap; } .ed-check small { color: #C4C4CC; } .ed-check input { width: 18px; height: 18px; accent-color: #FF8A6E; }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ed-row2 label { display: grid; gap: 4px; }
.ed select, .ed-out { width: 100%; min-height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: #27272A; color: #F4F4F5; font: inherit; padding: 4px 8px; }
.ed-foot { display: flex; gap: 8px; margin-top: 12px; } .ed .btn { min-height: 40px; background: #27272A; color: #F4F4F5; border-color: rgba(255, 255, 255, .25); flex: 1; }
.ed-out { margin-top: 8px; font: 12px/1.4 ui-monospace, monospace; }
html.ed-text [contenteditable]:hover { outline: 1px dashed var(--accent); outline-offset: 4px; } html.ed-text [contenteditable]:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Quests: the card builder (two panels, like a character creator) */
.qb { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 100dvh; padding-top: var(--head-h); text-align: left; }
.qb-stage { position: relative; display: grid; grid-template-rows: 1fr auto; background: radial-gradient(80% 60% at 50% 40%, #EBE9E4, #DAD7CF); overflow: hidden; }
.qb-toast { position: absolute; z-index: 3; left: 50%; top: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: calc(100% - 32px); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #151515; font: 500 14px/1.2 var(--f-body); box-shadow: var(--shadow); cursor: pointer; animation: popin calc(.3s * var(--m)) var(--spring); }
.qb-card-wrap { display: grid; place-items: center; padding: 76px 24px 24px; perspective: 1200px; }
.qcard3 { width: min(420px, 100%); padding: 18px; border-radius: 20px; background: #fff; color: #151515; border: 1px solid rgba(22, 19, 18, .1); box-shadow: 0 40px 70px -34px rgba(27, 18, 11, .55), 0 2px 0 rgba(255, 255, 255, .8) inset; display: grid; gap: 14px; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform calc(.25s * var(--m)) var(--spring); animation: floaty calc(5s * var(--m)) ease-in-out infinite alternate; }
.qcard3 header { display: flex; justify-content: space-between; font: 700 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.qcard3 h2 { font: 600 1.7rem/1.1 var(--f-head); letter-spacing: -.02em; min-height: 2.2em; text-wrap: balance; }
.qc-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; }
.qc-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #151515; color: #fff; font: 700 11px/1 var(--f-body); }
.qc-type { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); } .qc-type i { grid-row: span 2; font-size: 1.6rem; color: var(--accent); } .qc-type b { font-size: 15px; } .qc-type small { font-size: 12px; color: var(--mute); }
.qc-places { display: flex; gap: 6px; height: 170px; } .qc-empty { flex: 1; display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--edge); color: var(--mute); font-size: 14px; }
.qc-place { position: relative; flex: 1; margin: 0; border-radius: 12px; overflow: hidden; background: #A73B15 center / cover; color: #fff; display: grid; align-content: end; padding: 10px; transition: flex calc(.4s * var(--m)) var(--ease); min-width: 0; }
.qc-place::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(11, 11, 11, .75)); } .qc-place figcaption { position: relative; font: 600 13px/1.2 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qc-place small { display: block; font-size: 10px; opacity: .85; }
.qc-places.multi .qc-place { flex: .6; } .qc-places.multi .qc-place:hover, .qc-places.multi .qc-place:first-child:not(:has(~ :hover)) { flex: 3; }
.qc-people { display: flex; gap: 6px; } .qc-seat { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--edge); color: var(--mute); font: 700 14px/1 var(--f-body); } .qc-seat.on { border: 0; background: #FFD5BD; color: #151515; }
.qb-shelf { border-top: 1px solid var(--line); background: var(--bg); padding: 0 16px 14px; }
.qb-tabs { display: flex; gap: 2px; } .qb-tabs button { min-height: 44px; padding: 0 14px; border: 0; background: none; font: 600 13px/1 var(--f-body); color: var(--mute); border-bottom: 2px solid transparent; cursor: pointer; } .qb-tabs [aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.qb-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }   /* masked edge instead of a hard cut */
.qb-mini { flex: none; width: 116px; height: 86px; border-radius: 10px; border: 1px solid var(--line); background: #234C35 center / cover; color: #fff; display: grid; align-content: end; padding: 8px; text-align: left; cursor: pointer; position: relative; overflow: hidden; font: 600 12px/1.2 var(--f-body); }
.qb-mini::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(11, 11, 11, .78)); } .qb-mini span { position: relative; }
.qb-none { color: var(--mute); font-size: 14px; padding: 8px 0; }
.qb-panel { display: grid; gap: 18px; align-content: start; padding: 28px 24px 96px; border-left: 1px solid var(--line); background: var(--bg); overflow: auto; }
.qb-panel h1 { font-size: 2rem; } .qb-lead { color: var(--mute); margin-top: -8px; }
.qb-panel fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; } .qb-panel legend, .qb-panel .field > span { padding: 0; font: 600 14px/1.3 var(--f-body); margin-bottom: 4px; } .qb-panel legend small { font-weight: 400; color: var(--mute); margin-left: 6px; }
[data-qb-list] { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding: 2px; }
.qb-place { position: relative; display: block; cursor: pointer; } .qb-place input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qb-place span { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; } .qb-place small { color: var(--mute); font-size: 12px; text-align: right; }
.qb-place input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); } .qb-place input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.qb-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--mute); } .qb-more > div { display: grid; gap: 8px; }
.qb-seats { display: flex; flex-wrap: wrap; gap: 6px; } .qb-seat { display: inline-flex; align-items: center; min-height: 44px; } .qb-seat.me { padding: 0 14px; border-radius: 6px; background: var(--text); color: var(--bg); font-weight: 600; }
.qb-seat input { width: 104px; min-height: 44px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--edge); background: #fff; font: inherit; } .qb-add { width: 44px; height: 44px; border-radius: 6px; border: 1px dashed var(--edge); background: none; cursor: pointer; }
.qb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qb-city { display: grid; gap: 2px; padding: 12px 14px; border-radius: 6px; background: var(--surface); font-size: 14px; } .qb-city b { display: flex; gap: 6px; align-items: center; } .qb-city small { color: var(--mute); }

@media (max-width: 899px) {
  :root { --gut: 20px; --sec: 56px; }
  .hero2-grid, .mock-grid, .why-grid, .tease-grid { grid-template-columns: 1fr; }
  .hero2 { --globe2: 260px; padding-bottom: 150px; }
  .hero2-art { min-height: 300px; } .pol { width: 104px !important; } .pol figcaption { font-size: .95rem; }
  .mock-copy { order: 0; padding-top: 0; } .lphone { margin: -120px auto 0; font-size: 8px; }
  .spec { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .icards { grid-template-columns: 1fr 1fr; }
  .foot2-top { grid-template-columns: 1fr 1fr; }
  .qb { grid-template-columns: 1fr; } .qb-panel { border-left: 0; border-top: 1px solid var(--line); } .qb-card-wrap { padding-top: 70px; }
  html .nav-bar, html.scrolled .nav-bar { padding: 6px 6px 6px 16px; }
  .ed-fab { bottom: 76px; }
}
@media (max-width: 520px) { .icards, .spec { grid-template-columns: 1fr; } .waitlist.bare.on-photo .wl-row { flex-direction: column; } }

/* the metal Apply button (metal-fx). The host takes the button's place in the layout. */
.metal-host { display: inline-flex; vertical-align: middle; }
.metal-host.is-nav { margin-left: auto; }
.wl-joined .metal-host, .lb-foot .metal-host { justify-self: start; }
.lb-foot .metal-host, .lb-foot .metal-host > *, .lb-foot .metal-slot { display: flex; width: 100%; }

/* ===== 2026-11-16 pass 2 ===== */
/* Apply state: an ink button, so the metal ring reads */
html[data-joined]:not([data-applied]) .btn.primary[data-join] { background: #161312; border-color: transparent; color: #fff; }

/* Quest card: a badge you can turn in 3D. Front and back faces, a soft sheen that moves with the turn. */
.qb-card-wrap { perspective: 1400px; gap: 14px; align-content: center; justify-items: center; }
.qcard3 { position: relative; width: min(380px, 100%); aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; box-shadow: none; display: block; animation: none; transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: none; cursor: grab; touch-action: pan-y; border-radius: 22px; }
.qcard3.grab { cursor: grabbing; }
.qcard3:focus-visible { outline: 3px solid var(--focus); outline-offset: 8px; }
.qc-face { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: #fff; color: #151515; border: 1px solid rgba(22, 19, 18, .1); box-shadow: 0 44px 70px -36px rgba(27, 18, 11, .6), 0 1px 0 rgba(255, 255, 255, .9) inset; }
.qc-front { display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 12px; padding: 18px; text-align: left; }
.qc-front header { display: flex; justify-content: space-between; font: 700 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.qc-front h2 { font: 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.1 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.qc-type { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface); }
.qc-places { height: auto; min-height: 0; }
.qc-place { border-radius: 10px; }                                   /* card 22 - padding 18 would be 4; photos read better at 10 */
.qc-places.multi .qc-place { flex: .5; } .qc-places.multi .qc-place.main, .qc-places.multi .qc-place:hover { flex: 3; } .qc-places.multi:has(.qc-place:not(.main):hover) .main { flex: .5; }
.qc-when { display: flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--f-body); color: var(--mute); }
.qc-people { gap: 6px; } .qc-seat { width: 40px; height: 40px; overflow: hidden; } .qc-seat img { width: 100%; height: 100%; }
.qc-back { transform: rotateY(180deg); display: grid; place-content: center; justify-items: center; gap: 10px; background: #161312; color: #fff; text-align: center; }
.qc-qr { width: 54%; padding: 12px; border-radius: 12px; background: #fff; } .qc-qr svg { display: block; width: 100%; height: auto; }
.qc-back b { font: 600 15px/1.2 var(--f-body); } .qc-back small { font: 500 1.3rem/1 var(--f-hand); color: var(--butter); }
.qc-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 46%, rgba(255, 217, 175, .3) 52%, transparent 66%); background-size: 260% 100%; background-position: calc(var(--sh, 0) * 1%) 0; mix-blend-mode: soft-light; }
.qb-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
/* builder */
.qb-panel { position: relative; }
.qb-own { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
.qb-ownform { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.qb-more summary small, .qb-panel .field > span small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.qb-when .row2 { gap: 8px; }
.qb-seats { gap: 8px; }
.qb-seat { position: relative; width: 56px; min-height: 0; height: 56px; padding: 0; border-radius: 50%; border: 1px dashed var(--edge); background: none; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; color: var(--mute); transition: scale var(--t) var(--spring); margin-bottom: 18px; }
.qb-seat:hover { scale: 1.06; } .qb-seat.on { border: 0; overflow: visible; }
.qb-seat img { width: 56px; height: 56px; border-radius: 50%; }
.qb-seat span { position: absolute; top: 100%; left: 50%; translate: -50% 2px; font: 600 11px/1.2 var(--f-body); color: var(--text); white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.qb { position: relative; }
.qb-pop { position: absolute; z-index: 20; width: 292px; padding: 14px; display: grid; gap: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); animation: popin calc(.22s * var(--m)) var(--spring); transform-origin: bottom left; }
.qb-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 176px; overflow: auto; padding: 3px; }
.qb-faces label { position: relative; cursor: pointer; aspect-ratio: 1; } .qb-faces input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.qb-faces img { width: 100%; height: 100%; border-radius: 50%; display: block; } .qb-faces input:checked + img { outline: 3px solid var(--text); outline-offset: 2px; } .qb-faces input:focus-visible + img { outline: 3px solid var(--focus); outline-offset: 2px; }
.qb-err { position: fixed; z-index: 130; left: 50%; bottom: 24px; translate: -50% 0; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; background: #161312; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow); animation: popin calc(.22s * var(--m)) var(--spring); }
.qb-mini.mine { width: 168px; } .qb-mini small { display: block; font-weight: 500; font-size: 10px; opacity: .9; margin-top: 2px; }

/* Leaderboard: calmer and more exact. Hairlines instead of boxes, one easing, short stagger, numbers that don't jiggle. */
.lb-tab { background: var(--bg); border: 1px solid var(--line); border-right: 0; box-shadow: 0 6px 18px -8px rgba(27, 18, 11, .35); transition: right calc(.18s * var(--m)) cubic-bezier(.22, 1, .36, 1); }
.lb-panel { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(27, 18, 11, .5); }
.lb-panel[open] { animation: lbin2 calc(.38s * var(--m)) cubic-bezier(.22, 1, .36, 1); }
.lb-panel.closing { animation: lbout calc(.18s * var(--m)) cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes lbin2 { from { opacity: 0; transform: translateX(28px); } }
@keyframes lbout { to { opacity: 0; transform: translateX(20px); } }
.lb-panel::backdrop { background: rgba(23, 19, 15, .28); animation: fadein calc(.3s * var(--m)) ease-out; }
@keyframes fadein { from { opacity: 0; } }
.lb-in { padding: 22px 20px 18px; }
.lb-head h2 { font-size: 1.5rem; line-height: 1.15; }
.lb-sample { background: #F7ECBE; color: #4B3711; border-radius: 8px; }
.lb-intro { line-height: 1.55; }
.lb-list { gap: 0; border-top: 1px solid var(--line); }
.lb-row { grid-template-columns: 20px 1fr auto; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; animation: rowin calc(.36s * var(--m)) cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 28ms + 80ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.lb-row.you { border-color: var(--line); } .lb-row.you .nm { font-weight: 700; }
.lb-row .rk { font-size: 12px; } .lb-row .nm { font-size: 15px; } .lb-row .ct { font-size: 15px; }
.lb-row .bd { border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; padding: 3px 6px; }
.lb-row .bar { height: 3px; margin-top: 8px; background: var(--line); }
.lb-row .bar i { background: var(--text); animation: barin calc(.7s * var(--m)) cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 28ms + 160ms); }
.lb-row:first-child .bar i { background: var(--accent); }
.lb-foot { padding-top: 16px; } .lb-small { line-height: 1.5; }
@media (max-width: 767px) { .lb-tab { border: 1px solid var(--line); } .qb-pop { width: min(292px, calc(100vw - 24px)); } }
/* metal-fx paints the ring and the fill itself; the button on top must be see-through */
html[data-joined]:not([data-applied]) .metal-host .btn.primary[data-join] { background: transparent; border-color: transparent; }

.ed-note { margin-top: 10px; font-size: 12px; color: #C4C4CC; }
