/* ============================================
   PRODUCTION QUEST 2 — STYLES
   Retro 8-bit adventure game aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-pixel: 'Press Start 2P', monospace;
  --color-bg: #0a0a1a;
  --color-panel: #1a1a2e;
  --color-panel-border: #4a4a6a;
  --color-text: #e0e0e0;
  --color-text-dim: #8888aa;
  --color-accent: #ffcc00;
  --color-accent-hover: #ffdd44;
  --color-choice-a: #44bb44;
  --color-choice-a-hover: #66dd66;
  --color-choice-b: #cc4444;
  --color-choice-b-hover: #ee6666;
  --color-choice-c: #4488cc;
  --color-choice-c-hover: #66aaee;
  --color-choice-d: #ddaa22;
  --color-choice-d-hover: #ffcc44;
  --color-overlay: rgba(0, 0, 0, 0.85);
  --color-gameover: #ff2222;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  font-family: var(--font-pixel);
  color: var(--color-text);
  cursor: default;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

/* --- Screens --- */
.screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.screen.active {
  display: flex;
}

/* --- CRT Scanlines Overlay --- */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ============================================
   TITLE SCREEN
   ============================================ */
/* --- Splash Screen --- */
.splash-content {
  text-align: center;
  z-index: 10;
}

.splash-text {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  letter-spacing: 4px;
  animation: blink 1.5s step-end infinite;
  cursor: pointer;
}

/* --- Title Screen --- */
.title-content {
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title-image {
  max-width: 90%;
  width: 700px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  margin-bottom: 40px;
  opacity: 0;
  animation: titleFadeIn 1.5s ease-out 0.3s forwards;
}

@keyframes titleFadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.title-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: titleFadeIn 1s ease-out 1.5s forwards;
}

/* --- Social Footer --- */
.social-footer {
  margin-top: 30px;
  text-align: center;
}

.social-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.social-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: var(--color-text-dim);
  letter-spacing: 2px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--color-text-dim);
  color: var(--color-text-dim);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.social-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.35rem;
  color: var(--color-text-dim);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--color-accent);
}

.social-divider {
  color: var(--color-text-dim);
  opacity: 0.3;
  font-size: 0.4rem;
}

.credits-text {
  margin-top: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.3rem;
  color: var(--color-text-dim);
  opacity: 0.5;
  letter-spacing: 1px;
  line-height: 2;
}

.score-share {
  margin-bottom: 20px;
}

/* --- Menu Buttons --- */
.menu-btn {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--color-accent);
  background: transparent;
  border: 2px solid var(--color-accent);
  padding: 14px 40px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.15s;
  text-transform: uppercase;
  min-width: 280px;
}

.menu-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.menu-btn:active {
  transform: scale(0.98);
}

/* ============================================
   NAME ENTRY MODAL
   ============================================ */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal-content {
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 #cc8800;
}

.modal-subtitle {
  font-size: 0.55rem;
  color: var(--color-text-dim);
  margin-bottom: 40px;
  line-height: 1.8;
}

.pixel-input {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--color-accent);
  background: #111122;
  border: 3px solid var(--color-panel-border);
  padding: 16px 24px;
  width: 360px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  outline: none;
  display: block;
  margin: 0 auto 16px;
}

.pixel-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.pixel-input::placeholder {
  color: #333355;
  letter-spacing: 1px;
  font-size: 0.6rem;
}

.easter-egg-text {
  font-size: 0.5rem;
  color: #ff6688;
  min-height: 2em;
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   GAME SCREEN
   ============================================ */
#game-screen {
  flex-direction: column;
  background: #000;
}

/* --- Inventory Bar --- */
#inventory-bar {
  width: 100%;
  height: 48px;
  background: #111122;
  border-bottom: 2px solid var(--color-panel-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  flex-shrink: 0;
}

.inventory-label {
  font-size: 0.45rem;
  color: var(--color-text-dim);
  margin-right: 12px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

#inventory-items {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
}

