/* src/client/styles.css */
:root {
  --bg: #070910;
  --bg-2: #0d1220;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.105);
  --text: #f2f4f8;
  --dim: #99a2b7;
  --accent: #8067ff;
  --accent-2: #2dd4bf;
  --danger: #ff5d7d;
  --gold: #ffc94d;
  --radius: 20px;
  --surface: rgba(13, 20, 36, 0.78);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      1200px 800px at 80% -10%,
      rgba(124, 92, 255, 0.16),
      transparent 60%),
    radial-gradient(
      900px 700px at -10% 110%,
      rgba(45, 212, 191, 0.12),
      transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
b {
  color: #fff;
}
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.glyph-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 20% 10%,
      rgba(90, 70, 190, .14),
      transparent 42%),
    radial-gradient(
      ellipse at 85% 85%,
      rgba(24, 130, 125, .10),
      transparent 45%);
}
.glyph-rain::before,
.glyph-rain::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  filter: blur(55px);
  opacity: .16;
  will-change: transform, border-radius;
}
.glyph-rain::before {
  left: -18vw;
  top: 8%;
  background: #7157ff;
  animation: liquidFlow 24s ease-in-out infinite alternate;
}
.glyph-rain::after {
  right: -22vw;
  bottom: -12%;
  background: #19a895;
  animation: liquidFlow 30s ease-in-out -8s infinite alternate-reverse;
}
.glyph-rain span {
  position: absolute;
  top: var(--glyph-top, -8%);
  color: rgba(173, 181, 223, 0.11);
  animation: glyphFloat ease-in-out infinite alternate;
  user-select: none;
}
@keyframes glyphFloat {
  from {
    transform: translate3d(-10px, 12vh, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(24px, 96vh, 0) rotate(14deg);
  }
}
@keyframes liquidFlow {
  0% {
    transform: translate3d(0, 0, 0) rotate(0);
    border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  }
  100% {
    transform: translate3d(12vw, -7vh, 0) rotate(18deg);
    border-radius: 58% 42% 35% 65% / 54% 61% 39% 46%;
  }
}
.card {
  background:
    linear-gradient(
      145deg,
      rgba(18, 24, 40, .94),
      rgba(10, 14, 25, .9));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.btn {
  appearance: none;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 44px;
  touch-action: manipulation;
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(.985);
}
.btn:focus-visible,
.choice:focus-visible,
.code-chip:focus-visible {
  outline: 3px solid rgba(45, 212, 191, .5);
  outline-offset: 3px;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #5a8bff);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 36px rgba(124, 92, 255, 0.5);
  background:
    linear-gradient(
      135deg,
      #8d70ff,
      #6399ff);
}
.btn-secondary {
  background:
    linear-gradient(
      135deg,
      rgba(45, 212, 191, 0.16),
      rgba(45, 212, 191, 0.08));
  border-color: rgba(45, 212, 191, 0.35);
}
.btn-xl {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
  border-radius: 14px;
  width: 100%;
}
.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  min-height: 38px;
}
.btn-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--dim);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}
.input::placeholder {
  color: #56607a;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  color: var(--dim);
  white-space: nowrap;
}
.chip-round {
  color: var(--text);
}
.chip-good {
  color: #7ce8bd;
  border-color: rgba(124, 232, 189, 0.3);
  background: rgba(45, 212, 191, 0.1);
}
.cat-chip {
  margin-left: 0.5rem;
}
.cat-modern {
  color: #79c7ff;
  border-color: rgba(121, 199, 255, 0.35);
}
.cat-ancient {
  color: var(--gold);
  border-color: rgba(255, 201, 77, 0.35);
}
.cat-fake {
  color: #ff8ad7;
  border-color: rgba(255, 138, 215, 0.35);
}
.dim {
  color: var(--dim);
  font-weight: 400;
  font-size: 0.85em;
}
.pop-in {
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.presets {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.preset {
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  cursor: pointer;
}
.preset:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}
.preset.on {
  background: rgba(124, 92, 255, 0.25);
  border-color: var(--accent);
  color: #fff;
}
.home-wrap,
.game-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1rem;
}
.home-card {
  width: min(480px, 100%);
  text-align: center;
  padding: clamp(1.35rem, 5vw, 2.35rem);
  margin-block: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}
