:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #111a25;
  color: #f1ead5;
  --panel: rgba(10, 16, 22, 0.9);
  --border: #6e6657;
  --grid: rgba(82, 104, 69, 0.16);
  --cell: rgba(220, 229, 169, 0.12);
  --snake: #526845;
  --snake-head: #dce5a9;
  --accent: #f0dc6a;
  --shadow: rgba(0, 0, 0, 0.28);
  --console-shell: #d4ccb8;
  --console-shadow: #8f8673;
  --console-line: #6e6657;
  --console-highlight: #f1ead7;
  --console-copy: #40392f;
  --system-button: #7f7d92;
  --system-button-shadow: #514f60;
  --action-button: #f0dc6a;
  --action-button-shadow: #aa9242;
  --screen-bezel: #6b7066;
  --screen-inner: #434b3d;
  --lcd-top: #c6d298;
  --lcd-bottom: #86955f;
  --lcd-dark: #283623;
  --lcd-mid: #526845;
  --lcd-light: #dce5a9;
  --snake-dpad-shell: clamp(228px, 62vw, 320px);
  --snake-dpad-button: clamp(72px, 19vw, 96px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.snake-stage {
  position: relative;
  width: min(100%, 332px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 18px 22px;
  border-radius: 48px 48px 58px 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #7d8099 0%, #737791 44%, #636980 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.24),
    inset 0 -5px 0 rgba(40, 44, 57, 0.22),
    0 24px 40px rgba(0, 0, 0, 0.24);
}

.snake-stage::before {
  content: "";
  position: absolute;
  inset: 8px 10px 10px;
  border-radius: 42px 42px 52px 52px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.snake-console__top {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 4px;
}

.snake-phone__speaker {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.snake-phone__speaker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #242737;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(0, 0, 0, 0.18);
}

.snake-phone__brand {
  min-width: 68px;
  min-height: 20px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: linear-gradient(180deg, #1c202e, #0f121a);
  color: #f3f3f1;
  font: 800 0.8rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 5px rgba(0, 0, 0, 0.18);
}

.snake-stage__board-wrap {
  width: 100%;
  display: grid;
  justify-items: center;
}

.snake-display-shell {
  position: relative;
  width: 100%;
  padding: 18px 13px 16px;
  border-radius: 34px 34px 58px 58px;
  background:
    linear-gradient(180deg, #f1efeb 0%, #d7d2ca 58%, #b8b4ae 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 0 rgba(118, 112, 107, 0.2),
    0 12px 18px rgba(0, 0, 0, 0.16);
}

.snake-display-shell::before {
  content: "";
  position: absolute;
  inset: 9px 9px 14px;
  border-radius: 30px 30px 52px 52px;
  background:
    linear-gradient(180deg, rgba(85, 91, 104, 0.22), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #707484 0%, #646978 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -4px 8px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.snake-display-shell__accent {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #a4e9e1, #65bdb2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.snake-stage .board {
  position: relative;
  width: min(100%, 234px);
  padding: 12px 8px 8px;
  border: 3px solid #3e4a3d;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #91a761 0%, #7b8d58 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -8px 12px rgba(28, 34, 26, 0.18);
  overflow: hidden;
  z-index: 1;
}

.snake-stage .board::before {
  opacity: 0.1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 34%);
}

.snake-stage .board::after {
  opacity: 0.12;
  background:
    linear-gradient(transparent 50%, rgba(255, 255, 255, 0.04) 50%),
    radial-gradient(circle at center, transparent 42%, rgba(25, 34, 23, 0.16) 100%);
  background-size: 100% 4px, 100% 100%;
}

.board__hud {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  pointer-events: none;
  z-index: 3;
}

.board__hud-item {
  display: grid;
  gap: 1px;
  color: #202a1c;
}

.board__hud-item--best {
  justify-items: end;
  text-align: right;
}

.board__hud-label {
  font: 800 0.38rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.board__hud-item strong {
  font: 900 0.82rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.08em;
}

.snake-softkeys {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  padding: 0 10px;
  margin-top: -2px;
}

.snake-softkey {
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7e7a72;
  background: linear-gradient(180deg, #f1eeea 0%, #d4cec7 100%);
  color: #3b3f4d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 6px 10px rgba(0, 0, 0, 0.12);
}

.snake-softkey--left,
.snake-softkey--right {
  height: 40px;
  border-radius: 24px 24px 18px 18px;
  font-size: 0.9rem;
}

.snake-softkey--left {
  transform: rotate(-15deg);
}

.snake-softkey--right {
  transform: rotate(15deg);
}

.snake-softkey--center-left,
.snake-softkey--center-right {
  width: 40px;
  height: 28px;
  border-radius: 16px 16px 14px 14px;
  font-size: 0.78rem;
}

.snake-softkey:disabled {
  color: rgba(59, 63, 77, 0.38);
  background: linear-gradient(180deg, #ded9d2 0%, #c7c1b8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}

.controls.controls--phone {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0;
}

.controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 214px);
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
}

.controls.controls--phone .controls__pad.snake-keypad::before,
.controls.controls--phone .controls__pad.snake-keypad::after,
.controls.controls--phone .controls__hub {
  display: none !important;
}

.controls.controls--phone .controls__button.controls__button--key {
  width: 58px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  border-radius: 999px;
  border: 1px solid #7f7b74;
  background: linear-gradient(180deg, #f4f2ef 0%, #d7d2cc 100%);
  color: #2f3340;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 5px 8px rgba(0, 0, 0, 0.12);
  text-shadow: none;
}

.controls.controls--phone .controls__button.controls__button--key:disabled {
  opacity: 1;
  cursor: default;
}

.controls.controls--phone .controls__button.controls__button--active {
  border-color: #706c64;
  background: linear-gradient(180deg, #ffffff 0%, #e2ddd8 100%);
}

.controls.controls--phone .controls__button.controls__button--active:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.12);
}

.controls.controls--phone .controls__button.controls__button--zero {
  width: 66px;
  justify-self: center;
}

.controls.controls--phone .controls__button.controls__button--sound[data-muted="true"] {
  background: linear-gradient(180deg, #e6dfd7 0%, #c6bfb8 100%);
}

.controls__key-number {
  display: block;
  font: 900 1rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.controls__key-letters {
  display: block;
  font: 800 0.34rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.76;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .panel.xiiy-panel {
  padding:
    max(8px, env(safe-area-inset-top, 0px))
    max(8px, env(safe-area-inset-right, 0px))
    max(8px, env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #111923 0%, #090f15 100%);
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__hero {
  display: none !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
  width: min(100%, 332px);
  gap: 10px;
  padding: 16px 16px 22px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  padding: 16px 12px 14px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  width: min(100%, 228px);
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
  gap: 7px;
  padding-inline: 8px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right {
  height: 38px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--center-left,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--center-right {
  width: 38px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 208px);
  gap: 8px 9px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  width: 56px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--zero {
  width: 64px;
}

@media (max-width: 360px) {
  .snake-stage {
    width: min(100%, 314px);
    padding: 16px 14px 20px;
  }

  .snake-display-shell {
    padding: 15px 10px 13px;
  }

  .snake-stage .board {
    width: min(100%, 220px);
  }

  .snake-softkeys {
    grid-template-columns: minmax(0, 1fr) 36px 36px minmax(0, 1fr);
    gap: 6px;
  }

  .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 198px);
    gap: 7px 8px;
  }

  .controls.controls--phone .controls__button.controls__button--key {
    width: 53px;
    height: 32px;
    min-height: 32px;
  }

  .controls.controls--phone .controls__button.controls__button--zero {
    width: 60px;
  }

  .controls__key-number {
    font-size: 0.92rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #111a25, #0a1118);
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 540px);
  background: var(--panel);
  border: 1px solid rgba(110, 102, 87, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 45px var(--shadow);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.game-template-app.app {
  place-items: stretch;
  padding: 18px;
}

.game-template-panel.panel {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 18px;
}

.game-template-nav {
  margin-bottom: 20px;
}

.game-template-showcase.snake-template-showcase {
  display: grid;
  gap: 22px;
}

.snake-template-stage {
  width: 100%;
  justify-items: center;
}

.snake-template-frame {
  width: 100%;
  display: grid;
  justify-items: center;
  padding: 22px 18px;
}

.snake-template-frame .snake-stage {
  margin-inline: auto;
}

.snake-template-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.game-template-hero,
.game-template-support {
  min-width: 0;
}

@media (min-width: 980px) {
  .game-template-showcase.snake-template-showcase {
    grid-template-columns: minmax(380px, 520px) minmax(320px, 1fr);
    align-items: start;
  }

  .snake-template-stage {
    order: 1;
  }

  .snake-template-sidebar {
    order: 2;
  }
}

@media (max-width: 979px) {
  .snake-template-frame {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .snake-template-frame::before {
    display: none;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #d6cdb7;
  font-weight: 700;
  text-decoration: none;
}

.panel__header,
.panel__actions,
.controls__row {
  display: flex;
  align-items: center;
}

.panel__header,
.panel__actions {
  justify-content: space-between;
  gap: 12px;
}

.setting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #efe7d1;
  font-weight: 700;
}

.setting--stacked {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.setting input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--console-line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(245, 240, 226, 0.94), rgba(210, 199, 176, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.setting input[type="checkbox"]:checked {
  border-color: #4f6542;
  background:
    linear-gradient(180deg, var(--lcd-top), var(--lcd-bottom));
  box-shadow:
    inset 0 0 0 2px rgba(40, 54, 35, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.setting select {
  border: 2px solid var(--console-line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lcd-top), var(--lcd-bottom));
  color: var(--lcd-dark);
  font: inherit;
  font-weight: 800;
  padding: 8px 14px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9ceb0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.scoreboard {
  min-width: 96px;
  text-align: right;
}

.scoreboard span {
  display: block;
  font-size: 0.85rem;
  color: #d9ceb0;
}

.scoreboard strong {
  font-size: 2rem;
}

.snake-hud.xiiy-shell__stats--triple {
  grid-template-columns: 64px 64px repeat(2, minmax(0, 1fr));
  width: min(100%, 508px);
}

.snake-hud__util {
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #5f5d71;
  background: linear-gradient(180deg, #8c8aa0, var(--system-button));
  color: #f5f1e4;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.snake-hud__util:hover,
.snake-hud__util:focus-visible {
  border-color: #6f6d82;
  background: linear-gradient(180deg, #9896ad, #858398);
}

#mute-button.snake-hud__util {
  position: relative;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
}

#mute-button.snake-hud__util::before {
  content: "🔊";
  color: #f5f1e4;
  font-size: 0.94rem;
  line-height: 1;
}

#mute-button.snake-hud__util[data-muted="true"]::before {
  content: "🔇";
}

button {
  border: 2px solid var(--console-line);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8e37e, var(--action-button));
  color: #2f281b;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.18);
}

button:hover,
button:focus-visible {
  background: linear-gradient(180deg, #fae995, #f0d55d);
}

.board {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background:
    linear-gradient(180deg, #6b7066 0%, #434b3d 100%);
  border: 4px solid rgba(107, 112, 102, 0.96);
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -8px 0 rgba(0, 0, 0, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.board::before,
.board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.board::before {
  opacity: 0.2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 38%);
}

.board::after {
  opacity: 0.22;
  background:
    linear-gradient(transparent 50%, rgba(255, 255, 255, 0.04) 50%),
    radial-gradient(circle at center, transparent 38%, rgba(40, 54, 35, 0.18) 100%);
  background-size: 100% 4px, 100% 100%;
}

.board__canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: transparent;
}

.board__overlay {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  padding: 18px;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.board__overlay[data-visible="false"] {
  opacity: 0;
}

.board__overlay[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.board__overlay-panel {
  width: min(100%, 240px);
  padding: 18px 16px;
  display: grid;
  gap: 8px;
  text-align: center;
  border: 2px solid var(--console-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(222, 213, 192, 0.98), rgba(199, 189, 166, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.board__overlay-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  pointer-events: auto;
}

.board__overlay-button {
  min-height: 44px;
  color: #2a2418;
  font-weight: 800;
  text-shadow: none;
}

.board__overlay-button--secondary {
  background: linear-gradient(180deg, #8c8aa0, var(--system-button));
  color: #f5f1e4;
}

.snake-settings {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(132px, 180px);
  gap: 10px;
  align-items: stretch;
}

.snake-settings__card {
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(110, 102, 87, 0.38);
  background:
    linear-gradient(180deg, rgba(22, 31, 42, 0.92), rgba(12, 18, 25, 0.94)),
    radial-gradient(circle at top, rgba(240, 220, 106, 0.08), transparent 42%);
}

.snake-settings .setting {
  width: auto;
  gap: 8px;
  font-size: 0.96rem;
}

.snake-settings .setting--stacked {
  gap: 4px;
}

.snake-settings .setting--stacked,
.snake-settings .setting select {
  width: auto;
}

.snake-settings .setting span {
  line-height: 1.15;
}

.snake-settings input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.snake-settings select {
  min-height: 38px;
  width: 100%;
  padding: 6px 12px;
}

.board__eyebrow {
  margin: 0;
  color: #5c6e47;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.board__overlay-title {
  color: #2f291e;
  font-size: 1.45rem;
  line-height: 1;
}

.board__overlay-copy {
  color: #4b4235;
  font-size: 0.92rem;
  line-height: 1.35;
}

.instructions {
  color: var(--accent);
  font-weight: 600;
}

.instructions p {
  margin: 0;
}

.instructions p + p {
  margin-top: 6px;
}

.xiiy-stage {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 12px;
}

.snake-stage {
  width: 100%;
}

.snake-stage__board-wrap {
  width: 100%;
  display: grid;
  justify-items: center;
}

.xiiy-shell__support {
  display: grid;
  gap: 12px;
}

.seo-copy {
  margin-top: 18px;
  padding: 18px;
  border: 2px solid rgba(24, 74, 150, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent);
}

.seo-copy__header {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.seo-copy__logo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(24, 74, 150, 0.16);
}

.seo-copy__title {
  display: grid;
  gap: 8px;
}

.seo-copy__lead {
  margin: 0;
  color: #183f7d;
  font-weight: 700;
}

.seo-copy h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #14213d;
}

.seo-copy p {
  margin: 0;
  line-height: 1.6;
}

.seo-copy p + p {
  margin-top: 10px;
}

.game-hub {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 2px solid rgba(24, 74, 150, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.game-hub__heading {
  margin-bottom: 14px;
}

.game-hub__heading h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #14213d;
}

.game-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.game-chip {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(24, 74, 150, 0.14);
  box-shadow: 0 10px 22px rgba(24, 74, 150, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.game-chip:hover,
.game-chip:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(24, 74, 150, 0.28);
  box-shadow: 0 14px 28px rgba(24, 74, 150, 0.14);
}

.game-chip__image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}

.game-chip__label {
  text-align: center;
  color: #183f7d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.vinyl-cta {
  margin-top: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  border: 2px solid rgba(24, 74, 150, 0.24);
  background: rgba(28, 37, 65, 0.92);
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.18);
}

.vinyl-cta__disc {
  width: 136px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid #184a96;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 2.4%, rgba(0, 0, 0, 0.86) 2.6% 4.2%, transparent 4.3%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 6px),
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 50%, #2b2d34 0%, #17181c 58%, #090a0d 100%);
}

.vinyl-cta__label {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.98), rgba(247, 239, 214, 0.96) 62%, rgba(218, 206, 168, 0.94));
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.vinyl-cta__label img {
  width: 66%;
  height: auto;
  object-fit: contain;
}

.vinyl-cta__copy {
  display: grid;
  gap: 8px;
}

.vinyl-cta__copy .eyebrow {
  margin: 0;
  color: #d7e4ff;
}

.vinyl-cta__copy strong {
  color: #fff7dd;
  font-size: 1.28rem;
  line-height: 1.05;
}

.vinyl-cta__copy span {
  color: #d3ddf5;
  line-height: 1.45;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.utility-link--shop {
  background: #f5ce38;
  color: #141518;
}

.utility-link--social {
  background: #1c2541;
  color: #f7f4ea;
  gap: 10px;
}

.utility-link--social::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: url("../assets/favicon.png") center / cover no-repeat;
}

.controls {
  order: 5;
  width: 100%;
  margin-top: 0;
  display: none;
  justify-items: center;
  gap: 12px;
}

.controls__system {
  width: min(100%, 320px);
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.controls__system > button {
  flex: 1 1 0;
  min-width: 88px;
  max-width: 102px;
  min-height: 44px;
  padding: 0 12px;
  border-width: 1px;
  border-color: #5f5d71;
  background: linear-gradient(180deg, #8c8aa0, var(--system-button));
  color: #f5f1e4;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 6px 10px rgba(0, 0, 0, 0.12);
}

.controls__system > button:disabled {
  border-color: rgba(110, 102, 87, 0.56);
  background: linear-gradient(180deg, rgba(201, 196, 187, 0.92), rgba(180, 174, 165, 0.94));
  color: rgba(79, 73, 61, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  cursor: default;
}

.controls__pad {
  --dpad-shell-size: min(100%, var(--snake-dpad-shell));
  --dpad-button-size: var(--snake-dpad-button);
  position: relative;
  width: var(--dpad-shell-size);
  min-height: var(--dpad-shell-size);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  padding: 12px;
  isolation: isolate;
}

.controls__pad::before,
.controls__pad::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.controls__pad::before {
  inset: 8px;
  border-radius: 32px;
  border: 1px solid rgba(95, 126, 160, 0.32);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(16, 26, 38, 0.96), rgba(7, 11, 17, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 34px rgba(0, 0, 0, 0.28);
  z-index: -2;
}

.controls__pad::after {
  inset: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at center, rgba(55, 167, 255, 0.06), transparent 60%);
  z-index: -1;
}

.controls__button {
  width: var(--dpad-button-size);
  height: var(--dpad-button-size);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  border: 2px solid rgba(22, 66, 132, 0.92);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.78), transparent 26%),
    linear-gradient(180deg, #fff1a8 0%, #f5d862 42%, #d2a726 100%);
  color: #15203a;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -6px 0 rgba(162, 117, 12, 0.38);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.controls__button:hover,
.controls__button:focus-visible {
  filter: brightness(1.03) saturate(1.04);
}

.controls__button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -4px 0 rgba(162, 117, 12, 0.32);
}

.controls__button span {
  display: block;
  transform: translateY(-1px);
}

.controls__button--up {
  grid-area: 1 / 2;
}

.controls__button--left {
  grid-area: 2 / 1;
}

.controls__button--right {
  grid-area: 2 / 3;
}

.controls__button--down {
  grid-area: 3 / 2;
}

.controls__hub {
  position: relative;
  grid-area: 2 / 2;
  width: clamp(48px, 13vw, 62px);
  height: clamp(48px, 13vw, 62px);
  border-radius: 50%;
  border: 1px solid rgba(93, 122, 150, 0.44);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at center, rgba(16, 26, 38, 0.98), rgba(8, 12, 18, 1));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.controls__hub::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(243, 207, 79, 0.2);
  background: radial-gradient(circle at center, rgba(243, 207, 79, 0.12), transparent 72%);
}

body.snake-fullscreen {
  overflow: hidden;
}

body.snake-fullscreen .app {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

body.snake-fullscreen .snake-template-frame {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

body.snake-fullscreen .snake-template-frame::before {
  display: none;
}

body.snake-fullscreen .panel.xiiy-panel {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(10px, env(safe-area-inset-right, 0px))
    max(10px, env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  border: 0;
  border-radius: 0;
}

body.snake-fullscreen .xiiy-shell__nav,
body.snake-fullscreen .xiiy-shell__support,
body.snake-fullscreen .seo-copy,
body.snake-fullscreen .game-hub,
body.snake-fullscreen .vinyl-cta,
body.snake-fullscreen .instructions {
  display: none;
}

body.snake-fullscreen .xiiy-shell__hero {
  gap: 10px;
  padding: 10px 12px;
}

body.snake-fullscreen .xiiy-shell__title {
  display: none;
}

body.snake-fullscreen .xiiy-shell__stats {
  width: 100%;
}

body.snake-fullscreen .xiiy-shell__toolbar {
  gap: 8px;
}

body.snake-fullscreen .snake-settings {
  gap: 8px;
}

body.snake-fullscreen .snake-settings__card {
  min-height: 52px;
  padding: 8px 12px;
}

body.snake-fullscreen .xiiy-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  justify-items: center;
}

body.snake-fullscreen .board {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 8px;
}

body.snake-fullscreen .controls {
  display: grid;
  margin-top: 0;
  gap: 10px;
}

body.snake-fullscreen .controls__pad {
  --dpad-shell-size: min(100%, 244px);
  --dpad-button-size: min(16vw, 64px);
}

body.snake-fullscreen .controls__system > button {
  min-width: 136px;
}

body.snake-fullscreen.snake-landscape .panel.xiiy-panel {
  grid-template-columns: minmax(0, 1fr) minmax(188px, 220px);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 10px;
}

body.snake-fullscreen.snake-landscape .xiiy-shell__hero {
  grid-column: 2;
  grid-row: 1;
  padding: 8px 10px;
}

body.snake-fullscreen.snake-landscape .xiiy-shell__toolbar {
  grid-column: 2;
  grid-row: 2;
}

body.snake-fullscreen.snake-landscape .xiiy-stage {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 196px);
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
}

body.snake-fullscreen.snake-landscape .xiiy-shell__stats-tile,
body.snake-fullscreen.snake-landscape .xiiy-shell__stats-sound {
  min-height: 52px;
}

body.snake-fullscreen.snake-landscape .snake-settings {
  grid-template-columns: 1fr;
  gap: 6px;
}

body.snake-fullscreen.snake-landscape .snake-settings__card {
  min-height: 48px;
}

body.snake-fullscreen.snake-landscape .controls {
  gap: 8px;
  align-self: center;
}

body.snake-fullscreen.snake-landscape .controls__pad {
  --dpad-shell-size: min(100%, 188px);
  --dpad-button-size: min(11vw, 58px);
  padding: 10px;
}

body.snake-fullscreen.snake-landscape .controls__pad::before {
  inset: 6px;
}

body.snake-fullscreen.snake-landscape .controls__system > button {
  min-width: 120px;
  min-height: 42px;
}

@media (max-width: 1024px) and (min-width: 721px) {
  .app {
    padding: 18px;
  }

  .panel {
    width: min(100%, 720px);
    padding: 20px 18px;
  }

  .panel__header {
    align-items: flex-start;
  }

  .board {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .controls {
    display: grid;
    gap: 14px;
  }

  .controls__system > button {
    min-width: 144px;
  }

  .controls__pad {
    --dpad-shell-size: min(100%, 264px);
    --dpad-button-size: 72px;
  }

  .instructions {
    font-size: 0.98rem;
  }

  .seo-copy {
    padding: 16px;
  }

  .game-hub__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .game-chip__image {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 720px) {
  .app {
    padding:
      calc(12px + env(safe-area-inset-top, 0px))
      12px
      calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .panel {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .scoreboard {
    min-width: 0;
    text-align: left;
  }

  .snake-settings__card {
    min-height: 54px;
    padding: 10px 12px;
  }

  .snake-settings {
    grid-template-columns: minmax(0, 1fr) minmax(116px, 150px);
    gap: 8px;
  }

  .snake-settings .setting,
  .snake-settings .setting--stacked {
    width: auto;
  }

  .snake-settings .setting select {
    width: 100%;
  }

  .board {
    width: min(100%, calc(100vw - 40px));
    max-width: 100%;
    padding: 6px;
    margin-inline: auto;
  }

  .xiiy-stage {
    gap: 10px;
  }

  .controls {
    display: grid;
    gap: 10px;
    justify-items: center;
  }

  .controls__system {
    margin-bottom: 2px;
  }

  .controls__pad {
    --dpad-shell-size: min(100%, 284px);
    --dpad-button-size: min(20vw, 68px);
  }

  .controls__system > button {
    min-width: min(42vw, 180px);
  }

  .seo-copy {
    padding: 16px 14px;
  }

  .seo-copy__header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .seo-copy__logo {
    width: 124px;
    height: 124px;
  }

  .game-hub {
    padding: 16px;
  }

  .game-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vinyl-cta {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .vinyl-cta__disc {
    width: 122px;
  }

  .back-link {
    margin-bottom: 12px;
  }

  .utility-link {
    flex: 1 1 100%;
  }

  body.snake-fullscreen .panel.xiiy-panel {
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      max(8px, env(safe-area-inset-right, 0px))
      max(8px, env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
  }

  body.snake-fullscreen .xiiy-shell__hero {
    padding: 6px 8px;
  }

  body.snake-fullscreen .xiiy-shell__stats-tile,
  body.snake-fullscreen .xiiy-shell__stats-sound {
    min-height: 48px;
    padding: 10px;
  }

  body.snake-fullscreen .snake-settings__card {
    min-height: 46px;
    padding: 8px 10px;
  }

  body.snake-fullscreen .controls__pad {
    --dpad-shell-size: min(100%, 236px);
    --dpad-button-size: min(18vw, 62px);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__hero,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__toolbar {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .panel.xiiy-panel {
    padding:
      max(5px, env(safe-area-inset-top, 0px))
      max(5px, env(safe-area-inset-right, 0px))
      max(6px, env(safe-area-inset-bottom, 0px))
      max(5px, env(safe-area-inset-left, 0px));
    gap: 4px;
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 24%),
      linear-gradient(180deg, #151e29 0%, #0d141d 58%, #090e15 100%);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__hero {
    gap: 0;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud.xiiy-shell__stats--triple {
    grid-template-columns: 34px 34px repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud__util,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__stats-sound {
    min-height: 34px;
    border-radius: 10px;
    border-color: #5c596c;
    background: linear-gradient(180deg, #8d8ba1, #727082);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -2px 0 rgba(0, 0, 0, 0.24),
      0 6px 10px rgba(0, 0, 0, 0.12);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud__util {
    padding: 0;
    color: #f5f1e4;
    font: 800 0.52rem/1 "Lucida Console", "Courier New", monospace;
    letter-spacing: 0.12em;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #mute-button.snake-hud__util::before {
    font-size: 0.8rem;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__stats-sound,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud__util {
    font-size: 0.52rem;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #fullscreen-button.snake-hud__util {
    color: transparent;
    font-size: 0;
    position: relative;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #fullscreen-button.snake-hud__util::before {
    content: "x";
    color: #f5f1e4;
    font: 900 0.82rem/1 "Lucida Console", "Courier New", monospace;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__stats-tile {
    min-height: 34px;
    padding: 4px 6px;
    gap: 2px;
    border-radius: 10px;
    border: 1px solid rgba(110, 102, 87, 0.92);
    background: linear-gradient(180deg, rgba(224, 214, 193, 0.98), rgba(198, 189, 167, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 -2px 0 rgba(0, 0, 0, 0.08),
      0 4px 8px rgba(0, 0, 0, 0.08);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__stats-tile span {
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.42rem;
    letter-spacing: 0.18em;
    color: #574f43;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__stats-tile strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 0 5px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--lcd-top), var(--lcd-bottom));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 -1px 0 rgba(40, 54, 35, 0.16);
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 0.94rem;
    color: var(--lcd-dark);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-settings {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 4px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-settings__card {
    min-height: 30px;
    padding: 4px 7px;
    border-radius: 10px;
    border-color: rgba(110, 102, 87, 0.82);
    background: linear-gradient(180deg, rgba(220, 210, 188, 0.98), rgba(193, 182, 159, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 -2px 0 rgba(0, 0, 0, 0.08),
      0 4px 8px rgba(0, 0, 0, 0.08);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-settings .setting {
    gap: 5px;
    font: 700 0.54rem/1.1 "Lucida Console", "Courier New", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #51493d;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-settings .setting--stacked {
    gap: 1px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-settings input[type="checkbox"] {
    width: 12px;
    height: 12px;
    border-radius: 4px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-settings select {
    min-height: 20px;
    padding: 1px 20px 1px 7px;
    border-radius: 8px;
    border-width: 1px;
    background: linear-gradient(180deg, var(--lcd-top), var(--lcd-bottom));
    color: var(--lcd-dark);
    font: 900 0.72rem/1 "Lucida Console", "Courier New", monospace;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
    position: relative;
    overflow: hidden;
    min-height: 0;
    grid-template-rows: auto auto;
    align-content: start;
    padding: 8px 8px 8px;
    gap: 2px;
    border-radius: 28px;
    border: 1px solid rgba(110, 102, 87, 0.96);
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 28%),
      linear-gradient(180deg, rgba(241, 234, 215, 0.98), rgba(212, 204, 184, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -10px 16px rgba(143, 134, 115, 0.08),
      0 14px 22px rgba(0, 0, 0, 0.12);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 22px;
    right: 22px;
    height: 4px;
    border-radius: 999px;
    opacity: 0.36;
    background: repeating-linear-gradient(90deg, rgba(92, 84, 69, 0.9) 0 10px, transparent 10px 16px);
    pointer-events: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage__board-wrap {
    min-height: 0;
    width: 100%;
    align-content: start;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .board {
    width: 100%;
    max-width: none;
    padding: 8px;
    border-width: 3px;
    border-radius: 30px;
    background: linear-gradient(180deg, var(--screen-bezel), var(--screen-inner));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -6px 0 rgba(0, 0, 0, 0.16),
      0 7px 12px rgba(0, 0, 0, 0.1);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls {
    width: 100%;
    gap: 10px;
    align-self: start;
    justify-items: center;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__system {
    display: flex;
    width: min(100%, 314px);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__system > button {
    min-width: 0;
    min-height: 40px;
    max-width: 98px;
    font: 800 0.68rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -2px 0 rgba(0, 0, 0, 0.2),
      0 5px 8px rgba(0, 0, 0, 0.1);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__pad {
    --dpad-shell-size: min(100%, 286px);
    --dpad-button-size: clamp(78px, 20vw, 88px);
    width: var(--dpad-shell-size);
    min-height: calc(var(--dpad-shell-size) - 24px);
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    margin-top: 2px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__pad::before {
    display: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__pad::after {
    display: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button {
    border-radius: 22px;
    border: 2px solid var(--console-line);
    background:
      radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.7), transparent 24%),
      linear-gradient(180deg, #f8e37e 0%, var(--action-button) 52%, #d1b04e 100%);
    color: #3c3217;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -4px 0 rgba(0, 0, 0, 0.18),
      0 6px 10px rgba(0, 0, 0, 0.12);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button span {
    transform: translateY(-1px);
    font-size: 2rem;
    text-shadow: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__hub {
    display: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__hub::before,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__hub::after {
    display: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__hub::before {
    width: 0;
    height: 0;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__hub::after {
    width: 0;
    height: 0;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button--up {
    transform: translateY(2px);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button--down {
    transform: translateY(-2px);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button--left {
    transform: translateX(2px);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button--right {
    transform: translateX(-2px);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -2px 0 rgba(0, 0, 0, 0.16),
      0 4px 7px rgba(0, 0, 0, 0.1);
  }

  body.snake-fullscreen.snake-landscape .controls__pad {
    --dpad-shell-size: min(100%, 188px);
    --dpad-button-size: min(11vw, 54px);
  }
}

:root {
  --phone-key-top: #f1eadc;
  --phone-key-bottom: #cbc2b0;
  --phone-key-shadow: rgba(83, 73, 58, 0.22);
}

.snake-stage {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 18px 18px 20px;
  border-radius: 38px;
  border: 2px solid rgba(91, 83, 68, 0.88);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(165deg, var(--console-highlight), var(--console-shell) 44%, #c5bca9 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -3px 0 rgba(110, 102, 87, 0.24),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.snake-console__top {
  width: 100%;
  display: grid;
  gap: 8px;
}

.snake-console__masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 2px;
  color: rgba(64, 57, 47, 0.9);
}

.snake-console__brand {
  display: grid;
  gap: 2px;
  font-family: "Lucida Console", "Courier New", monospace;
  text-transform: uppercase;
}

.snake-console__brand strong {
  font-size: clamp(1.7rem, 4.4vw, 2.2rem);
  letter-spacing: 0.08em;
}

.snake-console__brand span {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.snake-console__speaker {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 6px;
  padding: 2px 0 4px;
}

.snake-console__speaker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(84, 75, 61, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 1px rgba(0, 0, 0, 0.16);
}

.snake-hud.snake-console__hud {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snake-hud.snake-console__hud .xiiy-shell__stats-tile {
  min-height: 66px;
  padding: 8px 12px 10px;
  display: grid;
  gap: 5px;
  border-radius: 20px;
  border: 1px solid rgba(110, 102, 87, 0.96);
  background: linear-gradient(180deg, rgba(234, 226, 209, 0.98), rgba(203, 193, 169, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.08);
}

.snake-hud.snake-console__hud .xiiy-shell__stats-tile span {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #675d4f;
}

.snake-hud.snake-console__hud .xiiy-shell__stats-tile strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lcd-top), var(--lcd-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(40, 54, 35, 0.18);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: clamp(1.4rem, 4.4vw, 2rem);
  color: var(--lcd-dark);
}

.snake-stage__board-wrap {
  width: 100%;
}

.controls {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.controls__system {
  width: min(100%, 320px);
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.controls__system-control {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.controls__system-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #5f5d71;
  background: linear-gradient(180deg, #8c8aa0, var(--system-button));
  color: #f5f1e4;
  font: 900 0.92rem/1 "Lucida Console", "Courier New", monospace;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 6px 10px rgba(0, 0, 0, 0.14);
}

.controls__system-button:hover,
.controls__system-button:focus-visible {
  background: linear-gradient(180deg, #9896ad, #858398);
}

.controls__system-button:disabled {
  border-color: rgba(110, 102, 87, 0.56);
  background: linear-gradient(180deg, rgba(201, 196, 187, 0.92), rgba(180, 174, 165, 0.94));
  color: rgba(79, 73, 61, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.controls__system-label {
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(84, 75, 61, 0.88);
}

.controls__pad {
  width: min(100%, 246px);
  min-height: 188px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px 14px;
}

.controls__pad::before,
.controls__pad::after,
.controls__hub {
  display: none !important;
}

.controls__button.controls__button--phone {
  width: 72px;
  height: 56px;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 18px;
  border: 1px solid rgba(110, 102, 87, 0.92);
  background: linear-gradient(180deg, var(--phone-key-top), var(--phone-key-bottom));
  color: #40392f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 6px 12px var(--phone-key-shadow);
  text-shadow: none;
}

.controls__button.controls__button--phone:hover,
.controls__button.controls__button--phone:focus-visible {
  filter: brightness(1.02);
}

.controls__button.controls__button--phone:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 3px 7px rgba(83, 73, 58, 0.16);
}

.controls__button-key {
  display: block;
  font: 900 1.22rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  transform: none;
}

.controls__button-key--icon {
  font-size: 1.14rem;
}

.controls__button-caption {
  display: block;
  font: 800 0.42rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  transform: none;
}

.controls__button--sound {
  grid-area: 2 / 2;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(180deg, #d8d2c6, #b1a99c) !important;
}

.controls__button--up,
.controls__button--down,
.controls__button--left,
.controls__button--right {
  transform: none !important;
}

@media (max-width: 720px) {
  .snake-stage {
    padding: 16px 16px 18px;
    border-radius: 34px;
  }

  .snake-console__brand strong {
    font-size: 1.75rem;
  }

  .snake-console__masthead {
    padding-inline: 2px;
  }

  .snake-hud.snake-console__hud .xiiy-shell__stats-tile {
    min-height: 58px;
    padding: 7px 10px 8px;
  }

  .controls__system {
    width: min(100%, 296px);
    gap: 10px;
  }

  .controls__system-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .controls__system-label {
    font-size: 0.5rem;
  }

  .controls__pad {
    width: min(100%, 232px);
    min-height: 176px;
    gap: 10px 12px;
  }

  .controls__button.controls__button--phone {
    width: 68px;
    height: 52px;
  }

  .controls__button--sound {
    width: 56px !important;
    height: 56px !important;
  }
}

@media (max-width: 520px) {
  .snake-stage {
    padding: 14px 14px 16px;
  }

  .snake-console__brand strong {
    font-size: 1.48rem;
  }

  .snake-console__speaker {
    gap: 5px;
  }

  .snake-console__speaker span {
    width: 7px;
    height: 7px;
  }

  .snake-hud.snake-console__hud {
    gap: 8px;
  }

  .snake-hud.snake-console__hud .xiiy-shell__stats-tile span {
    font-size: 0.48rem;
  }

  .snake-hud.snake-console__hud .xiiy-shell__stats-tile strong {
    min-height: 24px;
    font-size: 1.5rem;
  }
}

@media (max-width: 520px) {
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .xiiy-shell__hero {
    display: none !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .panel.xiiy-panel {
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      max(10px, env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px));
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0;
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 26%),
      linear-gradient(180deg, #0d141d 0%, #090f15 100%);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
    width: min(100%, 392px);
    gap: 10px;
    padding: 14px 14px 18px;
    border-radius: 34px;
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.55),
      inset 0 -3px 0 rgba(110, 102, 87, 0.22),
      0 14px 28px rgba(0, 0, 0, 0.18);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage::before {
    display: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
    gap: 6px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__masthead {
    padding-inline: 2px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__brand strong {
    font-size: 1.36rem;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__brand span,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__system-label,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud.snake-console__hud .xiiy-shell__stats-tile span {
    font-size: 0.46rem;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud.snake-console__hud .xiiy-shell__stats-tile {
    min-height: 54px;
    padding: 6px 9px 7px;
    border-radius: 18px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-hud.snake-console__hud .xiiy-shell__stats-tile strong {
    min-height: 22px;
    font-size: 1.34rem;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage__board-wrap {
    width: 100%;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .board {
    padding: 10px;
    border-radius: 28px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -5px 0 rgba(0, 0, 0, 0.14),
      0 6px 10px rgba(0, 0, 0, 0.08);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls {
    gap: 10px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__system {
    width: min(100%, 286px);
    gap: 10px;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__system-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 0.82rem;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__pad {
    width: min(100%, 224px);
    min-height: 170px;
    gap: 10px 12px;
    margin-top: 0;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button.controls__button--phone {
    width: 66px;
    height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(110, 102, 87, 0.92);
    background: linear-gradient(180deg, var(--phone-key-top), var(--phone-key-bottom));
    color: #40392f;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -2px 0 rgba(0, 0, 0, 0.08),
      0 5px 10px rgba(83, 73, 58, 0.18);
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button.controls__button--phone .controls__button-key {
    font-size: 1.1rem;
    transform: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button.controls__button--phone .controls__button-caption {
    font: 800 0.34rem/1 "Lucida Console", "Courier New", monospace;
    letter-spacing: 0.12em;
    opacity: 0.74;
    transform: none;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__button--sound {
    width: 54px !important;
    height: 54px !important;
    background:
      radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 26%),
      linear-gradient(180deg, #d8d2c6, #b1a99c) !important;
  }
}

.snake-stage,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
  width: min(100%, 332px) !important;
  gap: 10px !important;
  padding: 18px 18px 22px !important;
  border-radius: 48px 48px 58px 58px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #7d8099 0%, #737791 44%, #636980 100%) !important;
}

.snake-stage::before {
  content: "";
  position: absolute;
  inset: 8px 10px 10px;
  border-radius: 42px 42px 52px 52px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.snake-console__top,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  padding-top: 4px !important;
}

.snake-phone__speaker {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.snake-phone__speaker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #242737;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(0, 0, 0, 0.18);
}

.snake-phone__brand {
  min-width: 68px;
  min-height: 20px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: linear-gradient(180deg, #1c202e, #0f121a);
  color: #f3f3f1;
  font: 800 0.8rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 5px rgba(0, 0, 0, 0.18);
}

.snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  position: relative !important;
  width: 100% !important;
  padding: 18px 13px 16px !important;
  border-radius: 34px 34px 58px 58px !important;
  background: linear-gradient(180deg, #f1efeb 0%, #d7d2ca 58%, #b8b4ae 100%) !important;
}

.snake-display-shell::before {
  content: "";
  position: absolute;
  inset: 9px 9px 14px;
  border-radius: 30px 30px 52px 52px;
  background:
    linear-gradient(180deg, rgba(85, 91, 104, 0.22), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #707484 0%, #646978 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -4px 8px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.snake-display-shell__accent {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #a4e9e1, #65bdb2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  width: min(100%, 234px) !important;
  padding: 12px 8px 8px !important;
  border: 3px solid #3e4a3d !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #91a761 0%, #7b8d58 100%) !important;
}

.board__hud {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  pointer-events: none;
  z-index: 3;
}

.board__hud-item {
  display: grid;
  gap: 1px;
  color: #202a1c;
}

.board__hud-item--best {
  justify-items: end;
  text-align: right;
}

.board__hud-label {
  font: 800 0.38rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.board__hud-item strong {
  font: 900 0.82rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.08em;
}

.snake-softkeys,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px 40px minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 8px !important;
  padding: 0 10px !important;
  margin-top: -2px !important;
}

.snake-softkey {
  min-height: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #7e7a72 !important;
  background: linear-gradient(180deg, #f1eeea 0%, #d4cec7 100%) !important;
  color: #3b3f4d !important;
}

.snake-softkey--left,
.snake-softkey--right {
  width: 74px !important;
  height: 40px !important;
  border-radius: 24px 24px 18px 18px !important;
  font-size: 0.9rem !important;
}

.snake-softkey--left {
  justify-self: start !important;
  transform: rotate(-15deg) !important;
}

.snake-softkey--right {
  justify-self: end !important;
  transform: rotate(15deg) !important;
}

.snake-softkey--center-left,
.snake-softkey--center-right {
  justify-self: center !important;
  width: 40px !important;
  height: 28px !important;
  border-radius: 16px 16px 14px 14px !important;
  font-size: 0.78rem !important;
  z-index: 2 !important;
}

.controls.controls--phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  gap: 0 !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 200px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(4, auto) !important;
  gap: 8px 10px !important;
}

.snake-keypad > .controls__button,
.snake-keypad > .controls__button--up,
.snake-keypad > .controls__button--down,
.snake-keypad > .controls__button--left,
.snake-keypad > .controls__button--right,
.snake-keypad > .controls__button--sound {
  grid-area: auto !important;
  transform: none !important;
}

.snake-keypad .controls__button span {
  transform: none !important;
  text-shadow: none !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #7f7b74 !important;
  background: linear-gradient(180deg, #f4f2ef 0%, #d7d2cc 100%) !important;
  color: #2f3340 !important;
}

.controls.controls--phone .controls__button.controls__button--active {
  background: linear-gradient(180deg, #ffffff 0%, #e2ddd8 100%) !important;
}

.controls.controls--phone .controls__button.controls__button--zero {
  width: 66px !important;
}

.controls__key-number {
  display: block !important;
  font: 900 1rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

.controls__key-letters {
  display: block !important;
  font: 800 0.34rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.04em !important;
  text-transform: lowercase !important;
  opacity: 0.76 !important;
}

/* Final Nokia 3310 shell override */
.snake-stage,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
  width: min(100%, 358px) !important;
  gap: 12px !important;
  padding: 18px 18px 26px !important;
  border-radius: 28px 28px 42px 42px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #4a557f 0%, #46527b 42%, #3f4b73 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -4px 0 rgba(29, 36, 64, 0.28),
    0 24px 42px rgba(0, 0, 0, 0.24) !important;
}

.snake-stage::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage::before {
  inset: 8px 10px 10px !important;
  border-radius: 24px 24px 38px 38px !important;
}

.snake-stage__board-wrap,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage__board-wrap {
  width: 100% !important;
}

.snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  width: 100% !important;
  padding: 16px 11px 18px !important;
  border-radius: 18px 18px 32px 32px !important;
  background:
    linear-gradient(180deg, #f4f4f8 0%, #d7d8df 52%, #c0c2cb 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 0 rgba(104, 108, 122, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.16) !important;
}

.snake-display-shell::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell::before {
  inset: 8px 8px 14px !important;
  border-radius: 16px 16px 28px 28px !important;
  background:
    linear-gradient(180deg, rgba(35, 42, 61, 0.08), rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #43506f 0%, #3f4b6b 100%) !important;
}

.snake-display-shell__accent,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__accent {
  bottom: 8px !important;
  width: 62px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #6af0d5, #3ec3b4) !important;
}

.snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  width: min(100%, 304px) !important;
  height: auto !important;
  aspect-ratio: 336 / 252 !important;
  padding: 8px !important;
  border: 3px solid #39452b !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #a1c21c 0%, #86a713 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -6px 10px rgba(28, 40, 18, 0.16) !important;
}

.snake-stage .board::before,
.snake-stage .board::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board::after {
  opacity: 0.08 !important;
  border-radius: 8px !important;
}

.board__canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px !important;
}

.board__hud {
  top: 6px !important;
  left: 12px !important;
  right: 12px !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: start !important;
  gap: 8px !important;
  z-index: 4 !important;
}

.board__hud-item {
  gap: 1px !important;
  color: #1b2b12 !important;
  font-family: "Lucida Console", "Courier New", monospace !important;
}

.board__hud-item--best {
  justify-items: center !important;
  text-align: center !important;
}

.board__hud-item--mice {
  display: inline-grid !important;
  grid-auto-flow: column !important;
  align-items: center !important;
  justify-self: end !important;
  justify-content: end !important;
  gap: 4px !important;
}

.board__hud-label {
  font: 800 0.34rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.18em !important;
  opacity: 0.9 !important;
}

.board__hud-item strong {
  font: 900 0.92rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.04em !important;
}

.board__mouse-icon {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-block;
}

.board__mouse-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 2px;
  height: 2px;
  background: #1b2b12;
  box-shadow:
    2px 0 #1b2b12,
    6px 0 #1b2b12,
    8px 0 #1b2b12,
    0 2px #1b2b12,
    2px 2px #1b2b12,
    4px 2px #1b2b12,
    6px 2px #1b2b12,
    8px 2px #1b2b12,
    10px 2px #1b2b12,
    0 4px #1b2b12,
    2px 4px #1b2b12,
    4px 4px #1b2b12,
    6px 4px #1b2b12,
    8px 4px #1b2b12,
    10px 4px #1b2b12,
    12px 4px #1b2b12,
    2px 6px #1b2b12,
    4px 6px #1b2b12,
    6px 6px #1b2b12,
    8px 6px #1b2b12,
    10px 6px #1b2b12,
    12px 6px #1b2b12,
    4px 8px #1b2b12,
    6px 8px #1b2b12,
    8px 8px #1b2b12,
    12px 8px #1b2b12;
}

.snake-nav,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-nav {
  width: min(100%, 234px) !important;
  display: grid !important;
  grid-template-columns: 52px 82px 52px !important;
  align-items: end !important;
  justify-content: center !important;
  gap: 18px !important;
  margin-top: 4px !important;
  isolation: isolate;
}

.snake-nav__key,
.snake-nav__center {
  min-height: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #6e7385 !important;
  color: #15ab59 !important;
  text-shadow:
    0 0 1px rgba(55, 188, 111, 0.5),
    0 0 6px rgba(131, 255, 178, 0.16) !important;
}

.snake-nav__key {
  width: 52px !important;
  height: 36px !important;
  border-radius: 18px 18px 12px 12px !important;
  background: linear-gradient(180deg, #f8f8fb 0%, #dbdce5 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 0 rgba(99, 104, 121, 0.16),
    0 6px 10px rgba(0, 0, 0, 0.12) !important;
  font: 900 0.92rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
  z-index: 1 !important;
}

.snake-nav__key--left {
  transform: rotate(-10deg) !important;
}

.snake-nav__key--right {
  transform: rotate(10deg) !important;
}

.snake-nav__center {
  width: 82px !important;
  height: 34px !important;
  margin-bottom: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #dbdde7 0%, #babdcb 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 0 rgba(88, 95, 117, 0.14),
    0 6px 10px rgba(0, 0, 0, 0.12) !important;
  font: 900 0.76rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.05em !important;
  z-index: 3 !important;
}

.snake-nav__stack {
  display: grid;
  justify-items: center;
  gap: 1px;
  line-height: 1;
}

.snake-nav__icon {
  display: block;
  font-size: 0.98rem;
  line-height: 1;
}

.snake-nav__meta {
  display: block;
  font: 800 0.32rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.snake-nav__key:disabled,
.snake-nav__center:disabled {
  color: rgba(21, 171, 89, 0.42) !important;
}

.controls.controls--phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  width: 100% !important;
  justify-items: center !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 258px) !important;
  grid-template-columns: repeat(3, 70px) !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 12px 18px !important;
}

.snake-keypad > .controls__button,
.snake-keypad > .controls__button--up,
.snake-keypad > .controls__button--down,
.snake-keypad > .controls__button--left,
.snake-keypad > .controls__button--right {
  grid-area: auto !important;
  transform: none !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  position: relative !important;
  width: 70px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid #6b7181 !important;
  background: linear-gradient(180deg, #fbfbfd 0%, #dfe1ea 100%) !important;
  color: #1aff65 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -2px 0 rgba(98, 102, 116, 0.16),
    0 7px 10px rgba(0, 0, 0, 0.14) !important;
  text-shadow:
    0 0 1px rgba(42, 197, 92, 0.7),
    0 0 8px rgba(94, 255, 130, 0.18) !important;
}

.controls.controls--phone .controls__button.controls__button--key:disabled {
  opacity: 0.76 !important;
}

.controls.controls--phone .controls__button.controls__button--active {
  background: linear-gradient(180deg, #ffffff 0%, #e8eaf1 100%) !important;
}

.controls.controls--phone .controls__button.controls__button--active:active {
  transform: translateY(1px) scale(0.98) !important;
}

.controls__key-number {
  font: 900 1.05rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
}

.controls__key-letters {
  font: 800 0.34rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.06em !important;
}

.controls__key-action {
  position: absolute;
  top: 6px;
  right: 10px;
  font: 900 0.6rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  opacity: 0.9;
}

.board__overlay {
  inset: 34px 18px 18px !important;
}

.board__overlay-panel {
  width: min(100%, 200px) !important;
  padding: 14px 14px 12px !important;
  border: 2px solid #3c4a26 !important;
  border-radius: 10px !important;
  background:
    linear-gradient(180deg, rgba(196, 220, 92, 0.96), rgba(149, 174, 61, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(232, 255, 185, 0.36),
    0 12px 20px rgba(21, 31, 10, 0.16) !important;
}

.board__eyebrow,
.board__overlay-title,
.board__overlay-copy,
.board__overlay-button {
  color: #1b2b12 !important;
  text-shadow: none !important;
}

.board__overlay-button {
  min-height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid #5b6940 !important;
  background: linear-gradient(180deg, #f7f8fb 0%, #d7dae2 100%) !important;
  color: #1b2b12 !important;
}

.board__overlay-button--secondary {
  background: linear-gradient(180deg, #eef0f4 0%, #cfd3dd 100%) !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .panel.xiiy-panel {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #111923 0%, #091018 100%) !important;
}

/* CSS-drawn Nokia shell */
.snake-stage,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
  width: min(100%, 348px) !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.snake-stage::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage::before {
  display: none !important;
}

body:not(.snake-fullscreen) .snake-phone,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  position: relative;
  width: 100%;
  padding: 18px 10px 22px;
  display: grid;
  justify-items: center;
  gap: 11px;
  border-radius: 64px 64px 30px 30px / 104px 104px 24px 24px;
  background:
    linear-gradient(90deg, #e8e0cf 0 3.3%, rgba(232, 224, 207, 0) 3.3% 96.7%, #e8e0cf 96.7% 100%),
    linear-gradient(180deg, #697391 0%, #4c5878 52%, #414d6d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -4px 0 rgba(19, 27, 43, 0.18),
    0 22px 34px rgba(0, 0, 0, 0.2);
}

body:not(.snake-fullscreen) .snake-phone::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::before {
  content: "";
  position: absolute;
  inset: 8px 9px 9px;
  border-radius: 58px 58px 26px 26px / 96px 96px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.snake-console__top {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 2px;
}

.snake-phone__speaker {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.snake-phone__speaker span {
  width: 11px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #121722, #03060a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 1px rgba(0, 0, 0, 0.28);
}

.snake-phone__brand {
  min-width: 78px;
  min-height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(180deg, #0f1217, #232936);
  color: #ece8de;
  font: 900 0.88rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 7px rgba(0, 0, 0, 0.2);
}

.snake-stage__board-wrap,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage__board-wrap {
  position: relative !important;
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  margin-top: 2px;
}

.snake-display-shell {
  position: relative;
  width: min(100%, 304px);
  padding: 14px 8px 14px;
  border-radius: 32px 32px 56px 56px;
  background: linear-gradient(180deg, #f0ede8 0%, #d8d4ce 54%, #b8b4ae 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -3px 0 rgba(116, 110, 105, 0.14),
    0 10px 16px rgba(0, 0, 0, 0.16);
}

.snake-display-shell::before {
  content: "";
  position: absolute;
  inset: 8px 8px 12px;
  border-radius: 24px 24px 48px 48px;
  background: linear-gradient(180deg, #2f3a57 0%, #171f31 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -8px 12px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.snake-display-shell__accent {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #88efe2, #43c7bc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 1px 0 rgba(18, 42, 53, 0.28);
  z-index: 2;
}

.snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  position: relative !important;
  width: min(100%, 288px) !important;
  aspect-ratio: 336 / 252 !important;
  padding: 6px 4px 4px !important;
  border: 4px solid #49581f !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #afd11f 0%, #8cab15 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(235, 255, 184, 0.2),
    inset 0 -8px 12px rgba(41, 56, 18, 0.14) !important;
  overflow: hidden !important;
  z-index: 1;
}

.snake-stage .board::before,
.snake-stage .board::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board::after {
  border-radius: 11px !important;
  opacity: 0.06 !important;
}

.board__canvas {
  width: 100% !important;
  height: auto !important;
  border-radius: 11px !important;
}

.board__hud {
  top: 4px !important;
  left: 9px !important;
  right: 9px !important;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: start !important;
  gap: 4px !important;
}

.board__hud-item {
  display: grid !important;
  gap: 1px !important;
}

.board__hud-item strong {
  font: 900 0.86rem/1 "Lucida Console", "Courier New", monospace !important;
}

.board__hud-item--mice {
  grid-template-columns: auto auto !important;
  align-items: center !important;
  gap: 4px !important;
  justify-self: start !important;
  padding-top: 4px !important;
}

.board__hud-item--best {
  justify-self: center !important;
  justify-items: center !important;
}

.board__hud-item--score {
  justify-self: end !important;
  justify-items: end !important;
}

.board__hud-label {
  font: 800 0.3rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.board__mouse-icon {
  width: 14px;
  height: 10px;
}

.snake-softkeys {
  width: min(100%, 224px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 30px 30px minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 7px !important;
  padding: 0 2px !important;
  margin-top: -9px !important;
}

.snake-softkey {
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 0 !important;
  border: 1px solid #7d7a73 !important;
  background: linear-gradient(180deg, #f7f6f1 0%, #d7d2cb 100%) !important;
  color: #1c452d !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -2px 0 rgba(70, 72, 79, 0.1),
    0 6px 10px rgba(0, 0, 0, 0.12) !important;
  text-shadow: none !important;
}

.snake-softkey--left,
.snake-softkey--right {
  height: 40px;
  border-radius: 21px 21px 15px 15px !important;
}

.snake-softkey--left {
  transform: rotate(-10deg);
}

.snake-softkey--right {
  transform: rotate(10deg);
}

.snake-softkey--center-left,
.snake-softkey--center-right {
  width: 30px;
  height: 22px;
  border-radius: 13px 13px 11px 11px !important;
}

.snake-softkey__icon {
  display: block;
  font: 900 0.76rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
}

.snake-softkey__label {
  display: block;
  font: 800 0.3rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.snake-nav__meta {
  display: none !important;
}

.snake-softkey:focus-visible,
.controls.controls--phone .controls__button.controls__button--key:focus-visible {
  outline: 2px solid rgba(67, 216, 119, 0.88);
  outline-offset: 2px;
}

.snake-softkey:disabled {
  opacity: 0.48;
}

.snake-softkey--utility.is-fullscreen-active,
#mute-button[data-muted="true"] {
  color: #6f2020 !important;
}

.controls.controls--phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 214px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 54px) !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 8px 10px !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  position: relative !important;
  width: 54px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 4px 7px 4px 10px !important;
  display: grid !important;
  justify-items: start !important;
  align-content: center !important;
  gap: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #76767b !important;
  background: linear-gradient(180deg, #fbfaf7 0%, #ddd8d1 100%) !important;
  color: rgba(38, 74, 50, 0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 0 rgba(73, 75, 82, 0.08),
    0 6px 8px rgba(0, 0, 0, 0.12) !important;
  text-shadow: none !important;
}

.controls.controls--phone .controls__button.controls__button--key:disabled {
  opacity: 1 !important;
}

.controls.controls--phone .controls__button.controls__button--active {
  color: #25c55a !important;
  background: linear-gradient(180deg, #fefdfb 0%, #ebe6df 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -2px 0 rgba(73, 75, 82, 0.08),
    0 8px 10px rgba(0, 0, 0, 0.14) !important;
}

.controls.controls--phone .controls__button.controls__button--active:active {
  transform: translateY(1px) scale(0.98) !important;
}

.controls.controls--phone .controls__button.controls__button--zero {
  width: 60px !important;
}

.controls__key-number {
  display: block;
  font: 900 0.86rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
}

.controls__key-letters {
  display: block;
  font: 800 0.25rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.04em !important;
  text-transform: lowercase !important;
  opacity: 0.68;
}

.controls__key-action {
  position: absolute;
  right: 7px;
  bottom: 5px;
  font: 900 0.34rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  opacity: 0.58;
}

.snake-nav,
.snake-hotspot,
.snake-utility-button {
  display: none !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
  width: 100% !important;
  max-width: none !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  width: min(100%, 360px) !important;
  min-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
  padding: 18px 10px 24px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  width: min(100%, 316px);
  padding: 14px 8px 16px;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  width: min(100%, 300px) !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  align-self: start !important;
  margin-top: 18px !important;
}

@media (max-width: 380px) {
  .snake-stage,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage {
    width: 100% !important;
  }

  .snake-phone {
    padding: 17px 9px 20px;
    gap: 11px;
  }

  .snake-display-shell {
    width: min(100%, 300px);
    padding: 13px 8px 16px;
  }

  .snake-stage .board {
    width: min(100%, 284px) !important;
  }

  .snake-softkeys {
    width: min(100%, 218px) !important;
    grid-template-columns: minmax(0, 1fr) 28px 28px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .snake-softkey--center-left,
  .snake-softkey--center-right {
    width: 28px;
    height: 20px;
  }

  .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 194px) !important;
    grid-template-columns: repeat(3, 52px) !important;
    gap: 8px 8px !important;
  }

  .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
    width: 52px !important;
    height: 29px !important;
    min-height: 29px !important;
  }

  .controls.controls--phone .controls__button.controls__button--zero {
    width: 58px !important;
  }
}

body.snake-fullscreen .app {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  display: block !important;
}

body.snake-fullscreen .panel.xiiy-panel {
  width: 100vw !important;
  max-width: none !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #111923 0%, #091018 100%) !important;
}

body.snake-fullscreen .xiiy-shell__nav,
body.snake-fullscreen .xiiy-shell__hero,
body.snake-fullscreen .xiiy-shell__support,
body.snake-fullscreen .seo-copy,
body.snake-fullscreen .game-hub,
body.snake-fullscreen .vinyl-cta,
body.snake-fullscreen .instructions {
  display: none !important;
}

body.snake-fullscreen .xiiy-stage.snake-stage {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding:
    max(8px, env(safe-area-inset-top, 0px))
    max(8px, env(safe-area-inset-right, 0px))
    max(8px, env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px)) !important;
  display: grid !important;
  align-items: start !important;
  justify-items: center !important;
  overflow: hidden !important;
}

body.snake-fullscreen .snake-phone {
  width: min(100%, 348px) !important;
  transform: scale(var(--snake-fullscreen-scale, 1));
  transform-origin: top center;
  transition: transform 180ms ease;
  will-change: transform;
}

/* Brandless retro phone refresh */
.snake-stage,
body.snake-fullscreen .xiiy-stage.snake-stage {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  justify-items: center !important;
}

body:not(.snake-fullscreen) .snake-phone,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  width: min(100%, 360px) !important;
  min-height: clamp(680px, 82vh, 860px) !important;
  padding: 16px 14px 18px !important;
  gap: 12px !important;
  grid-template-rows: auto auto auto auto auto !important;
  align-content: start !important;
  border-radius: 72px 72px 38px 38px / 118px 118px 30px 30px !important;
  background:
    linear-gradient(90deg, #e8dfcd 0 3%, rgba(232, 223, 205, 0) 3% 97%, #e8dfcd 97% 100%),
    linear-gradient(180deg, #7380a2 0%, #5e6b8c 52%, #465474 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -4px 0 rgba(19, 27, 43, 0.24),
    0 26px 40px rgba(0, 0, 0, 0.24) !important;
  overflow: hidden;
}

body:not(.snake-fullscreen) .snake-phone::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::before {
  inset: 8px 9px 10px !important;
  border-radius: 64px 64px 34px 34px / 104px 104px 24px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.snake-fullscreen) .snake-phone::after,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 3px, rgba(0, 0, 0, 0.025) 3px 6px);
  opacity: 0.38;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

body.snake-fullscreen .snake-phone {
  width: min(100%, 360px) !important;
  min-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  transform: scale(var(--snake-fullscreen-scale, 1));
  transform-origin: top center;
}

body:not(.snake-fullscreen) .snake-console__top,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
  min-height: 44px !important;
  gap: 8px !important;
  padding-top: 6px !important;
}

.snake-phone__brand {
  display: none !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker {
  gap: 5px !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker span,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker span,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker span {
  width: 12px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #121722, #05080d) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 1px rgba(0, 0, 0, 0.28) !important;
}

.snake-stage__board-wrap,
body.snake-fullscreen .snake-stage__board-wrap {
  width: 100% !important;
  margin-top: 0 !important;
}

.snake-display-shell {
  width: min(100%, 336px) !important;
  padding: 10px 8px 12px !important;
  border-radius: 30px 30px 40px 40px !important;
  background: linear-gradient(180deg, #f0eee9 0%, #dbd6cf 55%, #c6c0b7 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -4px 0 rgba(82, 78, 71, 0.12),
    0 14px 20px rgba(0, 0, 0, 0.18) !important;
}

.snake-display-shell::before {
  inset: 6px 6px 10px !important;
  border-radius: 24px 24px 34px 34px !important;
  background: linear-gradient(180deg, #2e3955 0%, #171f31 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 16px rgba(0, 0, 0, 0.24) !important;
}

.snake-display-shell__accent {
  width: 72px !important;
  height: 6px !important;
  bottom: 10px !important;
}

.snake-stage .board,
body.snake-fullscreen .snake-stage .board {
  width: min(100%, 320px) !important;
  aspect-ratio: 336 / 296 !important;
  padding: 8px 8px 10px !important;
  border: 2px solid #455519 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #c5e33f 0%, #acd025 54%, #89af16 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(245, 255, 196, 0.32),
    inset 0 -10px 16px rgba(31, 48, 12, 0.16) !important;
}

.snake-stage .board::before,
body.snake-fullscreen .snake-stage .board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    to bottom,
    rgba(245, 255, 203, 0.06) 0 2px,
    rgba(0, 0, 0, 0) 2px 4px
  ) !important;
  opacity: 0.24 !important;
  pointer-events: none;
}

.snake-stage .board::after,
body.snake-fullscreen .snake-stage .board::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 220, 0.12), transparent 34%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 58%, rgba(18, 29, 8, 0.18) 100%) !important;
  opacity: 1 !important;
  pointer-events: none;
}

.board__canvas {
  border-radius: 14px !important;
  touch-action: none;
}

.board__hud {
  top: 10px !important;
  left: 12px !important;
  right: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: start !important;
}

.board__hud-item {
  gap: 2px !important;
}

.board__hud-item strong {
  font: 900 1rem/1 "Lucida Console", "Courier New", monospace !important;
}

.board__hud-item--score {
  justify-self: start !important;
  justify-items: start !important;
}

.board__hud-item--best {
  justify-self: center !important;
  justify-items: center !important;
}

.board__hud-item--level {
  justify-self: end !important;
  justify-items: end !important;
}

.board__hud-label {
  font: 800 0.42rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.12em !important;
  opacity: 0.72 !important;
}

.board__overlay {
  inset: 56px 18px 18px !important;
}

.board__overlay-panel {
  width: min(100%, 238px) !important;
  padding: 18px 16px 14px !important;
  border: 2px solid #42551b !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(210, 234, 104, 0.96), rgba(153, 181, 60, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(250, 255, 206, 0.34),
    0 18px 28px rgba(25, 36, 11, 0.18) !important;
}

.board__overlay-title {
  font-size: 1.72rem !important;
}

.board__overlay-copy {
  font-size: 0.98rem !important;
}

.board__overlay-button {
  min-height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid #56673a !important;
  background: linear-gradient(180deg, #f7f7f4 0%, #d8dbdf 100%) !important;
  color: #1d2a14 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -3px 0 rgba(74, 86, 56, 0.12),
    0 8px 14px rgba(0, 0, 0, 0.1) !important;
}

.snake-action-row {
  width: min(100%, 320px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.snake-action-button {
  min-height: 54px;
  padding: 10px 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(89, 89, 92, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f6f1 0%, #d9d5cb 100%);
  color: #20301a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -3px 0 rgba(82, 83, 88, 0.12),
    0 12px 18px rgba(0, 0, 0, 0.14);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.snake-action-button__icon {
  font: 900 1rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
}

.snake-action-button__label {
  font: 800 0.52rem/1 "Lucida Console", "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snake-action-button--start {
  background: linear-gradient(180deg, #faf7ec 0%, #e7dec9 100%);
}

.snake-action-button--pause {
  background: linear-gradient(180deg, #f7f6f2 0%, #d8d4cb 100%);
}

.snake-action-button--restart {
  background: linear-gradient(180deg, #edeef5 0%, #d8dce8 100%);
}

.snake-controls-retro {
  width: min(100%, 320px) !important;
  display: grid !important;
  justify-items: center !important;
  margin-top: 4px !important;
}

.snake-dpad {
  position: relative;
  width: 224px;
  height: 224px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  place-items: center;
}

.snake-dpad__ring {
  position: absolute;
  inset: 8px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(18, 24, 34, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 28px rgba(0, 0, 0, 0.16);
}

.snake-dpad__hub {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7f8ba4 0%, #576480 58%, #30394f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.snake-dpad__button {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 76, 83, 0.4);
  border-radius: 24px;
  background: linear-gradient(180deg, #faf8f2 0%, #ddd8ce 100%);
  color: #20311a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -4px 0 rgba(70, 74, 82, 0.12),
    0 14px 18px rgba(0, 0, 0, 0.16);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.snake-dpad__button--up {
  grid-column: 2;
  grid-row: 1;
}

.snake-dpad__button--left {
  grid-column: 1;
  grid-row: 2;
}

.snake-dpad__button--right {
  grid-column: 3;
  grid-row: 2;
}

.snake-dpad__button--down {
  grid-column: 2;
  grid-row: 3;
}

.snake-dpad__glyph {
  font: 900 1.24rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
}

.snake-utility-row {
  width: min(100%, 172px);
  display: flex;
  justify-content: center;
  gap: 14px;
}

.snake-utility-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 80, 90, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, #f6f5ef 0%, #d8d4ca 100%);
  color: #20311a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -3px 0 rgba(76, 80, 88, 0.12),
    0 10px 14px rgba(0, 0, 0, 0.14);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.snake-utility-button__icon {
  font: 900 0.96rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
}

.snake-controls-shadow {
  width: min(100%, 240px);
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(3, 6, 10, 0.28), rgba(3, 6, 10, 0));
  filter: blur(10px);
  opacity: 0.5;
}

.snake-action-button:hover,
.snake-dpad__button:hover,
.snake-utility-button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.snake-action-button:active,
.snake-dpad__button:active,
.snake-utility-button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(76, 80, 88, 0.06),
    0 6px 10px rgba(0, 0, 0, 0.12);
}

.snake-action-button:focus-visible,
.snake-dpad__button:focus-visible,
.snake-utility-button:focus-visible {
  outline: 2px solid rgba(123, 233, 146, 0.92);
  outline-offset: 3px;
}

body.snake-fullscreen .xiiy-stage.snake-stage {
  height: 100% !important;
  padding:
    max(6px, env(safe-area-inset-top, 0px))
    max(6px, env(safe-area-inset-right, 0px))
    max(6px, env(safe-area-inset-bottom, 0px))
    max(6px, env(safe-area-inset-left, 0px)) !important;
  align-items: center !important;
}

body.snake-fullscreen .snake-display-shell {
  width: min(100%, 340px) !important;
}

body.snake-fullscreen .snake-stage .board {
  width: min(100%, 324px) !important;
}

@media (max-width: 390px) {
  .snake-phone {
    width: min(100%, 352px) !important;
    padding: 14px 12px 16px !important;
  }

  .snake-display-shell,
  body.snake-fullscreen .snake-display-shell {
    width: min(100%, 324px) !important;
  }

  .snake-stage .board,
  body.snake-fullscreen .snake-stage .board {
    width: min(100%, 308px) !important;
  }

  .snake-action-row {
    width: min(100%, 306px);
    gap: 8px;
  }

  .snake-action-button {
    min-height: 50px;
  }

  .snake-dpad {
    width: 208px;
    height: 208px;
    gap: 10px;
  }

  .snake-dpad__button {
    width: 66px;
    height: 66px;
  }
}

/* Retro phone final fit */
.snake-stage,
body.snake-fullscreen .xiiy-stage.snake-stage {
  min-height: clamp(760px, 92vh, 960px) !important;
  padding-inline: clamp(8px, 2vw, 20px) !important;
}

body:not(.snake-fullscreen) .snake-phone,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  width: min(calc(100vw - 26px), 374px) !important;
  min-height: clamp(748px, 92vh, 920px) !important;
  padding: 14px 12px 16px !important;
  gap: 10px !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
  justify-items: center !important;
  border-radius: 68px 68px 34px 34px / 108px 108px 28px 28px !important;
}

body:not(.snake-fullscreen) .snake-phone::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::before {
  inset: 8px 8px 10px !important;
  border-radius: 58px 58px 30px 30px / 94px 94px 22px 22px !important;
}

body:not(.snake-fullscreen) .snake-phone::after,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::after {
  opacity: 0.24 !important;
}

body:not(.snake-fullscreen) .snake-console__top,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
  min-height: 34px !important;
  padding-top: 3px !important;
}

.snake-stage__board-wrap,
body.snake-fullscreen .snake-stage__board-wrap {
  width: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  align-self: stretch !important;
  place-items: start center !important;
}

.snake-display-shell,
body.snake-fullscreen .snake-display-shell {
  width: min(100%, 350px) !important;
  padding: 8px 6px 10px !important;
  border-radius: 24px 24px 30px 30px !important;
}

.snake-display-shell::before,
body.snake-fullscreen .snake-display-shell::before {
  inset: 5px 5px 8px !important;
  border-radius: 18px 18px 26px 26px !important;
}

.snake-display-shell__accent,
body.snake-fullscreen .snake-display-shell__accent {
  width: 70px !important;
  height: 5px !important;
  bottom: 8px !important;
}

.snake-stage .board,
body.snake-fullscreen .snake-stage .board {
  width: min(100%, 338px) !important;
  padding: 6px 6px 8px !important;
  border-radius: 16px !important;
}

.board__hud {
  top: 8px !important;
  left: 10px !important;
  right: 10px !important;
  gap: 6px !important;
}

.board__hud-item strong {
  font-size: 0.96rem !important;
}

.board__hud-label {
  font-size: 0.4rem !important;
}

.board__overlay {
  inset: 50px 14px 14px !important;
}

.snake-action-row {
  width: min(100%, 332px) !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

.snake-action-button {
  min-height: 52px !important;
  padding: 8px 10px !important;
}

.snake-controls-retro {
  width: min(100%, 332px) !important;
  margin-top: 0 !important;
}

.snake-dpad {
  width: 236px !important;
  height: 236px !important;
  gap: 10px !important;
}

.snake-dpad__button {
  width: 74px !important;
  height: 74px !important;
  border-radius: 22px !important;
}

.snake-dpad__hub {
  width: 60px !important;
  height: 60px !important;
}

.snake-utility-row {
  width: min(100%, 180px) !important;
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: -2px !important;
}

.snake-utility-button {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
}

body.snake-fullscreen .xiiy-stage.snake-stage {
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding:
    max(4px, env(safe-area-inset-top, 0px))
    max(4px, env(safe-area-inset-right, 0px))
    max(4px, env(safe-area-inset-bottom, 0px))
    max(4px, env(safe-area-inset-left, 0px)) !important;
  align-items: start !important;
}

body.snake-fullscreen .snake-phone {
  width: min(calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 8px), 392px) !important;
  height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8px) !important;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8px) !important;
  max-height: none !important;
  padding: 12px 10px 14px !important;
  gap: 9px !important;
  margin: 0 !important;
}

body.snake-fullscreen .snake-console__top {
  min-height: 26px !important;
  padding-top: 1px !important;
}

body.snake-fullscreen .snake-display-shell {
  width: min(100%, 362px) !important;
  padding: 6px 5px 8px !important;
}

body.snake-fullscreen .snake-stage .board {
  width: min(100%, 350px) !important;
}

body.snake-fullscreen .snake-action-row {
  width: min(100%, 344px) !important;
}

body.snake-fullscreen .snake-action-button {
  min-height: 50px !important;
}

body.snake-fullscreen .snake-controls-retro {
  width: min(100%, 340px) !important;
}

body.snake-fullscreen .snake-dpad {
  width: 228px !important;
  height: 228px !important;
}

body.snake-fullscreen .snake-dpad__button {
  width: 72px !important;
  height: 72px !important;
}

body.snake-fullscreen .snake-controls-shadow {
  opacity: 0.34 !important;
}

@media (max-width: 390px) {
  .snake-phone {
    width: min(calc(100vw - 18px), 362px) !important;
    min-height: clamp(732px, 91vh, 900px) !important;
    padding: 13px 10px 15px !important;
  }

  .snake-display-shell,
  body.snake-fullscreen .snake-display-shell {
    width: min(100%, 342px) !important;
  }

  .snake-stage .board,
  body.snake-fullscreen .snake-stage .board {
    width: min(100%, 330px) !important;
  }

  .snake-action-row,
  body.snake-fullscreen .snake-action-row {
    width: min(100%, 326px) !important;
  }

  .snake-controls-retro,
  body.snake-fullscreen .snake-controls-retro {
    width: min(100%, 326px) !important;
  }

  .snake-dpad,
  body.snake-fullscreen .snake-dpad {
    width: 214px !important;
    height: 214px !important;
  }

  .snake-dpad__button,
  body.snake-fullscreen .snake-dpad__button {
    width: 68px !important;
    height: 68px !important;
  }

  body.snake-fullscreen .snake-phone {
    width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 6px) !important;
    height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6px) !important;
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 6px) !important;
    padding: 10px 8px 12px !important;
  }
}

/* Phone keypad return */
.snake-phone {
  width: min(calc(100vw - 8px), 392px) !important;
  min-height: clamp(742px, 95vh, 920px) !important;
  padding: 12px 8px 14px !important;
  gap: 8px !important;
  grid-template-rows: auto auto auto auto auto 1fr !important;
  align-content: start !important;
}

body:not(.snake-fullscreen) .snake-phone__brand,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__brand,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 132px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #1b202d 0%, #111520 100%) !important;
  color: #f3efe1 !important;
  font: 900 1.08rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
  letter-spacing: 0.06em !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 16px rgba(0, 0, 0, 0.2) !important;
}

.snake-console__top {
  min-height: 88px !important;
  gap: 10px !important;
}

.snake-stage__board-wrap,
body.snake-fullscreen .snake-stage__board-wrap {
  width: 100% !important;
}

body:not(.snake-fullscreen) .snake-display-shell,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  width: min(100%, 374px) !important;
  padding: 8px 6px 18px !important;
}

.snake-stage .board,
body.snake-fullscreen .snake-stage .board {
  width: min(100%, 358px) !important;
}

.snake-action-row,
.snake-controls-retro,
.snake-utility-row {
  display: none !important;
}

.snake-softkeys {
  width: min(100%, 308px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px 34px minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 8px !important;
  padding: 0 4px !important;
  margin-top: -6px !important;
}

.snake-softkey {
  min-height: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  border: 1px solid #817d75 !important;
  background: linear-gradient(180deg, #f4f1eb 0%, #d7d0c7 100%) !important;
  color: #1f4d31 !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -2px 0 rgba(70, 72, 79, 0.08),
    0 8px 12px rgba(0, 0, 0, 0.14) !important;
}

.snake-softkey--left,
.snake-softkey--right {
  width: 94px !important;
  height: 50px !important;
  border-radius: 28px 28px 18px 18px !important;
}

.snake-softkey--left {
  justify-self: start !important;
  transform: rotate(-14deg) !important;
}

.snake-softkey--right {
  justify-self: end !important;
  transform: rotate(14deg) !important;
}

.snake-softkey--left:not(:disabled) {
  transform: rotate(-19deg) translateY(1px) !important;
  filter: brightness(1.06) saturate(1.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -2px 0 rgba(70, 72, 79, 0.08),
    0 10px 14px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(106, 224, 146, 0.12) !important;
}

.snake-softkey--right:not(:disabled) {
  transform: rotate(19deg) translateY(1px) !important;
  filter: brightness(1.05) saturate(1.04) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(70, 72, 79, 0.08),
    0 10px 14px rgba(0, 0, 0, 0.16),
    0 0 14px rgba(106, 224, 146, 0.08) !important;
}

.snake-softkey--center-left,
.snake-softkey--center-right {
  justify-self: center !important;
  width: 34px !important;
  height: 26px !important;
  border-radius: 16px 16px 14px 14px !important;
}

.snake-softkey__icon {
  display: block !important;
  font: 900 0.95rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
}

.snake-softkey__label {
  display: block !important;
  font: 800 0.34rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  opacity: 0.88 !important;
}

.controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  margin-top: 28px !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 252px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 64px) !important;
  grid-template-rows: repeat(4, auto) !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 11px 14px !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
  position: relative !important;
  width: 64px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 1px !important;
  border-radius: 999px !important;
  border: 1px solid #7f7b74 !important;
  background: linear-gradient(180deg, #f7f4ef 0%, #d8d1c8 100%) !important;
  color: rgba(33, 89, 46, 0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -2px 0 rgba(73, 75, 82, 0.08),
    0 8px 12px rgba(0, 0, 0, 0.14) !important;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    color 160ms ease !important;
}

.controls.controls--phone .controls__button.controls__button--key:disabled {
  opacity: 1 !important;
  filter: saturate(0.62) brightness(0.92) !important;
}

.controls.controls--phone .controls__button.controls__button--active {
  color: #25c55a !important;
  background: linear-gradient(180deg, #fffefb 0%, #efe7dd 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(73, 75, 82, 0.08),
    0 10px 14px rgba(0, 0, 0, 0.16),
    0 0 16px rgba(90, 223, 130, 0.12) !important;
  filter: brightness(1.06) saturate(1.08) !important;
}

#restart-button.controls__button--active {
  transform: rotate(-6deg) translateY(1px) !important;
}

.controls.controls--phone [data-direction="up"].controls__button--active {
  transform: rotate(-2deg) translateY(-1px) !important;
}

.controls.controls--phone [data-direction="left"].controls__button--active {
  transform: rotate(-4deg) translateY(1px) !important;
}

.controls.controls--phone [data-direction="right"].controls__button--active {
  transform: rotate(4deg) translateY(1px) !important;
}

.controls.controls--phone [data-direction="down"].controls__button--active {
  transform: rotate(2deg) translateY(1px) !important;
}

.controls.controls--phone .controls__button.controls__button--key:not(.controls__button--active) {
  color: rgba(33, 89, 46, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(73, 75, 82, 0.06),
    0 6px 10px rgba(0, 0, 0, 0.1) !important;
}

.controls.controls--phone .controls__button.controls__button--zero {
  width: 70px !important;
}

.controls__key-number {
  display: block !important;
  font: 900 1.02rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

.controls__key-letters {
  display: block !important;
  font: 800 0.3rem/1 "Lucida Console", "Courier New", monospace !important;
  letter-spacing: 0.04em !important;
  text-transform: lowercase !important;
  opacity: 0.74 !important;
}

.controls__key-action {
  position: absolute !important;
  right: 9px !important;
  bottom: 7px !important;
  font: 900 0.44rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
  opacity: 0.62 !important;
}

.snake-controls-shadow {
  width: min(100%, 290px) !important;
  opacity: 0.4 !important;
}

body.snake-fullscreen .snake-phone {
  width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2px) !important;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px) !important;
  height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px) !important;
  max-width: none !important;
  padding: 10px 6px 12px !important;
  gap: 7px !important;
  border-radius: 62px 62px 28px 28px / 100px 100px 24px 24px !important;
  grid-template-rows: auto auto auto auto auto 1fr !important;
  align-content: start !important;
}

body.snake-fullscreen .snake-console__top {
  min-height: 78px !important;
}

body.snake-fullscreen .snake-display-shell {
  width: min(100%, 378px) !important;
  padding: 8px 6px 26px !important;
}

body.snake-fullscreen .snake-display-shell::before {
  inset: 5px 5px 14px !important;
}

body.snake-fullscreen .snake-stage .board {
  width: min(100%, 350px) !important;
  margin-bottom: 8px !important;
}

body.snake-fullscreen .snake-softkeys {
  width: min(100%, 320px) !important;
}

body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 262px) !important;
}

@media (max-width: 390px) {
  .snake-phone,
  body.snake-fullscreen .snake-phone {
    width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2px) !important;
  }

  .snake-display-shell,
  body.snake-fullscreen .snake-display-shell {
    width: min(100%, 372px) !important;
    padding: 8px 6px 24px !important;
  }

  .snake-stage .board,
  body.snake-fullscreen .snake-stage .board {
    width: min(100%, 344px) !important;
  }
}

.snake-display-shell__accent,
body.snake-fullscreen .snake-display-shell__accent {
  bottom: 4px !important;
  height: 6px !important;
}

/* Retro phone polish */
.snake-phone {
  width: min(calc(100vw - 6px), 408px) !important;
  min-height: clamp(804px, 98vh, 980px) !important;
  padding: 16px 10px 18px !important;
  gap: 12px !important;
  border-radius: 74px 74px 34px 34px / 116px 116px 28px 28px !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(180deg, #8894b9 0%, #6e7ba2 34%, #576789 70%, #4e5f83 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -5px 0 rgba(28, 34, 58, 0.24),
    0 28px 36px rgba(0, 0, 0, 0.22) !important;
}

body:not(.snake-fullscreen) .snake-phone::after,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::after {
  opacity: 0.3 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 3px, rgba(0, 0, 0, 0.02) 3px 6px) !important;
}

.snake-phone__brand {
  min-width: 148px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  letter-spacing: 0.09em !important;
  font-size: 0.94rem !important;
}

body:not(.snake-fullscreen) .snake-console__top,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
  min-height: 98px !important;
  gap: 12px !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker {
  gap: 6px !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker span,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker span,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker span {
  width: 12px !important;
  height: 6px !important;
}

.snake-display-shell,
body.snake-fullscreen .snake-display-shell {
  width: min(100%, 392px) !important;
  padding: 8px 5px 28px !important;
  border-radius: 28px 28px 34px 34px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -4px 0 rgba(90, 96, 109, 0.12),
    0 16px 20px rgba(0, 0, 0, 0.18) !important;
}

body:not(.snake-fullscreen) .snake-display-shell::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell::before {
  inset: 4px 4px 16px !important;
  border-radius: 22px 22px 28px 28px !important;
}

.snake-stage .board,
body.snake-fullscreen .snake-stage .board {
  width: min(100%, 378px) !important;
  padding: 6px 6px 10px !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 0 rgba(245, 255, 196, 0.38),
    inset 0 -12px 18px rgba(31, 48, 12, 0.18),
    0 0 24px rgba(174, 232, 69, 0.08) !important;
}

.snake-stage .board::before,
body.snake-fullscreen .snake-stage .board::before {
  opacity: 0.18 !important;
}

.snake-stage .board::after,
body.snake-fullscreen .snake-stage .board::after {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 220, 0.15), transparent 36%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 56%, rgba(18, 29, 8, 0.16) 100%) !important;
}

.board__hud {
  top: 7px !important;
  left: 12px !important;
  right: 12px !important;
}

.board__hud-item strong {
  font-size: 1.02rem !important;
}

.board__hud-label {
  font-size: 0.38rem !important;
  letter-spacing: 0.16em !important;
}

body:not(.snake-fullscreen) .snake-display-shell__accent,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__accent,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__accent {
  width: 92px !important;
  height: 7px !important;
  bottom: 7px !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(191, 255, 247, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.16) !important;
}

.snake-softkeys {
  width: min(100%, 336px) !important;
  gap: 12px !important;
  margin-top: 10px !important;
}

.snake-softkey--left,
.snake-softkey--right {
  width: 112px !important;
  height: 58px !important;
  border-radius: 30px 30px 20px 20px !important;
}

.snake-softkey--left {
  transform: rotate(-16deg) translateY(0) !important;
}

.snake-softkey--right {
  transform: rotate(16deg) translateY(0) !important;
}

.snake-softkey--left:not(:disabled) {
  transform: rotate(-22deg) translateY(2px) !important;
}

.snake-softkey--right:not(:disabled) {
  transform: rotate(22deg) translateY(2px) !important;
}

.snake-softkey--center-left,
.snake-softkey--center-right {
  width: 42px !important;
  height: 32px !important;
  border-radius: 18px 18px 16px 16px !important;
}

.snake-softkey:hover,
.controls.controls--phone .controls__button.controls__button--key:hover {
  filter: brightness(1.03) !important;
}

.snake-softkey:active,
.controls.controls--phone .controls__button.controls__button--key:active {
  transform-origin: center !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.56),
    inset 0 -2px 0 rgba(70, 72, 79, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  margin-top: 44px !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 304px) !important;
  grid-template-columns: repeat(3, 90px) !important;
  gap: 16px 17px !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
  width: 90px !important;
  height: 54px !important;
  min-height: 54px !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 0 rgba(73, 75, 82, 0.08),
    0 10px 16px rgba(0, 0, 0, 0.16) !important;
}

.controls.controls--phone .controls__button.controls__button--active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -3px 0 rgba(73, 75, 82, 0.08),
    0 12px 18px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(90, 223, 130, 0.14) !important;
}

.controls.controls--phone .controls__button.controls__button--zero {
  width: 96px !important;
}

.controls__key-number {
  font-size: 1.3rem !important;
}

.controls__key-letters {
  font-size: 0.36rem !important;
}

.controls__key-action {
  right: 12px !important;
  bottom: 10px !important;
  font-size: 0.56rem !important;
}

.snake-controls-shadow {
  width: min(100%, 320px) !important;
  height: 22px !important;
}

body.snake-fullscreen .snake-phone {
  width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2px) !important;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px) !important;
  height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px) !important;
  padding: 14px 8px 18px !important;
  gap: 10px !important;
}

body.snake-fullscreen .snake-display-shell {
  width: min(100%, 396px) !important;
  padding: 8px 5px 30px !important;
}

body.snake-fullscreen .snake-stage .board {
  width: min(100%, 382px) !important;
  margin-bottom: 10px !important;
}

body.snake-fullscreen .snake-softkeys {
  width: min(100%, 342px) !important;
  margin-top: 14px !important;
}

body.snake-fullscreen .controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  margin-top: 48px !important;
}

body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 314px) !important;
}

@media (max-width: 390px) {
  .snake-phone,
  body.snake-fullscreen .snake-phone {
    width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2px) !important;
    padding: 13px 7px 16px !important;
  }

  .snake-display-shell,
  body.snake-fullscreen .snake-display-shell {
    width: min(100%, 384px) !important;
  }

  .snake-stage .board,
  body.snake-fullscreen .snake-stage .board {
    width: min(100%, 370px) !important;
  }

  .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 298px) !important;
    grid-template-columns: repeat(3, 88px) !important;
    gap: 15px 14px !important;
  }

  .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
    width: 88px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  .controls.controls--phone .controls__button.controls__button--zero,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--zero {
    width: 94px !important;
  }
}

.snake-softkeys,
body.snake-fullscreen .snake-softkeys {
  width: min(100%, 328px) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 44px !important;
  padding: 0 8px !important;
  margin-top: 10px !important;
}

.snake-softkey--left,
.snake-softkey--right {
  width: 116px !important;
  height: 60px !important;
}

.controls.controls--phone .controls__button.controls__button--utility,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--utility {
  color: #1f4d31 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -3px 0 rgba(73, 75, 82, 0.08),
    0 12px 18px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(90, 223, 130, 0.12) !important;
}

.controls.controls--phone .controls__button.controls__button--utility .controls__key-number,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--utility .controls__key-number {
  font-size: 1.12rem !important;
  line-height: 1 !important;
}

.controls.controls--phone .controls__button.controls__button--utility .controls__key-letters,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--utility .controls__key-letters {
  font-size: 0.42rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  opacity: 0.86 !important;
}

#mute-button.controls__button--utility[data-muted="true"] .controls__key-number {
  color: var(--hokia-key-copy) !important;
}

body:not(.snake-fullscreen) #mute-button-icon,
body.snake-fullscreen:not(.snake-mobile-layout) #mute-button-icon,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #mute-button-icon {
  color: var(--hokia-key-copy) !important;
  filter: grayscale(1) saturate(0) brightness(0.68) contrast(1.18) !important;
  text-shadow: none !important;
}

#fullscreen-button.controls__button--utility.is-fullscreen-active .controls__key-number,
#fullscreen-button.controls__button--utility.is-fullscreen-active .controls__key-letters {
  color: #8d3b36 !important;
}

@media (max-width: 390px) {
  .snake-softkeys,
  body.snake-fullscreen .snake-softkeys {
    width: min(100%, 316px) !important;
    gap: 34px !important;
    padding: 0 6px !important;
  }

  .snake-softkey--left,
  .snake-softkey--right {
    width: 108px !important;
    height: 56px !important;
  }

  .controls.controls--phone .controls__button.controls__button--utility .controls__key-number,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--utility .controls__key-number {
    font-size: 1.04rem !important;
  }

  .controls.controls--phone .controls__button.controls__button--utility .controls__key-letters,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--utility .controls__key-letters {
    font-size: 0.38rem !important;
  }
}

/* Premium tactile finish */
.snake-phone,
body.snake-fullscreen .snake-phone {
  background:
    linear-gradient(90deg, rgba(244, 236, 220, 0.86) 0 2.7%, rgba(244, 236, 220, 0) 2.7% 97.3%, rgba(244, 236, 220, 0.82) 97.3% 100%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(180deg, #95a0c4 0%, #7986ae 28%, #627196 64%, #516184 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 0 rgba(25, 31, 55, 0.22),
    inset 12px 0 18px rgba(255, 255, 255, 0.05),
    inset -12px 0 18px rgba(19, 26, 46, 0.06),
    0 24px 38px rgba(0, 0, 0, 0.18),
    0 42px 80px rgba(0, 0, 0, 0.16) !important;
}

.snake-phone::before {
  inset: 8px 8px 10px !important;
  border-radius: 66px 66px 30px 30px / 108px 108px 24px 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(28, 36, 60, 0.18) !important;
}

.snake-phone::after {
  opacity: 0.42 !important;
  background:
    radial-gradient(circle at 50% -2%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 3px, rgba(0, 0, 0, 0.022) 3px 6px),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.018) 0 1px, rgba(0, 0, 0, 0) 1px 4px) !important;
}

.snake-console__top {
  min-height: 102px !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker {
  gap: 7px !important;
  filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.06));
}

body:not(.snake-fullscreen) .snake-phone__speaker span,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker span,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker span {
  width: 14px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #0c1220 0%, #171d2d 100%) !important;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.56),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.snake-display-shell,
body.snake-fullscreen .snake-display-shell {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -5px 0 rgba(68, 72, 83, 0.16),
    inset 0 0 0 1px rgba(34, 40, 62, 0.08),
    0 18px 24px rgba(0, 0, 0, 0.22) !important;
}

.snake-display-shell::before,
body.snake-fullscreen .snake-display-shell::before {
  box-shadow:
    inset 0 2px 8px rgba(14, 18, 30, 0.38),
    inset 0 -2px 0 rgba(255, 255, 255, 0.06) !important;
}

body:not(.snake-fullscreen) .snake-stage .board,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  box-shadow:
    inset 0 1px 0 rgba(245, 255, 196, 0.42),
    inset 0 -14px 22px rgba(31, 48, 12, 0.24),
    inset 0 0 0 1px rgba(52, 74, 17, 0.16),
    0 0 34px rgba(174, 232, 69, 0.12) !important;
}

.snake-softkey,
.controls.controls--phone .controls__button.controls__button--key {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease !important;
}

.snake-softkey {
  background: linear-gradient(180deg, #faf6f0 0%, #e8e0d4 56%, #d4cdc3 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.84),
    inset 0 -4px 0 rgba(91, 92, 97, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 16px rgba(0, 0, 0, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.snake-softkey--left {
  --snake-softkey-tilt: -24deg;
  transform: rotate(var(--snake-softkey-tilt)) translateY(2px) !important;
}

.snake-softkey--right {
  --snake-softkey-tilt: 24deg;
  transform: rotate(var(--snake-softkey-tilt)) translateY(2px) !important;
}

.snake-softkey:hover {
  filter: brightness(1.04) saturate(1.02) !important;
}

.snake-softkey:active {
  transform: rotate(var(--snake-softkey-tilt, 0deg)) translateY(5px) scale(0.965) !important;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.44),
    0 4px 7px rgba(0, 0, 0, 0.12) !important;
}

.controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  margin-top: 36px !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 318px) !important;
  grid-template-columns: repeat(3, 96px) !important;
  gap: 13px 15px !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
  --key-tilt: 0deg;
  width: 96px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fbf8f3 0%, #ece3d7 52%, #d7cfc4 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.86),
    inset 0 -4px 0 rgba(78, 80, 86, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 14px rgba(0, 0, 0, 0.16),
    0 2px 5px rgba(0, 0, 0, 0.08) !important;
  transform: rotate(var(--key-tilt)) !important;
}

.controls.controls--phone .controls__button.controls__button--key:nth-child(1) { --key-tilt: -2deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(2) { --key-tilt: 1deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(3) { --key-tilt: 0.7deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(4) { --key-tilt: -1.7deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(5) { --key-tilt: 0.3deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(6) { --key-tilt: 1.5deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(7) { --key-tilt: -1.1deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(8) { --key-tilt: 1.1deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(9) { --key-tilt: 0.6deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(10) { --key-tilt: -0.8deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(11) { --key-tilt: 0deg; }
.controls.controls--phone .controls__button.controls__button--key:nth-child(12) { --key-tilt: 0.9deg; }

.controls.controls--phone .controls__button.controls__button--key:hover {
  filter: brightness(1.04) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 0 rgba(78, 80, 86, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 12px 16px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(98, 225, 134, 0.08) !important;
}

.controls.controls--phone .controls__button.controls__button--key:active {
  transform: rotate(var(--key-tilt)) translateY(4px) scale(0.968) !important;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.48),
    0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.controls.controls--phone .controls__button.controls__button--active,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--active {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.92),
    inset 0 -4px 0 rgba(78, 80, 86, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 12px 18px rgba(0, 0, 0, 0.18),
    0 0 20px rgba(90, 223, 130, 0.15) !important;
}

.controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--zero {
  width: 102px !important;
}

.snake-controls-shadow {
  position: relative !important;
  width: min(100%, 332px) !important;
  height: 36px !important;
  margin-top: 10px !important;
  opacity: 0.9 !important;
}

.snake-controls-shadow::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 16px !important;
  transform: translateX(-50%) !important;
  width: 88px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(31, 43, 67, 0.34), rgba(9, 13, 23, 0.12)) !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18) !important;
}

.snake-controls-shadow::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: 66px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(15, 21, 38, 0.5) 0 20%, transparent 21%) 0 0 / 12px 10px repeat-x !important;
  opacity: 0.5 !important;
}

@media (max-width: 390px) {
  .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 302px) !important;
    grid-template-columns: repeat(3, 92px) !important;
    gap: 12px 13px !important;
  }

  .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
    width: 92px !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  .controls.controls--phone .controls__button.controls__button--zero,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--zero {
    width: 98px !important;
  }

  .snake-controls-shadow {
    width: min(100%, 316px) !important;
  }
}

.snake-softkeys,
body.snake-fullscreen .snake-softkeys {
  width: min(100%, 334px) !important;
  height: 76px !important;
  display: block !important;
  position: relative !important;
  margin-top: -4px !important;
  padding: 0 !important;
  z-index: 5 !important;
}

.snake-softkey--left,
.snake-softkey--right {
  position: absolute !important;
  bottom: 0 !important;
  width: 122px !important;
  height: 62px !important;
}

.snake-softkey--left {
  left: 0 !important;
}

.snake-softkey--right {
  right: 0 !important;
}

.controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  margin-top: 24px !important;
}

@media (max-width: 390px) {
  .snake-softkeys,
  body.snake-fullscreen .snake-softkeys {
    width: min(100%, 320px) !important;
    height: 72px !important;
    margin-top: -6px !important;
  }

  .snake-softkey--left,
  .snake-softkey--right {
    width: 112px !important;
    height: 58px !important;
  }

  .controls.controls--phone,
  body.snake-fullscreen .controls.controls--phone {
    margin-top: 20px !important;
  }
}

/* Fullscreen screen-fit fix */
body.snake-fullscreen .snake-phone {
  transform: none !important;
  width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 2px) !important;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px) !important;
  height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px) !important;
}

body.snake-fullscreen .snake-display-shell {
  width: min(100%, 408px) !important;
  padding: 10px 8px 36px !important;
}

body.snake-fullscreen .snake-display-shell::before {
  inset: 5px 5px 20px !important;
}

body.snake-fullscreen .snake-stage .board {
  width: min(calc(100% - 18px), 382px) !important;
  aspect-ratio: 352 / 318 !important;
  margin-bottom: 14px !important;
  padding: 6px 6px 12px !important;
}

body.snake-fullscreen .snake-display-shell__accent {
  bottom: 9px !important;
}

body.snake-fullscreen .board__overlay {
  inset: 50px 14px 22px !important;
}

body.snake-fullscreen .board__overlay-panel {
  width: min(100%, 228px) !important;
  padding: 14px 14px !important;
  gap: 6px !important;
}

body.snake-fullscreen .board__overlay-button {
  min-height: 40px !important;
}

@media (max-width: 390px) {
  body.snake-fullscreen .snake-display-shell {
    width: min(100%, 394px) !important;
    padding: 10px 7px 34px !important;
  }

  body.snake-fullscreen .snake-stage .board {
    width: min(calc(100% - 16px), 368px) !important;
    aspect-ratio: 352 / 318 !important;
  }

  body.snake-fullscreen .board__overlay {
    inset: 48px 12px 20px !important;
  }

  body.snake-fullscreen .board__overlay-panel {
    width: min(100%, 220px) !important;
    padding: 13px 12px !important;
  }
}

/* Fullscreen softkey anchoring */
body.snake-fullscreen .snake-softkeys {
  width: min(100%, 338px) !important;
  height: auto !important;
  display: flex !important;
  position: relative !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 22px !important;
  padding: 0 14px !important;
  margin-top: 14px !important;
}

body.snake-fullscreen .snake-softkey--left,
body.snake-fullscreen .snake-softkey--right {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 116px !important;
  height: 60px !important;
}

body.snake-fullscreen .controls.controls--phone {
  margin-top: 28px !important;
}

@media (max-width: 390px) {
  body.snake-fullscreen .snake-softkeys {
    width: min(100%, 320px) !important;
    gap: 16px !important;
    padding: 0 10px !important;
    margin-top: 12px !important;
  }

  body.snake-fullscreen .snake-softkey--left,
  body.snake-fullscreen .snake-softkey--right {
    width: 108px !important;
    height: 58px !important;
  }

  body.snake-fullscreen .controls.controls--phone {
    margin-top: 24px !important;
  }
}

/* Larger keypad + bottom mic */
.controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  margin-top: 26px !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 332px) !important;
  grid-template-columns: repeat(3, 100px) !important;
  gap: 14px 16px !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
  width: 100px !important;
  height: 60px !important;
  min-height: 60px !important;
}

.controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--zero {
  width: 108px !important;
}

.controls__key-number {
  font-size: 1.38rem !important;
}

.controls__key-letters {
  font-size: 0.38rem !important;
}

.controls__key-action {
  right: 13px !important;
  bottom: 10px !important;
  font-size: 0.6rem !important;
}

.snake-phone__mic {
  position: relative !important;
  width: min(100%, 120px) !important;
  height: 18px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: end !important;
  gap: 8px !important;
  opacity: 0.9 !important;
}

.snake-phone__mic span {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #243044 0%, #0e1320 100%) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.26) !important;
}

@media (max-width: 390px) {
  .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 316px) !important;
    grid-template-columns: repeat(3, 96px) !important;
    gap: 12px 14px !important;
  }

  .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
    width: 96px !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  .controls.controls--phone .controls__button.controls__button--zero,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--zero {
    width: 102px !important;
  }

  .snake-phone__mic {
    width: min(100%, 108px) !important;
    gap: 7px !important;
  }

  .snake-phone__mic span {
    width: 7px !important;
    height: 7px !important;
  }
}

/* Regular viewport keypad boost */
body:not(.snake-fullscreen) .snake-phone {
  width: min(calc(100vw - 6px), 424px) !important;
  min-height: clamp(778px, 96vh, 960px) !important;
  gap: 10px !important;
  padding-bottom: 16px !important;
}

body:not(.snake-fullscreen) .snake-softkeys {
  width: min(100%, 342px) !important;
  margin-top: 6px !important;
}

body:not(.snake-fullscreen) .snake-softkey--left,
body:not(.snake-fullscreen) .snake-softkey--right {
  width: 118px !important;
  height: 62px !important;
}

body:not(.snake-fullscreen) .controls.controls--phone {
  margin-top: 16px !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 352px) !important;
  grid-template-columns: repeat(3, 106px) !important;
  gap: 14px 17px !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key {
  width: 106px !important;
  height: 62px !important;
  min-height: 62px !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--zero {
  width: 112px !important;
}

body:not(.snake-fullscreen) .controls__key-number {
  font-size: 1.46rem !important;
}

body:not(.snake-fullscreen) .controls__key-letters {
  font-size: 0.4rem !important;
}

body:not(.snake-fullscreen) .controls__key-action {
  right: 14px !important;
  bottom: 10px !important;
  font-size: 0.62rem !important;
}

body:not(.snake-fullscreen) .snake-controls-shadow {
  width: min(100%, 344px) !important;
  height: 38px !important;
  margin-top: 12px !important;
}

body:not(.snake-fullscreen) .snake-phone__mic {
  width: min(100%, 140px) !important;
  height: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  gap: 9px !important;
}

body:not(.snake-fullscreen) .snake-phone__mic span {
  width: 8px !important;
  height: 8px !important;
}

/* Restart key alignment */
#restart-button.controls__button--active {
  transform: rotate(-1.2deg) translateY(1px) !important;
}

/* Phone element order fix */
.snake-phone > .snake-softkeys {
  order: 3 !important;
}

.snake-phone > .snake-controls-shadow {
  order: 4 !important;
}

.snake-phone > .controls.controls--phone {
  order: 5 !important;
}

.snake-phone > .snake-phone__mic {
  order: 6 !important;
}

/* Desktop fullscreen normalization */
body.snake-fullscreen:not(.snake-mobile-layout) .xiiy-stage.snake-stage {
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding: 10px 14px !important;
  align-items: center !important;
  justify-items: center !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone {
  transform: none !important;
  width: min(52vw, 500px) !important;
  height: auto !important;
  min-height: auto !important;
  max-height: calc(100dvh - 20px) !important;
  padding: 14px 10px 18px !important;
  gap: 10px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top {
  min-height: 86px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell {
  width: min(100%, 458px) !important;
  padding: 10px 8px 30px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell::before {
  inset: 5px 5px 17px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board {
  width: min(100%, 438px) !important;
  margin-bottom: 10px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkeys {
  width: min(100%, 350px) !important;
  margin-top: 10px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone {
  margin-top: 18px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 334px) !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-controls-shadow {
  margin-top: 8px !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__mic {
  margin-bottom: 10px !important;
}

/* Mobile fullscreen keypad grid */
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
  order: 3 !important;
  width: min(100%, 338px) !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 0 8px !important;
  margin-top: 10px !important;
  position: relative !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 62px !important;
  justify-self: stretch !important;
  border-radius: 24px !important;
  transform: none !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left:not(:disabled),
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right:not(:disabled) {
  transform: none !important;
  filter: brightness(1.03) saturate(1.02) !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey:active {
  transform: translateY(4px) scale(0.976) !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  order: 5 !important;
  width: 100% !important;
  margin-top: 14px !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 338px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  --key-tilt: 0deg !important;
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  transform: none !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--zero {
  width: 100% !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #restart-button.controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="up"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="left"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="right"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="down"].controls__button--active {
  transform: none !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key:active {
  transform: translateY(4px) scale(0.97) !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-number {
  font-size: 1.42rem !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-letters {
  font-size: 0.4rem !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-action {
  right: 12px !important;
  bottom: 10px !important;
  font-size: 0.58rem !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-controls-shadow {
  order: 4 !important;
  width: min(100%, 338px) !important;
  margin-top: 8px !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__mic {
  width: min(100%, 116px) !important;
  margin-bottom: 10px !important;
}

/* Unified desktop + modern device controls */
.snake-softkeys,
body.snake-fullscreen .snake-softkeys {
  width: min(100%, 356px) !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 14px !important;
  padding: 0 10px !important;
  margin-top: 12px !important;
  position: relative !important;
}

.snake-softkey,
body.snake-fullscreen .snake-softkey {
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
  text-align: center !important;
}

.snake-softkey--left,
.snake-softkey--right,
body.snake-fullscreen .snake-softkey--left,
body.snake-fullscreen .snake-softkey--right {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: 64px !important;
  border-radius: 24px !important;
  transform: none !important;
  filter: none !important;
}

.snake-softkey--left:not(:disabled),
.snake-softkey--right:not(:disabled),
body.snake-fullscreen .snake-softkey--left:not(:disabled),
body.snake-fullscreen .snake-softkey--right:not(:disabled) {
  transform: none !important;
  filter: brightness(1.03) saturate(1.02) !important;
}

.snake-softkey:active,
body.snake-fullscreen .snake-softkey:active {
  transform: translateY(4px) scale(0.976) !important;
}

.snake-softkey__icon {
  font-size: 1.18rem !important;
  line-height: 1 !important;
}

.snake-softkey__label {
  font-size: 0.48rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.controls.controls--phone,
body.snake-fullscreen .controls.controls--phone {
  width: 100% !important;
  margin-top: 18px !important;
  justify-items: center !important;
}

.controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 356px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-items: stretch !important;
  gap: 14px !important;
}

.controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
  --key-tilt: 0deg !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  transform: none !important;
}

.controls.controls--phone .controls__button.controls__button--key.controls__button--active,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key.controls__button--active {
  transform: none !important;
}

.controls.controls--phone .controls__button.controls__button--key:active,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key:active {
  transform: translateY(4px) scale(0.97) !important;
}

.controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--zero {
  width: 100% !important;
}

.controls__key-number {
  font-size: 1.5rem !important;
}

.controls__key-letters {
  font-size: 0.42rem !important;
  letter-spacing: 0.06em !important;
}

.controls__key-action {
  top: 10px !important;
  right: 11px !important;
  bottom: auto !important;
  width: 14px !important;
  text-align: center !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
  opacity: 0.74 !important;
}

#restart-button .controls__key-action {
  top: 9px !important;
  right: 10px !important;
}

#fullscreen-button.controls__button--utility .controls__key-number,
#fullscreen-button.controls__button--utility .controls__key-letters {
  color: #8d3b36 !important;
}

@media (max-width: 390px) {
  .snake-softkeys,
  body.snake-fullscreen .snake-softkeys {
    width: min(100%, 338px) !important;
    gap: 12px !important;
    padding: 0 8px !important;
  }

  .snake-softkey--left,
  .snake-softkey--right,
  body.snake-fullscreen .snake-softkey--left,
  body.snake-fullscreen .snake-softkey--right {
    height: 60px !important;
  }

  .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 338px) !important;
    gap: 12px !important;
  }

  .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen .controls.controls--phone .controls__button.controls__button--key {
    height: 62px !important;
    min-height: 62px !important;
  }
}

/* Real-device lock: iPhone + desktop stable geometry */
body:not(.snake-fullscreen) .snake-display-shell,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  width: min(100%, 390px) !important;
  padding: 10px 8px 30px !important;
}

body:not(.snake-fullscreen) .snake-display-shell::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell::before {
  inset: 6px 6px 18px !important;
}

body:not(.snake-fullscreen) .snake-stage .board,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  width: min(calc(100% - 18px), 368px) !important;
  margin-bottom: 12px !important;
}

body:not(.snake-fullscreen) .snake-display-shell__accent,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__accent,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__accent {
  bottom: 9px !important;
}

body:not(.snake-fullscreen) .snake-softkeys,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkeys,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
  width: min(100%, 364px) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 14px !important;
  padding: 0 8px !important;
  margin-top: 12px !important;
  height: auto !important;
  position: relative !important;
}

body:not(.snake-fullscreen) .snake-softkey,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
  text-align: center !important;
}

body:not(.snake-fullscreen) .snake-softkey--left,
body:not(.snake-fullscreen) .snake-softkey--right,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--left,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--right,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: 64px !important;
  border-radius: 24px !important;
  transform: none !important;
  filter: none !important;
}

body:not(.snake-fullscreen) .snake-softkey--left:not(:disabled),
body:not(.snake-fullscreen) .snake-softkey--right:not(:disabled),
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--left:not(:disabled),
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--right:not(:disabled),
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left:not(:disabled),
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right:not(:disabled) {
  transform: none !important;
  filter: brightness(1.03) saturate(1.02) !important;
}

body:not(.snake-fullscreen) .snake-softkey:active,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey:active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey:active {
  transform: translateY(4px) scale(0.976) !important;
}

body:not(.snake-fullscreen) .controls.controls--phone,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  width: 100% !important;
  margin-top: 18px !important;
  justify-items: center !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 364px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-items: stretch !important;
  gap: 14px !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  --key-tilt: 0deg !important;
  width: 100% !important;
  height: 66px !important;
  min-height: 66px !important;
  transform: none !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--zero {
  width: 100% !important;
}

body:not(.snake-fullscreen) #restart-button.controls__button--active,
body:not(.snake-fullscreen) .controls.controls--phone [data-direction="up"].controls__button--active,
body:not(.snake-fullscreen) .controls.controls--phone [data-direction="left"].controls__button--active,
body:not(.snake-fullscreen) .controls.controls--phone [data-direction="right"].controls__button--active,
body:not(.snake-fullscreen) .controls.controls--phone [data-direction="down"].controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) #restart-button.controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone [data-direction="up"].controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone [data-direction="left"].controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone [data-direction="right"].controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone [data-direction="down"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #restart-button.controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="up"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="left"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="right"].controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone [data-direction="down"].controls__button--active {
  transform: none !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button[data-direction] .controls__key-action,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button[data-direction] .controls__key-action,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button[data-direction] .controls__key-action {
  top: 9px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  text-align: center !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  opacity: 0.78 !important;
}

body:not(.snake-fullscreen) #restart-button .controls__key-action,
body.snake-fullscreen:not(.snake-mobile-layout) #restart-button .controls__key-action,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #restart-button .controls__key-action {
  top: 9px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

@media (max-width: 430px) {
  body:not(.snake-fullscreen) .snake-softkeys,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkeys,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
    width: min(100%, 340px) !important;
    gap: 12px !important;
  }

  body:not(.snake-fullscreen) .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 340px) !important;
    gap: 12px !important;
  }

  body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
    height: 62px !important;
    min-height: 62px !important;
  }
}

/* Overlay fit inside LCD */
.board__overlay,
body.snake-fullscreen .board__overlay {
  inset: 44px 12px 18px !important;
  padding: 10px !important;
}

.board__overlay-panel,
body.snake-fullscreen .board__overlay-panel {
  width: min(100%, 196px) !important;
  max-width: 196px !important;
  max-height: calc(100% - 2px) !important;
  padding: 12px 10px !important;
  gap: 5px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.board__eyebrow {
  font-size: 0.34rem !important;
  letter-spacing: 0.18em !important;
}

.board__overlay-title {
  font-size: 1.1rem !important;
  line-height: 0.98 !important;
}

.board__overlay-copy {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}

.board__overlay-actions,
body.snake-fullscreen .board__overlay-actions {
  gap: 8px !important;
  margin-top: 2px !important;
}

.board__overlay-button,
body.snake-fullscreen .board__overlay-button {
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: 0.8rem !important;
}

@media (max-width: 430px) {
  .board__overlay,
  body.snake-fullscreen .board__overlay {
    inset: 42px 10px 16px !important;
    padding: 8px !important;
  }

  .board__overlay-panel,
  body.snake-fullscreen .board__overlay-panel {
    width: min(100%, 182px) !important;
    max-width: 182px !important;
    padding: 10px 9px !important;
    gap: 4px !important;
  }

  .board__overlay-title {
    font-size: 1rem !important;
  }

  .board__overlay-copy {
    font-size: 0.68rem !important;
  }

  .board__overlay-button,
  body.snake-fullscreen .board__overlay-button {
    min-height: 32px !important;
    font-size: 0.76rem !important;
  }
}

.board__overlay-copy:empty,
body.snake-fullscreen .board__overlay-copy:empty {
  display: none !important;
}

.board__overlay-actions,
body.snake-fullscreen .board__overlay-actions {
  width: 100% !important;
  margin-top: 0 !important;
}

/* Final device-fit lock */
body:not(.snake-fullscreen) .snake-phone,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  display: grid !important;
  grid-template-rows: auto auto auto auto auto auto !important;
  align-content: start !important;
  justify-items: center !important;
  gap: 12px !important;
  padding: 14px 10px 18px !important;
  overflow: hidden !important;
}

body:not(.snake-fullscreen) .snake-console__top,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
  min-height: 78px !important;
  gap: 8px !important;
  padding-top: 0 !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker {
  gap: 6px !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker span,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker span,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker span {
  width: 12px !important;
  height: 6px !important;
}

body:not(.snake-fullscreen) .snake-phone {
  width: min(calc(100vw - 10px), 414px) !important;
  min-height: clamp(736px, 90svh, 900px) !important;
}

body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone {
  width: min(52vw, 508px) !important;
  height: auto !important;
  min-height: auto !important;
  max-height: calc(100dvh - 18px) !important;
}

body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  width: min(calc(100vw - 8px), 414px) !important;
  height: auto !important;
  min-height: calc(100svh - 8px) !important;
}

body:not(.snake-fullscreen) .snake-phone > .snake-stage__board-wrap,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone > .snake-stage__board-wrap,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone > .snake-stage__board-wrap {
  order: 2 !important;
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  margin-top: 0 !important;
}

body:not(.snake-fullscreen) .snake-display-shell,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  width: min(100%, 372px) !important;
  padding: 10px 8px 30px !important;
}

body:not(.snake-fullscreen) .snake-display-shell::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell::before {
  inset: 6px 6px 18px !important;
}

body:not(.snake-fullscreen) .snake-stage .board,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  width: min(calc(100% - 20px), 350px) !important;
  aspect-ratio: 336 / 296 !important;
  margin-bottom: 12px !important;
}

body:not(.snake-fullscreen) .snake-display-shell__accent,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__accent,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__accent {
  bottom: 9px !important;
}

body:not(.snake-fullscreen) .snake-softkeys,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkeys,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
  order: 3 !important;
  width: min(100%, 334px) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 12px !important;
  padding: 0 6px !important;
  margin-top: 6px !important;
  position: static !important;
  height: auto !important;
  z-index: 0 !important;
}

body:not(.snake-fullscreen) .snake-softkey,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
  text-align: center !important;
  opacity: 1 !important;
}

body:not(.snake-fullscreen) .snake-softkey--left,
body:not(.snake-fullscreen) .snake-softkey--right,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--left,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--right,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 58px !important;
  border-radius: 24px !important;
  transform: none !important;
}

body:not(.snake-fullscreen) .snake-softkey:disabled,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey:disabled,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey:disabled {
  opacity: 1 !important;
  filter: saturate(0.84) brightness(0.96) !important;
  color: rgba(38, 73, 51, 0.66) !important;
}

body:not(.snake-fullscreen) .controls.controls--phone,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
  order: 4 !important;
  width: 100% !important;
  margin-top: 10px !important;
  justify-items: center !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__pad.snake-keypad,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
  width: min(100%, 334px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-items: stretch !important;
  gap: 12px !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  --key-tilt: 0deg !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  transform: none !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--active {
  transform: none !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--zero,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--zero {
  width: 100% !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key:disabled,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key:disabled,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key:disabled {
  opacity: 1 !important;
}

body:not(.snake-fullscreen) .controls__key-number,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-number,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-number {
  font-size: 1.42rem !important;
}

body:not(.snake-fullscreen) .controls__key-letters,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-letters,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-letters {
  font-size: 0.4rem !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button[data-direction] .controls__key-action,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button[data-direction] .controls__key-action,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button[data-direction] .controls__key-action {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  top: 8px !important;
  transform: none !important;
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  opacity: 0.78 !important;
}

body:not(.snake-fullscreen) #restart-button .controls__key-action,
body.snake-fullscreen:not(.snake-mobile-layout) #restart-button .controls__key-action,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) #restart-button .controls__key-action {
  top: 8px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  transform: none !important;
}

body:not(.snake-fullscreen) .snake-controls-shadow,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-controls-shadow,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-controls-shadow {
  order: 5 !important;
  width: min(100%, 108px) !important;
  height: 12px !important;
  margin-top: 4px !important;
}

body:not(.snake-fullscreen) .snake-controls-shadow::after,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-controls-shadow::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-controls-shadow::after {
  display: none !important;
}

body:not(.snake-fullscreen) .snake-phone__mic,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__mic,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__mic {
  order: 6 !important;
  align-self: end !important;
  width: min(100%, 112px) !important;
  margin-top: 6px !important;
  margin-bottom: 2px !important;
}

@media (max-width: 430px) {
  body:not(.snake-fullscreen) .snake-console__top,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
    min-height: 70px !important;
    gap: 7px !important;
  }

  body:not(.snake-fullscreen) .snake-phone__speaker,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker {
    gap: 5px !important;
  }

  body:not(.snake-fullscreen) .snake-phone__speaker span,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker span,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker span {
    width: 11px !important;
    height: 5px !important;
  }

  body:not(.snake-fullscreen) .snake-display-shell,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
    width: min(100%, 356px) !important;
    padding: 10px 8px 28px !important;
  }

  body:not(.snake-fullscreen) .snake-stage .board,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
    width: min(calc(100% - 18px), 338px) !important;
    margin-bottom: 11px !important;
  }

  body:not(.snake-fullscreen) .snake-softkeys,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkeys,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
    width: min(100%, 322px) !important;
    gap: 10px !important;
  }

  body:not(.snake-fullscreen) .snake-softkey--left,
  body:not(.snake-fullscreen) .snake-softkey--right,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--left,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey--right,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right {
    height: 56px !important;
  }

  body:not(.snake-fullscreen) .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__pad.snake-keypad,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 322px) !important;
    gap: 10px !important;
  }

  body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
    height: 58px !important;
    min-height: 58px !important;
  }
}

/* Final classic HOKIA shell skin */
:root {
  --hokia-shell-top: #8d97b5;
  --hokia-shell-mid: #74809e;
  --hokia-shell-bottom: #5c6883;
  --hokia-shell-edge: #ece7dc;
  --hokia-shell-edge-shadow: #b5afa3;
  --hokia-shell-panel: #222c3e;
  --hokia-shell-panel-deep: #1b2231;
  --hokia-shell-copy: #f3f0e8;
  --hokia-shell-hole-rim: rgba(224, 229, 239, 0.22);
  --hokia-shell-hole-deep: #101723;
  --hokia-lcd-top: #bfd145;
  --hokia-lcd-bottom: #8ea725;
  --hokia-lcd-ink: #26311a;
  --hokia-lcd-bezel: #596530;
  --hokia-lcd-shadow: #2f3b1d;
  --hokia-key-top: #f0ede6;
  --hokia-key-bottom: #d4d0c8;
  --hokia-key-edge: #8b887f;
  --hokia-key-shadow: rgba(37, 42, 52, 0.18);
  --hokia-key-copy: #5b615f;
  --hokia-mic-dark: #1f2838;
}

body:not(.snake-fullscreen) .snake-phone,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
  background:
    linear-gradient(90deg, rgba(241, 236, 225, 0.9) 0 2.6%, rgba(241, 236, 225, 0) 2.6% 97.4%, rgba(241, 236, 225, 0.88) 97.4% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, var(--hokia-shell-top) 0%, var(--hokia-shell-mid) 52%, var(--hokia-shell-bottom) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -6px 0 rgba(42, 49, 69, 0.22),
    inset 10px 0 12px rgba(255, 255, 255, 0.04),
    inset -10px 0 12px rgba(23, 29, 44, 0.05),
    0 18px 26px rgba(0, 0, 0, 0.16) !important;
}

body:not(.snake-fullscreen) .snake-phone::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::before {
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(42, 49, 69, 0.16) !important;
}

body:not(.snake-fullscreen) .snake-phone::after,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone::after {
  opacity: 0.18 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 3px, rgba(0, 0, 0, 0.014) 3px 6px) !important;
}

body:not(.snake-fullscreen) .snake-console__top,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-console__top,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
  filter: none !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker {
  filter: none !important;
}

body:not(.snake-fullscreen) .snake-phone__speaker span,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__speaker span,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__speaker span {
  border-radius: 999px !important;
  background: linear-gradient(180deg, #081019 0%, #202938 100%) !important;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.84),
    inset 0 -1px 0 rgba(80, 94, 124, 0.22),
    0 -1px 0 rgba(236, 240, 247, 0.22),
    0 1px 0 rgba(20, 25, 37, 0.74),
    0 2px 3px rgba(0, 0, 0, 0.12) !important;
}

body:not(.snake-fullscreen) .snake-phone__brand,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__brand,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__brand {
  position: relative !important;
  isolation: isolate !important;
  background: linear-gradient(180deg, var(--hokia-shell-panel) 0%, var(--hokia-shell-panel-deep) 100%) !important;
  color: var(--hokia-shell-copy) !important;
  border-radius: 8px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -3px 0 rgba(5, 8, 15, 0.46),
    inset 0 12px 16px rgba(255, 255, 255, 0.02),
    inset 0 -10px 14px rgba(0, 0, 0, 0.16),
    0 3px 0 rgba(18, 22, 32, 0.74),
    0 10px 12px rgba(0, 0, 0, 0.2) !important;
  text-shadow:
    0 1px 0 rgba(8, 10, 17, 0.92),
    0 -1px 0 rgba(255, 255, 255, 0.1),
    0 0 1px rgba(255, 255, 255, 0.04) !important;
  letter-spacing: 0.04em !important;
}

body:not(.snake-fullscreen) .snake-display-shell,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  background: linear-gradient(180deg, var(--hokia-shell-edge) 0%, #ddd7cc 58%, #c5beb1 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -5px 0 rgba(92, 89, 81, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 14px 18px rgba(255, 255, 255, 0.04),
    inset 0 -10px 14px rgba(82, 77, 67, 0.08),
    0 4px 0 rgba(109, 103, 95, 0.58),
    0 12px 16px rgba(0, 0, 0, 0.16) !important;
}

body:not(.snake-fullscreen) .snake-display-shell::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell::before {
  background: linear-gradient(180deg, #616b84 0%, #515b72 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    inset 0 -4px 0 rgba(16, 20, 30, 0.38),
    inset 0 10px 16px rgba(255, 255, 255, 0.02),
    inset 0 -14px 18px rgba(6, 10, 17, 0.24),
    0 2px 0 rgba(247, 241, 232, 0.12),
    0 10px 14px rgba(0, 0, 0, 0.08) !important;
}

body:not(.snake-fullscreen) .snake-display-shell__accent,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__accent,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__accent {
  background: linear-gradient(180deg, #b8c4c3 0%, #8c9798 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body:not(.snake-fullscreen) .snake-stage .board,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
  border-color: var(--hokia-lcd-bezel) !important;
  background: linear-gradient(180deg, var(--hokia-lcd-top) 0%, var(--hokia-lcd-bottom) 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(247, 255, 198, 0.22),
    inset 0 -14px 22px rgba(53, 74, 16, 0.24),
    inset 0 0 0 1px rgba(63, 83, 20, 0.22),
    inset 0 10px 14px rgba(255, 255, 255, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 10px rgba(0, 0, 0, 0.08) !important;
}

body:not(.snake-fullscreen) .snake-stage .board::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board::before {
  opacity: 0.05 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%) !important;
}

body:not(.snake-fullscreen) .snake-stage .board::after,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-stage .board::after,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board::after {
  opacity: 0.08 !important;
  background:
    linear-gradient(transparent 50%, rgba(255, 255, 255, 0.025) 50%),
    radial-gradient(circle at center, transparent 48%, rgba(28, 35, 19, 0.12) 100%) !important;
}

.board__hud-item,
.board__hud-label,
.board__hud-item strong {
  color: var(--hokia-lcd-ink) !important;
}

body:not(.snake-fullscreen) .snake-softkey,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  color: var(--hokia-key-copy) !important;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #ffffff 0%, #f6f2ea 24%, #e4ddd1 58%, #cbc3b6 100%) !important;
  border-color: #8a8477 !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.82),
    inset 0 -6px 0 rgba(103, 98, 89, 0.34),
    inset 0 -14px 18px rgba(166, 155, 137, 0.28),
    0 4px 0 rgba(116, 109, 96, 0.82),
    0 12px 16px rgba(33, 39, 50, 0.26) !important;
  text-shadow: none !important;
  filter: none !important;
}

body:not(.snake-fullscreen) .snake-softkey::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey::before,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key::before,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key::before {
  content: "" !important;
  position: absolute !important;
  inset: 3px !important;
  border-radius: inherit !important;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04) 44%, rgba(255, 255, 255, 0) 62%) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body:not(.snake-fullscreen) .snake-softkey > *,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey > *,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey > *,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key > *,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key > *,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key > * {
  position: relative !important;
  z-index: 1 !important;
}

body:not(.snake-fullscreen) .snake-softkey:disabled,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey:disabled,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey:disabled,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key:disabled,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key:disabled,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key:disabled {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #ebe6de 0%, #d8d1c7 40%, #c6beb3 72%, #b8b0a5 100%) !important;
  border-color: #8d8678 !important;
  color: rgba(91, 97, 95, 0.68) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -5px 0 rgba(94, 90, 82, 0.22),
    inset 0 -12px 16px rgba(154, 146, 132, 0.22),
    0 3px 0 rgba(112, 106, 94, 0.68),
    0 10px 14px rgba(33, 39, 50, 0.18) !important;
}

body:not(.snake-fullscreen) .snake-softkey:disabled::before,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey:disabled::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey:disabled::before,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key:disabled::before,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key:disabled::before,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key:disabled::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02) 44%, rgba(255, 255, 255, 0) 62%) !important;
  opacity: 0.78 !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--active {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #fffdf8 0%, #f2ece1 56%, #dbd3c6 100%) !important;
  border-color: #7f796d !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.88),
    inset 0 -6px 0 rgba(103, 98, 89, 0.28),
    inset 0 -14px 18px rgba(194, 186, 171, 0.3),
    0 5px 0 rgba(116, 109, 96, 0.88),
    0 14px 18px rgba(33, 39, 50, 0.28) !important;
}

body:not(.snake-fullscreen) .snake-softkey:active,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey:active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey:active,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--key:active,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--key:active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key:active {
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -8px 12px rgba(170, 164, 152, 0.24),
    0 1px 0 rgba(116, 109, 96, 0.4),
    0 5px 8px rgba(33, 39, 50, 0.16) !important;
}

body:not(.snake-fullscreen) .snake-softkey__icon,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey__icon,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey__icon,
body:not(.snake-fullscreen) .snake-softkey__label,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-softkey__label,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey__label,
body:not(.snake-fullscreen) .controls__key-number,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-number,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-number,
body:not(.snake-fullscreen) .controls__key-letters,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-letters,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-letters,
body:not(.snake-fullscreen) .controls__key-action,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-action,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-action {
  color: var(--hokia-key-copy) !important;
  text-shadow: none !important;
}

body:not(.snake-fullscreen) .controls__key-number,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-number,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-number {
  font-weight: 800 !important;
}

body:not(.snake-fullscreen) .controls__key-letters,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-letters,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-letters {
  opacity: 0.72 !important;
}

body:not(.snake-fullscreen) .controls__key-action,
body.snake-fullscreen:not(.snake-mobile-layout) .controls__key-action,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls__key-action {
  opacity: 0.75 !important;
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--sound .controls__key-number,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--home .controls__key-number,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--sound .controls__key-letters,
body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--home .controls__key-letters,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--sound .controls__key-number,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--home .controls__key-number,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--sound .controls__key-letters,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--home .controls__key-letters,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--sound .controls__key-number,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--home .controls__key-number,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--sound .controls__key-letters,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--home .controls__key-letters {
  color: var(--hokia-key-copy) !important;
}

body:not(.snake-fullscreen) .snake-phone__mic span,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-phone__mic span,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__mic span {
  background: linear-gradient(180deg, #0b1118 0%, #20293a 100%) !important;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.86),
    inset 0 -1px 0 rgba(74, 87, 113, 0.18),
    0 -1px 0 rgba(236, 240, 247, 0.18),
    0 1px 0 rgba(17, 21, 30, 0.82),
    0 2px 3px rgba(0, 0, 0, 0.16) !important;
}

/* Exit button moved to top-right display corner */
body:not(.snake-fullscreen) .snake-display-shell,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  overflow: visible !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit {
  position: absolute !important;
  top: -13px !important;
  right: -9px !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid #7f7a70 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #f3eee4 0%, #ddd5c7 54%, #c5bcad 100%) !important;
  color: #464c49 !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -4px 0 rgba(111, 103, 91, 0.34),
    0 4px 0 rgba(111, 103, 91, 0.8),
    0 10px 14px rgba(0, 0, 0, 0.2) !important;
  text-shadow: none !important;
  z-index: 8 !important;
  cursor: pointer !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit:hover,
body:not(.snake-fullscreen) .snake-display-shell__exit:focus-visible,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit:hover,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit:focus-visible,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit:hover,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit:focus-visible {
  filter: brightness(1.03) !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit:active,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit:active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit:active {
  transform: translateY(3px) scale(0.975) !important;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 1px 0 rgba(111, 103, 91, 0.44),
    0 5px 8px rgba(0, 0, 0, 0.16) !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit-icon,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit-icon,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit-icon {
  display: block !important;
  font: 900 1.55rem/1 "Trebuchet MS", "Segoe UI", sans-serif !important;
  color: #50574f !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 430px) {
  body:not(.snake-fullscreen) .snake-display-shell__exit,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit {
    top: -10px !important;
    right: -6px !important;
    width: 40px !important;
    height: 40px !important;
  }

  body:not(.snake-fullscreen) .snake-display-shell__exit-icon,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit-icon,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit-icon {
    font-size: 1.38rem !important;
  }
}

/* Viewport-level exit button override */
body:not(.snake-fullscreen) .snake-display-shell,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
  overflow: hidden !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit {
  position: fixed !important;
  top: calc(10px + env(safe-area-inset-top, 0px)) !important;
  right: calc(4px + env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  bottom: auto !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(17, 24, 36, 0.32) !important;
  border-radius: 999px !important;
  background: #f2f4f7 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #0d1219 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 2px 8px rgba(7, 11, 18, 0.12) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  transition: none !important;
  animation: none !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform: translateZ(0) !important;
  filter: none !important;
  isolation: isolate !important;
  z-index: 10020 !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit:hover,
body:not(.snake-fullscreen) .snake-display-shell__exit:focus-visible,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit:hover,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit:focus-visible,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit:hover,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit:focus-visible {
  background: #fafbfd !important;
  color: #070b12 !important;
  filter: none !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit:active,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit:active,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit:active {
  transform: translateZ(0) scale(0.94) !important;
  box-shadow: none !important;
}

body:not(.snake-fullscreen) .snake-display-shell__exit-icon,
body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit-icon,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit-icon {
  display: block !important;
  font: 800 1.62rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: inherit !important;
  transform: none !important;
  opacity: 1 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

@media (max-width: 430px) {
  body:not(.snake-fullscreen) .snake-display-shell__exit,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit {
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    right: calc(2px + env(safe-area-inset-right, 0px)) !important;
    width: 34px !important;
    height: 34px !important;
  }

  body:not(.snake-fullscreen) .snake-display-shell__exit-icon,
  body.snake-fullscreen:not(.snake-mobile-layout) .snake-display-shell__exit-icon,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit-icon {
    font-size: 1.4rem !important;
  }
}

body:not(.snake-fullscreen) .controls.controls--phone .controls__button.controls__button--brand-tag .controls__key-number,
body.snake-fullscreen:not(.snake-mobile-layout) .controls.controls--phone .controls__button.controls__button--brand-tag .controls__key-number,
body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--brand-tag .controls__key-number {
  font-size: 1.08rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

/* Final iPhone fullscreen fit */
@media (max-width: 430px) {
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone {
    width: min(
      calc(100vw - 14px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)),
      calc((100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 76px) * 0.495),
      366px
    ) !important;
    min-height: auto !important;
    height: auto !important;
    padding: 9px 8px 0 !important;
    gap: 7px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-console__top {
    min-height: 70px !important;
    padding-bottom: 1px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell {
    width: min(100%, 318px) !important;
    padding: 8px 6px 24px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell::before {
    inset: 4px 4px 16px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-stage .board {
    width: min(calc(100% - 16px), 300px) !important;
    aspect-ratio: 336 / 286 !important;
    margin-bottom: 8px !important;
    padding: 6px 6px 10px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__accent {
    bottom: 7px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkeys {
    width: min(100%, 304px) !important;
    gap: 10px !important;
    padding: 0 4px !important;
    margin-top: 6px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--left,
  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-softkey--right {
    height: 54px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone {
    margin-top: 12px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__pad.snake-keypad {
    width: min(100%, 304px) !important;
    gap: 10px 10px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .controls.controls--phone .controls__button.controls__button--key {
    height: 54px !important;
    min-height: 54px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-phone__mic {
    margin-top: -2px !important;
    margin-bottom: -12px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit {
    top: calc(env(safe-area-inset-top, 0px) + 0px) !important;
    right: calc(env(safe-area-inset-right, 0px) - 1px) !important;
    width: 30px !important;
    height: 30px !important;
  }

  body.snake-fullscreen.snake-mobile-layout:not(.snake-landscape) .snake-display-shell__exit-icon {
    font-size: 1.2rem !important;
  }
}

/* Snake premium motion / tactile polish */
.snake-stage .board,
body.snake-fullscreen .snake-stage .board {
  box-shadow:
    inset 0 2px 0 rgba(247, 255, 198, 0.22),
    inset 0 -16px 24px rgba(53, 74, 16, 0.3),
    inset 0 0 0 1px rgba(63, 83, 20, 0.24),
    inset 0 14px 18px rgba(255, 255, 255, 0.04),
    0 6px 10px rgba(0, 0, 0, 0.1) !important;
}

.snake-stage .board::before,
body.snake-fullscreen .snake-stage .board::before {
  opacity: 0.08 !important;
}

.snake-stage .board::after,
body.snake-fullscreen .snake-stage .board::after {
  opacity: 0.12 !important;
}

.board__canvas,
.board__overlay,
.board__overlay-button,
.snake-softkey,
.controls.controls--phone .controls__button.controls__button--key,
.snake-display-shell__exit {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.board__canvas,
.snake-softkey,
.controls.controls--phone .controls__button.controls__button--key,
.snake-display-shell__exit {
  touch-action: manipulation !important;
}

.snake-softkey,
.controls.controls--phone .controls__button.controls__button--key,
.board__overlay-button {
  will-change: transform, box-shadow, filter;
}

.snake-softkey.is-pressed,
.controls.controls--phone .controls__button.controls__button--key.is-pressed,
.board__overlay-button.is-pressed {
  transform: translateY(3px) scale(0.985) !important;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -7px 11px rgba(170, 164, 152, 0.2),
    0 1px 0 rgba(116, 109, 96, 0.36),
    0 5px 8px rgba(33, 39, 50, 0.14) !important;
  filter: brightness(0.99) !important;
}

.controls.controls--phone .controls__button.controls__button--active.is-pressed {
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 12px rgba(170, 164, 152, 0.18),
    0 1px 0 rgba(116, 109, 96, 0.32),
    0 5px 8px rgba(33, 39, 50, 0.14) !important;
}

.board__overlay-panel,
body.snake-fullscreen .board__overlay-panel {
  box-shadow:
    inset 0 1px 0 rgba(250, 255, 206, 0.34),
    inset 0 -8px 14px rgba(87, 104, 25, 0.16),
    0 18px 28px rgba(25, 36, 11, 0.18) !important;
}

.board__overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.snake-fullscreen,
body.snake-mobile-layout {
  overscroll-behavior: none;
}

@media (min-width: 980px) {
  body[data-game-key="snake"] .game-template-app.app {
    min-height: 100vh;
    padding:
      calc(18px + env(safe-area-inset-top, 0px))
      clamp(16px, 2vw, 24px)
      calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    place-items: stretch;
  }

  body[data-game-key="snake"] .game-template-panel.panel {
    width: min(100%, 1460px) !important;
    min-height: auto !important;
    margin: 0 auto;
    padding: 18px !important;
    border: 1px solid rgba(76, 111, 145, 0.36) !important;
    border-radius: 30px !important;
    background:
      linear-gradient(180deg, rgba(15, 17, 22, 0.96), rgba(8, 9, 13, 0.98)),
      radial-gradient(circle at top right, rgba(255, 122, 0, 0.08), transparent 24%) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 24px 54px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(124, 255, 0, 0.06) !important;
    backdrop-filter: none !important;
    display: block !important;
  }

  body[data-game-key="snake"] .game-template-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    position: relative;
    margin: 0 0 20px !important;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid rgba(76, 111, 145, 0.36);
    background:
      linear-gradient(180deg, rgba(14, 19, 28, 0.96), rgba(9, 13, 20, 0.94)),
      radial-gradient(circle at top left, rgba(124, 255, 0, 0.08), transparent 22%),
      radial-gradient(circle at top right, rgba(55, 167, 255, 0.08), transparent 22%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 18px 40px rgba(0, 0, 0, 0.24);
  }

  body[data-game-key="snake"] .game-template-nav::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
  }

  body[data-game-key="snake"] .game-template-nav .utility-links {
    display: contents !important;
    margin: 0 !important;
  }

  body[data-game-key="snake"] .game-template-nav .back-link,
  body[data-game-key="snake"] .game-template-nav .utility-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    margin: 0 !important;
    padding-inline: 20px;
    border-radius: 999px;
    font-size: 1.02rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 12px 24px rgba(0, 0, 0, 0.22);
  }

  body[data-game-key="snake"] .game-template-showcase.snake-template-showcase {
    display: grid !important;
    grid-template-columns: minmax(420px, 520px) minmax(320px, 1fr);
    gap: 22px;
    align-items: start;
  }

  body[data-game-key="snake"] .snake-template-stage {
    width: 100%;
    display: grid;
    justify-items: center;
    align-content: start;
  }

  body[data-game-key="snake"] .snake-template-frame {
    width: min(100%, 500px);
    padding: 18px;
    border-radius: 30px;
    border: 1px solid rgba(124, 255, 0, 0.18);
    background:
      linear-gradient(180deg, rgba(15, 16, 22, 0.98), rgba(7, 8, 11, 0.98)),
      radial-gradient(circle at 50% 0%, rgba(124, 255, 0, 0.08), transparent 44%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 24px 54px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(124, 255, 0, 0.06);
  }

  body[data-game-key="snake"] .snake-template-frame .snake-stage {
    width: min(100%, 332px) !important;
    min-height: 0 !important;
    margin: 0 auto;
    justify-items: center;
  }

  body[data-game-key="snake"] .snake-template-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
  }

  body[data-game-key="snake"] .xiiy-shell__hero.game-template-hero,
  body[data-game-key="snake"] .xiiy-shell__support.game-template-support {
    display: grid !important;
    min-width: 0;
    margin: 0;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(76, 111, 145, 0.28);
    background:
      linear-gradient(180deg, rgba(14, 18, 27, 0.92), rgba(8, 11, 17, 0.96)),
      radial-gradient(circle at top left, rgba(124, 255, 0, 0.06), transparent 22%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 18px 36px rgba(0, 0, 0, 0.24);
  }

  body[data-game-key="snake"] .game-template-hero .eyebrow {
    margin: 0 0 8px;
    color: #baff74;
    font: 800 0.72rem/1 "Arial Black", "Trebuchet MS", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  body[data-game-key="snake"] .game-template-hero h1 {
    margin: 0;
    color: #fff4e5;
    font: 900 clamp(2.6rem, 5vw, 4.2rem) / 0.94 "Arial Black", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow:
      0 0 22px rgba(124, 255, 0, 0.18),
      0 0 34px rgba(255, 122, 0, 0.08);
  }

  body[data-game-key="snake"] .game-template-hero .xiiy-shell__subtitle {
    margin: 0;
    color: rgba(231, 239, 216, 0.72);
    font-size: 1rem;
    line-height: 1.55;
  }

  body[data-game-key="snake"] .snake-hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
  }

  body[data-game-key="snake"] .snake-hero-fullscreen {
    appearance: none;
    border: 1px solid rgba(255, 237, 199, 0.26);
    border-radius: 999px;
    padding: 12px 18px;
    min-height: 46px;
    color: #fff4e5;
    background:
      linear-gradient(180deg, rgba(31, 41, 62, 0.95), rgba(15, 21, 34, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -2px 0 rgba(0, 0, 0, 0.36),
      0 10px 20px rgba(0, 0, 0, 0.24);
    font: 800 0.9rem/1 "Arial Black", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
      transform 140ms ease,
      box-shadow 140ms ease,
      border-color 140ms ease,
      background 140ms ease;
  }

  body[data-game-key="snake"] .snake-hero-fullscreen:hover {
    border-color: rgba(255, 237, 199, 0.42);
    background:
      linear-gradient(180deg, rgba(38, 49, 72, 0.98), rgba(18, 24, 38, 1));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -2px 0 rgba(0, 0, 0, 0.42),
      0 14px 26px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
  }

  body[data-game-key="snake"] .snake-hero-fullscreen:active,
  body[data-game-key="snake"] .snake-hero-fullscreen.is-pressed {
    transform: translateY(1px);
    box-shadow:
      inset 0 2px 4px rgba(0, 0, 0, 0.34),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04),
      0 6px 12px rgba(0, 0, 0, 0.18);
  }

  body[data-game-key="snake"] .snake-hero-fullscreen:focus-visible {
    outline: 2px solid rgba(186, 255, 116, 0.9);
    outline-offset: 3px;
  }

  @media (max-width: 960px) {
    body[data-game-key="snake"] .snake-hero-actions {
      display: none;
    }
  }

  body[data-game-key="snake"] .game-template-support .instructions {
    display: grid !important;
    gap: 10px;
    color: rgba(247, 255, 216, 0.9);
    font-weight: 600;
  }

  body[data-game-key="snake"] .game-template-support .snake-support-title {
    margin: 0;
    color: #fff4e5;
    font-size: 1.08rem;
    line-height: 1.2;
  }

  body[data-game-key="snake"] .game-template-support .instructions p {
    margin: 0;
    line-height: 1.5;
  }

  body[data-game-key="snake"] .seo-copy {
    display: grid !important;
    gap: 18px;
    grid-column: 1 / -1;
    margin-top: 22px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(76, 111, 145, 0.28);
    background:
      linear-gradient(180deg, rgba(14, 18, 27, 0.92), rgba(8, 11, 17, 0.96)),
      radial-gradient(circle at top right, rgba(255, 122, 0, 0.06), transparent 22%);
    color: rgba(231, 239, 216, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 18px 36px rgba(0, 0, 0, 0.24);
  }

  body[data-game-key="snake"] .seo-copy__section {
    display: grid;
    gap: 10px;
  }

  body[data-game-key="snake"] .seo-copy h2 {
    margin: 0;
    color: #fff4e5;
    font-size: 1.08rem;
  }

  body[data-game-key="snake"] .seo-copy p {
    margin: 0;
    line-height: 1.6;
  }

  body[data-game-key="snake"] .seo-copy__list {
    margin: 0;
    padding-left: 18px;
  }

  body[data-game-key="snake"] .seo-copy__list a {
    color: #baff74;
  }
}

@media (min-width: 980px) {
  body[data-game-key="snake"]:not(.snake-fullscreen) .snake-template-frame {
    width: min(100%, 472px);
    overflow: hidden;
  }

  body[data-game-key="snake"]:not(.snake-fullscreen) .snake-template-frame .snake-stage {
    width: min(100%, 348px) !important;
    padding-inline: 8px;
  }

  body[data-game-key="snake"]:not(.snake-fullscreen) .snake-template-frame .snake-phone {
    width: min(100%, 332px) !important;
    max-width: 332px !important;
    min-height: auto !important;
  }

  body[data-game-key="snake"] .game-hub {
    margin-top: 22px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(93, 122, 150, 0.24);
    background: rgba(12, 19, 28, 0.92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 18px 36px rgba(0, 0, 0, 0.22);
  }

  body[data-game-key="snake"] .game-hub__heading {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }

  body[data-game-key="snake"] .game-hub__heading h2,
  body[data-game-key="snake"] .game-hub__heading p {
    margin: 0;
    color: #fff4e5;
  }

  body[data-game-key="snake"] .game-hub__heading p {
    color: rgba(231, 239, 216, 0.72);
  }

  body[data-game-key="snake"] .game-hub__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
  }

  body[data-game-key="snake"] .game-chip {
    flex: 1 1 calc((100% - 56px) / 5);
    min-width: 180px;
    min-height: 180px;
    padding: 18px 14px 16px;
    display: grid;
    gap: 14px;
    justify-items: center;
    align-content: center;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(93, 122, 150, 0.24);
    background: rgba(12, 19, 28, 0.94);
    text-decoration: none;
    color: #f2f4eb;
    box-shadow: none;
  }

  body[data-game-key="snake"] .game-chip:hover,
  body[data-game-key="snake"] .game-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(147, 178, 209, 0.42);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
  }

  body[data-game-key="snake"] .game-chip__image {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 1px solid rgba(243, 207, 79, 0.32);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  }

  body[data-game-key="snake"] .game-chip__label {
    color: #f2f4eb;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
  }

  body[data-game-key="snake"] .vinyl-cta {
    margin-top: 22px;
    padding: 22px clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: minmax(132px, 144px) minmax(300px, 34rem);
    justify-content: center;
    justify-items: start;
    gap: 24px;
    align-items: center;
    border-radius: 24px;
    border: 1px solid rgba(93, 122, 150, 0.24);
    background: linear-gradient(180deg, rgba(18, 29, 42, 0.98), rgba(10, 16, 24, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    text-decoration: none;
    color: #f2f4eb;
  }

  body[data-game-key="snake"] .vinyl-cta__disc {
    width: 132px;
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    border: 2px solid rgba(93, 122, 150, 0.4);
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 2.4%, rgba(0, 0, 0, 0.88) 2.6% 4.2%, transparent 4.3%),
      repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 0 1px, rgba(0, 0, 0, 0) 1px 7px),
      radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.14), transparent 24%),
      radial-gradient(circle at 50% 50%, #2b2d34 0%, #17181c 58%, #090a0d 100%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  }

  body[data-game-key="snake"] .vinyl-cta__disc::before {
    content: "";
    position: absolute;
    inset: 31%;
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.98), rgba(247, 239, 214, 0.96) 62%, rgba(218, 206, 168, 0.94));
    box-shadow:
      0 0 0 2px rgba(248, 240, 216, 0.22),
      0 8px 16px rgba(0, 0, 0, 0.22);
  }

  body[data-game-key="snake"] .vinyl-cta__label {
    position: relative;
    z-index: 1;
    width: 42%;
  }

  body[data-game-key="snake"] .vinyl-cta__label img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  body[data-game-key="snake"] .vinyl-cta__copy {
    display: grid;
    gap: 6px;
    width: min(100%, 34rem);
  }

  body[data-game-key="snake"] .vinyl-cta__copy strong {
    color: #f2f4eb;
    font-size: 1.05rem;
    line-height: 1.1;
  }

  body[data-game-key="snake"] .vinyl-cta__copy span {
    color: rgba(231, 239, 216, 0.78);
  }

  body[data-game-key="snake"] .vinyl-cta__copy .eyebrow {
    color: #7db7ff;
  }
}
