/* Groundhopper's paper canvas, timetable, participant cards and hard shadows. */
html:has(.kd), body:has(.kd), body.in-match:has(.kd) #play#play { background:#f3ecd4!important; color:#10100e; }
body:has(.kd)::before { display:none!important; }
body.in-match:has(.kd) #play.view { padding:0!important; min-height:100dvh!important; }
body.in-match #game-stage#game-stage:has(.kd) { width:100%; max-width:520px; min-width:0; margin:auto; padding:0; }
body.in-match #game-stage#game-stage#game-stage .panel.kd {
  --kd-paper:#f3ecd4; --kd-card:#fff8e5; --kd-ink:#10100e; --kd-yellow:#ffda32; --kd-lilac:#d8c6ed;
  --kd-head:"KK Head",Bangers,Impact,sans-serif; --kd-body:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  position:relative; isolation:isolate; display:flex; flex-direction:column; gap:11px; width:100%; height:100dvh; min-height:0;
  padding:calc(env(safe-area-inset-top,0px) + 14px) max(16px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 16px) max(16px,env(safe-area-inset-left,0px));
  margin:0; border:0!important; border-radius:0; background:#f3ecd4!important; background-image:none!important; box-shadow:none;
  color:var(--kd-ink)!important; font:500 14px/1.3 var(--kd-body); animation:none!important; overflow:hidden;
}
.kd, .kd * { box-sizing:border-box; }
.kd::before { content:""; position:absolute; inset:0 auto auto 0; width:110px; height:100px; z-index:-1; background:radial-gradient(#10100e .65px,transparent 1px) 0 0/7px 7px; opacity:.16; mask-image:linear-gradient(140deg,#000,transparent 75%); }
.kd h1,.kd h2,.kd p { margin:0; }
.kd button { color:var(--kd-ink); cursor:pointer; font-family:inherit; touch-action:manipulation; }
.kd button:disabled { cursor:default; opacity:1; }
.kd button:focus-visible { outline:3px solid #6f4a96; outline-offset:3px; }
.kd .kd-header { display:grid; grid-template-columns:44px minmax(0,1fr) 59px; gap:9px; align-items:center; flex:none; }
.kd .kd-header h1 { font:400 clamp(24px,6.6vw,33px)/1 var(--kd-head)!important; color:var(--kd-ink)!important; text-align:center; text-transform:uppercase; white-space:nowrap; letter-spacing:0!important; text-shadow:none!important; }
.kd .kd-icon { display:grid; place-items:center; width:44px; height:44px; padding:10px; border:1.5px solid var(--kd-ink); border-radius:10px; background:var(--kd-card); box-shadow:2px 3px 0 var(--kd-ink); }
.kd-icon svg { width:23px; height:23px; }
.kd .kd-counter { display:grid; justify-items:center; gap:2px; padding:5px 6px; border:1.5px solid var(--kd-ink); border-radius:9px; background:var(--kd-lilac); box-shadow:2px 3px 0 var(--kd-ink); white-space:nowrap; }
.kd-counter b { font:800 14px/1.1 var(--kd-body); }
.kd-counter small { font:750 8px/1 var(--kd-body); letter-spacing:.05em; }

/* The question uses the same dark board and readable body face as Groundhopper. */
.kd .kd-question { flex:none; position:relative; padding:9px 12px 10px; border:2px solid var(--kd-ink); border-radius:12px; background:#252b28; color:var(--kd-card); box-shadow:2px 3px 0 var(--kd-ink); }
.kd-board-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.kd .kd-theme { font:400 18px/1 var(--kd-head); color:var(--kd-yellow); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kd .kd-clock { flex:none; min-width:46px; text-align:center; padding:4px 6px; border:1px solid var(--kd-ink); border-radius:6px; background:var(--kd-yellow); color:var(--kd-ink); font:800 12px/1 var(--kd-body); font-variant-numeric:tabular-nums; white-space:nowrap; }
.kd-clock.is-low { background:#ffab92; }
.kd .kd-question h2 { font:750 clamp(17px,4.8vw,22px)/1.2 var(--kd-body)!important; color:var(--kd-card)!important; letter-spacing:0!important; text-transform:none!important; text-shadow:none!important; text-wrap:pretty; overflow-wrap:anywhere; }
.kd .kd-context { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:5px; font:500 10px/1.2 var(--kd-body); color:#d5d4c7; }
.kd .kd-timebar { height:4px; margin-top:9px; border-radius:3px; background:#545a52; overflow:hidden; }
.kd-timebar i { display:block; width:100%; height:100%; background:var(--kd-lilac); transform-origin:left; }

/* A bounded comparison arena replaces the two oversized billboards. */
.kd .kd-arena { position:relative; flex:1 1 0; min-height:0; display:flex; flex-direction:column; gap:11px; padding:11px 10px 12px; border:1.5px solid var(--kd-ink); border-radius:15px; background:#e9e0f0; box-shadow:3px 4px 0 var(--kd-ink); overflow:hidden; }
.kd-arena::before { content:""; position:absolute; inset:0; background:radial-gradient(#6f4a96 .65px,transparent 1px) 0 0/7px 7px; opacity:.09; pointer-events:none; }
.kd-arena-caption { position:relative; display:flex; align-items:center; justify-content:space-between; flex:none; gap:6px; font:400 15px/1 var(--kd-head); }
.kd-arena-caption>b { font:800 18px/1 var(--kd-body); }
.kd .kd-comparison { position:relative; flex:1; min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:center; padding:1px 3px 5px 0; }
.kd .kd-card { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:15px; width:100%; height:min(100%,350px); min-width:0; min-height:0; padding:12px 10px; border:1.5px solid var(--kd-ink); border-radius:13px; background:var(--kd-card); box-shadow:2px 3px 0 var(--kd-ink); text-align:center; }
.kd-card:active:enabled { transform:translate(1px,2px); box-shadow:1px 1px 0 var(--kd-ink); }
.kd .kd-card-head { display:flex; align-items:center; align-self:stretch; justify-content:space-between; gap:4px; font:400 14px/1 var(--kd-head); }
.kd-card-head i { display:grid; place-items:center; flex:none; width:24px; height:27px; border:1px solid var(--kd-ink); border-radius:5px; background:var(--kd-yellow); font:400 20px/1 var(--kd-head); font-style:normal; }
.kd-card:nth-child(2) .kd-card-head i { background:var(--kd-lilac); }
.kd .kd-card>strong { display:block; width:100%; margin:auto 0 0; font:800 clamp(16px,4.7vw,22px)/1.16 var(--kd-body)!important; color:var(--kd-ink)!important; text-transform:none!important; text-shadow:none!important; letter-spacing:-.02em; overflow-wrap:anywhere; text-wrap:balance; }
.kd .kd-value { display:grid; align-content:center; gap:4px; width:100%; min-height:74px; padding:10px 4px; border:1.5px solid var(--kd-ink); border-radius:10px; background:#ffe578; color:var(--kd-ink); font-variant-numeric:tabular-nums; }
.kd .kd-value>b { display:block; font:850 clamp(22px,6.4vw,36px)/1.03 var(--kd-body); letter-spacing:-.04em; overflow-wrap:anywhere; }
.kd .kd-value>small { display:block; font:650 10px/1.1 var(--kd-body); }
.kd-card:nth-child(2):not(.is-correct):not(.is-wrong) .kd-value { background:#f0e9f7; border-style:dashed; }
.kd-pick-label { margin-bottom:auto; font:400 13px/1 var(--kd-head); color:#625e50; }
.kd .kd-versus { position:absolute; left:50%; top:50%; z-index:1; display:grid; place-items:center; transform:translate(-50%,-50%) rotate(-7deg); width:32px; height:32px; border:1.5px solid var(--kd-ink); border-radius:50%; background:var(--kd-ink); color:var(--kd-card); font:400 19px/1 var(--kd-head); pointer-events:none; }
.kd .kd-card.is-selected:not(.is-correct):not(.is-wrong) { background:#fff1b1; box-shadow:2px 3px 0 var(--kd-ink),inset 0 0 0 2px var(--kd-yellow); }
.kd .kd-card.is-correct { background:#e6efd9; }
.kd .kd-card.is-correct .kd-value { background:#b6d99b; }
.kd .kd-card.is-wrong { background:#f4e3dc; }
.kd .kd-card.is-wrong .kd-value { background:#f2b69f; }
.kd .kd-stamp { padding:3px 7px; border:1.5px solid currentColor; border-radius:4px; transform:rotate(-4deg); font:400 20px/1 var(--kd-head); color:#305e2b; }
.kd .is-wrong .kd-stamp { color:#a03c2c; }
.kd .kd-picks { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:5px; width:100%; min-height:36px; margin-bottom:auto; }
.kd-picks>span { display:grid; justify-items:center; gap:2px; max-width:45%; }
.kd-picks .kd-person { width:23px; height:23px; }
.kd-picks small { max-width:100%; font:650 8px/1 var(--kd-body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.kd .kd-status { flex:none; display:grid; justify-items:center; align-content:center; gap:3px; min-height:38px; text-align:center; }
.kd .kd-status>b { font:400 21px/1 var(--kd-head); }
.kd .kd-status>span { font:550 11px/1.2 var(--kd-body); color:#625e50; }
.kd .kd-status.is-good>b { color:#305e2b; }
.kd .kd-status.is-bad>b { color:#ae3827; }
.kd .kd-footer { display:flex; flex:none; justify-content:center; align-items:center; gap:8px; min-height:14px; font:650 10px/1.15 var(--kd-body); color:#625e50; text-align:center; }
.kd-footer>b { color:#ae3827; font-weight:800; }

/* Participant panels mirror Groundhopper's 2×2 scorecards. */
.kd .kd-crew { flex:none; min-width:0; }
.kd .kd-crew h2 { display:flex; justify-content:space-between; align-items:center; margin:0 0 6px; font:400 17px/1 var(--kd-head)!important; color:var(--kd-ink)!important; letter-spacing:0!important; }
.kd-crew h2 small { font:550 10px/1 var(--kd-body); color:#625e50; }
.kd .kd-scoreboard { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.kd-scoreboard[data-player-count="1"] { grid-template-columns:1fr; }
.kd .kd-player { display:grid; grid-template-columns:32px minmax(0,1fr) 20px; align-items:center; gap:7px; min-width:0; min-height:55px; padding:7px 8px; border:1.5px solid var(--kd-ink); border-radius:11px; background:var(--player-tint,var(--kd-card)); }
.kd .kd-player.is-out { background:#e3ddcf; }
.kd-player.is-out .kd-person { filter:grayscale(.8); }
.kd-player-copy { display:grid; gap:4px; min-width:0; }
.kd-player-copy>b { font:750 12px/1.1 var(--kd-body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kd-player-copy>small { font:650 10px/1 var(--kd-body); white-space:nowrap; }
.kd .kd-cards-status { display:flex; justify-content:center; min-width:20px; font:800 14px/1 var(--kd-body); }
.kd-cards-status i { display:block; width:13px; height:20px; border:1px solid var(--kd-ink); border-radius:2px; transform:rotate(-8deg); }
.kd-yellow { background:var(--kd-yellow); }
.kd-red { margin-left:-7px; margin-top:3px; transform:rotate(8deg)!important; background:#d7191c; }
.kd .kd-person { display:inline-grid; place-items:center; flex:none; width:32px; height:32px; border:1.5px solid var(--kd-ink); border-radius:50%; overflow:hidden; background:var(--player-colour,var(--kd-yellow)); }
.kd-person>.kk-avatar { display:block; width:100%; height:100%; border:0; border-radius:0; margin:0; padding:0; background:var(--player-colour)!important; }
.kd-person .kk-avatar-art { display:block; width:100%; height:100%; max-width:none; margin:0; transform:none; object-fit:cover; }
.kd-initials { font:800 11px/1 var(--kd-body); font-style:normal; }

.kd .kd-intro { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; }
.kd .kd-ticket { display:inline-block; padding:5px 11px; border:1.5px solid var(--kd-ink); border-radius:5px; background:var(--kd-lilac); box-shadow:2px 2px 0 var(--kd-ink); transform:rotate(-3deg); font:400 19px/1 var(--kd-head); }
.kd-intro-copy { text-align:center; }
.kd .kd-intro-copy h2 { font:400 clamp(34px,10vw,46px)/1 var(--kd-head)!important; color:var(--kd-ink)!important; letter-spacing:0!important; }
.kd-intro-copy p { margin-top:7px; font:550 12px/1.25 var(--kd-body); color:#625e50; }
.kd .kd-demo { position:relative; display:flex; gap:17px; width:100%; justify-content:center; padding:18px 16px; border:1.5px solid var(--kd-ink); border-radius:15px; background:#e9e0f0; box-shadow:3px 4px 0 var(--kd-ink); }
.kd-demo>div { display:grid; align-content:center; gap:12px; width:44%; padding:11px 8px; border:1.5px solid var(--kd-ink); border-radius:10px; background:var(--kd-card); text-align:center; box-shadow:2px 3px 0 var(--kd-ink); }
.kd-demo>div:first-child { transform:rotate(-4deg); }
.kd-demo>div:last-child { transform:rotate(4deg); }
.kd-demo>div>span { font:400 14px/1 var(--kd-head); }
.kd-demo>div>b { font:850 40px/1 var(--kd-body); }
.kd-demo small { display:block; margin-top:3px; font:650 11px/1 var(--kd-body); }
.kd-demo>i { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) rotate(-5deg); display:grid; place-items:center; width:34px; height:34px; border:1.5px solid var(--kd-ink); border-radius:50%; background:var(--kd-yellow); font:400 21px/1 var(--kd-head); font-style:normal; }
.kd-intro ol { display:grid; gap:7px; list-style:none; margin:0; padding:0; width:100%; }
.kd-intro li { display:flex; align-items:center; gap:9px; padding:8px 10px; border:1.5px solid var(--kd-ink); border-radius:9px; background:var(--kd-card); font:650 12px/1.2 var(--kd-body); }
.kd-intro li>b { display:grid; place-items:center; flex:none; width:21px; height:21px; border:1px solid var(--kd-ink); border-radius:50%; background:var(--kd-yellow); font:800 12px/1 var(--kd-body); }
.kd-intro-crew { display:flex; gap:10px; justify-content:center; }
.kd-intro-crew .kd-person { width:37px; height:37px; }
.kd .kd-ready { display:grid; gap:7px; flex:none; margin-top:auto; }
.kd-ready>p { font:550 11px/1.2 var(--kd-body); color:#625e50; text-align:center; }
.kd .kd-primary { display:flex; align-items:center; justify-content:center; flex:none; width:100%; min-height:49px; padding:10px 12px; border:1.5px solid var(--kd-ink); border-radius:12px; background:var(--kd-yellow); box-shadow:3px 4px 0 var(--kd-ink); font:400 28px/1.05 var(--kd-head); }
.kd .kd-primary:disabled { background:#e6ddbd; color:#625e50; box-shadow:1px 2px 0 var(--kd-ink); }

.kd .kd-result { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; gap:13px; }
.kd .kd-winner { display:grid; justify-items:center; gap:11px; padding:12px 13px; border:1.5px solid var(--kd-ink); border-radius:14px; background:var(--kd-yellow); box-shadow:3px 4px 0 var(--kd-ink); }
.kd-winner-label { display:flex; align-items:center; gap:7px; font:400 25px/1 var(--kd-head); }
.kd-winner-label>svg { width:30px; height:24px; }
.kd-winner-people { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 14px; width:100%; }
.kd-winner-people>span { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
.kd-winner[data-winner-count="3"] .kd-winner-people,.kd-winner[data-winner-count="4"] .kd-winner-people { display:grid; grid-template-columns:1fr 1fr; }
.kd-winner .kd-person { width:43px; height:43px; }
.kd-winner-people strong { min-width:0; font:750 16px/1.15 var(--kd-body); overflow-wrap:anywhere; }
.kd-winner-score { display:flex; align-items:center; gap:9px; }
.kd-winner-score>b { font:400 43px/1 var(--kd-head); }
.kd-winner-score>span { font:650 11px/1.2 var(--kd-body); }
.kd .kd-results { display:grid; gap:7px; }
.kd-results>div { display:flex; align-items:center; gap:9px; min-height:43px; padding:5px 10px; border:1.3px solid var(--kd-ink); border-radius:11px; background:var(--kd-card); }
.kd-results>.is-winner { background:#fff2b2; }
.kd-results .kd-rank { width:14px; font:400 25px/1 var(--kd-head); text-align:center; }
.kd-results .kd-person { width:28px; height:28px; }
.kd-results>div>span:not(.kd-person) { flex:1; min-width:0; font:750 12px/1.15 var(--kd-body); overflow-wrap:anywhere; }
.kd-results strong { display:grid; justify-items:end; gap:1px; font:400 24px/1 var(--kd-head); }
.kd-results strong small { font:550 9px/1 var(--kd-body); }
.kd .kd-record { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 11px; border:1px dashed var(--kd-ink); border-radius:8px; background:var(--kd-card); }
.kd-record>span { font:400 16px/1 var(--kd-head); }
.kd-record>b { font:400 24px/1 var(--kd-head); white-space:nowrap; }
.kd-record small { font:600 10px/1 var(--kd-body); }
.kd-end-note { text-align:center; font:500 10px/1.2 var(--kd-body); color:#625e50; }
.kd .kd-final-actions { display:grid; flex:none; gap:8px; }
.kd-final-actions p { text-align:center; font-size:12px; }

/* Original CSS badge, no football portraits or club logos. */
.kd-mode-art { position:relative; display:flex; align-items:center; gap:5px; transform:rotate(-6deg); }
.kd-mode-art>b { display:grid; place-items:center; width:44px; height:61px; border:1.5px solid #10100e; border-radius:8px; background:#fff8e5; box-shadow:2px 3px 0 #10100e; font:400 37px/1 'KK Head',sans-serif; }
.kd-mode-art>b+b { transform:rotate(12deg); background:#d8c6ed; }
.lobby-mode-group[data-mode-key="kopfballduell"] .lobby-mode-card { background:#e8d9f2!important; }

@keyframes kd-new-card { from{opacity:0;transform:translateX(28px) rotate(3deg)}to{opacity:1;transform:none} }
@keyframes kd-carry-card { from{transform:translateX(calc(100% + 12px))}to{transform:none} }
@keyframes kd-new-topic { from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:none} }
.kd[data-kd-phase="kd_playing"] .kd-card:nth-child(2) { animation:kd-new-card .3s ease-out both; }
.kd[data-kd-phase="kd_playing"][data-kd-carry="right"] .kd-card:first-child { animation:kd-carry-card .35s ease-out both; }
.kd .kd-question.is-topic { animation:kd-new-topic .3s ease-out; box-shadow:2px 3px 0 #9c79bd; }

@media(max-width:360px) {
  body.in-match #game-stage#game-stage#game-stage .panel.kd { padding-inline:12px; gap:8px; }
  .kd .kd-header { grid-template-columns:40px minmax(0,1fr) 51px; gap:6px; }
  .kd .kd-header h1 { font-size:23px!important; }
  .kd .kd-counter {padding-inline:4px}.kd .kd-counter b { font-size:12px; }
  .kd .kd-comparison { grid-template-columns:1fr; grid-template-rows:repeat(2,minmax(0,1fr)); gap:9px; }
  .kd .kd-card { display:grid; grid-template-columns:minmax(0,1fr) 90px; grid-template-rows:auto minmax(0,1fr) auto; gap:3px 10px; height:100%; padding:7px 9px; border-radius:10px; }
  .kd .kd-card-head { grid-column:1; font-size:11px; justify-content:flex-start; gap:6px; }
  .kd-card-head i { width:18px; height:20px; font-size:16px; }
  .kd .kd-card>strong { grid-column:1; grid-row:2; margin:0; align-self:center; font-size:16px!important; text-align:left; }
  .kd .kd-value { grid-column:2; grid-row:1/4; min-height:58px; padding:7px 3px; }
  .kd .kd-value>b { font-size:23px; }
  .kd .kd-value>small { font-size:9px; }
  .kd .kd-pick-label { grid-column:1; grid-row:3; margin:0; text-align:left; font-size:10px; }
  .kd .kd-stamp { position:absolute; right:6px; top:-7px; font-size:13px; padding:2px 4px; }
  .kd .kd-picks { grid-column:1; grid-row:3; justify-content:flex-start; gap:4px; margin:0; min-height:0; flex-wrap:nowrap; }
  .kd-picks>span { max-width:22%; }
  .kd-picks .kd-person { width:18px; height:18px; }
  .kd-picks small { display:none; }
  .kd .kd-versus { width:25px; height:25px; font-size:15px; }
  .kd .kd-arena { padding:8px 8px 9px; gap:7px; }
  .kd .kd-arena-caption { font-size:13px; }
  .kd .kd-status>span { font-size:10px; }
  @keyframes kd-carry-card { from{transform:translateY(calc(100% + 9px))}to{transform:none} }
}
@media(max-height:700px) {
  body.in-match #game-stage#game-stage#game-stage .panel.kd { gap:7px; padding-top:calc(env(safe-area-inset-top,0px) + 9px); padding-bottom:calc(env(safe-area-inset-bottom,0px) + 10px); }
  .kd .kd-header { gap:6px; }
  .kd .kd-question { padding:7px 9px 8px; }
  .kd .kd-question h2 { font-size:16px!important; line-height:1.16!important; }
  .kd .kd-theme { font-size:15px; }
  .kd .kd-context { margin-top:4px; font-size:9px; -webkit-line-clamp:1; }
  .kd .kd-board-top { margin-bottom:5px; }
  .kd .kd-timebar { margin-top:6px; height:3px; }
  .kd .kd-card { gap:7px; }
  .kd .kd-status { gap:2px; min-height:32px; }
  .kd .kd-status>b { font-size:18px; }
  .kd .kd-crew h2 { font-size:15px!important; margin-bottom:5px; }
  .kd .kd-scoreboard { gap:5px; }
  .kd .kd-player { min-height:43px; padding:5px 6px; grid-template-columns:26px minmax(0,1fr) 16px; gap:5px; }
  .kd-player-copy>b { font-size:11px; }
  .kd-player-copy>small { font-size:9px; }
  .kd .kd-player .kd-person { width:26px; height:26px; }
  .kd .kd-cards-status i { width:11px; height:17px; }
  .kd .kd-footer { font-size:9px; min-height:12px; }
  .kd .kd-intro { gap:10px; }
  .kd .kd-intro-copy h2 { font-size:34px!important; }
  .kd-intro-copy p { margin-top:4px; font-size:11px; }
  .kd .kd-demo { padding:12px 14px; }
  .kd-demo>div { gap:7px; padding:8px; }
  .kd-demo>div>b { font-size:31px; }
  .kd-intro ol { gap:5px; }
  .kd-intro li { padding:6px 9px; font-size:11px; }
  .kd-intro-crew .kd-person { width:30px; height:30px; }
  .kd .kd-primary { min-height:44px; font-size:25px; padding-block:8px; }
  .kd .kd-result { gap:8px; }
  .kd .kd-winner { gap:7px; padding:8px 10px; }
  .kd-winner-label { font-size:21px; }
  .kd-winner .kd-person { width:32px; height:32px; }
  .kd-winner-people strong { font-size:12px; }
  .kd-winner-score>b { font-size:34px; }
  .kd .kd-results { gap:5px; }
  .kd-results>div { min-height:35px; padding:4px 8px; gap:7px; }
  .kd-results .kd-person { width:24px; height:24px; }
  .kd-results>div>span:not(.kd-person) { font-size:11px; }
  .kd-results strong { font-size:21px; }
  .kd .kd-record { padding:6px 9px; }
  .kd-record>span { font-size:14px; }
  .kd-record>b { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .kd *, .kd *::before { animation:none!important; transition:none!important; } }

/* Equal grid rows keep both values on one baseline, including unequal name lengths. */
.kd .kd-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;align-content:stretch;gap:12px}
.kd .kd-card>strong{margin:0;align-self:center}.kd .kd-pick-label{margin:0}
.kd[data-kd-phase="kd_reveal"] .kd-card{grid-template-rows:auto minmax(0,1fr) auto auto 70px;gap:8px}
.kd[data-kd-phase="kd_reveal"] .kd-picks{height:70px;margin:0;align-content:center}
.kd-arena-caption>b>svg{display:block;width:31px;height:20px}.kd-mode-art>b>svg{display:block;width:27px;height:34px}
@media(max-width:360px){
 .kd .kd-card,.kd[data-kd-phase="kd_reveal"] .kd-card{grid-template-rows:auto minmax(0,1fr) auto;gap:3px 10px}
 .kd[data-kd-phase="kd_reveal"] .kd-picks{height:auto;min-height:0;margin:0}
}

.kd .kd-picks>span{width:45%}
@media(max-width:360px){.kd .kd-picks>span{width:22%}}
.kd .kd-value{height:84px}
@media(max-width:360px){.kd .kd-value{height:auto}}

/* The question gets its own moment before the shared answer clock starts. */
.kd .kd-question.is-topic { flex:1 1 0; min-height:0; display:flex; flex-direction:column; justify-content:center; padding:24px; animation:kd-question-enter .35s ease-out; }
.kd .kd-question.is-topic h2 { font-size:clamp(25px,7vw,34px)!important; line-height:1.16!important; }
.kd .kd-question-stage { flex:0 0 auto; text-align:center; color:#5f5966; font:400 18px/1.2 var(--kd-head); letter-spacing:.03em; }
@keyframes kd-question-enter { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .kd .kd-question.is-topic { animation:none; } }

.kd .kd-question h2 em { color:#ffda32; font-style:normal; }
.kd .kd-arena { animation:kd-question-enter .3s ease-out; }
@media (prefers-reduced-motion:reduce) { .kd .kd-arena { animation:none; } }
