/* ==========================================================================
   MAKEITGUESS — Custom Icon-Matched Theme (Mint / Emerald / Spring-Lime)
   Vercel Design.md Precision, dynamic visualizer, micro-animations & audio FX
   ========================================================================== */

:root {
  /* Core Surface Colors (Deep Emerald / Obsidian Matrix) */
  --bg-black: #020b06;
  --bg-surface-1: #05140b;
  --bg-surface-2: #091c10;
  --bg-surface-3: #0e2717;
  --bg-surface-card: rgba(9, 28, 16, 0.75);
  --bg-surface-glass: rgba(14, 39, 23, 0.45);
  --bg-input: #06150c;

  /* Borders & Dividers */
  --border-subtle: rgba(74, 222, 128, 0.12);
  --border-medium: rgba(74, 222, 128, 0.22);
  --border-bright: rgba(110, 231, 183, 0.45);
  --border-focus: #4ade80;

  /* Text & Foreground */
  --text-primary: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  --text-dim: #059669;

  /* Brand Accents Matching icon.png (Mint / Emerald / Lime Gradient) */
  --brand-white: #ffffff;
  --brand-mint: #4ade80;
  --brand-emerald: #22c55e;
  --brand-lime: #84cc16;
  --brand-cyan: #2dd4bf;
  --brand-glow: rgba(74, 222, 128, 0.35);
  --brand-gradient: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 30%, #34d399 60%, #10b981 100%);

  /* Semantic Status Colors */
  --accent-blue: #38bdf8;
  --accent-purple: #c084fc;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  --accent-rose-glow: rgba(251, 113, 133, 0.25);

  /* Visualizer Search Space */
  --zone-low: rgba(244, 63, 94, 0.28);
  --zone-high: rgba(244, 63, 94, 0.28);
  --zone-active: #22c55e;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --radius-xs: 5px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Shadows & Neon Radiance */
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
  --shadow-card: 0 10px 36px -4px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-subtle);
  --shadow-glow-mint: 0 0 35px -5px rgba(74, 222, 128, 0.38);
  --shadow-glow-emerald: 0 0 40px -4px rgba(34, 197, 94, 0.45);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-smooth);
  --transition-normal: 250ms var(--ease-smooth);
  --transition-slow: 400ms var(--ease-smooth);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar across the entire website */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 222, 128, 0.4) #020b06;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #020b06;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.3);
  border-radius: 4px;
  border: 2px solid #020b06;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-black);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 65%);
  overflow-x: hidden;
}

/* Utility Classes */
.font-mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* Ambient Lighting & Thematic Glow Blobs */
.glow-bg {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.55;
  transition: opacity 1s ease;
}

.glow-bg-1 {
  width: 580px;
  height: 580px;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, rgba(34, 197, 94, 0.25) 50%, transparent 80%);
}

.glow-bg-2 {
  width: 650px;
  height: 450px;
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(132, 204, 22, 0.15) 60%, transparent 80%);
}

.grid-overlay {
  position: fixed;
  top: -88px;
  left: -88px;
  width: calc(100vw + 176px);
  height: calc(100vh + 176px);
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(74, 222, 128, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 222, 128, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.95) 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.95) 0%, transparent 85%);
  z-index: 0;
  animation: gridDriftDiagonal 4s linear infinite;
  will-change: transform;
}

@keyframes gridDriftDiagonal {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(44px, 44px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-overlay {
    animation: none;
  }
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(3, 15, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.55));
  border: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.app-icon:hover {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 16px rgba(74, 222, 128, 0.85));
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brand-white);
}

.logo-highlight {
  background: linear-gradient(135deg, #a7f3d0 0%, #4ade80 40%, #86efac 80%, #bef264 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.icon-btn {
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.icon-btn:hover {
  color: var(--brand-white);
  background: var(--bg-surface-3);
  border-color: var(--border-bright);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.25);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   Main Layout & Panels
   ========================================================================== */
.app-main {
  flex: 1;
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
}

.view-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: fadeIn 0.4s var(--ease-smooth) forwards;
}

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

/* ==========================================================================
   Card System (Frosted Mint Glassmorphism)
   ========================================================================== */
.card {
  position: relative;
  background: var(--bg-surface-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.9), 0 0 20px -2px rgba(74, 222, 128, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-white);
  letter-spacing: -0.01em;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--border-medium);
  color: #86efac;
}

/* ==========================================================================
   Hero Section (Setup Screen)
   ========================================================================== */
.hero-section {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #86efac;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(74, 222, 128, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-mint);
  box-shadow: 0 0 10px var(--brand-mint);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--brand-white);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #d1fae5 45%, #6ee7b7 75%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: #d1fae5;
  line-height: 1.6;
  max-width: 580px;
  opacity: 0.9;
}

