.icon-btn:hover,
.btn:hover {
  filter: brightness(0.94);
}

.icon-btn:active,
.btn:active,
.chip:active,
.card:active.pressable {
  transform: scale(0.96);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: var(--nv-radius-pill);
  padding: 16px 24px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-text);
  box-shadow: none;
  filter: none;
  cursor: not-allowed;
  transform: none;
}

.btn--text:disabled,
.btn--text[aria-disabled="true"] {
  background: transparent;
}

.btn--primary {
  background: var(--nv-orange);
  color: var(--nv-on-orange);
  box-shadow: var(--nv-shadow-cta);
  font-size: var(--fs-lg);
}

.btn--white {
  background: var(--color-surface);
  color: var(--nv-orange-text);
  box-shadow: var(--shadow-hero);
  font-size: var(--fs-lg);
  padding: 19px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-dark-text);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  font-size: var(--fs-lg);
}

.btn--text {
  background: transparent;
  color: var(--nv-text);
  min-height: auto;
  padding: 8px;
  font-size: var(--fs-md);
  font-weight: 700;
  box-shadow: none;
}

.btn--text-on-dark {
  color: rgba(255, 255, 255, 0.9);
}

.btn--outline {
  background: var(--color-surface);
  color: var(--nv-text);
  border: 1.5px solid var(--nv-border-strong);
}

.btn--danger {
  background: var(--color-surface);
  color: var(--nv-error);
  border: 1.5px solid var(--nv-border-strong);
}

.btn--success {
  background: var(--nv-green);
  color: var(--nv-on-orange);
  box-shadow: var(--nv-shadow-cta-green);
}

.btn--teal {
  background: var(--nv-teal);
  color: var(--on-dark-text);
  box-shadow: var(--shadow-cta-teal);
}

.btn--block {
  width: 100%;
}

.btn--waiting {
  background: var(--color-text-2);
  color: var(--on-dark-text);
  box-shadow: none;
}

.card {
  background: var(--nv-surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--nv-shadow-card);
}

.card--hint {
  background: linear-gradient(135deg, var(--color-tint-orange-3), var(--color-tint-cream));
  color: var(--color-brown-3);
  font-size: var(--fs-sm);
}

.card--float {
  box-shadow: var(--nv-shadow-float);
  border-radius: var(--radius-lg);
}

.label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nv-text-tertiary);
  margin-bottom: 6px;
}

.field {
  background: var(--nv-surface-secondary);
  border-radius: 14px;
  padding: 12px 15px;
}

.field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--nv-text);
  outline: none;
}

.input-underline {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--nv-border);
  background: transparent;
  font-family: var(--nv-font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  padding: 10px 0;
  min-height: 44px;
  outline: none;
}

label.card {
  display: block;
  cursor: text;
  touch-action: manipulation;
  -webkit-tap-highlight-color: var(--color-accent-12);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  flex: 0 0 auto;
  border-radius: var(--nv-radius-pill);
  padding: 10px 16px;
  border: 1.5px solid var(--nv-border);
  background: var(--color-surface);
  color: var(--nv-text-secondary);
  font-weight: 800;
  font-size: var(--fs-md);
  cursor: pointer;
  white-space: nowrap;
}

.option.is-on {
  background: var(--color-accent-12);
  color: var(--nv-orange-text);
  border-color: var(--nv-orange);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--nv-border);
}

.toggle-row:last-child {
  border-bottom: 0;
}

.tile {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.switch {
  width: 64px;
  height: 44px;
  min-width: 64px;
  border-radius: 0;
  background: transparent;
  border: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.switch::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 31px;
  left: 6px;
  top: 6px;
  border-radius: var(--nv-radius-pill);
  background: var(--color-border-strong);
}

.switch.is-on {
  background: transparent;
}

.switch.is-on::before {
  background: var(--color-success);
}
.switch:disabled,
.switch[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.option-row.is-locked {
  opacity: 0.5;
  pointer-events: none;
}

.switch::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--color-surface);
  top: 9px;
  left: 9px;
  transition: left 0.2s var(--spring);
}

.switch.is-on::after {
  left: 30px;
}

.sticky-cta {
  margin-top: auto;
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--nv-bg) 28%);
}

.sticky-cta #btn-submit {
  white-space: normal;
  line-height: 1.25;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(34px + env(safe-area-inset-top, 0px)) 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.wordmark {
  font-family: var(--nv-font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--on-dark-text-22);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-text);
  text-decoration: none;
}

