/* tokens.css */
/* Eat Work Travel Repeat: design tokens. Day (paper) and night train (dark) themes. */
:root {
  --paper: #FFFDF7;
  --paper-2: #FFF6E3;
  --card: #FFFFFF;
  --ink: #17161A;
  --ink-2: #5E5A55;
  --ink-3: #8A857D;
  --line: #E8E2D5;
  --line-strong: #17161A;
  --chilli: #F2452C;
  --chilli-deep: #C9311B;
  --chilli-ink: #FFFDF7;
  --mango: #FFC531;
  --sea: #1FA3B5;
  --sea-deep: #157F8D;
  --sea-soft: #B9E6EC;
  --map-dot: #D9D3C7;
  --shadow: 0 18px 40px rgba(23, 22, 26, 0.16);
  --hard: 6px 6px 0 var(--ink);
  --hard-sm: 4px 4px 0 var(--ink);

  --font-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;

  --radius: 16px;
  --radius-lg: 24px;
  --pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* Night train mode: warm reading-lamp type on a sleeper-carriage dark. */
:root[data-theme="night"] {
  --paper: #121318;
  --paper-2: #1A1B22;
  --card: #1E1F27;
  --ink: #F1E4C8;
  --ink-2: #B9AE95;
  --ink-3: #8C8472;
  --line: #2C2D36;
  --line-strong: #F1E4C8;
  --chilli: #FF6A4D;
  --chilli-deep: #FF8A70;
  --chilli-ink: #121318;
  --mango: #FFC531;
  --sea: #3FC0D1;
  --sea-deep: #7ADCE8;
  --sea-soft: #1E4F57;
  --map-dot: #33343E;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  --hard: 6px 6px 0 #F1E4C8;
  --hard-sm: 4px 4px 0 #F1E4C8;
  color-scheme: dark;
}


/* base.css */
/* Base styles and layout primitives */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out); }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--chilli-deep); text-decoration: none; }
a:hover { color: var(--chilli); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 0.98; }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.1; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: 1.4em; line-height: 1.2; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
:root[data-theme="night"] .section-dark { background: #0B0C10; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
mark { background: var(--mango); color: #17161A; padding: 0 4px; border-radius: 4px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1.5px solid var(--line); margin: 24px 0; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.65; color: var(--ink); }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0.6em 0; }
.prose li + li { margin-top: 0.3em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--mango); font-family: var(--font-hand); font-size: 1.5em; line-height: 1.25; }
.prose img { border-radius: 12px; box-shadow: var(--shadow); margin: 1.2em 0; }
.placeholder { color: var(--ink-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--pill); font-weight: 600; font-size: 16px; white-space: nowrap; border: 2px solid transparent; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--chilli); color: var(--chilli-ink); box-shadow: 0 10px 24px rgba(242, 69, 44, 0.24); }
.btn-primary:hover { color: var(--chilli-ink); background: var(--chilli-deep); }
:root[data-theme="night"] .btn-primary:hover { background: #FF8A70; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: var(--paper); background: var(--chilli); }
.btn-mango { background: var(--mango); color: #17161A; }
.btn-mango:hover { color: #17161A; background: #FFD25E; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 18px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Form controls */
.input, .select { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 16px; background: var(--card); font-weight: 500; font-size: 16px; }
.input:focus-within, .select:focus-within { outline: 3px solid var(--sea); outline-offset: 2px; }
.input input, .select select { border: 0; background: transparent; width: 100%; outline: none; height: 100%; }
.select { position: relative; padding-right: 40px; }
.select select { appearance: none; -webkit-appearance: none; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border-right: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-weight: 600; font-size: 14px; color: var(--ink); letter-spacing: 0; text-transform: none; }
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { padding: 0 16px; height: 48px; font-weight: 600; font-size: 15px; color: var(--ink); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 14px; background: var(--card); color: var(--ink); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.pill[aria-pressed="true"], .pill.on { background: var(--ink); color: var(--paper); }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 52px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); padding: 0 8px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; line-height: 1; }
.stepper output { font-weight: 700; font-size: 18px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: var(--line); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-strong); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-strong); cursor: pointer; }

