/* Melt All The Ice Wiki — game-matched visual system (visual_direction.md 2026-09-27-melt-v1)
   Light ice identity: pale ice-blue surfaces, white raised cards, glacial cyan accents,
   amber answer highlights (text-safe), pink→orange tool progression identity,
   one deep-ice dark section reserved for the frozen-rooms mystery. */
:root {
  --surface: #f2f9fd;        /* pale ice page background */
  --surface-raised: #ffffff; /* raised cards */
  --ink: #0d2b3e;            /* deep glacial text (13.2:1 on white) */
  --muted: #43607a;          /* secondary text (5.9:1 on white) */
  --accent: #0891b2;         /* glacial cyan — decorative fills, borders */
  --link: #0e7490;           /* link text (4.8:1 on white) */
  --accent-warm: #b45309;    /* warm amber highlights (4.9:1 on white) */
  --warm-glow: #fbbf24;      /* bright amber — decorative only on dark surfaces */
  --tool-start: #be185d;     /* pink tool identity, text-safe (6.1:1 w/ white) */
  --tool-upgrade: #c2410c;   /* orange tool identity, text-safe (5.4:1 w/ white) */
  --deep-ice: #0e3a52;       /* deep-ice dark section background (11.5:1 w/ white) */
  --ice-line: #bae6fd;       /* 2px card borders */
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--link); }
a:hover { color: var(--ink); }
main { max-width: 980px; margin: 0 auto; padding: 0 16px 56px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
h1 { font-size: 2.1rem; margin: 0.4em 0 0.5em; }
h2 { font-size: 1.4rem; margin: 1.7em 0 0.55em; border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 2px; }
h3 { font-size: 1.12rem; margin: 1.35em 0 0.45em; }
.eyebrow {
  display: inline-block;
  background: var(--deep-ice);
  color: #fff;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

/* header */
.site-header {
  background: var(--surface-raised);
  border-bottom: 2px solid var(--ice-line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; color: var(--ink); }
.brand img { border-radius: 8px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.pills a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--link);
  padding: 5px 11px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.pills a:hover { background: var(--surface); border-color: var(--ice-line); color: var(--ink); }

/* hero */
.hero {
  background:
    linear-gradient(180deg, rgba(13, 43, 62, 0.80) 0%, rgba(13, 43, 62, 0.72) 78%, rgba(242, 249, 253, 0.96) 100%),
    url("/assets/hero-icon.webp") right center / cover no-repeat;
  border-radius: var(--radius);
  border: 2px solid var(--ice-line);
  margin: 18px 0 8px;
  padding: 34px 28px 26px;
  color: #fff;
}
.hero h1 { color: #fff; margin: 0 0 8px; text-shadow: 0 1px 6px rgba(13, 43, 62, 0.65); }
.hero p {
  margin: 0;
  max-width: 560px;
  color: #fff;
  font-size: 1.02rem;
  background: rgba(13, 43, 62, 0.85);
  border: 1px solid rgba(186, 230, 253, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  text-shadow: none;
}
.hero .hero-chip {
  display: inline-block;
  background: var(--warm-glow);
  color: var(--deep-ice);
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* answer blocks */
.block {
  background: var(--surface-raised);
  border: 2px solid var(--ice-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0;
}
.block > h2 { margin-top: 0.2em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* step list (loop) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 10px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 46px;
  border-bottom: 1px dashed var(--ice-line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* chips + badges */
.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--ice-line);
  background: var(--surface);
  color: var(--ink);
  margin: 2px 4px 2px 0;
}
.chip-start { background: #fdf2f8; border-color: #fbcfe8; color: var(--tool-start); }
.chip-upgrade { background: #fff7ed; border-color: #fed7aa; color: var(--tool-upgrade); }
.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfeff;
  border: 2px solid #a5f3fc;
  color: var(--accent-warm);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.stat {
  background: var(--surface);
  border: 2px solid var(--ice-line);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-width: 130px;
}
.stat b { display: block; font-size: 1.15rem; color: var(--ink); }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; background: var(--surface-raised); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--ice-line); vertical-align: top; }
th { background: var(--surface); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
tr:nth-child(even) td { background: #fbfdff; }

/* callouts */
.note {
  border-left: 4px solid var(--accent);
  background: var(--surface-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  margin: 12px 0;
}
.warn {
  border-left: 4px solid var(--tool-upgrade);
  background: #fff7ed;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  margin: 12px 0;
}

/* deep-ice mystery section */
.deep-ice {
  background: var(--deep-ice);
  color: #e0f2fe;
  border-radius: var(--radius);
  border: 2px solid #155e75;
  padding: 22px 22px 16px;
  margin: 18px 0;
}
.deep-ice h2 { color: #fff; border-bottom-color: var(--warm-glow); }
.deep-ice a { color: #a5f3fc; }
.deep-ice .mystery-list { color: #cffafe; }

/* CTA routes */
.route-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 18px;
  margin: 6px 8px 6px 0;
  border: 2px solid transparent;
}
.route-cta:hover { background: var(--ink); color: #fff; }
.route-cta.alt { background: var(--surface-raised); color: var(--link); border-color: var(--accent); }
.route-cta.alt:hover { background: var(--surface); color: var(--ink); }

/* footer */
.site-footer {
  background: var(--surface-raised);
  border-top: 2px solid var(--ice-line);
  margin-top: 40px;
  padding: 22px 0 30px;
  font-size: 0.93rem;
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; margin: 12px 0; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols nav { display: flex; flex-direction: column; gap: 4px; }
.fineprint { color: var(--muted); font-size: 0.84rem; }
.ad-strip { min-height: 0; margin: 6px 0 10px; }

/* unknown list */
.unknown-list { padding-left: 20px; }
.unknown-list li { margin: 4px 0; }
.src-note { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding: 24px 18px 20px; min-height: 0; }
  .pills { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 4px; }
  .pills a { white-space: nowrap; }
}
