/* ============================================================
   MUSEUM NUSANTARA - SIMPLE & ELEGANT HERITAGE DESIGN SYSTEM
   Clean, Classic, Museum Exhibition Aesthetic (No Cyberpunk / Sci-Fi Glows)
   ============================================================ */

:root {
  /* Color Palette: Warm Museum Charcoal, Classic Brass Gold, Off-White */
  --bg-main: #0f1115;
  --bg-surface: #17191f;
  --bg-surface-elevated: #1e222b;
  --bg-surface-subtle: #232732;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(197, 160, 89, 0.35);
  --border-gold-active: #c5a059;

  --gold-primary: #c5a059;
  --gold-light: #dfc285;
  --gold-dark: #9e7d3b;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-gold: #d4af37;

  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;

  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);

  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background texture */
.museum-bg-texture {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Base Card Class */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.glass-card-nested {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* ============================================================
   1. MAIN HEADER
   ============================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-emblem {
  font-size: 1.6rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot, .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-success);
}

.player-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.player-avatar-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.player-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.player-edition-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  letter-spacing: 0.5px;
  line-height: 1;
}

.player-edition-pill.bedrock {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.player-rank {
  font-size: 0.7rem;
  color: var(--gold-primary);
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: var(--transition);
}

.btn-icon:hover {
  opacity: 1;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-primary);
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.highlight-gold {
  color: var(--gold-primary);
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* ============================================================
   3. ROADMAP SECTION
   ============================================================ */
.roadmap-section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.roadmap-track-container {
  position: relative;
}

.road-progress-bar-bg {
  position: absolute;
  top: 55px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-medium);
  z-index: 0;
}

.road-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-primary);
  transition: width 0.5s ease;
}

