/* Scoped onboarding UI: no layout or gameplay overrides outside the menu. */
#frontend .first-run-menu-link,#frontend .first-run-launch{cursor:pointer;font:700 12px/1.2 system-ui,sans-serif;letter-spacing:.3px}
#frontend .ms-nav-extra .first-run-menu-link{background:transparent;border:0;color:#e2e7ec;padding:10px;text-align:left;min-height:40px}
#frontend .ms-nav-extra .first-run-menu-link:hover,#frontend .ms-nav-extra .first-run-menu-link:focus-visible{background:#27313a;color:#fff;outline:2px solid #ffd36b;outline-offset:1px}
#frontend .first-run-launch{background:#22282c;border:1px solid #ffd36b;color:#f9efcf;padding:12px 16px;min-height:42px}
#frontend .first-run-launch:hover,#frontend .first-run-launch:focus-visible{background:#414041;outline:2px solid #ffd36b;outline-offset:2px}
#frontend .first-run-home-hint{font-size:12px;color:#d2d8dc;margin:10px 0 0;line-height:1.5}
.first-run-dialog{width:min(690px,calc(100vw - 28px));max-width:690px;max-height:min(88dvh,780px);padding:0;background:#101619;color:#f5f7f9;border:1px solid #9faab3;border-top:4px solid #d81d2a;border-radius:9px;box-shadow:0 20px 80px #000c;overflow:auto;font-family:system-ui,Arial,sans-serif}
.first-run-dialog::backdrop{background:#020608c9;backdrop-filter:blur(3px)}
.first-run-dialog *{box-sizing:border-box}
.first-run-dialog [hidden]{display:none!important}
.first-run-dialog button{font:700 12px/1.3 system-ui,Arial,sans-serif;cursor:pointer;background:#27313a;border:1px solid #788793;border-radius:4px;padding:10px 12px;min-height:42px;color:#fff}
.first-run-dialog button:focus-visible{outline:3px solid #ffd36b;outline-offset:3px}
.first-run-dialog button:hover{background:#3b4751}
.first-run-dialog button:disabled{opacity:.5;cursor:default}
.first-run-dialog .first-run-primary{background:#c91423;border-color:#e93442;color:#fff}
.first-run-dialog .first-run-primary:hover:not(:disabled){background:#e52332}
.first-run-dialog .first-run-secondary{background:transparent;border-color:#929da5}
.first-run-dialog .first-run-wrap{min-width:0}
.first-run-dialog .first-run-header{position:relative;padding:21px 56px 18px 24px;background:linear-gradient(110deg,#25191e,#121b22);border-bottom:1px solid #ffffff20}
.first-run-dialog .first-run-overline{color:#ffbd83;font-size:11px;font-weight:700;letter-spacing:1.5px;margin:0 0 6px}
.first-run-dialog h2{font:700 clamp(27px,5vw,36px)/1.1 system-ui,sans-serif;margin:0 0 8px}
.first-run-dialog .first-run-header p:last-child{margin:0;color:#c5d0d9;font-size:13px;line-height:1.5}
.first-run-dialog .first-run-close{position:absolute;right:15px;top:15px;font-size:23px;line-height:1;width:36px;height:36px;min-height:36px;padding:0}
.first-run-dialog .first-run-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:13px 19px 0}
.first-run-dialog .first-run-steps button{min-width:0;font-size:11px;letter-spacing:.1px}
.first-run-dialog .first-run-steps [aria-current=step]{background:#b61925;border-color:#e63847;color:#fff}
.first-run-dialog .first-run-body{padding:13px 24px 12px;overflow-wrap:anywhere}
.first-run-dialog .first-run-body h3{margin:6px 0 10px;font-size:22px;line-height:1.2;outline:none}
.first-run-dialog .first-run-body h3:focus-visible{outline:2px solid #ffd36b;outline-offset:4px}
.first-run-dialog .first-run-body p,.first-run-dialog .first-run-body li{font-size:13px;line-height:1.6;color:#d5dde2}
.first-run-dialog .first-run-body ol{padding-left:22px;display:grid;gap:8px}
.first-run-dialog .first-run-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}
.first-run-dialog .first-run-key{border:1px solid #52616c;background:#172025;padding:9px 11px;min-width:0}
.first-run-dialog .first-run-key dt{font-size:11px;color:#c9d2d9}
.first-run-dialog .first-run-key dd{font-size:15px;color:#fff;font-weight:750;margin:6px 0 0}
.first-run-dialog .first-run-tip{padding:11px 13px;border-left:3px solid #e5ae44;background:#252319;border-radius:2px}
.first-run-dialog .first-run-current{font-weight:700;color:#fff!important}
.first-run-dialog .first-run-quality-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.first-run-dialog #firstRunQualityStatus{min-height:1.5em;color:#e7ce8a}
.first-run-dialog .first-run-footer{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:13px 20px 19px;border-top:1px solid #ffffff25;background:#151e22}
.first-run-dialog .first-run-footer span{font-size:12px;color:#ced6dc;text-align:center}
@media(max-width:560px){.first-run-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:5px}.first-run-dialog .first-run-header{padding:18px 45px 16px 16px}.first-run-dialog .first-run-close{right:9px;top:9px}.first-run-dialog .first-run-steps{padding:9px 10px 0;gap:5px}.first-run-dialog .first-run-steps button{font-size:10px;padding:8px 4px;min-height:44px}.first-run-dialog .first-run-body{padding:12px 15px}.first-run-dialog .first-run-body h3{font-size:20px}.first-run-dialog .first-run-keys{gap:6px}.first-run-dialog .first-run-key{padding:7px}.first-run-dialog .first-run-key dd{font-size:13px}.first-run-dialog .first-run-footer{padding:10px;gap:5px}.first-run-dialog .first-run-footer button{font-size:11px;padding:9px 8px}}
@media(prefers-reduced-motion:reduce){.first-run-dialog::backdrop{backdrop-filter:none}}