.home-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 18%;
  width: 64%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(142, 124, 255, .9),
      transparent);
}
.home-card {
  position: relative;
  overflow: hidden;
}
.home-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 0 0 1rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .65rem;
  font-weight: 800;
}
.home-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.home-title {
  margin: 1.1rem 0 .65rem;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.home-title em {
  color: #9c89ff;
  font-style: normal;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  user-select: none;
}
.logo-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 26px;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #4f46e5);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
}
.logo-text {
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--dim);
}
.logo-text b {
  font-weight: 800;
  color: #fff;
}
.logo-small .logo-glyph {
  width: 34px;
  height: 34px;
  font-size: 17px;
  border-radius: 9px;
}
.logo-small .logo-text {
  font-size: 1.15rem;
}
.tagline {
  color: var(--dim);
  font-size: 0.94rem;
  margin: 0 auto 1.5rem;
  max-width: 38ch;
}
.entry-panel {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  text-align: left;
}
.entry-panel .divider {
  margin: 1rem 0;
}
.entry-panel .btn-primary {
  box-shadow: none;
}
.join-button {
  flex: 0 0 auto;
  min-width: 112px;
}
.server-browser {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}
.server-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .7rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
}
.server-heading small {
  color: #75ddbd;
  font-size: .65rem;
  letter-spacing: .06em;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, .1);
}
.field-label {
  display: block;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 0.4rem;
}
.name-input {
  text-align: left;
  margin-bottom: 1rem;
}
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dim);
  font-size: 0.82rem;
  margin: 1.25rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}
