/* ==========================================================================
   COMMODORE 64 GAME CRACKTRO & HACKER INTRO EDITION
   Authentic 1980s/1990s C64 Warez / Cracking Scene Game Intro & Trainer
   Featuring VIC-II Palettes, Raster Copper Bars, 3D Starfield, SID 6581 Synth,
   PETSCII Typography, Sine Scroller, and Complete Portfolio Dossier.
   
   (C) 1986-2026 Gottfried Szing Cracking & Architecture Division
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Share+Tech+Mono&display=swap');

/* --- COMMODORE 64 VIC-II 16-COLOR PALETTE --- */
:root {
  --c64-black:        #000000;
  --c64-white:        #ffffff;
  --c64-red:          #880000;
  --c64-cyan:         #aaffee;
  --c64-purple:       #cc44cc;
  --c64-green:        #00cc55;
  --c64-blue:         #0000aa;
  --c64-yellow:       #eeee77;
  --c64-orange:       #dd8855;
  --c64-brown:        #664400;
  --c64-light-red:    #ff7777;
  --c64-dark-grey:    #333333;
  --c64-grey:         #777777;
  --c64-light-green:  #aaff66;
  --c64-light-blue:   #0088ff;
  --c64-light-grey:   #bbbbbb;

  /* Theme Defaults (Classic Cracktro Deep Blue/Purple) */
  --c64-border-bg:    #352879;
  --c64-screen-bg:    #000000;
  --c64-text-primary: #aaffee;
  --c64-text-accent:  #eeee77;
  --c64-text-warn:    #ff7777;
  --c64-text-dim:     #70c5ce;
  --c64-highlight:    #ffffff;

  --font-c64:         'Press Start 2P', monospace;
  --font-petscii:     'VT323', monospace;
  --font-mono:        'Share Tech Mono', 'Courier New', monospace;
}

/* Color Themes */
body.theme-rainbow {
  --c64-border-bg: #1c1538;
}

body.theme-copper {
  --c64-border-bg: #2d1000;
  --c64-text-primary: #dd8855;
  --c64-text-accent: #eeee77;
  --c64-text-dim: #995522;
}

body.theme-matrix {
  --c64-border-bg: #001f00;
  --c64-text-primary: #aaff66;
  --c64-text-accent: #ffffff;
  --c64-text-dim: #00cc55;
}

body.theme-cyberpunk {
  --c64-border-bg: #2a0033;
  --c64-text-primary: #ff77ee;
  --c64-text-accent: #aaffee;
  --c64-text-dim: #cc44cc;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #08070d;
  color: var(--c64-text-primary);
  font-family: var(--font-c64);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Selection */
::selection {
  background: var(--c64-yellow);
  color: var(--c64-black);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--c64-yellow);
  color: var(--c64-black);
  padding: 8px 16px;
  z-index: 999999;
  text-decoration: none;
  font-weight: bold;
}
.skip-link:focus {
  top: 10px;
}

/* ==========================================================================
   MONITOR HOUSING & CRT CHASSIS (Commodore 1084S Look)
   ========================================================================== */
.monitor-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 10px;
  background: radial-gradient(circle at 50% 30%, #1a162b 0%, #08070d 80%, #000000 100%);
}

.monitor-housing {
  width: 100%;
  max-width: 1200px;
  background: linear-gradient(135deg, #d3cbb8 0%, #b8af9c 50%, #9e9583 100%);
  border-radius: 24px;
  padding: 24px 24px 30px 24px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.9),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5),
    0 0 0 2px #4a443b;
  position: relative;
  transition: all 0.3s ease;
}

/* Monitor Top Bezel Details */
.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 16px 10px;
  color: #3b352b;
  font-family: var(--font-c64);
  font-size: 0.75rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.c64-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  letter-spacing: 1px;
}

.c64-badge-logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: #0000aa;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #dd8855;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.monitor-status-leds {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.68rem;
  color: #4a443b;
}

.led-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.led-bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333333;
  border: 1px solid #111111;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
  transition: background 0.1s ease, box-shadow 0.1s ease;
}

.led-power .led-bulb.active {
  background: #00ff55;
  box-shadow: 0 0 8px #00ff55, inset 0 1px 2px #ffffff;
}

.led-drive .led-bulb.active {
  background: #ff3300;
  box-shadow: 0 0 8px #ff3300, inset 0 1px 2px #ffffff;
}

.led-audio .led-bulb.active {
  background: #00ccff;
  box-shadow: 0 0 8px #00ccff, inset 0 1px 2px #ffffff;
}

