/* Avatar geometry is fixed independently of flex layout and image orientation. */
:root{--profile-photo-size:88px}
#profileAvatar,#profileAvatarIcon{box-sizing:border-box!important;width:var(--profile-photo-size)!important;height:var(--profile-photo-size)!important;min-width:var(--profile-photo-size)!important;min-height:var(--profile-photo-size)!important;max-width:var(--profile-photo-size)!important;max-height:var(--profile-photo-size)!important;flex:0 0 var(--profile-photo-size)!important;aspect-ratio:1!important;border-radius:50%!important;border:0!important;padding:0!important;object-fit:cover!important;object-position:center!important;outline:2px solid #c5d8ed;outline-offset:3px}
#chatHomeList .avatar,#contactsList .contact-avatar{box-sizing:border-box!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important;flex:0 0 54px!important;aspect-ratio:1!important;border-radius:50%!important;overflow:hidden!important;padding:0!important;border:0!important}
#chatHomeList .avatar img,#contactsList .contact-avatar img,.header-avatar{box-sizing:border-box!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;padding:0!important;border:0!important;aspect-ratio:1!important}
#chatHomeList .avatar img,#contactsList .contact-avatar img{display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important}
.header-avatar{min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;flex-shrink:0!important}
.avatar-live-preview{box-sizing:border-box;width:72px!important;height:72px!important;min-width:72px!important;max-width:72px!important;min-height:72px!important;max-height:72px!important;aspect-ratio:1!important;flex:0 0 72px!important;border:0!important;padding:0!important;outline:2px solid #cfdeef;border-radius:50%!important}
.scanflow-screen>header{min-height:60px!important;padding:8px 10px!important}.scanflow-screen header strong{font-size:15px!important;line-height:1.3}.scanflow-screen header small{display:none!important}.scanflow-screen header button{width:40px;height:40px;min-width:40px;min-height:40px}.games-release{font-size:11px}
@media(max-width:360px){:root{--profile-photo-size:76px}.header-avatar{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;flex-basis:30px!important}}

.fleet-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.fleet-tools button{padding:9px 6px;font-size:11px;min-height:38px;border:1px solid #c9dbea;border-radius:10px}.fleet-hint,.sea-legend{font-size:12px!important;line-height:1.5;color:#526f8d!important}.sea-map{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:18px auto;gap:3px;max-width:430px;margin:10px auto 18px}.sea-axis{grid-column:2;display:grid;grid-template-columns:repeat(10,1fr);text-align:center;font-size:10px;color:#5e7794}.sea-row-labels{grid-column:1;grid-row:2;display:grid;grid-template-rows:repeat(10,1fr);font-size:10px;text-align:center;align-items:center;color:#5e7794}.sea-grid{grid-column:2;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;min-width:0;background:#cbdced;border:2px solid #cbdced;border-radius:8px;overflow:hidden}.sea-cell{min-width:0;min-height:0;aspect-ratio:1;box-sizing:border-box;padding:0;border:0;border-radius:3px;background:#f8fbff;color:#2365a3;font:700 clamp(12px,4vw,19px)/1 system-ui;cursor:pointer}.sea-cell:disabled{opacity:1;cursor:default}.sea-1{background:#4292da;color:#fff}#seaTarget .sea-1{background:#e4edf7;color:#607f9e}.sea-2{background:#f47788;color:#fff}.sea-3{background:#214a76;color:#fff}.revealed-ship:not(.sea-2):not(.sea-3){background:#b9d0e7}.sea-cell:focus-visible{outline:2px solid #126ed0;outline-offset:-2px}#gameRoom h3{font-size:14px;margin:18px 0 8px}#fleetReady{min-height:44px;width:100%;border:0;border-radius:12px;font-size:14px}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:420px;margin:14px auto}.memory-card{aspect-ratio:1;min-width:0;border:1px solid #bdd2eb;border-radius:14px;background:linear-gradient(145deg,#2475c8,#174d85);color:#fff;font-size:30px;line-height:1;cursor:pointer}.memory-card:disabled{opacity:1;cursor:default}.memory-card.open{background:#fff;color:#203a54}.memory-card.matched-1{background:#e7f3ff;border:2px solid #2383dc}.memory-card.matched-2{background:#fff0f3;border:2px solid #e36a87}.memory-score{background:#e7effa;padding:11px;border-radius:10px;font-size:13px!important;color:#1d4c7a!important}

.games-screen{overflow:hidden!important;min-height:0}.games-head{flex:0 0 64px;box-sizing:border-box}.games-content{overscroll-behavior:contain}
