/* Private, lightweight two-player rounds. All styles stay inside the duel UI. */
/* A quiet arena, not an opacity overlay: controls and question artwork stay clear. */
:root:has(> body.duel-shell) {background:#101014;color-scheme:dark;}
body.duel-shell {
  color-scheme: dark;
  --site-font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif;
  --bg: #101014;
  --card: #24171e;
  --soft: #30212a;
  --text: #f6edf0;
  --heading: #fff7f9;
  --muted: #c5b4bd;
  --line: #63424f;
  --brand: #b51f3b;
  --on-brand: #fff;
  --accent: #b51f3b;
  background: radial-gradient(ellipse at 50% 20%, #52132126, transparent 58%), #101014;
  color: var(--text);
}
body.duel-shell > .site-academic-pattern:not(.gender-gate-academic-pattern) {
  color: #bd8394;
  opacity: .035;
  filter: none;
}
body.duel-shell > .topbar {
  border-color: #38232d;
  background: transparent;
}
html[data-theme] body.duel-shell .site-brand .site-brand-copy .brand-english {font-family:Arial,sans-serif;}
body.duel-shell .site-footer {
  --footer-ink: #d5c2ca;
  --footer-muted: #b6a1ac;
  --footer-line: #38232d;
  --footer-surface: #131016;
  --footer-accent: #df8296;
}
body.duel-shell .site-footer__surface::before {
  background: linear-gradient(90deg, transparent, #7d263a, transparent);
}
body.duel-shell .duel-page {
  --duel-accent: #b51f3b;
  --duel-deep: #701327;
  --duel-indigo: var(--zakkerha-logo-color, #2166f3);
  --duel-desk: #4265aa;
  --duel-good: #168565;
  --duel-accent-text: #ff9fb1;
  --duel-indigo-text: #8eafff;
  --duel-good-text: #88e2be;
  --duel-bad-text: #ffb4bf;
}
body.duel-shell .duel-flow-card {
  --choice-color: #d33754;
  border-color: #ab3c54;
  background: radial-gradient(ellipse at 15% 0%, #b8254547, transparent 65%), linear-gradient(145deg, #64182c, #2b1821 85%);
  box-shadow: 0 18px 38px #00000055, inset 0 1px #ffbdcd24;
}
body.duel-shell :is(.duel-flow-card--english, .duel-flow-card--join) {
  --choice-color: #e5556e;
  background: radial-gradient(ellipse at 85% 0%, #b8254547, transparent 65%), linear-gradient(145deg, #4c1526, #321922 85%);
}
body.duel-shell .duel-language-glyph,
body.duel-shell .duel-mode-art { color: #ffe8ed; }
body.duel-shell .duel-flow-card--english .duel-language-glyph,
body.duel-shell .duel-flow-card--join .duel-mode-art {color:var(--duel-indigo-text);}
body.duel-shell .duel-flow-card-copy small { color: #e7c9d2; }
body.duel-shell .duel-flow-card-arrow {
  border-color: #df8c9e70;
  background: #ffffff0d;
  color: #ffe8ed;
}
body.duel-shell .duel-panel {
  border-color: #8f364a;
  background: linear-gradient(145deg, #341922, #20151b 75%);
  box-shadow: 0 16px 36px #0000004d, inset 0 1px #ffbdcd14;
}
body.duel-shell .duel-create-panel::before {
  background: linear-gradient(90deg, #d33754 0%, #a32a47 70%, var(--duel-indigo));
}
body.duel-shell .duel-page .duel-form :is(input, select) {
  background: #181118;
  border-color: #785261;
}
body.duel-shell .duel-duration-options label > span { background: #181118; }
body.duel-shell .duel-duration-options input:checked + span {
  background: #65172b;
  color: #fff0f4;
  border-color: #e35a75;
  box-shadow: inset 0 0 0 1px #e35a75;
}
body.duel-shell .duel-page .duel-button--primary {
  background: linear-gradient(135deg, #bc223e, #8e182e);
  border-color: #dd4965;
  box-shadow: 0 7px 18px #8b102d29;
}
body.duel-shell .duel-player {
  --player-accent: var(--duel-indigo);
  background: linear-gradient(120deg, #38202b, #24171e 80%);
}
body.duel-shell .duel-player.is-me { --player-accent: #df3a5a; }
body.duel-shell .duel-invite { background: #301a24; }
body.duel-shell .duel-round-bar { background: #2d1c26; }
body.duel-shell .duel-match-vs {color:var(--duel-indigo-text);border-color:#4265aa;background:#171c2a;}
body.duel-shell .duel-result-scores strong { color: #ff9fb1; }
body.duel-shell .duel-page :is(button, a, input, select, summary):focus-visible { outline-color: #ff9fb1; }
body.duel-shell .duel-duration-options input:focus-visible + span { outline-color: #ff9fb1; }
@media (hover:hover) and (pointer:fine) {
  body.duel-shell .duel-flow-card:hover { border-color: #ff9fb1; box-shadow: 0 22px 44px #00000066, inset 0 1px #ffbdcd33; }
  body.duel-shell .duel-page .duel-button--primary:not(:disabled):hover { background: #c32947; }
}
.duel-page {--duel-accent:var(--zakkerha-logo-color,#ad5881);--duel-deep:#783753;--duel-indigo:#656cc0;--duel-desk:#35576a;--duel-good:#168565;--duel-bad:#c34761;--duel-accent-text:color-mix(in srgb,var(--duel-accent) 75%,var(--heading));--duel-indigo-text:color-mix(in srgb,var(--duel-indigo) 70%,var(--heading));--duel-good-text:color-mix(in srgb,var(--duel-good) 65%,var(--heading));--duel-bad-text:color-mix(in srgb,var(--duel-bad) 65%,var(--heading));max-width:980px;margin-inline:auto;padding-block:28px 44px;color:var(--text);font-family:"Segoe UI Variable Text","Segoe UI",Tahoma,Arial,sans-serif;}
.duel-page [hidden] {display:none!important;}
.duel-page :is(h1,h2,h3,p) {margin:0;text-align:start;}
.duel-page :is(h1,h2,h3) {text-shadow:none;}
.duel-room :is(.duel-play,.duel-countdown,.duel-result) {scroll-margin-top:12px;}
.duel-page-heading {text-align:center;margin-bottom:20px;}
.duel-page .duel-page-heading :is(h1,p) {text-align:center;}
.duel-eyebrow {display:block;color:var(--duel-accent-text);font-size:11px;line-height:1.5;font-weight:800;letter-spacing:.08em;}
.duel-page h1 {margin-top:5px;font-size:clamp(26px,4.5vw,38px);line-height:1.3;font-weight:850;color:var(--heading);}
.duel-page-heading p {margin-top:8px;font-size:15px;line-height:1.7;color:var(--muted);}
.duel-flow-nav {display:grid;grid-template-columns:minmax(70px,1fr) auto minmax(70px,1fr);align-items:center;gap:12px;margin-bottom:20px;}
.duel-flow-back,.duel-flow-language {display:inline-flex;align-items:center;gap:7px;min-height:44px;width:fit-content;color:var(--muted);font-size:12px;font-weight:700;text-decoration:none;}
.duel-flow-back svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.duel-flow-language {justify-self:end;color:var(--duel-accent-text);}
html[dir="rtl"] .duel-flow-back svg {transform:rotate(180deg);}
.duel-flow-steps {display:flex;align-items:center;gap:20px;margin:0;padding:0;list-style:none;white-space:nowrap;}
.duel-flow-steps li {display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;}
.duel-flow-steps b {display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-size:10px;font-variant-numeric:tabular-nums;}
.duel-flow-steps [aria-current="step"] {color:var(--heading);font-weight:800;}
.duel-flow-steps [aria-current="step"] b {border-color:var(--duel-accent);background:var(--duel-accent);color:#fff;}
.duel-flow-heading {margin-bottom:24px;}
.duel-choice-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;}
.duel-flow-card {--choice-color:var(--duel-accent);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-width:0;min-height:300px;padding:32px 24px 42px;border:1px solid color-mix(in srgb,var(--choice-color) 40%,var(--line));border-radius:30px;background:linear-gradient(145deg,color-mix(in srgb,var(--choice-color) 12%,var(--card)),var(--card) 80%);color:var(--heading);text-decoration:none;overflow:hidden;isolation:isolate;box-shadow:0 12px 24px #192c4109;transition:border-color .2s ease,transform .2s ease;}
.duel-flow-card::before {content:"";position:absolute;z-index:-1;inset:auto -72px -120px auto;width:300px;height:300px;border:1px solid color-mix(in srgb,var(--choice-color) 14%,transparent);border-radius:50%;pointer-events:none;}
.duel-flow-card--english,.duel-flow-card--join {--choice-color:var(--duel-indigo);}
.duel-language-glyph {display:grid;place-items:center;min-width:130px;height:118px;color:color-mix(in srgb,var(--choice-color) 75%,var(--heading));font-size:96px;font-weight:800;line-height:1.15;letter-spacing:-.06em;}
.duel-arena-mark {display:flex;align-items:center;justify-content:center;gap:13px;margin:0 auto 14px;color:#fff3f6;font-size:27px;line-height:1;font-weight:850;}
.duel-arena-mark b {display:grid;place-items:center;width:42px;height:44px;border:1px solid #914052;border-radius:13px;background:#481827;transform:rotate(-7deg);}
.duel-arena-mark b:last-child {transform:rotate(7deg);}
.duel-arena-mark > span {color:var(--duel-indigo-text);font-size:14px;font-style:italic;letter-spacing:-.04em;}
.duel-game-facts {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 18px;margin-top:15px;color:#e8cbd3;font-size:12px;}
.duel-game-facts > span {display:inline-flex;align-items:center;gap:6px;}
.duel-game-facts b {color:#ff9fb1;font-size:15px;}
.duel-game-facts svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.duel-card-index {position:absolute;top:16px;inset-inline-start:20px;color:#ef8aa1;font-size:11px;font-weight:700;letter-spacing:.08em;}
.duel-flow-card-copy {display:grid;gap:7px;text-align:center;}
.duel-flow-card-copy strong {font-size:clamp(25px,3vw,32px);font-weight:850;line-height:1.4;color:var(--heading);}
.duel-flow-card-copy small {font-size:13px;line-height:1.7;color:var(--muted);}
.duel-mode-grid .duel-flow-card-copy {gap:10px;max-width:310px;min-width:0;}
.duel-mode-grid .duel-choice-kicker {color:#ffc5d1;font-size:10px;font-weight:750;line-height:1.5;letter-spacing:.08em;}
.duel-mode-grid .duel-flow-card-copy strong {font-weight:750;line-height:1.3;letter-spacing:-.02em;text-wrap:balance;}
.duel-mode-grid .duel-flow-card-copy small {font-size:14px;line-height:1.8;text-wrap:pretty;}
.duel-guide {margin-top:28px;border:1px solid var(--line);border-radius:20px;background:#1c1219;overflow:hidden;}
.duel-guide > summary {display:flex;align-items:center;gap:13px;min-height:76px;padding:16px 20px;cursor:pointer;list-style:none;}
.duel-guide > summary::-webkit-details-marker {display:none;}
.duel-guide-mark {display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#50162a;color:#ffc5d1;}
.duel-guide-mark svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;}
.duel-guide-summary {display:grid;gap:4px;min-width:0;}
.duel-guide-summary strong {font-size:15px;line-height:1.5;font-weight:700;color:var(--heading);}
.duel-guide-summary small {font-size:12px;line-height:1.5;color:var(--muted);}
.duel-guide-toggle {margin-inline-start:auto;color:var(--duel-accent-text);font-size:26px;font-weight:400;line-height:1;}
.duel-guide[open] .duel-guide-toggle {font-size:0;}
.duel-guide[open] .duel-guide-toggle::after {content:'−';font-size:26px;}
.duel-guide-content {padding:0 20px 20px;border-top:1px solid #38232d;}
.duel-guide-steps {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 28px;margin:22px 0;padding:0;list-style:none;}
.duel-guide-steps li {display:flex;align-items:flex-start;gap:12px;min-width:0;}
.duel-guide-number {display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #7a3043;border-radius:10px;background:#421526;color:#ffc5d1;font-size:11px;font-weight:700;direction:ltr;}
.duel-guide-steps h2 {font-size:15px;line-height:1.5;font-weight:700;color:var(--heading);}
.duel-page .duel-guide-steps p {margin-top:5px;font-size:12px;line-height:1.85;color:var(--muted);text-wrap:pretty;}
.duel-guide-watch {width:fit-content;}
.duel-guide-dialog {width:min(840px,calc(100% - 24px));max-width:none;max-height:calc(100svh - 32px);padding:0;border:1px solid #a13c53;border-radius:22px;background:#21151d;color:#fff7f9;box-shadow:0 28px 80px #0008;overflow:auto;font-family:"Segoe UI",Tahoma,Arial,sans-serif;}
.duel-guide-dialog::backdrop {background:#09070ed9;}
.duel-guide-dialog > header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;}
.duel-page .duel-guide-dialog h2 {font-size:18px;font-weight:700;line-height:1.5;}
.duel-page .duel-guide-dialog header p {margin-top:3px;color:#c5b4bd;font-size:12px;line-height:1.6;}
.duel-guide-close {display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #785261;border-radius:12px;background:#30212a;color:#fff7f9;cursor:pointer;box-shadow:none;}
.duel-guide-close svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;}
.duel-guide-dialog video {display:block;width:100%;height:auto;aspect-ratio:3/2;background:#0d0b10;object-fit:contain;}
.duel-page .duel-guide-video-note {padding:12px 20px;color:#c5b4bd;font-size:11px;line-height:1.75;}
.duel-meta-chip .grade-stars {margin-inline-start:0;font-size:9px;}
.duel-flow-card-arrow {position:absolute;inset-inline-end:23px;bottom:22px;display:grid;place-items:center;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--choice-color) 24%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--card) 80%,transparent);color:color-mix(in srgb,var(--choice-color) 75%,var(--heading));}
.duel-flow-card-arrow svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.duel-flow-card[dir="rtl"] .duel-flow-card-arrow svg,html[dir="rtl"] .duel-mode-grid .duel-flow-card-arrow svg {transform:rotate(180deg);}
.duel-mode-art {display:block;width:180px;height:112px;color:color-mix(in srgb,var(--choice-color) 80%,var(--heading));}
.duel-mode-art svg {display:block;width:100%;height:100%;stroke-linecap:round;stroke-linejoin:round;}
.duel-art-line {fill:none;stroke:currentColor;stroke-width:2.6;}
.duel-art-soft {fill:color-mix(in srgb,var(--choice-color) 10%,var(--card));stroke:currentColor;stroke-width:2;}
.duel-art-fill {fill:color-mix(in srgb,var(--choice-color) 17%,var(--card));stroke:currentColor;stroke-width:2;}
.duel-art-solid {fill:var(--choice-color);}
.duel-art-white {fill:none;stroke:#fff;stroke-width:2.5;}
.duel-panel {position:relative;min-width:0;padding:26px;border:1px solid var(--line);border-radius:24px;background:var(--card);color:var(--text);box-shadow:0 12px 30px #192c410c;}
.duel-panel h2 {font-size:23px;line-height:1.5;color:var(--heading);font-weight:800;}
.duel-panel > p {margin-top:7px;color:var(--muted);font-size:13px;line-height:1.7;}
.duel-panel-title {display:flex;align-items:center;gap:13px;}
.duel-panel-title > div {min-width:0;}
.duel-panel-icon {display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid color-mix(in srgb,var(--duel-accent) 20%,var(--line));border-radius:16px;color:var(--duel-accent-text);background:color-mix(in srgb,var(--duel-accent) 10%,var(--card));}
.duel-page :is(.duel-button,.duel-panel-icon) > svg {width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.duel-create-panel {border-color:color-mix(in srgb,var(--duel-accent) 33%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--duel-accent) 4%,var(--card)),var(--card) 55%);}
.duel-create-panel::before {content:"";position:absolute;inset:0 26px auto;height:3px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,var(--duel-accent),var(--duel-indigo));pointer-events:none;}
.duel-join-panel .duel-panel-icon {color:var(--duel-indigo-text);border-color:color-mix(in srgb,var(--duel-indigo) 23%,var(--line));background:color-mix(in srgb,var(--duel-indigo) 9%,var(--card));}
.duel-join-panel {display:flex;flex-direction:column;}
.duel-setup-panel {max-width:600px;margin-inline:auto;}
.duel-form-fields {display:grid;grid-template-columns:minmax(0,1fr);gap:18px;}
.duel-field {display:grid;gap:8px;min-width:0;}
.duel-pick-grid {display:grid;gap:8px;}
.duel-prep-picks {grid-template-columns:repeat(2,minmax(0,1fr));}
.duel-subject-picks {grid-template-columns:repeat(5,minmax(0,1fr));}
.duel-page .duel-pick {display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;margin:0;padding:10px 8px;border:1px solid #785261;border-radius:12px;background:#181118;color:#dfcdd5;font:inherit;font-size:13px;font-weight:650;line-height:1.5;box-shadow:none;cursor:pointer;}
.duel-subject-picks .duel-pick {flex-direction:column;gap:5px;font-size:12px;}
.duel-pick-symbol {color:#d899aa;font-size:18px;font-weight:750;line-height:1.2;}
.duel-pick-symbol svg {display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.duel-prep-picks .duel-pick-symbol {font-size:11px;letter-spacing:2px;}
.duel-page .duel-pick[aria-pressed="true"] {background:#65172b;border-color:#e35a75;color:#fff0f4;box-shadow:inset 0 0 0 1px #e35a75;}
.duel-pick[aria-pressed="true"] .duel-pick-symbol {color:#ffc6d2;}
.duel-page .duel-setup-summary {display:flex;justify-content:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11px;line-height:1.6;}
.duel-profile-options {display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.duel-segment-field {min-width:0;margin:0;padding:0;border:0;}
.duel-segment-field legend {margin-bottom:7px;padding:0;color:var(--heading);font-size:13px;font-weight:650;}
.duel-segment-options {display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.duel-page .duel-segment-options label {position:relative;display:block;}
.duel-page .duel-form .duel-segment-options input {position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;}
.duel-segment-options span {display:grid;place-items:center;min-height:48px;border:1px solid #785261;border-radius:12px;background:#181118;color:var(--muted);}
.duel-segment-options input:checked + span {border-color:#e35a75;background:#65172b;color:#fff0f4;box-shadow:inset 0 0 0 1px #e35a75;}
.duel-segment-options input:focus-visible + span {outline:3px solid #ff9fb1;outline-offset:3px;}
.duel-form {display:grid;gap:15px;margin-top:23px;}
.duel-form label {display:grid;gap:7px;color:var(--heading);font-size:13px;font-weight:650;}
.duel-page .duel-form :is(input,select) {display:block;min-width:0;width:100%;min-height:48px;margin:0;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font:inherit;box-shadow:none;}
.duel-page .duel-code-input {font-size:21px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;}
.duel-page .duel-code-input::placeholder {font-size:17px;color:var(--muted);opacity:.65;}
.duel-page .duel-duration {min-width:0;margin:0;padding:0;border:0;}
.duel-duration > legend {display:flex;align-items:center;gap:6px;margin-bottom:8px;padding:0;color:var(--heading);font-size:13px;font-weight:650;}
.duel-duration > legend svg {width:17px;height:17px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.duel-duration-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.duel-page .duel-duration-options label {position:relative;display:block;min-width:0;}
.duel-page .duel-form .duel-duration input {position:absolute;inset:0;z-index:1;inline-size:100%;block-size:100%;min-width:0;min-height:48px;margin:0;padding:0;border:0;opacity:0;cursor:pointer;}
.duel-duration-options label > span {display:flex;align-items:center;justify-content:center;gap:5px;min-height:48px;padding:8px 6px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--muted);cursor:pointer;}
.duel-duration-options b {font-size:19px;line-height:1;font-weight:800;}
.duel-duration-options small {font-size:11px;line-height:1.4;font-weight:600;}
.duel-duration-options input:checked + span {border-color:var(--duel-accent);background:color-mix(in srgb,var(--duel-accent) 10%,var(--card));color:var(--duel-accent-text);box-shadow:inset 0 0 0 1px var(--duel-accent);}
.duel-duration-options input:focus-visible + span {outline:3px solid var(--duel-accent);outline-offset:3px;}
.duel-duration-note {display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.6;}
.duel-page .duel-button {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;margin:0;padding:11px 18px;border:1px solid transparent;border-radius:13px;font:inherit;font-size:14px;line-height:1.5;font-weight:750;text-align:center;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .15s ease,border-color .15s ease;}
.duel-page .duel-button--primary {background:var(--duel-accent);border-color:var(--duel-accent);color:#fff;}
.duel-page .duel-button--secondary {background:var(--card);border-color:var(--line);color:var(--heading);}
.duel-page .duel-button:disabled {cursor:default;opacity:.6;}
.duel-page :is(button,a,input,select,summary):focus-visible {outline:3px solid var(--duel-accent);outline-offset:4px;}
.duel-page [tabindex="-1"]:focus {outline:none;}
.duel-page .duel-button svg {width:18px;height:18px;flex-basis:18px;}
html[dir="rtl"] .duel-form .duel-button svg {transform:rotate(180deg);}
.duel-active-room {display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:18px;padding:15px 20px;border:1px solid color-mix(in srgb,var(--duel-accent) 35%,var(--line));border-radius:16px;background:var(--card);color:var(--heading);font-size:13px;text-decoration:none;}
.duel-active-room strong {color:var(--duel-accent-text);}
.duel-footnote {margin-top:20px!important;color:var(--muted);text-align:center!important;font-size:11px;line-height:1.7;}
.duel-unavailable {max-width:600px;margin-inline:auto;text-align:center;}
.duel-unavailable :is(h2,p) {text-align:center;}
.duel-unavailable .duel-button {margin-top:18px;}
.duel-room-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin-bottom:18px;}
.duel-room-meta {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:460px;max-width:100%;}
.duel-meta-chip {display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:0;height:36px;padding:6px 8px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--heading);font-size:12px;font-weight:650;line-height:1.5;white-space:nowrap;}
.duel-meta-chip svg {width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.duel-room-heading h1 {font-size:clamp(23px,4vw,32px);}
.duel-page .duel-result-reward {width:fit-content;margin:12px auto 0;padding:6px 12px;border:1px solid var(--duel-good-text);border-radius:999px;background:var(--card);color:var(--duel-good-text);font-size:12px;font-weight:750;}
.duel-invite {display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;margin-bottom:18px;padding:16px 20px;border:1px dashed color-mix(in srgb,var(--duel-accent) 42%,var(--line));border-radius:18px;background:color-mix(in srgb,var(--duel-accent) 5%,var(--card));}
.duel-small-label {display:block;margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:700;line-height:1.5;letter-spacing:.04em;}
.duel-invite strong {display:block;color:var(--heading);font-size:24px;font-weight:850;letter-spacing:.15em;line-height:1.2;}
.duel-invite-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.duel-page .duel-copy-button {padding-inline:13px;}
.duel-copy-status {flex-basis:100%;color:var(--duel-good-text);font-size:12px;line-height:1.5;}
.duel-page .duel-invite-link {display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin-top:8px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--text);font:inherit;font-size:16px;line-height:1.5;text-align:start;direction:ltr;box-shadow:none;cursor:text;}
.duel-player-grid {position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:18px;}
.duel-match-vs {position:absolute;top:50%;left:50%;z-index:1;display:grid;place-items:center;width:30px;height:30px;transform:translate(-50%,-50%);border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--muted);font-size:10px;font-weight:850;font-style:italic;}
.duel-player {--player-accent:var(--duel-indigo);position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;min-width:0;padding:18px;border:1px solid color-mix(in srgb,var(--player-accent) 25%,var(--line));border-radius:20px;background:linear-gradient(120deg,color-mix(in srgb,var(--player-accent) 5%,var(--card)),var(--card) 80%);}
.duel-player.is-me {--player-accent:var(--duel-accent);border-color:color-mix(in srgb,var(--player-accent) 45%,var(--line));}
.duel-player.is-ready .duel-player-avatar > span {color:#fff;background:var(--duel-good);border-color:var(--card);}
.duel-player-avatar {position:relative;display:grid;place-items:center;width:46px;height:46px;border:1px solid color-mix(in srgb,var(--player-accent) 30%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--player-accent) 10%,var(--card));color:var(--heading);font-size:20px;font-weight:800;}
.duel-player-avatar svg {width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.duel-player-avatar > span {position:absolute;inset-inline-end:-5px;bottom:-4px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 3px;border:2px solid var(--card);border-radius:7px;background:var(--soft);color:var(--muted);font-size:10px;line-height:1;}
.duel-player-avatar.has-photo > svg {display:none;}
.duel-player-avatar > .duel-player-photo {position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;border-radius:inherit;z-index:0;}
.duel-player-avatar > [data-duel-avatar] {z-index:1;}
.duel-player-steps {display:flex;grid-column:1/-1;gap:5px;margin-top:3px;}
.duel-player-steps i {display:block;flex:1;height:5px;border-radius:9px;background:color-mix(in srgb,var(--player-accent) 12%,var(--soft));}
.duel-player-steps i.is-complete {background:var(--player-accent);}
.duel-player > div {min-width:0;}
.duel-player h2 {color:var(--heading);font-size:15px;font-weight:750;line-height:1.45;overflow-wrap:anywhere;}
.duel-player p {margin-top:3px;color:var(--muted);font-size:11px;line-height:1.5;}
.duel-player-progress {font-size:14px;color:var(--heading);white-space:nowrap;font-variant-numeric:tabular-nums;}
.duel-stage {text-align:center;padding-block:30px;}
.duel-stage :is(h2,p) {text-align:center;}
.duel-stage-symbol {display:grid;place-items:center;width:66px;height:66px;margin:0 auto 15px;border:1px solid color-mix(in srgb,var(--duel-indigo) 24%,var(--line));border-radius:22px;background:color-mix(in srgb,var(--duel-indigo) 9%,var(--card));color:var(--duel-indigo-text);}
.duel-stage-vs {font-size:24px;font-weight:850;font-style:italic;letter-spacing:-.06em;}
.duel-stage-symbol svg {width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.duel-stage-symbol.is-complete {border-color:color-mix(in srgb,var(--duel-good) 28%,var(--line));background:color-mix(in srgb,var(--duel-good) 9%,var(--card));color:var(--duel-good-text);}
.duel-stage .duel-button {min-width:170px;margin-top:20px;}
.duel-page .duel-hint {margin-top:14px;color:var(--muted);font-size:11px;line-height:1.7;}
.duel-countdown [data-duel-countdown-value] {display:grid;place-items:center;width:130px;min-height:130px;margin:16px auto;border:2px solid #a53b53;border-radius:34px;background:#51172a;color:#fff0f5;font-size:80px;font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums;}
.duel-notice {margin:0 0 14px!important;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--text);font-size:12px;line-height:1.6;}
.duel-notice.is-error {border-color:color-mix(in srgb,var(--duel-bad) 45%,var(--line));color:var(--duel-bad-text);}
.duel-round-bar {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;padding:14px 18px;border:1px solid var(--line);border-radius:19px;background:var(--card);color:var(--heading);font-size:12px;font-weight:750;}
.duel-round-steps {display:flex;gap:8px;margin:8px 0 0;padding:0;list-style:none;}
.duel-round-steps li {position:relative;display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--muted);font-size:11px;font-weight:750;}
.duel-round-steps li:not(:last-child)::after {content:"";position:absolute;inset-inline-end:-8px;top:11px;width:7px;height:1px;background:var(--line);}
.duel-round-steps li.is-current {border-color:var(--duel-accent);background:var(--duel-accent);color:#fff;}
.duel-round-steps li.is-complete {border-color:var(--duel-desk);background:var(--duel-desk);color:#fff;}
.duel-clock {position:relative;display:flex;align-items:center;gap:9px;min-width:116px;padding:9px 12px 12px;border:1px solid color-mix(in srgb,var(--duel-indigo) 25%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--duel-indigo) 7%,var(--card));overflow:hidden;}
.duel-clock > svg {width:25px;height:25px;flex:0 0 25px;fill:none;stroke:var(--duel-indigo-text);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.duel-clock .duel-small-label {margin:0;font-size:9px;}
.duel-timer {display:block;color:var(--heading);font-size:25px;line-height:1.2;font-weight:850;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:-.02em;}
.duel-timer-track {position:absolute;inset:auto 0 0;display:block;height:3px;background:var(--line);}
.duel-timer-track > b {display:block;height:100%;width:100%;border-radius:inherit;background:var(--duel-indigo);transform-origin:left center;}
.duel-clock.is-urgent {border-color:var(--duel-bad);background:color-mix(in srgb,var(--duel-bad) 7%,var(--card));}
.duel-clock.is-urgent :is(.duel-timer,svg) {color:var(--duel-bad-text);stroke:var(--duel-bad-text);}
.duel-clock.is-urgent .duel-timer-track > b {background:var(--duel-bad);}
.duel-question {border-top:4px solid var(--duel-accent);}
.duel-question h2 {font-size:clamp(20px,3vw,27px);line-height:1.6;overflow-wrap:anywhere;}
/* Inline math SVGs (radicals and set braces) own their dimensions. Applying
   image height:auto to them restores SVG's 150px default and stretches roots. */
.duel-question img,.duel-review-item img {max-width:100%;height:auto;}
.duel-choices {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:24px;}
.duel-page .duel-choice {display:flex;align-items:center;gap:12px;min-width:0;min-height:58px;margin:0;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text);font:inherit;font-size:15px;line-height:1.5;text-align:start;cursor:pointer;box-shadow:none;}
.duel-choice-letter {display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:800;}
.duel-choice > span:last-child {flex:1;min-width:0;overflow-wrap:anywhere;text-align:start;unicode-bidi:isolate;}
.duel-page .duel-choice.is-selected {border-color:var(--duel-accent);background:color-mix(in srgb,var(--duel-accent) 10%,var(--card));color:var(--heading);}
.duel-choice.is-selected .duel-choice-letter {background:var(--duel-accent);color:#fff;}
.duel-page .duel-choice:disabled {opacity:1;cursor:default;}
.duel-page .duel-answer-note {margin-top:15px;color:var(--muted);font-size:11px;line-height:1.6;}
.duel-result-hero {padding-block:30px;text-align:center;border-color:color-mix(in srgb,var(--duel-accent) 35%,var(--line));}
.duel-result-emblem {position:relative;display:grid;place-items:center;width:70px;height:70px;margin:0 auto 14px;border:1px solid color-mix(in srgb,var(--duel-accent) 24%,var(--line));border-radius:24px;background:linear-gradient(145deg,color-mix(in srgb,var(--duel-accent) 15%,var(--card)),var(--card));color:var(--duel-accent-text);}
.duel-result-emblem > span {display:none;place-items:center;}
.duel-result-emblem svg {width:39px;height:39px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.duel-result-emblem .duel-result-icon--complete {display:grid;}
.duel-room[data-outcome="win"] .duel-result-icon--complete {display:none;}
.duel-room[data-outcome="win"] .duel-result-icon--trophy {display:grid;}
.duel-room[data-outcome="draw"] .duel-result-emblem {color:var(--duel-indigo-text);border-color:color-mix(in srgb,var(--duel-indigo) 24%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--duel-indigo) 15%,var(--card)),var(--card));}
.duel-room[data-outcome="draw"] .duel-result-icon--trophy {display:none;}
.duel-room[data-outcome="draw"] .duel-result-icon--complete {display:none;}
.duel-room[data-outcome="draw"] .duel-result-icon--draw {display:grid;}
.duel-room[data-outcome="loss"] .duel-result-emblem {color:var(--muted);border-color:var(--line);background:var(--soft);}
.duel-result-hero :is(h2,p) {text-align:center;}
.duel-result-hero h2 {margin-top:6px;font-size:30px;line-height:1.4;}
.duel-result-scores {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:center;max-width:530px;margin:22px auto 0;}
.duel-result-scores > div {min-width:0;display:grid;gap:7px;padding:17px 12px;border:1px solid var(--line);border-radius:18px;background:var(--soft);}
.duel-result-scores > div.is-winner {border-color:color-mix(in srgb,var(--duel-good) 50%,var(--line));background:color-mix(in srgb,var(--duel-good) 7%,var(--card));}
.duel-result-scores > div > span {color:var(--heading);font-size:14px;font-weight:700;overflow-wrap:anywhere;}
.duel-result-scores strong {font-size:42px;line-height:1.2;color:var(--duel-accent);font-weight:900;font-variant-numeric:tabular-nums;}
.duel-result-scores small {display:flex;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:12px;line-height:1.5;}
.duel-result-scores small svg {width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;}
.duel-versus {color:var(--muted);font-size:12px;font-weight:800;font-style:italic;}
.duel-result-actions {display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px;}
.duel-page .duel-rematch-status {margin-top:10px;color:var(--muted);font-size:12px;line-height:1.6;text-align:center;}
.duel-review {margin-top:22px;padding:0 22px;}
.duel-review > summary {display:flex;align-items:center;gap:10px;min-height:56px;padding-block:13px;cursor:pointer;color:var(--heading);font-size:14px;font-weight:750;}
.duel-review > summary svg {width:21px;height:21px;flex:0 0 21px;fill:none;stroke:var(--duel-indigo-text);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.duel-review > summary::after {content:"+";margin-inline-start:auto;font-size:24px;font-weight:400;}
.duel-review[open] > summary::after {content:"−";}
.duel-review-item {padding:19px 0;border-top:1px solid var(--line);}
.duel-review-item h3 {font-size:17px;line-height:1.7;color:var(--heading);overflow-wrap:anywhere;}
.duel-review-answers {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}
.duel-review-answer {padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.6;}
.duel-review-answer.is-correct {border-color:color-mix(in srgb,var(--duel-good) 45%,var(--line));background:color-mix(in srgb,var(--duel-good) 8%,var(--card));}
.duel-review-answer.is-incorrect {border-color:color-mix(in srgb,var(--duel-bad) 45%,var(--line));background:color-mix(in srgb,var(--duel-bad) 7%,var(--card));}
.duel-review-answer > b {display:block;color:var(--muted);font-size:10px;margin-bottom:4px;}
.duel-review-correct {margin-top:12px;color:var(--duel-good-text);font-size:13px;line-height:1.7;overflow-wrap:anywhere;}
.duel-review-explanation {margin-top:9px;color:var(--muted);font-size:13px;line-height:1.8;overflow-wrap:anywhere;}
.duel-room-tools {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.duel-room-tools a {text-decoration:none;}
.duel-room[data-phase="playing"] .duel-room-meta {display:none;}
.duel-room[data-phase="playing"] .duel-room-heading {margin-bottom:12px;}
.duel-room[data-phase="playing"] .duel-room-heading h1 {font-size:22px;}
.duel-room[data-phase="playing"] .duel-player {grid-template-columns:30px minmax(0,1fr) auto;gap:9px;padding:12px;}
.duel-room[data-phase="playing"] .duel-player-avatar {width:30px;height:30px;border-radius:10px;}
.duel-room[data-phase="playing"] .duel-player-avatar svg {width:20px;height:20px;}
.duel-room[data-phase="playing"] .duel-player :is(.duel-small-label,p) {display:none;}
.duel-room[data-phase="playing"] .duel-player-progress {grid-column:auto;margin:0;}
.duel-room[data-phase="playing"] .duel-player-steps {margin-top:1px;height:3px;}
.duel-room[data-phase="finished"] .duel-player-grid {display:none;}
.duel-review {scroll-margin-top:20px;}
.duel-room-footer {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:22px;color:var(--muted);font-size:11px;line-height:1.7;}
.duel-page .duel-leave {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;box-shadow:none;}
.duel-leave svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
/* A small gateway beside the existing daily challenge; its question flow is unchanged. */
.duel-friend-entry {display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:760px;margin:28px auto 0;padding:19px 22px;border:1px solid #ffffff40;border-radius:20px;background:#ffffff0d;color:#fff;text-decoration:none;}
.duel-friend-entry > span {min-width:0;}
.duel-friend-entry strong {display:block;font-size:18px;line-height:1.5;color:#fff;}
.duel-friend-entry small {display:block;margin-top:3px;font-size:12px;line-height:1.7;color:#ffffffcc;}
.duel-friend-entry > b {display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;}
.duel-friend-entry > b > img {display:block;width:52px;height:52px;object-fit:contain;}
.duel-friend-entry:focus-visible {outline:3px solid #fff;outline-offset:4px;}
@media(hover:hover) {.duel-page .duel-button--primary:not(:disabled):hover {background:var(--duel-deep);border-color:var(--duel-deep);}.duel-page :is(.duel-button--secondary,.duel-choice):not(:disabled):hover {border-color:var(--duel-accent);}.duel-flow-card:hover {border-color:var(--choice-color);transform:translateY(-3px);}.duel-friend-entry:hover {background:#ffffff18;}}
@media(max-width:620px) {
  .duel-page {padding-block:16px 26px;}
  .duel-page-heading {margin-bottom:14px;}
  .duel-page-heading p {font-size:13px;}
  .duel-arena-mark {gap:10px;margin-bottom:10px;font-size:23px;}
  .duel-arena-mark b {width:36px;height:36px;border-radius:11px;}
  .duel-game-facts {margin-top:10px;font-size:11px;}
  .duel-game-facts b {font-size:13px;}
  .duel-card-index {top:10px;inset-inline-start:16px;font-size:9px;}
  .duel-subject-picks {grid-template-columns:repeat(3,minmax(0,1fr));}
  .duel-page .duel-pick {min-height:44px;padding:8px 6px;font-size:12px;}
  .duel-subject-picks .duel-pick {min-height:65px;font-size:11px;}
  .duel-profile-options {gap:10px;}
  .duel-segment-options span {min-height:44px;}
  .duel-segment-field legend {font-size:12px;margin-bottom:5px;}
  .duel-room[data-phase="playing"] .duel-player {grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:10px;}
  .duel-room[data-phase="playing"] .duel-player-avatar {display:none;}
  .duel-room[data-phase="playing"] .duel-player h2 {font-size:12px;}
  .duel-room[data-phase="playing"] .duel-player-progress {font-size:11px;}
  .duel-flow-nav {grid-template-columns:auto 1fr auto;gap:7px;margin-bottom:12px;}
  .duel-flow-steps {justify-content:center;gap:10px;}
  .duel-flow-steps li {gap:0;}
  .duel-flow-steps li > span {position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  .duel-flow-steps b {width:24px;height:24px;border-radius:8px;font-size:9px;}
  .duel-flow-back,.duel-flow-language {font-size:11px;}
  .duel-flow-back svg {width:16px;height:16px;}
  .duel-flow-heading {margin-bottom:17px;}
  .duel-flow-heading h1 {font-size:26px;}
  .duel-flow-heading p {margin-top:5px;font-size:12px;}
  .duel-choice-grid {grid-template-columns:minmax(0,1fr);gap:12px;}
  .duel-flow-card {flex-direction:row;justify-content:flex-start;gap:16px;min-height:150px;padding:24px 18px;border-radius:23px;}
  .duel-flow-card::before {inset:auto -40px -95px auto;width:200px;height:200px;}
  .duel-language-glyph {flex:0 0 66px;min-width:66px;height:75px;font-size:62px;}
  .duel-flow-card--english .duel-language-glyph {font-size:52px;}
  .duel-flow-card-copy {gap:5px;text-align:start;padding-inline-end:12px;}
  .duel-flow-card-copy strong {font-size:22px;line-height:1.35;}
  .duel-flow-card-copy small {font-size:11px;line-height:1.6;}
  .duel-mode-art {flex:0 0 85px;width:85px;height:72px;}
  .duel-mode-grid .duel-flow-card {gap:13px;}
  .duel-mode-grid .duel-flow-card-copy {gap:6px;}
  .duel-mode-grid .duel-choice-kicker {font-size:9px;letter-spacing:.04em;}
  .duel-mode-grid .duel-flow-card-copy strong {font-size:20px;line-height:1.4;}
  .duel-mode-grid .duel-flow-card-copy small {font-size:12px;line-height:1.7;}
  .duel-guide {margin-top:20px;border-radius:17px;}
  .duel-guide > summary {gap:10px;padding:13px;min-height:68px;}
  .duel-guide-summary strong {font-size:14px;}
  .duel-guide-summary small {font-size:10px;}
  .duel-guide-content {padding:0 14px 15px;}
  .duel-guide-steps {grid-template-columns:minmax(0,1fr);gap:18px;margin-block:18px;}
  .duel-guide-steps h2 {font-size:14px;}
  .duel-guide-dialog {border-radius:17px;}
  .duel-guide-dialog > header {padding:13px;}
  .duel-page .duel-guide-dialog h2 {font-size:16px;}
  .duel-page .duel-guide-video-note {padding:10px 13px;}
  .duel-flow-card-arrow {inset-inline-end:13px;bottom:12px;width:25px;height:25px;border-radius:9px;}
  .duel-flow-card-arrow svg {width:15px;height:15px;}
  .duel-panel {padding:17px;border-radius:19px;}
  .duel-panel h2 {font-size:19px;}
  .duel-form {margin-top:18px;gap:13px;}
  .duel-form-fields {grid-template-columns:minmax(0,1fr);gap:12px;}
  .duel-page .duel-form :is(input,select) {min-height:44px;padding:9px 11px;font-size:16px;}
  .duel-form label {gap:5px;font-size:12px;}
  .duel-page .duel-form .duel-duration input {min-height:44px;}
  .duel-duration-options label > span {min-height:44px;padding:7px 6px;}
  .duel-duration-options b {font-size:18px;}
  .duel-duration-note {line-height:1.6;}
  .duel-panel-icon {width:38px;height:38px;flex-basis:38px;border-radius:12px;}
  .duel-panel-title {gap:10px;}
  .duel-page .duel-button {min-height:44px;padding:10px 12px;font-size:13px;}
  .duel-active-room {gap:8px;margin-bottom:12px;padding:12px 14px;font-size:11px;}
  .duel-footnote {margin-top:14px!important;font-size:10px;}
  .duel-room-heading {gap:10px;margin-bottom:14px;}
  .duel-room-heading h1 {font-size:21px;}
  .duel-room-meta {width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  .duel-meta-chip {height:32px;padding:5px 7px;font-size:11px;}
  .duel-invite {gap:10px;padding:12px 13px;margin-bottom:12px;border-radius:15px;}
  .duel-invite strong {font-size:18px;letter-spacing:.1em;}
  .duel-invite-actions {gap:6px;}
  .duel-invite .duel-button {padding:8px 10px;font-size:11px;gap:6px;}
  .duel-invite .duel-button svg {width:17px;height:17px;flex-basis:17px;}
  .duel-invite .duel-copy-button {width:44px;padding:0;}
  .duel-copy-button > span {display:none;}
  .duel-copy-status {font-size:11px;}
  .duel-player-grid {gap:12px;margin-bottom:13px;}
  .duel-player {grid-template-columns:32px minmax(0,1fr);gap:7px;padding:11px;border-radius:15px;}
  .duel-player-avatar {width:32px;height:32px;border-radius:10px;font-size:15px;}
  .duel-player-avatar svg {width:22px;height:22px;}
  .duel-player-avatar > span {min-width:17px;height:17px;font-size:8px;inset-inline-end:-4px;bottom:-4px;border-width:1.5px;}
  .duel-match-vs {width:24px;height:24px;font-size:8px;}
  .duel-player h2 {font-size:13px;line-height:1.4;}
  .duel-small-label {font-size:9px;}
  .duel-player-progress {grid-column:2;font-size:12px;margin-top:1px;}
  .duel-player p {font-size:10px;}
  .duel-stage {padding-block:21px;}
  .duel-stage-symbol {width:49px;height:49px;border-radius:17px;margin-bottom:11px;}
  .duel-stage-symbol svg {width:27px;height:27px;}
  .duel-stage .duel-button {margin-top:16px;}
  .duel-round-bar {gap:10px;padding:12px 13px;border-radius:17px;}
  .duel-round-steps {gap:7px;}
  .duel-round-steps li {width:23px;height:23px;font-size:10px;border-radius:8px;}
  .duel-round-steps li:not(:last-child)::after {top:10px;inset-inline-end:-7px;width:6px;}
  .duel-clock {min-width:107px;padding:8px 10px 11px;gap:7px;border-radius:12px;}
  .duel-clock > svg {width:22px;height:22px;flex-basis:22px;}
  .duel-timer {font-size:24px;}
  .duel-question h2 {font-size:20px;line-height:1.6;}
  .duel-choices {grid-template-columns:minmax(0,1fr);gap:9px;margin-top:18px;}
  .duel-page .duel-choice {min-height:52px;padding:10px 12px;gap:10px;font-size:14px;border-radius:12px;}
  .duel-page .duel-answer-note {font-size:10px;}
  .duel-result-hero h2 {font-size:25px;}
  .duel-result-scores {gap:12px;margin-top:18px;}
  .duel-result-scores > div {padding:13px 8px;border-radius:15px;}
  .duel-result-scores strong {font-size:34px;}
  .duel-result-scores > div > span {font-size:12px;}
  .duel-review {padding:0 16px;}
  .duel-review-answers {grid-template-columns:minmax(0,1fr);gap:8px;}
  .duel-review-item h3 {font-size:16px;}
  .duel-room-footer {gap:7px;margin-top:16px;}
  .duel-friend-entry {margin-top:20px;padding:15px 16px;gap:13px;border-radius:16px;}
  .duel-friend-entry strong {font-size:16px;}.duel-friend-entry small {font-size:11px;}
}
.duel-invite-entry {max-width:600px;margin-inline:auto;}
.duel-invite-entry .duel-form {max-width:360px;margin-inline:auto;}
.duel-invite-alternative {display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:18px;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:4px;}
@media (prefers-reduced-motion:no-preference) {
  .duel-choice-grid {animation:duel-enter .22s ease-out both;}
  .duel-pick,.duel-choice {transition:transform .15s ease,border-color .15s ease;}
  .duel-page :is(.duel-pick,.duel-choice,.duel-button):not(:disabled):active {transform:scale(.98);}
  .duel-flow-card:active {transform:scale(.985);}
}
@keyframes duel-enter {from {opacity:.6;transform:translateY(7px);}to {opacity:1;transform:translateY(0);}}
@media(prefers-reduced-motion:reduce) {.duel-page .duel-button,.duel-flow-card {transition:none;}.duel-flow-card:hover {transform:none;}}
