/* ============================================================
   custom-game.css — Styles for create-game, game-tracking,
   and game-preview pages.
   Extends base.css conventions (Kabel font, purple gradient
   background, white cards, #667eea accent).
   ============================================================ */

/* ============== Shared Nav (mirrors create-gift.css) ======= */
.game-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-size: 1.2em;
  font-weight: 700;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95em;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.nav-links a.nav-active {
  color: white;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
}

.nav-user-name {
  color: white;
  font-weight: 600;
  font-size: 0.95em;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85em;
}

/* ============================================================
   CREATE GAME PAGE
   ============================================================ */

.create-game-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px 60px;
}

/* Hero header */
.create-game-header {
  text-align: center;
  margin-bottom: 32px;
}

.create-game-title {
  color: white;
  font-size: 2.4em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.create-game-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05em;
}

/* ── Form sections ── */
.game-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.game-section-heading {
  color: #667eea;
  font-size: 1.2em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* ── Form fields ── */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95em;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-hint {
  font-size: 0.82em;
  color: #888;
  margin-bottom: 6px;
  font-weight: normal;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s;
  color: #333;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
}

.form-input.input-error {
  border-color: #ef4444;
}

.field-error {
  color: #ef4444;
  font-size: 0.85em;
  margin-top: 6px;
  min-height: 0;
}

.field-error:empty { display: none; }

/* ── Input method tabs ── */
.input-tabs {
  display: flex;
  gap: 0;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.input-tab {
  flex: 1;
  padding: 11px 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  color: #888;
  background: #fafafa;
  border: none;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.input-tab + .input-tab {
  border-left: 2px solid #e0e0e0;
}

.input-tab:hover:not(.active) {
  background: #f0f0f0;
  color: #555;
}

.input-tab.active {
  background: #667eea;
  color: white;
}

/* ── Tab panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Career textarea */
.career-textarea {
  min-height: 160px;
  resize: vertical;
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
  position: relative;
}

.upload-zone:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.upload-zone.dragover {
  border-color: #667eea;
  background: #f0f3ff;
  border-width: 3px;
}

.upload-zone.has-file {
  border-color: #10b981;
  border-style: solid;
  background: #f0fdf4;
  cursor: default;
}

.upload-zone.upload-error { border-color: #ef4444; }

.upload-zone-icon {
  font-size: 2.2em;
  margin-bottom: 8px;
}

.upload-zone-text {
  color: #555;
  font-weight: 500;
  margin-bottom: 4px;
}

.upload-zone-hint {
  color: #999;
  font-size: 0.82em;
}

/* ── Upload preview inside zone ── */
.upload-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.upload-preview img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.upload-preview-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-filename {
  color: #333;
  font-weight: 500;
  font-size: 0.88em;
  word-break: break-all;
}

.remove-btn {
  padding: 6px 14px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82em;
  font-family: inherit;
  width: fit-content;
}

.remove-btn:hover { background: #ee5a5a; }

/* ── Form error banner ── */
.form-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ── Submit button ── */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px;
  font-size: 1.15em;
  margin-top: 10px;
  border-radius: 12px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── How it works strip ── */
.how-it-works {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 30px;
  margin-top: 8px;
  text-align: center;
}

.how-it-works-title {
  color: white;
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0.9;
}

.how-steps {
  display: flex;
  gap: 0;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.how-step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: #667eea;
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.how-step-label {
  color: white;
  font-size: 0.82em;
  font-weight: 600;
  text-align: center;
  opacity: 0.9;
  max-width: 120px;
  line-height: 1.4;
}

.how-arrow {
  flex: 0 0 24px;
  color: rgba(255,255,255,0.6);
  font-size: 1.4em;
  align-self: center;
  margin-top: -20px;
}


/* ============================================================
   GAME TRACKING PAGE
   ============================================================ */

.tracking-container {
  max-width: 640px;
  margin: 30px auto;
  padding: 0 20px 60px;
}

.tracking-header {
  text-align: center;
  margin-bottom: 28px;
}

.tracking-title {
  color: white;
  font-size: 2.2em;
  margin-bottom: 6px;
  transition: opacity 0.4s;
}

.tracking-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 0.95em;
}

/* ── Progress card ── */
.tracking-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Progress bar ── */
.progress-bar-wrap {
  margin-bottom: 28px;
}

.progress-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.progress-bar-label {
  font-weight: 700;
  color: #333;
  font-size: 0.95em;
}

.progress-bar-pct {
  font-weight: 700;
  color: #667eea;
  font-size: 1.1em;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
  transition: width 0.6s ease;
}

/* ── Steps list ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f5f5;
}

.step-row:last-child { border-bottom: none; }

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

/* Pending */
.step-icon.pending {
  background: #f0f0f0;
  color: #ccc;
}

/* Active / in progress */
.step-icon.active {
  background: #eef0ff;
  color: #667eea;
}

/* Done */
.step-icon.done {
  background: #dcfce7;
  color: #16a34a;
}

.step-label-text {
  font-size: 0.92em;
  color: #555;
  flex: 1;
  transition: color 0.3s;
}

.step-row.active-row .step-label-text {
  color: #667eea;
  font-weight: 600;
}

.step-row.done-row .step-label-text {
  color: #16a34a;
}

/* Pulsing spinner in active icon */
@keyframes trackSpin {
  to { transform: rotate(360deg); }
}

.step-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #c7d0ff;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: trackSpin 0.8s linear infinite;
  display: inline-block;
}

/* ── Game name reveal ── */
.game-name-reveal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  animation: revealFadeIn 0.6s ease-out;
}

@keyframes revealFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.game-name-reveal-eyebrow {
  color: rgba(255,255,255,0.7);
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.game-name-reveal-title {
  color: white;
  font-size: 2em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.game-name-reveal-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 0.95em;
}

/* ── Complete card ── */
.complete-card {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.complete-icon {
  font-size: 3.5em;
  margin-bottom: 12px;
}

.complete-title {
  color: #333;
  font-size: 1.6em;
  margin-bottom: 8px;
}

.complete-subtitle {
  color: #666;
  margin-bottom: 28px;
}

/* ── Error card (tracking) ── */
.tracking-error-card {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-top: 4px solid #ef4444;
  margin-bottom: 20px;
}

.tracking-error-icon {
  font-size: 3em;
  margin-bottom: 12px;
}

.tracking-error-title {
  color: #333;
  font-size: 1.3em;
  margin-bottom: 8px;
}

.tracking-error-msg {
  color: #666;
  margin-bottom: 24px;
}

/* ── Confetti canvas ── */
#confettiCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
}


/* ============================================================
   GAME PREVIEW PAGE
   ============================================================ */

.preview-outer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Hero ── */
.preview-hero {
  text-align: center;
  padding: 40px 20px 32px;
}

.preview-hero-title {
  color: white;
  font-size: 3em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.preview-hero-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 1.1em;
  margin-bottom: 6px;
}

.preview-hero-person {
  color: rgba(255,255,255,0.65);
  font-size: 0.9em;
}

/* ── Info bar ── */
.preview-info-bar {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 0;
  justify-content: space-around;
  flex-wrap: wrap;
}

.info-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
}

.info-bar-label {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.65);
}

.info-bar-value {
  color: white;
  font-weight: 700;
  font-size: 0.95em;
}

/* ── Preview cards ── */
.preview-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.preview-card-title {
  color: #667eea;
  font-size: 1.2em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* ── Board image ── */
.board-image-wrap {
  position: relative;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f8f8;
}

.board-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.board-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.75em;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
}

/* ── Card decks ── */
.deck-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.deck-tab-btn {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  color: #666;
  font-weight: 600;
  font-size: 0.85em;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.deck-tab-btn:hover { border-color: #667eea; color: #667eea; }

.deck-tab-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.deck-panel { display: none; }
.deck-panel.active { display: block; }

.deck-count {
  font-size: 0.82em;
  color: #888;
  margin-bottom: 12px;
}

/* Horizontal card carousel */
.card-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-carousel::-webkit-scrollbar {
  height: 5px;
}

.card-carousel::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.card-carousel::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }

.carousel-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: zoom-in;
  transition: transform 0.2s;
}

.carousel-card:hover { transform: scale(1.03); }

.carousel-card img {
  width: 100%;
  display: block;
}

.deck-back-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.deck-back-label {
  font-size: 0.8em;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.deck-back-img {
  max-width: 110px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Player pieces ── */
.pawns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.pawn-item {
  text-align: center;
}

.pawn-item img {
  width: 100%;
  max-width: 120px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 6px;
}

.pawn-name {
  font-size: 0.8em;
  color: #555;
  font-weight: 600;
}

/* ── Expandable sections ── */
.expand-section {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.expand-toggle {
  width: 100%;
  padding: 14px 18px;
  background: #fafafa;
  border: none;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: background 0.2s;
}

.expand-toggle:hover { background: #f0f0f0; }

.expand-toggle-arrow {
  font-size: 0.8em;
  color: #667eea;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.expand-toggle[aria-expanded="true"] .expand-toggle-arrow {
  transform: rotate(180deg);
}

.expand-body {
  display: none;
  padding: 18px;
  color: #555;
  line-height: 1.6;
  font-size: 0.93em;
}

.expand-body.open { display: block; }

.expand-body p { margin-bottom: 10px; }
.expand-body p:last-child { margin-bottom: 0; }

.expand-body ul {
  list-style: disc;
  padding-left: 20px;
}

.expand-body li { margin-bottom: 6px; }

/* ── Box art ── */
.box-art-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.box-art-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.box-art-label {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.box-art-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  cursor: zoom-in;
}

/* ── Downloads section ── */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-download-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 1.1em;
  border-radius: 12px;
  width: 100%;
  text-align: center;
}

.download-secondary-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download-secondary {
  flex: 1 1 160px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  color: #555;
  font-weight: 600;
  font-size: 0.88em;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-download-secondary:hover {
  border-color: #667eea;
  color: #667eea;
}

.btn-regenerate-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.btn-regenerate {
  padding: 12px 28px;
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95em;
  transition: all 0.3s;
}

.btn-regenerate:hover {
  background: rgba(102, 126, 234, 0.08);
}

/* ── Lightbox / image modal ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: white;
  font-size: 2.2em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

/* ── Not found / loading states ── */
.preview-loading-card,
.preview-not-found-card,
.preview-error-card {
  background: white;
  border-radius: 16px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.preview-loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f0f0f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: trackSpin 1s linear infinite;
  margin: 0 auto 24px;
}

.preview-error-card { border-top: 4px solid #ef4444; }

.state-icon { font-size: 3em; margin-bottom: 14px; }

.state-title {
  color: #333;
  font-size: 1.3em;
  margin-bottom: 8px;
}

.state-body {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Board layout meta row (v2) ── */
.board-layout-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.board-layout-meta-label {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #999;
}

.board-layout-type-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Zones grid (v1 + v2) ── */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.zone-card {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
}

.zone-badge {
  padding: 8px 14px;
  background: #667eea;
  color: white;
  font-weight: 700;
  font-size: 0.88em;
  letter-spacing: 0.2px;
}

.zone-description {
  padding: 10px 14px;
  font-size: 0.84em;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.zone-property-list {
  padding: 8px 14px 10px 28px;
  margin: 0;
  list-style: disc;
}

.zone-property-list li {
  font-size: 0.82em;
  color: #666;
  padding: 2px 0;
}

/* ── Board spaces list (v2) ── */
.spaces-group {
  margin-bottom: 20px;
}

.spaces-group:last-child {
  margin-bottom: 0;
}

.spaces-group-header {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #667eea;
  padding: 0 0 6px;
  margin-bottom: 8px;
  border-bottom: 2px solid #eef0ff;
}

.spaces-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.space-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f8f8f8;
  flex-wrap: wrap;
}

.space-name {
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
  flex-shrink: 0;
}

.space-type-pill {
  display: inline-block;
  padding: 2px 8px;
  background: #eef0ff;
  color: #667eea;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
}

.space-effect {
  font-size: 0.82em;
  color: #777;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .game-nav {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .create-game-container,
  .tracking-container,
  .preview-outer {
    padding: 0 12px 40px;
  }

  .create-game-title { font-size: 1.8em; }
  .preview-hero-title { font-size: 2em; }
  .tracking-title { font-size: 1.7em; }

  .game-section,
  .tracking-card,
  .preview-card {
    padding: 20px;
  }

  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .how-arrow { transform: rotate(90deg); margin-top: 0; }

  .box-art-pair { grid-template-columns: 1fr; }

  .download-secondary-row { flex-direction: column; }

  .btn-download-secondary { flex: none; }

  .preview-info-bar { gap: 8px; }

  .input-tabs { flex-direction: column; }
  .input-tab + .input-tab { border-left: none; border-top: 2px solid #e0e0e0; }

  .upload-preview { flex-direction: column; align-items: flex-start; }
}