/* ==========================================================================
   Preset Range Grid
   ========================================================================== */
.range-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.preset-pill {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.preset-pill:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.4);
}

.preset-pill.active {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 24px -4px rgba(74, 222, 128, 0.35);
}

.preset-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.preset-pill.active .preset-name {
  color: #4ade80;
}

.preset-range {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-white);
  letter-spacing: -0.02em;
}

.preset-steps {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a7f3d0;
}

/* Custom Range Inputs */
.custom-range-toggle-wrapper {
  margin-bottom: 1.75rem;
}

.text-link-btn {
  background: none;
  border: none;
  color: #86efac;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.text-link-btn:hover {
  color: var(--brand-white);
}

.custom-inputs-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  animation: fadeIn 0.25s var(--ease-smooth);
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.input-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--brand-white);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input:focus {
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
}

.range-separator {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
  font-weight: 600;
}

/* Strategy Section */
.strategy-section {
  margin-bottom: 1.75rem;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.strategy-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.strategy-option {
  cursor: pointer;
}

.strategy-option input[type="radio"] {
  display: none;
}

.strategy-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.strategy-option:hover .strategy-card {
  background: var(--bg-surface-3);
  border-color: var(--border-medium);
}

.strategy-option input[type="radio"]:checked + .strategy-card {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow: 0 0 24px -4px rgba(74, 222, 128, 0.35);
}

.strat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-white);
}

.strat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tag-optimal {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.tag-oracle {
  background: rgba(251, 191, 36, 0.18);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.strat-desc {
  font-size: 0.8rem;
  color: #d1fae5;
  opacity: 0.85;
  line-height: 1.45;
}

/* Ready Banner */
.ready-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.ready-icon-wrap {
  font-size: 1.4rem;
}

.ready-text {
  font-size: 0.9rem;
  color: #d1fae5;
  line-height: 1.4;
}

.ready-text strong {
  color: #86efac;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-large {
  width: 100%;
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #d1fae5 50%, #86efac 100%);
  color: #022c15;
  border-color: #86efac;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 28px -4px rgba(74, 222, 128, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #a7f3d0 60%, #4ade80 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px -4px rgba(74, 222, 128, 0.7);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.2);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Gameplay Screen Components
   ========================================================================== */
.game-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(14px);
}

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-white);
}

.meta-value.highlight-val {
  color: #4ade80;
}

.meta-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6ee7b7;
  opacity: 0.7;
}

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

.btn-ghost-sm:hover {
  color: var(--accent-rose);
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
}

/* Thinking banner */
.thinking-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: var(--radius-md);
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(74, 222, 128, 0.15); }
  100% { box-shadow: 0 0 28px rgba(74, 222, 128, 0.4); }
}

.spinner-ring {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(74, 222, 128, 0.25);
  border-top-color: #4ade80;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.thinking-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #86efac;
}

.matrix-digits {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #4ade80;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* Hero Guess Card */
.guess-card {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  border-color: rgba(74, 222, 128, 0.22);
}

.card-glow-layer {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 220px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.guess-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.search-step-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid var(--border-subtle);
  color: #a7f3d0;
}

.guess-centerpiece {
  margin-bottom: 1.75rem;
}

.guess-lead {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: #a7f3d0;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.guess-number-container {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.guess-number {
  font-family: var(--font-mono);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-white);
  letter-spacing: -0.05em;
  text-shadow: 0 0 45px rgba(74, 222, 128, 0.35);
  transition: transform 0.2s var(--ease-smooth);
}

.question-mark {
  font-size: 3.5rem;
  font-weight: 800;
  color: #4ade80;
  line-height: 1;
}

.animate-pop {
  animation: popIn 0.35s var(--ease-smooth);
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0.4; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* Range & Remaining info */
.possible-range-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.info-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-white);
}

/* User Action Buttons Grid */
.feedback-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.feedback-btn {
  position: relative;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  min-height: 110px;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-3);
  transition: all var(--transition-fast);
}

.btn-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-subtitle {
  font-size: 0.72rem;
  color: #a7f3d0;
  font-weight: 600;
  opacity: 0.8;
}

.key-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-weight: 600;
}

/* Button Variants */
.btn-action-low {
  border-color: rgba(74, 222, 128, 0.28);
}
.btn-action-low:hover {
  background: rgba(74, 222, 128, 0.14);
  border-color: #4ade80;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px -4px rgba(74, 222, 128, 0.4);
}
.btn-action-low:hover .btn-icon {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.6);
}

