/* ARCANIS V12.23 — scoped to the hall; its native mobile scroll surface stays intact. */
#tab-highscore {--ahs-gold:#e8c68b;--ahs-ink:#eee4d7;color:var(--ahs-ink);font:13px/1.5 Arial,sans-serif;isolation:isolate;}
#tab-highscore * {box-sizing:border-box;}
#tab-highscore .ahs-head {display:flex;align-items:center;justify-content:space-between;gap:25px;padding:5px 0 28px;}
#tab-highscore .ahs-kicker {color:#bba88b;font:10px/1.5 Arial;letter-spacing:.25em;margin:0 0 17px;}
#tab-highscore h2 {color:#f2e5cf;font:normal clamp(42px,4.4vw,68px)/1 Georgia,serif;letter-spacing:-.04em;margin:0;}
#tab-highscore h2 span {display:block;color:#cbb086;font:italic 24px/1.4 Georgia,serif;letter-spacing:0;margin-top:8px;}
#tab-highscore .ahs-intro {color:#afa5b6;font:12px/1.7 Arial;margin:13px 0 0;}
#tab-highscore .ahs-seal {position:relative;flex:0 0 130px;height:130px;display:grid;place-content:center;justify-items:center;color:#d8ba85;pointer-events:none;}
#tab-highscore .ahs-seal::before,#tab-highscore .ahs-seal::after {content:'';position:absolute;inset:6px;border:1px solid #d7af6440;border-radius:50%;}
#tab-highscore .ahs-seal::after {inset:15px;border-style:dashed;animation:ahsOrbit 70s linear infinite;}
#tab-highscore .ahs-seal i {position:absolute;inset:27px;border:1px solid #b5a0dc40;transform:rotate(45deg);background:radial-gradient(circle,#bb965e12,transparent 70%);}
#tab-highscore .ahs-seal>span {position:relative;font:50px/1 Georgia;text-shadow:0 0 25px #e3b56560;}
#tab-highscore .ahs-seal small {position:relative;font:6px/1.5 Arial;letter-spacing:.15em;margin-top:10px;}
#tab-highscore .ahs-toolbar {display:flex;align-items:end;justify-content:space-between;gap:16px;padding:17px 0;border-top:1px solid #c9b07c30;border-bottom:1px solid #c9b07c20;}
#tab-highscore .ahs-filters {display:flex;gap:20px;min-width:0;}
#tab-highscore .ahs-filters label {display:grid;gap:6px;color:#aa9d88;font:8px/1.4 Arial;letter-spacing:.17em;min-width:0;}
#tab-highscore select {width:190px;max-width:100%;min-width:0;min-height:42px;background:#110e1bcc;color:#e1d0b6;border:1px solid #cbb27a40;border-radius:4px;padding:9px 30px 9px 12px;font:12px/1.4 Arial;cursor:pointer;color-scheme:dark;}
#tab-highscore option {background:#161222;color:#e8dcc7;}
#tab-highscore .ahs-refresh {display:flex;align-items:center;gap:8px;white-space:nowrap;}
#tab-highscore .ahs-refresh>span {font:22px/1 Georgia;}
#tab-highscore :is(button,select):focus-visible {outline:2px solid #8ddbeb;outline-offset:4px;}
#tab-highscore .ahs-status {color:#aca0b8;font:10px/1.5 Arial;margin:13px 0 0;min-height:16px;}
#tab-highscore .ahs-status.ahs-error {color:#efb4aa;}
#tab-highscore .ahs-totals {display:flex;align-items:center;justify-content:center;gap:24px;color:#a89aae;font:8px/1.4 Arial;letter-spacing:.13em;padding:14px 0 5px;}
#tab-highscore .ahs-totals b {color:#e5d2b4;font:normal 17px/1 Georgia;letter-spacing:0;margin-right:5px;}
#tab-highscore .ahs-totals i {color:#8b718f;font-size:16px;font-style:normal;}
#tab-highscore .ahs-podiums {display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:22px;max-width:970px;margin:0 auto;padding:42px 10px 30px;position:relative;}
#tab-highscore .ahs-podiums::after {content:'';position:absolute;left:8%;right:8%;bottom:15px;height:1px;background:linear-gradient(90deg,transparent,#a286514f,transparent);pointer-events:none;}
#tab-highscore .ahs-podium {--ahs-metal:#b2c7df;--ahs-glow:150,190,233;position:relative;min-width:0;min-height:304px;padding:26px 15px 27px;text-align:center;border:1px solid rgba(var(--ahs-glow),.3);border-radius:90px 90px 9px 9px;background:radial-gradient(ellipse at 50% 20%,rgba(var(--ahs-glow),.1),transparent 67%),linear-gradient(180deg,#171326b0,#0b0a14ed);box-shadow:inset 0 0 30px rgba(var(--ahs-glow),.025),0 14px 32px #0004;}
#tab-highscore .ahs-place-1 {order:2;--ahs-metal:#f2d193;--ahs-glow:224,178,94;min-height:341px;padding-top:29px;border-color:#dcb97770;box-shadow:0 0 50px #cfa4660b,0 18px 40px #0005,inset 0 0 40px #cf9d4620;}
#tab-highscore .ahs-place-2 {order:1;}
#tab-highscore .ahs-place-3 {order:3;--ahs-metal:#d4a17e;--ahs-glow:200,131,107;}
#tab-highscore .ahs-podium::before {content:'';position:absolute;inset:7px;border:1px solid rgba(var(--ahs-glow),.12);border-radius:83px 83px 5px 5px;pointer-events:none;}
#tab-highscore .ahs-podium-light {position:absolute;inset:-24px 15% 10%;background:radial-gradient(ellipse at top,rgba(var(--ahs-glow),.1),transparent 66%);pointer-events:none;}
#tab-highscore .ahs-podium-light::after {content:'✧';position:absolute;color:var(--ahs-metal);left:8%;top:28%;font:12px Georgia;text-shadow:0 0 10px currentColor;animation:ahsSpark 6s ease-in-out infinite;}
#tab-highscore .ahs-place-3 .ahs-podium-light::after {left:auto;right:6%;animation-delay:-3s;}
#tab-highscore .ahs-crown {position:absolute;top:-26px;left:50%;transform:translateX(-50%);color:var(--ahs-metal);font:25px/1 Georgia;filter:drop-shadow(0 0 9px rgba(var(--ahs-glow),.5));pointer-events:none;}
#tab-highscore .ahs-crown svg {width:60px;height:45px;display:block;animation:ahsCrown 5s ease-in-out infinite;}
#tab-highscore .ahs-place-1 .ahs-crown {top:-35px;}
#tab-highscore .ahs-portrait {position:relative;width:82px;height:82px;margin:0 auto 16px;color:var(--ahs-metal);}
#tab-highscore .ahs-place-1 .ahs-portrait {width:100px;height:100px;}
#tab-highscore .ahs-portrait::before {content:'';position:absolute;inset:-5px;border:1px solid var(--ahs-metal);border-radius:50%;opacity:.7;pointer-events:none;}
#tab-highscore .ahs-portrait i {position:absolute;inset:-11px;border:1px dashed rgba(var(--ahs-glow),.42);border-radius:50%;animation:ahsOrbit 50s linear infinite;pointer-events:none;}
#tab-highscore .ahs-portrait i::after {content:'✦';position:absolute;top:-9px;left:50%;font:15px Georgia;text-shadow:0 0 12px currentColor;}
#tab-highscore .ahs-portrait img {display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;box-shadow:0 0 28px rgba(var(--ahs-glow),.24);}
#tab-highscore .ahs-portrait>span {width:100%;height:100%;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,rgba(var(--ahs-glow),.1),#12101e);font:34px Georgia;}
#tab-highscore .ahs-portrait>b {position:absolute;bottom:-9px;left:calc(50% - 13px);width:26px;height:26px;display:grid;place-items:center;border:1px solid var(--ahs-metal);border-radius:50%;background:#1b1520;color:var(--ahs-metal);font:15px/1 Georgia;}
#tab-highscore .ahs-honor {font:8px/1.3 Arial;letter-spacing:.19em;text-transform:uppercase;color:var(--ahs-metal);margin:24px 0 7px;}
#tab-highscore .ahs-podium h3 {font:normal 20px/1.25 Georgia,serif;color:#eee1d2;margin:0;overflow-wrap:anywhere;position:relative;}
#tab-highscore .ahs-podium h3 small {display:inline-block;vertical-align:middle;font:7px/1 Arial;letter-spacing:.07em;border:1px solid #9edcca70;padding:3px 4px;border-radius:3px;margin-left:6px;color:#b0e3d2;}
#tab-highscore .ahs-podium-score {font:normal 38px/1 Georgia,serif;color:var(--ahs-metal);margin:17px 0 0;text-shadow:0 0 28px rgba(var(--ahs-glow),.18);font-variant-numeric:tabular-nums;}
#tab-highscore .ahs-place-1 .ahs-podium-score {font-size:48px;}
#tab-highscore .ahs-podium-score>span {display:block;font:7px/1.5 Arial;letter-spacing:.3em;margin-top:7px;}
#tab-highscore .ahs-podium-meta {color:#a99dae;font:9px/1.6 Arial;margin:12px 0 8px;}
#tab-highscore .ahs-podium-base {position:absolute;bottom:0;left:0;right:0;height:25px;display:grid;place-items:center;border-top:1px solid rgba(var(--ahs-glow),.12);color:rgba(var(--ahs-glow),.45);font:8px/1 Georgia;letter-spacing:.3em;background:linear-gradient(90deg,transparent,rgba(var(--ahs-glow),.035),transparent);}
#tab-highscore .ahs-vacant {opacity:.65;}
#tab-highscore .ahs-vacant .ahs-crown svg,#tab-highscore .ahs-vacant .ahs-portrait i {animation:none;}
#tab-highscore .ahs-own {display:flex;align-items:center;gap:17px;padding:19px 23px;border:1px solid #b09a653a;border-left:2px solid #d7b77a;border-radius:5px;background:linear-gradient(105deg,#8d674319,#1b142686 60%,#14101ec9);margin:3px 0 30px;}
#tab-highscore .ahs-own img {width:43px;height:43px;object-fit:cover;border-radius:50%;border:1px solid #d4b88280;flex-shrink:0;}
#tab-highscore .ahs-own>div {min-width:0;flex:1;}
#tab-highscore .ahs-own small {display:block;color:#c0a780;font:8px/1.4 Arial;letter-spacing:.14em;margin-bottom:5px;}
#tab-highscore .ahs-own b {font:normal 19px/1.3 Georgia;overflow-wrap:anywhere;color:#e7d8c1;}
#tab-highscore .ahs-own p {font:11px/1.5 Arial;color:#aaa0af;margin:5px 0 0;}
#tab-highscore .ahs-own strong {font:normal 32px/1.1 Georgia;color:#f0cf91;white-space:nowrap;text-align:right;}
#tab-highscore .ahs-own strong small {font-size:7px;margin-top:5px;}
#tab-highscore .ahs-own-star {font:35px Georgia;color:#dab77a;}
#tab-highscore .ahs-list-head {display:flex;justify-content:space-between;align-items:end;gap:15px;margin:0 0 19px;}
#tab-highscore .ahs-list-head small {color:#9885a3;font:7px/1.4 Arial;letter-spacing:.18em;}
#tab-highscore .ahs-list-head h3 {color:#e1d2be;font:normal 27px/1.2 Georgia;margin:6px 0 0;letter-spacing:0;}
#tab-highscore .ahs-list-head>span {color:#b19a73;font:8px/1.4 Arial;letter-spacing:.1em;white-space:nowrap;}
#tab-highscore .ahs-table {width:100%;table-layout:fixed;border-spacing:0;border-collapse:collapse;background:#0c0913a0;font:12px/1.4 Arial;border-top:1px solid #cdb07735;}
#tab-highscore .ahs-table thead th {padding:13px 12px;border-bottom:1px solid #c6a46f25;color:#a99a81;font:8px/1.3 Arial;letter-spacing:.1em;text-align:left;}
#tab-highscore .ahs-table thead th:first-child {width:64px;text-align:center;}
#tab-highscore .ahs-table thead th:nth-child(3) {width:112px;text-align:right;}
#tab-highscore .ahs-table thead th:nth-child(4) {width:94px;text-align:right;}
#tab-highscore .ahs-table thead th:nth-child(5) {width:120px;text-align:right;}
#tab-highscore .ahs-table td,#tab-highscore .ahs-table tbody th {padding:14px 12px;border-bottom:1px solid #b89acc13;}
#tab-highscore .ahs-table tbody tr:nth-child(even) {background:#ad8ccb03;}
#tab-highscore .ahs-table tbody tr:hover {background:#b390c10a;}
#tab-highscore .ahs-table .ahs-my-row {background:#c7a85f0c;box-shadow:inset 2px 0 #dbb97b;}
#tab-highscore .ahs-rank {text-align:center;font:18px Georgia;color:#bca987;}
#tab-highscore .ahs-top-rank {display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #c1a47750;border-radius:50%;background:#c1a4770c;color:#e4c98b;}
#tab-highscore .ahs-player {display:flex;gap:12px;align-items:center;text-align:left;min-width:0;}
#tab-highscore .ahs-player>img {width:36px;height:36px;object-fit:cover;border:1px solid #9578b755;border-radius:50%;flex-shrink:0;}
#tab-highscore .ahs-player>div {min-width:0;}
#tab-highscore .ahs-player b {font:normal 16px/1.3 Georgia;color:#ded1be;overflow-wrap:anywhere;}
#tab-highscore .ahs-player em {font:6px/1 Arial;font-style:normal;color:#aedbc9;margin-left:6px;vertical-align:middle;}
#tab-highscore .ahs-table small {display:block;color:#95899f;font:9px/1.5 Arial;font-weight:normal;margin-top:4px;}
#tab-highscore .ahs-table-score {font:24px Georgia;color:#e9c685;text-align:right;font-variant-numeric:tabular-nums;}
#tab-highscore .ahs-table-score small {font-size:6px;letter-spacing:.14em;}
#tab-highscore .ahs-games,#tab-highscore .ahs-date {text-align:right;color:#a99ab4;font-size:11px;}
#tab-highscore .ahs-empty,#tab-highscore .ahs-loading {text-align:center;padding:45px 20px;border:1px solid #c6a46f25;background:radial-gradient(ellipse at top,#51416823,#0c0a1499 80%);border-radius:5px;color:#b7a8c0;}
#tab-highscore .ahs-empty>span,#tab-highscore .ahs-loading>span {display:inline-block;font:38px Georgia;color:#d9b983;text-shadow:0 0 23px #b791d650;margin-bottom:12px;}
#tab-highscore .ahs-loading {margin:20px 0;}
#tab-highscore .ahs-loading>span {animation:ahsOrbit 8s linear infinite;}
#tab-highscore .ahs-empty h3 {font:normal 25px/1.3 Georgia;color:#e6d6bd;margin:0;}
#tab-highscore .ahs-empty p {font-size:12px;margin:12px 0 20px;}
#tab-highscore .ahs-rules {font:10px/1.85 Arial;color:#988aa4;margin:20px 0 5px;max-width:840px;}
#tab-highscore .ahs-sr {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#tab-highscore:not(.active) *,body:not(.arc-hall-active) #tab-highscore * {animation-play-state:paused!important;}
@keyframes ahsOrbit {to{transform:rotate(360deg);}}
@keyframes ahsCrown {0%,100%{transform:translateY(0);}50%{transform:translateY(-5px);}}
@keyframes ahsSpark {0%,100%{transform:translateY(0);opacity:.2;}50%{transform:translateY(-14px);opacity:.85;}}
/* The phone keeps three distinct podiums and a single vertical hall scroller. */
body.arc-hall-mobile #tab-highscore .ahs-head {padding:0 0 15px;}
body.arc-hall-mobile #tab-highscore .ahs-kicker {font-size:8px;margin-bottom:10px;}
body.arc-hall-mobile #tab-highscore h2 {font-size:37px;}
body.arc-hall-mobile #tab-highscore h2 span {font-size:17px;margin-top:5px;}
body.arc-hall-mobile #tab-highscore .ahs-intro {font-size:10px;margin-top:7px;}
body.arc-hall-mobile #tab-highscore .ahs-seal {flex-basis:92px;height:92px;}
body.arc-hall-mobile #tab-highscore .ahs-seal>span {font-size:31px;}
body.arc-hall-mobile #tab-highscore .ahs-seal small {font-size:5px;}
body.arc-hall-mobile #tab-highscore .ahs-toolbar {padding:10px 0;}
body.arc-hall-mobile #tab-highscore .ahs-filters {gap:12px;}
body.arc-hall-mobile #tab-highscore select {width:164px;font-size:12px;min-height:42px;}
body.arc-hall-mobile #tab-highscore .ahs-podiums {gap:14px;padding:35px 4px 22px;max-width:760px;}
body.arc-hall-mobile #tab-highscore .ahs-podium {min-height:235px;padding:21px 9px 22px;border-radius:60px 60px 7px 7px;}
body.arc-hall-mobile #tab-highscore .ahs-podium::before {border-radius:55px 55px 4px 4px;inset:5px;}
body.arc-hall-mobile #tab-highscore .ahs-place-1 {min-height:259px;}
body.arc-hall-mobile #tab-highscore .ahs-portrait {width:56px;height:56px;margin-bottom:12px;}
body.arc-hall-mobile #tab-highscore .ahs-place-1 .ahs-portrait {width:68px;height:68px;}
body.arc-hall-mobile #tab-highscore .ahs-portrait i {inset:-8px;}
body.arc-hall-mobile #tab-highscore .ahs-portrait::before {inset:-3px;}
body.arc-hall-mobile #tab-highscore .ahs-portrait>b {width:22px;height:22px;left:calc(50% - 11px);font-size:12px;}
body.arc-hall-mobile #tab-highscore .ahs-honor {font-size:7px;letter-spacing:.1em;margin:19px 0 5px;}
body.arc-hall-mobile #tab-highscore .ahs-podium h3 {font-size:16px;}
body.arc-hall-mobile #tab-highscore .ahs-podium-score {font-size:29px;margin-top:10px;}
body.arc-hall-mobile #tab-highscore .ahs-place-1 .ahs-podium-score {font-size:36px;}
body.arc-hall-mobile #tab-highscore .ahs-podium-score>span {font-size:6px;margin-top:4px;}
body.arc-hall-mobile #tab-highscore .ahs-podium-meta {font-size:8px;margin:8px 0 5px;}
body.arc-hall-mobile #tab-highscore .ahs-podium-base {height:19px;font-size:6px;}
body.arc-hall-mobile #tab-highscore .ahs-crown svg {width:47px;height:37px;}
body.arc-hall-mobile #tab-highscore .ahs-place-1 .ahs-crown {top:-30px;}
body.arc-hall-mobile #tab-highscore .ahs-own {padding:13px 15px;gap:12px;margin-bottom:24px;}
body.arc-hall-mobile #tab-highscore .ahs-own b {font-size:16px;}
body.arc-hall-mobile #tab-highscore .ahs-own p {font-size:10px;}
body.arc-hall-mobile #tab-highscore .ahs-own strong {font-size:27px;}
body.arc-hall-mobile #tab-highscore .ahs-list-head h3 {font-size:22px;}
body.arc-hall-mobile #tab-highscore .ahs-date {display:none;}
body.arc-hall-mobile #tab-highscore .ahs-table th,body.arc-hall-mobile #tab-highscore .ahs-table td {padding:12px 9px;}
body.arc-hall-mobile #tab-highscore .ahs-player b {font-size:15px;}
@media(max-width:800px){
  #tab-highscore .ahs-games,#tab-highscore .ahs-date {display:none;}
  #tab-highscore .ahs-table thead th:first-child {width:49px;}
  #tab-highscore .ahs-table thead th:nth-child(3) {width:92px;}
}
@media(max-width:620px){
  #tab-highscore .ahs-toolbar {gap:10px;flex-wrap:wrap;}
  #tab-highscore .ahs-filters {flex:1;}
  #tab-highscore .ahs-filters label {flex:1;}
  #tab-highscore .ahs-own {flex-wrap:wrap;}
  #tab-highscore .ahs-own .btn {margin-left:auto;}
  #tab-highscore .ahs-seal {display:none;}
}
@media(prefers-reduced-motion:reduce){#tab-highscore * {animation:none!important;transition:none!important;}}
