:root {
  --bg-top: #fff4d6;
  --bg-bottom: #c4ecff;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(255, 255, 255, 0.72);
  --text: #29445f;
  --text-soft: #516b84;
  --accent: #ff8a6b;
  --accent-2: #f6c85f;
  --accent-3: #68c7c1;
  --shadow: rgba(41, 68, 95, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 216, 154, 0.55), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body {
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px 20px 32px;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 28vw;
  height: 28vw;
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
}

.glow-left {
  left: -8vw;
  top: 10vh;
  background: rgba(255, 163, 135, 0.45);
}

.glow-right {
  right: -10vw;
  bottom: 8vh;
  background: rgba(104, 199, 193, 0.42);
}

.game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
}

.subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  font-size: 1.02rem;
  color: var(--text-soft);
}

.header-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 320px;
  padding: 14px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px var(--shadow);
}

.header-card span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  font-weight: 700;
}

.game-stage {
  position: relative;
}

#game-container {
  position: relative;
  min-height: min(80vh, 860px);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 70px rgba(41, 68, 95, 0.22);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .game-header {
    flex-direction: column;
  }

  .header-card {
    max-width: none;
  }

  .page-shell {
    padding: 16px 12px 20px;
  }

  #game-container {
    border-radius: 24px;
  }
}
