


.game-viewport {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  height: calc(100vh - 73px);
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.mobile-settings-toggle {
  display: none;
}

.game-arena-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
}


.nokia-wrapper, .arcade-wrapper, .terminal-wrapper {
  display: none;
  width: 100%;
}
.nokia-wrapper.active, .arcade-wrapper.active, .terminal-wrapper.active {
  display: flex;
  justify-content: center;
  align-items: center;
}


.canvas-holder {
  position: relative;
  width: min(530px, 86vw);
  height: min(530px, 86vw);
  max-width: calc(100vh - 270px);
  max-height: calc(100vh - 270px);
  aspect-ratio: 1 / 1;
  background-color: #050409;
  overflow: hidden;
  border-radius: 4px;
}
.canvas-holder canvas {
  display: block;
  width: 100%;
  height: 100%;
}


.screen-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 15px;
}
.overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}



.nokia-phone {
  background: linear-gradient(135deg, hsl(210, 15%, 52%) 0%, hsl(210, 15%, 35%) 100%);
  border: 8px solid hsl(210, 15%, 22%);
  border-radius: 40px / 60px;
  width: 370px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5), 
    inset 0 4px 6px rgba(255, 255, 255, 0.2),
    inset 0 -8px 12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.nokia-earpiece {
  width: 50px;
  height: 6px;
  background-color: #222;
  border-radius: 3px;
  border-bottom: 2px solid #555;
}

.nokia-brand {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #cdd5df;
  letter-spacing: 3px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
}

.nokia-screen-bezel {
  background: #3c444f;
  border: 4px solid #1f2329;
  border-radius: 20px;
  padding: 14px;
  width: 100%;
  box-shadow: 
    inset 0 3px 6px rgba(0, 0, 0, 0.6), 
    0 2px 2px rgba(255, 255, 255, 0.1);
}

.nokia-screen-lcd {
  background-color: hsl(76, 50%, 55%);
  border: 6px double hsl(76, 55%, 15%);
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.nokia-lcd-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  z-index: 5;
}

.nokia-hud {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  border-bottom: 2px solid hsl(76, 55%, 15%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  color: hsl(76, 55%, 15%);
  letter-spacing: 1px;
  background-color: rgba(0, 0, 0, 0.02);
  z-index: 3;
}

.nokia-screen-lcd .canvas-holder {
  background-color: transparent !important;
  flex-grow: 1;
  width: 100%;
  height: auto;
}


.nokia-screen-lcd .screen-overlay {
  background: hsl(76, 50%, 55%) !important;
  color: hsl(76, 55%, 15%) !important;
}
.nokia-screen-lcd .lcd-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: hsl(76, 55%, 10%);
}
.nokia-screen-lcd .lcd-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}


.nokia-keypad {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 0 10px;
}

.keypad-grid-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  width: 100%;
}

.keypad-grid-top-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  padding: 0 20px;
}

.keypad-grid-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
  width: 100%;
}

.nokia-key {
  background: linear-gradient(to bottom, #d2d7df 0%, #a4abb7 100%);
  border: 2px solid #5a626f;
  border-radius: 12px;
  color: #1f2329;
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 2px 3px rgba(0, 0, 0, 0.4), 
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: all 0.1s ease;
}
.nokia-key:active {
  background: #8e95a3;
  transform: translateY(1px);
  box-shadow: 
    0 1px 1px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(0,0,0,0.2);
}

.key-clear {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 8px;
}
.key-menu {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 8px;
}
.key-arrows {
  border-radius: 50% 50% 10px 10px;
  height: 38px;
  font-size: 16px;
}
.key-left-side, .key-right-side {
  border-radius: 12px;
  padding: 4px;
  font-size: 14px;
}

.nokia-key .num {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.nokia-key .letters {
  font-size: 7px;
  color: #4a525f;
  font-weight: bold;
  letter-spacing: 0.5px;
}



.arcade-cabinet {
  background: linear-gradient(180deg, #1d182b 0%, #0d0b12 100%);
  border: 6px solid #4a2872;
  border-radius: 16px;
  width: min(620px, 95vw);
  max-width: 100%;
  padding: 14px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}

.arcade-marquee {
  background-color: #050409;
  border: 3px solid #ff007f;
  color: #ff007f;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  box-shadow: 
    0 0 12px rgba(255, 0, 127, 0.4), 
    inset 0 0 8px rgba(255, 0, 127, 0.3);
  text-transform: uppercase;
  border-radius: 4px;
  animation: marquee-glow 1.5s infinite alternate;
}

@keyframes marquee-glow {
  0% { box-shadow: 0 0 5px rgba(255, 0, 127, 0.3), inset 0 0 4px rgba(255, 0, 127, 0.2); }
  100% { box-shadow: 0 0 15px rgba(255, 0, 127, 0.6), inset 0 0 10px rgba(255, 0, 127, 0.4); }
}

.arcade-screen-container {
  background-color: #0b0914;
  border: 4px solid #00f0ff;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.arcade-screen-bezel {
  background-color: #12101e;
  border: 6px solid #201b35;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.arcade-glass-reflection {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 40%, transparent 40%);
  pointer-events: none;
  z-index: 8;
}

.arcade-screen-bezel .canvas-holder {
  width: min(540px, 86vw);
  height: min(540px, 86vw);
  max-width: calc(100vh - 270px);
  max-height: calc(100vh - 270px);
  aspect-ratio: 1 / 1;
}


.arcade-screen-bezel .screen-overlay {
  background: rgba(8, 6, 15, 0.9);
}
.arcade-title {
  font-family: 'VT323', monospace;
  font-size: 40px;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #ff007f;
  letter-spacing: 2px;
}
.arcade-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary-accent);
  letter-spacing: 1px;
}
.arcade-score-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}


