:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #3B82F6;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --text: #171A1F;
  --text-muted: #667085;
  --border: #E2E5E9;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
  --shadow: 0 2px 8px rgba(16,24,40,0.06);
  --shadow-lg: 0 8px 24px rgba(16,24,40,0.10);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
}

[data-accent="purple"]{--primary:#2563EB;--primary-dark:#1D4ED8;--primary-light:#EFF6FF;--accent:#3B82F6}
[data-accent="blue"]{--primary:#2563EB;--primary-dark:#1D4ED8;--primary-light:#EFF6FF;--accent:#0EA5E9}
[data-accent="green"]{--primary:#15803D;--primary-dark:#166534;--primary-light:#ECFDF3;--accent:#16A34A}
[data-accent="orange"]{--primary:#F97316;--primary-dark:#EA580C;--primary-light:#FED7AA;--accent:#F59E0B}
[data-accent="pink"]{--primary:#EC4899;--primary-dark:#DB2777;--primary-light:#FCE7F3;--accent:#8B5CF6}
[data-accent="red"]{--primary:#EF4444;--primary-dark:#DC2626;--primary-light:#FEE2E2;--accent:#F97316}

[data-theme="dark"]{--bg:#0F0F1A;--surface:#1A1A2E;--surface-2:#22223A;--text:#F5F5FA;--text-muted:#9CA3AF;--border:#2D2D44;--primary-light:#2A2850;--shadow:0 4px 12px rgba(0,0,0,0.3);--shadow-lg:0 12px 32px rgba(108,99,255,0.25)}
[data-theme="dark"][data-accent="blue"]{--primary:#2563EB;--primary-dark:#1D4ED8;--primary-light:#EFF6FF;--accent:#0EA5E9}
[data-theme="dark"][data-accent="green"]{--primary:#15803D;--primary-dark:#166534;--primary-light:#ECFDF3;--accent:#16A34A}
[data-theme="dark"][data-accent="orange"]{--primary-light:#3A2A1A}
[data-theme="dark"][data-accent="pink"]{--primary-light:#3A1A2E}
[data-theme="dark"][data-accent="red"]{--primary-light:#3A1A1A}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh;transition:background .3s,color .3s}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea{font-family:inherit}

/* ============================================
   LINKS - No underlines anywhere
   ============================================ */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  -webkit-user-drag: none;
}

a:focus {
  outline: none;
}

.nav-links a,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active,
.nav-links a.active {
  text-decoration: none !important;
}

.tool-card,
.tool-card:hover,
.tool-card:focus,
.tool-card:active,
.game-card,
.game-card:hover,
.game-card:focus,
.game-card:active,
.category-card,
.category-card:hover,
.category-card:focus,
.category-card:active {
  text-decoration: none !important;
}

.footer a,
.footer a:hover,
.footer a:focus,
.footer a:active {
  text-decoration: none !important;
}

.related-link,
.related-link:hover,
.related-link:focus,
.related-link:active {
  text-decoration: none !important;
}

.category-card *,
.tool-card *,
.game-card *,
.related-link * {
  text-decoration: none !important;
}

.container{max-width:var(--container);margin:0 auto;padding:0 20px}

/* ============================================
   LOADER - Now uses logo.png
   ============================================ */
.loader-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity .5s ease;
}

.loader-screen.done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: contain;
  animation: loaderSpin 1s ease-in-out 2;
}

@keyframes loaderSpin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============================================
   NAVIGATION - Updated Logo
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background .2s;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 15, 26, .88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -.02em;
  cursor: pointer;
  text-decoration: none !important;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

.logo:hover .logo-img {
  transform: translateY(-1px);
}

.logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 7px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: background .15s, color .15s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
  font-size: 1.1rem;
  color: var(--text);
}

.icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-btn i {
  font-size: 1.1rem;
}

.hamburger {
  display: none;
}

@media(max-width:860px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .98rem;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 5px rgba(37,99,235,.18);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37,99,235,.20);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 14px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: .85rem;
  border-radius: 8px;
}
.btn-block { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-bottom: 16px;
  color: var(--text);
}
.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   SECTIONS & GRID
   ============================================ */
.section { padding: 60px 0; }
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: #B8C7E6;
  box-shadow: 0 6px 16px rgba(16,24,40,.08);
}

.category-icon {
  width: 54px;
  height: 54px;
  background: transparent !important;
  color: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 1.45rem;
  transition: transform .18s, color .18s;
  box-shadow: none !important;
  border: none !important;
}

.category-card:hover .category-icon {
  color: var(--primary);
  transform: scale(1.03);
}

.category-name {
  font-weight: 600;
  font-size: .95rem;
}

/* ============================================
   TOOL CARD
   ============================================ */
.tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ============================================
   GAME CARD
   ============================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  cursor: pointer;
  text-decoration: none !important;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: #B8C7E6;
  box-shadow: 0 6px 16px rgba(16,24,40,.08);
}

.game-icon {
  width: 60px;
  height: 60px;
  background: transparent !important;
  color: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  box-shadow: none !important;
  border: none !important;
}

.game-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
}
.game-card p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* ============================================
   QUICK DECIDE
   ============================================ */
.quick-decide {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.quick-decide h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.quick-decide .sub {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: .95rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.option-row {
  display: flex;
  gap: 8px;
  align-items: center;
  animation: slideIn .25s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.option-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .95rem;
  transition: all .2s;
}
.option-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.remove-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all .2s;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.remove-btn:hover {
  background: #FEE2E2;
  color: var(--danger);
}
[data-theme="dark"] .remove-btn:hover { background: #4A1D1D; }

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================
   CHIPS
   ============================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.chip {
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  color: var(--text);
}
.chip:hover,
.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   RESULT
   ============================================ */
.result-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 38px 24px;
  text-align: center;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}
.result-card::before { display: none; }

.result-label {
  font-size: .9rem;
  opacity: .85;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.result-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 2.2rem;
  animation: bounceIn .6s;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.result-value {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  word-break: break-word;
  animation: fadeUp .5s .2s both;
}

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

.result-message {
  margin-top: 12px;
  opacity: .9;
  font-size: 1rem;
}

.shuffle-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 60px;
  display: grid;
  place-items: center;
  margin: 20px 0;
  letter-spacing: -.02em;
}
.shuffle-display.shaking {
  animation: shake .1s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================
   WHEEL
   ============================================ */
.wheel-container {
  position: relative;
  max-width: 420px;
  margin: 20px auto;
}
.wheel-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(108,99,255,.25));
}
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #FF6B6B;
  z-index: 2;
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--surface);
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 2;
  font-size: 1.3rem;
  color: var(--primary);
}

/* ============================================
   COIN FLIP
   ============================================ */
.coin {
  width: 140px;
  height: 140px;
  margin: 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(255,215,0,.4), inset 0 -4px 8px rgba(0,0,0,.2);
  color: #8B6914;
  font-weight: 800;
  font-size: 4rem;
  position: relative;
  transition: transform 0.3s;
}
.coin i {
  font-size: 4rem;
  color: var(--text);
}
.coin.flipping {
  animation: coinFlip 1.5s ease-out;
}

@keyframes coinFlip {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(1800deg); }
}

/* ============================================
   DICE ROLL
   ============================================ */
.dice {
  width: 100px;
  height: 100px;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 14px;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.dice.rolling {
  animation: diceRoll .8s ease-out;
}

@keyframes diceRoll {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.dice-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
}
.dice-dot.filled {
  background: var(--text);
}

/* ============================================
   ROCK PAPER SCISSORS
   ============================================ */
.rps-choices {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.rps-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 80px;
}
.rps-btn:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.rps-btn i {
  font-size: 2.5rem;
  color: #6C63FF;
}
.rps-btn span {
  font-size: 0.8rem;
}

.rps-battle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.rps-side { text-align: center; }
.rps-side .label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.rps-side .icon {
  font-size: 3rem;
  color: var(--primary);
}
.rps-vs {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 1.5rem;
}
.rps-result-text {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 16px;
}

/* ============================================
   COLOR GENERATOR
   ============================================ */
.color-preview {
  height: 200px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: background .3s;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  font-family: monospace;
}
.color-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.color-info-box {
  background: var(--surface-2);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}
.color-info-box .label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.color-info-box .value {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 4px;
  font-family: monospace;
}
.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.palette-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s;
  position: relative;
  border: 2px solid var(--border);
}
.palette-swatch:hover { transform: scale(1.08); }
.palette-swatch::after {
  content: attr(data-hex);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
}

/* ============================================
   TRUTH OR DARE
   ============================================ */
.tod-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.tod-btn {
  padding: 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.2rem;
  transition: all .2s;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}
.tod-btn.truth {
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
}
.tod-btn.dare {
  background: linear-gradient(135deg, #F59E0B, #DC2626);
}
.tod-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.tod-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin: 20px 0;
  border: 2px solid var(--primary);
}
.tod-type {
  font-size: .85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  margin-bottom: 12px;
}
.tod-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ============================================
   YES / NO
   ============================================ */
.number-result {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  letter-spacing: -.04em;
  margin: 20px 0;
  line-height: 1;
  animation: bounceIn .5s;
}

/* ============================================
   FIELD / FORM
   ============================================ */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .95rem;
  transition: all .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media(max-width:480px) { .field-row { grid-template-columns: 1fr; } }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  text-align: center;
  padding: 50px 20px 30px;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CONTENT BLOCK
   ============================================ */
.content-block {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px;
}
.content-block h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 28px 0 12px;
  letter-spacing: -.01em;
  color: var(--text);
}
.content-block p {
  color: var(--text-muted);
  margin-bottom: 12px;
}
.content-block ul {
  margin: 12px 0 12px 20px;
  color: var(--text-muted);
}
.content-block li {
  margin-bottom: 6px;
}

/* ============================================
   RELATED
   ============================================ */
.related {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px auto;
  max-width: 720px;
  border: 1px solid var(--border);
}
.related h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.related-link {
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  font-size: .9rem;
  transition: all .2s;
  color: var(--text);
  text-decoration: none !important;
}
.related-link:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none !important;
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 44px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-brand .logo-img {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  object-fit: contain;
}
.footer-brand .logo span {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 280px;
  font-size: .9rem;
}
.footer-col h5 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--text);
  font-size: .9rem;
  cursor: pointer;
  transition: color .15s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

