* { box-sizing: border-box; }

:root {
  --bg: #121212;
  --card: #1e1e1e;
  --line: #333;
  --text: #f1efe8;
  --muted: #a8a6a0;
  --orange: #f08a24;
  --orange-dark: #d0661a;
  --green: #5fae2e;
  --red: #e5534b;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--orange);
}
.top h1 { margin: 0; font-size: 26px; letter-spacing: 1px; }
.top h1 span { color: var(--orange); }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.top nav a:hover { color: var(--orange); }

main { max-width: 720px; margin: 0 auto; padding: 20px 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { margin: 0 0 4px; color: var(--orange); }
.sub { margin: 0 0 16px; color: var(--muted); }

/* Game */
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.hud div { background: #2a2a2a; border-radius: 10px; padding: 8px 4px; }
.hud small { display: block; color: var(--muted); font-size: 12px; }
.hud b { font-size: 24px; }
.orange { color: var(--orange); }

.track {
  position: relative;
  height: 44px;
  margin: 22px 0 12px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
}
.zone { position: absolute; top: 0; bottom: 0; background: var(--green); transition: left .15s, width .15s; }
.bar { position: absolute; top: -2px; bottom: -2px; width: 6px; background: #fff; border-radius: 3px; }

.msg { text-align: center; font-size: 20px; font-weight: 600; min-height: 30px; margin: 8px 0; }
.msg.good { color: #8fd45a; }
.msg.bad { color: #f08f88; }
.msg.final { color: var(--orange); }

.shoot {
  display: block;
  margin: 0 auto;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 48px;
  border-radius: 10px;
  cursor: pointer;
}
.shoot:hover { background: var(--orange-dark); }
.shoot:active { transform: scale(.97); }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
kbd { background: #333; border-radius: 4px; padding: 1px 6px; }

/* Stats box */
.ask { display: flex; gap: 8px; }
.ask input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  font-size: 16px;
  background: #2a2a2a;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
.ask input:focus { outline: 2px solid var(--orange); }
.ask button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chips button:hover { color: var(--orange); border-color: var(--orange); }

.answer { min-height: 20px; }
.player {
  background: #2a2a2a;
  border-left: 4px solid var(--orange);
  border-radius: 0;
  padding: 12px 14px;
  margin-top: 8px;
}
.player h3 { margin: 0; }
.player .meta { color: var(--muted); font-size: 14px; }
.player .nums { display: flex; gap: 20px; margin-top: 8px; }
.player .nums b { font-size: 22px; color: var(--orange); display: block; }
.player .nums small { color: var(--muted); }

ol.rank { padding-left: 22px; }
ol.rank li { padding: 4px 0; }
ol.rank span { color: var(--orange); font-weight: 600; }

.note { color: var(--muted); font-size: 12px; margin: 16px 0 0; }

#roadmap ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

@media (max-width: 480px) {
  .hud b { font-size: 20px; }
  .top nav a { margin: 0 12px 0 0; }
}

/* Highlights */
.reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dunk-hl { max-width: 320px; margin: 16px auto 0; }
.dunk-hl:empty { display: none; }
.hl { background: #2a2a2a; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.reel .hl { margin-top: 0; }
.hl img, .hl video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hl-placeholder {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; background: #333; color: var(--orange); font-weight: 700; font-size: 18px; text-align: center; padding: 8px;
}
.hl-placeholder span { font-size: 36px; }
.hl-cap { padding: 8px 12px; font-size: 14px; color: var(--muted); }
.hl-cap b { color: var(--text); }
