:root {
  color-scheme: light;
  --buzz: #ffdd00;
  --cyan: #00f6ff;
  --hot-pink: #ff5bff;
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --muted: rgba(0, 0, 0, 0.58);
  --soft: rgba(255, 255, 255, 0.68);
  --line: #000000;
  --backstage: #ff5bff;
  --support: #00f6ff;
  --warm: #ffdd00;
  --cold: #888888;
  --miles: #f0f0f0;
  --danger: #ff5bff;
  --font-display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Caladea", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--buzz);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--buzz);
  color: var(--ink);
  font-family: var(--font-body);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 3px;
}

.buzzle-page {
  min-height: 100vh;
  background: var(--buzz);
  background-image: none;
}

.top-nav {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  padding: 10px clamp(20px, 4.4vw, 56px) 14px;
  background: var(--buzz);
  border-bottom: 0;
}

.buzz-logo-link {
  display: block;
  flex: 0 0 auto;
  width: clamp(106px, 13vw, 150px);
  background:
    linear-gradient(90deg, var(--buzz) 0 58%, var(--hot-pink) 58% 78%, var(--cyan) 78% 100%);
  border: 2px solid var(--black);
  padding: 8px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

.buzz-logo {
  display: block;
  width: 100%;
  height: auto;
}

.nav-meta {
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.nav-title {
  grid-column: 1 / -1;
  grid-row: 3;
  display: inline-flex;
  align-items: stretch;
  justify-self: center;
  border: 2px solid var(--black);
  background: var(--buzz);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.nav-presenter {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  margin: 2px 0 -2px;
  color: rgba(0, 0, 0, 0.68);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.nav-title span {
  display: grid;
  place-items: center;
  min-width: 0.62em;
  padding: 0.18em 0.04em 0.16em;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.tool-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  box-shadow: 4px 4px 0 var(--hot-pink);
}

.tool-button:nth-child(2) {
  box-shadow: 4px 4px 0 var(--cyan);
}

.tool-button:nth-child(3) {
  background: var(--cyan);
  box-shadow: 4px 4px 0 var(--hot-pink);
}

.tool-button:nth-child(4) {
  background: var(--hot-pink);
  box-shadow: 4px 4px 0 var(--cyan);
}

.tool-button:hover {
  transform: translate(-1px, -1px);
}

.tool-button svg {
  display: block;
  width: 23px;
  height: 23px;
}

.tool-button .stats-icon {
  fill: currentColor;
  stroke: none;
  transform: translateY(-2px);
}

.tool-button .archive-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-0.25px, -1.5px);
}

.subheader {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  border-top: 6px solid var(--black);
  border-bottom: 6px solid var(--black);
  background: var(--cyan);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.35vw, 1.55rem);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 64%) minmax(320px, 36%);
  min-height: calc(100vh - 114px);
}

.play-panel {
  min-width: 0;
  padding: clamp(28px, 3.6vw, 46px);
  background: var(--buzz);
  background-image: none;
}

.release-notice {
  max-width: 760px;
  border: 4px solid var(--black);
  background: var(--white);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 12px 12px 0 var(--hot-pink), 22px 22px 0 var(--cyan);
}

.release-notice[hidden] {
  display: none;
}

.release-notice h1 {
  max-width: 680px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
}

.release-notice > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
}

.retry-button {
  min-height: 48px;
  margin-top: 24px;
  border: 3px solid var(--black);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--black);
  padding: 10px 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--black);
}

body.no-live-puzzle .play-panel > :not(.release-notice),
body.loading-live-puzzle .play-panel > :not(.release-notice) {
  display: none;
}

body.no-live-puzzle .release-notice,
body.loading-live-puzzle .release-notice {
  display: block;
}

.game-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-meta .eyebrow {
  color: rgba(0, 0, 0, 0.68);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
}

h1 small {
  display: block;
  margin-bottom: 0.18em;
  font-size: 0.42em;
  line-height: 1;
}

h1 span {
  display: block;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-rule {
  width: 100%;
  height: 5px;
  margin: 16px 0 16px;
  background: var(--black);
}

h2 {
  margin-bottom: 8px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.9rem);
  font-weight: 400;
  line-height: 0.9;
}