.btn-action-correct {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(74, 222, 128, 0.45);
}
.btn-action-correct:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: #86efac;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px -4px rgba(74, 222, 128, 0.55);
}
.btn-action-correct .btn-icon {
  background: rgba(74, 222, 128, 0.25);
  color: #4ade80;
}
.btn-action-correct:hover .btn-icon {
  background: #4ade80;
  color: #022c15;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.8);
}

.pulse-bounce {
  animation: floatBounce 2s infinite ease-in-out;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.btn-action-high:hover {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px -4px rgba(251, 113, 133, 0.35);
}
.btn-action-high:hover .btn-icon {
  background: #fb7185;
  color: #ffffff;
}

.feedback-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Visual Range Deduction Bar (Search Ruler)
   ========================================================================== */
.visualizer-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-color: rgba(74, 222, 128, 0.18);
}

.viz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.viz-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.viz-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-white);
}

.viz-subtitle {
  font-size: 0.78rem;
  color: #a7f3d0;
  opacity: 0.8;
}

.viz-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #a7f3d0;
  font-weight: 600;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.color-eliminated-low, .color-eliminated-high { background: rgba(244, 63, 94, 0.5); }
.color-active { background: #22c55e; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.color-guess { background: #ffffff; border-radius: 50%; box-shadow: 0 0 6px #ffffff; }

/* Ruler Track Container */
.ruler-container {
  padding: 1rem 0.5rem 0.5rem;
}

.ruler-bar-track {
  position: relative;
  height: 26px;
  background: #06190e;
  border-radius: var(--radius-full);
  overflow: visible;
  border: 1px solid var(--border-medium);
}

.range-slice {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: all 0.4s var(--ease-smooth);
}

.slice-discarded-left {
  left: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(244, 63, 94, 0.28),
    rgba(244, 63, 94, 0.28) 6px,
    rgba(244, 63, 94, 0.12) 6px,
    rgba(244, 63, 94, 0.12) 12px
  );
  border-top-left-radius: var(--radius-full);
  border-bottom-left-radius: var(--radius-full);
}

.slice-discarded-right {
  right: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(244, 63, 94, 0.28),
    rgba(244, 63, 94, 0.28) 6px,
    rgba(244, 63, 94, 0.12) 6px,
    rgba(244, 63, 94, 0.12) 12px
  );
  border-top-right-radius: var(--radius-full);
  border-bottom-right-radius: var(--radius-full);
}

.slice-active {
  background: linear-gradient(90deg, #10b981 0%, #4ade80 50%, #86efac 100%);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.55);
  border-radius: var(--radius-xs);
  z-index: 2;
}

.active-pulse-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: sweep 2.5s infinite linear;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Guess Markers Layer */
.markers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.guess-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  transition: all 0.3s var(--ease-smooth);
}

