:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f3f4f6;
  background: #141619;
  --muted: #b8bdc5;
  --accent: #214fca;
  --line: #373b42;
}

* { box-sizing: border-box; }

body { margin: 0; }

.shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 2 * clamp(16px, 5vw, 64px)));
  margin-inline: auto;
}

.bar-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.topbar {
  padding-block: clamp(18px, 4vw, 28px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.045em;
}

.brand img { display: block; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(40px, 9vh, 96px);
}

.panel {
  width: min(100%, 780px);
  padding: clamp(44px, 7vw, 80px) clamp(16px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1b1e22;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6.7vw, 64px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.description {
  max-width: 46ch;
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.reload, .support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  text-decoration: none;
}

.reload {
  min-height: 49px;
  padding: 12px 17px;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.reload:hover { background: #193e9e; }

:is(a, button, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.game {
  max-width: 380px;
  margin: 28px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.game summary {
  min-height: 44px;
  padding: 11px 4px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.game summary::marker { color: var(--muted); }

.game p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.game-scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 16px 0 8px;
}

.game-scores strong {
  margin-inline-start: 4px;
  color: #f3f4f6;
  font-variant-numeric: tabular-nums;
}

.game-stage {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #141619;
  image-rendering: pixelated;
  cursor: pointer;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 14px;
}

.game-message { flex: 1 1 150px; }

.game-action {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #555c67;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.game-action:hover { background: #373b42; }
.game-action[aria-disabled="true"] { cursor: default; opacity: .7; }
.game .game-keys { margin-top: 10px; font-size: 12px; }

.footer {
  padding-block: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
}

.footer strong, .support { color: #f3f4f6; }
.support { min-height: 44px; font-weight: 650; }
.support:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 460px) {
  .brand { font-size: 21px; }
  .brand img { width: 33px; height: 33px; }
  .footer .bar-content { gap: 4px 20px; }
}
