:root {
  --bg: #14061f;
  --bg2: #1e0b2e;
  --card: #261238;
  --line: #3d2257;
  --text: #f4ecff;
  --muted: #b9a6cf;
  --pink: #ff3d9a;
  --orange: #ff9a3d;
  --teal: #2de2e6;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #4a1550 0%, transparent 60%), var(--bg);
  min-height: 100vh;
}
a { color: var(--teal); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
main.wrap { padding-bottom: 48px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 18px 0 10px; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; }
h2 small { color: var(--muted); font-weight: 400; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.small { font-size: .85rem; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(20, 6, 31, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--pink), var(--orange)); font-size: .9rem; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .93rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--card); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.2rem; border-radius: 8px; padding: 4px 10px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; background: var(--bg2); padding: 10px 18px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
}

/* hero */
.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero .lead { margin: 0 auto 14px; }
.neon { background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown { font-weight: 700; color: var(--teal); font-size: 1.1rem; min-height: 1.6em; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 10px; background: linear-gradient(135deg, var(--pink), var(--orange)); }
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.actions, .row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--pink); }
.card h2 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.card-foot { font-size: .85rem; color: var(--teal); font-weight: 600; }
.card .progress { margin: 10px 0 0; }

/* progress */
.progress { margin: 14px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 5px; }
.bar { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--orange)); transition: width .3s; }
.track-link { display: block; text-decoration: none; color: inherit; }

/* filters + items */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.filters input, .filters select, .calc input { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.filters input { flex: 1 1 220px; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.item.done { opacity: .55; }
.item.done .item-name { text-decoration: line-through; }
.item-name { color: var(--text); font-weight: 600; text-decoration: none; }
.item-name:hover { color: var(--pink); }
.item-meta { font-size: .85rem; color: var(--muted); }
.item-meta.big { font-size: 1rem; margin-bottom: 12px; }
.badge { font-size: .7rem; text-transform: uppercase; background: var(--orange); color: #000; padding: 1px 6px; border-radius: 5px; vertical-align: middle; }
.tag { display: inline-block; font-size: .8rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; margin: 0 6px 6px 0; }

/* checkbox */
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--line); background: var(--bg2); display: grid; place-items: center; }
.check input:checked + span { background: linear-gradient(135deg, var(--pink), var(--orange)); border-color: transparent; }
.check input:checked + span::after { content: "\2713"; color: #fff; font-weight: 800; font-size: 15px; }
.check input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.big-check { margin: 4px 0 14px; font-weight: 600; }

/* detail */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 18px; margin-top: 10px; }
.shot { width: 100%; border-radius: 10px; margin: 8px 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }

/* empty, ads, tools, gear */
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; color: var(--muted); }
.empty p { margin: 4px 0; }
.ad-slot { margin: 28px 0; min-height: 100px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; color: #6f5a86; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 20px; margin: 20px 0; }
.calc { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.calc label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.calc .cuts { display: contents; }
.calc .row, .calc output { grid-column: 1 / -1; }
.calc output { display: block; background: var(--bg2); border-radius: 10px; padding: 12px 16px; }
.calc output table { width: 100%; border-collapse: collapse; }
.calc output td { padding: 4px 0; }
.calc output td:last-child { text-align: right; font-weight: 700; color: var(--teal); }
.warn { color: var(--orange); }
.gear { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* guides */
.guide h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.guide li { margin: 6px 0; }
.summary { background: var(--bg2); border-left: 4px solid var(--pink); border-radius: 10px; padding: 4px 16px; margin: 12px 0 8px; }
.localtime { font-size: 1.15rem; color: var(--teal); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 8px 0; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-weight: 600; }
.sources { font-size: .9rem; }
@media (max-width: 560px) { table.data { font-size: .82rem; } table.data th, table.data td { padding: 6px 4px; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 30px; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); }
