@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#101315;--surface:#191d20;--line:#303639;--muted:#9da5a8;--text:#f4f6ed;--mint:#c5ff73;--coral:#ff806a;font-family:'DM Sans',Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,.arena:focus-visible{outline:2px solid var(--mint);outline-offset:5px}button{transition:background .18s,transform .18s,color .18s}button:active:not(:disabled){transform:translateY(1px)}.shell{max-width:1360px;margin:auto;padding:0 54px}.masthead{height:92px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;color:var(--text);text-decoration:none;font-size:17px;font-weight:700;letter-spacing:-.6px}.brand-symbol{width:32px;height:32px;border:1px solid #4b5556;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:3px;font-size:16px;color:var(--mint)}.brand-symbol span{font-size:9px}.edition{font-size:12px;font-weight:500;letter-spacing:1.4px;color:var(--muted);margin-left:14px;padding-left:24px;border-left:1px solid var(--line)}.top-note{margin-left:auto;font-size:12px;letter-spacing:1.3px;color:var(--muted)}.icon-button{background:none;border:1px solid var(--line);border-radius:50%;width:40px;height:40px;color:var(--text);display:grid;place-items:center}.icon-button:hover{background:#2c3335}.icon-button svg{width:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.title-row{display:flex;justify-content:space-between;align-items:flex-end;padding:34px 0 28px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1.8px;color:var(--muted);margin-bottom:10px}.tiny-line{width:20px;height:2px;background:var(--mint)}h1{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-size:clamp(38px,4.6vw,66px);line-height:.95;letter-spacing:-.8px;font-weight:700;margin:0}h1 br{display:none}h1 span{color:var(--mint)}.title-row p{font-size:14px;line-height:1.7;margin:0;color:var(--muted)}.title-row strong{color:var(--text);font-weight:500}.game{border:1px solid #3a4143;border-radius:18px;overflow:hidden;background:var(--surface);box-shadow:0 20px 80px #0002}.scoreboard{display:flex;align-items:center;justify-content:space-between;height:116px;padding:20px 32px;border-bottom:1px solid var(--line)}.player{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.player-right{justify-content:flex-end;text-align:right}.avatar{width:60px;height:64px;border-radius:14px;flex-shrink:0;overflow:hidden;position:relative}.avatar img{width:100%;height:105%;object-fit:contain;object-position:bottom;position:absolute;bottom:-3px}.mint{background:#c5ff7318}.coral{background:#ff806a18}.country{font-size:11px;letter-spacing:1.5px;color:var(--muted);display:block}.country span{font-size:10px;letter-spacing:.3px;border:1px solid #495153;border-radius:3px;padding:1px 3px;margin:0 3px}h2{font-size:18px;line-height:1.5;font-weight:600;margin:2px 0}.player-role{font-size:10px;letter-spacing:1.3px;color:var(--mint)}.player-right .player-role{color:var(--coral)}.scores{display:flex;align-items:center;justify-content:center;gap:24px;min-width:200px;font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif}.scores>span{font-size:72px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;min-width:38px;text-align:center}.scores>span:first-child{color:var(--mint)}.scores>span:last-child{color:var(--coral)}.score-center{display:flex;flex-direction:column;align-items:center;gap:6px;font-family:'DM Sans',Arial,sans-serif}.score-center>span:first-child{font-size:12px;font-weight:700;color:#c5cece}.score-center>span:last-child{font-size:9px;letter-spacing:1.3px;color:var(--muted);white-space:nowrap}.arena{position:relative;height:min(45vw,430px);min-height:280px;background:radial-gradient(ellipse at 0% 50%,#c5ff7308,transparent 50%),radial-gradient(ellipse at 100% 50%,#ff806a08,transparent 50%),#151a1c;overflow:hidden;touch-action:none;isolation:isolate;cursor:crosshair}.arena:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#87949422 .7px,transparent .7px);background-size:20px 20px;pointer-events:none}.court-mid{position:absolute;top:22px;bottom:22px;left:50%;border-left:1px dashed #5b67644d}.court-circle{width:145px;height:145px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid #5b676426;border-radius:50%}.court-label{position:absolute;top:50%;transform:translateY(-50%);font-family:'Barlow Condensed',Impact,sans-serif;font-size:200px;font-weight:700;line-height:1;color:#c5ff7306;pointer-events:none}.court-label-left{left:11%}.court-label-right{right:11%;color:#ff806a07}canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.paddle{position:absolute;left:0;top:0;will-change:transform;width:88px;height:108px;pointer-events:none;z-index:2}.paddle img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 15px #c5ff7330) drop-shadow(0 8px 6px #0008)}.right-paddle img{filter:drop-shadow(0 0 15px #ff806a30) drop-shadow(0 8px 6px #0008)}.paddle.hit img{filter:drop-shadow(0 0 14px #fff9)}.overlay{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:#10171940;backdrop-filter:blur(3px);cursor:default}.overlay[hidden]{display:none}.start-panel{text-align:center;max-width:440px;padding:24px 30px}.panel-kicker{font-size:10px;color:var(--mint);letter-spacing:2.5px}.start-panel h3{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-weight:600;font-size:clamp(36px,4.5vw,58px);line-height:1;letter-spacing:-.5px;margin:15px 0}.start-panel p{color:#b9c1c0;font-size:14px;margin:0 0 25px}.play-button{background:var(--mint);border:0;border-radius:9px;padding:15px 24px;color:#1d2916;font-weight:700;font-size:15px;display:inline-flex;gap:36px;align-items:center;box-shadow:0 0 30px #c5ff7315}.play-button:hover{background:#d9ffa8;transform:translateY(-2px)}.play-button span{font-size:22px;line-height:18px}.start-tip{display:block;font-size:11px;color:#82908c;margin-top:12px}.court-corner{position:absolute;width:17px;height:17px;pointer-events:none;opacity:.65;z-index:5}.top-left{top:16px;left:16px;border-top:1px solid var(--mint);border-left:1px solid var(--mint)}.bottom-right{right:16px;bottom:16px;border-bottom:1px solid var(--coral);border-right:1px solid var(--coral)}.rally-counter{position:absolute;top:18px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:2px;color:var(--muted)}.rally-counter span{color:var(--text);margin-left:4px}.announcement{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--text);text-align:center;font-family:'Barlow Condensed',Impact,sans-serif;font-size:48px;letter-spacing:1px;z-index:3;pointer-events:none;text-shadow:0 4px 30px #000}.control-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 24px;border-top:1px solid var(--line)}.settings{display:flex;align-items:center;gap:22px}.mode-switch{display:flex;border:1px solid #3b4346;border-radius:8px;padding:3px;gap:2px}.mode-switch button{border:0;background:transparent;color:var(--muted);font-size:13px;padding:7px 17px;border-radius:5px;white-space:nowrap}.mode-switch .selected{background:#343c3e;color:var(--text)}.difficulty-label{color:var(--muted);font-size:13px;display:flex;gap:9px;align-items:center}select{background:transparent;color:#e0e7e4;border:0;padding:8px 4px;font-size:13px;cursor:pointer}select option{background:var(--surface)}.match-controls{display:flex;align-items:center;gap:24px}.text-button{color:#b4bebd;border:0;background:none;font-size:13px;display:flex;align-items:center;gap:6px;padding:7px 0}.text-button:hover:not(:disabled){color:var(--text)}.text-button span{font-size:19px;line-height:1}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 3px;color:var(--muted);font-size:12px}.instructions{display:flex;align-items:center;gap:15px}.instruction-label{font-size:10px;letter-spacing:1.3px;color:#d0d8d2}.instructions>span{white-space:nowrap}kbd{font-family:inherit;font-size:11px;display:inline-grid;place-items:center;min-width:22px;height:22px;border:1px solid #3f4749;border-radius:4px;color:#dce3df;margin-right:3px}.divider{height:15px;width:1px;background:var(--line)}.footer-note{font-size:12px;white-space:nowrap}.credits{text-align:center;font-size:10px;color:#818a8d;margin:5px 0 25px}.flash{animation:score-pop .3s ease-out}@keyframes score-pop{50%{transform:scale(1.18);text-shadow:0 0 25px currentColor}}@media(min-height:950px) and (min-width:900px){.title-row{padding-top:50px;padding-bottom:40px}.arena{height:480px}}@media(max-width:1000px){.shell{padding:0 28px}.top-note{display:none}.icon-button{margin-left:auto}.title-row h1{max-width:500px}.title-row p{font-size:12px}.scoreboard{padding:18px 24px}.avatar{width:48px;height:55px}.player{gap:10px}.scores{gap:15px;min-width:175px}h2{font-size:16px}.footer-note{display:none}.instructions{flex-wrap:wrap;gap:10px}h1 br{display:block}}@media(max-width:600px){.shell{padding:0 14px}.masthead{height:68px;gap:5px}.brand{font-size:14px;gap:9px}.brand-symbol{width:28px;height:28px}.edition{font-size:9px;padding-left:12px;margin-left:3px;letter-spacing:1px}.icon-button{height:34px;width:34px}.title-row{padding:24px 2px 21px;gap:12px}.title-row h1{font-size:39px}.eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:9px}.title-row p{font-size:11px;line-height:1.6;max-width:118px}.game{border-radius:13px}.scoreboard{height:91px;padding:12px 15px}.avatar{display:none}.player{flex:1}.country{font-size:9px;letter-spacing:1px}.country span{display:none}h2{font-size:13px;line-height:1.3;margin:6px 0}.player-role{font-size:8px;letter-spacing:1px}.scores{min-width:110px;gap:12px}.scores>span{font-size:52px;min-width:24px}.score-center>span:first-child{font-size:10px}.score-center>span:last-child{font-size:7px;letter-spacing:0}.arena{height:355px;min-height:0}.court-label{font-size:130px}.court-label-left{left:3%}.court-label-right{right:3%}.court-circle{width:110px;height:110px}.start-panel{padding:20px 8px;max-width:260px}.start-panel h3{font-size:39px}.start-panel p{font-size:12px;line-height:1.5;max-width:190px;margin:0 auto 23px}.play-button{font-size:14px;padding:14px 18px;gap:18px}.panel-kicker{font-size:9px}.control-bar{flex-wrap:wrap;padding:12px;gap:12px}.settings{gap:12px;flex:1}.mode-switch button{font-size:12px;padding:7px 11px}.difficulty-label{font-size:11px;gap:3px}select{font-size:12px;max-width:95px}.match-controls{width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:6px;gap:14px}.text-button{font-size:12px}footer{padding:17px 3px}.instructions{font-size:11px;gap:8px}.instruction-label{width:100%;font-size:9px}.credits{font-size:9px;line-height:1.6;padding:0 15px;margin-top:0}.announcement{font-size:32px}.rally-counter{font-size:9px}}@media(max-width:370px){.edition{display:none}.title-row h1{font-size:34px}.title-row p{max-width:105px}.scoreboard{padding:12px 10px}.scores{min-width:95px;gap:9px}h2{font-size:12px}.arena{height:330px}}@media(max-height:500px) and (orientation:landscape){.masthead{height:50px}.title-row{display:none}.scoreboard{height:70px}.scores>span{font-size:49px}.arena{height:230px}.shell{padding:0 20px}.game{margin-top:12px}.avatar{height:45px}.start-panel{padding:10px}.start-panel h3{font-size:32px;margin:10px 0}.start-panel p{margin-bottom:12px}.start-tip{display:none}.control-bar{padding:8px 16px}.credits{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Orientation changes the court, while faces and controls stay upright. */
.arena.portrait{background:radial-gradient(ellipse at 50% 100%,#c5ff7308,transparent 50%),radial-gradient(ellipse at 50% 0%,#ff806a08,transparent 50%),#151a1c}
.portrait .court-mid{top:50%;bottom:auto;left:18px;right:18px;border-left:0;border-top:1px dashed #5b67644d}
.portrait .court-label{left:50%;right:auto;transform:translate(-50%,-50%);font-size:130px}
.portrait .court-label-left{top:76%}.portrait .court-label-right{top:24%}
.portrait .rally-counter{top:50%;left:16px;transform:translateY(-50%);font-size:10px;letter-spacing:1px}
.portrait .top-left{top:auto;bottom:16px;border-top:0;border-bottom:1px solid var(--mint)}
.portrait .bottom-right{bottom:auto;top:16px;border-bottom:0;border-top:1px solid var(--coral)}
@media(orientation:portrait){
  .shell{padding:0 max(12px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right))}
  .masthead{height:56px}.title-row{display:none}.game{margin-top:8px}
  .arena{height:max(260px,calc(100svh - 300px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));min-height:0;max-height:850px}
  .scoreboard{height:80px;padding:10px 12px}.scores{min-width:100px;gap:9px}.scores>span{font-size:50px}
  .avatar{display:none}h2{font-size:14px}.player-role{font-size:10px}.score-center>span:last-child{font-size:10px;letter-spacing:0}
  .control-bar{padding:6px 10px;gap:4px;flex-wrap:wrap}.settings{width:100%;justify-content:space-between;gap:8px}
  .match-controls{width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:0}
  .mode-switch{padding:0}.mode-switch button{min-height:44px;padding:6px 12px;font-size:14px}
  .difficulty-label,select,.text-button{font-size:14px}select{min-height:44px;max-width:105px}.text-button{min-height:44px;padding:6px 4px}
  footer{padding:10px 0;font-size:12px}.instructions{gap:5px 10px;flex-wrap:wrap}.instruction-label{width:auto;font-size:12px}
  .instructions>span{white-space:normal}.footer-note,.credits{display:none}.icon-button{height:44px;width:44px}
  .start-panel{max-width:300px;padding:16px}.start-panel h3{font-size:40px}.start-panel p{font-size:14px;max-width:245px;margin-bottom:18px}
  .start-tip,.panel-kicker{font-size:12px}.start-tip{display:block}.country{font-size:10px}
}
@media(orientation:landscape) and (max-height:600px){
  .shell{padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left))}
  .masthead{height:44px;border:0}.brand-symbol{height:28px;width:28px}.icon-button{width:44px;height:44px}.top-note,.title-row,footer,.credits{display:none}
  .game{margin-top:4px;border-radius:12px}.scoreboard{height:60px;padding:6px 18px}.avatar{width:36px;height:43px}.player{gap:10px}
  h2{font-size:14px;margin:1px 0}.country{font-size:10px}.player-role{font-size:10px}.scores{gap:14px;min-width:145px}.scores>span{font-size:44px}.score-center{gap:2px}.score-center>span:last-child{font-size:10px;letter-spacing:0}
  .arena{height:max(140px,calc(100svh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));min-height:0}
  .control-bar{padding:4px 12px;gap:12px;flex-wrap:nowrap}.settings{gap:12px;flex:initial}.mode-switch{padding:0}.mode-switch button{font-size:14px;min-height:44px;padding:6px 12px}
  .difficulty-label,select,.text-button{font-size:14px}select{min-height:44px}.match-controls{width:auto;border:0;padding:0;gap:16px}.text-button{min-height:44px}
  .start-panel{max-width:100%;padding:8px 18px}.panel-kicker,.start-tip{display:none}.start-panel h3{font-size:28px;margin:0 0 6px}.start-panel h3 br{display:none}.start-panel p{font-size:14px;margin:0 0 8px;max-width:none}.play-button{min-height:44px;padding:10px 18px}
  .court-circle{width:100px;height:100px}.court-label{font-size:120px}.rally-counter{top:8px}
}