@media(max-width:760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media(max-width:420px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================
   WHY / STEPS
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all .25s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.why-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
}
.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}
.why-card p {
  color: var(--text-muted);
  font-size: .95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 20px;
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}
.step h4 {
  margin-bottom: 6px;
  color: var(--text);
}
.step p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* ============================================
   TEAMS
   ============================================ */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.team-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--border);
  transition: all .3s;
}
.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.team-card h4 {
  color: var(--primary);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.team-card ul {
  list-style: none;
}
.team-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-weight: 500;
  color: var(--text);
}
.team-card li:last-child { border: none; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   RECENT WIDGET
   ============================================ */
.recent-widget {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 320px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16,24,40,.12);
  z-index: 90;
  transform: translateX(400px);
  transition: transform .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.recent-widget.open { transform: translateX(0); }
.recent-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
}
.recent-header h4 {
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.recent-body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}
.recent-item {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  animation: slideIn .25s;
}
.recent-item-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.recent-item-text { flex: 1; min-width: 0; }
.recent-item-text .cat {
  color: var(--text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.recent-item-text .val {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.recent-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: .9rem;
}
.recent-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

@media(max-width:760px) {
  .recent-widget {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }
  .recent-widget.open { transform: translateY(0); }
}

/* ============================================
   THEME PICKER
   ============================================ */
.theme-picker {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 95;
  padding: 16px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
}
.theme-picker.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.theme-picker h5 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.accent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.accent-swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all .2s;
}
.accent-swatch:hover { transform: scale(1.1); }
.accent-swatch.active {
  border-color: var(--text);
  transform: scale(1.1);
}
.mode-toggle-row {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 10px;
}
.mode-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}
.mode-btn.active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

