/* FANDOM ARENA — design tokens
   Palette: near-black indigo arena floor, electric cyan + violet dual accent, gold for
   rank/XP moments only (keeps gold meaningful instead of decorative).
   Type: Space Grotesk (display, numbers/ranks) + Inter (body) + JetBrains Mono (stat figures).
   Signature: the hexagon — level rings, stat-radar, badge corners — echoes trainer-badge
   iconography as an original geometric shape, never franchise artwork. */

:root {
  --bg: #0a0e1a;
  --surface: #131829;
  --surface-2: #1b2236;
  --border: rgba(231, 233, 243, 0.09);
  --text: #e7e9f3;
  --muted: #8b93ac;
  --cyan: #4ce0d2;
  --violet: #7c5cfc;
  --gold: #f5b942;
  --danger: #ff6b6b;
  --radius: 14px;
  --font-display: 'Rajdhani', system-ui, sans-serif;
  --font-impact: 'Anton', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(115deg, rgba(76,224,210,0.025) 0px, rgba(76,224,210,0.025) 2px, transparent 2px, transparent 60px),
    radial-gradient(120% 140% at 15% -10%, #171d33 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

/* "Impact" numbers — big stat/rank/level figures get a bolder, more energetic treatment
   than body headings, echoing shonen power-level readouts without leaning on any
   franchise's actual typography or iconography. */
.impact {
  font-family: var(--font-impact);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px currentColor;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 560px; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 14, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; max-width: 880px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand-mark { width: 26px; height: 26px; object-fit: contain; }
.hero-logo { max-width: 340px; width: 100%; height: auto; }
.tagline {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 10px 0 0;
  background: linear-gradient(90deg, #a78bfa, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; align-items: center; }

/* Hamburger toggle — hidden on desktop, shown on narrow screens where 7+ nav links
   would otherwise force the page to scroll sideways (the actual reported bug). */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 34px; height: 34px; background: transparent; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; border-radius: 1px; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 18px 16px; box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  }
  .nav-links-open { display: flex; }
  .nav-links a, .nav-links form { width: 100%; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-links .btn { width: 100%; margin-top: 4px; }
  .nav-inner { position: relative; }
}
.nav-links a { color: var(--muted); font-size: 0.92rem; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
/* Buttons inside the nav (Join, Save progress) were losing their intended dark text to the
   .nav-links a rule above via CSS specificity — this restores it. Real bug, not cosmetic. */
.nav-links a.btn-primary { color: #0a0e1a; }
.nav-links a.btn-ghost { color: var(--text); }

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }

/* Hexagon-clipped accent panel — the signature element, used sparingly for rank/streak/level. */
.hex-panel {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  padding: 18px 26px;
  text-align: center;
  min-width: 96px;
  position: relative;
}
.hex-panel::before {
  content: '';
  position: absolute; inset: 0;
  clip-path: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(76,224,210,0.18), transparent 65%);
  pointer-events: none;
}

/* Diagonal-cut "action" card — sharper, more dynamic than the standard rounded card;
   used for hero moments (landing page, big result reveals) rather than every card, so it
   stays a deliberate accent rather than visual noise. */
.card-action {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  padding: 26px 24px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.card-action::after {
  content: '';
  position: absolute; top: -20%; right: -10%; width: 60%; height: 140%;
  background: linear-gradient(115deg, transparent 40%, rgba(76,224,210,0.08) 50%, transparent 60%);
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #0a0e1a; box-shadow: 0 0 0 rgba(76,224,210,0); transition: box-shadow 0.15s ease, filter 0.15s ease; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; box-shadow: 0 0 20px rgba(76,224,210,0.35); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }

/* --- Forms --- */
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 90px; }
.form-error { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.3); color: #ffb0b0; padding: 10px 12px; border-radius: 9px; font-size: 0.9rem; margin-bottom: 10px; }

/* --- Stat / number displays --- */
.stat-num { font-family: var(--font-mono); font-weight: 600; }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--muted);
  color: var(--muted); font-size: 0.72rem; font-weight: 700; cursor: pointer;
  background: transparent; margin-left: 6px; vertical-align: middle;
}
.info-icon:hover { border-color: var(--cyan); color: var(--cyan); }
.info-panel {
  display: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: left;
}
.info-panel.open { display: block; }
.info-panel code { color: var(--cyan); font-family: var(--font-mono); font-size: 0.82rem; }
.back-link { display: inline-block; color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.back-link:hover { color: var(--cyan); text-decoration: none; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: rgba(76, 224, 210, 0.16); color: #bdf5ef; border: 1px solid rgba(76, 224, 210, 0.4);
}
/* Title/rank badges get a solid, high-contrast fill — these carry status and should
   never blend into the dark theme the way a muted translucent chip can. */
.badge-gold { background: linear-gradient(135deg, var(--gold), #c98a1f); color: #1a1200; border: 1px solid rgba(0,0,0,0.15); font-weight: 700; }

.guest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(124,92,252,0.14), rgba(76,224,210,0.10));
  border: 1px solid rgba(124,92,252,0.35);
}

/* Segmented tab control — clearer active-state than badges for filters (leaderboards, etc.) */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs-wrap { row-gap: 8px; }
.tab {
  padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 1px solid transparent;
}
.tab:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.tab.tab-active {
  color: #0a0e1a; background: linear-gradient(135deg, var(--cyan), var(--violet));
  text-decoration: none;
}
.tab-sm { padding: 6px 12px; font-size: 0.82rem; }

/* --- Avatars & reward frames (original, CSS-only — no uploaded/franchise images) --- */
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #0a0e1a;
  flex-shrink: 0; position: relative;
}
.avatar-sm { width: 34px; height: 34px; font-size: 0.9rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.9rem; }
.avatar-ember { background: linear-gradient(135deg, #ff8a5c, #d1495b); }
.avatar-wave { background: linear-gradient(135deg, #4ce0d2, #3a7bd5); }
.avatar-leaf { background: linear-gradient(135deg, #8bd450, #2e7d5b); }
.avatar-spark { background: linear-gradient(135deg, #ffe45c, #f5a623); }
.avatar-shadow { background: linear-gradient(135deg, #7c5cfc, #3a2e5c); }
.avatar-crystal { background: linear-gradient(135deg, #a0e9ff, #4ce0d2); }
.avatar-nova { background: linear-gradient(135deg, #ff6bcb, #7c5cfc); }
.avatar-photo { object-fit: cover; border: none; }
.post-thumb { max-width: 220px; max-height: 160px; border-radius: 10px; display: block; object-fit: cover; }
.post-thumb-wrap { position: relative; display: inline-block; margin-top: 8px; }
.post-thumb-count {
  position: absolute; bottom: 6px; right: 6px; background: rgba(0, 0, 0, 0.65); color: #fff;
  font-size: 0.72rem; font-weight: 600; padding: 2px 6px; border-radius: 6px;
}
.post-image-full { max-width: 100%; border-radius: 12px; margin-top: 10px; display: block; }

/* Multi-image post gallery (post_detail.ejs). 1 image = full-width like post-image-full;
   2-4 images = an even grid, capped at 4 per post. */
.post-gallery { margin-top: 10px; display: grid; gap: 6px; }
.post-gallery-1 { grid-template-columns: 1fr; }
.post-gallery-2 { grid-template-columns: 1fr 1fr; }
.post-gallery-3 { grid-template-columns: 1fr 1fr; }
.post-gallery-3 .post-gallery-img:first-child { grid-column: 1 / 3; }
.post-gallery-4 { grid-template-columns: 1fr 1fr; }
.post-gallery-img { width: 100%; height: 100%; max-height: 420px; border-radius: 12px; object-fit: cover; display: block; }
.post-gallery-1 .post-gallery-img { max-height: none; }

.vote-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; color: var(--muted); font-size: 0.78rem; cursor: pointer; min-width: 52px;
}
.vote-btn:hover { border-color: var(--cyan); color: var(--text); }
.vote-btn-active { border-color: var(--cyan); background: rgba(76, 224, 210, 0.14); color: var(--cyan); }

.gif-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.gif-result-thumb { width: 100%; border-radius: 8px; cursor: pointer; object-fit: cover; aspect-ratio: 1; transition: transform 0.1s ease; }
.gif-result-thumb:hover { transform: scale(1.04); outline: 2px solid var(--cyan); }

/* --- Avatar crop modal --- */
.crop-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,14,26,0.85);
  align-items: center; justify-content: center; padding: 16px;
}
.crop-modal-inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; max-width: 360px; width: 100%;
}
.crop-canvas-wrap { display: flex; justify-content: center; }
#crop-canvas { touch-action: none; cursor: grab; border-radius: 50%; background: var(--surface-2); }
#crop-canvas:active { cursor: grabbing; }

/* --- Wordle sprite-powered search combobox --- */
.combobox-wrap { position: relative; }
.combobox-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  max-height: 280px; overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.combobox-option {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 12px; background: transparent; border: none; border-bottom: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 0.92rem; cursor: pointer;
}
.combobox-option:last-child { border-bottom: none; }
.combobox-option:hover { background: rgba(76,224,210,0.1); }
.combobox-sprite { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.avatar-stone { background: linear-gradient(135deg, #c9a876, #6b5844); }

.avatar-frame { padding: 4px; border-radius: 50%; display: inline-flex; flex-shrink: 0; }
.frame-champion { background: conic-gradient(from 0deg, var(--gold), #fff2c2, var(--gold)); box-shadow: 0 0 14px rgba(245,185,66,0.5); }
.frame-runnerup { background: conic-gradient(from 0deg, #c9d2e0, #ffffff, #c9d2e0); box-shadow: 0 0 10px rgba(201,210,224,0.4); }
.frame-third { background: conic-gradient(from 0deg, #c98653, #ffcfa3, #c98653); box-shadow: 0 0 10px rgba(201,134,83,0.4); }
.frame-flamekeeper { background: conic-gradient(from 0deg, #ff6b6b, var(--gold), #ff6b6b); box-shadow: 0 0 14px rgba(255,107,107,0.45); }
.frame-veteran { background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--violet)); box-shadow: 0 0 14px rgba(124,92,252,0.4); }

/* Shop-exclusive frames (source='shop' in cosmetics table) */
.frame-cyan-ring { background: conic-gradient(from 0deg, var(--cyan), #bff2ff, var(--cyan)); box-shadow: 0 0 10px rgba(34,211,238,0.4); }
.frame-violet-ring { background: conic-gradient(from 0deg, var(--violet), #d8c8ff, var(--violet)); box-shadow: 0 0 10px rgba(124,92,252,0.4); }

/* "Profile animations" — animated frames, same no-uploaded-art posture as static ones,
   just with CSS keyframes instead of a static gradient. */
.frame-pulse-gold { background: conic-gradient(from 0deg, var(--gold), #fff2c2, var(--gold)); animation: frame-pulse 1.8s ease-in-out infinite; }
@keyframes frame-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245,185,66,0.4); }
  50% { box-shadow: 0 0 22px rgba(245,185,66,0.9); }
}

.frame-rotate-rainbow { position: relative; background: transparent; }
.frame-rotate-rainbow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff6b6b, var(--gold), var(--violet), var(--cyan), #ff6b6b);
  animation: frame-spin 3s linear infinite;
  z-index: 0;
}
.frame-rotate-rainbow > * { position: relative; z-index: 1; }
@keyframes frame-spin {
  to { transform: rotate(360deg); }
}

/* Guild banners — CSS-only, same no-uploaded-art posture as avatars/frames. Applied as a
   background on .guild-banner (a simple rectangular card header, not a circular avatar). */
.guild-banner { border-radius: 12px; height: 64px; display: flex; align-items: flex-end; padding: 8px 12px; }
.guild-banner-default { background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.guild-banner-ember { background: linear-gradient(135deg, #ff6b6b, #f5b942); }
.guild-banner-wave { background: linear-gradient(135deg, var(--cyan), #1c6fa5); }
.guild-banner-storm { background: linear-gradient(135deg, var(--violet), #2b2350); }
.guild-banner-gold { background: linear-gradient(135deg, var(--gold), #a9720a); }
.avatar-select-btn { background: transparent; border: 2px solid transparent; border-radius: 50%; padding: 3px; cursor: pointer; }
.avatar-select-btn.selected { border-color: var(--cyan); }
.frame-pick-btn { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; width: 100%; text-align: left; margin-bottom: 8px; color: var(--text); font-family: var(--font-body); }
.frame-pick-btn.equipped { border-color: var(--gold); }

.silhouette-frame {
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(76,224,210,0.10), transparent 70%);
  border-radius: 16px; padding: 16px; margin-bottom: 14px; min-height: 200px;
}

/* CSS mask silhouette technique — used only for the PokeAPI-sourced Who's That Rush
   sprites (see IP_RISK.md for the documented decision behind pulling that artwork).
   The <img> itself renders normally; while un-revealed we apply a solid-color mask
   built from the SAME image's alpha channel (no separate silhouette asset needed),
   then crossfade to the real colors on .revealed. */
.silhouette-image {
  width: 220px; height: 220px; object-fit: contain;
  filter: brightness(0) saturate(100%);
  -webkit-mask-image: none; mask-image: none;
  transition: filter 0.35s ease;
}
.silhouette-image.revealed {
  filter: none;
}

/* --- Attribute Wordle grid --- */
.wordle-grid-card { overflow-x: auto; }
.wordle-header-row, .wordle-row {
  display: grid; grid-template-columns: 1.3fr repeat(7, 1fr); gap: 4px; margin-bottom: 4px; min-width: 640px;
}
.wordle-header-row span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); text-align: center; padding-bottom: 4px; }
.wordle-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px 4px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  background: var(--surface-2); color: var(--text); min-height: 34px;
}
.wordle-tile-name { background: transparent; font-weight: 700; justify-content: flex-start; padding-left: 8px; }
.wordle-match { background: linear-gradient(135deg, #2e7d5b, #4ce0d2); color: #0a0e1a; }
.wordle-partial { background: linear-gradient(135deg, #b8860b, var(--gold)); color: #0a0e1a; }
.wordle-none, .wordle-na { background: var(--surface-2); color: var(--muted); }
.wordle-higher, .wordle-lower { background: rgba(124,92,252,0.25); color: var(--text); }

/* --- Higher/Lower --- */
.hl-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 10px 0; }
.hl-card {
  background: var(--surface-2); border: 2px solid var(--border); border-radius: 14px;
  padding: 24px 16px; text-align: center; cursor: pointer; transition: border-color 0.15s ease, transform 0.1s ease;
  color: var(--text); /* was missing — same button-text-color bug as emoji-btn */
}
.hl-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.hl-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.hl-vs-label { font-family: var(--font-impact); color: var(--gold); font-size: 1.4rem; }
.hl-reveal { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 10px; }

.emoji-btn {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  color: var(--text); /* was missing — buttons fall back to browser-default text color without this, invisible on dark bg */
}
.emoji-btn-sm { padding: 3px 8px; font-size: 0.82rem; }
.emoji-btn:hover { border-color: var(--cyan); }
.emoji-btn-active { border-color: var(--cyan); background: rgba(76, 224, 210, 0.12); color: var(--cyan); }

/* Community: feed on the left, composer sidebar on the right (desktop); stacks on mobile
   with the composer moving below the feed, since "compose" is a secondary action on a
   narrow screen and shouldn't push the actual discussions below the fold. */
.community-layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
.community-sidebar { position: sticky; top: 76px; }
@media (max-width: 760px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { position: static; order: 2; }
  .community-feed { order: 1; }
}
.comment-block { padding: 12px 0; border-top: 1px solid var(--border); }
.comment-block:first-of-type { border-top: none; padding-top: 0; }
.reply-form textarea { min-height: 60px; }

.progress-track { background: var(--surface-2); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--cyan), var(--violet)); height: 100%; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr.me { background: rgba(76, 224, 210, 0.06); }

.option-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; padding: 13px 14px; margin-bottom: 8px;
  background: var(--surface-2); border: 2px solid var(--border); border-radius: 10px; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease;
}
.option-btn:hover { border-color: rgba(76, 224, 210, 0.5); }
.option-btn:active { transform: scale(0.99); }
.option-btn.selected {
  border-color: var(--cyan);
  background: rgba(76, 224, 210, 0.14);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 16px rgba(76, 224, 210, 0.25);
}
.option-btn.selected::after {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.option-btn:disabled { cursor: default; opacity: 0.85; }

footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 30px 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-gap { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
