* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.14)),
    url("/superloop/images/background.jpg") right center / cover no-repeat fixed;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: clamp(38px, 6vw, 78px) clamp(20px, 5vw, 76px) 46px;
}

.header {
  text-align: center;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.42);
}

.kicker {
  margin-bottom: 20px;
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(72px, 11vw, 146px);
  line-height: 0.84;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.header img {
  width: min(400px, 60vw);
  height: auto;
  max-width: 100%;
}

.intro {
  margin: 28px auto 0;
  max-width: 760px;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.35;
}

.soundboard {
  width: min(1260px, 100%);
  margin: clamp(44px, 6vw, 74px) auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: clamp(34px, 5vw, 72px) clamp(34px, 5vw, 78px);
  justify-items: center;
}

.button-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.arcade-button {
  /* Change button colours in index.html using --button-hue and --button-sat. */
  --button-hue: 0;
  --button-sat: 100%;
  --base: hsl(var(--button-hue), var(--button-sat), 50%);
  --bright: hsl(var(--button-hue), var(--button-sat), 64%);
  --dark: hsl(var(--button-hue), var(--button-sat), 25%);

  position: relative;
  width: clamp(124px, 13vw, 172px);
  height: clamp(124px, 13vw, 172px);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98) 0 5%, rgba(255, 255, 255, 0.42) 6% 11%, transparent 12%),
    radial-gradient(circle at 50% 42%, var(--bright) 0 30%, var(--base) 31% 58%, var(--dark) 76%, #150006 100%);
  box-shadow:
    inset 0 12px 10px rgba(255, 255, 255, 0.34),
    inset 0 -20px 24px rgba(0, 0, 0, 0.46),
    inset 12px 0 18px rgba(255, 255, 255, 0.12),
    inset -14px 0 18px rgba(0, 0, 0, 0.22),
    0 8px 0 #1b1117,
    0 14px 0 #070507,
    0 24px 26px rgba(0, 0, 0, 0.48);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.1s ease;
}

.arcade-button::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: clamp(3px, 0.45vw, 6px) solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 -10px 12px rgba(0, 0, 0, 0.26),
    0 3px 4px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.arcade-button::after {
  content: "";
  position: absolute;
  inset: -7%;
  z-index: -1;
  border-radius: 50%;
  background:
    linear-gradient(#2e2e2e, #050505);
  box-shadow:
    inset 0 3px 3px rgba(255, 255, 255, 0.22),
    inset 0 -5px 9px rgba(0, 0, 0, 0.8);
}

.arcade-button:hover {
  filter: brightness(1.11) saturate(1.12);
}

.arcade-button:active,
.arcade-button.playing {
  transform: translateY(9px) scale(0.99);
  filter: brightness(1.28) saturate(1.3);
  box-shadow:
    inset 0 10px 9px rgba(255, 255, 255, 0.36),
    inset 0 -16px 20px rgba(0, 0, 0, 0.5),
    0 2px 0 #1b1117,
    0 5px 0 #070507,
    0 0 38px hsla(var(--button-hue), var(--button-sat), 58%, 0.92),
    0 0 78px hsla(var(--button-hue), var(--button-sat), 58%, 0.46);
}

.button-label {
  min-width: 116px;
  max-width: 190px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(23, 4, 31, 0.7);
  color: white;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

.footer {
  margin: clamp(54px, 6vw, 82px) auto 0;
  text-align: center;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.35;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.52);
}

.footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .soundboard {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 560px) {
  .page {
    padding-top: 34px;
  }

  .soundboard {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 34px 22px;
  }

  .intro {
    font-size: 16px;
  }
}
