@font-face {
  font-family: "Archivo Black";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/archivo-black-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/archivo-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113;
}

@font-face {
  font-family: "Montserrat";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0b4fa7;
  --blue-dark: #06346f;
  --blue-pale: #eaf4fc;
  --ink: #101c2d;
  --muted: #5a6978;
  --line: rgba(11, 79, 167, 0.2);
  --brick: #b65f49;
  --brick-light: #d17a5d;
  --cream: #fff4dd;
  --pink: #f4b9c7;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.mobile-orientation {
  display: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.portal-header {
  border-bottom: 1px solid rgba(11, 79, 167, 0.12);
  background: #fff;
}

.portal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), 1380px);
  min-height: 78px;
  margin: 0 auto;
}

.portal-header__brand,
.portal-header__brand img {
  display: block;
}

.portal-header__brand img {
  width: 82px;
  height: auto;
}

.portal-header__back {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-header__back span {
  font-size: 1.08rem;
  transition: transform 150ms ease;
}

.portal-header__back:hover span,
.portal-header__back:focus-visible span {
  transform: translateX(-4px);
}

.game-page {
  width: min(calc(100% - 2rem), 1380px);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3.8rem) 0 clamp(4rem, 7vw, 6.5rem);
}

.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(1.4rem, 3vw, 2.3rem);
}

.game-intro__eyebrow,
.leaderboard__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-intro h1,
.game-overlay h2,
.game-notes h2,
.leaderboard h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 400;
}

.game-intro h1 {
  font-size: clamp(2.35rem, 5.5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.game-intro__lead {
  max-width: 520px;
  margin: 0 0 0.2rem;
  color: rgba(16, 28, 45, 0.72);
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  line-height: 1.65;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 960px) minmax(250px, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.4rem);
  align-items: start;
}

.game-shell {
  min-width: 0;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 18px 42px rgba(6, 52, 111, 0.14);
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 56px;
  min-height: 61px;
  color: #fff;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hud-item {
  min-width: 0;
  padding: 0.62rem clamp(0.58rem, 1.5vw, 1rem);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hud-item span {
  display: block;
  margin-bottom: 0.12rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hud-item strong {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-button {
  display: grid;
  width: 56px;
  min-height: 60px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.12rem;
}

.sound-button:hover,
.sound-button:focus-visible {
  color: var(--blue);
  background: var(--blue-pale);
  outline: 0;
}

.sound-button[aria-pressed="false"] {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.game-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #173752;
  isolation: isolate;
  touch-action: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
  touch-action: none;
}

#gameCanvas:focus-visible {
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--blue);
}

.game-overlay {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  width: min(620px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 22px 58px rgba(13, 34, 52, 0.28);
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.game-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px));
}

.game-overlay__art {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: flex-end;
  justify-content: center;
  min-height: 370px;
  padding: 1.15rem 1rem 0;
  background: var(--pink);
}

.game-overlay__art::before,
.game-overlay__art::after {
  position: absolute;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
}

.game-overlay__art::before {
  top: -34px;
  left: -45px;
}

.game-overlay__art::after {
  right: -42px;
  bottom: 62px;
}

.game-overlay__art span {
  position: absolute;
  z-index: 0;
  top: 1.05rem;
  left: 1rem;
  color: rgba(11, 79, 167, 0.92);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  line-height: 0.92;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.game-overlay__art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 158px);
  height: auto;
  filter: drop-shadow(0 12px 8px rgba(81, 42, 33, 0.18));
}

.game-overlay__content {
  align-self: center;
  padding: clamp(1.2rem, 3vw, 2.15rem);
}

.game-overlay__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-overlay h2 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.game-overlay__content > p:not(.game-overlay__eyebrow):not(.game-overlay__hint) {
  margin: 0.75rem 0 1rem;
  color: rgba(16, 28, 45, 0.72);
  font-size: 0.83rem;
  line-height: 1.55;
}

.game-overlay__score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game-overlay__score span {
  min-width: 0;
  padding: 0.7rem 0.45rem;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 850;
  text-transform: uppercase;
}

.game-overlay__score span + span {
  border-left: 1px solid var(--line);
}

