:root {
  --bg: #08111d;
  --panel: #101d2b;
  --panel2: #152538;
  --line: #2a4964;
  --text: #edf6ff;
  --muted: #91a8bc;
  --green: #54b9ff;
  --green2: #287db6;
  --blue: #70c5ff;
  --gold: #f3cb78;
  --red: #f27670;
  --radius: 0;
  scroll-padding-top: 114px;
}

html {
  background: #08111d;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #07111bb8 0%, #091523d1 44%, #091421e8 100%),
    url("/gambel-banner.jpg") center 52px / min(100vw, 1280px) auto no-repeat fixed,
    url("/voxel-world.svg") center 35% / cover fixed no-repeat,
    #08111d;
  color: var(--text);
  font-family: "Trebuchet MS", "Arial Black", sans-serif;
}

::selection {
  background: #298ac9;
  color: #fff;
}

* {
  border-radius: 0 !important;
}

button,
input,
select {
  border-radius: 0 !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #83d2ff;
  outline-offset: 3px;
}

.topbar {
  height: 72px;
  gap: 30px;
  padding-inline: clamp(14px, 3vw, 46px);
  border-bottom: 1px solid #4b7590;
  background: #07121eec;
  box-shadow: 0 5px 25px #0007;
  backdrop-filter: blur(16px);
}

.brand {
  gap: 12px;
  font-family: "Arial Black", "Courier New", monospace;
  font-size: 19px;
  letter-spacing: 1px;
  text-shadow: 2px 2px #06101c;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid #91dcff;
  background: #23689b;
  box-shadow: 4px 4px 0 #07101a;
}

.brand-mark i {
  background: #d3efff;
}

.brand-accent {
  color: #82ceff;
}

.main-nav,
.top-actions {
  gap: 7px;
}

.nav-link {
  border-color: transparent;
  color: #b7cde0;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  border-color: #3c80ac;
  background: #14324b;
  color: #a7deff;
}

.balance-pill,
.profile-button {
  border-color: #31536f;
  background: #101f2e;
  box-shadow: inset 0 1px #ffffff08;
}

.balance-pill {
  height: 40px;
}

.coin-glyph {
  color: var(--gold);
  text-shadow: 0 0 10px #f4cb7860;
}

.button {
  min-height: 40px;
  border: 1px solid #467a9e;
  padding: 10px 15px;
  box-shadow: 3px 3px 0 #06101a;
  font-family: "Arial Black", "Trebuchet MS", sans-serif;
  letter-spacing: .35px;
  text-transform: uppercase;
  transition: filter .15s, transform .15s, box-shadow .15s;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #06101a;
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #06101a;
}