.roadmap-nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.museum-node-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.museum-node-card:hover:not(.locked) {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.museum-node-card.active {
  border-color: var(--border-gold-active);
  background: var(--bg-surface-elevated);
}

.museum-node-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.museum-node-card.locked {
  opacity: 0.65;
  background: #131418;
}

.node-level-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.node-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.node-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.node-badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.museum-node-card.active .node-badge-status {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.museum-node-card.completed .node-badge-status {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.node-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.node-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.node-progress-badges {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  margin-top: auto;
}

.pill-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-node-action {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-node-action:hover:not(:disabled) {
  background: var(--gold-primary);
  color: #000000;
  border-color: var(--gold-primary);
}

.btn-node-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   4. DETAIL & EXPLORATION HUB
   ============================================================ */
.detail-section {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding: 2.25rem;
}

.detail-left {
  display: flex;
  flex-direction: column;
}

.detail-header-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  color: #ffffff;
  line-height: 1.3;
}

.detail-narrative {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.detail-narrative p {
  margin-bottom: 0.85rem;
}

/* Minecraft Mission Checklist Box */
.mc-quest-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: auto;
}

.mc-quest-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mc-icon {
  font-size: 1.35rem;
}

.mc-quest-header h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mc-quest-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.checkpoint-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.checkpoint-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.checkpoint-item.completed {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

.check-icon {
  font-weight: 700;
  color: var(--text-muted);
}

.checkpoint-item.completed .check-icon {
  color: var(--status-success);
}

.mc-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.mc-status-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-yellow { background: var(--status-warning); }
.dot-green { background: var(--status-success); }

.btn-mc-sim {
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mc-sim:hover {
  background: var(--bg-main);
  border-color: var(--border-medium);
}

/* ============================================================
   5. QUIZ PANEL
   ============================================================ */
.detail-right {
  display: flex;
  flex-direction: column;
}

.quiz-panel {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
}

/* Locked View */
.quiz-locked-view {
  text-align: center;
  padding: 1.5rem 1rem;
}

.locked-icon-large {
  font-size: 2.75rem;
  margin-bottom: 0.85rem;
  opacity: 0.8;
}

.locked-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.locked-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.locked-hint-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: left;
}

/* Quiz Start View */
.quiz-start-view {
  text-align: center;
  padding: 1.5rem 1rem;
}

.quiz-badge-ready {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.quiz-intro-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.quiz-intro-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.quiz-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.meta-item {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-start-quiz {
  padding: 0.85rem 1.5rem;
  background: var(--gold-primary);
  color: #000000;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-start-quiz:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Quiz Active View */
.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.question-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.quiz-timer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.question-progress-track {
  height: 3px;
  background: var(--bg-main);
  border-radius: var(--radius-full);
  margin-bottom: 1.35rem;
  overflow: hidden;
}

.question-progress-fill {
  height: 100%;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.question-box {
  margin-bottom: 1.25rem;
}

.question-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.option-btn, .quiz-option-btn {
  padding: 0.85rem 1.1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.option-btn:hover:not(:disabled), .quiz-option-btn:hover:not(:disabled) {
  background: var(--bg-surface-subtle);
  border-color: var(--border-gold);
}

.option-btn.correct, .quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: var(--status-success) !important;
  color: #ffffff !important;
}

.option-btn.correct .option-letter, .quiz-option-btn.correct .option-letter {
  background: var(--status-success);
  color: #ffffff;
  border-color: var(--status-success);
}

.option-btn.wrong, .quiz-option-btn.incorrect {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: var(--status-danger) !important;
  color: #ffffff !important;
}

.option-btn.wrong .option-letter, .quiz-option-btn.incorrect .option-letter {
  background: var(--status-danger);
  color: #ffffff;
  border-color: var(--status-danger);
}

.explanation-box {
  background: var(--bg-main);
  border-left: 3px solid var(--gold-primary);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}

.explanation-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.explanation-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quiz-nav-footer {
  margin-top: auto;
}

.btn-quiz-nav {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--gold-primary);
  color: #000000;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quiz-nav:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-quiz-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Quiz Result View */
.quiz-result-view {
  text-align: center;
  padding: 1.5rem 1rem;
}

.result-icon-box {
  font-size: 2.75rem;
  margin-bottom: 0.85rem;
}

.result-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.result-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.score-circle-container {
  background: var(--bg-main);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: inline-block;
  min-width: 160px;
  margin-bottom: 1.75rem;
}

.score-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.score-max {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 0.35rem;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-primary-action {
  padding: 0.85rem 1.25rem;
  background: var(--gold-primary);
  color: #000000;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-action:hover {
  background: var(--gold-light);
}

.btn-secondary-action {
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-action:hover {
  background: var(--bg-main);
  color: var(--text-primary);
}

/* ============================================================
   6. FINAL REWARD CERTIFICATE
   ============================================================ */
.final-reward-section {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.certificate-wrapper {
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--gold-primary);
  background: #15171d;
}

.cert-border-ornament {
  border: 1px solid var(--border-gold);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
}

.cert-header {
  margin-bottom: 1.25rem;
}

.cert-seal {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
}

.cert-subtitle {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.cert-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cert-player-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--gold-primary);
}

.cert-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.cert-badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge-cert {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
}

.cert-footer {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  margin-top: 1.5rem;
}

.cert-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sign-line {
  width: 140px;
  height: 1px;
  background: var(--border-medium);
  margin-bottom: 0.35rem;
}

.cert-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn-download-cert {
  padding: 0.75rem 1.5rem;
  background: var(--gold-primary);
  color: #000000;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-cert:hover {
  background: var(--gold-light);
}

.btn-reset-expedition {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset-expedition:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

/* ============================================================
   7. MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.modal-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body h4 {
  color: var(--gold-light);
  font-size: 0.92rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body code {
  background: var(--bg-main);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-size: 0.82rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.input-group input:focus {
  border-color: var(--gold-primary);
}

.btn-save-username {
  padding: 0.75rem 1.25rem;
  background: var(--gold-primary);
  color: #000000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save-username:hover {
  background: var(--gold-light);
}

/* ============================================================
   LOGIN GATEWAY MODAL STYLES
   ============================================================ */
.login-modal-card {
  max-width: 480px;
  background: #14161c;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.login-modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.login-header-text {
  display: flex;
  flex-direction: column;
}

.login-logo-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.login-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.login-instructions {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.form-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Edition Selector */
.edition-selector-container {
  margin-bottom: 1.25rem;
}

.edition-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-main);
  padding: 0.35rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.edition-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.edition-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.edition-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--border-gold);
  color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.edition-tab-btn .tab-icon {
  font-size: 1.05rem;
}

/* Nickname Input & Prefix */
.login-input-group {
  margin-bottom: 1.25rem;
}

.nickname-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.nickname-input-wrapper:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.15);
}

.bedrock-prefix-badge {
  padding: 0.75rem 0.65rem 0.75rem 0.85rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-primary);
  background: var(--bg-surface-elevated);
  border-right: 1px solid var(--border-subtle);
  user-select: none;
}

.nickname-input-wrapper input {
  flex: 1;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  font-family: inherit;
}

.input-helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.input-helper-text strong {
  color: var(--text-secondary);
}

/* Alert / Status container */
.login-alert-container {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #fca5a5;
  line-height: 1.4;
}

.login-alert-container.info {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.login-alert-container.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--gold-primary);
  color: #000000;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-login-submit:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

.btn-login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-modal-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.main-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  background: var(--bg-main);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* Utility Helper */
.hidden {
  display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .roadmap-nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .road-progress-bar-bg {
    display: none;
  }
  .detail-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-nodes-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
