/* ZXenia: a house you walk into. Scrolling is walking, and every room has its own
   paint. Colours and corners come from Studio as CSS variables in the page. */

@font-face { font-family: "Gloock"; src: url("../fonts/gloock.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Newsreader"; font-style: italic; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 400; src: url("../fonts/instrument-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 600; src: url("../fonts/instrument-600.woff2") format("woff2"); font-display: swap; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }

:root {
  --mood: var(--lamp);
  --display: "Gloock", "Times New Roman", serif;
  --voice: "Newsreader", Georgia, serif;
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  /* Names the app styles use */
  --cream: var(--wall); --cream-rgb: var(--wall-rgb);
  --wine: var(--ox); --wine-rgb: var(--ox-rgb);
  --wine-dark: var(--night); --wine-dark-rgb: var(--night-rgb);
  --wine-deep: var(--ox-deep); --wine-light: var(--ox-light);
  --copper: var(--clay); --copper-rgb: var(--clay-rgb); --copper-text: var(--clay);
  --peach: var(--lamp); --on-copper: var(--paper);
  --sage: var(--euca); --sage-light: var(--blush);
  --on-photo: var(--paper); --on-photo-rgb: var(--paper-rgb);
}
.paint-night { background: var(--night); color: var(--paper); --em: var(--lamp); }
.paint-ox { background: var(--ox); color: var(--paper); --em: var(--lamp); }
.paint-blush { background: var(--blush); color: var(--ink); --em: var(--clay); }
.paint-clay { background: var(--clay); color: var(--paper); --em: #ffdcae; }
.paint-indigo { background: var(--indigo); color: var(--paper); --em: var(--neon); }
.paint-saffron { background: var(--saffron); color: var(--ink); --em: var(--ox); }
.paint-lilac { background: var(--lilac); color: var(--ink); --em: #4a2bb0; }
.paint-sky { background: var(--sky); color: var(--paper); --em: #8fc6ff; }
.paint-euca { background: var(--euca); color: var(--paper); --em: var(--brass); }
.paint-wall { background: var(--wall); color: var(--ink); --em: var(--clay); }
[class*="paint-"] .h .v, [class*="paint-"] h1 .v, [class*="paint-"] h2 .v { color: var(--em); }
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.5 var(--ui); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--mood); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.d { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
.v { font-family: var(--voice); font-style: italic; font-weight: 400; }
.h { font-size: clamp(44px, 7.6vw, 112px); }
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.42; max-width: 34em; text-wrap: pretty; }
.tag { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.tag svg { flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; text-decoration: none; border-radius: var(--radius-button) var(--radius-button) 6px 6px; background: var(--ink); color: var(--paper); font-weight: 600; transition: transform .2s, border-radius .25s, background-color .2s; }
.btn:hover { transform: translateY(-2px); border-radius: var(--radius-button); }
.btn--lamp { background: var(--lamp); color: var(--ink); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Top bar */
.top { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); pointer-events: none; color: var(--navink, #fbf1e4); transition: color .3s; }
.top > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 25px; color: inherit; text-decoration: none; }
.top__right { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); font-size: 14px; font-weight: 600; }
.top__right button { min-height: 44px; }
.chip-mood { display: none; }

/* Room index */
.rail { position: fixed; z-index: 40; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 7px; color: var(--navink, #fbf1e4); transition: color .3s; }
.rail button { width: 26px; height: 26px; display: grid; place-items: center; position: relative; }
.rail i { width: 9px; height: 14px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; opacity: .55; transition: .25s; }
.rail button.on i { background: currentColor; opacity: 1; transform: scale(1.25); }
.rail button:hover i { opacity: 1; }
.rail span { position: absolute; right: 30px; white-space: nowrap; font-size: 13px; font-weight: 600; opacity: 0; transform: translateX(6px); transition: .2s; pointer-events: none; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 900px) { .rail { display: none; } }

/* Floor plan */
.floorplan { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(12, 9, 18, .94); backdrop-filter: blur(10px); visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; overflow-y: auto; }
.floorplan.open { visibility: visible; opacity: 1; }
.floorplan__box { width: min(760px, 100%); display: grid; gap: 18px; }
.floorplan__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.floorplan__head h2 { font-size: clamp(34px, 5vw, 56px); }
.floorplan__grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(60px, 11vh, 104px); gap: 5px; padding: 5px; background: var(--paper); border-radius: 6px; }
.floorplan__grid button { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.15; transition: filter .2s; }
.floorplan__grid button:hover { filter: brightness(1.2); }
.floorplan__grid button small { font: italic 400 14px/1.15 var(--voice); opacity: .85; }
.floorplan__grid button.here::after { content: ""; position: absolute; top: 10px; right: 10px; width: 11px; height: 11px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.28); }
.floorplan__close { min-height: 44px; font-weight: 600; font-size: 14px; }

/* Rooms: each opens from a doorway shape as it arrives */
.room { --o: 1; position: relative; clip-path: inset(0 calc((1 - var(--o)) * 24vw) 0 round calc((1 - var(--o)) * 38vw) calc((1 - var(--o)) * 38vw) 0 0); }
.shell { position: relative; }
.pad { padding: clamp(84px, 11vw, 150px) var(--gutter); }
.name { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 2vw, 26px); font: italic 400 clamp(19px, 1.7vw, 24px) var(--voice); }
.name svg { flex: none; }

/* 0. Threshold */
.threshold { height: 340vh; background: var(--night); }
.threshold__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#walk { position: absolute; inset: 0; width: 100%; height: 100%; }
.threshold__copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 90px var(--gutter) clamp(28px, 5vh, 54px); pointer-events: none; }
.threshold__copy > * { pointer-events: auto; }
.t1 { display: grid; gap: clamp(14px, 2vh, 22px); justify-items: start; }
.t1 h1 { font-size: clamp(50px, 10.4vw, 168px); max-width: 11ch; text-shadow: 0 2px 40px rgba(12,9,18,.55); }
.t1 h1 .v { color: var(--lamp); letter-spacing: -.02em; }
.t1 .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.adult { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 16px 16px 3px 3px; background: rgba(12,9,18,.55); box-shadow: inset 0 0 0 1px rgba(251,241,228,.4); font-size: 13px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(4px); }
.cue { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.cue i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 9px 9px 2px 2px; position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: cue 1.7s infinite; }
@keyframes cue { 60% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
.walkline { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 12vh; font-size: clamp(38px, 7vw, 104px); opacity: 0; pointer-events: none; max-width: 15ch; text-shadow: 0 2px 34px rgba(12,9,18,.8); }
.walkline .v { color: var(--lamp); }

/* 1. Hall */
.hall { background: var(--ox); }
.hall__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; margin-bottom: clamp(26px, 3vw, 44px); }
.hall .h .v { color: var(--lamp); }
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 22px); perspective: 1400px; }
.door { position: relative; display: block; height: clamp(340px, 56vh, 600px); width: 100%; text-align: left; border-radius: 200px 200px 0 0; background: #1b0509; color: var(--paper); overflow: hidden; box-shadow: 0 0 0 5px #2a0710, 0 30px 60px -28px #000; transform-style: preserve-3d; transition: box-shadow .35s; }
.door__room { position: absolute; inset: 0; background: var(--bg) center / cover no-repeat, var(--hue); }
.door__room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,4,9,.92), transparent 58%); }
.door__leaf { position: absolute; inset: 0; transform-origin: 0 50%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 1px, transparent 1px 34px), linear-gradient(170deg, var(--hue), color-mix(in srgb, var(--hue) 62%, #000)); transition: transform .85s cubic-bezier(.3,.85,.3,1); box-shadow: inset -2px 0 0 rgba(255,255,255,.1); }
.door__leaf::after { content: ""; position: absolute; right: 14%; top: 56%; width: 13px; height: 13px; border-radius: 50%; background: var(--brass); box-shadow: 0 2px 5px rgba(0,0,0,.5); }
.door:hover .door__leaf, .door:focus-visible .door__leaf, .door.is-open .door__leaf { transform: rotateY(-78deg); }
.door.is-chosen { box-shadow: 0 0 0 5px var(--mood), 0 0 60px -6px var(--mood); }
.door__text { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 7%; display: grid; gap: 3px; pointer-events: none; }
.door__text b { font: 400 clamp(24px, 2.5vw, 38px)/1 var(--display); }
.door__text span { font-size: 14px; line-height: 1.25; }
.door--locked .door__leaf { transition: transform .15s linear; transform: rotateY(calc(var(--hold, 0) * -78deg)) !important; }
.door--locked.is-open .door__leaf { transform: rotateY(-78deg) !important; }
.door__lock { position: absolute; z-index: 3; left: 50%; top: 34%; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1.1; text-align: center; background: conic-gradient(var(--lamp) calc(var(--hold, 0) * 360deg), rgba(255,255,255,.2) 0); pointer-events: none; }
.door__lock::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #17101a; }
.door__lock span { position: relative; }
.door--locked.is-open .door__lock { display: none; }
.hall__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: clamp(20px, 3vw, 32px); }
.hall__said { font: italic 400 clamp(21px, 2vw, 28px)/1.2 var(--voice); }

/* 2. House rules */
.rules { background: var(--blush); color: var(--ink); }
.rules__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.rules .h .v { color: var(--clay); }
.switches { display: grid; margin-top: clamp(24px, 3vw, 36px); border-top: 1.5px solid var(--ink); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 8px 0; border-bottom: 1.5px solid var(--ink); cursor: pointer; font-weight: 600; }
.sw small { display: block; font-weight: 400; font-size: 14px; }
.sw input { position: absolute; opacity: 0; }
.sw i { flex: none; position: relative; width: 56px; height: 32px; border-radius: 16px; background: rgba(23,16,26,.18); transition: .25s; }
.sw i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: .3s cubic-bezier(.3,1.5,.5,1); }
.sw input:checked + i { background: var(--clay); }
.sw input:checked + i::after { transform: translateX(24px); }
.sw input:focus-visible + i { outline: 3px solid var(--ink); outline-offset: 2px; }
.preview { display: grid; justify-items: center; gap: 16px; perspective: 1100px; }
.seg { display: inline-flex; padding: 4px; border-radius: 26px; background: rgba(23,16,26,.1); }
.seg button { min-height: 42px; padding: 0 18px; border-radius: 22px; font-size: 14px; font-weight: 600; transition: .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.card3d { position: relative; width: min(370px, 100%); aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: 190px 190px 10px 10px; background: var(--ink); box-shadow: 0 34px 70px -24px rgba(75,13,29,.65); transition: transform .25s ease-out; transform-style: preserve-3d; }
.card3d img { width: 100%; height: 100%; object-fit: cover; transition: filter .45s; }
.card3d .scrim { position: absolute; inset: 42% 0 0; background: linear-gradient(0deg, rgba(23,16,26,.95), transparent); }
.card3d .meta { position: absolute; left: 24px; right: 24px; bottom: 22px; color: var(--paper); display: grid; gap: 3px; }
.card3d .meta b { font: 400 34px/1 var(--display); }
.card3d .meta span { font-size: 14px; }
.card3d .stamp { position: absolute; top: 28%; left: 50%; transform: translateX(-50%); padding: 7px 13px; border-radius: 16px; background: rgba(23,16,26,.76); color: var(--paper); font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .3s; }

/* 3. Table */
.tableroom { height: 300vh; background: var(--clay); }
.tableroom__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 16px; padding: 70px var(--gutter) 30px; }
.tableroom .h .v { color: #ffdcae; }
.tname { min-height: 3.2em; margin-top: 18px; }
.tname b { display: block; font: 400 clamp(28px, 3vw, 44px)/1.05 var(--display); }
.tname span { font-size: 16px; }
.tdots { display: flex; gap: 6px; margin-top: 12px; }
.tdots i { width: 28px; height: 4px; border-radius: 2px; background: rgba(251,241,228,.3); transition: .3s; }
.tdots i.on { background: var(--paper); }
.scene3d { position: relative; height: min(76vh, 66vw); min-height: 320px; perspective: 1300px; display: grid; place-items: center; }
.disc { --tilt: 63deg; position: relative; width: min(46vw, 62vh); aspect-ratio: 1; border-radius: 50%; transform-style: preserve-3d; transform: rotateX(var(--tilt)) rotateZ(var(--r, 0deg)); background: radial-gradient(circle at 42% 38%, #5d2413, #2c0e07 72%); box-shadow: 0 0 0 clamp(6px, 1vw, 14px) #210a05, 0 0 0 calc(clamp(6px, 1vw, 14px) + 2px) var(--mood), 0 70px 80px 10px rgba(30,6,0,.55); }
.disc::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px solid rgba(255,220,174,.3); }
.disc__light { position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle, var(--mood), transparent 70%); filter: blur(10px); }
.seat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateZ(var(--a)) translateY(calc(min(23vw, 31vh) * -1.17)); }
.seat a, .seat div { position: absolute; left: -46px; bottom: 0; width: 92px; height: 116px; transform-origin: 50% 100%; transform: rotateZ(calc((var(--a) + var(--r, 0deg)) * -1)) rotateX(calc(var(--tilt) * -1)); }
.seat img { width: 100%; height: 100%; object-fit: cover; border-radius: 46px 46px 5px 5px; box-shadow: 0 0 0 3px var(--paper), 0 14px 18px -8px rgba(30,6,0,.7); }
.seat--you a { display: grid; place-items: center; border-radius: 46px 46px 5px 5px; color: var(--ink); background: var(--lamp); font-size: 13px; font-weight: 600; line-height: 1.15; box-shadow: 0 0 0 3px var(--paper), 0 0 40px 6px var(--lamp); animation: glow 2.4s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px var(--paper), 0 0 16px 2px var(--lamp); } }