/* Scrapbook pieces */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); }
.card-hard { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--hard); }
.sticker { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: var(--pill); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(23, 22, 26, 0.14), inset 0 0 0 3px var(--paper); padding: 0 16px; height: 40px; font-size: 12px; }
.sticker-round { width: 120px; height: 120px; padding: 0; font-size: 14px; line-height: 1.15; }
.sticker-mango { background: var(--mango); color: #17161A; }
.sticker-sea { background: var(--sea); color: #FFFDF7; }
.sticker-chilli { background: var(--chilli); color: var(--chilli-ink); }
.stamp { display: inline-flex; align-items: center; justify-content: center; text-align: center; border: 3px solid var(--chilli); color: var(--chilli); border-radius: 12px; padding: 6px 12px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; transform: rotate(-6deg); white-space: nowrap; }
.photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.tape { position: absolute; width: 110px; height: 30px; left: 50%; top: -12px; margin-left: -55px; background: rgba(255, 245, 200, 0.85); box-shadow: 0 2px 6px rgba(23, 22, 26, 0.12); transform: rotate(-6deg); pointer-events: none; }
.polaroid { background: #FFFFFF; padding: 12px 12px 40px; box-shadow: var(--shadow); border-radius: 4px; }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.note { padding: 22px 24px; border-radius: 4px; box-shadow: var(--shadow); background: var(--mango); color: #17161A; }
.bracket { color: var(--ink-3); font-style: normal; }

/* Placeholder image blocks (until real photos arrive) */
.ph { background: linear-gradient(160deg, var(--ph-a, #FFC531), var(--ph-b, #F2452C)); position: relative; overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.16'/></svg>"); mix-blend-mode: multiply; }
.ph-sea { --ph-a: #1FA3B5; --ph-b: #FFF0C8; }
.ph-night { --ph-a: #17161A; --ph-b: #F2452C; }
.ph-sun { --ph-a: #F67A5A; --ph-b: #FFD578; }
.ph-mango { --ph-a: #FFC531; --ph-b: #F2452C; }
.ph-dawn { --ph-a: #FFEBC8; --ph-b: #F2452C; }
.ph-lagoon { --ph-a: #FFD578; --ph-b: #1FA3B5; }


/* chrome.css */
/* Header, footer, menus, night-train window, toast */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease-out); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; gap: 6px; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark .wm-accent { color: var(--chilli); }
.wordmark-light { color: #FFFDF7; } .wordmark-light:hover { color: #FFFDF7; } .wordmark-light .wm-accent { color: var(--mango); }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--chilli); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.currency-btn, .lamp-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 13px; color: var(--ink); background: var(--card); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.lamp-btn { width: 40px; padding: 0; justify-content: center; }
.lamp-btn[aria-pressed="true"] { background: var(--mango); color: #17161A; border-color: var(--mango); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.currency-menu { position: absolute; left: 0; right: 0; top: 72px; background: var(--card); border-bottom: 1.5px solid var(--line-strong); box-shadow: var(--shadow); transform-origin: top; }
.currency-menu-inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.currency-menu-inner .label + .pills { margin-bottom: 6px; }
.mobile-menu { background: var(--card); border-bottom: 1.5px solid var(--line-strong); }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px var(--gutter) 20px; display: flex; flex-direction: column; }
.mobile-menu a { display: block; padding: 12px 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 480px) { .currency-btn span { display: none; } .currency-btn { width: 40px; padding: 0; justify-content: center; } .nav { gap: 8px; } .nav-tools { gap: 6px; } .wordmark { font-size: 18px; gap: 4px; } .menu-btn { width: 38px; } }
.site-header { overflow-x: clip; }

/* Footer */
.site-footer { background: #17161A; color: #FFFDF7; padding: 48px 0 40px; margin-top: auto; }
:root[data-theme="night"] .site-footer { background: #0B0C10; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 60px; align-items: start; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 14px; }
.footer-links a { color: #FFFDF7; opacity: 0.85; } .footer-links a:hover { opacity: 1; color: var(--mango); }
.footer-note { grid-column: 1 / -1; font-size: 13px; opacity: 0.6; max-width: 70ch; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Night train window: a small carriage window that appears in night mode with lights passing by. */
.night-window { position: fixed; right: 18px; bottom: 18px; width: 150px; height: 96px; border-radius: 16px; background: #0D1220; border: 6px solid #262B36; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 12px 30px rgba(0,0,0,0.4); }
:root[data-theme="night"] .night-window { opacity: 1; transform: translateY(0); }
.night-lights { position: absolute; inset: 0; background-image: radial-gradient(3px 3px at 20px 40px, #FFC531 60%, transparent 62%), radial-gradient(2px 2px at 70px 52px, #FFE39A 60%, transparent 62%), radial-gradient(4px 2px at 120px 38px, #FFC531 60%, transparent 62%), radial-gradient(2px 2px at 160px 46px, #FFD98A 60%, transparent 62%), radial-gradient(3px 3px at 220px 42px, #FFC531 60%, transparent 62%), radial-gradient(2px 2px at 260px 55px, #FFE39A 60%, transparent 62%); background-size: 300px 96px; animation: pass-lights 6s linear infinite; }
@keyframes pass-lights { from { background-position: 0 0; } to { background-position: -300px 0; } }
@media (prefers-reduced-motion: reduce) { .night-lights { animation: none; } }
@media (max-width: 640px) { .night-window { width: 110px; height: 70px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--pill); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); z-index: 60; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Entrances: opacity + small translate, ease-out, staggered. Gated for reduced motion. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition-duration: 200ms; } }


/* home.css */
/* Homepage: boarding pass, flight log, stats, globe, calculator, shop, about */

/* Boarding pass hero */
.hero { padding: clamp(28px, 4vw, 48px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-note { margin-top: 18px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; background: var(--card); border: 2px solid var(--line-strong); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; transform: rotate(-1.2deg); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
:root[data-theme="night"] .pass { box-shadow: 10px 10px 0 #F1E4C8; }
.pass.issued { transform: rotate(0.6deg); box-shadow: 10px 10px 0 var(--chilli); }
.pass-main { padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pass-stub { border-left: 2px dashed var(--line-strong); background: var(--paper-2); padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -15px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); }
.pass-stub::before { top: -15px; } .pass-stub::after { bottom: -15px; }
.stub-name { font-size: 22px; }
.stub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stub-grid strong { font-size: 17px; }
.stub-alt ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stub-alt li { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.stub-alt li a { color: var(--ink); font-weight: 700; }
.route { display: flex; align-items: center; gap: 16px; }
.route .city { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.route .city.to { align-items: flex-end; text-align: right; }
.route .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1; transition: color var(--dur) var(--ease-out); }
.route .to .code { color: var(--line); }
.pass.issued .route .to .code { color: var(--chilli); }
.plane-line { flex: 1; height: 0; border-top: 2px dashed var(--line-strong); position: relative; }
.plane-line svg { position: absolute; left: 50%; top: -11px; margin-left: -11px; background: var(--card); color: var(--ink); transition: left var(--dur-slow) var(--ease-in-out), color var(--dur) var(--ease-out); }
.pass.issued .plane-line svg { left: 75%; color: var(--chilli); }
.pass-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pass-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pass-result strong { font-size: 18px; }
.pass-result .match { color: var(--chilli-deep); }
.pass-actions { justify-content: space-between; }
.barcode { height: 48px; flex: 1; min-width: 120px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px); border-radius: 4px; opacity: 0.9; }
.small { font-size: 14px; }
.pass-issuing .pass-main > :not(.pass-actions) { animation: none; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; } .pass { transform: rotate(0); } }
@media (max-width: 720px) { .pass { grid-template-columns: 1fr; } .pass-stub { border-left: 0; border-top: 2px dashed var(--line-strong); } .pass-stub::before, .pass-stub::after { display: none; } .pass-fields, .pass-result { grid-template-columns: 1fr; } .barcode { display: none; } .pass-actions .btn { width: 100%; } }

/* Flight log */
.flight-log { position: relative; padding-top: clamp(40px, 6vw, 80px); }
.fl-grid { position: sticky; top: 84px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.fl-side { display: flex; flex-direction: column; gap: 20px; }
.flap { display: inline-flex; gap: 5px; }
.flap span { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 74px; border-radius: 8px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 52px; letter-spacing: -0.03em; overflow: hidden; }
:root[data-theme="night"] .flap span { background: #2A2B34; }
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--paper); opacity: 0.35; }
.flap span.flip { animation: flap 220ms var(--ease-out); }
@keyframes flap { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .flap span.flip { animation: none; } }
.fl-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.fl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.fl-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.fl-landing { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--hard-sm); }
.fl-landing .display { font-size: 22px; }
.fl-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-top: 6px; }
.fl-mapwrap { min-width: 0; }
.fl-map { position: relative; padding: clamp(12px, 2vw, 28px); }
.fl-stamp { position: absolute; left: 24px; bottom: 20px; }
.flightlog { width: 100%; height: auto; }
.flightlog .land { fill: var(--map-dot); }
.flightlog .leg { fill: none; stroke: var(--chilli); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); opacity: 0.9; }
.flightlog .leg.done { stroke-dashoffset: 0; }
.flightlog .pin .halo { fill: var(--chilli); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.flightlog .pin .dot { fill: var(--map-dot); stroke: var(--paper); stroke-width: 1.5; transition: fill var(--dur) var(--ease-out); }
.flightlog .pin.home .dot { fill: var(--mango); }
.flightlog .pin.landed .dot { fill: var(--chilli); }
.flightlog .pin.landed .halo { opacity: 0.28; }
.flightlog .pin.home .halo { fill: var(--mango); opacity: 0.28; }
.flightlog .plane-halo { fill: var(--chilli); opacity: 0.18; }
.flightlog .plane-body { fill: var(--ink); }
.fl-track { height: 220vh; }
.trip-list { list-style: none; margin: -40vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; position: relative; }
.trip-card { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 14px; box-shadow: var(--hard-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.trip-card a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; color: var(--ink); }
.trip-card h3 { font-size: 19px; }
.trip-year { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--chilli-deep); letter-spacing: 0.02em; }
.trip-card.cancelled { border-style: dashed; box-shadow: none; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; opacity: 0.8; }
.trip-card.cancelled .trip-year { color: var(--ink-3); }
.trip-card.current { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--chilli); }
@media (hover: hover) and (pointer: fine) { .trip-card:hover { transform: translateY(-3px); } }
@media (max-width: 900px) { .fl-grid { position: static; grid-template-columns: 1fr; } .fl-track { height: 0; } .trip-list { margin-top: 24px; } .flight-log { padding-bottom: 40px; } }

/* Stats */
.stats-section { padding-top: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border-radius: var(--radius); }
.stat-num { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.stat-label { font-weight: 600; }
.stat-sub { font-size: 14px; opacity: 0.75; }
.stat-0 { background: var(--ink); color: var(--paper); } .stat-1 { background: var(--mango); color: #17161A; } .stat-2 { background: var(--sea); color: #FFFDF7; } .stat-3 { background: var(--chilli); color: #FFFDF7; }
:root[data-theme="night"] .stat-0 { background: #2A2B34; }

/* Globe */
.globe-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(28px, 5vw, 70px); align-items: center; }
.globe-stage { position: relative; aspect-ratio: 1; max-width: 640px; margin-inline: auto; width: 100%; }
.globe { width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: 50%; filter: drop-shadow(12px 12px 0 var(--ink)); }
.globe.dragging { cursor: grabbing; }
.globe-hint { position: absolute; left: -8px; bottom: 8px; transform: rotate(-10deg); transition: opacity var(--dur-slow) var(--ease-out); }
.globe-hint.hide { opacity: 0; }
.globe-card { position: absolute; right: 0; top: 24px; width: 220px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--hard-sm); }
.globe-card a { font-weight: 700; font-size: 13px; }
.votes { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.vote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vote-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.vote-list li:last-child { border-bottom: 0; }
.vote-list .num { font-size: 22px; width: 36px; }
.vote-list li > div { flex: 1; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.vote-list i { display: block; height: 10px; border-radius: 999px; background: var(--sea); }
.vote-form { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .globe-grid { grid-template-columns: 1fr; } }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.calc { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; color: var(--ink); border: 0; box-shadow: 8px 8px 0 var(--chilli); }
:root[data-theme="night"] .calc { color: var(--ink); }
.calc .pill { background: var(--paper); }
.calc .pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.calc-result { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1.5px solid var(--line); padding-top: 18px; }
.calc-total { font-size: clamp(32px, 4vw, 44px); line-height: 1; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* Shop bento */
.shop-bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; min-height: 520px; }
.shop-feature { grid-row: span 2; border-radius: 20px; display: flex; align-items: flex-end; padding: clamp(20px, 3vw, 32px); color: #FFFDF7; position: relative; overflow: hidden; }
.shop-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 22, 26, 0.85), rgba(23, 22, 26, 0) 55%); z-index: 1; }
.shop-feature-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; max-width: 480px; align-items: flex-start; }
.shop-feature h3 { font-size: clamp(28px, 3.5vw, 40px); color: #FFFDF7; }
.shop-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--paper-2); border: 1.5px solid var(--line-strong); color: var(--ink); transition: transform var(--dur) var(--ease-out); }
.shop-card-sea { background: var(--sea); color: #FFFDF7; border-color: transparent; }
.shop-card-sea h3 { color: #FFFDF7; }
.shop-card-sea .btn-dark { background: #FFFDF7; color: #17161A; }
@media (hover: hover) and (pointer: fine) { .shop-card:hover { transform: translateY(-3px); } }
@media (max-width: 800px) { .shop-bento { grid-template-columns: 1fr; grid-template-rows: auto; } .shop-feature { grid-row: auto; min-height: 360px; } }

/* About band */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-photo { position: relative; padding: 20px 30px; }
.about-ph { aspect-ratio: 4 / 5; transform: rotate(4deg); }
.about-photo .tape { left: 50%; top: 10px; }
.about-sticker { position: absolute; right: -6px; bottom: -6px; transform: rotate(-10deg); }
.newsletter { gap: 10px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }


/* chapter.css */
/* Countries index and chapter pages */
.mapcard { padding: clamp(12px, 2vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.worldmap { width: 100%; height: auto; }
.worldmap .land { fill: var(--map-dot); }
.worldmap .pin .halo { fill: var(--chilli); opacity: 0.28; }
.worldmap .pin .dot { fill: var(--chilli); stroke: var(--paper); stroke-width: 1.5; }
.worldmap .pin.home .halo, .worldmap .pin.home .dot { fill: var(--mango); }
.worldmap .pin { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .worldmap .pin:hover .halo { opacity: 0.5; } }
.chapter-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.chapter-card { position: relative; border: 1.5px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: var(--card); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.chapter-card a { color: var(--ink); display: block; }
.chapter-ph { height: 140px; border-radius: 0; box-shadow: none; }
.chapter-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.chapter-card.draft { opacity: 0.75; border-style: dashed; }
.chapter-stamp { position: absolute; right: 12px; top: 12px; font-size: 11px; background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .chapter-card:hover { transform: translateY(-3px); box-shadow: var(--hard-sm); } }

/* Chapter hero */
.chapter-hero { padding: 28px 0 0; }
.crumbs { display: flex; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.chapter-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.chapter-title { position: relative; display: inline-block; }
.chapter-h1 { font-size: clamp(56px, 10vw, 148px); line-height: 0.9; }
.chapter-title-stamp { position: absolute; right: -20px; top: 8px; transform: rotate(8deg); }
.facts { display: flex; padding: 6px 0; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-right: 1.5px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .v { font-size: 26px; line-height: 1; }
.fact .k { font-size: 12px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.sample-note { margin-top: 4px; }
.photo-strip { position: relative; height: clamp(220px, 32vw, 420px); margin: 40px 0 0; overflow: hidden; }
.photo-strip .photo { position: absolute; }
.strip-1 { left: 6%; top: 10%; width: 30%; height: 72%; transform: rotate(-3deg); }
.strip-2 { left: 38%; top: 0; width: 22%; height: 92%; transform: rotate(2deg); z-index: 2; }
.strip-3 { left: 62%; top: 12%; width: 32%; height: 72%; transform: rotate(-2deg); }
.strip-sticker { position: absolute; left: 32%; top: 66%; transform: rotate(-12deg); z-index: 3; }
.strip-sticker.stamped { animation: stamp-in 420ms var(--ease-out); }
@keyframes stamp-in { 0% { transform: rotate(-12deg) scale(1.3); opacity: 0; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }
@media (max-width: 800px) { .chapter-hero-grid { grid-template-columns: 1fr; } .chapter-title-stamp { position: static; display: inline-flex; margin-top: 8px; } .facts { flex-wrap: wrap; } .fact { flex: 1 1 40%; } }
.draft-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.chapter-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--ink); }
@media (max-width: 800px) { .draft-grid { grid-template-columns: 1fr; } }

/* Route */
.route { list-style: none; margin: 0; padding: 10px 0 0; display: flex; justify-content: space-between; position: relative; gap: 12px; }
.route::before { content: ""; position: absolute; left: 8%; right: 8%; top: 20px; border-top: 3px dashed var(--line-strong); }
.stop { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; text-align: center; position: relative; }
.stop .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--chilli); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--line-strong); }
.stop h3 { font-size: 20px; }
@media (max-width: 800px) { .route { flex-direction: column; gap: 22px; padding-left: 30px; } .route::before { left: 9px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 3px dashed var(--line-strong); } .stop { align-items: flex-start; text-align: left; } .stop .dot { position: absolute; left: -30px; top: 0; } }

/* Odometer + days + two voices */
.odo-section { padding-top: 24px; }
.odo { position: sticky; top: 80px; z-index: 5; background: var(--ink); color: var(--paper); border-radius: 22px; padding: 16px 26px; display: grid; grid-template-columns: 180px 1fr 220px; align-items: center; gap: 24px; box-shadow: 0 16px 40px rgba(23, 22, 26, 0.25); }
:root[data-theme="night"] .odo { background: #2A2B34; }
.odo .label { color: inherit; opacity: 0.7; }
.odo-big { font-size: 32px; line-height: 1; }
.odo-of { font-size: 16px; opacity: 0.6; }
.odo-mid { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.odo-left { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.digits { display: inline-flex; gap: 4px; }
.digits span { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 40px; padding: 0 3px; border-radius: 6px; background: rgba(255, 253, 247, 0.12); font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--mango); overflow: hidden; }
.digits span.tick { animation: tick 180ms var(--ease-out); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0.3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .digits span.tick { animation: none; } }
.gauge { display: flex; gap: 4px; align-items: flex-end; height: 40px; }
.gauge i { display: block; width: 12px; border-radius: 3px; background: var(--chilli); transition: background-color var(--dur) var(--ease-out); }
.gauge i.off { background: rgba(255, 253, 247, 0.18); }
.voices-toggle { margin-top: 10px; }
.days { display: flex; flex-direction: column; margin-top: 30px; }
.day { display: grid; grid-template-columns: 110px minmax(0, 1fr) 260px; gap: 30px; padding: 34px 0; border-bottom: 1.5px solid var(--line); align-items: start; }
.day-n { font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--ink); }
.day-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.voice { padding: 18px 20px 20px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--card); display: flex; flex-direction: column; gap: 10px; transition: opacity var(--dur) var(--ease-out); }
.voice-k { box-shadow: 6px 6px 0 var(--mango); } .voice-n { box-shadow: 6px 6px 0 var(--sea); }
.voice .hand { font-size: 22px; }
.who { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; border: 2px solid var(--line-strong); }
.av-k { background: var(--mango); color: #17161A; } .av-n { background: var(--sea); color: #FFFDF7; }
.day-photo { height: 200px; max-width: 420px; transform: rotate(-1.5deg); }
[data-voices-show="krina"] .voice-n, [data-voices-show="niraj"] .voice-k { display: none; }
[data-voices-show="krina"] .voices, [data-voices-show="niraj"] .voices { grid-template-columns: 1fr; }
.receipt { background: var(--card); border: 1.5px solid var(--line-strong); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; transform: rotate(1.5deg); box-shadow: var(--hard-sm); }
.receipt-title { font-weight: 700; }
.receipt div { display: flex; justify-content: space-between; gap: 10px; }
.receipt .t { border-top: 1.5px dashed var(--line-strong); padding-top: 8px; font-weight: 700; }
.odo-end { margin-top: 40px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.vote-voices { margin-top: 20px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .odo { grid-template-columns: 1fr; gap: 12px; padding: 14px 18px; } .odo-left { text-align: left; } .day { grid-template-columns: 1fr; gap: 16px; } .receipt { transform: none; max-width: 360px; } }
@media (max-width: 700px) { .voices { grid-template-columns: 1fr; } .odo { top: 72px; } }

/* Two budgets */
.budget-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.toggle { display: inline-flex; border: 2px solid var(--line-strong); border-radius: var(--pill); background: var(--card); padding: 5px; gap: 5px; }
.toggle button { height: 46px; padding: 0 20px; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.toggle button b { font-weight: 500; opacity: 0.7; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.budget-rows { display: flex; flex-direction: column; gap: 14px; }
.brow { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--card); }
.brow .cat { font-size: 13px; font-weight: 700; color: var(--ink-2); padding-top: 4px; }
.bcell { display: flex; flex-direction: column; gap: 4px; }
.bcell strong { font-size: 18px; line-height: 1.15; }
.bcell .amt { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; }
.bcell .amt.up { color: var(--chilli-deep); }
.bcell.enter { animation: cell-in var(--dur-slow) var(--ease-out); }
@keyframes cell-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bcell.enter { animation: none; } }
.budget-total { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; border-radius: 22px; padding: 30px 36px; }
@media (max-width: 700px) { .brow { grid-template-columns: 1fr; } .budget-total { grid-template-columns: 1fr; } }

/* Slept, eat */
.hostel { display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; border-color: var(--line-strong); }
.hostel-ph { height: 100%; min-height: 200px; border-radius: 0; box-shadow: none; }
.hostel-body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.hostel-body .hand { font-size: 20px; }
.hostel-body .btn { align-self: flex-start; }
@media (max-width: 640px) { .hostel { grid-template-columns: 1fr; } .hostel-ph { min-height: 160px; } }
.eat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.notes { position: relative; display: flex; flex-direction: column; gap: 20px; }
.note ul { margin: 10px 0 0; padding-left: 20px; }
.note li { margin-bottom: 8px; line-height: 1.4; }
.note-eat { transform: rotate(-2deg); align-self: flex-start; width: min(100%, 360px); }
.note-skip { background: #FFFDF7; transform: rotate(2deg); align-self: flex-end; width: min(100%, 360px); margin-top: -10px; }
@media (max-width: 800px) { .eat-grid { grid-template-columns: 1fr; } }

/* Swipe */
.swipe-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--chilli); border-radius: 6px; transition: width var(--dur) var(--ease-out); }
.deck-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.deck { position: relative; width: min(100%, 400px); aspect-ratio: 3 / 4; }
.swcard { position: absolute; inset: 0; background: var(--card); border: 2px solid var(--line-strong); border-radius: 24px; overflow: hidden; box-shadow: var(--hard); display: flex; flex-direction: column; touch-action: none; user-select: none; will-change: transform; }
.swcard .swph { height: 50%; border-radius: 0; box-shadow: none; }
.swcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.swcard .title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; }
.swcard .text { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.swcard .tags { margin-top: auto; }
.swcard .tags .pill { height: 28px; font-size: 12px; }
.swcard.behind { transform: scale(0.95) translateY(12px); opacity: 0.7; }
.swcard.behind2 { transform: scale(0.9) translateY(24px); opacity: 0.4; }
.swcard.fly { transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out); }
.swcard.settle { transition: transform 260ms var(--ease-out); }
.badge { position: absolute; top: 18px; padding: 6px 12px; border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; border: 3px solid; background: rgba(255, 253, 247, 0.9); opacity: 0; transition: opacity var(--dur-fast) linear; }
.badge-keep { left: 18px; color: var(--sea-deep); border-color: var(--sea-deep); transform: rotate(-12deg); }
.badge-skip { right: 18px; color: var(--chilli-deep); border-color: var(--chilli-deep); transform: rotate(12deg); }
.deck-actions { display: flex; gap: 20px; }
.act { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--hard-sm); color: var(--ink); transition: transform var(--dur-fast) var(--ease-out); }
.act:active { transform: scale(0.94); }
.act-keep { background: var(--sea); color: #FFFDF7; }
.deck-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; border: 2px dashed var(--line-strong); border-radius: 24px; }
.plan { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 6px 6px 0 var(--sea); position: sticky; top: 90px; }
.plan-list { display: flex; flex-direction: column; margin-top: 8px; }
.plan-day { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--chilli-deep); padding: 12px 0 6px; }
.plan-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px solid var(--line); font-size: 14px; }
.plan-item .swatch { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.plan-item .p { margin-left: auto; font-weight: 700; white-space: nowrap; }
.plan-item button { color: var(--ink-3); }
.plan-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid var(--line-strong); padding-top: 14px; margin-top: 10px; gap: 10px; }
@media (max-width: 1080px) { .swipe-grid { grid-template-columns: 1fr 1fr; } .swipe-grid > .stack { grid-column: 1 / -1; } .plan { position: static; } }
@media (max-width: 700px) { .swipe-grid { grid-template-columns: 1fr; } }

/* Misadventure */
.forks-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.scene { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 20px; }
.scene-ph { height: 200px; transform: rotate(-1deg); width: 92%; align-self: center; }
.scene-text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--paper); text-align: left; font-weight: 600; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.choice .k { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; flex-shrink: 0; }
.choice:active { transform: scale(0.99); }
.choice.picked { background: var(--paper-2); box-shadow: var(--hard-sm); }
.choice.ours { border-color: var(--chilli); }
.choice[disabled] { cursor: default; }
@media (hover: hover) and (pointer: fine) { .choice:not([disabled]):hover { transform: translateY(-2px); box-shadow: var(--hard-sm); } }
.reveal-fork { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; animation: cell-in var(--dur-slow) var(--ease-out); }
:root[data-theme="night"] .reveal-fork { background: #2A2B34; }
.reveal-fork .label { color: var(--mango); }
.pct { display: flex; flex-direction: column; gap: 8px; }
.pct div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pct i { display: block; height: 10px; border-radius: 999px; background: var(--sea); transition: width var(--dur-slow) var(--ease-out); }
.pct i.mine { background: var(--mango); }
.fork-side { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fork-log { margin: 6px 0 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.verdict { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .forks-grid { grid-template-columns: 1fr; } }

/* Itinerary CTA, prev/next */
.itin-cta { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; background: var(--paper-2); padding: clamp(24px, 4vw, 56px); box-shadow: 8px 8px 0 var(--ink); }
.itin-cover { aspect-ratio: 3 / 4; transform: rotate(4deg); justify-self: center; width: 100%; max-width: 260px; display: flex; align-items: flex-end; padding: 20px; }
.itin-cover-text { color: #FFFDF7; font-size: 26px; line-height: 1; position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.prevnext { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0 60px; flex-wrap: wrap; }
.next-link { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(20px, 2.5vw, 28px); color: var(--ink); }
.next-link svg { color: var(--chilli); }
@media (max-width: 700px) { .itin-cta { grid-template-columns: 1fr; } }


/* tools.css */
/* Play, passport, leave hack, museum, itineraries, share, 404 */

/* Play index */
.play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.play-card { overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: transform var(--dur) var(--ease-out); }
.play-ph { height: 180px; border-radius: 0; box-shadow: none; display: flex; align-items: flex-start; padding: 16px; }
.play-ph .sticker { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .play-card:hover { transform: translateY(-4px); } }
@media (max-width: 900px) { .play-grid { grid-template-columns: 1fr; } }

/* Guess the price */
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.game-card { overflow: hidden; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
.game-card.swap { opacity: 0; transform: translateY(12px); }
.game-ph { height: 260px; border-radius: 0; box-shadow: none; }
.reveal-box { border-top: 1.5px dashed var(--line-strong); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; animation: cell-in var(--dur-slow) var(--ease-out); }
.reveal-box .hand { font-size: 22px; }
.game-log { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--hard-sm); }
.game-log ol { margin: 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.game-log .hit { color: var(--sea-deep); font-weight: 600; } .game-log .miss { color: var(--ink-2); }
.final { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
@media (max-width: 800px) { .game-grid { grid-template-columns: 1fr; } }

/* Thousand challenge */
.thousand-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.thousand-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); text-align: left; width: 100%; transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.item:active { transform: scale(0.98); }
.item[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.item .kind { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; display: block; }
.item .p { font-weight: 700; white-space: nowrap; }
.item[disabled] { opacity: 0.45; cursor: not-allowed; }
.wallet { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.wallet-bar { height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; }
.wallet-bar i { display: block; height: 100%; background: var(--chilli); border-radius: 12px; transition: width var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.wallet-bar i.low { background: var(--mango); }
.wallet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.wallet-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.wallet-needs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.wallet-needs span { padding: 4px 10px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); }
.wallet-needs span.ok { background: var(--sea); color: #FFFDF7; border-color: var(--sea); }
@media (max-width: 800px) { .thousand-grid { grid-template-columns: 1fr; } .wallet { position: static; } .items { grid-template-columns: 1fr; } }

/* Passport */
.passport-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.rewards { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.reward-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.reward-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.reward-list li:last-child { border-bottom: 0; }
.reward-list li > div { flex: 1; display: flex; flex-direction: column; }
.reward-n { font-size: 24px; width: 40px; }
.reward-state { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); }
.reward-list li.unlocked .reward-state { background: var(--mango); border-color: var(--mango); color: #17161A; }
.passport-book { overflow: hidden; }
.passport-cover { background: var(--ink); color: var(--paper); padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
:root[data-theme="night"] .passport-cover { background: #2A2B34; }
.stamp-grid { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; background: var(--paper-2); }
.stamp-slot a { display: block; aspect-ratio: 1; }
.stamp-ring { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; border: 2.5px dashed var(--line); color: var(--ink-3); text-align: center; padding: 8px; font-family: var(--font-display); font-weight: 800; font-size: 12px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.stamp-slot.stamped .stamp-ring { border-style: solid; border-color: var(--chilli); color: var(--chilli); transform: rotate(-8deg); background: rgba(242, 69, 44, 0.06); }
.stamp-slot.just .stamp-ring { animation: stamp-in 420ms var(--ease-out); }
@media (max-width: 800px) { .passport-grid { grid-template-columns: 1fr; } }

/* Leave hack */
.leave-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: start; }
.leave-form { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.leave-form .seg { flex-wrap: wrap; }
.year-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.month { display: flex; flex-direction: column; gap: 6px; }
.month .n { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cells i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line); }
.cells i.we { background: var(--line); border-color: transparent; }
.cells i.ph { background: var(--mango); border-color: transparent; }
.cells i.lv { background: var(--chilli); border-color: transparent; }
.cells i.tr { background: var(--sea); border-color: transparent; }
.cells i.pad { visibility: hidden; }
.plan-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); }
.plan-row .n { font-size: 34px; line-height: 1; }
.plan-row .n small { font-size: 12px; font-weight: 600; letter-spacing: 0; display: block; color: var(--ink-2); margin-top: 4px; font-family: var(--font-body); }
.leave-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 14px; padding: 16px 20px; flex-wrap: wrap; font-weight: 600; }
@media (max-width: 960px) { .leave-grid { grid-template-columns: 1fr; } .months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan-row { grid-template-columns: 1fr; } }

/* Museum */
.wall { background: #3B2F2A; background-image: radial-gradient(ellipse at 20% 0%, rgba(255, 220, 160, 0.28), transparent 45%), radial-gradient(ellipse at 55% 0%, rgba(255, 220, 160, 0.26), transparent 42%), radial-gradient(ellipse at 88% 0%, rgba(255, 220, 160, 0.26), transparent 42%); padding: 60px 0 70px; border-bottom: 8px solid #2A1F1B; color: #FFFDF7; }
.room-sign { display: inline-flex; padding: 8px 14px; background: #E8C989; color: #2B1E10; border: 2px solid #8A6A32; border-radius: 6px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; align-self: flex-start; }
.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: end; }
.frame { margin: 0; background: #17161A; padding: 14px; border: 6px solid #D9B26A; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #7A5B2C; display: flex; flex-direction: column; }
.frame-ph { height: 200px; border-radius: 0; box-shadow: none; }
.plaque { margin-top: 16px; background: linear-gradient(180deg, #E8C989, #C9A45C); color: #2B1E10; border: 2px solid #8A6A32; border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 3px 0 #7A5B2C; }
.plaque .t { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.plaque .m { font-size: 13px; line-height: 1.5; }
.plaque .price { color: inherit; }
.floor { background: #2A1F1B; padding: 34px 0 60px; color: #FFFDF7; }

/* Itineraries */
.itin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.itin { overflow: hidden; border-color: var(--line-strong); }
.itin-ph { height: 220px; border-radius: 0; box-shadow: none; display: flex; align-items: flex-end; padding: 20px; }
@media (max-width: 800px) { .itin-grid { grid-template-columns: 1fr; } }

/* Share / luggage tag */
.tag-canvas { width: min(100%, 360px); height: auto; border-radius: 16px; border: 1.5px solid var(--line-strong); box-shadow: var(--hard); }
.share-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(23, 22, 26, 0.6); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.share-modal.open { opacity: 1; }
.share-box { background: var(--card); border-radius: 22px; border: 2px solid var(--line-strong); padding: 22px; display: flex; flex-direction: column; gap: 14px; max-width: 420px; width: 100%; max-height: 90vh; overflow: auto; transform: scale(0.96); transition: transform var(--dur) var(--ease-out); }
.share-modal.open .share-box { transform: none; }
.share-box canvas { width: 100%; height: auto; border-radius: 12px; border: 1.5px solid var(--line); }

/* Trip table on about */
.trip-table { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trip-table li { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1.5px solid var(--line); align-items: baseline; }
.trip-table li.cancelled { opacity: 0.6; }
.trip-table .num { font-size: 18px; }
@media (max-width: 600px) { .trip-table li { grid-template-columns: 1fr; gap: 2px; } }

/* 404 immigration desk */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.booth { width: 220px; height: 150px; border: 2px solid var(--line-strong); border-radius: 14px 14px 0 0; background: var(--card); position: relative; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; }
.officer { width: 90px; height: 90px; border-radius: 50% 50% 0 0; background: var(--ink); position: relative; }
.officer::before { content: ""; position: absolute; left: 22px; top: 34px; width: 46px; height: 6px; background: var(--paper); border-radius: 3px; }
.officer::after { content: ""; position: absolute; left: 30px; top: 50px; width: 30px; height: 4px; background: var(--chilli); border-radius: 3px; }
.officer .blink { position: absolute; left: 22px; top: 34px; width: 46px; height: 6px; background: var(--ink); border-radius: 3px; transform: scaleY(0); transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .officer .blink { animation: none; } }
.booth-stamp { position: absolute; right: -30px; top: 20px; font-size: 12px; transform: rotate(12deg); }

/* Print: itinerary PDF */
@media print {
  .site-header, .site-footer, .night-window, .toast, .deck-wrap, .swipe-grid > .stack, .odo, .voices-toggle, .vote-voices, .deck-actions, .plan-foot button, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
