@font-face{font-family:VlitherUI;src:url('/assets/social-regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:VlitherGlyph;src:url('/assets/social-icons.woff2') format('woff2');font-style:normal;font-weight:400;font-display:block}
.game-layout-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.game-layout-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;position:relative}.game-layout-controls .setting-new{position:static;margin-left:2px;flex:none}.game-glyph{font-family:VlitherGlyph!important;font-size:17px;font-style:normal;font-weight:400;line-height:1;width:20px;display:inline-flex;align-items:center;justify-content:center;flex:none;speak:never}
html[data-social-layout=game]{color-scheme:dark}
html[data-social-layout=game] body{--bg:var(--game-background);--panel:var(--game-background);--card:color-mix(in srgb,var(--game-background),var(--game-text) 3%);--hover:var(--game-button);--text:var(--game-text);--muted:color-mix(in srgb,var(--game-background),var(--game-text) 55%);--line:color-mix(in srgb,var(--game-background),var(--game-text) 18%);--border:var(--line);--accent:var(--game-highlight);--blue:#7dc6ff;--radius:12px;background:linear-gradient(110deg,#11161b,#19232f);font-family:VlitherUI,'Segoe UI',Arial,sans-serif;font-size:14px;color:var(--text)}
html[data-social-layout=game] :is(button,input,select,textarea){font:inherit}
html[data-social-layout=game] :is(button,.button){background:var(--game-button);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:6px 10px;min-height:32px;text-shadow:none;box-shadow:none;transition:background .12s,border-color .12s}
html[data-social-layout=game] :is(button,.button):hover:not(:disabled){background:var(--game-highlight);border-color:color-mix(in srgb,var(--game-text),transparent 65%)}
html[data-social-layout=game] :is(button,.button):focus-visible{outline:2px solid var(--game-highlight);outline-offset:3px}
html[data-social-layout=game] :is(button.primary,.button.primary,.tabs button.active,.segmented button.active){background:var(--game-highlight);color:#fff}
html[data-social-layout=game] button.success{background:#195d3d;color:#9af3b9;border-color:#3e805d}
html[data-social-layout=game] button.danger{background:#592a2e;color:#ffb4b9;border-color:#91454d}
html[data-social-layout=game] button.warning{background:#694622;color:#ffd69a}
html[data-social-layout=game] :is(input,textarea,select){background:var(--game-controls);color:var(--text);border:1px solid var(--line);border-radius:6px;min-height:32px;accent-color:var(--game-highlight)}
html[data-social-layout=game] :is(input,textarea,select):focus{border-color:var(--game-button);outline:2px solid color-mix(in srgb,var(--game-highlight),transparent 45%)}
html[data-social-layout=game] input[type=checkbox]{min-height:18px;width:18px;height:18px}
html[data-social-layout=game] .site-header{height:auto;min-height:64px;padding:10px 16px;gap:10px;background:#191c21;border-bottom:1px solid #39434f;flex-wrap:wrap;position:relative;z-index:10;color:#fff}
html[data-social-layout=game] .site-header .header-meta{gap:10px;flex-wrap:wrap}.header-meta #game-layout-controls{flex-shrink:0}
html[data-social-layout=game] .header-brand{gap:16px}html[data-social-layout=game] .brand{font-size:22px}html[data-social-layout=game] .web-label{display:none}
html[data-social-layout=game] .workspace{display:grid;grid-template-columns:198px minmax(0,1fr);gap:12px;max-width:1760px;margin:0 auto;padding:12px;align-items:start;height:calc(100dvh - 90px);min-height:560px}
html[data-social-layout=game] .workspace.with-detail{grid-template-columns:186px minmax(320px,1fr) minmax(400px,.95fr)}
html[data-social-layout=game] .window{background:linear-gradient(90deg,var(--game-background),var(--game-end));border:1px solid var(--line);border-radius:12px;box-shadow:none;min-width:0}
html[data-social-layout=game] :is(.sidebar,.main-window,.detail-window:not(.clan-detail-overlay)){height:100%;max-height:100%;min-height:0;position:relative;top:auto;left:auto;right:auto;width:auto;display:flex;flex-direction:column;overflow:hidden}
html[data-social-layout=game] .window-title{background:var(--game-highlight);color:#fff;border-bottom:1px solid var(--line);padding:5px 10px;min-height:32px;font-size:14px;border-radius:10px 10px 0 0;flex-shrink:0;gap:8px}
html[data-social-layout=game] .window-title .muted{color:#ffffffb0}
html[data-social-layout=game] .window-title button{min-height:24px;min-width:24px;padding:0 5px;line-height:20px;color:#ff656d;background:transparent;border-color:transparent;font-size:19px}
html[data-social-layout=game] .window-title button:hover{background:#0003;color:#fff}
html[data-social-layout=game] .window-body{padding:max(8px,var(--game-space));min-height:0;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--game-text),transparent 65%) transparent}
html[data-social-layout=game] .main-window>.window-body{height:auto;max-height:none}
html[data-social-layout=game] .game-sidebar{background:color-mix(in srgb,var(--game-background) 94%,transparent)}
html[data-social-layout=game] .game-sidebar>.window-title{background:var(--game-background);color:var(--text)}
html[data-social-layout=game] .game-sidebar .window-body{padding:12px;overflow:auto}
html[data-social-layout=game] .game-nav-brand{display:flex;align-items:center;gap:10px;padding:8px 0 18px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}
html[data-social-layout=game] .game-nav-brand strong{font-size:19px;letter-spacing:-.4px}.game-nav-brand strong>span{font-size:13px;color:var(--muted);font-weight:400}.game-nav-brand .brand-mark{width:32px;height:32px;font-family:Arial,sans-serif;font-size:23px}
html[data-social-layout=game] .game-nav-caption{font-size:12px;color:var(--muted);margin:22px 0 10px;text-transform:uppercase;letter-spacing:.04em}
html[data-social-layout=game] .game-sidebar .nav{display:flex;flex-direction:column;gap:6px;margin:0;flex-wrap:nowrap}
html[data-social-layout=game] .game-sidebar .nav>button{display:flex;gap:9px;align-items:center;text-align:left;width:100%;min-height:39px;padding:7px 9px;background:transparent;font-size:14px;border-radius:5px;color:var(--text);border:1px solid var(--line)}
html[data-social-layout=game] .game-sidebar .nav>button>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
html[data-social-layout=game] .game-sidebar .nav>button.active{background:var(--game-button);border-left:3px solid var(--game-highlight);padding-left:7px;color:var(--text)}
html[data-social-layout=game] .game-sidebar .nav>button:hover{background:var(--game-highlight);color:white}
html[data-social-layout=game] .game-sidebar .game-explore>button{min-height:32px;font-size:13px;border-color:transparent}
html[data-social-layout=game] .game-nav-clans{display:grid;gap:6px}.game-nav-clans .link{text-align:left;overflow-wrap:anywhere}
html[data-social-layout=game] .game-sidebar .game-account{margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}
html[data-social-layout=game] .game-self-area{margin-bottom:16px}
html[data-social-layout=game] .game-self-card{display:flex;align-items:flex-start;gap:8px;background:color-mix(in srgb,var(--game-background) 85%,transparent);border:1px solid var(--line);border-radius:9px;padding:7px}
html[data-social-layout=game] .game-self-card .my-card{margin:0;flex:1;width:auto;min-width:0;border:0;border-radius:5px;background:none;min-height:58px;padding:4px;display:flex;gap:10px;text-align:left}
html[data-social-layout=game] .game-self-card .my-card:hover{background:var(--game-button)}
html[data-social-layout=game] .game-self-card .avatar{width:36px;height:36px;flex:none}.game-self-card .card-main{display:flex;flex-direction:column;min-width:0;gap:3px}
html[data-social-layout=game] .game-cog{padding:4px;min-width:28px;min-height:28px;display:grid;place-items:center}
html[data-social-layout=game] .game-status-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:12px 0 0}
html[data-social-layout=game] .game-service-status{color:var(--green);font-size:13px}
html[data-social-layout=game] .game-status-toolbar nav{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
html[data-social-layout=game] .game-status-toolbar nav button{display:grid;place-items:center;position:relative;min-width:28px;min-height:28px;padding:3px}.game-status-toolbar .bubble{position:absolute;top:-6px;right:-6px}
html[data-social-layout=game] .heading{align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--line)}
html[data-social-layout=game] .heading .eyebrow{display:none}html[data-social-layout=game] .heading h1{font-size:17px;line-height:1.3;letter-spacing:0;color:var(--text);font-weight:400;margin:0 0 4px}html[data-social-layout=game] .heading p{margin:0;font-size:12px}
html[data-social-layout=game] .list{gap:5px}
html[data-social-layout=game] :is(.person-card,.clan-card,.card,.notice-card,.achievement-card){border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--game-background) 82%,transparent);padding:10px;gap:9px;box-shadow:none}
html[data-social-layout=game] .person-card:nth-child(even){background:color-mix(in srgb,var(--game-button) 75%,transparent)}
html[data-social-layout=game] .link{background:transparent;border-color:transparent;color:var(--blue);min-height:0;padding:0}
html[data-social-layout=game] .tabs{padding:6px 0 10px;margin:0 0 12px;gap:6px;display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line)}
html[data-social-layout=game] .tabs button{border-radius:6px;font-size:13px;line-height:1.3;white-space:normal;min-height:31px;padding:6px 9px;background:var(--game-button);border:1px solid var(--line);color:var(--text)}
html[data-social-layout=game] .tabs button.active{background:var(--game-highlight);color:#fff;box-shadow:none}
html[data-social-layout=game] :is(.score-controls,.ranking-toolbar,.leaderboard-card,.chat-layout,.stats){border-color:var(--line);border-radius:8px;background:color-mix(in srgb,var(--game-background) 78%,transparent)}
html[data-social-layout=game] .score-head,html[data-social-layout=game] .ranking-table th{background:var(--game-highlight);color:#fff}
html[data-social-layout=game] .chat-layout{height:auto;min-height:420px;max-height:70dvh}
html[data-social-layout=game] .compose{gap:8px;padding:10px;flex-wrap:wrap;min-width:0}html[data-social-layout=game] .compose textarea{min-width:80px}
html[data-social-layout=game] .game-detail-tabs{display:flex;align-items:center;gap:6px;padding:8px;background:var(--game-background);overflow-x:auto;flex-shrink:0;min-height:48px;border-bottom:1px solid var(--line)}
html[data-social-layout=game] .game-child-tab{display:flex;align-items:center;flex:none;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--game-button)}
html[data-social-layout=game] .game-child-tab.active{background:var(--game-highlight)}
html[data-social-layout=game] .game-child-tab button{background:transparent;border:0;min-height:28px;padding:4px 8px;font-size:12px;border-radius:0;white-space:nowrap}
html[data-social-layout=game] .game-child-tab button.game-tab-close{color:#ff6971;padding:4px 7px;font-size:19px;min-width:25px}
html[data-social-layout=game] .game-child-tab .game-tab-close:hover{background:#ab2634;color:#fff}
html[data-social-layout=game] .game-close-all{margin-left:auto;color:#ff6971;min-width:28px;flex:none;font-size:19px;padding:0}
html[data-social-layout=game] .detail-window>.window-body{max-height:none;height:auto;flex:1}
html[data-social-layout=game] .clan-detail-overlay{position:fixed;inset:0;width:auto;height:100dvh;max-height:100dvh;display:grid;place-items:center;padding:max(8px,var(--game-space));background:#0009;z-index:40}
html[data-social-layout=game] .clan-detail-panel{max-width:1480px;width:100%;height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden}
html[data-social-layout=game] .modal{max-width:760px;max-height:calc(100dvh - 32px);display:flex;flex-direction:column}html[data-social-layout=game] .modal .window-body{max-height:none;flex:1;overflow:auto}
html[data-social-layout=game] .public-leaderboard,html[data-social-layout=game] .auth-layout{grid-column:1/-1}
html[data-social-layout=game] .public-leaderboard>.window-body{height:auto;max-height:none}
html[data-social-layout=game] .public-entity-page>.main-window{grid-column:1/-1}
html[data-social-layout=game] .site-footer{padding:12px 20px;max-width:1760px;margin:auto;font-size:12px;gap:12px}
.game-theme-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.game-theme-presets button{padding:6px;min-width:0}.game-theme-presets [aria-pressed=true]{outline:2px solid var(--game-highlight);outline-offset:2px}.game-theme-swatch{display:flex;align-items:end;gap:4px;height:46px;border-radius:5px;padding:8px;margin-bottom:7px}.game-theme-swatch>span{display:block;height:14px;width:50%;border-radius:3px}.game-theme-preview{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:16px 0;background:linear-gradient(90deg,var(--game-background),var(--game-end))}.game-preview-title{padding:8px 12px;border-bottom:1px solid var(--line);background:var(--game-background)}.game-preview-body{display:grid;grid-template-columns:125px minmax(0,1fr);gap:14px;padding:14px}.game-preview-body>div{display:flex;align-items:start;flex-wrap:wrap;gap:7px}.game-preview-body p{width:100%;margin:3px 0;color:var(--muted)}.game-theme-fields{display:grid;gap:6px}.game-theme-fields>label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:8px;border-bottom:1px solid var(--line)}.game-theme-fields label>span:last-child{display:flex;gap:10px;align-items:center}.game-theme-fields input[type=color]{width:34px;min-width:34px;height:30px;padding:2px;min-height:0}.game-theme-fields input[type=range]{width:110px;min-width:70px}.game-theme-fields output{font:12px monospace;width:65px;color:var(--muted)}.game-theme-fields .setting-new{position:static;display:inline-block;margin-left:5px;vertical-align:middle}
@media(min-width:1760px){html[data-social-layout=game] .workspace{padding-inline:20px}}
@media(max-width:1190px){html[data-social-layout=game] .workspace.with-detail{grid-template-columns:180px minmax(0,1fr);height:auto;min-height:calc(100dvh - 100px)}html[data-social-layout=game] .workspace.with-detail .detail-window:not(.clan-detail-overlay){grid-column:2;min-height:420px;max-height:75dvh;height:auto}html[data-social-layout=game] .workspace.with-detail .sidebar{grid-row:1/3}html[data-social-layout=game] .workspace.with-detail .main-window{min-height:500px;max-height:75dvh}}
@media(max-width:760px){html[data-social-layout=game] .site-header{padding:10px;gap:8px}html[data-social-layout=game] .header-brand{gap:8px}html[data-social-layout=game] .header-meta{width:100%;gap:8px;justify-content:flex-start}html[data-social-layout=game] .header-meta .connection{margin-left:auto}html[data-social-layout=game] .download-client{font-size:12px;padding:6px 8px}html[data-social-layout=game] .workspace,html[data-social-layout=game] .workspace.with-detail{grid-template-columns:1fr;height:auto;min-height:0;padding:8px;gap:8px}html[data-social-layout=game] .game-sidebar{height:auto!important;max-height:none!important;grid-row:auto!important}html[data-social-layout=game] .game-sidebar>.window-title{display:none}html[data-social-layout=game] .game-sidebar .window-body{padding:8px}html[data-social-layout=game] .game-nav-brand{padding:4px 0 10px}.game-sidebar .game-nav-brand strong{font-size:18px}html[data-social-layout=game] .game-sidebar .game-nav-caption{margin:12px 0 6px}html[data-social-layout=game] .game-sidebar .game-community{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}html[data-social-layout=game] .game-sidebar .game-community>button{padding:8px 4px;gap:4px;min-height:48px;font-size:12px;justify-content:center;flex-direction:column;text-align:center}html[data-social-layout=game] .game-sidebar .game-community>button .bubble{position:absolute;right:1px;top:1px}html[data-social-layout=game] .game-sidebar .game-explore{flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:thin;padding-bottom:5px}html[data-social-layout=game] .game-sidebar .game-explore>button{width:auto;white-space:nowrap;flex:none;padding:7px 9px}.game-sidebar .game-explore .game-glyph{display:none}.game-sidebar .game-account{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px!important}.game-sidebar .game-account>button{width:auto!important;flex:1;font-size:12px!important;min-width:90px}.game-sidebar .game-nav-clans{display:none}.game-sidebar .game-nav-clans+.game-account{margin-top:10px!important}.game-sidebar .game-nav-caption:has(+.game-nav-clans){display:none}html[data-social-layout=game] .main-window{height:auto;min-height:520px;max-height:none}html[data-social-layout=game] .workspace.with-detail .main-window{max-height:none}html[data-social-layout=game] .workspace.with-detail .detail-window:not(.clan-detail-overlay){grid-column:1;height:auto;max-height:85dvh;min-height:420px}html[data-social-layout=game] .heading{gap:8px}html[data-social-layout=game] .game-status-toolbar{align-items:flex-start}html[data-social-layout=game] .tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px}html[data-social-layout=game] .tabs button{white-space:nowrap;flex:none}html[data-social-layout=game] .window-body{padding:max(8px,var(--game-space))}html[data-social-layout=game] .clan-detail-panel{height:calc(100dvh - 16px)}.game-theme-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.game-theme-fields>label{gap:8px;font-size:13px}.game-theme-fields label>span:last-child{gap:5px}.game-preview-body{grid-template-columns:1fr}.game-preview-body>div:first-child{display:none}}
@media(prefers-reduced-motion:reduce){html[data-social-layout=game] *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

html[data-social-layout=game][data-social-palette=light]{color-scheme:light}

/* Reset the classic phone strip/sheet geometry before applying the stacked game panes. */
html[data-social-layout=game] .game-sidebar{margin:0;backdrop-filter:none;-webkit-backdrop-filter:none;border:1px solid var(--line)}
html[data-social-layout=game] .game-sidebar .window-body{display:block;min-width:0}
html[data-social-layout=game] .site-header,html[data-social-layout=game] .header-meta,html[data-social-layout=game] .header-brand{display:flex}
html[data-social-layout=game] body:has(.detail-window){overflow:auto}
html[data-social-layout=game] body:has(#modal-root .modal-overlay){overflow:hidden}
@media(max-width:760px){html[data-social-layout=game] .game-sidebar{width:100%;max-width:100%}html[data-social-layout=game] .header-brand{width:100%;justify-content:space-between;flex-wrap:wrap}html[data-social-layout=game] .language-picker{min-width:0;max-width:calc(100% - 40px)}html[data-social-layout=game] .header-meta .connection:not(.pending):not(.error){font-size:0}html[data-social-layout=game] .game-sidebar .nav>button{white-space:normal;position:relative}html[data-social-layout=game] .game-sidebar .game-explore>button{white-space:nowrap}}

html[data-social-layout=game] .window:before{display:none}
html[data-social-layout=game] .profile-header{display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px 12px;align-items:center;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--game-background) 85%,transparent);margin:0 0 12px}
html[data-social-layout=game] .profile-header>button{grid-column:1;grid-row:1/4;align-self:center;padding:0;border:0;background:transparent;justify-self:start}
html[data-social-layout=game] .profile-header .avatar.large{width:54px;height:54px;font-size:24px;margin:0}
html[data-social-layout=game] .profile-header>h2{grid-column:2;font-size:17px;font-weight:400;margin:0;overflow-wrap:anywhere}
html[data-social-layout=game] .profile-header>.mono,html[data-social-layout=game] .profile-header>.chip{grid-column:2;margin:0;justify-self:start}
html[data-social-layout=game] .profile-banner{height:140px;min-height:0;border-radius:8px;margin-bottom:10px}
html[data-social-layout=game] .profile-buttons{justify-content:flex-end;gap:6px;margin:10px 0 16px}
html[data-social-layout=game] .profile-buttons button{display:inline-flex;gap:5px;align-items:center;justify-content:center}
html[data-social-layout=game] .stats .stat-icon .game-glyph{font-size:14px;width:16px}
html[data-social-layout=game] .activity-stat{display:block;width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;text-align:inherit}
html[data-social-layout=game] .activity-stat .stat{padding:8px 4px;gap:10px}
html[data-social-layout=game] .activity-stat .stat>span{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){html[data-social-layout=game] .game-sidebar .game-account>button{flex:1 1 120px;min-width:120px;white-space:nowrap}html[data-social-layout=game] .detail-window>.window-title .quiet{width:28px;min-width:28px;height:28px;min-height:28px;font-size:20px}html[data-social-layout=game] .game-self-card .my-card .card-main{display:flex}html[data-social-layout=game] .game-self-card .my-card{border-radius:5px}html[data-social-layout=game] .detail-window:not(.clan-detail-overlay){animation:none}}

/* Modal sheets also obey the minimum inset; scroll inside, never past the viewport. */
html[data-social-layout=game] .modal-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;height:100dvh;min-height:0;padding:max(8px,var(--game-space));overflow:hidden;animation:none;background:#0009}
html[data-social-layout=game] .modal,html[data-social-layout=game] .modal.wide{flex:0 1 auto;min-height:0;height:auto;max-height:calc(100dvh - 2 * max(8px,var(--game-space)));width:760px;max-width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;animation:none}
html[data-social-layout=game] .modal>.window-title{flex:0 0 auto}
html[data-social-layout=game] .modal>.window-body{flex:1 1 auto;min-height:0;overflow:auto}

/* Stable board identities; glyphs use the theme foreground, including light themes. */
html[data-social-layout=game] .game-explore .tab-dot{display:inline-block;width:9px;height:9px;min-width:9px;margin:0 5px;border-radius:50%;background:var(--explore-color);box-shadow:0 0 8px color-mix(in srgb,var(--explore-color),transparent 45%);flex:none}
html[data-social-layout=game] .game-glyph{color:currentColor}
html[data-social-layout=game] .brand-mark{color:var(--game-highlight);border-color:color-mix(in srgb,var(--game-highlight),transparent 55%);background:color-mix(in srgb,var(--game-highlight),transparent 86%)}
/* The caret is an inline disclosure control, rather than a full-height action button. */
html[data-social-layout=game] .score-name{display:flex;align-items:center;gap:6px;min-width:0}
html[data-social-layout=game] button.score-caret{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;min-width:22px;height:22px;min-height:22px;padding:0;margin:0;background:transparent;border:1px solid transparent;border-radius:4px;color:inherit;vertical-align:middle;line-height:1;box-shadow:none}
html[data-social-layout=game] button.score-caret:hover{background:var(--game-button);border-color:var(--line);color:var(--text)}
html[data-social-layout=game] .score-caret .game-caret-glyph{display:block;font-family:'Segoe UI',Arial,sans-serif;font-size:21px;line-height:18px;width:18px;height:18px;text-align:center;color:inherit}
html[data-social-layout=game] .score-person:has(.score-caret)>.small{padding-left:28px}
/* CSS-only background effects: no animation loop, layout work or network traffic. */
html[data-social-layout=game] :is(.window,.game-theme-preview){position:relative;isolation:isolate}
html[data-social-layout=game] :is(.window,.game-theme-preview)>*{position:relative;z-index:1}
/* The theme background effect plays once, on the page background behind every window (.social-fx-layer), never inside each window. */
html[data-social-layout=game] :is(.social-fx-layer,.game-theme-preview)::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at var(--game-fxX,90%) var(--game-fxY,90%),var(--game-fxColor,var(--game-highlight)),transparent var(--game-fxSize,65%));opacity:var(--game-fxStrength,.22);transform-origin:var(--game-fxX,90%) var(--game-fxY,90%);animation:game-theme-pulse var(--game-fxDuration,4s) ease-in-out infinite}
html[data-social-layout=game][data-social-effect=none] :is(.social-fx-layer,.game-theme-preview)::after{display:none}
html[data-social-layout=game][data-social-effect=accent] :is(.social-fx-layer,.game-theme-preview)::after{animation:none}
html[data-social-layout=game][data-social-effect=wave] :is(.social-fx-layer,.game-theme-preview)::after{animation-name:game-theme-wave}
html[data-social-layout=game][data-social-effect=comet] :is(.social-fx-layer,.game-theme-preview)::after{animation-name:game-theme-comet}
html[data-social-layout=game][data-social-effect=fade] :is(.social-fx-layer,.game-theme-preview)::after{animation-name:game-theme-fade;background:var(--game-fxColor,var(--game-highlight))}
html[data-social-layout=game][data-social-paused=true] :is(.social-fx-layer,.game-theme-preview)::after{animation-play-state:paused}
@keyframes game-theme-pulse{0%,100%{opacity:calc(var(--game-fxStrength,.22) * .3);transform:scale(.88)}50%{opacity:var(--game-fxStrength,.22);transform:scale(1.12)}}
@keyframes game-theme-wave{0%,100%{opacity:0;transform:translateX(-25%)}20%{opacity:var(--game-fxStrength,.22)}75%{opacity:calc(var(--game-fxStrength,.22) * .6);transform:translateX(20%)}}
@keyframes game-theme-comet{0%,100%{opacity:0;transform:translate(-18%,12%) scale(.5)}15%{opacity:var(--game-fxStrength,.22)}70%{opacity:calc(var(--game-fxStrength,.22) * .5);transform:translate(18%,-12%) scale(1.1)}}
@keyframes game-theme-fade{0%,100%{opacity:0}50%{opacity:calc(var(--game-fxStrength,.22) * .6)}}
.game-fx-editor{border:1px solid var(--line);border-radius:8px;padding:12px;margin:14px 0}.game-fx-editor h3{font-size:15px;font-weight:400;margin:0 0 12px}.game-fx-editor .setting-new{position:static;display:inline-block;margin-left:5px;vertical-align:middle}.game-fx-choice,.game-fx-placement{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px}.game-fx-choice select{width:150px;max-width:60%}.game-fx-position{display:grid;grid-template-columns:repeat(3,32px);gap:4px;padding:6px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(90deg,var(--game-background),var(--game-end))}.game-fx-position button{display:grid!important;place-items:center!important;width:32px;height:28px;min-height:28px!important;padding:0!important}.game-fx-position button>span{width:5px;height:5px;background:var(--muted);border-radius:50%}.game-fx-position button[aria-pressed=true]{background:var(--game-highlight)!important;border-color:var(--game-text)!important}.game-fx-position button[aria-pressed=true]>span{background:white}
@media(prefers-reduced-motion:reduce){html[data-social-layout=game] :is(.social-fx-layer,.game-theme-preview)::after{animation:none!important;transform:none!important;opacity:calc(var(--game-fxStrength,.22) * .45)}}

html[data-social-layout=game] .score-row button.score-caret{border:0!important;background:transparent!important;color:var(--muted)!important}
html[data-social-layout=game] .score-row button.score-caret:hover{background:var(--game-button)!important;color:var(--text)!important}
html[data-social-layout=game] .score-caret .game-caret-glyph{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);font-size:0;line-height:0}
html[data-social-layout=game] .score-caret[aria-expanded=true] .game-caret-glyph{transform:rotate(45deg)}

/* Flagged scores use an inline amber symbol, not the generic action-button chrome. */
button.flag-warning,html[data-social-layout=game] button.flag-warning{display:inline-grid;place-items:center;vertical-align:middle;flex:0 0 22px;width:22px;min-width:22px;height:22px;min-height:22px;padding:0;margin:0 2px;border:1px solid transparent;border-radius:4px;background:transparent;color:#ffbf55;font-size:0;line-height:1;box-shadow:none}
button.flag-warning>*,html[data-social-layout=game] button.flag-warning>*{display:none}
button.flag-warning::before{content:'';width:17px;height:17px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='M12 3 22 21H2Z M12 9v5 M12 17v1'/%3E%3C/svg%3E") center/contain no-repeat}
button.flag-warning:hover:not(:disabled),html[data-social-layout=game] button.flag-warning:hover:not(:disabled){background:#ffbf551c;border-color:#ffbf554d;color:#ffcf7a}

/* Timeline events retain their dot geometry under every Social Theme. */
html[data-social-layout=game] button.clip-mark{--clip-event-color:#ffd34d;display:block;width:10px;min-width:10px;height:10px;min-height:10px;padding:0;margin:0 0 0 -5px;border:2px solid #11171d;border-radius:50%;background:var(--clip-event-color);box-shadow:0 0 7px var(--clip-event-color);line-height:0}
html[data-social-layout=game] button.clip-mark.death{--clip-event-color:#ff5a5a}
html[data-social-layout=game] button.clip-mark:hover:not(:disabled){background:var(--clip-event-color);border-color:#11171d;box-shadow:0 0 10px var(--clip-event-color);transform:scale(1.3)}

/* Profile content and statistics keep the shared minimum inset, including accents. */
.profile-content{box-sizing:border-box;padding:max(8px,var(--game-space,8px))}
.profile-content.profile-accent{margin:0}
.profile-content .profile-stats{padding:max(8px,var(--game-space,8px))}

.game-sidebar [data-nav-badges]{display:inline-flex;align-items:center;gap:4px;flex:none}
.game-sidebar [data-nav-badges]:empty,.game-status-toolbar [data-nav-badges]:empty{display:none}
html[data-social-layout=game] .game-status-toolbar nav button [data-nav-badges]{position:absolute;top:-6px;right:-6px}
html[data-social-layout=game] .game-status-toolbar nav button [data-nav-badges] .bubble{position:static}

/* Closed-site content spans the workspace instead of occupying its sidebar column. */
.workspace.site-closed,html[data-social-layout=game] .workspace.site-closed{grid-template-columns:minmax(0,1fr);height:auto;min-height:calc(100dvh - 160px)}
.workspace.site-closed .under-construction{grid-column:1/-1;justify-self:center;width:100%;max-width:720px;margin:clamp(24px,6vh,72px) auto;align-self:start}
.under-construction .empty{padding:clamp(24px,5vw,56px) max(16px,var(--game-space,12px))}
.under-construction h1{font-size:clamp(26px,4vw,36px);line-height:1.2;overflow-wrap:normal}
.under-construction .empty p{max-width:460px;margin:16px auto 24px;font-size:16px;line-height:1.6}
@media(max-width:760px){.workspace.site-closed .under-construction{margin:16px auto}.under-construction .empty p{font-size:14px}}

/* The closed-site landing retains the public welcome, with the notice below it. */
.workspace.site-closed .construction-landing{grid-column:1/-1;width:100%;max-width:1140px;justify-self:center;margin:clamp(24px,5vh,60px) auto;min-width:0}
.construction-landing .auth-intro{text-align:center;max-width:760px;margin:0 auto 36px;padding:max(8px,var(--game-space,12px))}
.construction-landing .auth-intro h1{max-width:760px;margin:12px auto 20px;font-size:clamp(30px,4vw,48px);line-height:1.15}
.construction-landing .auth-intro p{max-width:640px;margin:0 auto;line-height:1.6}
.construction-landing .auth-showcase{margin:24px 0}
.construction-landing .auth-pills{justify-content:center}
.workspace.site-closed .construction-landing .under-construction{max-width:none;margin:0;width:100%}
@media(max-width:760px){.workspace.site-closed .construction-landing{margin:12px auto}.construction-landing .auth-intro{margin-bottom:20px}.construction-landing .auth-pills{gap:6px}.construction-landing .auth-pills span{padding:6px 9px}}

.special-theme-canvas{position:fixed;inset:0;max-width:100vw;max-height:100dvh;pointer-events:none!important;z-index:110;contain:strict}
.special-theme-canvas[hidden]{display:none}
.game-special-editor{border:1px solid var(--line);border-radius:9px;padding:12px;margin:14px 0;background:color-mix(in srgb,var(--game-background),transparent 25%)}
.game-special-editor h3{margin:0 0 10px;font-size:16px}.game-special-editor>label{display:grid;gap:8px;margin:12px 0}.game-special-editor select{width:100%;max-width:100%}.game-special-editor .setting-new{position:static;display:inline-block;margin-left:5px;flex:none}.game-special-editor .check-row{padding:8px 0;flex-wrap:wrap}.game-special-editor [hidden]{display:none!important}
html[data-social-layout=game] [data-game-theme] :disabled{opacity:.45;cursor:default}

.game-special-editor .game-theme-fields>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,45%);gap:10px}
.game-special-editor .game-theme-fields label>span:last-child{min-width:0;gap:8px}
.game-special-editor .game-theme-fields input[type=range]{width:100%;min-width:60px;flex:1}
.game-special-editor .game-theme-fields output{width:32px;flex:none}

@media(max-width:760px){.header-meta #game-layout-controls{width:100%;max-width:100%;min-width:0;flex-shrink:1}.game-layout-controls button{max-width:100%;flex-wrap:wrap}.game-special-editor .game-theme-fields>label{grid-template-columns:minmax(0,1fr) minmax(110px,45%)}}

.game-special-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 14px}.game-special-choices button{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;min-width:0}.game-special-choices button[aria-pressed=true]{outline:2px solid var(--game-highlight);outline-offset:1px}.game-special-choices .setting-new{margin:0}
@media(max-width:600px){.game-special-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Theme editor owns one scrolling body; its actions never scroll out. */
.modal:has([data-game-theme]){display:flex;flex-direction:column;width:min(880px,calc(100vw - 16px));height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}
.modal:has([data-game-theme])>.window-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:0!important}
[data-game-theme]{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column}
.theme-editor-scroll{flex:1;min-height:0;overflow:auto;padding:max(12px,var(--game-space));scrollbar-gutter:stable}
.theme-editor-actions{flex-shrink:0;margin:0!important;padding:12px max(12px,var(--game-space));border-top:1px solid var(--line);background:var(--game-background);justify-content:flex-end;z-index:2}
.theme-editor-section{border:1px solid var(--line);border-radius:9px;padding:12px;margin:12px 0;background:#0000000b}.theme-editor-section>summary{cursor:pointer;font-weight:600;min-height:28px}.theme-editor-section .game-fx-editor{border:0;margin:0;padding:8px 0}.theme-editor-section .game-fx-editor>h3{display:none}.theme-palette-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.theme-palette-fields>label{min-width:0}.theme-editor-scroll .game-theme-preview{margin:12px 0}.theme-editor-scroll .game-theme-presets{margin:8px 0}
html[data-social-layout=game][data-social-effect=grid] :is(.social-fx-layer,.game-theme-preview)::after{animation:none;transform:none;opacity:clamp(.12,calc(var(--game-fxStrength)*4),1);background:radial-gradient(circle,var(--game-fxColor) 1.15px,transparent 1.8px) 0 0/14px 14px;mask-image:radial-gradient(circle at var(--grid-x,50%) var(--grid-y,50%),#000 0%,#000b calc(var(--game-fxSize)*.16),transparent calc(var(--game-fxSize)*.55));-webkit-mask-image:radial-gradient(circle at var(--grid-x,50%) var(--grid-y,50%),#000 0%,#000b calc(var(--game-fxSize)*.16),transparent calc(var(--game-fxSize)*.55))}
@media(max-width:600px){.theme-palette-fields{grid-template-columns:1fr}.game-theme-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-editor-actions>button{flex:1}.theme-editor-section{padding:10px}.game-fx-choice{flex-wrap:wrap;gap:8px}.game-fx-choice input[type=range]{max-width:42%}}

[data-game-theme] [hidden]{display:none!important}
[data-game-grid-config] .game-fx-choice{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,220px) 65px;gap:12px}
[data-game-grid-config] select{grid-column:2/4;width:100%;max-width:100%}[data-game-grid-config] input[type=range]{width:100%;max-width:100%}[data-game-grid-config] input[type=color]{justify-self:end;width:40px}[data-game-grid-config] output{text-align:right;font:12px monospace;color:var(--muted)}
@media(max-width:600px){[data-game-grid-config] .game-fx-choice{grid-template-columns:minmax(100px,1fr) minmax(70px,.8fr) 48px;gap:8px}[data-game-grid-config] output{font-size:10px}}

.modal:has([data-game-theme]){max-width:min(880px,calc(100vw - 16px))}.modal:has([data-game-theme])>.window-body{flex-direction:column}.modal:has([data-game-theme]) .form-error:empty{display:none}
/* Network (network-fx.mjs): a canvas behind each window's content instead of the ::after effect layer. */
html[data-social-layout=game][data-social-effect=network] :is(.social-fx-layer,.game-theme-preview)::after{display:none}
html[data-social-layout=game] :is(.social-fx-layer,.game-theme-preview)>canvas.game-network-fx{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;border-radius:inherit}
html:not([data-social-layout=game]) canvas.game-network-fx,html:not([data-social-effect=network]) canvas.game-network-fx{display:none}
.social-fx-layer{display:none}
html[data-social-layout=game] .social-fx-layer{display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}

/* Window chrome is optional; page content, padding and dialog controls remain available. */
html[data-social-layout=game][data-social-windows=hidden] .workspace .window:not(.clan-detail-overlay),
html[data-social-layout=game][data-social-windows=hidden] .game-theme-preview{background:transparent;border-color:transparent;box-shadow:none}
html[data-social-layout=game][data-social-windows=hidden] .workspace .window:not(.clan-detail-overlay)>.window-title{background:transparent;border-color:transparent;color:var(--text)}
html[data-social-layout=game][data-social-windows=hidden] .workspace .window:not(.clan-detail-overlay)>.window-title:not(:has(button,a)),
html[data-social-layout=game][data-social-windows=hidden] .game-preview-title{display:none}
.game-windows-setting{display:flex;align-items:center;gap:8px;min-height:36px}.game-windows-setting .setting-new{position:static;margin-left:4px;flex:none}
