#onlineDeck{display:block;width:min(100%,360px);padding:12px;background:#28232e;color:white;border:1px solid #766779}#inviteCode{text-transform:uppercase}.online-actions{display:flex;flex-wrap:wrap;align-items:end;gap:18px;margin:20px 0}.online-actions button{min-height:48px;border-radius:5px}#joinMatch,#readyMatch{background:#32cc78}#resumeMatch,#onlineAbilities{background:#16dcff}#forfeitOnline{background:#d82c57;color:white}.online-mat{background:#17141d;border:2px solid #ff2ca8;padding:16px;margin:20px 0}.online-mat h3{margin:0 0 12px}.online-cards{display:flex;gap:12px;overflow-x:auto;padding:6px 0 18px}.online-cards>button,.online-cards>figure{flex:0 0 110px;margin:0;padding:4px;background:#211b29;border:2px solid transparent;color:white}.online-cards img{width:100%;display:block}.online-cards figcaption{font-size:12px}.online-cards button:disabled{opacity:.7}.online-zone{margin-top:12px}#onlineChoices{padding:16px;background:#17141d}#onlineChoices:empty{display:none}#onlineChoices fieldset{margin:16px 0;border:1px solid #766779}#onlineChoices label{display:flex;align-items:center;gap:12px}#onlineChoices input{display:inline}#onlineChoices button{margin:10px 14px 10px 0;min-height:44px}.online-mat.active{border-color:#ffd21c}#onlineResult{color:#ffd21c;font-weight:900;font-size:22px}.online-cards img{animation:online-arrive .18s ease-out}@keyframes online-arrive{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){main{padding:16px}.online-cards>button,.online-cards>figure{flex-basis:88px}.online-actions{gap:16px}.online-actions>button{width:100%}.online-mat{padding:10px}header h1{font-size:24px}}@media(prefers-reduced-motion:reduce){.online-cards img{animation:none}}

.open-lobby{border:2px solid #16dcff;padding:18px;margin:24px 0}.open-match-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #766779;padding:16px 0}.open-match-row button{flex-shrink:0;min-height:44px;background:#32cc78}#createOpenMatch{background:#32cc78}#playCpu{background:#16dcff}#cancelWaitingMatch{background:#d82c57;color:white;margin:12px 18px}#cpuLevel{display:block;background:#28232e;color:white;padding:12px;min-width:160px}@media(max-width:600px){.open-match-row{align-items:start;flex-direction:column}.open-match-row button{width:100%}}

#createGetDownMatch{background:#ff2ca8;color:#09090b}

body.online-match-active > header,body.online-match-active > .crew-bar { display:none!important; }
body.online-match-active main { padding:0; }
body.online-match-active #onlineRoom > h2,body.online-match-active #roomPlayers,body.online-match-active #connectionStatus,body.online-match-active #onlineResult,body.online-match-active #onlineStatus,body.online-match-active #onlineRoom > p { display:none; }
#onlineBoard { position:fixed; inset:0; z-index:100; background:#09090b; }
#onlineArena { width:100%; height:calc(100dvh - 48px); margin-top:48px; border:0; display:block; }
.online-matchbar { position:absolute; inset:0 0 auto; min-height:48px; display:flex; align-items:center; gap:12px; padding:4px 12px; background:#111019; border-bottom:2px solid #ff2ca8; color:#ffd21c; font:700 12px system-ui; }
.online-matchbar button { min-height:38px; padding:6px 10px; }
.online-matchbar details { margin-left:auto; }
.online-matchbar details[open] { position:absolute; right:10px; top:4px; padding:10px; background:#111019; z-index:2; }
.online-matchbar code { display:block; padding:8px 0; color:#16dcff; }
@media(max-width:850px){.online-matchbar{gap:6px;font-size:10px;padding:2px 6px}.online-matchbar button{font-size:10px;padding:4px 6px}.online-matchbar details{font-size:9px}}
#matchConnection { max-width:24vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media(pointer:coarse) and (orientation:landscape){
 body.online-match-active.online-mobile-menu-ready .online-matchbar{display:none}
 body.online-match-active.online-mobile-menu-ready #onlineArena{height:100dvh;margin-top:0}
}

/* The swipe target belongs to the top document so browser chrome can collapse. */
.network-fullscreen-arrow{display:none}
@media(pointer:coarse) and (orientation:landscape){
 html:has(body.online-match-active.online-mobile-menu-ready){overflow-y:auto!important}
 body.online-match-active.online-mobile-menu-ready{min-height:calc(100svh + 240px);overflow-y:auto!important}
 body.online-match-active.online-mobile-menu-ready .network-fullscreen-arrow:not([hidden]){display:block;position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));z-index:101;width:125px;min-height:64px;padding:4px;background:#111b;color:#ffd21c;border:0;font:900 12px system-ui;touch-action:pan-y}
 .network-fullscreen-arrow span{display:block}
 .network-fullscreen-arrow span:first-child{font-size:26px;line-height:1}
}

/* Redundant match status is not part of the game visual. */
#matchTurnStatus,#matchConnection{display:none!important}

.online-matchbar details{display:none!important}

/* Match exit remains available through Only Toys Quit. */
#returnOnline{display:none!important}

@font-face{font-family:QuitGraffiti;src:url("assets/fonts/PermanentMarker-Regular.ttf") format("truetype");font-style:normal;font-weight:400 900;font-display:swap}
#forfeitOnline{font-family:QuitGraffiti,Impact,sans-serif!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.02em;text-shadow:1px 1px 0 #151019;-webkit-text-stroke:.2px currentColor}
/* Lobby messages under the pressed button (on a phone the status line above is off screen). */
.lobby-note{margin:10px 0 0;padding:10px 12px;border-left:4px solid #ffd21f;background:#1c1a24;color:#f5f2fa;font-weight:700;line-height:1.4}
/* Locked until the 5 lessons are finished (owner, 2026-10-26). */
.lessons-lock{margin:24px 0;padding:28px 20px;border:4px solid #ffd21f;border-radius:10px;background:#1c1a24;text-align:center}
.lessons-lock h2{margin:0 0 14px;color:#ffd21f;font-size:clamp(30px,8vw,48px);line-height:1.1}
.lessons-lock p{font-size:20px;line-height:1.5;margin:0 0 12px}
.lessons-lock-count{color:#ff2e93;font-weight:900;font-size:24px}
.lessons-lock-go{display:block;margin:18px auto 0;max-width:360px;padding:18px;border-radius:8px;background:#ffd21f;color:#111;font-weight:900;font-size:20px;text-decoration:none}
.lessons-lock .hazard-tape{display:flex;align-items:center;justify-content:center;height:58px;margin:-8px -34px 26px;transform:rotate(-3deg);background:repeating-linear-gradient(-45deg,#ffd21f 0 22px,#111 22px 44px);border-block:4px solid #111;box-shadow:0 6px 14px rgba(0,0,0,.55)}
.lessons-lock .hazard-tape b{padding:6px 14px;background:#ffd21f;color:#111;border:3px solid #111;font-weight:900;font-size:clamp(16px,4.6vw,24px);letter-spacing:1px;white-space:nowrap}
.lessons-lock{overflow:hidden}
