/* The same jeweled arcade garden, now a night-time awards pavilion. */
body[data-screen="screen-round"],body[data-screen="screen-match"] { height:auto; min-height:100%; background-image:var(--results-background,var(--world-background)); background-position:var(--results-position,50% 50%); }
body[data-screen="screen-round"]::after,body[data-screen="screen-match"]::after { background:linear-gradient(#020c2155,#020a17a8); }
#screen-round .rs,#screen-match .rs { position:relative; isolation:isolate; overflow:hidden; padding:26px; gap:20px; border:3px solid transparent; border-radius:30px 14px 30px 14px; color:#e9f7ff; --muted:#b4c8df; background:linear-gradient(145deg,#11283aef,#080f29f5 62%,#15283bf2) padding-box,linear-gradient(125deg,#fff3bf,#9b8bce 30%,#49cfdb 54%,#a491dd 76%,#ffe2a0) border-box; box-shadow:inset 0 0 0 3px #070d2466,0 20px 90px #0008,0 0 50px #67d8e422; }
#screen-round .rs::before,#screen-match .rs::before { content:""; position:absolute; inset:-50px; z-index:-1; pointer-events:none; opacity:.55; background:radial-gradient(ellipse at 12% 6%,#49e9e820,transparent 30%),radial-gradient(ellipse at 95% 30%,#c184ed24,transparent 35%),radial-gradient(circle at 12% 30%,#ffdf9f 0 1px,transparent 2px),radial-gradient(circle at 87% 66%,#88ecff 0 1px,transparent 2px),radial-gradient(circle at 50% 88%,#f4c4ff 0 1px,transparent 2px); animation:pavilion-light 16s ease-in-out infinite alternate; }
#screen-round .rs::after,#screen-match .rs::after { content:""; position:absolute; inset:0; z-index:-1; padding:18px; pointer-events:none; opacity:.68; background:url("art/ten-stage/court.webp") center/100% 100% no-repeat; -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude; }
.results-wordmark { width:270px; height:94px; margin:-10px 0 -18px; filter:drop-shadow(0 6px 12px #0006); }
#screen-round .rs-title,#screen-match .rs-title { color:#ffecb4; font-size:29px; text-shadow:0 2px 1px #000a,0 0 28px #ffce6728; }
#screen-round .rs-sub,#screen-match .rs-sub { color:#b8d8e4; font-size:12px; }
.rs .rs-card { border:2px solid transparent; border-radius:21px 11px 21px 11px; color:#e8f4ff; padding:20px; background:linear-gradient(145deg,#132c40f5,#0b192ff7) padding-box,linear-gradient(135deg,#c7dfe6a8,#5e769567 55%,#e3c487a8) border-box; box-shadow:inset 0 1px #fff1,0 7px 20px #0002; }
.rs .rs-card h3,.rs .rs-card h4 { color:#e8d8ff; font-weight:900; font-size:17px; }
.rs .rs-card h4 { font-size:13px; }
.rs .record-category { color:#ffe4a0; background:#c9974224; border:1px solid #efd18c77; border-radius:20px; padding:5px 11px; }
.rs .records-grid { gap:26px; align-items:stretch; }
.rs .rs-pb-list { gap:10px; }
.rs .rs-pb-list li { --award:#b8f5f9; position:relative; min-width:0; padding:10px 5px 13px; gap:3px; border:1px solid #9bc2da40; border-radius:17px; background:linear-gradient(#172f46,#14253a); box-shadow:inset 0 1px #ffffff19,0 5px 12px #0003; }
.rs .rs-pb-list li.award-rainbow { --award:#d4baff; border-color:#c997e47d; background:linear-gradient(140deg,#59669d52,#327f854a 55%,#7c485d45),#112238; }
.rs .rs-pb-list li.award-gold { --award:#ffe297; border-color:#d7b77277; background:linear-gradient(140deg,#bb8b3742,#4f3d3033),#142638; }
.rs .rs-pb-list li.award-silver { --award:#d8eafa; border-color:#b5cddd77; background:linear-gradient(140deg,#90a9c040,#3d557238),#142638; }
.rs .rs-pb-list li.now { outline:2px solid var(--award); outline-offset:2px; box-shadow:0 0 22px #b7c7ee24; }
.rs .pb-place { font-size:10px; letter-spacing:.07em; font-weight:900; color:var(--award); text-transform:uppercase; margin-bottom:7px; }
.rs .record-ball { width:62px; height:62px; margin:0 auto 8px; border:1px solid #ffffff70; box-shadow:inset -6px -8px 10px #00143228,inset 2px 2px 3px #ffffffa8; animation:award-bounce 3.2s cubic-bezier(.45,0,.55,1) infinite; will-change:transform; }
.rs li:nth-child(2) .record-ball { animation-delay:-1.05s; }
.rs li:nth-child(3) .record-ball { animation-delay:-2.1s; }
.rs .rs-pb-list li.has-record .record-ball { opacity:1; filter:drop-shadow(0 5px 6px #83dce54d); }
.rs .rs-pb-list li.empty-record .record-ball { opacity:.23; animation:none; }
.rs .rs-pb-list .pb-score,.rs .rs-pb-list li.now .pb-score { color:var(--award); font-size:24px; letter-spacing:-.035em; text-shadow:0 2px #0006; }
.rs .rs-pb-list .pb-when { color:#afc5d9; font-size:10px; }
.rs .rs-pb-list li.now .pb-when::after { color:#b2f1cf; }
.rs .history-status { color:#acc6d7; border-color:#9ab8d52d; }
.rs .rs-pb-sub,.rs .rs-pb-empty { color:#a9c5d7; }
.rs .rs-hist-graph { border-radius:17px; background:linear-gradient(145deg,#113046b3,#0a162cbd); border:1px solid #9cc7e13d; padding:8px; }
.rs .rs-hist-graph .hg-axis,.rs .rs-hist-graph .hg-tick { fill:#c0d4e4; }
.rs .rs-hist-graph .hg-grid { stroke:#a5c2db; stroke-opacity:.22; }
.rs .rs-hist-graph .hg-now { fill:#ffdf9a; }
.rs .history-chart-caption { color:#a4c2d4; padding-top:5px; }
.rs .history-tabs button { color:#d5dfef; background:#142c44; border-color:#9aaccf59; }
.rs .history-tabs button[aria-pressed="true"] { color:#221b34; background:linear-gradient(#e3ceff,#aeaddf); border-color:#e0d5ff; }
.rs .global-bests { border-color:#98b9d142; }
.rs .gb-row { color:#e5f1ff; background:linear-gradient(110deg,#1c374e,#132239); border-color:#8faec442; border-radius:14px; padding:9px 12px; }
.rs .gb-row:first-child { border-color:#d5b4ff8c; background:linear-gradient(110deg,#61528c50,#327b7b44),#12273a; }
.rs .gb-row:nth-child(2) { border-color:#e5bf6e7a; }
.rs .gb-row:nth-child(3) { border-color:#d5e3ed7a; }
.rs .gb-row.me { box-shadow:inset 3px 0 #a5e5dc; }
.rs .gb-name { color:#edf7ff; }
.rs .gb-score { color:#ffe2a3; font-size:15px; }
.rs .gb-rank { color:#c8c6e7; }
.rs .gb-when { color:#a9c0d8; }
.rs .rs-rules { background:#10243a; border-color:#8dacc457; }
.rs .rs-rules-title,.rs .rs-rules-info,.rs .rs-rn,.rs .rs-rk,.rs .rs-rule-note,.rs .rs-runit { color:#b5cce0; }
.rs .rs-rule { background:#152c42; border-color:#a4b4d133; }
.rs .rs-rv { color:#f5dca3; }
.rs .rs-advance { color:#b9cadb; }
.rs #btn-next,.rs #btn-again { color:#42270d; border:3px solid #ffe7a6; border-radius:18px; background:linear-gradient(#ffea91,#ffd04c 58%,#f6a724); box-shadow:inset 0 2px #fff9,0 4px 0 #7d491c,0 7px 18px #0004; }
.rs .btn.ghost,.rs #btn-board2 { color:#e5e0fa; border-color:#b3addc88; background:linear-gradient(#344265,#1e2e48); box-shadow:inset 0 1px #fff2,0 3px 0 #0a172c; }
.rs .rs-drama { background:#13263f; }
.rs .drama li { border-color:#a4bad73f; }
.rs .dwho { color:#e5d7fa; }.rs .dlabel { color:#bdd4e6; }.rs .dval { color:#ffe3a0; }
.rs .results-overview { --ro-ink:#e9f5ff; --ro-soft:#acc5da; --ro-paper:#11283b; --ro-line:#7895b064; --ro-green:#adecd3; --ro-brass:#eed39b; }
.rs .ro-section-title { color:#f3dfae; font-size:19px; }
.rs .ro-player { --award:#bddde9; grid-template-columns:46px minmax(0,1fr) auto; min-height:148px; padding:15px; color:#eef7ff; border:2px solid #8caec568; border-radius:21px 11px 21px 11px; background:linear-gradient(145deg,#203d55,#10243b); box-shadow:inset 0 1px #fff2,0 5px 12px #0003; }
.rs .ro-player[data-rank="1"] { --award:#d6b6ff; border-color:#cda5fa99; background:linear-gradient(130deg,#7d4f8460,#327e8955),#13263b; }
.rs .ro-player[data-rank="2"] { --award:#ffe19a; border-color:#dfb96d99; background:linear-gradient(130deg,#8b63284a,#28314755),#14273d; }
.rs .ro-player[data-rank="3"] { --award:#dce9fa; border-color:#b3c4d999; }
.rs .ro-player[aria-pressed="true"] { border-color:var(--award); background:linear-gradient(145deg,#314c65,#1a2f48); box-shadow:inset 0 0 0 1px var(--award),0 0 21px #b6dfff25; }
.rs .ro-player:hover { box-shadow:inset 0 1px #fff4,0 6px 18px #0005; transform:translateY(-1px); }
.rs .ro-avatar { position:relative; overflow:hidden; width:44px; height:44px; border-color:var(--award); box-shadow:0 0 0 3px #040e254d,0 3px 7px #0005; }
.rs .ro-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.rs .ro-avatar.ball-avatar { border:0; overflow:visible; background:none; box-shadow:none; }
.rs .ro-avatar.ball-avatar { animation:award-bounce 3.7s ease-in-out infinite; }
.rs .ro-avatar svg { width:100%; height:100%; }
.rs .ro-name { font-size:16px; }
.rs .ro-tag { color:#b5d9df; }
.rs .ro-rank { color:var(--award); border-color:var(--award); background:#0c183b88; border-radius:9px; padding:4px 7px; }
.rs .ro-player[data-rank="1"] .ro-rank { color:#232a45; border-color:#f2d1ff; background:linear-gradient(115deg,#efb8f6,#b8ddff 42%,#a9e9d6 68%,#ffe1a5); }
.rs .ro-player[data-rank="2"] .ro-rank { color:#55380d; border-color:#ffe4a8; background:linear-gradient(#ffe6a0,#deb05a); }
.rs .ro-player[data-rank="3"] .ro-rank { color:#283b52; border-color:#e5f2ff; background:linear-gradient(#edf6ff,#b7c9df); }
.rs .ro-player-score strong { color:var(--award); font-size:34px; text-shadow:0 2px #0005; }
.rs .ro-running-total { color:#b4cce0; }
.rs .ro-badge { color:#ffdf9c; border-color:#d6b66c99; background:#73562733; }
.rs .ro-details { background:#10273d; border:1px solid #a5bdda70; border-radius:21px 11px 21px 11px; box-shadow:inset 0 1px #fff1; }
.rs .ro-detail-head { background:linear-gradient(110deg,#233d54,#1d2d48); border-color:#c3b9e13d; padding:13px 16px; }
.rs .ro-detail-title { color:#e9deff; font-size:16px; }
.rs .ro-tab { color:#c4d7e6; border-color:#a8bcdd59; background:#142b43; }
.rs .ro-tab[aria-pressed="true"] { color:#2e2543; border-color:#ecddff; background:linear-gradient(#e5d2ff,#bdaddf); }
.rs .ro-score-table { color:#d4e4ef; font-size:13px; }
.rs .ro-score-table caption { color:#a7c6db; }
.rs .ro-score-table th,.rs .ro-score-table td { padding-block:7px; border-color:#a7c4d920; }
.rs .ro-score-table .ro-score-working { color:#9fbfd1; }
.rs .ro-score-value { color:#f0d99e; }
.rs .ro-score-table tfoot th,.rs .ro-score-table tfoot td { color:#b6f3dc; border-color:#82cbb87a; }
.rs .ro-score-table tfoot td { font-size:26px; }
.rs .ro-highlight { border-color:#88accc66; border-radius:13px; background:linear-gradient(130deg,#284563,#182d46); }
.rs .ro-highlight dt { color:#b5cce2; }
.rs .ro-highlight dd { color:#d1c0ff; font-size:23px; }
.rs .ro-empty { color:#b3cbda; background:#102b41; border-color:#7594ad70; }
@keyframes award-bounce { 0%,100% {transform:translateY(2px) scale(1.015,.985)} 50% {transform:translateY(-6px) scale(.99,1.01)} }
@keyframes pavilion-light { from {transform:translate3d(-7px,0,0);opacity:.45} to {transform:translate3d(8px,-10px,0);opacity:.8} }
@media(max-width:680px){
  #screen-round .rs,#screen-match .rs { padding:17px 12px; gap:17px; }
  #screen-round .rs::after,#screen-match .rs::after { padding:9px; opacity:.5; }
  .results-wordmark { width:225px; height:79px; }
  .rs .rs-card { padding:15px 11px; }
  .rs .rs-pb-list { gap:8px; }
  .rs .record-ball { width:58px; height:58px; }
  .rs .rs-pb-list .pb-score { font-size:22px; }
  .rs .ro-player { grid-template-columns:44px minmax(0,1fr); min-height:0; padding:12px; }
  .rs .ro-name { font-size:15px; }
  .rs .ro-player-score strong { font-size:30px; }
  .rs .ro-highlights dd { font-size:18px; }
}
@media(max-width:390px){.rs .ro-player {grid-template-columns:44px minmax(0,1fr) auto;} .rs .ro-player-score strong {font-size:28px;}}
@media(prefers-reduced-motion:reduce){.rs .record-ball,.rs .ro-avatar.ball-avatar,#screen-round .rs::before,#screen-match .rs::before {animation:none!important;will-change:auto;} .rs .ro-player:hover {transform:none;} }
