* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #070b14;
  --panel: #0d1526;
  --line: #1b2740;
  --cyan: #00e0ff;
  --blue: #3b82f6;
  --txt: #e8f1ff;
  --dim: #7c8db0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Arial Black", Impact, system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(0, 224, 255, .14), transparent 60%),
    radial-gradient(800px 400px at 90% 110%, rgba(59, 130, 246, .10), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(7, 11, 20, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 30px; }
.counters { display: flex; gap: 18px; flex: 1; }
.counter { display: flex; flex-direction: column; }
.counter .lbl { font-size: 10px; letter-spacing: 1.5px; color: var(--dim); }
.counter .num {
  font-family: var(--display);
  font-size: clamp(18px, 4vw, 26px);
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 224, 255, .5);
}
.counter .num.bump { animation: numBump .3s ease; }
@keyframes numBump { 30% { transform: scale(1.15); color: #fff; } }
.snd {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--txt);
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 34px 16px 10px; }
h1 {
  font-family: var(--display);
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(0, 224, 255, .25);
}
h1 .accent { color: var(--cyan); text-shadow: 0 0 24px rgba(0, 224, 255, .6); }
.quote {
  margin: 14px auto 6px;
  max-width: 520px;
  color: var(--cyan);
  font-style: italic;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 224, 255, .08);
  border: 1px solid rgba(0, 224, 255, .25);
  color: var(--txt);
  font-size: 13px;
  font-weight: 600;
}
.live .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .5; }
}
.hint {
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: clamp(12px, 3vw, 15px);
  color: var(--dim);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- clicker ---------- */
.clicker { display: flex; justify-content: center; padding: 20px 16px; }
.jetta-wrap {
  position: relative;
  width: min(340px, 86vw);
  border-radius: 22px;
  overflow: visible;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.jetta-wrap img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 1px rgba(0,224,255,.4), 0 0 40px rgba(0,224,255,.35), 0 18px 50px rgba(0,0,0,.6);
  animation: breathe 3.2s ease-in-out infinite;
  transition: transform .06s;
}
.jetta-wrap:active img { transform: scale(.94); }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.ring {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  border: 2px dashed rgba(0,224,255,.25);
  animation: spin 14s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.combo {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff5f6d, #ffc371);
  color: #1a0f0f;
  font-family: var(--display);
  font-size: 15px;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(255, 95, 109, .5);
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
  white-space: nowrap;
}
.combo.show { opacity: 1; }
.combo.pulse { animation: pop .18s; }
@keyframes pop { 50% { transform: translateX(-50%) scale(1.25); } }

.part {
  position: absolute;
  font-size: 22px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,224,255,.8);
  pointer-events: none;
  animation: fly .9s ease-out forwards;
  z-index: 5;
}
@keyframes fly {
  to { transform: translateY(-130px) translateX(12px); opacity: 0; }
}

/* ---------- stats ---------- */
.stats, .game {
  max-width: 640px;
  margin: 26px auto 0;
  padding: 22px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
h2 { font-size: 18px; letter-spacing: 1px; margin-bottom: 14px; }
.statline { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 18px; }
.statline .big {
  font-family: var(--display);
  font-size: clamp(24px, 6vw, 36px);
  color: var(--cyan);
  margin-right: 6px;
}
.dim { color: var(--dim); }
.small { font-size: 12px; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 130px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.bar {
  flex: 1;
  min-height: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 4px 4px 0 0;
  position: relative;
  box-shadow: 0 0 10px rgba(0,224,255,.25);
  transition: height .5s ease;
}
.bar.zero { background: #1b2740; box-shadow: none; }
.bar .lbl {
  position: absolute;
  bottom: -20px;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  color: var(--dim);
}

/* ---------- game ---------- */
.game { text-align: center; }
.btn {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 1px;
  color: #03121a;
  background: linear-gradient(90deg, var(--cyan), #7cf5ff);
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,224,255,.4);
  transition: transform .08s;
}
.btn:active { transform: scale(.95); }
.btn.ghost {
  background: var(--panel);
  color: var(--txt);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* ---------- overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 7, 14, .8);
  backdrop-filter: blur(8px);
}
.overlay.open { display: flex; }
.panel {
  width: min(460px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.game-timer {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 14px 0 10px;
}
.game-timer .bar {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #ff5f6d);
  transition: width .1s linear;
  box-shadow: none;
}
.game-score { margin: 10px 0 2px; display: flex; flex-direction: column; align-items: center; }
.game-score .num {
  font-family: var(--display);
  font-size: 54px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,224,255,.5);
  line-height: 1;
}
.game-score .lbl { font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.cpm { margin-bottom: 12px; font-size: 13px; }

.game-area {
  position: relative;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  border: 2px solid var(--cyan);
}
.game-area img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-area:active img { transform: scale(.97); }
.go-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 95, 109, .9);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  animation: blink .5s infinite;
}
.game-result { margin-top: 14px; }
.verdict {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.4;
  color: var(--cyan);
}
.game-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

footer { text-align: center; padding: 34px 16px 40px; }
.footer-img {
  width: min(220px, 60vw);
  border-radius: 16px;
  border: 2px solid var(--line);
  margin-bottom: 12px;
  opacity: .9;
}
