:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-2: #111827;
  --soft: #1e293b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #94a3b8;
  --indigo: #818cf8;
  --indigo-2: #6366f1;
  --purple: #8b5cf6;
  --green: #34d399;
  --red: #f87171;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(99, 102, 241, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #020617 0%, #0b1120 100%);
  color: var(--text);
  font-family: "Tahoma", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  padding: 18px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.home-container,
.player-page-container {
  min-height: calc(100vh - 36px);
  align-items: center;
}

.developer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.developer-link {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.developer-link:hover {
  color: #9f8cff;
  opacity: 1;
}

.developer-separator {
  color: rgba(255, 255, 255, 0.35);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.24);
}

.brand-text h1 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.brand-text p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.04);
}

.badge.green {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
}

.card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compact-card {
  border-radius: 20px;
}

.card-header {
  padding: 16px 16px 0;
}

.card-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.card-content {
  padding: 16px;
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.compact-session-grid {
  gap: 12px;
}

.session-code-box {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.compact-session-box {
  padding: 12px 14px;
}

.session-code-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.session-code {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: #c7d2fe;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.compact-actions {
  gap: 8px;
  margin-top: 10px;
}

button,
input,
select {
  font: inherit;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 40px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.24);
  transition: 0.2s ease;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary-soft {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.24);
}

.btn.secondary-soft {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.outline {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn.danger-soft {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.2);
}

.qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 18px;
  width: max-content;
  margin: auto;
}

.compact-qr-box {
  padding: 8px;
  border-radius: 16px;
}

.top-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.45);
  color: #cbd5e1;
  line-height: 1.7;
}

.top-gap-18 {
  margin-top: 18px;
}

.mt-12 {
  margin-top: 12px;
}

.winner-team-gap {
  margin-top: 8px;
}

.host-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.host-layout-light {
  align-items: start;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-badge {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.state-badge.red {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.15);
}

.state-badge.green {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.16);
}

.state-badge.gray {
  background: rgba(107, 114, 128, 0.22);
  color: #e5e7eb;
  border-color: rgba(156, 163, 175, 0.35);
}

.timer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.compact-timer-grid {
  gap: 12px;
}

.progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-bar {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition:
    width 0.25s linear,
    background 0.25s ease;
}

.progress-bar.expired {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.timer-box {
  min-width: 100px;
  text-align: center;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}

.compact-timer-box {
  min-width: 90px;
  padding: 12px 14px;
}

.timer-box .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.timer-box .value {
  font-size: 34px;
  font-weight: 900;
  color: #c7d2fe;
}

.separator {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
  width: 100%;
}

.winner-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.winner-box {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: none;
}

.winner-box.show {
  display: block;
}

.winner-box-expired {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-color: rgba(209, 213, 219, 0.18);
  box-shadow: 0 16px 40px rgba(75, 85, 99, 0.25);
}

#winnerBox .btn:disabled,
#addPointBtn:disabled {
  opacity: 0.7;
  cursor: default;
  filter: grayscale(0.15);
}

.winner-empty {
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.winner-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.winner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.winner-sub {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  font-size: 13px;
}

.winner-gap {
  margin-top: 8px;
}

.winner-name {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}

.team-buzz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.compact-buzz-grid {
  gap: 10px;
}

.team-buzz-btn {
  text-align: right;
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
  min-height: 130px;
}

.team-buzz-btn:hover:not(:disabled) {
  transform: scale(1.01);
}

.team-buzz-btn:disabled {
  opacity: 0.92;
  cursor: default;
}

.team-buzz-btn.has-players {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.team-buzz-btn.no-players {
  opacity: 0.82;
}

.team-buzz-btn.expired-winner {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.team-buzz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.team-buzz-name {
  font-size: 19px;
  font-weight: 800;
}

.team-players-count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  background: rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.team-buzz-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-player-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.muted-chip {
  opacity: 0.9;
}

.team-winner-indicator {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.side-grid {
  display: grid;
  gap: 18px;
}

.team-manage-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.team-gap {
  margin-top: 12px;
}

.modern-team-row {
  align-items: center;
}

.add-team-row {
  align-items: stretch;
  width: 100%;
}

.full-add-team-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
}

.input,
.select {
  width: 100%;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.6);
  color: #fff;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.select {
  position: relative;
  z-index: 5;
  -webkit-appearance: menulist;
  appearance: auto;
  transform: translateZ(0);
}

.input::placeholder {
  color: #64748b;
}

.field {
  width: 100%;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-inline {
  min-width: 170px;
}

.field-inline label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.small-select {
  min-width: 170px;
}

.score-box {
  min-width: 62px;
  text-align: center;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--line);
  color: #c7d2fe;
  font-weight: 900;
  padding: 10px;
  font-size: 13px;
}

.score-control-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.score-icon-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.35);
}