.hero-copy,
.helper-text {
  color: var(--black);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.42;
}

.hero-copy {
  grid-column: 1 / -1;
  margin-top: 18px;
  max-width: none;
  width: 100%;
  font-size: clamp(1.18rem, 1.55vw, 1.35rem);
  font-weight: 800;
  line-height: 1.38;
}

.helper-text {
  margin-top: 18px;
}

.puzzle-number {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 2.2rem;
  box-shadow: 8px 8px 0 var(--cyan);
}

.guess-form {
  position: relative;
  margin-top: 28px;
}

.guess-form label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 66px;
  border: 3px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  outline: none;
}

input::placeholder {
  color: rgba(0, 0, 0, 0.62);
  font-family: var(--font-body);
}

input:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.suggestions-menu {
  z-index: 20;
  margin-top: 8px;
  width: calc(100% - 162px);
  overflow: hidden;
  border: 3px solid var(--black);
  border-radius: 0;
  background: var(--buzz);
  box-shadow: 5px 5px 0 var(--hot-pink);
}

.suggestions-menu[hidden] {
  display: none;
}

.suggestions-menu button {
  display: grid;
  width: 100%;
  gap: 1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  font: inherit;
  text-align: left;
}

.suggestions-menu button:last-child {
  border-bottom: 0;
}

.suggestions-menu button:hover,
.suggestions-menu button:focus-visible,
.suggestions-menu button[aria-selected="true"] {
  background: var(--cyan);
  outline: none;
}

.suggestions-menu strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.suggestions-menu span {
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.78rem;
  line-height: 1.1;
  text-transform: lowercase;
}

.input-row button,
.dialog-actions button {
  min-height: 66px;
  border: 3px solid var(--black);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--black);
}

.input-row button:hover,
.dialog-actions button:hover {
  filter: brightness(0.92);
}

.status-card {
  min-height: 54px;
  margin-top: 14px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  padding: 14px 18px;
}

.status-card[hidden] {
  display: none;
}

.status-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.64);
  font-weight: 700;
}

.latest-result[hidden] {
  display: none;
}

.latest-label {
  margin: 20px 0 8px;
  color: var(--hot-pink);
  font-weight: 700;
  text-transform: uppercase;
}

.latest-guess {
  min-height: 72px;
}

.secondary-button {
  min-height: 50px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.history-section {
  margin-top: 30px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#guessCount {
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.guess-list {
  display: grid;
  gap: 7px;
}

.guess-row {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) 122px;
  min-height: 62px;
  overflow: hidden;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
}

.guess-row::before {
  content: "";
  background: var(--band-color);
}

.guess-row::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--heat-width);
  max-width: calc(100% - 122px);
  background: color-mix(in srgb, var(--band-color), transparent 83%);
  pointer-events: none;
}

.guess-main,
.rank-block {
  position: relative;
  z-index: 1;
}

.guess-main {
  padding: 10px 16px;
}

.guess-name {
  overflow: hidden;
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guess-type {
  color: rgba(0, 0, 0, 0.66);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.rank-block {
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--band-color);
  color: var(--black);
  text-align: center;
}

.rank {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 0.95;
}

.band {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 32px;
  background: var(--black);
  color: var(--white);
  border-top: 5px solid var(--hot-pink);
  border-right: 5px solid var(--hot-pink);
  border-bottom: 5px solid var(--hot-pink);
  border-left: 5px solid var(--hot-pink);
}

.side-panel section {
  min-width: 0;
}

.score-card {
  min-height: 96px;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--cyan);
  color: var(--black);
  box-shadow: 8px 8px 0 var(--hot-pink);
}

.score-card small,
.score-card span {
  display: block;
}

.score-card small {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 0.9;
}

.rank-panel {
  border-top: 4px solid var(--buzz);
  padding-top: 13px;
}

.rank-panel h3,
.share-card h3 {
  color: var(--buzz);
  margin-bottom: 14px;
}

.legend {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--white);
  font-size: 0.82rem;
}

.legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--legend-color);
}

.legend strong {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}

.legend span {
  color: var(--white);
}

.share-card {
  border-radius: 14px;
  padding: 16px;
  background: var(--hot-pink);
  color: var(--black);
  box-shadow: 8px 8px 0 var(--cyan);
}

