/* ==========================================================================
   PlayLab (플레이랩) — 감각·두뇌·생존 종합 놀이터 디자인 시스템
   ========================================================================== */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f3fa;
  --text: #161a2d;
  --text-sub: #5b627a;
  --text-muted: #8a92aa;
  --border: #e5e8f2;

  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --coral: #ff5a5f;
  --coral-soft: #fff1f2;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --pink: #ec4899;
  --pink-soft: #fdf2f8;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(22, 26, 45, 0.05);
  --shadow-md: 0 10px 30px rgba(22, 26, 45, 0.08);
  --shadow-glow: 0 12px 32px rgba(79, 70, 229, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, a {
  font-family: inherit;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 232, 242, 0.8);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.15;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-pill:hover {
  border-color: #c7d2fe;
  color: var(--primary);
}

.icon-pill:active {
  transform: scale(0.95);
}

.icon-pill.active {
  background: var(--primary-soft);
  border-color: #c7d2fe;
  color: var(--primary);
}

/* Main Container */
.main-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}

/* Hero Spotlight Card */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 52%, #6366f1 100%);
  color: #ffffff;
  padding: 28px 24px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 22px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-pill {
  background: rgba(15, 23, 42, 0.22);
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-hero {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  font-size: 16px;
  padding: 15px 26px;
}

.btn-hero:hover {
  background: #f8fafc;
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.26);
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-block {
  width: 100%;
}

/* Best Record Strip */
.best-record-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.best-record-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.best-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--amber-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.best-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.best-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.best-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-chip {
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

/* Section Heading */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 28px 0 14px;
}

.section-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Individual Mini-game Quick Launch Grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
}

.quick-card:active {
  transform: scale(0.98);
}

.quick-emoji {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.quick-emoji.eye { background: #eef2ff; }
.quick-emoji.reflex { background: #ecfdf5; }
.quick-emoji.memory { background: #fff1f2; }

.quick-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.quick-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
}

.quick-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* Hub Roadmap Grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.hub-card.is-live {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.hub-card.is-live:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.hub-card.is-soon {
  opacity: 0.86;
}

.hub-order-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--surface-soft);
}

.hub-card.accent-indigo .hub-order-icon { background: var(--primary-soft); }
.hub-card.accent-coral .hub-order-icon { background: var(--coral-soft); }
.hub-card.accent-pink .hub-order-icon { background: var(--pink-soft); }
.hub-card.accent-emerald .hub-order-icon { background: var(--emerald-soft); }
.hub-card.accent-amber .hub-order-icon { background: var(--amber-soft); }

.hub-body {
  flex: 1;
  min-width: 0;
}

.hub-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.hub-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.hub-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-sub);
}

.hub-card.is-live .hub-status-pill {
  background: var(--primary);
  color: #ffffff;
}

.hub-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.hub-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
}

/* ==========================================================================
   GAME STAGE (모바일 앱 집중 모드, max-width 500px)
   ========================================================================== */
.game-shell {
  max-width: 500px;
  margin: 0 auto;
}

.stage-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
}

.course-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.step-dot.done {
  background: var(--emerald-soft);
  border-color: #a7f3d0;
  color: #047857;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
}

.stage-header {
  text-align: center;
  margin-bottom: 16px;
}

.stage-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.stage-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stage-hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

/* HUD Bar */
.hud-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.hud-box {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.hud-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.hud-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hud-value.danger {
  color: var(--coral);
}

/* Timer Progress */
.timer-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
  margin-bottom: 16px;
}

.timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  transition: width 0.1s linear, background 0.2s ease;
}

.timer-fill.low {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

/* Color Vision Grid */
.color-board {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f3fa;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 8px;
  user-select: none;
}

.color-tile {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.08s ease;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.color-tile:active {
  transform: scale(0.93);
}

.color-board.shake {
  animation: shakeX 0.28s ease;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-5px); }
}

