:root {
  --bg: #06111c;
  --panel: rgba(12, 29, 45, .78);
  --panel-strong: rgba(15, 37, 56, .92);
  --line: rgba(255, 255, 255, .1);
  --text: #f4f8fb;
  --muted: #8ea4b7;
  --blue: #55b7ff;
  --blue-soft: #8dd2ff;
  --coral: #ff7b78;
  --coral-soft: #ffaaa8;
  --mint: #63f5c3;
  --gold: #ffd67b;
  --danger: #ff6478;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(42, 145, 223, .16), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(255, 100, 112, .12), transparent 32%),
    linear-gradient(155deg, #07131f 0%, #081925 50%, #06101a 100%);
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .2;
  pointer-events: none;
  z-index: 0;
}
.ambient-a { left: -160px; top: 16%; background: #008cff; }
.ambient-b { right: -170px; bottom: 0; background: #ff596d; }

.noise {
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.app-shell {
  width: min(1440px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 28px;
  position: relative;
  z-index: 2;
}

.glass {
  background: linear-gradient(145deg, rgba(16, 37, 56, .88), rgba(7, 23, 36, .76));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar {
  height: 72px;
  padding: 0 20px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.topbar-left { display:flex; align-items:center; gap:14px; min-width:0; }
.portal-home {
  min-height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  border-radius:13px;
  border:1px solid rgba(99,245,195,.28);
  background:linear-gradient(180deg,#146e5a,#0b4d48);
  box-shadow:0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.13);
  transition:transform .18s ease,filter .18s ease;
}
.portal-home:hover { transform:translateY(-1px); filter:brightness(1.08); }
.portal-home svg { width:17px; height:17px; }

.brand {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand strong { display: block; letter-spacing: -.02em; font-size: 18px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.brand-mark {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 200px;
}

.brand-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 20px rgba(99,245,195,.8);
}

.brand-orbit {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(99,245,195,.5);
  border-radius: 50%;
}
.orbit-one { transform: rotateX(60deg); }
.orbit-two { transform: rotateY(60deg); border-color: rgba(85,183,255,.5); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mode-chip, .secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  color: #c7d7e3;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 12px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(99,245,195,.1);
}
.icon-button {
  width: 38px;
  height: 38px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

.view { display: none; animation: viewIn .45s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.setup-grid {
  min-height: calc(100vh - 120px);
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  gap: 18px;
}

.hero-panel, .lobby-panel, .play-panel, .history-panel, .winner-card {
  border-radius: var(--radius);
}

.hero-panel {
  min-height: 690px;
  padding: clamp(30px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

.eyebrow, .step-label {
  color: var(--mint);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .18em;
}

.hero-panel h1 {
  max-width: 760px;
  margin: 16px 0 16px;
  font-size: clamp(48px, 6.3vw, 92px);
  line-height: .94;
  letter-spacing: -.065em;
}
.hero-panel h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--blue-soft), var(--mint));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy {
  max-width: 640px;
  margin: 0;
  color: #a9bdcc;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
}

.hero-stats {
  margin-top: 28px;
  display: flex;
  gap: 10px;
}
.hero-stats article {
  min-width: 112px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.hero-stats strong { display: block; font-size: 24px; }
.hero-stats span { color: var(--muted); font-size: 11px; }

.frequency-stage {
  height: 270px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99,245,195,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  perspective: 900px;
}

.pulse-grid {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: rotateX(62deg) scale(1.4) translateY(30%);
  transform-origin: center bottom;
}

.avatar {
  position: absolute;
  top: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-weight: 900;
  font-size: 22px;
  transform: translateY(-50%) rotateY(8deg);
  box-shadow: 0 18px 35px rgba(0,0,0,.28);
}
.avatar-left {
  left: 10%;
  background: linear-gradient(145deg, #5cbcff, #1c6fa8);
  box-shadow: 0 18px 42px rgba(66,167,236,.25);
}
.avatar-right {
  right: 10%;
  background: linear-gradient(145deg, #ff8b86, #b74052);
  transform: translateY(-50%) rotateY(-8deg);
  box-shadow: 0 18px 42px rgba(255,102,112,.23);
}

.frequency-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99,245,195,.24), rgba(8,25,37,.95) 62%);
  box-shadow: 0 0 60px rgba(99,245,195,.16);
}
.core-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(99,245,195,.4);
  border-radius: 50%;
  animation: orbitSpin 7s linear infinite;
}
.ring-b { inset: -22px; transform: rotateX(63deg); border-color: rgba(85,183,255,.34); animation-duration: 9s; }
.ring-c { inset: 10px; transform: rotateY(67deg); border-color: rgba(255,123,120,.3); animation-duration: 5s; }
.core-word { font-size: 38px; font-weight: 900; color: var(--mint); text-shadow: 0 0 20px rgba(99,245,195,.55); }

.signal {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(99,245,195,.85), transparent);
  box-shadow: 0 0 16px rgba(99,245,195,.45);
  animation: signalPulse 1.8s ease-in-out infinite;
}
.signal-left { left: 18%; }
.signal-right { right: 18%; }
@keyframes signalPulse { 0%,100% { opacity: .25; transform: scaleX(.82); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.floating-word {
  position: absolute;
  padding: 7px 11px;
  color: #b7cbda;
  background: rgba(4,16,26,.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  animation: floatWord 4s ease-in-out infinite;
}
.word-a { left: 27%; top: 22%; }
.word-b { right: 26%; bottom: 20%; animation-delay: -1.2s; }
.word-c { left: 48%; top: 10%; color: var(--mint); animation-delay: -2.3s; }
@keyframes floatWord { 50% { transform: translateY(-7px) rotate(1deg); } }

.lobby-panel {
  min-height: 690px;
  padding: 26px;
}
.panel-heading, .history-header, .round-header, .team-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading h2, .history-header h3 { margin: 7px 0 0; letter-spacing: -.035em; }
.panel-heading h2 { font-size: 27px; }
.secure-badge { color: var(--mint); }

.team-setup {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.028);
}
.team-blue { box-shadow: inset 3px 0 0 rgba(85,183,255,.8); }
.team-coral { box-shadow: inset 3px 0 0 rgba(255,123,120,.8); }

.team-emblem, .mini-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  font-weight: 900;
  border-radius: 14px;
}
.team-emblem { width: 45px; height: 45px; }
.team-blue .team-emblem, .score-blue .mini-emblem { background: linear-gradient(145deg, #58baff, #2379b8); }
.team-coral .team-emblem, .score-coral .mini-emblem { background: linear-gradient(145deg, #ff8a84, #bc4655); }
.team-title-row label { flex: 1; }
label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
input, select {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(3,14,23,.5);
  transition: border-color .2s, background .2s, transform .2s;
}
input:hover, select:hover { border-color: rgba(255,255,255,.18); }
input:focus, select:focus { background: rgba(4,18,28,.8); }
select option { background: #0d2435; }

.player-pair, .settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.player-pair { margin-top: 13px; }
.settings-row { margin-top: 20px; }

.versus-divider {
  height: 30px;
  display: grid;
  place-items: center;
  position: relative;
}
.versus-divider::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.versus-divider span {
  z-index: 1;
  padding: 4px 10px;
  color: #647f93;
  background: #0b2030;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.primary-button, .secondary-button {
  min-height: 52px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.primary-button {
  width: 100%;
  margin-top: 20px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #032017;
  border: 0;
  background: linear-gradient(100deg, var(--mint), #71dfff);
  box-shadow: 0 15px 34px rgba(99,245,195,.18);
}
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.primary-button:active, .secondary-button:active { transform: translateY(0); }
.button-arrow { font-size: 22px; }

.secondary-button {
  padding: 0 22px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.setup-note {
  margin: 12px 2px 0;
  color: #6f879a;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

/* GAME */
.scoreboard {
  min-height: 84px;
  margin-top: 18px;
  padding: 10px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: stretch;
}
.score-team {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 16px;
  opacity: .62;
  transition: opacity .25s, background .25s, transform .25s;
}
.score-team.active {
  opacity: 1;
  background: rgba(255,255,255,.04);
  transform: translateY(-2px);
}
.score-coral { justify-content: flex-end; text-align: right; }
.mini-emblem { width: 43px; height: 43px; }
.score-name { display: block; color: #a9bdcc; font-size: 12px; }
.score-value { display: block; line-height: 1; font-size: 28px; }
.turn-pill {
  margin-left: auto;
  display: none;
  padding: 5px 8px;
  color: #001c13;
  background: var(--mint);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}
.score-coral .turn-pill { margin-left: 0; margin-right: auto; }
.score-team.active .turn-pill { display: inline-flex; }
.score-center {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  border-left: 1px solid rgba(255,255,255,.07);
  border-right: 1px solid rgba(255,255,255,.07);
  font-size: 9px;
  letter-spacing: .08em;
}
.score-center strong { color: var(--text); font-size: 24px; letter-spacing: normal; }

.game-grid {
  min-height: calc(100vh - 196px);
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
}
.play-panel { padding: 24px; overflow: hidden; }
.history-panel { padding: 22px; }

.round-header h2 { margin: 8px 0 5px; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.045em; }
.round-header p { margin: 0; color: var(--muted); font-size: 12px; }

.timer-wrap {
  width: 98px;
  height: 98px;
  position: relative;
  flex: 0 0 auto;
}
.timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-track, .timer-progress {
  fill: none;
  stroke-width: 7;
}
.timer-track { stroke: rgba(255,255,255,.08); }
.timer-progress {
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px rgba(99,245,195,.45));
  transition: stroke-dashoffset .25s linear, stroke .25s;
}
.timer-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.timer-content strong { line-height: .9; font-size: 31px; }
.timer-content span { color: var(--muted); font-size: 10px; }

.lives-bar {
  min-height: 44px;
  margin: 16px 0;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.life {
  width: 27px;
  height: 25px;
  position: relative;
  transform: rotate(-45deg);
  border-radius: 4px 0 5px 0;
  background: var(--danger);
  box-shadow: 0 0 13px rgba(255,100,120,.27);
  transition: opacity .3s, transform .3s, filter .3s;
}
.life::before, .life::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 25px;
  border-radius: 50%;
  background: inherit;
}
.life::before { top: -13px; left: 0; }
.life::after { left: 13px; top: 0; }
.life.lost { opacity: .12; filter: grayscale(1); transform: rotate(-45deg) scale(.78); box-shadow: none; }

.input-stage {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  perspective: 1200px;
}

.word-card {
  min-height: 245px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  box-shadow: 0 22px 46px rgba(0,0,0,.23);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card-left { transform: rotateY(4deg); box-shadow: -18px 23px 50px rgba(0,0,0,.24); }
.card-right { transform: rotateY(-4deg); box-shadow: 18px 23px 50px rgba(0,0,0,.24); }
.word-card.locked {
  border-color: rgba(99,245,195,.36);
  box-shadow: 0 0 0 1px rgba(99,245,195,.07), 0 22px 46px rgba(0,0,0,.23);
}
.word-card.match { animation: matchCard .7s ease both; }
.word-card.miss { animation: missCard .5s ease both; }
@keyframes matchCard { 50% { transform: translateY(-10px) rotateY(0) scale(1.02); border-color: var(--mint); } }
@keyframes missCard { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

.player-card-top { display: flex; align-items: center; gap: 12px; }
.player-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue-soft);
  background: rgba(85,183,255,.1);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 900;
}
.card-right .player-index { color: var(--coral-soft); background: rgba(255,123,120,.1); }
.player-card-top strong { display: block; }
.player-card-top small { color: var(--muted); font-size: 10px; }

.word-input-wrap { margin-top: 34px; position: relative; }
.word-input-wrap input {
  height: 58px;
  padding-right: 42px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 800;
}
.word-input-wrap input.masked {
  color: transparent;
  text-shadow: 0 0 9px rgba(255,255,255,.7);
}
.lock-indicator {
  position: absolute;
  right: 16px;
  top: 50%;
  color: #455e72;
  transform: translateY(-50%);
  transition: color .2s, text-shadow .2s;
}
.word-card.locked .lock-indicator { color: var(--mint); text-shadow: 0 0 12px rgba(99,245,195,.8); }

.submit-word {
  width: 100%;
  height: 43px;
  margin-top: 12px;
  cursor: pointer;
  color: #dbe8f1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 800;
}
.submit-word:hover { background: rgba(255,255,255,.08); }
.submit-word:disabled { cursor: default; color: var(--mint); opacity: .7; }

.sync-core {
  width: 114px;
  height: 114px;
  position: relative;
  display: grid;
  place-items: center;
}
.sync-ring {
  position: absolute;
  border: 1px solid rgba(99,245,195,.22);
  border-radius: 50%;
  animation: syncRotate 6s linear infinite;
}
.sync-1 { inset: 0; }
.sync-2 { inset: 13px; border-color: rgba(85,183,255,.22); animation-direction: reverse; animation-duration: 4s; }
.sync-3 { inset: 26px; border-color: rgba(255,123,120,.22); animation-duration: 3s; }
.sync-center {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #0c2434;
  box-shadow: inset 0 0 20px rgba(99,245,195,.06), 0 0 28px rgba(99,245,195,.08);
}
.sync-center span { color: var(--mint); font-size: 22px; }
.sync-center small { color: var(--muted); font-size: 7px; font-weight: 900; }
.sync-core.success .sync-ring { border-color: var(--mint); animation-duration: .7s; }
.sync-core.fail .sync-ring { border-color: var(--danger); }
@keyframes syncRotate { to { transform: rotate(360deg); } }

.status-banner {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 16px;
  background: rgba(255,255,255,.028);
}
.status-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: rgba(99,245,195,.08);
  border-radius: 12px;
  font-size: 20px;
}
.status-banner strong { display: block; font-size: 13px; }
.status-banner p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }

.attempt-badge {
  padding: 6px 9px;
  color: var(--mint);
  background: rgba(99,245,195,.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}
.empty-history {
  min-height: 285px;
  padding: 45px 10px 20px;
  text-align: center;
}
.empty-history strong { display: block; margin-top: 20px; font-size: 14px; }
.empty-history p { max-width: 245px; margin: 8px auto 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.empty-orbit {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.empty-orbit::before, .empty-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.empty-orbit::before { inset: 15px; }
.empty-orbit::after { inset: 30px; }
.empty-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(99,245,195,.5);
}
.empty-orbit span:nth-child(1) { left: 6px; top: 43px; }
.empty-orbit span:nth-child(2) { right: 17px; top: 15px; background: var(--blue); }
.empty-orbit span:nth-child(3) { right: 13px; bottom: 16px; background: var(--coral); }

.attempt-history {
  max-height: 360px;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 5px;
}
.attempt-item {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.attempt-item.is-new { animation: attemptIn .35s ease both; }
@keyframes attemptIn { from { opacity: 0; transform: translateY(8px); } }
.attempt-top { display: flex; align-items: center; justify-content: space-between; color: #6f879a; font-size: 9px; }
.attempt-words {
  margin-top: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.attempt-words strong {
  min-width: 0;
  padding: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  font-size: 11px;
}
.attempt-words span { color: #526c80; text-align: center; }
.attempt-item.success { border-color: rgba(99,245,195,.28); background: rgba(99,245,195,.05); }
.attempt-item.success .attempt-words strong { color: var(--mint); }

.rules-mini {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.rules-mini div { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.rules-mini span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--mint);
  background: rgba(99,245,195,.08);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
}
.rules-mini p { margin: 0; color: var(--muted); font-size: 9px; }

/* Winner */
#winnerView { min-height: calc(100vh - 92px); place-items: center; }
#winnerView.active { display: grid; }
.winner-card {
  width: min(680px, 100%);
  padding: 48px;
  text-align: center;
}
.winner-crown {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #4a3200;
  background: linear-gradient(145deg, #ffe59d, #ffc34f);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(255,198,79,.2);
  font-size: 25px;
}
.winner-card h2 { margin: 14px 0 8px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.055em; }
.winner-card > p { margin: 0; color: var(--muted); }
.winner-orb {
  width: 210px;
  height: 210px;
  margin: 34px auto;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,245,195,.16), transparent 66%);
}
.winner-orb strong { z-index: 2; font-size: 30px; }
.winner-ring {
  position: absolute;
  border: 1px solid rgba(99,245,195,.4);
  border-radius: 50%;
  animation: winnerSpin 8s linear infinite;
}
.winner-ring.r1 { inset: 4px; }
.winner-ring.r2 { inset: 30px; transform: rotateX(65deg); border-color: rgba(85,183,255,.4); animation-duration: 5s; }
.winner-ring.r3 { inset: 58px; transform: rotateY(65deg); border-color: rgba(255,123,120,.4); animation-duration: 3s; }
@keyframes winnerSpin { to { transform: rotate(360deg); } }
.winner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.winner-actions .primary-button { margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 13px 16px;
  color: #06151e;
  background: var(--mint);
  border-radius: 13px;
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .setup-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: auto; }
  .game-grid { grid-template-columns: 1fr; }
  .history-panel { min-height: auto; }
  .attempt-history { max-height: none; }
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 1440px); padding-top: 10px; }
  .topbar { height: 64px; padding: 0 14px; }
  .mode-chip { display: none; }
  .setup-grid { padding-top: 10px; }
  .hero-panel, .lobby-panel, .play-panel, .history-panel { border-radius: 20px; }
  .hero-panel { padding: 26px 20px; }
  .hero-panel h1 { font-size: 49px; }
  .hero-stats { gap: 7px; }
  .hero-stats article { min-width: 0; flex: 1; padding: 12px 10px; }
  .frequency-stage { height: 220px; }
  .avatar { width: 56px; height: 56px; border-radius: 18px; }
  .floating-word { display: none; }

  .lobby-panel { padding: 18px; }
  .panel-heading { align-items: flex-start; }
  .secure-badge { display: none; }
  .player-pair, .settings-row { grid-template-columns: 1fr; }

  .scoreboard { grid-template-columns: 1fr 66px 1fr; min-height: 74px; }
  .score-team { padding: 8px; gap: 8px; }
  .mini-emblem { width: 34px; height: 34px; }
  .turn-pill { display: none !important; }
  .score-center { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .score-center span, .score-center small { font-size: 7px; }
  .score-center strong { font-size: 18px; }
  .game-grid { min-height: auto; }

  .play-panel { padding: 16px; }
  .round-header { align-items: flex-start; }
  .round-header h2 { font-size: 25px; }
  .timer-wrap { width: 76px; height: 76px; }
  .timer-content strong { font-size: 25px; }

  .input-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sync-core {
    width: 78px;
    height: 78px;
    margin: -2px auto;
  }
  .word-card { min-height: 205px; }
  .card-left, .card-right { transform: none; }
  .word-input-wrap { margin-top: 24px; }
  .status-banner { margin-top: 12px; }
  .winner-card { padding: 34px 18px; }
  .winner-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


@media (max-width:760px) {
  .app-shell { width:min(100% - 18px, 1440px); padding-top:9px; }
  .topbar { height:auto; min-height:64px; padding:8px 10px; gap:8px; }
  .topbar-left { gap:8px; min-width:0; }
  .portal-home { width:40px; height:40px; min-height:40px; padding:0; justify-content:center; }
  .portal-home span { display:none; }
  .brand-mark { width:36px; height:36px; }
  .brand strong { font-size:15px; }
  .brand small { font-size:9px; }
  .mode-chip { display:none; }
}

/* v2 portal integration: compact 100% desktop layout */
@media (min-width: 1100px) and (min-height: 700px) {
  .app-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: 0;
    padding: 16px 0;
  }

  .topbar {
    height: 62px;
    padding: 0 16px;
    border-radius: 20px;
  }

  .portal-home {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong { font-size: 17px; }
  .brand small { font-size: 10px; }

  .mode-chip {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .setup-grid {
    min-height: 0;
    height: calc(100vh - 110px);
    max-height: 690px;
    padding-top: 14px;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
    gap: 14px;
  }

  .hero-panel,
  .lobby-panel {
    min-height: 0;
    height: 100%;
    border-radius: 24px;
  }

  .hero-panel {
    padding: 34px 42px 28px;
  }

  .hero-panel h1 {
    margin: 13px 0 12px;
    font-size: clamp(48px, 5vw, 74px);
    line-height: .94;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-stats {
    margin-top: 20px;
  }

  .hero-stats article {
    min-width: 96px;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 10px; }

  .frequency-stage {
    height: 218px;
    margin-top: 20px;
    border-radius: 20px;
  }

  .avatar {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    font-size: 20px;
  }

  .frequency-core {
    width: 96px;
    height: 96px;
  }

  .core-word { font-size: 32px; }

  .lobby-panel {
    padding: 22px;
    overflow: hidden;
  }

  .panel-heading h2 {
    margin-top: 5px;
    font-size: 24px;
  }

  .team-setup {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .team-emblem {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  label span {
    margin-bottom: 5px;
    font-size: 10px;
  }

  input,
  select {
    height: 40px;
    border-radius: 11px;
  }

  .player-pair { margin-top: 9px; }
  .settings-row { margin-top: 13px; }

  .versus-divider { height: 24px; }

  .primary-button {
    min-height: 48px;
    margin-top: 13px;
    border-radius: 13px;
  }

  .setup-note {
    margin-top: 8px;
    font-size: 9px;
    line-height: 1.35;
  }
}

@media (min-width: 1100px) and (max-height: 760px) {
  .setup-grid {
    height: auto;
    min-height: 620px;
  }

  .hero-panel,
  .lobby-panel {
    height: 620px;
  }

  .hero-panel {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .hero-panel h1 { font-size: 58px; }
  .frequency-stage { height: 190px; margin-top: 16px; }
  .hero-stats { margin-top: 16px; }

  .lobby-panel { padding: 18px; }
  .team-setup { margin-top: 11px; padding: 12px; }
  .settings-row { margin-top: 10px; }
  .primary-button { margin-top: 10px; }
}

/* Online room layer */
.play-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}
.play-mode-tabs button {
  min-height: 40px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 850;
  border: 0;
  border-radius: 11px;
  background: transparent;
}
.play-mode-tabs button.active {
  color: #061a1a;
  background: linear-gradient(90deg, var(--mint), #74d9ff);
  box-shadow: 0 8px 22px rgba(62,215,181,.18);
}
.setup-mode-panel { display: none; }
.setup-mode-panel.active { display: block; }
.online-connect-panel,
.online-lobby {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.online-intro h3 { margin: 6px 0 6px; font-size: 20px; }
.online-intro p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.online-field { display: block; }
.online-action-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 9px;
  margin-top: 10px;
}
.online-action-grid .primary-button { margin-top: 0; }
.join-room-box { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.join-room-box input { text-transform: uppercase; letter-spacing: .16em; font-weight: 900; }
.secondary-button {
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.firebase-status { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.room-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.room-toolbar strong { display: block; margin-top: 3px; font-size: 22px; letter-spacing: .16em; }
.room-toolbar-actions { display: flex; gap: 7px; }
.mini-button {
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
  color: #dcebf3;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
}
.mini-button.danger { color: #ffd4d5; border-color: rgba(255,100,120,.24); }
.online-team-board { display: grid; gap: 8px; margin-top: 12px; }
.online-drop-zone {
  min-height: 84px;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.online-drop-zone.drag-over { border-color: var(--mint); background: rgba(99,245,195,.08); transform: translateY(-1px); }
.waiting-zone { min-height: 70px; }
.drop-zone-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.drop-zone-heading span,
.online-team-name span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.drop-zone-heading small { color: #667e91; font-size: 8px; }
.online-team-name { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; }
.online-team-name input { height: 34px; }
.online-player-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.online-player-card {
  min-height: 44px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(3,15,25,.54);
  user-select: none;
}
.online-player-card[draggable="true"] { cursor: grab; }
.online-player-card.dragging { opacity: .45; }
.online-player-card.is-me { border-color: rgba(99,245,195,.42); }
.online-player-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #061a1a;
  font-size: 10px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--mint), var(--blue));
}
.online-player-card strong { display: block; overflow: hidden; color: #edf8fb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.online-player-card small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }
.drag-handle { color: #668398; letter-spacing: -3px; }
.online-empty-slot { min-height: 38px; display: grid; place-items: center; color: #5e7587; font-size: 9px; border-radius: 10px; background: rgba(255,255,255,.02); }
.team-capacity { display: block; margin-top: 6px; color: #61798c; font-size: 8px; text-align: right; }
.online-settings-row { margin-top: 9px; }
.online-lobby > .primary-button { margin-top: 9px; }

/* Keep the setup screen compact at browser zoom 100%. */
@media (min-width: 1100px) and (min-height: 700px) {
  .play-mode-tabs { margin-top: 10px; }
  .online-connect-panel,
  .online-lobby { margin-top: 10px; padding: 12px; }
  .online-team-board { margin-top: 9px; gap: 6px; }
  .online-drop-zone { min-height: 70px; padding: 8px; }
  .online-player-card { min-height: 38px; padding: 4px 7px; }
  .online-player-avatar { width: 26px; height: 26px; }
  .online-team-name input { height: 31px; }
}

@media (max-width: 760px) {
  .online-action-grid { grid-template-columns: 1fr; }
  .join-room-box { grid-template-columns: 1fr; }
  .room-toolbar { align-items: flex-start; flex-direction: column; }
  .online-player-list { grid-template-columns: 1fr; }
  .online-team-name { grid-template-columns: 1fr; }
}

/* Performance: keep the glass appearance without a costly full-strength blur. */
.glass {
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
@media (prefers-reduced-motion: reduce) {
  .ambient { filter: blur(70px); }
}
@media (min-width: 1100px) and (min-height: 700px) {
  #onlineSetup { max-height: calc(100vh - 180px); overflow: auto; padding-right: 2px; }
}

/* v4 — Online takım yönetimi, süresiz mod ve sonuç animasyonu */
.setting-help {
  display: block;
  margin-top: 5px;
  color: #71889a;
  font-size: 8px;
  line-height: 1.35;
}

.timer-wrap.is-unlimited .timer-progress {
  stroke-dasharray: 12 8;
  animation: unlimitedRing 5s linear infinite;
}
.timer-wrap.is-unlimited .timer-content strong {
  color: var(--mint);
  font-size: 38px;
}
.timer-wrap.is-unlimited .timer-content span {
  max-width: 54px;
  margin: 4px auto 0;
  color: #b8d8cc;
  font-size: 7px;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}
@keyframes unlimitedRing { to { transform: rotate(360deg); transform-origin: center; } }

/* Oda sahibinin takımları daha rahat oluşturabilmesi için net, iki kolonlu lobi. */
.online-team-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.online-team-board .waiting-zone {
  grid-column: 1 / -1;
  min-height: 86px;
  border-style: solid;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
}
.online-team-board .team-zone {
  min-height: 148px;
  position: relative;
  overflow: hidden;
}
.online-team-board .team-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
}
.online-team-board .team-zone.team-blue::before {
  background: radial-gradient(circle at 10% 0%, var(--blue), transparent 56%);
}
.online-team-board .team-zone.team-coral::before {
  background: radial-gradient(circle at 90% 0%, var(--coral), transparent 56%);
}
.online-drop-zone.drag-over {
  border-color: var(--mint);
  background: rgba(99,245,195,.1);
  box-shadow: 0 0 0 3px rgba(99,245,195,.08), inset 0 0 30px rgba(99,245,195,.05);
  transform: translateY(-2px) scale(1.006);
}
.online-team-name,
.online-player-list,
.team-capacity { position: relative; z-index: 1; }
.team-capacity b {
  color: #d9f7eb;
  font-size: 9px;
}
.online-player-card {
  grid-template-columns: 30px minmax(0,1fr) auto auto;
  min-width: 0;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}
.online-player-card[draggable="true"]:hover {
  transform: translateY(-1px);
  border-color: rgba(99,245,195,.25);
  background: rgba(7,27,40,.78);
}
.online-player-card[draggable="true"]:active { cursor: grabbing; }
.online-player-card.dragging {
  opacity: .34;
  transform: scale(.97) rotate(-1deg);
}
.online-player-copy { min-width: 0; }
.team-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.team-quick-actions button {
  width: 23px;
  height: 23px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #b9cbd8;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  font-size: 8px;
  font-weight: 950;
}
.team-quick-actions button[data-move-team="A"]:hover {
  color: #041825;
  border-color: var(--blue);
  background: var(--blue);
}
.team-quick-actions button[data-move-team="B"]:hover {
  color: #281013;
  border-color: var(--coral);
  background: var(--coral);
}
.team-quick-actions button[data-move-team="unassigned"]:hover {
  color: #062016;
  border-color: var(--mint);
  background: var(--mint);
}
.drag-handle {
  padding: 5px 3px;
  cursor: grab;
  color: #7f9aad;
  font-size: 13px;
}

/* Kelimeler, oyuncu kartlarının üzerinde anlık ve belirgin biçimde açılır. */
.word-card { position: relative; overflow: visible; }
.word-reveal {
  position: absolute;
  left: 50%;
  top: 64px;
  z-index: 8;
  width: min(86%, 310px);
  min-height: 78px;
  padding: 12px 14px;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px) scale(.88);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px;
  box-shadow: 0 18px 42px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.13);
}
.word-reveal strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.word-reveal small {
  margin-top: 6px;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .18em;
}
.word-reveal.success {
  color: #eafff5;
  border-color: rgba(99,245,195,.56);
  background: linear-gradient(145deg, rgba(10,125,86,.97), rgba(5,72,57,.97));
  box-shadow: 0 18px 44px rgba(34,205,137,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.word-reveal.failure {
  color: #fff1f2;
  border-color: rgba(255,100,120,.58);
  background: linear-gradient(145deg, rgba(157,48,67,.97), rgba(82,22,37,.97));
  box-shadow: 0 18px 44px rgba(255,74,105,.2), inset 0 1px 0 rgba(255,255,255,.16);
}
.word-reveal.show {
  animation: wordRevealPop .7s cubic-bezier(.2,.9,.22,1.18) both;
}
.word-card.match .word-input-wrap,
.word-card.match .submit-word,
.word-card.miss .word-input-wrap,
.word-card.miss .submit-word {
  opacity: .3;
  transition: opacity .2s ease;
}
@keyframes wordRevealPop {
  0% { opacity: 0; transform: translate(-50%, 16px) scale(.76); filter: blur(4px); }
  58% { opacity: 1; transform: translate(-50%, -4px) scale(1.04); filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
}

@media (max-width: 760px) {
  .online-team-board { grid-template-columns: 1fr; }
  .online-team-board .waiting-zone { grid-column: auto; }
  .online-team-board .team-zone { min-height: 116px; }
  .team-quick-actions { gap: 4px; }
  .team-quick-actions button { width: 28px; height: 28px; }
  .drag-handle { display: none; }
  .word-reveal { top: 58px; min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .timer-wrap.is-unlimited .timer-progress,
  .word-reveal.show { animation: none !important; }
  .word-reveal.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* v5 — Dönen eşler: 2–8 oyuncu, bireysel puan ve online eş rotasyonu */
.format-selector-card {
  margin-top: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(190px, .9fr) 1.1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(99,245,195,.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,245,195,.055), rgba(85,183,255,.035));
}
.format-selector-card.compact { margin-top: 10px; padding: 9px 11px; }
.format-selector-card p {
  margin: 0;
  color: #7892a4;
  font-size: 10px;
  line-height: 1.45;
}
.format-selector-card select { height: 40px; }

.rotation-setup {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.rotation-setup-head {
  display: grid;
  grid-template-columns: 1fr 132px;
  align-items: end;
  gap: 14px;
}
.rotation-setup-head h3 { margin: 5px 0 4px; font-size: 19px; letter-spacing: -.03em; }
.rotation-setup-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.player-count-field select { height: 40px; }
.rotation-player-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rotation-player-field {
  padding: 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(3,15,25,.38);
}
.rotation-player-field span { margin-bottom: 5px; }
.rotation-player-field input { height: 38px; }
.rotation-note {
  margin-top: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7f98a9;
  border: 1px dashed rgba(99,245,195,.16);
  border-radius: 11px;
  background: rgba(99,245,195,.025);
}
.rotation-note span { color: var(--mint); font-size: 17px; }
.rotation-note p { margin: 0; font-size: 9px; line-height: 1.4; }

.online-team-board.rotation-lobby { grid-template-columns: 1fr; }
.online-team-board.rotation-lobby .waiting-zone {
  grid-column: auto;
  min-height: 150px;
  border-color: rgba(99,245,195,.22);
  background: linear-gradient(145deg, rgba(99,245,195,.045), rgba(85,183,255,.025));
}
.online-team-board.rotation-lobby .online-player-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rotation-order-badge {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #04201a;
  border-radius: 999px;
  background: var(--mint);
  font-size: 9px;
  font-weight: 950;
}

.rotation-leaderboard {
  margin-top: 10px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 17px;
}
.rotation-leaderboard[hidden] { display: none !important; }
.rotation-leaderboard-title span,
.rotation-leaderboard-title small { display: block; }
.rotation-leaderboard-title span { color: var(--mint); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.rotation-leaderboard-title small { margin-top: 3px; color: #6f8799; font-size: 8px; }
.rotation-score-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 1px;
}
.rotation-score-chip {
  min-width: 112px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 20px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background: rgba(4,18,29,.62);
}
.rotation-score-chip.active {
  border-color: rgba(99,245,195,.42);
  background: rgba(99,245,195,.075);
  box-shadow: inset 0 0 20px rgba(99,245,195,.035);
}
.rotation-rank {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #082019;
  border-radius: 7px;
  background: #7b98aa;
  font-size: 8px;
  font-weight: 950;
}
.rotation-score-chip.active .rotation-rank { background: var(--mint); }
.rotation-score-chip strong {
  overflow: hidden;
  color: #e9f5f8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rotation-score-chip b { color: var(--mint); font-size: 17px; }

.rotation-game-active .score-team { opacity: 1; }
.rotation-game-active .score-team .turn-pill { display: inline-flex; }
.rotation-game-active .score-center { border-color: rgba(99,245,195,.12); }
.rotation-game-active .game-grid { min-height: calc(100vh - 252px); }

.winner-standings {
  width: min(520px, 100%);
  margin: 18px auto 0;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(3,15,25,.44);
}
.winner-standings[hidden] { display: none !important; }
.winner-standing-row {
  min-height: 38px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #a9bdca;
  border-radius: 10px;
}
.winner-standing-row.winner {
  color: #ebfff8;
  background: rgba(99,245,195,.09);
  box-shadow: inset 3px 0 0 var(--mint);
}
.winner-standing-row span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 9px;
  font-weight: 900;
}
.winner-standing-row strong { text-align: left; font-size: 11px; }
.winner-standing-row b { color: var(--mint); font-size: 10px; }

@media (min-width: 1100px) and (min-height: 700px) {
  .format-selector-card { margin-top: 10px; padding: 9px 11px; }
  .rotation-setup { margin-top: 10px; padding: 11px; }
  .rotation-player-grid { margin-top: 8px; gap: 6px; }
  .rotation-player-field { padding: 6px; }
  .rotation-player-field input { height: 34px; }
  .rotation-note { margin-top: 7px; padding: 6px 8px; }
}

@media (max-width: 760px) {
  .format-selector-card,
  .rotation-setup-head { grid-template-columns: 1fr; }
  .rotation-player-grid { grid-template-columns: 1fr; }
  .online-team-board.rotation-lobby .online-player-list { grid-template-columns: 1fr; }
  .rotation-leaderboard { grid-template-columns: 1fr; }
  .rotation-score-chip { min-width: 104px; }
  .rotation-game-active .game-grid { min-height: auto; }
}

@media (min-width: 1100px) and (min-height: 700px) {
  .rotation-player-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rotation-setup-head h3 { font-size: 17px; }
  .rotation-setup-head p { font-size: 9px; }
  .rotation-player-field span { font-size: 8px; }
}

@media (min-width: 1100px) and (min-height: 700px) {
  body.rotation-setup-active .setup-grid {
    max-height: calc(100vh - 110px);
  }
}


/* v6 — 100% zoom online oda yerleşimi ve eksiksiz kelime gösterimi */
.word-reveal strong {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
  text-align: center;
}

@media (min-width: 1100px) {
  body.online-lobby-active .app-shell {
    min-height: 100vh;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  body.online-lobby-active .topbar {
    height: 58px;
    padding-inline: 16px;
    border-radius: 18px;
  }
  body.online-lobby-active .setup-grid {
    min-height: 0;
    height: calc(100vh - 78px);
    padding-top: 10px;
    gap: 12px;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
  }
  body.online-lobby-active .hero-panel,
  body.online-lobby-active .lobby-panel {
    min-height: 0;
    height: 100%;
  }
  body.online-lobby-active .hero-panel {
    padding: clamp(24px, 3.1vw, 42px);
  }
  body.online-lobby-active .hero-panel h1 {
    margin: 12px 0;
    font-size: clamp(46px, 5.1vw, 78px);
  }
  body.online-lobby-active .hero-copy { line-height: 1.5; }
  body.online-lobby-active .hero-stats { margin-top: 18px; }
  body.online-lobby-active .hero-stats article { padding: 10px 14px; }
  body.online-lobby-active .frequency-stage {
    height: min(220px, 30vh);
    margin-top: 18px;
  }
  body.online-lobby-active .lobby-panel {
    padding: 14px 16px;
    overflow: hidden;
  }
  body.online-lobby-active .panel-heading h2 { font-size: 24px; }
  body.online-lobby-active .play-mode-tabs { margin-top: 8px; padding: 4px; }
  body.online-lobby-active .play-mode-tabs button { min-height: 36px; }
  body.online-lobby-active #onlineSetup {
    max-height: none !important;
    height: auto;
    overflow: visible !important;
    padding-right: 0 !important;
  }
  body.online-lobby-active .online-lobby {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 15px;
  }
  body.online-lobby-active .room-toolbar strong { font-size: 19px; }
  body.online-lobby-active .mini-button { min-height: 28px; padding-inline: 8px; font-size: 9px; }
  body.online-lobby-active .online-format-card {
    margin-top: 7px;
    padding: 8px 10px;
    min-height: 0;
  }
  body.online-lobby-active .online-format-card label { gap: 5px; }
  body.online-lobby-active .online-format-card select { height: 35px; }
  body.online-lobby-active .online-format-card p { margin: 0; font-size: 9px; line-height: 1.25; }
  body.online-lobby-active .online-team-board {
    margin-top: 7px;
    gap: 6px;
  }
  body.online-lobby-active .online-drop-zone {
    min-height: 58px;
    padding: 6px 8px;
    border-radius: 12px;
  }
  body.online-lobby-active .waiting-zone { min-height: 50px; }
  body.online-lobby-active .drop-zone-heading { margin-bottom: 4px; }
  body.online-lobby-active .online-player-list { margin-top: 4px; gap: 4px; }
  body.online-lobby-active .online-player-card {
    min-height: 34px;
    padding: 3px 5px;
    grid-template-columns: 24px minmax(0,1fr) auto;
    gap: 5px;
    border-radius: 9px;
  }
  body.online-lobby-active .online-player-avatar { width: 24px; height: 24px; border-radius: 7px; }
  body.online-lobby-active .online-player-card strong { font-size: 10px; }
  body.online-lobby-active .online-player-card small { font-size: 7px; }
  body.online-lobby-active .team-quick-actions button { width: 22px; height: 22px; font-size: 8px; }
  body.online-lobby-active .online-team-name { grid-template-columns: 62px 1fr; gap: 5px; }
  body.online-lobby-active .online-team-name input { height: 29px; padding-inline: 9px; font-size: 11px; }
  body.online-lobby-active .team-capacity { margin-top: 3px; }
  body.online-lobby-active .online-settings-row { margin-top: 6px; gap: 8px; }
  body.online-lobby-active .online-settings-row label > span { margin-bottom: 4px; font-size: 9px; }
  body.online-lobby-active .online-settings-row select { height: 34px; }
  body.online-lobby-active .setting-help { display: none; }
  body.online-lobby-active .online-lobby > .primary-button {
    min-height: 40px;
    margin-top: 7px;
  }
  body.online-lobby-active #onlineLobbyHint { margin-top: 5px; line-height: 1.2; }
}

@media (min-width: 1100px) and (max-height: 820px) {
  body.online-lobby-active .hero-panel h1 { font-size: clamp(42px, 4.6vw, 68px); }
  body.online-lobby-active .hero-copy { font-size: 14px; }
  body.online-lobby-active .hero-stats { margin-top: 12px; }
  body.online-lobby-active .frequency-stage { height: 190px; margin-top: 12px; }
  body.online-lobby-active .panel-heading .step-label { font-size: 9px; }
  body.online-lobby-active .panel-heading h2 { margin-top: 4px; font-size: 21px; }
  body.online-lobby-active .online-lobby { padding-block: 8px; }
  body.online-lobby-active .online-drop-zone { min-height: 52px; }
}

/* Kendi kilitlenen kelimesi bekleme sırasında okunabilir kalır. */
.word-card.locked .word-input-wrap input:not(.masked):disabled {
  opacity: 1;
  color: #eefbff;
  -webkit-text-fill-color: #eefbff;
  background: rgba(5, 24, 38, .92);
}

/* v7 — 2/3/4 takımlı düzen, uzun deneme kelimeleri ve kompakt online lobi */
.team-mint { box-shadow: inset 3px 0 0 rgba(80, 224, 166, .82); }
.team-gold { box-shadow: inset 3px 0 0 rgba(255, 195, 76, .86); }
.team-mint .team-emblem,
.score-mint .mini-emblem { background: linear-gradient(145deg, #63efc0, #168966); }
.team-gold .team-emblem,
.score-gold .mini-emblem { color: #172212; background: linear-gradient(145deg, #ffe07c, #d18a19); }

.format-selector-card > p { grid-column: 1 / -1; }
.team-count-field[hidden] { display: none !important; }

#localTeamSetup {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#localTeamSetup .team-setup {
  min-width: 0;
  margin-top: 0;
  padding: 13px;
}
#localTeamSetup .versus-divider { display: none; }
#localTeamSetup .player-pair { gap: 8px; margin-top: 9px; }
#localTeamSetup .team-title-row { gap: 10px; }
#localTeamSetup .team-emblem { width: 38px; height: 38px; border-radius: 11px; }
#localTeamSetup input { height: 39px; }

.scoreboard.team-count-3,
.scoreboard.team-count-4 {
  min-height: 116px;
  grid-template-rows: 34px minmax(68px, auto);
  align-items: stretch;
  gap: 4px 7px;
}
.scoreboard.team-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scoreboard.team-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scoreboard.team-count-3 .score-center,
.scoreboard.team-count-4 .score-center {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  min-height: 30px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.scoreboard.team-count-3 #scoreTeamA,
.scoreboard.team-count-4 #scoreTeamA { grid-column: 1; grid-row: 2; }
.scoreboard.team-count-3 #scoreTeamB,
.scoreboard.team-count-4 #scoreTeamB { grid-column: 2; grid-row: 2; }
.scoreboard.team-count-3 #scoreTeamC,
.scoreboard.team-count-4 #scoreTeamC { grid-column: 3; grid-row: 2; }
.scoreboard.team-count-4 #scoreTeamD { grid-column: 4; grid-row: 2; }
.scoreboard.team-count-3 .score-team,
.scoreboard.team-count-4 .score-team {
  justify-content: flex-start;
  min-width: 0;
  padding: 8px 9px;
  gap: 8px;
  text-align: left;
}
.scoreboard.team-count-3 .score-team .turn-pill,
.scoreboard.team-count-4 .score-team .turn-pill {
  margin: 0 0 0 auto;
  padding-inline: 6px;
}
.scoreboard.team-count-3 .score-name,
.scoreboard.team-count-4 .score-name {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scoreboard.team-count-3 .mini-emblem,
.scoreboard.team-count-4 .mini-emblem { width: 36px; height: 36px; border-radius: 11px; }
.scoreboard.team-count-3 .score-value,
.scoreboard.team-count-4 .score-value { font-size: 23px; }

.attempt-words {
  align-items: stretch;
}
.attempt-words strong {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
  text-align: center;
}

.online-team-board .team-zone.team-mint::before {
  background: radial-gradient(circle at 10% 0%, #50e0a6, transparent 56%);
}
.online-team-board .team-zone.team-gold::before {
  background: radial-gradient(circle at 90% 0%, #ffc34c, transparent 56%);
}
.online-team-board[data-team-count="3"] #onlineTeamCZone,
.online-team-board[data-team-count="4"] #onlineTeamCZone,
.online-team-board[data-team-count="4"] #onlineTeamDZone { display: block; }
.online-team-board[data-team-count="2"] #onlineTeamCZone,
.online-team-board[data-team-count="2"] #onlineTeamDZone,
.online-team-board[data-team-count="3"] #onlineTeamDZone { display: none !important; }

@media (min-width: 1100px) {
  body.online-lobby-active .online-format-card {
    grid-template-columns: minmax(0, 1.45fr) minmax(118px, .55fr);
    gap: 5px 8px;
  }
  body.online-lobby-active .online-format-card > p { grid-column: 1 / -1; }
  body.online-lobby-active .online-team-board[data-team-count="3"] .team-zone,
  body.online-lobby-active .online-team-board[data-team-count="4"] .team-zone {
    min-height: 78px;
  }
  body.online-lobby-active .online-team-board[data-team-count="3"] .online-player-card,
  body.online-lobby-active .online-team-board[data-team-count="4"] .online-player-card {
    min-height: 29px;
    padding-block: 2px;
  }
  body.online-lobby-active .online-team-board[data-team-count="3"] .online-player-avatar,
  body.online-lobby-active .online-team-board[data-team-count="4"] .online-player-avatar {
    width: 21px;
    height: 21px;
  }
  body.online-lobby-active .online-team-board[data-team-count="3"] .team-quick-actions button,
  body.online-lobby-active .online-team-board[data-team-count="4"] .team-quick-actions button {
    width: 19px;
    height: 19px;
    padding: 0;
  }
}

@media (max-width: 760px) {
  #localTeamSetup { grid-template-columns: 1fr; }
  .scoreboard.team-count-3,
  .scoreboard.team-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 32px repeat(2, minmax(62px, auto));
  }
  .scoreboard.team-count-3 .score-center,
  .scoreboard.team-count-4 .score-center { grid-column: 1 / -1; grid-row: 1; }
  .scoreboard.team-count-3 #scoreTeamA,
  .scoreboard.team-count-4 #scoreTeamA { grid-column: 1; grid-row: 2; }
  .scoreboard.team-count-3 #scoreTeamB,
  .scoreboard.team-count-4 #scoreTeamB { grid-column: 2; grid-row: 2; }
  .scoreboard.team-count-3 #scoreTeamC,
  .scoreboard.team-count-4 #scoreTeamC { grid-column: 1; grid-row: 3; }
  .scoreboard.team-count-4 #scoreTeamD { grid-column: 2; grid-row: 3; }
  .format-selector-card { grid-template-columns: 1fr; }
  .format-selector-card > p { grid-column: auto; }
}
.scoreboard.team-count-3 #scoreTeamB .mini-emblem,
.scoreboard.team-count-4 #scoreTeamB .mini-emblem { order: -2; }
.scoreboard.team-count-3 #scoreTeamB .turn-pill,
.scoreboard.team-count-4 #scoreTeamB .turn-pill { order: 3; }
.online-drop-zone[hidden],
.score-team[hidden],
[data-local-team][hidden] { display: none !important; }
@media (min-width: 1100px) {
  body.online-lobby-active .online-player-card .drag-handle { display: none; }
  body.online-lobby-active .online-team-board[data-team-count="3"] .team-quick-actions,
  body.online-lobby-active .online-team-board[data-team-count="4"] .team-quick-actions { gap: 2px; }
}


/* v49 — language switcher */
.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.lang-switch{display:inline-flex;align-items:center;gap:6px;padding:4px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(14,31,47,.94),rgba(9,23,36,.86));box-shadow:0 10px 22px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04)}
.lang-switch .lang-btn{min-width:46px;height:38px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#dce7ef;font-weight:900;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease}
.lang-switch .lang-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.06)}
.lang-switch .lang-btn.active{background:linear-gradient(135deg,rgba(100,245,195,.2),rgba(85,183,255,.18));color:#fff;box-shadow:0 0 0 1px rgba(99,245,195,.28) inset, 0 10px 20px rgba(0,0,0,.18)}
.lang-flag{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;flex:0 0 18px}
.lang-flag svg{display:block;width:18px;height:18px}
@media (max-width: 920px){
  .topbar{height:auto;min-height:72px;padding-top:12px;padding-bottom:12px;align-items:flex-start}
  .topbar-actions{width:100%;justify-content:flex-start}
}
@media (max-width: 620px){
  .lang-switch{width:100%;justify-content:space-between}
  .lang-switch .lang-btn{flex:1 1 0;min-width:0}
}


/* v52 — header language bar, freer setup panel and always-visible start actions */
.topbar-actions{gap:12px;align-items:center;}
.mode-chip{margin-right:auto;}
.lang-switch{gap:8px;padding:4px 6px;flex-wrap:nowrap;}
.lang-switch__label{display:inline-flex;align-items:center;white-space:nowrap;color:#dce9ef;font-size:10px;font-weight:900;letter-spacing:.05em;padding:0 4px 0 2px;opacity:.92;}
.lang-switch .lang-btn{min-width:0;height:38px;padding:0 11px;}
@media (min-width: 1100px){
  body:not(.online-lobby-active) .setup-grid{height:calc(100vh - 88px);min-height:0;gap:14px;}
  body:not(.online-lobby-active) .hero-panel,
  body:not(.online-lobby-active) .lobby-panel{min-height:0;height:100%;}
  body:not(.online-lobby-active) .hero-panel{min-height:0;padding:26px 30px;}
  body:not(.online-lobby-active) .hero-panel h1{font-size:clamp(42px,4.7vw,76px);margin:12px 0 10px;}
  body:not(.online-lobby-active) .hero-copy{font-size:14px;line-height:1.5;}
  body:not(.online-lobby-active) .hero-stats{margin-top:14px;}
  body:not(.online-lobby-active) .frequency-stage{height:min(205px,27vh);margin-top:16px;}
  body:not(.online-lobby-active) .lobby-panel{padding:18px 18px 16px;overflow:auto;}
  body:not(.online-lobby-active) .team-setup{margin-top:12px;padding:14px;border-radius:18px;}
  body:not(.online-lobby-active) #localTeamSetup{margin-top:10px;gap:8px;}
  body:not(.online-lobby-active) #localTeamSetup .team-setup{padding:12px;}
  body:not(.online-lobby-active) #localTeamSetup input{height:36px;}
  body:not(.online-lobby-active) .player-pair{gap:8px;margin-top:8px;}
  body:not(.online-lobby-active) .settings-row{margin-top:10px;gap:10px;}
  body:not(.online-lobby-active) .primary-button{position:sticky;bottom:0;margin-top:12px;z-index:4;box-shadow:0 14px 28px rgba(9,18,28,.45);}
}
@media (max-width: 920px){
  .lang-switch__label{display:none;}
  .lang-switch .lang-btn span:last-child{display:none;}
}

/* v80 — ana görseli %100 masaüstünde tam kadraja al */
@media (min-width: 900px){
  body:not(.online-lobby-active) .frequency-stage{
    height:clamp(245px,31vh,330px)!important;
    min-height:245px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:0 12px!important;
  }
  body:not(.online-lobby-active) .frequency-stage .v59-frequency-art{
    width:100%!important;
    height:100%!important;
    max-width:760px!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
}
@media (min-width:1100px) and (max-height:820px){
  body:not(.online-lobby-active) .frequency-stage{
    height:clamp(225px,29vh,285px)!important;
    min-height:225px!important;
  }
}

/* V133 — çevrim dışı oyuncu görünümü ve oda sahibi çıkarma düğmesi */
.online-player-card.is-offline{border-color:rgba(255,91,111,.72)!important;background:rgba(255,68,91,.09)!important;opacity:.88}
.online-player-card.is-offline .online-player-avatar{filter:grayscale(.45);opacity:.78}
.online-kick-offline{margin-left:auto;padding:7px 9px;border:0;border-radius:9px;background:#b92f45;color:#fff;font:800 10px/1.1 system-ui;cursor:pointer;white-space:nowrap}
.online-kick-offline:hover{background:#d63b54}