.share-card h3 {
  color: var(--black);
}

.share-preview {
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--white);
  padding: 12px;
}

.share-preview strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.share-preview p {
  margin: 2px 0 10px;
  font-size: 0.92rem;
}

.share-preview span {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.8rem;
}

.share-preview button {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.88rem;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--black);
}

.share-preview button:disabled {
  background: var(--white);
  box-shadow: none;
}

.archive-panel {
  border-top: 4px solid var(--buzz);
  padding-top: 16px;
  color: var(--black);
}

.archive-drawer {
  border: 0;
  border-radius: 14px;
  background: var(--cyan);
  padding: 16px;
  box-shadow: 7px 7px 0 var(--buzz);
}

.archive-drawer summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.archive-drawer summary::-webkit-details-marker {
  display: none;
}

.archive-drawer summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--black);
  background: var(--buzz);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.archive-drawer[open] summary::after {
  content: "-";
}

.archive-drawer summary span {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-transform: uppercase;
}

.archive-drawer summary small {
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  padding: 5px 8px;
  font-weight: 700;
  white-space: nowrap;
}

.archive-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  margin-top: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.archive-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  padding: 10px 12px;
  text-align: left;
}

.archive-list button span {
  font-family: var(--font-display);
}

.archive-list button small {
  color: rgba(0, 0, 0, 0.62);
}

.archive-empty {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 700;
  line-height: 1.35;
}

.dialog-archive-list .archive-empty {
  color: rgba(0, 0, 0, 0.68);
}

.result-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border: 3px solid var(--black);
  background: var(--buzz);
  color: var(--black);
  padding: 0;
  box-shadow: 10px 10px 0 var(--hot-pink), 18px 18px 0 var(--cyan);
}

.result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-inner {
  position: relative;
  padding: 28px;
}

.dialog-inner h2 {
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.dialog-inner h3 {
  margin: 18px 0 7px;
}

.dialog-inner ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.dialog-inner li {
  line-height: 1.35;
}

.compact-dialog {
  width: min(620px, calc(100% - 28px));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.stats-grid div {
  min-width: 0;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 8px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.stats-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.history-list p {
  margin: 0;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  font-weight: 700;
}

.history-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
}

.history-list article > div:last-child {
  text-align: right;
}

.history-list strong,
.history-list span {
  display: block;
}

.history-list strong {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}

.history-list span {
  margin-top: 3px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
}

.dialog-note {
  margin: 14px 0 0;
  font-weight: 700;
  line-height: 1.36;
}

.dialog-legend {
  margin-top: 16px;
}

.dialog-legend li {
  border-bottom-color: rgba(0, 0, 0, 0.18);
  color: var(--black);
}

.dialog-legend strong,
.dialog-legend span {
  color: var(--black);
}

.dialog-archive-list {
  max-height: min(56vh, 420px);
  margin-top: 18px;
}

.dialog-archive-list button {
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
}

.dialog-archive-list button small {
  color: rgba(0, 0, 0, 0.55);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.scorecard {
  margin: 18px 0 14px;
  overflow: hidden;
  border: 3px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: 7px 7px 0 var(--cyan);
}

.scorecard-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 3px solid var(--black);
  background: var(--hot-pink);
  padding: 10px 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.scorecard-topline strong {
  font-weight: 400;
}

.scorecard-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 10px 14px 12px;
  border-bottom: 3px solid var(--black);
  background: var(--buzz);
  text-align: center;
}

.scorecard-score small {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scorecard-score > strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 15vw, 6.3rem);
  font-weight: 400;
  line-height: 0.9;
}

.scorecard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 3px solid var(--black);
}

.scorecard-stats div {
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
}

.scorecard-stats div + div {
  border-left: 3px solid var(--black);
}

.scorecard-stats strong,
.scorecard-bands strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.scorecard-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
}

.scorecard-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--black);
}

.scorecard-bands span {
  flex: 1 1 118px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--score-band-color);
  color: var(--black);
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.app-downloads {
  margin: 14px 0 8px;
  border: 3px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  padding: 10px 12px 8px;
  text-align: center;
  box-shadow: 7px 7px 0 var(--cyan);
}