.inventory-item {
  width: 36px;
  height: 36px;
  background: #1a1a2e;
  border: 2px solid var(--color-panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: default;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
  animation: itemPickup 0.4s ease-out;
}

.inventory-item:hover {
  border-color: var(--color-accent);
  transform: scale(1.15);
}

.inventory-item .item-tooltip {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-panel);
  border: 1px solid var(--color-accent);
  padding: 6px 10px;
  font-size: 0.4rem;
  color: var(--color-accent);
  white-space: nowrap;
  z-index: 200;
  letter-spacing: 1px;
}

.inventory-item:hover .item-tooltip {
  display: block;
}

.inventory-item .item-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

/* --- Scene Container --- */
#scene-container {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a1a;
}

#scene-canvas {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

#scene-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* --- Hotspot Regions --- */
.hotspot-region {
  position: absolute;
  cursor: pointer;
  border: 2px dashed transparent;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.hotspot-region:hover {
  border-color: var(--color-accent, #ffcc00);
  background: rgba(255, 204, 0, 0.12);
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.25), inset 0 0 8px rgba(255, 204, 0, 0.08);
}

.hotspot-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--color-accent, #ffcc00);
  background: rgba(0, 0, 0, 0.85);
  padding: 3px 8px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  bottom: -20px;
  white-space: nowrap;
  pointer-events: none;
}

.hotspot-region:hover .hotspot-label {
  opacity: 1;
}

.hotspot-prompt {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.92);
  border-top: 2px solid var(--color-accent, #ffcc00);
  padding: 12px 16px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--color-accent, #ffcc00);
  letter-spacing: 2px;
  z-index: 60;
  animation: blink 1.5s step-end infinite;
}

@media (max-width: 768px) {
  .hotspot-label { font-size: 0.35rem; bottom: -16px; }
  .hotspot-prompt { font-size: 0.4rem; padding: 8px 10px; }
}

/* --- Dialogue Bar --- */
#dialogue-bar {
  width: 100%;
  min-height: 140px;
  background: var(--color-panel);
  border-top: 3px solid var(--color-panel-border);
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  position: relative;
  z-index: 100;
  user-select: none;
  -webkit-user-select: none;
}

#portrait-container {
  width: 100px;
  height: 100px;
  border: 2px solid var(--color-panel-border);
  background: #111;
  flex-shrink: 0;
  overflow: hidden;
  image-rendering: pixelated;
}

#portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

#dialogue-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#speaker-name {
  font-size: 0.65rem;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 1em;
}

#dialogue-text {
  font-size: 0.7rem;
  line-height: 2;
  color: var(--color-text);
  flex: 1;
  letter-spacing: 0.5px;
}

#dialogue-continue {
  font-size: 0.5rem;
  color: var(--color-text-dim);
  text-align: right;
  margin-top: 8px;
  display: none;
}

/* --- Choice Panel (2x2 Grid for 4 choices) --- */
#choice-panel {
  width: 100%;
  background: var(--color-panel);
  border-top: 3px solid var(--color-accent);
  padding: 16px 24px 20px;
  z-index: 100;
  user-select: none;
  -webkit-user-select: none;
}

.choice-header {
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 3px;
  text-align: center;
}

#choice-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-btn {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.8;
  padding: 10px 14px;
  border: 2px solid;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}

.choice-btn.choice-a {
  color: var(--color-choice-a);
  border-color: var(--color-choice-a);
}
.choice-btn.choice-a:hover {
  background: var(--color-choice-a);
  color: var(--color-bg);
  box-shadow: 0 0 12px rgba(68, 187, 68, 0.3);
  transform: scale(1.02);
}

.choice-btn.choice-b {
  color: var(--color-choice-b);
  border-color: var(--color-choice-b);
}
.choice-btn.choice-b:hover {
  background: var(--color-choice-b);
  color: var(--color-bg);
  box-shadow: 0 0 12px rgba(204, 68, 68, 0.3);
  transform: scale(1.02);
}