/* ============================================
   AD SLOT
   ============================================ */
.ad-slot {
  max-width: 720px;
  margin: 30px auto;
  padding: 20px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  min-height: 90px;
  display: grid;
  place-items: center;
}
.ad-slot-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.page { display: none; animation: fadeIn .3s; }
.page.active { display: block; }

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

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.flex-center {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.error-msg {
  color: var(--danger);
  font-size: .85rem;
  margin-top: 8px;
  font-weight: 500;
}
.note {
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
  text-align: center;
}
.kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: monospace;
  font-size: .75rem;
  color: var(--text-muted);
}

/* ============================================
   RESULT POPUP
   ============================================ */
.result-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: resultOverlayIn 0.2s ease;
}
.result-popup {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  animation: resultPopupIn 0.25s ease;
}
.result-popup .result-card { margin: 0; }
.result-popup-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.result-done-btn {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 24px;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.result-done-btn:hover {
  background: var(--primary-dark, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}
.result-done-btn:active { transform: translateY(0); }
.result-done-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

@keyframes resultOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes resultPopupIn {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .result-popup-overlay { padding: 14px; }
  .result-popup { padding: 18px; border-radius: 15px; }
  .result-popup-actions { margin-top: 16px; }
  .result-done-btn { width: 100%; }
}

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

/* ============================================
   BORED / QUESTION CARDS
   ============================================ */
.bored-card {
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 20px 50px rgba(255,107,157,.3);
  min-height: 200px;
  display: grid;
  place-items: center;
}
.bored-idea {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
}

.question-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  margin: 20px 0;
  min-height: 160px;
  display: grid;
  place-items: center;
}
.question-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* ============================================
   RESPONSIVE LOGO
   ============================================ */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
    width: 32px;
  }
  .loader-logo-img {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 999;
  animation: confettiFall 2s ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}