.trivia-lobby{display:grid;gap:18px;margin:18px 0 14px;padding:22px;border:1px solid #8b6b2b;border-radius:20px;background:radial-gradient(circle at 92% 8%,rgba(231,184,92,.14),transparent 32%),linear-gradient(145deg,rgba(28,53,44,.98),rgba(12,27,21,.98));box-shadow:0 18px 48px rgba(0,0,0,.22)}
.trivia-lobby-header,.trivia-section-heading,.trivia-join-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.trivia-lobby-header h2,.trivia-section-heading h3{margin:0;font-family:Georgia,serif}
.trivia-lobby-header h2{font-size:clamp(1.65rem,4vw,2.35rem);letter-spacing:.04em}.trivia-month-label{margin:5px 0 0;color:var(--muted);font-size:.9rem;text-transform:capitalize}.trivia-status-badge{border:1px solid #4f9476;border-radius:999px;padding:8px 12px;color:var(--green);font-size:.76rem;font-weight:800;white-space:nowrap}.trivia-status-badge.closed{border-color:#87624e;color:#ffc19a}.trivia-status-notice{min-height:20px;color:var(--muted);font-size:.9rem}.trivia-status-notice.closed{color:#ffc19a}.trivia-join-row{padding:15px 17px;border:1px solid rgba(231,184,92,.32);border-radius:15px;background:rgba(231,184,92,.08)}.trivia-join-row strong,.trivia-join-row small{display:block}.trivia-join-row small{margin-top:4px;color:var(--muted)}.trivia-join-button{min-width:150px;margin:0;box-shadow:0 8px 25px rgba(231,184,92,.16)}.trivia-join-button:disabled{cursor:not-allowed;opacity:.58}.trivia-lobby-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:15px}.trivia-leader-card,.trivia-top-ten,.trivia-champions{border:1px solid var(--line);border-radius:15px;background:rgba(7,20,15,.42);padding:17px}.trivia-leader-card{display:flex;flex-direction:column;justify-content:center;min-height:220px;border-color:rgba(231,184,92,.5);background:linear-gradient(155deg,rgba(111,77,23,.5),rgba(7,20,15,.54))}.trivia-leader-card h3{margin:0;font-family:Georgia,serif;font-size:1.15rem}.trivia-leader-content{display:grid;gap:4px;margin-top:22px}.trivia-leader-content strong{font-family:Georgia,serif;font-size:clamp(1.6rem,4vw,2.4rem);color:var(--gold);overflow-wrap:anywhere}.trivia-leader-content span{font-size:1rem;color:#f8e4aa}.trivia-section-heading{align-items:flex-start;margin-bottom:12px}.trivia-section-heading h3{font-size:1.25rem}.trivia-leaderboard,.trivia-champions-list{display:grid;gap:7px}.trivia-rank-row,.trivia-champion-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.07)}.trivia-rank-row:last-child,.trivia-champion-row:last-child{border-bottom:0}.trivia-rank-row.is-leader{border:1px solid rgba(231,184,92,.34);border-radius:9px;background:rgba(231,184,92,.08)}.trivia-rank{color:var(--gold);font-weight:800}.trivia-rank-name,.trivia-champion-name{min-width:0;overflow-wrap:anywhere}.trivia-rank-score,.trivia-champion-points{color:#f8e4aa;font-weight:800;white-space:nowrap}.trivia-champion-row{grid-template-columns:minmax(105px,.35fr) minmax(0,1fr) auto}.trivia-empty{margin:0;padding:18px;border:1px dashed var(--line);border-radius:11px;color:var(--muted);text-align:center}.trivia-lobby .message{margin:0}.trivia-lobby.hidden{display:none!important}
@media(max-width:850px){.trivia-lobby-grid{grid-template-columns:1fr}.trivia-leader-card{min-height:0}.trivia-lobby-header{align-items:flex-start;flex-direction:column}.trivia-status-badge{align-self:flex-start}}
@media(max-width:520px){.trivia-lobby{padding:17px 13px}.trivia-join-row{align-items:stretch;flex-direction:column}.trivia-join-button{width:100%}.trivia-rank-row,.trivia-champion-row{grid-template-columns:28px minmax(0,1fr);}.trivia-rank-score,.trivia-champion-points{grid-column:2}.trivia-champion-row{grid-template-columns:1fr}.trivia-champion-points{grid-column:1}}
/* BİLGİ-GÖRSEL-1: server-backed player screen presentation. */
.trivia-lobby {
  display: grid;
  gap: 0;
  margin: 18px 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 184, 92, .42);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 54, 44, .99), rgba(8, 23, 20, .99));
  box-shadow: 0 22px 52px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .05);
}