.choice-btn.choice-c {
  color: var(--color-choice-c);
  border-color: var(--color-choice-c);
}
.choice-btn.choice-c:hover {
  background: var(--color-choice-c);
  color: var(--color-bg);
  box-shadow: 0 0 12px rgba(68, 136, 204, 0.3);
  transform: scale(1.02);
}

.choice-btn.choice-d {
  color: var(--color-choice-d);
  border-color: var(--color-choice-d);
}
.choice-btn.choice-d:hover {
  background: var(--color-choice-d);
  color: var(--color-bg);
  box-shadow: 0 0 12px rgba(221, 170, 34, 0.3);
  transform: scale(1.02);
}

/* Choice type labels */
.choice-type {
  font-size: 0.35rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

/* --- Scene Title Overlay --- */
#scene-title-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

#scene-title-text {
  font-size: 1.2rem;
  color: var(--color-accent);
  text-align: center;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
  animation: fadeInUp 0.5s ease-out;
}

/* --- Transition Overlay --- */
#transition-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
}

/* ============================================
   GAME OVER SCREEN
   ============================================ */
.gameover-content {
  text-align: center;
  z-index: 10;
  max-width: 700px;
  padding: 40px;
  animation: glitchIn 0.5s ease-out;
}

.gameover-title {
  font-size: 3rem;
  color: var(--color-gameover);
  margin-bottom: 16px;
  text-shadow:
    3px 3px 0 #880000,
    -2px 0 0 #00ffff,
    2px 0 0 #ff00ff;
  animation: glitchText 2s infinite;
  letter-spacing: 6px;
}

.gameover-subtitle {
  font-size: 0.7rem;
  color: #ff6666;
  margin-bottom: 30px;
  letter-spacing: 3px;
  opacity: 0.8;
}

#gameover-text {
  font-size: 0.6rem;
  line-height: 2.2;
  color: var(--color-text);
  margin-bottom: 40px;
  text-align: left;
}

.gameover-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#gameover-screen .menu-btn {
  border-color: var(--color-gameover);
  color: var(--color-gameover);
}

#gameover-screen .menu-btn:hover {
  background: var(--color-gameover);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 34, 34, 0.4);
}

/* ============================================
   END SCREEN
   ============================================ */
.end-content {
  text-align: center;
  z-index: 10;
  max-width: 700px;
  padding: 40px;
}

.end-title {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 30px;
  text-shadow:
    3px 3px 0 #cc8800,
    0 0 20px rgba(255, 204, 0, 0.4);
  animation: titlePulse 3s ease-in-out infinite;
}

#end-text {
  font-size: 0.65rem;
  line-height: 2.2;
  color: var(--color-text);
  margin-bottom: 40px;
  text-align: left;
}

.end-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ============================================
   SCORE SCREEN
   ============================================ */
.score-content {
  text-align: center;
  z-index: 10;
  max-width: 600px;
  padding: 30px;
  width: 100%;
}

.score-title {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 24px;
  text-shadow: 2px 2px 0 #cc8800, 0 0 20px rgba(255, 204, 0, 0.3);
  letter-spacing: 4px;
}

#score-breakdown {
  text-align: left;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.score-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.45rem;
  color: var(--color-text);
  opacity: 0;
  animation: scoreLineIn 0.3s ease-out forwards;
}

.score-line-label { flex: 1; letter-spacing: 1px; }
.score-line-points { color: var(--color-accent); margin-left: 12px; white-space: nowrap; }

