/* Preferences change without replacing the live table. */
.topnav { align-items: center; gap: 12px; }
.topnav .nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 14px; }
.topnav .nav-button:hover { color: var(--heading, var(--text)); background: transparent; }
#settings-form .settings-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 45px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; box-shadow: none; color: var(--text); text-align: left; font-size: 14px; }
#settings-form .settings-link:hover { color: var(--heading, var(--text)); }
.settings-link-value { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 13px; }
.settings-link-value i { font-style: normal; font-size: 22px; line-height: 1; }
#settings-form #seed-button { margin-top: 10px; }
#settings-form #theme-button { margin-bottom: 6px; }
#theme-name { display: inline; font-size: 13px; color: var(--muted); }
#modal[data-kind='appearance'] { width: min(900px, calc(100% - 28px)); padding: 28px; }
.appearance-picker .modal-title { margin-bottom: 20px; }
.theme-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.theme-option { min-width: 0; overflow: hidden; padding: 4px; text-align: left; border: 2px solid var(--line); background: var(--panel); color: var(--text); }
.theme-option .settings-theme-viewport { border: 1px solid var(--line); }
.theme-option img { display:block; width:100%; height:100%; object-fit:cover; transform:scale(3.6); transform-origin:50% 49%; }
.theme-option-label { display: flex; justify-content: space-between; align-items: center; min-height: 41px; padding: 7px 8px 2px; gap: 8px; }
.theme-option-label strong { font-size: 14px; font-weight: 500; }
.theme-check { visibility: hidden; color: var(--gold); font-weight: 700; }
.theme-option[aria-pressed='true'] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.theme-option[aria-pressed='true'] .theme-check { visibility: visible; }
.theme-option:hover { border-color: var(--gold); }
#appearance-done { display: block; min-width: 140px; margin: 23px auto 0; }
.empty-table .hero-bones { margin-bottom: 16px; }
#modal[data-kind='player-seed'] { width: min(480px, calc(100% - 24px)); }
.seed-input-label { display: block; margin: 20px 0 8px; color: var(--muted); font-size: 13px; }
.player-seed-settings #player-seed { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--line); font-size: 16px; }
.seed-setting-note { color: var(--muted); margin-top: 10px; font-size: 12px; }
.seed-settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media(max-width:470px) {
  .topbar { height: auto; min-height: 110px; display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; padding: 12px 0 10px; }
  .topnav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; width: 100%; margin: 0; gap: 5px; }
  .topnav .nav-button { min-height: 40px; padding: 6px 9px; }
  .account-actions { grid-row: 1; grid-column: 2; }
}
@media(max-width:700px) {
  #modal[data-kind='appearance'] { padding: 23px 16px; }
  .theme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .theme-option-label { padding: 5px 3px 1px; }
  .theme-option-label strong { font-size: 13px; }
}
@media(max-width:390px) { .topnav .nav-button { padding-inline: 7px; font-size: 13px; } }

@media(min-width:431px) and (max-width:850px) { .felt { min-height: 160px; height: clamp(160px, calc(100vh - 620px), 240px); } }
@media(max-width:430px) { .felt { min-height: 160px; height: clamp(160px, calc(100vh - 665px), 210px); } }
