:root {
  --bg: oklch(0.15 0.014 255);
  --bg-elev: oklch(0.19 0.015 255);
  --bg-card: oklch(0.225 0.016 255);
  --border: oklch(1 0 0 / 0.08);
  --text: oklch(0.95 0.006 255);
  --text-dim: oklch(0.64 0.018 255);
  --accent: oklch(0.72 0.14 155);
  --accent-dim: oklch(0.55 0.13 155);
  --accent-soft: oklch(0.55 0.13 155 / 0.16);
  --warn: oklch(0.75 0.13 85);
  --warn-soft: oklch(0.75 0.13 85 / 0.16);
  --danger: oklch(0.65 0.19 25);
  --danger-soft: oklch(0.65 0.19 25 / 0.15);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 11px;
  --shadow: 0 20px 60px oklch(0 0 0 / 0.4);
  --font:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --font-display: "Sora", var(--font);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family: var(--font);
  background:
    radial-gradient(
      1100px 620px at 18% -8%,
      oklch(0.26 0.03 250 / 0.55) 0%,
      transparent 60%
    ),
    radial-gradient(
      900px 640px at 100% 105%,
      oklch(0.24 0.05 155 / 0.35) 0%,
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  -webkit-font-smoothing: antialiased;
}
.app {
  width: 100%;
  max-width: 560px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.brand .ball {
  width: 34px;
  height: 34px;
  color: var(--accent);
  display: flex;
}
.brand .ball svg {
  width: 100%;
  height: 100%;
}
.brand span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.screen {
  display: none;
}
.screen.active {
  display: block;
  animation: fade-in 0.35s ease;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 22px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
input[type="text"] {
  width: 100%;
  background: oklch(0.12 0.012 255);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
input[type="text"]:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="text"]::placeholder {
  color: oklch(0.45 0.02 255);
}
.field {
  margin-bottom: 16px;
}
.autocomplete-field {
  position: relative;
}
.suggestions-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
}
.suggestions-dropdown.open {
  display: block;
}
.suggestion-item {
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.row {
  display: flex;
  gap: 10px;
}
.row > * {
  flex: 1;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 18px;
  min-height: 48px;
  transition:
    transform 0.1s ease,
    filter 0.15s ease,
    opacity 0.15s ease,
    border-color 0.15s ease;
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: oklch(0.18 0.03 155);
  width: 100%;
}
.btn-primary:not(:disabled):hover {
  filter: brightness(1.08);
}
.btn-secondary {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
}
.btn-secondary:not(:disabled):hover {
  border-color: var(--accent-dim);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 8px 10px;
  min-height: auto;
}
.btn-ghost:hover {
  color: var(--text);
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  min-height: 44px;
}
.tab.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.error-msg {
  color: var(--danger);
  font-size: 13.5px;
  margin: 10px 0 0;
  min-height: 18px;
}
.room-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  padding: 18px 0;
  color: var(--accent);
  cursor: pointer;
}
.copy-hint {
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: -14px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin: 20px 0 10px;
}
.player-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.player-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.player-chip .pname {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-chip .host-badge {
  font-size: 10.5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.player-chip .score {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  font-weight: 700;
}
.player-chip.disconnected {
  opacity: 0.5;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}
.option-group {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.option-btn {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 11px;
  font-weight: 600;
}
.option-btn.selected {
  background: var(--accent-soft);
  border-color: var(--accent-dim);
  color: var(--accent);
}
.mode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.mode-card.selected {
  border-color: var(--accent-dim);
  background: var(--accent-soft);
}
.mode-card .emoji {
  font-size: 22px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.mode-card .emoji svg {
  width: 22px;
  height: 22px;
}
.mode-card .title {
  font-weight: 700;
  font-size: 14.5px;
}
.mode-card .desc {
  font-size: 12.5px;
  color: var(--text-dim);
}
.lobby-config-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.lobby-config-col .option-group {
  margin-bottom: 0;
}
.lobby-mode-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 13.5px;
  min-height: 44px;
}
.lobby-mode-badge .emoji {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.lobby-mode-badge .emoji svg {
  width: 20px;
  height: 20px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 18px;
}
.toggle-row .label-main {
  font-weight: 600;
  font-size: 14px;
}
.toggle-row .label-sub {
  font-size: 12px;
  color: var(--text-dim);
}
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  inset: 0;
  background: oklch(0.3 0.016 255);
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider {
  background: var(--accent-dim);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
}
.timer-wrap {
  margin: 6px 0 20px;
}
.timer-bar-track {
  height: 8px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 999px;
  transition:
    width 0.25s linear,
    background 0.25s ease;
  width: 100%;
}
.timer-bar-fill.low {
  background: linear-gradient(90deg, var(--danger), oklch(0.5 0.17 20));
}
.timer-label {
  text-align: right;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.round-tag {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}
.status-line {
  font-size: 13.5px;
  color: var(--accent);
  min-height: 18px;
  margin-top: 10px;
  text-align: center;
}
.reveal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.reveal-card {
  flex: 1;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
}
.reveal-card .who {
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 700;
}
.club-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.04);
}
.reveal-card .team {
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
}
.reveal-vs {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 700;
  flex-shrink: 0;
}
.match-banner {
  text-align: center;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.match-banner.yes {
  background: var(--accent-soft);
  color: var(--accent);
}
.match-banner.no {
  background: var(--danger-soft);
  color: var(--danger);
}
.match-banner.info {
  background: oklch(0.64 0.018 255 / 0.14);
  color: var(--text-dim);
}
.assigned-team {
  text-align: center;
  margin-bottom: 6px;
}
.teams-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.assigned-team .club {
  font-size: 22px;
  font-weight: 800;
}
.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.club-logo-inline {
  width: 32px;
  height: 32px;
  margin: 0;
}
.teams-and {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}
.constraint-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.result-block {
  text-align: center;
  padding: 10px 0 4px;
}
.result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-icon.muted {
  border-color: var(--border);
  color: var(--text-dim);
}
.result-icon svg {
  width: 26px;
  height: 26px;
}
.result-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.result-sub {
  color: var(--text-dim);
  font-size: 13.5px;
}
.player-photo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin: 4px auto 10px;
  border: 3px solid var(--accent-dim);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 8px 24px oklch(0 0 0 / 0.4);
  background: var(--bg-elev);
}
.career-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.career-chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.career-chip-arrow {
  color: var(--text-dim);
  font-size: 12px;
}
.score-strip {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 18px 0 4px;
  flex-wrap: wrap;
}
.score-strip .who {
  text-align: center;
}
.score-strip .name {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.score-strip .val {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.score-strip .val.leader {
  color: var(--accent);
}
.final-winner {
  text-align: center;
  margin: 6px 0 20px;
}
.final-winner .trophy {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.final-winner .trophy.muted {
  border-color: var(--border);
  color: var(--text-dim);
}
.final-winner .trophy svg {
  width: 32px;
  height: 32px;
}
.final-winner .line {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-top: 8px;
}
.hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: -6px;
  margin-bottom: 16px;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mode-card.locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
} /* ---------- Başlangıç ekranı: tam viewport, sayfa 4 moda bölünüyor ---------- */
body.start-active {
  display: block;
  padding: 0;
}
body.start-active .app {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.start-active .brand {
  display: none;
}
#screen-start {
  flex-direction: column;
  min-height: 90vh;
  min-height: 90dvh;
  padding: 80px 40px 0;
}
#screen-start.active {
  display: flex;
}
.start-hero {
  text-align: center;
  margin-bottom: 14px;
}
.start-hero .start-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.start-hero .start-brand .ball {
  width: 32px;
  height: 32px;
  color: var(--accent);
  display: flex;
}
.start-hero .start-brand .ball svg {
  width: 100%;
  height: 100%;
}
.start-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 14px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.start-hero .subtitle {
  max-width: 660px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.5;
}
.mode-grid {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 14px;
  padding-bottom: 18px;
  width: 100%;
  margin: 0 auto;
}
.mode-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  min-height: 400px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.mode-panel:hover,
.mode-panel:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px oklch(0 0 0 / 0.4);
  outline: none;
  z-index: 2;
}
.mode-panel[data-accent="1"] {
  background: linear-gradient(
    190deg,
    oklch(0.6 0.15 155 / 0.2),
    var(--bg-elev) 65%
  );
}
.mode-panel[data-accent="1"]:hover {
  border-color: var(--accent-dim);
}
.mode-panel[data-accent="2"] {
  background: linear-gradient(
    190deg,
    oklch(0.6 0.15 85 / 0.2),
    var(--bg-elev) 65%
  );
}
.mode-panel[data-accent="2"]:hover {
  border-color: oklch(0.6 0.15 85);
}
.mode-panel[data-accent="3"] {
  background: linear-gradient(
    190deg,
    oklch(0.6 0.15 300 / 0.22),
    var(--bg-elev) 65%
  );
}
.mode-panel[data-accent="3"]:hover {
  border-color: oklch(0.6 0.15 300);
}
.mode-panel[data-accent="4"] {
  background: linear-gradient(
    190deg,
    oklch(0.6 0.15 230 / 0.22),
    var(--bg-elev) 65%
  );
}
.mode-panel[data-accent="4"]:hover {
  border-color: oklch(0.6 0.15 230);
}
.mode-info-btn {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  padding: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 6px;
}
.mode-info-btn:hover {
  background: oklch(1 0 0 / 0.16);
  color: var(--text);
}
.mode-panel-top {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.mode-panel-emoji {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 14px;
  color: var(--accent);
  background: var(--accent-soft);
}
.mode-panel[data-accent="2"] .mode-panel-emoji {
  color: oklch(0.6 0.15 85);
  background: oklch(0.6 0.15 85 / 0.16);
}
.mode-panel[data-accent="3"] .mode-panel-emoji {
  color: oklch(0.6 0.15 300);
  background: oklch(0.6 0.15 300 / 0.16);
}
.mode-panel[data-accent="4"] .mode-panel-emoji {
  color: oklch(0.6 0.15 230);
  background: oklch(0.6 0.15 230 / 0.16);
}
.mode-panel-emoji svg {
  width: 22px;
  height: 22px;
}
.mode-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 7px;
}
.mode-panel-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.mode-panel-watermark {
  display: none;
}
.mode-panel-cta {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  transition: background 0.15s ease;
}
.mode-panel[data-accent="2"] .mode-panel-cta {
  color: oklch(0.6 0.15 85);
  background: oklch(0.6 0.15 85 / 0.16);
}
.mode-panel[data-accent="3"] .mode-panel-cta {
  color: oklch(0.6 0.15 300);
  background: oklch(0.6 0.15 300 / 0.16);
}
.mode-panel[data-accent="4"] .mode-panel-cta {
  color: oklch(0.6 0.15 230);
  background: oklch(0.6 0.15 230 / 0.16);
}
.mode-panel:hover .mode-panel-cta {
  filter: brightness(1.3);
}
.btn-back {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13.5px;
  padding: 4px 0;
  margin-bottom: 10px;
  display: inline-block;
  width: auto;
  min-height: 0;
}
.btn-back:hover {
  color: var(--accent);
}
.home-mode-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.home-mode-note strong {
  color: var(--accent);
  font-weight: 700;
}
.home-mode-note span {
  color: var(--text-dim);
} /* ---------- Mod kuralları ekranı ---------- */
.mode-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.mode-info-header .emoji {
  font-size: 34px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-info-header .emoji svg {
  width: 20px;
  height: 20px;
}
.mode-info-header h2 {
  margin: 0 0 4px;
}
.mode-info-header .subtitle {
  margin: 0;
}
.mode-info-section {
  margin-bottom: 20px;
}
.mode-info-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mode-info-list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.mode-info-list li strong {
  color: var(--accent);
} /* ---------- Çoklu Oyuncu: reveal listesi ---------- */
.reveal-multi-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.reveal-multi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.reveal-multi-item .club-logo {
  margin: 0;
  flex-shrink: 0;
}
.rmi-text {
  flex: 1;
  min-width: 0;
}
.rmi-name {
  font-weight: 700;
  font-size: 13.5px;
}
.rmi-team {
  color: var(--text-dim);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rmi-invalid {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-soft);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
} /* ---------- Çoklu Oyuncu: bulunanlar listesi ---------- */
.found-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.found-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.found-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}
.found-submitter {
  font-weight: 700;
  color: var(--accent);
}
.found-arrow {
  color: var(--text-dim);
}
.found-player {
  font-weight: 600;
  flex: 1;
  min-width: 60px;
}
.points-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.found-clubs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
} /* ---------- Oyun sonu liderlik tablosu ---------- */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.leaderboard-rank {
  font-size: 15px;
  font-weight: 800;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.leaderboard-name {
  flex: 1;
  font-weight: 600;
}
.leaderboard-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
@media (max-width: 480px) {
  body {
    padding: 16px;
    padding: max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  .room-code {
    font-size: 30px;
    letter-spacing: 6px;
  }
  .reveal-row {
    gap: 8px;
  }
  .assigned-team .club {
    font-size: 19px;
  }
  .score-strip {
    gap: 16px;
  }
}
@media (max-width: 1050px) {
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(220px, 1fr));
    gap: 14px;
  }
}
@media (max-width: 640px) {
  #screen-start {
    padding: 20px 16px 0;
  }
  .start-hero h1 {
    font-size: 28px;
  }
  .start-hero .subtitle {
    font-size: 14px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }
  .mode-panel {
    min-height: 168px;
    padding: 18px;
  }
  .mode-panel-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-height: 700px) and (max-width: 640px) {
  .mode-panel-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .mode-panel {
    min-height: 148px;
    padding: 16px;
  }
}