/* ==========================================================================
   CRT DISPLAY CONTAINER & VIC-II SCREEN
   ========================================================================== */
.crt-screen-frame {
  position: relative;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.95),
    inset 0 0 8px rgba(0, 0, 0, 0.8),
    0 0 0 4px #24201a,
    0 0 0 8px #14120e;
}

/* CRT Scanlines Overlay */
.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  opacity: 0.9;
}

/* CRT Screen Vignette & Phosphor Glow */
.crt-screen-frame::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(ellipse at center, rgba(16, 24, 60, 0) 60%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 99;
}

/* CRT Power-on & Degauss Animation */
.crt-screen-frame.degauss {
  animation: degaussFx 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes degaussFx {
  0% { transform: scale(1, 0.005) skew(20deg); filter: brightness(5) hue-rotate(180deg); }
  40% { transform: scale(1.04, 0.8) skew(-5deg); filter: brightness(3) hue-rotate(90deg); }
  70% { transform: scale(0.98, 1.02) skew(2deg); filter: brightness(1.5); }
  100% { transform: scale(1, 1) skew(0deg); filter: brightness(1); }
}

/* VIC-II Screen Area with Top/Bottom Borders */
.c64-vic-screen {
  position: relative;
  background-color: var(--c64-screen-bg);
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  z-index: 10;
}

/* Animated Canvas Background (Starfield & Raster Bars) */
#fx-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Foreground Screen Content */
.cracktro-content-container {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  min-height: 720px;
}

/* ==========================================================================
   CRACKTRO TOP BANNER & HACKER LOGO
   ========================================================================== */
.cracktro-header {
  padding: 14px 16px 8px 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 2px solid var(--c64-cyan);
  backdrop-filter: blur(2px);
}

.scene-crew-title {
  font-family: var(--font-c64);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c64-yellow);
  text-shadow: 
    0 0 8px var(--c64-yellow),
    2px 2px 0 var(--c64-red),
    -2px -2px 0 var(--c64-blue);
  animation: logoGlitch 4s infinite alternate;
  margin-bottom: 6px;
}

