@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap");

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

:root {
  --bg: #060a0f;
  --panel: #1c171d;
  --deep: #0a0d12;
  --brand: #f9671a;
  --brand-light: #ffb76a;
  --gold: #ffc24a;
  --text: #ffffff;
  --muted: #9a93a0;
  --grad: linear-gradient(180deg, #ffe9bd 0%, #ffb347 55%, #f9671a 100%);
}

html,
body {
  height: 100%;
}

body {
  font-family: "Syne", sans-serif;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(249, 103, 26, 0.18) 0%, rgba(6, 10, 15, 0) 55%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 18px 16px 28px;
  overflow-x: hidden;
  user-select: none;
}

.game-head {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.game-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(16px, 4.4vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 0;
}

.game-title svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.game-stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.stat {
  background: var(--panel);
  border: 1px solid rgba(255, 194, 74, 0.25);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  min-width: 64px;
}

.stat .label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.stat .value {
  font-weight: 800;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 560px) {
  .game-head {
    gap: 8px;
    margin-bottom: 10px;
  }
  .game-title {
    font-size: 16px;
    gap: 7px;
  }
  .game-title svg {
    width: 22px;
    height: 22px;
  }
  .game-stats {
    gap: 6px;
  }
  .stat {
    min-width: 48px;
    padding: 4px 8px;
    border-radius: 8px;
  }
  .stat .label {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .stat .value {
    font-size: 14px;
  }
}

.game-stage {
  width: 100%;
  max-width: 640px;
  background: rgba(10, 13, 18, 0.6);
  border: 1px solid rgba(255, 194, 74, 0.18);
  border-radius: 18px;
  padding: 16px;
  position: relative;
}

.game-foot {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 26px;
  border-radius: 12px 64px 12px 64px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  color: #fff;
  background: linear-gradient(to top, #f9671a 11%, #ffb76a 114%);
  box-shadow: 0 4px 20px rgba(249, 103, 26, 0.45);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 194, 74, 0.45);
  box-shadow: none;
  color: var(--gold);
}

.hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  max-width: 640px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.overlay h2 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overlay p {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.crown-emblem {
  width: 64px;
  height: 46px;
}

@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
