.certiquiz-page .certiquiz-main { --brand-accent: var(--accent); min-height: calc(100dvh - var(--header) - var(--footer-height)); max-width: 1280px; padding-top: 20px; padding-bottom: 48px; }
.certiquiz-page.certiquiz-playing { --header: 0px; }
.certiquiz-page.certiquiz-playing .site-header { display: none; }
.certiquiz-app { --shadow: 0 14px 44px #31333f09; }
html[data-theme="dark"] .certiquiz-app { --shadow: none; }
.certiquiz-app * { box-sizing: border-box; }
.certiquiz-app button, .certiquiz-app input, .certiquiz-app select { font: inherit; }
.certiquiz-app button, .certiquiz-app a, .certiquiz-app input, .certiquiz-app select, .certiquiz-app summary { -webkit-tap-highlight-color: transparent; }
.certiquiz-app a { color: var(--accent); text-underline-offset: 4px; }
.certiquiz-app button, .certiquiz-app a { touch-action: manipulation; }
.certiquiz-app [hidden] { display: none !important; }
.certiquiz-app .connection { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.certiquiz-app .connection:empty { display: none; }
.certiquiz-app .welcome { margin: 0 0 24px; }
.certiquiz-app .brand-accent { color: var(--brand-accent); }
.certiquiz-app .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 750; }
.certiquiz-app h1, .certiquiz-app h2, .certiquiz-app h3, .certiquiz-app p { overflow-wrap: anywhere; }
.certiquiz-app h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.045em; margin: 14px 0 20px; }
.certiquiz-app h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 12px; }
.certiquiz-app h3 { font-size: 17px; margin: 0 0 12px; }
.certiquiz-app p { margin: 0 0 18px; }
.certiquiz-app .lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.certiquiz-app .certiquiz-breadcrumb { display: flex; width: 100%; height: var(--section-nav-height); align-items: center; gap: 8px; padding: 0 24px 3px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); background: var(--white); box-shadow: var(--panel-shadow); color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.certiquiz-app .certiquiz-breadcrumb a { color: var(--ink); font-weight: inherit; }
.certiquiz-app .certiquiz-breadcrumb .certiquiz-mark { color: var(--ink); font-weight: inherit; }
.certiquiz-app .entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.certiquiz-app .card { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); min-width: 0; }
.certiquiz-app .join-card { border-top: 4px solid var(--accent); }
.certiquiz-app .role-card { display: flex; width: 100%; align-items: center; gap: 20px; appearance: none; cursor: pointer; text-align: left; color: var(--ink); background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--panel-shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.certiquiz-app .role-card:is(:hover, :focus-visible):not(:disabled) { border-color: var(--accent); box-shadow: var(--panel-shadow); }
.certiquiz-app .role-card:disabled { cursor: not-allowed; }
.certiquiz-app .role-card:focus-visible { outline-offset: 3px; }
.certiquiz-app .role-icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; color: var(--ink); }
.certiquiz-app .role-icon svg { display: block; width: 52px; height: 52px; }
.certiquiz-app .role-copy { display: grid; gap: 10px; min-width: 0; }
.certiquiz-app .role-title { font-size: 30px; letter-spacing: -.035em; line-height: 1.2; }
.certiquiz-app .entry-card { max-width: calc(56.521739% - 13.565217px); padding: 24px 24px 30px; border-top-width: 1px; border-top-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.certiquiz-app .host-entry { max-width: none; }
.certiquiz-app .entry-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 9px 0 10px; }
.certiquiz-app .entry-card > p { margin-bottom: 28px; }
.certiquiz-app .host-entry .certification-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.certiquiz-app .host-entry .certification-number, .certiquiz-app .host-entry .certification-item label, .certiquiz-app .setup-label { color: var(--ink); font-family: monospace; font-size: 17px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.certiquiz-app .host-entry .certification-item label, .certiquiz-app .setup-label { display: block; margin-bottom: 5px; }
.certiquiz-app .host-entry .certification-item p { margin: 0; }
.certiquiz-app .host-entry .certification-item input { max-width: 140px; justify-self: end; }
.certiquiz-app .host-entry .certification-item input[type="number"] { text-align: center; }
.certiquiz-app .host-entry .certification-item input[type="number"]:focus-visible { outline: none; box-shadow: none; }
.certiquiz-app .host-entry .setup-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding-bottom: 0; }
.certiquiz-app .setup-actions .certification-number { top: 50%; transform: translateY(-50%); }
.certiquiz-app .setup-actions .hint { max-width: 540px; margin: 0; }
.certiquiz-app .host-entry .setup-actions .button { width: 140px; justify-self: end; }
.certiquiz-app .course-picker { min-width: 0; }
.certiquiz-app .course-picker summary { display: flex; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; white-space: normal; font: inherit; line-height: 1.4; }
.certiquiz-app .course-picker summary::after { flex: 0 0 6px; margin-left: 0; }
.certiquiz-app .course-picker summary:is(:hover, :focus), .certiquiz-app .course-picker[open] > summary { background: var(--paper); color: var(--ink); }
.certiquiz-app .course-picker summary:hover { border-color: var(--red); }
.certiquiz-app .course-picker summary:focus:not(:focus-visible) { outline: none; }
.certiquiz-app .course-picker[inert] { opacity: .7; }
.certiquiz-app .course-picker[inert] summary { cursor: not-allowed; }
.certiquiz-app .course-picker .path-group-panel { width: 100%; z-index: 2; max-height: min(320px, 50vh); overflow-y: auto; box-shadow: var(--shadow); }
.certiquiz-app .course-picker button { min-height: 44px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
.certiquiz-app .course-picker button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: var(--selected-surface); color: var(--selected-ink); }
.certiquiz-app .course-picker button:focus-visible { outline-offset: -3px; }
.certiquiz-app form > .notice { margin: 18px 0 0; }
.certiquiz-app .confirmation-expired .confirmation-actions .button { grid-column: 2; }
.certiquiz-app .muted, .certiquiz-app .hint { color: var(--muted); }
.certiquiz-app .hint { font-size: 13px; margin-top: 7px; }
.certiquiz-app label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 7px; }
.certiquiz-app input:not([type="radio"]), .certiquiz-app select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; background: var(--paper); color: var(--ink); }
.certiquiz-app .field { margin-bottom: 21px; }
.certiquiz-app input.code-input { min-height: 0 !important; height: 98px !important; padding: 12px 16px !important; font-size: clamp(48px, 6vw, 72px) !important; font-weight: 800; letter-spacing: .09em; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; background-image: repeating-linear-gradient(to right, var(--line) 0 .5em, transparent .5em .7em); background-size: 4.2em 2px; background-position: center calc(50% + .47em); background-repeat: no-repeat; }
.certiquiz-app .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.certiquiz-app .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 47px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 20px; cursor: pointer; text-decoration: none; line-height: 1.4; }
.certiquiz-app .button:hover { background: var(--accent-hover); }
.certiquiz-app .button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.certiquiz-app .button.secondary:hover { background: var(--surface); }
.certiquiz-app .button:disabled { opacity: .5; cursor: not-allowed; }
.certiquiz-app .room-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.certiquiz-app .button.wide { width: 100%; }
.certiquiz-app .text-button { border: 0; background: none; padding: 8px 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.certiquiz-app .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.certiquiz-app .actions.game-actions { justify-content: flex-end; }
.certiquiz-app .actions.game-actions .button { width: auto; }
.certiquiz-app .player-entry input:focus-visible { outline: none; box-shadow: none; }
.certiquiz-app .player-entry #join-form { padding-top: 20px; border-top: 1px solid var(--line); }
.certiquiz-app .player-entry .join-actions { justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.certiquiz-app .player-entry .join-actions .button { width: 140px; }
.certiquiz-app .notice-countdown { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 68px; min-height: 36px; margin-left: auto; padding: 7px 9px; border: 1px solid currentColor; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.certiquiz-app .room-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 24px; align-items: stretch; }
.certiquiz-app .room-side { position: absolute; grid-column: 2; grid-row: 1; inset: 0; display: flex; min-width: 0; min-height: 0; }
.certiquiz-app .invite-overview { width: 100%; }
.certiquiz-app .invite-code { display: grid; grid-template-columns: minmax(0, 1fr) 66px; gap: 12px; align-items: center; margin: 18px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.certiquiz-app .pin { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; font-size: clamp(48px, 6vw, 72px); font-weight: 800; letter-spacing: .09em; line-height: 1; font-variant-numeric: tabular-nums; }
.certiquiz-app .invite-qr { position: relative; width: 100%; margin: 0; }
.certiquiz-app .invite-qr-toggle { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
.certiquiz-app .invite-qr-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.certiquiz-app .invite-qr-code { display: block; overflow: hidden; border-radius: 14px; }
.certiquiz-app .invite-qr-code > svg { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.certiquiz-app .invite-qr-logo { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 6px; background: #fff; color: #111; pointer-events: none; }
.certiquiz-app .invite-qr-logo svg { width: 21px; height: 21px; }
.certiquiz-app .invite-code.qr-expanded { grid-template-columns: minmax(0, 1fr); padding: 0; }
.certiquiz-app .invite-code.qr-expanded .pin { display: none; }
.certiquiz-app .invite-code.qr-expanded .invite-qr { width: 50%; margin: 0 auto; }
.certiquiz-app .invite-code.qr-expanded .invite-qr-logo { width: 48px; height: 48px; border-radius: 12px; }
.certiquiz-app .invite-code.qr-expanded .invite-qr-logo svg { width: 42px; height: 42px; }
.certiquiz-app .invite-link { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.certiquiz-app .invite-link input { min-width: 0; border: 0; border-radius: 10px 0 0 10px; background: transparent; font-size: 14px; font-weight: 650; }
.certiquiz-app .invite-link button { display: grid; place-items: center; flex: 0 0 52px; min-height: 52px; padding: 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; background: var(--paper); color: var(--muted); cursor: pointer; }
.certiquiz-app .invite-link button:hover { background: var(--surface); color: var(--ink); }
.certiquiz-app .invite-link button:disabled { opacity: .5; cursor: wait; }
.certiquiz-app .invite-link svg { width: 22px; height: 22px; }
.certiquiz-app [data-players] { display: flex; flex: 1; align-self: stretch; min-width: 0; min-height: 0; container-type: inline-size; }
.certiquiz-app .player-list { --core-color: var(--selected-surface); --counter-size: var(--total-size); position: relative; flex: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; list-style: none; margin: 0; padding: 0; overflow: hidden; }
html[data-theme="dark"] .certiquiz-app .player-list { --core-color: #fff; }
.certiquiz-app .player-list li { display: grid; position: absolute; place-items: center; min-width: 0; }
.certiquiz-app .player-total { inset: 0; z-index: 3; pointer-events: none; }
.certiquiz-app .team-total { position: absolute; z-index: 1; isolation: isolate; display: block; container: certiquiz-core / inline-size; left: 50%; top: 50%; width: var(--counter-size); height: var(--counter-size); padding: 0; transform: translate(-50%, -50%); border-radius: 50%; color: var(--selected-ink); font-weight: 750; line-height: 1; transition: width .45s ease, height .45s ease; }
.certiquiz-app .energy-rays { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; z-index: 0; overflow: visible; animation: certiquiz-rays-turn 36s linear infinite; }
.certiquiz-app .energy-rays line { stroke: var(--core-color); stroke-width: 1.1; stroke-linecap: round; transform-box: fill-box; transform-origin: center bottom; animation: certiquiz-ray-wave 3.6s ease-in-out var(--ray-delay) infinite alternate; }
.certiquiz-app .team-count { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid var(--core-color); border-radius: 50%; background: var(--core-color); color: var(--paper); font-family: monospace; font-size: clamp(26px, calc(var(--total-size) * .25), 50px); font-weight: 700; line-height: 1; }
.certiquiz-app .team-count::after { content: attr(data-label); display: none; font-family: monospace; font-size: 14px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
@container certiquiz-core (min-width: 160px) { .certiquiz-app .team-count::after { display: block; } }
.certiquiz-app .player-list > li[data-player-id] { z-index: 1; left: 50%; top: 50%; width: var(--particle-size); height: var(--particle-size); pointer-events: none; animation: certiquiz-orbit var(--arrival-duration) linear var(--arrival-delay) both; }
.certiquiz-app .player-list > li[data-absorbed] { opacity: 0; }
.certiquiz-app .player-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--avatar-color); opacity: 0; animation: certiquiz-absorb var(--arrival-duration) ease-in-out var(--arrival-delay) both; }
.certiquiz-app .avatar-tone-0 { --avatar-color: #ffcf0a; }
.certiquiz-app .avatar-tone-1 { --avatar-color: #00c4db; }
.certiquiz-app .avatar-tone-2 { --avatar-color: #ed30c6; }
.certiquiz-app .avatar-tone-3 { --avatar-color: #1265f8; }
.certiquiz-app .avatar-tone-4 { --avatar-color: #87cf0b; }
.certiquiz-app .avatar-tone-5 { --avatar-color: #fa8c1a; }
.certiquiz-app .avatar-tone-6 { --avatar-color: #18a999; }
.certiquiz-app .avatar-tone-7 { --avatar-color: #a64def; }
@keyframes certiquiz-orbit { from { transform: translate(-50%, -50%) rotate(var(--orbit-angle)); } to { transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + var(--orbit-turn))); } }
@keyframes certiquiz-absorb { 0% { transform: translateX(var(--orbit-radius)) scale(.35); opacity: 0; } 12% { transform: translateX(var(--orbit-radius)) scale(1); opacity: 1; } 48% { transform: translateX(calc(var(--orbit-radius) * .9)) scale(1); opacity: 1; } 82% { transform: translateX(calc(var(--core-radius) * .55)) scale(.38); opacity: .9; } 100% { transform: translateX(0) scale(.02); opacity: 0; } }
@keyframes certiquiz-rays-turn { to { transform: rotate(360deg); } }
@keyframes certiquiz-ray-wave { from { transform: scaleY(.55); } to { transform: scaleY(1.16); } }
.certiquiz-app .fact-row { display: flex; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.certiquiz-app .fact-row strong { color: var(--ink); }
.certiquiz-app .lobby-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.certiquiz-app .lobby-footer .fact-row, .certiquiz-app .lobby-footer .actions { margin: 0; padding: 0; border: 0; }
.certiquiz-app .lobby-footer:not(.player-lobby-footer) { flex-wrap: wrap; }
.certiquiz-app .lobby-footer:not(.player-lobby-footer) .fact-row { flex: 0 0 auto; max-width: 100%; }
.certiquiz-app .lobby-footer:not(.player-lobby-footer) .actions { flex: 0 0 auto; flex-wrap: nowrap; margin-left: auto; }
.certiquiz-app .lobby-wait-timer { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.certiquiz-app .game-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 0; font-size: 14px; color: var(--muted); }
.certiquiz-app .game-toolbar-info { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.certiquiz-app .game-toolbar .brand { display: inline-flex; align-items: center; gap: 0; min-height: 44px; }
.certiquiz-app .game-toolbar-trailing { display: inline-flex; align-items: center; gap: 12px; }
.certiquiz-app .brand, .certiquiz-app .brand > span { display: inline; white-space: nowrap; }
.certiquiz-app .timer { color: var(--ink); font-weight: 800; font-size: 25px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.certiquiz-app .timer.urgent { color: var(--error); }
.certiquiz-app progress { width: 100%; height: 7px; margin-top: 0; display: block; appearance: none; border: none; background: var(--surface); accent-color: var(--accent); border-radius: 10px; overflow: hidden; }
.certiquiz-app progress::-webkit-progress-bar { background: var(--surface); }
.certiquiz-app progress::-webkit-progress-value { background: var(--accent); }
.certiquiz-app progress::-moz-progress-bar { background: var(--accent); }
.certiquiz-app .question { margin: 24px 0 28px; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.3; letter-spacing: -.025em; outline: none; }
.certiquiz-app fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.certiquiz-app .options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.certiquiz-app .option { margin: 0; display: flex; gap: 12px; align-items: center; padding: 18px; border: 2px solid var(--line); border-radius: 11px; font-size: 16px; font-weight: 500; cursor: pointer; min-height: 94px; }
.certiquiz-app .option:hover:has(input:enabled) { background: var(--surface); }
.certiquiz-app .option:has(input:checked):not(.correct) { border-color: var(--accent); background: var(--tint); }
.certiquiz-app .option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.certiquiz-app .option:has(input:disabled) { cursor: default; }
.certiquiz-app .option input { flex: 0 0 auto; accent-color: var(--accent); width: 18px; height: 18px; }
.certiquiz-app .option-letter { display: inline-flex; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px; justify-content: center; align-items: center; background: var(--surface); font-weight: 800; font-size: 14px; }
.certiquiz-app .option.correct { background: var(--success-bg); border-color: var(--success); }
.certiquiz-app .option.correct .option-letter { background: var(--success); color: var(--paper); }
.certiquiz-app .option.incorrect { border-style: dashed; }
.certiquiz-app .option.incorrect .option-letter { background: var(--accent); color: var(--paper); }
.certiquiz-app .answer-note { margin: 22px 0 0; min-height: 26px; color: var(--muted); }
.certiquiz-app .answer-note:empty { display: none; }
.certiquiz-app .explanation { border-left: 3px solid var(--accent); padding: 16px 20px; background: var(--surface); margin-top: 25px; }
.certiquiz-app .explanation.correct { border-color: var(--success); }
.certiquiz-app .quiz-countdown { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; transform: none !important; }
.certiquiz-app .quiz-countdown[open] { display: grid; place-items: center; }
.certiquiz-app .quiz-countdown-core { --core-color: var(--red); position: relative; width: 180px; height: 180px; }
.certiquiz-app .quiz-countdown output { position: relative; z-index: 1; display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: 90px; font-weight: 800; font-variant-numeric: tabular-nums; }
.certiquiz-app .explanation p { margin: 6px 0 0; }
.certiquiz-app .leaderboard { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 18px; font-variant-numeric: tabular-nums; }
.certiquiz-app .ranking-card { outline: none; }
.certiquiz-app .card > .leaderboard:first-child { margin-top: 0; }
.certiquiz-app .leaderboard tbody tr { --row-shadow: #17191d26; position: relative; background: var(--paper); }
html[data-theme="dark"] .certiquiz-app .leaderboard tbody tr { --row-shadow: #0009; }
.certiquiz-app .leaderboard th { text-align: left; }
.certiquiz-app .leaderboard thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.certiquiz-app .leaderboard thead th:first-child { white-space: nowrap; }
.certiquiz-app .leaderboard th, .certiquiz-app .leaderboard td { padding: 12px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.certiquiz-app .leaderboard th:last-child, .certiquiz-app .leaderboard td:last-child { text-align: right; white-space: nowrap; }
.certiquiz-app .leaderboard .is-me { background: var(--chrome-bg); font-weight: 700; }
.certiquiz-app .leaderboard .place { width: 52px; color: var(--accent); font-family: monospace; font-weight: 700; white-space: nowrap; }
.certiquiz-app .result-banner { position: relative; isolation: isolate; background: var(--paper); border: 0; padding: 32px; border-radius: 16px; margin-bottom: 24px; }
.certiquiz-app .result-banner h2 { margin: 0 0 10px; font-size: clamp(25px, 4vw, 40px); outline: none; }
.certiquiz-app .result-banner p { margin: 0; color: var(--muted); }
.certiquiz-app .result-banner .result-course { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 18px auto 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--chrome-bg); color: var(--ink); font-size: .85rem; font-weight: 500; line-height: 1; }
html:not([data-theme="dark"]) .certiquiz-app .result-banner .result-course { background: var(--white); }
.certiquiz-app .result-banner .result-course svg { width: 27px; height: 27px; flex: 0 0 auto; color: var(--accent); }
.certiquiz-app .result-banner:has(.podium) { text-align: center; }
.certiquiz-app .podium { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; max-width: 720px; padding: 0; margin: 36px auto 0; list-style: none; }
.certiquiz-app .podium::after { content: ""; position: absolute; bottom: -1px; left: -5%; right: -5%; height: 2px; background: linear-gradient(90deg, transparent, var(--muted) 20%, var(--muted) 80%, transparent); pointer-events: none; }
.certiquiz-app .podium-place { min-width: 0; text-align: center; }
.certiquiz-app .podium-name { display: block; margin-bottom: 14px; font-size: clamp(15px, 2.2vw, 23px); line-height: 1.25; overflow-wrap: anywhere; }
.certiquiz-app .podium-name span { display: block; }
.certiquiz-app .podium-step { display: flex; flex-direction: column; align-items: center; height: var(--step-height); padding: 10px; border: 1px solid var(--line); border-top: 4px solid var(--medal-color); border-radius: 12px 12px 0 0; background: linear-gradient(var(--medal-tint), transparent), var(--surface); }
.certiquiz-app .podium-1 { grid-column: 2; --step-height: 248px; --medal-color: #d4a328; --medal-tint: #fccd1d18; }
.certiquiz-app .podium-2 { grid-column: 1; --step-height: 212px; --medal-color: #8897a8; --medal-tint: #8897a818; }
.certiquiz-app .podium-3 { grid-column: 3; --step-height: 180px; --medal-color: #b67c4d; --medal-tint: #b67c4d18; }
.certiquiz-app .podium-medal { display: block; flex: 0 0 auto; width: 80px; height: 80px; max-width: 100%; object-fit: contain; margin-bottom: 12px; }
.certiquiz-app .podium-score { font-size: clamp(19px, 2.5vw, 27px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.certiquiz-app .podium-step > span { font-size: 14px; color: var(--muted); }
.certiquiz-app .confetti { position: absolute; inset: 0; z-index: 20; overflow: hidden; border-radius: inherit; pointer-events: none; }
.certiquiz-app .confetti i { position: absolute; top: -16px; left: var(--left); width: 7px; height: 100%; opacity: 0; animation: certiquiz-confetti-fall var(--duration) linear var(--delay) infinite both; }
.certiquiz-app .confetti i::before { content: ""; display: block; width: 100%; height: 12px; background: var(--color); animation: certiquiz-confetti-spin var(--duration) linear var(--delay) infinite; }
.certiquiz-app .confetti i:nth-child(3n) { width: 9px; }
.certiquiz-app .confetti i:nth-child(3n)::before { height: 9px; border-radius: 50%; }
@keyframes certiquiz-confetti-fall { 0% { opacity: 0; transform: translate(0, -20px); } 5%, 60% { opacity: 1; } 85%, 100% { opacity: 0; } 100% { transform: translate(var(--drift), calc(100% + 40px)); } }
@keyframes certiquiz-confetti-spin { to { transform: rotate(720deg); } }
@media (max-width: 720px) { .certiquiz-app .podium { gap: 8px; margin-top: 28px; } .certiquiz-app .podium-step { padding: 10px 5px; } .certiquiz-app .podium-1 { --step-height: 208px; } .certiquiz-app .podium-2 { --step-height: 176px; } .certiquiz-app .podium-3 { --step-height: 144px; } .certiquiz-app .podium-medal { width: 64px; height: 64px; margin-bottom: 8px; } .certiquiz-app .podium-step > span { font-size: 12px; } }
.certiquiz-app .loading:not(.loading-full) { margin: 50px 0; }
.certiquiz-page .certiquiz-main .loading-full { position: fixed; inset: var(--header) 0 var(--footer-height); min-height: 0; }
@media (max-width: 720px) { .certiquiz-app .host-entry .certification-item { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 28px; } .certiquiz-app .host-entry .certification-item input { max-width: none; } .certiquiz-app .setup-actions .certification-number { top: 23px; transform: none; } }
@media (max-width: 800px) {
  .certiquiz-app .welcome { display: none; }
  .certiquiz-page .certiquiz-main { padding: 0; }
  .certiquiz-app .entry-card { max-width: none; }
  .certiquiz-app .join-card:not(.role-card) { min-height: calc(100dvh - var(--header) - var(--footer-height)); padding: 20px var(--content-gutter); border: 0; border-radius: 0; box-shadow: none; }
  .certiquiz-app .role-options { padding: 20px var(--content-gutter); }
  .certiquiz-app .player-entry, .certiquiz-app .player-entry #join-form { display: flex; flex-direction: column; }
  .certiquiz-app .player-entry #join-form { flex: 1; }
  .certiquiz-app .player-entry .join-actions { margin-top: auto; }
  .certiquiz-app .room-grid { grid-template-columns: minmax(0, 1fr); }
  .certiquiz-app .room-side { display: none; }
}
@media (max-width: 720px) { .certiquiz-app .invite-code { grid-template-columns: minmax(0, 1fr) 52px; } .certiquiz-app .player-lobby-footer .fact-row { flex: 1; min-width: 0; } }
@media (max-width: 720px) { .certiquiz-app .host-entry .setup-actions .button { width: 100%; } }
@media (max-width: 720px) { .certiquiz-app .entry-grid, .certiquiz-app .options { grid-template-columns: 1fr; } .certiquiz-app .entry-card { max-width: none; } .certiquiz-app .card { padding: 23px; } .certiquiz-app .pin { font-size: 48px; } .certiquiz-app input.code-input { height: 74px !important; font-size: 48px !important; } .certiquiz-app .option { min-height: 80px; padding: 15px; } .certiquiz-app .result-banner { padding: 23px; } }
@media (max-width: 370px) { .certiquiz-app .field-row { grid-template-columns: 1fr; gap: 0; } .certiquiz-app .card { padding: 18px; } .certiquiz-app .actions .button { width: 100%; } .certiquiz-app .invite-code { grid-template-columns: minmax(0, 1fr) 44px; } .certiquiz-app .pin { font-size: 40px; } .certiquiz-app input.code-input { height: 66px !important; font-size: 40px !important; } }
@media (max-width: 370px) { .certiquiz-app .lobby-footer:not(.player-lobby-footer) .actions { gap: 4px; } .certiquiz-app .lobby-footer:not(.player-lobby-footer) .actions .button { font-size: 12px; padding-inline: 7px; } .certiquiz-app .lobby-wait-timer { min-width: 60px; padding-inline: 6px; } }
@media (prefers-reduced-motion: reduce) { .certiquiz-app .confetti { display: none; } .certiquiz-app *, .certiquiz-app *::before, .certiquiz-app *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
