@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --glass-bg: rgba(13, 18, 34, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  
  --color-gold: #f59e0b;
  --color-gold-hover: #d97706;
  --color-gold-glow: rgba(245, 158, 11, 0.3);
  
  --color-asset: #10b981;
  --color-asset-hover: #059669;
  --color-asset-glow: rgba(16, 185, 129, 0.25);
  
  --color-liability: #ef4444;
  --color-liability-hover: #dc2626;
  --color-liability-glow: rgba(239, 68, 68, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Proportions & Grid System */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  
  --gap-main: 24px;
  --gap-sub: 16px;
  
  /* Shadows */
  --shadow-main: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px 0 var(--color-gold-glow);
}

/* Light Theme Variables & Style Overrides */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(15, 23, 42, 0.16);
  
  --color-gold: #d97706;
  --color-gold-hover: #b45309;
  --color-gold-glow: rgba(217, 119, 6, 0.15);
  
  --color-asset: #059669;
  --color-asset-hover: #047857;
  --color-asset-glow: rgba(5, 150, 105, 0.15);
  
  --color-liability: #dc2626;
  --color-liability-hover: #b91c1c;
  --color-liability-glow: rgba(220, 38, 38, 0.15);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --shadow-main: 0 12px 40px 0 rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px 0 var(--color-gold-glow);
  
  background-image: 
    radial-gradient(at 0% 0%, rgba(217, 119, 6, 0.04) 0px, transparent 45%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.04) 0px, transparent 45%),
    radial-gradient(at 50% 100%, rgba(220, 38, 38, 0.03) 0px, transparent 55%);
}

body.light-theme .brand-text h1 {
  background: linear-gradient(135deg, #0f172a 30%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .game-over-title {
  background: linear-gradient(135deg, #0f172a 40%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(217, 119, 6, 0.15));
}

body.light-theme .feedback-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.99) 100%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

body.light-theme .audio-toggle {
  background: rgba(15, 23, 42, 0.03);
}

body.light-theme .audio-toggle:hover {
  background: rgba(217, 119, 6, 0.06);
}

body.light-theme .score-badge {
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06);
}

body.light-theme .card-financials {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.05);
}

body.light-theme .card-badge {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .list-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.04);
}

body.light-theme .list-item:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .progress-bar-bg {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.03);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.15);
}

body.light-theme::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
}

body.light-theme::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.06) 0px, transparent 40%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.06) 0px, transparent 40%),
    radial-gradient(at 50% 100%, rgba(239, 68, 68, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding: 24px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Glassmorphic Panel Base */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.7);
}

/* App Header */
header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  margin-bottom: var(--gap-main);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  font-size: 2.25rem;
  filter: drop-shadow(0 0 10px var(--color-gold-glow));
  animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3)); }
  to { filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.6)); }
}

.brand-text h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-toggle:hover {
  color: var(--text-primary);
  border-color: var(--color-gold);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
  transform: scale(1.05);
}

.audio-toggle:active {
  transform: scale(0.95);
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-gold);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Main Layout Grid - Perfectly Symmetric and Proportional */
.main-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-main);
  width: 100%;
  max-width: 1200px;
  flex: 1;
}

@media (min-width: 768px) {
  .main-container {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-column: span 2;
  }
  .game-section {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .main-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-column: span 3;
  }
  .game-section {
    grid-column: span 1;
  }
  .statement-panel {
    grid-column: span 1;
  }
}

/* Gameplay Section - Left Side */
.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 28px 24px;
  min-height: 0;
}

.progress-container {
  width: 100%;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-asset) 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Stack & Proportional Sizing */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 366px;
  height: 360px;
  flex-shrink: 0;
  perspective: 1000px;
  margin: 0;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  border: none;
  box-shadow: none;
  background: transparent;
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.2), opacity 0.45s ease, display 0.45s;
  transition-behavior: allow-discrete;
  user-select: none;
  overflow: hidden;
}

@starting-style {
  .card {
    opacity: 0;
    transform: scale(0.9) translateY(24px);
  }
}

.card.inactive {
  pointer-events: none;
  opacity: 0.4;
  transform: scale(0.93) translateY(14px);
  z-index: 1;
}

.card.active {
  z-index: 2;
}

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

.card-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-secondary);
}

.card-icon {
  font-size: 2.4rem;
  text-align: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.15));
}

.card-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 0;
}

.card-body h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  /* Uzun metni kırp */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.card-financials {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.financial-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.74rem;
  gap: 6px;
}