.profile-chip {
  min-height: 44px;
  border-radius: var(--nv-radius-pill);
  background: var(--on-dark-text-22);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  color: var(--on-dark-text);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--fs-sm);
}

.avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-text);
  font-weight: 800;
  flex-shrink: 0;
}

.hero-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.letter-row {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}

.letter-tile {
  width: 62px;
  height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-tile);
  color: var(--nv-orange);
  font-family: var(--nv-font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mid h1 {
  font-family: var(--nv-font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  max-width: 12ch;
}

.hero-mid p {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 24px calc(40px + env(safe-area-inset-bottom, 0px));
}

.install-hint:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--on-dark-text-96);
  color: var(--color-ink-warm);
}

.install-hint p {
  margin: 0;
}

.install-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.install-hint .btn--text {
  color: var(--color-ink-warm);
}

.code-tiles {
  display: flex;
  gap: 6px;
}

.code-tile {
  width: 38px;
  height: 48px;
  border-radius: 11px;
  background: var(--on-dark-text-96);
  color: var(--nv-orange);
  font-family: var(--nv-font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pill);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nv-border);
  background: var(--color-surface);
  border-radius: var(--nv-radius-pill);
  padding: 9px 13px;
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  color: var(--nv-text);
}

.tab.is-on {
  background: var(--color-accent-12);
  color: var(--nv-orange-text);
  border: 1.5px solid var(--nv-orange);
  box-shadow: var(--shadow-chip);
}

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Names, categories, answers and invitation URLs may contain no spaces. */
#room-app {
  overflow-wrap: anywhere;
}

#host-transfer-select,
#host-kick-select {
  width: 100%;
  min-width: 0;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nv-surface-secondary);
  border-radius: var(--nv-radius-pill);
  padding: 5px 12px 5px 5px;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.host-mark {
  color: var(--nv-orange-text);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: slfPulse 1.6s infinite;
  display: inline-block;
}

.chip-live {
  background: rgba(76, 217, 100, 0.14);
  color: var(--color-success-2);
  border-radius: var(--nv-radius-pill);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lobby-footer {
  position: sticky;
  bottom: 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.lobby-footer .card {
  border-radius: 20px;
  box-shadow: var(--nv-shadow-float);
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.lobby-bar-row {
  display: flex;
  flex: 1 1 100%;
  gap: 10px;
  min-width: 0;
}

.lobby-footer .lobby-bar-row .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

.lobby-bar-status {
  flex: 1 1 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.lobby-host-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lobby-host-options > * {
  margin: 0;
}

.lobby-footer .room-grow {
  flex: 1 1 12rem;
  min-width: min(12rem, 100%);
  overflow-wrap: break-word;
}

.lobby-footer .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.input-hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 16px;
  color: var(--on-dark-text);
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
}

.input-hdr.is-urgent {
  background: linear-gradient(135deg, var(--color-error-2), #ff6b5a);
}

.timer-num.timer-urgent {
  color: var(--on-dark-text);
  animation: slfPulse 0.9s ease infinite;
}

.letter-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.letter-ring {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.letter-inner {
  width: 68px;
  height: 68px;
  background: var(--color-surface);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nv-orange);
  font-family: var(--nv-font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  animation: slfPop 0.4s var(--spring);
}

.timer-num {
  font-family: var(--nv-font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
}

.btn-reroll {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: var(--on-dark-text);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: var(--nv-radius-pill);
  cursor: pointer;
  min-height: 32px;
}

.btn-reroll:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.progress {
  height: 7px;
  border-radius: var(--nv-radius-pill);
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  margin-top: 8px;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--color-surface);
  border-radius: inherit;
  transition: width 0.6s ease;
}

.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-height: 56px;
  box-shadow: var(--nv-shadow-card);
  border-left: 4px solid var(--nv-orange);
  cursor: text;
  touch-action: manipulation;
  -webkit-tap-highlight-color: var(--color-accent-16);
}

.cat-card input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 0;
  font-family: var(--nv-font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  outline: none;
  background: transparent;
  padding: 12px 16px 12px 102px;
  scroll-margin-bottom: 140px;
}

.cat-card:has(> i) input {
  padding-right: 48px;
}

.cat-card.is-locked {
  background: var(--color-surface-muted);
  cursor: default;
}

.cat-card.is-locked input {
  color: var(--color-text-4);
  pointer-events: none;
}

.cat-name {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nv-text-tertiary);
}

/* Built-in categories: ink text on a tint (WCAG-safe), custom ones unchanged. */
.cat-name[data-cat-key],
.cat-heading[data-cat-key] {
  border-radius: 8px;
}
.cat-name[data-cat-key] {
  display: inline-block;
  padding: 2px 6px;
  box-sizing: border-box;
}
.cat-heading[data-cat-key] {
  display: inline-block;
  padding: 2px 10px;
}
.cat-idea[data-cat-key] {
  border-color: transparent;
}
.cat-card .cat-name[data-cat-key] {
  width: 76px;
}
.cat-name[data-cat-key="stadt"],
.cat-heading[data-cat-key="stadt"],
.cat-idea[data-cat-key="stadt"] {
  background: var(--cat-stadt-tint);
  color: var(--cat-stadt-ink);
}
.cat-name[data-cat-key="land"],
.cat-heading[data-cat-key="land"],
.cat-idea[data-cat-key="land"] {
  background: var(--cat-land-tint);
  color: var(--cat-land-ink);
}
.cat-name[data-cat-key="fluss"],
.cat-heading[data-cat-key="fluss"],
.cat-idea[data-cat-key="fluss"] {
  background: var(--cat-fluss-tint);
  color: var(--cat-fluss-ink);
}
.cat-name[data-cat-key="name"],
.cat-heading[data-cat-key="name"],
.cat-idea[data-cat-key="name"] {
  background: var(--cat-name-tint);
  color: var(--cat-name-ink);
}
.cat-name[data-cat-key="beruf"],
.cat-heading[data-cat-key="beruf"],
.cat-idea[data-cat-key="beruf"] {
  background: var(--cat-beruf-tint);
  color: var(--cat-beruf-ink);
}
.cat-name[data-cat-key="tier"],
.cat-heading[data-cat-key="tier"],
.cat-idea[data-cat-key="tier"] {
  background: var(--cat-tier-tint);
  color: var(--cat-tier-ink);
}

.cat-card .cat-name {
  width: 72px;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  user-select: none;
}

.cat-card > i {
  pointer-events: none;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-left: auto;
}

.react-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  position: relative;
  overflow: visible;
}

.react-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--nv-radius-pill);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-lg);
  cursor: pointer;
}