/* 4. Knock */
.knock { background: var(--indigo); }
.knock__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.knock .h .v { color: var(--neon); }
.deckzone { display: grid; justify-items: center; gap: 22px; }
.deck2 { position: relative; width: min(350px, 100%); aspect-ratio: 3 / 4.15; }
.pcard { position: absolute; inset: 0; overflow: hidden; border-radius: 175px 175px 10px 10px; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 30px 60px -20px #000; transition: transform .4s cubic-bezier(.2,.8,.3,1), opacity .35s; cursor: grab; }
.pcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pcard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(10,10,30,.96), transparent); pointer-events: none; }
.pcard .who { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 2px; }
.pcard .who b { font: 400 34px/1 var(--display); }
.pcard .who span { font-size: 14px; }
.pcard .say { font: italic 400 18px/1.2 var(--voice); margin-top: 5px; }
.deckbtns { display: flex; align-items: center; gap: 12px; }
.kround { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(251,241,228,.5); transition: transform .15s; }
.kround:hover { transform: scale(1.07); }
.kround--knock { width: 86px; height: 86px; background: var(--neon); color: var(--ink); box-shadow: 0 0 34px -4px var(--neon); font-size: 15px; }
.why { display: flex; align-items: center; gap: 20px; margin-top: clamp(22px, 3vw, 34px); }
.kring { --p: 0; position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--neon) calc(var(--p) * 1%), rgba(251,241,228,.14) 0); transition: --p .6s; }
.kring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--indigo); }
.kring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 28px var(--display); }
.why ul { display: grid; gap: 4px; font-size: 16px; }
.match { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; align-content: center; gap: 12px; padding: 18px; text-align: center; background: rgba(13,15,50,.93); backdrop-filter: blur(9px); border-radius: 175px 175px 10px 10px; visibility: hidden; opacity: 0; transition: .3s; }
.match.on { visibility: visible; opacity: 1; }
.rings { position: relative; width: 120px; height: 72px; }
.rings i { position: absolute; top: 0; width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--lamp); transition: transform .8s cubic-bezier(.3,1.5,.5,1); }
.rings i:first-child { left: 0; transform: translateX(-46px); }
.rings i:last-child { right: 0; border-color: var(--neon); transform: translateX(46px); }
.match.on .rings i { transform: none; }
.match h3 { font: 400 clamp(34px, 3.8vw, 50px)/1 var(--display); }

