/* Cort (js/cort/*): a calm 3D camping game. Forest ink #0e1512, lantern amber #f2b968, moss #8fb07a.
   Overlays over the WebGL canvas animate only opacity/transform and never use backdrop-filter or blend modes
   (they stall rAF on some phones). Icon states sit in .ct-on/.ct-off wrappers (Font Awesome swaps <i> for <svg>). */
:root {
    --ct-amber: #f2b968;
    --ct-amber-2: #ffd79a;
    --ct-ink: #0e1512;
    --ct-text: #e8ece2;
    --ct-muted: #a9b8a6;
    --ct-glass: rgba(10, 17, 14, .78);
    --ct-line: rgba(242, 185, 104, .3);
    --ct-moss: #8fb07a;
}

/* clip, not hidden: the site-wide `body { overflow-x: hidden }` would make <body> a dead scroll container */
.cort-page, body.cort-page#page-top {
    min-height: 100vh;
    overflow-x: clip;
    background: radial-gradient(ellipse at 50% 12%, #253b31 0, #16231d 46%, #0e1512 100%);
    background-color: #0e1512;
    color: var(--ct-text);
}
body.ct-max { overflow: hidden; }
.ct-main { width: min(100% - 32px, 1120px); margin: 0 auto; padding-top: 96px; padding-bottom: 46px; }

/* ── hero ── */
/* Its own opening, not the adventures' banner: a rainy night at the lake, drawn in an inline SVG on
   the right, with the rain as a CSS layer on top. Only transform/opacity animate. */