.float-emoji {
  position: absolute;
  left: 80px;
  bottom: 8px;
  font-size: var(--fs-2xl);
  pointer-events: none;
  animation: slfFloat 1.4s ease forwards;
}

.connection-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px
    calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(27, 29, 34, 0.94);
  color: var(--on-dark-text);
}

.connection-overlay:not([hidden]) {
  display: flex;
}

.connection-overlay p {
  max-width: 22rem;
  margin: 0;
  font-size: var(--fs-xl);
  line-height: 1.35;
  text-align: center;
}

#my-round h2 {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
}

.auto-check {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--on-dark-bg), var(--on-dark-bg-2) 60%, var(--on-dark-bg));
  color: var(--on-dark-text);
  padding: calc(40px + env(safe-area-inset-top, 0px))
    max(28px, env(safe-area-inset-right, 0px))
    calc(40px + env(safe-area-inset-bottom, 0px))
    max(28px, env(safe-area-inset-left, 0px));
  display: flex;
  justify-content: center;
}

.auto-check inner,
.auto-check > div {
  max-width: 460px;
  width: 100%;
}

.sweep {
  height: 8px;
  border-radius: var(--nv-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 18px 0 22px;
}

.sweep > span {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--nv-orange);
  animation: slfSweep 1.3s ease infinite;
}

.check-row {
  background: var(--on-dark-text-6);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dispute-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--nv-shadow-float);
  position: relative;
  overflow: hidden;
}

.dispute-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
}

.word-xl {
  font-family: var(--nv-font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.dispute-by {
  font-weight: 800;
  font-size: var(--fs-md);
  margin: 0 0 8px;
}

.review-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.review-letter {
  width: 56px;
  height: 56px;
  font-size: var(--fs-3xl);
  flex-shrink: 0;
}

.review-status-text {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-dark-text);
}

.bar {
  height: 9px;
  border-radius: var(--nv-radius-pill);
  background: rgba(237, 59, 59, 0.18);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-success), var(--color-teal));
}

.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.dist-word {
  width: 96px;
  font-size: var(--fs-md);
  font-weight: 800;
  flex-shrink: 0;
}

.dist-track {
  flex: 1;
  height: 22px;
  border-radius: 7px;
  background: var(--nv-surface-secondary);
  overflow: hidden;
}

.dist-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
  min-height: 168px;
}