/* Reaction Pad */
.reaction-pad {
  width: 100%;
  min-height: 290px;
  border-radius: 20px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  cursor: pointer;
  color: #ffffff;
  text-align: center;
  user-select: none;
  transition: background 0.12s ease, transform 0.08s ease;
}

.reaction-pad:active {
  transform: scale(0.99);
}

.reaction-pad.state-ready {
  background: linear-gradient(135deg, #3730a3, #4f46e5);
}

.reaction-pad.state-wait {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.reaction-pad.state-go {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.22);
}

.reaction-pad.state-early {
  background: linear-gradient(135deg, #dc2626, #f43f5e);
}

.reaction-pad.state-result {
  background: linear-gradient(135deg, #0284c7, #3b82f6);
}

.reaction-icon {
  font-size: 46px;
  line-height: 1;
}

.reaction-big {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.reaction-sub {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 600;
}

.trial-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.trial-chip {
  flex: 1;
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.trial-chip.filled {
  background: var(--emerald-soft);
  color: #047857;
}

/* Memory Flash Grid */
.memory-board {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f3fa;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 9px;
  user-select: none;
}

.memory-cell {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.14s ease, border-color 0.14s ease;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: transparent;
}

.memory-cell:active {
  transform: scale(0.94);
}

.memory-cell.lit {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: #4f46e5;
  color: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.34);
}

.memory-cell.correct {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #059669;
  color: #ffffff;
}

.memory-cell.wrong {
  background: linear-gradient(135deg, #dc2626, #f43f5e);
  border-color: #dc2626;
  color: #ffffff;
}

.memory-status-banner {
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.memory-status-banner.go {
  background: var(--emerald-soft);
  color: #047857;
}

.memory-status-banner.err {
  background: var(--coral-soft);
  color: #be123c;
}

/* Round Transition Card */
.transition-box {
  text-align: center;
  padding: 22px 10px;
}

.transition-emoji {
  font-size: 54px;
  margin-bottom: 10px;
  display: block;
}

.transition-score {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  margin: 10px 0 14px;
}

/* ==========================================================================
   RESULT VIEW & CANVAS CARD
   ========================================================================== */
.result-hero {
  text-align: center;
  padding: 8px 0 18px;
}

.result-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-soft);
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.result-age-big {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #312e81, #4f46e5, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 4px 0 6px;
}

.result-persona {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
}

.result-comment {
  margin: 0 auto;
  max-width: 380px;
  font-size: 14px;
  color: var(--text-sub);
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}

.stat-item {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 13px 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

.stat-detail {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.stat-track {
  height: 9px;
  border-radius: 999px;
  background: #dfe4f2;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-fill.eye { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.stat-fill.reflex { background: linear-gradient(90deg, #059669, #34d399); }
.stat-fill.memory { background: linear-gradient(90deg, #e11d48, #fb7185); }

.card-preview-wrap {
  background: #f1f3fa;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.card-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#resultCanvas {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(22, 26, 45, 0.14);
  display: block;
  margin: 0 auto;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   SEO GUIDE & FAQ (애드센스 콘텐츠 품질 확보)
   ========================================================================== */
.guide-section {
  margin-top: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.guide-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.guide-section h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.guide-section p, .guide-section li {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.guide-box {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 16px;
}

.guide-box strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fafbfe;
}

.faq-item summary {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

.faq-item p {
  margin: 8px 0 0;
}

/* Ad Slot Container (Hidden when placeholder is off & no ad loaded) */
.ad-slot-wrap {
  margin: 20px 0;
  text-align: center;
}

.ad-slot-wrap:empty {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 18px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #161a2d;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Static legal page layout */
.legal-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.legal-card p, .legal-card li {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 720px) {
  .quick-grid,
  .hub-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 24px 18px;
  }

  .btn-hero {
    width: 100%;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .result-actions-row {
    grid-template-columns: 1fr;
  }
}
