/* The CampOffice tour pages (docs/architecture/tours.md): campoffice.app's warm white around the player, the office's
   own Color War look inside the screens (resources/css/camp-os/tokens.css). Fonts are self-hosted beside this file
   (SIL Open Font License), so nothing loads from anywhere else. */
@font-face { font-family: 'Gabarito'; font-weight: 400 900; font-display: swap; src: url(fonts/gabarito-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 100 900; font-display: swap; src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); }

:root {
    /* The page around the player: the website's warm white and ink. */
    --page: #fbfaf6;
    --ink: #141a33;
    --ink-2: #2b3150;
    --muted: #4c5370;
    --faint: #6b7290;
    --line: #e1e5f0;
    /* Color War's four (the office menu groups). */
    --blue: #2f5bff;
    --gold: #ffc83a;
    --red: #ff4d5e;
    --green: #22b07d;
    --blue-soft: #e8eeff;
    --gold-soft: #fff6dc;
    --red-soft: #ffe9ec;
    --green-soft: #e3f6ee;
    --blue-ink: #1d3fc4;
    --gold-ink: #8a5a00;
    --red-ink: #b4232f;
    --green-ink: #0f7a52;
    /* The stage behind the screens: the office's ink navy. */
    --st-bg: #0f1530;
    --st-bg-2: #141a3d;
    --st-fg: #f3f5fb;
    --st-muted: #aab2d0;
    --st-line: rgb(170 178 208 / 0.18);
    /* Inside the office. */
    --o-bg: #f5f7fc;
    --o-card: #ffffff;
    --o-line: #e1e5f0;
    --o-muted: #4c5370;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --display: 'Gabarito', 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
    --sans: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
    color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.band4 { height: 4px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--gold) 25% 50%, var(--red) 50% 75%, var(--green) 75%); }

/* ---- page ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 20px var(--display); }
.brand b { font-weight: 750; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--gold); }
main { max-width: 1240px; margin: 0 auto; padding: 8px 16px 64px; }
.intro h1 { font: 750 clamp(28px, 4.4vw, 50px)/1.08 var(--display); letter-spacing: -0.02em; margin: 10px 0; }
.intro p { color: var(--muted); max-width: 720px; margin: 0 0 22px; font-size: clamp(16px, 1.8vw, 19px); }
.eyebrow { font: 600 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }

/* ---- the frame ---- */
.player { border-radius: 20px; overflow: hidden; background: var(--st-bg); box-shadow: 0 0 0 1px rgb(20 26 51 / 0.12), 0 40px 80px -40px rgb(20 26 51 / 0.55); }
#frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--st-bg); }
#stage {
    position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
    background:
        radial-gradient(900px 600px at 85% 8%, rgb(47 91 255 / 0.22), transparent 70%),
        radial-gradient(900px 640px at 8% 100%, rgb(34 176 125 / 0.14), transparent 70%),
        radial-gradient(700px 500px at 100% 100%, rgb(255 200 58 / 0.1), transparent 70%),
        linear-gradient(var(--st-bg-2), var(--st-bg));
    color: var(--st-fg); font-family: var(--sans); cursor: pointer;
}
#stage::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--gold) 25% 50%, var(--red) 50% 75%, var(--green) 75%); z-index: 5; }