.podium-col {
  flex: 1;
  min-width: 0;
  max-width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--on-dark-text);
}

.podium-person {
  width: 100%;
  margin-bottom: 8px;
}

.podium-col .avatar {
  width: 42px;
  height: 42px;
  font-size: var(--fs-md);
  margin: 0 auto 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.podium-col--1 .avatar {
  width: 56px;
  height: 56px;
  font-size: var(--fs-xl);
}

.podium-col .name {
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pillar {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--on-dark-text-96);
  color: var(--nv-orange);
  border-radius: 12px 12px 4px 4px;
  font-family: var(--nv-font-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  line-height: 1;
  padding-bottom: 8px;
  box-shadow: var(--shadow-pillar);
}

.podium-col--1 .pillar {
  height: 84px;
  font-size: var(--fs-3xl);
  background: linear-gradient(var(--on-dark-text), var(--color-podium-bottom));
}

.podium-col--2 .pillar {
  height: 62px;
}

.podium-col--3 .pillar {
  height: 46px;
  font-size: var(--fs-xl);
}

.podium-col.is-me .pillar {
  box-shadow:
    0 0 0 3px var(--on-dark-text),
    var(--shadow-pillar);
}

.you-tag {
  color: var(--nv-orange-text);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.podium-col .you-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--on-dark-text);
  color: var(--on-dark-bg);
  font-size: var(--fs-xs);
}

.rank-row.is-me {
  background: var(--color-tint-orange-2);
  box-shadow: inset 4px 0 0 var(--nv-orange);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.stat-tile {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.stat-tile .val {
  font-family: var(--nv-font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 6, 0.72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  display: none;
  align-items: flex-start;
  padding: calc(24px + env(safe-area-inset-top, 0px))
    max(24px, env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    max(24px, env(safe-area-inset-left, 0px));
  z-index: 40;
}

.overlay:not([hidden]) {
  display: flex;
}

.overlay-dialog {
  background: var(--color-surface);
  border-radius: 28px;
  padding: 22px 24px 20px;
  max-width: 340px;
  margin: auto;
  width: 100%;
  animation: slfPop 0.28s var(--spring);
  position: relative;
}

.confirm-title {
  margin: 0 0 8px;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--nv-text);
}

.confirm-message {
  margin: 0 0 18px;
  color: var(--nv-text-secondary);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.confirm-actions .btn {
  flex: 1 1 8rem;
  min-height: 48px;
  justify-content: center;
}

.confirm-actions .btn--destructive {
  background: var(--nv-error);
  color: var(--on-dark-text);
  box-shadow: none;
}

.banner-float {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  background: rgba(237, 59, 59, 0.95);
  color: var(--on-dark-text);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.flash-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px 0;
}

.flash {
  background: var(--color-surface);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.flash-error {
  color: var(--nv-error);
  border: 1.5px solid var(--nv-error);
}

.field-error {
  border: 1.5px solid var(--nv-error) !important;
}

.error-text {
  color: var(--nv-error);
  font-size: var(--fs-sm);
  margin-top: 6px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--nv-border);
}

.me-row {
  border: 2px solid var(--color-accent-35);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--nv-shadow-float);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--nv-shadow-card);
  border-top: 4px solid var(--nv-orange);
}

.screen-beamer {
  min-height: 100vh;
  max-width: none;
  background: radial-gradient(
    120% 90% at 20% 0%,
    #2a1706 0%,
    #121217 55%,
    #0b0b0f 100%
  );
  color: var(--on-dark-text);
  padding: clamp(16px, 4vw, 40px);
}

.beamer-letter {
  font-family: var(--nv-font-display);
  font-size: 200px;
  font-weight: 700;
  line-height: 0.85;
  background: linear-gradient(180deg, var(--color-accent-4), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 280px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
}

.dot.is-on {
  background: var(--color-accent-2);
}

.seg {
  display: flex;
  background: var(--nv-surface-secondary);
  border-radius: var(--nv-radius-pill);
  padding: 4px;
}

.seg button,
.seg a {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--nv-text-secondary);
  border-radius: var(--nv-radius-pill);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.seg button.is-on,
.seg a.is-on {
  background: var(--color-surface);
  color: var(--nv-orange-text);
  box-shadow: var(--shadow-small);
}

.sso {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  font-size: var(--fs-md);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.sso--google {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}

.sso--apple {
  background: var(--color-apple-bg);
  color: var(--on-dark-text);
  border: 0;
  box-shadow: var(--sso-apple-ring);
}

.help-step {
  display: flex;
  gap: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
}

.num-tile {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--color-accent-12);
  color: var(--nv-orange-text);
  font-family: var(--nv-font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.week-bars,
.round-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.week-bars span,
.round-bars .col {
  flex: 1;
  background: var(--color-accent-22);
  border-radius: 6px 6px 3px 3px;
  min-height: 8px;
}

.week-bars span.is-now {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
}

.chat-line {
  font-size: var(--fs-sm);
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--nv-text-secondary);
}

@media (min-width: 640px) {
  .screen {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .screen:not(.screen-beamer):not(.screen--hero):not(.screen--login) {
    max-width: 1040px;
  }

  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  #input-view .screen-body,
  .input-col {
    max-width: 560px;
    margin: 0 auto;
  }
}

.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--color-accent), var(--color-accent-2) 55%, var(--on-dark-bg));
  color: var(--on-dark-text);
  text-align: center;
  overflow-wrap: anywhere;
  padding: calc(24px + env(safe-area-inset-top, 0px))
    max(24px, env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    max(24px, env(safe-area-inset-left, 0px));
}

.countdown-overlay > * {
  flex-shrink: 0;
  max-width: 100%;
}

.countdown-overlay[hidden] {
  display: none !important;
}

.countdown-num {
  font-family: var(--nv-font-display);
  font-size: clamp(48px, 18dvh, 120px);
  font-weight: 700;
  line-height: 1;
  animation: slfPop 0.35s var(--spring);
}

.countdown-caption {
  margin-top: 8px;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.countdown-hint {
  margin-top: 12px;
  font-size: var(--fs-md);
  font-weight: 600;
  opacity: 0.9;
  max-width: 280px;
}

.ready-check-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  max-height: 25dvh;
  overflow-y: auto;
}

#btn-round-ready {
  margin-top: 18px;
  min-width: 220px;
}

#btn-force-start {
  margin-top: 10px;
  min-width: 220px;
}

.ready-check-count {
  margin-top: 10px;
  font-family: var(--nv-font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.input-presence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 8px;
}

.presence-chip {
  width: 32px;
  height: 32px;
  border-radius: var(--nv-radius-pill);
  color: var(--on-dark-text);
  font-weight: 800;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ring-surface);
}

.presence-chip.is-ready {
  box-shadow: 0 0 0 2px var(--nv-green);
}

.presence-chip.is-off {
  opacity: 0.4;
  filter: grayscale(0.6);
}

.cat-section-label {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nv-text-tertiary);
}

.cat-picker-list,
.cat-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-picker-row,
.cat-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--nv-border);
  background: var(--color-surface);
  min-height: 52px;
}

