/* Public player seats overlay the table; opening a profile never resizes the map. */
.table-seats{position:absolute;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right));display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#899d9b66 transparent;pointer-events:auto;padding:4px 2px 6px}
.table-seat{display:flex;align-items:center;gap:9px;min-width:180px;width:290px;max-width:31vw;padding:7px 9px;background:linear-gradient(125deg,#14212ef2,#0b151de6);border:1px solid color-mix(in srgb,var(--owner),transparent 67%);border-radius:15px;box-shadow:0 4px 18px #0005;backdrop-filter:blur(16px);position:relative}
.table-seat.is-turn{border-color:var(--owner);box-shadow:inset 0 2px 0 var(--owner),0 0 15px color-mix(in srgb,var(--owner),transparent 80%)}
.seat-person{display:flex;align-items:center;gap:8px;min-width:0;flex:0 0 48%;padding:0;text-align:left;border:0;background:none;color:#dfdece}
.seat-portrait{display:block;width:44px;height:44px;flex:none;border-radius:50%;border:2px solid var(--owner,#c6ab73);overflow:hidden;position:relative;background-color:#18252b;background-image:url('../assets/epic/battle-atlas.png');background-size:600% auto;background-position:var(--portrait) 38%;box-shadow:0 0 0 3px #0e1920,0 4px 9px #0006}
.seat-portrait img{width:100%;height:100%;object-fit:cover;display:block}
.seat-person-copy{min-width:0}.seat-person strong{display:block;font:12px Georgia;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px}.seat-person small{display:block;margin-top:6px;font:8px system-ui;color:#b6c7cb;white-space:nowrap}.seat-person i{font-style:normal;color:var(--owner);font-weight:bold;margin-right:3px}
.seat-powers{display:flex;align-items:center;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;min-width:0;flex:1;scrollbar-width:thin;scrollbar-color:#a2aba744 transparent;touch-action:pan-x;padding:2px 1px 4px}
.seat-power{width:39px;height:49px;min-height:44px;flex:0 0 39px;padding:0;border:1px solid var(--power-tone,#c2af78);border-radius:5px;position:relative;overflow:hidden;background:#14242c;text-align:left;box-shadow:0 3px 5px #0005}.seat-power .power-illustration{display:block;width:100%;height:100%;object-fit:cover}.seat-power>b{position:absolute;top:2px;right:2px;font:8px system-ui;background:#081821d9;padding:1px 3px;border-radius:3px;color:#fff0bd}.seat-power>span:last-child{position:absolute;bottom:0;left:0;right:0;line-height:1.1;padding:3px 2px;font-size:6px;background:#081821e8;color:#f3e3bd;max-height:22px;overflow:hidden}
[data-tone=ruby]{--power-tone:#d98b77}[data-tone=sapphire]{--power-tone:#79bce2}[data-tone=diamond]{--power-tone:#dad5b4}
.seat-empty{font:9px/1.5 system-ui;color:#8ea2a7;padding-left:5px;border-left:1px solid #829b9e26}
.edge-hud:has(.table-seats) .edge-tools{bottom:94px}.edge-hud:has(.table-seats) .edge-hint{bottom:93px}.immersive-table:has(#march-help:not([hidden])) .table-seats{opacity:0;visibility:hidden;pointer-events:none}
.player-avatar-button{border:0;background:transparent;padding:0;flex:none;border-radius:50%}.player-avatar-button .seat-portrait{width:43px;height:43px}.player-heading .player-avatar-button{margin-right:2px}.player-public-cards{display:flex;gap:6px;overflow-x:auto;padding:12px 2px 4px}.player-public-cards .seat-power{width:50px;height:60px;flex-basis:50px}.player-public-cards:empty{display:none}.lobby-player .player-avatar-button .seat-portrait{width:42px;height:42px}
.profile-heading{display:flex;gap:20px;align-items:center;margin:22px 0}.profile-heading .seat-portrait{width:84px;height:84px}.profile-heading>div{min-width:0}.profile-heading .modal-title{font-size:32px;overflow-wrap:anywhere;margin-bottom:7px}.profile-heading>div>span{font-size:12px;color:var(--owner)}
.profile-photo-controls{padding:15px;background:#23363b55;border:1px solid #8b9d9b25;border-radius:13px;margin:0 0 22px}.profile-photo-controls>p{font-size:10px;color:#a9b9b9;margin:10px 0 0}.photo-picker{position:relative;display:inline-flex;cursor:pointer}.photo-picker:focus-within{outline:2px solid var(--gold);outline-offset:3px}.photo-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0}.profile-photo-controls .error{color:#ffb19a}
#avatar-draft:not([hidden]){display:flex;gap:14px;align-items:center;padding-top:16px}#avatar-draft>img{width:86px;height:86px;border-radius:50%;border:2px solid var(--owner)}#avatar-draft strong{font:16px Georgia}#avatar-draft p{font-size:11px;color:#a5b8ba;margin:7px 0}#avatar-draft .btn{margin:3px 4px 0 0}
.profile-resources{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.profile-resources>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;padding:12px 5px;background:#0a192457;border:1px solid #829f9b29;border-radius:12px;text-align:center}.profile-resources svg{width:19px;height:22px;color:#d5bb82}.profile-resources b{font:28px Georgia;color:#f1d79c}.profile-resources b small{font:12px system-ui;color:#7d999f}.profile-resources span{width:100%;font-size:9px;color:#a2b9bb;line-height:1.5}
.profile-pyramids{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin:14px 0 24px}.profile-pyramids span{display:flex;gap:5px;align-items:center;font:11px system-ui;color:var(--power-tone);padding:9px 11px;border:1px solid color-mix(in srgb,var(--power-tone),transparent 65%);border-radius:9px;background:#09203033}.profile-pyramids svg{width:21px}.profile-pyramids b{font:20px Georgia;margin-left:5px}
.profile-power-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-power-heading h3{font:26px Georgia;color:#e7ce98}.profile-power-heading>span{font-size:11px;color:#94b0b4}.profile-explanation{font-size:11px;color:#99afb0;line-height:1.6;margin:10px 0 17px}.profile-power-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.profile-power-card{position:relative;border:1px solid color-mix(in srgb,var(--power-tone),transparent 45%);border-radius:13px;overflow:hidden;background:#10232b;text-align:left;padding:0;transition:transform .2s}.profile-power-card:hover{transform:translateY(-3px);border-color:var(--power-tone)}.profile-power-card>.power-illustration{width:100%;height:140px;display:block;object-fit:cover}.profile-power-card>span:last-child{display:block;padding:14px}.profile-power-card small{font-size:8px;letter-spacing:.08em;color:var(--power-tone)}.profile-power-card strong{display:block;font:23px Georgia;color:#eee0c2;margin:8px 0}.profile-power-card em{display:block;font:11px/1.6 system-ui;color:#b0c2c2}
.profile-power-detail:not([hidden]){display:flex;position:relative;align-items:flex-start;gap:16px;margin:20px 0;padding:18px;background:#243a40;border:1px solid #b39d6966;border-radius:13px}.profile-power-detail>.power-illustration{width:75px;height:100px;flex:none;object-fit:cover;border-radius:6px}.profile-power-detail>div{padding-right:20px}.profile-power-detail small{font-size:8px;color:#b6cbbd}.profile-power-detail h3{font:24px Georgia;margin:6px 0}.profile-power-detail p{font-size:12px;line-height:1.7;color:#c0d2cc}.profile-power-detail>.icon-button{position:absolute;right:4px;top:4px;border:0;background:transparent;width:30px;height:30px}
.profile-capabilities{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0;font:10px system-ui;color:#9fb7b7}.profile-capabilities>span{padding:8px;border:1px solid #839f9d26;border-radius:8px}.profile-empty{grid-column:1/-1;padding:25px 20px;border:1px dashed #718b8677;border-radius:12px;color:#91aaa9;font-size:12px;line-height:1.7}
body #modal[data-kind=manual]{inset:0!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;border:0;border-radius:0!important;background:#101c25}
#modal[data-kind=manual]>.modal-close{top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:3}.manual-viewer{height:100dvh;display:flex;flex-direction:column}.manual-viewer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 64px 12px 22px;border-bottom:1px solid #9a9a7033}.manual-viewer h2{font:25px Georgia;color:#e4c99a}.manual-viewer small{font-size:8px;letter-spacing:.14em;color:#91aaaa}.manual-viewer nav{display:flex;gap:7px}.manual-support{font-size:10px;color:#9ab4b5;padding:8px 22px;background:#182a33}.manual-viewer iframe{display:block;width:100%;flex:1;min-height:0;border:0;background:#354149}.manual-missing,.manual-loading{padding:30px;color:#bbcdcb}.manual-missing h3{font:26px Georgia;margin-bottom:15px}.manual-missing p{line-height:1.7;margin-bottom:20px}
@media(max-width:1000px){.table-seat{width:240px;min-width:155px;gap:7px;padding:6px}.seat-person{flex-basis:46%;gap:6px}.seat-person-copy strong{font-size:10px;max-width:74px}.seat-person-copy small{font-size:7px}.seat-portrait{width:36px;height:36px}.seat-power{width:35px;flex-basis:35px;height:45px}.table-seats{gap:6px}}
@media(orientation:landscape) and (max-height:600px){.table-seats{bottom:max(3px,env(safe-area-inset-bottom));padding-bottom:3px}.table-seat{border-radius:11px}.edge-hud:has(.table-seats) .edge-tools{bottom:73px}.edge-hud:has(.table-seats) .edge-hint{bottom:75px}.manual-viewer>header{padding-top:10px;padding-bottom:8px}.manual-viewer h2{font-size:20px}.manual-support{padding-top:5px;padding-bottom:5px}}
@media(max-width:500px){.table-seats{left:12px;transform:none;max-width:calc(100% - 24px);width:auto}.table-seat{min-width:224px;max-width:224px}.seat-person{flex-basis:48%}.edge-hud:has(.table-seats) .edge-hint{bottom:125px}.edge-hud:has(.table-seats) .edge-tools{bottom:85px}.profile-heading{gap:15px}.profile-heading .seat-portrait{width:64px;height:64px}.profile-heading .modal-title{font-size:27px}.profile-resources{grid-template-columns:repeat(2,1fr)}.profile-power-card>.power-illustration{height:115px}.profile-power-card>span:last-child{padding:11px}.profile-power-card strong{font-size:20px}.profile-power-card em{font-size:10px}.profile-pyramids{gap:5px}.profile-pyramids span{padding:8px 5px;font-size:9px}.profile-pyramids svg{width:17px}.manual-viewer>header{align-items:flex-start;flex-direction:column;gap:7px;padding:12px 55px 9px 14px}.manual-viewer nav .btn{font-size:10px;padding:8px 12px}.manual-support{padding:8px 14px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.profile-power-card{transition:none}}
