:root {
  --bg: #05080b; --paper: #0A1016; --paper-2: #0e161e; --ink: #F2F6F9; --ink-2: #C6D2DB; --ink-3: #9FB0BD;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16); --sun: #4DA3FF; --sun-hover: #7ABBFF;
  --good: #5FD39A; --fair: #E7C35A; --poor: #E58A5A;
  --r: 18px; --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body.td { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 50% at 50% -10%, rgba(77, 163, 255, .10), transparent 60%); background-repeat: no-repeat; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.td-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.td-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.td-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.td-mark { display: block; width: 32px; height: 32px; border-radius: 9px; }
.td-home { font-size: 14px; font-weight: 600; color: var(--sun); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(77, 163, 255, .35); }
.td-home:hover { background: rgba(77, 163, 255, .1); }

.td-wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px max(32px, env(safe-area-inset-bottom)); }
.td-crumbs { font-size: 13px; color: var(--ink-3); }
.td-crumbs a { color: var(--ink-3); }
.td-crumbs a:hover { color: var(--ink); }
.td-head { margin: 18px 0 14px; }
.td-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.td-head h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.td-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.td-lead { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }

.td-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.td-tile { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.td-tile:first-child { grid-column: 1 / -1; border-color: rgba(77, 163, 255, .28); background: linear-gradient(180deg, rgba(77, 163, 255, .08), rgba(77, 163, 255, .02)); }
.td-tile b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.td-tile b svg { color: var(--sun); flex: none; }
.td-tile .td-big { font-size: 26px; font-variant-numeric: tabular-nums; }
.td-k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
.td-suit { margin-top: 4px; color: var(--ink-2); }

.td-sec { margin-top: 30px; }
.td-h { margin: 0 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.td-note { margin: 10px 4px 0; font-size: 13px; color: var(--ink-3); }
.td-sec > .td-note:first-of-type { margin-top: -4px; margin-bottom: 12px; }
.td-warn { margin: 12px 4px 0; font-size: 13px; color: var(--ink-2); }
.td-empty { padding: 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }

.td-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.td-day { padding: 14px 16px 12px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.td-day.is-today { border-color: rgba(77, 163, 255, .35); }
.td-dh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.td-dh h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.td-coef { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-coef small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.td-c-high, .td-c-very_high { background: rgba(77, 163, 255, .14); color: var(--ink); }
.td-c-very_high small { color: var(--sun-hover); }
.td-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.td-t thead th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 4px 0; }
.td-t thead th:last-child, .td-t td:last-child { text-align: right; }
.td-t tbody th, .td-t td { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.td-t tbody th { text-align: left; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.td-t td:nth-child(2) { font-weight: 700; }
.td-high th svg { color: var(--sun); } .td-low th svg { color: var(--ink-3); }
.td-low th { color: var(--ink-2); }
.td-dm { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }

.td-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.td-spot { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .18s, background-color .18s; }
.td-spot:hover { border-color: var(--line-strong); background: var(--paper-2); }
.td-tt { display: grid; gap: 1px; min-width: 0; }
.td-tt b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.td-tt small { font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.td-q { flex: none; margin-left: auto; min-width: 40px; text-align: center; padding: 4px 8px; border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .06); }
.td-q-good, .td-q-epic { color: var(--good); } .td-q-fair { color: var(--fair); } .td-q-poor, .td-q-flat { color: var(--poor); }
.td-go { flex: none; color: var(--sun); display: inline-flex; }
.td-spot:not(:has(.td-q)) .td-go { margin-left: auto; }

.td-learn p { margin: 0 4px 10px; color: var(--ink-2); font-size: 15px; }
.td-links { margin: 0 4px; line-height: 2; color: var(--ink-3); }
.td-links a { color: var(--ink-2); }
.td-towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-towns a { display: block; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
.td-towns a:hover { border-color: var(--line-strong); background: var(--paper-2); }
.td-src ul { margin: 0; padding: 14px 16px 14px 32px; border-radius: var(--r); border: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.td-src li + li { margin-top: 6px; }
.td-src li:first-child { color: var(--ink-2); font-weight: 600; }

.td-foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-3); font-size: 13px; }
.td-foot p { margin: 0 0 10px; }
.td-look { color: var(--ink-2); }
.td-meta a { color: var(--ink-3); }
.td-meta a:hover { color: var(--ink); }

@media (min-width: 720px) { .td-wrap { padding-top: 28px; } .td-head h1 { font-size: 42px; } .td-tiles { grid-template-columns: repeat(3, 1fr); } .td-tile:first-child { grid-column: auto; } .td-towns { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 340px) { .td-tiles, .td-towns { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .td-spot { transition: none; } }

.alert-cta { margin: 14px 0 0; padding: 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.td-cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; background: var(--sun); color: #05080b; font-weight: 700; font-size: 15px; line-height: 1.3; text-align: center; text-decoration: none; }
.td-cta-btn:hover { background: var(--sun-hover); }
.td-cta-btn svg { flex: none; }
.alert-cta-sub { margin: 10px 4px 0; font-size: 13px; color: var(--ink-2); }
.alert-cta-more { margin: 6px 4px 0; font-size: 13px; color: var(--ink-3); }
.alert-cta-more a { color: inherit; }
@media (min-width: 720px) { .td-cta-btn { display: inline-flex; } }