/* Choose the opponent before a match; the court keeps its full playing height. */
.computer-choice{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;color:var(--muted);margin:0 auto 14px}
.computer-choice select{border:1px solid #56605c;border-radius:8px;padding:9px 12px;min-height:44px;font-size:14px;max-width:none;background:#232b29;color:var(--text)}
.computer-choice[hidden]{display:none}
.start-panel p{margin-bottom:14px}
.hall{margin:12px 0 30px;padding:24px;border:1px solid #6a4933;border-radius:18px;background:radial-gradient(ellipse at 0 0,#ff782014,transparent 65%),#191d20}
.hall-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.hall-heading{display:flex;align-items:center;gap:16px;min-width:0}
.hall-kicker{font-size:12px;letter-spacing:1.5px;color:#efb88d}.hall h2{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-size:38px;line-height:1.1;margin:5px 0;color:#fff4de}
.hall-count{font-size:14px;white-space:nowrap;color:#ffd7a8;border:1px solid #715238;border-radius:30px;padding:8px 12px;font-variant-numeric:tabular-nums}
.hall-fire{display:flex;align-items:flex-end;gap:0;flex-shrink:0;filter:drop-shadow(0 0 12px #ff7b3244)}.hall-fire span{display:block;font-size:28px;transform-origin:50% 95%;animation:flame-dance 1.4s ease-in-out infinite alternate}.hall-fire span:nth-child(2){font-size:44px;animation-duration:1s;animation-delay:-.5s;margin:0 -10px}.hall-fire span:nth-child(3){animation-delay:-.8s;animation-duration:1.7s}
@keyframes flame-dance{0%{transform:translateY(2px) rotate(-7deg) scale(.94,1);filter:brightness(.95)}50%{transform:translateY(-3px) rotate(3deg) scale(1.04,1.1);filter:brightness(1.1)}100%{transform:translateY(0) rotate(7deg) scale(.96,1.06);filter:brightness(1)}}
.hall-note{font-size:13px;line-height:1.6;color:var(--muted);margin:14px 0 18px}.hall-empty{font-size:16px;line-height:1.7;text-align:center;padding:22px 10px;margin:0;color:#c9c9bc}.hall-empty[hidden]{display:none}
.hall-list{list-style:none;padding:0;margin:0}.hall-row{display:grid;grid-template-columns:32px minmax(0,1fr) 150px 135px;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.hall-rank{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.hall-info strong{display:block;font-size:16px;font-weight:600;color:var(--mint)}.trump-win .hall-info strong{color:var(--coral)}.hall-info>span{display:block;color:var(--muted);font-size:13px;line-height:1.6;margin-top:4px}
.hall-score{display:flex;justify-content:center;gap:25px;text-align:center}.hall-score span{display:flex;flex-direction:column;gap:3px}.hall-score small{font-size:12px;color:var(--muted)}.hall-score b{font-family:'Barlow Condensed',Impact,sans-serif;font-size:32px;line-height:1;color:var(--mint)}.hall-score span:last-child b{color:var(--coral)}.hall-row time{font-size:12px;line-height:1.6;color:var(--muted);text-align:right}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){.hall{padding:18px 14px}.hall-heading{gap:10px}.hall h2{font-size:32px}.hall-kicker{font-size:12px;letter-spacing:.7px}.hall-fire span{font-size:22px}.hall-fire span:nth-child(2){font-size:34px}.hall-count{padding:7px 9px}.hall-row{grid-template-columns:24px minmax(0,1fr) 98px;gap:8px 10px}.hall-row time{grid-column:2 / -1;text-align:left}.hall-info strong{font-size:14px}.hall-score{gap:14px}.hall-note{font-size:12px}}
@media(orientation:portrait){.start-panel{padding:12px;max-width:320px}.start-panel h3{font-size:34px;margin:8px 0}.start-panel p{margin-bottom:10px}.computer-choice{margin-bottom:12px}.start-tip{margin-top:8px}}
@media(orientation:portrait) and (max-height:720px){.start-panel .panel-kicker,.start-panel .start-tip{display:none}.start-panel h3{font-size:28px}.start-panel p{font-size:13px;line-height:1.4}.computer-choice{margin-bottom:8px}}
@media(orientation:landscape) and (max-height:600px){.start-panel h3{font-size:26px}.start-panel p{display:none}.computer-choice{display:inline-flex;margin:0 12px 0 0;vertical-align:middle}.start-panel .play-button{vertical-align:middle}.hall{margin-top:16px}}

/* Aligned edited portraits blend gradually with each of the seven conceded points. */
.paddle .damage-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;transition:opacity .3s ease}
.avatar .damage-layer{left:0;pointer-events:none;transition:opacity .3s ease}

/* Reuse the original cutout silhouette so every damage variant has clean edges. */
.left-paddle,.avatar.mint{--portrait-mask:url('assets/carney.png')}
.right-paddle,.avatar.coral{--portrait-mask:url('assets/trump.png')}
.paddle img,.avatar img{-webkit-mask-image:var(--portrait-mask);mask-image:var(--portrait-mask);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.avatar img{-webkit-mask-position:center bottom;mask-position:center bottom}

/* Briefly enlarge the conceding face during the point break, before play resumes. */
.paddle.damage-pop img{animation:damage-pop .9s ease-out}
@keyframes damage-pop{0%,100%{transform:scale(1)}25%,55%{transform:scale(1.3)}}

/* Point celebrations: tariffs for Trump, tax-free replies for Carney. */
.announcement{width:calc(100% - 32px);max-width:650px}.point-label{display:block}.tax-reply{display:block;font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-size:clamp(22px,3vw,34px);font-weight:600;line-height:1.2;margin-top:10px;color:var(--mint);letter-spacing:.4px;animation:tariff-stamp .18s ease-out}
@keyframes tariff-stamp{from{transform:scale(1.08);opacity:.4}to{transform:scale(1);opacity:1}}
.start-panel h3 .victory-quip{display:block;font-family:'DM Sans',Arial,sans-serif;color:var(--mint);font-size:17px;line-height:1.35;letter-spacing:.4px;margin-top:12px}
.tax-reply.trump-tax,.start-panel h3 .victory-quip.trump-tax{color:var(--coral)}
@media(orientation:landscape) and (max-height:600px){.tax-reply{font-size:23px;margin-top:6px}.start-panel h3 .victory-quip{font-size:14px;margin-top:6px}}
@media(orientation:portrait) and (max-height:720px){.start-panel h3 .victory-quip{font-size:14px;margin-top:6px}}

/* Eight illustrated poses play as a short paper-cutout victory dance. */
.victory-stage[hidden]{display:none}.victory-stage{height:290px;max-width:100%;display:grid;place-items:center;overflow:hidden;background:#151a1c;border-radius:16px}
.dance-sprite{position:relative;height:100%;max-width:100%;aspect-ratio:1;background-repeat:no-repeat;background-size:400% 200%;background-position:0 0}
.dance-sprite.is-dancing{animation:victory-dance 1.2s steps(1,end) 4}
@keyframes victory-dance{0%{background-position:0 0}12.5%{background-position:33.333333% 0}25%{background-position:66.666667% 0}37.5%{background-position:100% 0}50%{background-position:0 100%}62.5%{background-position:33.333333% 100%}75%{background-position:66.666667% 100%}87.5%{background-position:100% 100%}100%{background-position:0 0}}
.overlay.celebrating{background:#151a1cf5;backdrop-filter:blur(6px)}
.celebrating .start-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:20px;width:100%;max-width:850px;padding:18px 28px}
.celebrating .panel-content{min-width:0}.celebrating .computer-choice,.celebrating .start-tip{display:none}
.celebrating .start-panel h3{font-size:46px;margin:10px 0}.celebrating .start-panel p{margin:0 0 16px;font-size:14px;line-height:1.5;max-width:none}
.celebrating .start-panel h3 .victory-quip{font-size:15px;line-height:1.3;margin-top:10px}
@media(orientation:portrait){.celebrating .start-panel{grid-template-columns:1fr;gap:8px;padding:12px;max-width:430px}.victory-stage{height:clamp(125px,calc(100svh - 520px),270px)}.celebrating .start-panel h3{font-size:30px;margin:5px 0}.celebrating .start-panel h3 br{display:none}.celebrating .start-panel h3 .victory-quip{font-size:14px;margin-top:6px}.celebrating .panel-kicker{display:none}.celebrating .start-panel p{margin-bottom:9px}.celebrating .play-button{min-height:44px;padding:11px 16px}}
@media(orientation:portrait) and (max-height:700px){.celebrating .start-panel{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:6px;padding:10px}.celebrating .victory-stage{height:150px}.celebrating .start-panel h3{font-size:26px}.celebrating .play-button{font-size:14px;gap:6px;line-height:1.3}.celebrating .play-button span{display:none}}
@media(orientation:landscape) and (max-height:600px){.celebrating .start-panel{grid-template-columns:minmax(100px,180px) minmax(0,1fr);max-width:700px;padding:8px 24px;gap:16px}.celebrating .victory-stage{height:clamp(110px,calc(100svh - 200px),210px)}.celebrating .start-panel h3{font-size:26px;margin:0 0 8px}.celebrating .start-panel h3 .victory-quip{font-size:14px;margin-top:4px}.celebrating .start-panel p,.celebrating .panel-kicker{display:none}.celebrating .play-button{min-height:44px;padding:10px 16px}}

/* The original game portraits follow each body's neck, on the same eight beats. */
.dance-head{position:absolute;display:block;width:40%;height:auto;max-width:none;pointer-events:none;left:50.5%;top:45.3%;transform-origin:57% 99%;transform:translate(-57%,-99%);}
.dance-sprite[data-character="trump"] .dance-head{width:40%;left:50%;top:41%;transform-origin:54% 98%;transform:translate(-54%,-98%);}
.dance-sprite.is-dancing .dance-head{animation:carney-dance-head 1.2s steps(1,end) 4;}
.dance-sprite.is-dancing[data-character="trump"] .dance-head{animation:trump-dance-head 1.6s steps(1,end) 3;}
@keyframes carney-dance-head{0%{left:50.51%;top:45.32%;transform:translate(-57%,-99%) rotate(0deg)}12.5%{left:44.98%;top:48.03%;transform:translate(-57%,-99%) rotate(15deg)}25%{left:54.11%;top:45.32%;transform:translate(-57%,-99%) rotate(-15deg)}37.5%{left:51.30%;top:45.55%;transform:translate(-57%,-99%) rotate(0deg)}50%{left:50.28%;top:44.76%;transform:translate(-57%,-99%) rotate(0deg)}62.5%{left:52.20%;top:43.18%;transform:translate(-57%,-99%) rotate(-18deg)}75%{left:46.67%;top:44.08%;transform:translate(-57%,-99%) rotate(12deg)}87.5%{left:50.62%;top:43.86%;transform:translate(-57%,-99%) rotate(0deg)}100%{left:50.51%;top:45.32%;transform:translate(-57%,-99%) rotate(0deg)}}
@keyframes trump-dance-head{0%,100%{transform:translate(-54%,-98%) rotate(-3deg)}25%{transform:translate(-54%,-98%) rotate(0deg)}50%{transform:translate(-54%,-98%) rotate(3deg)}75%{transform:translate(-54%,-98%) rotate(0deg)}}

/* Arcade attract screen: the approved art with a live Pong ball and START control. */
html.intro-active,html.intro-active body{overflow:hidden}
.intro-active #game-shell{visibility:hidden}
.intro-screen[hidden]{display:none}
.intro-screen{position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:auto;background:#080e10;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);transition:opacity .25s ease}
.intro-poster{position:relative;width:min(100%,calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .6666667));aspect-ratio:2 / 3;isolation:isolate}
.intro-art{display:block;width:100%;height:100%;object-fit:contain}
.intro-ball{position:absolute;left:50%;top:51.7%;width:5.2%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#e5ffb9;box-shadow:0 0 10px #c5ff73,0 0 25px #a9f95499;animation:intro-volley 2.4s linear infinite;pointer-events:none}
@keyframes intro-volley{0%,100%{left:40%;top:52.5%;box-shadow:0 0 16px #c5ff73,0 0 30px #a9f95499}25%{left:50%;top:50.7%;box-shadow:-8px 2px 9px #c5ff7355,0 0 14px #a9f95499}50%{left:60%;top:51.9%;box-shadow:0 0 16px #c5ff73,0 0 30px #a9f95499}75%{left:50%;top:53.1%;box-shadow:8px -2px 9px #c5ff7355,0 0 14px #a9f95499}}
.intro-start{position:absolute;left:20%;top:80%;width:60%;height:10.5%;min-height:44px;padding:0;border:0;border-radius:6%;color:#101315;background:transparent;touch-action:manipulation;animation:intro-start-glow 2.6s ease-in-out infinite}
.intro-start:hover{background:#edffd21a}
.intro-start:focus-visible{outline:3px solid #fff;outline-offset:5px}
.intro-start:active{transform:scale(.98)}
@keyframes intro-start-glow{0%,100%{box-shadow:0 0 4px #c5ff731a}50%{box-shadow:0 0 22px #c5ff7366}}
.intro-leaving{opacity:0;pointer-events:none}
.intro-leaving .intro-ball,.intro-leaving .intro-start{animation-play-state:paused}
.intro-fallback .intro-art,.intro-fallback .intro-ball{display:none}
.intro-fallback .intro-poster{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;width:min(92vw,640px);min-height:70svh;aspect-ratio:auto;padding:24px;text-align:center}
.intro-fallback .sr-only{position:static;width:auto;height:auto;margin:0;padding:0;clip:auto;clip-path:none;overflow:visible;white-space:normal}
.intro-fallback h1{font-size:clamp(32px,8vw,68px);color:var(--mint)}
.intro-fallback p{font-size:20px;line-height:1.5}
.intro-fallback .intro-start{position:static;width:auto;height:auto;min-height:56px;padding:18px 28px;border-radius:6px;background:var(--mint);font-weight:800}

/* Trump: sixteen compact alternating fist pumps, matching the supplied reference. */
.dance-sprite[data-character="trump"]{background-image:none!important}
.dance-sprite[data-character="trump"]::before{content:"";position:absolute;inset:0;background-image:url("assets/trump-victory-body-v2.png");background-size:360% 360%;background-repeat:no-repeat;background-position:-1.564225% -2.740155%;clip-path:inset(34% 0 0)}
.dance-sprite.is-dancing[data-character="trump"]{animation:none}
.dance-sprite.is-dancing[data-character="trump"]::before{animation:trump-dance-body 1.6s steps(1,end) 3}
@keyframes trump-dance-body{0%{background-position:-1.564225% -2.740155%}6.25%{background-position:33.106367% -2.740155%}12.5%{background-position:67.776960% -2.740155%}18.75%{background-position:102.447552% -2.740155%}25%{background-position:-1.564225% 31.378358%}31.25%{background-position:33.106367% 31.378358%}37.5%{background-position:67.776960% 31.378358%}43.75%{background-position:102.447552% 31.378358%}50%{background-position:-1.564225% 63.951049%}56.25%{background-position:33.106367% 63.951049%}62.5%{background-position:67.776960% 63.951049%}68.75%{background-position:102.447552% 63.951049%}75%{background-position:-1.564225% 96.634155%}81.25%{background-position:33.106367% 96.634155%}87.5%{background-position:67.776960% 96.634155%}93.75%{background-position:102.447552% 96.634155%}100%{background-position:-1.564225% -2.740155%}}

/* Desktop court choice follows available browser space, independently of screen orientation. */
.orientation-controls{display:none}
.desktop-court .shell{max-width:1600px;padding-left:clamp(12px,3vw,48px);padding-right:clamp(12px,3vw,48px)}
.desktop-court .masthead{height:64px}
.desktop-court .title-row{display:none}
.desktop-court .orientation-controls{display:flex;align-items:center;justify-content:center;gap:6px;min-height:54px;flex-wrap:wrap;padding:5px 0}
.orientation-controls>span{font-size:14px;color:var(--muted);margin-right:10px}
.orientation-controls button{min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:14px}
.orientation-controls button[aria-pressed="true"]{background:var(--mint);border-color:var(--mint);color:#1d2916}
.desktop-court .game{width:var(--court-width,100%);max-width:100%;margin:0 auto}
.desktop-court .arena{height:var(--court-height,430px);min-height:0;max-height:none}
.desktop-court .scoreboard{height:80px;padding:10px 16px}
.desktop-court .scores{min-width:100px;gap:10px}
.desktop-court .scores>span{font-size:48px}
.desktop-court .control-bar{padding:8px 12px;gap:8px 16px;flex-wrap:wrap}
.desktop-court .settings{width:auto;flex:1;gap:12px;justify-content:space-between}
.desktop-court .match-controls{width:auto;border:0;padding:0;gap:16px}
.desktop-court .mode-switch button,.desktop-court .text-button,.desktop-court select{min-height:40px;font-size:14px}
.desktop-court .difficulty-label{font-size:14px}
.desktop-court footer{display:flex;max-width:var(--court-width,100%);margin:0 auto;padding:10px 0}
.desktop-court .instructions{flex-wrap:wrap;gap:6px 12px;font-size:14px}
.desktop-court .instructions>span{white-space:normal}
.desktop-court .footer-note{display:none}
.desktop-court .start-panel{max-width:380px;padding:14px}
.desktop-court .start-panel h3{font-size:36px;margin:8px 0}
.desktop-court .start-panel p{display:block;font-size:14px;margin-bottom:12px}
.desktop-court .computer-choice{display:flex;margin:0 auto 12px}
.desktop-court .play-button{min-height:44px;padding:12px 18px}
.desktop-court[data-court="portrait"] .avatar{display:none}
.desktop-court[data-court="portrait"] .player{flex:1}
.desktop-court[data-court="portrait"] h2{font-size:14px}
.desktop-court[data-court="portrait"] .country{font-size:10px;letter-spacing:1px}
.desktop-court[data-court="portrait"] .country span{display:none}
.desktop-court[data-court="portrait"] .player-role{font-size:10px}
.desktop-court[data-court="portrait"] .settings,.desktop-court[data-court="portrait"] .match-controls{width:100%;flex-basis:100%;justify-content:space-between}
.desktop-court[data-court="portrait"] .match-controls{border-top:1px solid var(--line)}
.desktop-court .celebrating .start-panel{display:grid;max-width:850px;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);padding:12px 20px;gap:14px}
.desktop-court .celebrating .victory-stage{height:clamp(110px,calc(var(--court-height) * .65),290px)}
.desktop-court .celebrating .computer-choice{display:none}
.desktop-court[data-court="portrait"] .celebrating .start-panel{grid-template-columns:1fr;max-width:430px;padding:10px;gap:6px}
.desktop-court[data-court="portrait"] .celebrating .victory-stage{height:clamp(120px,calc(var(--court-height) * .42),270px)}
.desktop-court[data-court="portrait"] .celebrating h3{font-size:28px;margin:4px 0}
.desktop-court[data-court="portrait"] .celebrating h3 br{display:none}
.desktop-court[data-court="portrait"] .celebrating .victory-quip{font-size:14px;margin-top:6px}
.desktop-court .celebrating .panel-kicker{display:none}
.desktop-court[data-compact-court="true"] .start-panel .panel-kicker,.desktop-court[data-compact-court="true"] .start-panel .start-tip,.desktop-court[data-compact-court="true"] .start-panel p{display:none}
.desktop-court[data-compact-court="true"] .start-panel h3{font-size:26px}
@media(max-width:600px){.desktop-court .edition{display:none}.desktop-court .scoreboard{padding:8px}.desktop-court .avatar{display:none}.desktop-court .country{font-size:10px;letter-spacing:0}.desktop-court h2{font-size:13px}.desktop-court .country span{display:none}.desktop-court .player-role{font-size:10px}.desktop-court .orientation-controls{gap:4px}.orientation-controls>span{margin-right:4px}.orientation-controls button{padding:8px 10px}.desktop-court .settings,.desktop-court .match-controls{width:100%;flex-basis:100%;justify-content:space-between}}
