:root {
  --bg-deep: #060d18;
  --bg-card: rgba(15, 27, 46, 0.82);
  --bg-card-hover: rgba(23, 39, 66, 0.92);
  --bg-elevated: #13233b;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.45);
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-sky: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.65);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Subtle atmospheric background orbs & cartographic grid */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  top: -160px;
  left: -120px;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
  bottom: -150px;
  right: -100px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 24, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.brand-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4));
}

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

.brand-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent-sky);
  font-size: 0.98rem;
}

.streak-pill .stat-value {
  color: var(--accent-amber);
}

.best-pill .stat-value {
  color: var(--accent-emerald);
}

/* Main container & views */
.app-main {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3.5rem;
}

.view {
  display: none;
  animation: fadeIn 0.28s ease-out;
}

.view.active-view {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* Hero Banner */
.hero-banner {
  text-align: center;
  max-width: 720px;
  margin: 0.25rem auto 1.75rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero-banner h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.hero-banner p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Settings Filter Bar */
.settings-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.35rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.setting-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.setting-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pill-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.pill-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* 4 Core Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: 0 24px 48px -12px rgba(2, 132, 199, 0.3);
  outline: none;
}

.mode-card-featured {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(160deg, rgba(15, 27, 46, 0.9), rgba(12, 42, 74, 0.78));
}

.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.mode-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.icon-country {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.icon-map {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
}

.icon-attraction {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.mode-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
}

.tag-interactive {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.mode-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.mode-card-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.85rem;
}

.play-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-sky);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease;
}

.mode-card:hover .play-cta {
  transform: translateX(4px);
}

/* Medley Banner */
.medley-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.medley-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.medley-badge {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.medley-info h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.medley-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.4);
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.68rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 999px;
}

/* ==================== QUIZ VIEW ==================== */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.quiz-meta-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mode-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.region-badge {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.question-counter {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.35rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.question-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Prompt Card */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.prompt-card.compact-map-prompt {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
  flex-wrap: wrap;
}

.prompt-flag-badge {
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: inline-block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.prompt-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sky);
  margin-bottom: 0.35rem;
}

.prompt-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.prompt-clue {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.96rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
}

/* Attraction Showcase inside Prompt Card */
.attraction-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}

.attraction-postcard {
  width: 100%;
  height: 195px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  position: relative;
}

.attraction-postcard svg {
  width: 100%;
  height: 100%;
  display: block;
}

.attraction-meta-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.attr-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.attr-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

/* ==================== INTERACTIVE WORLD MAP ==================== */
.map-stage-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: rgba(10, 19, 34, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.map-region-jumps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.map-jump-btn,
.map-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-jump-btn:hover,
.map-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.map-jump-btn.active,
.map-ctrl-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-sky);
  color: #7dd3fc;
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-viewport {
  position: relative;
  width: 100%;
  height: 440px;
  background: #071526;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.map-viewport.dragging {
  cursor: grabbing;
}

#worldMapSvg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-graticules line {
  stroke: rgba(148, 163, 184, 0.08);
  stroke-width: 0.6;
  stroke-dasharray: 3 3;
}

.map-graticules line.equator-line {
  stroke: rgba(56, 189, 248, 0.18);
  stroke-width: 0.9;
  stroke-dasharray: none;
}

/* Base non-quiz landmass polygons */
.base-land-path {
  fill: #162a45;
  stroke: #0b192c;
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}

/* Clickable quiz country polygons */
.country-path {
  fill: #1e3a5f;
  stroke: #38bdf8;
  stroke-opacity: 0.45;
  stroke-width: 0.85;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.15s ease, stroke-opacity 0.15s ease;
}

.country-path:hover {
  fill: #0284c7;
  stroke: #e0f2fe;
  stroke-opacity: 1;
  stroke-width: 1.3;
}

.country-path.correct-country {
  fill: #10b981 !important;
  stroke: #ecfdf5 !important;
  stroke-width: 1.8 !important;
  stroke-opacity: 1 !important;
}

.country-path.wrong-country {
  fill: #f43f5e !important;
  stroke: #ffe4e6 !important;
  stroke-width: 1.6 !important;
  stroke-opacity: 1 !important;
}

/* Interactive Target Pins for countries (especially helpful for smaller European/Asian countries) */
.country-pin-group {
  cursor: pointer;
}

.country-pin-dot {
  fill: #38bdf8;
  stroke: #071526;
  stroke-width: 1.2;
  transition: r 0.15s ease, fill 0.15s ease;
}