/* The start and end screens sit over the stage. */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 30; background: rgb(15 21 48 / 0.72); backdrop-filter: blur(6px); transition: opacity 0.4s var(--ease), visibility 0.4s; color: var(--st-fg); }
.started .overlay.start, :root:not(.ended) .overlay.end { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay .inner { text-align: center; padding: 16px; }
#start { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; background: none; border: 0; color: var(--st-fg); cursor: pointer; font: inherit; }
#start .disc { width: clamp(64px, 11vw, 120px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 0 0 10px rgb(255 200 58 / 0.2), 0 20px 50px -10px rgb(255 200 58 / 0.55); transition: transform 0.3s var(--ease); }
#start:hover .disc { transform: scale(1.06); }
#start .disc svg { width: 40%; height: 40%; margin-left: 6%; }
#start .playlabel { font: 700 clamp(15px, 2.1vw, 24px) var(--display); }
#start .sub { color: var(--st-muted); font-size: clamp(12px, 1.5vw, 15px); }
.end .inner h2 { font: 750 clamp(18px, 3vw, 36px) var(--display); margin: 0 0 16px; }
.end .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 15px var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 rgb(20 26 51 / 0.12); }
.btn.primary { background: var(--gold); border-color: transparent; color: var(--ink); box-shadow: 0 3px 0 #d9a520; }
.overlay .btn:not(.primary) { background: rgb(255 255 255 / 0.1); color: var(--st-fg); border-color: rgb(255 255 255 / 0.25); box-shadow: none; }
.loading #frame::after { content: ''; position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--st-line); border-top-color: var(--gold); animation: spin 0.8s linear infinite; z-index: 40; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-audio-note { display: none; color: #ffd27a; font-size: 14px; padding: 10px 16px 0; }
.no-audio .no-audio-note { display: block; }

/* ---- captions and controls (outside the stage, so they stay readable on a phone) ---- */
#caption { min-height: 3.4em; padding: 14px 18px 4px; text-align: center; font: 400 clamp(16px, 2vw, 22px)/1.45 var(--sans); color: var(--st-muted); }
#caption span { transition: color 0.15s; }
#caption span.said { color: #fff; }
.no-captions #caption { visibility: hidden; min-height: 0.5em; padding: 6px; }
.controls { display: flex; align-items: center; gap: 12px; padding: 8px 14px 14px; color: var(--st-fg); }
.controls button { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--st-line); background: transparent; color: var(--st-fg); cursor: pointer; }
.controls button svg { width: 18px; height: 18px; }
#toggle .pause, .playing #toggle .play { display: none; }
.playing #toggle .pause { display: block; }
#cc { font: 700 12px var(--mono); width: auto; padding: 0 10px; }
#cc[aria-pressed='false'] { color: var(--faint); }
.seekwrap { position: relative; flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; }
#seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 0%), var(--st-line) var(--p, 0%)); cursor: pointer; margin: 0; }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
#seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
#ticks { position: absolute; inset: 0; pointer-events: none; }
#ticks i { position: absolute; top: 50%; width: 2px; height: 12px; margin-top: -6px; background: var(--st-bg); }
#time { font: 500 14px var(--mono); color: var(--st-muted); white-space: nowrap; }
@media (max-width: 420px) { #time { font-size: 12px; } .controls { gap: 8px; padding: 6px 10px 12px; } }

/* ---- under the player ---- */
.below { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 900px) { .below.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: 0 1px 2px rgb(20 26 51 / 0.05); }
.card h2 { font: 750 21px var(--display); margin: 0 0 12px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chapters button { width: 100%; display: flex; gap: 14px; align-items: baseline; text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.chapters button:hover { background: var(--blue-soft); }
.chapters button[aria-current] { background: var(--gold-soft); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.chapters button span { font: 500 13px var(--mono); color: var(--muted); min-width: 3.2em; }
details.words summary { cursor: pointer; font: 750 18px var(--display); }
details.words h3 { font: 750 16px var(--display); margin: 18px 0 0; }
details.words p { color: var(--muted); margin: 10px 0 0; }
.other { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.other p { margin: 0; color: var(--muted); }
footer { max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; color: var(--faint); font-size: 14px; }

/* ======================================================================================================== */
/* ---- inside the stage (1920×1080, never scaled by media queries) ---- */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.55s var(--ease), visibility 0.55s; }
.scene.is-on { opacity: 1; visibility: visible; }
.r { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.r.on { opacity: 1; transform: none; }
.r.pop { transform: scale(0.85); }
.r.pop.on { transform: none; }
.r.left { transform: translateX(-40px); }
.r.right { transform: translateX(40px); }
.r.left.on, .r.right.on { transform: none; }
.r.fade { transform: none; }

.kicker { position: absolute; left: 120px; top: 70px; font: 600 22px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.headline { position: absolute; left: 120px; top: 110px; width: 1680px; font: 750 60px/1.1 var(--display); letter-spacing: -0.02em; color: var(--st-fg); margin: 0; }
.headline em { font-style: normal; color: var(--gold); }
.side-copy { position: absolute; left: 120px; top: 300px; width: 640px; }
.side-copy h2 { font: 750 64px/1.06 var(--display); letter-spacing: -0.02em; margin: 0 0 22px; }
.side-copy h2 em { font-style: normal; color: var(--gold); }
.side-copy p { font-size: 30px; line-height: 1.4; color: var(--st-muted); margin: 0 0 18px; }
.side-copy .k { font: 600 22px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.points li { display: flex; gap: 16px; align-items: center; font-size: 30px; color: var(--st-fg); }
.points li i { width: 18px; height: 18px; border-radius: 6px; flex: none; background: var(--gold); }
.points li.blue i { background: var(--blue); } .points li.red i { background: var(--red); } .points li.green i { background: var(--green); }

/* Title card */
.title { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.title .mark { width: 176px; height: 176px; margin: 0 auto 36px; }
.title .mark img { width: 100%; height: 100%; display: block; border-radius: 40px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); }
.title h1 { font: 400 124px/1 var(--display); letter-spacing: -0.03em; margin: 0; }
.title h1 b { font-weight: 800; }
.title p { font-size: 40px; color: var(--st-muted); margin: 24px 0 0; }
.title .mark.r { transform: scale(0.6) rotate(-8deg); }
.title .mark.r.on { transform: none; }
.title .tfour { display: flex; gap: 14px; justify-content: center; margin-top: 40px; }
.title .tfour span { padding: 10px 20px; border-radius: 12px; font: 700 24px var(--sans); color: var(--ink); }

/* A window: the office, the family page, anything on a computer */
.win { position: absolute; background: var(--o-card); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 2px 4px rgb(0 0 0 / 0.25), 0 50px 100px -30px rgb(0 0 0 / 0.7); }
.win > .bar { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 22px; background: #eef1f8; border-bottom: 1px solid var(--o-line); }
.win > .bar i { width: 14px; height: 14px; border-radius: 50%; background: #d3d8e6; }
.win > .bar .addr { margin-left: 18px; flex: 1; height: 32px; border-radius: 10px; background: #fff; border: 1px solid var(--o-line); font: 500 17px var(--mono); color: var(--o-muted); display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.win .body { position: absolute; inset: 54px 0 0 0; background: var(--o-bg); }
.win .body.pad { padding: 36px 44px; }

/* A phone: the family's own page, texts, a call */
.phone { position: absolute; width: 440px; height: 900px; border-radius: 60px; background: #0b0f22; padding: 16px; box-shadow: 0 0 0 2px #2a3157, 0 50px 100px -30px rgb(0 0 0 / 0.8); }
.phone .scr { position: absolute; inset: 16px; border-radius: 46px; overflow: hidden; background: #fff; color: var(--ink); }
.phone .notch { position: absolute; left: 50%; top: 26px; width: 120px; height: 32px; margin-left: -60px; border-radius: 20px; background: #0b0f22; z-index: 3; }
.phone .ph { padding: 78px 26px 24px; }
.phone .camp { display: flex; align-items: center; gap: 12px; font: 750 22px var(--display); padding-bottom: 16px; border-bottom: 1px solid var(--o-line); margin-bottom: 18px; }
.phone .camp i { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--gold) 0 38%, #1d3fc4 40%); flex: none; }

.o-h { font: 750 36px var(--display); letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.o-sub { font-size: 21px; color: var(--o-muted); margin: 0 0 22px; }
.o-card { background: var(--o-card); border: 1px solid var(--o-line); border-radius: 16px; padding: 20px 24px; box-shadow: 0 1px 2px rgb(20 26 51 / 0.05); }
.o-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--o-line); font-size: 21px; }
.o-row:first-child { border-top: 0; }
.o-row .grow { flex: 1; min-width: 0; }
.o-row small { display: block; color: var(--o-muted); font-size: 17px; }
.o-row .amt { font: 600 21px var(--mono); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; font: 700 17px var(--sans); background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
.chip.green { background: var(--green-soft); color: var(--green-ink); }
.chip.gold { background: var(--gold-soft); color: var(--gold-ink); }
.chip.red { background: var(--red-soft); color: var(--red-ink); }
.chip.gray { background: #eef1f8; color: var(--o-muted); }
.chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.obtn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font: 700 20px var(--sans); background: var(--blue); color: #fff; border: 0; box-shadow: 0 3px 0 #1d3fc4; transition: transform 0.2s, box-shadow 0.3s; white-space: nowrap; }
.obtn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--o-line); box-shadow: 0 2px 0 #d3d8e6; }
.obtn.green { background: var(--green); box-shadow: 0 3px 0 #13865d; }
.obtn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 #d9a520; }
.obtn.red { background: var(--red); box-shadow: 0 3px 0 #c9303f; }
.obtn.on { outline: 6px solid rgb(47 91 255 / 0.22); }
.obtn.gold.on { outline-color: rgb(255 200 58 / 0.35); }
.obtn.green.on { outline-color: rgb(34 176 125 / 0.28); }
.field { border: 1px solid #d3d8e6; border-radius: 12px; background: #fff; padding: 12px 16px; font-size: 21px; color: var(--ink); min-height: 52px; }
.field.tall { min-height: 130px; line-height: 1.45; }
.label { font: 700 17px var(--sans); color: var(--ink); margin: 16px 0 8px; }
.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--blue); margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toast { position: absolute; display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 16px; background: #fff; color: var(--ink); font: 700 22px var(--sans); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); border-left: 8px solid var(--green); }
.toast b { color: var(--green); }
.toast.gold { border-left-color: var(--gold); }
.toast.blue { border-left-color: var(--blue); }
.check { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #c5cbe0; display: grid; place-items: center; flex: none; color: transparent; font-weight: 700; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.check.on, .check.yes { background: var(--green); border-color: var(--green); color: #fff; }
.toggle { width: 58px; height: 32px; border-radius: 999px; background: #d3d8e6; position: relative; flex: none; transition: background 0.3s; }
.toggle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.toggle.on, .toggle.yes { background: var(--blue); }
.toggle.on::after, .toggle.yes::after { transform: translateX(26px); }
.hl.on { box-shadow: 0 0 0 4px var(--gold); border-radius: 12px; }

/* The cursor */
.cursor { position: absolute; left: 0; top: 0; width: 40px; height: 40px; z-index: 20; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.cursor.on { opacity: 1; }
.cursor svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.35)); }
.cursor::after { content: ''; position: absolute; left: -16px; top: -16px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--gold); opacity: 0; transform: scale(0.4); }
.cursor.click::after { animation: ripple 0.45s ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* The office: one window that stays put while its screens change (data-shell="office") */
.shell { position: absolute; left: 100px; top: 110px; width: 1720px; height: 920px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; z-index: 1; }
#stage[data-shell='office'] .shell { opacity: 1; visibility: visible; }
.shell .body { display: flex; flex-direction: column; }
.shell .obar { height: 6px; flex: none; background: linear-gradient(90deg, var(--blue) 0 25%, var(--gold) 25% 50%, var(--red) 50% 75%, var(--green) 75%); }
.shell .otop { height: 74px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 26px; background: #fff; border-bottom: 1px solid var(--o-line); }
.shell .otop .logo { display: flex; align-items: center; gap: 10px; width: 274px; font: 400 23px var(--display); }
.shell .otop .logo b { font-weight: 800; }
.shell .otop .logo img { width: 40px; height: 40px; border-radius: 10px; }
.shell .otop .pill { padding: 9px 16px; border: 1px solid var(--o-line); border-radius: 999px; font: 700 17px var(--sans); display: flex; align-items: center; gap: 8px; }
.shell .otop .pill.ask::before { content: '✦'; color: var(--blue); }
.shell .otop .pill.how::before { content: '?'; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 14px; }
.shell .otop .season { padding: 9px 16px; border: 1px solid var(--o-line); border-radius: 10px; font-size: 17px; }
.shell .otop .spacer { flex: 1; }
.shell .otop .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 16px var(--sans); }
.shell .orow { flex: 1; display: flex; min-height: 0; }
.side { width: 300px; flex: none; background: #fff; border-right: 1px solid var(--o-line); padding: 20px 16px; }
.side .who { display: flex; align-items: center; gap: 12px; padding: 0 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--o-line); font: 700 20px var(--sans); }
.side .who i { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, var(--gold) 0 38%, #1d3fc4 40%); flex: none; }
.side .grp { display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; font: 700 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #6b7290; }
.side .grp::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #9aa1bb); }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: 1px 0; border-radius: 10px; font: 400 18px var(--sans); color: #2b3150; text-decoration: none; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.side a .n { margin-left: auto; font: 700 14px var(--sans); background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 1px 9px; }
.side .blue { --c: var(--blue); --cs: var(--blue-soft); } .side .green { --c: var(--green); --cs: var(--green-soft); }
.side .gold { --c: var(--gold); --cs: var(--gold-soft); } .side .red { --c: var(--red); --cs: var(--red-soft); }
.side .flash { background: var(--cs, #eef1f8); box-shadow: inset 3px 0 0 var(--c, #9aa1bb); font-weight: 700; }
.shell .omain { flex: 1; position: relative; background: var(--o-bg); }
/* A screen inside the office: the content box of the office's main column. */
.pane { position: absolute; left: 401px; top: 245px; width: 1418px; height: 784px; padding: 34px 42px; z-index: 2; overflow: hidden; color: var(--ink); }
.pane .htop { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pane .htop .o-h { margin: 0; }
.howto { padding: 9px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font: 700 17px var(--sans); }

/* Office sidebar: the open screen in its group's color (data-nav on the scene). */
#stage[data-nav='dashboard'] [data-nav-item='dashboard'], #stage[data-nav='applications'] [data-nav-item='applications'],
#stage[data-nav='families'] [data-nav-item='families'], #stage[data-nav='staff'] [data-nav-item='staff'],
#stage[data-nav='bunk-board'] [data-nav-item='bunk-board'], #stage[data-nav='headcount'] [data-nav-item='headcount'],
#stage[data-nav='buses'] [data-nav-item='buses'], #stage[data-nav='documents'] [data-nav-item='documents'],
#stage[data-nav='payments'] [data-nav-item='payments'], #stage[data-nav='expenses'] [data-nav-item='expenses'],
#stage[data-nav='send'] [data-nav-item='send'], #stage[data-nav='phone-lines'] [data-nav-item='phone-lines'],
#stage[data-nav='printouts'] [data-nav-item='printouts'], #stage[data-nav='settings'] [data-nav-item='settings'] { background: var(--cs, #eef1f8); box-shadow: inset 3px 0 0 var(--c, #9aa1bb); font-weight: 700; color: var(--ink); }

/* Counts (dashboard, headcount) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--o-line); border-radius: 16px; padding: 18px 22px; }
.stat b { display: block; font: 750 48px var(--display); }
.stat span { color: var(--o-muted); font-size: 18px; }
.stat.blue b { color: var(--blue); } .stat.gold b { color: #c98c00; } .stat.red b { color: var(--red); } .stat.green b { color: var(--green); }

/* Steps (setup, dashboard) */
.steps { display: grid; gap: 12px; }
.steps .s { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--o-line); border-radius: 14px; padding: 15px 20px; font-size: 21px; transition: border-color 0.3s, box-shadow 0.3s; }
.steps .s .n { font: 700 18px var(--mono); color: var(--blue); width: 32px; }
.steps .s small { color: var(--o-muted); font-size: 17px; margin-left: auto; }
.steps .s.on { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(47 91 255 / 0.14); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* The bunk board */
.board { display: grid; grid-template-columns: 420px 1fr 1fr; gap: 18px; }
.col { background: #fff; border: 1px solid var(--o-line); border-radius: 16px; padding: 18px; min-height: 460px; border-top: 5px solid var(--blue); }
.col.wait { border: 2px dashed #c5cbe0; background: #fafbfe; }
.col h4 { display: flex; justify-content: space-between; font: 750 22px var(--display); margin: 0 0 12px; }
.col h4 span { font: 600 18px var(--mono); color: var(--o-muted); }
.col .cn { font-size: 16px; color: var(--o-muted); margin-bottom: 10px; }
.kid { background: #f5f7fc; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 19px; transition: box-shadow 0.3s, background 0.3s; }
.kid small { display: block; font-size: 15px; color: var(--o-muted); }
.kid .wants { color: var(--blue-ink); }
.kid .sugg { display: block; font-size: 15px; color: var(--green-ink); font-weight: 700; }
.col .kid { background: var(--blue-soft); }
.drag { position: absolute; z-index: 15; width: 360px; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 19px; box-shadow: 0 20px 40px -12px rgb(20 26 51 / 0.5); transform: rotate(-2deg); }

/* Money */
.amount { font: 750 56px var(--display); }
.paid { display: inline-flex; gap: 10px; align-items: center; font: 700 22px var(--sans); color: var(--green-ink); }
.book { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--o-line); font-size: 20px; }
.book .logo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 18px var(--sans); flex: none; }

/* A printed check on blank check stock */
.cheque { position: absolute; background: #fbfcf6; color: #1b2036; border-radius: 6px; box-shadow: 0 50px 100px -30px rgb(0 0 0 / 0.75); padding: 0; overflow: hidden; }
.cheque .chk { height: 360px; padding: 34px 46px; position: relative; background: repeating-linear-gradient(135deg, #f4f6ea 0 14px, #eef2df 14px 28px); border-bottom: 2px dashed #b8bfa3; }
.cheque .stub { height: 200px; padding: 26px 46px; font: 400 19px var(--mono); color: #3a4060; border-bottom: 2px dashed #b8bfa3; }
.cheque .ln { position: absolute; font: 500 24px var(--mono); }
.cheque .cap { position: absolute; font: 700 14px var(--sans); color: #6b7290; text-transform: uppercase; letter-spacing: 0.08em; }
.cheque .rule { position: absolute; height: 2px; background: #9ba18a; }

/* Messages */
.chan { display: flex; gap: 14px; }
.chan span { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--o-line); background: #fff; font: 700 20px var(--sans); color: var(--o-muted); transition: all 0.3s; }
.chan span.on { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }
.wave { display: flex; align-items: center; gap: 5px; height: 48px; }
.wave i { width: 6px; border-radius: 3px; background: var(--red); animation: wave 1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 42px; } }
.voice { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--o-line); border-radius: 14px; background: #fff; font-size: 20px; margin-bottom: 10px; transition: all 0.3s; }
.voice.on { border-color: var(--red); box-shadow: 0 0 0 4px rgb(255 77 94 / 0.14); }
.voice .play { width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red-ink); display: grid; place-items: center; font-size: 16px; flex: none; }

/* Texts */
.sms { display: flex; flex-direction: column; gap: 14px; }
.sms .me, .sms .them { max-width: 86%; padding: 14px 18px; border-radius: 22px; font-size: 20px; line-height: 1.4; }
.sms .me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.sms .them { align-self: flex-start; background: #eef1f8; color: var(--ink); border-bottom-left-radius: 6px; }
.sms .them b { color: var(--red-ink); }

/* A call */
.call { text-align: center; padding-top: 110px; }
.call .who { font: 750 34px var(--display); }
.call .num { color: var(--o-muted); font-size: 22px; margin-top: 6px; }
.keys { display: grid; grid-template-columns: repeat(3, 92px); gap: 18px; justify-content: center; margin-top: 48px; }
.keys span { width: 92px; height: 92px; border-radius: 50%; background: #eef1f8; display: grid; place-items: center; font: 600 36px var(--sans); transition: background 0.2s, color 0.2s, transform 0.2s; }
.keys span.on { background: var(--gold); transform: scale(1.08); }
.menu { display: grid; gap: 10px; }
.menu .opt { display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--o-line); border-radius: 14px; font-size: 21px; transition: all 0.3s; }
.menu .opt b { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red-ink); display: grid; place-items: center; font: 750 22px var(--display); flex: none; }
.menu .opt.on { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(255 200 58 / 0.3); }

/* Summer cards */
.tri { position: absolute; left: 120px; top: 330px; width: 1680px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tri .t { background: #fff; color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
.tri .t .pic { height: 340px; position: relative; overflow: hidden; }
.tri .t .cap { padding: 22px 28px 26px; }
.tri .t h3 { font: 750 32px var(--display); margin: 0 0 6px; }
.tri .t p { font-size: 20px; color: var(--o-muted); margin: 0; }
.map { position: absolute; inset: 0; background: #e9efe4; }
.map svg { width: 100%; height: 100%; }
.slides { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; background: #141a33; }
.slides i { border-radius: 8px; }
.slides .play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: rgb(255 255 255 / 0.92); display: grid; place-items: center; color: var(--ink); font-size: 34px; padding-left: 6px; }
.log { position: absolute; inset: 0; padding: 22px; background: #f5f7fc; display: grid; gap: 10px; align-content: start; }
.log div { background: #fff; border: 1px solid var(--o-line); border-radius: 12px; padding: 10px 14px; font-size: 18px; display: flex; justify-content: space-between; gap: 10px; }
.log em { font-style: normal; color: var(--red-ink); font-weight: 700; }

/* Outro */
.four { position: absolute; left: 120px; top: 330px; width: 1680px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.four > div { border-radius: 26px; padding: 36px 34px; background: rgb(255 255 255 / 0.06); border: 1px solid var(--st-line); border-top: 8px solid var(--c); }
.four .big { font: 750 30px var(--mono); color: var(--c); }
.four h3 { font: 750 38px var(--display); margin: 12px 0 8px; }
.four p { font-size: 23px; color: var(--st-muted); margin: 0; }
.cta { position: absolute; left: 120px; top: 760px; display: flex; gap: 26px; align-items: center; font: 750 40px var(--display); }
.cta .pill { padding: 22px 38px; border-radius: 18px; background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 #d9a520; }
.cta .ph { color: var(--st-fg); font-family: var(--mono); font-weight: 500; }

/* Printouts */
.paper { position: absolute; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); padding: 30px 34px; }
.paper h5 { font: 750 24px var(--display); margin: 0 0 14px; }
.paper .line { height: 12px; border-radius: 6px; background: #eef1f8; margin: 12px 0; }
.paper .line.s { width: 60%; }

/* ---- The video guide (office.html, docs/architecture/tours.md "The video guide") ------------------------------------
   Real screens of the demo, taken by resources/tours/record-office.mjs. A screen holds still while its line is said
   (owner, 2026-11-16: no panning); the only movement is the view scrolling down a long screen to the part being named
   (.view's data-path). The part the voice names is lit by the spotlight; clicks, typing and drags play out with the
   pointer, and the screen after each one fades in on its word (.f.r). Every move follows the narration's clock (tour.js). */
.shot { position: absolute; inset: 0; overflow: hidden; background: #f6f7fb; }
.shot .view { position: absolute; left: 0; top: 0; width: 1920px; }
.shot .f { position: absolute; left: 0; top: 0; width: 1920px; height: auto; display: block; }
.shot .f.r { opacity: 0; transform: none; transition: opacity 0.3s var(--ease); }
.shot .f.r.on { opacity: 1; }
.spot { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; border-radius: 16px; opacity: 0; transition: opacity 0.4s var(--ease);
    box-shadow: 0 0 0 5px var(--gold), 0 0 0 12px rgb(255 200 61 / 0.28), 0 0 0 4000px rgb(12 18 40 / 0.3); }
.spot.on { opacity: 1; }
.fillin { position: absolute; z-index: 4; display: flex; align-items: center; padding: 0 18px; box-sizing: border-box; overflow: hidden; white-space: nowrap;
    background: #fff; border: 3px solid var(--blue); border-radius: 12px; color: var(--ink); font: 500 22px var(--sans); opacity: 0; }
.fillin.tall { align-items: flex-start; padding-top: 14px; }
.fillin.on { opacity: 1; }
.ghost { position: absolute; left: 0; top: 0; z-index: 6; overflow: hidden; border-radius: 10px; opacity: 0; pointer-events: none;
    outline: 4px solid var(--gold); box-shadow: 0 26px 50px -12px rgb(10 16 40 / 0.55); transition: opacity 0.2s; }
.ghost.on { opacity: 0.96; }
.ghost img { position: absolute; width: 1920px; max-width: none; height: auto; }
.shot.mobile { display: grid; place-items: center; background: radial-gradient(900px 700px at 70% 30%, rgb(47 91 255 / 0.12), transparent 70%), linear-gradient(#f7f8fc, #e9edf7); }
.shot.mobile .handset { position: relative; width: 470px; height: 970px; padding: 20px; border-radius: 64px; background: #11141f; box-shadow: 0 50px 90px -30px rgb(20 26 51 / 0.65), inset 0 0 0 3px #343a4e; }
.shot.mobile .handset::before { content: ''; position: absolute; top: 34px; left: 50%; width: 120px; height: 32px; margin-left: -60px; border-radius: 20px; background: #11141f; z-index: 2; }
.shot.mobile .glass { position: relative; width: 430px; height: 930px; overflow: hidden; border-radius: 46px; background: #fff; }
.shot.mobile .glass img { position: absolute; left: 0; top: 0; width: 430px; height: auto; transform: translateY(calc(max(0, min(1, (var(--sp, 0) - 0.15) * 1.3)) * var(--travel, 0) * -1px)); }
.shot.mobile .says { position: absolute; left: 120px; top: 50%; transform: translateY(-50%); width: 560px; font: 750 64px/1.08 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.shot.mobile .says small { display: block; margin-top: 18px; font: 500 30px/1.3 var(--sans); color: var(--muted); letter-spacing: 0; }
.shot.mobile .says.right { left: auto; right: 120px; }

/* The opening and the closing: a camp scene panning slowly, and the CampOffice logo arriving with a flourish. */
.camp .pano { position: absolute; inset: 0; overflow: hidden; background: #cfe3f2; }
.camp .pano img { position: absolute; top: 0; left: 0; height: 1080px; width: auto; transform: translateX(calc(var(--sp, 0) * var(--pan, -1320) * 1px)) scale(1.04); transform-origin: 0 50%; }
.camp .pano.back img { transform: translateX(calc((1 - var(--sp, 0)) * var(--pan, -1320) * 1px)) scale(1.04); }
.camp .pano::after { content: ''; position: absolute; inset: 0; background: radial-gradient(1100px 620px at 50% 50%, rgb(12 18 40 / 0.05), rgb(12 18 40 / 0.45)); }
.camp .logo { position: absolute; left: 50%; top: 50%; width: 1060px; margin-left: -530px; transform: translateY(-50%); text-align: center; }
.camp .card { position: relative; padding: 60px 70px 54px; border-radius: 48px; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(6px); box-shadow: 0 40px 100px -30px rgb(10 16 40 / 0.6); overflow: hidden; }
.camp .card.r { transform: scale(0.7) translateY(60px); }
.camp .card.r.on { transform: none; transition: opacity 0.5s var(--ease), transform 0.9s cubic-bezier(0.2, 1.6, 0.4, 1); }
.camp .card::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.85), transparent); transform: skewX(-18deg) translateX(-200%); }
.camp .card.on::after { animation: co-shine 1.5s 1.1s var(--ease) both; }
.camp .mark { position: relative; width: 190px; height: 190px; margin: 0 auto 26px; }
.camp .mark img { width: 100%; height: 100%; display: block; border-radius: 44px; box-shadow: 0 24px 50px -16px rgb(0 0 0 / 0.55); }
.camp .mark.r { transform: scale(0.2) rotate(-200deg); }
.camp .mark.r.on { transform: none; transition: opacity 0.4s, transform 1.1s cubic-bezier(0.2, 1.5, 0.35, 1); }
.camp .ring { position: absolute; inset: -14px; border-radius: 56px; border: 8px solid var(--gold); opacity: 0; }
.camp .mark.on .ring { animation: co-ring 1.6s 0.7s ease-out both; }
.camp .mark.on .ring + .ring { border-color: var(--blue); animation-delay: 1.0s; }
.camp h1 { margin: 0; font: 400 132px/1 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.camp h1 b { font-weight: 800; }
.camp h1 .w { display: inline-block; }
.camp h1 .w.r { transform: translateY(70px) scale(0.6); }
.camp h1 .w.r.on { transform: none; transition: opacity 0.4s, transform 0.8s cubic-bezier(0.2, 1.7, 0.4, 1); }
.camp p { margin: 22px 0 0; font: 600 40px var(--sans); color: var(--muted); }
.camp .band { display: flex; height: 16px; margin: 30px auto 0; width: 560px; border-radius: 8px; overflow: hidden; }
.camp .band i { flex: 1; transform: scaleX(0); transform-origin: 0 50%; }
.camp .band.on i { animation: co-band 0.5s var(--ease) both; }
.camp .band i:nth-child(1) { background: var(--blue); } .camp .band i:nth-child(2) { background: var(--gold); animation-delay: 0.12s; }
.camp .band i:nth-child(3) { background: var(--red); animation-delay: 0.24s; } .camp .band i:nth-child(4) { background: var(--green); animation-delay: 0.36s; }
.camp .burst { position: absolute; left: 50%; top: 150px; width: 0; height: 0; }
.camp .burst i { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 6px; opacity: 0; }
.camp .burst.on i { animation: co-burst 1.5s cubic-bezier(0.15, 0.7, 0.3, 1) both; }
.camp .burst i:nth-child(4n+1) { background: var(--blue); } .camp .burst i:nth-child(4n+2) { background: var(--gold); }
.camp .burst i:nth-child(4n+3) { background: var(--red); } .camp .burst i:nth-child(4n) { background: var(--green); border-radius: 50%; }
@keyframes co-shine { to { transform: skewX(-18deg) translateX(700%); } }
@keyframes co-ring { 0% { opacity: 0.9; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes co-band { to { transform: scaleX(1); } }
@keyframes co-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(calc(var(--rot) * 1deg)) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .scene, .r, .swap > *, .shell { transition-duration: 0.01s !important; }
    .camp .card::after, .camp .ring, .camp .burst i { animation: none !important; }
    .wave i, .typing::after { animation: none; }
    .shot .f.r, .spot, .ghost { transition-duration: 0.01s !important; }
}

.swap { position: relative; }
.swap > * { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.swap > .b { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); }
.swap.on > .a { opacity: 0; transform: translateY(-14px); }
.swap.on > .b { opacity: 1; transform: none; }

/* A signature drawn on screen */
.sig { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.6s ease-out; }
.sig.on { stroke-dashoffset: 0; }

/* Fixes after the render check: every scene sits above the office window (so cards placed beside it show), and light
   cards placed straight on the dark stage keep the office's dark text. */
.scene { z-index: 2; }
.o-card, .menu .opt, .book, .field, .keys span, .voice, .chan span:not(.on), .steps .s { color: var(--ink); }
.side a { padding: 6px 12px; font-size: 17px; }
.side .grp { padding: 9px 10px 3px; }
.side .who { padding-bottom: 12px; }
