.records-dialog{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #b58e55;border-radius:18px;background:#191923;color:#f0e7d9;box-shadow:0 24px 100px #000b;overflow:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.records-dialog::backdrop{background:#080711b8;backdrop-filter:blur(5px)}
.records-dialog *{box-sizing:border-box}.records-shell{padding:24px}.records-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}.records-kicker{margin:0 0 6px;color:#d8b679;font-size:11px;letter-spacing:.18em;text-transform:uppercase}.records-head h2{margin:0;font-size:24px;letter-spacing:.025em}.records-close{background:#30303e;color:#f4e9d2;border:1px solid #585366;border-radius:9px;font-size:22px;width:40px;height:40px;flex-shrink:0;cursor:pointer}.records-intro{color:#b6b6c4;font-size:12px;line-height:1.7;margin:12px 0 20px}.records-tabs{display:flex;gap:6px;padding:5px;border-radius:12px;background:#11121b;margin-bottom:20px}.records-tabs button{flex:1;border:0;border-radius:8px;padding:10px;background:transparent;color:#bcb8cc;cursor:pointer;font:inherit;font-size:13px}.records-tabs button[aria-pressed=true]{background:#3a3043;color:#ffe0a0}.records-dialog label{display:block;color:#d3d0dd;font-size:12px;margin-bottom:7px}.records-dialog input,.records-dialog select{font:inherit;font-size:15px;background:#0e111b;color:#f8edda;border:1px solid #555266;border-radius:9px;width:100%;padding:12px;min-height:44px}.records-dialog input:focus,.records-dialog select:focus,.records-dialog button:focus-visible{outline:2px solid #91d3d3;outline-offset:3px}.records-dialog form{display:grid;gap:16px}.records-hint{font-size:11px;line-height:1.65;color:#aeb0be;margin:6px 0 0}.records-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.records-button{font:inherit;font-size:13px;line-height:1.3;border:1px solid #bfa071;border-radius:9px;background:#e8c88b;color:#211c24;padding:12px 16px;min-height:44px;cursor:pointer}.records-button.secondary{background:#2a2939;border-color:#585366;color:#e7e0ee}.records-button:disabled{opacity:.55;cursor:wait}.records-notice{padding:11px 13px;border-radius:9px;background:#282638;border:1px solid #4a425b;font-size:12px;line-height:1.65;margin:16px 0;overflow-wrap:anywhere}.records-notice.error{color:#ffb8b1;border-color:#845156}.records-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.records-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.records-table th{padding:10px 7px;text-align:left;color:#a9a8bb;font-size:10px;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid #514256}.records-table td{padding:14px 7px;border-bottom:1px solid #333040;overflow-wrap:anywhere}.records-table th:first-child{width:52px}.records-table th:last-child{width:110px;text-align:right}.records-table td:last-child{text-align:right;color:#f4d18c}.records-table tr:first-child td:first-child{color:#f4d18c}.records-empty{padding:38px 12px;text-align:center;border:1px dashed #555065;border-radius:12px;color:#d1c8dd}.records-empty strong{display:block;font-size:16px;color:#edcf93;margin-bottom:10px}.records-empty p{margin:0;font-size:12px;line-height:1.8}.records-code{display:block;background:#0f111b;border:1px dashed #af935d;border-radius:10px;padding:18px;margin:16px 0;overflow-wrap:anywhere;user-select:all;font-size:18px;line-height:1.6;color:#ffe0a0}.records-score{font-size:44px;color:#ffe0a0;line-height:1.1;margin:16px 0}.records-account{padding:20px;background:#232431;border:1px solid #494254;border-radius:12px}.records-account h3{font-size:22px;overflow-wrap:anywhere;margin:0 0 10px}.records-dialog [hidden]{display:none!important}.records-result-ready{position:fixed;right:16px;bottom:20px;z-index:12000;background:#eac88c;color:#201b24;border:1px solid #f5d997;border-radius:12px;font:600 13px ui-monospace,monospace;padding:12px 18px;cursor:pointer;max-width:calc(100vw - 32px)}
/* The run reminder never covers a running game (records-client also hides it while a game is open). */
body.playing .records-result-ready{display:none!important}
@media(max-width:460px){.records-shell{padding:18px}.records-head h2{font-size:21px}.records-filters{grid-template-columns:1fr}.records-table{font-size:12px}.records-table th:last-child{width:92px}.records-tabs button{font-size:12px;padding:10px 4px}.records-dialog{border-radius:13px}.records-score{font-size:36px}}
@media(prefers-reduced-motion:reduce){.records-dialog::backdrop{backdrop-filter:none}}
