.scores-dialog, .admin-page { color: #f4f4f4; background: #1a1c2c; font: 16px/1.5 ui-monospace, Consolas, monospace; color-scheme: dark; text-align: left; touch-action: auto; }
.scores-dialog *, .admin-page * { box-sizing: border-box; }
.scores-dialog { width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 2px solid #ffcd75; box-shadow: 8px 8px 0 #111320; overflow: auto; }
.scores-dialog::backdrop { background: #080b19dc; }
.scores-dialog h1, .admin-page h1 { margin: 0; color: #ffcd75; font-size: clamp(1.2rem, 3vw, 1.65rem); }
.scores-dialog h2, .admin-page h2 { font-size: 1.15rem; color: #ffcd75; }
.scores-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.scores-dialog button, .admin-page button { border: 1px solid #94b0c2; background: #29366f; color: #fff; padding: 10px 16px; font: inherit; cursor: pointer; min-height: 44px; }
.scores-dialog button:hover, .admin-page button:hover { background: #3b5dc9; }
.scores-dialog button:disabled, .admin-page button:disabled { opacity: .6; cursor: wait; }
.scores-dialog :focus-visible, .admin-page :focus-visible { outline: 2px solid #ffcd75; outline-offset: 3px; }
.scores-dialog label, .admin-page label { display: grid; gap: 6px; }
.scores-dialog input, .admin-page input, .admin-page select { width: 100%; padding: 10px; min-height: 44px; font: inherit; color: #fff; background: #111523; border: 1px solid #566c86; }
.admin-page select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2394b0c2' stroke-width='2'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; }
.scores-dialog a, .admin-page a { color: #73eff7; text-underline-offset: 3px; }
.scores-tabs { display: flex; gap: 8px; margin: 20px 0 8px; }
.scores-tabs button[aria-pressed="true"] { color: #1a1c2c; background: #ffcd75; border-color: #ffcd75; }
.score-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid #566c86; background: #222940; }
.score-form p { grid-column: 1 / -1; margin: 0; }
.score-form[hidden] { display: none; }
.muted, .score-date { color: #94b0c2; font-size: .875rem; }
.score-date { margin: 8px 0 16px; }
.error { color: #ff9a8b; }
.scores-message:empty { display: none; }
.table-scroll { overflow-x: auto; }
.scores-dialog table, .admin-page table { border-collapse: collapse; width: 100%; white-space: nowrap; }
.scores-dialog td, .scores-dialog th, .admin-page td, .admin-page th { padding: 12px 10px; border-bottom: 1px solid #333c57; text-align: left; }
.scores-dialog th, .admin-page th { color: #94b0c2; font-size: .875rem; font-weight: normal; }
.scores-dialog td:nth-child(3) { color: #ffcd75; font-weight: bold; }
.scores-dialog tr.own-score { background: #29366f; }
.scores-dialog details { margin-top: 20px; color: #94b0c2; font-size: .875rem; }
.scores-dialog summary { cursor: pointer; }
.admin-page { margin: 0; }
.admin-shell { max-width: 1150px; margin: auto; padding: 24px; }
.admin-login { display: grid; max-width: 380px; gap: 20px; margin-top: 32px; }
.logout { text-align: right; }
.editor { margin: 24px 0; padding: 20px; border: 1px solid #ffcd75; }
.edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex !important; align-items: center; }
.check input { width: 20px; }
.search-form { display: flex; gap: 12px; align-items: end; margin: 24px 0; }
.actions { display: flex; gap: 16px; }
.pagination { display: flex; justify-content: center; gap: 24px; margin: 24px 0; }
.admin-page button.danger { background: #873345; }
.legal-link { position: fixed; bottom: 4px; left: 8px; z-index: 3; color: #94b0c2; background: #1a1c2ce6; padding: 5px 8px; font: 14px/1.5 ui-monospace, Consolas, monospace; touch-action: auto; }
.legal-link:focus-visible { outline: 2px solid #ffcd75; }
.legal-page { max-width: 800px; }
.legal-page section { margin: 28px 0; }
.legal-page h2 { font-size: 1.05rem; }
@media (max-width: 600px) {
    .scores-dialog { padding: 16px; }
    .score-form, .edit-form { grid-template-columns: 1fr; }
    .scores-header { align-items: start; }
    .scores-header button { padding: 8px; }
    .admin-shell { padding: 16px; }
    .search-form { flex-wrap: wrap; }
}
