/* KelimeWar — aydınlık, sade, modern uygulama teması (mobil öncelikli) */

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280; /* beyaz üstünde 4,8:1 */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff4ff;
  --primary-ring: rgba(37, 99, 235, 0.18);
  --green: #22c55e;
  --green-dark: #15803d;
  --green-soft: #ecfdf3;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --amber-soft: #fffbeb;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 16px;
  --maxw: 1040px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: contain; /* maç sırasında yanlışlıkla aşağı çekip yenilemeyi önler */
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 {
  font-size: clamp(1.75rem, 5.2vw, 2.5rem);
  font-weight: 800;
  overflow-wrap: anywhere; /* uzun kullanıcı adları dar ekranda taşmasın */
}
h2 {
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  font-weight: 800;
}
h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 0.8em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--primary-ring);
  outline-offset: 2px;
}
/* Sayfa geçişinde odak ana alana taşınır (ekran okuyucular için); çerçeve göstermeye gerek yok. */
#view:focus,
#view:focus-visible {
  outline: none;
}

.hidden {
  display: none !important;
}
.muted {
  color: var(--text-2);
}
.faint {
  color: var(--text-3);
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icon {
  flex: none;
  vertical-align: -0.2em;
}
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.deck {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ---------- Üst çubuk ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  text-decoration: none !important;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.brand-name em {
  font-style: normal;
  color: var(--primary);
}
.brand-line {
  display: none;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav a,
.topnav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.topnav a:hover,
.topnav button:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.topnav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}
.topnav .nav-label {
  display: none;
}
.topnav .nav-short {
  display: inline;
}
@media (min-width: 640px) {
  .topnav .nav-label {
    display: inline;
  }
  .topnav .nav-short {
    display: none;
  }
}
@media (max-width: 459px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .topnav a,
  .topnav button {
    padding: 6px 7px;
    font-size: 0.82rem;
  }
  .topnav .nav-hide-sm {
    display: none;
  }
}

/* Ses: hoparlör (tek dokunuş sessiz/açık) ve seviye kaydırıcısı */
.sound-ctl {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.sound-pop {
  display: inline-flex;
  align-items: center;
}
.sound-range {
  width: 84px;
  accent-color: var(--primary);
  cursor: pointer;
}
.sound-mute {
  display: none;
}
/* Dar ekranda kaydırıcı hoparlöre dokununca açılan küçük pencerede */
@media (max-width: 639px) {
  .sound-pop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  .sound-ctl.open .sound-pop {
    display: flex;
  }
  .sound-pop .sound-range {
    width: 140px;
  }
  .sound-mute {
    display: inline-flex;
    white-space: nowrap;
  }
}
button.sound-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
button.sound-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}
button.sound-toggle[aria-pressed='true'] {
  color: var(--red-dark);
}

/* ---------- Sayfa düzeni ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  outline: none;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 50vh;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row.end {
  justify-content: flex-end;
}
.row.between {
  justify-content: space-between;
}
.grow {
  flex: 1 1 auto;
  min-width: 0;
}
.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card.tight {
  padding: 14px 16px;
}
.card > h3:first-child {
  margin: 0 0 12px;
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.08s;
}
.btn:hover:not([disabled]) {
  background: var(--surface-2);
  color: var(--text);
}
.btn:active:not([disabled]) {
  transform: scale(0.98);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover:not([disabled]) {
  background: var(--primary-hover);
  color: #fff;
}
.btn-dark {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.btn-dark:hover:not([disabled]) {
  background: #1f2937;
  color: #fff;
}
.btn-soft {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary-hover);
}
.btn-soft:hover:not([disabled]) {
  background: #dfe9ff;
  color: var(--primary-hover);
}
.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-danger:hover:not([disabled]) {
  background: var(--red-dark);
  color: #fff;
}
.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}
.btn-amber:hover:not([disabled]) {
  background: #d97706;
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover:not([disabled]) {
  background: #eceff5;
  color: var(--text);
}
.btn-lg {
  min-height: 54px;
  font-size: 1.02rem;
  padding: 12px 22px;
  border-radius: 14px;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- Form ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px; /* iOS'ta odaklanınca yakınlaştırmayı önler */
  font-weight: 500;
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  /* 2 piksellik koyu mavi kenar + yumuşak halka: odak her zeminde seçilsin */
  box-shadow: 0 0 0 1px var(--primary), 0 0 0 5px var(--primary-ring);
}
.input::placeholder {
  color: var(--text-3);
}
.input.code {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 800;
  font-size: 1.3rem;
  text-align: center;
  padding-left: calc(14px + 0.4em);
}
.form-error {
  color: var(--red-dark);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.3em;
  margin: 0;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #eceff5;
}
.tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font-weight: 700;
  cursor: pointer;
}
.tabs button[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg button {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.seg button:disabled {
  cursor: default;
}
.seg button:disabled[aria-pressed='false'] {
  opacity: 0.6;
}

/* ---------- Avatar, rozet ---------- */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--primary));
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}
.avatar-md {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}
.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}
.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 2.1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0f4;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge.gold,
.badge.amber {
  background: var(--amber-soft);
  color: var(--amber-dark);
}
.badge.red {
  background: var(--red-soft);
  color: var(--red-dark);
}
.badge.green {
  background: var(--green-soft);
  color: var(--green-dark);
}
.badge.blue,
.badge.ink {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

/* ---------- Bildirim, iletişim kutusu ---------- */
#toasts {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.toast.in {
  opacity: 1;
  transform: none;
}
.toast-error {
  background: var(--red-dark);
}
.toast-success {
  background: var(--green-dark);
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(17, 24, 39, 0.45);
}
.dialog {
  width: min(100%, 420px);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

/* ---------- Ana sayfa ---------- */
.front-head {
  padding-bottom: 4px;
}
.front-head h1 {
  margin: 6px 0 8px;
}
.front-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .front-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}
.join-row {
  display: flex;
  gap: 8px;
}
.join-row .input {
  flex: 1;
  min-width: 0;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.stat {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ---------- Liste / tablo ---------- */
.list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none !important;
}
a.list-item:hover {
  background: var(--surface-2);
  color: inherit;
}
.list-item .rank {
  min-width: 34px;
  flex: none;
  text-align: center;
  font-weight: 800;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.list-item.me {
  background: var(--primary-soft);
}
.list-item .name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.list-item .sub {
  font-size: 0.82rem;
  color: var(--text-2);
}
.list-item .score {
  margin-left: auto;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.medal-1 .rank {
  color: var(--amber);
}
.empty {
  text-align: center;
  color: var(--text-2);
  padding: 24px 8px;
}

/* ---------- Nasıl oynanır ---------- */
.howto ol,
.howto ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.howto li {
  margin-bottom: 0.55em;
}
.howto .example {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 1em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 700;
}
.noscript {
  text-align: center;
  padding: 40px;
}

/* ---------- Oda: lobi, sohbet, tepkiler ---------- */
.room {
  position: relative;
}
.conn-banner {
  position: sticky;
  top: 64px;
  z-index: 15;
  margin: -8px 0 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.invite {
  text-align: center;
}
.code-tiles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 4px;
}
.code-tiles span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  font-weight: 800;
  font-size: 1.9rem;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}
.dot.on {
  background: var(--green);
}
.waiting {
  text-align: center;
  color: var(--text-2);
  font-weight: 600;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  width: 100%;
}
.host-crown {
  display: inline-flex;
  vertical-align: -2px;
  margin-left: 6px;
  color: var(--amber);
}
.list-item .grow {
  min-width: 0;
}
.vote-open {
  margin-top: 10px;
}
.candidate-picker {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.candidate-picker p {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.vote-card {
  border-color: #fcd34d;
  background: var(--amber-soft);
}
.vote-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vote-card p {
  margin: 8px 0 4px;
  font-weight: 600;
}
.vote-card .vote-rule {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 500;
}
.vote-tally {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Başka cihazda devam kodu */
.transfer-code {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

/* Açık odalar listesi */
.room-item .name .tag {
  margin-left: 6px;
}
.code-chip {
  flex: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.empty-rooms {
  padding: 18px 8px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.92rem;
}
@media (max-width: 480px) {
  .room-item .code-chip {
    display: none;
  }
}
.chat-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  height: 190px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}
.chat-list li {
  padding: 3px 0;
}
.chat-sys {
  color: var(--text-3);
  font-size: 0.86rem;
}
.react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.react-bar button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.1s;
}
.react-bar button:hover {
  background: var(--surface-2);
}
.react-bar button:active {
  transform: scale(0.88);
}
.react-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.react-float {
  position: absolute;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatUp 2.6s ease-out forwards;
}
.react-float span {
  font-size: 2.3rem;
}
.react-float small {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0.3;
  }
  12% {
    transform: translateY(-30px) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translateY(-55vh) scale(1);
    opacity: 0;
  }
}

/* ---------- Sonuç ekranı ---------- */
.headline {
  text-align: center;
  padding: 6px 0 2px;
}
.headline h1 {
  margin: 6px 0;
}
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 8px 0 0;
}
.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(29vw, 150px);
  animation: rise 0.55s backwards cubic-bezier(0.2, 1.2, 0.4, 1);
}
.podium-step.place-1 {
  animation-delay: 1s;
}
.podium-step.place-2 {
  animation-delay: 0.5s;
}
.podium-name {
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.podium-block {
  width: 100%;
  display: grid;
  place-items: start center;
  padding-top: 10px;
  border-radius: 14px 14px 0 0;
  background: #e8edf8;
  color: var(--text-2);
  font-weight: 800;
  font-size: 1.4rem;
}
.place-1 .podium-block {
  height: 116px;
  background: var(--primary);
  color: #fff;
}
.place-2 .podium-block {
  height: 82px;
}
.place-3 .podium-block {
  height: 58px;
}
.podium-base {
  height: 4px;
  border-radius: 4px;
  background: var(--border-strong);
  max-width: 520px;
  margin: 0 auto;
}
@keyframes rise {
  from {
    transform: translateY(40px);
    opacity: 0.3;
  }
}
.solo-score .big-score {
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.answers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .answers {
    grid-template-columns: 1fr 1fr;
  }
}
.answers li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.answers b {
  letter-spacing: 0.06em;
  font-weight: 800;
}
.answers .num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.75rem;
  font-weight: 800;
}
.highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.highlights li {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #78350f;
  font-weight: 600;
}

/* ---------- Profil ---------- */
.press-card {
  display: flex;
  gap: 18px;
  align-items: center;
}
.press-card .press-no {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Bunlar animasyonun sonunda kaybolur; hareketsiz gösterilip zamanlayıcıyla kaldırılır. */
  .react-float,
  .score-delta {
    animation: none !important;
  }
}

/* Liderler: kaydırılabilen sekmeler, ilk üç kürsüsü, "Beni bul" vurgusu */
.seg-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.seg-scroll::-webkit-scrollbar {
  display: none;
}
.seg-scroll button {
  flex: none;
}
.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
}
.lb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.lb-step.empty {
  visibility: hidden;
}
.lb-medal {
  font-size: 1.5rem;
  line-height: 1;
}
.lb-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}
.lb-score {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.lb-block {
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: 12px 12px 4px 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}
.lb-step.place-1 .lb-block {
  height: 92px;
  background: var(--primary);
  color: #fff;
}
.lb-step.place-2 .lb-block {
  height: 68px;
}
.lb-step.place-3 .lb-block {
  height: 50px;
}
.lb-step.me .lb-name {
  color: var(--primary);
}
.flash {
  animation: flash 1.6s ease;
}
@keyframes flash {
  0%,
  60% {
    box-shadow: 0 0 0 3px var(--primary);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