.guess-marker.marker-low { background: #fb7185; }
.guess-marker.marker-high { background: #fb7185; }
.guess-marker.marker-correct { background: #4ade80; transform: translate(-50%, -50%) scale(1.4); box-shadow: 0 0 12px #4ade80; }

/* Current Target Pointer */
.current-pointer {
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: left 0.4s var(--ease-smooth);
  pointer-events: none;
}

.pointer-pin {
  width: 15px;
  height: 15px;
  background: #ffffff;
  border-radius: 50%;
  border: 3px solid #22c55e;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.9);
}

.pointer-label {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #4ade80;
  background: #061f10;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.ruler-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: #6ee7b7;
  font-weight: 600;
}

/* Deduction Path Chips */
.tree-trail-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trail-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
}

.trail-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.trail-chip .tag-arrow {
  color: var(--text-dim);
}

.trail-chip.chip-low { border-color: rgba(74, 222, 128, 0.4); color: #86efac; }
.trail-chip.chip-high { border-color: rgba(251, 113, 133, 0.4); color: #fda4af; }
.trail-chip.chip-correct { border-color: rgba(74, 222, 128, 0.6); background: rgba(74, 222, 128, 0.18); color: #86efac; font-weight: 800; }

/* ==========================================================================
   Cognitive Stream / AI Thought Terminal
   ========================================================================== */
.terminal-card {
  padding: 0;
  background: #030d07;
  border-color: rgba(74, 222, 128, 0.18);
}

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

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #fb7185; opacity: 0.85; }
.dot-yellow { background: #fbbf24; opacity: 0.85; }
.dot-green { background: #4ade80; opacity: 0.85; box-shadow: 0 0 6px #4ade80; }

.terminal-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.02em;
}

.terminal-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.terminal-action-btn:hover {
  color: var(--text-secondary);
}

.terminal-body {
  height: 140px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #a7f3d0;
}

.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--bg-surface-3);
  border-radius: 3px;
}

.log-entry {
  display: flex;
  gap: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.log-time {
  color: var(--text-dim);
  flex-shrink: 0;
}

.log-text {
  color: #d1fae5;
}

.log-text.log-info { color: #86efac; }
.log-text.log-success { color: #4ade80; font-weight: 600; }
.log-text.log-warn { color: #fbbf24; }
.log-text.log-math { color: #6ee7b7; }

/* ==========================================================================
   Victory / Result Screen
   ========================================================================== */
.victory-card {
  text-align: center;
  padding: 3.5rem 2rem 2.75rem;
  max-width: 720px;
  margin: 1.75rem auto 0;
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 35px rgba(74, 222, 128, 0.25);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.victory-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.3);
}

.victory-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-white);
  margin-bottom: 0.5rem;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #ffffff 0%, #86efac 40%, #4ade80 70%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.4rem;
  filter: drop-shadow(0 0 25px rgba(74, 222, 128, 0.45));
}

.victory-subtitle {
  font-size: 1.05rem;
  color: #a7f3d0;
  margin-bottom: 2rem;
}

/* Stats Dashboard Grid */
.stats-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-white);
}

.highlight-gold {
  color: #4ade80;
}

.stat-sub {
  font-size: 0.72rem;
  color: #6ee7b7;
  opacity: 0.75;
}

/* History Trail in Victory */
.victory-history-section {
  text-align: left;
  margin-bottom: 2rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.history-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: var(--bg-surface-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.history-step { color: var(--text-dim); font-weight: 600; }
.history-guess { color: var(--brand-white); font-weight: 700; }
.history-range { color: #a7f3d0; opacity: 0.85; }
.history-feedback { font-weight: 700; }
.feedback-low { color: #86efac; }
.feedback-high { color: #fb7185; }
.feedback-correct { color: #4ade80; }

.victory-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 11, 6, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: #081d11;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-card);
  animation: modalPop 0.25s var(--ease-smooth);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.animate-shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.modal-icon-warning {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: #a7f3d0;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.icon-btn-close {
  background: none;
  border: none;
  color: #6ee7b7;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.icon-btn-close:hover {
  color: var(--brand-white);
}

.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.shortcut-desc {
  font-size: 0.85rem;
  color: #a7f3d0;
  font-weight: 500;
}

.keys-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  color: #86efac;
}

.or {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0a2415;
  border: 1px solid var(--border-bright);
  color: var(--brand-white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(74, 222, 128, 0.3);
  z-index: 300;
  animation: toastFade 0.3s ease;
}

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Math Notation & Typography
   ========================================================================== */
.math-notation {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.88em;
  font-weight: 700;
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
  padding: 0.12em 0.45em;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(74, 222, 128, 0.3);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  white-space: nowrap;
}

.math-notation i {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 700;
  color: #bbf7d0;
  margin-right: 1px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: rgba(2, 11, 6, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #a7f3d0;
}

.footer-sep {
  opacity: 0.35;
  color: var(--text-dim);
}

.footer-author {
  font-weight: 600;
  color: #86efac;
}

.footer-sponsor-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}

.sponsor-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sponsor-github {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.sponsor-github:hover {
  background: rgba(236, 72, 153, 0.22);
  color: #fdf2f8;
  border-color: #ec4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
  transform: translateY(-1px);
}

.sponsor-bmac {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.sponsor-bmac:hover {
  background: rgba(251, 191, 36, 0.22);
  color: #fffbeb;
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

.sponsor-nowpayments {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.sponsor-nowpayments:hover {
  background: rgba(45, 212, 191, 0.22);
  color: #ccfbf1;
  border-color: #2dd4bf;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.4);
  transform: translateY(-1px);
}

.footer-copyright {
  font-size: 0.75rem;
  color: #6ee7b7;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.25);
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.2rem;
  letter-spacing: 0.02em;
}

.footer-link {
  color: #86efac;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted rgba(74, 222, 128, 0.4);
  transition: all var(--transition-fast);
  padding-bottom: 1px;
}

.footer-link:hover {
  color: #ffffff;
  border-bottom-color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
  .app-header {
    padding: 0.85rem 1rem;
  }
  .app-main {
    padding: 1.5rem 1rem 3rem;
  }
  .hero-title {
    font-size: 2.05rem;
  }
  .guess-number {
    font-size: 3.8rem;
  }
  .question-mark {
    font-size: 2.5rem;
  }
  .feedback-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .feedback-btn {
    min-height: auto;
    flex-direction: row;
    padding: 0.85rem 1.1rem;
  }
  .btn-content {
    flex-direction: row;
    gap: 0.75rem;
  }
  .strategy-selector {
    grid-template-columns: 1fr;
  }
  .stats-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .victory-action-row {
    flex-direction: column;
  }
}