/* 5. Talk */
.talk { background: var(--saffron); color: var(--ink); overflow: hidden; }
.talk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.talk .h .v { color: var(--ox); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; margin-top: clamp(24px, 3vw, 36px); }
.points b { display: block; font-weight: 600; }
.points span { font-size: 15px; line-height: 1.32; display: block; }
.phonewrap { display: grid; place-items: center; perspective: 1400px; }
.phone { width: min(350px, 100%); height: 680px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: 42px; background: #fff7ea; box-shadow: 0 0 0 9px var(--ink), 34px 54px 70px -30px rgba(75,13,29,.8); transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 5deg)); transition: transform .3s ease-out; }
.phone__head { display: flex; align-items: center; gap: 10px; padding: 26px 16px 12px; background: var(--ox); color: var(--paper); }
.phone__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.phone__head b { display: block; font: 400 20px/1.1 var(--display); }
.phone__head small { font-size: 12px; }
.feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding: 14px; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.b { max-width: 82%; padding: 8px 12px; border-radius: 17px 17px 17px 4px; background: #fff; font-size: 14.5px; line-height: 1.32; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.08); animation: pop .3s cubic-bezier(.3,1.5,.5,1) both; position: relative; }
.b.me { align-self: flex-end; border-radius: 17px 17px 4px 17px; background: var(--ox); color: var(--paper); }
.b small { display: block; font-size: 11px; opacity: .62; margin-top: 1px; text-align: right; }
@keyframes pop { from { transform: translateY(8px) scale(.94); opacity: 0; } }
.b .react { position: absolute; right: 6px; bottom: -11px; padding: 0 5px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); font-size: 13px; line-height: 19px; }
.b.has-react { margin-bottom: 11px; }
.b .quote { display: block; margin-bottom: 4px; padding: 2px 7px; border-left: 3px solid var(--lamp); background: rgba(255,255,255,.14); border-radius: 3px; font-size: 12.5px; }
.tap { position: relative; display: block; width: 190px; height: 190px; overflow: hidden; border-radius: 12px; }
.tap img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px); transform: scale(1.1); transition: filter .4s; }
.tap span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; background: rgba(23,16,26,.26); transition: opacity .3s; }
.tap.seen img { filter: none; }
.tap.seen span { opacity: 0; }
.warn { align-self: center; max-width: 92%; padding: 6px 10px; border-radius: 8px; background: #fce3a6; font-size: 12.5px; line-height: 1.28; text-align: center; animation: pop .3s both; }
.dots { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 17px 17px 17px 4px; background: #fff; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #8b7e80; animation: dot 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); } }
.bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; background: #fff; border-top: 1px solid #eadfd0; }
.bar span { flex: 1; padding: 9px 14px; border-radius: 20px; background: #fbf1e4; font-size: 14px; color: #6e6264; }
.bar i { width: 38px; height: 38px; border-radius: 50%; background: var(--clay); }

/* 6. Porch */
.porch { background: var(--lilac); color: var(--ink); }
.porch__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.porch .h .v { color: #4a2bb0; }
.evening { padding: clamp(20px, 3vw, 34px); border-radius: 120px 120px 10px 10px; background: var(--ink); color: var(--paper); transition: background-color .5s; }
.evening.alarm { background: #5e1120; }
.evening__time { padding-top: 26px; text-align: center; font: 400 clamp(56px, 7vw, 96px)/1 var(--display); font-variant-numeric: tabular-nums; }
.evening__state { min-height: 5.4em; margin: 10px auto 16px; max-width: 26em; text-align: center; }
.evening__state b { display: block; font-weight: 600; font-size: 18px; }
.evening label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; text-align: center; }
input[type=range] { width: 100%; height: 34px; accent-color: var(--lamp); cursor: grab; }
.evening .btn { width: 100%; margin-top: 12px; }

/* 7. Beyond */
.beyond { background: var(--sky); }
.beyond__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; }
.beyond .h .v { color: #8fc6ff; }
#globe { width: 100%; max-width: 760px; aspect-ratio: 1; margin-inline: auto; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cities button { min-height: 44px; padding: 0 16px; border-radius: 22px 22px 4px 4px; box-shadow: inset 0 0 0 1px rgba(251,241,228,.45); font-size: 14px; font-weight: 600; transition: .2s; }
.cities button[aria-pressed="true"] { background: var(--paper); color: var(--sky); }
.place { margin-top: 18px; min-height: 3.2em; font-size: 16px; }
.place b { font-weight: 600; }

/* 8. Keys */
.keys { background: var(--euca); }
.keys .h .v { color: var(--brass); }
.keys__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(30px, 4vw, 54px); }
.keys .seg { background: rgba(251,241,228,.1); }
.keys .seg button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
.keyrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); perspective: 1500px; }
.key { --sx: 50%; --sy: 0%; position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 570px; padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px) 28px; overflow: hidden; border-radius: 180px 180px 10px 10px; color: var(--paper); background: #0e261e; box-shadow: inset 0 0 0 1px rgba(227,189,120,.35), 0 30px 50px -28px #000; transition: transform .2s ease-out; transform-style: preserve-3d; }
.key > * { position: relative; }
.key::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(255,235,190,.2), transparent 62%); }
.key--brass { color: var(--ink); background: linear-gradient(150deg, #f2d596, #c49a4e 55%, #e8c986); box-shadow: 0 34px 60px -26px #000, 0 0 60px -22px var(--brass); }
.key--brass::before { background: radial-gradient(300px circle at var(--sx) var(--sy), rgba(255,255,255,.34), transparent 65%); }
.key--night { background: linear-gradient(160deg, #2a0c18, #0c0912); }
.key__arch { align-self: center; margin-bottom: 2px; }
.key h3 { text-align: center; font: 400 clamp(30px, 3vw, 42px)/1 var(--display); }
.key .price { text-align: center; }
.key .price b { display: block; font: 400 clamp(32px, 3.1vw, 46px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.key .price span { font-size: 14px; display: block; min-height: 2.5em; line-height: 1.25; }
.key ul { display: grid; gap: 6px; font-size: 15px; line-height: 1.25; flex: 1; align-content: start; }
.key li { display: flex; gap: 8px; }
.key li::before { content: ""; flex: none; width: 7px; height: 11px; margin-top: 3px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.key .btn { width: 100%; }
.key--brass .btn { background: var(--ink); color: var(--paper); }
.key--night .btn { background: var(--brass); color: var(--ink); }
.fine { margin-top: 20px; font-size: 14px; max-width: 62em; }

/* 9. Come in */
.last { position: relative; min-height: 118vh; background: var(--night); display: grid; align-items: end; overflow: hidden; }
.last__door { position: absolute; left: 50%; bottom: 0; width: calc(var(--w, 52) * 1vw); height: calc(var(--h, 74) * 1%); transform: translateX(-50%); border-radius: 50vw 50vw 0 0; overflow: hidden; }
.last__door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(1.05); }
.last__door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,9,18,.94) 6%, rgba(12,9,18,.25) 55%, transparent); }
.last__copy { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(44px, 8vh, 84px); display: grid; justify-items: center; gap: 22px; text-align: center; }
.last__copy h2 { font-size: clamp(54px, 11vw, 190px); text-shadow: 0 2px 40px rgba(12,9,18,.6); }
.last__copy .v { color: var(--lamp); }

.zxtoast { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translate(-50%, 90px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 22px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 14px 40px -10px #000; transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.zxtoast.on { transform: translate(-50%, 0); }

.lift { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.js .lift:not(.in) { transform: translateY(26px); }

@media (max-width: 980px) {
  .hall__top, .rules__grid, .knock__grid, .talk__grid, .porch__grid, .beyond__grid { grid-template-columns: minmax(0, 1fr); }
  .doors { display: flex; gap: 12px; overflow-x: auto; padding: 6px 4px 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .door { flex: 0 0 min(66vw, 280px); scroll-snap-align: center; height: min(62vh, 480px); }
  .keyrow { display: flex; overflow-x: auto; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .key { flex: 0 0 min(80vw, 330px); scroll-snap-align: center; }
  .tableroom__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding-top: 66px; }
  .tableroom .h { font-size: clamp(40px, 11vw, 70px); }
  .tname { min-height: 0; margin-top: 8px; }
  .tname span { font-size: 15px; }
  .scene3d { height: 100%; min-height: 0; }
  .disc { width: min(58vw, 34vh); }
  .seat { transform: rotateZ(var(--a)) translateY(calc(min(29vw, 17vh) * -1.2)); }
  .seat a, .seat div { width: 54px; height: 68px; left: -27px; }
  .seat--you a { font-size: 11px; }
  .phone { height: 620px; transform: none !important; }
  .room { clip-path: inset(0 calc((1 - var(--o)) * 10vw) 0 round calc((1 - var(--o)) * 44vw) calc((1 - var(--o)) * 44vw) 0 0); }
  .last__door { width: calc(var(--w, 84) * 1vw); }
}
@media (max-width: 560px) {
  .points { grid-template-columns: minmax(0, 1fr); }
  .why { align-items: flex-start; }
  .top__right { font-size: 13px; }
  .walkline { bottom: 9vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .room { clip-path: none !important; }
  .js .lift:not(.in) { transform: none; }
}

/* Header: floats over painted rooms on public pages, solid in the app */
.notice { position: relative; z-index: 45; background: var(--night); color: var(--paper); text-align: center; padding: 6px 20px; font-size: 13px; border-bottom: 1px solid rgba(var(--paper-rgb),.14); }
.top { position: sticky; top: 0; background: var(--night); color: var(--paper); pointer-events: auto; }
body.over .top { position: fixed; inset: auto 0 auto 0; background: transparent; color: var(--navink, var(--paper)); pointer-events: none; }
.top__right a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top__right .btn { min-height: 42px; padding: 0 18px; color: var(--ink); background: var(--lamp); }
.top__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .top__link { display: none; } }
.floorplan__box { width: min(900px, 100%); }
.floorplan__grid a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; font-weight: 600; font-size: 14px; line-height: 1.15; text-decoration: none; transition: filter .2s; }
.floorplan__grid a:hover { filter: brightness(1.2); }
.floorplan__grid a small { font: italic 400 14px/1.15 var(--voice); opacity: .85; }
.floorplan__grid a.here::after { content: ""; position: absolute; top: 10px; right: 10px; width: 11px; height: 11px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.28); }
.floorplan__label { color: var(--lamp); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.floorplan__more { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.floorplan__more a { color: var(--paper); padding: 6px 0; }
main { flex: 1; min-width: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.studio-body { display: block; }
.nav, .toasts { width: 100%; }

/* A page is a set of rooms */
.roomhead { padding: clamp(120px, 15vw, 190px) var(--gutter) clamp(50px, 7vw, 90px); }
.roomhead .h { max-width: 15ch; }
.roomhead .lede { margin-top: 20px; }
.roomwrap { max-width: 1240px; margin-inline: auto; }
.sect { padding: clamp(56px, 8vw, 110px) var(--gutter); }
.sect > .h, .sect .h2x { font-size: clamp(36px, 5vw, 72px); margin-bottom: clamp(24px, 3vw, 42px); }
.arches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.archcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 60px clamp(20px, 2vw, 28px) 26px; border-radius: 120px 120px 8px 8px; background: rgba(var(--ink-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .14); text-decoration: none; color: inherit; transition: transform .25s; }
a.archcard:hover { transform: translateY(-4px); }
[class*="paint-"]:is(.paint-night, .paint-ox, .paint-indigo, .paint-sky, .paint-euca) .archcard { background: rgba(var(--paper-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), .22); }
.archcard svg { color: var(--em, var(--clay)); }
.archcard h3 { font: 400 clamp(23px, 2.2vw, 30px)/1.05 var(--display); }
.archcard p { font-size: 15.5px; line-height: 1.38; }
.archcard .n { font: 400 42px/1 var(--display); color: var(--em, var(--clay)); }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.photoarch { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; border-radius: 50vw 50vw 10px 10px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.rows { display: grid; border-top: 1.5px solid currentColor; }
.rows > * { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 1.5px solid currentColor; }
.rows b { font-weight: 600; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 68px); }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 13px 10px; text-align: center; border-bottom: 1px solid rgba(var(--paper-rgb), .2); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font: 400 clamp(19px, 2vw, 26px) var(--display); }
.compare .yes { color: var(--brass); font-weight: 600; }
.qa { display: grid; gap: 8px; }
.qa details { padding: 16px 20px; border-radius: 8px; background: rgba(var(--ink-rgb), .06); }
.paint-euca .qa details, .paint-night .qa details, .paint-indigo .qa details { background: rgba(var(--paper-rgb), .08); }
.qa summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.qa p { margin-top: 8px; }

/* Legal and long reading */
.prose { max-width: 720px; }
.prose h2 { margin: 32px 0 8px; font: 400 clamp(25px, 3vw, 34px)/1.1 var(--display); }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.prose strong { font-weight: 600; }
.prose a:not(.btn) { color: inherit; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 14px 14px 3px 3px; background: rgba(var(--ink-rgb), .1); font-size: 13px; font-weight: 600; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 120px 120px 8px 8px; }
.post h2 { font: 400 28px/1.1 var(--display); }
.post time, .post-meta { font: italic 400 17px var(--voice); }

/* Reviews */
.reviews { display: flex; flex-wrap: wrap; gap: 40px; }
.reviews > * { flex: 1 1 340px; min-width: 0; }
.review { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; overflow-wrap: anywhere; color: var(--ink); }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.review__stars { color: var(--clay); font-size: 18px; letter-spacing: 2px; }
.empty { padding: 28px; border-radius: var(--radius-card); background: var(--card); border: 2px dashed var(--input-line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.empty__title { font: 400 24px/1.1 var(--display); color: var(--ink); }
.world { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.world__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.callout { padding: 20px 22px; border-radius: var(--radius-card); background: rgba(var(--paper-rgb), .09); display: flex; flex-direction: column; gap: 6px; }
.callout__title { font-weight: 600; font-size: 17px; }
.callout__line { font-size: 14px; }
.callout .btn { margin-top: 6px; min-height: 46px; font-size: 15px; }
.world__panel { padding: 18px 20px; background: rgba(var(--paper-rgb), .08); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 10px; }
.world__live { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.world__live i { width: 9px; height: 9px; border-radius: 50%; background: #39c777; animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(57,199,119,0); } 100% { box-shadow: 0 0 0 0 rgba(57,199,119,0); } }
.world__country { font: 400 32px/1.1 var(--display); }
.world__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.world__stats b { display: block; font-size: 21px; font-weight: 600; line-height: 1.2; }
.world__stats span { font-size: 13px; }
.globe { flex: 1 1 420px; min-width: 0; position: relative; }
.globe canvas { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe__buttons { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; }
.globe__buttons button { width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--paper-rgb), .14); color: var(--paper); font-size: 22px; font-weight: 600; }
.globe__tip { position: absolute; pointer-events: none; padding: 4px 10px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -140%); }
.globe__hint { margin-top: 8px; text-align: center; font-size: 13px; }

/* Forms pages */
.form-page { padding: clamp(100px, 13vw, 150px) var(--gutter) clamp(50px, 7vw, 90px); display: grid; justify-items: center; min-height: 72vh; }
.form-page .panel { width: min(520px, 100%); border-radius: 130px 130px 12px 12px; padding: clamp(48px, 6vw, 70px) clamp(22px, 4vw, 44px) 34px; color: var(--ink); }
.form-page .panel h1 { text-align: center; }
.form-page .panel > .lead { text-align: center; }
.steps-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.steps-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps-bar i.on { background: var(--clay); }

/* Footer */
.footer { background: var(--night); color: rgba(var(--paper-rgb), .86); font-size: 14.5px; }
.footer a { text-decoration: none; }
.footer__invite, .footer__grid, .footer__trust, .footer__base { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.footer__invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: clamp(40px, 6vw, 72px) 36px; border-bottom: 1px solid rgba(var(--paper-rgb), .16); }
.footer__invite-title { font: 400 clamp(32px, 5vw, 72px)/1 var(--display); color: var(--paper); }
.footer__invite-title em { font-family: var(--voice); color: var(--lamp); }
.footer__invite p { margin-top: 8px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(130px, 1fr)); gap: 32px 28px; padding-block: 40px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font: 400 27px var(--display); color: var(--paper); }
.footer__about p { margin-top: 12px; line-height: 1.5; }
.footer__contact a { color: var(--lamp); font-weight: 600; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer__social a { padding: 5px 12px; border-radius: 14px 14px 3px 3px; box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), .34); font-size: 13px; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer nav h2 { margin-bottom: 8px; font: italic 400 19px var(--voice); color: var(--lamp); }
.footer nav a { padding: 5px 0; }
.footer nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer__trust { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 26px; }
.footer__chip { padding: 5px 12px; border-radius: 14px 14px 3px 3px; background: rgba(var(--paper-rgb), .09); font-size: 12.5px; }
.footer__chip--age { background: var(--lamp); color: var(--ink); font-weight: 600; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 16px 22px; border-top: 1px solid rgba(var(--paper-rgb), .16); font-size: 12.5px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } .split2 { grid-template-columns: minmax(0, 1fr); } }

/* App */
.appbar { background: var(--ox); color: var(--paper); }
body.app-body { background: var(--wall); color: var(--ink); }
.app h1 em, .app h2 em, .welcome h1 em { font-family: var(--voice); font-weight: 400; }
h1, h2, .h2, .h3 { font-weight: 400; }
h1.h2, h2, .h2 { font-family: var(--display); color: inherit; }
.h3, h2.h3, h1.h3 { font-family: var(--display); }
main .app h1.h2, main .app h2 { color: var(--ox); }
main .app h1 em, main .app h2 em { color: var(--clay); }
.panel .h2 em, .panel h1 em { font-family: var(--voice); color: var(--clay); }
.panel { color: var(--ink); }
.panel--wine, .panel--wine .h3 { color: var(--paper) !important; }
.lead { color: inherit; }
.note { font-size: 14px; }
.eyebrow { font: italic 400 18px var(--voice); letter-spacing: 0; text-transform: none; color: var(--clay); }
.card { background: var(--card); }
.upsell, .welcome { background: radial-gradient(90% 140% at 100% 0%, rgba(var(--clay-rgb),.4), transparent 60%), var(--ox); }
/* Forms */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.field label, .stars legend { font-weight: 700; font-size: 14px; }
.field small { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="datetime-local"], input[type="url"], input[type="search"], select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-input); border: 2px solid var(--input-line); background: var(--card); font-size: 16px; font-family: inherit; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); }
.field--error input, .field--error textarea, .field--error select { border-color: #9B1C1C; }
.field__error, .form-error { margin: 0; color: #9B1C1C; font-size: 14px; font-weight: 700; }
.form-error { margin-bottom: 12px; }
.form-note { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-input); background: var(--sand); font-size: 14px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; align-items: start; margin-bottom: 14px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wine); }
.check small { display: block; color: var(--muted); font-size: 13px; }
.check .field__error { grid-column: 2; }
.choices input { accent-color: var(--copper); }
.stars { border: 0; padding: 0; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.stars legend { float: left; margin-right: 12px; padding: 12px 0 0; }
.stars__row { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: grid; place-items: center; width: 44px; height: 44px; font-size: 28px; line-height: 1; color: #B8A98E; cursor: pointer; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--copper-text); }
.stars input:focus-visible + label { outline: 2px solid var(--copper); }

/* Panels and inner pages */
.form-page { padding-top: 40px; padding-bottom: 72px; display: grid; justify-items: center; }
.form-page .panel { width: min(520px, 100%); }
.panel { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); min-width: 0; }
.panel h1, .panel h2 { margin-bottom: 8px; }
.panel > .lead { margin-bottom: 18px; }
.panel p { margin-bottom: 12px; }
.panel--center { text-align: center; }
.panel--wine { background: linear-gradient(160deg, var(--wine-light), var(--wine-deep)); border-color: var(--copper); color: var(--cream); }
.panel--wine .h3 { color: var(--cream); }
.panel__foot { margin: 14px 0 0 !important; text-align: center; font-size: 14px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: var(--radius-input); background: var(--sage-light); font-size: 13px; font-weight: 700; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.spinner { width: 36px; height: 36px; margin: 0 auto 16px; border: 3px solid var(--line); border-top-color: var(--wine); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.danger { margin-top: 14px; font-size: 14px; }
.danger summary { cursor: pointer; color: #9B1C1C; font-weight: 700; }
.danger form { margin-top: 12px; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 8px 12px 8px 0; text-align: left; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.status { padding: 2px 8px; border-radius: var(--radius-input); font-size: 12px; font-weight: 700; background: var(--sand); white-space: nowrap; }
.status--success, .status--on { background: var(--sage-light); }
.status--failed, .status--flagged, .status--off { background: #F7DEDA; color: #7A1B12; }

/* Checkout */
.checkout { padding-top: 32px; padding-bottom: 64px; display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: start; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; }
.method__body { display: grid; gap: 2px; height: 100%; padding: 14px; border: 2px solid var(--input-line); border-radius: var(--radius-input); background: var(--cream); }
.method__body small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.method input:checked + .method__body { border-color: var(--wine); background: var(--sand); }
.method input:focus-visible + .method__body { outline: 2px solid var(--copper); outline-offset: 2px; }

/* App */
.appbar { background: var(--wine); color: var(--cream); }
.appbar__inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; gap: 2px 20px; overflow-x: auto; font-size: 14px; font-weight: 700; scrollbar-width: none; }
.appbar a { position: relative; padding: 12px 0; white-space: nowrap; opacity: .85; border-bottom: 3px solid transparent; }
.appbar a:hover, .appbar a.is-on { opacity: 1; border-color: var(--peach); }
.badge { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--copper); color: var(--on-copper); font-size: 11px; line-height: 18px; text-align: center; }
.app { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-radius: var(--radius-card); background: var(--sand); border: 1px solid var(--line); }
.meter { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; background: var(--copper); border-radius: 4px; }
.verified { color: var(--copper-text); font-size: 13px; font-weight: 700; }
.chips--tight { gap: 6px; }
.filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; }
.filter .field { margin: 0; flex: 1 1 160px; }
.profile-view { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.gallery { display: grid; gap: 8px; }
.photos-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.field-group { margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.field-group:last-of-type { border-bottom: 0; }

/* Studio */
.studio { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; background: var(--cream); }
.studio__side { background: var(--wine-dark); color: var(--cream); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.studio__brand { display: block; padding: 4px 10px 14px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.studio__label { padding: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--peach); }
.studio__side a.link { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--radius-input); font-size: 14px; }
.studio__side a.link:hover, .studio__side a.link.is-on { background: rgba(255,255,255,.1); }
.studio__main { padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.studio__main .toasts { margin: 0; padding: 0; max-width: none; }
.studio h1 { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--wine); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; }
.tile b { display: block; font-size: 28px; line-height: 1.15; color: var(--ink); }
.tile span { font-size: 13px; color: var(--muted); }
.tile--alert { border-color: var(--copper); }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.chart__bar { position: relative; flex: 1; min-width: 2px; height: 100%; display: flex; align-items: flex-end; }
.chart__bar i { display: block; width: 100%; min-height: 1px; background: var(--wine); border-radius: 4px 4px 0 0; }
.chart__bar:hover i { background: var(--copper); }
.chart__bar b { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); z-index: 2; padding: 4px 8px; border-radius: var(--radius-input); background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chart__bar:hover b { display: block; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--muted); }
.imgslot { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.imgslot__previews { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.imgslot__previews img, .imgslot__none { display: flex; align-items: center; justify-content: center; width: 100%; height: 110px; object-fit: cover; border-radius: var(--radius-input); background: var(--sand); font-size: 12px; color: var(--muted); }
.swatch { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.swatch input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--input-line); border-radius: var(--radius-input); background: var(--card); }
.swatch input[type=text] { width: 110px; min-height: 36px; padding: 4px 8px; font-size: 14px; }
.swatch span { flex: 1; }
.preview-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .studio__side { position: static; height: auto; }
}
@media (max-width: 720px) {
  .hero { background: linear-gradient(0deg, rgba(var(--wine-dark-rgb),.96) 0%, rgba(var(--wine-dark-rgb),.82) 42%, rgba(var(--wine-dark-rgb),.05) 72%), linear-gradient(rgba(var(--wine-rgb),.15), rgba(var(--wine-rgb),.15)), var(--img) 40% center / cover no-repeat var(--wine-dark); }
  .hero__body { justify-content: flex-end; min-height: 680px; }
  .checkout, .profile-view { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr; }
  .globe { order: -1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
@media print { .nav, .notice, .appbar, .studio__side { display: none; } }

/* ------------------------------------------------------------------ */
/* Premium layer: the same colours, with more depth and care           */
/* ------------------------------------------------------------------ */
:root { --shadow-sm: 0 1px 2px rgba(var(--wine-dark-rgb),.06), 0 2px 8px rgba(var(--wine-dark-rgb),.05); --shadow-md: 0 6px 24px -6px rgba(var(--wine-dark-rgb),.18); --shadow-lg: 0 24px 60px -18px rgba(var(--wine-dark-rgb),.38); }
.card, .panel { box-shadow: var(--shadow-sm); }
a.card, .plan, .feature, .value { transition: transform .22s ease, box-shadow .22s ease; }
a.card:hover, .plan:hover, .value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mood { transition: transform .3s ease, box-shadow .3s ease; box-shadow: var(--shadow-sm); }
.mood:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--membership { box-shadow: var(--shadow-lg); }
.btn { letter-spacing: .005em; }
.btn--copper { box-shadow: 0 6px 18px -6px rgba(var(--copper-rgb),.8); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.narrow { max-width: 520px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.tick { color: var(--copper-text); font-weight: 700; }
.chip--wine { background: var(--wine); color: var(--cream); }
.code-input { font-size: 22px !important; letter-spacing: .18em; text-align: center; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.codes code { padding: 8px 10px; border-radius: var(--radius-input); background: var(--cream); color: var(--ink); text-align: center; font-size: 15px; }
.setup-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; }
.qr { display: inline-block; margin-top: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); line-height: 0; }
.secret { display: block; margin-top: 6px; overflow-wrap: anywhere; font-size: 14px; }
.danger--plain summary { color: var(--wine); }

/* Avatars */
.avatar { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--wine); color: var(--cream); font-family: var(--display); font-weight: 400; font-size: 17px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar--lg { width: 52px; height: 52px; font-size: 20px; }
.avatar--xl { width: 76px; height: 76px; font-size: 30px; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.avatar__dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 2px var(--card); }

/* Dashboard */
.welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px; border-radius: var(--radius-card); color: var(--cream); background: radial-gradient(90% 140% at 100% 0%, rgba(var(--copper-rgb),.34), transparent 60%), linear-gradient(160deg, var(--wine-light), var(--wine-dark)); box-shadow: var(--shadow-lg); }
.welcome__who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.welcome h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--cream); overflow-wrap: anywhere; }
.welcome h1 em { color: var(--peach); }
.welcome p { color: var(--on-photo); font-size: 15px; margin-top: 4px; }
.welcome .tick { color: var(--peach); }
.welcome__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--wine); }
.stat span { font-size: 13px; color: var(--muted); }
.panel--wine input { background: rgba(255,255,255,.95); }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person__photo { position: relative; aspect-ratio: 4/5; background: var(--wine-dark); overflow: hidden; display: block; }
.person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(var(--wine-dark-rgb),.9), transparent); pointer-events: none; }
.person__over { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; color: var(--cream); }
.person__over .person__name { color: var(--cream); }
.person__over .tick { color: var(--peach); }
.person__over small { font-size: 13px; opacity: .85; }
.person__score { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--radius-input); background: rgba(var(--wine-dark-rgb),.78); backdrop-filter: blur(6px); color: var(--cream); font-size: 13px; font-weight: 700; }
.person__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.person__name { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--wine); overflow-wrap: anywhere; }
.person__why { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.person__why li::before { content: "✦ "; color: var(--copper); }
.person__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.person__actions form, .person__actions .btn { width: 100%; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 10px; }
.mini__photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-input); background: var(--wine-dark); margin-bottom: 6px; }
.mini__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini__name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.like-note { margin: 0; padding: 8px 10px; border-left: 3px solid var(--copper); background: var(--cream); font-size: 14px; font-style: italic; overflow-wrap: anywhere; }
.upsell { padding: 40px 24px; border-radius: var(--radius-card); text-align: center; color: var(--cream); background: linear-gradient(160deg, var(--wine-light), var(--wine-dark)); box-shadow: var(--shadow-lg); }
.upsell b { display: block; font-family: var(--display); font-size: 56px; line-height: 1; color: var(--peach); }
.upsell p { max-width: 44ch; margin: 10px auto 18px; color: var(--on-photo); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-button); background: var(--sand); }
.segmented a { padding: 7px 14px; border-radius: var(--radius-input); font-size: 14px; font-weight: 700; color: var(--wine); text-decoration: none !important; }
.segmented a.is-on { background: var(--wine); color: var(--cream); }

/* Swipe cards */
.deck-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; }
.deck { position: relative; width: min(420px, 100%); aspect-ratio: 4/5.4; }
.swipe { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; background: var(--wine-dark); box-shadow: var(--shadow-lg); touch-action: pan-y; user-select: none; transition: transform .32s cubic-bezier(.2,.8,.3,1), opacity .32s; cursor: grab; }
.swipe.is-dragging { transition: none; cursor: grabbing; }
.swipe > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(var(--wine-dark-rgb),.96), rgba(var(--wine-dark-rgb),.55) 50%, transparent); pointer-events: none; }
.swipe__info { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 7px; color: var(--cream); }
.swipe__info h2 { font-size: 30px; color: var(--cream); overflow-wrap: anywhere; }
.swipe__info .tick { color: var(--peach); font-size: 20px; }
.swipe__info p { font-size: 14px; color: var(--on-photo); }
.swipe__info .person__why { color: var(--on-photo); }
.swipe__info .person__why li::before { color: var(--peach); }
.swipe__bio { line-height: 1.35; }
.swipe__stamp { position: absolute; z-index: 3; top: 26px; padding: 4px 14px; border: 3px solid; border-radius: 8px; font-size: 24px; font-weight: 800; text-transform: uppercase; opacity: 0; pointer-events: none; }
.swipe__stamp--like { left: 20px; color: #6FD08F; transform: rotate(-12deg); opacity: var(--like, 0); }
.swipe__stamp--nope { right: 20px; color: #F2877B; transform: rotate(12deg); opacity: var(--nope, 0); }
.deck-empty { position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center; }
.deck-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.round { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border: 0; border-radius: 50%; background: var(--card); color: var(--wine); font-size: 26px; box-shadow: var(--shadow-md); transition: transform .15s ease; }
.round:hover:not(:disabled) { transform: scale(1.08); }
.round:disabled { opacity: .4; cursor: not-allowed; }
.round--sm { width: 48px; height: 48px; font-size: 19px; }
.round--like { background: linear-gradient(145deg, var(--copper), var(--copper-text)); color: var(--on-copper); font-size: 30px; }
.round.is-on { background: var(--wine); color: var(--peach); }
.deck-hint { margin: 0; }
.deck-message { text-align: center; }
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(var(--wine-dark-rgb),.72); backdrop-filter: blur(6px); }
.overlay__card { width: min(440px, 100%); padding: 26px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); }
.overlay__card--match { display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--cream); background: linear-gradient(160deg, var(--wine-light), var(--wine-dark)); }
.overlay__card--match h2 { font-size: 42px; color: var(--cream); }
.overlay__card--match h2 em { color: var(--peach); }

