:root {
  --bg-1: #050816;
  --bg-2: #111a31;
  --panel: rgba(17, 25, 40, 0.78);
  --panel-border: rgba(130, 170, 255, 0.25);
  --primary: #7dd3fc;
  --secondary: #a78bfa;
  --highlight: #fbbf24;
  --text: #e2e8f0;
  --muted: #a5b4cf;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Orbitron", sans-serif;
  background:
    radial-gradient(circle at top, rgba(125, 211, 252, 0.2), transparent 28%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

button {
  font: inherit;
}

.app-shell {
  width: min(1100px, 100%);
  background: rgba(4, 10, 22, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--panel-border);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 0.7rem;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.ghost-btn {
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.7);
}

.game-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 24px;
}

.score-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(125,211,252,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(125,211,252,0.3);
}

.score-box span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
}

.score-box strong {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--highlight);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.info-grid div {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 16px;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.info-grid strong {
  font-size: 1.5rem;
}

.core-button {
  position: relative;
  width: 100%;
  min-height: 220px;
  margin-top: 26px;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #e0f2fe 0%, #7dd3fc 15%, #8b5cf6 55%, #0f172a 100%);
  box-shadow: inset 0 0 35px rgba(255,255,255,0.18), 0 25px 40px rgba(91, 33, 182, 0.55);
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.core-button:active {
  transform: scale(0.98);
}

.core-button:hover {
  box-shadow: inset 0 0 35px rgba(255,255,255,0.2), 0 30px 50px rgba(91, 33, 182, 0.65);
}

.button-glow {
  position: absolute;
  inset: 15% 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0) 55%);
  filter: blur(20px);
  opacity: 0.9;
}

.button-label {
  position: relative;
  z-index: 1;
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-panel h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.shop-list {
  display: grid;
  gap: 14px;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.06);
}

.shop-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.shop-item p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.shop-item button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #0f172a;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  min-width: 110px;
}

.shop-item button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .shop-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