.arcade-controls {
  background: linear-gradient(180deg, #1b1629 0%, #0d0a15 100%);
  border: 3px solid #ff007f;
  border-radius: 10px;
  width: 100%;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.2);
}

.joystick-casing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.joystick-base {
  width: 60px;
  height: 60px;
  background-color: #120e1d;
  border: 3px solid #00f0ff;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0,240,255,0.4);
}

.joystick-shaft {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px;
  height: 24px;
  background-color: #a3a6ad;
  border-radius: 4px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.joystick-ball {
  position: absolute;
  top: 0; left: 50%;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 35% 35%, #ff0055 0%, #990022 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.joystick-shaft.tilt-left { transform: translate(-50%, -100%) rotate(-20deg); }
.joystick-shaft.tilt-right { transform: translate(-50%, -100%) rotate(20deg); }
.joystick-shaft.tilt-up { transform: translate(-50%, -100%) rotateX(-20deg) scaleY(0.9); }
.joystick-shaft.tilt-down { transform: translate(-50%, -100%) rotateX(20deg) scaleY(0.9); }

.action-buttons-casing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arcade-btn-group {
  display: flex;
  gap: 12px;
}

.arcade-action-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 6px 10px rgba(0,0,0,0.4);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
  outline: none;
}
.arcade-action-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0px 0 transparent, 0 2px 3px rgba(0,0,0,0.4);
}

.btn-red {
  background: radial-gradient(circle at 30% 30%, #ff007f 0%, #99004d 100%);
  border: 2px solid #ff007f;
  box-shadow: 0 4px 0 #77003c, 0 6px 8px rgba(255, 0, 127, 0.3);
}

.control-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: bold;
}



.terminal-monitor {
  background: linear-gradient(135deg, #444952 0%, #2b2e35 100%);
  border: 10px solid #1a1c20;
  border-radius: 20px;
  width: min(620px, 95vw);
  max-width: 100%;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6), 
    inset 0 4px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.monitor-screen {
  background-color: #030804;
  margin: 12px;
  border: 6px solid #1d2127;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crt-glow-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(18, 180, 50, 0.04) 0%, transparent 80%);
  pointer-events: none;
  z-index: 7;
}

.crt-scanlines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 6;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(18, 180, 50, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #12b432;
  background-color: rgba(18, 180, 50, 0.05);
  z-index: 3;
}

.monitor-screen .canvas-holder {
  background-color: transparent !important;
  width: min(540px, 86vw);
  height: min(540px, 86vw);
  max-width: calc(100vh - 270px);
  max-height: calc(100vh - 270px);
  aspect-ratio: 1 / 1;
}


.monitor-screen .screen-overlay {
  background: rgba(3, 8, 4, 0.95);
  color: #12b432 !important;
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
  color: #12b432;
}
.terminal-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(18, 180, 50, 0.85);
}

.monitor-base {
  background-color: #1a1c20;
  padding: 8px;
  text-align: center;
  border-top: 2px solid #2d3139;
}
.monitor-base .logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  color: #555c69;
}

.blink {
  animation: crt-blink 1s steps(2, start) infinite;
}
@keyframes crt-blink {
  to { visibility: hidden; }
}



