/* Cold Shoulder landing page. Warm against cold: night blues and ice, with amber for the fire. */
:root {
  --night: #0b1228; --deep: #101c3c; --panel: #17264c; --line: #2f4a80;
  --ice: #cfeaff; --text: #eaf3ff; --muted: #b3c6e4; --amber: #ffb84d; --ember: #ff8a3c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #20140a; padding: 8px 12px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; z-index: 10; }

.hero {
  background: linear-gradient(rgba(8, 12, 32, 0.25), rgba(8, 12, 32, 0.72) 70%, var(--night)), url("assets/title_bg.png") center top / cover no-repeat, var(--deep);
  text-align: center; padding: 28px 16px 56px;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(560px, 92%); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); animation: bob 6s ease-in-out infinite; }
.tagline { font-size: 1.3rem; font-weight: 700; color: var(--ice); margin: 4px 0 12px; text-shadow: 0 2px 8px #000; }
.lede { font-size: 1.08rem; margin: 0 auto 20px; max-width: 640px; text-shadow: 0 1px 6px #000; }
.note { color: var(--ice); font-size: 0.95rem; margin: 14px 0 0; text-shadow: 0 1px 6px #000; }
.cta {
  display: inline-block; background: var(--amber); color: #20140a; font-weight: 800; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(255, 138, 60, 0.35);
}
.cta:hover { background: #ffc978; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 44px 0 8px; }
h2 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 14px; color: var(--ice); }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 8px 0 4px; color: var(--text); }
h3.sub { margin-top: 28px; color: var(--ice); }
p { margin: 0 0 12px; }

.split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.portrait { width: 190px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cards img { width: 72px; display: block; }
.cards p { margin: 0; color: var(--muted); }
.heroes li { text-align: center; }
.heroes img { width: 150px; margin: 0 auto; }
.kindlings { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kindlings li { border-color: #6a4630; background: linear-gradient(160deg, #2a2038, var(--panel)); }

.rules { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; }
.rules strong { color: var(--ice); }

.depths { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: depth; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.depths li { counter-increment: depth; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.depths h3::before { content: "Depth " counter(depth) ": "; color: var(--amber); }
.depths p { margin: 0; color: var(--muted); }

.tags { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tags li { border-left: 4px solid var(--amber); background: var(--panel); border-radius: 0 10px 10px 0; padding: 10px 14px; color: var(--muted); }
.tags strong { display: block; color: var(--text); }

.closing { text-align: center; padding-bottom: 28px; }
.closing p { max-width: 640px; margin-left: auto; margin-right: auto; }
.todo { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; color: var(--ice); }

footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 20px 16px 36px; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* Top bar and the all-time leaders strip above the hero */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px; background: #080e22; border-bottom: 1px solid var(--line);
}
.topbar .brand { color: var(--ice); font-weight: 800; text-decoration: none; letter-spacing: 0.02em; }
.topbar ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; font-weight: 600; }
.topbar ul a { color: var(--muted); }
.topbar ul a:hover { color: var(--amber); }

.leaders {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  padding: 12px 20px; background: linear-gradient(90deg, #121f44, #1a2a55 50%, #121f44); border-bottom: 1px solid var(--line);
}
.leaders h2 { font-size: 0.95rem; margin: 0; color: var(--amber); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.leaders ol { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.leaders li {
  display: flex; align-items: baseline; gap: 8px; background: rgba(8, 14, 34, 0.6); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px 4px 6px; font-size: 0.95rem;
}
.leaders .rank {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--panel); color: var(--ice); font-weight: 800; font-size: 0.8rem; align-self: center;
}
.leaders li:first-child .rank { background: var(--amber); color: #20140a; }
.leaders .who { font-weight: 700; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .score { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 700; }
.leaders .hero-name { color: var(--muted); font-size: 0.85rem; }
.leaders li.empty { color: var(--muted); padding: 4px 14px; }

/* Support form */
.support { padding-bottom: 28px; }
.support > p { max-width: 720px; }
.support-form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; max-width: 720px; margin-top: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ice); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #0a1330; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.25); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 12px; min-height: 65px; }
.hint { color: var(--muted); font-size: 0.9rem; }
.support-form .cta { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.status { max-width: 720px; border-radius: 12px; padding: 12px 16px; margin: 12px 0 0; border: 1px solid var(--line); }
.status.ok { border-color: #3d8f62; background: rgba(61, 143, 98, 0.15); color: #c8f5d8; }
.status.error { border-color: #a5513f; background: rgba(165, 81, 63, 0.18); color: #ffd9cf; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 img { animation: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .split { grid-template-columns: 1fr; text-align: left; }
  .portrait { width: 150px; margin: 0 auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .leaders { justify-content: flex-start; }
  .leaders ol { justify-content: flex-start; }
  h2 { font-size: 1.4rem; }
  section { padding-top: 32px; }
}
