/* valo — arayüz stilleri */

:root {
  --ink: #090d12;
  --panel: #111923;
  --raised: #1c2d40;
  --raised-2: #22364b;
  --line: #2a3641;
  --line-soft: #1e2933;
  --text: #ece8e1;
  --text-soft: #cdd6dd;
  --muted: #a7b3be;
  --muted-2: #6c7e87;
  --accent: #83c5ff;
  --accent-strong: #79bbff;
  --accent-dim: rgba(131, 197, 255, 0.14);
  --signal: #ff4655;
  --signal-deep: #c8323f;
  --signal-soft: rgba(255, 70, 85, 0.14);
  --ice: #a7d2df;
  --mint: #67f5bc;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-cond: "Saira Condensed", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 8px 24px rgba(9, 13, 18, 0.32);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  src: local("Chakra Petch"), local("Segoe UI Semibold");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(255, 70, 85, 0.10), transparent 60%),
    radial-gradient(700px 420px at 8% 0%, rgba(131, 197, 255, 0.07), transparent 62%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

#app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ marka */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #fff;
}
.brand-tag {
  white-space: nowrap;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
}

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 18px;
  background: rgba(9, 13, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.main-nav { display: flex; align-items: center; gap: 2px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.nav-tab {
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  position: relative;
  transition: color .16s ease, background .16s ease;
}
.nav-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-tab.is-active { color: var(--accent); }
.nav-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.sens-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.sens-label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.sens-select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  padding-right: 14px;
  cursor: pointer;
}
.sens-select option { background: var(--panel); }
.sens-caret { position: absolute; right: 8px; pointer-events: none; color: var(--muted-2); display: flex; }
.sens-caret svg { transform: rotate(90deg); }
.sens-wrap b { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }

.locale-wrap { position: relative; }
.locale-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.locale-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.locale-globe { display: flex; opacity: .8; }
.locale-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 50;
}
.locale-wrap.open .locale-menu { display: block; }
.locale-opt {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 13px;
}
.locale-opt:hover { background: var(--raised); color: var(--text); }
.locale-opt.is-active { color: var(--accent); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px; font-weight: 600;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.ghost-btn:hover { background: var(--raised); color: #fff; border-color: #35485a; }
.ghost-btn.solid { background: var(--panel); }
.perf-btn { color: var(--accent); border-color: rgba(131, 197, 255, 0.28); background: rgba(131, 197, 255, 0.08); }
.perf-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--accent); color: #06202f;
  font-size: 11px; font-weight: 700;
}

/* ------------------------------------------------------------------- rail */
.rail {
  position: sticky; top: 64px; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: rgba(13, 18, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.rail-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: all .16s ease;
}
.rail-item:hover { color: var(--text); border-color: #35485a; background: var(--raised); }
.rail-item.primary {
  background: #fff; color: #0b1018; border-color: #fff;
}
.rail-item.primary:hover { background: #dfe7ef; }
.rail-ico { display: flex; }

/* -------------------------------------------------------------------- hero */
.page { flex: 1 0 auto; padding-bottom: 40px; }

.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 34px 28px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.hero.compact { padding-bottom: 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--accent); font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 10px;
}
.eyebrow-line { width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; }
.hero-sub { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.hero-search { width: 360px; max-width: 100%; }
.field-label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 500;
}
.search-input, .text-input, .foot-search, .select {
  width: 100%;
  padding: 11px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-input:focus, .text-input:focus, .foot-search:focus, .select:focus {
  border-color: rgba(131, 197, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(131, 197, 255, 0.12);
}
.search-input::placeholder, .foot-search::placeholder { color: var(--muted-2); }

/* --------------------------------------------------------------- training */
.training-body { display: grid; grid-template-columns: 268px 1fr; gap: 26px; padding: 24px 28px 0; }

.map-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.55);
  padding: 14px;
  align-self: start;
  position: sticky; top: 132px;
}
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 12px; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.count-pill {
  padding: 2px 8px; border-radius: 20px; background: var(--raised);
  color: var(--text-soft); font-size: 11px; letter-spacing: 0;
}
.map-list { display: flex; flex-direction: column; gap: 6px; }
.map-choice {
  display: flex; align-items: center; gap: 11px;
  padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--panel);
  text-align: left; width: 100%;
  transition: border-color .16s ease, background .16s ease;
}
.map-choice:hover { border-color: #35485a; background: var(--raised); }
.map-choice.is-active { border-color: var(--accent); background: rgba(131, 197, 255, 0.09); }
.map-thumb {
  width: 56px; height: 40px; border-radius: 6px; flex: 0 0 auto;
  background-size: cover; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.map-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.map-meta { display: flex; flex-direction: column; min-width: 0; }
.map-name { font-weight: 600; font-size: 14px; color: var(--text); }
.map-count { font-size: 12px; color: var(--muted-2); }

.training-main { min-width: 0; }

/* --------------------------------------------------------------- featured */
.featured-card {
  display: flex; gap: 28px; align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(28, 45, 64, 0.55), rgba(17, 25, 35, 0.75));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.featured-card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 85, 0.16), transparent 65%);
}
.featured-preview {
  width: 240px; height: 168px; flex: 0 0 auto;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.featured-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-info { flex: 1; min-width: 0; position: relative; }
.featured-title { font-size: 29px; line-height: 1.15; }
.featured-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.badge {
  padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
  background: var(--accent); color: #06202f;
}
.featured-map { color: var(--muted); font-size: 13px; }
.featured-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  font-size: 12px; color: var(--text-soft);
}
.tag b { color: #fff; }
.tag svg { opacity: .75; }
.tag.sm { font-size: 11.5px; padding: 4px 8px; }
.tag.best { color: var(--mint); box-shadow: inset 0 0 0 1px rgba(103, 245, 188, 0.28); }
.featured-desc { color: var(--muted); margin-top: 12px; font-size: 13.5px; max-width: 60ch; }
.featured-actions { position: relative; margin-top: 18px; }
.carousel-dots { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 4px 0; }
.dot { width: 34px; height: 3px; border-radius: 2px; background: var(--line); transition: background .16s ease; }
.dot.is-on { background: var(--muted); }
.dot:hover { background: #3b4d5e; }
.dot.is-on { background: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent;
  transition: all .16s ease;
}
.btn.primary { background: var(--accent-strong); color: #06202f; }
.btn.primary:hover { background: #a5d3ff; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text-soft); }
.btn.ghost:hover { background: var(--raised); color: #fff; }
.btn.ghost.danger { color: #ff9aa4; border-color: rgba(255, 70, 85, 0.3); }
.btn.ghost.danger:hover { background: rgba(255, 70, 85, 0.12); }
.btn.lg { padding: 13px 26px; font-size: 15px; }

/* --------------------------------------------------------------- toolbar */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 24px; flex-wrap: wrap;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  color: var(--text-soft); font-size: 12.5px; font-weight: 500;
  transition: all .16s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.chip.is-active { background: var(--accent); color: #06202f; box-shadow: none; font-weight: 700; }
.chip b { font-variant-numeric: tabular-nums; opacity: .85; }
.chip-ico { display: flex; opacity: .85; }
.toolbar-right { display: flex; align-items: center; gap: 16px; }
.toggle-row { display: flex; gap: 8px; }
.toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
  transition: all .16s ease;
}
.toggle:hover { color: var(--text); border-color: #3b4d5e; }
.toggle.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.sort-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.select { width: auto; padding: 7px 12px; }

/* ----------------------------------------------------------------- lists */
.group-head {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 12px;
}
.group-head h3 { font-size: 18px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 14px; }
.ex-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.6);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.ex-card:hover { border-color: #3b4d5e; transform: translateY(-2px); background: rgba(28, 45, 64, 0.55); }
.ex-top { display: flex; align-items: center; justify-content: space-between; }
.ex-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--muted-2); letter-spacing: .06em; }
.fav-btn { color: var(--muted-2); display: flex; padding: 2px; border-radius: 4px; }
.fav-btn:hover { color: var(--mint); }
.fav-btn.is-on { color: var(--mint); }
.fav-btn.is-on svg { fill: var(--mint); }
.ex-title { font-size: 16.5px; line-height: 1.3; }
.ex-desc { color: var(--muted); font-size: 12.8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ex-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ex-actions { display: flex; gap: 8px; margin-top: 4px; }
.ex-actions .btn { flex: 1; padding: 9px 12px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state.big { padding: 64px 40px; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* ----------------------------------------------------------------- drills */
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 26px 28px; }
.drill-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.6); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .16s ease, transform .16s ease;
}
.drill-card:hover { border-color: #3b4d5e; transform: translateY(-2px); }
.drill-ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--signal-soft); color: #ff8a94;
}
.drill-card h3 { font-size: 18px; }
.drill-card p { color: var(--muted); font-size: 13px; }
.drill-cfg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cfg-row {
  display: flex; gap: 6px; align-items: baseline;
  padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px; color: var(--muted);
}
.cfg-row b { color: var(--text); font-size: 12.5px; }
.drill-card .btn { margin-top: 6px; }

/* -------------------------------------------------------------- community */
.comm-body { display: grid; grid-template-columns: 1fr 320px; gap: 22px; padding: 26px 28px; }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post {
  display: flex; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.6);
}
.post-av {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--raised); color: var(--accent); font-weight: 700; font-family: var(--font-display);
}
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.post-head b { font-size: 13.5px; }
.post-head span { font-size: 12px; color: var(--muted-2); }
.post-body { color: var(--text-soft); font-size: 13.5px; }
.post-foot { display: flex; gap: 16px; margin-top: 12px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 12.5px; }
.link-btn:hover { color: var(--accent); }
.comm-side { align-self: start; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.6); padding: 18px;
}
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { color: var(--muted-2); width: 18px; font-variant-numeric: tabular-nums; }
.lb-name { flex: 1; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row b { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- history */
.history-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; width: 100%; }
.stat-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.6); padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-ico { color: var(--accent); display: flex; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 24px; }
.rec-list { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rec-row {
  display: grid; grid-template-columns: 2fr 1fr 90px 90px 90px 1.2fr;
  gap: 12px; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.rec-row:last-child { border-bottom: 0; }
.rec-row:hover { background: rgba(255, 255, 255, 0.03); }
.rec-ex { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-date { color: var(--muted-2); font-size: 12px; text-align: right; }

/* --------------------------------------------------------------- settings */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; padding: 26px 28px; align-items: start; }
.settings-grid .panel h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 12px; }
.settings-grid .panel h3:first-child { margin-top: 0; }
.field { margin-bottom: 16px; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent); }
.slider-val { min-width: 46px; text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; }
.hint { color: var(--muted-2); font-size: 12px; margin-top: 6px; }
.switch-row { display: flex; gap: 18px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 13px; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 6px; border: 2px solid transparent; }
.swatch.is-on { border-color: #fff; }
.ch-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; background: #121a24; }
.ch-canvas { display: block; width: 100%; height: 140px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg-btn { padding: 8px 16px; color: var(--muted); font-size: 13px; }
.seg-btn.is-on { background: var(--accent); color: #06202f; font-weight: 700; }

/* ------------------------------------------------------------------ polls */
.poll-list { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px; max-width: 820px; }
.poll h3 { font-size: 17px; margin-bottom: 14px; text-transform: none; color: var(--text); letter-spacing: 0; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel);
  overflow: hidden; text-align: left;
}
.poll-opt:hover { border-color: #3b4d5e; }
.poll-opt.is-on { border-color: var(--accent); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(131, 197, 255, 0.16); z-index: 0; }
.poll-label, .poll-pct { position: relative; z-index: 1; }
.poll-label { flex: 1; font-size: 13.5px; }
.poll-pct { font-variant-numeric: tabular-nums; color: var(--accent); }
.poll-total { color: var(--muted-2); font-size: 12px; margin-top: 10px; }

/* ----------------------------------------------------------------- footer */
.footbar {
  position: sticky; bottom: 0; z-index: 25;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
  background: rgba(9, 13, 18, 0.95);
  border-top: 1px solid var(--line);
}
.foot-search-wrap { position: relative; display: flex; align-items: center; gap: 8px; width: 300px; }
.foot-search-wrap svg { position: absolute; left: 11px; color: var(--muted-2); pointer-events: none; }
.foot-search { padding-left: 32px; }
.foot-search-wrap kbd {
  position: absolute; right: 9px; padding: 1px 6px; border-radius: 4px;
  background: var(--raised); color: var(--muted-2); font-size: 11px; font-family: var(--font);
}
.foot-note { margin-left: auto; color: var(--muted-2); font-size: 12px; text-align: right; }

/* ----------------------------------------------------------------- modals */
#modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 11, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  width: min(520px, 100%);
  max-height: 86vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 17px; }
.icon-btn { display: flex; color: var(--muted); padding: 4px; border-radius: 5px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.help-body, .auth-body, .studio-body, .guide-body, .perf-body, .lb-body, .skill-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.help-body p, .studio-body p { color: var(--muted); font-size: 13.5px; }
.key-list { display: flex; flex-direction: column; gap: 8px; }
.key-list li { display: flex; gap: 14px; font-size: 13px; }
.key-list b { min-width: 90px; color: var(--accent); }
.guide-steps { display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.guide-steps li { counter-increment: s; display: flex; gap: 12px; color: var(--text-soft); font-size: 13.5px; }
.guide-steps li::before {
  content: counter(s); flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
}
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perf-verdict { padding: 10px; border-radius: var(--radius-sm); text-align: center; font-weight: 700; }
.perf-verdict.ok { background: rgba(103, 245, 188, .14); color: var(--mint); }
.perf-verdict.low { background: var(--signal-soft); color: #ff8a94; }
.lb-ex { color: var(--muted); font-size: 13px; }
.lb-list { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 6px 12px; }
.lb-row.is-you { color: var(--accent); }

/* ------------------------------------------------------------ oyun ekranı */
.game-overlay { position: fixed; inset: 0; z-index: 200; background: #05080c; }
.game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: none; }
.game-hud {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px;
}
.hud-left, .hud-right { display: flex; flex-direction: column; gap: 8px; }
.hud-right { align-items: flex-end; }
.hud-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(9, 13, 18, 0.6); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.hud-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hud-stat b { font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.hud-center { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); }
.hud-timer {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.hud-health {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(9, 13, 18, 0.6); border: 1px solid var(--line);
}
.hud-health b { font-family: var(--font-display); font-size: 18px; color: var(--mint); }

.game-start, .game-result {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(8px);
}
.game-start.hidden, .game-result.hidden { display: none; }
.game-start-inner, .result-inner {
  text-align: center; max-width: 520px; padding: 32px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.game-start-inner h2, .result-inner h2 { font-size: 27px; margin-bottom: 8px; }
.game-start-inner p { color: var(--muted); margin-bottom: 20px; }
.result-inner .result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0;
}
.result-inner .stat-card { background: var(--raised); }
.result-actions { display: flex; gap: 10px; justify-content: center; }
.new-best {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(103, 245, 188, .14); color: var(--mint); font-weight: 700; font-size: 13px;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .training-body { grid-template-columns: 1fr; }
  .map-side { position: static; }
  .map-list { flex-direction: row; overflow-x: auto; }
  .map-choice { min-width: 190px; }
  .comm-body { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 16px; position: static; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .topbar-right { flex-wrap: wrap; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 32px; }
  .hero-search { width: 100%; }
  .rail { top: 0; position: static; }
  .rec-row { grid-template-columns: 1fr 1fr; }
  .footbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .foot-search-wrap { width: 100%; }
  .foot-note { text-align: left; margin-left: 0; }
}

/* ------------------------------------------------- harita bazli sayfalama */
.group-head { flex-wrap: wrap; }
.page-ind {
  font-size: 12px; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.all-maps { margin-left: auto; color: var(--accent); }
.all-maps:hover { color: #a5d3ff; }
.ex-nav { display: flex; align-items: center; gap: 14px; padding: 14px 2px 4px; }
.nav-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: all .16s ease;
}
.nav-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.nav-arrow:disabled { opacity: .3; cursor: default; }
.nav-dots { display: flex; gap: 7px; }
.nav-dots .dot { width: 22px; }

/* --------------------------------------------------- nasil secilir bolumu */
.howto { margin-top: 14px; }
.howto > summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::before {
  content: "▶"; font-size: 10px; color: var(--accent); transition: transform .16s ease;
}
.howto[open] > summary::before { transform: rotate(90deg); }
.howto > summary:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.howto-body {
  margin-top: 10px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(17, 25, 35, .6);
}
.howto-body h4 { font-size: 14px; margin-bottom: 8px; }
.howto-body p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.howto-body p:last-child { margin-bottom: 0; }
.howto-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.howto-item { font-size: 12.5px; color: var(--muted); }
.howto-item b { display: block; color: var(--text-soft); font-size: 13px; margin-bottom: 3px; }

/* ------------------------------------------------- harita kucuk resmi tonu */
.map-thumb-img { filter: brightness(.86) saturate(.92); }
