:root {
  --bg-dark: #14110d;
  --bg-panel: linear-gradient(180deg, rgba(64, 58, 48, 0.96), rgba(28, 24, 20, 0.97));
  --bg-panel-soft: linear-gradient(180deg, rgba(55, 48, 40, 0.92), rgba(21, 18, 15, 0.95));
  --border-metal: #736754;
  --border-bright: #b49b67;
  --text-main: #ebe0c8;
  --text-dim: #aea188;
  --accent: #b69252;
  --accent-2: #8d8b65;
  --danger: #b36552;
  --gold: #d6b067;
  --shadow: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Verdana, Geneva, sans-serif;
  background:
    radial-gradient(circle at top, rgba(174, 132, 62, 0.08), transparent 36%),
    radial-gradient(circle at bottom, rgba(88, 69, 45, 0.14), transparent 34%),
    linear-gradient(180deg, #29231d, #0c0907 74%);
  color: var(--text-main);
}

body {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(88, 77, 64, 0.96), rgba(35, 29, 23, 0.99)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 6px);
  border-bottom: 2px solid rgba(180, 155, 103, 0.26);
  box-shadow: 0 10px 22px var(--shadow);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 {
  margin: 0;
  letter-spacing: 2px;
  font-size: 28px;
  text-transform: uppercase;
}

.brand p {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
}

.build-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(182, 146, 82, 0.18);
  border: 1px solid rgba(182, 146, 82, 0.26);
  color: var(--text-main);
  font-size: 10px;
  vertical-align: middle;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #8f846d, #4a4134);
  color: #1b150f;
  font-weight: bold;
  font-size: 24px;
  text-shadow: 0 1px 0 rgba(255, 245, 220, 0.18);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.1), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.status-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-box,
.hud-card,
.panel-card,
.shop-card,
.garage-card,
.instruction-card,
.level-card,
.inventory-card {
  background: var(--bg-panel);
  border: 1px solid rgba(180, 155, 103, 0.22);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.32);
}

.status-box {
  min-width: 110px;
  padding: 10px 12px;
}

.status-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 780px 1fr;
  gap: 18px;
  padding: 18px;
  min-height: 0;
}

.battle-active .main-layout {
  grid-template-columns: 1fr;
}

.battle-active .panel-main {
  display: none;
}

.battle-active #gameViewport {
  min-height: 0;
}

.panel {
  min-height: 0;
}

.panel-main {
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.94), rgba(11, 9, 7, 0.97)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px);
  border: 1px solid rgba(180, 155, 103, 0.14);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px rgba(0, 0, 0, 0.35);
  height: 100%;
}

