:root {
  --ink: #242538;
  --muted: #65677b;
  --paper: rgba(255, 255, 255, 0.92);
  --line: rgba(36, 37, 56, 0.14);
  --hot: #ff6f91;
  --aqua: #35c8d0;
  --gold: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.76)),
    url("../../res/images/backgrounds/Be-Shinning.png") center / cover fixed;
}

button,
a {
  font: inherit;
}

.game-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ae3262;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 4.1rem;
  line-height: 1;
}

.hero p:last-child {
  max-width: 650px;
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(36, 37, 56, 0.13);
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.hud span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.hud strong {
  display: block;
  margin-top: 2px;
  font-size: 1.35rem;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #1f2032;
  background: linear-gradient(135deg, var(--gold), var(--aqua));
  font-weight: 900;
  cursor: pointer;
}

.stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hole {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(145deg, rgba(53, 200, 208, 0.42), rgba(255, 111, 145, 0.32));
  box-shadow: inset 0 -18px 36px rgba(36, 37, 56, 0.1);
  cursor: pointer;
}

.hole::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: rgba(36, 37, 56, 0.1);
  transform: scale(0.62);
  transition: transform 0.12s ease, background 0.12s ease;
}

.hole.is-target::after {
  inset: 9%;
  border-radius: 8px;
  background: url("../../res/images/stamps/001.png") center / cover;
  transform: scale(1);
  box-shadow: 0 14px 30px rgba(255, 111, 145, 0.36);
}

.hole.is-decoy::after {
  inset: 12%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
    url("../../res/images/stamps/004.png") center / cover;
  transform: scale(1);
  filter: grayscale(0.45);
}

.message {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 620px) {
  .hud {
    grid-template-columns: repeat(3, 1fr);
  }

  .hud button {
    grid-column: 1 / -1;
  }

  .stage {
    gap: 8px;
  }

  h1 {
    font-size: 2.35rem;
  }
}
