/* Border Control Tycoon promo site. The look follows the game's stylesheet: sky blue, grass green, sunshine yellow,
   tomato red, chocolate outlines, parchment sheets, Lilita One headings and Nunito text. */

/* Lilita One has a single weight: it answers every weight asked for, so the browser never fakes a bold from it */
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/LilitaOne-Regular.376b34d8eb.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-SemiBold.ae1c8c9248.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-ExtraBold.baaedf8de6.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Black.296aa586df.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
	--sky: #63c3ff;
	--sky-deep: #3a9be6;
	--sky-pale: #bfeaff;
	--grass: #7ccf3e;
	--grass-deep: #4fa22a;
	--sun: #ffd23f;
	--sun-deep: #e9a90b;
	--tomato: #ff5a4e;
	--tomato-deep: #c7372d;
	--orange: #ff9f1c;
	--teal: #22b8a8;
	--purple: #9b5de5;
	--navy: #2f4fa8;
	--ink: #4a2c17;
	--paper: #fff7e3;
	--parchment: #fbe7bd;
	--soft: #8a6a4e;
	--display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
	--body: "Nunito", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
	--outline: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink), 0 4px 0 var(--ink);
	--outline-sm: 0 2px 0 var(--ink), 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky-deep); color: var(--ink); font-family: var(--body); font-weight: 600; font-synthesis: none; font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 900; }