.viewport-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(180, 155, 103, 0.16);
  background:
    linear-gradient(180deg, rgba(19, 16, 13, 0.96), rgba(13, 10, 8, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 8px, transparent 8px, transparent 16px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  height: 100%;
}

#gameViewport {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.preview-overlay {
  position: absolute;
  inset: 14px;
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.preview-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.preview-overlay-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 300px));
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.preview-overlay-card {
  max-width: 320px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(36, 30, 25, 0.9), rgba(18, 15, 12, 0.95));
  border: 1px solid rgba(180, 155, 103, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.preview-overlay-card-main {
  width: min(340px, 100%);
}

.preview-overlay-card-side {
  width: min(340px, 100%);
}

.preview-overlay-interactive,
.preview-overlay-interactive * {
  pointer-events: auto;
}

.preview-overlay-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.preview-overlay-note {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.preview-overlay-note.good {
  background: rgba(122, 128, 90, 0.14);
  border: 1px solid rgba(122, 128, 90, 0.28);
}

.preview-overlay-note.warning {
  background: rgba(179, 101, 82, 0.14);
  border: 1px solid rgba(179, 101, 82, 0.28);
}

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

.preview-weight-block {
  margin-top: 10px;
}

.preview-weight-bar {
  margin-top: 6px;
  margin-bottom: 0;
}

.preview-loadout-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-loadout-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.preview-loadout-entry.active .preview-loadout-select {
  border-color: rgba(115, 182, 95, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 2px rgba(115, 182, 95, 0.62);
}

.preview-loadout-select {
  appearance: none;
  border: 1px solid rgba(180, 155, 103, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(41, 34, 28, 0.94), rgba(24, 20, 17, 0.98));
  color: var(--text-main);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  min-width: 0;
}

.preview-loadout-select:hover {
  border-color: rgba(180, 155, 103, 0.72);
}

.preview-loadout-name,
.preview-loadout-meta {
  display: block;
}

.preview-loadout-name {
  font-weight: bold;
}

.preview-loadout-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-loadout-rename {
  padding-inline: 12px;
  align-self: stretch;
}

#panelContent {
  height: 100%;
  min-height: 0;
}

.screen-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.screen-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #7b6c46 rgba(255, 255, 255, 0.08);
}

.screen-scroll::-webkit-scrollbar {
  width: 16px;
}

.screen-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.screen-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #b89957, #7b6c46);
  border: 3px solid rgba(17, 14, 11, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.screen-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c8a663, #8a794d);
}

.viewport-fallback {
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.viewport-fallback-box {
  max-width: 560px;
  padding: 22px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(59, 51, 42, 0.98), rgba(21, 17, 14, 0.98));
  border: 1px solid rgba(180, 155, 103, 0.24);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

#gameViewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.screen-title {
  margin: 0 0 6px;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.screen-subtitle,
.body-text,
.small-note {
  color: var(--text-dim);
}

.menu-stack,
.category-tabs,
.inline-actions,
.modal-actions,
.shop-actions,
.weapon-row-actions,
.loadout-actions,
.level-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-stack {
  margin-top: 18px;
  flex-direction: column;
}

.primary-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.primary-tabs .tab-button {
  width: 100%;
  justify-content: center;
}

.screen-header {
  align-items: flex-start;
}

.screen-header .screen-subtitle {
  margin: 0;
}

.metal-button,
.tab-button {
  appearance: none;
  border: 1px solid rgba(168, 145, 97, 0.35);
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(120, 101, 72, 0.96), rgba(57, 46, 35, 0.99)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 2px, transparent 2px, transparent 5px);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 7px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.08s ease, border-color 0.18s ease, filter 0.18s ease;
}

.metal-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(180, 155, 103, 0.82);
  filter: brightness(1.03);
}

.metal-button:active,
.tab-button:active {
  transform: translateY(1px);
}

.metal-button.secondary {
  background: linear-gradient(180deg, rgba(90, 79, 67, 0.96), rgba(43, 37, 31, 0.99));
}

.metal-button.warning {
  background: linear-gradient(180deg, rgba(143, 84, 62, 0.98), rgba(81, 42, 31, 0.99));
}

.tab-button.active {
  border-color: rgba(182, 146, 82, 0.82);
  color: #fff4dd;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 16px rgba(182, 146, 82, 0.12);
}

.panel-grid {
  display: grid;
  gap: 12px;
}

.panel-card,
.shop-card,
.garage-card,
.instruction-card,
.level-card,
.inventory-card {
  padding: 14px;
}

.shop-grid,
.garage-grid,
.levels-grid,
.instructions-grid,
.stats-grid,
.inventory-grid {
  display: grid;
  gap: 12px;
}

.levels-grid,
.instructions-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.shop-grid,
.inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.stat-line,
.item-line,
.weapon-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-line:last-child,
.item-line:last-child,
.weapon-line:last-child {
  border-bottom: 0;
}

.stat-line span:first-child,
.item-line span:first-child,
.weapon-line span:first-child {
  color: var(--text-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(182, 146, 82, 0.16);
  border: 1px solid rgba(182, 146, 82, 0.3);
}

.badge.good {
  background: rgba(122, 128, 90, 0.18);
  border-color: rgba(122, 128, 90, 0.34);
}

.badge.warn {
  background: rgba(179, 101, 82, 0.18);
  border-color: rgba(179, 101, 82, 0.3);
}

.shop-card h3,
.garage-card h3,
.instruction-card h3,
.level-card h3,
.inventory-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.shop-card p,
.garage-card p,
.instruction-card p,
.level-card p,
.inventory-card p {
  margin: 0 0 8px;
  color: var(--text-dim);
  line-height: 1.45;
}

.shop-card {
  position: relative;
  isolation: isolate;
}

.shop-card-body {
  position: relative;
}

.shop-card.owned .shop-card-body {
  opacity: 0.7;
}

.shop-card.owned .shop-card-body::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: rgba(16, 14, 12, 0.16);
  pointer-events: none;
}

.owned-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(84, 142, 74, 0.98), rgba(47, 103, 40, 0.98));
  border: 1px solid rgba(181, 235, 173, 0.55);
  color: #efffe7;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 6;
}

.weapon-thumb {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(34, 29, 24, 0.92), rgba(23, 19, 15, 0.96));
  border: 1px solid rgba(180, 155, 103, 0.16);
}

