/* One portal presentation. Legacy mood preferences remain data, never palette overrides. */
:root{--bg:#151b23;--surface:#202934;--raised:#273240;--line:#34404e;--text:#e5ebf1;--muted:#a7b7c6;--accent:#92c9ea;--accent-ink:#112531;--accent-soft:rgba(146,201,234,.1);--green:#b4db85;--live:#92c9ea;--ok:#b4db85;--warn:#edc17a;--danger:#ffaaaa;--info:#92c9ea;--focus:#92c9ea;--chip:#273240;--control-line:#6b8094;--f-display:Arial,Helvetica,sans-serif;--f-body:Arial,Helvetica,sans-serif;--f-mono:ui-monospace,monospace;--display-case:none;--display-track:normal;--display-weight:500;--r-s:3px;--r-m:3px;--r-l:3px;--border-w:1px;--shadow:none;--tile-h:150px;color-scheme:dark}
.library-heading{display:block;color:#b9dcf2;font-size:18px;letter-spacing:.13em;font-weight:500}.account,.owner-link{color:var(--accent);font-size:12px}
[hidden]{display:none!important}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font:14px/1.5 var(--f-body);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}input,select,textarea{max-width:100%;background:var(--raised);border:1px solid var(--control-line);border-radius:var(--r-s);padding:9px 12px;min-height:44px}input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--accent)}a{color:var(--accent)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--f-display);font-weight:var(--display-weight);text-transform:var(--display-case);letter-spacing:var(--display-track);line-height:1.15;text-wrap:balance}h1{font-size:27px}h2{font-size:18px}h3{font-size:16px}button,a,input,select{-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.55}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}a,button,p,h1,h2,h3{overflow-wrap:anywhere}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted);margin-bottom:8px}.row,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spread{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:14px;min-width:0}.skip-link{position:absolute;left:16px;top:-100px;background:var(--accent);color:var(--accent-ink);padding:12px;z-index:100}.skip-link:focus{top:12px}.top{position:relative;z-index:10;border-bottom:1px solid #0d1118;background:#11161d}.top-inner{max-width:none;margin:0 auto;display:flex;align-items:center;gap:28px;min-height:78px;padding:8px 30px;font:13px Arial,Helvetica,sans-serif}.logo-plate{background:none;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;border-radius:0}.logo-plate img{display:block;width:89px;height:auto;max-width:none;opacity:1}.topnav{display:none;align-items:center;gap:4px}.topnav a,.tabbar a{color:var(--muted);text-decoration:none;font-weight:500;display:flex;gap:7px;align-items:center;min-height:44px;padding:8px 11px;font-size:12px;border-radius:var(--r-s)} .topnav a[aria-current=page]{background:var(--raised);color:var(--text)}.topnav a span{display:none}.top-right{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto;min-width:0;flex-wrap:wrap}.account{max-width:180px;font-size:12px;min-height:44px;display:flex;align-items:center}.owner-link{min-height:44px;display:flex;align-items:center}.page{max-width:1500px;padding:28px 34px 100px;margin:0 auto;display:flex;flex-direction:column;gap:22px;outline:none}.hello{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}.hello h1{margin-bottom:10px}.hello>div{min-width:0;flex:1}.panel{background:var(--surface);border:var(--border-w) solid var(--line);border-radius:var(--r-l);padding:16px;min-width:0}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:44px;max-width:100%;padding:8px 13px;border:var(--border-w) solid var(--control-line);background:var(--raised);color:var(--text);border-radius:var(--r-m);font-weight:500;cursor:pointer;text-decoration:none;line-height:1.25}button:hover:enabled,.button:hover:enabled{border-color:var(--muted)}.button.primary{background:var(--green);border-color:var(--green);color:#182716;font-weight:700}.hello>.button{min-height:44px;padding:8px 13px}.chip,.version{display:inline-flex;align-items:center;padding:4px 9px;max-width:100%;background:var(--chip);border-radius:3px;font-size:.75rem;font-weight:700}.version{border-radius:3px;font-family:var(--f-mono);overflow-wrap:anywhere}.section{display:flex;flex-direction:column;gap:16px}.section-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-end;flex-wrap:wrap}.shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px}.tile{display:flex;flex-direction:column;gap:10px;color:var(--text);background:var(--surface);border:var(--border-w) solid var(--line);border-radius:var(--r-l);padding:8px;text-decoration:none;min-width:0;transition:transform .15s ease,border-color .15s ease}.tile:hover{transform:translateY(-3px);border-color:var(--accent)}.art{aspect-ratio:1672/941;overflow:hidden;border-radius:var(--r-m);background:var(--raised);width:100%}.art img{display:block;width:100%;height:100%;object-fit:cover}.art-fallback{display:grid;place-items:center;padding:20px;min-height:160px;font-weight:700}.tile-copy{display:flex;flex-direction:column;gap:8px;padding:4px 6px;flex:1}.tile-action{display:flex;justify-content:space-between;padding:8px 6px;color:var(--accent);font-weight:700;font-size:.875rem}.live-columns,.room-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px dashed var(--line);border-radius:var(--r-m);padding:25px 18px;text-align:center}.empty-symbol{font-size:2.5rem;line-height:1.2;color:var(--accent)}.join-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;min-width:0}.join-form label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;flex:1;min-width:min(100%,150px)}.join-form input{width:100%;min-width:0;padding:11px 12px;min-height:44px;background:var(--raised);border:1px solid var(--control-line);border-radius:var(--r-s);font-family:var(--f-mono);font-size:.9rem}.field-error{color:var(--danger);font-size:.875rem;flex-basis:100%}.notice{background:var(--accent-soft);border:1px solid var(--accent);padding:13px 16px;border-radius:var(--r-m);overflow-wrap:anywhere}.notice.error{border-color:var(--danger);color:var(--text);background:var(--surface)}.notice .button{margin:10px 0 0 10px}.gate{max-width:650px;margin:50px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:24px;padding:40px 28px}.game-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:12px}.game-copy{padding:10px 12px 18px}.game-copy .button{align-self:flex-start}.hero-art{aspect-ratio:1672/941}.seats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.seat{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:var(--r-m);padding:14px;min-width:0;flex-wrap:wrap}.avatar{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:800}.seat-name{min-width:0;flex:1}.seat-name a{font-weight:700;color:var(--text);text-decoration:none}.ready-label{font-size:.8rem;color:var(--muted);padding:4px 8px;background:var(--chip);border-radius:99px}.is-ready .ready-label{color:var(--ok)}.loading{display:flex;flex-direction:column;gap:12px;color:var(--muted);padding:16px 0}.skeleton{height:80px;border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line)}.tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:10;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0)}.tabbar a{min-width:0;justify-content:center;flex-direction:column;gap:0;font-size:.75rem;min-height:62px;border-radius:0;padding:8px 2px}.tabbar a span{font-size:1.25rem;line-height:1.3}.tabbar a[aria-current=page]{color:var(--accent);background:var(--accent-soft)}.game-stage{position:fixed;inset:0;background:var(--bg);z-index:50;display:flex;flex-direction:column}.stage-toolbar{background:#1c232d;display:flex;justify-content:space-between;gap:12px;padding:10px 16px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line)}.stage-toolbar>div:first-child{min-width:0;flex:1}.game-stage iframe{border:0;display:block;width:100%;min-height:0;flex:1;background:var(--bg)}
@media(min-width:900px){.topnav{display:flex}.tabbar{display:none}.live-columns{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.room-columns{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}.game-detail{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center}.hero-art{align-self:stretch;min-height:310px}.page{padding-bottom:60px}.shelf{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1100px){.shelf{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:599px){.top-inner{gap:15px;padding:8px 15px;min-height:64px;align-items:center}.logo-plate{padding:0;min-height:0}.logo-plate img{width:66px}.top-right{gap:8px;max-width:100px}.account{max-width:100px;font-size:10px;min-height:30px}.owner-link{font-size:10px;min-height:30px}.library-heading{font-size:14px}.page{padding-inline:14px;gap:22px}.panel{padding:18px}.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{padding:6px}.tile-copy{padding:2px;gap:6px}.tile h3{font-size:.95rem}.tile .version{font-size:.65rem}.tile .small{font-size:.72rem}.tile-action{padding:4px 2px;font-size:.8rem}.gate{padding:30px 18px;margin:20px 0}.seat{padding:10px;gap:8px}.ready-label{margin-left:50px}.game-detail{padding:10px}.game-copy{padding:6px}.stage-toolbar{padding:8px}.stage-toolbar .small{font-size:.72rem}.stage-toolbar .button{font-size:.8rem;padding:8px 10px}.game-stage iframe{min-height:50vh}}@media(max-width:359px){.shelf{grid-template-columns:minmax(0,1fr)}.hello{align-items:stretch}.top-right{max-width:170px}.join-form{display:grid;grid-template-columns:minmax(0,1fr)}.join-form button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.tile:hover{transform:none}}

@media(max-width:599px){.hello{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}.hello>div{width:100%}.hello .join-form{width:100%}}

#main{scroll-margin-top:100px}

/* Member profile and holder-only editor use the shared presentation tokens. */
.profile-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start}.profile-heading{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.profile-heading>div{flex:1;min-width:0}.profile-avatar{width:64px;height:64px;font-size:1.5rem}.profile-background{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:var(--r-m)}.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere}.profile-games{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}.profile-games li{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.profile-field{display:flex;flex-direction:column;gap:6px;min-width:0}.profile-field input,.profile-field textarea,.profile-field select{width:100%;min-width:0;max-width:100%;padding:10px 12px;border:1px solid var(--control-line);background:var(--raised);color:var(--text);border-radius:var(--r-s);font:inherit}.profile-field textarea{resize:vertical}.profile-editor fieldset{border:1px solid var(--line);border-radius:var(--r-m);padding:16px;min-width:0;display:flex;flex-direction:column;gap:10px}.profile-editor legend{font-weight:700;padding-inline:6px}.profile-section-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-editor{width:100%;min-width:0}@media(max-width:1050px){.profile-columns,.profile-section-controls{grid-template-columns:minmax(0,1fr)}}
.profile-status:focus{outline:3px solid var(--focus);outline-offset:4px}.profile-friend-actions{flex-basis:100%;gap:10px}
.profile-saved{padding:12px;border:1px solid var(--line);border-radius:var(--r-s);overflow-wrap:anywhere}.profile-saved summary{cursor:pointer;min-height:32px}.profile-saved p{margin-top:8px}
textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}

.profile-header{position:relative;isolation:isolate;border-radius:var(--r-l);overflow:hidden}.profile-header-background{display:block;width:100%;height:100px;object-fit:cover}.profile-header>.profile-heading{position:relative;border-radius:0 0 var(--r-l) var(--r-l);margin:0}.profile-header .profile-avatar{object-fit:cover;flex-shrink:0}.profile-media-unavailable,.profile-media-loading{display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;padding:8px;overflow-wrap:anywhere;color:var(--muted);background:var(--raised);text-align:center}.profile-media-unavailable.profile-avatar,.profile-media-loading.profile-avatar{width:80px;height:80px}.profile-header>.profile-media-unavailable,.profile-header>.profile-media-loading{width:100%;height:80px}@media(max-width:767px){.profile-heading>.profile-friend-actions{flex:1 0 100%}.profile-header-background{height:76px}}
/* Keep a readable name column on small member profiles; actions get their own
   row instead of squeezing the name between the avatar and Edit button. */
@media(max-width:599px){.profile-heading{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px}.profile-heading .profile-avatar{width:64px;height:64px}.profile-heading>.button,.profile-heading>.profile-friend-actions{grid-column:1/-1;justify-self:start}.profile-heading h2{font-size:clamp(1.5rem,6vw,2rem);overflow-wrap:anywhere}}

.current-lobby{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.current-lobby .actions{display:flex;gap:10px;flex-wrap:wrap}.current-lobby .button{margin:0}
.lobby-pill{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:3px;background:var(--accent);color:var(--accent-ink);font-weight:700;text-decoration:none;font-size:.85rem;overflow-wrap:anywhere}
.owner-lobbies a{font-weight:700}

.workspace-page{max-width:none;padding:0;margin:0;gap:0}.workspace-page>.notice{margin:12px 18px}.section-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);width:100%;min-height:calc(100vh - 78px)}.section-sidebar{background:#1c232d;border-right:1px solid var(--line);padding:22px 0;min-width:0}.section-sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:0 18px 16px;gap:12px}.section-sidebar-heading h1{font-size:16px}.section-sidebar-heading>span{color:var(--muted);font-size:12px}.section-navigation>summary{display:none}.section-navigation>div{display:flex;flex-direction:column;gap:3px;padding:0 7px}.section-link{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 12px;color:#b4bfca;text-decoration:none;border-radius:2px;font-size:13px}.section-link:hover{background:var(--raised)}.section-link[aria-current=page]{background:#334b62;color:var(--text);box-shadow:inset 3px 0 var(--accent)}.section-link:before{content:'';width:6px;height:6px;flex-shrink:0;border:1px solid #7690a4;border-radius:1px}.section-link[aria-current=page]:before{background:var(--accent);border-color:var(--accent)}.section-link small{margin-left:auto;color:var(--muted)}.section-sidebar-note{font-size:12px;color:var(--muted);padding:16px 18px;border-top:1px solid var(--line);margin-top:14px}.section-content{padding:28px 34px;min-width:0;max-width:1500px;display:flex;flex-direction:column;gap:22px}.section-content .hello{align-items:start}.section-content .hello h2{font-size:27px;margin-bottom:10px}.section-content .hello p{max-width:850px}.section-content .eyebrow{font-size:10px}.section-content .panel{scroll-margin-top:18px}.section-content .empty{align-items:start;text-align:left;padding:16px;background:var(--surface);border:1px solid var(--line)}
@media(min-width:1600px){.section-content{padding-left:45px;padding-right:45px}}@media(max-width:1050px){.section-workspace{grid-template-columns:240px minmax(0,1fr)}.section-content{padding:24px}}@media(max-width:650px){.section-workspace{grid-template-columns:minmax(0,1fr);padding-bottom:70px;min-height:calc(100vh - 64px)}.section-sidebar{padding:0;border-right:0;border-bottom:1px solid var(--line)}.section-sidebar-heading{padding:14px}.section-navigation>summary{display:block;cursor:pointer;padding:10px 15px;background:#23303d;color:#b9d3e6;min-height:44px}.section-navigation>div{padding:7px;max-height:190px;overflow:auto}.section-content{padding:23px 17px}.section-content .hello h2{font-size:24px}.section-content .hello .actions{gap:8px}}