.game-overlay__score strong {
  display: block;
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.score-form button {
  min-height: 45px;
  padding: 0.72rem 1rem;
  color: #fff;
  background: var(--blue);
  border: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.primary-button:hover,
.primary-button:focus-visible,
.score-form button:hover,
.score-form button:focus-visible {
  background: var(--blue-dark);
  outline: 3px solid rgba(11, 79, 167, 0.18);
  outline-offset: 2px;
}

.primary-button:disabled,
.score-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.game-overlay__hint {
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.12rem 0.3rem;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid rgba(11, 79, 167, 0.22);
  font-family: var(--body);
  font-size: 0.9em;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.score-form {
  margin: 0.85rem 0 1rem;
}

.score-form > label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.score-form input {
  min-width: 0;
  min-height: 45px;
  padding: 0.65rem 0.72rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(11, 79, 167, 0.28);
  border-right: 0;
  border-radius: 0;
  outline: 0;
}

.score-form input:focus {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.score-form__row + p,
.score-form__status {
  margin: 0.35rem 0 0 !important;
  font-size: 0.58rem !important;
  line-height: 1.45 !important;
}

.score-form__status.is-error {
  color: #a32924 !important;
}

.score-form__status.is-success {
  color: #176a4c !important;
  font-weight: 800;
}

.game-message {
  position: absolute;
  z-index: 6;
  top: 86px;
  left: 50%;
  max-width: calc(100% - 2rem);
  padding: 0.42rem 0.72rem;
  color: #fff;
  background: rgba(6, 52, 111, 0.92);
  font-size: 0.7rem;
  font-weight: 850;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -7px);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: nowrap;
}

.game-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.touch-controls {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  left: 0;
  display: none;
  grid-template-columns: auto auto minmax(18px, 1fr) auto;
  gap: clamp(0.45rem, 1.5vw, 0.8rem);
  padding: 0 clamp(0.7rem, 3vw, 1.2rem);
  pointer-events: none;
}

.touch-control {
  display: grid;
  width: clamp(78px, 20vw, 112px);
  height: clamp(58px, 15vw, 78px);
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(6, 52, 111, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 16px rgba(7, 31, 52, 0.18);
  cursor: pointer;
  font-size: clamp(1.55rem, 6vw, 2.25rem);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.touch-control--jump {
  grid-column: 4;
  width: clamp(96px, 22vw, 138px);
  color: var(--blue-dark);
  background: rgba(255, 244, 221, 0.92);
  border-color: rgba(255, 255, 255, 0.96);
  font-family: var(--display);
  font-size: clamp(0.82rem, 3vw, 1.02rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.touch-control--jump.is-active {
  color: #fff;
  background: var(--brick);
}

.touch-control.is-active {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(2px);
}

.game-stage.is-menu .touch-controls,
.game-stage.is-over .touch-controls,
.game-stage.is-paused .touch-controls {
  opacity: 0;
  pointer-events: none;
}

.game-notes {
  padding-top: 0.15rem;
}

.game-notes__section {
  position: relative;
  padding: 1rem 0 1.15rem 3.25rem;
  border-top: 1px solid var(--line);
}

.game-notes__number {
  position: absolute;
  top: 0.95rem;
  left: 0;
  margin: 0;
  color: var(--brick);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.game-notes h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.game-notes__section > p:last-child {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.58;
}

.game-notes ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.game-notes li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.game-notes li b {
  color: var(--ink);
}

.material {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 8px;
  border: 1px solid rgba(16, 28, 45, 0.22);
}

.material--brick {
  background: repeating-linear-gradient(90deg, var(--brick) 0 9px, #7f3d31 9px 10px);
}

.material--wood {
  background: #8c5639;
  border-top: 3px solid #cf8a54;
}

.material--iron {
  background: repeating-linear-gradient(135deg, #32363b 0 3px, #777d82 3px 5px);
}

.material--stone {
  background: var(--cream);
  border-color: #caa888;
}

.game-notes__keys {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 2;
}

.leaderboard {
  margin-top: clamp(3.6rem, 7vw, 6.5rem);
}

.leaderboard__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--blue);
}

.leaderboard h2 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.leaderboard__header > div > p:last-child {
  max-width: 720px;
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.leaderboard__mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: #fff;
  background: var(--brick);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.86rem;
  transform: rotate(5deg);
}

.leaderboard__table-wrap {
  overflow-x: auto;
}

.leaderboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.leaderboard th,
.leaderboard td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.leaderboard th {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leaderboard td:nth-child(1),
.leaderboard th:nth-child(1) {
  width: 92px;
  text-align: center;
}

.leaderboard td:nth-child(n+3),
.leaderboard th:nth-child(n+3) {
  text-align: right;
}

.leaderboard__place,
.leaderboard__score {
  color: var(--blue);
  font-family: var(--display);
  font-weight: 400;
}

.leaderboard__captain {
  font-weight: 800;
}

.leaderboard__empty,
.leaderboard__error {
  margin: 0;
  padding: 1.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
}

.leaderboard__error {
  color: #a32924;
}

.game-footer {
  padding: 1.35rem 1rem;
  color: rgba(16, 28, 45, 0.62);
  background: var(--blue-pale);
  font-size: 0.65rem;
  text-align: center;
}

.game-footer p {
  margin: 0;
}

.game-footer a {
  color: var(--blue);
  font-weight: 850;
}

@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .touch-controls {
    display: grid;
  }
}

@media (max-width: 900px) {
  .game-intro {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .game-intro__lead {
    max-width: 700px;
  }

  .play-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-shell {
    width: min(100%, 960px);
    margin: 0 auto;
  }

  .game-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .game-notes__keys {
    grid-column: 1 / -1;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .portal-header__inner {
    min-height: 65px;
  }

  .portal-header__brand img {
    width: 70px;
  }

  .portal-header__back {
    font-size: 0.62rem;
  }

  .game-page {
    width: 100%;
    padding-top: 1.35rem;
  }

  .game-intro,
  .game-notes,
  .leaderboard {
    width: calc(100% - 1.5rem);
    margin-right: auto;
    margin-left: auto;
  }

  .game-intro {
    margin-bottom: 1.1rem;
  }

  .game-intro h1 {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
  }

  .game-intro__lead {
    font-size: 0.82rem;
  }

  .game-shell {
    width: 100%;
    box-shadow: none;
  }

  .game-hud {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 46px;
    min-height: 54px;
  }

  .hud-item {
    padding: 0.52rem 0.45rem;
  }

  .hud-item span {
    font-size: 0.48rem;
  }

  .hud-item strong {
    font-size: clamp(0.74rem, 3.4vw, 0.9rem);
  }

  .sound-button {
    width: 46px;
    min-height: 54px;
  }

  .game-overlay {
    grid-template-columns: 28% minmax(0, 1fr);
    width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
  }

  .game-overlay__art {
    min-height: 320px;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
  }

  .game-overlay__art span {
    top: 0.7rem;
    left: 0.45rem;
    font-size: 1.35rem;
  }

  .game-overlay__art img {
    width: min(100%, 112px);
  }

  .game-overlay__content {
    padding: 1rem;
  }

  .game-overlay h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .game-overlay__content > p:not(.game-overlay__eyebrow):not(.game-overlay__hint) {
    font-size: 0.71rem;
    line-height: 1.48;
  }

  .game-overlay__score strong {
    font-size: 0.78rem;
  }

  .primary-button,
  .score-form button,
  .score-form input {
    min-height: 41px;
  }

  .game-notes {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.8rem;
  }

  .leaderboard {
    margin-top: 3.5rem;
  }

  .leaderboard__mark {
    width: 66px;
    height: 66px;
    font-size: 0.73rem;
  }

  .leaderboard th,
  .leaderboard td {
    padding: 0.8rem 0.5rem;
  }

  .leaderboard td:nth-child(1),
  .leaderboard th:nth-child(1) {
    width: 58px;
  }
}

@media (max-width: 700px) and (orientation: portrait) and (hover: none) {
  body {
    overflow: hidden;
  }

  .mobile-orientation {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
    background: var(--blue);
    text-align: center;
  }

  .mobile-orientation strong {
    font-family: var(--display);
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    font-weight: 400;
  }

  .mobile-orientation small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.74rem;
  }

  .mobile-orientation__phone {
    position: relative;
    display: block;
    width: 88px;
    height: 48px;
    margin-bottom: 0.75rem;
    border: 4px solid #fff;
    transform: rotate(-7deg);
  }

  .mobile-orientation__phone::after {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
  }
}

@media (max-width: 420px) {
  .hud-item--best {
    display: none;
  }

  .game-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 46px;
  }

  .game-overlay {
    grid-template-columns: 1fr;
  }

  .game-overlay__art {
    display: none;
  }

  .game-overlay__content {
    padding: 1.1rem;
  }

  .leaderboard th:nth-child(5),
  .leaderboard td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 950px) and (max-height: 540px) and (orientation: landscape) {
  body {
    background: var(--blue-dark);
  }

  .portal-header,
  .game-intro,
  .game-notes,
  .leaderboard,
  .game-footer {
    display: none;
  }

  .game-page {
    width: 100%;
    padding: 0;
  }

  .play-layout {
    display: block;
  }

  .game-shell {
    width: 100vw;
    height: 100svh;
    margin: 0 auto;
  }

  .game-hud {
    height: 48px;
    min-height: 48px;
  }

  .hud-item {
    padding-top: 0.35rem;
    padding-bottom: 0.3rem;
  }

  .sound-button {
    min-height: 48px;
  }

  .game-stage {
    width: 100%;
    height: calc(100svh - 48px);
    aspect-ratio: auto;
    background-color: var(--blue-dark);
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 34px, 58px 100%;
  }

  #gameCanvas {
    width: min(calc((100svh - 48px) * 1.333333), 100vw);
    height: 100%;
    margin: 0 auto;
  }

  .game-overlay {
    grid-template-columns: 25% minmax(0, 1fr);
    width: calc(100% - 1rem);
  }

  .game-overlay__art {
    min-height: 260px;
  }

  .game-overlay__content {
    padding: 0.75rem 1rem;
  }

  .game-overlay h2 {
    font-size: 1.55rem;
  }

  .game-overlay__content > p:not(.game-overlay__eyebrow):not(.game-overlay__hint) {
    margin: 0.45rem 0 0.6rem;
    font-size: 0.66rem;
  }
}

@media (max-width: 720px) and (max-height: 540px) and (orientation: landscape) {
  .touch-controls {
    grid-template-columns: 60px 60px minmax(12px, 1fr) 112px;
    gap: 0.28rem;
    padding: 0 0.65rem;
  }

  .touch-control {
    width: 60px;
    height: 62px;
    font-size: 1.65rem;
  }

  .touch-control--jump {
    width: 112px;
    font-size: 0.82rem;
  }

  .game-overlay {
    grid-template-columns: 26% minmax(0, 1fr);
  }

  .game-overlay__content {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .game-overlay__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