.join-row {
  display: flex;
  gap: 0.6rem;
}
.code-input {
  flex: 1;
  text-align: center;
  text-transform: uppercase;
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-weight: 700;
  letter-spacing: 0.35em;
}
.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0.9rem 0 0;
}
.rules-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--dim);
}
.rules-strip i {
  font-style: normal;
  font-weight: 800;
  color: var(--accent-2);
  margin-right: 0.25rem;
}
.home-foot {
  color: #626c84;
  font-size: 0.72rem;
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.topbar {
  width: min(1060px, 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  padding: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar .logo {
  margin-right: auto;
}
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.code-chip:hover {
  border-color: var(--accent);
}
.code-chip-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.code-chip-code {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--accent-2);
}
.code-chip-copy {
  color: var(--dim);
  font-size: 0.85rem;
  min-width: 58px;
  text-align: right;
}
.lobby {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .lobby {
    grid-template-columns: 1fr;
  }
}
.lobby-left {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: stretch;
  text-align: center;
  padding: 2rem;
  position: sticky;
  top: 1rem;
}
.lobby-intro h1 {
  margin: .45rem 0 .25rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: var(--accent-2);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}
.lobby-kicker {
  color: var(--dim);
  margin: 0;
  font-size: 0.9rem;
}
.code-tiles {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 0.4rem 0 0.2rem;
}
.code-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 66px;
  border-radius: 13px;
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background:
    linear-gradient(
      160deg,
      rgba(124, 92, 255, 0.28),
      rgba(124, 92, 255, 0.07));
  border: 1px solid rgba(124, 92, 255, 0.45);
  box-shadow: inset 0 -12px 20px rgba(0, 0, 0, 0.28);
}
@media (max-width: 480px) {
  .code-tile {
    width: 44px;
    height: 54px;
    font-size: 1.5rem;
  }
}
.lobby-sub {
  color: var(--dim);
  font-size: 0.85rem;
  margin: 0;
}
.host-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .25rem;
}
.host-actions .btn {
  grid-column: 1 / -1;
}
.waiting-note {
  color: var(--dim);
  font-style: italic;
  margin: 0.8rem 0 0;
}
.scoring-note {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
}
.pill-good {
  color: #7ce8bd;
  background: rgba(45, 212, 191, 0.1);
}
.pill-mid {
  color: var(--gold);
  background: rgba(255, 201, 77, 0.08);
}
.pill-bad {
  color: var(--danger);
  background: rgba(255, 93, 125, 0.08);
}
.players-card h3 {
  margin-bottom: 0.9rem;
}
.lobby-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 11px;
}
.player-row + .player-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.player-row.empty {
  opacity: 0.55;
}
.player-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.crown {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255, 201, 77, 0.12);
  border: 1px solid rgba(255, 201, 77, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.off-dot {
  margin-left: auto;
  color: var(--dim);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.25);
}
.avatar-empty {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dim);
  border: 1px dashed var(--card-border);
}
.settings h3 {
  font-size: 0.95rem;
}
.settings h3 em {
  color: var(--dim);
  font-weight: 400;
  font-size: 0.8em;
}
.locked-panel {
  opacity: 0.75;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0.8rem 0;
}
.settings-grid > div {
  display: flex;
  flex-direction: column;
}
.settings-grid label span,
.field-label-sm {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dim);
  margin-bottom: 0.3rem;
}
.settings-grid input,
.settings-grid select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  outline: none;
}
.settings-grid input:focus,
.settings-grid select:focus {
  border-color: var(--accent);
}
.toggle-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.toggle small {
  display: block;
  color: var(--dim);
  font-size: 0.74rem;
}
.hint-select span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dim);
  margin-bottom: 0.3rem;
}
.hint-select select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.5rem 0.6rem;
  outline: none;
}
.round {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.round-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
.round-heading h1 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  margin: .25rem 0 0;
}
.round-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.timer-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.timer-fill {
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--accent-2),
      var(--accent));
  transition: width 0.25s linear;
}
.timer-num {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-weight: 800;
  min-width: 52px;
  justify-content: center;
  color: var(--text);
}
.timer-num.urgent,
.timer-bar.urgent .timer-fill {
  animation: pulseUrgent 1s infinite;
}
.timer-bar.urgent .timer-fill {
  background:
    linear-gradient(
      90deg,
      var(--danger),
      #ff8a5d);
}
@keyframes pulseUrgent {
  50% {
    opacity: 0.55;
  }
}
.score-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  padding: 0.25rem 0.7rem 0.25rem 0.3rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}
.score-pill.me {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4);
}
.score-pill i {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--dim);
  font-weight: 600;
}
.score-pill .avatar {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}
.puzzle-card {
  padding: 1.6rem;
  text-align: center;
}
.puzzle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.obf-text p {
  margin: 0;
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-size: clamp(1.25rem, 4.5vw, 2rem);
  line-height: 1.7;
  letter-spacing: 0.12em;
  word-break: break-word;
  color: #fff;
  text-shadow: 0 0 26px rgba(124, 92, 255, 0.35);
}
.obf-text .dot {
  color: rgba(139, 147, 167, 0.45);
}
.choices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
@media (max-width: 720px) {
  .choices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.85rem 0.5rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
  min-height: 76px;
  touch-action: manipulation;
}
.choice:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.12);
}
.choice:active:not(:disabled) {
  transform: translateY(0) scale(.98);
}
.choice:disabled {
  cursor: default;
  opacity: 0.85;
}
.choice-key {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.62rem;
  color: #56607a;
  border: 1px solid var(--card-border);
  border-radius: 5px;
  padding: 0 0.32rem;
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
}
.choice-flag {
  font-size: 1.7rem;
  line-height: 1.2;
}
.choice-label {
  font-weight: 700;
  font-size: 0.95rem;
}
.choice-sub {
  font-size: 0.72rem;
  color: var(--dim);
}
.guess-track {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.track-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem 0.2rem 0.25rem;
}
.track-chip.done {
  color: #7ce8bd;
  border-color: rgba(124, 232, 189, 0.35);
}
.track-chip .avatar {
  width: 20px;
  height: 20px;
  font-size: 0.6rem;
}
.winner-banner {
  text-align: center;
  font-size: 1.3rem;
  padding: 1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      rgba(255, 201, 77, 0.16),
      rgba(255, 138, 215, 0.1));
  border: 1px solid rgba(255, 201, 77, 0.4);
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.answer-card {
  text-align: center;
  padding: 1.8rem;
}
.answer-kicker {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}
.answer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}
.answer-flag {
  font-size: 3.2rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}