.country-pin-group:hover .country-pin-dot {
  fill: #f59e0b;
  r: 5.5;
}

.country-pin-dot.pin-correct {
  fill: #10b981 !important;
  stroke: #ffffff !important;
}

.country-pin-dot.pin-wrong {
  fill: #f43f5e !important;
  stroke: #ffffff !important;
}

.distance-arc {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}

.map-label-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  fill: #ffffff;
  paint-order: stroke;
  stroke: #060d18;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.map-instruction-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 13, 24, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

/* ==================== MULTIPLE CHOICE OPTIONS GRID ==================== */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.option-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4);
}

.option-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--accent-sky);
  transform: translateY(-2px);
}

.option-btn:disabled {
  cursor: default;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.option-key {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-flag {
  font-size: 1.45rem;
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  color: #ecfdf5;
}

.option-btn.correct .option-key {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #06281e;
}

.option-btn.wrong {
  background: rgba(244, 63, 94, 0.18);
  border-color: var(--accent-rose);
  color: #ffe4e6;
}

.option-btn.wrong .option-key {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #ffffff;
}

/* ==================== FEEDBACK PANEL ==================== */
.feedback-panel {
  background: linear-gradient(135deg, rgba(15, 27, 46, 0.96), rgba(19, 35, 59, 0.96));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.22s ease-out;
}

.feedback-panel.feedback-correct {
  border-color: rgba(16, 185, 129, 0.55);
}

.feedback-panel.feedback-wrong {
  border-color: rgba(244, 63, 94, 0.55);
}

.feedback-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feedback-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feedback-text h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.feedback-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.feedback-fact {
  font-size: 0.85rem;
  color: #bae6fd;
  background: rgba(2, 132, 199, 0.14);
  border-left: 3px solid var(--accent-sky);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
}

.btn-next {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.kbd-hint {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ==================== SUMMARY VIEW ==================== */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.summary-rank-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.summary-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.summary-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.65rem;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.summary-stat-box {
  background: rgba(10, 19, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.summary-stat-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-sky);
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.review-section {
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.review-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.review-list {
  display: grid;
  gap: 0.65rem;
}

.review-item {
  background: rgba(10, 19, 34, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.review-item.review-ok {
  border-left: 4px solid var(--accent-emerald);
}

.review-item.review-miss {
  border-left: 4px solid var(--accent-rose);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .attraction-showcase {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .feedback-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .map-viewport {
    height: 350px;
  }
}


/* ==================== NAVIGATION, STUDY GUIDE, AD SLOTS & FOOTER ==================== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.14);
}

/* Policy-Compliant AdSense Slot Container (Separated from interactive controls) */
.ad-slot-wrapper {
  margin: 2.25rem auto;
  max-width: 970px;
  background: rgba(10, 19, 34, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem 1.1rem;
  text-align: center;
}

.ad-slot-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.ad-slot-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Educational Study Guide Section on Home & Study Guide Page */
.study-guide-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 680px;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.study-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.study-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.study-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.study-region-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-sky);
}

.study-meta {
  font-size: 0.86rem;
  color: #e2e8f0;
  font-weight: 600;
}

.study-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.study-fact {
  font-size: 0.82rem;
  color: #bae6fd;
  background: rgba(2, 132, 199, 0.1);
  border-left: 2px solid var(--accent-sky);
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  margin-top: auto;
}

/* Content / Legal Pages (About, Privacy, Terms, Contact) */
.content-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.content-page-card h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.content-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.content-page-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  color: var(--accent-sky);
  margin: 1.75rem 0 0.65rem;
}

.content-page-card p,
.content-page-card li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.content-page-card ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-page-card a {
  color: var(--accent-sky);
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(6, 13, 24, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-sky);
}

/* Site Footer */
.app-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 13, 24, 0.9);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-group {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-sky);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ==================== FACEBOOK COMMUNITY ("THE WORLD JOURNEY") ==================== */
.fb-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(24, 119, 242, 0.16);
  border: 1px solid rgba(24, 119, 242, 0.45);
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.fb-nav-pill:hover {
  background: #1877f2;
  border-color: #60a5fa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.fb-community-card {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.16), rgba(15, 27, 46, 0.92));
  border: 1px solid rgba(24, 119, 242, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.fb-community-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fb-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1877f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.4);
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff !important;
  text-decoration: none !important;
  border: 1px solid rgba(147, 197, 253, 0.45);
  padding: 0.68rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px -6px rgba(24, 119, 242, 0.55);
}

.btn-facebook:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