/* Profile */
.profile-view { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
.gallery { display: grid; gap: 10px; position: sticky; top: 14px; }
.protected { position: relative; overflow: hidden; border-radius: var(--radius-card); user-select: none; -webkit-user-select: none; background: var(--wine-dark); box-shadow: var(--shadow-md); }
.protected img { display: block; width: 100%; pointer-events: none; -webkit-user-drag: none; }
.protected::after { content: attr(data-mark); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: rgba(255,255,255,.28); transform: rotate(-24deg); pointer-events: none; text-align: center; }
html.is-away .protected img, html.is-away .person__photo img, html.is-away .swipe > img { filter: blur(24px); }
.profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1F7A45; }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; }
.match-panel { display: flex; align-items: center; gap: 16px; }
.ring { --p: 0; position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(var(--copper) calc(var(--p) * 1%), var(--sand) 0); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--wine); }
.prompt-card { background: linear-gradient(160deg, var(--card), var(--sand)); }
.prompt-card__text { margin: 0 !important; font-family: var(--display); font-size: 21px; line-height: 1.3; color: var(--wine); overflow-wrap: anywhere; }
.question { border: 0; padding: 0; margin: 0 0 16px; }
.question legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-block; padding: 8px 14px; border: 1px solid var(--input-line); border-radius: var(--radius-input); background: var(--cream); font-size: 14px; cursor: pointer; }
.pills input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.pills input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.photos-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo-tile { position: relative; }
.photo-tile img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-input); }
.photo-tile .status { position: absolute; top: 6px; left: 6px; }
.photo-tile button { position: absolute; top: 6px; right: 6px; min-height: 28px; padding: 0 8px; font-size: 12px; border: 0; border-radius: var(--radius-input); background: rgba(0,0,0,.65); color: #fff; }
.photo-tile__make button { top: auto; right: auto; bottom: 6px; left: 6px; }
.photo-tile__main { position: absolute; bottom: 6px; left: 6px; padding: 2px 8px; border-radius: var(--radius-input); background: var(--copper); color: var(--on-copper); font-size: 12px; font-weight: 700; }

/* Messenger */
.messenger { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; height: calc(100dvh - 190px); min-height: 520px; max-width: 1480px; width: 100%; margin: 0 auto; background: var(--card); border-inline: 1px solid var(--line); }
.messenger:not(.has-thread) { grid-template-columns: 340px minmax(0, 1fr); }
.inbox { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.inbox__head { display: grid; gap: 10px; padding: 18px 16px 12px; }
.inbox__head input { min-height: 40px; padding: 6px 12px; font-size: 14px; background: var(--cream); border-width: 1px; }
.inbox__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.inbox__empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.inbox__empty p { margin: 6px 0 14px; }
.thread { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-card); text-decoration: none !important; transition: background-color .15s; }
.thread:hover { background: var(--cream); }
.thread.is-on { background: var(--sand); }
.thread__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.thread__top, .thread__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thread__top strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.thread__top time { flex: none; font-size: 12px; color: var(--muted); }
.thread__preview { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; color: var(--muted); }
.thread.is-unread .thread__preview { color: var(--ink); font-weight: 700; }
.thread__flag { font-style: normal; font-size: 11px; }
.chatpane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(70% 50% at 100% 0%, rgba(var(--copper-rgb),.05), transparent), var(--cream); }
.chatpane__head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.chatpane__back { display: none; font-size: 22px; padding: 4px 8px; text-decoration: none !important; }
.chatpane__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.chatpane__who > span:last-child { min-width: 0; display: grid; }
.chatpane__who strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--display); font-size: 18px; color: var(--wine); }
.chatpane__who small { min-height: 16px; font-size: 12.5px; color: var(--muted); }
.chatpane__who small.is-live { color: #1F7A45; font-weight: 700; }
.chatpane__tools { display: flex; gap: 2px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; opacity: .6; transition: background-color .15s, opacity .15s; }
.iconbtn:hover { background: var(--sand); opacity: 1; }
.iconbtn.is-on { background: var(--sand); opacity: 1; }
.chatpane__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px clamp(12px, 3vw, 32px) 8px; }
.chat-matched { display: grid; justify-items: center; gap: 2px; padding: 14px 0 20px; text-align: center; }
.chat-matched strong { margin-top: 8px; font-family: var(--display); font-size: 19px; color: var(--wine); }
.chat-matched small, .chat-matched p { font-size: 13px; color: var(--muted); }
.chat-feed { display: flex; flex-direction: column; }
.chat-day { align-self: center; margin: 14px 0 10px; padding: 2px 10px; border-radius: var(--radius-input); background: var(--sand); font-size: 12px; font-weight: 700; color: var(--muted); }
.msg { position: relative; display: flex; flex-wrap: wrap; align-items: center; align-self: flex-start; gap: 4px; max-width: min(74%, 560px); margin-top: 12px; animation: msg-in .18s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg--joined { margin-top: 3px; }
.msg--mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.is-flash .bubble { box-shadow: 0 0 0 3px var(--peach); }
.bubble { min-width: 0; padding: 8px 12px; border-radius: 16px 16px 16px 5px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; box-shadow: var(--shadow-sm); }
.bubble--mine { border: 0; border-radius: 16px 16px 5px 16px; background: linear-gradient(160deg, var(--wine-light), var(--wine)); color: var(--cream); }
.bubble--unsent { font-style: italic; opacity: .6; box-shadow: none; }
.bubble__text { white-space: pre-wrap; }
.bubble__meta { display: block; margin-top: 2px; font-size: 11px; opacity: .65; text-align: right; }
.bubble__quote { display: block; width: 100%; margin-bottom: 6px; padding: 4px 8px; overflow: hidden; border: 0; border-left: 3px solid var(--copper); border-radius: 4px; background: rgba(var(--wine-dark-rgb),.07); color: inherit; font-size: 13px; text-align: left; white-space: nowrap; text-overflow: ellipsis; opacity: .9; }
.bubble--mine .bubble__quote { background: rgba(255,255,255,.14); border-color: var(--peach); }
.bubble__photo { position: relative; display: block; padding: 0; margin-bottom: 4px; border: 0; border-radius: 10px; overflow: hidden; background: none; line-height: 0; }
.bubble__photo img { display: block; width: 240px; max-width: 100%; max-height: 320px; object-fit: cover; }
.bubble__veil { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; background: rgba(var(--wine-dark-rgb),.35); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.msg__more { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; opacity: 0; transition: opacity .15s; }
.msg:hover .msg__more, .msg:focus-within .msg__more, .msg.is-open .msg__more { opacity: 1; }
.msg__menu { display: none; position: absolute; z-index: 5; bottom: calc(100% + 4px); left: 0; width: max-content; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.msg--mine .msg__menu { left: auto; right: 0; }
.msg.is-open .msg__menu { display: grid; gap: 4px; }
.msg__reacts { display: flex; }
.msg__reacts button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 19px; transition: transform .12s; }
.msg__reacts button:hover { transform: scale(1.25); background: var(--sand); }
.msg__actions { display: flex; gap: 2px; border-top: 1px solid var(--line); padding-top: 4px; }
.msg__actions button { flex: 1; padding: 5px 10px; border: 0; border-radius: var(--radius-input); background: transparent; font-size: 13px; font-weight: 700; color: var(--wine); }
.msg__actions button:hover { background: var(--sand); }
.msg__tally { flex-basis: 100%; display: flex; gap: 3px; margin-top: -6px; padding-inline: 8px; }
.msg--mine .msg__tally { justify-content: flex-end; }
.msg__tally span { position: relative; padding: 0 6px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.msg__tally span.is-mine { border-color: var(--copper); }
.caution { align-self: center; max-width: 86%; margin: 10px 0 2px; padding: 7px 12px; border-radius: var(--radius-input); background: #F7E8C8; font-size: 12.5px; text-align: center; }
.chat-typing { padding: 10px 0 2px; }
.dots { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 16px 16px 16px 5px; background: var(--card); border: 1px solid var(--line); }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-jump { position: absolute; z-index: 4; left: 50%; bottom: 84px; transform: translateX(-50%); padding: 6px 14px; border: 0; border-radius: 16px; background: var(--wine); color: var(--cream); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-md); }
.chat-error { margin: 0 16px 6px; padding: 7px 12px; border-radius: var(--radius-input); background: #F7DEDA; color: #7A1B12; font-size: 13px; }
.chat-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; background: var(--sand); border-top: 1px solid var(--line); font-size: 14px; }
.chat-gate p { margin: 2px 0 0; }
.chat-ideas { display: grid; gap: 6px; padding: 10px clamp(12px, 3vw, 32px) 4px; }
.chat-ideas .eyebrow { margin: 0; }
.chat-ideas button { padding: 8px 12px; border: 1px dashed var(--input-line); border-radius: var(--radius-input); background: var(--card); color: var(--ink); font-size: 14px; text-align: left; }
.chat-ideas button:hover { border-color: var(--wine); }
.composer-wrap { padding: 8px 12px 12px; background: var(--card); border-top: 1px solid var(--line); }
.composer { display: flex; align-items: flex-end; gap: 4px; }
.composer textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 9px 14px; border: 1px solid var(--input-line); border-radius: 20px; background: var(--cream); font-size: 15px; line-height: 1.4; resize: none; }
.composer__send { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 4px; border: 0; border-radius: 50%; background: linear-gradient(145deg, var(--copper), var(--copper-text)); color: var(--on-copper); transition: transform .12s; }
.composer__send:hover { transform: scale(1.07); }
.composer__send:disabled { opacity: .5; }
.reply-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-left: 3px solid var(--copper); border-radius: 4px; background: var(--cream); font-size: 13px; }
.reply-bar .eyebrow { margin: 0; flex: none; }
.reply-bar__text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reply-bar button, .image-preview button { border: 0; background: none; font-size: 18px; line-height: 1; }
.image-preview { display: inline-flex; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.image-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-input); }
.emoji-bar { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; }
.emoji-bar button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; }
.emoji-bar button:hover { background: var(--sand); }
.chatinfo { min-height: 0; overflow-y: auto; background: var(--card); border-left: 1px solid var(--line); }
.chatinfo__photo { aspect-ratio: 1; display: grid; place-items: center; background: var(--sand); }
.chatinfo__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chatinfo__body { display: grid; gap: 10px; padding: 16px; }
.chatinfo__body .eyebrow, .chatinfo__text { margin: 0; }
.chatinfo__text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.meter-row { display: flex; align-items: center; gap: 8px; }
.meter-row .meter { flex: 1; margin: 0; }
.chat-welcome { margin: auto; display: grid; justify-items: center; gap: 10px; max-width: 42ch; padding: 24px; text-align: center; color: var(--muted); }
.chatpane--empty { align-items: center; justify-content: center; }

