:root {
  --bg: #0f1220;
  --panel: rgba(15, 18, 32, 0.82);
  --text: #f5f7ff;
  --muted: #a9b0c7;
  --accent: #ffd166;
  --line: rgba(255, 255, 255, 0.1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: #1d1d1d;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: #555;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- Game ------------------------------------------------------------- */

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  pointer-events: none;
}
.hud a { pointer-events: auto; }
.user { display: flex; gap: 10px; align-items: center; background: var(--panel); padding: 8px 14px 8px 8px; border-radius: 999px; }
.name { font-weight: 600; }
.link { color: var(--accent); font-size: 12px; text-decoration: none; }
.stats { display: flex; gap: 6px; }
.stats > div { background: var(--panel); border-radius: 10px; padding: 6px 12px; text-align: center; min-width: 64px; }
.label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stats span:not(.label) { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 24, 0.35); }
.panel { background: var(--panel); backdrop-filter: blur(6px); border-radius: 16px; padding: 28px; max-width: 380px; width: 100%; text-align: center; }
.panel h1 { margin: 0 0 8px; font-size: 32px; }
.panel p { color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
.panel .hint { font-size: 12px; margin: 18px 0 0; }
.board { list-style: none; margin: 18px 0 0; padding: 0; text-align: left; }
.board:empty { display: none; }
.board li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.board .score { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 12px; height: 12px; border-radius: 50%; }

@media (max-width: 560px) {
  .hud { padding: 10px; }
  .stats > div { min-width: 0; padding: 6px 8px; }
  .stats span:not(.label) { font-size: 16px; }
  .user { padding-right: 8px; }
  .user .link { display: none; }
}
.user { white-space: nowrap; }

/* --- Mock start.ng page ------------------------------------------------- */

.platform { min-height: 100%; background: linear-gradient(160deg, #141833, #0f1220 60%); }
.nav { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.nav strong { font-size: 20px; }
.nav .muted { margin-left: auto; font-size: 14px; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 209, 102, 0.15); color: var(--accent); }
.platform main { max-width: 820px; margin: 0 auto; padding: 32px 16px; }
.users { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.user-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; cursor: pointer;
}
.user-card:hover { border-color: var(--accent); }
.user-card .avatar { width: 48px; height: 48px; font-size: 20px; }
.card { display: flex; gap: 28px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card > div { flex: 1 1 280px; }
.card h2 { margin-top: 0; }
#preview { width: 260px; height: 320px; max-width: 100%; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #2a3160, #161a33); }
.fields { display: grid; gap: 12px; margin: 20px 0; }
.fields label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fields input[type="color"] { width: 56px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.fields select { min-width: 140px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: #1b2040; color: var(--text); font: inherit; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Forest Hunter ------------------------------------------------------ */

:root { --bad: #ff7b6e; }
.stats > div { min-width: 56px; }

#scope {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, transparent 0, transparent 22vmin, #000 22.5vmin);
}
#scope::before, #scope::after { content: ""; position: absolute; background: rgba(0, 0, 0, 0.75); }
#scope::before { left: 50%; top: calc(50% - 22vmin); width: 1px; height: 44vmin; }
#scope::after { top: 50%; left: calc(50% - 22vmin); height: 1px; width: 44vmin; }
#dot { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; opacity: 0.8; pointer-events: none; }
#dot.off { display: none; }
#label { position: fixed; left: 0; right: 0; top: calc(50% + 24vmin); text-align: center; font-weight: 600; text-shadow: 0 1px 3px #000; pointer-events: none; }
#msg { position: fixed; left: 0; right: 0; top: 22%; text-align: center; font-size: 26px; font-weight: 700; text-shadow: 0 1px 4px #000; pointer-events: none; }
.bad { color: var(--bad); }
.good { color: var(--accent); }

.guide { position: fixed; left: 16px; bottom: 16px; background: var(--panel); border-radius: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.6; pointer-events: none; }
.guide b { display: block; margin-bottom: 2px; }
.guide .pts { float: right; margin-left: 14px; font-variant-numeric: tabular-nums; }

.walk-btn, .zoom-btn { display: none; position: fixed; right: 18px; bottom: 28px; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; touch-action: none; }
@media (pointer: coarse) { .walk-btn, .zoom-btn { display: block; } .guide { display: none; } }
@media (max-width: 560px) { .guide { display: none; } }

.walk-btn { right: auto; left: 18px; }

#mission { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); max-width: 90vw; text-align: center; font-size: 14px; font-weight: 600; background: var(--panel); border-radius: 999px; padding: 6px 16px; pointer-events: none; }
.shop { margin: 14px 0 4px; text-align: left; }
.shop-head { font-weight: 700; margin-bottom: 6px; }
.shop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.shop-row small { opacity: 0.7; }
.buy { margin: 0; padding: 6px 14px; font-size: 14px; border-radius: 8px; white-space: nowrap; }
.buy:disabled { opacity: 0.4; cursor: default; }
.overlay .panel { max-height: 92vh; overflow-y: auto; }

.stats { flex-wrap: wrap; justify-content: flex-end; }
#lives { color: var(--bad); }
