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

body {
  background: #2c2c3a;
  color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
}

#app {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

#game-canvas {
  border: 2px solid #333;
  background: #222230;
  image-rendering: pixelated;
}

#hold-canvas,
#next-canvas {
  display: block;
  background: #222230;
  border: 1px solid #222;
}

.hud-section {
  margin-bottom: 16px;
  text-align: center;
}

.hud-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hud-value {
  font-size: 22px;
  font-weight: 700;
  color: #ddd;
  font-variant-numeric: tabular-nums;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 10;
  pointer-events: none;
}

#overlay.hidden {
  display: none;
}

#overlay-content {
  text-align: center;
}

#overlay-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 12px;
  color: #fff;
}

#overlay-subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 24px;
}

#controls-info {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}

#controls-info p {
  margin: 2px 0;
}

#controls-info strong {
  color: #bbb;
}

#mute-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#mute-indicator.visible {
  opacity: 1;
}

#volume-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 24px;
  color: #fff;
  font-family: inherit;
}
#volume-panel.hidden {
  display: none;
}
#volume-panel h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 16px;
  color: #ccc;
}
.vol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}
.vol-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #888;
  width: 50px;
  text-align: left;
}
.vol-row input[type="range"] {
  flex: 1;
  height: 6px;
  appearance: none;
  background: #444;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.vol-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #6e8efb;
  border-radius: 50%;
  cursor: pointer;
}
.vol-row input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #6e8efb;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.vol-row input[type="range"]:hover::-webkit-slider-thumb {
  background: #8b9cf7;
}

/* Gallery Overlay */
#gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 15;
  pointer-events: none;
}
#gallery-overlay.hidden {
  display: none;
}

#gallery-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 30, 50, 0.95);
  border: 2px solid #444;
  border-radius: 8px;
  padding: 16px;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
}

#gallery-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ccc;
  margin-bottom: 12px;
}

#gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 8px;
  margin-bottom: 12px;
  max-width: 260px;
  max-height: 360px;
  overflow-y: auto;
}

.gallery-thumb {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.1s;
}

.gallery-thumb.selected {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.gallery-thumb.unlocked {
  opacity: 1;
}

#gallery-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

#gallery-preview-container {
  width: 150px;
  height: 190px;
  position: relative;
  overflow: hidden;
  border: 2px solid #555;
  border-radius: 4px;
}

#gallery-preview-canvas {
  width: 150px;
  height: 190px;
}

#gallery-preview-info {
  margin-top: 4px;
  font-size: 12px;
  color: #aaa;
}

#gallery-hints {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #777;
  margin-top: 8px;
}

#gallery-no-images {
  color: #888;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

#gallery-download-toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffd700;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid #ffd700;
  border-radius: 4px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 400ms ease-out;
}

#gallery-download-toast.hidden {
  display: none;
}

#gallery-download-toast.fade-out {
  opacity: 0;
}

#image-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 20, 0.92);
  z-index: 200;
  cursor: pointer;
}

#image-prompt-overlay.hidden {
  display: none;
}

#image-prompt-content {
  text-align: center;
  color: #eee;
  padding: 32px 48px;
  background: rgba(30, 30, 50, 0.95);
  border: 2px solid #ffd700;
  border-radius: 8px;
  max-width: 480px;
}

#image-prompt-title {
  font-size: 48px;
  letter-spacing: 4px;
  color: #ffd700;
  margin: 0 0 24px 0;
}

#image-prompt-text {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
}

#image-prompt-hint {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 8px 0;
}

#image-prompt-note {
  font-size: 11px;
  color: #777;
  margin: 0;
  font-style: italic;
}
.vol-value {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.setting-row {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  flex: 1;
  margin: 0 8px;
  max-width: 40px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #444;
  border-radius: 20px;
  transition: background 150ms ease;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #ddd;
  border-radius: 50%;
  transition: transform 150ms ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: #ffd700;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #1a1a2e;
}

/* === Lobby Overlay === */

#lobby-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 20;
}
#lobby-overlay.hidden { display: none; }

#lobby-panel {
  background: rgba(30, 30, 50, 0.95);
  border: 2px solid #444;
  border-radius: 8px;
  padding: 32px;
  min-width: 360px;
  max-width: 480px;
  text-align: center;
  color: #fff;
  font-family: inherit;
}