.cat-picker-row.is-dragging,
.cat-picker-row.is-dragging {
  opacity: 0.72;
  box-shadow: var(--nv-shadow-card);
}

.cat-drag {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--nv-surface-secondary);
  color: var(--nv-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.cat-drag:active {
  cursor: grabbing;
}

.cat-picker-row .cat-name,
.cat-picker-row .cat-name {
  flex: 1;
  font-weight: 800;
  font-size: var(--fs-md);
  min-width: 0;
}

.cat-picker-row .cat-origin,
.cat-picker-row .cat-origin {
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.cat-picker-row .icon-btn,
.cat-picker-row .icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--nv-surface-secondary);
  color: var(--nv-text);
  flex-shrink: 0;
}

.cat-picker-row .icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cat-add-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-idea-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-idea {
  min-height: 44px;
  border: 0;
  border-radius: var(--nv-radius-pill);
  padding: 8px 14px;
  background: var(--color-tint-orange);
  color: var(--nv-text);
  font-weight: 800;
  font-size: var(--fs-sm);
  cursor: pointer;
  touch-action: manipulation;
}

.cat-idea:focus-visible {
  outline: 2px solid var(--nv-orange);
  outline-offset: 2px;
}

.rank-row.is-ai-toggle {
  cursor: pointer;
}

.rank-row.is-ai-toggle:focus {
  outline: 2px solid var(--nv-orange);
  outline-offset: 2px;
}


.takeover-prompt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.takeover-prompt p {
  flex: 1 1 100
.takeover-prompt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.takeover-prompt p {
  flex: 1 1 100%;
  margin: 0;
  font-weight: 700;
}

.leave-room {
  margin: 0;
  text-align: right;
}

.evening-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}
.evening-table th,
.evening-table td {
  text-align: left;
  padding: 4px 6px;
}