.weapon-thumb-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.price-line {
  color: var(--gold);
  font-weight: bold;
}

.shop-actions,
.weapon-row-actions,
.loadout-actions,
.level-actions {
  margin-top: 12px;
}

.shop-actions {
  align-items: center;
}

.garage-inventory-grid .inventory-card {
  opacity: 1;
}

.garage-inventory-grid .inventory-card.equipped {
  border-color: rgba(115, 182, 95, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.32),
    0 0 0 2px rgba(115, 182, 95, 0.9),
    0 0 18px rgba(115, 182, 95, 0.18);
}

.weapon-row-actions .metal-button,
.loadout-actions .metal-button {
  flex: 1 1 132px;
}

.category-tabs {
  margin-bottom: 14px;
}

.weapon-subtabs {
  margin-bottom: 12px;
}

.split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.warning-box,
.success-box,
.info-box {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.warning-box {
  background: rgba(179, 101, 82, 0.12);
  border: 1px solid rgba(179, 101, 82, 0.28);
}

.success-box {
  background: rgba(122, 128, 90, 0.14);
  border: 1px solid rgba(122, 128, 90, 0.3);
}

.info-box {
  background: rgba(182, 146, 82, 0.11);
  border: 1px solid rgba(182, 146, 82, 0.24);
}

.hud {
  position: absolute;
  inset: 0;
  padding: 16px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-top,
.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.hud-card {
  min-width: 220px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(36, 30, 25, 0.88), rgba(18, 15, 12, 0.93));
  backdrop-filter: blur(8px);
}

.hud-center {
  text-align: center;
}

.controls-card {
  max-width: 320px;
}

.bar {
  position: relative;
  margin: 8px 0;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.bar-fill {
  height: 100%;
  width: 50%;
  transition: width 0.1s linear;
}

.player-fill {
  background: linear-gradient(90deg, #b89957, #7b6c46);
}

.weight-fill {
  background: linear-gradient(90deg, #6fbe63, #3f8b3d);
}

.weight-fill.mid {
  background: linear-gradient(90deg, #d59a41, #b87227);
}

.weight-fill.high {
  background: linear-gradient(90deg, #cf8440, #aa5f24);
}

.weight-fill.critical {
  background: linear-gradient(90deg, #c55d4f, #8f332c);
}

.weight-threshold {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 2px;
  border-radius: 999px;
  background: rgba(244, 238, 219, 0.92);
  box-shadow: 0 0 0 1px rgba(35, 28, 20, 0.45);
  z-index: 2;
  pointer-events: none;
}

.threshold-50 {
  left: calc(50% - 1px);
}

.threshold-75 {
  left: calc(75% - 1px);
}

.threshold-90 {
  left: calc(90% - 1px);
}

.weapon-hud-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weapon-hud-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.overlay-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 360px;
  max-width: 560px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(57, 49, 40, 0.97), rgba(20, 17, 13, 0.99));
  border: 1px solid rgba(180, 155, 103, 0.3);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.overlay-message h2 {
  margin-top: 0;
}

.damage-layer,
.enemy-bars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.damage-popup,
.enemy-bar-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
}

.damage-popup {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  color: #fff1cc;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(247, 210, 101, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.enemy-bar {
  width: 90px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
}

.enemy-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b27a52, #8e4e41);
}

.enemy-bar-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-align: center;
  color: #ffdfcf;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(1, 3, 7, 0.68);
  z-index: 100;
}

.modal-panel {
  width: min(440px, calc(100vw - 28px));
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(57, 49, 40, 0.98), rgba(20, 17, 14, 0.99));
  border: 1px solid rgba(180, 155, 103, 0.24);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.modal-panel h2 {
  margin-top: 0;
}

.modal-input {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(180, 155, 103, 0.26);
  background: linear-gradient(180deg, rgba(29, 24, 20, 0.98), rgba(18, 15, 12, 0.99));
  color: var(--text-main);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-input:focus {
  outline: none;
  border-color: rgba(180, 155, 103, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 2px rgba(180, 155, 103, 0.14);
}

.modal-input::placeholder {
  color: var(--text-dim);
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.mini-note {
  font-size: 12px;
  color: var(--text-dim);
}

.tiny-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.08);
}

.level-card.locked {
  opacity: 0.55;
}

.level-card.boss {
  border-color: rgba(182, 146, 82, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(182, 146, 82, 0.08);
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-line {
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  #gameViewport {
    min-height: 480px;
  }
}
