/* TheHempire Arcade — Game Page Styling (matches TheHempire design) */

:root {
  --hempire-green: #a6cd63;
  --hempire-green-bg: rgb(61, 75, 39);
  --hempire-green-hover: rgb(88, 108, 57);
  --text-primary: rgb(220, 211, 202);
  --text-secondary: rgb(173, 168, 162);
  --text-muted: rgb(142, 145, 142);
  --text-dark: rgb(105, 107, 102);
  --bg-dark: rgb(20, 24, 20);
  --bg-panel: rgb(31, 32, 26);
  --bg-panel-hover: rgb(37, 41, 37);
  --border-color: rgba(142, 145, 142, 0.15);
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-family: 'Roboto Condensed', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============ GAME PAGE FRAME ============ */
.game-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

.game-topbar {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 10px;
}

.back-btn {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #a6cd63;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(166, 205, 99, 0.4);
  transition: all 0.2s;
  background: transparent;
}

.back-btn:hover {
  background: rgba(166, 205, 99, 0.1);
  border-color: #a6cd63;
  color: #a6cd63;
}

.game-title {
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--text-primary);
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.game-score {
  font-size: 15px;
  font-weight: bold;
  color: #a6cd63;
  min-width: 120px;
  text-align: right;
}

/* ============ CANVAS CONTAINER ============ */
.canvas-container {
  background: #000;
  border: 2px solid rgba(142, 145, 142, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.canvas-container canvas {
  display: block;
}

/* ============ GAME INFO BAR ============ */
.game-info {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.game-controls {
  display: flex;
  gap: 15px;
}

.game-controls span {
  color: var(--text-dark);
}

.game-controls kbd {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  color: #a6cd63;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.game-high-score {
  color: #a6cd63;
  font-weight: bold;
}

/* ============ GAME OVERLAY (start/pause/gameover) ============ */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 24, 20, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.game-overlay h2 {
  font-size: clamp(18px, 3vw, 28px);
  color: var(--text-primary);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.game-overlay p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.game-overlay .blink {
  animation: blink 1.2s step-end infinite;
  color: #a6cd63;
}

@keyframes blink {
  50% { opacity: 0; }
}

.game-overlay .final-score {
  font-size: clamp(28px, 5vw, 48px);
  color: #a6cd63;
  font-weight: bold;
  margin-bottom: 8px;
}

.game-overlay .high-score-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: bold;
}

.game-overlay .new-record {
  font-size: 14px;
  color: #ffd700;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: blink 0.8s step-end infinite;
}

/* ============ NEON CLASS OVERRIDES (games use these) ============ */
.neon-pink {
  color: var(--text-primary);
}

.neon-cyan {
  color: var(--text-primary);
}

.neon-yellow {
  color: #a6cd63;
}

.neon-green {
  color: #a6cd63;
}

/* ============ BUTTONS ============ */
.arcade-btn {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid rgba(166, 205, 99, 0.4);
  background: transparent;
  color: #a6cd63;
  cursor: pointer;
  transition: all 0.2s;
}

.arcade-btn:hover {
  background: rgba(166, 205, 99, 0.1);
  border-color: #a6cd63;
}

/* ============ NAME PROMPT MODAL ============ */
.arcade-name-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.anm-box {
  background: var(--bg-panel);
  border: 2px solid #a6cd63;
  padding: 40px 30px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.anm-title {
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.anm-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.anm-input {
  width: 100%;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 18px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(166, 205, 99, 0.5);
  color: var(--text-primary);
  text-align: center;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.anm-input::placeholder {
  color: var(--text-dark);
}

.anm-input:focus {
  border-color: #a6cd63;
  box-shadow: 0 0 10px rgba(166, 205, 99, 0.2);
}

.anm-btn {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 12px 24px;
  background: var(--hempire-green-bg);
  border: none;
  color: #a6cd63;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.anm-btn:hover {
  background: var(--hempire-green-hover);
}

/* ============ FOOTER ============ */
.arcade-footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-dark);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .game-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .game-score {
    text-align: center;
    width: 100%;
    order: -1;
  }

  .game-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