@keyframes logoGlitch {
  0%, 95% { transform: none; }
  96% { transform: translate(2px, -1px); text-shadow: 0 0 10px #ffffff; }
  98% { transform: translate(-2px, 1px); color: #aaffee; }
  100% { transform: none; }
}

.scene-crack-info {
  font-family: var(--font-petscii);
  font-size: 1.25rem;
  color: var(--c64-cyan);
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scene-crack-badge {
  background: var(--c64-blue);
  color: var(--c64-white);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--c64-cyan);
  font-size: 0.95rem;
  font-family: var(--font-c64);
}

/* ==========================================================================
   CRACKTRO CONTROL BAR & AUDIO JUKEBOX HUD
   ========================================================================== */
.cracktro-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(20, 15, 45, 0.85);
  border-bottom: 1px solid var(--c64-purple);
  font-family: var(--font-c64);
  font-size: 0.72rem;
  flex-wrap: wrap;
  gap: 10px;
}

.sid-jukebox-hud {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sid-now-playing {
  color: var(--c64-light-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sid-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 48px;
  background: #000000;
  padding: 1px;
  border: 1px solid var(--c64-light-green);
}

.sid-bar {
  flex: 1;
  background: var(--c64-light-green);
  height: 20%;
  transition: height 0.05s ease;
}

.hud-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.retro-btn {
  background: #222244;
  color: var(--c64-white);
  border: 1px solid var(--c64-cyan);
  padding: 5px 10px;
  font-family: var(--font-c64);
  font-size: 0.65rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0 #000000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.retro-btn:hover, .retro-btn:focus {
  background: var(--c64-yellow);
  color: var(--c64-black);
  border-color: var(--c64-white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--c64-red);
}

.retro-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

.retro-btn.btn-active {
  background: var(--c64-green);
  color: var(--c64-black);
  border-color: var(--c64-white);
}

/* ==========================================================================
   MAIN VIEWPORT & SECTION SWITCHER (HACKER TRAINER MENU)
   ========================================================================== */
.cracktro-main-body {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  padding: 16px;
  position: relative;
  z-index: 20;
}

/* Left Sidebar: Hacker / Trainer Menu */
.cracktro-menu-panel {
  background: rgba(0, 0, 30, 0.88);
  border: 2px solid var(--c64-cyan);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.menu-panel-title {
  color: var(--c64-yellow);
  font-size: 0.8rem;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--c64-cyan);
  margin-bottom: 6px;
}

.menu-options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--c64-light-grey);
  transition: all 0.15s ease;
  user-select: none;
}

.menu-option-item .key-badge {
  color: var(--c64-yellow);
  font-weight: bold;
}

.menu-option-item:hover, .menu-option-item:focus {
  background: var(--c64-blue);
  color: var(--c64-white);
  border-color: var(--c64-yellow);
  transform: translateX(4px);
}

.menu-option-item.active {
  background: var(--c64-blue);
  color: var(--c64-yellow);
  border-color: var(--c64-cyan);
  box-shadow: inset 2px 2px 0 var(--c64-cyan);
  position: relative;
}

.menu-option-item.active::before {
  content: "▶";
  position: absolute;
  left: 2px;
  color: var(--c64-white);
  animation: blinkCursor 0.6s infinite alternate;
}

@keyframes blinkCursor {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.menu-quick-actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--c64-cyan);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Right Content Display Screen */
.cracktro-display-screen {
  background: rgba(0, 0, 15, 0.88);
  border: 2px solid var(--c64-purple);
  padding: 18px;
  overflow-y: auto;
  max-height: 520px;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Custom Retro Scrollbar */
.cracktro-display-screen::-webkit-scrollbar {
  width: 10px;
}
.cracktro-display-screen::-webkit-scrollbar-track {
  background: #000000;
  border-left: 1px solid var(--c64-purple);
}
.cracktro-display-screen::-webkit-scrollbar-thumb {
  background: var(--c64-purple);
  border: 1px solid var(--c64-cyan);
}
.cracktro-display-screen::-webkit-scrollbar-thumb:hover {
  background: var(--c64-yellow);
}

/* Content Pane Elements */
.content-pane {
  display: none;
  animation: fadeInPane 0.25s ease;
}

.content-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header {
  border-bottom: 2px solid var(--c64-yellow);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pane-title {
  color: var(--c64-yellow);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-badge {
  font-family: var(--font-petscii);
  font-size: 1.1rem;
  color: var(--c64-light-green);
}

/* Retro Typography within Sections */
.petscii-box {
  border: 1px dashed var(--c64-cyan);
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(0, 0, 40, 0.5);
}

.petscii-box.box-highlight {
  border: 1px solid var(--c64-yellow);
  background: rgba(40, 30, 0, 0.3);
}

.petscii-bio-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0f8ff;
  margin-bottom: 12px;
}

/* Dossier Profile Hero */
.dossier-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dossier-avatar-frame {
  width: 100px;
  height: 100px;
  border: 2px solid var(--c64-cyan);
  background: #000000;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 var(--c64-purple);
}

.dossier-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.dossier-meta-list {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--c64-white);
}

.dossier-meta-list strong {
  color: var(--c64-cyan);
  font-family: var(--font-c64);
  font-size: 0.72rem;
}

/* Experience & Project Cards */
.c64-card {
  border: 1px solid var(--c64-blue);
  background: rgba(10, 10, 35, 0.7);
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
  transition: border-color 0.2s ease;
}

.c64-card:hover {
  border-color: var(--c64-yellow);
}

.c64-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.c64-card-title {
  color: var(--c64-cyan);
  font-size: 0.85rem;
  font-weight: bold;
}

.c64-card-period {
  font-family: var(--font-petscii);
  font-size: 1.15rem;
  color: var(--c64-yellow);
}

.c64-card-company {
  color: var(--c64-light-green);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.c64-card-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #cfd8dc;
  line-height: 1.5;
  margin-bottom: 10px;
}

.c64-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c64-tag {
  background: #111133;
  color: var(--c64-light-grey);
  border: 1px solid var(--c64-purple);
  padding: 2px 6px;
  font-size: 0.65rem;
  font-family: var(--font-c64);
}

/* Certifications Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cert-badge-box {
  background: rgba(0, 20, 10, 0.6);
  border: 1px solid var(--c64-green);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-issuer {
  font-size: 0.65rem;
  color: var(--c64-yellow);
  margin-bottom: 4px;
}

.cert-name {
  color: var(--c64-white);
  font-size: 0.78rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c64-light-green);
}

/* Trainer / Cheats Options Matrix */
.trainer-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trainer-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(30, 20, 50, 0.6);
  border: 1px solid var(--c64-purple);
}

.trainer-option-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trainer-option-label {
  color: var(--c64-cyan);
  font-size: 0.78rem;
}

.trainer-option-desc {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c64-light-grey);
}