@media (max-width: 1180px) {
  .messenger.has-thread { grid-template-columns: 300px minmax(0, 1fr); }
  .chatinfo { display: none; position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: min(320px, 100%); box-shadow: var(--shadow-lg); }
  .messenger { position: relative; }
  .messenger.show-info .chatinfo { display: block; }
}
@media (min-width: 1181px) { .messenger.show-info .chatinfo { display: none; } .messenger.show-info.has-thread { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .messenger, .messenger.has-thread, .messenger:not(.has-thread) { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 150px); border: 0; }
  .messenger.has-thread .inbox { display: none; }
  .messenger:not(.has-thread) .chatpane { display: none; }
  .chatpane__back { display: block; }
  .msg { max-width: 88%; }
  .msg__more { opacity: 1; }
  .profile-view { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
}


/* Plan summary at checkout */
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 120px 120px 10px 10px; background: var(--euca); color: var(--paper); }
.plan--membership { background: linear-gradient(150deg, #f2d596, #c49a4e 55%, #e8c986); color: var(--ink); }
.plan--premium { background: linear-gradient(160deg, #2a0c18, var(--night)); }
.plan__head { display: flex; justify-content: center; }
.plan__name { font: 400 34px var(--display); }
.plan__price { text-align: center; }
.plan__price b { font: 400 36px var(--display); display: block; }
.plan__note { text-align: center; font-size: 13px; }
.plan__perks { margin: 8px 0 0; padding-left: 20px; list-style: disc; display: grid; gap: 5px; font-size: 15px; }
.summary { padding-top: 52px; }
.checkout { padding: 32px var(--gutter) 64px; max-width: 1100px; margin-inline: auto; width: 100%; }
@media (max-width: 720px) { .checkout { grid-template-columns: minmax(0, 1fr); } }

.keyname { text-align: center; font: 400 clamp(30px, 3vw, 42px)/1 var(--display); }
.keybadge { align-self: center; padding: 3px 11px; border-radius: 12px 12px 3px 3px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.key .btn { margin-top: auto; }
.plan__panel:not(.is-on) { display: none !important; }
.key--night .btn:not(.btn--line) { background: var(--brass); color: var(--ink); }
.keys .seg button { color: inherit; }
.cue, .adult { color: var(--paper); }
.hall__foot .btn[hidden] { display: none; }
.seat--you a { text-align: center; }
main .note a:not(.btn), .panel a:not(.btn) { color: inherit; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.rows li, .rows > * { list-style: none; }

/* Foundations for every page */
a { color: inherit; }
.top a, .footer a, .floorplan a, .btn, .card, .person, .applink, .archcard, .post, .thread, .segmented a, .appbar a { text-decoration: none; }
main .panel a:not(.btn), .prose a, .note a, .fine a { text-decoration: underline; text-underline-offset: 2px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; width: 100%; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grow { flex: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
::placeholder { color: #8f7f79; }
.lead--sm { font-size: 17px; }
.note--xs { font-size: 12px; }
h1.h2, .h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.h3, h2.h3, h1.h3 { font-size: 25px; line-height: 1.15; }
.app h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
.btn--copper { background: var(--clay); color: var(--paper); }
.btn--big { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn--shadow { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--paper); }
.btn--outline-dark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ox); color: var(--ox); }
.btn--small { min-height: 42px; padding: 0 17px; font-size: 14px; }
.btn--danger { background: #9b1c1c; color: #fff; }
.btn--full { width: 100%; }
.btn { font-size: 16px; text-align: center; }
.toasts { max-width: 720px; margin: 10px auto 12px; padding: 0 20px; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: var(--radius-card); background: var(--blush); color: var(--ink); font-size: 15px; }
.toast--error { background: #f7deda; color: #7a1b12; }
body.over .toasts { position: fixed; z-index: 48; top: 66px; left: 50%; transform: translateX(-50%); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: var(--radius-input); font-weight: 600; font-size: 14px; }
.chip--sm { padding: 3px 10px; font-size: 13px; background: var(--blush); color: var(--ink); font-weight: 400; }
.chip--wine { background: var(--ox); color: var(--paper); }
.verified { color: var(--clay); font-size: 13px; font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--ink); }
.door__text span { display: block; }
.paint-wall { color: var(--ink); }

/* The table is a polished mirror: guests on the far side reflect in it */
.disc { --R: min(23vw, 31vh); background: radial-gradient(circle at 50% 50%, #3a1509, #190703 74%); }
.seat { transform: rotateZ(var(--a)) translateY(calc(var(--R) * -1.03)) !important; }
.disc__mirror { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.mir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotateZ(var(--a)) translateY(calc(var(--R) * -1)) rotateZ(calc((var(--a) + var(--r, 0deg)) * -1)); }
.mir img, .mir i { position: absolute; left: -46px; top: 0; display: block; width: 92px; height: 235px; border-radius: 0 0 46px 46px; object-fit: cover; transform: scaleY(-1) translateY(-100%); transform-origin: 50% 0; filter: blur(.6px) saturate(1.05) brightness(.92); opacity: .62; -webkit-mask-image: linear-gradient(0deg, #000, rgba(0,0,0,.3) 62%, transparent 94%); mask-image: linear-gradient(0deg, #000, rgba(0,0,0,.3) 62%, transparent 94%); }
.mir i { background: var(--lamp); opacity: .5; }
.disc__sheen { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from calc(var(--r, 0deg) * -1 + 200deg), rgba(255,255,255,0) 0 8%, rgba(255,240,215,.16) 13%, rgba(255,255,255,0) 19% 57%, rgba(255,240,215,.09) 62%, rgba(255,255,255,0) 68%), radial-gradient(circle, rgba(255,255,255,.03) 0 60%, rgba(255,255,255,.1) 96%, rgba(255,255,255,.2) 100%); }
.disc::before { z-index: 1; }
.disc__light { z-index: 1; opacity: .85; }
.room-more { margin-top: 18px; width: fit-content; }
.hall__foot { align-items: center; }
.hall__foot .room-more { margin-top: 0; }
.solo-top { padding-top: clamp(40px, 6vw, 70px); }
@media (max-width: 980px) {
  .disc { --R: min(29vw, 17vh); }
  .mir img, .mir i { left: -27px; width: 54px; height: 138px; }
}

/* Doors at sign-up */
.doorpick { border: 0; padding: 0; margin: 0 0 16px; }
.doorpick legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.doorpick__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.dp { --hold: 0; position: relative; display: block; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.dp input { position: absolute; opacity: 0; inset: 0; }
.dp__door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 148px; padding: 34px 7px 9px; overflow: hidden; border-radius: 60px 60px 5px 5px; background: var(--hue); color: var(--paper); transition: transform .15s, box-shadow .2s; }
.dp__door b { font: 400 16px/1.05 var(--display); }
.dp__door small { font-size: 11px; line-height: 1.15; opacity: .9; }
.dp__door em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--acc); }
.dp--hold .dp__door::before { content: ""; position: absolute; inset: 0; background: var(--acc); opacity: .35; transform-origin: 50% 100%; transform: scaleY(var(--hold)); }
.dp__door > * { position: relative; }
.dp input:checked + .dp__door { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--acc); transform: translateY(-3px); }
.dp input:checked + .dp__door::after { content: "✓"; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: var(--ink); font-size: 13px; font-weight: 600; }
.dp input:focus-visible + .dp__door { outline: 3px solid var(--ink); outline-offset: 5px; }
.doorpick__note { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .doorpick__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The hall page */
.quiz { padding: clamp(26px, 3vw, 38px); border-radius: 110px 110px 10px 10px; background: rgba(var(--paper-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), .2); display: grid; gap: 14px; }
.quiz__bar { display: flex; gap: 5px; padding: 8px 30px 0; }
.quiz__bar i { flex: 1; height: 4px; border-radius: 2px; background: rgba(var(--paper-rgb), .22); transition: background-color .25s; }
.quiz__bar i.on { background: var(--lamp); }
.quiz h2 { font: 400 clamp(24px, 2.5vw, 34px)/1.1 var(--display); margin-bottom: 12px; text-align: center; }
.quiz [data-q] { display: grid; gap: 8px; animation: rise .35s both; }
.quiz [data-q] > button { min-height: 52px; padding: 8px 18px; border-radius: 22px 22px 5px 5px; background: rgba(var(--paper-rgb), .1); text-align: center; font-weight: 600; transition: background-color .15s, transform .15s; }
.quiz [data-q] > button:hover { background: var(--lamp); color: var(--ink); transform: translateY(-2px); }
.quiz__said { text-align: center; font: italic 400 21px var(--voice); }
.quiz__door { text-align: center; font: 400 clamp(50px, 6vw, 84px)/1 var(--display); color: var(--lamp); }
#quizLine { text-align: center; }
.quiz .btn { width: 100%; }
.quiz__again { min-height: 40px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.doorline { display: flex; gap: 10px; height: clamp(460px, 66vh, 620px); }
.dl { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; border-radius: 160px 160px 8px 8px; background: var(--img) var(--pos) / cover no-repeat var(--hue); transition: flex-grow .55s cubic-bezier(.2,.8,.2,1); }
.dl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--night-rgb), .94) 8%, rgba(var(--night-rgb), .35) 60%), var(--hue); opacity: .9; mix-blend-mode: multiply; transition: opacity .45s; }
.dl::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(var(--night-rgb), .96), transparent); }
.dl:hover, .dl:focus-visible, .dl.is-open { flex-grow: 3.4; }
.dl:hover::before, .dl:focus-visible::before, .dl.is-open::before { opacity: .22; }
.dl__in { position: absolute; z-index: 1; left: clamp(14px, 2vw, 26px); right: clamp(14px, 2vw, 26px); bottom: 22px; display: grid; gap: 8px; }
.dl h3 { font: 400 clamp(22px, 2.4vw, 38px)/1 var(--display); }
.dl__tag { justify-self: start; background: var(--acc); color: var(--ink); }
.dl__more { display: grid; grid-template-rows: 0fr; gap: 8px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s, opacity .35s; min-width: 260px; }
.dl:hover .dl__more, .dl:focus-visible .dl__more, .dl.is-open .dl__more { display: grid; grid-template-rows: auto; max-height: 340px; opacity: 1; }
.dl__more .v { font-size: 20px; color: var(--acc); }
.dl__more ul { display: grid; gap: 4px; font-size: 14.5px; line-height: 1.3; }
.dl__more li::before { content: "· "; color: var(--acc); font-weight: 600; }
.dl__more .btn { width: fit-content; margin-top: 4px; }
@media (max-width: 860px) {
  .doorline { flex-direction: column; height: auto; }
  .dl { flex: none; height: 92px; border-radius: 40px 40px 6px 6px; transition: height .45s; }
  .dl:hover, .dl:focus-visible, .dl.is-open { height: 400px; }
  .dl__more { min-width: 0; }
}

/* Your own house rules */
.pickgroups { display: grid; gap: 14px; margin-top: 22px; }
.pickgroups > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pickgroups__t { flex-basis: 100%; font: italic 400 19px var(--voice); }
.pickgroups button { min-height: 42px; padding: 0 15px; border-radius: 20px 20px 4px 4px; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 14px; font-weight: 600; transition: .18s; }
.pickgroups button:hover { transform: translateY(-2px); }
.pickgroups button.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.pickgroups--dark button.on { background: var(--lamp); color: var(--ink); }
.rulecard, .mailcard { display: grid; gap: 14px; padding: clamp(40px, 5vw, 60px) clamp(24px, 3vw, 38px) 28px; border-radius: 170px 170px 10px 10px; background: var(--paper); color: var(--ink); box-shadow: 0 34px 70px -28px rgba(0,0,0,.6); transition: transform .2s ease-out; justify-items: center; text-align: center; }
.rulecard svg { color: var(--clay); }
.rulecard h2 { font: 400 clamp(28px, 3vw, 42px)/1.05 var(--display); }
.rulecard ol { width: 100%; min-height: 150px; margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; align-content: start; font: italic 400 21px/1.2 var(--voice); }
.rulecard li { animation: rise .3s both; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.rulecard ol:empty::before { content: attr(data-empty); color: var(--muted); }
.rulecard form { width: 100%; }
.simsw { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.simsw label { cursor: pointer; }
.simsw input { position: absolute; opacity: 0; }
.simsw span { display: block; padding: 9px 15px; border-radius: 20px 20px 4px 4px; box-shadow: inset 0 0 0 1.5px rgba(var(--paper-rgb), .5); font-size: 14px; font-weight: 600; transition: .18s; }
.simsw input:checked + span { background: var(--neon); color: var(--ink); box-shadow: none; }
.simsw input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.simtable td { transition: background-color .3s, color .3s; font-weight: 600; }
.simtable td.is-no { color: rgba(var(--paper-rgb), .45); font-weight: 400; }
.simtable td.flash { background: rgba(255,120,189,.24); }
.simtable tbody th { font-weight: 400; }

/* The table page */
.tablehero { padding: clamp(100px, 12vw, 150px) var(--gutter) clamp(36px, 5vw, 60px); }
.tablehero__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 20px 40px; }
.tablehero__stage { position: relative; display: grid; justify-items: center; gap: 12px; margin-top: 26px; }
.scene3d--big { width: 100%; height: clamp(360px, 62vh, 620px); }
.scene3d--big .disc { --R: min(25vw, 27vh); width: calc(var(--R) * 2); }
.ttabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; position: relative; z-index: 3; }
.ttabs button { min-height: 44px; padding: 0 16px; border-radius: 22px 22px 4px 4px; box-shadow: inset 0 0 0 1.5px rgba(var(--paper-rgb), .55); font-size: 14px; font-weight: 600; transition: .2s; }
.ttabs button[aria-pressed="true"] { background: var(--paper); color: var(--clay); box-shadow: none; }
.ttabs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; text-align: center; position: relative; z-index: 3; }
.ttabs__foot p { font: italic 400 22px var(--voice); }
.talkfloat { position: absolute; inset: 0; pointer-events: none; }
.talkfloat span { position: absolute; max-width: 200px; padding: 7px 12px; border-radius: 15px 15px 15px 4px; background: var(--paper); color: var(--ink); font-size: 13.5px; line-height: 1.25; box-shadow: 0 10px 24px -10px rgba(30,6,0,.7); animation: talkup 4.6s ease-out both; }
@keyframes talkup { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 12%, 76% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-22px); } }
@media (max-width: 860px) { .tablehero__top { grid-template-columns: minmax(0, 1fr); } .scene3d--big .disc { --R: min(30vw, 20vh); } .talkfloat span { max-width: 150px; font-size: 12px; } }

/* The knock page */
.kdoor-wrap { position: relative; display: grid; justify-items: center; gap: 18px; perspective: 1300px; }
.kdoor { position: relative; width: min(330px, 76vw); aspect-ratio: 3 / 4.5; border-radius: 170px 170px 6px 6px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px #0c0f30, 0 0 0 9px var(--lamp), 0 0 70px -6px var(--lamp); transform-style: preserve-3d; }
.kdoor > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kdoor__leaf { position: absolute; inset: 0; transform-origin: 0 50%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 1px, transparent 1px 44px), linear-gradient(170deg, #7a1d33, #3a0a18); transition: transform 1.1s cubic-bezier(.3,.85,.3,1); }
.kdoor.is-open .kdoor__leaf { transform: rotateY(-100deg); }
.kdoor.shake { animation: knockshake .28s; }
@keyframes knockshake { 25% { transform: translateX(-3px) rotate(-.4deg); } 60% { transform: translateX(3px) rotate(.4deg); } }
.kdoor__knocker { position: absolute; left: 50%; top: 47%; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #f7dfaa, var(--brass) 60%, #8d6a2a); box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 0 0 rgba(255,182,72,.6); animation: knockpulse 2.2s infinite; cursor: pointer; }
.kdoor__knocker i { width: 34px; height: 34px; border-radius: 50%; border: 5px solid #5a4114; }
.kdoor__knocker:active { transform: translateY(5px) scale(.96); }
@keyframes knockpulse { 70% { box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 0 22px rgba(255,182,72,0); } 100% { box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 0 0 rgba(255,182,72,0); } }
#kRings { opacity: 0; transition: opacity .4s; height: 56px; width: 94px; }
#kRings i { width: 56px; height: 56px; border-width: 4px; }
#kRings.on { opacity: 1; }
#kRings.on i { transform: none; }
.scorecard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 12px; background: rgba(var(--paper-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), .18); }
.scorecard > img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.scorecard__body { display: grid; align-content: center; gap: 10px; padding: 24px; }
.scorecard__body > b { font-size: 32px; }
.scorecard .kring::before { background: var(--night); }
.whylist { display: grid; gap: 3px; font-size: 15px; min-height: 66px; }
.whylist li::before { content: "✦ "; color: var(--neon); }
@media (max-width: 560px) { .scorecard { grid-template-columns: minmax(0, 1fr); } .scorecard > img { height: 280px; min-height: 0; } }

/* The conversation page */
.bubblehero { position: relative; overflow: hidden; min-height: min(74vh, 660px); display: flex; align-items: flex-end; }
.bubblehero .roomwrap { width: 100%; position: relative; z-index: 1; }
.floaters span { position: absolute; padding: 10px 16px; border-radius: 19px 19px 19px 5px; background: #fff; font-size: clamp(14px, 1.4vw, 18px); box-shadow: 0 16px 34px -14px rgba(75,13,29,.6); animation: bob 7s ease-in-out infinite; }
.floaters span.me { background: var(--ox); color: var(--paper); border-radius: 19px 19px 5px 19px; }
.floaters span:nth-child(1) { right: 26%; top: 16%; }
.floaters span:nth-child(2) { right: 7%; top: 28%; animation-delay: -2s; }
.floaters span:nth-child(3) { right: 34%; top: 38%; font-size: 32px; animation-delay: -4s; background: transparent; box-shadow: none; }
.floaters span:nth-child(4) { right: 15%; top: 52%; animation-delay: -1s; }
.floaters span:nth-child(5) { right: 30%; top: 66%; animation-delay: -5s; }
.floaters span:nth-child(6) { right: 6%; top: 74%; animation-delay: -3s; font-size: 26px; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(1deg); } }
@media (max-width: 720px) { .floaters span:nth-child(n+4) { display: none; } .floaters span { font-size: 13px; } .bubblehero { min-height: 620px; } }
.scenebtns { display: grid; gap: 8px; }
.scenebtns button { display: grid; gap: 2px; padding: 14px 18px; text-align: left; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), .2); transition: .2s; }
.scenebtns button b { font: 400 21px/1.1 var(--display); }
.scenebtns button span { font-size: 14.5px; }
.scenebtns button:hover { box-shadow: inset 0 0 0 1px var(--lamp); }
.scenebtns button[aria-pressed="true"] { background: var(--lamp); color: var(--ink); box-shadow: none; }
.b.is-gone { font-style: italic; opacity: .55; }
.mailcard { justify-items: stretch; text-align: left; color: var(--ink); }
.mailcard__from { text-align: center; font: italic 400 19px var(--voice); color: var(--clay); }
.mailcard__sub { font: 400 24px/1.1 var(--display); text-align: center; }
.mailcard__sub b { font-weight: 400; }
.mailcard .rows { border-color: var(--line); }
.mailcard .rows li { border-color: var(--line); overflow-wrap: anywhere; }
.mailcard .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .floaters span, .kdoor__knocker { animation: none; } }

/* Hidden means hidden, whatever else styles the element */
[hidden] { display: none !important; }
/* Outline buttons take the text colour of the wall they stand on */
.btn--line { color: inherit; }

/* Text colour follows the surface it sits on, whatever room is around it */
.phone { color: var(--ink); }
.phone__head { color: var(--paper); }
.b, .warn, .dots { color: var(--ink); }
.b.me { color: var(--paper); }
.b .react { color: var(--ink); }
.simtable td.is-no { color: rgba(var(--paper-rgb), .68); }
.paint-clay .archcard { background: rgba(var(--ink-rgb), .22); box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), .24); }
.paint-clay .archcard svg, .paint-clay .archcard .n { color: var(--paper); }
.thread .tick, .chatpane__who .tick { color: var(--ox); }
main .app .swipe__info h2, main .app .swipe__info h2 a { color: var(--paper); }
main .app .overlay__card--match h2 { color: var(--paper); }
main .app .overlay__card--match h2 em { color: var(--lamp); }
main .app .overlay__card--match p, main .app .overlay__card--match strong { color: var(--paper); }
main .app .upsell p, .welcome p { color: var(--paper); }
.form-note, .panel, .mailcard, .rulecard { color: var(--ink); }
.panel--wine p, .panel--wine label { color: var(--paper); }
.panel--wine .eyebrow { color: var(--lamp); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.value { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.review, .empty, .card { color: var(--ink); }
.key--night .btn--line, .key:not(.key--brass) .btn--line { color: var(--paper); }
.zxtoast { color: var(--ink); }
.btn--copper, .btn--danger, .btn:not(.btn--lamp):not(.btn--line):not(.btn--outline):not(.btn--outline-dark) { color: var(--paper); }
.btn--lamp, .top__right .btn { color: var(--ink) !important; }
.key--brass .btn { color: var(--paper); }
.key--night .btn:not(.btn--line) { color: var(--ink); }
.plan--membership .plan__note, .plan--membership { color: var(--ink); }

/* Card groups: the count decides the layout, so nothing is ever left orphaned */
.arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(14px, 1.8vw, 24px); }
.arches:has(> :nth-child(4):last-child), .arches:has(> :nth-child(8):last-child), .arches:has(> :nth-child(12):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arches:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arches:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.arches:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
.arches:has(> :nth-child(5):last-child) > :nth-child(4) { grid-column: 2 / span 2; }
.archcard { align-items: center; text-align: center; justify-content: flex-start; gap: 10px; padding: clamp(46px, 5vw, 66px) clamp(18px, 2vw, 30px) clamp(24px, 2.4vw, 34px); border-radius: 50vw 50vw 10px 10px; }
.archcard h3 { display: flex; align-items: center; justify-content: center; min-height: 2.15em; text-wrap: balance; }
.archcard p { max-width: 30ch; text-wrap: pretty; }
.archcard .tag { margin-top: auto; }
.sect .h2x { margin-bottom: clamp(26px, 3.4vw, 46px); }
.values { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 1fr; }
.value { justify-content: flex-start; }
.split2 > .rows, .split2 > .prose { min-width: 0; }
.rows li { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
@media (max-width: 1040px) {
  .arches, .arches:has(> :nth-child(4):last-child), .arches:has(> :nth-child(8):last-child), .arches:has(> :nth-child(12):last-child), .arches:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arches:has(> :nth-child(5):last-child) > *, .arches:has(> :nth-child(5):last-child) > :nth-child(4) { grid-column: auto; }
  .arches:has(> :nth-child(5):last-child) > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .arches, .arches:has(> :nth-child(n)) { grid-template-columns: minmax(0, 1fr) !important; grid-auto-rows: auto; }
  .arches > * { grid-column: auto !important; }
  .archcard h3 { min-height: 0; }
}

/* Reflections need room: the general image rule would shrink them to nothing */
.mir img, .mir i { max-width: none; }
/* Colours for the last few surfaces */
.key--night a.btn:not(.btn--line) { color: var(--ink) !important; }
.key--brass a.btn { color: var(--paper) !important; }
.tap span { background: rgba(23,16,26,.58); }
main .app .welcome h1 { color: var(--paper); }
main .app .welcome h1 em { color: var(--lamp); }

/* A country's day: its real local time, and when the sun is up today */
.clock24 { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid rgba(var(--paper-rgb), .16); }
.clock24[hidden] { display: none; }
.clock24__now { display: flex; align-items: baseline; gap: 10px; }
.clock24__now b { font-family: Gloock, serif; font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock24__now span, .clock24__from { font-size: 13px; margin: 0; }
.clock24__bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin-top: 3px; }
.clock24__bar i { height: 12px; border-radius: 2px; background: rgba(var(--paper-rgb), .14); }
.clock24__bar i.up { background: var(--lamp); }
.clock24__bar i.now { box-shadow: 0 0 0 2px var(--neon); position: relative; z-index: 1; }
.clock24__scale { display: flex; justify-content: space-between; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.clock24__note { font-size: 12.5px; margin: 0; }

.evening { display: grid; gap: 7px; }
.evening[hidden] { display: none; }
.evening p { margin: 0; font-size: 13px; }
.evening__list { display: flex; flex-wrap: wrap; gap: 6px; }
.evening__pick { font: inherit; font-size: 13px; color: var(--paper); background: rgba(var(--paper-rgb), .1); border: 1px solid rgba(var(--paper-rgb), .28); border-radius: 99px; padding: 5px 12px; cursor: pointer; min-height: 32px; }
.evening__pick:hover, .evening__pick:focus-visible { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }

/* ZXenus points */
.pointlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pointlist li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pointlist li:last-child { border-bottom: 0; }
.pointlist span { display: grid; gap: 2px; }
.pointlist small { color: var(--muted); font-size: 13px; }
.pointlist b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pointlist em { font-style: normal; font-size: 13px; color: #1D5B3F; white-space: nowrap; }
.pointlist li.is-done strong { color: var(--muted); }
.pointlist li.is-done b { color: #1D5B3F; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num.is-plus { color: #1D5B3F; font-weight: 600; }
.badge--soft { background: rgba(var(--lamp-rgb), .3); color: inherit; border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 600; }
.chat-cost { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.postactions { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; font-size: 13px; }
.postactions form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* The wordmark: ZXEnIA. The small n is a little larger: its arch is the house's door. */
.wordmark { font-size: .78em; letter-spacing: .06em; white-space: nowrap; }
.wm-n { display: inline-block; height: 1.12em; width: auto; aspect-ratio: 26 / 30; margin: 0 .04em 0 .02em; vertical-align: -.02em; overflow: visible; }
.footer__brand .wm-n { color: var(--lamp); }

/* Legal and help pages: a contents list that stays in view beside the text */
.legalmeta { margin: 12px 0 0; font-size: 15px; opacity: .85; }
.legaldoc { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 760px); gap: clamp(32px, 5vw, 80px); justify-content: center; align-items: start; }
.legaldoc--plain { grid-template-columns: minmax(0, 760px); }
.legaldoc__side { position: sticky; top: 96px; display: grid; gap: 22px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 6px; }
.legaltoc summary { font: 400 22px/1.1 var(--display); cursor: pointer; list-style: none; margin-bottom: 12px; }
.legaltoc summary::-webkit-details-marker { display: none; }
.legaltoc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legaltoc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.35; color: var(--muted); text-decoration: none; }
.legaltoc a:hover { color: var(--ink); }
.legaltoc a.is-on { color: var(--ink); font-weight: 600; border-left-color: var(--ox); }
.legalside__more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.legalside__more a, .legalside__ask a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legalside__ask { padding: 16px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); font-size: 14.5px; }
.legalside__ask p { margin: 0 0 4px; color: var(--muted); }
.legaldoc__body h2 { scroll-margin-top: 96px; }
.legaldoc__body > p:first-child { font-size: 17px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); }
@media (max-width: 900px) {
  .legaldoc { grid-template-columns: minmax(0, 1fr); }
  .legaldoc__side { position: static; max-height: none; overflow: visible; }
  .legalside__more, .legalside__ask { display: none; }
  .legaltoc { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); }
  .legaltoc summary { margin: 0; font-size: 19px; }
  .legaltoc[open] summary { margin-bottom: 12px; }
}
@media print {
  .legaldoc { display: block; }
  .legaldoc__side { display: none; }
}

/* The floating header gets a backing once the page scrolls, and fits small phones */
.top { transition: color .3s, background-color .3s, box-shadow .3s; }
body.over .top.is-solid { background: var(--navbg, rgba(12, 9, 18, .94)); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top__right a, .top__right button { white-space: nowrap; }
@media (max-width: 480px) {
  .top { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .top__right { gap: 12px; }
  .top__right > .top__link:first-child { display: none; }
  .top__right .btn { padding: 0 14px; }
  .logo { font-size: 21px; }
}


/* ---------- Member area polish ---------- */
.zxtoast:not(.on) { visibility: hidden; }

/* Choice chips: the group label is plain, the choices wrap in rows */
.choices .field > label { display: block; margin-bottom: 8px; font-weight: 600; }
.choices .field > div { display: flex; flex-wrap: wrap; gap: 8px; }
.choices .field > div > div { display: contents; }
.choices .field > div label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; min-height: 40px; border: 1px solid var(--input-line); border-radius: 99px; background: var(--card); font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.choices .field > div label:hover { border-color: var(--ink); }
.choices .field > div label:has(input:checked) { background: var(--ox); border-color: var(--ox); color: var(--paper); }
.choices .field > div label:has(input:focus-visible) { outline: 2px solid var(--ox); outline-offset: 2px; }
.choices input { accent-color: var(--lamp); }

/* A quiet footer inside the app */
.appfoot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--wall); color: var(--muted); font-size: 14px; }
.appfoot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 22px; }
.appfoot__brand { color: var(--ink); font-family: var(--display); font-size: 19px; text-decoration: none; }
.appfoot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.appfoot nav a { color: var(--muted); text-decoration: none; }
.appfoot nav a:hover { color: var(--ink); text-decoration: underline; }

/* Profile: a card that stays beside the form */
.profilegrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.profileside { position: sticky; top: 132px; display: grid; gap: 16px; }
.profilecard { border-radius: var(--radius-card); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(23, 16, 26, .45); }
.profilecard__photo { aspect-ratio: 4 / 5; background: var(--ox); display: grid; place-items: center; color: var(--paper); font: 400 64px var(--display); }
.profilecard__photo img { width: 100%; height: 100%; object-fit: cover; }
.profilecard__body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.profilecard__name { margin: 0; font: 400 26px/1.1 var(--display); }
.profilecard__body .note { margin: 0; }
.profilecard__tip { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(var(--lamp-rgb), .2); font-size: 14px; }
.tick { color: #1D5B3F; font-family: var(--sans, inherit); font-size: .7em; }
.meter { height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--clay), var(--lamp)); }
.sidelinks { display: grid; padding: 8px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.sidelinks a { padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.sidelinks a:hover { background: var(--sand); }
.profilemain .panel, .profilemain .field-group { scroll-margin-top: 140px; }
@media (max-width: 960px) {
  .profilegrid { grid-template-columns: minmax(0, 1fr); }
  .profileside { position: static; grid-template-columns: 140px minmax(0, 1fr); align-items: start; }
  .profilecard { grid-column: 1 / -1; display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .profilecard__photo { aspect-ratio: auto; min-height: 140px; }
  .sidelinks { display: none; }
}

/* Notices */
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 820px; }
.notice-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.notice-row.is-new { border-color: rgba(var(--ox-rgb), .35); box-shadow: inset 3px 0 0 var(--ox); }
.notice-row__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--sand); color: var(--ink); }
.notice-row__icon--points { background: rgba(var(--lamp-rgb), .35); }
.notice-row__icon--chat { background: rgba(var(--ox-rgb), .12); }
.notice-row__icon--profile { background: #D9EBDF; color: #1D5B3F; }
.notice-row__text { font-weight: 500; }
.notice-row__text a { color: inherit; text-decoration: none; }
.notice-row__text a:hover { text-decoration: underline; }
.notice-row__time { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Discover filters */
.filter-box { padding: 0; overflow: hidden; }
.filter-box > summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.filter-box[open] > summary::after { transform: rotate(180deg); }
.filter-box > form { padding: 4px 18px 16px; border-top: 1px solid var(--line); }
.filtercount { font-weight: 500; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: rgba(var(--ox-rgb), .1); }

/* Verification */
.verifyhero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); margin-bottom: 20px; color: var(--paper); }
.verifyhero .lead { color: inherit; max-width: 640px; }
.verifyhero__badge { width: 96px; height: 112px; border-radius: 48px 48px 12px 12px; display: grid; place-items: center; font-size: 46px; background: var(--lamp); color: var(--ink); box-shadow: 0 0 60px rgba(var(--lamp-rgb), .45); }
.statuspill { display: inline-block; margin: 12px 0 0; padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .16); }
.statuspill--verified { background: #D9EBDF; color: #1D5B3F; }
.statuspill--pending { background: var(--lamp); color: var(--ink); }
.steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steplist li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.steplist b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ox); color: var(--paper); }
.steplist span { display: grid; gap: 2px; color: var(--muted); }
.steplist strong { color: var(--ink); }
@media (max-width: 640px) { .verifyhero { grid-template-columns: minmax(0, 1fr); } .verifyhero__badge { width: 72px; height: 84px; font-size: 34px; } }
.verifyhero h1, .verifyhero .h2 { color: var(--paper); }
.verifyhero h1 em { color: var(--lamp); }
.notices { max-width: none; }
main .app .verifyhero h1.h2 { color: var(--paper); }
main .app .verifyhero h1 em { color: var(--lamp); }