button { font-family: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; font-weight: 900; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons (the game's .btn) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 3px solid var(--ink); border-radius: 16px; padding: 10px 18px 12px;
	background: linear-gradient(#fffaf0, #f3dfb6); color: var(--ink);
	font-family: var(--display); font-size: 18px; line-height: 1.1; text-decoration: none;
	box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 4px 0 var(--ink);
	transition: transform .08s, box-shadow .08s, filter .15s;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active, .btn.pressed { transform: translateY(3px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 1px 0 var(--ink); }
.btn:disabled { filter: saturate(.4) brightness(.95); cursor: default; }
.btn:disabled:active { transform: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 4px 0 var(--ink); }
.btn.go { background: linear-gradient(#9de25a, #4fa22a); color: #fff; text-shadow: var(--outline-sm); }
.btn.search { background: linear-gradient(#ffc06a, #f08c24); color: #fff; text-shadow: var(--outline-sm); }
.btn.big { font-size: 22px; padding: 14px 22px 16px; border-radius: 18px; }
.btn.small { font-size: 15px; padding: 6px 12px 8px; border-radius: 12px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 3px 0 var(--ink); }
.btn.icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-family: var(--body); font-size: 19px; }
.btn kbd { font-family: var(--body); font-size: 13px; font-weight: 900; padding: 1px 7px; border-radius: 7px; background: rgba(255,255,255,.35); border: 2px solid rgba(74,44,23,.45); text-shadow: none; color: var(--ink); }
@media (hover: none) { .btn kbd { display: none; } }

/* ---------- Header ---------- */
/* the header: open over the hero, then a floating pill (the game's HUD look) once the page scrolls */
.top {
	position: fixed; z-index: 50; top: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 64px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
	border: 3px solid transparent; border-radius: 0;
	transition: top .25s, width .25s, height .25s, padding .25s, border-radius .25s, background-color .25s, border-color .25s, box-shadow .25s;
}
.top.scrolled { top: 10px; width: min(1000px, calc(100% - 20px)); height: 58px; padding: 0 8px 0 8px; border-radius: 999px; border-color: var(--ink); background-color: rgba(255,247,227,.96); box-shadow: 0 4px 0 var(--ink), 0 10px 24px rgba(28,40,80,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; color: var(--ink); white-space: nowrap; }
.brand img { border-radius: 10px; border: 3px solid var(--ink); transition: border-radius .25s; }
.top.scrolled .brand img { border-radius: 50%; }
.top .brand span { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.top.scrolled .brand span { opacity: 1; transform: none; font-size: 18px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { font-family: var(--display); font-size: 18px; letter-spacing: .01em; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.top.scrolled .nav a { font-size: 17px; padding: 5px 11px; }
.nav a:hover { background: rgba(255,255,255,.55); }
.top.scrolled .nav a:not(.nav-get):hover { background: var(--parchment); }
.nav .nav-get { white-space: nowrap; background: linear-gradient(#ffe27a, #f0b10f); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.nav .nav-get:hover { background: linear-gradient(#ffec9e, #f6bd24); }
@media (max-width: 760px) {
	.nav a:not(.nav-get) { display: none; }
	.top .brand span { display: none; }
	.top.scrolled { height: 54px; padding: 0 6px; }
	/* on a phone the name shows once the pill does, beside the icon */
	.top.scrolled .brand { gap: 8px; }
	.top.scrolled .brand span { display: inline; font-size: clamp(15px, 4.3vw, 18px); }
	.top.scrolled .brand img { width: 36px; height: 36px; }
	.top.scrolled .nav .nav-get { font-size: 16px; padding: 4px 12px 5px; }
}
@media (max-width: 399px) {
	.top.scrolled { width: calc(100% - 14px); }
	.top.scrolled .brand { gap: 6px; }
	.top.scrolled .brand span { font-size: 15px; }
	.top.scrolled .brand img { width: 32px; height: 32px; }
	.top.scrolled .nav .nav-get { font-size: 14.5px; padding: 3px 10px 4px; }
}
@media (max-width: 339px) { .top.scrolled .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; background: radial-gradient(120% 90% at 50% 0%, var(--sky-pale) 0%, var(--sky) 45%, var(--sky-deep) 100%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; left: 0; width: 160px; height: 52px; background: #fff; border-radius: 40px; opacity: .92; animation: drift linear infinite; will-change: transform; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 74px; height: 74px; left: 24px; top: -38px; }
.cloud::after { width: 56px; height: 56px; left: 82px; top: -24px; }
.c1 { top: 16%; --k: 1; animation-duration: 70s; animation-delay: -10s; }
.c2 { top: 40%; --k: .7; animation-duration: 95s; animation-delay: -60s; opacity: .8; }
.c3 { top: 8%; --k: .55; animation-duration: 120s; animation-delay: -30s; opacity: .7; }
.c4 { top: 64%; --k: .85; animation-duration: 85s; animation-delay: -40s; }
@keyframes drift { from { transform: translateX(-220px) scale(var(--k)); } to { transform: translateX(110vw) scale(var(--k)); } }

.flyby { position: absolute; top: 12%; left: 0; display: flex; align-items: center; flex-direction: row-reverse; animation: flyby 38s linear infinite; animation-delay: 1s; transform: translateX(-120%); }
/* plane, rope and banner bob together (the translate property, so the banner's flutter transform still applies); the
   plane tilts about its tail, and the rope runs under the tail at the fuselage's height, so it never comes away */
.flyby { --pw: 120px; }
.flyby-plane { position: relative; z-index: 1; width: var(--pw); height: calc(var(--pw) * .4); transform-origin: 8% 54%; animation: bobtilt 1.6s ease-in-out infinite; }
.flyby-rope { position: relative; top: calc(var(--pw) * .017); width: calc(var(--pw) / 3); height: 2px; margin-right: calc(var(--pw) * -.085); background: var(--ink); animation: bob 1.6s ease-in-out infinite; }
.flyby-banner { font-family: var(--display); font-size: 18px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); padding: 3px 14px 4px; border-radius: 4px 10px 10px 4px; white-space: nowrap; animation: flutter .5s ease-in-out infinite alternate, bob 1.6s ease-in-out infinite; transform-origin: right center; }
@keyframes flyby { 0% { transform: translateX(-60vw); } 82%, 100% { transform: translateX(130vw); } }
@keyframes bob { 50% { translate: 0 -5px; } }
@keyframes bobtilt { 50% { translate: 0 -5px; rotate: -2deg; } }
@keyframes flutter { from { transform: skewY(-2deg); } to { transform: skewY(2deg); } }

.hero-in { position: relative; width: min(1120px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-copy { text-align: center; }
.logo { margin: 0 auto; width: min(460px, 92%); }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(74,44,23,.18)); animation: pop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.tag { max-width: 580px; margin: 14px auto 16px; font-family: var(--display); font-size: clamp(25px, 3vw, 33px); line-height: 1.2; letter-spacing: .015em; word-spacing: .12em; color: #fff; text-shadow: var(--outline); text-wrap: balance; }
.lede { max-width: 520px; margin: 0 auto 22px; font-size: 18px; font-weight: 800; color: var(--ink); background: rgba(255,247,227,.85); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 16px; box-shadow: 0 4px 0 var(--ink); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store {
	position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 210px;
	padding: 10px 20px 12px 14px; border-radius: 16px; border: 3px solid var(--ink);
	background: #1d1310; color: #fff; text-decoration: none; text-align: left;
	box-shadow: 0 4px 0 var(--ink), 0 8px 18px rgba(0,0,0,.2); transition: transform .1s, box-shadow .1s;
}
.store:hover { background: #2c1e19; }
.store:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.store svg { width: 34px; height: 34px; flex: none; }
.store span { font-family: var(--body); font-weight: 900; font-size: 22px; line-height: 1.05; letter-spacing: -.005em; display: flex; flex-direction: column; }
.store small { font-weight: 700; font-size: 13px; letter-spacing: .01em; margin-bottom: 2px; color: #f3dfb6; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-weight: 900; font-size: 15px; color: var(--ink); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; line-height: 1.2; background: rgba(255,247,227,.9); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 13px 4px 4px; }
/* the green tick: a drawn check mark in a circle (no font has to carry it) */
.ticks li::before, .tablet-list li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.hero-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-phone figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.phone { position: relative; width: min(330px, 78vw); border: 5px solid var(--ink); border-radius: 34px; padding: 10px; background: linear-gradient(145deg, #3d2b20, #1d1310); box-shadow: 0 10px 0 var(--ink), 0 26px 50px rgba(28,40,80,.35); }
.phone video, .phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 14px; background: var(--sky-deep); }
.phone.sm { width: min(300px, 70vw); }
.phone-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--display); font-size: 16px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px 6px 8px; box-shadow: 0 3px 0 var(--ink); }
/* the dot sits on the middle of the lowercase letters (flex centring puts it on the capitals, which reads high) */
.phone-chip::before { content: ""; position: relative; top: .12em; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--sky-deep)); border: 2.5px solid var(--ink); transition: background .3s; }
.phone-chip.swap { animation: chip .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes chip { from { transform: scale(.5); opacity: 0; } }

.hill { position: absolute; left: 0; bottom: -1px; width: 100%; max-width: none; height: 90px; }

@media (max-width: 900px) {
	.hero { padding-top: 80px; }
	/* on a phone the plane flies just under the header, behind the narrow top of the logo's roundel, so most of it
	   and its banner stay in view */
	.flyby { top: 72px; --pw: 96px; }
	.flyby-banner { font-size: 15px; padding: 2px 11px 3px; }
	.hero-in { grid-template-columns: 1fr; gap: 34px; }
	.hero .phone { width: min(290px, 74vw); }
}

/* ---------- Departures board ---------- */
.board-wrap { background: var(--grass); padding: 4px 16px 34px; }
.board { width: min(900px, 100%); margin: 0 auto; background: #232a3a; border: 4px solid var(--ink); border-radius: 18px; padding: 12px 14px 14px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 3px #3a4460; }
.board-head, .board-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "t m s"; gap: 14px; align-items: center; }
.board-head { font-family: var(--display); color: var(--sun); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 0 4px 6px; }
.board-head span:nth-child(1) { width: 5.3em; } .board-head span:nth-child(3) { text-align: right; }
.board-row { padding: 6px 4px; border-top: 2px dashed #3a4460; }
.flap { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 2px; font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-weight: 700; font-size: 17px; line-height: 1.5; color: #fff4c2; }
.flap[data-col="t"] { grid-area: t; } .flap[data-col="m"] { grid-area: m; } .flap[data-col="s"] { grid-area: s; }
.flap.st { color: var(--grass); justify-content: flex-end; }
.flap.bad { color: #ff8a7a; }
/* one split-flap cell: a fixed top and bottom half, and the two flaps that turn over between them */
.fc { position: relative; display: inline-block; width: 1.1em; height: 1.5em; flex: none; perspective: 9em; }
.fc-h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; }
.fc-t { top: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#222a3d, #1a2030); transform-origin: 50% 100%; }
.fc-b { bottom: 0; border-radius: 0 0 3px 3px; background: linear-gradient(#171c29, #11151f); transform-origin: 50% 0; }
.fc-h b { position: absolute; left: 0; right: 0; height: 200%; line-height: 1.5em; text-align: center; font-weight: inherit; }
.fc-t b { top: 0; }
.fc-b b { bottom: 0; }
.fc-ft, .fc-fb { z-index: 2; }
.fc-ft { transform: rotateX(-90deg); }
.fc-fb { transform: rotateX(90deg); }
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgba(0,0,0,.65); z-index: 3; }
@media (max-width: 640px) {
	.board { padding: 10px 10px 12px; }
	.board-head { display: none; }
	.board-row { grid-template-columns: 1fr auto; grid-template-areas: "t s" "m m"; gap: 4px; }
	.flap { font-size: min(13px, 2.9vw); gap: 1px; }
}

/* ---------- Section headings ---------- */
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 0 0 10px; text-align: center; color: var(--ink); }
.h2.light { color: #fff; text-shadow: var(--outline); }
.sub { max-width: 640px; margin: 0 auto 34px; text-align: center; font-size: 18px; font-weight: 800; }
.sub.light { color: #fff; text-shadow: 0 2px 0 rgba(74,44,23,.55); }

/* ---------- How a shift works ---------- */
.how { background: var(--paper); padding: 70px 0 80px; border-top: 4px solid var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 26px 18px 20px; box-shadow: 0 5px 0 var(--ink); text-align: center; }
.step svg { width: 72px; height: 72px; margin: 0 auto 8px; padding: 8px; border-radius: 20px; border: 3px solid var(--ink); }
.s1 svg { background: #c9f2c0; } .s2 svg { background: #ffd9a8; } .s3 svg { background: #bfeaff; } .s4 svg { background: #fff1b8; }
.step-n { position: absolute; top: -16px; left: -12px; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: #fff; text-shadow: var(--outline-sm); background: var(--tomato); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 4px 0 6px; }
.step p { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 26px 18px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- The desk mini game ---------- */
/* The game's own pieces: the HUD pills, the hall drawn from the game's palette with its rendered travellers and desk
   (tools/site/build.sh: cast-*.webp, desk.webp), and the hunch sheet (.pass, .clues, .choice) as the game styles it. */
.desk-sec { background: linear-gradient(#17a394, #0e7569); padding: 70px 0 84px; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); position: relative; }
.desk-sec::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 2px, transparent 2.5px); background-size: 26px 26px; pointer-events: none; }
.game { position: relative; width: min(800px, 100%); margin: 0 auto; background: var(--sky-deep); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink), 0 24px 50px rgba(0,40,40,.3); padding: 10px; overflow: hidden; user-select: none; -webkit-user-select: none; }

.g-hud { display: flex; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 5px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); font-family: var(--display); font-size: 19px; white-space: nowrap; }
.p-day b { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--teal); color: #fff; font-weight: 400; font-size: 16px; }
.p-bar { flex: 1; min-width: 0; padding-left: 8px; }
.p-bar .bar { flex: 1; height: 16px; border: 3px solid var(--ink); border-radius: 10px; background: #e9dcc0; overflow: hidden; }
.p-bar .bar i { display: block; height: 100%; width: 0; background: linear-gradient(#9de25a, #4fa22a); transition: width .3s; }
.coin { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6a8, var(--sun) 50%, #f4a40c); border: 2.5px solid var(--ink); }
.g-round { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); box-shadow: 0 3px 0 var(--ink); font-size: 17px; padding: 0; }
.g-sub { margin: 8px 0; text-align: center; font-size: 14px; font-weight: 800; background: #e8f8ff; border: 3px solid var(--ink); border-radius: 12px; padding: 3px 10px; }

.g-hall { --u: 90px; position: relative; z-index: 0; isolation: isolate; height: 300px; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #f3dcae; }
.g-wall { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(#cdeeff, #a9ddfb); border-bottom: 3px solid var(--ink); }
.g-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, #ff5a4e 0 22px, #fff 22px 44px); border-top: 3px solid var(--ink); }
.g-sign { position: absolute; right: 6%; top: 12px; font-family: var(--display); font-size: 15px; color: #fff; background: var(--navy); border: 3px solid var(--ink); border-radius: 10px; padding: 2px 12px 4px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.g-welcome { position: absolute; left: 4%; top: 14px; font-family: var(--display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 8px; padding: 1px 10px 3px; transform: rotate(-2deg); white-space: nowrap; }
.g-floor { position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: repeating-conic-gradient(#f6e3b9 0 25%, #efd39d 0 50%) 0 0 / 46px 46px; }
.g-floor::before { content: ""; position: absolute; left: -10px; right: 34%; bottom: 10%; height: 46%; background: rgba(63,169,245,.35); border-top: 3px dashed rgba(47,79,168,.45); border-bottom: 3px dashed rgba(47,79,168,.45); }
.g-floor::after { content: ""; position: absolute; left: 0; right: 36%; bottom: calc(10% + 46% - 6px); height: 6px; background: #e2402f; border: 2px solid var(--ink); border-radius: 3px; }
.g-people { position: absolute; inset: 0; z-index: 2; }
.g-desk { position: absolute; right: calc(var(--u) * -0.45); bottom: calc(var(--u) * -0.62); width: calc(var(--u) * 3.4); aspect-ratio: 1; background: url("/assets/img/desk.d1dea7a0b6.webp") center / contain no-repeat; z-index: 3; pointer-events: none; }

/* a traveller: the wrapper is placed and scaled, the picture inside bobs while walking */
.tv { position: absolute; width: calc(var(--u) * 2.12); aspect-ratio: 1; transform: scale(var(--s, 1)); transform-origin: 50% 92%; transition: left .55s cubic-bezier(.4,.1,.3,1), bottom .55s, transform .55s, opacity .45s; }
.tv i { position: absolute; inset: 0; background: url("/assets/img/cast-calm.1c25cdf4df.webp") no-repeat; background-size: 1200% 100%; background-position: calc(var(--i) * 100% / 11) 0; }
.tv i.m-joy { background-image: url("/assets/img/cast-joy.bd5ec2cad2.webp"); }
.tv i.m-cross { background-image: url("/assets/img/cast-cross.1e2dd53fa2.webp"); }
.tv i.m-angry { background-image: url("/assets/img/cast-angry.f012670a12.webp"); }
.tv i.m-surprised { background-image: url("/assets/img/cast-surprised.e62a757654.webp"); }
.tv.walk i { animation: walk .3s ease-in-out infinite alternate; }
@keyframes walk { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4%) rotate(2deg); } }
.tv.out { opacity: 0; }
.tv .bub { position: absolute; left: 50%; top: 0; width: 26%; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 2px 0 var(--ink); transform: translate(-30%, -20%); background: center / 64% no-repeat; }
.tv .bub.angry { background-color: #ff5a4e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 6l4 2M16 6l-4 2M6 15q4-4 8 0' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tv .bub.cross { background-color: #ffd23f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='%234a2c17' stroke-width='2.4'/%3E%3Cpath d='M10 6v4.5l3 1.8' fill='none' stroke='%234a2c17' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tv .bub.vip { background-color: #9b5de5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 15l1-9 4 4 2-6 2 6 4-4 1 9z' fill='%23ffd23f' stroke='%234a2c17' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.g-more { position: absolute; left: 8px; bottom: 30%; z-index: 4; font-family: var(--display); font-size: 15px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 1px 10px 3px; box-shadow: 0 2px 0 var(--ink); }

/* floating labels, as the game's makeLabel: a coloured pill with white outlined text */
.g-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.lbl { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-family: var(--display); font-size: 20px; line-height: 1; color: #fff; text-shadow: var(--outline-sm); background: var(--grass-deep); border: 3px solid var(--ink); border-radius: 12px; padding: 5px 12px 7px; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); animation: rise 1.3s ease-out forwards; }
.lbl.red { background: #ff5a4e; } .lbl.gold { background: #f0b10f; } .lbl.purple { background: var(--purple); }
@keyframes rise { 0% { transform: translate(-50%, -20%) scale(.5); opacity: 0; } 14% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 24% { transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { transform: translate(-50%, -150%); opacity: 0; } }
.g-toast { position: absolute; left: 50%; top: 8px; z-index: 7; transform: translateX(-50%); width: max-content; max-width: 86%; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 12px; box-shadow: 0 3px 0 var(--ink); animation: toastin .3s cubic-bezier(.2,1.5,.4,1); }
.g-toast.good { background: #dff7c8; } .g-toast.bad { background: #ffd9d4; }
@keyframes toastin { from { transform: translate(-50%, -12px); opacity: 0; } }
.g-mood { position: absolute; left: 8px; bottom: 8px; z-index: 5; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); font-family: var(--display); font-size: 16px; }
.g-face { font-size: 20px; line-height: 1; }
.g-meter { width: 90px; height: 14px; border: 3px solid var(--ink); border-radius: 9px; background: #e9dcc0; overflow: hidden; }
.g-meter i { display: block; height: 100%; width: 100%; background: linear-gradient(#9de25a, #4fa22a); transition: width .4s; }
.g-meter i.mid { background: linear-gradient(#ffe27a, #f0b10f); }
.g-meter i.low { background: linear-gradient(#ff8a7a, #e2402f); }

/* the hunch sheet: the game's .sheet with its yellow header, .pass, .clues and .choice */
.g-sheet { margin-top: 10px; background: var(--parchment); border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; }
.g-sheet header { padding: 7px 14px 8px; background: linear-gradient(#ffe27a, #f0b10f); border-bottom: 4px solid var(--ink); }
.g-sheet h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; color: #fff; text-shadow: var(--outline-sm); }
.g-sheet-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px 16px; padding: 12px 14px 14px; }
.pass { border: 3px solid var(--ink); border-radius: 14px; background: #2f4fa8; overflow: hidden; box-shadow: 0 3px 0 rgba(74,44,23,.35); }
.pass .pt { display: flex; justify-content: space-between; padding: 4px 12px; font-family: var(--display); font-size: 13px; color: var(--sun); letter-spacing: .08em; text-transform: uppercase; }
.pass .pb { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--paper); border-top: 3px solid var(--ink); }
.pass .pb b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.pass .pb small { font-size: 13px; font-weight: 800; color: var(--soft); }
.pass .face { flex: none; width: 58px; height: 64px; border-radius: 10px; border: 3px solid var(--ink); background: linear-gradient(#d9f2ff, #9fd8ff); overflow: hidden; }
.pass .face.on { background: url("/assets/img/cast-faces.1ce67894e4.webp") no-repeat, linear-gradient(#d9f2ff, #9fd8ff); background-size: 768px 64px, auto; background-position: calc(var(--i) * -64px - 6px) 0, 0 0; }
.pass.flip { animation: slidein .35s cubic-bezier(.3,1.3,.5,1); }
@keyframes slidein { from { transform: translateX(30px) rotate(3deg); opacity: 0; } }
.g-feel { margin: 10px 2px 0; font-size: 14px; line-height: 1.4; color: var(--soft); }
.g-feel b { color: var(--ink); }
.clues { display: flex; flex-wrap: wrap; gap: 7px; min-height: 64px; align-content: flex-start; margin-bottom: 12px; }
.clues span { border: 2.5px solid var(--ink); border-radius: 10px; padding: 4px 10px 5px; font-size: 15px; font-weight: 900; line-height: 1.2; animation: cluein .3s cubic-bezier(.2,1.5,.4,1) both; }
.clues span:nth-child(2) { animation-delay: .07s; } .clues span:nth-child(3) { animation-delay: .14s; }
@keyframes cluein { from { transform: scale(.6); opacity: 0; } }
.clues span.red { background: #ffd9d4; color: var(--tomato-deep); }
.clues span.red::before { content: "⚑ "; }
.clues span.green { background: #dff7c8; color: var(--grass-deep); }
.clues span.green::before { content: "✓ "; }
.clues span.wait { border-style: dashed; color: var(--soft); background: transparent; animation: none; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button { position: relative; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 6px 9px; font-family: var(--display); font-size: 20px; line-height: 1.05; color: #fff; text-shadow: var(--outline-sm); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 4px 0 var(--ink); touch-action: manipulation; }
.choice button small { display: block; font-family: var(--body); font-weight: 900; font-size: 12px; text-shadow: none; color: rgba(255,255,255,.95); margin-top: 3px; }
.choice .srch { background: linear-gradient(#ffb15c, #e9730b); }
.choice .let { background: linear-gradient(#9de25a, #4fa22a); }
.choice button:active, .choice button.pressed { transform: translateY(3px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 1px 0 var(--ink); }
.choice button:disabled { filter: saturate(.35) brightness(.97); }
.choice button:disabled:active { transform: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 4px 0 var(--ink); }
.choice kbd { position: absolute; top: 5px; right: 6px; font-family: var(--body); font-size: 11px; font-weight: 900; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,.35); border: 2px solid rgba(74,44,23,.4); text-shadow: none; color: var(--ink); }
@media (hover: none) { .choice kbd { display: none; } }
.g-sheet .fine { margin: 9px 0 0; font-size: 12.5px; text-align: center; color: var(--soft); }

/* start and report overlays */
.g-overlay { position: absolute; inset: 0; z-index: 10; display: flex; padding: 12px; background: rgba(74,44,23,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; margin: auto; width: min(440px, 100%); background: var(--paper); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 18px; text-align: center; animation: pop .45s cubic-bezier(.2,1.5,.4,1); }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 8px; color: var(--teal); }
.sue { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; box-shadow: 0 3px 0 var(--ink); margin-bottom: 12px; }
.sue-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); border: 3px solid var(--ink); color: #fff; font-family: var(--display); font-size: 20px; }
.sue b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--teal); }
.sue p { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.35; }
.goals-card { background: var(--parchment); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 10px 10px; margin-bottom: 10px; }
.goals-card h3 { font-size: 20px; margin-bottom: 6px; text-align: left; }
.goals-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.goals-list li { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; }
.goals-list li span { flex: 1; min-width: 0; }
.goals-list li small { display: block; font-size: 12.5px; font-weight: 800; color: var(--soft); line-height: 1.3; }
.goals-list li i { flex: none; font-style: normal; font-family: var(--display); font-size: 17px; min-width: 34px; text-align: center; padding: 0 8px 1px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; }
.goals-list li.ok i { background: #dff7c8; color: var(--grass-deep); } .goals-list li.no i { background: #ffd9d4; color: var(--tomato-deep); }
.goals-list li::before { content: "★"; color: var(--sun-deep); font-size: 17px; text-shadow: 0 1px 0 var(--ink); }
.goals-list li.ok::before { content: "✓"; color: var(--grass-deep); }
.goals-list li.no::before { content: "✗"; color: var(--tomato-deep); }
.small-print { font-size: 14px; color: var(--soft); margin: 0 0 8px; line-height: 1.5; }
.mini { display: inline-block; font-size: 12.5px; font-weight: 900; border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; line-height: 1.5; }
.mini.red { background: #ffd9d4; color: var(--tomato-deep); } .mini.green { background: #dff7c8; color: var(--grass-deep); }
.keys-hint { font-size: 14px; font-weight: 800; color: var(--soft); margin: 0 0 12px; }
.keys-hint kbd { font-family: var(--body); font-weight: 900; padding: 0 7px; border: 2px solid var(--soft); border-radius: 6px; margin: 0 2px 0 8px; color: var(--ink); }
@media (hover: none) { .keys-hint { display: none; } }
.best { margin: 12px 0 0; font-weight: 900; color: var(--soft); font-size: 14px; }
.report { padding: 14px 16px 16px; }
.report h3 { color: var(--ink); margin-bottom: 2px; font-size: 24px; line-height: 1.1; }
.report .goals-list { margin-bottom: 8px; background: var(--parchment); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 10px; }
.r-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.r-stars i { font-style: normal; font-size: 36px; line-height: 1; color: #e4d3b0; text-shadow: 0 3px 0 var(--ink); transform: scale(0); animation: starin .4s cubic-bezier(.2,1.8,.4,1) forwards; }
.r-stars i.on { color: var(--sun); }
.r-stars i:nth-child(2) { animation-delay: .25s; font-size: 44px; margin-top: -6px; } .r-stars i:nth-child(3) { animation-delay: .5s; }
@keyframes starin { to { transform: scale(1); } }
.r-stamp { display: inline-block; font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--grass-deep); border: 4px solid currentColor; border-radius: 12px; line-height: 1; padding: .15em .4em .13em; margin: 4px 0 10px; transform: rotate(-6deg); animation: stamp2 .35s .8s cubic-bezier(.3,1.5,.5,1) both; }
.r-stamp.no { color: var(--tomato-deep); }
@keyframes stamp2 { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } }
.r-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.r-grid div { background: var(--parchment); border: 2.5px solid var(--ink); border-radius: 12px; padding: 7px 10px 8px; text-align: left; }
.r-grid small { display: block; font-size: 11.5px; font-weight: 800; color: var(--soft); line-height: 1.2; margin-bottom: 3px; }
.r-grid b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.r-rank { margin: 0 0 10px; font-weight: 800; }
.r-rank b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--navy); }
.r-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.r-more { font-size: 14px; margin: 10px 0 0; color: var(--soft); }
.r-more a { color: var(--navy); font-weight: 900; }
.r-left { margin-bottom: 8px; }
@media (min-width: 641px) {
	.sheet.report { width: min(680px, 100%); display: grid; grid-template-columns: 1fr 1.35fr; gap: 0 18px; align-items: center; text-align: center; }
	.r-left { margin: 0; }
	.report .r-more { grid-column: 1 / -1; }
}
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 18px; }
.report .r-left, .report .r-right, .report .r-more { position: relative; z-index: 1; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(620px) rotate(720deg); } }

@media (max-width: 640px) {
	.game { padding: 8px; border-radius: 20px; }
	.pill { height: 36px; font-size: 16px; padding-right: 9px; }
	.p-day b { min-width: 26px; height: 22px; font-size: 14px; }
	.coin { width: 22px; height: 22px; }
	.g-round { width: 36px; height: 36px; font-size: 15px; }
	.g-sub { font-size: 12px; }
	.g-hall { height: 230px; }
	.g-welcome { display: none; }
	.g-sheet-in { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
	.g-feel { display: none; }
	.choice button { font-size: 18px; }
	.r-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Border posts ---------- */
.posts { background: var(--sky-pale); padding: 70px 0 84px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 8px 8px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; font-family: var(--display); font-size: 18px; box-shadow: 0 4px 0 var(--ink); transition: transform .1s, background .2s; }
.tab svg { width: 36px; height: 36px; padding: 3px; border-radius: 11px; border: 2.5px solid var(--ink); }
.t-air svg { background: #3fa9f5; } .t-road svg { background: #ff9f1c; } .t-rail svg { background: #9b5de5; } .t-ferry svg { background: #22b8a8; } .t-intl svg { background: #e0435e; }
.tab[aria-selected="true"] { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); color: #fff; text-shadow: var(--outline-sm); }
.t-air[aria-selected="true"] { background: #3fa9f5; } .t-road[aria-selected="true"] { background: #ff9f1c; } .t-rail[aria-selected="true"] { background: #9b5de5; } .t-ferry[aria-selected="true"] { background: #22b8a8; } .t-intl[aria-selected="true"] { background: #e0435e; }
.tab[aria-selected="true"] svg { background: #fff; }
.post { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; width: min(900px, 100%); margin: 0 auto; animation: postin .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes postin { from { opacity: 0; transform: translateY(16px); } }
.post-copy { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 24px; box-shadow: 0 6px 0 var(--ink); }
.post-kicker { margin: 0; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.p-air .post-kicker { color: #1d6db0; } .p-road .post-kicker { color: #a85a00; } .p-rail .post-kicker { color: #6a2fc2; } .p-ferry .post-kicker { color: #0d6e63; } .p-intl .post-kicker { color: #b3223d; }
.post-copy h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 2px 0 10px; }
.post-copy > p { margin: 0 0 14px; }
.flow { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.flow li { position: relative; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 13px; font-weight: 900; line-height: 1.15; }
.flow svg { width: 52px; height: 52px; padding: 7px; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 20px; right: -15px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7h9M7.5 3l4 4-4 4' fill='none' stroke='%238a6a4e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.flow li.row-end::after { display: none; }
.nw { white-space: nowrap; }
.f-sky svg { background: #bfeaff; } .f-white svg { background: #fff; } .f-mint svg { background: #c9f2c0; } .f-sun svg { background: #fff1b8; } .f-peach svg { background: #ffd9a8; } .f-lilac svg { background: #e9dcff; }
.post-bits { margin: 0; padding-left: 20px; font-size: 16px; }
.post-bits li { margin-bottom: 4px; }
.unlock { display: inline-block; margin: 10px 0 0 !important; font-size: 14px; font-weight: 900; color: #fff; background: var(--tomato); border: 2.5px solid var(--ink); border-radius: 10px; padding: 2px 10px 3px; }
.unlock::before { content: "🔒 "; }
@media (max-width: 800px) {
	.post { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
	.tab { font-size: 15px; padding-right: 12px; }
	.tab svg { width: 30px; height: 30px; }
}

/* ---------- Tablet mode ---------- */
.tablet-sec { background: linear-gradient(#9de25a, var(--grass-deep)); padding: 70px 0 84px; border-top: 4px solid var(--ink); position: relative; overflow: hidden; }
.tablet-sec::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 2px, transparent 2.5px); background-size: 26px 26px; pointer-events: none; }
.tablet-in { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; margin: 0 0 10px; font-family: var(--display); font-size: 16px; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 1px 10px 3px; box-shadow: 0 3px 0 var(--ink); transform: rotate(-3deg); }
.h2.left { text-align: left; color: #fff; text-shadow: var(--outline); }
.tablet-copy > p { font-weight: 800; color: var(--ink); font-size: 18px; }
.tablet-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.tablet-list li { display: flex; align-items: center; gap: 10px; line-height: 1.25; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 7px 12px 7px 8px; font-weight: 900; box-shadow: 0 3px 0 var(--ink); }
.tablet-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.tablet-picks .btn[aria-pressed="true"] { background: linear-gradient(#ffe27a, #f0b10f); }
.tablet-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tablet-box { position: relative; width: 100%; aspect-ratio: 10 / 8; }
.tablet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 5px solid var(--ink); box-sizing: content-box; border-radius: 30px; padding: 14px; background: linear-gradient(145deg, #3d2b20, #1d1310); box-shadow: 0 10px 0 var(--ink), 0 26px 50px rgba(20,60,10,.35); }
.tablet.land { width: calc(100% - 38px); aspect-ratio: 16 / 10; }
.tablet.port { height: calc(100% - 38px); aspect-ratio: 10 / 16; }
.tablet img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--sky-deep); }
.rotate span { display: inline-block; font-size: 24px; line-height: 1; }
@media (max-width: 900px) {
	.tablet-in { grid-template-columns: 1fr; gap: 30px; }
	.h2.left { text-align: center; }
	.tablet-copy { text-align: center; }
	.tablet-list { text-align: left; max-width: 460px; margin-inline: auto; }
	.tablet-picks { justify-content: center; }
	.tablet { padding: 9px; border-radius: 22px; }
	.tablet.land { width: calc(100% - 28px); }
	.tablet.port { height: calc(100% - 28px); }
}

/* ---------- Features ---------- */
.features { background: linear-gradient(#9b5de5, #7b3fd0); padding: 70px 0 84px; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.feat { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 5px 0 var(--ink); }
.feat-ico { display: grid; place-items: center; width: 58px; height: 58px; font-size: 30px; border: 3px solid var(--ink); border-radius: 18px; margin-bottom: 10px; box-shadow: 0 3px 0 var(--ink); }
.f1 .feat-ico { background: #fff1b8; } .f2 .feat-ico { background: #ffd9a8; } .f3 .feat-ico { background: #bfeaff; } .f4 .feat-ico { background: #c9f2c0; } .f5 .feat-ico { background: #e9dcff; } .f6 .feat-ico { background: #ffd0cc; }
.feat h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 6px; }
.feat p { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); padding: 70px 0 70px; }
.shots { list-style: none; margin: 0 auto; padding: 0; width: min(1120px, 100% - 32px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 24px; }
.shots li { min-width: 0; }
.shot { width: 100%; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: zoom-in; }
.shot-ph { display: block; width: 100%; padding: 6px; border: 4px solid var(--ink); border-radius: 22px; background: linear-gradient(145deg, #3d2b20, #1d1310); box-shadow: 0 6px 0 var(--ink); transition: box-shadow .15s; }
.shot-ph img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 9px; background: var(--sky-deep); }
.shot:focus-visible .shot-ph { box-shadow: 0 6px 0 var(--ink), 0 0 0 5px var(--sun); }
@media (hover: hover) { .shot:hover .shot-ph { box-shadow: 0 6px 0 var(--ink), 0 0 0 5px var(--sun); } }
.shot-cap { font-family: var(--display); font-size: 16px; line-height: 1.15; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; padding: 3px 10px 4px; }
@media (max-width: 759px) {
	.shots { width: 100%; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 20px; scroll-padding: 0 16px; }
	.shots li { flex: none; width: 62vw; max-width: 240px; scroll-snap-align: center; }
}

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(29,19,16,.8); backdrop-filter: blur(4px); }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; border: 5px solid var(--ink); border-radius: 16px; box-shadow: 0 8px 0 var(--ink); background: var(--sky-deep); }
.lightbox figcaption { font-family: var(--display); font-size: 19px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; padding: 3px 14px 5px; }
.lightbox .close { position: fixed; top: 14px; right: 14px; z-index: 2; }
.lb-nav { position: fixed; top: 50%; margin-top: -26px; width: 52px; height: 52px; font-family: var(--display); font-size: 34px; line-height: 1; padding-bottom: 4px; z-index: 2; }
.lb-prev { left: max(14px, calc(50vw - 330px)); }
.lb-next { right: max(14px, calc(50vw - 330px)); }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 18px; margin-top: 0; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } .lightbox img { max-height: calc(100vh - 170px); max-width: calc(100vw - 32px); } }

/* ---------- Call to action ---------- */
.cta { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 50% 100%, var(--sun) 0%, #f4a40c 60%, var(--orange) 100%); padding: 80px 0 90px; border-top: 4px solid var(--ink); }
.cta-in { position: relative; text-align: center; }
.cta-icon { margin: 0 auto 16px; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 0 6px 0 var(--ink); }
.cta-stamp { position: absolute; right: 2%; top: -30px; font-family: var(--display); font-size: 40px; text-transform: uppercase; color: var(--grass-deep); border: 6px solid currentColor; border-radius: 16px; line-height: 1; padding: .15em .4em .13em; transform: rotate(14deg); opacity: .85; background: rgba(255,255,255,.4); }
@media (max-width: 760px) { .cta-stamp { font-size: 26px; top: -50px; right: 4px; } }

/* ---------- Footer ---------- */
.foot { background: #1d1310; color: #f3dfb6; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px; }
.foot .brand { font-size: 18px; color: var(--paper); }
.foot .brand img { border-width: 2px; border-radius: 8px; border-color: #f3dfb6; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { font-weight: 900; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.legal { flex-basis: 100%; margin: 0; font-size: 13px; opacity: .75; }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 0 var(--ink), 0 12px 30px rgba(28,40,80,.25); animation: toastin2 .35s cubic-bezier(.2,1.4,.4,1); }
.consent p { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 700; }
.consent b { font-family: var(--display); font-weight: 400; font-size: 17px; color: #0d6e63; }
.consent a { color: var(--navy); font-weight: 900; }
.consent-btns { display: flex; gap: 8px; justify-content: flex-end; }
@keyframes toastin2 { from { transform: translateY(30px); opacity: 0; } }
.doc code { font-size: 15px; background: var(--parchment); border-radius: 6px; padding: 0 5px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 18px; font-weight: 900; box-shadow: 0 4px 0 var(--ink); animation: toast .35s cubic-bezier(.2,1.5,.4,1); text-align: center; }
@keyframes toast { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ---------- Privacy and other text pages ---------- */
.page { display: flex; flex-direction: column; min-height: 100vh; background: radial-gradient(120% 60% at 50% 0%, var(--sky-pale) 0%, var(--sky) 40%, var(--sky-deep) 100%); }
.page main { flex: 1; padding: 100px 0 70px; }
.page .top .brand span { opacity: 1; transform: none; }
.doc { width: min(780px, 100% - 32px); margin: 0 auto; background: var(--paper); border: 4px solid var(--ink); border-radius: 24px; padding: clamp(20px, 5vw, 44px); box-shadow: 0 8px 0 var(--ink); }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 46px); line-height: 1.05; margin: 0 0 6px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 30px 0 8px; color: var(--navy); }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--navy); font-weight: 900; }
.doc .meta { color: var(--soft); font-weight: 800; margin: 0 0 20px; }
.doc .summary { background: #c9f2c0; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; font-weight: 800; }
.doc .summary p { margin: 0; }
.lost { text-align: center; }
.lost .big-stamp { display: inline-block; font-family: var(--display); font-size: clamp(28px, 7vw, 46px); line-height: 1; color: var(--tomato-deep); border: 5px solid currentColor; border-radius: 14px; padding: .15em .4em .13em; transform: rotate(-4deg); margin: 14px 0 30px; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.flyby, .cloud { display: none; }
}