.ct-hero { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 16px; padding: 26px clamp(20px, 4vw, 40px); min-height: 230px; display: flex; align-items: center; border: 1px solid #f2b96830; border-radius: 22px; background: linear-gradient(180deg, #121d19, #172620 55%, #1e2a20); box-shadow: 0 24px 70px #06130f55; }
.ct-hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ct-hero:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #121d19 0, #121d19f0 30%, #121d1999 52%, transparent 72%); pointer-events: none; }
.ct-hero-rain { position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none; opacity: .45;
    background: repeating-linear-gradient(103deg, transparent 0 14px, #cfe6ff33 14px 15px, transparent 15px 38px), repeating-linear-gradient(100deg, transparent 0 25px, #cfe6ff22 25px 26px, transparent 26px 61px);
    background-size: 100% 80px; animation: ct-hero-rain .55s linear infinite; }
.ct-hero-text { position: relative; max-width: 560px; }
.ct-hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ct-hero-facts li { padding: 4px 11px; border: 1px solid #f2b96840; border-radius: 999px; background: #0e151299; color: #f0dfb9; font-size: .8rem; font-weight: 700; }
.ct-hs-door { animation: ct-hs-door 3s ease-in-out infinite; }
.ct-hs-halo { transform-box: fill-box; transform-origin: center; animation: ct-hs-halo 3s ease-in-out infinite; }
.ct-hs-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: ct-hs-flame .7s ease-in-out infinite alternate; }
.ct-hs-clouds { animation: ct-hs-clouds 26s ease-in-out infinite alternate; }
.ct-hs-shimmer { animation: ct-hs-shimmer 2.4s ease-in-out infinite; }
@keyframes ct-hero-rain { from { transform: translateY(0); } to { transform: translateY(80px); } }
@keyframes ct-hs-door { 0%, 100% { opacity: .78; } 40% { opacity: 1; } 55% { opacity: .86; } 70% { opacity: .97; } }
@keyframes ct-hs-halo { 0%, 100% { opacity: .8; transform: scale(1); } 45% { opacity: 1; transform: scale(1.06); } }
@keyframes ct-hs-flame { 0% { transform: scale(1, 1); } 50% { transform: scale(.86, 1.14) skewX(4deg); } 100% { transform: scale(1.08, .9) skewX(-4deg); } }
@keyframes ct-hs-clouds { from { transform: translateX(0); } to { transform: translateX(-34px); } }
@keyframes ct-hs-shimmer { 0%, 100% { opacity: .2; } 50% { opacity: .5; } }
.ct-eyebrow { font-size: .73rem; letter-spacing: .19em; font-weight: 800; color: #eabd77; text-transform: uppercase; margin: 0 0 8px; }
.ct-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.05; color: #fff4dc; margin: 0 0 8px; }
.ct-hero-text > p:not(.ct-eyebrow) { color: #d7e0d1; font-size: 1rem; line-height: 1.6; margin: 0; }

/* ── the stage ── */
.ct-stage {
    position: relative; width: 100%; height: clamp(440px, calc(100vh - 150px), 820px); margin: 0 auto;
    overflow: hidden; border: 1px solid #f2b96838; border-radius: 18px; background: #070b09;
    box-shadow: 0 24px 70px #0009; isolation: isolate; outline: none;
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
    color: var(--ct-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@supports (height: 100svh) { .ct-stage { height: clamp(440px, calc(100svh - 150px), 820px); } }
.ct-stage:focus-visible { box-shadow: 0 0 0 2px var(--ct-amber), 0 24px 70px #0009; }
.ct-stage:fullscreen, .ct-stage:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; border: 0; }
.ct-stage.is-max { position: fixed; inset: 0; z-index: 1052; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
@supports (height: 100dvh) { .ct-stage.is-max { height: 100dvh; } }
.ct-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.ct-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .42) 100%); }
.ct-flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: #dfe8ff; transition: opacity .12s; }
.ct-flash.is-on { opacity: .35; transition: none; }
.ct-fade { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; background: #000; transition: opacity .35s; }
.ct-fade.is-on { opacity: 1; }
.ct-loading { position: absolute; inset: 0; z-index: 21; display: grid; place-items: center; padding: 20px; text-align: center; background: #070b09; }
.ct-loading[hidden] { display: none; }
.ct-load-box { display: grid; justify-items: center; gap: 10px; width: min(320px, 86%); }
.ct-load-box .ct-eyebrow { margin: 0; }
.ct-load-title { margin: 0; color: var(--ct-amber); font-weight: 700; letter-spacing: .06em; }
.ct-load-bar { width: 100%; height: 6px; overflow: hidden; border: 1px solid #ffffff14; border-radius: 99px; background: #121a16; }
.ct-load-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6f9a66, #f2b968); transform: scaleX(0); transform-origin: left center; transition: transform .3s ease; }
.ct-load-tip { max-width: 34ch; margin: 4px 0 0; color: #c9d4cb; font-size: .8rem; line-height: 1.45; }
.ct-load-tip:empty { display: none; }

/* letterbox during the drive and the film mode */
.ct-stage::before, .ct-stage::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 8%; background: #000; pointer-events: none; transform: scaleY(0); transition: transform .6s ease; }
.ct-stage::before { top: 0; transform-origin: top; }
.ct-stage::after { bottom: 0; transform-origin: bottom; }
.ct-stage[data-mode="drive"]::before, .ct-stage[data-mode="drive"]::after, .ct-stage[data-mode="film"]::before, .ct-stage[data-mode="film"]::after { transform: scaleY(1); }

/* ── HUD ── */
.ct-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ct-hud[hidden] { display: none; }
.ct-stage[data-mode="drive"] .ct-hud, .ct-stage[data-mode="film"] .ct-hud, .ct-stage[data-mode="station"] .ct-actions, .ct-stage[data-mode="station"] .ct-dialogue { display: none; }
.ct-topleft { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: min(300px, calc(100% - 80px)); }
.ct-goal { position: relative; width: 100%; padding: 9px 12px; border: 1px solid var(--ct-line); border-radius: 12px; background: var(--ct-glass); pointer-events: auto; cursor: pointer; }
.ct-k { display: block; color: var(--ct-muted); font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.ct-goal b { display: block; margin-top: 2px; color: #fff1d6; font-size: .95rem; line-height: 1.25; }
.ct-goal small { display: block; color: #d9c9a4; font-size: .74rem; line-height: 1.3; }
.ct-goal small:empty { display: none; }
.ct-meter { display: block; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #050a08; }
.ct-meter em { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6f9a66, #f2b968); transition: width .5s ease; }
.ct-goal.is-pop { animation: ct-pop .45s ease-out; }
@keyframes ct-pop { 40% { transform: scale(1.04); border-color: var(--ct-amber); } }

.ct-temp { position: relative; display: grid; gap: 4px; min-width: 150px; padding: 6px 10px; border: 1px solid var(--ct-line); border-radius: 10px; background: var(--ct-glass); color: #e6f0f4; font-size: .78rem; }
.ct-temp[hidden] { display: none; }
.ct-temp b { font-weight: 800; }
.ct-temp b::before { content: "🌡️ "; }
.ct-warm { display: grid; gap: 2px; }
.ct-warm[hidden] { display: none; }
.ct-warm small { color: var(--ct-muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ct-warm .ct-meter { margin-top: 0; }
.ct-warm em { background: linear-gradient(90deg, #7fb6e8, #f2b968); }
.ct-warm em[data-cold="1"] { background: linear-gradient(90deg, #6aa2e0, #9cc4ee); }
.ct-season { display: inline-flex; gap: 6px; margin-top: 8px; padding: 3px; border: 1px solid #ffffff1c; border-radius: 99px; background: #ffffff06; }
.ct-season button { padding: 5px 12px; border: 0; border-radius: 99px; background: transparent; color: #cfd8cb; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ct-season button[aria-pressed="true"] { background: var(--ct-amber); color: #241a08; }
.ct-st-steps-wrap { flex-wrap: wrap; }
.ct-fire-wait { visibility: hidden; }
.ct-place { position: absolute; left: 50%; top: 26%; transform: translate(-50%, -6px); max-width: min(90%, 640px); padding: 12px 24px; border-top: 1px solid var(--ct-amber); border-bottom: 1px solid var(--ct-amber); background: rgba(5, 9, 7, .7); text-align: center; opacity: 0; transition: opacity .8s, transform .8s; }
.ct-place.is-on { opacity: 1; transform: translate(-50%, 0); }
.ct-place small { display: block; color: #e6c587; font-size: .66rem; font-weight: 800; letter-spacing: .22em; }
.ct-place strong { display: block; margin-top: 4px; color: #fff4dc; font: 700 clamp(1.15rem, 3.4vw, 1.9rem)/1.2 Georgia, "Times New Roman", serif; }
.ct-stage[data-mode="drive"] .ct-place { display: block; }
.ct-stage[data-mode="drive"] .ct-hud { display: block; }
.ct-stage[data-mode="drive"] .ct-hud > :not(.ct-place) { display: none; }

.ct-toasts { position: absolute; right: 64px; top: 10px; display: grid; gap: 6px; width: min(300px, 50%); }
.ct-toast { padding: 8px 12px; border: 1px solid var(--ct-amber); border-radius: 10px; background: rgba(30, 30, 18, .92); color: #ffe6b8; font-size: .74rem; line-height: 1.35; animation: ct-in .3s ease; transition: opacity .5s, transform .5s; }
.ct-toast.is-out { opacity: 0; transform: translateX(10px); }
@keyframes ct-in { from { opacity: 0; transform: translateY(-6px); } }
.ct-tags { position: absolute; inset: 0; }
.ct-tag { position: absolute; transform: translate(-50%, -50%); padding: 3px 9px; border-radius: 6px; background: rgba(40, 30, 10, .86); color: #ffd79a; font-size: .76rem; font-weight: 800; white-space: nowrap; animation: ct-tag 2.2s ease-out forwards; }
@keyframes ct-tag { 0% { opacity: 0; margin-top: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; margin-top: -40px; } }

.ct-dialogue { position: absolute; left: 10px; right: 10px; bottom: 10px; max-width: 720px; margin: 0 auto; padding: 10px 44px 10px 14px; border: 1px solid var(--ct-line); border-radius: 12px; background: rgba(8, 13, 11, .82); pointer-events: auto; transition: opacity .6s; }
.ct-dialogue.is-quiet { opacity: .62; }
.ct-dlg-body { max-height: 6.6rem; overflow-y: auto; font-size: .9rem; line-height: 1.5; color: #e3e8dc; font-style: italic; }
.ct-dlg-body p { margin: 0; }
.ct-dlg-toggle { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 1px solid var(--ct-line); border-radius: 8px; background: transparent; color: var(--ct-amber); cursor: pointer; }
.ct-dlg-toggle span[hidden] { display: none; }
.ct-dialogue.is-collapsed .ct-dlg-body { display: none; }
.ct-dialogue.is-collapsed::before { content: "Gânduri"; color: var(--ct-muted); font-size: .72rem; }
.ct-dialogue.is-collapsed { padding-top: 12px; padding-bottom: 12px; }

.ct-actions { position: absolute; right: 12px; bottom: 112px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.ct-use { pointer-events: auto; position: relative; min-width: 160px; max-width: min(320px, 72vw); min-height: 64px; padding: 8px 14px 8px 56px; border: 2px solid var(--ct-amber); border-radius: 16px; background: rgba(36, 28, 12, .92); color: #fff1d6; text-align: left; cursor: pointer; touch-action: none; box-shadow: 0 8px 26px #000a; }
.ct-use[hidden] { display: none; }
.ct-use-alt { pointer-events: auto; min-height: 36px; padding: 6px 14px; border: 1px solid #7f9a86; border-radius: 999px; background: rgba(15, 22, 19, .88); color: #dfe7e0; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px #0008; }
.ct-use-alt:hover, .ct-use-alt:focus-visible { border-color: var(--ct-amber); color: #fff1d6; }
.ct-use-alt[hidden] { display: none; }
/* the big lines of the camp: a few words, large, in the middle of the view, no sound */
.ct-bigsay { position: absolute; left: 50%; top: 30%; z-index: 4; width: min(900px, 90%); transform: translate(-50%, 8px); text-align: center; pointer-events: none; opacity: 0;
  font: 700 clamp(1.7rem, 4.6vw, 3.6rem)/1.15 Georgia, 'Times New Roman', serif; color: #fff4dc; letter-spacing: .01em;
  text-shadow: 0 2px 18px #000c, 0 0 2px #000; transition: opacity 1.1s ease, transform 1.4s ease; }
.ct-bigsay.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ct-bigsay { transition: opacity .6s linear; transform: translate(-50%, 0); } }
/* while playing, the pointer over the scene is a small lantern ring (panels and buttons keep their own); in the film
   mode it fades out when the mouse rests */
.ct-stage.ct-playcur .ct-canvas { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='3.6'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23fff2d6' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.9' fill='%23ffc35a'/%3E%3C/svg%3E") 12 12, crosshair; }
.ct-stage.ct-nocursor .ct-canvas { cursor: none; }
.ct-autopack { border-color: var(--ct-amber); color: #fff1d6; }
.ct-autopack[aria-pressed="true"] { background: rgba(60, 44, 14, .92); }
.ct-use:not([hidden]) { animation: ct-in .18s ease-out; }
.ct-use[data-kind="soft"] { border-color: #7f9a86; background: rgba(15, 22, 19, .9); }
.ct-use-verb { display: block; color: var(--ct-amber-2); font: 900 .74rem ui-monospace, Consolas, monospace; letter-spacing: .14em; }
.ct-use[data-kind="soft"] .ct-use-verb { color: #c9d4cb; }
.ct-use-label { display: block; font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-use-ring { --k: 0; position: absolute; left: 10px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: conic-gradient(var(--ct-amber-2) calc(var(--k) * 360deg), rgba(255, 255, 255, .12) 0); }
.ct-use-ring::after { content: "●"; position: absolute; inset: 5px; display: grid; place-items: center; border-radius: 50%; background: #1d170a; color: var(--ct-amber); font-size: 10px; }
.ct-use[data-kind="hold"] .ct-use-ring::after { content: "✋"; font-size: 13px; }
.ct-use:focus-visible, .ct-round:focus-visible, .ct-btn:focus-visible, .ct-choice:focus-visible, .ct-mini:focus-visible { outline: 2px solid #ffe6b8; outline-offset: 2px; }

/* the joystick (controls.js builds it) */
.ct-joy { position: absolute; z-index: 4; width: 112px; height: 112px; border: 1px solid #ffffff45; border-radius: 50%; background: rgba(21, 37, 29, .55); pointer-events: none; }
.ct-joy[hidden] { display: none; }
.ct-joy span { position: absolute; left: 36px; top: 36px; width: 40px; height: 40px; border: 1px solid #ffffff90; border-radius: 50%; background: rgba(242, 185, 104, .7); }

/* coach marks */
.ct-coach { position: absolute; inset: 0; display: flex; pointer-events: none; animation: ct-in .5s ease; }
.ct-coach[hidden] { display: none; }
.ct-coach-l, .ct-coach-r { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff1d6; text-shadow: 0 1px 6px #000; font-size: .85rem; transition: opacity .5s; }
.ct-coach-l.is-done, .ct-coach-r.is-done { opacity: 0; }
.ct-coach-r small { color: #e5d6b6; }
.ct-coach-ring { width: 80px; height: 80px; border: 2px dashed #ffe6b8aa; border-radius: 50%; animation: ct-coach-pulse 1.6s ease-in-out infinite; }
.ct-coach-swipe { width: 70px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, #ffe6b8, transparent); animation: ct-coach-swipe 1.6s ease-in-out infinite; }
.ct-coach-k { display: none; }
@keyframes ct-coach-pulse { 50% { transform: scale(.88); } }
@keyframes ct-coach-swipe { 0%, 100% { transform: translateX(-16px); } 50% { transform: translateX(16px); } }
@media (pointer: fine) {
    .ct-coach-l, .ct-coach-r { display: none; }
    .ct-coach-k { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); display: grid; gap: 6px; width: min(92%, 520px); padding: 12px 16px; border: 1px solid var(--ct-line); border-radius: 12px; background: rgba(8, 13, 11, .86); text-align: center; color: #fff1d6; font-size: .84rem; }
    .ct-coach-k small { color: var(--ct-muted); }
}
kbd { padding: 1px 6px; border: 1px solid #ffffff40; border-radius: 4px; background: #ffffff12; color: inherit; font-size: .8em; }

/* ── tools ── */
.ct-tools { position: absolute; right: 10px; top: 10px; z-index: 6; display: flex; flex-direction: column; gap: 6px; }
.ct-tools[hidden] { display: none; }
.ct-round { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ct-line); border-radius: 50%; background: var(--ct-glass); color: var(--ct-amber-2); font-size: 15px; cursor: pointer; touch-action: manipulation; }
.ct-round:hover { background: #2b2616; }
.ct-round[hidden], .ct-round span[hidden] { display: none; }
.ct-round[aria-pressed="true"]#ct-t-film { background: #4a3714; }
.ct-stage[data-mode="film"] .ct-tools, .ct-stage[data-mode="drive"] .ct-tools { display: none; }

/* the checklist drawer */
.ct-drawer { position: absolute; right: 60px; top: 10px; z-index: 7; width: min(400px, calc(100% - 72px)); max-height: calc(100% - 20px); overflow-y: auto; padding: 12px; border: 1px solid var(--ct-amber); border-radius: 14px; background: rgba(9, 14, 12, .96); }
.ct-drawer[hidden] { display: none; }
.ct-drawer h2 { margin: 0 0 8px; color: var(--ct-amber-2); font: 800 .74rem ui-monospace, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.ct-drawer h2 small { color: var(--ct-muted); letter-spacing: .06em; }
.ct-drawer ol { display: grid; gap: 5px; margin: 0 0 10px; padding: 0; list-style: none; }
.ct-drawer li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #ffffff14; border-radius: 10px; background: #ffffff05; color: #cfd8cb; font-size: .82rem; line-height: 1.3; }
.ct-drawer li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid #ffffff40; border-radius: 50%; }
.ct-drawer li.is-done { color: #8fa38c; text-decoration: line-through; text-decoration-color: #ffffff40; }
.ct-drawer li.is-done::before { content: "✓"; display: grid; place-items: center; border-color: var(--ct-moss); background: #2c4428; color: #d6f0c8; font-size: 11px; font-weight: 900; text-decoration: none; }
.ct-drawer li.is-now { border-color: var(--ct-amber); background: #f2b96812; color: #fff1d6; }
.ct-drawer li.is-now::before { border-color: var(--ct-amber); }
.ct-drawer li span { flex: 1; min-width: 0; }
.ct-drawer li small { display: block; color: var(--ct-muted); font-size: .7rem; text-decoration: none; }
.ct-mini { flex: 0 0 auto; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--ct-amber); color: #241a08; font-size: .72rem; font-weight: 800; cursor: pointer; }

/* ── overlays and cards ── */
.ct-overlay { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 14px; overflow-y: auto; background: radial-gradient(ellipse at 50% 42%, rgba(12, 22, 17, .55), rgba(4, 7, 5, .9) 80%); touch-action: manipulation; }
.ct-overlay[hidden] { display: none; }
.ct-card { width: 100%; max-width: 460px; margin: auto; display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 4vw, 26px); border: 1px solid #f2b96845; border-radius: 18px; background: linear-gradient(155deg, rgba(28, 46, 36, .97), rgba(13, 21, 17, .97)); box-shadow: 0 24px 80px #000b; color: #f4f1e8; text-align: center; }
.ct-card-wide { max-width: 620px; }
/* The start screen: a weekend ticket. Notched sides, a tent that glows, a stamp per place. */
.ct-card-cover { position: relative; max-width: 480px; gap: 9px; padding-top: 18px; border: 1px dashed #f2b96866; border-radius: 16px; background: linear-gradient(170deg, #263a2c, #18251d 58%, #2a2216); box-shadow: 0 0 0 6px #0e1512cc, 0 24px 80px #000b;
    animation: ct-ticket-in .7s cubic-bezier(.2, .9, .3, 1.15) both; }
.ct-ticket-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ct-ticket-tent { width: 74px; height: 51px; filter: drop-shadow(0 0 14px #ffb54f55); }
.ct-ticket-no { font: 800 .66rem/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; color: #e6c587; }
.ct-card-cover h2 { font-size: clamp(2.1rem, 7vw, 2.9rem); letter-spacing: .02em; text-shadow: 0 2px 18px #ffb54f40; }
.ct-ticket-tag { margin: -6px 0 0; color: #eabd77; font: italic 1rem Georgia, "Times New Roman", serif; }
.ct-stamps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 4px 0 2px; padding: 0; list-style: none; }
.ct-stamp { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border: 1px dashed #ffffff2e; border-radius: 10px; color: #aebbac; min-width: 0; }
.ct-stamp b { font-size: .7rem; line-height: 1.15; color: #e6e9df; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-stamp small { font-size: .6rem; opacity: .75; }
.ct-stamp-n { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font: 800 .72rem/1 ui-monospace, Consolas, monospace; }
.ct-stamp.is-done { border: 1.5px solid #8fb07a; color: #b9dca4; background: #8fb07a14; transform: rotate(-4deg); }
.ct-stamp.is-done .ct-stamp-n { background: #8fb07a; color: #13200f; border-color: #8fb07a; }
.ct-stamp.is-current { border-color: var(--ct-amber); color: #f2d39b; }
.ct-stamp.is-locked { opacity: .55; border-style: dotted; }
.ct-map-list button.is-locked { opacity: .62; }
.ct-map-list button.is-locked strong { color: #c9c3b4; }
.ct-ticket-tear { width: 100%; margin: 2px 0; border: 0; border-top: 2px dashed #f2b96840; opacity: 1; }
@keyframes ct-ticket-in { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg) scale(.97); } to { opacity: 1; transform: none; } }
.ct-card h2 { margin: 0; color: #fff1d6; font: 700 clamp(1.4rem, 4vw, 2rem)/1.15 Georgia, "Times New Roman", serif; }
.ct-sub { margin: 0; color: #c9d4cb; font-size: .9rem; line-height: 1.5; }
.ct-cover-btns { display: grid; gap: 8px; }
.ct-btn { min-height: 46px; padding: 8px 14px; border: 1px solid #ffffff2c; border-radius: 12px; background: #ffffff0c; color: #edf0e7; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; touch-action: manipulation; }
.ct-btn:hover { border-color: var(--ct-amber); }
.ct-btn[hidden] { display: none; }
.ct-btn:disabled { opacity: .45; cursor: not-allowed; }
.ct-pause-view { display: flex; flex-direction: column; gap: 10px; }
.ct-pause-view[hidden] { display: none; }
/* the game's modal: over the pause card and every panel */
.ct-modal { z-index: 12; }
/* the auto mode's button glows while the camper plays by himself */
/* Mod automat: nothing over the picture but the big camping lines; the panels play hidden, and only the robot
   button stays, faint, to stop it */
.ct-stage.ct-autohud .ct-hud:not([hidden]) { display: block !important; }
.ct-stage.ct-autohud .ct-hud > :not(.ct-bigsay):not(.ct-autocap) { display: none !important; }
/* what the camper is doing, in one soft line at the bottom, like a subtitle */
.ct-autocap { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); max-width: min(82%, 640px); padding: 7px 18px; border-radius: 999px; background: rgba(8, 12, 10, .42); color: #f3ead6; font: italic 600 clamp(.85rem, 2.2vw, 1.08rem)/1.35 Georgia, "Times New Roman", serif; letter-spacing: .02em; text-align: center; text-shadow: 0 1px 6px #000c; pointer-events: none; transition: opacity .45s ease; }
.ct-autocap.is-fading { opacity: 0; }
/* in the auto mode the cinema bars stay on, and the caption sits in the bottom one, like a film's subtitle */
.ct-stage.ct-autohud:not([data-mode="cover"]):not([data-mode="map"]):not([data-mode="buddy"]):not([data-mode="loading"])::before,
.ct-stage.ct-autohud:not([data-mode="cover"]):not([data-mode="map"]):not([data-mode="buddy"]):not([data-mode="loading"])::after { transform: scaleY(1); }
.ct-stage.ct-autohud .ct-autocap { bottom: 4%; transform: translate(-50%, 50%); max-width: 92%; padding: 0 12px; background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(.72rem, 3vh, 1.05rem); text-shadow: none; color: #e9dfc8; }
.ct-stage:not(.ct-autohud) .ct-autocap { display: none; }
@media (prefers-reduced-motion: reduce) { .ct-autocap { transition: none; } }
.ct-stage.ct-autohud .ct-station, .ct-stage.ct-autohud .ct-modal { display: none !important; }
.ct-stage.ct-autohud .ct-tools:not([hidden]) { display: flex !important; opacity: .3; transition: opacity .3s; }
.ct-stage.ct-autohud .ct-tools > :not(.ct-autowrap) { display: none !important; }
/* the auto mode's speed, a small badge on the robot button: tap it for 1× or 2× */
.ct-autowrap { position: relative; }
.ct-ai-badge { position: absolute; right: -6px; bottom: -5px; min-width: 24px; height: 18px; padding: 0 4px; border: 1px solid var(--ct-amber); border-radius: 9px; background: #16201a; color: var(--ct-amber-2); font: 800 .64rem/16px ui-monospace, Consolas, monospace; cursor: pointer; box-shadow: 0 2px 6px #0009; }
.ct-ai-badge[aria-pressed="true"] { background: var(--ct-amber); color: #241a08; }
.ct-ai-badge.is-locked { opacity: .7; font-size: .55rem; }
.ct-ai-badge:focus-visible { outline: 2px solid #fff1d6; outline-offset: 1px; }
.ct-stage.ct-autohud .ct-tools:hover, .ct-stage.ct-autohud .ct-tools:focus-within { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ct-stage.ct-autohud .ct-tools { transition: none; } }
.ct-t-auto.is-on { border-color: var(--ct-amber); color: #241a08; background: var(--ct-amber); box-shadow: 0 0 0 3px #f2b96855; }
.ct-modal-card { max-width: 420px; text-align: left; animation: ct-in .18s ease-out; }
.ct-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ct-modal-head h2 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); }
.ct-modal-x { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffffff2c; border-radius: 50%; background: transparent; color: #e9dcc0; cursor: pointer; }
.ct-modal-x:hover, .ct-modal-x:focus-visible { background: #ffffff14; }
.ct-modal-msg { margin: 0; color: #dfe7e0; font-size: .95rem; line-height: 1.55; }
.ct-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ct-modal-foot .ct-btn { flex: 1 1 160px; justify-content: center; }
.ct-modal-foot #ct-modal-cancel[hidden] { display: none; }
.ct-btn-warn { border-color: #e0a25a; background: rgba(120, 62, 22, .55); color: #ffe6c4; }
.ct-btn-warn:hover, .ct-btn-warn:focus-visible { background: rgba(150, 78, 26, .75); }
.ct-btn-primary { border: 0; background: linear-gradient(135deg, #f6c77c, #d39441); color: #241a08; font-weight: 900; }
.ct-btn-ghost { background: transparent; border-color: transparent; color: #e8c88a; min-height: 38px; }
.ct-counter { margin: 0; color: #e6c587; font: 700 .76rem ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.ct-settings { text-align: left; border: 1px solid #ffffff18; border-radius: 10px; padding: 6px 10px; color: #c9d4cb; font-size: .82rem; }
.ct-settings summary { cursor: pointer; font-weight: 700; color: #ece3c8; }
.ct-settings label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.ct-settings input[type="range"] { flex: 1 1 140px; accent-color: var(--ct-amber); }
.ct-settings select { background: #0b1110; color: #e7e8dc; border: 1px solid #ffffff30; border-radius: 6px; padding: 3px 6px; }
.ct-check { display: flex; align-items: center; gap: 8px; color: var(--ct-muted); font-size: .8rem; }
.ct-check input { accent-color: var(--ct-amber); }
.ct-end-text { margin: 0; color: #dfe6da; font-size: .95rem; line-height: 1.6; }

/* companion choice */
.ct-buddy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border: 1px solid #ffffff22; border-radius: 14px; background: #ffffff08; color: #f4f1e8; cursor: pointer; text-align: center; transition: border-color .2s, transform .2s; }
.ct-choice:hover { border-color: var(--ct-amber); transform: translateY(-2px); }
.ct-choice-icon { font-size: 2.4rem; line-height: 1; }
.ct-choice strong { color: #fff1d6; font-size: 1rem; }
.ct-choice small { color: var(--ct-muted); font-size: .8rem; line-height: 1.4; }

/* the map */
.ct-card-map { max-width: 940px; text-align: left; }
.ct-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ct-map-head .ct-eyebrow { margin-bottom: 2px; }
.ct-map-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
#ct-map-canvas { width: 100%; height: auto; aspect-ratio: 720 / 560; border-radius: 12px; border: 1px solid #e9d3a440; background: #d9ccaa; cursor: pointer; touch-action: manipulation; }
.ct-map-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-map-list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #ffffff1c; border-radius: 12px; background: #ffffff06; color: #edf0e7; text-align: left; cursor: pointer; }
.ct-map-list button:hover { border-color: #f2b96880; }
.ct-map-list button[aria-pressed="true"] { border-color: var(--ct-amber); background: #f2b96818; }
.ct-map-list .ct-pin-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3a2c12; color: var(--ct-amber-2); font-weight: 900; font-size: .8rem; }
.ct-map-list strong { display: block; color: #fff1d6; font-size: .88rem; line-height: 1.2; }
.ct-map-list small { display: block; color: var(--ct-muted); font-size: .72rem; line-height: 1.3; }
.ct-map-list .ct-pin-done { color: #b9e0a8; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.ct-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-map-foot .ct-sub { flex: 1; text-align: left; font-size: .84rem; }
.ct-map-foot #ct-map-reset, .ct-map-foot #ct-map-auto { flex: 0 0 auto; }
.ct-map-foot #ct-map-auto { border-color: var(--ct-amber); color: var(--ct-amber-2); }

/* stations: the pump, the compass, the trunk */
.ct-station { align-items: flex-end; background: linear-gradient(180deg, transparent 30%, rgba(4, 7, 5, .55)); }
.ct-st-card { width: 100%; max-width: 520px; margin: 0 auto; display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #f2b96855; border-radius: 16px; background: rgba(12, 19, 15, .94); box-shadow: 0 20px 60px #000a; }
.ct-st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-st-head h3 { margin: 0; color: #fff1d6; font: 700 1.05rem Georgia, "Times New Roman", serif; }
.ct-st-head small { color: var(--ct-muted); font-size: .74rem; }
.ct-st-note { margin: 0; min-height: 1.3em; color: #e3d3ae; font-size: .82rem; line-height: 1.4; }
.ct-st-note.is-warn { color: #ffb08a; }
.ct-st-note.is-good { color: #bfe8a8; }
.ct-st-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ct-st-row .ct-btn { flex: 1 1 140px; }
.ct-st-steps { display: flex; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.ct-st-steps li { padding: 3px 8px; border: 1px solid #ffffff22; border-radius: 99px; color: var(--ct-muted); font-size: .66rem; font-weight: 700; }
.ct-st-steps li.is-done { border-color: var(--ct-moss); color: #cfeabd; }
.ct-st-steps li.is-now { border-color: var(--ct-amber); color: #ffe6b8; }
.ct-gauge-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.ct-gauge { width: 150px; height: 96px; }
.ct-pump-btn { min-height: 92px; font-size: 1.1rem; letter-spacing: .04em; }
.ct-pump-btn.is-stroke { transform: translateY(3px); }
.ct-btn-done { border-color: #5f9a55; background: #2c4428; color: #d6f0c8; }
.ct-btn-done[hidden] { display: none; }
.ct-compass { display: block; width: min(220px, 60vw); height: auto; margin: 0 auto; touch-action: none; cursor: grab; }
.ct-trunk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow-y: auto; }
.ct-trunk-list button { width: 100%; height: 100%; display: grid; gap: 2px; justify-items: center; padding: 10px 8px; border: 1px solid #ffffff1c; border-radius: 12px; background: #ffffff07; color: #edf0e7; cursor: pointer; text-align: center; }
.ct-trunk-list button:hover:not(:disabled) { border-color: var(--ct-amber); }
.ct-trunk-list button:disabled { opacity: .5; cursor: not-allowed; }
.ct-trunk-list .ct-ti { font-size: 1.6rem; line-height: 1.2; }
.ct-cook-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.ct-cook-pick[hidden] { display: none; }
.ct-cook-pick button { width: 100%; height: 100%; display: grid; gap: 3px; justify-items: center; padding: 10px 8px; border: 1px solid #ffffff1c; border-radius: 12px; background: #ffffff07; color: #edf0e7; cursor: pointer; text-align: center; }
.ct-cook-pick button:hover, .ct-cook-pick button:focus-visible { border-color: var(--ct-amber); }
.ct-cook-pick .ct-ti { font-size: 1.7rem; line-height: 1.2; }
.ct-cook-pick strong { font-size: .86rem; color: #fff1d6; }
.ct-cook-pick small { font-size: .74rem; color: #b9c2b6; }
.ct-cook-bar { position: relative; height: 12px; margin: 6px 0 10px; overflow: hidden; border-radius: 99px; background: #050a08; border: 1px solid #ffffff14; }
.ct-cook-bar[hidden] { display: none; }
.ct-cook-bar em { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #6f9a66, #f2b968 70%, #c4572e); }
.ct-cook-bar i { position: absolute; top: 0; bottom: 0; background: #6fd18a55; border-left: 2px solid #8ff0a6; border-right: 2px solid #8ff0a6; z-index: 1; }
.ct-pump-btn.is-urgent { animation: ct-urgent .6s ease-in-out infinite alternate; }
@keyframes ct-urgent { from { box-shadow: 0 0 0 0 #f2b96800; } to { box-shadow: 0 0 0 6px #f2b96866; } }
@media (prefers-reduced-motion: reduce) { .ct-pump-btn.is-urgent { animation: none; outline: 3px solid var(--ct-amber); } }
.ct-trunk-list strong { font-size: .82rem; color: #fff1d6; }
.ct-trunk-list small { font-size: .68rem; color: var(--ct-muted); line-height: 1.3; }
.ct-trunk-list .is-need strong::after { content: " ★"; color: var(--ct-amber); }

.ct-film-hint { position: absolute; left: 50%; bottom: 10%; z-index: 4; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #f4ead6; font-size: .76rem; pointer-events: none; animation: ct-hint 5s ease forwards; }
.ct-film-hint[hidden] { display: none; }
@keyframes ct-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.ct-skip { position: absolute; right: 14px; bottom: calc(8% + 12px); z-index: 9; padding: 8px 14px; border: 1px solid #ffffff40; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #f4ead6; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ct-skip[hidden] { display: none; }

/* ── below the stage ── */
.ct-help { margin-top: 14px; padding: 12px 16px; border: 1px solid #ffffff18; border-radius: 14px; background: #ffffff06; color: #d7e0d1; font-size: .92rem; line-height: 1.55; }
.ct-help summary { cursor: pointer; font-weight: 700; color: #ffe6b8; }
.ct-help ul { margin: 10px 0 6px; padding-left: 20px; }
.ct-help li { margin-bottom: 6px; }
.ct-credit { margin: 6px 0 0; color: var(--ct-muted); font-size: .8rem; }
.ct-powered { margin: 14px 0 0; text-align: center; color: var(--ct-muted); font-size: .84rem; }
.ct-powered a { color: #e8c88a; }

@media (max-width: 760px) {
    .ct-main { width: min(100% - 16px, 1120px); padding-top: 84px; }
    .ct-hero { padding: 16px 18px 132px; min-height: 0; align-items: flex-start; }
    .ct-hero:before { background: linear-gradient(180deg, #121d19 0, #121d19e6 55%, transparent 85%); }
    .ct-hero-facts li { font-size: .74rem; }
    .ct-stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .ct-stamp small { display: none; }
    .ct-map-body { grid-template-columns: 1fr; }
    .ct-map-list { grid-template-columns: 1fr; }
    .ct-map-foot { flex-direction: column; align-items: stretch; }
    .ct-buddy-grid { grid-template-columns: 1fr; }
    .ct-actions { bottom: 104px; }
    .ct-dlg-body { font-size: .84rem; max-height: 4.6rem; }
    .ct-goal { padding: 7px 10px; }
    .ct-goal b { font-size: .86rem; }
    .ct-toasts { right: 58px; top: auto; bottom: 190px; width: min(260px, 70%); }
    .ct-temp { min-width: 130px; font-size: .72rem; }
    .ct-gauge-wrap { grid-template-columns: 120px 1fr; }
    .ct-gauge { width: 120px; height: 78px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .ct-dlg-body { max-height: 2.8rem; }
    .ct-actions { bottom: 78px; }
    .ct-place { top: 16%; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-goal.is-pop, .ct-use:not([hidden]), .ct-toast, .ct-coach-ring, .ct-coach-swipe { animation: none; }
    .ct-hero-rain, .ct-hs-door, .ct-hs-halo, .ct-hs-flame, .ct-hs-clouds, .ct-hs-shimmer, .ct-card-cover { animation: none; }
}