.icon-trash-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
  overflow: hidden;
}

.trash-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.icon-trash-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
  transform: translateY(-1px);
}

.join-box {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
  padding: 12px 14px;
  line-height: 1.7;
  color: #cbd5e1;
  font-size: 13px;
}

.compact-join-box {
  font-size: 12px;
}

.join-gap {
  margin-top: 12px;
}

.join-url {
  color: #a5b4fc;
  font-weight: 700;
  word-break: break-all;
  direction: ltr;
  display: block;
  text-align: left;
  margin-top: 4px;
}

.device-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.connected-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.connected-code {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #c7d2fe;
}

.big-buzz {
  width: 100%;
  min-height: 220px;
  border: none;
  cursor: pointer;
  border-radius: 36px;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.24);
  transition: 0.15s ease;
}

.big-buzz:hover:not(:disabled) {
  transform: translateY(-2px);
}

.big-buzz:active:not(:disabled) {
  transform: scale(0.98);
}

.big-buzz:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.big-buzz.active {
  background: #22c55e;
}

/* Join page */
.player-page-container {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.player-join-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 52px);
  overflow: auto;
}

.player-join-header,
.player-join-content {
  text-align: center;
}

.player-join-header {
  padding-top: 18px;
}

.player-join-content {
  padding-top: 12px;
  padding-bottom: 18px;
}

.player-join-form {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.join-session-code-box {
  border-radius: 22px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid var(--line);
}

.join-session-code {
  font-size: 26px;
  letter-spacing: 0.16em;
}

.join-player-btn {
  width: 100%;
  margin-top: 10px;
}

.join-error-message {
  width: 100%;
  margin: 10px 0 0;
  color: #f87171;
  font-size: 13px;
  text-align: center;
}

/* Player page */
.player-buzzer-card {
  width: 100%;
  max-width: 920px;
  min-height: calc(100vh - 36px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.player-buzzer-header {
  padding-bottom: 0;
}

.player-buzzer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.player-buzzer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.player-main-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  align-items: stretch;
  flex: 1;
}

.player-side-stats {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.player-small-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.player-info-box,
.player-stat-box {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
}

.player-answer-large {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px;
  text-align: center;
}

.player-answer-label {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}

.player-answer-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.player-answer-value span {
  font-weight: 900;
}

#answerTimeBig {
  font-size: clamp(64px, 10vw, 110px);
  line-height: 1;
  color: #c7d2fe;
}

.answer-time-unit {
  font-size: clamp(24px, 3vw, 34px);
  color: #cbd5e1;
}

.player-stat-box {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-cooldown-box {
  min-height: 150px;
  border-radius: 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.player-compact-stat {
  min-height: 110px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.player-points-box .stat-value {
  color: #c7d2fe;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 19px;
  font-weight: 800;
}

.player-cooldown-box .stat-label,
.player-compact-stat .stat-label {
  text-align: center;
  font-size: 15px;
  margin-bottom: 8px;
}

.player-cooldown-box .stat-value,
.player-compact-stat .stat-value {
  text-align: center;
  font-size: 24px;
}

.player-buzz-wrap {
  margin-top: auto;
  display: flex;
  align-items: end;
}

.player-main-buzz {
  width: 100%;
  min-height: clamp(170px, 28vh, 310px);
  font-size: clamp(34px, 6vw, 62px);
  border-radius: 34px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #10b981;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 99;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.team-blue {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.95),
    rgba(14, 165, 233, 0.92)
  );
}

.team-red {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.95),
    rgba(244, 63, 94, 0.92)
  );
}

.team-green {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.95),
    rgba(34, 197, 94, 0.92)
  );
}

.team-purple {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.95),
    rgba(124, 58, 237, 0.92)
  );
}

.team-orange {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.95),
    rgba(234, 88, 12, 0.92)
  );
}

.team-yellow {
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.95),
    rgba(250, 204, 21, 0.92)
  );
}

.team-cyan {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.95),
    rgba(8, 145, 178, 0.92)
  );
}

/* Home */
.home-hero {
  max-width: 1120px;
  margin: 0 auto;
}