.score-line-base .score-line-label { color: var(--color-text); }
.score-line-flag .score-line-label { color: #44ff88; }
.score-line-easter .score-line-label { color: #ff44ff; }
.score-line-item .score-line-label { color: #44bbff; }

.score-total-value {
  font-size: 2.5rem;
  color: var(--color-accent);
  text-shadow: 2px 2px 0 #cc8800, 0 0 30px rgba(255, 204, 0, 0.4);
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.score-total-final {
  animation: scorePulse 0.6s ease-in-out 3;
}

@keyframes scoreLineIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scorePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); text-shadow: 2px 2px 0 #cc8800, 0 0 50px rgba(255, 204, 0, 0.6); }
}

/* --- Lead Capture --- */
.lead-capture-prompt {
  font-size: 0.5rem;
  color: var(--color-text-dim);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

#lead-capture .pixel-input {
  display: block;
  margin: 0 auto 12px auto;
  width: 280px;
}

.lead-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.menu-btn-dim {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--color-text-dim);
  background: transparent;
  border: 2px solid var(--color-text-dim);
  padding: 8px 20px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.menu-btn-dim:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

#score-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ============================================
   LEADERBOARD SCREEN
   ============================================ */
.leaderboard-content {
  text-align: center;
  z-index: 10;
  max-width: 550px;
  padding: 30px;
  width: 100%;
}

.leaderboard-title {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 24px;
  text-shadow: 2px 2px 0 #cc8800;
  letter-spacing: 4px;
}

#leaderboard-table {
  margin-bottom: 24px;
}

.leaderboard-empty {
  font-size: 0.5rem;
  color: var(--color-text-dim);
  padding: 30px;
  letter-spacing: 2px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 0.45rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-current {
  background: rgba(255, 204, 0, 0.1) !important;
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: var(--color-accent);
}

.lb-rank {
  width: 30px;
  color: var(--color-text-dim);
  text-align: right;
  margin-right: 12px;
}

.leaderboard-row:nth-child(1) .lb-rank { color: #ffcc00; }
.leaderboard-row:nth-child(2) .lb-rank { color: #cccccc; }
.leaderboard-row:nth-child(3) .lb-rank { color: #cc8844; }

.lb-name { flex: 1; text-align: left; letter-spacing: 1px; }
.lb-score { color: var(--color-accent); margin-left: 12px; }

.leaderboard-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --- Game Over Partial Score --- */
.gameover-partial-score {
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-top: 20px;
  letter-spacing: 3px;
  opacity: 0.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blink {
  animation: blink 1.2s step-end infinite;
}

@keyframes itemPickup {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes glitchIn {
  0% { transform: translate(-5px, 5px) skew(2deg); opacity: 0; }
  20% { transform: translate(5px, -3px) skew(-1deg); opacity: 0.5; }
  40% { transform: translate(-3px, 2px) skew(1deg); opacity: 0.8; }
  100% { transform: translate(0, 0) skew(0); opacity: 1; }
}

@keyframes glitchText {
  0%, 95%, 100% { text-shadow: 3px 3px 0 #880000, -2px 0 0 #00ffff, 2px 0 0 #ff00ff; }
  96% { text-shadow: 3px 3px 0 #880000, -5px 0 0 #00ffff, 5px 0 0 #ff00ff; transform: translate(-2px, 1px); }
  97% { text-shadow: 3px 3px 0 #880000, 3px 0 0 #00ffff, -3px 0 0 #ff00ff; transform: translate(2px, -1px); }
  98% { text-shadow: 3px 3px 0 #880000, -2px 0 0 #00ffff, 2px 0 0 #ff00ff; transform: translate(0, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .title-image { width: 500px; }
  
  #dialogue-bar { min-height: 120px; padding: 12px 16px; }
  #dialogue-text { font-size: 0.55rem; }
  #speaker-name { font-size: 0.5rem; }
  #portrait-container { width: 70px; height: 70px; }
  
  #choice-buttons { grid-template-columns: 1fr; }
  .choice-btn { font-size: 0.45rem; padding: 8px 12px; }
  
  .menu-btn { font-size: 0.7rem; padding: 10px 24px; min-width: 220px; }
  
  .pixel-input { width: 280px; font-size: 0.8rem; }
  .modal-title { font-size: 1rem; }
  
  .gameover-title { font-size: 2rem; }
  
  #inventory-bar { height: 40px; }
  .inventory-item { width: 30px; height: 30px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .title-image { width: 350px; }
}