.speed-hud-indicator {
  background-color: rgba(0,0,0,0.15);
  border: 1px solid var(--panel-border);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speed-bar-container {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.speed-bar-progress {
  background: linear-gradient(to right, var(--success-color), var(--primary-accent));
  height: 100%;
  width: 10%;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--success-color);
  transition: width 0.3s ease;
}

.speed-text-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.speed-label {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-muted);
  font-weight: bold;
  letter-spacing: 0.5px;
}
.speed-rate-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-accent);
}

.run-stats-log {
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px;
  height: 80px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.run-stats-log .log-row {
  display: flex;
  border-bottom: 1px dashed rgba(255,255,255,0.02);
  padding-bottom: 2px;
}
.run-stats-log .log-msg {
  flex-grow: 1;
}


.mobile-tank-controls {
  display: none;
  width: 100%;
  max-width: 420px;
  margin: 12px auto 0;
  z-index: 20;
}


#skin-wrapper-nokia.active ~ .mobile-tank-controls,
.nokia-wrapper.active ~ .mobile-tank-controls {
  display: none !important;
}


@media (max-width: 1024px) {
  #skin-wrapper-arcade.active ~ .mobile-tank-controls,
  #skin-wrapper-terminal.active ~ .mobile-tank-controls,
  .arcade-wrapper.active ~ .mobile-tank-controls,
  .terminal-wrapper.active ~ .mobile-tank-controls {
    display: flex !important;
  }
}

.tank-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 8px;
}

.tank-dpad-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tank-dpad-horizontal {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tank-ctrl-btn {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  color: var(--text-primary);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, background-color 0.08s ease, border-color 0.08s ease;
}

.tank-dir-btn {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.tank-dir-btn:active,
.tank-dir-btn.touch-active {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #000;
  transform: scale(0.92);
}

.tank-pause-btn {
  width: 44px;
  height: 44px;
  font-size: 13px;
  border-radius: 50%;
  border-color: var(--secondary-accent);
  color: var(--secondary-accent);
}

.tank-pause-btn:active,
.tank-pause-btn.touch-active {
  background-color: var(--secondary-accent);
  color: #000;
  transform: scale(0.92);
}

.tank-action-cluster {
  display: flex;
  align-items: center;
}

.tank-fire-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 65, 108, 0.16);
  border: 3px solid var(--danger-color);
  color: var(--danger-color);
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: 0 0 16px rgba(255, 65, 108, 0.3);
}

.tank-fire-btn:active,
.tank-fire-btn.touch-active {
  background-color: var(--danger-color);
  color: #fff;
  transform: scale(0.92);
  box-shadow: 0 0 24px var(--danger-color);
}


@media (max-width: 1024px) {
  .mobile-settings-toggle {
    display: flex;
  }
  .game-body {
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
  }
  .game-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: calc(100dvh - 56px);
    height: calc(100vh - 56px);
    overflow-y: auto;
    position: relative;
    padding: 6px 12px;
    gap: 8px;
    width: 100%;
  }
  .settings-sidebar {
    display: none;
  }
  .settings-sidebar.mobile-open {
    display: flex !important;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    padding: 24px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
  }
  .gameplay-sidebar {
    border: none;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: 440px;
    order: -1;
  }
  .game-stats-hud {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
  }
  .hud-stat-box {
    padding: 6px 8px;
    flex: 1 1 calc(25% - 6px);
    min-width: 70px;
    text-align: center;
    border-radius: 8px;
    align-items: center;
  }
  .hud-stat-label {
    font-size: 9px;
  }
  .hud-stat-num {
    font-size: 18px;
  }
  .move-log-box {
    display: none;
  }
  .keyboard-legend {
    display: none;
  }

  
  .nokia-phone {
    width: min(350px, 94vw);
    max-width: 100%;
    padding: 12px 10px;
    gap: 8px;
    border-width: 5px;
    border-radius: 28px;
  }
  .nokia-screen-bezel {
    padding: 6px;
    border-width: 3px;
  }
  .canvas-holder {
    width: min(250px, 70vw);
    height: min(250px, 70vw);
  }
  #nokia-canvas {
    width: 100%;
    height: 100%;
  }
  .keypad-grid-nums {
    gap: 6px;
  }
  .nokia-key {
    touch-action: none;
  }

  
  .arcade-cabinet, .terminal-monitor {
    width: min(380px, 95vw);
    max-width: 100%;
    border-radius: 16px;
  }
  .arcade-marquee {
    padding: 10px 0;
  }
  .arcade-screen-container {
    padding: 10px;
  }
  #arcade-canvas, #terminal-canvas {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  .arcade-controls {
    padding: 10px;
  }
}


