:root{color-scheme:light;--bg:#f7f8fa;--surface:#fff;--text:#262d32;--muted:#81898d;--line:#e4e8e9;--green:#236c59;--green-soft:#e7f2ec;--covered:#d9e8e0;--covered-hover:#c5dfd1;--tile-open:#f0f3f2;--tile-border:#c9ddd0;--red:#c16453;--red-soft:#fae8e2;--shadow:0 8px 30px #283e3210}
*{box-sizing:border-box;letter-spacing:0}body{margin:0;background:var(--bg);color:var(--text);font:14px -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button,a,input{-webkit-touch-callout:none}button{border:0;background:none}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #609eec;outline-offset:3px}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle;pointer-events:none}[hidden]{display:none!important}.app-shell{width:min(1120px,calc(100% - 96px));margin:auto}.masthead{height:116px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.brand h1{font-size:25px;font-weight:650;margin:0 0 3px}.brand span{font-size:9px;font-weight:650;color:var(--muted)}.brand img{display:block}.header-actions{display:flex;align-items:center;gap:10px}.icon-button{width:38px;height:38px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover:not(:disabled){background:var(--line)}.header-divider{height:20px;width:1px;background:var(--line);margin:0 10px}.edition{font-size:11px;color:var(--muted)}main{padding:40px 0 48px}.game-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:36px}.eyebrow{display:flex;align-items:center;gap:8px;color:var(--green);font-size:10px;font-weight:650}.tiny-square{width:5px;height:5px;background:var(--green)}.heading-copy h2{font-size:23px;font-weight:550;margin:10px 0 0}.difficulty{display:flex;align-items:stretch;background:#ecefef;padding:4px;border-radius:8px;gap:3px}.difficulty button{min-width:84px;padding:8px 16px;border-radius:5px;display:flex;gap:4px;flex-direction:column;align-items:center;font-size:12px;color:var(--muted);white-space:nowrap}.difficulty button span{font-size:9px;font-variant-numeric:tabular-nums}.difficulty button[aria-pressed=true]{background:var(--surface);color:var(--green);box-shadow:0 1px 5px #0000000c;font-weight:650}.difficulty button:hover{color:var(--green)}.difficulty .custom-level{min-width:43px;justify-content:center;padding:8px 12px}.difficulty .custom-level svg{width:17px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:64px;align-items:start}.play-area{min-width:0}.game-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding:0 2px}.counter{display:flex;align-items:center;gap:11px;min-width:126px}.counter-symbol{width:42px;height:46px;border-radius:6px;display:grid;place-items:center}.flag-symbol{background:var(--red-soft);color:var(--red)}.time-symbol{background:#e9edf4;color:#617890}.counter-label{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.counter strong{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px;font-weight:550;font-variant-numeric:tabular-nums;line-height:1.1}.time-counter{justify-content:flex-end}.restart-button{background:var(--surface);border:1px solid var(--line);width:40px;height:40px;border-radius:7px;display:grid;place-items:center;box-shadow:0 2px 3px #00000003}.restart-button:hover{border-color:var(--green);color:var(--green)}.restart-button:hover svg{transform:rotate(-25deg)}.restart-button svg{transition:transform .2s}.board-stage{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden;padding:24px 16px}.board-scroll{overflow:auto;max-width:100%;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--tile-border) transparent;padding:3px}.board{--cell:44px;--gap:4px;display:grid;grid-template-columns:repeat(var(--cols),var(--cell));gap:var(--gap);width:max-content;margin:0 auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}.board-row{display:contents}.cell{width:var(--cell);height:var(--cell);display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;background:var(--covered);box-shadow:inset 0 -2px 0 var(--tile-border),inset 0 1px 0 #ffffff55;color:var(--green);font-size:20px;font-family:ui-rounded,"SF Pro Rounded",-apple-system,sans-serif;font-weight:700;line-height:1;transition:background .12s,transform .12s;touch-action:manipulation}.cell:hover:not(.open):not(.ended){background:var(--covered-hover);transform:translateY(-1px)}.cell.open{background:var(--tile-open);box-shadow:none}.cell.open.empty{background:var(--tile-open)}.cell svg{width:19px;height:19px}.cell.flagged{color:var(--green)}.cell.flagged svg{fill:var(--green);stroke-width:1.6}.cell[data-number="1"]{color:#4c84bd}.cell[data-number="2"]{color:#38826a}.cell[data-number="3"]{color:#ca705f}.cell[data-number="4"]{color:#8a72b2}.cell[data-number="5"]{color:#a65b78}.cell[data-number="6"]{color:#3e8c99}.cell[data-number="7"]{color:#6b6363}.cell[data-number="8"]{color:#8b8550}.cell.mine{background:var(--red-soft);color:var(--red);box-shadow:none}.cell.exploded{background:#c76d5a;color:white}.cell.wrong{color:var(--red);background:var(--red-soft)}.board-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;font-size:11px}.status{display:flex;align-items:center;gap:7px;color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:50%;background:#adb5b2}.status[data-state=playing],.status[data-state=won]{color:var(--green)}.status[data-state=playing] .status-dot,.status[data-state=won] .status-dot{background:var(--green)}.status[data-state=lost]{color:var(--red)}.status[data-state=lost] .status-dot{background:var(--red)}.board-spec{color:var(--muted);font-variant-numeric:tabular-nums}.play-controls{display:flex;align-items:center;gap:24px;margin-top:28px}.mode-switch{display:flex;gap:3px;background:#e9edec;border-radius:6px;padding:3px;flex-shrink:0}.mode-switch button{width:35px;height:32px;display:grid;place-items:center;border-radius:4px;color:var(--muted)}.mode-switch button[aria-pressed=true]{background:var(--surface);color:var(--green);box-shadow:0 1px 3px #00000008}.mode-switch svg{width:17px;height:17px}.safe-progress{flex:1;max-width:330px;margin-left:auto}.progress-label{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-bottom:8px;font-variant-numeric:tabular-nums}.progress-track{height:4px;background:var(--line);border-radius:2px;overflow:hidden}#progress-fill{width:0;height:100%;background:var(--green);transition:width .25s}.pause-button{border:1px solid var(--line);flex-shrink:0}.pause-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--surface);z-index:2}.pause-art{width:56px;height:56px;display:grid;place-items:center;border-radius:8px;background:var(--green-soft);color:var(--green)}.pause-art svg{width:24px;height:24px}.pause-overlay h3{font-size:22px;font-weight:550;margin:20px 0 26px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;padding:11px 18px;font-size:12px;font-weight:550;white-space:nowrap}.primary-button{background:var(--green);color:#fff}.primary-button:hover{filter:brightness(1.1)}.primary-button svg{width:15px;height:15px}.secondary-button{background:var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.section-title h3{font-size:13px;font-weight:600;margin:0}.section-title>svg{width:17px;height:17px;color:#a7aa91}.subtle{color:var(--muted);font-size:10px}.stats-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.best-row{display:flex;align-items:center;padding:14px 0;gap:12px}.level-mark{height:30px;width:30px;display:flex;align-items:center;justify-content:center;gap:2px;border-radius:5px;background:var(--green-soft)}.level-mark i{display:block;width:3px;height:10px;background:var(--green);border-radius:1px}.best-row:nth-child(2) .level-mark{background:#edf0f6}.best-row:nth-child(2) .level-mark i{background:#7b8bad}.best-row:nth-child(3) .level-mark{background:var(--red-soft)}.best-row:nth-child(3) .level-mark i{background:var(--red)}.best-name{font-size:12px}.best-name span{display:block;color:var(--muted);font-size:9px;margin-top:4px}.best-time{margin-left:auto;font:14px ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;color:var(--muted)}.best-time.has-best{color:var(--green)}.totals{display:flex;justify-content:space-between;padding-top:16px}.totals>div{display:flex;flex-direction:column;gap:8px;min-width:42px}.totals strong{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums}.totals strong span{font-size:13px}.totals>div>span{color:var(--muted);font-size:10px}.recent-section{margin-bottom:0;border-bottom:0;padding-bottom:0}.history-empty{padding:20px 0 10px;font-size:12px;color:var(--muted)}.history-row{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.history-row svg{width:15px;height:15px;color:var(--green)}.history-row.lost svg{color:var(--red)}.history-row.abandoned svg{color:var(--muted)}.history-row time{margin-left:auto;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted)}.history-row .history-outcome{color:var(--muted);font-size:10px}.sidebar-art{display:grid;grid-template-columns:repeat(2,35px);gap:4px;width:max-content;margin:33px auto 0;transform:rotate(-10deg);opacity:.9}.art-cell{width:35px;height:35px;display:grid;place-items:center;border-radius:4px;font:700 20px ui-rounded,sans-serif}.art-one{background:#e7edf5;color:#6b91b5}.art-two{background:#e7f2ec;color:#5b9278}.art-flag{color:#c7836d;background:#f4e5dd}.art-flag svg{width:17px;height:17px}.art-covered{background:#d9e8e0;box-shadow:inset 0 -2px #c9ddd0}.result-strip{margin-top:25px;border-top:1px solid var(--line);padding-top:23px;display:flex;align-items:center;justify-content:space-between;gap:14px}.result-strip strong{display:block;font-size:16px;font-weight:550}.result-strip span{display:block;font-size:11px;color:var(--muted);margin-top:7px}footer{border-top:1px solid var(--line);min-height:72px;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.footer-mark{display:flex;align-items:center;gap:8px;font-size:10px}.footer-mark>span{width:4px;height:4px;background:var(--green);border-radius:50%}dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:24px;width:min(420px,calc(100% - 36px));box-shadow:0 24px 90px #00000022}dialog::backdrop{background:#192b2545;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dialog-heading h2{font-size:19px;font-weight:600;margin:0}.dialog-heading .icon-button{margin-right:-8px}.custom-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.custom-fields label{font-size:12px;color:var(--muted)}.custom-fields input{color:var(--text);background:var(--bg);display:block;width:100%;border:1px solid var(--line);border-radius:5px;padding:12px 10px;margin-top:10px;font-variant-numeric:tabular-nums}.form-error{color:var(--red);font-size:11px;min-height:16px;margin:14px 0}.dialog-description{color:var(--muted);font-size:13px;margin:0 0 28px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}#custom-form>.primary-button{width:100%}[data-tip]{position:relative}[data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#28352f;color:#fff;padding:7px 9px;font-size:10px;font-weight:400;border-radius:4px;z-index:10;pointer-events:none;line-height:1.4}.workspace.wide{grid-template-columns:minmax(0,1fr);gap:32px}.wide .board-stage{padding:22px 14px}.wide .sidebar{display:grid;grid-template-columns:1fr 1fr 1fr;gap:38px;border-top:1px solid var(--line);padding-top:28px}.wide .stats-section{border-bottom:0;margin:0;padding:0}.wide .sidebar-art{display:none}.wide .best-row{padding:8px 0}.wide .game-toolbar{max-width:640px;margin-left:auto;margin-right:auto}.wide .play-controls{max-width:640px;margin-left:auto;margin-right:auto}
[data-theme=dark]{color-scheme:dark;--bg:#191d1c;--surface:#222825;--text:#e2e9e4;--muted:#929d97;--line:#343e38;--green:#83c9aa;--green-soft:#2d4438;--covered:#395346;--covered-hover:#466753;--tile-open:#2a322d;--tile-border:#2b4536;--red:#e2a08c;--red-soft:#45322d;--shadow:0 8px 30px #00000015}[data-theme=dark] .difficulty,[data-theme=dark] .mode-switch{background:#2b322e}[data-theme=dark] .primary-button{background:#3c8265;color:#fff}[data-theme=dark] .time-symbol{background:#323d49;color:#a7bbd1}[data-theme=dark] .cell{box-shadow:inset 0 -2px 0 var(--tile-border),inset 0 1px 0 #ffffff0b}[data-theme=dark] .cell.open{box-shadow:none}[data-theme=dark] .cell[data-number="1"]{color:#8cb3df}[data-theme=dark] .cell[data-number="2"]{color:#8ecba9}[data-theme=dark] .cell[data-number="3"]{color:#e49d89}[data-theme=dark] .cell[data-number="4"]{color:#b2a0d7}[data-theme=dark] .cell[data-number="5"]{color:#d89bb4}[data-theme=dark] .cell[data-number="6"]{color:#85c7cf}[data-theme=dark] .cell[data-number="7"]{color:#c3bab6}[data-theme=dark] .cell[data-number="8"]{color:#ccc38c}
@media(min-width:1500px){.app-shell{margin-top:20px}main{padding-top:48px;padding-bottom:60px}}
@media(max-width:1100px){.app-shell{width:calc(100% - 64px)}.workspace{gap:36px;grid-template-columns:minmax(0,1fr) 210px}.board{--cell:40px}.board-stage{padding:20px 12px}.heading-copy h2{font-size:21px}.difficulty button{min-width:72px;padding:8px 12px}}
@media(max-width:860px){.workspace{grid-template-columns:minmax(0,1fr);gap:36px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:32px;border-top:1px solid var(--line);padding-top:26px}.stats-section{border:0;margin:0;padding:0}.recent-section,.sidebar-art{display:none}.play-area{max-width:680px;width:100%;margin:auto}.board{--cell:44px}.game-heading{gap:20px}.heading-copy h2{font-size:19px}.difficulty button{min-width:63px;padding:8px 10px}.wide .sidebar{grid-template-columns:1fr 1fr}.wide .play-area{max-width:none}.wide .recent-section{display:none}}
@media(max-width:620px){.app-shell{width:calc(100% - 36px)}.masthead{height:88px}.brand h1{font-size:22px}.brand img{width:39px;height:39px}.brand span{font-size:8px}.edition,.header-divider{display:none}.header-actions{gap:4px}main{padding:28px 0 30px}.game-heading{display:block;margin-bottom:26px}.heading-copy h2{font-size:21px;margin-top:8px}.difficulty{margin-top:22px;width:100%}.difficulty button{flex:1;padding:8px 4px;min-width:0}.difficulty .custom-level{flex:0 0 44px;min-width:44px}.game-toolbar{margin-bottom:16px}.counter{min-width:112px;gap:9px}.counter-symbol{width:34px;height:40px}.counter-symbol svg{width:17px;height:17px}.counter strong{font-size:22px}.counter-label{font-size:9px}.board-stage{padding:15px 8px}.board{--cell:min(40px,calc((100vw - 88px)/9));--gap:3px}.cell{font-size:18px;border-radius:3px}.cell svg{width:16px;height:16px}.board-bottom{font-size:10px}.play-controls{gap:20px;margin-top:22px}.sidebar{gap:28px}.totals strong{font-size:23px}.section-title h3{font-size:12px}.best-row{gap:9px;padding:11px 0}.best-name{font-size:11px}.best-time{font-size:12px}.level-mark{width:26px;height:28px}.footer-mark{font-size:9px}footer>span:last-child{display:none}footer{min-height:62px;font-size:8px}.result-strip strong{font-size:14px}.result-strip .primary-button{padding:10px 12px}.wide .sidebar{gap:26px}.wide .board-stage{padding:15px 8px}.wide .board{--cell:28px!important;--gap:3px}.wide .cell{font-size:16px}.sidebar .subtle{font-size:9px}}
.result-strip{flex-wrap:wrap}.result-actions{display:flex;gap:8px;flex-wrap:wrap}.result-actions svg{width:15px;height:15px}
.experience-result{font-size:12px;line-height:1.8;margin:12px 0;color:var(--text);overflow-wrap:anywhere}#result-experience{line-height:1.8;overflow-wrap:anywhere}
footer{gap:12px}.app-version{flex-shrink:0;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;white-space:nowrap}
.win-dialog{width:min(440px,calc(100% - 36px));max-height:calc(100dvh - 32px);padding:32px;text-align:center;overflow-x:hidden;overflow-y:auto}
.win-dialog::backdrop{background:#13271f66;backdrop-filter:blur(5px)}
.win-dialog>:not(.win-confetti){position:relative;z-index:1}.win-dialog .win-close{position:absolute;top:12px;right:12px;z-index:2}
.win-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}.confetti-piece{position:absolute;top:78px;width:6px;height:10px;border-radius:1px;opacity:0;pointer-events:none}.confetti-piece:nth-child(3n){width:5px;height:5px}
.win-art{width:80px;height:80px;margin:4px auto 20px;border-radius:50%;display:grid;place-items:center;background:#faf0d8;color:#ac7b24;border:1px solid #e9d5a6}.win-art svg{width:37px;height:37px;stroke-width:1.6}
.win-eyebrow{display:block;color:var(--green);font-size:10px;font-weight:650}.win-dialog h2{font-size:27px;font-weight:600;margin:9px 0 10px}.win-dialog h2:focus{outline:none}.win-board{margin:0;color:var(--muted);font-size:11px}
.win-score{margin-top:26px}.win-score>span{display:block;font-size:11px;color:var(--muted);margin-bottom:9px}.win-score strong{display:block;font:500 44px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;color:var(--text)}
.win-record{display:flex;justify-content:center;align-items:center;gap:6px;color:var(--green);font-size:11px;margin-top:12px}.win-record svg{width:14px;height:14px}
.win-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;text-align:left;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:21px 0;margin:25px 0 23px}.win-stats dt{font-size:10px;color:var(--muted);margin-bottom:7px}.win-stats dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.win-actions{display:flex;gap:10px}.win-actions button{flex:1;padding:12px 10px;min-width:0}.win-actions svg{width:15px;height:15px}
[data-theme=dark] .win-art{background:#443b27;border-color:#65542f;color:#edc56c}
@media(max-width:480px){.win-dialog{padding:26px 22px}.win-art{width:68px;height:68px;margin-bottom:16px}.win-art svg{width:32px;height:32px}.win-dialog h2{font-size:24px}.win-score strong{font-size:36px}.win-stats{gap:18px 16px;margin:22px 0}.win-score{margin-top:22px}.win-actions{gap:8px}.win-actions button{font-size:11px}}
.board{position:relative;isolation:isolate}
.cell{position:relative}
.board{--focus-ring:#145bca;--focus-keyline:#fff;--focus-covered:#cfdef7;--focus-open:#e8f0ff}
[data-theme=dark] .board{--focus-ring:#8bc5ff;--focus-keyline:#172a3b;--focus-covered:#374f70;--focus-open:#293d55}
.board .cell:focus-visible{outline:none;z-index:2}
.board .cell:focus-visible:not(.open){background:var(--focus-covered)}
.board .cell.open:focus-visible:not(.mine){background:var(--focus-open)}
.cell:focus-visible::after{content:"";position:absolute;inset:0;border:3px solid var(--focus-ring);box-shadow:inset 0 0 0 1px var(--focus-keyline);border-radius:inherit;pointer-events:none}
.cell-content{display:inline-flex;align-items:center;justify-content:center;transform-origin:50% 85%;pointer-events:none}
.board .cell[data-chord-preview]:not(.open):not(.flagged):not(.ended){background:var(--covered-hover);box-shadow:inset 0 2px 4px #00000024,inset 0 0 0 2px var(--tile-border);transform:translateY(1px) scale(.96);transition:none}
.flag-impact{position:absolute;left:calc(50% - 10px);top:calc(50% + 3px);width:20px;height:8px;border:2px solid var(--green);border-radius:50%;pointer-events:none;opacity:0}
.board-effects{position:absolute;inset:0;overflow:hidden;border-radius:4px;pointer-events:none;z-index:1}
.reveal-ring{position:absolute;border:2px solid var(--green);box-shadow:0 0 0 5px #4c997a18;border-radius:50%;pointer-events:none;opacity:0}
.sweep-wave{position:absolute;width:92px;height:92px;transform:translate(-50%,-50%);pointer-events:none}
.sweep-wave>span{position:absolute;inset:0;border:2px solid var(--green);border-radius:50%;opacity:0;animation:sweep-wave var(--sweep-duration,.6s) linear infinite}
.play-area.racing-mode #board .cell{transition:none;transform:none}
.play-area.racing-mode #board .sweep-wave>span{animation:none;opacity:.8;transform:scale(.44)}
.play-area.racing-mode #progress-fill,.play-area.racing-mode #health-fill{transition:none}
@keyframes sweep-wave{from{transform:scale(.12);opacity:.8}to{transform:scale(1);opacity:0}}
.pause-overlay{padding:20px;overflow-y:auto}.pause-overlay h3{margin:16px 0 10px}.pause-tip{max-width:30em;min-height:3.4em;margin:0 0 20px;color:var(--muted);font-size:12px;line-height:1.7;text-align:center;overflow-wrap:anywhere}.pause-overlay>.pause-art,.pause-overlay>.primary-button{flex-shrink:0}
@media(prefers-reduced-motion:reduce){.sweep-wave>span{animation:none;opacity:.8;transform:scale(.44)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Rank health: three fixed slots keep unlocks visible without changing toolbar width. */
.rank-health{position:relative;margin:0 0 18px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.rank-health-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.rank-health-heading>span{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
.rank-health-heading svg{width:14px;height:14px;color:var(--green)}
.rank-health-heading strong{font:600 14px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text);font-variant-numeric:tabular-nums}
.rank-health-heading small{font-size:10px;color:var(--muted)}
.rank-health-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;height:9px}
.rank-health-segments>span{border-radius:2px;background:var(--green);border:1px solid transparent}
.rank-health-segments>span[data-state=empty]{background:var(--line)}
.rank-health-segments>span[data-state=locked]{background:transparent;border:1px dashed var(--line)}
.rank-health[data-condition=injured] [data-state=full]{background:#b89539}
.rank-health[data-condition=critical] [data-state=full]{background:var(--red)}
.rank-health[data-condition=critical] .rank-health-heading strong,.rank-health[data-condition=critical] svg{color:var(--red)}
#replay-health{font-size:11px;color:var(--muted);white-space:nowrap}

/* Prototype documentation stays visible beside the version, including on mobile. */
.footer-links{display:flex;align-items:center;gap:16px;flex-shrink:0}.prototype-doc-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;text-decoration:none;white-space:nowrap}.prototype-doc-link:hover{color:var(--green)}.prototype-doc-link:focus-visible{outline:2px solid var(--green);outline-offset:4px}.prototype-doc-link>span{font-size:9px;padding:2px 5px;border:1px solid var(--line);border-radius:3px;color:var(--green)}
@media(max-width:620px){footer{flex-wrap:wrap;gap:8px 12px;padding:14px 0}footer>.footer-mark{display:none}.footer-links{gap:12px}.prototype-doc-link{font-size:10px}}
