:root {
  --bg: #f6f7fb;
  --ink: #18202f;
  --muted: #637083;
  --panel: #ffffff;
  --line: #d9deea;
  --blue: #2f6df6;
  --green: #23a55a;
  --yellow: #ffd35a;
  --red: #f04d45;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 211, 90, .35), transparent 14rem),
    linear-gradient(135deg, #f6f7fb 0%, #e9f4ff 50%, #f5ffee 100%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  filter: brightness(.96);
}

.game-shell {
  width: min(94vw, 860px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 11rem;
}

.eyebrow {
  margin: 0 0 .4rem;
  color: var(--green);
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: .9;
  letter-spacing: 0;
}

.intro {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.45;
}

.coin {
  width: clamp(5rem, 17vw, 9rem);
  image-rendering: auto;
  animation: bob 2.8s ease-in-out infinite;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 1rem 2.5rem rgba(24, 32, 47, .1);
}

.setup {
  padding: clamp(1rem, 3vw, 1.5rem);
}

label,
.label {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  margin-top: .75rem;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .85rem 1rem;
  background: white;
  color: var(--ink);
}

.join-row button,
.room-bar button,
.scoreboard button {
  min-height: 2.9rem;
  padding: 0 1rem;
}

.status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.arena {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.room-bar,
.scoreboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.room-bar strong {
  display: block;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: .12em;
}

.big-click {
  display: grid;
  place-items: center;
  gap: .5rem;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  margin: 1.5rem auto;
  border: .45rem solid #173b93;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6fa0ff, var(--blue));
  box-shadow: 0 .9rem 0 #173b93;
  font-size: clamp(1.8rem, 6vw, 3rem);
  text-transform: uppercase;
}

.big-click:active {
  translate: 0 .45rem;
  box-shadow: 0 .45rem 0 #173b93;
}

.big-click img {
  width: 38%;
}

.scoreboard {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.scoreboard h2 {
  margin: 0;
}

.scoreboard button {
  background: var(--red);
}

ol {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style-position: inside;
}

li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.me {
  border-color: var(--yellow);
  box-shadow: inset .35rem 0 0 var(--yellow);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-.7rem) rotate(8deg);
  }
}

@media (max-width: 620px) {
  .hero {
    align-items: flex-start;
  }

  .join-row {
    grid-template-columns: 1fr;
  }

  .room-bar,
  .scoreboard-head {
    align-items: stretch;
    flex-direction: column;
  }
}