.answer-lang h2 {
  margin: 0;
  font-size: 1.7rem;
}
.answer-native {
  color: var(--dim);
  margin: 0.15rem 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.answer-texts {
  margin-top: 1.1rem;
}
.answer-en {
  color: var(--dim);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.answer-tr {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  word-break: break-word;
}
.results-card h3 {
  font-size: 0.95rem;
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.result-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid transparent;
}
.res-exact {
  border-left-color: #34d399;
}
.res-related {
  border-left-color: var(--gold);
}
.res-wrong {
  border-left-color: rgba(255, 93, 125, 0.6);
}
.res-name {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 90px;
}
.res-guess {
  flex: 1;
  color: var(--dim);
  font-size: 0.85rem;
  min-width: 0;
}
.res-points {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-weight: 800;
}
.pts-good {
  color: #34d399;
}
.pts-mid {
  color: var(--gold);
}
.pts-bad {
  color: var(--danger);
}
.board-card h3 {
  font-size: 0.95rem;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.8rem;
  padding-top: 0.5rem;
}
.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 110px;
  padding: 0.8rem 0.5rem;
  border-radius: 13px 13px 0 0;
  background:
    linear-gradient(
      180deg,
      rgba(124, 92, 255, 0.14),
      rgba(124, 92, 255, 0.03));
  border: 1px solid var(--card-border);
  border-bottom: none;
}
.podium-col.h-1 {
  min-height: 150px;
  order: 2;
  background:
    linear-gradient(
      180deg,
      rgba(255, 201, 77, 0.2),
      rgba(255, 201, 77, 0.03));
  border-color: rgba(255, 201, 77, 0.4);
}
.podium-col.h-2 {
  min-height: 112px;
  order: 1;
}
.podium-col.h-3 {
  min-height: 88px;
  order: 3;
}
.podium-col.me {
  outline: 2px solid rgba(124, 92, 255, 0.6);
}
.podium-medal {
  font-size: 1.4rem;
}
.podium-name {
  font-weight: 700;
  font-size: 0.85rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-score {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-size: 1.25rem;
  font-weight: 800;
}
.board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.next-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.next-row .btn-xl {
  width: auto;
}
.button-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: buttonSpin .7s linear infinite;
}
@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}
.auto-countdown {
  color: var(--dim);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.modal {
  width: min(640px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal h3 {
  margin: 0;
}
.picker-count {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
}
.sentence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sentence-list button {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.sentence-list button:hover {
  background: rgba(124, 92, 255, 0.14);
  border-color: rgba(124, 92, 255, 0.5);
}
.screen-center {
  flex: 1;
  display: grid;
  place-items: center;
  z-index: 1;
  padding: 1rem;
}
.error-card {
  text-align: center;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.loading {
  text-align: center;
  color: var(--dim);
  z-index: 1;
}
.spinner-glyph {
  display: inline-block;
  font-size: 2.2rem;
  animation: spinGlyph 1.6s ease-in-out infinite;
}
@keyframes spinGlyph {
  50% {
    transform: rotate(180deg) scale(1.15);
  }
  100% {
    transform: rotate(360deg);
  }
}
.reconnect-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(4px);
  font-weight: 700;
  gap: 0.5rem;
}
.toast-error {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: rgba(255, 93, 125, 0.14);
  border: 1px solid rgba(255, 93, 125, 0.5);
  color: #ffb3c2;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: toastIn 4s forwards;
}
@keyframes toastIn {
  0%, 85% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
}
a {
  color: var(--accent-2);
}
.kick-btn {
  appearance: none;
  margin-left: auto;
  border: 1px solid rgba(255, 93, 125, 0.4);
  background: rgba(255, 93, 125, 0.1);
  color: var(--danger);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s ease, transform 0.12s ease;
}
.kick-btn:hover {
  background: var(--danger);
  color: #fff;
  transform: scale(1.08);
}
.off-dot + .kick-btn,
.player-name + .kick-btn {
  margin-left: auto;
}
.player-row .kick-btn {
  margin-left: auto;
}
.player-row .off-dot {
  margin-left: auto;
}
.player-row .off-dot ~ .kick-btn {
  margin-left: 0.5rem;
}
.sentence-list button.selected,
.sentence-list button.selected:hover {
  background: rgba(124, 92, 255, 0.35);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.difficulty-row {
  margin-bottom: 0.9rem;
}
.field-label-sm {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dim);
  margin-bottom: 0.35rem;
}
.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: min(270px, calc(100vw - 32px));
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chat-panel.closed {
  background: rgba(255, 255, 255, 0.03);
}
.chat-toggle {
  align-self: flex-end;
}
.chat-log {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
}
.chat-log p {
  margin: 0;
  word-break: break-word;
}
.chat-log p.me b {
  color: var(--accent-2);
}
.chat-log p.hist {
  opacity: 0.55;
  font-style: italic;
}
.chat-form {
  display: flex;
  gap: 0.4rem;
}
.chat-form .input {
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}
.choice.selected {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.22);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(124, 92, 255, 0.35);
}
.choice.selected .choice-key {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 720px) {
  .chat-panel {
    right: 10px;
    bottom: 10px;
  }
  .game-wrap {
    padding: 1rem .75rem 5.5rem;
  }
  .topbar {
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .25rem 0 .75rem;
  }
  .topbar .logo-text {
    display: none;
  }
  .code-chip {
    margin-left: auto;
  }
  .puzzle-card,
  .answer-card {
    padding: 1.15rem;
  }
  .round-heading {
    align-items: center;
  }
  .result-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }
  .res-guess {
    grid-column: 2 / 4;
  }
  .next-row {
    position: sticky;
    bottom: .65rem;
    z-index: 20;
    padding: .6rem;
    border-radius: 16px;
    background: rgba(7, 11, 20, .88);
    backdrop-filter: blur(14px);
  }
  .next-row .btn-xl {
    width: 100%;
  }
  .round {
    gap: .75rem;
  }
  .round-top {
    position: sticky;
    top: .35rem;
    z-index: 15;
    padding: .55rem .65rem;
    margin-inline: -.15rem;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: rgba(8, 12, 21, .88);
    backdrop-filter: blur(16px);
  }
  .score-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: .15rem .05rem .4rem;
    scrollbar-width: none;
  }
  .score-strip::-webkit-scrollbar {
    display: none;
  }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal {
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    padding: 1rem;
  }
  .lobby-left {
    position: static;
  }
}
@media (max-width: 480px) {
  .home-wrap {
    padding: max(.65rem, env(safe-area-inset-top)) .65rem max(.65rem, env(safe-area-inset-bottom));
  }
  .home-card {
    padding: 1.3rem 1rem 1.15rem;
    border-radius: 18px;
  }
  .home-card .logo-glyph {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .home-card .logo-text {
    font-size: 1.55rem;
  }
  .home-title br {
    display: none;
  }
  .join-row {
    flex-direction: column;
  }
  .join-button {
    width: 100%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .choices-grid,
  .choices-grid.big {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .choice {
    min-height: 82px;
  }
  .code-tiles {
    gap: .32rem;
  }
  .lobby-left {
    padding: 1.25rem .8rem;
  }
  .puzzle-card,
  .answer-card,
  .results-card,
  .board-card {
    padding: 1rem;
  }
  .obf-text p {
    font-size: 1.1rem;
    line-height: 1.65;
    letter-spacing: .07em;
  }
  .answer-lang {
    gap: .55rem;
  }
  .answer-flag {
    font-size: 2.4rem;
  }
  .answer-lang h2 {
    font-size: 1.35rem;
  }
  .rules-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: .45rem .7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    display: none !important;
  }
}
.debug-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  width: min(390px, calc(100vw - 32px));
  padding: .7rem;
  border-color: rgba(255, 93, 125, .55);
}
.debug-panel.closed {
  width: auto;
  background: rgba(35, 9, 20, .9);
}
.debug-toggle {
  width: 100%;
}
.btn-danger {
  background: rgba(255, 93, 125, .18);
  border-color: rgba(255, 93, 125, .6);
  color: #ff8aa2;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.debug-hint {
  color: var(--dim);
  font-size: .75rem;
  margin: .6rem 0;
}
.debug-panel h3 {
  margin: .8rem 0 .4rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.debug-player-list {
  display: grid;
  gap: .35rem;
  max-height: 220px;
  overflow: auto;
}
.debug-player-list label {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
}
.debug-player-list select {
  padding: .35rem .45rem;
  font-size: .8rem;
  min-width: 0;
}
.debug-panel form {
  display: flex;
  gap: .4rem;
}
.debug-panel form .input {
  min-width: 0;
  padding: .45rem .6rem;
}
.debug-screen-message {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  max-width: min(720px, calc(100vw - 32px));
  padding: 1.2rem 1.6rem;
  border: 2px solid var(--danger);
  border-radius: 18px;
  background: rgba(20, 5, 14, .96);
  box-shadow: 0 0 80px rgba(255, 93, 125, .55);
  font-size: clamp(1.3rem, 5vw, 3rem);
  font-weight: 900;
  text-align: center;
  word-break: break-word;
  animation: popIn .2s ease-out;
}
@media (max-width: 720px) {
  .debug-panel {
    left: 10px;
    bottom: 70px;
  }
}
.roomlist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}
.roomlist-empty {
  color: var(--dim);
  font-size: 0.85rem;
  margin: 0;
  font-style: italic;
}
.roomlist-hint {
  color: var(--dim);
  font-size: 0.72rem;
  margin: 0.3rem 0 0;
  min-height: 1em;
}
.room-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  min-height: 50px;
}
.room-code {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    monospace;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  min-width: 64px;
}
.room-meta {
  flex: 1;
  font-size: 0.78rem;
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-phase.live {
  color: #ff8ad7;
}
.room-pw-input {
  flex: 1;
  padding: 0.35rem 0.6rem;
}
@media (max-width: 480px) {
  .room-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .15rem .5rem;
    padding: .6rem;
  }
  .room-code {
    grid-column: 1;
  }
  .room-meta {
    grid-column: 1;
    grid-row: 2;
    white-space: normal;
  }
  .room-row > .btn,
  .room-row > span[title] {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }
  .room-pw-input {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .room-row:has(.room-pw-input) .room-code {
    grid-column: 1 / 3;
  }
  .room-row:has(.room-pw-input) .btn {
    grid-column: 2;
    grid-row: 2;
  }
}
.pw-row {
  margin-top: 0.6rem;
}
.access-card h3 {
  font-size: 0.95rem;
}
.close-room-btn {
  margin-top: 0.6rem;
  color: var(--danger);
  align-self: flex-start;
}
.close-room-btn:hover {
  background: rgba(255, 93, 125, 0.15);
  color: #fff;
  border-color: var(--danger);
}
.access-card .toggle {
  margin-bottom: 0.4rem;
}
.game-wrap,
.home-wrap {
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}
.unanimous-banner {
  background:
    linear-gradient(
      135deg,
      rgba(139, 147, 167, 0.16),
      rgba(139, 147, 167, 0.08));
  border-color: rgba(139, 147, 167, 0.45);
  font-size: 1.05rem;
}
.choices-grid.big {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
}
.choices-grid.big .choice {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  padding: 0.55rem 0.65rem;
  gap: 0.6rem;
}
.choices-grid.big .choice-flag {
  font-size: 1.25rem;
}
.choices-grid.big .choice-label {
  font-size: 0.85rem;
}
.choices-grid.big .choice-sub {
  display: none;
}
@media (max-width: 560px) {
  .choices-grid.big {
    grid-template-columns: repeat(2, 1fr);
  }
}
/*# sourceMappingURL=index.css.map */
