#netOpen{margin:9px 0 0 8px;background:#385875;color:white}
#netPage{max-width:1120px;margin:0 auto}#netPage [hidden]{display:none!important}
.net-top,.net-invite,.net-meta,.net-startrow{display:flex;align-items:center;justify-content:space-between;gap:12px}
#netPage h2,#netPage h3{font:bold italic clamp(29px,5vw,50px)/1.08 Georgia,serif;margin:0}
#netPage h3{font-size:26px}#netStatus{margin:5px 0;min-height:1.3em;color:#8a3b34}
#netEntrance{max-width:800px}#netPage input:not([type=checkbox]),#netPage select{border:1.5px solid #414956;background:#fffaf0;border-radius:4px;padding:7px 10px;color:#27313f;font:inherit;max-width:100%}
#netCode,#netRoomCode{font:700 22px ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase}#netCode{width:9em}
.net-entry-row,.net-lobby-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.net-entry-row article,#netPage fieldset{padding:16px;background:#fbf7ed;border:1.5px solid #60646b;border-radius:5px}
.net-entry-row article{display:grid;gap:12px;align-content:start}.net-entry-row button{justify-self:start}
.net-invite{justify-content:flex-start;border-bottom:2px solid;padding-bottom:12px}#netCapacity{margin-left:auto}
.net-seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.net-seat{position:relative;min-height:74px;padding:9px 9px 8px 63px;background:#fff9ee;border:1px solid #8f9088;border-top:4px solid var(--seat,#aaa);border-radius:4px;overflow-wrap:anywhere}
.net-seat canvas{width:58px;height:46px;position:absolute;left:3px;top:10px;object-fit:contain}
.net-seat b,.net-seat small{display:block}.net-seat small{color:#435160;font-size:12px}
.net-seat.empty{padding:20px 8px;color:#78796e;border-style:dashed;background:transparent;text-align:center}
.net-seat button{padding:2px 6px;font-size:12px;margin-top:2px}
#netPage fieldset{min-width:0;display:flex;align-content:flex-start;align-items:center;flex-wrap:wrap;gap:8px}
#netPage legend{font:italic bold 21px Georgia,serif}.net-startrow{justify-content:flex-end}
#netMoves,#netKeys{font-size:14px;margin:3px 0}
.net-meta{padding:5px 2px}.net-meta strong{font:bold 27px Georgia,serif}.net-meta span{font-weight:bold}
#netWorld{width:100%;height:clamp(205px,52dvh,530px);display:block;background:#efe8d8;border:2px solid #344050;border-radius:4px;touch-action:none}
.net-board{display:flex;gap:5px;flex-wrap:wrap;padding:6px 0}.net-board span{font:600 13px system-ui;border-left:4px solid var(--seat);padding:2px 5px;background:#f9f5e9}
#netTouch{display:none;touch-action:none;user-select:none;-webkit-touch-callout:none}#netTouch button,.net-stick{touch-action:none;user-select:none}
.net-stick{border-radius:50%;width:85px;height:85px;background:#e4ddc9;border:2px solid #465161;display:grid;place-items:center;flex:none}
.net-stick i{width:39px;height:39px;border-radius:50%;background:#68869b;border:2px solid #344755;pointer-events:none}
.net-buttons{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:74%}
.net-buttons button{min-height:46px;min-width:49px;padding:4px 7px;border-radius:10px;border:2px solid #343d49;background:#f0e8d8;font-weight:bold}
.net-buttons .armed{background:#ffd486}#netResult table{width:100%;text-align:left;border-collapse:collapse;margin:14px 0}#netResult td,#netResult th{padding:6px;border-bottom:1px solid #aaa}
#netPage{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#netPage input{user-select:text;-webkit-user-select:text}
@media(pointer:coarse),(max-width:720px){#netTouch{display:flex;align-items:center;justify-content:space-between;margin:5px 0}#netKeys{display:none}.net-seats{grid-template-columns:repeat(2,minmax(0,1fr))}.net-entry-row,.net-lobby-controls{grid-template-columns:1fr}.net-top h2{font-size:27px!important}}
@media(max-height:530px) and (orientation:landscape){body.net-playing header,body.net-playing #netStatus:empty,body.net-playing #netKeys{display:none}body.net-playing main{padding:3px 8px}body.net-playing .net-top{float:right;margin-left:8px}body.net-playing .net-top h2{display:none}#netWorld{height:calc(100dvh - 148px);min-height:138px}#netTouch{margin:0}.net-stick{height:62px;width:62px}.net-board{padding:2px 0}.net-board span{font-size:11px}}

@media (pointer:coarse){#netPage input:not([type=checkbox]),#netPage select{font-size:max(16px,1rem)}}

.net-self{min-width:0;flex:1}
#netLocal{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.net-ink{display:flex;align-items:center;gap:5px;line-height:1.1;color:#41316b;font:700 13px/1.2 system-ui,sans-serif}
.net-ink progress{appearance:none;-webkit-appearance:none;width:clamp(24px,9vw,94px);min-width:14px;height:9px;border:1px solid #473b55;border-radius:3px;overflow:hidden;background:#e6dfcf}
.net-ink progress::-webkit-progress-bar{background:#e6dfcf}
.net-ink progress::-webkit-progress-value{background:#7956ae}
.net-ink progress::-moz-progress-bar{background:#7956ae}
.net-ink.armed progress::-webkit-progress-value{background:#f3ad2f}
.net-ink.armed progress::-moz-progress-bar{background:#f3ad2f}
#netInkValue{white-space:nowrap;font-variant-numeric:tabular-nums}
.net-buttons button[data-n="ult"]{background:#e9dcfa;border-color:#57406d;color:#342442}
.net-buttons button[data-n="ult"].armed{background:#ffcf51;color:#39270a;border-color:#694b19}
@media(max-height:530px) and (orientation:landscape){#netWorld{height:calc(100dvh - 162px)}}
