@layer foundation{@keyframes workspace-panel-enter{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.workspace-product-heading{display:flex;align-items:center;justify-content:center;min-width:0}.workspace-product-heading .workspace-product-trigger{display:grid;place-items:center;flex:none;width:28px;height:32px;margin-inline:2px 0;padding:0;border:0;background:transparent;color:var(--kit-muted-foreground)}.workspace-product-trigger:not(:disabled):is(:hover,[aria-expanded=true]){color:var(--kit-foreground)}.workspace-product-trigger svg{width:15px;height:15px}@media(max-width:780px),(pointer:coarse){.workspace-product-heading .workspace-product-trigger{width:44px;height:44px;min-height:44px;margin-inline:-6px -9px}}#player:is(.room-workspace,.replay-workspace) #gameViewport:not(:is(:fullscreen,:-webkit-full-screen)){flex:1;box-sizing:border-box;min-height:0;min-width:0;width:100%!important;height:auto!important;max-height:var(--workspace-game-height,none);aspect-ratio:auto}#player:is(.room-workspace,.replay-workspace) #gameViewport[data-workspace-stacked]:not(:is(:fullscreen,:-webkit-full-screen)){flex:none;height:var(--workspace-game-height,auto)!important;aspect-ratio:4/3}#player:is(.room-workspace,.replay-workspace):not(.touch-layout-edit,.pc98-room-touch-active) :is(.touch-hud,.touch-escape,.touch-restart,.touch-joystick,.touch-direct-surface,.touch-layout-safe-zone,.touch-layout-reserved-zone,.touch-thprac-input,.touch-thprac-tab,.touch-thprac-menu,.touch-utility-row,.touch-help-open){display:none!important}#player.room-workspace.pc98-room-touch-active .touch-hud{display:flex}#player.room-workspace.pc98-room-touch-active .touch-escape{display:block}#player.room-workspace.pc98-room-touch-active:not(.touch-layout-custom) .touch-hud{position:fixed!important;inset:auto!important;left:var(--pc98-touch-left)!important;top:var(--pc98-touch-top)!important;width:var(--pc98-touch-width)!important;height:var(--pc98-touch-height)!important;z-index:31!important}#player.room-workspace.pc98-room-touch-active:not(.touch-layout-custom) .touch-escape{position:fixed!important;left:calc(var(--pc98-touch-left) + 8px)!important;top:calc(var(--pc98-touch-top) + 8px)!important}#player.room-workspace.pc98-room-touch-active:not(.touch-layout-custom) .touch-joystick:not([hidden]){position:fixed;left:calc(var(--pc98-touch-left) + 10px);top:calc(var(--pc98-touch-top) + var(--pc98-touch-height) - 122px);bottom:auto}#player.room-workspace.pc98-room-touch-active :is(.touch-direct-surface:not([hidden]),.touch-layout-safe-zone){position:fixed;inset:auto;left:var(--pc98-touch-left);top:var(--pc98-touch-top);width:var(--pc98-touch-width);height:var(--pc98-touch-height)}#player.room-workspace.pc98-room-touch-active.touch-layout-custom .touch-hud{display:block}#player.room-workspace.pc98-room-touch-active #gameViewport{z-index:35;pointer-events:none}#player.room-workspace.pc98-room-touch-active #gameFrame{pointer-events:none!important}#player.room-workspace.pc98-room-touch-active .room-workspace-viewport-tools{pointer-events:auto}#player.room-workspace.pc98-room-touch-active .room-workspace-viewport-tools{position:fixed;z-index:40;right:auto;bottom:auto;left:calc(var(--pc98-touch-left) + var(--pc98-touch-width) - 108px);top:max(calc(var(--pc98-touch-top) + 8px),8px)}}@layer components{body:has(.book-directory){--lobby-paper:var(--book-ink);--lobby-muted:var(--book-muted);--lobby-pink:var(--book-accent-soft);--lobby-wine:var(--book-accent)}.lobby-main.book-directory{display:block;width:100%;max-width:var(--launcher-layout-width);min-width:0;margin:0 auto;padding:12px var(--launcher-layout-gutter) max(24px,env(safe-area-inset-bottom));box-sizing:border-box;color:var(--book-ink)}.book-directory .lobby-intro{margin:0 0 12px;padding:0;min-width:0}.book-directory .lobby-support-links{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:0}.book-directory .lobby-support-link{min-height:40px;padding-block:0;font-size:12px;color:var(--book-muted)}.book-directory .lobby-directory-body{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}.book-directory .lobby-rooms-column{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}.book-directory .lobby-room-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0;min-width:0}.book-directory .lobby-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;min-width:0;width:auto}.book-directory .lobby-actions .lobby-button{min-width:0;min-height:44px;white-space:nowrap}.book-directory .lobby-actions .lobby-button:not(.lobby-primary),.book-directory .book-room-filter-trigger{background:var(--kit-card);border-color:var(--kit-border);color:var(--kit-foreground)}.book-directory .lobby-actions .lobby-button:not(.lobby-primary):not(:disabled):hover,.book-directory .book-room-filter-trigger:hover{background:var(--kit-accent)}.book-room-filter-trigger{min-height:44px;gap:6px;font-size:12px}.book-room-filter-trigger svg{width:16px;height:16px}.book-directory .book-room-filter-trigger[data-active=true]{background:var(--kit-accent);border-color:var(--kit-foreground);color:var(--kit-foreground)}.book-directory .lobby-list-surface{position:relative;display:flex;flex-direction:column;min-width:0;min-height:280px;border:1px solid var(--book-border);border-radius:8px;background:var(--book-surface);overflow:hidden}.book-directory .lobby-refresh[data-loading=true] svg{animation:lobby-refresh-loading 1.1s linear infinite}@keyframes lobby-refresh-loading{to{transform:rotate(360deg)}}.book-directory .lobby-room-list{flex:1;min-height:0}.book-directory .lobby-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:0;padding:32px 20px;border:0;background:transparent;color:var(--book-muted);text-align:center}.book-directory .lobby-empty h2{margin:0;font-size:17px;color:var(--book-ink)}.book-directory .lobby-empty p{margin:0;max-width:36em}.book-directory .lobby-directory-count{flex:none;margin:auto 0 0;padding:8px 14px;font-size:12px;line-height:1.5;color:var(--book-muted);text-align:right}.book-directory>.lobby-notice,.book-directory>.lobby-membership{margin:0 0 12px;padding:12px;border:1px solid var(--book-border);border-radius:8px;background:var(--book-surface);color:var(--book-ink);font-size:12px}.book-directory .lobby-list-surface .lobby-connection-warning:not([hidden]){box-sizing:border-box;width:100%;max-width:none;flex:none;margin:0;padding:16px 20px;border:0;border-radius:0;border-bottom:1px solid var(--book-border);background:transparent;color:var(--book-ink);font-size:13px}.book-directory .lobby-list-surface[data-has-rooms=false] .lobby-connection-warning:not([hidden]){flex:1;align-content:center;justify-content:center;flex-direction:column;gap:16px;border:0;text-align:center}.book-directory .lobby-list-surface[data-has-rooms=false] .lobby-connection-warning>div{flex:0 1 auto}.book-directory .lobby-list-surface[data-has-rooms=false] .lobby-connection-warning strong{justify-content:center}.book-directory .lobby-list-surface .lobby-connection-icon{display:block;width:36px;height:36px;margin:0 0 10px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.book-directory .lobby-list-surface[data-has-rooms=false] .lobby-connection-icon{margin-inline:auto}.book-directory .lobby-list-surface .lobby-connection-warning p{overflow-wrap:anywhere;color:var(--book-muted)}.book-lobby-games{--lobby-game-size:48px;display:flex;align-items:center;gap:6px;min-width:0}.book-lobby-icon-strip{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}.book-sidebar.lobby-game-sidebar{display:none}.book-lobby-cover{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:4px;overflow:hidden;background:var(--book-raised);font-size:10px}.book-lobby-cover img{display:block;width:100%;height:100%;object-fit:cover}.book-lobby-cover>svg{width:18px;height:18px}.book-lobby-copy{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0;font:400 10px/1.4 var(--ui-font)}.book-lobby-name{display:flex;align-items:baseline;gap:4px;min-width:0}.book-lobby-copy small{flex:none;color:var(--kit-muted-foreground);font-size:10px}.book-lobby-copy strong,.book-lobby-subtitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-lobby-copy strong{font-size:11px;font-weight:600}.book-lobby-subtitle{color:var(--kit-muted-foreground)}.book-lobby-check{display:grid;place-items:center;flex:none;box-sizing:border-box;width:12px;height:12px;border:2px solid var(--kit-muted-foreground);border-radius:50%;background:transparent;color:var(--kit-success);transition:border-color .28s ease}.book-lobby-check svg{display:block;width:16px;height:16px;max-width:none;stroke-width:3.5;stroke-dasharray:24;stroke-dashoffset:24;opacity:0;translate:-2px -6px;transform:scale(.7);transition:opacity .18s ease,transform .42s cubic-bezier(.2,.7,.2,1),stroke-dashoffset .42s cubic-bezier(.2,.7,.2,1)}.book-lobby-check[data-checked=true]{border-color:transparent}.book-lobby-check[data-checked=true] svg{opacity:1;transform:scale(1);stroke-dashoffset:0}.book-lobby-favorite{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--kit-muted-foreground)}.book-lobby-favorite svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linejoin:round}.book-lobby-favorite:is([aria-pressed=true],[data-state=checked]){color:var(--kit-warning)}.book-lobby-favorite:is([aria-pressed=true],[data-state=checked]) svg{fill:currentColor}.book-lobby-picker{--ui-selection-max-height:560px;width:min(400px,var(--radix-dropdown-menu-content-available-width, calc(100vw - 24px) ));overscroll-behavior:contain;scrollbar-gutter:stable}.book-lobby-menu-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;min-height:48px;min-width:0;flex:none}.book-lobby-menu-row[data-selected=true]{background:var(--kit-accent);border-radius:4px}.book-lobby-menu-choice{gap:8px;min-width:0}.book-lobby-menu-choice .book-category-game-identity{flex:1}.book-lobby-menu-choice .book-lobby-cover{width:28px;height:28px}.book-lobby-tile{position:relative;flex:none;width:var(--lobby-game-size);height:var(--lobby-game-size)}.book-lobby-icon{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:var(--lobby-game-size);height:var(--lobby-game-size);margin:0;padding:4px;border:1px solid transparent;border-radius:6px;background:transparent}.book-lobby-icon[aria-pressed=true]{border-color:var(--book-border);background:var(--book-accent-soft)}.book-lobby-icon .book-lobby-cover{width:32px;height:32px}.book-lobby-tile-toggle{position:absolute;top:0;right:0;z-index:2;display:grid;justify-content:end;align-content:start;width:24px;height:24px;min-height:24px;padding:1px;border:0;background:transparent}.book-lobby-short{position:absolute;right:1px;bottom:1px;z-index:1;display:grid;place-items:center;min-width:13px;height:13px;padding-inline:1px;border-radius:2px;background:var(--kit-card);color:var(--kit-foreground);font:600 10px/1 var(--kit-font);pointer-events:none}@media(min-width:781px){html:has(.lobby-page),body:has(.lobby-page){height:100%;overflow:hidden}.launcher-page-surface[data-page=lobby]{height:var(--launcher-content-height);max-width:none;min-height:0;overflow:hidden}.lobby-main.book-directory{display:flex;flex-direction:column;height:100%;max-width:none;padding:0;overflow:hidden}.book-directory .lobby-directory-body{--lobby-column-gutter:clamp(20px,3.9vw,56px);display:grid;flex:1;grid-template:"sidebar rooms" minmax(0,1fr) / var(--book-rail-width) minmax(0,1fr);gap:0;overflow:hidden}.book-sidebar.lobby-game-sidebar{display:flex;grid-area:sidebar}.book-directory .lobby-library{display:none}.book-directory .lobby-rooms-column{grid-area:rooms;padding:12px var(--lobby-column-gutter) 24px;overflow:hidden}.book-directory .lobby-intro{margin:0}.book-directory .lobby-list-surface{flex:1;min-height:0}.book-directory .lobby-room-list{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}@media(max-width:780px){html:has(.lobby-page),body:has(.lobby-page){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}.book-directory .lobby-room-tools{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px}.book-directory .lobby-actions{display:flex;justify-content:flex-end;flex-wrap:nowrap;gap:6px;width:auto}.book-directory .lobby-actions .lobby-button{flex:1 1 0;width:auto;padding-inline:4px;font-size:12px}.book-directory .lobby-actions .lobby-refresh{width:44px;flex:0 0 44px}}.book-directory .lobby-actions .lobby-compact-replay{display:none}@media(max-width:780px){.book-directory :is(.book-room-filter-trigger,.lobby-actions .lobby-labeled-action){width:44px;flex:0 0 44px;padding-inline:0;justify-content:center}.book-directory :is(.book-room-filter-trigger,.lobby-labeled-action)>span{display:none}.book-directory .lobby-actions .lobby-compact-replay{display:inline-flex;flex:0 0 44px}}}.lobby-game-sidebar .book-lobby-sidebar-check,.book-lobby-menu-row .book-lobby-menu-check{position:absolute;z-index:1;inset:-1px auto auto -3px;display:grid;width:20px;height:20px;min-height:0;place-items:center;border:0;background:transparent;padding:0}.book-lobby-menu-row .book-lobby-menu-check{inset:0 auto auto 0;width:24px;height:24px}.book-lobby-sidebar-check .book-lobby-check,.book-lobby-menu-check .book-lobby-check{background:var(--kit-card)}:is(.book-lobby-sidebar-check,.book-lobby-menu-check):is(:focus-visible,[data-highlighted]){outline:2px solid var(--kit-ring);outline-offset:-2px}.book-lobby-menu-row .book-lobby-menu-choice{padding-inline:11px 4px}.book-lobby-menu-row .book-lobby-menu-all .book-lobby-cover{width:32px;height:32px}.book-directory :is(.lobby-actions .lobby-button,.book-room-filter-trigger,.lobby-room-row>.lobby-join){font-family:var(--kit-font);font-weight:600;letter-spacing:0}.lobby-page .book-directory .lobby-button:active{transform:none}.book-directory .ui-button.book-lobby-favorite[aria-pressed=true]{background:transparent;border-color:transparent;color:var(--kit-warning)}@media(prefers-reduced-motion:reduce){.book-lobby-check,.book-lobby-check svg{transition:none}}@media(prefers-reduced-motion:reduce){.book-directory .lobby-refresh[data-loading=true] svg{animation:none}}.less-motion .book-directory .lobby-refresh[data-loading=true] svg{animation:none}.less-motion .book-lobby-check,.less-motion .book-lobby-check svg{transition:none}.book-lobby-icon>.book-lobby-cover{transition:scale .38s cubic-bezier(.22,.7,.2,1)}.book-lobby-icon:is(:hover,:focus-visible):not(:disabled)>.book-lobby-cover{scale:1.06}@media(prefers-reduced-motion:reduce){.book-lobby-icon>.book-lobby-cover{transition:none;scale:none}}.less-motion .book-lobby-icon>.book-lobby-cover{transition:none;scale:none}