.tank-fullscreen-hud {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}
.fs-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 16, 32, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 9999px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.fs-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.fs-val {
  color: #00f0ff;
  font-weight: 800;
  font-size: 13px;
}
.fs-protect {
  color: #10b981;
}
.fs-danger {
  color: #ef4444;
}


.tank-shell.is-fullscreen,
.tank-shell:fullscreen,
:fullscreen .tank-shell {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 99999 !important;
  background: #040308 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tank-shell.is-fullscreen .game-header,
.tank-shell:fullscreen .game-header,
:fullscreen .tank-shell .game-header {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  background: rgba(10, 8, 20, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  flex-shrink: 0 !important;
  z-index: 50 !important;
}

.tank-shell.is-fullscreen .tank-fullscreen-hud,
.tank-shell:fullscreen .tank-fullscreen-hud,
:fullscreen .tank-shell .tank-fullscreen-hud {
  display: flex !important;
}

.tank-shell.is-fullscreen .hud-game-title,
.tank-shell:fullscreen .hud-game-title,
:fullscreen .tank-shell .hud-game-title {
  font-size: 15px !important;
  letter-spacing: 2px !important;
}


.tank-shell.is-fullscreen .game-sidebar,
.tank-shell:fullscreen .game-sidebar,
:fullscreen .tank-shell .game-sidebar,
.tank-shell.is-fullscreen .settings-sidebar,
.tank-shell:fullscreen .settings-sidebar,
:fullscreen .tank-shell .settings-sidebar,
.tank-shell.is-fullscreen .gameplay-sidebar,
.tank-shell:fullscreen .gameplay-sidebar,
:fullscreen .tank-shell .gameplay-sidebar,
.tank-shell.is-fullscreen .game-instructions-bar,
.tank-shell:fullscreen .game-instructions-bar,
:fullscreen .tank-shell .game-instructions-bar,
.tank-shell.is-fullscreen .arcade-marquee,
.tank-shell:fullscreen .arcade-marquee,
:fullscreen .tank-shell .arcade-marquee,
.tank-shell.is-fullscreen .arcade-controls,
.tank-shell:fullscreen .arcade-controls,
:fullscreen .tank-shell .arcade-controls,
.tank-shell.is-fullscreen .monitor-base,
.tank-shell:fullscreen .monitor-base,
:fullscreen .tank-shell .monitor-base {
  display: none !important;
}

.tank-shell.is-fullscreen .game-viewport,
.tank-shell:fullscreen .game-viewport,
:fullscreen .tank-shell .game-viewport {
  flex: 1 1 0% !important;
  height: calc(100vh - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  width: 100vw !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  margin: 0 !important;
  overflow: hidden !important;
  grid-template-columns: none !important;
}

.tank-shell.is-fullscreen .game-arena-container,
.tank-shell:fullscreen .game-arena-container,
:fullscreen .tank-shell .game-arena-container {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tank-shell.is-fullscreen #skin-wrapper-arcade.active,
.tank-shell:fullscreen #skin-wrapper-arcade.active,
:fullscreen .tank-shell #skin-wrapper-arcade.active,
.tank-shell.is-fullscreen .arcade-wrapper.active,
.tank-shell:fullscreen .arcade-wrapper.active,
:fullscreen .tank-shell .arcade-wrapper.active,
.tank-shell.is-fullscreen #skin-wrapper-terminal.active,
.tank-shell:fullscreen #skin-wrapper-terminal.active,
:fullscreen .tank-shell #skin-wrapper-terminal.active,
.tank-shell.is-fullscreen .terminal-wrapper.active,
.tank-shell:fullscreen .terminal-wrapper.active,
:fullscreen .tank-shell .terminal-wrapper.active {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tank-shell.is-fullscreen #skin-wrapper-arcade:not(.active),
.tank-shell:fullscreen #skin-wrapper-arcade:not(.active),
:fullscreen .tank-shell #skin-wrapper-arcade:not(.active),
.tank-shell.is-fullscreen .arcade-wrapper:not(.active),
.tank-shell:fullscreen .arcade-wrapper:not(.active),
:fullscreen .tank-shell .arcade-wrapper:not(.active),
.tank-shell.is-fullscreen .arcade-wrapper:not(.active) .arcade-cabinet,
.tank-shell:fullscreen .arcade-wrapper:not(.active) .arcade-cabinet,
:fullscreen .tank-shell .arcade-wrapper:not(.active) .arcade-cabinet,
.tank-shell.is-fullscreen #skin-wrapper-terminal:not(.active),
.tank-shell:fullscreen #skin-wrapper-terminal:not(.active),
:fullscreen .tank-shell #skin-wrapper-terminal:not(.active),
.tank-shell.is-fullscreen .terminal-wrapper:not(.active),
.tank-shell:fullscreen .terminal-wrapper:not(.active),
:fullscreen .tank-shell .terminal-wrapper:not(.active),
.tank-shell.is-fullscreen .terminal-wrapper:not(.active) .terminal-monitor,
.tank-shell:fullscreen .terminal-wrapper:not(.active) .terminal-monitor,
:fullscreen .tank-shell .terminal-wrapper:not(.active) .terminal-monitor,
.tank-shell.is-fullscreen .terminal-wrapper:not(.active) *,
.tank-shell:fullscreen .terminal-wrapper:not(.active) *,
:fullscreen .tank-shell .terminal-wrapper:not(.active) *,
.tank-shell.is-fullscreen .arcade-wrapper:not(.active) *,
.tank-shell:fullscreen .arcade-wrapper:not(.active) *,
:fullscreen .tank-shell .arcade-wrapper:not(.active) *,
.tank-shell.is-fullscreen .nokia-wrapper,
.tank-shell:fullscreen .nokia-wrapper,
:fullscreen .tank-shell .nokia-wrapper {
  display: none !important;
}

.tank-shell.is-fullscreen .arcade-cabinet,
.tank-shell:fullscreen .arcade-cabinet,
:fullscreen .tank-shell .arcade-cabinet,
.tank-shell.is-fullscreen .terminal-monitor,
.tank-shell:fullscreen .terminal-monitor,
:fullscreen .tank-shell .terminal-monitor {
  width: auto !important;
  height: auto !important;
  max-width: 100vw !important;
  max-height: calc(100vh - 54px) !important;
  padding: 0 !important;
  margin: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.tank-shell.is-fullscreen .arcade-screen-container,
.tank-shell:fullscreen .arcade-screen-container,
:fullscreen .tank-shell .arcade-screen-container,
.tank-shell.is-fullscreen .monitor-screen,
.tank-shell:fullscreen .monitor-screen,
:fullscreen .tank-shell .monitor-screen {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 20px) !important;
  max-height: calc(100vh - 64px) !important;
  padding: 4px !important;
  margin: auto !important;
  border: 2px solid #00f0ff !important;
  border-radius: 14px !important;
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.4) !important;
  background: #080612 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.tank-shell.is-fullscreen .arcade-screen-bezel,
.tank-shell:fullscreen .arcade-screen-bezel,
:fullscreen .tank-shell .arcade-screen-bezel {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}


.tank-shell.is-fullscreen .canvas-holder,
.tank-shell:fullscreen .canvas-holder,
:fullscreen .tank-shell .canvas-holder {
  width: min(calc(100vw - 40px), calc(100vh - 84px)) !important;
  height: min(calc(100vw - 40px), calc(100vh - 84px)) !important;
  max-width: calc(100vh - 84px) !important;
  max-height: calc(100vh - 84px) !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
}

.tank-shell.is-fullscreen canvas,
.tank-shell:fullscreen canvas,
:fullscreen .tank-shell canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}


.powerup-status-card {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.2) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25), inset 0 0 10px rgba(245, 158, 11, 0.1);
  animation: powerup-card-pulse 2s infinite alternate;
}

@keyframes powerup-card-pulse {
  0% { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
  100% { border-color: #fbbf24; box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
}

.powerup-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.powerup-icon-spin {
  font-size: 16px;
  display: inline-block;
  animation: powerup-icon-spin 1.5s infinite linear;
}

@keyframes powerup-icon-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.powerup-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.powerup-seconds {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #f87171;
}

.powerup-perks {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.powerup-perk-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(254, 240, 138, 0.3);
}

.powerup-timer-track {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.powerup-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.fs-powerup-pill {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.15) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

.fs-powerup-pill .fs-gold {
  color: #fbbf24 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.7) !important;
}


.stage-nav-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 12, 28, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stage-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stage-step-btn {
  background: linear-gradient(180deg, #2d2640 0%, #171324 100%);
  border: 1px solid #4a3b68;
  color: #fbbf24;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.stage-step-btn:hover {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #3d3257 0%, #201b33 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.stage-info-pill {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stage-pill-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.stage-pill-title {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-select-dropdown {
  width: 100%;
  background: #0f0d1a;
  border: 1px solid #3b3054;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.stage-select-dropdown:focus, .stage-select-dropdown:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

.stage-select-dropdown option {
  background: #0f0d1a;
  color: #ffffff;
  padding: 4px;
}