.financial-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.financial-value {
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: 0.2px;
  text-align: right;
  word-break: break-word;
}

/* Card footer - gizle alan kazanmak için */
.card-footer {
  display: none;
}

/* Action Buttons Under Card */
.action-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 366px;
  flex-shrink: 0;
}

.btn {
  /* Eşit boyut için flex: 0 0 calc(50% - 8px) — her buton tam yarı */
  flex: 1 1 0;
  min-width: 0;
  height: 76px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  /* Metin taşmasını engelle */
  text-align: center;
  word-break: keep-all;
  overflow: hidden;
}

.btn span {
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.btn-asset {
  background-color: var(--color-asset);
  color: #01281d;
}

.btn-asset:hover {
  background-color: var(--color-asset-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--color-asset-glow);
}

.btn-liability {
  background-color: var(--color-liability);
  color: #3b0707;
}

.btn-liability:hover {
  background-color: var(--color-liability-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--color-liability-glow);
}

.btn:active {
  transform: translateY(1px);
}

/* Swipe animations (Tinder Effect) */
.card.swipe-right {
  transform: translate(140%, -15px) rotate(25deg) !important;
  opacity: 0 !important;
}

.card.swipe-left {
  transform: translate(-140%, -15px) rotate(-25deg) !important;
  opacity: 0 !important;
}

/* Financial Dashboard Section - Right Side */
.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-main);
}

/* Stats Overview Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sub);
}

.stat-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-sm);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-value.gold {
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.stat-value.green {
  color: var(--color-asset);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.stat-value.red {
  color: var(--color-liability);
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* Ledger Statements Columns (Bilanço & Gelir Tablosu) */
.statements-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-main);
}

@media (min-width: 768px) {
  .statements-container {
    grid-template-columns: 1fr 1fr;
  }
}

.statement-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 620px;
  height: 100%;
}

.statement-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.statement-title span {
  font-size: 1.35rem;
}

.sub-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sub);
  flex-grow: 1;
}

.sub-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.sub-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.5px;
}

.sub-col-header .total {
  font-family: var(--font-title);
  font-weight: 800;
}

.sub-col-header.assets .total {
  color: var(--color-asset);
}

.sub-col-header.liabilities .total {
  color: var(--color-liability);
}

/* Beautiful Scrollable List Ledger Items */
.list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  animation: item-entry 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

@keyframes item-entry {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.list-item.asset-theme {
  border-left: 3px solid var(--color-asset);
}

.list-item.liability-theme {
  border-left: 3px solid var(--color-liability);
}

.list-item-name {
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.list-item-val {
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-title);
  letter-spacing: 0.2px;
}

.list-item-val.plus {
  color: var(--color-asset);
}

.list-item-val.minus {
  color: var(--color-liability);
}

.list-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: auto 0;
  font-style: italic;
}

/* Feedback / Educational Overlay Popover */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), display 0.3s;
  transition-behavior: allow-discrete;
}

@starting-style {
  .feedback-overlay {
    opacity: 0;
  }
}

.feedback-overlay.hidden {
  display: none;
  opacity: 0;
}

.feedback-modal {
  width: 100%;
  max-width: 480px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(16, 24, 48, 0.95) 0%, rgba(9, 13, 26, 0.98) 100%);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@starting-style {
  .feedback-modal {
    transform: scale(0.9);
  }
}

.feedback-result {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.feedback-result.correct {
  color: var(--color-asset);
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.feedback-result.incorrect {
  color: var(--color-liability);
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

.feedback-explanation {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.feedback-quote {
  font-style: italic;
  color: var(--color-gold);
  border-left: 3px solid var(--color-gold);
  padding-left: 14px;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  color: #3b1d03;
  border: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
}

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

/* Game Over / Victory Summary Panel */
.game-over-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 44px 28px;
  width: 100%;
  max-width: 520px;
  margin: auto;
  border-radius: var(--radius-lg);
  animation: game-over-entry 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@keyframes game-over-entry {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.game-over-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.25));
}

.iq-badge {
  padding: 16px 36px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  box-shadow: var(--shadow-glow);
  letter-spacing: -0.5px;
}

.iq-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 460px;
}

.end-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sub);
  width: 100%;
  max-width: 440px;
  margin-top: 12px;
}

.end-stat {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.end-stat-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.end-stat-val {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Footer Credits */
footer {
  margin-top: 48px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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