/* Mode selection in #overlay */
.mode-option {
  font-size: 16px;
  font-weight: 700;
  color: #ccc;
  padding: 8px 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.1s;
}
.mode-option:hover, .mode-option:focus { color: #fff; outline: none; }
.mode-option.selected { color: #6e8efb; }
.mode-option.disabled {
  color: #555;
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Room code display */
#room-code-display {
  font-size: 40px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

/* Copy button */
#btn-copy {
  background: transparent;
  border: 1px solid #6e8efb;
  color: #6e8efb;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  height: 44px;
  transition: background 0.1s, color 0.1s;
}
#btn-copy:hover { background: #6e8efb; color: #fff; }

/* Waiting text animation */
@keyframes pulse-ellipsis {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.lobby-waiting-text {
  font-size: 16px;
  color: #aaa;
  margin: 24px 0;
  animation: pulse-ellipsis 1.4s ease-in-out infinite;
}

/* Player rows */
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #333;
  font-size: 16px;
  color: #ddd;
}
.player-row:first-child { border-top: none; }
.player-ready-mark {
  color: #ffd700;
  font-size: 20px;
  font-weight: 700;
}

/* Ready button */
#btn-ready {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  height: 44px;
  margin-top: 16px;
  transition: background 0.1s, color 0.1s;
}
#btn-ready:hover { background: #ffd700; color: #1a1a2e; }

/* Mode toggle */
#mode-toggle {
  display: inline-flex;
  margin: 16px 0 8px;
}
#mode-toggle button {
  background: transparent;
  border: 2px solid #333;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  padding: 0 12px;
  cursor: pointer;
}
#mode-toggle button:first-child { border-radius: 4px 0 0 4px; }
#mode-toggle button:last-child  { border-radius: 0 4px 4px 0; border-left: none; }
#mode-toggle button[aria-checked="true"] {
  background: #444;
  color: #fff;
  border-color: #6e8efb;
}
#mode-readonly {
  font-size: 13px;
  color: #aaa;
  margin: 16px 0 8px;
}

/* Countdown */
#lobby-countdown {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
#lobby-countdown.go { color: #ffd700; }

/* Handle input + confirm */
#handle-input, #join-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  margin: 8px 0;
  box-sizing: border-box;
}
#handle-input:focus, #join-input:focus {
  border-color: #6e8efb;
  outline: none;
}
#handle-input.invalid, #join-input.invalid { border-color: #e05c5c; }

#handle-confirm, #btn-create, #btn-join {
  background: #6e8efb;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 24px;
  cursor: pointer;
  height: 44px;
  margin-top: 8px;
  font-family: inherit;
  transition: background 0.1s;
}
#handle-confirm:hover, #btn-create:hover, #btn-join:hover { background: #8b9cf7; }
#handle-confirm:disabled, #btn-join:disabled {
  background: #333;
  color: #555;
  cursor: not-allowed;
}

#btn-create {
  /* Outlined style for secondary-weight action */
  background: transparent;
  border: 2px solid #6e8efb;
  color: #6e8efb;
}
#btn-create:hover { background: #6e8efb; color: #fff; }

/* OR divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #444;
}

/* Error + validation messages */
.lobby-error, #handle-error, #join-error, #lobby-error {
  font-size: 13px;
  color: #e05c5c;
  margin-top: 8px;
  min-height: 20px;
}
.lobby-error.hidden, #handle-error.hidden,
#join-error.hidden, #lobby-error.hidden { display: none; }

/* Back / leave links */
#name-back, #create-join-back, #waiting-leave {
  display: inline-block;
  font-size: 13px;
  color: #666;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: underline;
}
#name-back:hover, #create-join-back:hover, #waiting-leave:hover { color: #aaa; }

/* Label for handle input */
label[for="handle-input"] {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: left;
}

/* === Phase 11 MP UI === */

/* Opponent mini-board (BATTLE-09) */
#opponent-section {
  display: none;             /* hidden until state.mode === 'mp' (renderer.js shows it) */
}
#opponent-section.mp-active {
  display: block;
}
#opponent-header {
  font-size: 12px;
  color: #ccc;
  text-align: center;
  margin: 4px 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
