/* trial.css */

:root{color-scheme:dark;--bg:#080f17;--panel:#0b1722;--ink:#edf5f9;--muted:#a4b7c4;--accent:#b9f56b;--cyan:#75deec;--line:#b7d3e222;--mono:Consolas,"SFMono-Regular",monospace;font-family:"Yu Gothic UI","Meiryo",system-ui,sans-serif;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,a,input{font:inherit}button,a{touch-action:manipulation}button{color:inherit;background:#172532;border:1px solid var(--line);border-radius:6px;padding:11px 17px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}button:hover{background:#223746;border-color:#9eb4c85e}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}a{color:inherit}button small{color:var(--muted)}[hidden]{display:none!important}kbd{font:11px var(--mono);border:1px solid currentColor;border-radius:4px;padding:4px 7px;opacity:.65;white-space:nowrap}p{line-height:1.8}button.text-button{padding:5px 0;background:transparent;border:0;color:var(--cyan);font-size:12px}.subtle{font-size:12px;color:var(--muted)}.eyebrow{font:11px var(--mono);letter-spacing:.16em;color:var(--cyan)}.eyebrow i{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:9px;box-shadow:0 0 12px #b9f56b99}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px;border-bottom:1px solid var(--line);background:#081019;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand span{margin-left:8px;font:10px var(--mono);letter-spacing:.12em;border-left:1px solid #708594;padding-left:16px;color:var(--muted)}nav{display:flex;gap:9px}nav button{background:transparent;border:0;font-size:12px}.notice{position:relative;z-index:5;padding:9px 30px;background:#3b301b;color:#ffe7b8;font-size:12px}.arena{height:calc(100svh - 70px);min-height:660px;max-height:1100px;position:relative;overflow:hidden;isolation:isolate;background:#0a1420}.arena:focus{outline:none}#scene{position:absolute;inset:0;width:100%;height:100%}.vignette{position:absolute;inset:0;background:linear-gradient(90deg,#07101af5 0%,#08111dc9 36%,#08131c16 68%,#080f1777),linear-gradient(0deg,#070f18 0%,transparent 32%);pointer-events:none}.lobby{position:absolute;inset:0;padding:clamp(30px,5vh,65px) clamp(30px,6vw,100px);display:flex;align-items:center}.lobby-copy{width:510px;max-width:55%;position:relative}.lobby h1{font-size:clamp(40px,4.5vw,68px);font-weight:800;line-height:1.25;letter-spacing:.025em;margin:22px 0}.lobby h1 em{font-style:normal;color:var(--accent)}.intro{font-size:14px;color:#c7d6df;margin:0 0 23px}.course-summary{display:flex;gap:22px;font-size:11px;color:var(--muted);margin-bottom:24px}.course-summary span+span{border-left:1px solid var(--line);padding-left:22px}.course-summary b{font:600 24px var(--mono);color:var(--ink);margin-right:6px}.course-summary span:last-child b{font:600 14px system-ui}.primary{display:flex;align-items:center;justify-content:space-between;gap:25px;background:var(--accent);color:#101b12;border:1px solid var(--accent);border-radius:6px;padding:17px 22px;font-weight:700;text-decoration:none;min-height:52px}.primary:hover{background:#d3ff96;color:#101b12;border-color:#d3ff96}.lobby .primary{width:min(100%,390px)}#ready-status{margin:9px 0 16px;min-height:21px}.play-options{display:flex;gap:20px;font-size:12px;color:#c5d4dd}.play-options label,.rank-choice{display:flex;align-items:center;gap:6px;cursor:pointer}input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.personal{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:17px;margin-top:22px;flex-wrap:wrap}.personal>span{font-size:11px;color:var(--muted)}.personal strong{font:24px var(--mono);letter-spacing:.01em}.personal small{font-size:10px;color:#94acb9}.account-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px;font-size:11px;color:var(--muted)}.rank-choice{font-size:12px;color:var(--cyan);margin-top:8px}.rules-brief{font-size:11px;color:#93aaba;margin-top:16px}.subject{margin-left:auto;align-self:flex-end;margin-bottom:40px;width:260px;text-align:right;text-shadow:0 2px 9px #000}.subject>span{font:10px var(--mono);color:var(--cyan);letter-spacing:.17em}.subject strong{display:block;font:700 28px var(--mono);letter-spacing:.05em;margin-top:10px}.subject p{font-size:12px;color:#bed1dc;margin:7px 0}.subject i{display:block;background:linear-gradient(90deg,transparent,var(--cyan));height:1px;margin:16px 0}.subject small{font:9px var(--mono);color:var(--muted)}.course-footer{position:absolute;bottom:18px;left:30px;right:30px;display:flex;justify-content:space-between;font:10px var(--mono);color:#97afbf;gap:12px}
.arena.is-playing .vignette{background:linear-gradient(0deg,#060e18f5 0%,#070e1680 34%,transparent 66%)}.play{position:absolute;inset:0;pointer-events:none}.play button{pointer-events:auto}.telemetry{position:absolute;top:22px;left:clamp(20px,5vw,80px);right:clamp(20px,5vw,80px);display:flex;gap:36px;align-items:center}.telemetry>div{min-width:92px}.telemetry small{display:block;font:10px var(--mono);letter-spacing:.16em;color:var(--muted);margin-bottom:7px}.telemetry strong{font:600 29px var(--mono);font-variant-numeric:tabular-nums}.telemetry .time strong{font-size:38px;color:var(--accent)}.telemetry .time{min-width:185px}.telemetry button{margin-left:auto;font-size:12px;background:#0b172acc}.telemetry .combo{position:relative;min-width:80px;color:var(--accent)}.combo i{position:absolute;width:var(--fill,0%);left:0;bottom:-8px;height:2px;background:var(--accent);box-shadow:0 0 13px var(--accent);transition:width .15s}.combo[data-tier="2"],.combo[data-tier="3"]{color:#66deff;text-shadow:0 0 20px #35c8ff99}.combo[data-tier="4"]{color:#f3c96a;text-shadow:0 0 22px #ff9a39}.run-status{position:absolute;top:95px;right:clamp(20px,5vw,80px);font-size:11px;color:#a7c7d7}.input-area{position:absolute;top:52%;left:50%;transform:translateX(-50%);width:min(900px,calc(100% - 56px));padding:18px 27px 0;background:linear-gradient(150deg,#0b1c29f5,#08121df0);border:1px solid #84bdd137;border-radius:10px;box-shadow:0 16px 65px #0005;pointer-events:auto}.prompt-heading{display:flex;justify-content:space-between;font:10px var(--mono);letter-spacing:.08em;color:#96b6c8;margin-bottom:14px}.prompt{height:52px;display:flex;justify-content:center;align-items:center;white-space:nowrap;font-size:38px;font-weight:700;letter-spacing:.035em}.kana{height:30px;text-align:center;font-size:16px;color:#c2d1dd;white-space:nowrap;line-height:30px}.romaji-window{width:100%;overflow:hidden;margin-top:8px;height:40px}.romaji{display:flex;align-items:center;justify-content:center;min-width:100%;width:max-content;height:40px;white-space:pre;font:25px var(--mono);letter-spacing:.055em;color:#e3edf3}.romaji #typed{color:#698593}.romaji mark{background:var(--accent);color:#092318;border-radius:3px;min-width:.63em;box-shadow:0 0 0 2px #b9f56b29;text-align:center}.input-area.mistake{border-color:#ff718fa6}.input-area.mistake mark{background:#ff8ca6;box-shadow:0 0 18px #ff567844}.input-help{height:22px;margin:6px 0 10px;text-align:center;font-size:12px;color:#94b1c3}.input-area.mistake .input-help{color:#ffa2b7}.race{border-top:1px solid var(--line);padding:12px 0 4px}.race>div{display:flex;align-items:center;gap:13px;margin-bottom:9px;font:10px var(--mono)}.race>div>span{width:44px;color:var(--accent)}.race>div:nth-child(2)>span{color:var(--cyan)}.race b{width:32px;text-align:right;font-weight:400;color:#d7e7ef}.track{height:6px;flex:1;background:#203241;border-radius:4px;overflow:hidden}.track i{display:block;width:0;height:100%;background:var(--accent);transition:width .07s linear}.track.ghost i{background:var(--cyan)}.race p{height:18px;margin:0 0 6px;font-size:10px;color:var(--muted);text-align:right}
.result{position:absolute;inset:0;display:grid;place-items:center;overflow:auto;padding:22px;background:#06101bdc;backdrop-filter:blur(8px)}.result-card{width:min(670px,100%);padding:26px 34px;border:1px solid #9dc0d344;border-radius:12px;background:linear-gradient(135deg,#142736,#09131ee8);box-shadow:0 30px 80px #0006}.result-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.result-heading #best-badge{font-size:11px;color:var(--accent)}.result h2{font-size:16px;margin:18px 0 3px;font-weight:500;color:#c2d4df}.result-time{font:600 clamp(42px,6vw,68px)/1.15 var(--mono);color:var(--accent);letter-spacing:-.04em;font-variant-numeric:tabular-nums}.result-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin:23px 0 20px;gap:15px}.result-metrics>div+div{border-left:1px solid var(--line);padding-left:18px}.result-metrics span{display:block;font:10px var(--mono);color:var(--muted);margin-bottom:5px}.result-metrics strong{font:30px var(--mono)}.lap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.lap-grid>div{border:1px solid var(--line);padding:10px 12px;background:#102230}.lap-grid small{display:block;font:10px var(--mono);color:var(--muted);margin-bottom:6px}.lap-grid strong{font:18px var(--mono)}.lap-grid span{font:11px var(--mono);color:var(--cyan);margin-left:10px}.lap-grid .best{border-color:#b9f56b5c}.ghost-result{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;color:#c1d6e2;line-height:1.8}.ghost-result strong{color:var(--accent);margin-right:8px}.submit-status{font-size:11px;color:var(--muted);min-height:20px;margin:12px 0}.result-actions{display:grid;grid-template-columns:1fr auto auto;gap:9px}.result-actions button{font-size:12px}.result-actions .primary{padding:14px 15px;gap:12px}.result-actions kbd{font-size:9px}.full-teaser{display:flex;width:100%;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;margin-top:20px;padding:16px 0 0;justify-content:space-between;gap:10px;text-align:left;font-size:10px;color:var(--muted)}.full-teaser b{color:var(--cyan)}
dialog{color:var(--ink);background:linear-gradient(130deg,#132634,#08131d);border:1px solid #7299b452;border-radius:12px;box-shadow:0 30px 90px #000a;padding:32px;max-height:calc(100svh - 48px);overflow:auto;width:min(700px,calc(100% - 32px))}dialog::backdrop{background:#030a14d9;backdrop-filter:blur(6px)}dialog h2{font-size:25px;line-height:1.4;margin:12px 0 20px}dialog p{font-size:13px;color:#b8cddc}.compact-dialog{max-width:440px}.dialog-close{position:absolute;right:12px;top:10px;background:transparent;border:0;font-size:25px;line-height:1;padding:6px 10px}.pause-actions{display:grid;gap:10px}.pause-actions button{display:flex;justify-content:space-between}.pause-actions kbd{font-size:9px}#auth-form label{display:grid;gap:7px;margin:18px 0;font-size:12px;color:var(--muted)}#auth-form input{width:100%;padding:12px;border:1px solid #7292a554;border-radius:4px;background:#050f19;color:var(--ink)}.auth-actions{display:flex;gap:12px}.auth-actions button{flex:1;justify-content:center;padding:13px}#auth-error{color:#ff97ac;font-size:12px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}th{text-align:left;color:var(--muted);font-size:11px;font-weight:400}th,td{padding:13px 9px;border-bottom:1px solid var(--line)}td:nth-child(3),td:nth-child(4){font-family:var(--mono)}tr.mine{background:#b9f56b12;color:var(--accent)}tr.podium td:first-child{color:#f4d084}#board-status{color:var(--cyan)}.board-actions{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:18px}.board-actions button{font-size:12px;padding:8px 14px}.board-actions span{font:12px var(--mono)}#board-mine{font-size:12px;color:var(--accent)}.full-dialog{max-width:760px}.full-dialog>p:not(.eyebrow){max-width:610px}.full-dialog h2{font-size:32px}.full-showcase{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.full-showcase figure{margin:0;background:#07121d;border:1px solid var(--line);border-radius:8px;overflow:hidden}.full-showcase img{width:100%;height:180px;object-fit:contain;display:block}.full-showcase figcaption{padding:10px;text-align:center;font-size:11px;color:var(--muted)}.full-features{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.full-features span{background:#193343;padding:7px 10px;font-size:11px;border-radius:4px}.full-dialog .primary{display:inline-flex;font-size:13px}
@media(max-height:800px) and (min-width:851px){.arena{min-height:600px}.lobby{padding-top:24px;padding-bottom:34px}.lobby h1{font-size:48px;margin:14px 0}.intro{margin-bottom:16px}.course-summary{margin-bottom:17px}.personal{margin-top:14px;padding-top:12px}.input-area{top:49%;padding-top:13px}.prompt{height:46px;font-size:34px}.result-card{padding:20px 28px}.result-time{font-size:52px}.result-metrics{margin:15px 0}.result h2{margin-top:13px}.full-teaser{margin-top:12px;padding-top:12px}}
@media(max-width:850px){.topbar{padding:0 18px;height:62px}.brand span{display:none}.brand img:first-child{width:28px;height:28px}.brand img:nth-child(2){width:137px}nav{gap:0}nav button{font-size:11px;padding:8px}.arena{height:calc(100svh - 62px);min-height:680px}.lobby{padding:35px 28px 55px;align-items:center}.lobby-copy{max-width:68%;width:440px}.lobby h1{font-size:44px}.subject{width:150px;margin-bottom:0}.subject strong{font-size:18px}.subject small{display:none}.course-summary{gap:12px}.course-summary span+span{padding-left:12px}.course-summary b{font-size:22px}.telemetry{left:24px;right:24px;gap:20px}.telemetry>div{min-width:70px}.telemetry .time{min-width:155px}.telemetry .time strong{font-size:30px}.telemetry strong{font-size:24px}.telemetry .combo{min-width:60px}.telemetry button{padding:9px;font-size:0}.telemetry button kbd{font-size:10px}.input-area{top:50%}.prompt{font-size:31px}.romaji{font-size:23px}.result-actions{grid-template-columns:1fr 1fr}.result-actions .primary{grid-column:span 2}.course-footer{font-size:9px;left:20px;right:20px}}
@media(max-width:560px){.brand{gap:6px}.brand img:nth-child(2){width:108px}.brand img:first-child{width:24px;height:24px}.topbar{padding:0 10px}nav button{font-size:10px;padding:7px}#full-open{max-width:80px}.arena{min-height:730px}.lobby{padding:30px 22px 50px;align-items:flex-start}.lobby-copy{max-width:100%;width:100%;z-index:1}.vignette{background:linear-gradient(90deg,#07101af9,#08111dbb)}.lobby h1{font-size:42px}.intro{font-size:12px}.eyebrow{font-size:9px}.lobby .primary{max-width:360px}.subject{display:none}.personal{gap:10px}.personal small{width:100%}.course-footer{display:block;line-height:1.8}.course-footer>span{display:block}.telemetry{top:20px;left:18px;right:18px;gap:14px;flex-wrap:wrap}.telemetry>div{min-width:65px}.telemetry .time{min-width:145px}.telemetry small{font-size:8px}.telemetry .combo{position:absolute;top:74px;left:0}.telemetry button{position:absolute;right:0;top:72px}.run-status{top:126px;right:18px}.input-area{width:calc(100% - 24px);padding:14px 14px 0;top:49%}.prompt{font-size:25px;height:45px;letter-spacing:0}.kana{font-size:13px}.romaji{font-size:20px}.prompt-heading{font-size:8px}.input-help{font-size:11px}.result{padding:12px}.result-card{padding:20px}.result-metrics strong{font-size:24px}.result-metrics span{font-size:8px}.result-metrics>div+div{padding-left:10px}.result-heading{flex-wrap:wrap}.result-time{font-size:48px}.result-actions button{padding:12px}.full-teaser{display:block}.full-teaser b{display:block;margin-top:6px}dialog{padding:25px 20px}.full-showcase{gap:7px}.full-showcase img{height:130px}.full-showcase figcaption{font-size:9px;padding:8px 3px}.board-dialog{padding:30px 13px}.board-dialog h2{font-size:21px}.board-actions{gap:7px}.board-actions button{padding:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:560px){.lap-grid span{display:block;margin:6px 0 0;line-height:1.4}}
.profile-fields label{display:grid;gap:7px;margin:18px 0 8px;font-size:12px;color:var(--muted)}
.profile-fields input,.profile-fields textarea{width:100%;padding:12px;border:1px solid #7292a554;border-radius:4px;background:#050f19;color:var(--ink);font:inherit}
.profile-fields textarea{resize:vertical;min-height:78px;max-height:180px;line-height:1.6}
.profile-fields textarea[aria-invalid=true]{border-color:#ff97ac}
.field-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;color:var(--muted);font-size:11px}
.field-meta output{white-space:nowrap;font-variant-numeric:tabular-nums}
.field-meta .over-limit,#profile-error{color:#ff97ac}
#profile-save{width:100%;justify-content:center}
.ranking-player{white-space:normal;min-width:145px;max-width:255px;overflow-wrap:anywhere;line-height:1.5}
.ranking-player strong{display:block;font-weight:600}
.ranking-comment{display:block;font-size:11px;font-weight:400;line-height:1.7;color:var(--muted);margin-top:4px}
.ghost-challenge{font-size:11px;padding:9px 11px;color:var(--cyan);border-color:#64d7e366;white-space:nowrap}
#board-dialog{width:min(900px,calc(100% - 32px))}
#ghost-reset{font-size:11px;margin-left:auto;white-space:nowrap}
.personal #ghost-note{overflow-wrap:anywhere}
.race .ghost-opponent{text-align:left;color:var(--cyan);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.ghost-result{overflow-wrap:anywhere}

/* Keep every history field readable without horizontal scrolling. */
#history-dialog table{table-layout:fixed;white-space:normal}
#history-dialog th:first-child{width:38%}
#history-dialog th:nth-child(2){width:24%}
#history-dialog th:nth-child(3),#history-dialog th:nth-child(4){width:10%}
#history-dialog th:last-child{width:18%}
#history-dialog td{overflow-wrap:anywhere;vertical-align:top}
#history-dialog .history-number{font:12px/1.6 var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
#result-input-counts{margin:0;font:12px/1.7 var(--mono);color:var(--report-muted,#b8cddc)}
@media(max-width:560px){
  #history-dialog table,#history-dialog tbody{display:block;width:100%}
  #history-dialog thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #history-rows tr{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px 14px;padding:14px 10px;margin-top:12px;border:1px solid var(--line);background:#08131db3}
  #history-rows td{display:block;min-width:0;padding:0;border:0}
  #history-rows td:first-child{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:10px;font-size:12px;line-height:1.7}
  #history-rows td::before{content:attr(data-label);display:block;font:10px/1.6 var(--mono);color:var(--muted);margin-bottom:4px}
  #history-dialog .history-number{font-size:13px}
}

/* Separate competitions; the selected board is visible before its records. */
.ranking-modes{display:flex;gap:10px;margin:16px 0 22px;flex-wrap:wrap}
.ranking-next-goal{display:block;margin:12px 0 0;white-space:normal;border-color:#c9a766;color:#ead4a5;font-size:13px;min-height:44px;}
.ranking-modes button{flex:1;min-width:180px;justify-content:center;font-size:15px;padding:15px 18px}
.ranking-modes button[aria-pressed="true"]{color:#e8fcff;border-color:var(--cyan);background:linear-gradient(140deg,#123b4e,#112232);box-shadow:inset 0 1px #b2efff33,0 0 20px #49dfee12}
@media(min-width:700px) and (max-height:800px){
  #board-dialog[open]{padding:18px 26px}
  #board-dialog .ranking-modes{flex-shrink:0;margin:8px 0 12px}
  #board-dialog .ranking-modes button{padding:10px 14px;font-size:14px}
  #board-dialog #board-rows tr.podium>td{padding-top:6px;padding-bottom:6px}
  #board-dialog .board-actions{margin-top:10px}
}
/* Save status stays in the lobby; no distracting network badge in the playfield. */
.save-summary{border-block:1px solid #c4a56b38;padding:12px 0;margin-block:16px;color:#b7cdc8;font-size:13px;line-height:1.65}
.save-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#ebd5a4}
.save-summary small{display:block;font-size:12px;max-width:65ch}
.save-summary button{flex:none}
.board-passage-field {display:grid;gap:8px;margin:14px 0;color:var(--gold,#dfc28c);min-width:0;}
.board-passage-field[hidden] {display:none;}
.board-passage-field select {width:100%;min-width:0;max-width:100%;padding:10px;background:#10202a;color:#edf1ef;border:1px solid #736648;font:inherit;}
.board-passage-field small {color:#bec9cb;}

/* web-service-links.css */
.web-service-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:14px 0 4px;color:#b9c9d7;font:12px/1.7 'Yu Gothic UI',Meiryo,sans-serif}.web-service-links a{color:#a9dce1;text-underline-offset:3px}.web-service-links b{font-size:11px;letter-spacing:.04em;font-weight:600;color:#b6dca7}.lobby-tools{flex-wrap:wrap}#backup-dialog textarea{width:100%;font-size:13px;resize:vertical;min-height:74px;background:#07101b;color:#cde4eb;border:1px solid #426074;padding:10px}#backup-status{overflow-wrap:anywhere}#backup-dialog input[type=file]{max-width:100%;font-size:12px}#backup-settings{width:auto}#backup-dialog label{overflow-wrap:anywhere}
.profile-fields label.backup-settings-row{display:flex;align-items:center;gap:10px;line-height:1.7}.profile-fields label.backup-settings-row input{display:inline-block;flex:0 0 18px;width:18px;height:18px;margin:0;padding:0}

.topbar .header-tools{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.topbar .header-tools .ui-language-switch{margin-left:0}
.topbar:has(>.header-tools)>.header-actions{flex-shrink:0}
@media(max-width:1200px){.topbar:has(>.header-actions):has(>.header-tools){height:auto;min-height:72px;flex-wrap:wrap;gap:8px 16px;padding-block:10px}.topbar:has(>.header-tools)>.header-actions{order:2;flex:1 0 100%;width:100%;flex-wrap:wrap;justify-content:flex-end}.topbar:has(>.header-actions)>.header-tools{order:1}}
.topbar .official-x-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 10px;box-sizing:border-box;color:#dfc690;text-decoration:none;border:1px solid #bca36b55;border-radius:4px;background:transparent;font:600 12px/1.4 var(--font-ui,system-ui,sans-serif);white-space:nowrap}
.official-x-link>svg{flex:none}.topbar .official-x-link:hover{color:#f7e7be;background:#d5b57612;border-color:#dfc690}.topbar .official-x-link:focus-visible{outline:2px solid #f1d492;outline-offset:3px}
@media(max-width:600px){.topbar .header-tools{gap:6px}.topbar .official-x-label{display:none}.topbar .official-x-link{padding:8px}.mobile-world .header-tools .ui-language-switch button span{display:none}.mobile-world .header-tools .ui-language-switch button{min-width:36px;min-height:36px}}

/* trial-experience.css */
/* Trial experience layout: a fixed combat HUD, flowing menus and local effects. */
.arena{height:calc(100svh - 70px);min-height:480px;max-height:none}
.lobby{display:grid;grid-template-columns:minmax(0,560px) 1fr;grid-template-rows:1fr auto;gap:12px 30px;align-items:center;overflow:auto;padding:26px clamp(26px,5vw,80px) 16px}
.lobby-copy{width:100%;max-width:none}.lobby h1{font-size:clamp(38px,4vw,60px);margin:14px 0}
.intro{margin-bottom:14px}.course-summary{margin-bottom:16px}.personal{margin-top:14px;padding-top:12px;gap:12px}
.course-footer{position:static;grid-column:1/-1;flex-wrap:wrap;line-height:1.5}.subject{width:auto;margin:0 0 20px}
.practice-options{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px;font-size:12px}
select{color:var(--ink);background:#122330;border:1px solid #7594aa66;border-radius:5px;padding:8px;font:inherit;max-width:100%}
.practice-options select{flex:1;min-width:180px}.goal-description{font-size:10px;color:var(--muted);margin:5px 0 0;line-height:1.5}
.rules-brief{margin-bottom:0}.lobby .keyboard-hints{gap:8px}.lobby .keyboard-hints kbd{padding:2px 4px}
.input-area{top:auto;bottom:22px;width:min(900px,calc(100% - 64px));padding:14px 24px 0}
.prompt-heading{margin-bottom:8px}.prompt{height:48px}.kana{overflow:hidden}
.boss-integrity{display:flex;align-items:center;gap:12px;font:10px var(--mono);color:var(--cyan);height:18px;margin-bottom:2px}
#boss-segments{display:flex;gap:4px;width:100px}#boss-segments i{width:22px;height:3px;background:var(--cyan);transition:background .25s,box-shadow .25s}
#boss-segments i.broken{background:#ffb67566;box-shadow:0 0 6px #ffab5130}
.boss-integrity[data-stage="2"]{color:#ffd384}.boss-integrity[data-stage="3"]{color:#ffac9a}.boss-integrity[data-stage="4"]{color:var(--accent)}
.boss-integrity.stage-pulse{animation:stage-pulse .65s ease-out}@keyframes stage-pulse{0%{text-shadow:0 0 14px currentColor}100%{text-shadow:none}}
.input-help{margin:4px 0;height:20px;line-height:20px}.finish-progress{margin:0 0 8px;min-height:16px;font:11px/16px var(--mono);color:#c6d7e3;text-align:center}
#after-finish{color:#637583}#finish-marker{color:#ffda91;font-weight:700;text-shadow:0 0 6px #ffc85780}
.race{height:99px;padding:9px 0 0}.race>div{margin-bottom:8px}.race .ghost-opponent{height:14px;line-height:14px;margin-bottom:7px}
.race #ghost-row[hidden]{display:flex!important;visibility:hidden}.race #ghost-opponent[hidden]{display:block!important;visibility:hidden}
.race #race-gap{margin:0;height:15px;line-height:15px}
.finish-cue{position:absolute;inset:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;padding:0 15px 32px;pointer-events:none;text-shadow:0 3px 14px #000}
.finish-cue>strong{font:700 clamp(36px,5vw,62px)/1.2 var(--mono);color:var(--accent)}.finish-cue>span{font:12px var(--mono);letter-spacing:.25em;margin:8px 0 18px}
.finish-cue>div{display:flex;gap:12px;pointer-events:auto}.finish-cue button{background:#10212beb}
.result.is-resolving{visibility:hidden;pointer-events:none}
.result{align-items:safe center;padding:18px}.result-card{padding:22px 28px}.result h2{margin-top:12px}.result-time{font-size:54px}.result-metrics{margin:14px 0}
.ghost-result{padding:12px 15px;margin-top:12px;border:1px solid #7099b94d;border-radius:7px;background:#071727}
.ghost-result strong{display:block;font-size:22px;line-height:1.4;margin-bottom:5px}.ghost-result>span{display:block;font:12px/1.7 var(--mono)}
.ghost-result[data-outcome="ghost"] strong{color:#ffca8c}.ghost-result[data-outcome="draw"] strong{color:var(--cyan)}
.lap-comparison{display:block;margin:8px 0 0;font:11px/1.5 var(--mono);color:var(--muted)}.lap-comparison[data-kind="faster"]{color:var(--accent)}.lap-comparison[data-kind="slower"]{color:#ffc69d}
.result-history{font-size:11px;color:var(--muted);margin:9px 0}.result #result-history-open{margin-top:7px}.result .full-teaser{margin-top:10px;padding-top:10px}.result .keyboard-hints{margin-bottom:0}
#history-dialog{width:min(780px,calc(100% - 32px))}#history-summary{color:var(--accent)}#history-rows td{font-variant-numeric:tabular-nums;white-space:nowrap}
.weapon-demo{margin:24px 0;padding:16px;border:1px solid #8cbdcf44;border-radius:8px;background:#091724}
.demo-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}.demo-heading h3{font-size:15px;margin:0}.demo-heading span{font-size:10px;color:var(--muted)}
#demo-scene{display:block;width:100%;height:320px;background:#08101a;border-radius:5px}.demo-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px;font-size:12px}.demo-controls .primary{padding:10px 16px;min-height:40px}.demo-controls select{flex:1}.weapon-demo p{margin-bottom:0}
@media(max-height:740px) and (min-width:851px){
  .lobby{padding-top:14px;gap:10px 24px}.lobby h1{font-size:36px;line-height:1.2;margin:8px 0 12px}.lobby h1 br{display:none}.intro{display:none}.eyebrow{margin:6px 0}
  .course-summary{margin-bottom:12px}.course-summary b{font-size:20px}.lobby .primary{min-height:44px;padding:11px 18px}.lobby .keyboard-hints{margin:8px 0}
  #ready-status{margin:5px 0 8px;min-height:18px;font-size:10px;line-height:1.6}.personal{margin-top:10px;padding-top:8px}.personal strong{font-size:20px}.practice-options{margin-top:8px}.practice-options select{padding:5px}
  .account-line{margin-top:8px}.rules-brief{margin-top:8px}.lobby-copy{max-width:540px}
  .telemetry{top:14px;gap:24px}.telemetry .time strong{font-size:32px}.telemetry strong{font-size:25px}.run-status{top:67px}
  .input-area{bottom:12px;padding:10px 20px 0}.prompt-heading{margin-bottom:5px}.prompt{height:38px}.kana{height:24px;line-height:24px;font-size:14px}.romaji-window{margin-top:3px;height:32px}.romaji{height:32px;font-size:23px}.race{height:89px;padding-top:7px}.input-help{font-size:11px;margin:2px 0}.finish-progress{margin-bottom:5px}
  .result-card{padding:12px 24px}.result-time{font-size:42px}.result h2{margin-top:7px;font-size:14px}.result-metrics{margin:10px 0}.result-metrics strong{font-size:24px}.lap-grid>div{padding:8px 10px}.lap-grid small{margin-bottom:4px}.lap-comparison{margin-top:5px;font-size:10px}.result .keyboard-hints{display:none}
  .ghost-result{padding:8px 12px;margin-top:8px}.ghost-result strong{font-size:19px}.result .submit-status{margin:7px 0;font-size:10px;line-height:1.5}.result-actions .primary{padding:10px 15px;min-height:42px}.result .full-teaser{padding-top:7px;margin-top:5px}.result-history{margin:6px 0}
}
@media(max-width:850px){.arena{height:calc(100svh - 62px);min-height:480px}.lobby{grid-template-columns:minmax(0,1fr);padding:24px}.lobby-copy{width:min(540px,100%);max-width:100%}.subject{display:none}.course-footer{grid-column:1}.lobby h1{font-size:40px}.input-area{bottom:14px;width:calc(100% - 36px)}.demo-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.lobby h1{font-size:34px}.lobby{padding:18px}.input-area{top:auto;bottom:10px;width:calc(100% - 20px);padding:10px 12px 0}.prompt{height:38px}.kana{height:24px;line-height:24px;font-size:12px}.romaji-window{height:32px;margin-top:3px}.romaji{height:32px;font-size:21px}.race{height:91px}.prompt-heading{font-size:9px}.finish-progress{font-size:10px}.result{padding:10px}.result-card{padding:16px}.result-time{font-size:42px}.lap-grid{grid-template-columns:1fr}.ghost-result strong{font-size:20px}.demo-controls label{width:100%}#demo-scene{height:280px}}
@media(prefers-reduced-motion:reduce){.boss-integrity.stage-pulse{animation:none}#boss-segments i{transition:none}}
.arena.reduced-effects .boss-integrity.stage-pulse{animation:none}
.lobby-tools{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:12px 0 7px}
.lobby-tools button{font-size:12px}.lobby-tools kbd{font-size:10px;margin-left:4px}
#course-reset{font-size:11px}
#settings-dialog{width:min(480px,calc(100% - 32px))}
.trial-setting{padding:18px 0;border-bottom:1px solid var(--line)}
.trial-setting>label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:10px}
.trial-setting select,.trial-setting input[type=range]{width:100%}
.trial-setting input[type=range]{margin:8px 0 16px;accent-color:var(--accent);cursor:pointer}
.trial-setting output{color:var(--accent);font:600 16px var(--mono);font-variant-numeric:tabular-nums}
.trial-setting .subtle{margin:10px 0 0;line-height:1.7}
.volume-actions{display:flex;align-items:center;gap:18px}.volume-actions button{font-size:12px}
.motion-setting{display:flex;gap:9px;align-items:center;font-size:12px;line-height:1.7;padding:20px 0}
.settings-done{width:100%;justify-content:center}
.board-filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 10px}
.board-filters button{font-size:12px;padding:9px 13px}
.board-filters button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:#b9f56b12}
#board-mine{white-space:pre-line;font-size:12px;line-height:1.8;color:var(--accent)}
.result-standing{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;margin:10px 0;border:1px solid #b9f56b4a;border-radius:7px;background:linear-gradient(110deg,#203124aa,#101e27cc)}
.result-standing strong{display:block;font-size:16px;color:var(--accent)}
.result-standing p{font-size:12px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}
.result-standing small{font-size:10px;color:var(--muted)}
.result-standing button{font-size:12px;flex-shrink:0}
@media(max-height:740px) and (min-width:851px){.lobby-tools{margin:8px 0 5px}.result-standing{padding:7px 11px;margin:7px 0}.result-standing strong{font-size:14px}.result-standing p{font-size:11px;margin:3px 0}.result-standing small{font-size:9px}}
@media(max-width:560px){.result-standing{align-items:flex-start;flex-direction:column;gap:8px}.board-filters button{font-size:11px;padding:8px 10px}}
.result-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0}
.result-history-row .result-history{margin:0}.result .result-history-row button{margin:0;white-space:nowrap;font-size:10px}
#board-dialog[open]{display:flex;flex-direction:column;max-height:calc(100svh - 32px)}
#board-dialog>.table-scroll{flex:1 1 auto;min-height:120px;overflow:auto;scroll-padding-block:40px 8px}

#board-dialog>p,#board-dialog>.board-filters,#board-dialog>.keyboard-hints,#board-dialog>.board-actions{flex-shrink:0}
#board-dialog h2{margin:8px 0}#board-dialog>p{margin:8px 0}#board-dialog .board-filters{margin:10px 0 5px}
#board-dialog .keyboard-hints{margin:7px 0}#board-dialog th{position:sticky;top:0;background:#10202d;z-index:1}
#board-dialog td{padding-top:5px;padding-bottom:5px}
#board-dialog .ghost-challenge{min-height:32px;padding:6px 10px;line-height:18px;scroll-margin-block:4px}
#board-dialog .eyebrow{font-size:9px;line-height:14px;margin:0 0 4px}
#board-dialog h2{font-size:24px;line-height:1.3;margin:4px 0 8px;flex-shrink:0}
#board-dialog #board-meta{font-size:11px;line-height:1.5;margin:4px 0}
#board-dialog>.subtle{font-size:11px;line-height:1.5;margin:6px 0}
#board-dialog #board-status{min-height:0;font-size:11px;line-height:1.5;margin:6px 0}
#board-dialog #board-mine{line-height:1.65;margin:6px 0}
#board-dialog .keyboard-hints{padding:7px 0 0;font-size:10px;line-height:1.5}
#board-dialog th{padding-top:8px;padding-bottom:8px}
@media(max-height:660px) and (min-width:851px){
  .result{padding:9px}.result-card{padding:10px 24px}.result-time{font-size:36px}.result h2{margin-top:3px}
  .result-metrics{margin:7px 0}.result .full-teaser{display:none}
  .result-standing{margin:5px 0;padding:5px 11px}.ghost-result{margin-top:6px;padding:6px 12px}
  .result .submit-status{margin:5px 0}.result-history-row{margin:4px 0}
  #board-dialog{padding:20px 26px}#board-dialog .subtle{font-size:10px;line-height:1.5}
}

/* competition-countdown.css */
/* Shared by all six trial competitions, including the ARROW shadow root.
   Preserve the established READY / 3-2-1 typography; timing lives in each game. */
.countdown {
  position:absolute;
  inset:10% 0 30%;
  z-index:5;
  display:grid;
  align-content:center;
  justify-items:center;
  text-align:center;
  text-shadow:0 5px 45px #000;
  pointer-events:none;
}
.countdown[hidden] { display:none; }
.countdown > span {
  font:800 clamp(40px,6vw,72px)/1.15 TZForge,Consolas,monospace;
  letter-spacing:.14em;
  text-indent:.14em;
  color:#e9ffff;
  text-shadow:0 2px 0 #76b5bb,0 5px 0 #153b46,0 0 30px #6cebed65;
  margin-bottom:8px;
}
.countdown > strong {
  font:800 clamp(100px,16vw,180px)/1.2 Consolas,"SFMono-Regular",monospace;
  color:#f2ffe3;
}

/* keyboard-navigation.css */
/* A visible selection without moving the menu or the typing surface. */
.keyboard-navigation :is(button,a,input,select,textarea,summary):focus {
  outline:3px solid #bafa75!important;outline-offset:3px!important;
}
.keyboard-navigation tr:focus-within {background:#bafa751a;box-shadow:inset 3px 0 #bafa75}
.keyboard-hints {display:flex;flex-wrap:wrap;gap:7px 16px;align-items:center;font-size:11px;line-height:1.9;color:#b8cbd0;margin:12px 0}
.keyboard-hints span {white-space:nowrap}
.keyboard-hints kbd {font:11px ui-monospace,monospace;border:1px solid #91a5af66;border-radius:4px;padding:2px 5px;color:#e6f0e7;background:#101c25;opacity:1}
dialog .keyboard-hints {border-top:1px solid #91a5af33;padding-top:10px}
.keyboard-navigation :is(button,a,input,select,textarea,summary) {scroll-margin:12px}

/* numeric-glyphs.css */
/* Generated from approved 03 / Michroma by design/type-system-concepts-2026-10-12/build.mjs --adopt. */
.forge-number{--circuit-cell:0.821em}
.forge-inner[data-char="0"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.53%200)%22%20d%3D%22M77.813%2048.75C77.813%2041.417%2077.605%2035.375%2077.19%2030.625C76.775%2025.875%2076.006%2022.125%2074.882%2019.375C73.758%2016.625%2072.132%2014.615%2070.005%2013.344C67.878%2012.073%2065.12%2011.26%2061.731%2010.906C58.342%2010.552%2054.175%2010.375%2049.229%2010.375L38.543%2010.375C33.598%2010.375%2029.43%2010.552%2026.041%2010.906C22.652%2011.26%2019.894%2012.073%2017.767%2013.344C15.64%2014.615%2014.015%2016.625%2012.891%2019.375C11.767%2022.125%2010.998%2025.875%2010.582%2030.625C10.168%2035.375%209.96%2041.417%209.96%2048.75L9.96%2051.25C9.96%2058.333%2010.168%2064.208%2010.582%2068.875C10.998%2073.542%2011.767%2077.271%2012.891%2080.063C14.015%2082.854%2015.64%2084.938%2017.767%2086.313C19.894%2087.688%2022.652%2088.583%2026.041%2089C29.43%2089.417%2033.598%2089.625%2038.543%2089.625L49.229%2089.625C54.175%2089.625%2058.342%2089.417%2061.731%2089C65.12%2088.583%2067.878%2087.688%2070.005%2086.313C72.132%2084.938%2073.758%2082.854%2074.882%2080.063C76.006%2077.271%2076.775%2073.542%2077.19%2068.875C77.605%2064.208%2077.813%2058.333%2077.813%2051.25ZM0%2051.25L0%2048.75C0%2040.25%200.346%2033.115%201.038%2027.344C1.729%2021.573%202.922%2016.875%204.617%2013.25C6.311%209.625%208.62%206.854%2011.542%204.938C14.464%203.021%2018.139%201.719%2022.566%201.031C26.992%200.344%2032.318%200%2038.543%200L49.229%200C55.454%200%2060.78%200.344%2065.207%201.031C69.634%201.719%2073.308%203.021%2076.23%204.938C79.153%206.854%2081.461%209.625%2083.156%2013.25C84.85%2016.875%2086.043%2021.573%2086.735%2027.344C87.427%2033.115%2087.773%2040.25%2087.773%2048.75L87.773%2051.25C87.773%2061.542%2087.211%2069.896%2086.087%2076.313C84.963%2082.729%2082.991%2087.646%2080.173%2091.063C77.354%2094.479%2073.438%2096.823%2068.423%2098.094C63.409%2099.365%2057.011%20100%2049.229%20100L38.543%20100C30.762%20100%2024.364%2099.365%2019.349%2098.094C14.335%2096.823%2010.418%2094.479%207.6%2091.063C4.781%2087.646%202.81%2082.729%201.686%2076.313C0.562%2069.896%200%2061.542%200%2051.25Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="1"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(18.617%200)%22%20d%3D%22M1.081%20100L1.081%2089.583L34.259%2089.583L34.259%2010.547L3.296%2022.982L0%2013.346L33.503%200L44.634%200L44.634%2089.583L73.598%2089.583L73.598%20100Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="2"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.402%200)%22%20d%3D%22M0%2076.339C0%2070.642%200.441%2065.859%201.323%2061.99C2.206%2058.121%203.899%2055.017%206.405%2052.679C8.91%2050.34%2012.554%2048.65%2017.336%2047.608C22.117%2046.567%2028.39%2046.025%2036.154%2045.982L55.104%2045.982C60.609%2045.982%2064.906%2045.759%2067.993%2045.312C71.081%2044.866%2073.331%2044.016%2074.742%2042.761C76.154%2041.507%2077.027%2039.679%2077.363%2037.277C77.698%2034.875%2077.865%2031.718%2077.865%2027.806C77.865%2023.724%2077.548%2020.514%2076.913%2018.176C76.277%2015.838%2075.025%2014.137%2073.154%2013.074C71.284%2012.011%2068.523%2011.331%2064.87%2011.033C61.218%2010.736%2056.374%2010.587%2050.34%2010.587L38.8%2010.587C32.484%2010.587%2027.428%2010.736%2023.635%2011.033C19.841%2011.331%2016.974%2012.011%2015.033%2013.074C13.092%2014.137%2011.795%2015.838%2011.143%2018.176C10.49%2020.514%2010.163%2023.724%2010.163%2027.806L0%2027.806C0%2022.236%200.521%2017.645%201.562%2014.031C2.603%2010.417%204.491%207.589%207.225%205.548C9.96%203.508%2013.833%202.073%2018.844%201.244C23.855%200.415%2030.331%200%2038.271%200L50.869%200C58.527%200%2064.791%200.415%2069.661%201.244C74.531%202.073%2078.298%203.508%2080.962%205.548C83.626%207.589%2085.47%2010.417%2086.494%2014.031C87.517%2017.645%2088.029%2022.236%2088.029%2027.806C88.029%2034.949%2087.244%2040.593%2085.673%2044.739C84.103%2048.884%2081.35%2051.839%2077.415%2053.603C73.481%2055.368%2067.932%2056.25%2060.768%2056.25L37.477%2056.25C31.16%2056.25%2026.167%2056.505%2022.497%2057.015C18.827%2057.526%2016.109%2058.493%2014.345%2059.917C12.581%2061.341%2011.442%2063.372%2010.931%2066.008C10.419%2068.644%2010.163%2072.088%2010.163%2076.339L10.163%2089.796L84.8%2089.796L84.8%20100L0%20100Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="3"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.738%200)%22%20d%3D%22M36.209%20100C28.427%20100%2022.151%2099.5%2017.378%2098.5C12.606%2097.5%208.957%2095.854%206.432%2093.563C3.908%2091.271%202.205%2088.219%201.323%2084.406C0.441%2080.594%200%2075.875%200%2070.25L9.96%2070.25C9.96%2074.417%2010.211%2077.771%2010.712%2080.313C11.214%2082.854%2012.329%2084.802%2014.058%2086.156C15.787%2087.51%2018.45%2088.427%2022.047%2088.906C25.644%2089.385%2030.537%2089.625%2036.727%2089.625L50.63%2089.625C56.82%2089.625%2061.714%2089.385%2065.311%2088.906C68.907%2088.427%2071.57%2087.51%2073.299%2086.156C75.029%2084.802%2076.144%2082.854%2076.645%2080.313C77.147%2077.771%2077.397%2074.417%2077.397%2070.25C77.397%2066.542%2077.155%2063.563%2076.671%2061.313C76.187%2059.063%2075.098%2057.354%2073.403%2056.188C71.709%2055.021%2069.08%2054.24%2065.518%2053.844C61.956%2053.448%2057.08%2053.25%2050.889%2053.25L35.431%2053.25L35.431%2043.188L52.964%2043.188C58.636%2043.188%2063.115%2042.979%2066.4%2042.563C69.685%2042.146%2072.115%2041.385%2073.688%2040.281C75.262%2039.177%2076.274%2037.573%2076.723%2035.469C77.173%2033.365%2077.397%2030.625%2077.397%2027.25C77.397%2023.25%2077.078%2020.104%2076.438%2017.813C75.798%2015.521%2074.527%2013.854%2072.625%2012.813C70.723%2011.771%2067.913%2011.104%2064.195%2010.813C60.478%2010.521%2055.524%2010.375%2049.333%2010.375L38.024%2010.375C31.834%2010.375%2026.88%2010.521%2023.162%2010.813C19.444%2011.104%2016.635%2011.771%2014.732%2012.813C12.83%2013.854%2011.559%2015.521%2010.92%2017.813C10.28%2020.104%209.96%2023.25%209.96%2027.25L0%2027.25C0%2021.792%200.51%2017.292%201.53%2013.75C2.551%2010.208%204.401%207.438%207.081%205.438C9.761%203.438%2013.557%202.031%2018.467%201.219C23.378%200.406%2029.724%200%2037.506%200L49.852%200C57.633%200%2063.979%200.406%2068.89%201.219C73.801%202.031%2077.596%203.438%2080.277%205.438C82.957%207.438%2084.807%2010.208%2085.827%2013.75C86.847%2017.292%2087.357%2021.792%2087.357%2027.25C87.357%2033.708%2086.346%2038.646%2084.323%2042.063C82.3%2045.479%2079.697%2047.542%2076.516%2048.25C79.732%2049.042%2082.343%2051.229%2084.349%2054.813C86.355%2058.396%2087.357%2063.542%2087.357%2070.25C87.357%2075.875%2086.917%2080.594%2086.035%2084.406C85.153%2088.219%2083.45%2091.271%2080.925%2093.563C78.4%2095.854%2074.752%2097.5%2069.979%2098.5C65.207%2099.5%2058.93%20100%2051.149%20100Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="4"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(7%200)%22%20d%3D%22M72.625%20100L72.625%2079.167L0%2079.167L0%2066.667L69.167%200L83%200L83%2068.75L96.833%2068.75L96.833%2079.167L83%2079.167L83%20100ZM10.375%2068.75L72.625%2068.75L72.625%208.333Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="5"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.931%200)%22%20d%3D%22M1.376%2051.084L1.376%200L83.371%200L83.371%2010.204L11.54%2010.204L11.54%2042.283C14.716%2037.861%2020.538%2035.651%2029.008%2035.651L53.463%2035.651C60.838%2035.651%2066.749%2036.15%2071.196%2037.149C75.642%2038.148%2079.004%2039.743%2081.28%2041.932C83.556%2044.122%2085.073%2046.971%2085.832%2050.478C86.591%2053.986%2086.97%2058.248%2086.97%2063.265L86.97%2069.643C86.97%2075.383%2086.52%2080.208%2085.62%2084.12C84.72%2088.031%2082.982%2091.146%2080.406%2093.463C77.83%2095.78%2074.107%2097.449%2069.237%2098.469C64.367%2099.49%2057.962%20100%2050.022%20100L36.948%20100C29.008%20100%2022.603%2099.49%2017.733%2098.469C12.863%2097.449%209.14%2095.77%206.564%2093.431C3.988%2091.093%202.25%2087.978%201.35%2084.088C0.45%2080.198%200%2075.383%200%2069.643L10.163%2069.643C10.163%2073.895%2010.419%2077.317%2010.931%2079.911C11.442%2082.504%2012.581%2084.492%2014.345%2085.874C16.109%2087.256%2018.827%2088.191%2022.497%2088.68C26.167%2089.169%2031.16%2089.413%2037.477%2089.413L49.493%2089.413C55.81%2089.413%2060.803%2089.179%2064.473%2088.712C68.143%2088.244%2070.861%2087.319%2072.625%2085.938C74.389%2084.556%2075.528%2082.557%2076.039%2079.943C76.551%2077.328%2076.807%2073.895%2076.807%2069.643L76.807%2063.265C76.807%2059.481%2076.56%2056.441%2076.066%2054.145C75.572%2051.849%2074.46%2050.106%2072.731%2048.916C71.002%2047.725%2068.32%2046.928%2064.685%2046.524C61.05%2046.12%2056.074%2045.918%2049.758%2045.918L38.536%2045.918C30.666%2045.918%2024.861%2046.248%2021.121%2046.907C17.38%2047.566%2014.804%2048.958%2013.392%2051.084Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="6"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.738%200)%22%20d%3D%22M36.209%20100C28.427%20100%2022.151%2099.5%2017.378%2098.5C12.606%2097.5%208.957%2095.854%206.432%2093.563C3.908%2091.271%202.205%2088.219%201.323%2084.406C0.441%2080.594%200%2075.875%200%2070.25L0%2027.875C0%2022.417%200.51%2017.885%201.53%2014.281C2.551%2010.677%204.401%207.833%207.081%205.75C9.761%203.667%2013.557%202.188%2018.467%201.313C23.378%200.438%2029.724%200%2037.506%200L49.852%200C57.495%200%2063.677%200.406%2068.397%201.219C73.118%202.031%2076.723%203.438%2079.213%205.438C81.703%207.438%2083.389%2010.208%2084.271%2013.75C85.153%2017.292%2085.594%2021.792%2085.594%2027.25L75.634%2027.25C75.634%2023.25%2075.383%2020.104%2074.882%2017.813C74.38%2015.521%2073.273%2013.854%2071.562%2012.813C69.85%2011.771%2067.23%2011.104%2063.702%2010.813C60.175%2010.521%2055.385%2010.375%2049.333%2010.375L38.024%2010.375C31.834%2010.375%2026.88%2010.552%2023.162%2010.906C19.444%2011.26%2016.635%2012%2014.732%2013.125C12.83%2014.25%2011.559%2015.99%2010.92%2018.344C10.28%2020.698%209.96%2023.875%209.96%2027.875L9.96%2049.75C13.107%2045.375%2018.831%2043.188%2027.131%2043.188L54.521%2043.188C61.749%2043.188%2067.541%2043.677%2071.899%2044.656C76.256%2045.635%2079.55%2047.198%2081.781%2049.344C84.012%2051.49%2085.499%2054.281%2086.242%2057.719C86.986%2061.156%2087.357%2065.333%2087.357%2070.25C87.357%2075.875%2086.917%2080.594%2086.035%2084.406C85.153%2088.219%2083.45%2091.271%2080.925%2093.563C78.4%2095.854%2074.752%2097.5%2069.979%2098.5C65.207%2099.5%2058.93%20100%2051.149%20100ZM77.397%2070.25C77.397%2066.542%2077.155%2063.563%2076.671%2061.313C76.187%2059.063%2075.098%2057.354%2073.403%2056.188C71.709%2055.021%2069.08%2054.24%2065.518%2053.844C61.956%2053.448%2057.08%2053.25%2050.889%2053.25L36.468%2053.25C30.278%2053.25%2025.401%2053.448%2021.839%2053.844C18.277%2054.24%2015.649%2055.021%2013.954%2056.188C12.26%2057.354%2011.17%2059.063%2010.686%2061.313C10.202%2063.563%209.96%2066.542%209.96%2070.25C9.96%2074.417%2010.211%2077.771%2010.712%2080.313C11.214%2082.854%2012.329%2084.802%2014.058%2086.156C15.787%2087.51%2018.45%2088.427%2022.047%2088.906C25.644%2089.385%2030.537%2089.625%2036.727%2089.625L50.63%2089.625C56.82%2089.625%2061.714%2089.385%2065.311%2088.906C68.907%2088.427%2071.57%2087.51%2073.299%2086.156C75.029%2084.802%2076.144%2082.854%2076.645%2080.313C77.147%2077.771%2077.397%2074.417%2077.397%2070.25Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="7"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(8.729%200)%22%20d%3D%22M17.292%20100L81.271%2010.417L0%2010.417L0%200L93.375%200L93.375%2012.5L31.125%20100Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="8"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.738%200)%22%20d%3D%22M77.397%2027.25C77.397%2023.25%2077.078%2020.104%2076.438%2017.813C75.798%2015.521%2074.527%2013.854%2072.625%2012.813C70.723%2011.771%2067.913%2011.104%2064.195%2010.813C60.478%2010.521%2055.524%2010.375%2049.333%2010.375L38.024%2010.375C31.834%2010.375%2026.88%2010.521%2023.162%2010.813C19.444%2011.104%2016.635%2011.771%2014.732%2012.813C12.83%2013.854%2011.559%2015.521%2010.92%2017.813C10.28%2020.104%209.96%2023.25%209.96%2027.25C9.96%2030.625%2010.185%2033.365%2010.634%2035.469C11.084%2037.573%2012.096%2039.177%2013.669%2040.281C15.243%2041.385%2017.672%2042.146%2020.957%2042.563C24.243%2042.979%2028.721%2043.188%2034.393%2043.188L52.964%2043.188C58.636%2043.188%2063.115%2042.979%2066.4%2042.563C69.685%2042.146%2072.115%2041.385%2073.688%2040.281C75.262%2039.177%2076.274%2037.573%2076.723%2035.469C77.173%2033.365%2077.397%2030.625%2077.397%2027.25ZM0%2070.25C0%2063.542%201.003%2058.396%203.009%2054.813C5.015%2051.229%207.626%2049.042%2010.842%2048.25C7.66%2047.542%205.058%2045.479%203.035%2042.063C1.012%2038.646%200%2033.708%200%2027.25C0%2021.792%200.51%2017.292%201.53%2013.75C2.551%2010.208%204.401%207.438%207.081%205.438C9.761%203.438%2013.557%202.031%2018.467%201.219C23.378%200.406%2029.724%200%2037.506%200L49.852%200C57.633%200%2063.979%200.406%2068.89%201.219C73.801%202.031%2077.596%203.438%2080.277%205.438C82.957%207.438%2084.807%2010.208%2085.827%2013.75C86.847%2017.292%2087.357%2021.792%2087.357%2027.25C87.357%2033.708%2086.346%2038.646%2084.323%2042.063C82.3%2045.479%2079.697%2047.542%2076.516%2048.25C79.732%2049.042%2082.343%2051.229%2084.349%2054.813C86.355%2058.396%2087.357%2063.542%2087.357%2070.25C87.357%2075.875%2086.917%2080.594%2086.035%2084.406C85.153%2088.219%2083.45%2091.271%2080.925%2093.563C78.4%2095.854%2074.752%2097.5%2069.979%2098.5C65.207%2099.5%2058.93%20100%2051.149%20100L36.209%20100C28.427%20100%2022.151%2099.5%2017.378%2098.5C12.606%2097.5%208.957%2095.854%206.432%2093.563C3.908%2091.271%202.205%2088.219%201.323%2084.406C0.441%2080.594%200%2075.875%200%2070.25ZM77.397%2070.25C77.397%2066.542%2077.155%2063.563%2076.671%2061.313C76.187%2059.063%2075.098%2057.354%2073.403%2056.188C71.709%2055.021%2069.08%2054.24%2065.518%2053.844C61.956%2053.448%2057.08%2053.25%2050.889%2053.25L36.468%2053.25C30.278%2053.25%2025.401%2053.448%2021.839%2053.844C18.277%2054.24%2015.649%2055.021%2013.954%2056.188C12.26%2057.354%2011.17%2059.063%2010.686%2061.313C10.202%2063.563%209.96%2066.542%209.96%2070.25C9.96%2074.417%2010.211%2077.771%2010.712%2080.313C11.214%2082.854%2012.329%2084.802%2014.058%2086.156C15.787%2087.51%2018.45%2088.427%2022.047%2088.906C25.644%2089.385%2030.537%2089.625%2036.727%2089.625L50.63%2089.625C56.82%2089.625%2061.714%2089.385%2065.311%2088.906C68.907%2088.427%2071.57%2087.51%2073.299%2086.156C75.029%2084.802%2076.144%2082.854%2076.645%2080.313C77.147%2077.771%2077.397%2074.417%2077.397%2070.25Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-inner[data-char="9"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20120.808%20100%22%20fill%3D%22white%22%3E%3Cpath%20transform%3D%22translate(11.738%200)%22%20d%3D%22M37.506%20100C29.724%20100%2023.447%2099.594%2018.675%2098.781C13.902%2097.969%2010.263%2096.563%207.755%2094.563C5.248%2092.563%203.545%2089.792%202.646%2086.25C1.746%2082.708%201.297%2078.208%201.297%2072.75L11.257%2072.75C11.257%2076.75%2011.508%2079.896%2012.009%2082.188C12.511%2084.479%2013.634%2086.146%2015.381%2087.188C17.127%2088.229%2019.799%2088.896%2023.396%2089.188C26.992%2089.479%2031.869%2089.625%2038.024%2089.625L49.333%2089.625C55.524%2089.625%2060.478%2089.417%2064.195%2089C67.913%2088.583%2070.723%2087.771%2072.625%2086.563C74.527%2085.354%2075.798%2083.542%2076.438%2081.125C77.078%2078.708%2077.397%2075.5%2077.397%2071.5L77.397%2050.25C74.25%2054.625%2068.527%2056.813%2060.227%2056.813L32.837%2056.813C25.609%2056.813%2019.816%2056.323%2015.459%2055.344C11.101%2054.365%207.807%2052.802%205.577%2050.656C3.346%2048.51%201.859%2045.719%201.115%2042.281C0.372%2038.844%200%2034.667%200%2029.75C0%2024.125%200.441%2019.406%201.323%2015.594C2.205%2011.781%203.908%208.729%206.432%206.438C8.957%204.146%2012.606%202.5%2017.378%201.5C22.151%200.5%2028.427%200%2036.209%200L51.149%200C58.93%200%2065.207%200.5%2069.979%201.5C74.752%202.5%2078.4%204.146%2080.925%206.438C83.45%208.729%2085.153%2011.781%2086.035%2015.594C86.917%2019.406%2087.357%2024.125%2087.357%2029.75L87.357%2071.5C87.357%2076.958%2086.847%2081.521%2085.827%2085.188C84.807%2088.854%2082.957%2091.771%2080.277%2093.938C77.596%2096.104%2073.801%2097.656%2068.89%2098.594C63.979%2099.531%2057.633%20100%2049.852%20100ZM77.397%2029.75C77.397%2025.583%2077.147%2022.229%2076.645%2019.688C76.144%2017.146%2075.029%2015.198%2073.299%2013.844C71.57%2012.49%2068.907%2011.573%2065.311%2011.094C61.714%2010.615%2056.82%2010.375%2050.63%2010.375L36.727%2010.375C30.537%2010.375%2025.644%2010.615%2022.047%2011.094C18.45%2011.573%2015.787%2012.49%2014.058%2013.844C12.329%2015.198%2011.214%2017.146%2010.712%2019.688C10.211%2022.229%209.96%2025.583%209.96%2029.75C9.96%2033.458%2010.202%2036.438%2010.686%2038.688C11.17%2040.938%2012.26%2042.646%2013.954%2043.813C15.649%2044.979%2018.277%2045.76%2021.839%2046.156C25.401%2046.552%2030.278%2046.75%2036.468%2046.75L50.889%2046.75C57.08%2046.75%2061.956%2046.552%2065.518%2046.156C69.08%2045.76%2071.709%2044.979%2073.403%2043.813C75.098%2042.646%2076.187%2040.938%2076.671%2038.688C77.155%2036.438%2077.397%2033.458%2077.397%2029.75Z%22%2F%3E%3C%2Fsvg%3E")}
.forge-glyph.forge-colon{--circuit-cell:0.407em}
.forge-inner[data-char=":"]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2059.85%20100%22%20fill%3D%22white%22%3E%3Ccircle%20cx%3D%2224.937425%22%20cy%3D%2231%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2224.937425%22%20cy%3D%2278%22%20r%3D%224%22%2F%3E%3C%2Fsvg%3E")}
.forge-glyph.forge-dot{--circuit-cell:0.362em}
.forge-inner[data-char="."]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2053.2%20100%22%20fill%3D%22white%22%3E%3Ccircle%20cx%3D%2221.612435%22%20cy%3D%2294%22%20r%3D%224.6%22%2F%3E%3C%2Fsvg%3E")}
.forge-glyph.forge-comma{--circuit-cell:0.475em}
.forge-inner[data-char=","]{--circuit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2069.825%20100%22%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M25.92491%2082h9v8l-7%2010h-4l4-10h-2Z%22%2F%3E%3C%2Fsvg%3E")}

/* numeric-display.css */
/* 03 SILVER CIRCUIT. Legacy class names and live text nodes are retained. */
@font-face{font-family:TZCircuit;src:url('assets/fonts/Michroma-Regular.woff2?v=966d9b3f4cebb1ea5b9dd939e121d2e2e54c5c73739d9239d0f0fa133bbe8645') format('woff2');font-weight:400;font-style:normal;font-display:swap}
/* The READY lettering and podium badges retain their existing face. */
@font-face{font-family:TZForge;src:url('assets/fonts/Tektur.woff2?v=5df3783d0fa5f69b9ab45ac5f8ebfbf4cd0083fd2de440102fb074cf894049dd') format('woff2');font-weight:400 900;font-style:normal;font-display:swap}
span.forge-number{position:relative;display:inline-block!important;white-space:nowrap!important;font-family:TZCircuit,Consolas,monospace!important;font-size:inherit!important;font-weight:400!important;font-style:normal!important;font-synthesis:none;font-variant-numeric:tabular-nums lining-nums;letter-spacing:0!important;line-height:1.15!important;text-shadow:none;color:#e3edf4;vertical-align:baseline;--circuit-top:#f4f9fc;--circuit-base:#cfdee8}
.forge-number>.forge-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.forge-number>.forge-glyph{display:inline-block!important;width:var(--circuit-cell,.82em);height:1.08em;position:relative;text-align:center;vertical-align:-.12em;font:inherit!important;letter-spacing:0!important;color:inherit;line-height:1.08!important;margin:0;padding:0}
.forge-glyph>.forge-inner{position:relative;isolation:isolate;display:block!important;width:100%;height:100%;font:inherit!important;letter-spacing:0!important;line-height:inherit!important;margin:0;padding:0;color:inherit}
/* Plain text remains visible if a browser cannot render CSS masks. */
.forge-inner::after{content:attr(data-char);position:absolute;inset:0;display:grid;align-items:center;justify-content:center;font:inherit;color:inherit;font-size:.83em}
@supports (mask-image:url('data:image/svg+xml,<svg/>')) or (-webkit-mask-image:url('data:image/svg+xml,<svg/>')){
  /* A single face: the old shadow used a larger em than the .83em fallback
     face, creating two differently sized silhouettes rather than depth. */
  .forge-inner::before{content:none;display:none}
  .forge-inner::after{content:'';position:absolute;inset:auto 0 .13em;height:.68em;font:inherit;-webkit-mask:var(--circuit-mask) center/100% 100% no-repeat;mask:var(--circuit-mask) center/100% 100% no-repeat;background:linear-gradient(180deg,var(--circuit-top),var(--circuit-base))}
  .forge-comma>.forge-inner::after,.forge-dot>.forge-inner::after,.forge-colon>.forge-inner::after{background:currentColor}
  .forge-comma>.forge-inner::before,.forge-dot>.forge-inner::before,.forge-colon>.forge-inner::before{display:none}
}
.home-timeattack [disabled] .forge-number{opacity:.72}
@media(forced-colors:active){
  span.forge-number{color:CanvasText;forced-color-adjust:none}
  .forge-inner::before{display:none}.forge-inner::after{background:CanvasText;color:CanvasText}
}

/* ranking-podium.css */
/* Medal treatment follows the actual rank, including ties and paginated rows. */
:is(#board-dialog,.ranking-scroll) table{border-collapse:separate;border-spacing:0 6px}
.podium[data-rank="1"]{--medal:#f5d484;--medal-light:#fff1bc;--medal-dark:#a97728;--medal-rgb:223,170,67;--medal-ink:#3c270b}
.podium[data-rank="2"]{--medal:#cfdfed;--medal-light:#f5fbff;--medal-dark:#7a95ab;--medal-rgb:170,199,218;--medal-ink:#233643}
.podium[data-rank="3"]{--medal:#e9ad89;--medal-light:#ffdfbd;--medal-dark:#a46243;--medal-rgb:204,134,91;--medal-ink:#44281e}
:is(#board-rows,#records-ranking-body) tr.podium{background:linear-gradient(110deg,rgba(var(--medal-rgb),.16),rgba(var(--medal-rgb),.045) 64%,#07121b66);color:#e9f0f4}
:is(#board-rows,#records-ranking-body) tr.podium[data-rank="1"]{background:linear-gradient(110deg,#a175283d,#59451d18 70%,#07121b66)}
:is(#board-rows,#records-ranking-body) tr.podium>td{border-top:1px solid rgba(var(--medal-rgb),.28);border-bottom:1px solid rgba(var(--medal-rgb),.22);padding-top:12px;padding-bottom:12px}
:is(#board-rows,#records-ranking-body) tr.podium>td:first-child{border-left:3px solid var(--medal);border-radius:7px 0 0 7px;padding-left:14px;padding-right:14px;width:84px}
:is(#board-rows,#records-ranking-body) tr.podium>td:last-child{border-right:1px solid rgba(var(--medal-rgb),.28);border-radius:0 7px 7px 0}
:is(#board-rows,#records-ranking-body) tr.podium>td:nth-child(2),#board-rows tr.podium .ranking-player strong{font-weight:700;color:var(--medal-light)}
:is(#board-rows,#records-ranking-body) tr.podium>td:nth-child(3){font-size:18px;font-weight:700;color:var(--medal-light);font-variant-numeric:tabular-nums;text-shadow:0 1px 10px rgba(var(--medal-rgb),.16)}
.podium-badge{position:relative;display:inline-flex;align-items:center;justify-content:center;width:49px;height:56px;padding-top:10px;isolation:isolate;vertical-align:middle;clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 10px),50% 100%,0 calc(100% - 10px),0 8px);background:linear-gradient(155deg,var(--medal-light),var(--medal) 37%,var(--medal-dark) 39%,var(--medal) 46%,var(--medal-light) 76%,var(--medal-dark));color:var(--medal-ink);font:650 27px/1 TZForge,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.02em;text-shadow:0 1px 0 #ffffff85;box-shadow:inset 0 1px 0 #fff9,inset 0 -4px 8px #0002}
.podium-badge::before{content:"RANK";position:absolute;top:6px;left:0;width:100%;text-align:center;font:700 7px/1.2 Consolas,monospace;letter-spacing:.15em;color:var(--medal-ink);text-shadow:none}
.podium[data-rank="1"] .podium-badge::before{content:"";width:18px;height:10px;top:5px;left:calc(50% - 9px);background:var(--medal-ink);clip-path:polygon(0 18%,25% 46%,50% 0,75% 46%,100% 18%,87% 100%,13% 100%)}
/* Preserve personal/latest-record identity alongside the medal colour. */
#board-rows tr.podium.mine>td:last-child,#records-ranking-body tr.podium.latest-record>td:last-child{border-right:3px solid #b9f56b}
#board-rows tr.podium .ranking-comment{color:#b7c8d3;font-weight:400}
#board-rows tr.podium:focus-within{outline:2px solid #b9f56b;outline-offset:-2px}
@media(max-width:640px){:is(#board-rows,#records-ranking-body) tr.podium>td:first-child{padding-left:9px;padding-right:9px;width:65px}.podium-badge{width:43px;height:50px;font-size:24px}:is(#board-rows,#records-ranking-body) tr.podium>td:nth-child(3){font-size:16px}}
@media(forced-colors:active){.podium-badge{background:Canvas;color:CanvasText;border:2px solid CanvasText;clip-path:none;text-shadow:none}.podium-badge::before{color:CanvasText}.podium[data-rank="1"] .podium-badge::before{background:CanvasText}:is(#board-rows,#records-ranking-body) tr.podium>td{border-color:CanvasText}:is(#board-rows,#records-ranking-body) tr.podium:focus-within{outline-color:Highlight}}

/* record-celebration.css */
.record-celebration-host{isolation:isolate}
.record-cutin{position:absolute!important;left:0;top:0;width:100%;z-index:60!important;pointer-events:none!important;user-select:none;display:block;border:0;border-radius:inherit}
.record-cutin-fallback{display:grid;place-items:center;background:#030a12cf;color:#f6e5b7;text-shadow:2px 3px #704b29;font:600 clamp(24px,6vw,76px)/1.5 'Yu Mincho','KaiTi',serif}
.record-cutin-status{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.result.has-record-celebration .result-card,.result-modal.has-record-celebration{border-color:#edc67599;box-shadow:0 0 28px #e9b94c18,0 28px 75px #0007}
.has-record-celebration #best-badge,.has-record-celebration #new-best{color:#ffe4a4}

/* card-collection.css */
.collection-dialog{--card-accent:#dfbf87;box-sizing:border-box;width:min(1440px,96vw);max-width:none;max-height:94dvh;padding:28px;color:#e7e8ec;background:radial-gradient(ellipse at 8% 0,#293347 0,transparent 50%),#0b1019;border:1px solid #667084;border-radius:14px;box-shadow:0 35px 100px #000b;font-family:inherit;overflow:auto}
.collection-dialog::backdrop{background:#02050cdb;backdrop-filter:blur(8px)}.collection-dialog *{box-sizing:border-box}.collection-dialog [hidden]{display:none!important}
.collection-heading{display:flex;gap:24px;align-items:center;padding:0 0 23px;border-bottom:1px solid #394254}.collection-heading h2{font-size:30px;letter-spacing:.15em;margin:9px 0}.collection-heading p{margin:0;color:#a9b5c8;font-size:13px}.collection-eyebrow{font:12px Tektur,monospace;color:#d9bd8a;letter-spacing:.16em}.collection-count{display:flex;align-items:baseline;gap:10px;margin-left:auto;white-space:nowrap}.collection-count b{font:52px Tektur,monospace;color:#f0d5a6;text-shadow:0 2px #685335}.collection-count span{font:22px Tektur,monospace;color:#8391a7}.collection-count small{font:11px sans-serif;display:block;margin-top:4px}.collection-close{align-self:flex-start;font-size:28px!important;min-width:42px}
.collection-dialog button,.collection-dialog input,.collection-dialog select{font:inherit;color:#dae3ed;background:#182333;border:1px solid #465268;border-radius:6px;padding:10px;cursor:pointer}.collection-dialog input{cursor:text;max-width:260px}.collection-dialog button:hover:not(:disabled){border-color:#e6c488;background:#293348}.collection-dialog button:disabled{opacity:.4;cursor:not-allowed}.collection-dialog :focus-visible{outline:2px solid #ffe0a0;outline-offset:3px}
.collection-toolbar{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:20px 0 8px}.collection-toolbar label{display:grid;gap:6px;font-size:12px;color:#aab8ca}.collection-toolbar button{margin-left:auto;font-size:12px}#collection-message{font-size:13px;color:#e6cda2;min-height:1em;margin:8px 0 16px}.collection-layout{display:grid;grid-template-columns:minmax(280px,36%) 1fr;gap:28px;align-items:start}
.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.collection-card{padding:0!important;overflow:hidden;border:1px solid #4b5361!important;background:#131b29!important;box-shadow:0 6px 16px #0008;text-align:left;transition:transform .15s,border-color .15s}.collection-card:hover{transform:translateY(-3px)}.collection-card[aria-pressed=true]{outline:2px solid var(--card-accent);outline-offset:3px}.collection-card-art{display:block;position:relative;aspect-ratio:2/3;overflow:hidden;background:#172130}.collection-card-art img{width:100%;height:100%;object-fit:cover;display:block}.collection-card.is-locked img{filter:saturate(.35) brightness(.54)}.collection-card-art>small{position:absolute;left:7px;top:7px;color:#fff;font:12px Tektur,monospace;background:#050b15b8;padding:4px 6px;border:1px solid #ffffff35;border-radius:3px}.collection-card-name{display:flex;justify-content:space-between;align-items:center;padding:11px 9px;gap:2px}.collection-card-name strong{font-size:14px;color:#f7f0df}.collection-card-name small{font:8px Tektur,monospace;color:var(--card-accent)}.collection-seal{position:absolute;left:0;right:0;bottom:0;padding:12px 0;text-align:center;background:linear-gradient(transparent,#090d17);font-size:11px;letter-spacing:.3em;color:#cad4df}.collection-favorite{position:absolute;left:0;right:0;bottom:0;background:#172e36ed;color:#d9f7f0;font-size:10px;text-align:center;padding:7px}.collection-card[data-tier=legendary]{border-color:#b99748!important;box-shadow:0 6px 16px #0008,inset 0 0 0 1px #b99748}.collection-card[data-tier=rare]{border-color:#925846!important}
.collection-detail{border:1px solid #5e5a4f;border-radius:8px;overflow:hidden;background:#121b27}.collection-large-art{position:relative;aspect-ratio:2/3;overflow:hidden;max-height:650px}.collection-large-art img{height:100%;width:100%;object-fit:contain;display:block;background:#0d1015}.collection-art-caption{position:absolute;bottom:0;left:0;right:0;padding:50px 24px 22px;background:linear-gradient(transparent,#05070fdc 45%,#080c14)}.collection-art-caption span{font:11px Tektur,monospace;letter-spacing:.18em;color:var(--card-accent)}.collection-art-caption h3{font-size:37px;letter-spacing:.12em;margin:10px 0}.collection-art-caption p{margin:0;color:#d3dae5;font-size:13px}.collection-detail-body{padding:20px}.collection-detail-body>p{font-size:13px;line-height:1.9;color:#bec9d8;margin-top:0}.collection-condition{display:grid;gap:9px;padding:14px;background:#080e18;border:1px solid #344051;border-radius:5px;font-size:12px}.collection-condition b{color:var(--card-accent)}.collection-condition small{text-align:right;font-family:Tektur,monospace}.collection-condition progress{width:100%;height:6px;accent-color:var(--card-accent)}.collection-benefits{display:grid;gap:12px;padding:20px 0}.collection-benefits span{font-size:11px;color:#94a3b6}.collection-benefits b{display:block;font-size:14px;color:#e6dfd1;margin-top:5px}.collection-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.collection-actions button{font-size:12px;padding:11px 5px}.collection-actions button:first-child{grid-column:1/-1;background:#34312a;border-color:#91806a}.collection-detail-note{display:block;margin-top:14px;font-size:11px;color:#a2afc2;line-height:1.7}
.collection-goal-strip{display:flex;align-items:center;gap:16px;background:#172536;border:1px solid #46566b;padding:14px;margin-bottom:20px;font-size:12px}.collection-goal-strip>span{color:#b6cdd8;font:10px Tektur,monospace}.collection-goal-strip p{margin:0;color:#becad9}.collection-goal-strip strong{margin-left:auto;font-family:Tektur,monospace;white-space:nowrap}.collection-footer{font-size:12px;color:#a6b2c3;padding-top:25px;line-height:1.8}.collection-footer summary{cursor:pointer;color:#e2c79b}.collection-result{border:1px solid #706246;border-radius:8px;padding:14px;display:flex;flex-wrap:wrap;gap:10px;margin:15px 0;background:#151a22}.collection-result>strong{width:100%;color:#f3d59a}.collection-result button{display:flex;align-items:center;gap:10px;text-align:left;color:#f1e3c5;border:1px solid #4e535e;background:#202939;border-radius:5px;cursor:pointer;padding:6px}.collection-result img{object-fit:cover;border-radius:3px}.collection-result small{display:block;color:#b0bdcf;font-size:11px;max-width:200px;margin-top:6px}.collection-wallet{color:#d9e1ea;background:#111a28;border:1px solid #69778c;width:min(650px,94vw);max-height:85vh;overflow:auto;padding:30px}.collection-wallet p{line-height:1.8;font-size:13px}.collection-wallet strong{font:32px Tektur,monospace}
@media(min-width:1500px){.collection-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:950px){.collection-layout{grid-template-columns:minmax(250px,42%) 1fr;gap:17px}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.collection-card-name{display:block}.collection-card-name small{display:block;margin-top:4px}}
@media(max-width:640px){.collection-dialog{width:98vw;max-height:97dvh;padding:16px}.collection-heading{gap:12px}.collection-heading h2{font-size:23px}.collection-heading p{display:none}.collection-count b{font-size:32px}.collection-count span{font-size:16px}.collection-layout{display:flex;flex-direction:column-reverse;gap:22px}.collection-layout>section{width:100%}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.collection-detail{width:100%}.collection-large-art{max-height:none}.collection-toolbar{gap:10px}.collection-toolbar input{width:155px}.collection-toolbar button{margin-left:0}.collection-goal-strip{flex-wrap:wrap;gap:8px}.collection-goal-strip p{width:100%}.collection-heading .collection-eyebrow{font-size:9px}}
@media(prefers-reduced-motion:reduce){.collection-card{transition:none}.collection-card:hover{transform:none}}.reduced-motion .collection-card{transition:none}.reduced-motion .collection-card:hover{transform:none}
.collection-back{display:none}.collection-wallet td,.collection-wallet th{padding:8px;text-align:left;border-bottom:1px solid #344051}.collection-wallet table{width:100%;font-size:13px}.collection-wallet details{margin:18px 0}.collection-wallet summary{cursor:pointer;color:#e7c890}@media(max-width:640px){.collection-back{display:block;width:100%;border:0!important;border-radius:0!important}.topbar .collection-open{font-size:10px;padding:7px;white-space:nowrap}}
.collection-distribution{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.collection-distribution>span{display:flex;align-items:center;gap:12px;border:1px solid #4d5a6b;background:#131d2b;padding:8px 12px;border-radius:4px;font-size:11px;color:#bfc9cf}.collection-distribution b{font:18px Tektur,monospace}.collection-distribution [data-tier=uncommon]{color:#9cd4b8;border-color:#416c5a}.collection-distribution [data-tier=rare]{color:#eab19e;border-color:#805448}.collection-distribution [data-tier=epic]{color:#d6b5ff;border-color:#8660aa}.collection-distribution [data-tier=legendary]{color:#f0d088;border-color:#a08749}.collection-card[data-tier=epic]{border-color:#aa79d4!important;box-shadow:0 5px 20px #25123e80}.collection-card[data-tier=uncommon]{border-color:#446b5f!important}.collection-detail[data-tier=epic]{border-color:#a875d0}.collection-detail[data-tier=legendary]{border-color:#b99748}.collection-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px;padding:8px;background:#0b1019;position:sticky;top:0;z-index:3;border:1px solid #354154;border-radius:6px}.collection-pager span{font-size:12px;color:#b7c2d2;text-align:center}.collection-pager button{font-size:12px!important}.collection-distribution+ .collection-toolbar{margin-top:14px}@media(max-width:640px){.collection-distribution{gap:6px}.collection-distribution>span{gap:7px;padding:6px 8px;font-size:10px}.collection-distribution b{font-size:15px}.collection-pager{gap:4px}.collection-pager button{padding:8px 5px!important;font-size:10px!important}.collection-pager span{font-size:10px}}
/* Upper tiers: celestial platinum/cyan, transcendent opal/prismatic metal. */
.collection-distribution [data-tier=celestial]{color:#a8ebff;border-color:#6bc2e0;background:linear-gradient(135deg,#153348,#122137)}
.collection-distribution [data-tier=transcendent]{color:#f1dfff;border-color:#dbbdf5;background:linear-gradient(120deg,#39314c,#17364a,#473140)}
.collection-card[data-tier=celestial]{border-color:#89d9ef!important;box-shadow:0 6px 18px #0008,0 0 12px #68cdf123}
.collection-card[data-tier=transcendent]{border-color:#efdeff!important;background:linear-gradient(130deg,#293d50,#3e2e48,#284544)!important;box-shadow:0 6px 18px #0008,0 0 14px #ddb5ff38}
.collection-card[data-tier=celestial] .collection-card-art::after,.collection-card[data-tier=transcendent] .collection-card-art::after{content:'';position:absolute;inset:5px;border:1px solid #b6e9ff68;pointer-events:none;clip-path:polygon(0 0,16% 0,16% 1%,1% 1%,1% 12%,0 12%,0 88%,1% 88%,1% 99%,16% 99%,16% 100%,84% 100%,84% 99%,99% 99%,99% 88%,100% 88%,100% 12%,99% 12%,99% 1%,84% 1%,84% 0)}
.collection-card[data-tier=transcendent] .collection-card-art::after{border-color:#ffe9ffb0;box-shadow:inset 0 0 12px #b5eaff30}
.collection-card[data-tier=celestial] .collection-card-name,.collection-card[data-tier=transcendent] .collection-card-name{display:block}
.collection-card[data-tier=celestial] .collection-card-name small,.collection-card[data-tier=transcendent] .collection-card-name small{display:block;margin-top:5px;letter-spacing:.03em}
.collection-detail[data-tier=celestial]{border-color:#8ad8ee;box-shadow:0 0 25px #73d1ff16}
.collection-detail[data-tier=transcendent]{border-color:#dfc0ef;box-shadow:0 0 25px #d5b5ef20}
.collection-detail[data-tier=celestial] .collection-art-caption{background:linear-gradient(transparent,#091b2bdc 50%,#0b1524)}
.collection-detail[data-tier=transcendent] .collection-art-caption{background:linear-gradient(transparent,#21162edc 50%,#131326)}

/* Revision 2: readable archive tools, full artwork, rewards and optional identity. */
.collection-toolbar{gap:12px}.collection-toolbar label{min-width:100px}.collection-toolbar input{width:min(230px,100%)}
.collection-card.is-locked img{filter:saturate(.6) brightness(.66)}
.collection-large-art{max-height:54vh}.collection-detail-body [data-art]{width:100%;margin-bottom:16px;color:#e8d5b0}
.collection-home-goal{display:grid;gap:6px;text-align:left;padding:12px 15px;margin-top:14px;width:min(450px,100%);border:1px solid #7397b54d;border-left:2px solid #a7d5e9;background:linear-gradient(100deg,#142839e8,#0a1828ba);color:#d6e7f1;border-radius:5px;cursor:pointer;font:12px sans-serif}
.collection-home-goal span{color:#b7c6d0;font-size:11px}.collection-home-goal b{font:17px Tektur,sans-serif;color:#eee5d0}.collection-home-goal small{font-size:10px;line-height:1.5;color:#8fabc0}
.collection-sync{display:flex;align-items:center;gap:16px;padding:13px;border:1px solid #41556b;background:#102030;margin-bottom:16px}.collection-sync span{flex:1}.collection-sync button{white-space:nowrap}
.collection-art-viewer{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;margin:0;padding:18px 50px 48px;background:radial-gradient(ellipse at center,#233040,#070a10 75%);border:0;color:#e4ddce;overflow:hidden}
.collection-art-viewer::backdrop{background:#000e}.collection-art-viewer img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 15px 30px #0009)}
/* Keep the close icon independent of shared button padding and font metrics. */
.collection-art-viewer button{position:absolute;z-index:2;right:20px;top:15px;box-sizing:border-box;padding:0;font-size:0;line-height:1;width:44px;height:44px;background:#101b2ded;color:#fff;border:1px solid #8c9bab;border-radius:50%;cursor:pointer}
.collection-art-viewer button::before,.collection-art-viewer button::after{content:'';position:absolute;left:50%;top:50%;width:20px;height:2px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
.collection-art-viewer button::after{transform:translate(-50%,-50%) rotate(-45deg)}
.collection-art-viewer p{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:12px}
.collection-result-goal{flex-basis:100%;margin:4px 0;color:#b4c9d6;font-size:11px;line-height:1.6}
.collection-result{position:relative;isolation:isolate;overflow:hidden;border-color:var(--collection-color,#706246)}
.collection-result>button{position:relative;z-index:1;box-shadow:0 4px 16px #0008}.collection-result>button img{width:64px;height:96px}
.collection-result.is-revealing>button{animation:card-reveal .65s cubic-bezier(.17,.75,.3,1) both}
.collection-result.is-revealing::before{content:'';position:absolute;inset:-100%;pointer-events:none;background:conic-gradient(from 0deg,transparent,var(--collection-color,#e6ca89),transparent 18%,transparent 50%,var(--collection-color,#e6ca89),transparent 70%);opacity:0;animation:card-rays 1.6s ease-out both;z-index:-1}
.collection-result[data-tier=celestial],.collection-result[data-tier=transcendent]{background:radial-gradient(ellipse at 20% 0%,#527ba143,#141722 75%);border-width:2px}
.collection-result[data-tier=transcendent]>strong{background:linear-gradient(90deg,#fff1ba,#b8efff,#e7c3ff);background-clip:text;color:transparent}
@keyframes card-reveal{from{opacity:0;transform:translateY(16px) rotateY(-25deg);filter:brightness(2)}to{opacity:1;transform:none;filter:brightness(1)}}
@keyframes card-rays{0%{transform:rotate(-45deg);opacity:0}20%{opacity:.16}100%{transform:rotate(30deg);opacity:0}}
.collection-result-frame{border-color:var(--collection-color)!important;box-shadow:0 0 0 3px #08111e,0 0 0 4px var(--collection-color),0 15px 55px #000a!important}
.collection-result-frame[data-card-tier=celestial]{background-image:linear-gradient(130deg,#9be5ff12,transparent 40%,#76aadd0a)}
.collection-result-frame[data-card-tier=transcendent]{background-image:linear-gradient(130deg,#edb3ff18,transparent 35%,#b5fff111 65%,#ffd38912)}
.collection-atmosphere{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.32;background:radial-gradient(ellipse at 95% 10%,color-mix(in srgb,var(--collection-color) 35%,transparent),transparent 50%);mix-blend-mode:screen}
.collection-atmosphere[data-family=bell],.collection-atmosphere[data-family=crystal]{background:radial-gradient(circle at 80% 12%,var(--collection-color) 0 1px,transparent 2px),radial-gradient(circle at 90% 32%,var(--collection-color) 0 1px,transparent 2px),radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--collection-color) 35%,transparent),transparent 50%);background-size:110px 145px,170px 200px,100% 100%}
.collection-atmosphere[data-family=water],.collection-atmosphere[data-family=wind]{background:repeating-linear-gradient(155deg,transparent 0 48px,color-mix(in srgb,var(--collection-color) 13%,transparent) 50px,transparent 52px 95px);mask-image:linear-gradient(90deg,transparent 45%,#000)}
.collection-practice{width:min(740px,94vw);box-sizing:border-box;max-height:90dvh;overflow:auto;padding:28px;color:#dde9ee;border:1px solid #6b93a8;background:radial-gradient(ellipse at top,#193144,#08111e 70%)}
.collection-practice>.collection-close{float:right;background:#152c3e;border:1px solid #5c7487;color:#eef6fb;cursor:pointer}
.collection-practice h2{font-size:24px}.practice-note,.practice-status{font-size:12px;color:#b8cad8;line-height:1.8}.practice-position{font:18px Tektur,monospace;color:#efdabb}
.practice-input{padding:24px 12px;border:1px solid #638d9c;border-radius:8px;background:#091321;overflow-x:auto;white-space:nowrap}
.practice-text{font-size:clamp(20px,3vw,30px);margin:0 0 13px}.practice-reading{font-size:14px;color:#adc2cf}.practice-roman{font:clamp(18px,3vw,24px) Consolas,monospace;letter-spacing:.02em;margin:14px 0 0}
.practice-roman span{color:#5e8798}.practice-roman b{font-weight:normal;color:#e8f7ff;border-left:2px solid #72edff;box-shadow:-3px 0 6px -3px #9ef1ff;padding-left:2px}.has-error .practice-roman b{border-left-color:#ff846d}
.practice-start{padding:13px 24px;color:#dff5f7;background:#173d4c;border:1px solid #75b6c4;cursor:pointer}.collection-practice :focus-visible,.collection-art-viewer :focus-visible,.collection-home-goal:focus-visible{outline:2px solid #fee1a1;outline-offset:3px}
@media(max-width:640px){.collection-large-art{max-height:none}.collection-toolbar label{flex:1;min-width:120px}.collection-toolbar label:first-child{flex-basis:100%}.collection-toolbar input,.collection-toolbar select{width:100%;box-sizing:border-box;max-width:none}.collection-sync{align-items:start;flex-direction:column;gap:8px}.collection-art-viewer{padding:12px 8px 48px}.collection-art-viewer button{right:10px;top:10px}.collection-practice{padding:18px}.collection-home-goal{padding:10px 12px}.collection-result>button img{width:54px;height:81px}}
@media(prefers-reduced-motion:reduce){.collection-result.is-revealing>button,.collection-result.is-revealing::before{animation:none}.collection-result.is-revealing::before{display:none}}
.reduced-motion .collection-result.is-revealing>button,.reduced-motion .collection-result.is-revealing::before{animation:none}.reduced-motion .collection-result.is-revealing::before{display:none}
@media(min-width:850px){.result-card:not(.result-world):has(.collection-result.has-awards:not([hidden])){width:min(900px,96vw);display:grid;grid-template-columns:minmax(0,1fr) 175px;column-gap:24px}.result-card:not(.result-world):has(.collection-result.has-awards:not([hidden]))> :not(.collection-result){grid-column:1}.result-card:not(.result-world) .collection-result.has-awards{grid-column:2;grid-row:1/span 20;align-self:start;margin:0;padding:12px;display:block}.result-card:not(.result-world) .collection-result.has-awards>strong{display:block;font-size:13px;margin-bottom:12px}.result-card:not(.result-world) .collection-result.has-awards>button{display:block;width:100%;padding:0;overflow:hidden;margin-bottom:10px}.result-card:not(.result-world) .collection-result.has-awards img{width:100%;height:auto;aspect-ratio:2/3;display:block}.result-card:not(.result-world) .collection-result.has-awards>button>span{display:block;padding:9px;font-size:18px}.result-card:not(.result-world) .collection-result.has-awards small{line-height:1.6;font-size:10px}.result-card:not(.result-world) .collection-result.has-awards .collection-result-goal{border-top:1px solid #66738860;padding-top:12px}}
.collection-result:not(.has-awards){padding:8px 12px;margin:9px 0}

/* The archive shares the title/report's ink, aged gold and silver typography. */
.collection-dialog{--archive-gold:#dfc18a;--archive-line:#bda37152;--archive-muted:#c2bdb1;--archive-surface:#111d29;--archive-number:'TZCircuit',Consolas,monospace;background:radial-gradient(ellipse at 8% 0,#6a523025,transparent 55%),linear-gradient(145deg,#13202c,#09121d);border-color:#bda37185;border-radius:3px;padding:clamp(16px,2.4vw,30px);scrollbar-color:#9c875f #101b26;scrollbar-gutter:stable;overscroll-behavior:contain;scroll-padding-block:20px}
.collection-dialog::backdrop{backdrop-filter:blur(4px)}
.collection-heading{border-color:var(--archive-line)}
.collection-heading h2{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-weight:500;color:#f1e3c6}
.collection-heading p,.collection-toolbar label,.collection-detail-body>p,.collection-detail-note{color:var(--archive-muted)}
.collection-count b,.collection-count span,.collection-distribution b{font-family:var(--archive-number);text-shadow:none;font-variant-numeric:tabular-nums}
.collection-count b{color:#e5edf2}
.collection-eyebrow{font-family:Consolas,monospace;color:var(--archive-gold)}
.collection-dialog :is(button,input,select){border-radius:3px;min-height:40px;border-color:var(--archive-line);background-color:var(--archive-surface);color:#e8e4d9}
.collection-dialog :is(button,input,select):focus-visible{outline:2px solid #ffe5b0;outline-offset:3px}
.collection-dialog button:hover:not(:disabled){background-color:#29302f;border-color:#dfc18a}
.collection-detail,.collection-pager,.collection-condition{border-radius:3px;background:#0e1924}
.collection-pager{background:#111d29;border-color:var(--archive-line);box-shadow:0 6px 14px #0003}
.collection-card-name{align-items:flex-start;flex-direction:column;gap:5px;min-height:67px}
.collection-card-name strong{line-height:1.4;overflow-wrap:anywhere}
.collection-card-name small{font:10px/1.4 Consolas,monospace;overflow-wrap:anywhere}
.collection-goal-strip,.collection-sync{background:linear-gradient(110deg,#5d4c2526,#0d1b27);border-color:var(--archive-line)}
.collection-goal-strip{flex-wrap:wrap;gap:8px 14px}
.collection-goal-strip p{flex:1 1 240px;line-height:1.75}
.collection-goal-strip strong{white-space:normal}
.collection-benefits span,.collection-detail-note{font-size:12px;line-height:1.75}
.collection-actions button{min-height:44px;line-height:1.6}
.collection-actions button[aria-pressed=true]{background:linear-gradient(110deg,#614e32,#302b23);border-color:#e2c18a;color:#fff0d0;box-shadow:inset 2px 0 #e3c18a}
.collection-preview-status{min-height:1.7em;margin:12px 0 0;font-size:12px;line-height:1.7;color:#edd7ac}
.collection-toolbar #collection-reset{background:transparent;color:#c8bdab}
.collection-card:focus-visible{outline:2px solid #fff0c3;outline-offset:3px}
@media(max-width:640px){
  .collection-count{gap:6px}.collection-heading{gap:10px}
  .collection-heading h2{letter-spacing:.08em}
  .collection-pager span{font-size:11px;line-height:1.5}
  .collection-pager button{min-height:40px}
}
@media(max-width:480px){
  .collection-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .collection-heading>div:first-child{min-width:0}
  .collection-heading .collection-count{grid-column:1/-1;grid-row:2;margin-left:0}
  .collection-heading .collection-close{grid-column:2;grid-row:1}
  .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .collection-card-name{min-height:70px}
}
@media(prefers-reduced-motion:reduce){.collection-dialog::backdrop{backdrop-filter:none}}

/* Product Design pass: the artwork is the archive's primary content. */
html:has(.collection-dialog[open]){overflow:hidden}
.collection-dialog{width:min(1440px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:22px 24px 0;overflow:hidden;scrollbar-gutter:auto}
.collection-dialog[open]{display:flex;flex-direction:column}
.collection-dialog::backdrop{background:#050c14e8;backdrop-filter:none}
.collection-heading{flex-shrink:0;gap:24px;padding:0 0 14px}
.collection-heading>div:first-of-type{display:grid;gap:4px}
.collection-heading h2{font-size:28px;line-height:1.3;letter-spacing:.12em;margin:0}
.collection-heading .collection-eyebrow{font-size:10px;letter-spacing:.16em}
.collection-heading p{font-size:13px;color:#c1c9cc;margin:0}
.collection-count b{font-size:40px;line-height:1.15}.collection-count span{font-size:18px;line-height:1.3}
.collection-heading .collection-close{min-width:44px;height:44px;padding:5px;align-self:center}
.collection-content{min-height:0;overflow:auto;padding:0 5px 24px 2px;scrollbar-color:#9c875f #101b26;scroll-padding-block:12px;overscroll-behavior:contain}
.collection-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(110px,.52fr));gap:12px;margin:18px 0 14px}
.collection-toolbar label{min-width:0;font-size:12px;gap:7px;color:#c9d0d2}
.collection-toolbar :is(input,select){width:100%;max-width:none;min-height:44px;font-size:13px;border-color:#65758170;background:#0a1520;border-radius:2px}
#collection-message{min-height:0;margin:0;font-size:13px;line-height:1.7}
#collection-message:not(:empty){padding:10px 12px;margin-bottom:12px;border-left:2px solid var(--archive-gold);background:#d3bb8010}
.collection-goal-strip{min-height:48px;gap:12px;margin-bottom:20px;padding:10px 14px;border-color:var(--archive-line);background:#c6ab7310;font-size:13px}
.collection-goal-strip>span{font:10px Consolas,monospace;color:#d4bc8b}
.collection-goal-strip p{color:#c4cbd0;line-height:1.6}
.collection-goal-strip strong{font-family:var(--archive-number);font-size:16px;color:#e9dfc9}
.collection-layout{grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.collection-browser{grid-column:1;grid-row:1;min-width:0}
.collection-detail{grid-column:1;grid-row:1;position:static;max-height:none;overflow:visible;border-radius:2px;background:#0b1721}
.collection-pager{position:static;border:0;border-bottom:1px solid var(--archive-line);padding:0 0 12px;margin-bottom:16px;background:transparent;border-radius:0}
.collection-pager button{min-height:40px;color:#e7d3ab;background:#13212c;border-color:#af9b7154}
.collection-pager span{font-size:13px;color:#ccd4d7}
.collection-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 13px}
.collection-card{border-radius:2px!important;box-shadow:0 4px 12px #0004}
.collection-card[aria-pressed=true]{outline:2px solid #f1d8a5;outline-offset:3px}
.collection-card.is-locked img{filter:saturate(.65) brightness(.77)}
.collection-card-art>small{font:11px Consolas,monospace;border-radius:1px;background:#09121dda}
.collection-card-name{min-height:64px;padding:11px;gap:5px;align-items:flex-start}
.collection-card-name strong{font:500 19px/1.4 'Yu Mincho',serif;letter-spacing:.06em}
.collection-card-name small{font:9px/1.5 Consolas,monospace;letter-spacing:.04em}
.collection-favorite{background:#2c3027f2;color:#f2dcac;border-top:1px solid #c7ae715e;font-size:11px}
.collection-seal{font-size:11px;letter-spacing:.16em;color:#e0e4e5}
.collection-large-art{aspect-ratio:auto;max-height:none;overflow:visible}
.collection-large-art img{height:clamp(240px,40vh,390px);width:100%;object-fit:contain;background:#080f17}
.collection-art-caption{position:static;padding:15px 18px;background:#111f2a!important;border-bottom:1px solid var(--archive-line)}
.collection-art-caption span{font:10px Consolas,monospace;letter-spacing:.12em}
.collection-art-caption h3{font:500 28px/1.4 'Yu Mincho',serif;letter-spacing:.1em;margin:7px 0 4px}
.collection-art-caption p{font-size:13px;color:#c9d0d2}
.collection-detail-body{padding:18px}.collection-detail-body>p{font-size:13px;line-height:1.9}
.collection-detail-body [data-art]{font-size:13px;min-height:42px;margin-bottom:16px}
.collection-condition{border-radius:2px;font-size:13px;line-height:1.65}
.collection-actions button{min-height:44px;font-size:12px;line-height:1.6;border-radius:2px}
.collection-detail-note{font-size:12px;line-height:1.8}
.collection-footer{border-top:1px solid var(--archive-line);margin-top:24px;padding-top:18px;font-size:12px;color:#bac7ce}
.collection-footer>details{margin:12px 0}.collection-footer summary{min-height:36px;line-height:36px;color:#e1cca2}
.collection-footer #collection-reset{font-size:12px;min-height:40px;margin-top:10px}
.collection-distribution{margin:8px 0 16px}
.collection-sync{font-size:13px;border-radius:2px}
@media(max-height:760px) and (min-width:841px){
  .collection-toolbar{margin-top:12px}
  .collection-goal-strip{margin-bottom:16px}
}
@media(min-width:841px) and (max-width:1100px){
  .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* One scroll surface, with a dedicated card view that preserves the list position. */
.collection-dialog:not(.is-detail) #collection-detail{display:none}
.collection-dialog.is-detail :is(.collection-toolbar,.collection-goal-strip,.collection-browser,.collection-footer,.collection-sync){display:none}
.collection-dialog .collection-back{width:auto;min-width:90px;min-height:44px;padding:8px 12px;flex-shrink:0;border:1px solid var(--archive-line)!important;background:#16232e;color:#e8d4aa;border-radius:2px!important}
.collection-dialog .collection-back:not([hidden]){display:block}
.collection-dialog .collection-back[hidden]{display:none}
.collection-dialog.is-detail .collection-layout{display:block;padding-top:16px}
.collection-dialog.is-detail .collection-detail{display:grid;grid-template-columns:minmax(200px,.72fr) minmax(0,1fr);gap:28px;border:0;background:transparent;max-width:1060px;margin:auto;width:100%}
.collection-dialog.is-detail .collection-large-art{border:1px solid var(--archive-line);background:#09121b;align-self:start;overflow:hidden}
.collection-dialog.is-detail .collection-large-art img{display:block;width:100%;height:clamp(290px,66dvh,590px);max-height:none;object-fit:contain}
.collection-large-art [data-art]{width:100%;min-height:44px;border:0;border-top:1px solid var(--archive-line);background:#14212b;color:#e5d2ac;border-radius:0;font-size:13px}
.collection-dialog.is-detail .collection-detail-body{padding:0;min-width:0}
.collection-detail-body .collection-art-caption{padding:0 0 16px;background:transparent!important;border:0}
.collection-detail-body .collection-art-caption h3{font-size:34px;margin:6px 0}
.collection-detail-body .collection-condition{margin:0 0 16px;padding:14px 16px}
.collection-detail-body .collection-benefits{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;margin:0 0 18px;font-size:13px}
.collection-detail-body .collection-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.collection-detail-body .collection-actions [data-select=favorite]{background:#3e3726;border-color:#c7ad75}
.collection-detail-body .collection-actions button:first-child{grid-column:auto}
.collection-story{border-top:1px solid var(--archive-line);margin-top:18px;padding-top:6px;color:#c8d1d5;font-size:13px;line-height:1.9}
.collection-story summary{min-height:44px;padding:10px 0;cursor:pointer;color:#e5c995}
.collection-preview-status:empty{display:none}
@media(max-height:760px) and (min-width:701px){
  .collection-dialog .collection-heading p{display:none}
  .collection-dialog .collection-card-art{aspect-ratio:auto;height:clamp(190px,calc(100dvh - 460px),260px)}
  .collection-dialog .collection-card-art img{object-fit:contain}
  .collection-dialog.is-detail .collection-heading p{display:none}
  .collection-dialog.is-detail .collection-layout{padding-top:12px}
  .collection-detail-body .collection-art-caption{padding-bottom:10px}
  .collection-detail-body .collection-art-caption h3{font-size:30px;margin:4px 0}
  .collection-detail-body .collection-condition{margin-bottom:12px;padding:10px 14px}
  .collection-detail-body .collection-benefits{margin-bottom:12px}
}
@media(max-width:700px){
  .collection-dialog.is-detail .collection-heading>div:first-of-type{display:none}
  .collection-dialog.is-detail .collection-heading .collection-count{margin-left:0}
  .collection-dialog.is-detail .collection-heading .collection-close{margin-left:auto}
  .collection-dialog.is-detail .collection-detail{grid-template-columns:1fr;gap:20px}
  .collection-dialog.is-detail .collection-large-art{width:100%;max-width:320px;justify-self:center}
  .collection-dialog.is-detail .collection-large-art img{height:340px;max-height:48dvh}
  .collection-detail-body .collection-art-caption h3{font-size:30px}
}
@media(max-width:840px){
  .collection-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px 16px 0}
  .collection-heading{gap:12px;padding-bottom:14px}.collection-heading h2{font-size:24px}
  .collection-count b{font-size:30px}.collection-count span{font-size:15px}
  .collection-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
  .collection-toolbar label:first-child{grid-column:1/-1}.collection-toolbar label{min-width:0}
  .collection-toolbar :is(input,select){font-size:12px;padding:9px 7px}
  .collection-layout{display:flex;flex-direction:column;gap:22px}
  .collection-layout>section{width:100%}.collection-detail{position:static;max-height:none;overflow:visible}
  .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px}
  .collection-back{display:block;width:100%;min-height:44px;border:0!important;border-bottom:1px solid var(--archive-line)!important;border-radius:0!important}
  .collection-large-art img{height:420px;max-height:55dvh}
}
@media(max-width:520px){
  .collection-dialog{padding:14px 12px 0}.collection-heading{flex-wrap:nowrap;display:flex;gap:10px}
  .collection-heading h2{font-size:22px;white-space:nowrap}.collection-heading p{display:none}
  .collection-heading .collection-eyebrow{font-size:8px;letter-spacing:.08em}
  .collection-count{margin-left:auto;gap:5px}.collection-count b{font-size:26px}.collection-count span{font-size:12px}.collection-count small{font-size:10px}
  .collection-heading .collection-close{min-width:40px;width:40px;height:40px;font-size:23px!important}
  .collection-toolbar{margin:14px 0;gap:9px}.collection-goal-strip{gap:6px 12px;margin-bottom:16px}
  .collection-goal-strip>span{flex-basis:100%}.collection-goal-strip p{width:auto;flex-basis:100%;order:2;font-size:12px}
  .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
  .collection-card-name{min-height:64px}.collection-pager span{font-size:11px}
  .collection-content{padding-right:3px}.collection-sync{font-size:12px}
}
@media(forced-colors:active){
  .collection-dialog,.collection-art-caption,.collection-detail,.collection-card{background:Canvas!important;color:CanvasText;border-color:CanvasText!important}
  .collection-card[aria-pressed=true]{outline-color:Highlight}.collection-card.is-locked img{filter:none}
}

/* One finite acquisition reveal, mounted only after the result is visible. */
.collection-result-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;width:100%}
.collection-result-heading>strong{color:var(--collection-color,#e6c990)}
.collection-result .collection-reveal-replay{width:auto;min-height:36px;padding:6px 10px;font-size:12px;line-height:1.5;background:#101d25;color:#f2dbab;border:1px solid #bda16b80;box-shadow:none}
.collection-drop{--drop-metal:#d6c9a9;--drop-ivory:#fff2cc;position:fixed;z-index:1000;top:max(76px,calc((100dvh - 620px)/2));right:clamp(52px,7vw,110px);width:min(280px,calc((100dvh - 235px)/1.5));margin:0;padding:0;pointer-events:none;color:#f7eedb;text-align:center;isolation:isolate;font-family:'Yu Gothic','Meiryo',sans-serif}
.collection-drop[hidden]{display:none!important}
.result-memory.is-reward-revealing{opacity:0!important;pointer-events:none}
.collection-drop[data-tier=uncommon]{--drop-metal:#91cdb1}.collection-drop[data-tier=rare]{--drop-metal:#e99a86}.collection-drop[data-tier=epic]{--drop-metal:#c39aed}.collection-drop[data-tier=legendary]{--drop-metal:#f0c464}.collection-drop[data-tier=celestial]{--drop-metal:#97e2ff}.collection-drop[data-tier=transcendent]{--drop-metal:#e1bcff}
.collection-drop-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.collection-drop-eyebrow{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 14px;padding:8px 4px;border-block:1px solid color-mix(in srgb,var(--drop-metal) 65%,transparent);background:linear-gradient(90deg,transparent,#09131efa 12% 88%,transparent);color:var(--drop-metal);font:7px/1.4 Consolas,monospace;letter-spacing:.13em;white-space:nowrap}
.collection-drop-eyebrow>b{font:600 12px/1.4 'Yu Mincho',serif;letter-spacing:.2em;color:var(--drop-ivory)}
.collection-drop-stage{position:relative;perspective:1400px;width:100%;aspect-ratio:2/3}
.collection-drop-card{position:absolute;inset:0;transform-style:preserve-3d}
.collection-drop-front,.collection-drop-back{position:absolute;inset:0;border:2px solid var(--drop-metal);border-radius:3px;backface-visibility:hidden;box-shadow:0 20px 32px #000c,0 0 0 3px #0a131e,0 0 0 4px color-mix(in srgb,var(--drop-metal) 70%,transparent),0 0 22px color-mix(in srgb,var(--drop-metal) 30%,transparent);overflow:hidden}
.collection-drop-front{transform:rotateY(0deg);background:radial-gradient(ellipse at 50% 40%,#354654,#09121d 75%)}
.collection-drop-front>img{display:block;width:100%;height:100%;object-fit:cover}
.collection-drop-back{transform:rotateY(180deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;background:repeating-linear-gradient(45deg,#d3b97512 0 1px,transparent 1px 14px),repeating-linear-gradient(-45deg,#d3b97512 0 1px,transparent 1px 14px),radial-gradient(ellipse,#20343d,#070f18 72%);color:var(--drop-metal)}
.collection-drop-back::before{content:'';position:absolute;inset:10px;border:1px solid var(--drop-metal);outline:1px solid #cabb8455;outline-offset:-5px;opacity:.65}
.collection-drop-back>b{position:relative;font:80px/1.4 'Yu Mincho',serif;border-block:1px solid var(--drop-metal);padding:5px 16px;color:var(--drop-ivory);text-shadow:0 0 24px #e3c67c99}
.collection-drop-back>b::before{content:'';position:absolute;inset:-8px;border:1px solid var(--drop-metal);transform:rotate(45deg)}
.collection-drop-seal{position:absolute;left:calc(50% - 66px);top:calc(50% - 66px);width:132px;height:132px;border:2px solid var(--drop-ivory);box-shadow:0 0 22px var(--drop-metal),inset 0 0 22px var(--drop-metal);border-radius:50%;opacity:0}
.collection-drop-back>span{font:16px/1.5 Consolas,monospace;letter-spacing:.1em}.collection-drop-back>small{font:9px/1.5 Consolas,monospace;letter-spacing:.2em}
.collection-drop-number{position:absolute;bottom:0;inset-inline:0;padding:22px 12px 10px;background:linear-gradient(transparent,#06101bf2);color:#fff2ce;font:10px/1.5 Consolas,monospace;letter-spacing:.15em;text-align:left}
.collection-drop-shine{position:absolute;inset:-20% 0;background:linear-gradient(100deg,transparent 32%,#fff8d963 47%,#fff9e1b3 50%,transparent 65%);opacity:0;pointer-events:none}
.collection-drop-foil{position:absolute;inset:0 -10%;background:linear-gradient(115deg,transparent 12%,#b6ceff80 25%,#f7deb8 40%,#ecc0ff99 52%,#bff9ec99 65%,transparent 80%);mask-image:linear-gradient(90deg,#000,transparent 16% 84%,#000);opacity:0}
.collection-drop-vignette{position:absolute;inset:-22% -27%;background:radial-gradient(ellipse,#06101bf5 25%,#06101bb3 50%,transparent 72%);opacity:0}
.collection-drop-halo{position:absolute;inset:-16% -25%;background:radial-gradient(ellipse,transparent 28%,var(--drop-metal) 48%,transparent 70%);opacity:0;pointer-events:none}
.collection-drop-rays{position:absolute;inset:-16% -28%;opacity:0;background:repeating-conic-gradient(from 0deg,transparent 0deg 18deg,var(--drop-ivory) 19deg 19.6deg,transparent 21deg 30deg);mask-image:radial-gradient(ellipse,transparent 25%,#000 48%,transparent 69%)}
.collection-drop-sigil{position:absolute;left:-19%;top:4%;width:138%;aspect-ratio:1;color:var(--drop-metal);opacity:0}
.collection-drop-sigil>svg{display:block;width:100%;height:100%;overflow:visible}
.collection-drop-beacon{position:absolute;left:47%;top:-12%;width:6%;height:123%;background:linear-gradient(transparent,var(--drop-metal) 25%,#fff7cf 48%,var(--drop-metal) 75%,transparent);box-shadow:0 0 22px var(--drop-metal);opacity:0}
.collection-drop-impact,.collection-drop-echo{position:absolute;left:-18%;top:4%;width:136%;aspect-ratio:1;border:2px solid var(--drop-metal);border-radius:50%;opacity:0;box-shadow:0 0 12px var(--drop-metal),inset 0 0 12px color-mix(in srgb,var(--drop-metal) 50%,transparent)}
.collection-drop-echo{border-width:1px}
.collection-drop-ribbon{position:absolute;left:-20%;top:5%;width:140%;aspect-ratio:1;border:2px solid transparent;border-top-color:var(--drop-ivory);border-right-color:var(--drop-metal);border-radius:50%;opacity:0;box-shadow:4px -3px 10px -7px var(--drop-metal)}
.collection-drop-ribbon::after{content:'';position:absolute;inset:9px;border:1px solid transparent;border-top-color:var(--drop-metal);border-radius:50%}
.collection-drop-ribbon-b{left:-13%;top:10%;width:126%;border-top-color:var(--drop-metal);border-right-color:transparent;border-bottom-color:var(--drop-ivory)}
.collection-drop-cut{position:absolute;left:-12%;top:42%;width:124%;height:3px;background:linear-gradient(90deg,transparent,var(--drop-metal) 20%,#fff 50%,var(--drop-metal) 80%,transparent);box-shadow:0 0 14px 2px var(--drop-metal);opacity:0}
.collection-drop-flash{position:absolute;inset:0;background:linear-gradient(125deg,#fff9d0,#fff 48%,var(--drop-metal));opacity:0}
.collection-drop-rim{position:absolute;inset:-7px;border:1px solid var(--drop-metal);border-radius:2px;opacity:0;box-shadow:0 0 15px color-mix(in srgb,var(--drop-metal) 70%,transparent),inset 0 0 8px var(--drop-metal)}
.collection-drop-rim::before,.collection-drop-rim::after{content:'';position:absolute;width:28px;height:28px;border:3px solid #fff4cd}
.collection-drop-rim::before{left:-4px;top:-4px;border-right:0;border-bottom:0}.collection-drop-rim::after{right:-4px;bottom:-4px;border-left:0;border-top:0}
.collection-drop-sparks{position:absolute;inset:0;pointer-events:none}
.collection-drop-spark{position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:#fff8e0;box-shadow:0 0 6px 2px var(--drop-metal);opacity:0}
.collection-drop-spark.is-shard{width:8px;height:15px;border-radius:0;background:linear-gradient(135deg,#fffce9 10%,var(--drop-metal) 45%,#a88442 80%);clip-path:polygon(5% 0,90% 20%,100% 95%,25% 80%)}
.collection-drop.is-exalted .collection-drop-front{box-shadow:0 20px 35px #000c,0 0 0 3px #0a131e,0 0 0 4px var(--drop-metal),0 0 34px color-mix(in srgb,var(--drop-metal) 60%,transparent)}
.collection-drop-caption{position:relative;z-index:3;margin-top:17px;padding:9px 8px 13px;background:linear-gradient(90deg,transparent,#09131ef5 12% 88%,transparent)}
.collection-drop-caption::before{content:'';position:absolute;top:0;left:15%;width:70%;height:1px;background:linear-gradient(90deg,transparent,var(--drop-metal),transparent)}
.collection-drop-rarity{display:block;color:var(--drop-metal);font-size:10px;letter-spacing:.22em}
.collection-drop-rank{display:flex;justify-content:center;gap:8px;margin:9px 0 3px}
.collection-drop-rank>i{display:block;width:5px;height:5px;transform:rotate(45deg);border:1px solid color-mix(in srgb,var(--drop-metal) 35%,transparent)}
.collection-drop-rank>.is-lit{background:var(--drop-metal);border-color:var(--drop-ivory);box-shadow:0 0 5px color-mix(in srgb,var(--drop-metal) 45%,transparent)}
.collection-drop-caption>strong{display:block;font:600 32px/1.45 'Yu Mincho',serif;letter-spacing:.14em;margin:5px 0;color:var(--drop-ivory);text-shadow:0 0 22px color-mix(in srgb,var(--drop-metal) 30%,transparent)}
.collection-drop-caption>small{display:block;color:#d6d8d7;font-size:10px;line-height:1.5}
.collection-drop.art-unavailable .collection-drop-front>img{visibility:hidden}
.collection-drop.art-unavailable .collection-drop-front::before{content:'零';position:absolute;inset:25% 0;color:var(--drop-metal);font:80px/1.5 'Yu Mincho',serif}
@media(max-height:760px){.collection-drop{top:76px}.collection-drop-eyebrow{margin-bottom:10px}.collection-drop-caption{margin-top:12px}.collection-drop-caption>strong{font-size:28px}}
@media(max-width:700px){.collection-drop{width:min(176px,calc((100dvh - 235px)/1.5));right:34px;top:80px}.collection-drop-back>b{font-size:48px}.collection-drop-back{gap:18px}.collection-drop-back>span{font-size:12px}.collection-drop-back>small{font-size:7px}.collection-drop-eyebrow{gap:6px;font-size:6px}.collection-drop-eyebrow>b{font-size:10px}.collection-drop-caption>strong{font-size:24px}.collection-drop-seal{width:96px;height:96px;left:calc(50% - 48px);top:calc(50% - 48px)}}
@media(max-height:520px){.collection-drop{width:132px;top:14px;right:28px}.collection-drop-eyebrow{margin-bottom:6px;font-size:6px;gap:5px}.collection-drop-eyebrow>b{font-size:9px}.collection-drop-caption{margin-top:6px;padding:5px}.collection-drop-caption>strong{font-size:20px}.collection-drop-back>b{font-size:40px}.collection-drop-back{gap:15px}.collection-drop-rank{margin:5px 0 2px;gap:6px}}
.reduced-motion .collection-drop-card,.collection-drop.is-calm .collection-drop-card{transform:none!important}
.reduced-motion .collection-drop-fx,.collection-drop.is-calm .collection-drop-fx{display:none}
@media(prefers-reduced-motion:reduce){.collection-drop-card{transform:none!important}.collection-drop-fx{display:none}.collection-drop-visual,.collection-drop-caption{transform:none!important;opacity:1!important}}

.collection-mode-badge{display:block;font-style:normal;font-size:11px;line-height:1.5;color:var(--card-accent,#edca86);letter-spacing:.04em;margin-top:4px}.collection-detail-body>.collection-mode-badge{padding:9px 12px;border:1px solid color-mix(in srgb,var(--card-accent) 45%,transparent);border-radius:5px;background:#102321;font-size:12px}.collection-toolbar{flex-wrap:wrap}

@media(min-width:1001px){.collection-toolbar{grid-template-columns:minmax(180px,1.2fr) minmax(105px,.65fr) minmax(145px,.85fr) minmax(100px,.65fr) minmax(125px,.8fr)}}


/* Readings sit below the name, outside artwork and rarity labels. */
.collection-card-name .card-roman,.collection-art-caption .card-roman,.collection-result .card-roman,.collection-drop-caption .card-roman{display:block;font:500 11px/1.5 'Yu Gothic UI',Arial,sans-serif;letter-spacing:.045em;text-transform:uppercase;color:#c7d0dc;overflow-wrap:anywhere;min-width:0}
.collection-card-name{min-height:85px}
.collection-card-name .card-roman{font-size:10px;margin-top:-2px}
.collection-art-caption .card-roman{font-size:13px;margin:0 0 8px;color:#d6c5a5}
.collection-result .card-roman{font-size:10px;margin:3px 0}
.collection-drop-caption .card-roman{font-size:11px;margin:0 0 6px;color:#ebd9b7}
.collection-availability{padding:10px 12px;border-left:2px solid #c9aa70;background:#c9aa7010;color:#e6d5b2;font-size:13px;line-height:1.7}

/* trial-progression.css */
.growth-panel{--growth:#8fd4ce;padding:15px 17px;border:1px solid #c3a16b66;border-left:3px solid var(--growth);background:linear-gradient(115deg,#102324eb,#0a1519e8);color:#e7ede5;max-width:100%;margin:15px 0;font-size:12px;text-align:left;box-sizing:border-box}
.growth-panel[data-level="2"]{--growth:#d6ba7b}.growth-panel[data-level="3"]{--growth:#c0a1e5}.growth-panel[data-level="4"]{--growth:#efc25e;background:linear-gradient(115deg,#2a2418f0,#10191ee8)}
.growth-heading,.growth-totals{display:flex;justify-content:space-between;gap:12px;align-items:center}.growth-heading{color:var(--growth);margin-bottom:12px}.growth-heading strong{font-size:14px;white-space:nowrap}.growth-totals{font-variant-numeric:tabular-nums;font-size:12px}
.growth-bar{display:block;width:100%;height:6px;margin-top:9px;border:0;background:#ffffff16;accent-color:var(--growth)}.growth-bar::-webkit-progress-bar{background:#ffffff16}.growth-bar::-webkit-progress-value{background:var(--growth)}
.growth-stats{display:flex;gap:35px;margin:8px 0 16px}.growth-stats small{display:block;font-size:10px;letter-spacing:.12em;color:#bac8c7}.growth-stats b{display:block;margin-top:5px;font:500 24px 'TZForge',Consolas,monospace;line-height:1.3;color:#f7ecd1;text-shadow:none}
.growth-panel .growth-note{font-size:11px;line-height:1.7;margin:8px 0 0;color:#b4c5c6}.growth-unlocked{color:#f4d791;font-weight:700;margin:9px 0 0;font-size:12px}
.growth-rules{margin-top:8px;color:#c6baa0;font-size:10px}.growth-rules summary{cursor:pointer;padding:3px 0}
.growth-opponent{position:absolute;top:94px;left:22px;z-index:3;display:flex;align-items:center;gap:10px;color:#f2deb3;background:#0b1919da;border-left:2px solid #cfb57c;padding:8px 12px;pointer-events:none;max-width:240px;font-size:11px}.growth-opponent strong{font-size:19px;letter-spacing:.1em}.growth-opponent small{display:block;font-size:10px;color:#b5cecc}
.arrow-enemy{width:90px;height:96px;object-fit:contain;flex:none;filter:drop-shadow(0 5px 8px #0009)}.battle-banner .arrow-enemy{display:block}.battle-banner .growth-enemy-label{color:#e7cca0}
.arrow-page .battle-banner{background-image:linear-gradient(90deg,#14222bf5,#101e29de 65%,#0a1520b8)}
.result-world .growth-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 16px;padding:10px 14px;margin:8px 0}
.growth-panel .growth-stats b.growth-verification{font-family:inherit;font-size:16px;line-height:1.8;letter-spacing:.04em;color:#d6c8a8}
.result-world .growth-heading{grid-column:1/-1;margin:0}.result-world .growth-stats{grid-column:1;grid-row:2/span 2;margin:0;gap:22px}.result-world .growth-stats b{font-size:22px;margin-top:2px}
.result-world .growth-totals{grid-column:2;grid-row:2;display:block;font-size:10px;line-height:1.6}.result-world .growth-totals span{display:block}.result-world .growth-bar{grid-column:2;grid-row:3;margin:0;align-self:center}.result-world .growth-note,.result-world .growth-unlocked{grid-column:1/-1;margin:0;font-size:10px}
@media(max-width:560px){.growth-panel{padding:12px}.growth-heading{gap:6px;font-size:11px}.growth-heading strong{font-size:12px}.growth-totals{font-size:11px}.growth-opponent{top:150px;left:auto;right:12px;padding:6px 9px}.growth-opponent strong{font-size:16px}.arrow-enemy{width:64px;height:76px}}
@media(max-width:560px){.result-world .growth-panel{column-gap:8px;padding:9px}.result-world .growth-stats{gap:12px}.result-world .growth-stats b{font-size:18px}}

/* growth-history.css */
.growth-history{width:min(920px,calc(100vw - 28px))}.growth-filters{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 12px}.growth-filters button{padding:9px 15px;background:#102329;border:1px solid #bda16b55;color:#c5d4d2}.growth-filters button[aria-pressed=true]{background:#d9bd83;color:#102027;border-color:#efdcab}.growth-course-label{display:flex;align-items:center;gap:12px;color:#d9c494}.growth-course-label select{padding:8px 12px;background:#0c2027;color:#edf2ed;border:1px solid #c4a56b66}.growth-history .growth-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid #c4a56b55;margin-top:18px;padding:18px 0;gap:18px}.growth-history .growth-stats span{display:block;font-size:12px;color:#b6c6c1}.growth-history .growth-stats strong{display:block;font-family:TZCircuit,Consolas,monospace;font-size:19px;line-height:1.8;color:#f0e0bc;font-weight:400;font-variant-numeric:tabular-nums}.growth-history figure{margin:22px 0 12px}.growth-history figcaption{font-size:13px;color:#ddc38d}.growth-chart svg{display:block;width:100%;height:auto;max-height:230px}.growth-chart text{fill:#b9c9c8;font:12px sans-serif}.growth-grid{stroke:#b2bdac30;fill:none;stroke-width:1}.growth-line{stroke:#b6e4d7;stroke-width:2.2;fill:none}.growth-dot{fill:#b6e4d7}.growth-best{fill:#f4ca7c;stroke:#fff0cd;stroke-width:1.2}.growth-history .growth-note{font-size:12px;line-height:1.8;color:#b6c6c1}.growth-history th,.growth-history td{font-variant-numeric:tabular-nums;white-space:nowrap}.growth-history td{font-size:14px}.growth-history .table-scroll{max-height:270px}.growth-history .history-footer{margin-top:18px}@media(max-width:620px){.growth-history .growth-stats{gap:10px}.growth-history .growth-stats strong{font-size:13px}.growth-history .growth-stats span{font-size:11px}.growth-history .ranking-archive-header img{max-width:110px}.growth-filters button{padding:8px 11px}.growth-history .history-footer{flex-wrap:wrap;gap:12px}}

/* arrow-host.css */
/* Fonts are document resources, also used by the isolated direction HUD. */
@font-face{font-family:ArrowDigits;src:url('assets/fonts/Michroma-Regular.woff2?v=966d9b3f4cebb1ea5b9dd939e121d2e2e54c5c73739d9239d0f0fa133bbe8645') format('woff2');font-display:swap}
@font-face{font-family:ArrowTitle;src:url('assets/fonts/Tektur.woff2?v=5df3783d0fa5f69b9ab45ac5f8ebfbf4cd0083fd2de440102fb074cf894049dd') format('woff2');font-display:swap}
#arrow-screen[hidden]{display:none!important}
.arrow-course-help{font-size:12px;line-height:1.8;color:var(--launch-muted,#b7c1c9);margin:12px 0}
.arrow-course-help summary{cursor:pointer;color:#ddbf87}
.arrow-lobby .collection-home-goal{display:none}
@media(max-width:600px){.arrow-lobby .mode-overview h1 em{display:block;white-space:nowrap}}

/* mode-navigation.css */
.mode-categories{display:flex;gap:4px;border-bottom:1px solid #8b734d;margin:12px 0 8px;flex-wrap:wrap}
.mode-categories button{flex:1;min-width:64px;background:#0a1821;color:#bac8c8;border:0;border-bottom:3px solid transparent;padding:10px 8px;font:inherit;cursor:pointer}
.mode-categories button[aria-pressed=true]{color:#f2d79d;border-bottom-color:#d9b66f;background:#1c2528}
.mode-categories button:focus-visible{outline:2px solid #d9e9ed;outline-offset:-2px}
.grouped-modes{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.grouped-modes button[hidden]{display:none!important}
.grouped-modes button{min-height:58px}
@media(max-width:480px){.mode-categories button{min-width:48px;padding:9px 4px;font-size:12px}}

/* readability.css */
/* Secondary copy stays readable without moving the fixed typing slots. */
.subtle,.archive-caption,#best-condition-note,.submit-status,.result-history{font-size:12px;line-height:1.65;color:#b8c8d2}
.keyboard-hints,.prompt-heading,.input-help,.boss-integrity,.finish-progress{font-size:12px;color:#c5d6df}
.result-standing p,.result-standing small,.result-history-row .text-button{font-size:12px;line-height:1.5}
#board-dialog #board-meta,#board-dialog #board-status,#board-dialog>.subtle,#board-dialog .keyboard-hints{font-size:12px;line-height:1.5}
.result .result-history-row button{font-size:12px}
.result-metrics small,.lap-table th,.lap-table td{font-size:12px}
.result-actions button,.volume-actions button,.motion-setting{font-size:13px}
#settings-dialog{max-height:calc(100svh - 32px);overflow-y:auto;scroll-padding:20px}
.voice-settings select{width:100%;min-height:38px;background:#11212e;color:#eaf5fb;border:1px solid #55707f;border-radius:5px;padding:7px 10px;font:inherit}
.voice-settings label{display:flex;justify-content:space-between;gap:12px;margin:10px 0;font-size:13px}
.voice-settings input[type=range]{width:100%;accent-color:#b9f56b}
.voice-settings output{font-variant-numeric:tabular-nums;color:#b9f56b}
.voice-settings button{margin-top:8px;min-height:36px;font-size:13px}
.voice-settings .subtle{margin-bottom:0}
.race #ghost-opponent{font-size:12px;line-height:16px;height:16px}
.race #race-gap{font-size:12px;line-height:17px}
.race>div{font-size:11px}
.telemetry small,.run-status{font-size:12px}
.timeattack-panel p,.timeattack-panel small,.result-peak-note,.result-grade-reason,.timeattack-laps table{font-size:12px;line-height:1.5}
.home-timeattack p,#home-ghost-note,.timeattack-unlock-note{font-size:12px;line-height:1.6}
#ready-status,#course-reset,.rules-brief,.account-line,.course-footer,#ghost-note{font-size:12px;line-height:1.65;color:#c0d0d9}
.lobby .personal small,.lobby .personal span,.result .submit-status,.lap-grid small,.lap-comparison{font-size:12px;line-height:1.5}
.result-metrics span{font-size:12px}
#input-help,#finish-progress,.prompt-heading{font-size:12px}
#settings-dialog{width:min(550px,calc(100% - 32px));max-width:550px;padding:20px 28px}
#settings-dialog h2{margin:8px 0 14px}
#settings-dialog .motion-setting{padding:14px 0}
#settings-dialog .trial-setting{padding:12px 0}
#settings-dialog .voice-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
#settings-dialog .voice-settings label{margin:2px 0}
#settings-dialog label[for=announcer-voice]{grid-area:1/1}
#settings-dialog #announcer-voice{grid-area:2/1}
#settings-dialog label[for=voice-volume]{grid-area:1/2}
#settings-dialog #voice-volume{grid-area:2/2;margin:0}
#settings-dialog #voice-preview{grid-column:1/-1;justify-self:start;margin-top:2px}
#settings-dialog .voice-settings .subtle{grid-column:1/-1;margin:0}
@media(max-height:740px) and (min-width:851px){
 .result-standing p,.result-standing small{font-size:12px}
 .result-card{padding-top:12px;padding-bottom:12px}
 .result-standing{padding:6px 10px}
 .trial-setting{padding:12px 0}
}
@media(max-height:660px) and (min-width:851px){
 .arena.is-playing,.arena:has(>.result:not([hidden])){min-height:0;height:calc(100svh - 70px)}
}
@media(max-width:560px){
 .result-history-row{flex-wrap:wrap}
 .volume-actions{flex-wrap:wrap;gap:8px 16px}
}

/* web-ads.css */
/* Results only. No fixed overlay or space reserved in the play area. */
.web-banner{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;margin:24px 0 32px;padding:10px 0;background:#080f17;border-block:1px solid #263541;color:#8d9fac;isolation:isolate}
.web-banner[hidden],.web-banner-unit[hidden]{display:none!important}
#result-dialog:not([open]) .web-banner,#result[hidden] .web-banner{display:none!important}
.web-banner-label{font:10px/1.4 sans-serif;letter-spacing:.1em}
.web-banner-unit{display:block;width:234px;height:60px;flex:none;text-decoration:none}
.web-banner-unit a,.web-banner-unit img{display:block;width:100%;height:100%;object-fit:contain}
.web-banner-preview{display:flex;align-items:center;justify-content:center;border:1px dashed #48606e;background:linear-gradient(125deg,#14232f,#0c1822);color:#9cafba;font:12px/1.6 sans-serif;letter-spacing:.12em}
/* Keep the top reachable when a result exceeds the window height. */
#result:has(.web-banner:not([hidden])){align-items:safe center}
@media(min-width:400px){.web-banner-unit{width:320px;height:50px}}
@media(min-width:620px){.web-banner-unit{width:468px;height:60px}}

/* long-text.css */

.trial-mode-switch{display:flex;gap:8px;margin:0 0 16px}
.trial-mode-switch button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;font-size:13px;background:#091722}
.trial-mode-switch button[aria-pressed=true]{border-color:var(--cyan);color:#e3fcff;background:#173542;box-shadow:inset 0 -2px var(--cyan)}
.trial-mode-switch small{font-size:10px;color:var(--muted)}
.trial-mode-switch button{flex:1;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;line-height:1.5}
.trial-mode-switch button>span{display:flex;align-items:center;gap:9px}
.trial-mode-switch small{font-size:10px;white-space:normal}
.long-options{margin:0 0 14px;max-width:480px}
.long-daily{display:grid;gap:7px;padding:12px 15px;border:1px solid #7cabb956;border-left:3px solid var(--cyan);border-radius:5px;background:#0b1c29c9}
.long-daily>span{font-size:11px;color:var(--cyan);letter-spacing:.04em}
.long-daily>strong{font-size:18px;line-height:1.4;color:var(--ink)}
.long-daily>small{font-size:11px;color:var(--muted)}
.long-options p{font-size:11px;color:var(--muted);margin:7px 0 0}
.longtext .lobby h1{font-size:clamp(32px,3.6vw,52px);margin:12px 0}
.longtext .lobby .intro{margin-bottom:12px}
.longtext .course-summary{margin-bottom:14px}
.longtext .prompt-window{overflow:hidden;width:100%;border-radius:3px}
.longtext .prompt{justify-content:flex-start;width:max-content;min-width:100%;gap:0;font-size:32px!important;letter-spacing:.015em}
.longtext .prompt span{flex:none}
.longtext .prompt .long-read{color:#92a9b7}
.longtext .prompt .long-current{color:#e9ffd5;text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:7px;text-decoration-thickness:2px}
.longtext .kana{text-align:left;font-size:16px!important;scrollbar-width:none}
.longtext .kana .long-read{color:#6d8999}
.longtext .kana .long-current{color:#dfffbc}
.longtext .race b{width:42px}
.longtext .lap-grid{max-height:165px;overflow:auto;scrollbar-color:#416279 #102230}
.longtext .result{align-items:safe center}
.long-result-text{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.long-result-text summary{cursor:pointer;color:var(--cyan);padding:5px 0}
.long-result-text p{line-height:2;color:var(--ink)}
.long-result-text a{display:block;overflow-wrap:anywhere;margin:6px 0;color:var(--cyan)}
.longtext .result .result-actions{grid-template-columns:1fr auto}
@media(max-width:650px){.trial-mode-switch button{padding:9px 10px;font-size:12px}.trial-mode-switch kbd{display:none}.longtext .prompt{font-size:25px!important}.longtext .kana{font-size:14px!important}.longtext .result .result-actions{grid-template-columns:1fr 1fr}.longtext .result-actions .primary{grid-column:span 2}.long-options p{font-size:10px}}
@media(max-height:740px) and (min-width:851px){.trial-mode-switch{margin-bottom:10px}.longtext .lobby h1{font-size:34px}.long-options{margin-bottom:8px}.longtext .lobby .personal{margin-top:10px;padding-top:10px}.longtext .prompt{font-size:30px!important}}

/* numpad.css */
/* Numeric input; shared title sizing and spacing come from title-world.css. */
.trial-mode-switch #mode-numpad{display:flex;align-items:flex-start;justify-content:flex-start;gap:5px}
.numpad-options{margin:0 0 20px;padding:12px;border:1px solid #c5ac7659;background:#111b24d9;min-width:0}
.numpad-options[hidden]{display:none}
.numpad-options legend{font-size:11px;letter-spacing:.12em;color:#dfc48e;padding:0 6px}
.numpad-options [role=group]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.numpad-options button{justify-content:center;gap:7px;padding:12px 5px;background:#15202a;border:1px solid #c9ad744d;border-radius:2px;font:20px TZCircuit,Consolas,monospace;color:#d7d8d0}
.numpad-options button small{font:10px 'Yu Gothic UI',sans-serif}
.numpad-options button[aria-pressed=true]{color:#f8e5b7;border-color:#ddbc7b;background:#5b482f77;box-shadow:inset 0 -2px #ddbc7b}
.numpad-options p{font-size:10px;line-height:1.6;color:#c7c2b7;margin:10px 0 0}
.arena.numpad #prompt-window,.arena.numpad #kana{display:none}
.arena.numpad .collection-home-goal{display:none}
.arena.numpad #romaji-window{height:auto;min-height:100px;padding:12px 0}
.arena.numpad #romaji{height:auto;min-height:76px;padding:6px 8px;font:600 clamp(22px,4.3vw,46px)/1.35 Consolas,'Courier New',monospace;letter-spacing:.09em;font-variant-numeric:tabular-nums;text-shadow:none}
.arena.numpad #finish-progress{font-size:12px}
@media(max-width:560px){.trial-mode-switch{display:grid;grid-template-columns:1fr 1fr}.trial-mode-switch #mode-numpad{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.numpad-options{margin-bottom:12px}.arena.numpad #romaji{font-size:clamp(20px,6.5vw,32px);letter-spacing:.055em}}

/* input-cursor.css */
/* Approved 02 / SCAN LINE. Presentation only: the accepted prefix never moves on a miss. */
.romaji #next,#typing-word .next-key,.enemy-roman .next-key{
  --cursor-line:#b9f7ff;--cursor-accent:#7be9ff;--cursor-halo:#4ad6ff99;
  position:relative;display:inline-block;flex:none;min-width:.63em;padding:0;margin:0;
  font:inherit;line-height:1.2;text-align:center;vertical-align:baseline;
  color:#d2faff;background:linear-gradient(90deg,#58dafc20,transparent);
  border:0;border-radius:0;outline:0;box-shadow:0 2px 0 var(--cursor-accent);
  text-shadow:0 0 10px #72d9ff65;animation:none;
}
.romaji #next::before,#typing-word .next-key::before,.enemy-roman .next-key::before{
  content:'';position:absolute;pointer-events:none;left:-4px;top:-.12em;bottom:-.14em;
  width:3px;background:var(--cursor-line);box-shadow:0 0 6px var(--cursor-accent),0 0 16px var(--cursor-halo);
}
.romaji #next::after,#typing-word .next-key::after,.enemy-roman .next-key::after{
  content:'';position:absolute;pointer-events:none;left:-6px;top:-.32em;width:7px;height:7px;
  border-radius:50%;background:var(--cursor-line);box-shadow:0 0 9px var(--cursor-accent);
}
.romaji #next:empty,#typing-word .next-key:empty,.enemy-roman .next-key:empty{display:none}
/* Reserve headroom for the top dot and space at the first/last key. */
#romaji-window{height:54px;margin-top:4px}
#romaji{position:relative;height:100%;padding:9px 8px 7px;align-items:center}
#input-help{color:#bcdfea}
.longtext .prompt .long-current{color:#e2faff;text-decoration-color:#7be9ff}
.longtext .kana .long-current{color:#b9f2ff;text-decoration:underline;text-decoration-color:#7be9ff;text-underline-offset:4px}
.typing-console #typing-word{padding:10px 8px 6px}
.timeattack-playing .typing-console #typing-word{height:calc(1lh + 16px)}
.enemy-roman{padding:6px 6px 4px}
.enemy-label.input-miss .enemy-roman::before{content:none}
/* Error colours keep the same dimensions, line and dot instead of adding a label that shifts text. */
.input-area.mistake #next,#typing-word.input-miss .next-key,.input-miss .enemy-roman .next-key{
  --cursor-line:#ffe2e6;--cursor-accent:#ff9fb2;--cursor-halo:#ff6d9980;
  color:#ffe0e7;background:linear-gradient(90deg,#ff88a32b,transparent);
  box-shadow:0 2px 0 var(--cursor-accent);text-shadow:0 0 10px #ff91ac50;
}
@media(max-height:740px) and (min-width:851px){#romaji-window{height:44px}#romaji{padding-top:9px;padding-bottom:5px}}
@media(max-width:560px){#romaji-window{height:44px}#romaji{padding-top:9px;padding-bottom:5px}}
/* The cursor never blinks off, including reduced-effects and OS reduced-motion modes. */
@media(forced-colors:active){
 .romaji #next,#typing-word .next-key,.enemy-roman .next-key{color:CanvasText;background:Canvas;border-bottom:2px solid Highlight;text-shadow:none;box-shadow:none}
 .romaji #next::before,.romaji #next::after,#typing-word .next-key::before,#typing-word .next-key::after,.enemy-roman .next-key::before,.enemy-roman .next-key::after{background:Highlight;forced-color-adjust:none;box-shadow:none}
}

/* play-surface.css */
/* Shared tactical surfaces. The world stays atmospheric; input stays still. */
:root{--play-edge:#7ae4f05c;--play-surface:#071621f2;--play-muted:#b4cbd5}
.input-area,.typing-console{
  background:linear-gradient(115deg,#102633f5,var(--play-surface) 55%);
  border-color:var(--play-edge);
  box-shadow:0 14px 40px #0006,inset 0 1px 0 #cffaff12;
}
.input-area::before{
  content:'';position:absolute;left:20px;right:20px;top:-1px;height:1px;
  background:linear-gradient(90deg,transparent,#9ff5ffb3,transparent);pointer-events:none;
}
.input-area .prompt-heading{color:var(--play-muted);letter-spacing:.04em}
.input-area .kana{color:#d1e1e7}
.romaji #typed{color:#91a7b4}
.input-area.mistake{border-color:#ff9fb2;box-shadow:0 14px 40px #0006,inset 3px 0 #ff9fb2}
.input-area.mistake #input-help{color:#ffd4df}
/* Solo and ghost runs keep the same prompt height/position. Reclaim only the
   unused bottom rows, exposing the weapon rather than pushing the prompt down. */
.race.solo{height:57px}
.race.solo #ghost-row[hidden],.race.solo #ghost-opponent[hidden]{display:none!important}
.input-area:has(.race.solo){margin-bottom:42px}
.race .track{height:7px;background:#253b4a;box-shadow:inset 0 1px 2px #0008}
.race .track i{box-shadow:0 0 9px #b9f56b55}
.race .track.ghost i{box-shadow:0 0 9px #8edcea55}
.race[data-lead="you"] #race-gap{color:#dcffa8}
.race[data-lead="ghost"] #race-gap{color:#a9ebff}
.race #race-gap{color:var(--play-muted)}
.telemetry>div{
  padding:9px 12px;background:linear-gradient(120deg,#091923eb,#08131dcc);
  border:1px solid #92c9db26;border-top-color:#a2edfa55;border-radius:5px;
  box-shadow:0 5px 16px #0002;
}
.telemetry small{color:#c0d8e3}
.telemetry .time{border-top-color:#d4f76a99}
.telemetry .combo{border-top-color:#d4f76a99}
.telemetry .combo i{left:0;bottom:0;border-radius:0 0 4px 4px;max-width:100%}
.longtext .kana{white-space:nowrap}
.longtext .kana span{display:inline-block}
.longtext .kana .long-read{color:#8fa7b4}
.longtext .kana .long-current{
  color:#e8fdff;background:#62dffc23;box-shadow:inset 0 -2px #7be9ff;
  text-decoration:none;border-radius:2px;
}
.longtext .prompt .long-current{text-decoration:none}
.input-review{border-top:1px solid #87bcca33;padding-top:10px;margin:12px 0;color:#bed3df;font-size:11px}
.input-review summary{cursor:pointer;color:#a9eaf3;padding:6px 0;font-size:12px}
.performance-details{font-size:12px;margin:0 0 18px;color:#b6d4df}.performance-details summary{cursor:pointer;padding:8px 0}.performance-details pre{font:11px/1.8 Consolas,monospace;white-space:pre-wrap;padding:12px;background:#081520}
.input-review p{line-height:1.7;margin:8px 0}
.input-review ol{padding:0;list-style:none;display:grid;gap:7px;max-height:230px;overflow:auto}
.input-review li{display:grid;grid-template-columns:1fr auto;gap:5px 14px;border-left:2px solid #7ae4f060;padding:7px 10px;background:#13283270}
.input-review li strong{color:#e6f7fc;font-size:13px}.input-review li span{font-variant-numeric:tabular-nums}
.input-review li small{grid-column:1/-1;line-height:1.6;color:#b3c7d1}
.boss-integrity.packet-pulse{animation:packet-confirm .24s ease-out}
@keyframes packet-confirm{0%{filter:brightness(1.8)}100%{filter:brightness(1)}}
.reduced-motion .boss-integrity.packet-pulse{animation:none}
@media(prefers-reduced-motion:reduce){.boss-integrity.packet-pulse{animation:none}}
@media(max-width:560px){.input-review li{grid-template-columns:1fr}.input-review li small{grid-column:1}}
.longtext .prompt .long-current{color:#f1ffff;text-shadow:0 0 16px #70dbea30;box-shadow:inset 0 -2px #78e8f5}
/* During combat the brand bar is secondary. Keep the text size; reclaim space
   from chrome and spacing, never from the player's reading line. */
body:has(.arena.is-playing) .topbar{height:42px}
.arena.is-playing{height:calc(100svh - 42px)}
.is-playing .telemetry{gap:0;top:12px;align-items:stretch}
.is-playing .telemetry>div{border-radius:0;border-right:0;box-shadow:none;padding:8px 15px;background:#081923e8}
.is-playing .telemetry>div:first-child{border-radius:6px 0 0 6px}
.is-playing .telemetry>div:nth-child(4){border-right:1px solid #92c9db26;border-radius:0 6px 6px 0}
.is-playing .telemetry button{align-self:center}
.is-playing .telemetry small{font-size:9px;margin-bottom:5px}
.is-playing .telemetry .time{min-width:224px}
.is-playing .telemetry .time strong{font-size:36px}
.is-playing .run-status{top:91px}
@media(max-height:740px) and (min-width:561px){
  body:has(.arena.is-playing) .topbar{height:36px}
  .arena.is-playing{height:calc(100svh - 36px)}
  .is-playing .telemetry{top:8px;left:24px;right:24px}
  .is-playing .telemetry>div{padding:6px 12px;min-width:96px}
  .is-playing .telemetry .time{min-width:202px}
  .is-playing .telemetry .time strong{font-size:32px}
  .is-playing .telemetry strong{font-size:23px}
  .is-playing .run-status{top:72px;margin:0;font-size:10px}
  .is-playing .input-area{bottom:10px;padding-top:8px}
  .is-playing .prompt-heading{margin-bottom:3px}
  .is-playing .input-help{height:17px;line-height:17px;margin:1px 0}
  .is-playing .finish-progress{margin-bottom:4px;min-height:15px;line-height:15px}
  .is-playing .race{height:84px;padding-top:6px}
  .is-playing .race>div{margin-bottom:5px}
  .is-playing .race .ghost-opponent{margin-bottom:3px}
  .is-playing .race.solo{height:50px}
  .is-playing .input-area:has(.race.solo){margin-bottom:34px}
}
@media(max-width:560px){
  .is-playing .telemetry{left:10px;right:10px}
  .is-playing .telemetry>div{padding:7px;min-width:65px}
  .is-playing .telemetry .time{min-width:155px}
  .is-playing .telemetry .time strong{font-size:25px}
  .is-playing .telemetry strong{font-size:21px}
  .is-playing .run-status{top:120px}
  .is-playing .telemetry .combo{top:68px;border:1px solid #92c9db26;border-radius:4px}
  .is-playing .telemetry button{top:65px}
}
.reduced-motion .track i,.reduced-motion #boss-segments i{transition:none}
.reduced-motion .combo,.reduced-motion .combo::before,.reduced-motion .combo::after{animation:none!important}
@media(max-height:740px) and (min-width:851px){
  .telemetry{gap:12px;top:10px}.telemetry>div{padding:7px 10px}.run-status{top:81px}
  .race.solo{height:47px}
}
@media(max-width:850px){.telemetry{gap:10px}.telemetry>div{padding:7px 9px}}
@media(max-width:560px){
  .telemetry{left:12px;right:12px;gap:7px;top:12px}
  .telemetry>div{padding:6px 8px;min-width:0}.telemetry .time{min-width:130px}
  .telemetry .time strong{font-size:27px}.telemetry strong{font-size:22px}
  .telemetry .combo{top:73px;min-width:84px}.telemetry button{top:75px}
  .run-status{top:135px;font-size:9px;max-width:65%;text-align:right}
  .race.solo{height:49px}
}
@media(prefers-reduced-motion:reduce){.track i,#boss-segments i{transition:none}}
@media(forced-colors:active){
  .input-area,.typing-console,.telemetry>div{background:Canvas;border:1px solid CanvasText;box-shadow:none}
  .longtext .kana .long-current{outline:2px solid Highlight}
}
/* A soft scene-wide fade gives the transparent reading area contrast without
   a visible panel edge. Keep the enemy's face clear above the reading lines. */
.arena.is-playing .vignette{background:linear-gradient(0deg,#030a12ed 0%,#030a12d9 16%,#030a1299 29%,transparent 48%)}
.is-playing .input-area{
  background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;
  bottom:12px;padding-top:4px;
  text-shadow:0 2px 3px #000;
}
.is-playing .input-area:has(.race.solo){margin-bottom:0}
.is-playing .input-area::before{display:none}
.is-playing .input-area.mistake{border-color:transparent;box-shadow:none}
.is-playing .input-area .prompt-heading{margin-bottom:0;font-size:12px}
.is-playing .input-area .prompt-heading>span:first-child{visibility:hidden}
.is-playing .input-area .boss-integrity{position:absolute;left:24px;top:4px;margin:0;font-size:12px}
.is-playing .input-area #prompt{color:#f6f9fb;line-height:1.15}
.is-playing .input-area #kana{color:#dce9ee;height:24px;line-height:24px}
.is-playing .input-area #hsk5-meaning{font-size:14px;line-height:20px;min-height:20px;margin:0;color:#d1dde5}
.is-playing .input-area #romaji-window{height:50px;margin-top:4px}
.is-playing .input-area #romaji{
  font-size:30px;font-weight:600;letter-spacing:.04em;color:#f5faff;text-shadow:0 2px 3px #000;
}
.is-playing .input-area #typed{color:#8fa4b1}
.is-playing .input-area #next{text-shadow:0 2px 2px #000}
.is-playing .input-details{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:24px}
.is-playing .input-details #input-help,.is-playing .input-details #finish-progress{
  height:auto;min-height:0;margin:0;font-size:12px;line-height:20px;text-align:left;color:#d0dee7;
}
.is-playing .input-details #finish-progress{text-align:right}
.is-playing .input-area.mistake #input-help{color:#ffbacb}
.is-playing .input-area .race{height:84px;padding-top:6px}
.is-playing .input-area .race.solo{height:35px}
.is-playing .input-area .race>div{margin-bottom:3px}
.is-playing .input-area #race-gap{font-size:12px;color:#c6d8e3}
.is-playing.numpad .input-area #romaji-window{height:78px;min-height:78px;padding:0}
.is-playing.numpad .input-area #romaji{height:78px;min-height:78px;font-size:44px}
@media(max-width:560px){
  .is-playing .input-area .boss-integrity{left:12px}
  .is-playing .input-area #romaji{font-size:24px}
  .is-playing.numpad .input-area #romaji{font-size:30px}
  .is-playing .input-details{display:block;min-height:40px}
  .is-playing .input-details #input-help,.is-playing .input-details #finish-progress{text-align:center}
}
@media(forced-colors:active){
  .is-playing .input-area{background:Canvas;border-color:CanvasText;text-shadow:none}
}

/* title-world.css */
/* Title-only theme: lacquer, aged gold and the city's surviving memories.
   Combat, collection dialogs, timing and save logic retain their own styles. */
.title-world {
  --title-gold: #dfc18a;
  --title-ivory: #f4ead8;
  --title-muted: #b5ada2;
  --title-line: #dbc08a38;
  --acid: var(--title-gold);
  --mono: "Consolas", monospace;
  color: var(--title-ivory);
  isolation: isolate;
}
.title-keyart { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.title-keyart img { width: 100%; height: 870px; object-fit: cover; object-position: left top; display: block; }
.title-keyart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#090c10f2 0%,#090c10d9 25%,#090c108a 39%,#090c1030 48%,transparent 57%),linear-gradient(0deg,#090c10 0%,transparent 30%); }
.title-world::after { content: ""; position: absolute; inset: 18px; border: 1px solid #c7ad7a22; z-index: -1; pointer-events: none; }
.title-world .eyebrow { color: var(--title-gold); font-size: 10px; letter-spacing: .2em; }
.title-world .eyebrow>span { background: var(--title-gold); }
.title-world .title-kicker { margin: 0 0 22px; }
.title-world .title-story { font: 500 clamp(23px,2.4vw,36px)/1.6 "Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif; letter-spacing: .06em; margin: 19px 0 12px; color: #e9f4f9; }
.title-world .title-story em { font-style: normal; color: #cadce7; }
.title-world .title-lore { color: #c2bdb4; font-size: 12px; line-height: 1.9; margin: 0 0 27px; max-width: 470px; }
.title-world .title-memory { position: absolute; top: 745px; right: 5%; width: 40%; border-top: 1px solid #e7c58b65; padding: 18px 0; text-shadow: 0 2px 8px #000; }
.title-memory .memory-eyebrow { color: #dabc88; font: 10px var(--mono); letter-spacing: .2em; }
.title-memory h2 { margin: 10px 0 8px; font: 500 22px/1.5 "Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif; letter-spacing: .04em; color: #e9f4f9; }
.title-memory p { font-size: 11px; color: #d1c4ae; line-height: 1.9; margin: 0; }
.title-memory .memory-count { font: 28px "TZCircuit",sans-serif; margin-right: 7px; color: #cadce7; }
.title-world button:focus-visible,.title-world a:focus-visible,.title-world summary:focus-visible { outline: 2px solid #f5d49d; outline-offset: 4px; }
.title-world .title-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 18px 0 0; }
.title-world .title-links a,.title-world .title-links button { color: #e1cba7; background: none; border: 0; border-bottom: 1px solid var(--title-line); font: 11px/1.7 var(--sans); padding: 5px 0; text-decoration: none; }
.title-world .title-links a:hover,.title-world .title-links button:hover { color: #fff6e5; border-color: #dfc18a; }

/* Full edition: one reading column, one uninterrupted illustration. */
.app:not(.playing) .arena { height: auto; max-height: none; min-height: 760px; background: #090c10; }
.app:not(.playing) .scene-coordinate,.app:not(.playing) .scene-status { display: none; }
.app .home-lobby.title-world { width: 100%; max-width: none; margin: 0; min-height: 820px; padding: 48px 5% 40px; background: #090c10; }
.title-main { width: 46%; max-width: 565px; position: relative; }
.title-world .title-identity { display: block; margin: 0; padding: 0; }
.app .title-world h1.game-title { width: 100%; max-width: 460px; margin: 0; }
.title-world .game-title img { width: 100%; height: auto; }
.brand .brand-wordmark,.world-trial .brand .brand-kanji { height: auto; width: 174px; }
/* Keep the ruby inside the compact 36–42px combat header. */
.world-trial:has(.arena.is-playing) .brand .brand-kanji { height: 30px; width: auto; }
.title-world .home-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.title-world .home-grid>section { width: 100%; }
.title-world .home-grid h2 { font-size: 11px; letter-spacing: .1em; color: #c7baa3; margin-bottom: 10px; }
.title-world .home-grid h2>small { color: #dfc18a; border-color: var(--title-line); font-size: 9px; }
.title-world .home-mode-choices { grid-template-columns: 1fr 1fr; gap: 9px; }
.title-world .home-mode-card { padding: 15px 12px; gap: 8px; min-height: 96px; border-radius: 2px; background: #101319d9; border-color: var(--title-line); box-shadow: none; }
.title-world .home-mode-card[aria-pressed=true] { background: linear-gradient(120deg,#66513666,#251e17eb); border-color: #d9b97e; box-shadow: inset 2px 0 #e0bb7c; }
.title-world .home-mode-card:hover { background: #393124; border-color: #e8c78b; }
.title-world .home-mode-icon { flex-basis: 25px; font-size: 25px; color: #c3ac83; }
.title-world .home-mode-icon svg { width: 25px; height: 25px; }
.title-world .home-mode-copy strong { font-size: 18px; color: #f5ecdf; }
.title-world .home-mode-copy>small { font-size: 8px; color: #c2ab87; }
.title-world .home-mode-copy>span { font-size: 10px; color: #bfb8ad; }
.title-world .home-mode-check { display: none; }
.title-world .home-mode-description { font-size: 10px; color: var(--title-muted); margin: 10px 0 0; }
.title-world .home-setup>h2 { display: none; }
.app .title-world .home-settings { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.title-world .home-selected-mode { color: #e3c99c; padding: 0; border: 0; margin: 0 0 9px; font-size: 12px; }
.title-options { background: #11151ce8; border: 1px solid var(--title-line); }
.title-options>summary { cursor: pointer; padding: 12px 14px; font-size: 11px; color: #d7c7ad; }
.title-options[open]>summary { border-bottom: 1px solid var(--title-line); }
.title-options-body { padding: 16px; }
.title-world .home-settings .start-button { margin-top: 12px; padding: 16px; border-radius: 0; background: linear-gradient(110deg,#f1d9ad,#c7a56b); box-shadow: inset 0 1px #fff6de; color: #1a1711; clip-path: polygon(0 0,100% 0,100% 74%,97% 100%,0 100%); }
.title-world .home-settings .start-button:hover { background: #ffe5b7; transform: translateY(-1px); }
.title-world .home-settings #deploy-label { font-size: 15px; }
.title-world .home-settings .start-note { flex-wrap: wrap; color: #b8ad9d; font-size: 9px; }
.title-world .home-settings .start-note>span { color: #a69c8e; }
.title-world .home-settings .keyboard-hints { line-height: 1.8; }
.title-world .title-secondary { margin-top: 20px; }
.title-world .official-course-link { margin: 0; background: #15191dcc; border-color: var(--title-line); border-radius: 2px; color: #ddd1bb; padding: 12px; }
.title-world .official-course-link small { color: #b0a99d; }
.title-world .home-training { margin-top: 8px; padding: 10px 12px; background: none; border-color: var(--title-line); border-radius: 2px; }
.title-world .home-training strong,.title-world .home-training small { color: #c3b6a1; }
.title-world .best-context { background: #10151ccc; border-color: var(--title-line); margin: 12px 0; }
.title-world .collection-home-goal { margin: 16px 0; width: 100%; max-width: 100%; background: #141923dc; border-color: #97774970; color: #c9b698; }
.title-world .collection-home-goal:empty { display: none; }
.title-world .web-service-links { margin: 24px 0 0; color: #a99c86; gap: 8px 14px; }
.title-world .web-service-links b { color: #dfc18a; }
.title-world~.lobby-bottom { display: none; }
.title-world .home-boss-brief,.title-world .home-ghost-setting { background: #101b20; }
.title-world .home-timeattack { margin-top: 0; }
.title-world .segmented button.selected { color: #e8c994; background: #bea57520; }
.title-world .home-settings select { background-color: #151a21; }

/* Let the document scroll the whole home screen. A tall absolute lobby inside
   the fixed, clipped combat arena strands the lower controls on notebooks. */
.world-trial .arena:has(> #lobby:not([hidden])) { height: auto; min-height: 0; max-height: none; }
.world-trial #lobby.title-world { position: relative; inset: auto; overflow: visible; display: block; margin: 0; padding: 30px 5% 40px; max-width: none; min-height: 0; width: 100%; background: #090c10; }
.world-trial .title-world .lobby-copy { width: 46%; max-width: 540px; }
.world-trial .title-world .trial-wordmark { display: block; width: min(390px,100%); height: auto; margin: 0 0 25px; }
.world-trial .title-world .trial-mode-switch { margin-bottom: 22px; }
.world-trial .title-world .trial-mode-switch button { border-radius: 2px; border-color: var(--title-line); background: #11171edb; color: #c7bdad; }
.world-trial .title-world .trial-mode-switch button[aria-pressed=true] { border-color: #cfaf75; background: #59442a88; color: #fae4bd; box-shadow: inset 2px 0 #e0bb7c; }
.world-trial .title-world h1 { font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif; font-weight:500; font-size: clamp(31px,3.5vw,48px); line-height: 1.35; letter-spacing:.025em; margin: 15px 0; color:#e9f4f9; }
.world-trial .title-world h1 em { display:block; color: #cadce7; font-weight:500; }
.world-trial .title-world .intro { display: block; color: #c6bdaa; font-size: 12px; }
.world-trial .title-world #start { background: linear-gradient(110deg,#f1d9ad,#c7a56b); color: #1a1711; border-color: #cfb583; border-radius: 2px; }
.world-trial .title-world #start:hover { background: #ffe5b7; }
.world-trial .title-world .course-summary b { color: #f4d9a8; }
.world-trial .title-world .personal { background: #10171edb; border-color: var(--title-line); }
.world-trial .title-world .text-button { color: #d7c4a3; }
.world-trial .title-world .course-footer { border-color: var(--title-line); color: #b6a88f; }
.world-trial .title-world .subject { display: none; }
.world-trial .title-world .title-memory { top: 745px; }
.world-trial .title-world .long-options { background: #101923eb; border-color: var(--title-line); }
/* Approved 03: silver numeric faces share the same treatment on all surfaces. */

@media (min-width:1500px) {
  .app .home-lobby.title-world,.world-trial #lobby.title-world { padding-top: 64px; }
  .title-keyart img { height: 1000px; }
  .title-world .title-memory,.world-trial .title-world .title-memory { top: 840px; }
}
@media (max-width:1050px) and (min-width:701px) {
  .title-main,.world-trial .title-world .lobby-copy { width: 46%; }
  .title-keyart img { height: 640px; object-position: left top; mask-image: linear-gradient(#000 84%,transparent); }
  .title-world .home-mode-card { padding: 12px 9px; }
  .title-world .home-mode-icon { display: none; }
  .title-world .home-mode-copy strong { font-size: 16px; }
  .title-world .title-memory,.world-trial .title-world .title-memory { top: 630px; right: 4%; width: 37%; }
  .title-world .title-memory h2 { font-size: 18px; letter-spacing: .02em; }
  .title-world .title-memory .memory-count { font-size: 25px; }
  .world-trial .title-world .course-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
  .world-trial .title-world .course-summary>span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; white-space: nowrap; font-size: 9px; }
  .world-trial .title-world .course-summary>span+span { padding-left: 10px; }
}
@media (max-width:700px) {
  .app .home-lobby.title-world,.world-trial #lobby.title-world { padding: 30px 20px 32px; min-height: 0; }
  .title-world::after { inset: 10px; }
  .title-main,.world-trial .title-world .lobby-copy { position: relative; width: 100%; max-width: none; padding-top: 310px; }
  .title-keyart { height: 390px; }
  .title-keyart img { height: 390px; object-position: 60% top; opacity: 1; }
  .title-keyart::after { background: linear-gradient(0deg,#090c10 0%,#090c1090 19%,transparent 53%); }
  .title-world .title-kicker { position: absolute; left: 0; top: 0; font-size: 8px; margin: 0; text-shadow: 0 2px 5px #000; }
  .title-world .title-identity { position: absolute; left: 0; top: 190px; width: 100%; }
  .app .title-world h1.game-title { width: min(340px,100%); }
  .title-world .title-story { margin-top: 0; font-size: 25px; }
  .title-world .title-lore { font-size: 11px; margin-bottom: 24px; }
  .title-world .title-memory,.world-trial .title-world .title-memory { position: relative; inset: auto; width: 100%; margin-top: 30px; padding-top: 18px; }
  .title-world .title-memory h2 { font-size: 20px; }
  .title-world .home-mode-card { padding: 13px 10px; min-height: 105px; }
  .title-world .home-mode-icon { display: none; }
  .title-world .home-mode-copy strong { font-size: 17px; }
  .title-world .home-grid { gap: 14px; }
  .title-world .home-settings #deploy-label { font-size: 13px; }
  .title-world .home-settings .start-note>span { margin-left: 0; }
  .title-world .home-timeattack button { font-size: 16px; }
  .title-world .home-timeattack>div { gap: 4px; }
  .title-world .home-settings .language-row { flex-wrap: wrap; }
  .world-trial .title-world .trial-wordmark { position: absolute; left: 0; top: 190px; width: min(330px,100%); margin: 0; }
  .brand .brand-wordmark,.world-trial .brand .brand-kanji { width: 145px; }
  .world-trial .title-world h1 { font-size: 37px; }
  .world-trial .title-world .course-footer { position: static; margin-top: 22px; }
}
@media (prefers-reduced-motion:reduce) {
  .title-world *, .title-world *::before, .title-world *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
@media (min-width:701px) and (max-height:800px) {
  .app .home-lobby.title-world { padding-top: 30px; }
  .app .title-world h1.game-title { max-width: 410px; }
  .title-world .title-story { margin-top: 15px; line-height: 1.45; }
  .title-world .title-lore { margin-bottom: 18px; }
  .title-world .home-mode-card { min-height: 83px; padding-top: 11px; padding-bottom: 11px; }
  .title-world .title-kicker { margin-bottom: 16px; }
}

/* Preserve the illustration while keeping menu copy legible on notebook PCs. */
.title-world .title-lore,.world-trial .title-world .intro { font-size:13px;line-height:1.9; }
.title-world :is(.title-links a,.title-links button,.home-mode-copy>span,.home-mode-description,.home-selected-mode,.title-options>summary) { font-size:12px;line-height:1.7; }
.title-world .home-mode-copy>small { font-size:10px;line-height:1.6; }
.title-world .home-mode-copy { min-width:0; }
.title-world .home-settings .start-note,.title-world .title-memory p { font-size:12px;line-height:1.75; }
.title-world .title-links { gap:8px 20px; }
.title-world .title-links :is(a,button) { min-height:36px;display:inline-flex;align-items:center; }
.title-world :is(button,summary,select) { transition:background-color .16s,border-color .16s,box-shadow .16s; }
.reduced-motion .title-world :is(button,summary,select) { transition:none; }
.title-world :is(button,summary) { touch-action:manipulation; }
.title-world :is(.home-mode-card,.trial-mode-switch button):focus-visible { outline:2px solid #fff0c3;outline-offset:4px; }
.world-trial .title-world .trial-mode-switch button { min-height:44px; }
.world-trial .title-world #start:disabled { cursor:wait;transform:none; }
.world-trial .title-world #start:disabled:hover { background:linear-gradient(110deg,#f1d9ad,#c7a56b); }
@media(hover:hover){
  .title-world .home-mode-card:hover,.world-trial .title-world .trial-mode-switch button:hover { border-color:#e9cd93;box-shadow:inset 0 0 0 1px #e7c58730; }
}
@media(max-width:700px){
  .title-world .home-mode-card { min-height:112px; }
  .title-world .home-settings .start-note { gap:6px 10px; }
}

/* The first screen is a launch surface; secondary explanations stay below it.
   Natural flow is intentional: zoom and longer mode names must remain scrollable. */
.world-trial .arena #lobby.title-world { padding-top:24px; }
.world-trial .arena .title-world .lobby-copy { width:52%; max-width:620px; min-width:0; }
.world-trial .arena .title-world .trial-wordmark { position:static; width:min(230px,70%); margin:0 0 12px; }
.world-trial .arena .title-world .eyebrow { font-size:10px; margin:0 0 8px; }
.world-trial .arena .title-world h1 { font-size:clamp(24px,2.4vw,34px); line-height:1.4; margin:0 0 18px; }
.world-trial .arena .title-world h1 br { display:none; }
.world-trial .arena .title-world h1 em { display:inline; margin-left:.3em; }
.world-trial .arena .title-world .trial-mode-switch { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.world-trial .arena .title-world .trial-mode-switch button { min-width:0; padding:10px; }
.world-trial .arena .title-world .trial-mode-switch button>span { flex-wrap:wrap; gap:4px; }
.world-trial .arena .title-world .trial-mode-switch #mode-numpad { grid-column:auto; flex-direction:column; }
.world-trial .arena .title-world .trial-mode-switch small { font-size:11px; }
.world-trial .arena .title-world .lobby-copy>.intro { margin:0 0 14px; font-size:13px; line-height:1.8; }
.world-trial .arena .title-world .course-summary { margin:0 0 14px; gap:12px; }
.world-trial .arena .title-world .course-summary b { font-size:22px; }
.world-trial .arena .title-world #start { width:100%; max-width:none; min-height:56px; padding:14px 18px; font-size:16px; gap:10px; }
.world-trial .arena .title-world #start span { text-align:left; }
.world-trial .arena .title-world .keyboard-hints { margin:10px 0; flex-wrap:wrap; }
.world-trial .arena .title-world .long-daily { gap:4px; padding:8px 12px; }
.world-trial .arena .title-world .long-daily>strong { font-size:16px; }
.world-trial .arena .title-world .numpad-options { margin-bottom:14px; padding:8px 10px; }
.world-trial .arena .title-world .numpad-options button { padding:8px 5px; }
.world-trial .arena .title-world .title-memory { top:auto; bottom:60px; width:35%; }
.world-trial .arena .title-world .course-footer { position:static; margin-top:24px; gap:10px; flex-wrap:wrap; }
.world-trial .trial-howto { margin-top:18px; }
.world-trial .trial-howto p { font-size:13px; line-height:1.8; margin:0 0 12px; }
@media(max-width:1050px){
  .world-trial .arena .title-world .lobby-copy { width:62%; }
  .world-trial .arena .title-world .title-memory { width:27%; }
}
@media(max-width:700px){
  .world-trial .arena #lobby.title-world { padding:20px 18px 28px; }
  .world-trial .arena .title-world .lobby-copy { width:100%; padding-top:0; }
  .world-trial .title-keyart { height:100%; opacity:.5; }
  .world-trial .title-keyart img { height:600px; }
  .world-trial .title-keyart::after { background:linear-gradient(90deg,#090c10e8,#090c1099),linear-gradient(0deg,#090c10,transparent); }
  .world-trial .arena .title-world .title-memory { position:relative; bottom:auto; width:100%; margin-top:28px; }
  .world-trial .arena .title-world .trial-mode-switch button { font-size:12px; padding:9px 7px; }
  .world-trial .arena .title-world .trial-mode-switch small { display:none; }
}
@media(max-height:700px) and (min-width:701px){
  .world-trial .arena .title-world .trial-wordmark { width:180px; margin-bottom:8px; }
  .world-trial .arena .title-world h1 { margin-bottom:12px; font-size:26px; }
}

/* Trial launch: ink-blue surfaces, silver type and restrained antique gold.
   Every rule is scoped to the home screen; gameplay and results stay independent. */
#lobby.title-launch {
  --launch-ink:#f1f0ea; --launch-copy:#d6dce0; --launch-muted:#b7c1c9;
  --launch-gold:#ddbf87; --launch-line:#b5c5ce38; --launch-surface:#0b1620ed;
}
.world-trial:has(#lobby.title-launch:not([hidden])) .topbar { height:60px; padding:0 5%; background:#091219; border-color:#b7c6ce26; }
.world-trial:has(#lobby.title-launch:not([hidden])) .brand-kanji { display:none; }
.world-trial:has(#lobby.title-launch:not([hidden])) .brand>img:first-child { width:28px; height:28px; }
.world-trial:has(#lobby.title-launch:not([hidden])) .brand>span { margin:0; border:0; padding:0; color:#c4cdd3; font-size:11px; }
.world-trial:has(#lobby.title-launch:not([hidden])) .topbar nav { gap:8px; }
.world-trial:has(#lobby.title-launch:not([hidden])) .topbar nav button { min-height:44px; font-size:14px; padding:10px 12px; color:#dce5e9; }
.world-trial .arena #lobby.title-launch { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:6%; padding:36px 5% 24px; min-height:calc(100svh - 60px); }
#lobby.title-launch::after { border:0; }
#lobby.title-launch .title-keyart { height:100%; opacity:1; }
#lobby.title-launch .title-keyart img { height:max(860px,calc(100svh - 60px)); object-position:center top; mask-image:linear-gradient(#000 0%,#000 calc(100% - 220px),transparent 100%); }
#lobby.title-launch .title-keyart::after { background:linear-gradient(90deg,#071119fc 0%,#071119ef 29%,#071119bd 42%,#0711194d 55%,transparent 72%); }
#lobby.title-launch .lobby-copy { width:100%; max-width:608px; min-width:0; padding:0; }
#lobby.title-launch .trial-wordmark { position:static; display:block; width:280px; max-width:78%; height:auto; margin:0 0 24px; }
#lobby.title-launch .launch-section-label { display:flex; align-items:center; justify-content:space-between; margin:0 0 10px; font-size:13px; font-weight:600; color:var(--launch-copy); line-height:1.5; letter-spacing:.04em; }
#lobby.title-launch .launch-section-label>span { color:var(--launch-muted); font-size:11px; font-weight:400; letter-spacing:0; }
#lobby.title-launch .trial-mode-switch { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0 0 26px; }
#lobby.title-launch .trial-mode-switch button { min-width:0; min-height:50px; padding:10px 6px; border:1px solid var(--launch-line); border-radius:2px; background:linear-gradient(150deg,#16232de8,#0b151ee8); color:#d0d9df; box-shadow:inset 0 1px #ffffff05; font-size:14px; font-weight:500; justify-content:center; }
#lobby.title-launch .trial-mode-switch button>span { display:flex; width:100%; align-items:center; justify-content:center; flex-wrap:nowrap; gap:7px; white-space:nowrap; }
#lobby.title-launch .trial-mode-switch button kbd { display:none; }
#lobby.title-launch .trial-mode-switch small { display:none; }
#lobby.title-launch .trial-mode-switch button[aria-pressed=true] { background:linear-gradient(135deg,#55442dcc,#2b2a23ed); border-color:#d0b17c; color:#ffe5b5; box-shadow:inset 0 -2px #d0b17c,inset 0 1px #ffe2ae33; }
#lobby.title-launch .trial-mode-switch button:hover:not([aria-pressed=true]) { color:#fff5df; border-color:#c9b185aa; background:#29353deb; box-shadow:inset 0 1px #ffedc51a; }
#lobby.title-launch .mode-overview { min-height:194px; padding:0 0 20px; }
#lobby.title-launch .eyebrow { margin:0 0 10px; color:#c7b797; font-size:10px; line-height:1.5; letter-spacing:.15em; }
#lobby.title-launch .eyebrow i { width:12px; height:2px; margin-right:8px; border-radius:0; vertical-align:middle; background:var(--launch-gold); box-shadow:none; }
#lobby.title-launch h1 { margin:0 0 14px; min-height:45px; color:var(--launch-ink); font-size:32px; font-weight:600; line-height:1.4; letter-spacing:.015em; text-shadow:0 2px 12px #0007; }
#lobby.title-launch h1 br { display:none; }
#lobby.title-launch h1 em { display:inline; margin-left:.3em; color:inherit; font-weight:inherit; }
#lobby.title-launch .intro { margin:0 0 16px; min-height:54px; color:var(--launch-copy); font-size:15px; line-height:1.8; text-shadow:0 1px 3px #0008; }
#lobby.title-launch .course-summary { display:flex; align-items:center; flex-wrap:wrap; gap:20px; margin:0; color:var(--launch-muted); }
#lobby.title-launch .course-summary>span { display:flex; align-items:baseline; flex-direction:row; gap:8px; white-space:nowrap; font-size:13px; }
#lobby.title-launch .course-summary>span+span { padding-left:20px; border-color:var(--launch-line); }
#lobby.title-launch .course-summary b { margin:0; color:#edf0ec; font-size:21px; }
#lobby.title-launch #start { position:relative; width:100%; max-width:none; min-height:62px; padding:16px 22px; gap:16px; border:1px solid #ead09c; border-radius:2px; background:linear-gradient(110deg,#f0dbaf 0%,#dbbd86 62%,#c29c60 100%); color:#201b12; font-size:17px; font-weight:700; box-shadow:inset 0 1px #fff4d8,inset 0 -3px #71582f33,0 8px 24px #0003; }
#lobby.title-launch #start:hover:not(:disabled) { background:linear-gradient(110deg,#f9e6c1,#e1c393); border-color:#fff1d1; }
#lobby.title-launch #start .start-action { display:flex; flex-shrink:0; align-items:center; gap:14px; }
#lobby.title-launch #start .start-action>span { font-size:23px; font-weight:400; }
#lobby.title-launch #start kbd { font-size:10px; border-color:#77634480; border-radius:2px; color:#4d402b; opacity:1; padding:4px 6px; }
#lobby.title-launch #start:disabled { opacity:.65; }
#lobby.title-launch :is(button,a,summary):focus-visible { outline:2px solid #fff0c9; outline-offset:4px; }
.world-trial.keyboard-navigation:has(#lobby.title-launch:not([hidden])) :is(button,a,input,select,textarea,summary):focus { outline-color:#f7d89c!important; }
#lobby.title-launch .personal { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px 24px; margin:18px 0 0; padding:18px 24px; border:1px solid var(--launch-line); border-left:2px solid #c4ad805c; border-radius:2px; background:linear-gradient(110deg,#101d27ef,#101d2780); }
#lobby.title-launch #personal-label { font-size:13px; color:var(--launch-copy); }
#lobby.title-launch #personal-best { grid-column:2; grid-row:1/3; color:#eff3f4; font-size:26px; line-height:1.3; }
#lobby.title-launch #ghost-note { grid-column:1; color:var(--launch-muted); font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
#lobby.title-launch #ghost-reset { grid-column:1/-1; justify-self:start; font-size:12px; }
#lobby.title-launch .play-options { display:flex; justify-content:space-between; align-items:center; gap:8px 16px; margin-top:8px; flex-wrap:wrap; color:var(--launch-copy); font-size:13px; }
#lobby.title-launch .play-options label { min-height:36px; gap:8px; }
#lobby.title-launch input[type=checkbox] { accent-color:var(--launch-gold); width:17px; height:17px; margin:0; }
#lobby.title-launch .launch-shortcuts { color:var(--launch-muted); font-size:12px; white-space:nowrap; }
#lobby.title-launch .launch-shortcuts kbd { opacity:1; font-size:11px; padding:2px 5px; margin-right:4px; }
#lobby.title-launch #ready-status { margin:8px 0 0; min-height:42px; color:var(--launch-muted); font-size:12px; line-height:1.75; }
#lobby.title-launch .lobby-secondary { margin-top:22px; padding-top:20px; border-top:1px solid var(--launch-line); }
#lobby.title-launch .lobby-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 18px; }
#lobby.title-launch .lobby-tools .text-button { display:flex; justify-content:center; align-items:center; gap:7px; min-height:48px; padding:10px 7px; background:#0e1b26cc; border:1px solid var(--launch-line); border-radius:2px; font-size:13px; line-height:1.5; }
#lobby.title-launch .lobby-tools .text-button:hover { color:#fff0d1; background:#24313be8; border-color:#c5ad7e8c; }
#lobby.title-launch .lobby-tools svg { width:18px; height:18px; flex-shrink:0; fill:none; stroke:#c9b58e; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
#lobby.title-launch .lobby-tools kbd { padding:2px 3px; font-size:10px; }
#lobby.title-launch .text-button { color:var(--launch-copy); font-size:13px; }
#lobby.title-launch .long-options { background:none; max-width:none; }
#lobby.title-launch .long-daily { margin-bottom:18px; padding:3px 0 3px 14px; border:0; border-left:2px solid #c9b17b70; background:none; }
#lobby.title-launch .long-daily>strong { font-size:18px; color:var(--launch-ink); }
#lobby.title-launch .long-daily>span,#lobby.title-launch .long-daily>small { color:var(--launch-muted); font-size:12px; }
#lobby.title-launch .hsk5-options { font-size:13px; color:var(--launch-copy); }
#lobby.title-launch .hsk5-options summary { min-height:40px; color:var(--launch-copy); }
#lobby.title-launch .trial-howto { margin:16px 0 0; background:#0c1822b3; border:1px solid var(--launch-line); border-radius:2px; }
#lobby.title-launch .trial-howto>summary { padding:12px 14px; min-height:44px; color:var(--launch-copy); font-size:13px; }
#lobby.title-launch .trial-howto p { color:var(--launch-copy); font-size:13px; }
#lobby.title-launch .account-line { margin:16px 0 0; gap:8px 16px; color:var(--launch-muted); font-size:13px; flex-wrap:wrap; }
#lobby.title-launch .account-line .text-button { color:#e4c996; text-decoration:underline; text-underline-offset:4px; }
#lobby.title-launch .goal-description,#lobby.title-launch .web-service-links { color:var(--launch-muted); font-size:12px; }
#lobby.title-launch .web-service-links { margin-top:18px; gap:10px 20px; }
#lobby.title-launch .title-memory { position:relative; inset:auto; align-self:end; justify-self:end; width:100%; max-width:390px; padding:22px 24px; margin:0 0 8px; border:1px solid #d4ba7f38; border-top:2px solid #d4ba7f99; border-radius:2px; background:linear-gradient(135deg,#0b1721f2,#101b23d9); text-shadow:none; }
#lobby.title-launch .title-memory .memory-eyebrow { color:#d1bb92; font-size:10px; letter-spacing:.18em; }
#lobby.title-launch .title-memory h2 { margin:10px 0 14px; font-size:22px; line-height:1.5; letter-spacing:0; }
#lobby.title-launch .title-memory .memory-count { color:#e8edf0; font-size:30px; }
#lobby.title-launch .title-memory .memory-phrase { display:inline-block; }
#lobby.title-launch .title-memory p { color:var(--launch-copy); font-size:13px; line-height:1.9; }
#lobby.title-launch .title-links { margin-top:12px; }
#lobby.title-launch .title-links a { justify-content:space-between; width:100%; font-size:13px; color:#e5cb9a; }
#lobby.title-launch .collection-home-goal { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px 12px; margin:18px 0 0; width:100%; max-width:none; padding:14px 0 0; text-align:left; border:0; border-top:1px solid var(--launch-line); border-radius:0; background:none; box-shadow:none; color:var(--launch-copy); }
#lobby.title-launch .collection-home-goal>span { font-size:13px; color:#e4dccd; }
#lobby.title-launch .collection-home-goal>b { margin:0; font-size:17px; color:#f0dcaf; }
#lobby.title-launch .collection-home-goal>small { grid-column:1/-1; font-size:12px; color:var(--launch-muted); line-height:1.8; }
#lobby.title-launch .collection-home-goal:hover { color:#fff0d1; border-color:#dbc18b; }
#lobby.title-launch .course-footer { grid-column:1/-1; position:static; margin-top:28px; padding-top:18px; border-color:var(--launch-line); color:var(--launch-muted); font-size:11px; gap:10px 30px; flex-wrap:wrap; }
@media(max-width:1100px) and (min-width:701px){
  .world-trial .arena #lobby.title-launch { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); column-gap:30px; padding-left:4%; padding-right:4%; }
  #lobby.title-launch .title-keyart img { height:max(740px,calc(100svh - 60px)); object-position:75% top; }
  #lobby.title-launch .trial-mode-switch { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  #lobby.title-launch .trial-mode-switch button { min-height:44px; padding:9px 14px; }
  #lobby.title-launch .trial-mode-switch button>span { justify-content:space-between; }
  #lobby.title-launch .trial-mode-switch button kbd { display:inline; border:0; padding:0; font-size:11px; }
  #lobby.title-launch h1 { font-size:clamp(25px,3.1vw,30px); }
  #lobby.title-launch .intro { font-size:14px; min-height:51px; }
  #lobby.title-launch .title-memory { padding:18px; }
  #lobby.title-launch .title-memory h2 { font-size:18px; }
  #lobby.title-launch .title-memory .memory-count { font-size:25px; }
  #lobby.title-launch .lobby-tools .text-button { flex-wrap:wrap; gap:4px; font-size:12px; }
  #lobby.title-launch .lobby-tools kbd { display:none; }
}
@media(max-height:760px) and (min-width:701px){
  .world-trial:has(#lobby.title-launch:not([hidden])) .topbar { height:54px; }
  .world-trial .arena #lobby.title-launch { padding-top:18px; }
  #lobby.title-launch .trial-wordmark { width:220px; margin-bottom:18px; }
  #lobby.title-launch .trial-mode-switch { margin-bottom:22px; }
  #lobby.title-launch .mode-overview { min-height:180px; padding-bottom:18px; }
  #lobby.title-launch h1 { margin-bottom:10px; font-size:28px; min-height:40px; }
  #lobby.title-launch .intro { margin-bottom:12px; }
  #lobby.title-launch .lobby-secondary { margin-top:16px; }
}
@media(max-width:850px) and (min-width:701px){
  #lobby.title-launch h1 { font-size:25px; }
  #lobby.title-launch .intro { font-size:13px; }
  #lobby.title-launch #start { font-size:16px; padding:15px; }
  #lobby.title-launch #start kbd { display:none; }
  #lobby.title-launch #personal-best { font-size:21px; }
}
@media(max-width:700px){
  .world-trial:has(#lobby.title-launch:not([hidden])) .topbar { height:56px; padding:0 16px; gap:8px; }
  .world-trial:has(#lobby.title-launch:not([hidden])) .topbar nav { gap:0; }
  .world-trial:has(#lobby.title-launch:not([hidden])) .topbar nav button { padding:10px 7px; font-size:12px; }
  .world-trial:has(#lobby.title-launch:not([hidden])) .brand>span { display:none; }
  .world-trial .arena #lobby.title-launch { display:block; padding:24px 20px; }
  #lobby.title-launch .lobby-copy { width:100%; max-width:none; }
  #lobby.title-launch .trial-wordmark { width:240px; max-width:80%; margin-bottom:24px; }
  #lobby.title-launch .trial-mode-switch { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:24px; }
  #lobby.title-launch .trial-mode-switch button { min-height:48px; padding:10px 12px; }
  #lobby.title-launch .trial-mode-switch button>span { justify-content:space-between; }
  #lobby.title-launch .trial-mode-switch button kbd { display:inline; border:0; padding:0; font-size:11px; }
  #lobby.title-launch .mode-overview { min-height:222px; }
  #lobby.title-launch h1 { min-height:73px; font-size:26px; }
  #lobby.title-launch .intro { min-height:51px; font-size:14px; }
  #lobby.title-launch .course-summary { gap:12px; }
  #lobby.title-launch .course-summary>span+span { padding-left:12px; }
  #lobby.title-launch .course-summary>span { font-size:12px; }
  #lobby.title-launch #start { padding:15px; font-size:16px; min-height:60px; }
  #lobby.title-launch #start .start-action { gap:0; }
  #lobby.title-launch #start kbd { display:none; }
  #lobby.title-launch .personal { padding:16px 20px; }
  #lobby.title-launch #personal-best { font-size:22px; }
  #lobby.title-launch .lobby-tools { gap:6px; }
  #lobby.title-launch .lobby-tools .text-button { flex-direction:column; font-size:12px; min-height:68px; }
  #lobby.title-launch .lobby-tools kbd { display:none; }
  #lobby.title-launch .title-keyart img { height:900px; object-position:59% top; }
  #lobby.title-launch .title-keyart::after { background:linear-gradient(90deg,#071119f2,#071119c7),linear-gradient(0deg,#090c10,transparent 60%); }
  #lobby.title-launch .title-memory { width:100%; max-width:none; margin-top:28px; padding:22px; }
}
@media(forced-colors:active){
  .world-trial.keyboard-navigation:has(#lobby.title-launch:not([hidden])) :is(button,a,input,select,textarea,summary):focus { outline-color:Highlight!important; }
}

/* Shared menu rhythm: fewer competing frames, more room for the start action. */
#lobby.title-launch .trial-mode-switch{gap:0;border-bottom:1px solid #c7b08254}
#lobby.title-launch .trial-mode-switch button{border:0;border-bottom:2px solid transparent;border-radius:0;background:#0b1823bd;box-shadow:none;color:#c1ccd2;min-height:48px}
#lobby.title-launch .trial-mode-switch button+button{border-left:1px solid #c1cfda20}
#lobby.title-launch .trial-mode-switch button[aria-pressed=true]{color:#f4deaf;background:#b99a541b;border-bottom-color:#e6c58a;box-shadow:none}
#lobby.title-launch .trial-mode-switch button:hover:not([aria-pressed=true]){background:#d0bc8a10;box-shadow:none}
#lobby.title-launch .trial-mode-switch button kbd{display:inline;font:10px Consolas,monospace;padding:0;border:0;background:none;opacity:.65}
#lobby.title-launch .trial-mode-switch button>span{gap:8px}
#lobby.title-launch .mode-overview{min-height:182px}
#lobby.title-launch .personal{border:0;border-block:1px solid var(--launch-line);border-radius:0;background:#0c1923c4}
#lobby.title-launch #ready-status{min-height:32px;font-size:12px}
#lobby.title-launch .title-memory{border:0;border-left:2px solid #c5a66b8c;border-radius:0;padding:22px;background:linear-gradient(90deg,#091621ed,#091621c9)}
#lobby.title-launch .lobby-tools .text-button{border:0;border-bottom:1px solid #c6b58b50;background:#0b1821a8;border-radius:0}
#lobby.title-launch .trial-howto{border-inline:0;background:transparent}
#lobby.title-launch .trial-howto>summary{padding-left:0}
@media(min-width:1101px){#lobby.title-launch .trial-mode-switch button{font-size:13px}}
@media(max-height:760px) and (min-width:701px){
  #lobby.title-launch .trial-wordmark{width:210px;margin-bottom:16px}
  #lobby.title-launch .trial-mode-switch{margin-bottom:18px}
  #lobby.title-launch .mode-overview{min-height:164px;padding-bottom:16px}
  #lobby.title-launch .personal{margin-top:16px;padding-block:16px}
  #lobby.title-launch .lobby-secondary{margin-top:14px;padding-top:16px}
}
@media(max-width:1100px){
  #lobby.title-launch .trial-mode-switch{gap:1px;background:#c1cfda20;border-bottom:0}
  #lobby.title-launch .trial-mode-switch button{background:#0b1823ed}
  #lobby.title-launch .trial-mode-switch button+button{border-left:0}
  #lobby.title-launch .trial-mode-switch button[aria-pressed=true]{background:#3b3326}
}
@media(max-width:700px){
  #lobby.title-launch .mode-overview{min-height:222px}
  #lobby.title-launch .title-memory{padding:20px}
}
/* Give long labels and times their own rows in a narrow desktop window. */
@media(max-width:420px){
  #lobby.title-launch .personal{grid-template-columns:minmax(0,1fr);row-gap:10px}
  #lobby.title-launch #personal-label{grid-column:1;grid-row:1}
  #lobby.title-launch #personal-best{grid-column:1;grid-row:2;justify-self:start}
  #lobby.title-launch :is(#ghost-note,#personal-detail){grid-column:1;grid-row:3}
  #lobby.title-launch :is(#ghost-reset,#rival-reset){grid-row:4}
}
/* Real rare cards, lightly fanned into the title copy. Thumbnails cost 60 KB
   total, load lazily, and never participate in startup or ownership logic. */
.title-world .memory-showcase{overflow:hidden}
.title-world .memory-card-fan{position:relative;width:min(100%,320px);aspect-ratio:3/2;margin:0 auto -24px;pointer-events:none;user-select:none;mask-image:linear-gradient(#000 58%,#0009 78%,transparent 100%)}
.title-world .memory-preview-card{position:absolute;left:31%;top:8%;width:38%;aspect-ratio:2/3;padding:4px;border:1px solid #d7c09ba6;background:linear-gradient(135deg,#edd7b3,#70677e 48%,#c8b9d3);box-shadow:0 8px 20px #0008,inset 0 0 0 1px #171c2c;transform-origin:50% 85%;overflow:hidden}
.title-world .memory-preview-card img{display:block;width:100%;height:100%;object-fit:cover;border:1px solid #e6d2b45c}
.title-world .memory-preview-card:nth-child(1){transform:translateX(-43%) rotate(-17deg);opacity:.72;z-index:1}
.title-world .memory-preview-card:nth-child(2){transform:translateY(-4%) rotate(3deg);opacity:.92;z-index:3}
.title-world .memory-preview-card:nth-child(3){transform:translateX(43%) rotate(18deg);opacity:.78;z-index:2}
.title-world .memory-showcase :is(.memory-eyebrow,h2,p,.title-links){position:relative}
.app .title-world .title-memory.memory-showcase{max-width:390px;padding:20px 22px;border:0;border-left:2px solid #c5a66b8c;background:linear-gradient(90deg,#091621ed,#091621c9)}
@media(max-width:700px){
  .app .title-world .title-memory.memory-showcase{max-width:none;padding:20px}
}
@media(forced-colors:active){
  .title-world .memory-card-fan{display:none}
}
/* Full edition keeps deployment and the next chapter visible on laptop screens. */
@media(min-width:721px) and (max-height:800px){
  .app .home-lobby.title-world{padding-top:24px}
  .app .title-world h1.game-title{max-width:255px}
  .app .title-world .title-story{font-size:23px;line-height:1.5;margin:14px 0 10px}
  .app .title-world .title-lore{font-size:11px;margin-bottom:16px;line-height:1.8}
  .app .title-world .home-mode-card{min-height:74px;padding:11px 12px}
  .app .title-world .home-mode-copy strong{font-size:16px}
  .app .title-world .home-mode-description{margin-top:8px}
  .app .title-world .home-grid{gap:10px}
  .app .title-world .home-selected-mode{display:none}
  .app .title-world .home-settings .start-button{padding:13px;margin-top:10px}
  .app .title-world .title-secondary{margin-top:14px}
}

/* result-world.css */
/* Operation archive: lacquer, gold-leaf kasumi and restored character memories.
   Scoped to results; typing, clocks, dialogs outside results retain their UI. */
.result-world{--report-gold:#e8ca8b;--report-ink:#f6efe0;--report-muted:#c1bbae;--report-line:#dbb97269;--report-vermilion:#9e3c45;--acid:#e6c990;--accent:#e6c990;--cyan:#cfba94;color:var(--report-ink);--line:var(--report-line)}
.world-trial #result{padding:28px;background:radial-gradient(ellipse at 75% 15%,#ac74463d,transparent 65%),linear-gradient(90deg,#080f18e8,#1a121cb5),url('assets/backgrounds/archive-v1.webp?v=031b59c68ab74a9babdbca5e4bfa0598a25d18f8d7cd0df2e599d87c45efb294') center/cover;backdrop-filter:none;align-items:safe center}
#result-dialog.result-world::backdrop{background:radial-gradient(ellipse at 75% 15%,#ac74463d,transparent 65%),linear-gradient(90deg,#080f18e8,#1a121cb5),url('assets/backgrounds/archive-v1.webp?v=031b59c68ab74a9babdbca5e4bfa0598a25d18f8d7cd0df2e599d87c45efb294') center/cover;backdrop-filter:none}
#result-dialog.result-world,.world-trial #result .result-card.result-world{position:relative;width:min(1080px,100%);padding:26px 30px 28px;border:1px solid #d7b771;border-radius:2px;background:linear-gradient(180deg,#0b172526 0,#0b1823b3 460px,#0b1823 850px),url('assets/title/result-kasumi-v1.webp?v=b5f1f3a7c8007712d2ff6f95f3ff4db955be1974776decc2449e29f900de84a9') center top/1080px auto no-repeat,#0b1823;box-shadow:0 25px 80px #000b,0 0 0 4px #121923,inset 0 0 0 5px #b7904c26,inset 0 0 0 6px #e7c98929;display:grid;grid-template-columns:minmax(0,1fr);gap:0;isolation:isolate}
#result-dialog.result-world{width:min(1080px,calc(100vw - 36px));max-height:calc(100svh - 36px)}
#result-dialog.result-world:not([open]){display:none}
.result-world .result-archive-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0 22px;margin:0 0 24px;border-bottom:1px solid #d8b875b3;grid-column:1/-1}
.result-world .result-archive-header::after{content:'';position:absolute;width:46px;height:5px;left:0;bottom:-3px;background:#d9b970;clip-path:polygon(0 50%,12% 0,88% 0,100% 50%,88% 100%,12% 100%);pointer-events:none}
/* Keep the screen artwork continuous; shadows follow the lettering only. */
.result-archive-header img{width:174px;height:auto;display:block;padding:7px 10px;box-sizing:border-box;background:transparent;border:0;filter:drop-shadow(0 1px 1px #07111c) drop-shadow(0 0 4px #07111c)}
.result-archive-label{margin-left:auto;padding:4px 12px;color:var(--report-gold);text-align:right;background:transparent;border:0;text-shadow:0 1px 2px #07111c,0 0 6px #07111c,0 0 12px #07111c}.result-archive-label b{display:block;font:500 25px/1.5 'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.3em;margin-right:-.3em;color:#f3e1b7}.result-archive-label small{display:block;font:8px/1.8 Consolas,monospace;letter-spacing:.15em;color:#cfb985}
.result-archive-seal{display:grid;place-items:center;width:37px;height:41px;flex:0 0 37px;transform:rotate(-5deg);font:500 25px/1 'Yu Mincho',serif;color:#f7d6b6;border:1px solid #d78976;outline:1px solid #9e4845;outline-offset:3px;background:#85363ad9;box-shadow:inset 0 0 0 3px #54283370}
.result-world .eyebrow{color:var(--report-gold);font:10px/1.6 Consolas,monospace;letter-spacing:.13em}
.result-world #result-title{font:500 30px/1.45 'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.09em;color:#f8eacb;margin:10px 0}
.result-world #result-description{color:var(--report-muted);font-size:12px;line-height:1.8;margin:0 0 15px}
.result-world .result-heading{align-items:start;gap:10px}.result-world #best-badge{color:#ffe9bc;padding:5px 9px;background:linear-gradient(120deg,#7c3541,#452b3b);border:1px solid #d6ab74;font-size:10px;line-height:1.5;white-space:normal;box-shadow:inset 0 0 0 2px #e6bb8012}
.result-world .result-time{font-size:54px;line-height:1.15;margin:0 0 5px;color:#e3edf4}
.result-world :is(.result-metrics,.result-stats){gap:12px;margin:15px 0 18px;padding:16px 0;border-block:1px solid var(--report-line);background:linear-gradient(90deg,#d6ae5e0b,transparent)}
.result-world .result-metrics>div+div{border-color:var(--report-line);padding-left:16px}.result-world .result-metrics strong{font-size:27px}.result-world .result-metrics span{font:10px/1.5 Consolas,monospace;color:var(--report-muted);margin:0 0 4px}
.result-world .result-memory{--frame-metal:#b7ac93;--frame-light:#e7dcc4;--frame-deep:#514636;--frame-gold:#cdb477;--frame-glow:#c9c6ad22;--frame-halo:7px;--frame-cycle:10s;margin:0 0 18px;min-width:0;position:relative;isolation:isolate;padding:8px;background:linear-gradient(125deg,#f1dfb0 0,var(--frame-deep) 7%,#171b1d 24%,var(--frame-metal) 49%,#202022 53%,var(--frame-deep) 89%,#e5ce9b);border:1px solid #171b20;border-radius:3px;align-self:start;box-shadow:0 14px 24px #0008,0 2px 3px #000b,inset 0 0 0 1px var(--frame-light),inset 0 0 0 3px #111820,inset 0 0 0 4px var(--frame-metal)}
/* The light layers only cover the frame. Portraits and numeric glyphs stay sharp. */
.result-world .result-memory::after{content:'';position:absolute;inset:2px;border:1px solid var(--frame-metal);border-radius:1px;box-shadow:0 0 var(--frame-halo) var(--frame-glow);pointer-events:none;opacity:.65}
.result-memory[data-tier=uncommon]{--frame-metal:#91cdb1;--frame-light:#d5ecdc;--frame-deep:#345a4e;--frame-glow:#70bd9b44;--frame-halo:12px}
.result-memory[data-tier=rare]{--frame-metal:#e99a86;--frame-light:#ffe0c6;--frame-deep:#75343c;--frame-glow:#eb776466;--frame-halo:18px;--frame-cycle:12s}
.result-memory[data-tier=epic]{--frame-metal:#c39aed;--frame-light:#f0ddff;--frame-deep:#574173;--frame-glow:#b789ed77;--frame-halo:21px;--frame-cycle:11s}
.result-memory[data-tier=legendary]{--frame-metal:#f0c464;--frame-light:#fff3cc;--frame-deep:#806024;--frame-glow:#ecc05a88;--frame-halo:25px;--frame-cycle:10s}
.result-memory[data-tier=celestial]{--frame-metal:#97e2ff;--frame-light:#edfcff;--frame-deep:#336980;--frame-glow:#87dfff99;--frame-halo:28px;--frame-cycle:9s}
.result-memory[data-tier=transcendent]{--frame-metal:#e1bcff;--frame-light:#fff3fb;--frame-deep:#685375;--frame-glow:#dfb6ff70;--frame-halo:28px;--frame-cycle:8s}
.result-world .result-memory[data-tier]:not([data-tier=common]):not([data-tier=uncommon])::after{animation:memory-frame-breathe 5s ease-in-out infinite}
.result-memory-shine{position:absolute;inset:0;padding:4px;overflow:hidden;pointer-events:none;z-index:2;display:none;-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}
.result-memory-shine::before{content:'';position:absolute;width:300%;height:300%;left:-100%;top:-100%;background:conic-gradient(from 0deg,transparent 0deg 60deg,var(--frame-metal) 70deg,#fff9e9 82deg,transparent 100deg 240deg,var(--frame-light) 262deg,transparent 282deg);opacity:.85;animation:memory-frame-orbit var(--frame-cycle) linear infinite}
.result-memory:is([data-tier=rare],[data-tier=epic],[data-tier=legendary],[data-tier=celestial],[data-tier=transcendent]) .result-memory-shine{display:block}
.result-memory[data-tier=transcendent] .result-memory-shine::before{background:conic-gradient(transparent 0deg 40deg,#fff5c8 65deg,#c4f5ff 92deg,transparent 118deg 210deg,#eccaff 240deg,#ffecd2 265deg,transparent 295deg)}
.result-memory-fittings{position:absolute;inset:0;pointer-events:none;z-index:3}
.result-memory-fitting{position:absolute;width:34px;height:34px;color:var(--frame-gold);filter:drop-shadow(0 1px 1px #000)}
.result-memory-fitting svg{display:block;width:100%;height:100%}
.result-memory-fitting.tl{top:1px;left:1px}.result-memory-fitting.tr{top:1px;right:1px;transform:rotate(90deg)}
.result-memory-fitting.bl{bottom:1px;left:1px;transform:rotate(-90deg)}.result-memory-fitting.br{bottom:1px;right:1px;transform:rotate(180deg)}
.result-memory-heading{position:relative;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:34px;padding:9px 15px;border-bottom:1px solid #baa36b85;background:linear-gradient(100deg,#23282c,#0e151e 65%,#293034);color:#e9d9b2;box-shadow:inset 0 1px #f5deb51c}
.result-memory-heading::after{content:'';width:9px;height:9px;flex:0 0 9px;transform:rotate(45deg);border:1px solid var(--frame-light);background:var(--frame-deep);box-shadow:inset 0 0 0 2px var(--frame-metal),0 0 5px var(--frame-glow)}
.result-memory-index{font:10px/1.3 Consolas,monospace;letter-spacing:.16em;white-space:nowrap}
@keyframes memory-frame-breathe{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes memory-frame-orbit{to{transform:rotate(1turn)}}
/* Reserve the mat outside the image. Nothing is painted across hair or weapons. */
.result-memory-art{position:relative;overflow:hidden;min-width:0;padding:12px 7px 9px;background:linear-gradient(135deg,#272622,#101920 40%,#29271f);box-shadow:inset 1px 0 #e9cf8b33,inset -1px 0 #050a11}
.result-memory-art img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;display:block;outline:1px solid #b8a37175;outline-offset:2px}
.result-memory figcaption{position:relative;padding:17px 19px 20px;border-top:2px solid #ad8c52;background:repeating-linear-gradient(112deg,transparent 0 6px,#6b4c1b04 6px 7px),linear-gradient(145deg,#faf0d5,#e6d2a6);color:#372d24;box-shadow:inset 0 2px #fff8e2,inset 0 -3px #8d704123}
.result-memory-status{display:block;font:600 10px/1.6 'Yu Gothic',sans-serif;letter-spacing:.12em;color:#8a4040}
.result-memory h3{font:600 34px/1.25 'Yu Mincho',serif;letter-spacing:.15em;margin:8px 0;color:#3c3027}.result-memory p{font-size:11px;line-height:1.7;color:#675642;margin:0 0 12px}.result-memory-tier{display:inline-block;padding:3px 7px;border-left:2px solid var(--memory-accent,#cfad75);background:#f9edcf;color:#554532;font:9px/1.7 Consolas,'Yu Gothic',sans-serif;letter-spacing:.05em}
.result-memory.art-unavailable img{visibility:hidden}.result-memory.art-unavailable .result-memory-art::before{content:'画像を読み込めませんでした';position:absolute;inset:45% 12px auto;text-align:center;color:#cfba94;font-size:12px}
.result-world .lap-grid{gap:10px}.result-world .lap-grid>div{background:#0b0f13;border:1px solid var(--report-line);border-radius:0;padding:13px 14px}.result-world .lap-grid .best{border-color:#cbb17b99;box-shadow:inset 2px 0 #cbb17b}.result-world .lap-grid small{color:#baae98;line-height:1.65}.result-world .lap-grid strong{color:#e3edf4}.result-world .lap-grid span{color:#b3bebc}.result-world .lap-comparison{font-size:10px;line-height:1.7}
.result-world :is(.ghost-result,.result-standing){background:#0a1015;border:1px solid var(--report-line);border-radius:0;padding:15px 16px;margin:17px 0 10px;color:#c6c3ba}.result-world .ghost-result strong{color:#e8d09c}.result-world .ghost-result>span{line-height:1.9}.result-world .ghost-result h3{color:#e8d09c}
.result-world :is(.subtle,.archive-caption,.result-peak-note,.submit-status,.result-history,.result-extra,.result-grade-reason){color:var(--report-muted);line-height:1.8}
.result-world .result-history-row{margin:8px 0}.result-world .result-history{font-size:10px}
.result-world details{border-color:var(--report-line);background:#080d102e;font-size:11px;color:var(--report-muted)}.result-world summary{color:#d6c19b;cursor:pointer;line-height:1.7;padding-block:5px}.result-world details p{line-height:1.8}
.result-world :is(.primary,.primary-button){background:linear-gradient(105deg,#ad8c51,#f1dba9 35%,#dec18a 72%,#bc9558);color:#27221a;border:1px solid #f2d8a4;border-radius:1px;box-shadow:inset 0 0 0 3px #f8e4b73d,inset 0 -3px #76522355;min-height:46px;text-shadow:none}
.result-world :is(.primary,.primary-button):hover{background:#f3d9a4;color:#131711;transform:none}
.result-world :is(.secondary-button,.result-actions>button:not(.primary)){background:#13191c;color:#dbd1be;border:1px solid var(--report-line);border-radius:1px}
.result-world :is(button,a,summary):focus-visible{outline:2px solid #fff0c3;outline-offset:4px}
/* Keep keyboard focus visible without importing the playfield's neon palette. */
.keyboard-navigation .result-world :is(button,a,input,select,textarea,summary):focus{outline-color:#fff0c3!important}
.result-world :is(.text-button,.full-teaser,.full-teaser b){color:#d3bd94}.result-world .full-teaser{border-color:var(--report-line)}
.result-world .keyboard-hints{color:#b3ac9d;font-size:10px}.result-world .result-actions{gap:8px;margin:8px 0 0}.result-world .result-actions button{font-size:12px}
.result-world .collection-result{grid-column:1!important;grid-row:auto!important;display:flex!important;flex-wrap:wrap;gap:8px;width:auto;margin:15px 0!important;padding:12px!important;background:#191c1d;border:1px solid var(--report-line);border-radius:1px;box-shadow:none}
.result-world .collection-result>strong{font-size:11px;width:100%;margin:0 0 3px!important;letter-spacing:.08em}.result-world .collection-result>button{display:flex!important;width:auto!important;flex:1 1 160px;max-width:100%;margin:0!important;padding:7px!important;gap:10px;background:#0c1115;border:1px solid #c8aa703d;border-radius:1px;align-items:center}
.result-world .collection-result>button img{width:44px!important;height:66px!important;aspect-ratio:2/3;object-fit:cover}.result-world .collection-result>button>span{padding:0!important;font-size:15px!important}.result-world .collection-result>button small{font-size:9px;line-height:1.6;color:#b7b1a6}.result-world .collection-result-goal{width:100%;margin:6px 0 0;padding-top:9px;font-size:10px;line-height:1.8;color:#bab3a6;border-top:1px solid var(--report-line)}
.result-world .collection-result:not(.has-awards){color:#c2b69f;font-size:11px;padding:9px 12px!important}
.result-world .collection-result:not(.has-awards) .collection-result-goal{border:0;padding:0;margin:0}
/* Full edition: retain the existing report fields and modal semantics. */
#result-dialog.result-world .result-rank{gap:24px;border-color:var(--report-line);margin:7px 0 12px;padding:12px 0}.result-world .result-rank>#rank{font:500 72px/1 'Yu Mincho',serif;color:#e3c48c;padding:5px 18px;border-right:1px solid var(--report-line)}.result-world .result-rank>div{color:#b9ab91}.result-world .result-rank strong{font-size:34px}.result-world .result-rank small{color:#dac18f}
#result-dialog.result-world .result-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:0;border:0}.result-world .result-stats>div{grid-column:span 2!important;padding:13px 8px;border:1px solid var(--report-line);background:#0b1013}.result-world .result-stats>.result-speed{grid-column:span 3!important;background:#101719;border-color:#baa16b50}.result-world .result-stats b{color:#e3edf4;text-shadow:none}.result-world .result-stats span{color:#b4ac9d}
.result-world .result-completion>div{border-color:var(--report-line);background:#0b1013}.result-world .result-completion span{color:#b4ac9d}.result-world .result-completion b{color:#e1d7c3}
#result-dialog.result-world .timeattack-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-color:var(--report-line);background:#0a1014;padding:17px;gap:17px 12px}.result-world .timeattack-panel>div:first-child{grid-column:1/-1}.result-world .timeattack-panel>div:first-child>b{font-size:46px}.result-world .timeattack-panel>div>b{font-size:23px;color:#e3edf4}.result-world .timeattack-panel>div>span{color:#baa983}.result-world .timeattack-panel p{grid-column:1/-1;color:#b8b2a6}.result-world .timeattack-panel small{color:#b8b2a6}
#result-dialog.result-world.timeattack-report .result-rank>#rank{font-size:34px}.result-world.timeattack-report .result-rank strong{font-size:20px}
.result-world .result-retry-hint{background:#ad8b4310;border-color:var(--report-line);color:#d3c4a6}.result-world .result-retry-hint kbd{color:#eed3a0;background:#201e17;border-color:#ad9568}
.result-world .result-advice,.result-world .result-unlocks{color:#ccbb95}.result-world #result-verification:empty,.result-world #result-unlocks:empty{display:none}
.result-world #result-grade-reason{background:#c4a86a0b;border-color:var(--report-gold);color:var(--report-muted)!important}.result-world #result-grade-reason:empty{display:none}
#result-dialog.result-world .timeattack-panel{border-radius:1px}#result-dialog.result-world #retry-button{margin:0 0 17px}
.result-world .result-memory[hidden]{display:none}
.world-trial .result-world .result-entry{margin:6px 0 12px;padding:14px 16px;border-left:2px solid var(--report-gold);background:var(--report-surface,#0b1823c9);min-width:0}
.world-trial .result-entry h3{font-size:14px;color:var(--report-gold);margin:0 0 6px}
.world-trial .result-entry .submit-status{margin:0 0 10px;font-size:13px}
.world-trial .result-entry .primary{width:100%;justify-content:center;white-space:normal;font-size:14px;padding:12px;min-height:48px}
.world-trial .result-entry .subtle{margin:9px 0 0;overflow-wrap:anywhere}
.world-trial .auth-actions{flex-wrap:wrap;gap:10px}
.world-trial .auth-actions button{flex:1 1 210px;justify-content:center;white-space:normal}
.world-trial .auth-optional{margin-top:12px;font-size:13px}
.world-trial .auth-optional summary{cursor:pointer;min-height:36px;padding:7px 0}
.result-world .collection-result[hidden]{display:none!important}
.result-world .ghost-result{--race-color:#ddc18a!important}.result-world .ghost-result-times>div{background:#0b1216;border-radius:1px}.result-world .ghost-result-times strong{font-size:20px}
.result-world .story-result{background:linear-gradient(140deg,#24303a,#101e29);border-color:var(--report-line);border-top:2px solid #d6b473;padding:20px;box-shadow:inset 0 0 0 4px #d5b27808}.result-world .story-result h3{font-family:'Yu Mincho',serif;color:#f1dfb8}.result-world .story-result .story-kicker{color:var(--report-gold)}.result-world .story-result .story-scene{color:#c0b8a7;border-color:#c1a66d60}.result-world .story-result .story-line{color:#ded8ca}.result-world .story-result .story-speaker{color:#c7b389}
@media(min-width:900px){
  #result-dialog.result-world.has-result-memory,.world-trial #result .result-card.result-world.has-result-memory{grid-template-columns:minmax(0,1fr) 29%;column-gap:28px}
  .result-world.has-result-memory>:not(.result-memory,.result-archive-header,.record-fireworks){grid-column:1}
  .result-world.has-result-memory>.result-memory{grid-column:2;grid-row:2/span 40;position:sticky;top:0;margin:0}
}
@media(max-width:899px){
  .result-memory-fitting{width:24px;height:24px}
  .result-world .result-memory-art{padding-bottom:22px}
  .result-world .result-memory{display:grid;grid-template-columns:102px minmax(0,1fr);margin:0 0 20px}.result-memory-heading{padding:7px 10px}.result-memory-index{font-size:9px}.result-memory figcaption{border-top:0;padding:15px 18px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.result-memory-art img{height:auto}.result-memory h3{font-size:28px;margin:5px 0}.result-memory p{margin-bottom:5px}.result-memory-tier{align-self:start}
}
@media(max-width:560px){
  .world-trial #result{padding:10px;align-items:start}#result-dialog.result-world,.world-trial #result .result-card.result-world{padding:19px 18px;width:100%}#result-dialog.result-world{width:calc(100vw - 20px);max-height:calc(100svh - 20px)}
  .result-world .result-archive-header{margin-bottom:16px;padding:5px 0 15px;gap:12px}.result-archive-header img{width:113px;padding:6px}.result-archive-label{padding:3px 7px}.result-archive-label b{font-size:18px;letter-spacing:.14em;margin-right:-.14em}.result-archive-label small{font-size:7px;letter-spacing:.02em}.result-archive-seal{width:26px;height:29px;flex-basis:26px;font-size:19px;outline-offset:2px}
  .result-world #result-title{font-size:23px}.result-world .result-time{font-size:43px}.result-world .result-metrics{gap:8px}.result-world .result-metrics>div+div{padding-left:9px}.result-world .result-metrics strong{font-size:23px}.result-world .result-metrics span{font-size:9px}
  .result-world .result-memory{grid-template-columns:84px minmax(0,1fr)}.result-memory-art img{height:auto}.result-memory figcaption{padding:10px 13px}.result-memory h3{font-size:25px}.result-memory-status,.result-memory p{font-size:10px}.result-memory-tier{font-size:8px}
  .result-world .result-rank strong{font-size:28px}.result-world .result-rank>#rank{font-size:52px;padding-inline:9px}.result-world .result-completion{grid-template-columns:repeat(2,minmax(0,1fr))}.result-world .timeattack-panel>div:first-child>b{font-size:37px}.result-world .timeattack-panel>div>b{font-size:18px}.result-world .timeattack-panel small{font-size:9px}
  .result-world .lap-grid{grid-template-columns:1fr}.result-world .result-actions{grid-template-columns:1fr 1fr}.result-world .result-actions .primary{grid-column:1/-1}
  .result-world .ghost-result-times{grid-template-columns:1fr}#result-dialog.result-world .timeattack-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.result-world .timeattack-panel>div:nth-child(4){grid-column:1/-1}
}
@media(max-width:560px){
  .result-world .result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .result-world .result-metrics>div{min-width:0}
  .result-world .result-metrics>div:last-child{grid-column:1/-1;display:flex;align-items:baseline;gap:12px;border-left:0;border-top:1px solid var(--report-line);padding:10px 0 0}
  .result-world .result-metrics strong{white-space:nowrap}
}
@media(max-width:380px){.result-archive-header img{width:92px}.result-world .result-archive-header{gap:9px}.result-archive-label b{font-size:16px}.result-archive-label small{display:none}}
.reduced-motion .result-world .result-memory::after,.reduced-motion .result-world .result-memory-shine::before{animation:none!important}
@media(prefers-reduced-motion:reduce){.result-world *,.result-world *::before,.result-world *::after{animation:none!important;transition:none!important}}

/* Read the result first; let the screen painting show through secondary panels. */
.result-world{--report-surface:linear-gradient(135deg,#0d1b27d9,#09131dc2)}
.result-world :is(.lap-grid>div,.ghost-result,.result-standing,.collection-result){background:var(--report-surface);box-shadow:inset 0 1px #f6dfab0a}
.result-world :is(.result-history,.keyboard-hints,.result-peak-note,.lap-comparison,.collection-result-goal){font-size:12px;line-height:1.75}
.result-world .result-metrics span{font-size:12px;line-height:1.6;color:#d0c7b4}
.result-world .result-metrics strong{font-size:clamp(27px,3vw,34px);line-height:1.3}
.result-world .lap-grid small{font-size:12px;line-height:1.65}
.result-world .result-memory-status,.result-world .result-memory-tier{font-size:11px}
.result-world .result-memory p{font-size:12px}
.result-world :is(.result-actions button,.primary-button,.secondary-button){min-height:44px;font-size:13px;transition:background-color .16s,border-color .16s,box-shadow .16s}
.reduced-motion .result-world :is(.result-actions button,.primary-button,.secondary-button){transition:none}
.result-world .result-actions{gap:10px;margin-top:12px}
.result-world .result-actions .primary{box-shadow:inset 0 0 0 3px #f8e4b73d,inset 0 -3px #76522355,0 4px 16px #0003}
.result-world :is(button,a,summary){scroll-margin-block:24px}
.result-world :is(.result-heading,.result-metrics>div,.result-actions>button){min-width:0}
/* Trial reports share one vertical rhythm, including optional mode details.
   Grid-item margins do not collapse: keep spacing on one side of each block. */
.world-trial #result #result-input-counts{margin:0 0 12px}
.world-trial #result :is(.result-entry,.ghost-result){margin:0 0 16px}
.world-trial #result .result-actions{margin:0 0 20px}
.world-trial #result .collection-result{margin:0 0 20px!important}
.world-trial #result #peak-note{margin:0 0 16px}
.world-trial #result .lap-grid{margin:0 0 16px;align-items:stretch}
.world-trial #result .lap-grid>div{min-width:0}
.world-trial #result .lap-grid strong{white-space:nowrap}
.world-trial #result .lap-grid>div>span{display:block;margin:6px 0 0;line-height:1.6}
.world-trial #result .lap-comparison{margin:6px 0 0}
.world-trial #result :is(.input-review,.long-result-text,#hsk5-result-text){margin:0;padding:10px 0;border-top:1px solid var(--report-line);font-size:12px}
.world-trial #result summary{min-height:36px;padding:8px 0;font-size:12px;line-height:1.7}
.world-trial #result .result-history-row{margin:0;padding:10px 0;gap:8px 16px;border-top:1px solid var(--report-line);flex-wrap:wrap}
.world-trial #result .result-history-row .result-history{margin:0;flex:1 1 260px}
.world-trial #result #result-history-open{margin:0;min-height:36px}
.world-trial #result .full-teaser{margin:0;padding:14px 0;min-height:44px;font-size:12px;align-items:center}
.world-trial #result .keyboard-hints{margin:8px 0 0}
@media(min-width:900px){
  .world-trial #result .result-memory{top:16px}
}
@media(hover:hover){
  .result-world .result-actions .primary:hover{box-shadow:inset 0 0 0 3px #fff4d970,0 4px 20px #bd965426}
  .result-world .result-actions>button:not(.primary):hover{background:#253039;border-color:#d8ba7a}
}
@media(min-width:900px) and (max-height:800px){
  #result-dialog.result-world,.world-trial #result .result-card.result-world{padding:20px 26px}
  .result-world .result-archive-header{padding-top:4px;padding-bottom:14px;margin-bottom:16px}
  .result-world .result-archive-header img{width:150px}
  .result-world .result-archive-label b{font-size:23px}
  .result-world #result-title{font-size:27px;margin:8px 0}
  .result-world .result-metrics{margin:12px 0;padding:12px 0}
  .result-world .result-memory figcaption{padding:12px 15px}
  .world-trial #result .result-memory{width:min(100%,max(180px,calc((100svh - 340px) * 2 / 3)));justify-self:center}
}
/* Short screens retain a complete result and the next action above the fold. */
@media(min-width:701px) and (max-height:800px){
  .world-trial #result{padding:20px}
  .world-trial #result .result-card.result-world{padding:18px 24px}
  .world-trial #result .result-archive-header{padding:0 0 10px;margin-bottom:12px}
  .world-trial #result .result-archive-header img{width:130px;padding:4px 0}
  .world-trial #result .result-archive-label b{font-size:22px}
  .world-trial #result .result-archive-label small{display:none}
  .world-trial #result .result-archive-seal{width:28px;height:32px;flex-basis:28px;font-size:22px}
  .world-trial #result #result-title{font-size:25px;margin:6px 0}
  .world-trial #result .result-time{font-size:50px}
  .world-trial #result .result-metrics{margin:8px 0;padding:8px 0}
  .world-trial #result .result-metrics strong{font-size:30px}
  .world-trial #result .result-actions{margin-bottom:14px}
  .world-trial #result .result-entry{padding:10px 14px}
  .world-trial #result .result-entry h3{margin:0 0 6px}
  .world-trial #result .submit-status{margin:0 0 8px}
  .world-trial #result #result-entry-note{margin:8px 0 0}
}

/* Competition record: one clear score, a supporting card, then comparisons.
   Keep the existing archive artwork and rarity treatment away from live figures. */
.world-trial #result:has(.result-refined){align-items:start;padding:24px;background:linear-gradient(#071019d9,#071019ed),url('assets/backgrounds/archive-v1.webp?v=031b59c68ab74a9babdbca5e4bfa0598a25d18f8d7cd0df2e599d87c45efb294') center/cover}
.world-trial #result .result-card.result-refined{--report-line:#c9b28140;--report-muted:#c6cbd0;width:min(1080px,100%);padding:24px 30px;column-gap:32px;row-gap:0;background:linear-gradient(180deg,#0b17253d,#0b1725f5 105px,#0b1725 100%),url('assets/title/result-kasumi-v1.webp?v=b5f1f3a7c8007712d2ff6f95f3ff4db955be1974776decc2449e29f900de84a9') center top/1080px auto no-repeat,#0b1725;box-shadow:0 18px 70px #0008,inset 0 0 0 4px #c5a36c13}
.world-trial #result .result-refined>.result-archive-header{grid-column:1/-1;grid-row:1;padding:0 0 14px;margin:0 0 20px}
.world-trial #result .result-refined .result-archive-header img{width:145px;padding:0;filter:none}
.world-trial #result .result-refined .result-archive-label b{font-size:22px;letter-spacing:.18em}
.world-trial #result .result-refined .result-archive-label small{display:none}
.world-trial #result .result-refined .result-archive-seal{width:28px;height:31px;flex-basis:28px;font-size:21px;outline-offset:2px}
.world-trial #result .result-refined>.result-overview{grid-column:1;grid-row:2;min-width:0;align-self:start}
.world-trial #result .result-refined .result-heading{gap:10px;align-items:start;flex-wrap:wrap;margin:0 0 7px}
.world-trial #result .result-refined .eyebrow{font:12px/1.6 'Yu Gothic UI',Meiryo,sans-serif;letter-spacing:.05em;color:#c8b68f}
.world-trial #result .result-refined #best-badge{font-size:11px;padding:3px 8px;color:#ffe8b0;border-color:#c5a36c70;background:#5d382b;box-shadow:none}
.world-trial #result .result-refined #result-title{font-size:25px;line-height:1.4;letter-spacing:.06em;margin:0 0 18px;color:#f4e9cf}
.world-trial #result .result-refined .result-time-label{display:block;font-size:12px;color:#c6cbd0;letter-spacing:.12em;margin-bottom:5px}
.world-trial #result .result-refined .result-time{font-size:clamp(38px,4.5vw,57px);line-height:1.2;margin:0 0 20px;white-space:nowrap;color:#f2f6f9;text-shadow:none}
.world-trial #result .result-refined .result-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 12px;padding:14px 0;border-block:1px solid var(--report-line);background:none}
.world-trial #result .result-refined .result-metrics>div{display:block;min-width:0;grid-column:auto;padding:0;border:0}
.world-trial #result .result-refined .result-metrics span{font:12px/1.6 'Yu Gothic UI',Meiryo,sans-serif;color:#c6cbd0;margin:0 0 6px}
.world-trial #result .result-refined .result-metrics strong{font-size:clamp(24px,2.5vw,30px);line-height:1.3;white-space:nowrap}
.world-trial #result .result-refined #result-input-counts{font-size:13px;color:#c6cbd0;line-height:1.6;margin:0 0 16px}
.world-trial #result .result-refined #peak-note{font-size:12px;margin:0 0 12px}
.world-trial #result .result-refined .growth-panel{margin:0;padding:13px 15px;gap:7px 20px;background:#101f2c;border:1px solid #aebac324;border-left:2px solid var(--growth);box-shadow:none}
.world-trial #result .result-refined .growth-heading{font-size:12px;line-height:1.6}
.world-trial #result .result-refined .growth-heading strong{font-size:13px}
.world-trial #result .result-refined .growth-stats{gap:26px}
.world-trial #result .result-refined .growth-stats small{font:11px/1.5 'Yu Gothic UI',Meiryo,sans-serif;letter-spacing:.05em}
.world-trial #result .result-refined .growth-stats b{font-size:24px;line-height:1.25}
.world-trial #result .result-refined .growth-totals{font-size:12px;line-height:1.7}
.world-trial #result .result-refined .growth-note,#result .result-refined .growth-unlocked{font-size:11px;line-height:1.6;margin-top:4px;color:#bdc6cc}
.world-trial #result .result-refined>.result-memory{grid-column:2;grid-row:2;position:relative;top:auto;align-self:start;justify-self:end;width:236px;max-width:100%;margin:0;padding:8px;display:block}
.world-trial #result .result-refined .result-memory-heading{padding:9px 13px}
.world-trial #result .result-refined .result-memory-index{font-size:10px;letter-spacing:.12em}
.world-trial #result .result-refined .result-memory-art img{height:auto;aspect-ratio:2/3;object-fit:contain}
.world-trial #result .result-refined .result-memory figcaption{padding:11px 13px;border-top:1px solid #ccb47b;display:block}
.world-trial #result .result-refined .result-memory h3{font-size:27px;line-height:1.3;margin:4px 0;letter-spacing:.12em}
.world-trial #result .result-refined .result-memory-status{font-size:11px;letter-spacing:.02em}
.world-trial #result .result-refined .result-memory p{font-size:12px;line-height:1.5;margin:0 0 7px}
.world-trial #result .result-refined .result-memory-tier{font-size:10px;line-height:1.5;padding:2px 5px}
.world-trial #result .result-refined .result-overview>.result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0 0;padding:0;border:0}
.world-trial #result .result-refined .result-actions button{grid-column:auto;min-height:48px;font-size:14px;padding:12px 16px;justify-content:center}
.world-trial #result .result-refined .result-actions kbd{font-size:10px}
.world-trial #result .result-refined>.result-comparisons{grid-column:1/-1;display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin:22px 0 18px;padding-top:20px;border-top:1px solid var(--report-line)}
.world-trial #result .result-refined .result-comparisons>section{min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none}
.world-trial #result .result-refined .result-comparisons>section+section{border-left:1px solid var(--report-line);padding-left:24px}
.world-trial #result .result-refined .result-comparisons h3{font:600 13px/1.6 'Yu Gothic UI',Meiryo,sans-serif;color:#cfbc94;margin:0 0 8px;letter-spacing:.06em}
.world-trial #result .result-refined .result-entry .submit-status{font-size:13px;line-height:1.7;margin:0 0 8px;min-height:0}
.world-trial #result .result-refined .result-entry .subtle{font-size:12px;line-height:1.7}
.world-trial #result .result-refined .result-standing{margin:10px 0 0;padding:0;background:none;border:0;box-shadow:none;display:flex;flex-wrap:wrap;gap:6px 14px}
.world-trial #result .result-refined .result-standing[hidden]{display:none}
.world-trial #result .result-refined .result-standing strong{font-size:19px;color:#f1d7a2}
.world-trial #result .result-refined .result-standing p,#result .result-refined .result-standing small{font-size:12px;line-height:1.7;margin:4px 0;color:#bdc6cc}
.world-trial #result .result-refined #result-rank-open{min-height:36px;padding:6px 0;font-size:12px}
.world-trial #result .result-refined .ghost-result{margin:0;padding:0;border:0;background:none;box-shadow:none;font-size:13px;line-height:1.8}
.world-trial #result .result-refined .ghost-result strong{display:block;font-size:20px;margin:0 0 6px;color:#f3dfb9}
.world-trial #result .result-refined .ghost-result>span{display:block;color:#c6cbd0;font-size:13px;line-height:1.9}
.world-trial #result .result-refined>.collection-result{grid-column:1/-1!important;margin:0 0 18px!important;padding:12px 14px!important;background:#111f2b;border-color:#b5c5ce26}
.world-trial #result .result-refined>.result-detail-panel{grid-column:1/-1;margin:0;border:0;border-top:1px solid var(--report-line);padding:0;background:transparent}
.world-trial #result .result-refined>.result-detail-panel>summary{min-height:48px;padding:14px 0;font-size:14px;color:#e1d1b3}
.world-trial #result .result-refined>.result-detail-panel>summary>span{font-size:12px;color:#aebdc9;margin-left:16px}
.world-trial #result .result-refined .result-detail-content{padding:6px 0 0}
@media(min-width:741px){
 .world-trial #result .result-card.result-refined.has-result-memory{grid-template-columns:minmax(0,1fr) 236px}
}
@media(min-width:741px) and (max-height:800px){
 .world-trial #result:has(.result-refined){padding:16px 24px}
 .world-trial #result .result-card.result-refined{padding:18px 24px;column-gap:26px}
 .world-trial #result .result-card.result-refined.has-result-memory{grid-template-columns:minmax(0,1fr) 188px}
 .world-trial #result .result-refined>.result-archive-header{padding-bottom:10px;margin-bottom:14px}
 .world-trial #result .result-refined>.result-memory{width:188px}
 .world-trial #result .result-refined .result-memory p{display:none}
 .world-trial #result .result-refined .result-memory figcaption{padding:8px 10px}
 .world-trial #result .result-refined .result-memory h3{font-size:24px}
 .world-trial #result .result-refined #result-title{margin-bottom:10px;font-size:23px}
 .world-trial #result .result-refined .result-time{font-size:45px;margin-bottom:12px}
 .world-trial #result .result-refined .result-metrics{padding:9px 0;margin-bottom:8px}
 .world-trial #result .result-refined #result-input-counts{margin-bottom:10px}
 .world-trial #result .result-refined .growth-panel{padding:10px 12px;gap:5px 16px}
 .world-trial #result .result-refined .result-overview>.result-actions{margin-top:14px}
}

/* Two type families only: UI copy and the selected Silver Circuit numerals.
   Artwork/wordmarks retain their authored lettering. */
.world-trial #result .result-refined{--report-ui:'Yu Gothic UI','Meiryo',sans-serif;--report-numeral:'TZCircuit',sans-serif;font-family:var(--report-ui)}
.world-trial #result .result-refined :is(h1,h2,h3,p,small,span,li,button,summary,kbd,.eyebrow,.result-memory-index,.result-memory-tier,.result-memory-status,.result-archive-label b,.result-archive-seal){font-family:var(--report-ui)}
.world-trial #result .result-refined :is(.result-time,.result-metrics strong,.growth-stats b,.lap-grid strong){font-family:var(--report-numeral);font-weight:400;font-variant-numeric:tabular-nums}
.world-trial #result .result-refined .result-metrics :is(.forge-number,.forge-glyph,.forge-inner){margin:0;padding:0;color:inherit}
.world-trial #result .result-refined .result-metrics>div>span{font-family:var(--report-ui)}
.world-trial #result .result-refined .result-archive-label b{font-weight:600;letter-spacing:.16em}
.world-trial #result .result-refined #result-title{font-weight:600;letter-spacing:.03em}
.world-trial #result .result-refined .result-memory h3{font-weight:600;letter-spacing:.05em}
.world-trial #result .result-refined .growth-stats b{font-size:20px;line-height:1.4;margin-top:3px}
.world-trial #result .result-refined .result-heading .eyebrow{padding:0;line-height:1.6}
/* Use the real font face for all report numerals, including percentages and
   score/EXP. This avoids a different optical scale between masked and native text. */
.world-trial #result .result-refined .forge-number>.forge-source{position:static!important;display:inline!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;white-space:inherit!important;font:inherit!important;color:inherit}
.world-trial #result .result-refined .forge-number>.forge-glyph{display:none!important}
@media(min-width:741px) and (max-height:800px){
 .world-trial #result .result-refined>.result-archive-header{padding-bottom:8px;margin-bottom:10px}
 .world-trial #result .result-refined .result-archive-header img{width:124px}
 .world-trial #result .result-refined .result-heading{margin-bottom:4px}
 .world-trial #result .result-refined .growth-panel{padding:9px 12px;gap:4px 16px}
 .world-trial #result .result-refined .result-overview>.result-actions{margin-top:14px}
}
@media(max-width:740px){
 .world-trial #result .result-refined .growth-panel{grid-template-columns:minmax(0,1fr)}
 .world-trial #result .result-refined .growth-stats{grid-column:1;grid-row:auto;justify-content:space-between;gap:20px;margin:4px 0}
 .world-trial #result .result-refined .growth-totals{grid-column:1;grid-row:auto;display:flex;flex-wrap:wrap;gap:4px 12px}
 .world-trial #result .result-refined .growth-bar{grid-column:1;grid-row:auto}
}
@media(max-width:440px){
 .world-trial #result .result-refined .result-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
 .world-trial #result .result-refined .result-metrics>div:last-child{grid-column:1/-1;display:flex;gap:16px;align-items:baseline;padding-top:10px;border-top:1px solid var(--report-line)}
 .world-trial #result .result-refined .result-metrics strong{font-size:24px}
}
@media(max-width:740px){
 .world-trial #result:has(.result-refined){padding:12px}
 .world-trial #result .result-card.result-refined{padding:18px;grid-template-columns:minmax(0,1fr)}
 .world-trial #result .result-refined>.result-archive-header{margin-bottom:18px}
 .world-trial #result .result-refined .result-archive-header img{width:120px}
 .world-trial #result .result-refined .result-archive-label b{font-size:19px}
 .world-trial #result .result-refined>.result-overview{grid-column:1;grid-row:2}
 .world-trial #result .result-refined #result-title{font-size:22px}
 .world-trial #result .result-refined .result-time{font-size:clamp(31px,8vw,48px)}
 .world-trial #result .result-refined .result-metrics{gap:8px}
 .world-trial #result .result-refined .result-metrics span{font-size:11px}
 .world-trial #result .result-refined .result-metrics strong{font-size:clamp(17px,5vw,27px)}
 .world-trial #result .result-refined .growth-panel{gap:8px;padding:12px}
 .world-trial #result .result-refined .growth-stats{gap:16px}
 .world-trial #result .result-refined .growth-stats b{font-size:20px}
 .world-trial #result .result-refined .growth-totals{font-size:11px}
 .world-trial #result .result-refined .result-overview>.result-actions{gap:9px}
 .world-trial #result .result-refined>.result-memory{grid-column:1;grid-row:3;justify-self:stretch;width:auto;display:grid;grid-template-columns:88px minmax(0,1fr);margin:20px 0 0}
 .world-trial #result .result-refined .result-memory-heading{grid-column:1/-1}
 .world-trial #result .result-refined .result-memory figcaption{border-top:0;padding:14px;display:flex;flex-direction:column;justify-content:center}
 .world-trial #result .result-refined .result-memory-tier{align-self:start}
 .world-trial #result .result-refined>.result-comparisons{grid-template-columns:1fr;gap:18px}
 .world-trial #result .result-refined .result-comparisons>section+section{border-left:0;border-top:1px solid var(--report-line);padding:18px 0 0}
 .world-trial #result .result-refined>.result-detail-panel>summary>span{display:block;margin:4px 0 0 16px}
}


/* The same licensed brush face used on shared result cards. Load on demand;
   explicit selectors keep the report's general UI font from replacing names. */
@font-face{font-family:TZCardBrush;src:url('assets/fonts/card-name-yuji-boku-v1.woff2?v=6ad36d0bab081ecefef7b69c76c745e69252311659b0d674c8be4c046d2fff26') format('woff2');font-style:normal;font-weight:400;font-display:swap}
.result-world .result-memory figcaption h3,
.world-trial #result .result-refined .result-memory figcaption h3{font-family:TZCardBrush,'Yu Mincho',serif;font-weight:400;font-synthesis:none;letter-spacing:.04em;line-height:1.45;overflow-wrap:anywhere}
.result-memory figcaption .card-roman{display:block;font:500 11px/1.55 'Yu Gothic UI',Arial,sans-serif;letter-spacing:.045em;text-transform:uppercase;color:#685131;margin:0 0 8px;overflow-wrap:anywhere}
.result-memory figcaption .card-roman[hidden]{display:none}

/* result-share.css */
/* The poster is exported at 1600 × 900; the dialog scales the preview only. */
.result-share-dialog{box-sizing:border-box;width:min(1100px,96vw);max-width:96vw;max-height:94dvh;overflow:auto;margin:auto;padding:20px;border:1px solid #a88c55;border-radius:5px;background:#0b1724;color:#e7edf4;font-family:'Yu Gothic UI','Meiryo','Microsoft YaHei',sans-serif;box-shadow:0 24px 80px #000a}
.result-share-dialog::backdrop{background:#020710cf;backdrop-filter:blur(5px)}
.result-share-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.result-share-dialog h2{font:600 22px 'Yu Gothic UI','Meiryo','Microsoft YaHei',sans-serif;margin:0;color:#ead1a0}
.result-share-dialog button,.result-share-dialog a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid #bca06488;border-radius:3px;background:#172635;color:#e8edf4;text-decoration:none;font:600 15px 'Yu Gothic UI','Meiryo','Microsoft YaHei',sans-serif;cursor:pointer}
.result-share-dialog .result-share-save{background:#e4c58b;color:#16202a}
.result-share-dialog :focus-visible{outline:3px solid #bde6ff;outline-offset:3px}
.result-share-dialog button:disabled{opacity:.45;cursor:wait}
.result-share-dialog [hidden]{display:none!important}
.result-share-preview{aspect-ratio:16/9;background:#07111d;display:grid;place-items:center}
.result-share-preview img{display:block;width:100%;height:auto;max-height:calc(94dvh - 210px);object-fit:contain}
.result-share-preview{aspect-ratio:auto}
.result-share-actions{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.result-share-status{margin:12px 0 0;color:#bdcbd7;font-size:14px;line-height:1.7}
.result-share-open{min-height:44px;white-space:nowrap;flex:0 0 auto}
.result-world .result-actions:has(.result-share-open){flex-wrap:wrap;grid-template-columns:minmax(160px,1fr) repeat(3,auto)}
@media(max-width:700px){.result-share-dialog{padding:14px}.result-share-dialog h2{font-size:18px}.result-share-dialog button,.result-share-dialog a{padding:10px 14px}.result-world .result-actions:has(.result-share-open){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ranking-world.css */
/* Network rankings and local history share the result screen's ink and gold kasumi.
   Record values, sorting and storage stay in their existing modules. */
html:has(:is(#board-dialog,#history-dialog).ranking-world[open]){overflow:hidden}
:is(#board-dialog,#history-dialog).ranking-world{
  --rank-gold:#e8ca8b;--rank-line:#d7b77468;--accent:#eed49b;--cyan:#e8ce94;--muted:#bcbfb9;
  width:min(1080px,calc(100% - 36px));padding:22px 28px;color:#ece9df;
  border:1px solid #d7b771;border-radius:2px;
  background:linear-gradient(180deg,#0b18233b,#0b1823ed 220px,#0b1823 500px),url('assets/title/result-kasumi-v1.webp?v=b5f1f3a7c8007712d2ff6f95f3ff4db955be1974776decc2449e29f900de84a9') center top/1080px auto no-repeat,#0b1823;
  box-shadow:0 25px 80px #000b,inset 0 0 0 4px #d5ae5820,inset 0 0 0 5px #edce9225;
  overflow:auto;scrollbar-color:#9d8258 #0b1823;
}
:is(#board-dialog,#history-dialog).ranking-world::backdrop{background:linear-gradient(90deg,#080f18e8,#1a121cd9),url('assets/backgrounds/archive-v1.webp?v=031b59c68ab74a9babdbca5e4bfa0598a25d18f8d7cd0df2e599d87c45efb294') center/cover;backdrop-filter:none}
.ranking-world .ranking-archive-header{display:flex;align-items:center;gap:14px;flex-shrink:0;padding:0 42px 14px 0;border-bottom:1px solid var(--rank-line);margin-bottom:12px;position:relative;isolation:isolate}
/* Feather the ink into the original artwork, instead of placing opaque labels over it. */
.ranking-world .ranking-archive-header::before{content:'';position:absolute;inset:-16px -12px -6px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 34% 50% at 12% 48%,#091722eb 20%,#0917229c 50%,#09172200 100%),radial-gradient(ellipse 38% 50% at 83% 48%,#091722eb 20%,#0917229c 50%,#09172200 100%)}
.ranking-archive-header img{width:143px;height:auto;padding:5px 0;background:transparent;border:0}
.ranking-archive-header>:is(span,.history-header-copy){margin-left:auto;text-align:right;background:transparent;padding:2px 0}
.ranking-archive-header b{display:block;font:500 24px/1.4 'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.2em;color:#eaddbe;margin-right:-.2em;text-shadow:0 1px 2px #061018}
.ranking-archive-header small{font:8px/1.7 Consolas,monospace;letter-spacing:.11em;color:#c4b896;text-shadow:0 1px 1px #061018}
.ranking-archive-header i{display:grid;place-items:center;width:30px;height:34px;border:1px solid #d68c79;outline:1px solid #8a4447;outline-offset:2px;background:#793039e8;color:#f6d6b5;font:22px 'Yu Mincho',serif;transform:rotate(-5deg)}
:is(#board-dialog,#history-dialog).ranking-world .dialog-close{top:18px;right:18px;z-index:2;color:#e8d5b3;border:1px solid var(--rank-line);background:#0b1726;min-width:34px;min-height:34px;padding:4px;font-size:24px;border-radius:1px}
#board-dialog.ranking-world h2{font:500 25px/1.4 'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.06em;color:#f6e6c5;margin:4px 0}
#board-dialog.ranking-world #board-meta{color:#c9b891;font:11px/1.6 Consolas,'Yu Gothic',sans-serif;margin:1px 0 4px}
#board-dialog.ranking-world .ranking-modes{margin:0 0 12px;gap:8px;flex-shrink:0}
#board-dialog.ranking-world .ranking-modes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
#board-dialog.ranking-world .ranking-modes button{min-width:0;font-size:14px;padding:10px 15px;border:1px solid var(--rank-line);border-radius:1px;background:#0d1b28e8;color:#c6c4b9;box-shadow:none}
#board-dialog.ranking-world .ranking-modes button[aria-pressed=true]{background:linear-gradient(110deg,#a98449,#efdbad 44%,#d6b47a);color:#302619;border-color:#f0d69c;box-shadow:inset 0 0 0 3px #fff4d329}
#board-dialog.ranking-world .ranking-modes kbd{color:inherit;border-color:currentColor;background:transparent;opacity:.7}
#board-dialog.ranking-world .ranking-guide{flex-shrink:0;font-size:11px;color:#bfc2bb;margin:3px 0 4px}
.ranking-world .ranking-guide summary{cursor:pointer;color:#cfbb91;padding:4px 0;width:fit-content}
.ranking-world .ranking-guide p{font-size:11px;line-height:1.7;color:#c3c6be;margin:5px 0;max-width:82ch}
#board-dialog.ranking-world .board-filters{margin:5px 0;gap:6px;flex-shrink:0}
#board-dialog.ranking-world .board-filters button{font-size:11px;padding:6px 11px;background:#101d28;border:1px solid #bca47240;color:#c8c7bd;border-radius:1px}
#board-dialog.ranking-world .board-filters button[aria-pressed=true]{color:#f3d99c;background:#c6a46516;border-color:#d8b775}
#board-dialog.ranking-world #board-status{font-size:11px;color:#c2b38d;margin:4px 0 8px;line-height:1.6}
#board-dialog.ranking-world #board-status:is([data-state=empty],[data-state=error],[data-state=loading]){padding:20px 18px;border:1px solid var(--rank-line);background:#0a1420d9;color:#ded1b8}
#board-dialog.ranking-world #board-status[data-state=error]{border-left:3px solid #d58f85;color:#f1b9b2}
#board-dialog.ranking-world #board-mine{font-size:11px;line-height:1.7;color:#ead3a2;margin:0 0 9px;padding:8px 12px;border-left:2px solid #d5b271;background:#d7b8790e;flex-shrink:0}
#board-dialog.ranking-world #board-mine:empty{display:none}
#board-dialog.ranking-world>.table-scroll{border-block:1px solid var(--rank-line);background:#08141eee;scrollbar-color:#a18a62 #0c1823;scroll-padding-block:45px 10px}
#board-dialog.ranking-world>.table-scroll:has(#board-rows:empty){display:none}
#board-dialog.ranking-world table{font-size:12px;border-spacing:0 5px}
#board-dialog.ranking-world th{background:#15222c;color:#c5b893;font-size:10px;white-space:nowrap;padding:9px 10px;border:0;z-index:2}
#board-dialog.ranking-world td{padding:10px;color:#d5dcd9;border-bottom:1px solid #c3ae7924;vertical-align:middle}
#board-dialog.ranking-world #board-rows tr{background:#13202b66}
#board-dialog.ranking-world #board-rows tr:nth-child(even){background:#b8a06c07}
#board-dialog.ranking-world #board-rows tr.mine{background:#d6b46818;box-shadow:inset 3px 0 #edce88}
#board-dialog.ranking-world #board-rows tr:focus-within{outline:1px solid #fff0c0;outline-offset:-1px;background:#c6b07919}
#board-dialog.ranking-world .ranking-player{min-width:160px;max-width:280px;line-height:1.55}
#board-dialog.ranking-world .ranking-identity{display:flex;align-items:center;gap:12px}
#board-dialog.ranking-world .ranking-player-copy{min-width:0;flex:1;white-space:normal;overflow-wrap:anywhere}
#board-dialog.ranking-world .ranking-avatar{position:relative;display:block;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border:1px solid #c8ad74a6;border-radius:50%;background:#172431;box-shadow:0 0 0 3px #0b172599}
#board-dialog.ranking-world .ranking-avatar img{position:absolute;max-width:none;object-fit:fill}
#board-dialog.ranking-world .ranking-avatar-fallback{position:absolute;inset:0;display:grid;place-items:center;font:22px 'Yu Mincho',serif;color:#b3a787}
#board-dialog.ranking-world .ranking-player strong{font-size:13px;color:#ece5d6}
#board-dialog.ranking-world .ranking-comment{font-size:11px;color:#aebcbf;line-height:1.65;margin-top:4px}
#board-dialog.ranking-world td:nth-child(3){font-size:17px;white-space:nowrap;text-shadow:none}
/* WPM, correct keys and misses share one size and the same numeric renderer. */
#board-dialog.ranking-world #board-rows td.ranking-stat{font:400 14px/1.4 TZCircuit,Consolas,monospace;white-space:nowrap;text-shadow:none}
#board-dialog.ranking-world .ghost-challenge{min-height:36px;padding:7px 11px;white-space:nowrap;font-size:11px;border:1px solid #d7bc8169;background:linear-gradient(135deg,#2b2d2b,#16222c);color:#efd8a7;border-radius:1px}
#board-dialog.ranking-world .ghost-challenge:hover:not(:disabled){background:#464030;border-color:#efd4a0}
#board-dialog.ranking-world button:disabled{opacity:.4;cursor:not-allowed}
#board-dialog.ranking-world :is(button,summary,.table-scroll):focus-visible{outline:2px solid #fff0c3;outline-offset:3px}
#board-dialog.ranking-world #board-rows tr.podium{background:linear-gradient(110deg,rgba(var(--medal-rgb),.19),rgba(var(--medal-rgb),.045) 68%,#0c1823);box-shadow:none}
#board-dialog.ranking-world #board-rows tr.podium>td{border-top:1px solid rgba(var(--medal-rgb),.36);border-bottom:1px solid rgba(var(--medal-rgb),.26);padding-block:12px}
#board-dialog.ranking-world #board-rows tr.podium>td:first-child{width:70px;padding:10px;border-radius:1px 0 0 1px}
#board-dialog.ranking-world #board-rows tr.podium>td:last-child{border-radius:0 1px 1px 0}
#board-dialog.ranking-world #board-rows tr.podium .ranking-player strong{color:var(--medal-light);font-size:15px}
#board-dialog.ranking-world #board-rows tr.podium.mine>td:last-child{border-right:3px solid #edce88}
#board-dialog.ranking-world .podium-badge{width:43px;height:50px;font-size:24px;clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 5px),50% 100%,0 calc(100% - 5px),0 4px)}
#board-dialog.ranking-world .board-actions{margin:12px 0 0;gap:10px;flex-shrink:0}
#board-dialog.ranking-world .board-actions button{background:#12202b;color:#dcc9a2;border:1px solid var(--rank-line);border-radius:1px;padding:8px 16px}
#board-dialog.ranking-world #board-page{min-width:55px;text-align:center;color:#d4c5a4}
#board-dialog.ranking-world .keyboard-hints{color:#a9b5b6;margin-bottom:0;border-top:1px solid #c5ac7633}
/* Keep all seven fields visible on a narrow screen without horizontal travel. */
@media(max-width:700px){
  #board-dialog.ranking-world{width:calc(100% - 20px);max-width:calc(100% - 20px);padding:18px 16px;max-height:calc(100svh - 20px)}
  #board-dialog.ranking-world .ranking-archive-header{padding-right:35px;gap:10px;margin-bottom:10px}
  .ranking-archive-header img{width:105px;padding:4px}.ranking-archive-header b{font-size:20px}.ranking-archive-header small{font-size:6px;letter-spacing:0}.ranking-archive-header i{display:none}
  #board-dialog.ranking-world .dialog-close{top:17px;right:13px;min-width:28px;min-height:30px;font-size:22px}
  #board-dialog.ranking-world h2{font-size:21px}.ranking-world .ranking-guide p{font-size:11px}
  #board-dialog.ranking-world .ranking-modes{gap:6px;margin-bottom:9px}.ranking-world .ranking-modes kbd{display:none}
  #board-dialog.ranking-world .ranking-modes{grid-template-columns:repeat(6,minmax(0,1fr))}
  #board-dialog.ranking-world .ranking-modes button{grid-column:span 2}
  #board-dialog.ranking-world .ranking-modes button:nth-child(-n+2){grid-column:span 3}
  #board-dialog.ranking-world .ranking-modes button{font-size:12px;padding:9px 6px}
  #board-dialog.ranking-world .ranking-identity{gap:8px}
  #board-dialog.ranking-world .ranking-avatar{flex-basis:36px;width:36px;height:36px}
  #board-dialog.ranking-world :is(table,tbody){display:block;min-width:0;width:100%}
  #board-dialog.ranking-world thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #board-dialog.ranking-world #board-rows tr{display:grid;grid-template-columns:45px repeat(3,minmax(0,1fr));gap:6px 9px;margin:8px 0;padding:13px 10px;border:1px solid #aa986039;border-left:2px solid #a9987060;background:#10202b}
  #board-dialog.ranking-world #board-rows tr.podium{border-color:rgba(var(--medal-rgb),.35);border-left-color:var(--medal);border-left-width:3px}
  #board-dialog.ranking-world #board-rows tr>td{padding:0;border:0;min-width:0;width:auto;max-width:none;font-size:12px}
  #board-dialog.ranking-world #board-rows tr.podium>td,
  #board-dialog.ranking-world #board-rows tr.podium>td:first-child{padding:0;border:0;width:auto}
  #board-dialog.ranking-world #board-rows td:first-child{grid-column:1;grid-row:1/5;text-align:center;padding-top:4px;color:#c5b58d;font:16px TZCircuit,monospace}
  #board-dialog.ranking-world #board-rows td:nth-child(2){grid-column:2/-1;grid-row:1}
  #board-dialog.ranking-world #board-rows td:nth-child(3){grid-column:2/-1;grid-row:2;display:flex;gap:9px;align-items:baseline;font-size:20px}
  #board-dialog.ranking-world #board-rows td:nth-child(4){grid-column:2;grid-row:3}
  #board-dialog.ranking-world #board-rows td:nth-child(5){grid-column:3;grid-row:3}
  #board-dialog.ranking-world #board-rows td:nth-child(6){grid-column:4;grid-row:3}
  #board-dialog.ranking-world #board-rows td:last-child{grid-column:2/-1;grid-row:4;margin-top:4px}
  #board-dialog.ranking-world td:is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6))::before{content:attr(data-label);display:block;font:9px/1.7 Consolas,'Yu Gothic',sans-serif;letter-spacing:.05em;color:#9fafb3}
  #board-dialog.ranking-world .ghost-challenge{width:100%;justify-content:center}
  #board-dialog.ranking-world .board-actions{gap:7px;flex-wrap:wrap;margin-top:9px}.ranking-world .board-actions button{min-height:34px}
  #board-dialog.ranking-world .board-actions button{padding:7px 11px}
  #board-dialog.ranking-world>.table-scroll{scroll-padding-block:8px}
}
@media(max-width:380px){
  #board-dialog.ranking-world .ranking-archive-header{gap:8px;padding-right:30px}
  .ranking-archive-header img{width:80px;flex-shrink:0}
  .ranking-archive-header b{font-size:18px;white-space:nowrap}
  .ranking-archive-header small{font-size:5px;white-space:nowrap}
  #board-dialog.ranking-world h2{font-size:19px}
}
@media(max-height:740px) and (min-width:701px){
  #board-dialog.ranking-world{padding:16px 23px}
  #board-dialog.ranking-world .ranking-archive-header{padding-bottom:9px;margin-bottom:8px}.ranking-archive-header img{width:119px}.ranking-archive-header b{font-size:21px}
  #board-dialog.ranking-world .ranking-modes{margin-bottom:7px}#board-dialog.ranking-world .ranking-modes button{padding:8px 12px}
  #board-dialog.ranking-world h2{font-size:22px}#board-dialog.ranking-world #board-mine{padding-block:5px}
  #board-dialog.ranking-world #board-rows tr.podium>td{padding-block:7px}#board-dialog.ranking-world .podium-badge{height:43px;width:38px;font-size:22px}
}
@media(forced-colors:active){#board-dialog.ranking-world,#board-dialog.ranking-world th{background:Canvas;color:CanvasText;border-color:CanvasText}#board-dialog.ranking-world button[aria-pressed=true]{outline:2px solid Highlight}}

/* Personal archive: fixed heading / close controls with a scrollable ledger. */
#history-dialog.ranking-world{width:min(1000px,calc(100% - 36px));max-height:calc(100svh - 36px)}
#history-dialog.ranking-world[open]{display:flex;flex-direction:column;overflow:hidden}
#history-dialog #history-title{font:500 26px/1.4 'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.18em;color:#eaddbe;margin:0 -.18em 0 0;text-shadow:0 1px 2px #061018}
#history-dialog .history-overview{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 20px;margin:8px 0}
#history-dialog #history-mode{font:500 18px/1.6 'Yu Mincho',serif;color:#efe0bf;margin:0}
#history-dialog #history-summary{font:12px/1.7 Consolas,'Yu Gothic',sans-serif;color:#d0bc93;margin:0}
#history-dialog .history-guide{flex-shrink:0;color:#c0b393;font-size:11px;margin:0 0 14px;max-height:25svh;overflow:auto}
#history-dialog .history-guide summary{width:fit-content;cursor:pointer;padding:4px 0}
#history-dialog .history-guide p{font-size:11px;line-height:1.8;color:#bfc5bf;margin:6px 0;max-width:85ch}
#history-dialog>.table-scroll{min-height:0;overflow:auto;border-block:1px solid var(--rank-line);background:#09151fee;scrollbar-color:#a18a62 #0c1823;scroll-padding-top:42px}
#history-dialog>.table-scroll:has(#history-rows:empty){display:none}
#history-dialog th{position:sticky;top:0;z-index:1;background:#17232c;color:#caba98;font-size:10px;padding:12px;border-color:#c3ae793b}
#history-dialog td{padding:17px 12px;vertical-align:middle;border-color:#c3ae7929;color:#d8dedb;font-size:12px;line-height:1.7}
#history-dialog #history-rows tr:nth-child(even){background:#d8b86e07}
#history-dialog #history-rows tr[data-record=best]{background:linear-gradient(90deg,#bda36e22,#bda36e05);box-shadow:inset 2px 0 #d7b774}
#history-dialog .history-number{font-size:14px;color:#e1eaf0}
#history-dialog .history-stamp{display:inline-block;padding:4px 9px;border:1px solid #b6b8ac44;color:#b8c4c2;font:11px/1.6 Consolas,'Yu Gothic',sans-serif;white-space:nowrap}
#history-dialog [data-record=best] .history-stamp{color:#f2d99d;border-color:#cfb17699;background:#b790431b;box-shadow:inset 0 0 0 2px #d7b7740c}
#history-dialog [data-record=first] .history-stamp{color:#e6c1b0;border-color:#b77969;background:#7a3c3b22}
#history-dialog #history-empty{font:14px/1.8 'Yu Mincho',serif;text-align:center;color:#d2c6aa;padding:38px 18px;background:#0b1723d9;border:1px solid var(--rank-line);margin:5px 0}
#history-dialog .history-footer{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #d7b77429;margin-top:16px;padding-top:12px}
#history-dialog .history-footer>span{font:9px Consolas,monospace;color:#acaa99;letter-spacing:.12em}
#history-dialog .history-footer button{font-size:12px;min-height:38px;padding:8px 18px;color:#edd6a7;border:1px solid var(--rank-line);border-radius:1px;background:linear-gradient(135deg,#30312b,#16232d);gap:12px}
#history-dialog .history-footer button:hover{background:#47402f;border-color:#efd4a0}
#history-dialog kbd{color:inherit;border-color:#a9976b70;background:transparent}
#history-dialog :is(button,summary,.table-scroll):focus-visible{outline:2px solid #fff0c3;outline-offset:3px}
@media(max-width:700px){
  #history-dialog.ranking-world{width:calc(100% - 20px);max-width:calc(100% - 20px);padding:18px 16px;max-height:calc(100svh - 20px)}
  #history-dialog .ranking-archive-header{padding-right:35px;gap:10px;margin-bottom:10px}
  #history-dialog #history-title{font-size:21px;white-space:nowrap}
  #history-dialog.ranking-world .dialog-close{top:17px;right:13px;min-width:28px;min-height:30px;font-size:22px}
  #history-dialog #history-mode{font-size:15px}
  #history-dialog .history-overview{display:block;margin:4px 0 6px}
  #history-dialog #history-summary{font-size:11px;margin-top:4px}
  #history-dialog .history-guide{margin-bottom:9px}
  #history-dialog .history-footer{margin-top:10px;padding-top:10px}
}
@media(max-width:560px){
  #history-dialog>.table-scroll{background:transparent;scroll-padding-top:8px}
  #history-dialog #history-rows tr{margin:9px 0;padding:13px 12px;border-color:#d7b77445;background:#0b1823e8}
  #history-dialog #history-rows td{padding:0;border:0}
  #history-dialog #history-rows td:first-child{padding-bottom:10px;border-bottom:1px solid #d7b77433}
  #history-dialog #history-rows td::before{color:#b9ae94}
  #history-dialog .history-footer>span{font-size:8px;letter-spacing:.03em}
}
@media(max-width:380px){
  #history-dialog .ranking-archive-header{gap:8px;padding-right:30px}
  #history-dialog #history-title{font-size:18px}
  #history-dialog .history-number{font-size:13px}
}
@media(forced-colors:active){
  #history-dialog.ranking-world,#history-dialog th,#history-dialog #history-rows tr,#history-dialog #history-empty{background:Canvas;color:CanvasText;border-color:CanvasText}
  #history-dialog .history-stamp{color:CanvasText;border-color:CanvasText}
}

/* A readable ledger: equal mode tracks, quiet secondary tools, clear records. */
.ranking-world .board-dates{flex-shrink:0;margin:0 0 12px;padding:10px 12px;border:1px solid var(--rank-line);background:#08151dd6}
.ranking-world .board-date-controls,.ranking-world .board-history-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
.ranking-world .board-dates label{display:inline;margin:0;font-size:12px;color:#ddc795}
#board-dialog.ranking-world .board-dates :is(input,select){width:auto;min-width:0;min-height:36px;margin:0;padding:6px 10px;border:1px solid #bda1698c;border-radius:2px;background:#12212c;color:#f0e4c9;font:13px/1.4 Consolas,'Yu Gothic',sans-serif;color-scheme:dark}
#board-dialog.ranking-world .board-dates button{min-height:36px;padding:6px 12px;font-size:12px;border:1px solid #bda16966;border-radius:2px;background:#14232d;color:#e2cda2}
#board-dialog.ranking-world .board-dates button[type=submit]{border-color:#dfc38b;background:#b9944d26;color:#f9dfac}
.ranking-world #board-period{margin-left:auto;font-size:12px;letter-spacing:.06em;color:#a8cebf}
.ranking-world #board-period[data-period=past]{color:#eed098;border-left:2px solid #d5b271;padding-left:10px}
#board-dialog.ranking-world :is(#board-date-note,#board-history-status){font-size:11px;line-height:1.6;margin:6px 0 0;color:#bbbcae}
.ranking-world #board-history summary{cursor:pointer;width:fit-content;padding:6px 0 0;color:#ddc795;font-size:12px}
.ranking-world .board-history-controls{padding-top:8px}
#board-dialog.ranking-world #board-history-days{flex:1;max-width:380px}
#board-dialog.ranking-world .board-dates :is(input,select,button,summary):focus-visible{outline:2px solid #fff0c3;outline-offset:3px}
@media(max-width:700px){
  .ranking-world .board-dates{padding:10px}
  .ranking-world .board-date-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .ranking-world .board-date-controls label{grid-column:1;white-space:nowrap}
  #board-dialog.ranking-world #board-date{grid-column:2/6;width:100%}
  #board-dialog.ranking-world .board-date-controls button[type=submit]{grid-column:6;padding-inline:4px}
  .ranking-world #board-day-prev{grid-column:1/3}.ranking-world #board-day-next{grid-column:3/5}.ranking-world #board-today{grid-column:5/7}
  .ranking-world #board-period{grid-column:1/-1;font-size:11px}
  .ranking-world .board-history-controls label{flex-basis:100%}
  #board-dialog.ranking-world #board-history-days{flex-basis:100%;max-width:none}
  #board-dialog.ranking-world>.table-scroll{flex:0 0 300px;min-height:260px;max-height:60svh}
}
#board-dialog.ranking-world{width:min(1120px,calc(100% - 40px));padding:24px 28px;max-height:calc(100svh - 40px)}
#board-dialog.ranking-world .ranking-archive-header{padding-bottom:12px;margin-bottom:14px}
#board-dialog.ranking-world .ranking-modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
#board-dialog.ranking-world .ranking-modes:has(#board-mode-numpad-200:not([hidden])){grid-template-columns:repeat(6,minmax(0,1fr))}
#board-dialog.ranking-world .ranking-modes button{grid-column:auto;min-height:46px;padding:10px 8px;font-size:14px}
#board-dialog.ranking-world .board-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px 20px;flex-wrap:wrap;flex-shrink:0;margin:0 0 12px}
#board-dialog.ranking-world h2{font-size:26px;margin:0}
#board-dialog.ranking-world #board-meta{font:12px/1.7 Consolas,'Yu Gothic',sans-serif;color:#cfbc96;margin:0}
#board-dialog.ranking-world .board-footer{flex-shrink:0;display:grid;grid-template-columns:1fr auto;gap:8px 20px;padding-top:12px}
#board-dialog.ranking-world .ranking-guide{font-size:12px;margin:0;grid-column:1/-1;max-height:22svh;overflow:auto}
#board-dialog.ranking-world .ranking-guide summary{min-height:32px;padding:5px 0}
#board-dialog.ranking-world .ranking-guide p{font-size:13px;line-height:1.8}
#board-dialog.ranking-world .board-filters{gap:8px;margin:0 0 12px;align-items:center}
#board-dialog.ranking-world .board-filters button{font-size:12px;min-height:38px;padding:8px 13px}
#board-dialog.ranking-world #board-avatar-settings{margin-left:auto}
#board-dialog.ranking-world #board-status{font-size:13px;line-height:1.8;margin:0 0 12px}
#board-dialog.ranking-world #board-status:is([data-state=empty],[data-state=error],[data-state=loading]){padding:28px 22px;border-color:#bcaa7454;min-height:90px;display:flex;align-items:center}
#board-dialog.ranking-world #board-mine{font-size:12px;line-height:1.8;padding:4px 10px;margin:0;align-self:center}
#board-dialog.ranking-world table{font-size:14px}
#board-dialog.ranking-world th{font-size:12px;padding:12px 10px;color:#cfc4ab}
#board-dialog.ranking-world td{padding:14px 10px}
#board-dialog.ranking-world .ranking-player strong{font-size:15px}
#board-dialog.ranking-world .ranking-comment{font-size:12px}
#board-dialog.ranking-world td:nth-child(3){font-size:22px}
#board-dialog.ranking-world #board-rows td.ranking-stat{font-size:16px}
#board-dialog.ranking-world .ghost-challenge{min-height:40px;font-size:12px}
#board-dialog.ranking-world .board-actions{padding:0;margin:0;grid-column:2;grid-row:1}
#board-dialog.ranking-world .board-actions button{min-height:40px;font-size:13px}
#board-dialog.ranking-world>.keyboard-hints{margin:8px 0 0;padding:8px 0 0;gap:8px 16px;line-height:1.8;font-size:11px;flex-shrink:0}
#board-dialog.ranking-world .dialog-close{width:40px;height:40px}
/* Keep the competition and its records together; help stays in its disclosure. */
#board-dialog.ranking-world:has(.board-heading) .ranking-archive-header{display:none}
#board-dialog.ranking-world .board-heading{display:block;min-height:62px;padding:0 48px 12px 0;margin-bottom:12px;border-bottom:1px solid var(--rank-line)}
#board-dialog.ranking-world .board-heading #board-meta{margin-top:6px}
#board-dialog.ranking-world .ranking-modes{margin-bottom:12px}
#board-dialog.ranking-world .board-filters{flex-wrap:wrap}
#board-dialog.ranking-world .board-filters #board-status{margin:0 0 0 12px;font-size:12px}
#board-dialog.ranking-world .board-filters #board-status:is([data-state=empty],[data-state=error],[data-state=loading]){flex-basis:100%;margin-top:8px}
#board-dialog.ranking-world .board-footer{gap:6px 16px}
#board-dialog.ranking-world .ranking-guide .keyboard-hints{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:11px;padding-top:12px}
@media(max-height:760px) and (min-width:701px){
  #board-dialog.ranking-world{padding:18px 24px}
  #board-dialog.ranking-world .ranking-archive-header{padding-bottom:12px;margin-bottom:12px}
  #board-dialog.ranking-world .ranking-archive-header img{width:118px}
  #board-dialog.ranking-world .ranking-archive-header b{font-size:20px}
  #board-dialog.ranking-world .ranking-archive-header small{display:none}
  #board-dialog.ranking-world .ranking-modes{margin-bottom:12px}
  #board-dialog.ranking-world .ranking-modes button{min-height:42px}
  #board-dialog.ranking-world h2{font-size:23px}
  #board-dialog.ranking-world .board-heading{margin-bottom:10px}
  #board-dialog.ranking-world>.keyboard-hints{margin-top:10px;padding-top:8px}
}
@media(max-width:700px){
  #board-dialog.ranking-world{width:calc(100% - 20px);padding:16px;max-height:calc(100svh - 20px)}
  #board-dialog.ranking-world .ranking-archive-header{margin-bottom:14px;padding-bottom:14px}
  #board-dialog.ranking-world .ranking-modes,#board-dialog.ranking-world .ranking-modes:has(#board-mode-numpad-200:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #board-dialog.ranking-world .ranking-modes button:nth-child(n){grid-column:auto;font-size:13px;min-height:44px}
  #board-dialog.ranking-world h2{font-size:22px}
  #board-dialog.ranking-world #board-meta{font-size:11px}
  #board-dialog.ranking-world .board-footer{grid-template-columns:1fr;gap:10px}
  #board-dialog.ranking-world .board-actions{grid-column:1;grid-row:auto}
  #board-dialog.ranking-world .ranking-guide{max-height:none}
  #board-dialog.ranking-world .board-filters{flex-wrap:wrap;gap:6px}
  #board-dialog.ranking-world .board-filters button{flex:1 1 calc(50% - 6px);font-size:12px}
  #board-dialog.ranking-world .board-filters #board-status{flex-basis:100%;margin-top:2px}
  #board-dialog.ranking-world #board-avatar-settings{margin-left:0}
  #board-dialog.ranking-world #board-status:is([data-state=empty],[data-state=error],[data-state=loading]){padding:20px 16px;min-height:100px}
  #board-dialog.ranking-world #board-rows tr>td{padding:0}
  #board-dialog.ranking-world #board-rows td.ranking-stat{font-size:16px}
  #board-dialog.ranking-world td:is(:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6))::before{font-size:11px}
  #board-dialog.ranking-world .dialog-close{top:14px;right:13px}
  #board-dialog.ranking-world>.keyboard-hints{display:none}
}

/* Six public courses, with two extra numeric distances in the full edition. */
@media(min-width:651px){
 #board-dialog.ranking-world .ranking-modes:has(#board-mode-arrow-4){grid-template-columns:repeat(3,minmax(0,1fr))}
 #board-dialog.ranking-world .ranking-modes:has(#board-mode-arrow-4):has(#board-mode-numpad-200:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* hsk5.css */
/* Keep four concise mode choices and readable pinyin in the existing palette. */
.world-trial .arena .title-world .trial-mode-switch { grid-template-columns:repeat(2,minmax(0,1fr)); }
.hsk5-options { margin:0 0 12px; color:var(--title-muted,#c6c0b5); font-size:12px; line-height:1.7; }
.hsk5-options summary { cursor:pointer; min-height:28px; color:#e4c68c; }
.hsk5-options p { margin:6px 0; }
.hsk5 #prompt { font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif; }
.hsk5 #kana { font-family:Arial,"Microsoft YaHei",sans-serif; color:#f3dba8; letter-spacing:.03em; }
.hsk5-meaning { font-size:13px; color:#c6d6df; line-height:1.5; text-align:center; white-space:nowrap; overflow:auto; min-height:20px; margin:2px 0 6px; }
#hsk5-result-text { margin:16px 0; border-top:1px solid #a58a584d; padding-top:12px; }
#hsk5-result-text summary { min-height:32px; cursor:pointer; color:#e4c68c; }
#hsk5-result-rows { padding-left:24px; }
#hsk5-result-rows li { padding:10px 0; border-bottom:1px solid #a58a5833; }
#hsk5-result-rows strong,#hsk5-result-rows span { display:block; line-height:1.8; overflow-wrap:anywhere; }
#hsk5-result-rows strong { color:#f1ece3; font-size:18px; }
#hsk5-result-rows span[lang] { color:#f3dba8; }
@media(max-width:480px) { .hsk5-meaning { font-size:12px; } }

/* english.css */
/* Keep a readable type size; follow the active character instead of squeezing a
   complete English paragraph into the viewport. Match the existing input HUD. */
.english #prompt {font-family:Arial,"Yu Gothic UI",sans-serif;font-size:clamp(23px,2.2vw,32px)!important;line-height:1.55;white-space:pre;display:block;width:max-content;min-width:100%;text-align:center;letter-spacing:.015em;}
.english #prompt-window {overflow:hidden;scroll-behavior:auto;}
.english-long #prompt {text-align:left;}
.english .english-read {color:#8fa69e;}
.english .english-current {color:#ffe5a9;border-bottom:3px solid #e8c778;background:#cfab5e22;}
.english #kana {font-size:15px!important;line-height:1.7;overflow:auto;text-align:left;white-space:nowrap;scrollbar-width:thin;color:#c4d4d1;}
.english:not(.english-long) #kana {text-align:center;}
.english #romaji {white-space:pre;letter-spacing:.02em;text-transform:none;}
.english #next {min-width:.65em;}
.english #input-area {min-height:166px;}

#english-result-rows {padding-left:1.4em;}
#english-result-rows li {margin:0 0 16px;line-height:1.8;}
#english-result-rows strong,#english-result-rows span {display:block;}
#english-result-rows strong {font-family:Arial,"Yu Gothic UI",sans-serif;font-size:16px;color:#e9eee9;}
#english-result-rows span {font-size:14px;color:#bdcccb;}
@media(max-width:600px){.english #kana{font-size:13px!important}.english #prompt{font-size:23px!important}}

/* ui-i18n.css */
/* Shared language control; flags are SVG so they also render on Windows. */
.ui-language-switch:has(#ui-language-load-error){flex-wrap:wrap;max-width:280px}
#ui-language-load-error{flex-basis:100%;padding:4px;color:#ffdbaa;font:12px/1.5 sans-serif}
.topbar .ui-language-switch{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #bca36b66;border-radius:6px;background:#0b151bea;flex:0 0 auto;margin-left:12px}
.topbar .ui-language-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:5px 9px;border:1px solid transparent;border-radius:3px;background:transparent;color:#c2cbd0;font:600 12px/1.3 "Yu Gothic UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;letter-spacing:0;cursor:pointer}
.topbar .ui-language-switch button svg{display:block;width:24px;height:16px;box-shadow:0 0 0 1px #ffffff25;border-radius:1px;flex:none}
.topbar .ui-language-switch button[aria-pressed="true"]{background:#ddc59122;border-color:#d7b76f;color:#f5e5c0}
.topbar .ui-language-switch button:hover{background:#ddc59133;color:#fff}
.topbar .ui-language-switch button:focus-visible{outline:2px solid #fff3ce;outline-offset:3px}
html[lang="zh-Hans"]{--font-ui:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif}
html[lang="zh-Hans"] body,html[lang="zh-Hans"] button,html[lang="zh-Hans"] select,html[lang="zh-Hans"] input,html[lang="zh-Hans"] textarea{font-family:var(--font-ui)}
html[lang="zh-Hans"] .story-modal rt{display:none}
@media(max-width:760px){.topbar{flex-wrap:wrap}.topbar .ui-language-switch{margin-left:auto}.topbar .ui-language-switch button{min-height:36px;padding:5px 7px}.topbar .ui-language-switch button svg{width:21px;height:14px}}
@media(prefers-reduced-motion:reduce){.ui-language-switch *{transition:none!important}}

/* ranking-scroll.css */
/* Adopted 03: three hanging scrolls above a continuous ranking ledger.
   Scoped to network rankings; the personal completion archive is unchanged. */
#board-dialog.ranking-scroll{
  --scroll-text:'Yu Mincho','Hiragino Mincho ProN','Noto Serif JP',serif;
  --scroll-number:TZCircuit,monospace;--rank-gold:#e6ca8d;
  width:min(1360px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100svh - 32px);
  padding:24px 40px;color:#ece4d3;font:15px/1.6 var(--scroll-text);
  background:#0b1823 url('assets/ranking/ranking-silk.webp?v=3aa320ace5756270d682916d97e07dfe158d7af71a023c54d48b6df9219b6212') center top/cover no-repeat;
  border:1px solid #8c7951;border-radius:2px;overflow:auto;scroll-padding-top:calc(var(--ranking-navigation-height,180px) + 12px);
}
#board-dialog.ranking-scroll[open]{display:block}
#board-dialog.ranking-scroll .ranking-navigation{position:sticky;top:-24px;z-index:6;margin:-24px -40px 12px;padding:24px 40px 0;background:#0b1823 url('assets/ranking/ranking-silk.webp?v=3aa320ace5756270d682916d97e07dfe158d7af71a023c54d48b6df9219b6212') center top/cover;border-bottom:1px solid #8c7951;box-shadow:0 8px 16px #03090d66}
#board-dialog.ranking-scroll .ranking-navigation :is(.dialog-close,#board-close){position:absolute;right:16px;top:14px;width:44px;height:44px;min-height:44px;background:#0c1a25;color:#f1e5cb;border:1px solid #8c7951}
#board-dialog.ranking-scroll:lang(zh-Hans){--scroll-text:'Microsoft YaHei','PingFang SC',sans-serif}
#board-dialog.ranking-scroll :is(button,input,select,summary,p,small,kbd){font-family:var(--scroll-text);text-shadow:none}
#board-dialog.ranking-scroll :is(button,input,select){border-radius:2px}
#board-dialog.ranking-world.ranking-scroll .ranking-archive-header{
  display:flex;gap:24px;margin:0 0 12px;padding:0 44px 10px 0;border:0;
}
#board-dialog.ranking-scroll .ranking-archive-header::before{display:none}
#board-dialog.ranking-scroll .ranking-archive-header>span{margin:0;padding:0;border:0;text-align:left}
#board-dialog.ranking-scroll .ranking-archive-header b{font:500 34px/1.4 var(--scroll-text);letter-spacing:.14em;color:#ead7ae;text-shadow:none}
#board-dialog.ranking-scroll .ranking-archive-header small{display:none}
#board-dialog.ranking-scroll .ranking-archive-header i{transform:none;font-family:var(--scroll-text)}
/* The active tab and date identify the board; the full title stays accessible. */
#board-dialog.ranking-scroll .board-heading{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);border:0}
#board-dialog.ranking-scroll .ranking-modes{display:flex;flex-wrap:wrap;gap:0;margin:0 0 12px;border-bottom:1px solid var(--rank-line)}
#board-dialog.ranking-scroll .ranking-modes button{flex:1 1 15%;min-width:115px;min-height:44px;padding:9px 6px;border:0;border-bottom:3px solid transparent;background:transparent;box-shadow:none;color:#e0d7c5;font-size:16px}
#board-dialog.ranking-scroll .ranking-modes button[aria-pressed=true]{background:#d4b7750b;color:#f8d793;border-bottom-color:#e4c27b;box-shadow:none}
#board-dialog.ranking-scroll .ranking-modes kbd{display:none}
/* Eight trial courses form two balanced rows; full edition adds two distances. */
#board-dialog.ranking-scroll .ranking-modes:has(#board-mode-english-words){display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#board-dialog.ranking-scroll .ranking-modes:has(#board-mode-english-words):has(#board-mode-numpad-200:not([hidden])){grid-template-columns:repeat(5,minmax(0,1fr))}
#board-dialog.ranking-scroll .board-dates{padding:0 0 10px;margin:0 0 9px;border:0;border-bottom:1px solid var(--rank-line);background:transparent}
#board-dialog.ranking-scroll .board-date-controls{gap:8px}
#board-dialog.ranking-scroll .board-dates :is(button,input,select){min-height:34px;background:#0c1a25;color:#e8d9b9;font-size:13px}
#board-dialog.ranking-scroll .board-dates input{font-family:var(--scroll-number);font-size:12px}
#board-dialog.ranking-scroll #board-date-note{display:block}
#board-dialog.ranking-scroll .board-dates:has([data-period=past]) #board-date-note{display:block;color:#e3c691}
#board-dialog.ranking-scroll #board-history summary{padding-top:7px;font-size:12px}
#board-dialog.ranking-scroll .board-filters{margin:0 0 8px;gap:8px}
#board-dialog.ranking-scroll .board-filters button{background:transparent;min-height:34px;padding:5px 10px;color:#c8baa1;font-size:12px}
#board-dialog.ranking-scroll .board-filters button[aria-pressed=true]{border-color:#e2c78b;color:#f4dbab;background:#d4b77510}
#board-dialog.ranking-scroll #board-status{font:12px/1.7 var(--scroll-text);color:#c9bca4}
#board-dialog.ranking-scroll>.table-scroll{border:0;background:#0b1823d9;overflow:visible;min-height:0;max-height:none;flex:none;scroll-padding-block:8px}
#board-dialog.ranking-scroll table{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;border:0;white-space:normal}
#board-dialog.ranking-scroll tbody{display:contents}
#board-dialog.ranking-scroll thead{display:block;grid-column:1/-1;order:1;position:static;clip-path:none;width:auto;height:auto;overflow:visible}
#board-dialog.ranking-scroll :is(thead tr,#board-rows tr){display:grid;grid-column:1/-1;grid-template-columns:60px minmax(150px,1fr) 155px 85px 85px 65px 132px;gap:12px;align-items:center;margin:0;padding:13px 8px;border:0;border-bottom:1px solid #d4b77547;background:transparent;box-shadow:none}
#board-dialog.ranking-scroll #board-rows tr{order:2}
#board-dialog.ranking-scroll th{position:static;padding:0;border:0;font:14px/1.6 var(--scroll-text);background:transparent;color:#e2d2b2}
#board-dialog.ranking-scroll #board-rows tr>td,#board-dialog.ranking-scroll #board-rows tr.podium>td{display:block;grid-column:auto;grid-row:auto;min-width:0;width:auto;max-width:none;padding:0;border:0;background:transparent;font-size:14px}
#board-dialog.ranking-scroll #board-rows tr>td::before{display:none}
#board-dialog.ranking-scroll #board-rows tr>td:first-child{text-align:center;font:22px/1.4 var(--scroll-number);color:#e5d6b3}
#board-dialog.ranking-scroll #board-rows tr>td:nth-child(3){font:21px/1.4 var(--scroll-number);white-space:nowrap}
#board-dialog.ranking-scroll #board-rows td.ranking-stat{font:20px/1.4 var(--scroll-number);color:#e8e0d1}
#board-dialog.ranking-scroll .ranking-player{min-width:0;max-width:none}
#board-dialog.ranking-scroll .ranking-player strong{font:500 17px/1.5 var(--scroll-text);color:#eee1c8}
#board-dialog.ranking-scroll .ranking-avatar{flex-basis:44px;width:44px;height:44px}
#board-dialog.ranking-scroll .ranking-comment{font:12px/1.5 var(--scroll-text);color:#b7b2a8}
#board-dialog.ranking-scroll .ghost-challenge{min-height:36px;padding:5px 10px;background:#0b1823;color:#ebd4a4;font:13px/1.5 var(--scroll-text);box-shadow:none}
#board-dialog.ranking-scroll #board-rows tr.mine{background:#e0bc7020;box-shadow:inset 2px 0 #d6b16d}
#board-dialog.ranking-scroll #board-rows tr:focus-within{outline:2px solid #f4deb1;outline-offset:-2px}
#board-dialog.ranking-scroll .podium-badge{display:block;width:auto;height:auto;padding:0;clip-path:none;border:0;background:none;box-shadow:none;color:inherit;font:inherit;line-height:1.45;text-shadow:none}
#board-dialog.ranking-scroll .podium-badge::before{display:none}
/* Keep original row nodes and their action listeners. Only their layout changes. */
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']){
  --scroll-art:url('assets/ranking/scroll-gold.webp?v=7b3c9618020367b509c2d551b5908545e0e4df1019aad82fd54cd3cf17f4b112');position:relative;isolation:isolate;
  grid-column:auto;grid-row:1;order:0;justify-self:center;align-self:start;
  width:100%;max-width:400px;aspect-ratio:auto;min-height:570px;
  /* Font ascenders and each cell's contents define a real row height. Fixed
     28px tracks previously let a 48px rank glyph overlap the portrait. */
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto minmax(min-content,1fr) auto auto auto;
  gap:12px 5px;padding:110px min(84px,21%) 60px;margin:0 0 18px;border:0;box-shadow:none;background:transparent;
  color:#302b25;text-align:center;
}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--scroll-art) center/100% 100% no-repeat;pointer-events:none}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position][data-rank='2']{--scroll-art:url('assets/ranking/scroll-silver.webp?v=ce0d848e132bee6015243a6af52cd6bc32c10847d63826337489c1969ea330ed')}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position][data-rank='3']{--scroll-art:url('assets/ranking/scroll-bronze.webp?v=a3339e43fdb493725e0ded621b4c2dcca1db2e0cfe9aaf061066e0b6b36055c5')}
#board-dialog.ranking-scroll table[data-scroll-count='3'] #board-rows tr[data-scroll-position='1']{grid-column:2}
#board-dialog.ranking-scroll table[data-scroll-count='3'] #board-rows tr[data-scroll-position='2']{grid-column:1;transform:translateY(10px)}
#board-dialog.ranking-scroll table[data-scroll-count='3'] #board-rows tr[data-scroll-position='3']{grid-column:3;transform:translateY(10px)}
#board-dialog.ranking-scroll table[data-scroll-count='2']{grid-template-columns:repeat(2,minmax(0,1fr))}
#board-dialog.ranking-scroll table[data-scroll-count='1'] #board-rows tr[data-scroll-position='1']{grid-column:1/-1}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td{padding:0;border:0;grid-column:1/-1;grid-row:auto;font-size:16px;color:#302b25}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td:first-child{width:auto;font:500 34px/1 var(--scroll-number);color:#79602d}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-identity{flex-direction:column;gap:3px}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-avatar{width:126px;height:126px;flex-basis:126px;border:1px solid #947941;box-shadow:none}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-player-copy{max-width:100%;width:100%;min-height:50px;line-height:1.2}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-player strong{font:500 23px/1.4 var(--scroll-text);color:#332c21;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-player-copy>span:not(.ranking-comment){font-size:11px}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-comment{margin:1px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/1.5 var(--scroll-text);color:#5b4b35}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td:nth-child(3){font:31px/1.2 var(--scroll-number);color:#122333}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td.ranking-stat{grid-column:auto;grid-row:4;font:19px/1.3 var(--scroll-number);color:#302b25}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td.ranking-stat::before{display:block;content:attr(data-label);font:11px/1.5 var(--scroll-text);color:#564833}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ghost-challenge{width:100%;padding:5px 2px;border:1px solid #79684c;background:transparent;color:#2f302b;font-size:14px}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position='1'][data-rank] .ghost-challenge{background:#102332;color:#f6e5be}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ghost-challenge:hover:not(:disabled){background:#d1b67c;color:#14202b}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']):focus-within{outline:0}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) :focus-visible{outline:2px solid #122a40;outline-offset:3px}
#board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .forge-number{color:#132332}
@supports(-webkit-mask-image:linear-gradient(#fff,#fff)){
 #board-dialog.ranking-scroll .forge-inner::after{background:currentColor;filter:none;text-shadow:none}
}
#board-dialog.ranking-scroll .board-footer{border-top:1px solid var(--rank-line);margin-top:12px;padding-top:12px;gap:10px}
#board-dialog.ranking-scroll .board-actions button{background:#0d1c28;font-family:var(--scroll-text)}
#board-dialog.ranking-scroll .board-actions span{font-family:var(--scroll-number);font-size:12px}
#board-dialog.ranking-scroll .ranking-guide :is(summary,p){font-family:var(--scroll-text)}
@media(max-width:1100px){
 #board-dialog.ranking-scroll{padding:18px 22px}
 #board-dialog.ranking-scroll .ranking-navigation{top:-18px;margin:-18px -22px 12px;padding:18px 22px 0}
 #board-dialog.ranking-scroll table{gap:0 8px}
 #board-dialog.ranking-scroll :is(thead tr,#board-rows tr){grid-template-columns:42px minmax(130px,1fr) 140px 70px 70px 48px 110px;gap:8px}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']){min-height:460px;row-gap:12px;column-gap:4px;padding-top:90px;padding-bottom:55px}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ranking-avatar{width:72px;height:72px;flex-basis:72px}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td:nth-child(3){font-size:clamp(20px,2.5vw,23px)}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0'])>td.ranking-stat{font-size:16px}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']) .ghost-challenge{font-size:12px;min-height:30px}
 #board-dialog.ranking-scroll .ranking-modes button{font-size:14px;min-width:102px}
}
@media(max-width:800px){
 #board-dialog.ranking-scroll{padding:16px;width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100svh - 16px)}
 #board-dialog.ranking-scroll .ranking-navigation{top:-16px;margin:-16px -16px 12px;padding:16px 16px 0}
 #board-dialog.ranking-scroll .ranking-archive-header{gap:12px;padding-right:32px}
 #board-dialog.ranking-scroll .ranking-archive-header b{font-size:18px;letter-spacing:.06em;white-space:nowrap}
 #board-dialog.ranking-scroll .ranking-archive-header i{display:none}
 #board-dialog.ranking-scroll .ranking-modes button{flex-basis:30%;min-width:0;font-size:13px}
 #board-dialog.ranking-scroll table,#board-dialog.ranking-scroll table[data-scroll-count]{grid-template-columns:1fr}
 #board-dialog.ranking-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #board-dialog.ranking-scroll table[data-scroll-count] #board-rows tr[data-scroll-position]:not([data-scroll-position='0']){grid-column:1;grid-row:auto;transform:none;max-width:330px;padding-inline:min(69px,21%)}
 #board-dialog.ranking-scroll #board-rows tr:not([data-scroll-position]),#board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']{grid-template-columns:38px repeat(3,minmax(0,1fr));gap:8px 10px;padding:14px 6px}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td:first-child{grid-column:1;grid-row:1/5}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td:nth-child(2){grid-column:2/-1;grid-row:1}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td:nth-child(3){grid-column:2/-1;grid-row:2}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td.ranking-stat{grid-column:auto;grid-row:3}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td:nth-child(4){grid-column:2}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td:last-child{grid-column:2/-1;grid-row:4}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position='0']>td.ranking-stat::before{display:block;content:attr(data-label);font:11px/1.5 var(--scroll-text);color:#cabd9f}
 #board-dialog.ranking-scroll .board-footer{grid-template-columns:1fr}
 #board-dialog.ranking-scroll .board-actions{grid-column:1;grid-row:auto}
}
/* On narrow/short screens keep course switching reachable without covering
   most of the records. The native horizontal strip also accepts touch/Tab. */
@media(max-width:700px),(max-height:540px){
 #board-dialog.ranking-scroll .ranking-navigation .ranking-modes,
 #board-dialog.ranking-scroll .ranking-navigation .ranking-modes:has(#board-mode-english-words){display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;margin-bottom:0;padding-bottom:4px}
 #board-dialog.ranking-scroll .ranking-navigation .ranking-modes button{flex:0 0 auto;min-width:110px;padding-inline:12px;white-space:nowrap}
 #board-dialog.ranking-scroll .ranking-navigation .ranking-archive-header{margin-bottom:6px}
}
@media(max-width:380px){
 #board-dialog.ranking-scroll .ranking-archive-header{gap:8px}
 #board-dialog.ranking-scroll .ranking-archive-header b{font-size:16px;letter-spacing:.04em}
 #board-dialog.ranking-scroll .board-date-controls label{grid-column:1/-1}
 #board-dialog.ranking-scroll #board-date{grid-column:1/5}
 #board-dialog.ranking-scroll .board-date-controls button[type=submit]{grid-column:5/7;white-space:nowrap}
}
@media(forced-colors:active){
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]:not([data-scroll-position='0']){background:Canvas;border:1px solid CanvasText}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position]::before{display:none}
 #board-dialog.ranking-scroll #board-rows tr[data-scroll-position] :is(td,strong,span,button){color:CanvasText}
}

/* title-calligraphy.css */
/* Approved calligraphy 02 / Hiryu. Keep the text accessible and the image sharp. */
.title-calligraphy{position:relative}
.title-calligraphy .title-calligraphy-text{display:block}
.title-calligraphy .title-calligraphy-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:left center;filter:invert(1) sepia(.22);mix-blend-mode:screen;pointer-events:none;user-select:none}
.title-calligraphy.is-ready .title-calligraphy-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Section titles: warm ivory ink, no glow; independent of metric typography. */
.title-calligraphy.section-calligraphy{display:block;width:min(258px,100%);height:auto;min-height:0;aspect-ratio:3/1;padding:0;letter-spacing:0;text-shadow:none}
.section-calligraphy .title-calligraphy-image{filter:invert(1) sepia(.55) saturate(.65) brightness(.94)}
#board-dialog.ranking-scroll .ranking-archive-header{isolation:auto}
#board-dialog.ranking-scroll .ranking-archive-header .section-calligraphy{width:228px;max-width:100%;margin:0;flex-shrink:0}
#board-dialog.ranking-scroll .ranking-archive-header .section-calligraphy>.title-calligraphy-image{width:100%;height:100%;max-width:none;padding:0}
.collection-heading h2.section-calligraphy{width:min(258px,100%);margin:4px 0 8px}
.collection-heading:has(.section-calligraphy)>div:first-of-type{min-width:0;flex:1}
.mobile-world .section-heading h1.section-calligraphy{width:min(258px,100%);margin:8px 0 12px}
@media(max-width:640px){
  #board-dialog.ranking-scroll .ranking-archive-header>span{min-width:0;flex:1}
  #board-dialog.ranking-scroll .ranking-archive-header .section-calligraphy{width:min(174px,100%)}
  .collection-heading h2.section-calligraphy{width:min(222px,100%)}
}
@media(max-width:380px){
  #board-dialog.ranking-scroll .ranking-archive-header .section-calligraphy{width:min(144px,100%)}
}
@media(max-width:420px){
  .collection-dialog:not(.is-detail) .collection-heading:has(.section-calligraphy){display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .collection-dialog:not(.is-detail) .collection-heading:has(.section-calligraphy)>.collection-count{grid-column:1/-1;grid-row:2;margin-left:0}
  .collection-dialog:not(.is-detail) .collection-heading:has(.section-calligraphy)>.collection-close{grid-column:2;grid-row:1}
}
.app .title-world .title-story.title-calligraphy{width:min(330px,100%);height:auto;aspect-ratio:3/2;margin:12px 0 10px;letter-spacing:0}
#lobby.title-launch h1.title-calligraphy{width:min(280px,100%);height:auto;min-height:0;aspect-ratio:3/2;margin:0 0 12px;letter-spacing:0}
#lobby.title-launch h1.title-calligraphy br{display:block}
#lobby.title-launch h1.title-calligraphy em{display:inline;margin-left:0}
.mobile-world .hero-copy h1.title-calligraphy{width:min(280px,100%);height:auto;aspect-ratio:3/2;margin:7px 0 9px;letter-spacing:0}
.mobile-world .mobile-hero{height:clamp(590px,calc(100svh - 144px),760px)}
.app .title-world .title-memory h2.collection-calligraphy,
#lobby.title-launch .title-memory h2.collection-calligraphy,
.mobile-world .collection-feature h2.collection-calligraphy{width:min(270px,100%);height:auto;min-height:0;aspect-ratio:2/1;margin:12px 0 14px;padding:0;letter-spacing:0;text-shadow:none}
@media(min-width:701px) and (max-height:800px){
  .app .title-world .title-story.title-calligraphy{width:min(255px,100%);margin:8px 0}
  #lobby.title-launch h1.title-calligraphy{width:min(230px,100%);margin-bottom:10px}
}
@media(max-width:700px){
  .app .title-world .title-story.title-calligraphy{width:min(290px,100%)}
  #lobby.title-launch h1.title-calligraphy{width:min(280px,100%)}
}
/* Keep the start button within a short PC viewport without shrinking the artwork. */
@media(min-width:900px) and (max-height:800px){
  #lobby.title-launch .mode-overview{display:grid;grid-template-columns:46% minmax(0,1fr);column-gap:18px;align-items:center}
  #lobby.title-launch .mode-overview>.eyebrow{grid-column:1/-1}
  #lobby.title-launch h1.title-calligraphy{grid-column:1;grid-row:2/4;width:100%;margin:0}
  #lobby.title-launch .mode-overview>.intro{grid-column:2;grid-row:2;min-height:0;margin:0 0 8px;align-self:end;font-size:13px}
  #lobby.title-launch .mode-overview>.course-summary{grid-column:2;grid-row:3;gap:6px 12px;align-self:start}
  #lobby.title-launch .mode-overview>.course-summary>span{font-size:12px;gap:5px}
  #lobby.title-launch .mode-overview>.course-summary>span+span{padding-left:0;border-left:0}
}
@media(max-width:360px){.mobile-world .hero-copy h1.title-calligraphy{width:min(260px,100%)}}
/* Result titles and retry actions use the same authored brushwork as the lobby.
   Only the decorative lettering is rasterized; the original text names remain. */
:is(#result-dialog,.world-trial #result .result-world) .result-archive-label{margin:0;padding:0;text-align:left;text-shadow:none;min-width:0;flex:1}
:is(#result-dialog,.world-trial #result .result-world) .result-heading-calligraphy{position:relative;display:block;width:210px;max-width:100%;height:64px;margin:0;padding:0;letter-spacing:0;font-size:26px;line-height:64px}
:is(#result-dialog,.world-trial #result .result-world) .result-archive-header .title-calligraphy-image{position:absolute;inset:0;width:100%;height:100%;max-width:none;padding:0;filter:invert(1) sepia(.4) saturate(.6);mix-blend-mode:screen}
:is(#result-dialog,.world-trial #result .result-world) :is(#retry,#retry-button){display:flex;align-items:center;justify-content:center;gap:12px;width:248px;max-width:100%;flex:0 1 248px;min-height:58px;padding:9px 16px;background:linear-gradient(180deg,#e2ceaa,#d2b987);border:1px solid #e6cda0;box-shadow:inset 0 1px #fff7df55;color:#30291e}
:is(#result-dialog,.world-trial #result .result-world) :is(#retry,#retry-button):hover:not(:disabled){background:linear-gradient(180deg,#ecdbbb,#dfc79b);border-color:#f1dfbb}
:is(#result-dialog,.world-trial #result .result-world) .result-retry-calligraphy{display:block;position:relative;width:114px;max-width:100%;height:38px;flex:0 0 114px;padding:0;margin:0;text-align:center;line-height:38px;font-size:19px;letter-spacing:0}
:is(#result-dialog,.world-trial #result .result-world) .result-retry-calligraphy .title-calligraphy-image{filter:none;mix-blend-mode:multiply;object-position:center;width:100%;height:100%;padding:0}
:is(#result-dialog,.world-trial #result .result-world) :is(#retry,#retry-button)>:is(kbd,span:not(.result-retry-calligraphy)){flex:0 0 auto;margin:0;color:#594b34}
/* Keep the course/completion context for screen readers without repeating it
   above the time. Story success/failure titles in the full edition stay visible. */
.world-trial #result .result-card #result-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(min-width:741px) and (max-height:800px){
 :is(#result-dialog,.world-trial #result .result-world) .result-heading-calligraphy{width:180px;height:54px;line-height:54px}
}
@media(max-width:740px){
 :is(#result-dialog,.world-trial #result .result-world) .result-heading-calligraphy{width:180px;height:54px;line-height:54px}
 :is(#result-dialog,.world-trial #result .result-world) :is(#retry,#retry-button){padding:9px 14px}
}
@media(forced-colors:active){
  .title-calligraphy .title-calligraphy-image{display:none}
  .title-calligraphy.is-ready .title-calligraphy-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}
}

/* start-button-type.css */
/* Approved start-button concept 02: 雅. Keep hints and game metrics in their existing typefaces. */
@font-face {
  font-family: "Start Miyabi JP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/start-miyabi-ja-v1.woff2?v=d20a6b6352aff1605892afbb401ec45070c4b46de995c3691a8c5012637c1f7c") format("woff2");
}
@font-face {
  font-family: "Start Miyabi SC";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/start-miyabi-zh-v1.woff2?v=ae441681c37e92d3f3a1281f2e85495aea0fa512fa3dcf780a936bed93ee1fd0") format("woff2");
}
:root { --start-label-font: "Yu Mincho", "Hiragino Mincho ProN", serif; }
html[data-ui-locale="ja"] { --start-label-font: "Start Miyabi JP", "Yu Mincho", "Hiragino Mincho ProN", serif; }
html[data-ui-locale="zh-CN"] { --start-label-font: "Start Miyabi SC", "Songti SC", SimSun, serif; }
#lobby #start #start-label,
.title-world .home-settings #start-button #deploy-label {
  font-family: var(--start-label-font);
  font-size: 24px;
  font-weight: 800;
  font-synthesis: none;
  line-height: 1.5;
  letter-spacing: .025em;
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  min-width: 0;
  text-shadow: none;
}
#lobby.title-launch #start { min-height: 76px; }
.title-world .home-settings #start-button > span:nth-child(2) { min-width: 0; }
.title-world .home-settings #start-button #deploy-label { display: block; }
@media (max-width: 1100px), (max-height: 800px) {
  #lobby #start #start-label,
  .title-world .home-settings #start-button #deploy-label { font-size: 22px; }
  #lobby.title-launch #start { min-height: 64px; }
  #lobby.title-launch #start kbd { display: none; }
}
@media (max-width: 700px) {
  #lobby #start #start-label,
  .title-world .home-settings #start-button #deploy-label { font-size: 22px; }
}
@media (max-width: 360px) {
  #lobby #start #start-label,
  .title-world .home-settings #start-button #deploy-label { font-size: 20px; }
}