.home-hero-inner {
  max-width: 100%;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-text {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}

.home-hero-text h1,
.home-hero-text p {
  text-align: center;
}

.home-widget {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.home-widget .card-header {
  text-align: center;
}

.home-widget .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-actions {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

.home-main-btn {
  width: 100%;
  max-width: 320px;
}

.home-note {
  width: 100%;
  text-align: center;
}

#joinCodeInput {
  text-align: center;
}

.session-info-card .session-card-body {
  position: relative;
}

.session-info-grid {
  margin-top: 0;
}

.session-sensitive-area {
  transition:
    filter 0.22s ease,
    opacity 0.22s ease;
}

.session-sensitive-area.is-blurred {
  filter: blur(10px);
  opacity: 0.75;
  -webkit-user-select: none;
  user-select: none;
}

.session-privacy-toggle {
  position: absolute;
  top: -55px;
  left: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.session-privacy-toggle:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(129, 140, 248, 0.28);
}

.session-privacy-toggle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

.session-privacy-toggle:active {
  transform: scale(0.97);
}

@media (min-width: 1024px) {
  .player-join-card {
    max-width: 440px;
  }
}

@media (max-width: 1100px) {
  .host-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-badges {
    width: 100%;
  }

  .player-buzzer-card {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    padding: 10px;
  }

  .session-grid,
  .compact-session-grid,
  .timer-grid,
  .compact-timer-grid,
  .device-form,
  .team-buzz-grid,
  .compact-buzz-grid {
    grid-template-columns: 1fr;
  }

  .card-content,
  .card-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .big-buzz {
    min-height: 180px;
    font-size: 30px;
  }

  .winner-name {
    font-size: 24px;
  }

  .connected-code,
  .session-code,
  .join-session-code,
  .compact-session-code {
    font-size: 21px;
    letter-spacing: 0.1em;
  }

  .team-buzz-name {
    font-size: 17px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .brand-text h1 {
    font-size: 18px;
  }

  .modern-team-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .score-control-wrap {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 8px;
  }

  .home-hero {
    max-width: 100%;
  }

  .home-hero-inner {
    padding: 20px 14px;
  }

  .home-hero-text {
    margin-bottom: 14px;
  }

  .home-hero-text h1 {
    font-size: 28px;
  }

  .home-hero-text p {
    font-size: 13px;
    line-height: 1.8;
  }

  .home-widget {
    max-width: 100%;
    border-radius: 18px;
  }

  .home-widget .card-title {
    font-size: 18px;
  }

  .home-widget .card-desc {
    font-size: 12px;
  }

  .home-widget .card-header,
  .home-widget .card-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-main-btn {
    max-width: 100%;
  }

  .player-page-container {
    min-height: calc(100vh - 20px);
    padding: 4px 0;
  }

  .player-join-card {
    max-width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 18px;
  }

  .player-join-header {
    padding-top: 14px;
  }

  .player-join-form {
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .join-session-code-box {
    padding: 14px;
  }

  .player-buzzer-card {
    min-height: calc(100vh - 20px);
  }

  .player-buzzer-content {
    gap: 10px;
  }

  .player-buzzer-top {
    align-items: center;
  }

  .player-main-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-answer-large {
    min-height: 170px;
    padding: 14px 10px;
  }

  #answerTimeBig {
    font-size: 64px;
  }

  .answer-time-unit {
    font-size: 22px;
  }

  .player-cooldown-box {
    min-height: 108px;
  }

  .player-small-stats-row {
    gap: 10px;
  }

  .player-compact-stat {
    min-height: 92px;
    padding: 12px 10px;
  }

  .stat-label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .stat-value {
    font-size: 16px;
  }

  .player-cooldown-box .stat-label,
  .player-compact-stat .stat-label {
    font-size: 14px;
  }

  .player-cooldown-box .stat-value,
  .player-compact-stat .stat-value {
    font-size: 22px;
  }

  .player-main-buzz {
    min-height: 145px;
    font-size: 30px;
    border-radius: 24px;
  }

  .session-privacy-toggle {
    top: -57px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  body {
    padding: 8px;
  }

  .player-page-container {
    min-height: calc(100vh - 16px);
    padding: 2px 0;
  }

  .player-join-card {
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .player-buzzer-card {
    min-height: calc(100vh - 16px);
  }

  .player-buzzer-content {
    gap: 8px;
  }

  .card-header {
    padding-top: 12px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-desc {
    font-size: 11px;
  }

  .state-badge {
    padding: 6px 10px;
    font-size: 11px;
  }

  .compact-session-code {
    font-size: 18px;
  }

  .player-answer-large {
    min-height: 150px;
  }

  #answerTimeBig {
    font-size: 56px;
  }

  .answer-time-unit {
    font-size: 20px;
  }

  .player-cooldown-box {
    min-height: 84px;
  }

  .player-small-stats-row {
    gap: 8px;
  }

  .player-compact-stat {
    min-height: 76px;
    padding: 10px 8px;
    border-radius: 18px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 15px;
  }

  .player-cooldown-box .stat-label,
  .player-compact-stat .stat-label {
    font-size: 13px;
  }

  .player-cooldown-box .stat-value,
  .player-compact-stat .stat-value {
    font-size: 20px;
  }

  .player-main-buzz {
    min-height: 130px;
    font-size: 28px;
    border-radius: 20px;
  }

  .join-session-code {
    font-size: 22px;
  }

  .session-privacy-toggle {
    top: -48px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}