.button-green {
  border-color: #8ad5ff;
  background: linear-gradient(180deg, #54b9f1, #2875ac);
  color: #061827;
  box-shadow: 3px 3px 0 #0a2337;
}

.button-muted {
  border-color: #35556e;
  background: #17283a;
  color: #d7eaff;
}

.button-outline {
  border-color: #5daee0;
  color: #9cdbff;
}

.profile-button {
  min-width: 144px;
}

.avatar {
  border: 1px solid #446887;
  background: #0a1724;
}

.avatar img {
  image-rendering: pixelated;
}

.subnav {
  height: 35px;
  padding-inline: clamp(14px, 3vw, 46px);
  border-bottom: 1px solid #263d53;
  background: #0b1723dc;
  color: #aec4d6;
}

.subnav a {
  color: #b8d7ed;
}

.live-dot,
.online-count i,
.server-chip i {
  box-shadow: 0 0 0 3px #4fc98c1a, 0 0 12px #4fc98c;
}

.layout {
  max-width: 1660px;
  gap: 22px;
  padding: 28px clamp(14px, 3vw, 46px);
}

.chat-panel {
  top: 125px;
  height: calc(100vh - 151px);
  border-color: #34516a;
  background: #080e17eF;
  box-shadow: 5px 6px 0 #050b12a6;
  backdrop-filter: blur(12px);
}

.panel-heading {
  height: 48px;
  border-bottom-color: #29455d;
  background: #14283a;
  color: #cbe8ff;
}

.panel-heading > span:first-child::before {
  color: #4fc4ff;
  content: "[G] ";
  font-family: "Courier New", monospace;
}

.online-list,
.chat-compose {
  border-color: #233d54;
}

.online-name,
.chat-message,
.chat-compose input {
  border: 1px solid #29455d;
  background: #122335;
}

.online-name {
  color: #c6e7ff;
}

.chat-message strong {
  color: #81cdff;
  font-family: "Courier New", monospace;
  text-shadow: 1px 1px #000;
}

.chat-message strong::before {
  color: #8b9ca9;
  content: "<";
}

.chat-message strong::after {
  color: #8b9ca9;
  content: ">";
}

.chat-message span {
  color: #e2edf6;
}

.chat-compose input {
  min-height: 38px;
}

.icon-button {
  min-width: 38px;
  border: 1px solid #76caff;
  background: #358bc3;
  color: #071725;
}

.hero-card {
  min-height: 288px;
  height: 288px;
  border: 1px solid #4c7592;
  background: #0a1826;
  box-shadow: 6px 7px 0 #050a11b8, inset 0 1px #ffffff14;
}

.hero-card::before {
  z-index: 1;
  background:
    linear-gradient(90deg, #07121bf7 0%, #07121be8 34%, #07121b92 60%, #07121b12 100%),
    linear-gradient(0deg, #07121ba6 0%, transparent 42%);
  content: "";
  pointer-events: none;
}

.hero-card::after {
  z-index: 2;
  border: 0;
  background:
    linear-gradient(90deg, transparent 49%, #a7dcff0c 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #a7dcff0b 50%, transparent 51%);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-copy {
  z-index: 3;
  width: 67%;
  padding: 31px clamp(20px, 3vw, 42px);
}

.eyebrow {
  color: #91d4ff;
  letter-spacing: 1.6px;
}

.hero-copy h1,
.section-heading h2,
.game-title-row h3,
.info-card h3,
.server-game-card h3,
.modal-card h2 {
  font-family: "Arial Black", "Courier New", monospace;
  font-weight: 900;
  letter-spacing: -.8px;
  text-shadow: 2px 3px #050d16;
}

.hero-copy h1 {
  margin-top: 15px;
  font-size: clamp(27px, 3.2vw, 43px);
  line-height: .99;
}

.hero-copy h1 span {
  color: #83cfff;
}

.hero-copy p {
  max-width: 440px;
  color: #c0d0dd;
  font-size: 12px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.hero-art {
  inset: 0;
  opacity: 1;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 63%;
  image-rendering: pixelated;
}

.hero-scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07121b30, transparent 56%), linear-gradient(0deg, #07121b28, transparent 45%);
}

.hero-scene-tag {
  position: absolute;
  right: 17px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #91d9ff67;
  background: #071724cc;
  padding: 7px 9px;
  color: #d0edff;
  font: 800 9px "Courier New", monospace;
  letter-spacing: 1px;
}

.hero-scene-tag span {
  width: 7px;
  height: 7px;
  background: #67d99a;
  box-shadow: 0 0 10px #67d99a;
}

.game-section {
  margin-top: 32px;
}

.section-heading {
  margin-bottom: 15px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: 25px;
}

.server-chip {
  max-width: 52%;
  border: 1px solid #315875;
  background: #0d2030;
  padding: 8px 11px;
  color: #b1ddf8;
  font-size: 10px;
  text-transform: uppercase;
}

.game-tabs {
  gap: 12px;
}

.game-tab {
  min-height: 66px;
  border-color: #35546e;
  background: #0e1c2a;
  box-shadow: 3px 3px 0 #050b12ad;
}

.game-tab:hover {
  border-color: #77caff;
  background: #162a3d;
}

.game-tab.active {
  border-color: #78caff;
  background: linear-gradient(100deg, #173b57, #112538);
  box-shadow: inset 4px 0 #74caff, 3px 3px 0 #050b12ad;
}

.tab-icon,
.game-title-icon,
.server-game-icon {
  border: 1px solid #4a7799;
  background: #18334a;
  color: #9bd9ff;
}

.tab-icon {
  width: 38px;
  height: 38px;
}

.chicken-icon {
  background: #483c2b;
  color: #f3d37e;
}

.game-tab b {
  font-size: 13px;
}

.game-tab small {
  color: #a8bfd1;
  font-size: 10px;
}

.tab-arrow {
  color: #8bd1ff;
}

.game-workspace {
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border-color: #33516b;
  background: #0b1724f2;
  box-shadow: 5px 6px 0 #050a11aa;
}

.game-controls {
  padding: 5px;
}

.game-title-row {
  margin-bottom: 23px;
}

.game-title-icon {
  width: 38px;
  height: 38px;
  font-size: 17px;
}

.game-title-row h3 {
  font-size: 17px;
}

.game-subtitle,
.small-note {
  color: #9eb4c6;
}

.field-label {
  color: #b5cce0;
  letter-spacing: 1px;
}

.bet-input-row,
select,
#auth-form input {
  border: 1px solid #35546e;
  background: #091522;
}

.bet-input-row {
  min-height: 42px;
}

.bet-input-row input {
  color: #f3f9ff;
}

.bet-input-row button,
.quick-bets button {
  border: 1px solid #34546e;
  background: #162b3e;
  color: #cbe7f8;
}

.bet-input-row button:hover,
.quick-bets button:hover {
  border-color: #71c5fa;
  background: #1d405c;
}

.game-summary {
  border: 1px solid #2d4a62;
  background: #101f2e;
}

.game-summary strong,
.game-summary .accent-text {
  color: #91d3ff;
}

.main-game-button {
  min-height: 44px;
}

.board-wrap {
  border: 1px solid #365570;
  background-color: #0a1724;
  background-image:
    linear-gradient(90deg, #85cfff0a 1px, transparent 1px),
    linear-gradient(#85cfff0a 1px, transparent 1px),
    linear-gradient(145deg, #13283a, #091522 78%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 1px #ffffff0a;
}

.board-topline {
  border-color: #2b465e;
  color: #c1d9e9;
}

.round-status {
  border: 1px solid #355973;
  background: #12283a;
  color: #9dd8fc;
}

.mine-cell {
  border: 1px solid #4b7593;
  background: linear-gradient(135deg, #294a63, #152d43);
  box-shadow: 0 4px 0 #09131d, inset 0 1px #d5f0ff16;
}

.mine-cell:hover:not(:disabled) {
  border-color: #9cddff;
  background: #2d6388;
}

.mine-cell.safe {
  border-color: #64bbef;
  background: linear-gradient(135deg, #2885bd, #15547d);
}

.mine-cell.mine {
  border-color: #ef8175;
  background: linear-gradient(135deg, #a9494c, #5d2935);
}

.board-caption {
  border-color: #29445c;
  color: #9db4c6;
}

.chicken-board {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #4a89b3 #0b1925;
  scrollbar-width: thin;
}

.road-sign {
  min-width: 610px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #4e6f84;
  border-bottom: 0;
  background:
    linear-gradient(90deg, #10293b, #1d425a),
    repeating-linear-gradient(90deg, transparent 0 13px, #ffffff12 13px 15px);
  padding: 7px 11px;
  color: #d9f0ff;
  font: 800 9px "Courier New", monospace;
  letter-spacing: 1px;
}

.road-sign-light {
  width: 7px;
  height: 7px;
  background: #55db8b;
  box-shadow: 0 0 8px #55db8b;
}

.road-sign b {
  margin-left: auto;
  border: 1px solid #dfbf72;
  background: #e1c87d;
  padding: 3px 6px;
  color: #233344;
}

.chicken-road {
  min-width: 610px;
  min-height: 232px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  overflow: hidden;
  border: 1px solid #415464;
  border-top: 4px solid #92a4a8;
  border-bottom: 4px solid #8e9da0;
  padding: 9px 5px 11px;
  background:
    linear-gradient(180deg, #111e2a 0 8%, transparent 8% 92%, #88999a 92% 94%, #1c2a35 94%),
    repeating-linear-gradient(90deg, transparent 0 25px, #e1d994 25px 48px, transparent 48px 80px),
    repeating-linear-gradient(0deg, #1f2c37 0 37px, #283641 37px 39px, #202d38 39px 77px);
  background-position: center, center 54%, center;
}

.road-step {
  position: relative;
  height: 182px;
  min-width: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  border-right: 1px solid #9aabba24;
  background:
    linear-gradient(180deg, #ffffff0a 0 1px, transparent 1px 37px, #0b15203b 38px 40px, transparent 41px),
    linear-gradient(90deg, #39434b, #2d3943 50%, #3b444c);
  color: #c6d8e4;
}

.road-step:nth-child(even) {
  background:
    linear-gradient(180deg, #ffffff0a 0 1px, transparent 1px 37px, #0b15203b 38px 40px, transparent 41px),
    linear-gradient(90deg, #303b45, #27333d 50%, #353f48);
}

.road-step::after {
  position: absolute;
  right: 8%;
  bottom: 12px;
  left: 8%;
  height: 4px;
  background: #e3d995;
  box-shadow: 0 -7px 0 #13202c;
  content: "";
  opacity: .8;
}

.road-step > span:not(.hen):not(.road-sewer):not(.road-car) {
  z-index: 2;
  min-width: 53px;
  border: 1px solid #9cbbcf;
  background: #13283a;
  padding: 6px 7px;
  color: #e4f4ff;
  font: 800 10px "Courier New", monospace;
  text-align: center;
  box-shadow: 3px 3px 0 #0b121a;
}

.road-sewer {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 4px solid #19252d;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 4px, #88949a 4.5px 6px, transparent 6.5px),
    repeating-linear-gradient(0deg, transparent 0 5px, #25313a 5px 7px, transparent 7px 10px),
    repeating-linear-gradient(90deg, #a4afb2 0 3px, #56656d 3px 6px);
  box-shadow: 0 4px 0 #080f16, inset 0 2px #e0e9e9, 0 0 0 2px #59676d;
  transform: translateX(-50%);
}

.road-sewer::after {
  position: absolute;
  inset: -8px;
  border: 2px dashed #d1d8d5;
  border-radius: 50%;
  content: "";
  opacity: .8;
}

.road-car {
  position: absolute;
  z-index: 3;
  bottom: 61px;
  left: -18px;
  width: 76px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 5px 0 #10161dbd);
  animation: road-car-drive 2.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.road-step > span.road-car {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.road-car svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  image-rendering: pixelated;
}

.road-car-0 .car-body {
  fill: #d94d4f;
}

.road-car-1 .car-body {
  fill: #e6b842;
}

.road-car-2 .car-body {
  fill: #4396d0;
}

.road-car-1 {
  animation-direction: alternate-reverse;
}

.road-car-2 {
  animation-duration: 3.4s;
}

@keyframes road-car-drive {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: translateX(68px);
  }
}

.road-step.safe {
  background: linear-gradient(180deg, #1c3440 0 12%, #287550 12% 15%, #37493f 15% 100%);
  color: #fff;
  animation: pop .2s ease;
}

.road-step.safe::after {
  background: #89d79b;
}

.road-step.safe > span:not(.hen):not(.road-sewer):not(.road-car) {
  border-color: #90daaa;
  background: #17613f;
}

.road-step.danger {
  background: linear-gradient(180deg, #542f37 0 12%, #d56452 12% 15%, #503b39 15% 100%);
  color: #fff;
}

.road-step.danger > span:not(.hen):not(.road-sewer):not(.road-car) {
  border-color: #ef9b7c;
  background: #8c423e;
}

.road-curb {
  min-width: 610px;
  display: flex;
  justify-content: space-between;
  border: 1px solid #526778;
  border-top: 0;
  background: #182b3b;
  padding: 6px 10px;
  color: #adc8dc;
  font: 800 8px "Courier New", monospace;
  letter-spacing: 1px;
}

.road-curb span:first-child {
  color: #84cbf4;
}

.road-step .hen {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  top: auto;
  left: 50%;
  width: 66px;
  height: 66px;
  display: block;
  font-size: 0;
  transform: translateX(-50%);
}

.road-step .hen::after {
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: -3px;
  left: -3px;
  height: 7px;
  background: #050b10;
  content: "";
}

.chicken-controls {
  min-width: 610px;
  margin-top: 0;
  border: 1px solid #344e64;
  border-top: 0;
  background: #0e1d2b;
  padding: 9px 10px;
  color: #c7dced;
}

.chicken-controls .button {
  min-height: 36px;
  padding: 8px 12px;
}

.server-games-section {
  margin: 31px 0;
}

.server-games-grid {
  gap: 13px;
}

.server-game-card,
.info-card {
  position: relative;
  border: 1px solid #34536d;
  background: linear-gradient(145deg, #132539f5, #0a1724f5);
  box-shadow: 4px 5px 0 #050b12a6;
}

.server-game-card {
  min-height: 142px;
  padding: 17px;
  transition: border-color .15s, transform .15s;
}

.server-game-card:hover,
.info-card:hover {
  border-color: #72bfe9;
}

.server-game-card:hover {
  transform: translateY(-2px);
}

.server-game-icon {
  width: 42px;
  height: 42px;
  box-shadow: 3px 3px 0 #07111a;
}

.server-game-card h3 {
  color: #eef8ff;
  font-size: 15px;
}

.server-game-card p,
.info-card p,
.profile-summary p {
  color: #a9bfd1;
  font-size: 11px;
  line-height: 1.65;
}

.server-game-card code,
.form-hint code {
  border: 1px solid #34536d;
  background: #081522;
  color: #99d9ff;
}

.lower-grid {
  gap: 13px;
}

.info-card {
  padding: 18px;
}

.profile-summary {
  gap: 13px;
}

.profile-summary h3 {
  margin-bottom: 4px;
  color: #eff8ff;
  font-size: 15px;
}

.profile-head {
  width: 48px;
  height: 48px;
  border: 2px solid #5794ba;
  box-shadow: 3px 3px 0 #07111a;
}

.safe-chip {
  border: 1px solid #38586e;
  background: #102334;
  padding: 6px 8px;
  color: #a6ddc3;
}

.modal-backdrop {
  background: #030914d9;
  backdrop-filter: blur(7px);
}

.modal-card {
  border: 1px solid #5791b7;
  background: linear-gradient(145deg, #172c40, #0b1724);
  box-shadow: 8px 8px 0 #03080f;
}

.modal-close {
  border: 1px solid #456b86;
  background: #122439;
}

.modal-card h2 {
  color: #f0f8ff;
}

.auth-switch,
#auth-form input,
.command-box {
  border: 1px solid #36556e;
  background: #0b1825;
}

.auth-switch button.active {
  background: #1d4764;
  color: #eaf7ff;
}

.form-hint {
  color: #b0c6d8;
}

.toast {
  border: 1px solid #5486a8;
  background: #14283a;
  box-shadow: 5px 5px 0 #050a11;
}

.toast.error {
  border-color: #a75351;
  background: #3c2028;
}

.games-menu {
  border: 1px solid #4b7592;
  background: #0d1b29f7;
  box-shadow: 6px 7px 0 #03080fbd;
}

.games-menu::before {
  height: 4px;
  background: repeating-linear-gradient(90deg, #83d0ff 0 18px, #317cac 18px 36px);
}

.menu-category h2 {
  color: #99c9e8;
}

.menu-game {
  border-color: #29465e;
  background: #112335;
}

.menu-game:hover {
  border-color: #6bb6e3;
  background: #18344b;
}

.menu-game-glyph {
  border-color: #3c6685;
  background: #18364e;
}

.menu-category + .menu-category {
  border-color: #28445b;
}

.online-count,
.muted,
.chat-footer {
  color: #9bb2c4;
}

#game-workspace,
.game-section,
.server-games-section,
#rewards,
#fairness,
#chat {
  scroll-margin-top: 124px;
}

@media (min-width: 1500px) {
  .layout {
    grid-template-columns: 258px minmax(0, 1fr);
  }

  .game-workspace {
    grid-template-columns: 255px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 9px;
  }

  .main-nav {
    flex: 1;
  }

  .top-actions {
    margin-left: auto;
  }

  .layout {
    padding-top: 18px;
  }

  .hero-card {
    height: 270px;
  }

  .hero-copy {
    width: 76%;
  }

  .chat-panel {
    position: static;
    width: 100%;
    height: 300px;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  :root {
    scroll-padding-top: 100px;
  }

  .topbar {
    min-height: 58px;
    gap: 7px;
    padding: 7px 10px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .main-nav {
    flex: 0 0 auto;
  }

  .nav-link {
    padding: 8px;
  }

  .top-actions {
    gap: 5px;
  }

  .top-actions .button {
    min-width: 34px;
    padding: 8px;
    font-size: 0;
  }

  .top-actions .button-glyph {
    font-size: 14px;
  }

  .balance-pill {
    gap: 4px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .profile-button {
    min-width: 38px;
    grid-template-columns: 28px auto;
    padding-inline: 5px;
  }

  .profile-button small {
    display: none;
  }

  .subnav {
    height: 32px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .subnav a {
    padding-left: 8px;
    font-size: 9px;
  }

  .layout {
    gap: 12px;
    padding: 11px 10px;
  }

  .hero-card {
    height: 246px;
    min-height: 246px;
  }

  .hero-copy {
    width: 100%;
    padding: 22px 17px;
  }

  .hero-card::before {
    background: linear-gradient(90deg, #07121bf5, #07121bdc 54%, #07121b79), linear-gradient(0deg, #07121bb0, transparent);
  }

  .hero-scene {
    object-position: 58% center;
  }

  body {
    background-attachment: scroll, scroll, scroll, scroll;
    background-position: center, center 44px, center 35%, center;
    background-size: auto, 100vw auto, cover, auto;
  }

  .hero-copy h1 {
    max-width: 290px;
    font-size: 27px;
  }

  .hero-copy p {
    max-width: 310px;
    font-size: 10px;
  }

  .hero-scene-tag {
    right: 9px;
    bottom: 9px;
    font-size: 7px;
  }

  .game-section {
    margin-top: 24px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .server-chip {
    max-width: 100%;
  }

  .game-tabs {
    gap: 7px;
  }

  .game-tab {
    min-height: 62px;
    gap: 7px;
    padding: 8px;
  }

  .tab-icon {
    width: 30px;
    height: 30px;
    flex: none;
  }

  .game-tab b {
    font-size: 11px;
  }

  .game-tab small {
    max-width: 100px;
    font-size: 8px;
    line-height: 1.3;
  }

  .tab-arrow {
    display: none;
  }

  .game-workspace {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 11px;
  }

  .game-title-row {
    margin-bottom: 13px;
  }

  .game-summary {
    grid-template-columns: 1fr auto;
  }

  .board-wrap {
    min-width: 0;
    padding: 9px;
  }

  .board-caption {
    gap: 7px;
    font-size: 8px;
  }

  .server-games-section {
    margin: 23px 0;
  }

  .server-games-grid {
    grid-template-columns: 1fr;
  }

  .server-game-card {
    min-height: 0;
  }

  .server-game-card p {
    min-height: 0;
  }

  .lower-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    height: 260px;
  }

  .games-menu-wrap {
    position: static;
  }

  .games-menu {
    position: fixed;
    top: 97px;
    left: 10px;
    width: calc(100vw - 20px);
    max-height: 68vh;
  }

  .menu-category {
    grid-template-columns: 1fr;
  }

  .menu-category h2 {
    grid-column: 1;
  }

  .road-sign,
  .chicken-road,
  .road-curb,
  .chicken-controls {
    min-width: 610px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
