:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f0ffff;
  --border: #d6f3f5;
  --border-strong: #aee6ea;
  --text: #0b2027;
  --text-muted: #5b7b80;
  --accent: #0e7490;
  --accent-hover: #0b5c73;
  --accent-contrast: #ffffff;
  --accent-soft: #ccffff;
  --accent-soft-text: #0e7490;
  --result-link: #075985;
  --shadow: 0 1px 2px rgba(11, 32, 39, .05), 0 10px 28px -12px rgba(11, 32, 39, .15);
  color: var(--text);
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; }
.home-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.home-header { height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: var(--accent-soft); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; color: var(--accent-contrast); background: var(--accent); }
.logo-mark svg { width: 18px; height: 18px; }
.guest-context { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.home-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 40px; }
.home-intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.home-intro p { max-width: 480px; margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.home-form-wrap { width: min(100%, 560px); display: flex; flex-direction: column; gap: 16px; }
label { display: none; }
.form-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 15px 18px; color: var(--text); background: var(--surface); font: inherit; font-size: 15px; }
input:focus, button:focus, a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
button { border: 0; border-radius: 10px; padding: 15px 26px; color: var(--accent-contrast); background: var(--accent); cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; transition: background .15s ease, box-shadow .15s ease; }
button:hover { background: var(--accent-hover); }
button:disabled { cursor: wait; opacity: .65; }
.secondary { color: var(--text); background: var(--surface); border: 1.5px solid var(--border-strong); font-size: 13px; font-weight: 600; padding: 9px 16px; }
.secondary:hover { background: var(--surface-alt); }
.message { margin: 20px 0 0; border-radius: 10px; padding: 12px 14px; }
.error { color: #a63232; background: #fff0f0; }
.result { padding: 22px 26px; border: 1.5px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.result-heading { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.result-check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: var(--accent-soft-text); background: var(--accent-soft); font-size: 13px; }
.result-link-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.result-link-row strong { flex: 1; overflow-wrap: anywhere; color: var(--result-link); font-size: 19px; }
.result-code { display: none; }
.result-expiry { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; }
.result-destination { overflow-wrap: anywhere; }
.home-disclaimer { margin: 0; color: var(--text-muted); font-size: 12px; text-align: center; }
.home-disclaimer a { color: inherit; }
.privacy-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.privacy-header { height: 72px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 0 40px; background: var(--accent-soft); }
.privacy-header .logo { color: var(--text); text-decoration: none; }
.privacy-header .logo:hover { color: var(--accent); }
.privacy-content { width: min(100% - 80px, 640px); margin: 0 auto; padding: 40px 0; }
.privacy-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; color: var(--accent); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.privacy-content h1 { margin-bottom: 4px; font-size: 28px; }
.privacy-updated { margin: 0 0 18px; color: var(--text-muted); font-size: 12.5px; }
.privacy-document section { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.privacy-document section:last-child { border-bottom: 0; }
.privacy-document h2 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.privacy-document p { margin: 0 0 4px; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }
.privacy-document a { color: var(--accent); }
@media (max-width: 600px) {
  .home-header { height: 56px; justify-content: flex-start; padding: 0 18px; }
  .logo { gap: 8px; font-size: 15px; }
  .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
  .logo-mark svg { width: 15px; height: 15px; }
  .guest-context { display: none; }
  .home-content { align-items: stretch; justify-content: flex-start; gap: 26px; padding: 32px 20px; }
  .home-intro { align-items: flex-start; gap: 8px; text-align: left; }
  h1 { font-size: 24px; }
  .home-intro p { font-size: 13.5px; }
  .home-form-wrap { width: 100%; gap: 12px; }
  .form-row { flex-direction: column; gap: 12px; }
  input { width: 100%; padding: 14px 16px; font-size: 14px; }
  .form-row button { width: 100%; padding: 14px; font-size: 14.5px; }
  .result { padding: 18px; border-radius: 18px; }
  .result-link-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .result-link-row strong { font-size: 17px; }
  .result-link-row .secondary { width: 100%; }
  .result-destination-separator, .result-destination { display: none; }
  .home-disclaimer { margin-top: auto; font-size: 11px; }
  .privacy-header { height: 56px; justify-content: flex-start; padding: 0 18px; }
  .privacy-header .guest-context { display: none; }
  .privacy-content { width: 100%; padding: 32px 20px; }
  .privacy-content h1 { font-size: 24px; }
}

.route-page { min-height: 100vh; width: 100%; }
.route-page[hidden] { display: none !important; }
.waiting-page { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #ccffff; }
.ad-slot { border: 1.5px dashed #aee6ea; border-radius: 14px; background: #f0ffff; flex-shrink: 0; overflow: hidden; }
.ad-slot[hidden] { display: none; }
.ad-slot--empty { display: none; }
.ad-slot a, .ad-slot img { display: block; width: 100%; height: 100%; }
.ad-slot a { color: inherit; }
.ad-slot img { object-fit: cover; }
.ad-top, .ad-bottom { height: 88px; }
.waiting-layout { flex: 1; min-height: 0; display: flex; gap: 12px; }
.ad-side { width: 160px; }
.waiting-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 48px; background: #fff; border: 1.5px solid #d6f3f5; border-radius: 20px; box-shadow: 0 10px 28px -12px #0b202726; text-align: center; }
.waiting-destination-label { margin: 0; color: #5b7b80; font-size: 13px; font-weight: 600; }
.waiting-destination { max-width: 480px; margin: 0; color: #0b2027; font-size: 21px; font-weight: 700; overflow-wrap: anywhere; }
.countdown { width: 88px; height: 88px; display: grid; place-items: center; border: 8px solid #0e7490; border-left-color: #d6f3f5; border-radius: 50%; font-size: 30px; font-weight: 800; }
.waiting-copy h1 { margin: 0; font-size: 17px; }
.waiting-copy p { margin: 4px 0 0; color: #5b7b80; font-size: 13px; }
.dark-countdown, .mobile-countdown { display: none; }
.waiting-card a { color: #0e7490; font-size: 13px; font-weight: 700; text-decoration: none; }
.expired-page { display: flex; flex-direction: column; background: #fff; color: #0b2027; }
.brand { height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 40px; background: #ccffff; font-size: 17px; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #0e7490; color: #fff; }
.expired-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px; text-align: center; }
.expired-icon { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: #ccffff; color: #0e7490; font-size: 40px; font-weight: 800; }
.expired-content h1 { margin: 0; font-size: 26px; }
.expired-content p { max-width: 420px; margin: 0; color: #5b7b80; font-size: 14px; line-height: 1.5; }
.primary-action { padding: 13px 24px; margin-top: 8px; border-radius: 10px; background: #0e7490; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081619;
    --surface: #0f2429;
    --surface-alt: #123039;
    --border: #1c3d45;
    --border-strong: #2a5761;
    --text: #eaf7f8;
    --text-muted: #8fb4b9;
    --accent: #22d3ee;
    --accent-hover: #67e8f9;
    --accent-contrast: #062024;
    --accent-soft: #123b42;
    --accent-soft-text: #67e8f9;
    --result-link: #67e8f9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px -16px rgba(0, 0, 0, .65);
    color: var(--text);
    background: var(--bg);
  }
  .home-page .result { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
  .waiting-page { background: #0e2a30; }
  .home-page .result { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
  .ad-slot { border-color: #2a5761; background: #123039; }
  .waiting-card { background: #0f2429; border-color: #1c3d45; box-shadow: 0 16px 40px -16px #000a; }
  .waiting-destination-label { color: #8fb4b9; }
  .waiting-destination { color: #eaf7f8; }
  .light-countdown { display: none; }
  .dark-countdown { display: block; }
  .countdown { border-color: #22d3ee; border-left-color: #1c3d45; }
  .waiting-copy p, .expired-content p { color: #8fb4b9; }
  .waiting-card a { color: #22d3ee; }
  .expired-page { background: #081619; color: #eaf7f8; }
  .brand { background: #0e2a30; }
  .brand-mark { background: #22d3ee; color: #062024; }
  .expired-icon { background: #123b42; color: #67e8f9; }
  .primary-action { background: #22d3ee; color: #062024; }
}
@media (prefers-color-scheme: dark) { .ad-top, .ad-bottom { height: 70px; } }
@media (max-width: 600px) {
  .waiting-page { padding: 14px; }
  .ad-side { display: none; }
  .ad-top, .ad-bottom { width: min(320px, 100%); height: 50px; align-self: center; }
  .waiting-card { padding: 32px 24px; }
  .waiting-card a { min-height: 44px; display: inline-flex; align-items: center; padding: 13px 22px; }
  .waiting-destination-label, .waiting-destination { display: none; }
  .light-countdown, .dark-countdown { display: none; }
  .mobile-countdown { display: block; margin: 0; color: inherit; font-size: 15px; font-weight: 800; line-height: 1.4; }
  .mobile-countdown span { display: block; margin-top: 4px; color: #5b7b80; font-size: 12.5px; font-weight: 400; }
  .brand { height: 56px; padding: 0 18px; font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }
  .expired-content { padding: 32px; }
  .expired-content h1 { font-size: 21px; }
  .primary-action { width: 100%; }
}
@media (prefers-color-scheme: dark) and (max-width: 600px) { .mobile-countdown span { color: #8fb4b9; } }
.expired-copy-dark { display: none; }
@media (prefers-color-scheme: dark) { .expired-copy-light { display: none; }.expired-copy-dark { display: block; } }