#opponent-canvas {
  display: block;
  margin: 0 auto;
  background: #1e2e4e;
  border: 1px solid #333;
}

/* Round counter banner (BATTLE-11) */
#round-counter {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffea00;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 2px;
  border: 2px solid #444;
  border-radius: 4px;
  z-index: 50;
}
#round-counter.hidden { display: none; }

/* MP overlays — share common modal styling */
#mp-result-overlay,
#mp-disconnect-overlay,
#mp-reconnect-overlay,
#mp-leave-confirm,
#mp-round-result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fff;
}
#mp-result-overlay.hidden,
#mp-disconnect-overlay.hidden,
#mp-reconnect-overlay.hidden,
#mp-leave-confirm.hidden,
#mp-round-result-overlay.hidden {
  display: none;
}
#mp-result-panel,
#mp-disconnect-panel,
#mp-reconnect-panel,
#mp-leave-panel,
#mp-round-result-panel {
  background: #1e2e4e;
  border: 2px solid #444;
  border-radius: 6px;
  padding: 32px 48px;
  text-align: center;
  min-width: 320px;
}
#mp-result-title {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: 4px;
}
#mp-result-actions, #mp-leave-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
#mp-result-actions button,
#mp-leave-actions button {
  padding: 8px 20px;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  cursor: pointer;
  font-family: inherit;
}
#mp-result-actions button:hover,
#mp-leave-actions button:hover {
  background: #444;
}
#mp-disconnect-countdown {
  font-size: 18px;
  color: #ffaa33;
  margin-top: 8px;
}
/* Phase 13 NET-04: reconnect overlay panel */
#mp-reconnect-panel {
  text-align: center;
}
#mp-reconnect-panel h2 {
  margin-bottom: 0.5em;
  color: #ffaa44;
}
#mp-reconnect-panel p {
  margin: 0.25em 0;
  font-size: 1.1rem;
}
#mp-reconnect-attempt {
  font-size: 0.9rem;
  opacity: 0.8;
}
#mp-round-result-title {
  font-size: 28px;
  letter-spacing: 2px;
  margin: 0;
}

/* Phase 12: leaderboard overlay */
#leaderboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
#leaderboard-overlay.hidden { display: none; }
#leaderboard-panel {
  background: #111;
  border: 2px solid #4a8;
  padding: 24px 32px;
  border-radius: 12px;
  color: #eee;
  font-family: monospace;
  min-width: 480px;
  max-width: 720px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
#leaderboard-title {
  margin: 0 0 16px;
  text-align: center;
  letter-spacing: 4px;
  color: #4ec9b0;
}
#leaderboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #333;
}
.lb-tab {
  padding: 8px 16px;
  font-family: monospace;
  font-weight: bold;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
}
.lb-tab.active {
  background: #1a3a2a;
  border-color: #4a8;
  color: #4ec9b0;
}
#leaderboard-progress-pill {
  margin: 8px 0;
  padding: 6px 12px;
  background: #2a2a1a;
  border: 1px solid #884;
  border-radius: 4px;
  color: #ffb74d;
  font-size: 12px;
  text-align: center;
}
#leaderboard-status {
  margin: 12px 0;
  padding: 12px;
  background: #2a1a1a;
  border: 1px solid #844;
  border-radius: 4px;
  color: #f88;
  text-align: center;
}
#leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#leaderboard-table th,
#leaderboard-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #222;
}
#leaderboard-table th {
  color: #888;
  font-weight: normal;
  letter-spacing: 1px;
}
#leaderboard-table tbody tr:hover { background: #1a1a1a; }
#leaderboard-table tr.you-row {
  background: rgba(78, 201, 176, 0.15);
  border-left: 3px solid #4ec9b0;
}
#leaderboard-table tr.rank-reveal {
  animation: rank-reveal 1.5s ease-out;
}
@keyframes rank-reveal {
  0% { background: rgba(255, 183, 77, 0.6); }
  100% { background: rgba(78, 201, 176, 0.15); }
}
.lb-handle-cell {
  cursor: pointer;
  color: #4ec9b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lb-handle-cell:hover { color: #fff; }
#leaderboard-actions {
  margin-top: 16px;
  text-align: center;
}
#leaderboard-close,
#history-back {
  padding: 8px 24px;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  background: #1a3a2a;
  border: 2px solid #4a8;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
}
#history-panel {
  position: absolute;
  inset: 0;
  background: #111;
  padding: 24px 32px;
  border-radius: 12px;
  overflow-y: auto;
}
#history-panel.hidden { display: none; }
#history-back { margin-bottom: 12px; }
#history-handle {
  margin: 8px 0 16px;
  letter-spacing: 4px;
  color: #4ec9b0;
}
#history-stats {
  margin: 8px 0;
  padding: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 13px;
}
#history-last10-label {
  margin: 16px 0 8px;
  color: #888;
  letter-spacing: 1px;
  font-size: 12px;
}
#history-last10-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
#history-last10-table th,
#history-last10-table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid #222;
}

