:root {
  --bg: #f3efe7;
  --panel: #fff7ea;
  --ink: #1b1b1b;
  --accent: #c54b2c;
  --shadow: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Neue Haas Grotesk Text", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(243, 239, 231, 0.75), rgba(243, 239, 231, 0.75)),
    url("rennie.avif") center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.board {
  width: min(900px, 92vw);
  margin-top: clamp(110px, 14vh, 180px);
  padding: 32px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 30px 80px var(--shadow);
  backdrop-filter: blur(6px);
}

.title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--accent);
}

p {
  margin: 0;
  font-size: 1rem;
  max-width: 320px;
  text-align: right;
}

.flute-stage {
  display: grid;
  place-items: center;
}

.flute {
  position: relative;
  width: min(220px, 70vw);
  height: min(640px, 70vh);
}

.flute-body {
  position: absolute;
  inset: 0 36px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #f6e1c6 0%, #e2c29b 45%, #caa57f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(135, 93, 55, 0.35),
    inset 0 18px 30px rgba(255, 255, 255, 0.35),
    inset 0 -18px 30px rgba(92, 64, 39, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.18);
}

.flute-body::before,
.flute-body::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6b4a, #d8c0a2, #8a6b4a);
  box-shadow: inset 0 0 0 1px rgba(55, 38, 20, 0.4);
}

.flute-body::before {
  top: 28px;
}

.flute-body::after {
  bottom: 28px;
}

.hole {
  position: absolute;
  left: 50%;
  top: var(--y);
  transform: translate(-50%, -50%);
  width: clamp(68px, 22vw, 84px);
  height: clamp(68px, 22vw, 84px);
  border-radius: 50%;
  border: 2px solid rgba(58, 36, 18, 0.6);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.9) 65%);
  color: #f4e7d3;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.hole:active {
  transform: translate(-50%, -50%) scale(0.96);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hole.loaded {
  border-color: rgba(197, 75, 44, 0.85);
}

@media (max-width: 640px) {
  .title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  p {
    text-align: left;
  }

  .flute {
    height: min(70vh, 560px);
  }

  .flute-body {
    inset: 0 24px;
  }
}