.trivia-game-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(18px, 3vw, 28px); border-bottom: 1px solid rgba(231, 184, 92, .18); background: radial-gradient(circle at 10% 0, rgba(231, 184, 92, .13), transparent 38%), rgba(6, 24, 20, .44); }
.trivia-game-brand h2 { margin: 5px 0 0; color: #f8e5c6; font-family: Georgia, serif; font-size: clamp(1.65rem, 3.4vw, 2.55rem); letter-spacing: .045em; }
.trivia-game-kicker { display: block; color: #e7b85c; font-size: .68rem; font-weight: 850; letter-spacing: .16em; }
.trivia-game-meta { display: grid; justify-items: end; gap: 12px; }
.trivia-admin-controls { grid-column: 1 / -1; justify-self: end; }
.trivia-admin-controls button { margin: 0; padding: 7px 11px; font-size: .68rem; letter-spacing: .04em; }
.trivia-admin-controls button:disabled { cursor: not-allowed; opacity: .58; }
.trivia-active-player { display: grid; gap: 3px; text-align: right; }
.trivia-active-player span { color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.trivia-active-player strong { max-width: 220px; overflow-wrap: anywhere; color: #f8e5c6; font-size: .94rem; }
.trivia-status-badge { border-color: rgba(231, 184, 92, .48); background: rgba(231, 184, 92, .08); color: #e7b85c; }
.trivia-status-badge.closed { border-color: rgba(255, 193, 154, .5); background: rgba(111, 57, 39, .16); color: #ffc19a; }
.trivia-status-notice { min-height: 18px; margin: 0; padding: 10px clamp(18px, 3vw, 28px) 0; color: var(--muted); font-size: .78rem; }
.trivia-status-notice.closed { color: #ffc19a; }
.trivia-join-row { margin: 12px clamp(14px, 2.5vw, 24px) 0; padding: 12px 14px; border: 1px solid rgba(231, 184, 92, .22); border-radius: 11px; background: rgba(231, 184, 92, .055); }
.trivia-join-row strong { color: #f4e6ce; font-size: .86rem; }
.trivia-join-row small { color: var(--muted); font-size: .75rem; }
.trivia-join-button { min-width: 132px; padding: 10px 18px; }
.trivia-game-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(270px, .52fr); gap: 14px; padding: 14px; }
.trivia-main-column, .trivia-side-column { display: grid; align-content: start; gap: 14px; min-width: 0; }
.trivia-question-stage { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(231, 184, 92, .28); border-radius: 14px; background: linear-gradient(155deg, rgba(8, 29, 24, .98), rgba(9, 21, 23, .98)); }
.trivia-stage-topline { display: grid; grid-template-columns: minmax(62px, .35fr) minmax(180px, 1fr) minmax(78px, .42fr); align-items: center; gap: 12px; }
.trivia-question-index, .trivia-points-card { display: grid; gap: 3px; }
.trivia-question-index span, .trivia-points-card span, .trivia-timer-copy > span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.trivia-question-index strong { color: #f8e5c6; font-family: Georgia, serif; font-size: 1.35rem; }
.trivia-points-card { justify-items: end; text-align: right; }
.trivia-points-card strong { color: #e7b85c; font-size: 1.35rem; }
.trivia-points-card small { color: var(--muted); font-size: .64rem; }
.trivia-timer-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.trivia-timer-ring { --trivia-timer-progress: 100%; position: relative; display: grid; flex: 0 0 64px; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#e7b85c var(--trivia-timer-progress), rgba(255, 255, 255, .1) 0); }
.trivia-timer-ring::before { position: absolute; inset: 5px; border-radius: 50%; background: #102a24; content: ""; }
.trivia-timer-ring span, .trivia-timer-ring small { position: relative; z-index: 1; grid-column: 1; grid-row: 1; }
.trivia-timer-ring span { align-self: end; min-width: 2ch; color: #fff4dc; font-size: 1.12rem; font-variant-numeric: tabular-nums; font-weight: 850; line-height: 1; text-align: center; }
.trivia-timer-ring small { align-self: start; margin-top: 37px; color: var(--muted); font-size: .52rem; }
.trivia-timer-copy { display: grid; flex: 1 1 auto; gap: 8px; min-width: 0; }
.trivia-timer-track { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.trivia-timer-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d69a41, #f2d18b); transition: width .25s ease; }
.trivia-question-card { display: grid; gap: 15px; min-width: 0; padding: clamp(18px, 3.2vw, 34px) clamp(14px, 3vw, 38px) 20px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: radial-gradient(circle at 50% 0, rgba(231, 184, 92, .08), transparent 42%), rgba(7, 18, 20, .58); text-align: center; }
.trivia-question-card h3 { max-width: 840px; margin: 0 auto; color: #fff4dc; font-size: clamp(1.25rem, 2.45vw, 2rem); line-height: 1.25; }
.trivia-question-card h3.is-placeholder { color: var(--muted); font-size: 1.08rem; font-weight: 600; }
.trivia-answer-tiles { display: flex; min-height: 48px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.trivia-answer-tiles .trivia-empty { width: 100%; padding: 10px; border: 0; }
.trivia-letter-tile { display: inline-grid; width: clamp(28px, 4vw, 42px); height: clamp(36px, 5vw, 48px); place-items: center; border: 1px solid rgba(231, 184, 92, .36); border-radius: 7px; background: rgba(255, 255, 255, .055); color: transparent; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 850; }
.trivia-letter-tile.is-revealed { border-color: #e7b85c; background: rgba(231, 184, 92, .2); color: #fff1c9; box-shadow: 0 0 16px rgba(231, 184, 92, .16); }
.trivia-letter-tile.is-newly-revealed { animation: trivia-hint-reveal .55s ease-out; }
@keyframes trivia-hint-reveal {
  0% { transform: translateY(3px) scale(.9); box-shadow: 0 0 0 rgba(231, 184, 92, 0); }
  45% { transform: translateY(0) scale(1.08); box-shadow: 0 0 24px rgba(231, 184, 92, .72); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 16px rgba(231, 184, 92, .16); }
}
.trivia-word-gap { display: inline-block; width: clamp(12px, 2vw, 25px); height: 2px; }
.trivia-answer-fixed { display: inline-grid; width: 14px; height: 42px; place-items: center; color: #d8c8ac; font-weight: 800; }
.trivia-hint-panel { display: grid; gap: 8px; text-align: left; }
.trivia-hint-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.trivia-hint-indicators { display: flex; flex-wrap: wrap; gap: 7px; }
.trivia-hint-indicator { padding: 7px 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: rgba(255, 255, 255, .04); color: #73827d; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.trivia-hint-indicator.is-open { border-color: rgba(231, 184, 92, .58); background: rgba(231, 184, 92, .14); color: #f1d18c; }
.trivia-answer-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.trivia-answer-form input { min-width: 0; border: 1px solid rgba(231, 184, 92, .28); border-radius: 8px; background: rgba(0, 0, 0, .2); color: #fff4dc; padding: 12px 13px; }
.trivia-answer-form button { min-width: 122px; margin: 0; }
.trivia-answer-form .trivia-voice-button { min-width: 112px; border-color: rgba(126, 191, 173, .42); }
.trivia-answer-form .trivia-voice-button[aria-pressed="true"] { border-color: #e7b85c; background: rgba(231, 184, 92, .18); color: #fff1c9; }
.trivia-answer-form input:disabled, .trivia-answer-form button:disabled { cursor: not-allowed; opacity: .5; }
.trivia-voice-status { min-height: 16px; margin: -7px 0 0; color: #b7d5c9; font-size: .72rem; }
.trivia-answer-notice { min-height: 16px; margin: 0; color: var(--muted); font-size: .72rem; }
.trivia-stopped-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(255, 193, 154, .28); border-radius: 14px; background: linear-gradient(145deg, rgba(65, 38, 30, .42), rgba(10, 26, 24, .92)); }
.trivia-stopped-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 193, 154, .45); border-radius: 50%; color: #ffc19a; font-size: 1.5rem; }
.trivia-stopped-card h3 { margin: 6px 0 4px; color: #ffe1c9; font-size: 1.08rem; }
.trivia-stopped-card p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.trivia-stopped-label { align-self: start; padding: 7px 9px; border: 1px solid rgba(255, 193, 154, .35); border-radius: 6px; color: #ffc19a; font-size: .62rem; letter-spacing: .1em; }
.trivia-result-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid rgba(231, 184, 92, .64); border-radius: 12px; background: linear-gradient(135deg, rgba(111, 77, 23, .55), rgba(24, 52, 42, .8)); }
.trivia-result-card h3 { margin: 5px 0; color: #fff2cf; font-size: .9rem; letter-spacing: .08em; }
.trivia-result-card > div:first-child > strong { display: block; overflow-wrap: anywhere; color: #fff4dc; font-size: 1.25rem; }
.trivia-result-winner { display: grid; gap: 4px; min-width: 130px; text-align: right; }
.trivia-result-winner span { color: var(--muted); font-size: .62rem; letter-spacing: .1em; }
.trivia-result-winner strong { color: #e7b85c; overflow-wrap: anywhere; }
.trivia-result-winner small { color: #f8e4aa; }
.trivia-participants, .trivia-top-ten, .trivia-leader-card, .trivia-champions { min-width: 0; padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(7, 20, 15, .48); }
.trivia-participants { background: linear-gradient(155deg, rgba(14, 45, 36, .72), rgba(7, 20, 15, .55)); }
.trivia-section-heading { margin-bottom: 10px; }
.trivia-section-heading h3 { font-size: 1rem; }
.trivia-panel-count { min-width: 25px; padding: 4px 7px; border-radius: 99px; background: rgba(231, 184, 92, .12); color: #e7b85c; font-size: .7rem; font-weight: 800; text-align: center; }
.trivia-participant-list { display: grid; max-height: min(340px, 42vh); gap: 5px; overflow-y: auto; padding-right: 3px; }
.trivia-participant-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.trivia-participant-row.is-winner { border: 1px solid rgba(231, 184, 92, .45); border-radius: 7px; background: rgba(231, 184, 92, .1); }
.trivia-participant-identity { display: grid; min-width: 0; gap: 3px; }
.trivia-participant-identity strong { overflow-wrap: anywhere; color: #e9eeee; font-size: .78rem; }
.trivia-participant-identity small { color: var(--muted); font-size: .63rem; }
.trivia-participant-points { flex: 0 0 auto; color: #f8e4aa; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.trivia-cup-icon { margin-bottom: 4px; color: #e7b85c; font-size: 1.4rem; }
.trivia-leader-card { background: linear-gradient(155deg, rgba(111, 77, 23, .48), rgba(7, 20, 15, .6)); }
.trivia-leader-content { gap: 3px; margin-top: 12px; }
.trivia-leader-content strong { font-size: clamp(1.35rem, 3vw, 1.95rem); }
.trivia-leader-content span { font-size: .9rem; }
.trivia-leaderboard, .trivia-champions-list { display: grid; gap: 5px; }
.trivia-rank-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 8px 9px; border: 1px solid transparent; border-bottom-color: rgba(255, 255, 255, .07); border-radius: 7px; }
.trivia-rank-row.is-leader { border-color: rgba(231, 184, 92, .32); background: rgba(231, 184, 92, .08); }
.trivia-rank-row.is-gold .trivia-rank { color: #f1ca70; }
.trivia-rank-row.is-silver .trivia-rank { color: #c8d0d0; }
.trivia-rank-row.is-bronze .trivia-rank { color: #c68d63; }
.trivia-rank { font-weight: 850; }
.trivia-rank-name { font-size: .78rem; }
.trivia-rank-score, .trivia-champion-points { font-size: .72rem; }
.trivia-champion-row { grid-template-columns: 24px minmax(72px, .4fr) minmax(0, 1fr) auto; gap: 7px; padding: 8px 2px; border-bottom-color: rgba(255, 255, 255, .07); }
.trivia-champion-icon { color: #e7b85c; font-size: .85rem; }
.trivia-champion-name { font-size: .76rem; }
.trivia-champion-points { white-space: nowrap; }
.trivia-empty { padding: 14px; font-size: .76rem; }
.trivia-lobby .message { padding: 0 14px 14px; }
@media (max-width: 1040px) { .trivia-game-grid { grid-template-columns: minmax(0, 1fr); } .trivia-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trivia-participants { grid-row: span 2; } }
@media (max-width: 720px) { .trivia-game-header { align-items: flex-start; flex-direction: column; } .trivia-game-meta { width: 100%; justify-items: start; } .trivia-active-player { text-align: left; } .trivia-stage-topline { grid-template-columns: 1fr 1fr; } .trivia-timer-wrap { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; } .trivia-question-index { grid-column: 1; grid-row: 2; } .trivia-points-card { grid-column: 2; grid-row: 2; } .trivia-side-column { grid-template-columns: 1fr; } .trivia-participants { grid-row: auto; } }
@media (max-width: 520px) { .trivia-game-grid { padding: 9px; } .trivia-join-row { align-items: stretch; flex-direction: column; } .trivia-join-button { width: 100%; } .trivia-answer-form { grid-template-columns: 1fr; } .trivia-answer-form button { width: 100%; } .trivia-stopped-card, .trivia-result-card { grid-template-columns: 1fr; } .trivia-stopped-label { justify-self: start; } .trivia-result-winner { text-align: left; } .trivia-champion-row { grid-template-columns: 22px minmax(0, 1fr); } .trivia-champion-points { grid-column: 2; } }

/* BİLGİ-GÖRSEL-1A: compact single-screen game composition. */
.trivia-lobby .trivia-question-stage[hidden],
.trivia-lobby .trivia-result-card[hidden],
.trivia-lobby .trivia-stopped-card[hidden] { display: none !important; }
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .game-launcher,
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .dashboard-grid > .score-panel,
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .dashboard-grid > .profile-panel { display: none; }
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .dashboard-grid { display: block; margin: 0; }
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > .panel-heading,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > #roomBanner,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > .lobby-toolbar,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > .lobby-chat-layout,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > #tableBrowser,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > #chatMuteManagement,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > #adminRoom,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > .admin-broadcast-trigger,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) > #privateRoomPanel { display: none; }
.trivia-lobby { margin: 7px 0 5px; border-radius: 14px; box-shadow: 0 15px 36px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .05); }
.trivia-game-header { gap: 14px; min-height: 58px; padding: 10px 16px; }
.trivia-game-brand { min-width: 0; }
.trivia-game-brand h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 2vw, 1.8rem); }
.trivia-game-kicker { font-size: .56rem; letter-spacing: .13em; }
.trivia-month-label { margin: 2px 0 0; font-size: .72rem; }
.trivia-game-meta { grid-template-columns: auto auto; align-items: center; gap: 8px 12px; }
.trivia-active-player { gap: 2px; padding-left: 12px; border-left: 1px solid rgba(231, 184, 92, .25); }
.trivia-active-player span { font-size: .56rem; }
.trivia-active-player strong { max-width: 170px; font-size: .82rem; }
.trivia-status-notice { min-height: 0; padding: 4px 16px 0; font-size: .7rem; }
.trivia-lobby[data-state="STOPPED"] .trivia-status-notice,
.trivia-lobby[data-state="STOPPING"] .trivia-status-notice { display: none; }
.trivia-join-row { min-height: 38px; margin: 6px 14px 0; padding: 7px 10px; border-radius: 9px; }
.trivia-join-row strong { font-size: .76rem; }
.trivia-join-row small { margin-top: 2px; font-size: .68rem; }
.trivia-join-button { min-width: 108px; padding: 8px 14px; }
.trivia-game-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); gap: 10px; padding: 10px 14px 7px; }
.trivia-main-column, .trivia-side-column { gap: 10px; }
.trivia-question-stage { gap: 8px; padding: 10px; border-radius: 11px; }
.trivia-stage-topline { grid-template-columns: minmax(52px, .3fr) minmax(170px, 1fr) minmax(68px, .34fr); gap: 9px; }
.trivia-question-index strong, .trivia-points-card strong { font-size: 1.12rem; }
.trivia-timer-wrap { gap: 8px; }
.trivia-timer-ring { flex-basis: 54px; width: 54px; height: 54px; }
.trivia-timer-ring::before { inset: 4px; }
.trivia-timer-ring span { font-size: .96rem; }
.trivia-timer-ring small { margin-top: 31px; font-size: .46rem; }
.trivia-timer-copy { gap: 5px; }
.trivia-question-card { gap: 9px; padding: 10px 8px 2px; border: 0; background: transparent; }
.trivia-question-card h3 { font-size: clamp(1.1rem, 1.9vw, 1.65rem); }
.trivia-answer-tiles { min-height: 39px; gap: 4px; }
.trivia-letter-tile { width: clamp(25px, 3.2vw, 36px); height: clamp(32px, 4vw, 41px); font-size: clamp(.9rem, 1.6vw, 1.2rem); }
.trivia-word-gap { width: clamp(10px, 1.5vw, 18px); }
.trivia-answer-fixed { width: 11px; height: 35px; }
.trivia-hint-panel { gap: 5px; }
.trivia-hint-indicators { gap: 5px; }
.trivia-hint-indicator { padding: 5px 7px; font-size: .56rem; }
.trivia-answer-form input { padding: 9px 11px; }
.trivia-answer-form button { min-width: 108px; }
.trivia-answer-form .trivia-voice-button { display: inline-grid; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; place-items: center; border-radius: 50%; border-color: rgba(126, 191, 173, .5); }
.trivia-answer-form .trivia-voice-button .trivia-voice-icon { width: 20px; height: 20px; fill: currentColor; }
.trivia-answer-form .trivia-voice-button.is-listening { border-color: #e7b85c; background: rgba(231, 184, 92, .18); color: #fff1c9; animation: trivia-voice-pulse 1.25s ease-in-out infinite; }
.trivia-answer-form .trivia-voice-button.is-processing { border-color: #e7b85c; background: rgba(231, 184, 92, .18); color: #fff1c9; }
@keyframes trivia-voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(231, 184, 92, .16); } 50% { box-shadow: 0 0 0 7px rgba(231, 184, 92, .12); } }
@media (max-width: 520px) { .trivia-answer-form .trivia-voice-button { justify-self: center; } }
@media (prefers-reduced-motion: reduce) { .trivia-answer-form .trivia-voice-button.is-listening { animation: none; } }
.trivia-answer-notice { min-height: 12px; }
.trivia-question-stage[data-state="RESULT"] { min-height: 190px; align-content: stretch; }
.trivia-question-stage[data-state="RESULT"] .trivia-stage-topline,
.trivia-question-stage[data-state="RESULT"] .trivia-question-card { display: none; }
.trivia-question-stage[data-state="RESULT"] .trivia-result-card:not([hidden]) { display: grid; min-height: 168px; }
.trivia-result-card { align-content: center; padding: 20px 22px; border-radius: 10px; }
.trivia-stopped-card { min-height: 180px; gap: 12px; padding: 18px; border-radius: 11px; }
.trivia-stopped-icon { width: 40px; height: 40px; font-size: 1.2rem; }
.trivia-stopped-card h3 { margin: 4px 0 3px; font-size: 1rem; }
.trivia-stopped-card p { font-size: .72rem; }
.trivia-participants, .trivia-top-ten, .trivia-leader-card, .trivia-champions { padding: 10px; border-radius: 10px; }
.trivia-section-heading { margin-bottom: 7px; }
.trivia-section-heading h3 { font-size: .9rem; }
.trivia-panel-count { min-width: 22px; padding: 3px 6px; font-size: .62rem; }
.trivia-participant-list { max-height: min(220px, 29vh); gap: 3px; }
.trivia-participant-row { padding: 6px 7px; }
.trivia-participant-identity { gap: 2px; }
.trivia-participant-identity strong { font-size: .72rem; }
.trivia-participant-identity small, .trivia-participant-points { font-size: .6rem; }
.trivia-leaderboard, .trivia-champions-list { max-height: min(226px, 30vh); overflow-y: auto; gap: 3px; }
.trivia-rank-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px; padding: 6px 7px; }
.trivia-rank-name { font-size: .7rem; }
.trivia-rank-score, .trivia-champion-points { font-size: .62rem; }
.trivia-leader-content { margin-top: 7px; }
.trivia-leader-content strong { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.trivia-leader-content span { font-size: .76rem; }
.trivia-champion-row { grid-template-columns: 20px minmax(58px, .4fr) minmax(0, 1fr) auto; gap: 5px; padding: 6px 1px; }
.trivia-champion-name { font-size: .68rem; }
.trivia-champion-icon { font-size: .75rem; }
.trivia-empty { padding: 10px; font-size: .68rem; }
.trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-leader-card,
.trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-champions,
.trivia-lobby[data-state="RESULT"] .trivia-leader-card,
.trivia-lobby[data-state="RESULT"] .trivia-champions { display: none; }
.trivia-lobby[data-state="STOPPED"] .trivia-participants,
.trivia-lobby[data-state="STOPPING"] .trivia-participants { display: none; }
.trivia-lobby[data-state="STOPPED"] .trivia-side-column,
.trivia-lobby[data-state="STOPPING"] .trivia-side-column { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; }
.trivia-lobby[data-state="STOPPED"] .trivia-leader-card,
.trivia-lobby[data-state="STOPPING"] .trivia-leader-card { grid-column: 1 / -1; min-height: 0; }
.trivia-lobby[data-state="STOPPED"] .trivia-leaderboard,
.trivia-lobby[data-state="STOPPED"] .trivia-champions-list,
.trivia-lobby[data-state="STOPPING"] .trivia-leaderboard,
.trivia-lobby[data-state="STOPPING"] .trivia-champions-list { max-height: min(150px, 21vh); }
@media (min-width: 1041px) {
  .trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-game-grid,
  .trivia-lobby[data-state="RESULT"] .trivia-game-grid { min-height: 0; }
}
@media (max-width: 1040px) {
  .trivia-game-grid { grid-template-columns: minmax(0, 1fr); }
  .trivia-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trivia-lobby[data-state="STOPPED"] .trivia-side-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .trivia-game-header { align-items: center; flex-direction: row; }
  .trivia-game-meta { width: auto; justify-items: end; }
  .trivia-active-player { text-align: right; }
  .trivia-stage-topline { grid-template-columns: 1fr 1fr; }
  .trivia-timer-wrap { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; }
  .trivia-question-index { grid-column: 1; grid-row: 2; }
  .trivia-points-card { grid-column: 2; grid-row: 2; }
}
@media (max-width: 520px) {
  .trivia-game-header { align-items: flex-start; flex-direction: column; }
  .trivia-game-meta { width: 100%; justify-items: start; }
  .trivia-active-player { text-align: left; }
  .trivia-side-column,
  .trivia-lobby[data-state="STOPPED"] .trivia-side-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-side-column { grid-template-columns: 1fr; }
  .trivia-lobby[data-state="STOPPED"] .trivia-leader-card,
  .trivia-lobby[data-state="STOPPING"] .trivia-leader-card { grid-column: auto; }
}

/* BİLGİ-GÖRSEL-1C: viewport-safe responsive contracts. */
#dashboardView:has(#triviaLobbyPanel:not(.hidden)),
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .dashboard-grid,
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)),
.trivia-lobby { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
#dashboardView:has(#triviaLobbyPanel:not(.hidden)),
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)),
.trivia-lobby { overflow-x: clip; }
.trivia-game-grid { width: 100%; max-width: 100%; min-width: 0; min-height: 0; box-sizing: border-box; align-items: start; }
.trivia-game-grid > *,
.trivia-main-column,
.trivia-side-column,
.trivia-main-column > *,
.trivia-side-column > * { min-width: 0; max-width: 100%; }
.trivia-main-column, .trivia-side-column { min-height: 0; }
.trivia-question-card,
.trivia-question-card h3,
.trivia-section-heading,
.trivia-section-heading h3,
.trivia-stopped-card,
.trivia-leader-content,
.trivia-champion-name { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.trivia-section-heading h3 { text-wrap: balance; }
.trivia-lobby[data-state="STOPPED"] .trivia-main-column,
.trivia-lobby[data-state="STOPPING"] .trivia-main-column { align-self: start; }
.trivia-lobby[data-state="STOPPED"] .trivia-stopped-card,
.trivia-lobby[data-state="STOPPING"] .trivia-stopped-card { min-height: 0; }

@media (min-width: 1041px) {
  .trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-game-grid,
  .trivia-lobby[data-state="RESULT"] .trivia-game-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr); }
  .trivia-lobby[data-state="STOPPED"] .trivia-game-grid,
  .trivia-lobby[data-state="STOPPING"] .trivia-game-grid { grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); align-items: start; }
  .trivia-lobby[data-state="STOPPED"] .trivia-side-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-side-column { grid-template-columns: minmax(170px, .86fr) minmax(230px, 1.14fr); align-content: start; }
  .trivia-lobby[data-state="STOPPED"] .trivia-top-ten,
  .trivia-lobby[data-state="STOPPING"] .trivia-top-ten { grid-column: 1; }
  .trivia-lobby[data-state="STOPPED"] .trivia-champions,
  .trivia-lobby[data-state="STOPPING"] .trivia-champions { grid-column: 2; min-width: 230px; }
}

@media (max-width: 1040px) {
  .trivia-game-grid { grid-template-columns: minmax(0, 1fr); }
  .trivia-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trivia-lobby[data-state="STOPPED"] .trivia-side-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .trivia-side-column,
  .trivia-lobby[data-state="STOPPED"] .trivia-side-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-side-column { grid-template-columns: minmax(0, 1fr); }
  .trivia-lobby[data-state="STOPPED"] .trivia-top-ten,
  .trivia-lobby[data-state="STOPPED"] .trivia-champions,
  .trivia-lobby[data-state="STOPPING"] .trivia-top-ten,
  .trivia-lobby[data-state="STOPPING"] .trivia-champions { grid-column: auto; min-width: 0; }
}

@media (max-width: 1100px) {
  #dashboardView:has(#triviaLobbyPanel:not(.hidden)) .dashboard-action-bar { align-items: stretch; flex-wrap: wrap; gap: 6px; }
  #dashboardView:has(#triviaLobbyPanel:not(.hidden)) .dashboard-action-group { min-width: 0; flex: 1 1 48%; }
  #dashboardView:has(#triviaLobbyPanel:not(.hidden)) .dashboard-action-group-right { margin-left: 0; justify-content: flex-end; }
  #dashboardView:has(#triviaLobbyPanel:not(.hidden)) .dashboard-action-button { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  #dashboardView:has(#triviaLobbyPanel:not(.hidden)) .lobby-bottom-tabs { flex-wrap: wrap; }
  #dashboardView:has(#triviaLobbyPanel:not(.hidden)) .lobby-bottom-tabs button { min-width: 0; flex: 1 1 30%; }
}

@media (min-width: 1041px) and (max-height: 820px) {
  .trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-participant-list,
  .trivia-lobby[data-state="RESULT"] .trivia-participant-list { max-height: min(180px, 24vh); }
  .trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-leaderboard,
  .trivia-lobby[data-state="RESULT"] .trivia-leaderboard,
  .trivia-lobby[data-state="STOPPED"] .trivia-leaderboard,
  .trivia-lobby[data-state="STOPPING"] .trivia-leaderboard,
  .trivia-lobby[data-state="QUESTION_ACTIVE"] .trivia-champions-list,
  .trivia-lobby[data-state="RESULT"] .trivia-champions-list,
  .trivia-lobby[data-state="STOPPED"] .trivia-champions-list,
  .trivia-lobby[data-state="STOPPING"] .trivia-champions-list { max-height: min(170px, 23vh); }
}

/* TRIVIA VISUAL 1D: final desktop fit and stopped-space distribution. */
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) {
  min-height: 0;
  padding-top: clamp(18px, 3vh, 30px);
  padding-bottom: clamp(12px, 2vh, 22px);
  overflow-x: clip;
  overflow-y: visible;
}
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .welcome-row { margin-bottom: clamp(8px, 1.5vh, 16px); }
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) > .dashboard-grid { min-height: 0; }
.lobby-panel:has(> #triviaLobbyPanel:not(.hidden)) {
  min-height: 0;
  padding: 0 0 6px;
  overflow-x: clip;
  overflow-y: visible;
}
.trivia-lobby { overflow-x: clip; overflow-y: visible; }
.trivia-lobby #triviaLobbyMessage:empty { min-height: 0; margin: 0; padding: 0; }
#dashboardView:has(#triviaLobbyPanel:not(.hidden)) .dashboard-action-bar { margin-top: 6px; }
.trivia-stopped-summary-grid { display: contents; min-width: 0; }

@media (min-width: 1041px) {
  .trivia-lobby[data-state="STOPPED"] .trivia-game-grid,
  .trivia-lobby[data-state="STOPPING"] .trivia-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }
  .trivia-lobby[data-state="STOPPED"] .trivia-main-column,
  .trivia-lobby[data-state="STOPPED"] .trivia-side-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-main-column,
  .trivia-lobby[data-state="STOPPING"] .trivia-side-column { display: contents; }
  .trivia-lobby[data-state="STOPPED"] .trivia-stopped-card,
  .trivia-lobby[data-state="STOPPING"] .trivia-stopped-card {
    grid-column: 1 / -1;
    min-height: 0;
    align-self: start;
  }
  .trivia-lobby[data-state="STOPPED"] .trivia-stopped-summary-grid,
  .trivia-lobby[data-state="STOPPING"] .trivia-stopped-summary-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    align-items: stretch;
  }
  .trivia-lobby[data-state="STOPPED"] .trivia-stopped-summary-grid > .trivia-leader-card,
  .trivia-lobby[data-state="STOPPED"] .trivia-stopped-summary-grid > .trivia-top-ten,
  .trivia-lobby[data-state="STOPPED"] .trivia-stopped-summary-grid > .trivia-champions,
  .trivia-lobby[data-state="STOPPING"] .trivia-stopped-summary-grid > .trivia-leader-card,
  .trivia-lobby[data-state="STOPPING"] .trivia-stopped-summary-grid > .trivia-top-ten,
  .trivia-lobby[data-state="STOPPING"] .trivia-stopped-summary-grid > .trivia-champions {
    grid-column: auto;
    min-width: 0;
    min-height: 0;
  }
  .trivia-lobby[data-state="STOPPED"] .trivia-leaderboard,
  .trivia-lobby[data-state="STOPPED"] .trivia-champions-list,
  .trivia-lobby[data-state="STOPPING"] .trivia-leaderboard,
  .trivia-lobby[data-state="STOPPING"] .trivia-champions-list {
    max-height: min(190px, 24vh);
    overflow-y: auto;
  }
}
