.page-header { margin-bottom: 20px; padding-bottom: 20px; }
.page-header, .screen-navigation { width: min(1060px, 100%); margin-left: auto; margin-right: auto; }
.screen-navigation { display: flex; align-items: center; min-height: 44px; margin: 0 0 24px; }
.screen-navigation :is(#leave, #list-back, #resign, #game-leave) { width: auto; margin: 0; flex: none; }
.screen-navigation .danger-navigation, button.danger-navigation { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-height: 42px; margin: 0; padding: 11px 17px; border: 1px solid #85515c; border-radius: 9px; background: #482832; color: #f0cdd2; font-size: .76rem; font-weight: 500; line-height: 1.3; box-shadow: none; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease; }
.screen-navigation .danger-navigation:hover, button.danger-navigation:hover { color: #ffe2e5; border-color: #a56874; background: #633642; box-shadow: 0 4px 17px #84394c22; }
.screen-navigation .danger-navigation:active, button.danger-navigation:active { transform: translateY(1px) scale(.98); background: #713e4c; }
.danger-navigation svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.danger-navigation:focus-visible { outline: 2px solid #daa0ab; outline-offset: 4px; }
dialog { width: min(440px, calc(100% - 32px)); max-width: 440px; color: #e7e8f1; background: #171923; padding: 28px; border: 1px solid #535062; border-radius: 15px; box-shadow: 0 24px 90px #0008; }
dialog::backdrop { background: #070910ba; backdrop-filter: blur(4px); }
dialog h2 { margin: 0; font-weight: 500; font-size: 1.12rem; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: end; gap: 12px; margin-top: 26px; }
.dialog-actions .secondary { border-radius: 9px; font-size: .76rem; min-height: 42px; padding: 10px 17px; }
.avatar { display: block; flex: none; object-fit: cover; border-radius: 50%; background: #1c202c; border: 1px solid #5b6276; }
.profile-picker { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.profile-preview { width: 96px; height: 96px; }
#avatar-pick { min-height: 39px; padding: 9px 13px; border-radius: 8px; font-size: .72rem; font-weight: 400; }
.profile-picker .note { font-size: .6rem; margin-bottom: 0; }
.profile-picker > div { min-width: 0; }
.profile-error { color: #e0a7b1; font-size: .72rem; line-height: 1.5; }
.lobby-duel { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr); align-items: stretch; gap: 16px; margin: 0; padding: 0; }
.lobby-player { display: flex; gap: 20px; align-items: center; min-width: 0; min-height: 150px; padding: 26px; border: 1px solid #464f69; border-radius: 15px; background: linear-gradient(120deg, #202636, #151a28); box-shadow: inset 0 1px 0 #b0bed00c, 0 5px 24px #0002; }
.lobby-player.admin { border-color: #9380b6; background: linear-gradient(120deg, #30273e, #1b1d2e); box-shadow: 0 0 30px #aa87d51a, inset 0 1px 0 #c4a7ed18; }
.lobby-player .avatar { width: 84px; height: 84px; border: 2px solid #7c8499; }
.lobby-player.admin .avatar { border-color: #ad97ca; }
.lobby-player.empty { border-style: dashed; background: #141927; }
.lobby-player.empty .avatar { opacity: .45; }
.lobby-player-details { min-width: 0; flex: 1; }
.lobby-player-name { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #f2f1f9; font-size: 1.13rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.lobby-player-name strong { min-width: 0; font-weight: inherit; }
.admin-crown { width: 18px; height: 18px; fill: none; stroke: #d3bced; stroke-width: 1.5; flex: none; }
.lobby-player-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .7rem; color: #bec6df; }
.lobby-player-status .checker-indicator { width: 28px; height: 28px; object-fit: contain; }
.ready-indicator { display: inline-flex; align-items: center; gap: 7px; }
.ready-indicator::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #747f9c; }
.ready-indicator.ready { color: #ded0ff; }
.ready-indicator.ready::before { background: #c1a9e8; box-shadow: 0 0 10px #bc9fe377; }
.duel-vs { display: grid; place-items: center; color: #8d88a2; font-size: .8rem; letter-spacing: .1em; }
#waiting { margin: 14px 0 26px; font-size: .7rem; }
#lobby .settings-panel { padding: 28px; border-top: 1px solid #424a66; }
#lobby .theme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#lobby .theme-name { font-size: .75rem; }
#lobby .theme-caption { font-size: .58rem; }
#lobby #settings-access { font-size: .7rem; }
.lobby-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.lobby-footer .note { margin: 5px 0; font-size: .7rem; }
.lobby-footer #ready, #publish-game { width: auto; min-width: 190px; padding: 13px 24px; margin: 0; border-radius: 9px; flex: none; }
.lobby-footer #spectators { color: #929db8; }
.lobby-seat { grid-template-columns: 32px 23px minmax(0, 1fr); column-gap: 5px; }
.lobby-seat > .avatar { width: 32px; height: 32px; grid-row: 1 / 3; }
.lobby-seat > .seat-checker { width: 23px; height: 23px; grid-column: 2; grid-row: 1 / 3; }
.lobby-seat > small { grid-column: 3; }
.game-player > .avatar { width: 48px; height: 48px; border-color: #7f879f; }
.game-player > .checker-indicator { width: 25px; height: 25px; }
.game-player { gap: 10px; }
.game-actions:has(> button[hidden]:only-child) { display: none; }
@media (max-width: 900px) { #lobby .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lobby-player { padding: 20px; gap: 15px; } .lobby-player .avatar { width: 68px; height: 68px; } .lobby-duel { gap: 10px; grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr); } .lobby-player-name { font-size: 1rem; } }
@media (max-width: 600px) { .lobby-player { flex-direction: column; align-items: center; text-align: center; padding: 17px 10px; gap: 12px; min-height: 190px; } .lobby-player-name, .lobby-player-status { justify-content: center; } .lobby-duel { gap: 7px; grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); } .lobby-player .avatar { width: 64px; height: 64px; } .lobby-player-name { font-size: .88rem; } #lobby .settings-panel { padding: 20px; } #lobby .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lobby-footer { flex-wrap: wrap; gap: 16px; } .lobby-footer #ready, #publish-game { width: 100%; } .game-player { flex-wrap: wrap; justify-content: center; gap: 7px; padding: 12px 8px; } .game-player > .avatar { width: 40px; height: 40px; } .game-player > .checker-indicator { width: 23px; height: 23px; } .game-player > div { flex: 1 1 100%; text-align: center; } #game-player-1 { flex-direction: row; text-align: center; } .profile-picker { gap: 13px; } .profile-preview { width: 80px; height: 80px; } .lobby-seat { grid-template-columns: 28px minmax(0, 1fr); } .lobby-seat > .avatar { width: 28px; height: 28px; } .lobby-seat > .seat-checker { grid-column: 1; grid-row: 3; width: 19px; height: 19px; justify-self: center; } .lobby-seat > small { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { button.danger-navigation { transition: none; } }