/* Say hello: your own first message, with ideas to start from */
.hello { display: grid; gap: 10px; margin-top: 6px; text-align: left; }
.hello textarea { width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--paper-rgb), .35); background: rgba(var(--paper-rgb), .96); color: var(--ink); font: inherit; resize: vertical; }
.hello__ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.hello__ideas button { font: inherit; font-size: 13.5px; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(var(--paper-rgb), .45); background: rgba(var(--paper-rgb), .12); color: inherit; cursor: pointer; text-align: left; }
.hello__ideas button:hover, .hello__ideas button:focus-visible { background: var(--lamp); color: var(--ink); border-color: var(--lamp); }
.overlay[data-note-box] .hello__ideas { margin-bottom: 10px; }
.overlay[data-note-box] .hello__ideas button { border-color: var(--input-line); background: var(--card); color: var(--ink); }
.hello__note, .hello__gate { margin: 0; font-size: 13.5px; opacity: .9; }
.hello__more { justify-content: center; gap: 10px; margin-top: 10px; }
.hello__more .btn { color: inherit; }
.overlay__card--match { width: min(540px, 100%); }
.overlay__card--match .hello, .overlay__card--match .hello__more { justify-self: stretch; }

/* End-to-end encryption */
.e2ee-note { margin: 0; padding: 8px 16px; text-align: center; font-size: 12.5px; color: var(--muted); }
.knocknote { margin: 6px auto 4px; max-width: 520px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--lamp-rgb), .18); text-align: center; }
.knocknote p { margin: 2px 0 0; font-style: italic; }
.chatpane { position: relative; }
.e2ee-lock { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(var(--wall-rgb), .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.e2ee-lock[hidden] { display: none; }
.e2ee-lock__card { width: min(420px, 100%); display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(23, 16, 26, .5); }
.e2ee-lock__card h2, .e2ee-lock__card p { margin: 0; }
.e2ee-lock__icon { font-size: 30px; }
.composer.is-locked { opacity: .45; pointer-events: none; }
.bubble__text.is-sealed { font-style: italic; opacity: .8; }
.badge[hidden] { display: none; }
.appbar .badge { margin-left: 4px; }
/* Message ticks and typing */
.ticks { display: inline-flex; vertical-align: -1px; margin-left: 4px; opacity: .75; }
.ticks--read { color: var(--lamp); opacity: 1; }
.bubble:not(.bubble--mine) .ticks--read { color: #1F7A8C; }
[data-presence].is-typing { color: var(--clay); font-style: italic; }
.thread__typing { color: var(--clay); font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.thread__typing .dots { display: inline-flex; gap: 3px; }
.thread__typing .dots i, .chat-typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; animation: zxtyping 1.2s infinite ease-in-out; }
.thread__typing .dots i:nth-child(2), .chat-typing .dots i:nth-child(2) { animation-delay: .15s; }
.thread__typing .dots i:nth-child(3), .chat-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes zxtyping { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.thread__typing .dots { background: none; padding: 0; box-shadow: none; border: 0; }
[data-presence].is-live.is-typing { color: var(--clay); }

/* The verified badge: a small gold door with a tick, the house's own mark */
.vbadge { display: inline-flex; align-items: center; gap: 5px; margin-left: .25em; vertical-align: -.12em; line-height: 1; }
.vbadge__svg { width: .8em; height: .96em; min-width: 12px; min-height: 14px; flex: none; filter: drop-shadow(0 1px 1.5px rgba(42, 7, 16, .35)); }
.vbadge__text { font-size: .85em; font-weight: 600; }
.person__over .vbadge__svg, .swipe__info .vbadge__svg { filter: drop-shadow(0 0 6px rgba(255, 182, 72, .55)); }
.verified .vbadge { margin: 0 4px 0 0; }
.verifyhero__badge .vbadge { margin: 0; }
.verifyhero__badge .vbadge__svg { width: 46px; height: 56px; }
.profile-tags .verified { display: inline-flex; align-items: center; }
.verifyhero__badge { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
.verifyhero__badge .vbadge__svg { width: 80px; height: 96px; filter: drop-shadow(0 0 26px rgba(255, 182, 72, .55)); }

/* Table posts: likes and replies */
.tposts { display: grid; gap: 12px; margin-top: 14px; }
.tpost { padding: 16px 18px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.tpost--reply { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.tpost__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tpost__who { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.tpost__who:hover strong { text-decoration: underline; }
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.tpost__body { margin: 8px 0 6px; white-space: pre-wrap; }
.tpost__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13.5px; }
.tpost__actions form { margin: 0; }
.tlike { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.tlike:hover { border-color: var(--clay); color: var(--clay); }
.tlike.is-on { background: rgba(var(--ox-rgb), .1); border-color: rgba(var(--ox-rgb), .35); color: var(--ox); }
.tlike b { font-weight: 600; min-width: 0; }
.tpost__replies { margin: 10px 0 0 38px; display: grid; gap: 10px; }
.tpost__replyform { margin: 10px 0 0 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.tpost__replyform[hidden] { display: none; }
.tpost__replyform textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--input-line); background: #fff; font: inherit; resize: vertical; }
.tpost__report form { margin-top: 8px; }
@media (max-width: 560px) { .tpost__replies, .tpost__replyform { margin-left: 12px; } .tpost__replyform { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tables as groups ---------- */
.tablegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin: 18px 0 26px; }
.tablecard { display: grid; grid-template-rows: 1fr auto; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tablecard:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(23, 16, 26, .5); }
.tablecard.is-mine { border-color: rgba(var(--ox-rgb), .35); }
.tablecard__link { display: grid; gap: 6px; padding: 18px 18px 10px; color: var(--ink); text-decoration: none; background: linear-gradient(180deg, rgba(var(--ox-rgb), .07), transparent 60%); }
.tablecard__link h2, .tablecard__link p { margin: 0; }
.tablecard__badge { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--sand); }
.tablecard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 16px; }
.tablecard__foot form { margin: 0; }
.rolechip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: rgba(var(--lamp-rgb), .35); color: var(--ink); vertical-align: 1px; }
.crumbs { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); }

.grouphead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; padding: clamp(22px, 4vw, 34px); border-radius: var(--radius-card); color: var(--paper); margin-bottom: 20px; }
.grouphead h1.h2, main .app .grouphead h1.h2 { color: var(--paper); margin: 4px 0 6px; }
.grouphead p { margin: 0; max-width: 640px; }
.grouphead .eyebrow { color: var(--lamp); }
.grouphead__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grouphead__actions form { margin: 0; }
.grouphead .btn--outline { color: var(--paper); border-color: rgba(var(--paper-rgb), .5); }
.grouphead .pill { margin: 0; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: 14px; }
.grouphead .note { color: var(--paper); opacity: .85; }
.joinform { display: flex; flex-wrap: wrap; gap: 8px; }
.joinform input { min-width: 240px; padding: 10px 14px; border-radius: 99px; border: 0; font: inherit; }
.faces { display: flex; align-items: center; margin-top: 14px; }
.faces .avatar { margin-right: -8px; border: 2px solid var(--ox); }
.faces__count { margin-left: 18px; font-size: 14px; opacity: .9; }
.groupgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.groupside { position: sticky; top: 132px; display: grid; gap: 14px; }
.groupside .panel { margin: 0; }
@media (max-width: 960px) { .groupgrid { grid-template-columns: minmax(0, 1fr); } .groupside { position: static; order: -1; } .groupside .panel:not(:first-child) { display: none; } }

.composer-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); }
.composer-card textarea { width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--input-line); background: #fff; font: inherit; resize: vertical; }
.composer-card__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.composer-card__row .btn { margin-left: auto; }
.composer-card__preview { margin-top: 10px; display: flex; align-items: flex-end; gap: 10px; }
.composer-card__preview[hidden] { display: none; }
.composer-card__preview img { max-height: 160px; border-radius: 10px; }
.avatar--md { width: 44px; height: 44px; font-size: 17px; }

.tpost.is-pinned { border-color: rgba(var(--lamp-rgb), .9); box-shadow: inset 0 3px 0 var(--lamp); }
.tpost__name { display: grid; gap: 1px; }
.tpost__name small a { color: inherit; text-decoration: none; }
.tpost__name small a:hover { text-decoration: underline; }
.tpost__photo { display: block; margin: 8px 0 4px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.tpost__photo img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.tact { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px; border-radius: 99px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.tact:hover { background: var(--sand); color: var(--ink); }
.knockbtn { margin-left: auto; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(var(--ox-rgb), .3); background: rgba(var(--ox-rgb), .06); color: var(--ox); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.knockbtn:hover { background: var(--ox); color: var(--paper); }
.tpost--reply .knockbtn { padding: 3px 10px; font-size: 12.5px; }
.tmenu { position: relative; margin-left: auto; }
.tmenu > summary { list-style: none; cursor: pointer; padding: 2px 10px; border-radius: 99px; color: var(--muted); }
.tmenu > summary::-webkit-details-marker { display: none; }
.tmenu__list { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 220px; display: grid; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(23, 16, 26, .45); }
.tmenu__list button, .tmenu__list summary { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.tmenu__list button:hover, .tmenu__list summary:hover { background: var(--sand); }
.tmenu__list form { margin: 0; }
.tpost__more { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--muted); }
.postpage .tpost { padding: 22px 24px; }
.knocktoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 16px; background: var(--night); color: var(--paper); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.knocktoast[hidden] { display: none; }
.knocktoast a { color: var(--lamp); }

.mrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mrow:last-child { border-bottom: 0; }
.mrow__who { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mrow__who > span:last-child { display: grid; gap: 2px; }
.mrow__who small { color: var(--muted); }
.mrow__acts { display: flex; gap: 8px; margin: 0; }
.mrow__manage { position: relative; }
.mrow__manage > summary { list-style: none; }
.mrow__manage > summary::-webkit-details-marker { display: none; }
.mrow__menu { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--wall); border: 1px solid var(--line); min-width: min(440px, 80vw); }
.mrow__menu .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mrow__menu select, .mrow__menu input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--input-line); font: inherit; }
.tpost__line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; }
.tpost__photo img { max-height: 520px; }
.tpost__line a { color: var(--ink); text-decoration: none; }
.tpost__line a:hover { text-decoration: underline; }
.i { display: inline-block; flex: none; vertical-align: -.2em; }
/* Post cards: the text opens the post; pinned posts get a corner ribbon */
.tpost { position: relative; overflow: visible; }
.tpost.is-pinned { border-color: var(--line); box-shadow: none; }
.tpost__ribbon { position: absolute; top: 0; right: 0; width: 46px; height: 46px; border-top-right-radius: var(--radius-card); background: linear-gradient(225deg, var(--ox) 50%, transparent 50%); color: var(--lamp); pointer-events: auto; }
.tpost__ribbon .i { position: absolute; top: 7px; right: 7px; transform: rotate(45deg); }
.tpost.is-pinned > .tpost__head { padding-right: 34px; }
.tpost__bodylink { display: block; color: inherit; text-decoration: none; border-radius: 8px; margin-left: -6px; margin-right: -6px; padding: 2px 6px; }
.tpost__bodylink:hover { background: rgba(var(--ox-rgb), .04); }
.tpost__bodylink:focus-visible { outline: 2px solid var(--ox); }
.tlike .i { transition: transform .2s; }
.tlike.is-on .i { fill: currentColor; transform: scale(1.08); }
.knockbtn { display: inline-flex; align-items: center; gap: 6px; }
.notice-row__icon .i { color: inherit; }
.round .i { display: block; }
/* The table composer */
.compose { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.compose.is-open { border-color: rgba(var(--ox-rgb), .3); box-shadow: 0 16px 34px -26px rgba(23, 16, 26, .55); }
.compose__box { display: grid; gap: 10px; }
.compose textarea { width: 100%; min-height: 44px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--input-line); background: var(--wall); font: inherit; resize: none; line-height: 1.45; transition: border-radius .2s, background .2s; }
.compose.is-open textarea { min-height: 96px; border-radius: 14px; background: #fff; }
.compose textarea:focus { outline: none; border-color: var(--ox); }
.compose__bar { display: none; align-items: center; gap: 12px; }
.compose.is-open .compose__bar { display: flex; }
.compose__tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--sand); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.compose__tool:hover { background: rgba(var(--lamp-rgb), .4); }
.compose__hint { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.compose__send { margin-left: auto; min-width: 84px; }
.compose__send:disabled { opacity: .45; cursor: default; }
.compose__preview { position: relative; justify-self: start; }
.compose__preview[hidden] { display: none; }
.compose__preview img { display: block; max-height: 220px; max-width: 100%; border-radius: 12px; }
.compose__remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(23, 16, 26, .7); color: #fff; cursor: pointer; }
.compose:has(.compose__preview:not([hidden])) { border-color: rgba(var(--ox-rgb), .3); }
.compose:has(.compose__preview:not([hidden])) .compose__bar { display: flex; }
@media (max-width: 560px) { .compose__hint { display: none; } }
/* Pages and endless feeds */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 22px 0 6px; font-size: 14.5px; }
.pager__step { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager__step:hover { border-color: var(--ox); }
.pager__step.is-off { opacity: .4; }
.pager__nums { display: inline-flex; gap: 4px; }
.pager__nums a, .pager__nums span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; }
.pager__nums a:hover { background: var(--sand); }
.pager__nums .is-on { background: var(--ox); color: var(--paper); font-weight: 700; }
.paint-night .pager__nums a, .paint-night .pager__nums span:not(.is-on) { color: inherit; }
.feedmore { display: grid; place-items: center; padding: 18px; color: var(--muted); }
.feedmore .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; margin: 0 2px; animation: zxtyping 1.2s infinite ease-in-out; }
.feedmore .dots i:nth-child(2) { animation-delay: .15s; } .feedmore .dots i:nth-child(3) { animation-delay: .3s; }
.tpost__ribbon { width: 52px; height: 52px; background: var(--ox); clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: var(--radius-card); }
.tpost__ribbon .i { top: 8px; right: 8px; transform: rotate(35deg); color: var(--lamp); }