.trainer-switch-btn {
  background: #111122;
  color: var(--c64-light-green);
  border: 2px solid var(--c64-light-green);
  padding: 6px 12px;
  font-family: var(--font-c64);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trainer-switch-btn.state-off {
  color: var(--c64-light-red);
  border-color: var(--c64-light-red);
  background: #220000;
}

/* Scene Greets List */
.greets-container {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c64-cyan);
  background: rgba(0, 0, 0, 0.7);
  padding: 16px;
  border: 1px solid var(--c64-yellow);
}

.greet-group-title {
  color: var(--c64-yellow);
  font-family: var(--font-c64);
  font-size: 0.8rem;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* Contact & Transmission */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.contact-tile {
  background: rgba(10, 20, 40, 0.8);
  border: 1px solid var(--c64-cyan);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-tile strong {
  color: var(--c64-yellow);
  font-size: 0.75rem;
}

.contact-tile a {
  color: var(--c64-light-green);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  word-break: break-all;
}

.contact-tile a:hover {
  color: var(--c64-white);
  text-decoration: underline;
}

/* ==========================================================================
   BOTTOM SINE-WAVE SCROLLER (AUTHENTIC C64 DEMO SCROLLER)
   ========================================================================== */
.cracktro-scroller-footer {
  position: relative;
  z-index: 25;
  background: rgba(0, 0, 0, 0.85);
  border-top: 2px solid var(--c64-yellow);
  padding: 6px 0;
  height: 60px;
  overflow: hidden;
}

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

/* ==========================================================================
   MONITOR LOWER CHASSIS & RETRO CONTROLS
   ========================================================================== */
.monitor-footer-controls {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.monitor-brand-plate {
  font-family: var(--font-c64);
  font-size: 0.72rem;
  color: #2b251d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.keyboard-shortcut-hint {
  font-family: var(--font-petscii);
  font-size: 1.15rem;
  color: #4a443b;
}

.monitor-dial-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chassis-btn {
  background: #7a705e;
  color: #ffffff;
  border: 2px outset #a89d87;
  padding: 6px 12px;
  font-family: var(--font-c64);
  font-size: 0.65rem;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.chassis-btn:hover {
  background: #8e836f;
}

.chassis-btn:active {
  border-style: inset;
  transform: translateY(1px);
}

/* Mobile Virtual Keypad */
.mobile-retro-keypad {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  width: 100%;
}

.keypad-btn {
  background: #2b251d;
  color: var(--c64-cyan);
  border: 1px solid #5a5040;
  padding: 8px 4px;
  font-family: var(--font-c64);
  font-size: 0.65rem;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}

.keypad-btn:active {
  background: var(--c64-yellow);
  color: #000000;
}

/* ==========================================================================
   FULLSCREEN & FLAT MODE ADAPTATIONS
   ========================================================================== */
body.fullscreen-mode {
  background-color: #000000;
}

body.fullscreen-mode .monitor-wrapper {
  padding: 0;
  min-height: 100vh;
}

body.fullscreen-mode .monitor-housing {
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 0;
  background: #000000;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
}

body.fullscreen-mode .monitor-header,
body.fullscreen-mode .monitor-footer-controls {
  display: none;
}

body.fullscreen-mode .crt-screen-frame {
  border-radius: 0;
  height: 100vh;
  flex: 1;
}

body.fullscreen-mode .c64-vic-screen,
body.fullscreen-mode .cracktro-content-container {
  min-height: 100vh;
  height: 100vh;
}

body.fullscreen-mode .cracktro-display-screen {
  max-height: calc(100vh - 210px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 980px) {
  .cracktro-main-body {
    grid-template-columns: 1fr;
  }

  .cracktro-menu-panel {
    max-height: none;
  }

  .menu-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .cracktro-display-screen {
    max-height: 480px;
  }

  .mobile-retro-keypad {
    display: grid;
  }
}

@media (max-width: 640px) {
  .monitor-wrapper {
    padding: 6px;
  }

  .monitor-housing {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .scene-crew-title {
    font-size: 1rem;
  }

  .scene-crack-info {
    font-size: 1rem;
    gap: 6px;
  }

  .cracktro-hud-bar {
    font-size: 0.62rem;
    padding: 6px 10px;
  }

  .menu-options-list {
    grid-template-columns: 1fr;
  }

  .dossier-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dossier-meta-list {
    text-align: left;
  }

  .keyboard-shortcut-hint {
    display: none;
  }
}