/* Phase 12: name-entry overlay */
#name-entry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
#name-entry-overlay.hidden { display: none; }
#name-entry-panel {
  background: #111;
  border: 2px solid #4a8;
  padding: 32px 48px;
  border-radius: 12px;
  text-align: center;
  color: #eee;
  font-family: monospace;
  min-width: 360px;
}
#name-entry-title {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 4px;
  color: #4ec9b0;
}
#name-entry-subtitle {
  margin: 0 0 20px;
  font-size: 12px;
  color: #888;
}
#name-entry-slots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}
.name-slot {
  width: 64px;
  height: 80px;
  border: 2px solid #444;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #ccc;
  border-radius: 6px;
  transition: border-color 0.1s, color 0.1s;
}
.name-slot.active {
  border-color: #4ec9b0;
  color: #fff;
  box-shadow: 0 0 12px rgba(78, 201, 176, 0.6);
}
#name-entry-timer {
  margin: 16px 0;
  font-size: 18px;
  color: #ffb74d;
  letter-spacing: 2px;
}
#name-entry-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
#name-entry-confirm,
#name-entry-skip {
  padding: 8px 24px;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid #4a8;
  background: #1a3a2a;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
}
#name-entry-skip {
  background: #2a1a1a;
  border-color: #844;
}
#name-entry-confirm:hover { background: #2a5a3a; }
#name-entry-skip:hover { background: #4a2a2a; }
#name-entry-status {
  margin-top: 12px;
  padding: 8px 12px;
  background: #2a1a1a;
  border: 1px solid #844;
  border-radius: 4px;
  font-size: 12px;
  color: #f88;
}

/* Phase 12: PIN sub-panel inside #name-entry-overlay */
#pin-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #333;
}
#pin-panel.hidden { display: none; }
#pin-panel-title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 3px;
  color: #ffb74d;
}
#pin-panel-prompt {
  margin: 0 0 16px;
  font-size: 13px;
  color: #aaa;
}
#pin-slots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.pin-slot {
  width: 48px;
  height: 64px;
  border: 2px solid #444;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: #ccc;
  border-radius: 6px;
  transition: border-color 0.1s, color 0.1s;
}
.pin-slot.active {
  border-color: #ffb74d;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 183, 77, 0.6);
}
#pin-timer {
  margin: 12px 0;
  font-size: 16px;
  color: #ffb74d;
  letter-spacing: 2px;
}
#pin-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
#pin-confirm,
#pin-cancel,
#pin-change-initials {
  padding: 8px 16px;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
  background: #1a3a2a;
  border: 2px solid #4a8;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
}
#pin-cancel,
#pin-change-initials {
  background: #2a1a1a;
  border-color: #844;
}
#pin-confirm:hover { background: #2a5a3a; }
#pin-cancel:hover, #pin-change-initials:hover { background: #4a2a2a; }
#pin-status {
  margin-top: 12px;
  padding: 8px 12px;
  background: #2a1a1a;
  border: 1px solid #844;
  border-radius: 4px;
  font-size: 12px;
  color: #f88;
}

/* Phase 12 Plan 12-05: submit status pill */
#submit-status-pill {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #2a1a1a;
  border: 2px solid #844;
  border-radius: 6px;
  color: #f88;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
#submit-status-pill.hidden { display: none; }
/* #mode-leaderboard inherits .mode-option styling */