.app-downloads h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
}

.app-downloads p {
  margin: 2px 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.store-badges a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 8px;
}

.store-badges img {
  display: block;
  width: auto;
  height: 52px;
}

.store-badges .google-play-badge {
  height: 69px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dialog-actions .secondary-button {
  background: var(--white);
}

.dialog-actions button[hidden] {
  display: none;
}

.shake {
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

@media (max-width: 960px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 660px) {
  .top-nav {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 64px;
    padding: 8px 12px 10px;
  }

  .buzz-logo-link {
    width: 94px;
    padding: 5px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  }

  .nav-meta {
    display: none;
  }

  .nav-title {
    display: none;
  }

  .nav-presenter {
    display: none;
  }

  .nav-actions {
    gap: 4px;
  }

  .tool-button {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    box-shadow: 3px 3px 0 var(--hot-pink);
  }

  .subheader {
    min-height: 34px;
    padding: 6px 14px;
    border-top-width: 4px;
    border-bottom-width: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .input-row,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .store-badges {
    align-items: center;
    flex-direction: column;
    gap: 0;
  }

  .app-downloads h3 {
    font-size: 1.35rem;
  }

  .app-downloads p {
    font-size: 0.9rem;
  }

  .store-badges img {
    height: 48px;
  }

  .store-badges .google-play-badge {
    height: 64px;
  }

  .store-badges a + a {
    margin-top: -8px;
  }

  .game-meta {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 12px;
    align-items: start;
  }

  .play-panel {
    padding: 18px 20px 28px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11.5vw, 3.2rem);
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 0.7rem;
  }

  .game-meta .eyebrow {
    display: none;
  }

  .hero-rule {
    height: 4px;
    margin: 10px 0 10px;
  }

  .hero-copy {
    margin: 12px 0 0;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .puzzle-number {
    width: 62px;
    min-height: 62px;
    padding: 0;
    font-size: 1.6rem;
    box-shadow: 5px 5px 0 var(--cyan);
  }

  .guess-form {
    margin-top: 16px;
  }

  .guess-form label {
    margin-bottom: 8px;
  }

  input,
  .input-row button {
    min-height: 58px;
  }

  .suggestions-menu {
    width: 100%;
  }

  .helper-text {
    display: none;
  }

  .status-card {
    min-height: 58px;
    margin-top: 14px;
    padding: 12px 16px;
  }

  .latest-label {
    margin-top: 14px;
    margin-bottom: 6px;
  }

  .secondary-button {
    min-height: 46px;
  }

  .history-section {
    margin-top: 22px;
  }

  .guess-row {
    grid-template-columns: 5px minmax(0, 1fr) 96px;
  }

  .guess-row::after {
    max-width: calc(100% - 96px);
  }

  .rank {
    font-size: 1.45rem;
  }

  .band {
    font-size: 0.64rem;
  }

  .side-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .score-card {
    min-height: 76px;
  }

  .score-card strong {
    font-size: 3rem;
  }

  .rank-panel {
    padding-top: 10px;
  }

  .legend li {
    min-height: 34px;
  }

  .share-card {
    padding: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .dialog-inner {
    padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  }

  .release-notice {
    padding: 24px 20px;
    box-shadow: 7px 7px 0 var(--hot-pink), 12px 12px 0 var(--cyan);
  }
}

@media (max-width: 350px) {
  .buzz-logo-link {
    width: 82px;
  }

  .nav-actions {
    gap: 3px;
  }

  .tool-button {
    width: 42px;
    height: 42px;
  }

  .play-panel {
    padding-inline: 16px;
  }
}

@media (max-height: 500px) and (min-width: 661px) {
  .top-nav {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 62px;
    padding: 8px 24px 10px;
  }

  .nav-title {
    display: none;
  }

  .nav-actions {
    grid-column: 2;
  }

  .subheader {
    min-height: 34px;
    padding-block: 6px;
    border-block-width: 4px;
    font-size: 0.92rem;
  }

  .play-panel {
    padding: 20px 28px 28px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-copy {
    display: none;
  }

  .helper-text {
    display: none;
  }

  .guess-form {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tool-button:hover {
    transform: none;
  }
}
