/* Selected Play Space design. Existing game interiors retain their own styles. */
:root,:root[data-theme=light]{color-scheme:light;--bg:#f2efe8;--surface:#fffcf6;--text:#23231f;--muted:#66645c;--line:#d8d4c9;--accent:#a83d17;--accent-soft:#f3e2d7;--lime:#fa6329;--on-accent:#fffaf2;--header:#22251f;--header-text:#fff8ec;--header-muted:#deded2;--focus:#a43d16;--danger:#aa362b;--shadow:0 16px 44px #24231e20;--rail-width:148px;--brand-orange:#fa6329;--online:#326f53}
:root[data-theme=dark]{color-scheme:dark;--bg:#191d19;--surface:#242a23;--text:#fff8ec;--muted:#c1c4b8;--line:#434b3e;--accent:#ffad85;--accent-soft:#39372b;--lime:#fa6329;--on-accent:#211f19;--header:#121610;--header-text:#fff8ec;--header-muted:#deded2;--focus:#ffad85;--danger:#ffb2a3;--shadow:0 16px 44px #0005;--online:#86c7a1}
html body,html[data-theme=light] body{background:var(--bg);color:var(--text);font-family:'Segoe UI',Arial,sans-serif}
body:not(.shared-game-route) .site-header{display:block;position:static;min-height:0;height:auto;padding:0;background:transparent;border:0;color:var(--text);box-shadow:none}
.platform-rail{position:fixed;inset:0 auto 0 0;width:var(--rail-width);display:flex;flex-direction:column;gap:30px;padding:24px 13px 18px;background:var(--header);color:var(--header-text);z-index:100;overflow-y:auto}
.platform-rail .brand{padding:6px 4px;margin:0 0 12px;min-height:44px}
.platform-rail .brand img{width:111px;height:auto;max-width:100%}
.platform-rail .top-nav{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;margin:0;border:0}
.platform-rail .top-nav a{justify-content:flex-start;gap:11px;min-width:0;min-height:44px;padding:11px;border:0;border-radius:13px;color:var(--header-text);font-size:12px;font-weight:500}
.platform-rail .top-nav .icon{width:16px;height:16px}
.platform-rail .top-nav a[aria-current=page]{color:#211b14;background:var(--brand-orange)}
.platform-rail .top-nav a:hover{background:#353a2e}
.platform-rail .top-nav a[aria-current=page]:hover{background:#ff7845}
.platform-rail-footer{margin-top:auto;border-top:1px solid #444a3b;padding-top:14px;display:flex;flex-direction:column;gap:8px}
.platform-rail-footer .rail-setting,.platform-rail-footer .button.rail-logout{min-height:44px;display:flex;gap:10px;align-items:center;justify-content:flex-start;padding:9px 7px;border:0;background:transparent;color:var(--header-text);font-size:12px;border-radius:8px}
.platform-rail-footer .icon{width:17px;height:17px}.platform-rail-footer a:hover,.platform-rail-footer button:hover{background:#353a2e}
.platform-topbar{margin-left:var(--rail-width);min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 26px;border-bottom:1px solid var(--line)}
.platform-breadcrumb{font-size:11px;letter-spacing:1px;color:var(--muted)}
.platform-topbar .header-tools{margin:0;gap:12px;min-width:0;color:var(--text)}
.platform-topbar .button.header-search-toggle{display:inline-flex;color:var(--text)}
.platform-topbar .header-search{display:none;width:min(290px,35vw);border:1px solid var(--line);background:var(--surface);border-radius:10px;margin:0}
.site-header[data-search-open=true] .header-search{display:flex}
.platform-topbar .header-search input{background:transparent;color:var(--text);font-size:16px;min-width:0}
.platform-topbar .button.account-button{background:transparent;color:var(--text);border:0;box-shadow:none;padding:0;gap:10px;font-size:12px;font-weight:500;max-width:220px;border-radius:10px}
.platform-topbar .account-button>span:last-child{max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.platform-topbar .account-button .avatar{width:42px;height:42px;background:var(--accent-soft);color:var(--accent);font-size:15px}
.platform-topbar .mobile-account-actions,.platform-mobile-brand{display:none}
body:not(.shared-game-route) #main.view-content{width:auto;max-width:1420px;min-height:calc(100dvh - 82px);margin:0 0 0 var(--rail-width);padding:28px 26px 30px}
.view-content .page-heading{margin-bottom:28px}.view-content .page-heading h1{font-size:34px;line-height:1.2;letter-spacing:-1px;font-weight:700;overflow-wrap:anywhere}
.view-content .page-heading .eyebrow{font-size:11px;font-weight:600;letter-spacing:1.5px;color:var(--muted);display:block;margin-bottom:12px}
.view-content .page-heading>p{font-size:14px;line-height:1.6;margin-top:12px}
.panel,.app-dialog,.friend-card,.community-card{border-radius:14px;background:var(--surface);border-color:var(--line);box-shadow:none}
.panel{padding:20px}.section-head{gap:12px;margin-bottom:14px}.section-head h2{font-size:19px;line-height:1.3;letter-spacing:-.5px}
.button{border-radius:10px}.button.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.button.text-button,.text-button{color:var(--text);font-size:12px}.text-button:hover{color:var(--accent)}
.field input,.field textarea,.category-field select,.friends-search,.friends-tabs,.friend-community-picker>input{border-radius:10px;background:var(--surface);color:var(--text)}
.friends-search>input:focus-visible{outline:none}
.friends-search:has(>input:focus-visible){border-color:var(--muted);box-shadow:0 0 0 1px var(--muted)}
.home-friends{margin-bottom:34px;padding:18px}.home-friends>.section-head{margin-bottom:4px}.home-friends .section-head>.text-button{padding:0 7px}
.home-friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:26px}
.home-friend{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:53px;border-top:1px solid var(--line);padding:9px 0;min-width:0;text-align:center}
.home-friend-face{position:relative;display:flex;flex:none}.home-friend-face.button{align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;cursor:pointer}.home-friend-face.button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.home-friend-face .avatar{width:48px;height:48px;font-size:19.5px;background:var(--accent-soft);color:var(--text)}
.home-friend-face .presence-dot{position:absolute;bottom:0;right:-1px;width:10px;height:10px;border:2px solid var(--surface);opacity:1;background:#8b8c82}
.home-friend-face .presence-dot[data-online=true]{background:var(--online)}
.home-friend-copy{min-width:0;width:100%;display:flex;flex-direction:column;gap:2px}.home-friend-copy strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-friend-copy small{font-size:11px;color:var(--muted);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.home-friends>.muted{font-size:13px;line-height:1.7}.home-friends>.muted>.button{margin-left:12px}
.home-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:25px;align-items:start}
.home-games,.home-communities{min-width:0}.home-content-grid .section-head h2{font-size:19px}.home-content-grid .section-head>.text-button{flex:none}
.home-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px;margin:16px 0 17px}

.home-mosaic{display:grid;grid-template-columns:1.18fr 1fr;grid-auto-rows:156px;gap:13px}
.home-game-tile{position:relative;min-width:0;overflow:visible;isolation:isolate;border-radius:14px}
.home-mosaic>.home-hero{grid-row:span 2}.home-game-tile>.home-game{position:relative;display:block;width:100%;height:100%;margin:0;min-height:0;overflow:hidden;border-radius:14px;background:#22251f;color:#fff8ec;border:0;box-shadow:none;isolation:isolate}
.home-game-tile>.home-game::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,#0a100ba8 100%);z-index:0;pointer-events:none}
.home-game-tile .home-game-art{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:none;transition:transform 180ms ease}
.home-game-tile>.home-game:hover .home-game-art{transform:scale(1.035)}
.home-game-tile .home-game-copy{position:absolute;inset:auto 16px 15px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;z-index:1;padding:0;border:0;background:transparent;color:#fff;pointer-events:none}
.home-game-tile .home-game-title{font-size:20px;line-height:1.2;letter-spacing:-.7px;font-weight:700;color:#fff;text-align:left;max-width:100%}
.home-game-tile.home-hero .home-game-title{font-size:32px}.home-game-mode{font-size:12px;line-height:1.4;color:#fff}
.home-game-tile .button.game-favorite{position:absolute;top:10px;right:10px;width:44px;height:44px;min-height:44px;min-width:44px;border:1px solid #e3ded4;border-radius:50%;background:#fffcf6;color:#34372e;padding:10px;z-index:2}
.home-game-tile .game-favorite .icon{width:19px;height:19px}.home-game-tile .game-favorite[aria-pressed=true]{background:#fffcf6;color:#c94c1b;border-color:#e3ded4}.game-favorite[aria-pressed=true] .icon{fill:currentColor}
.home-communities>.section-head{min-height:44px;gap:8px;margin-bottom:17px}.home-communities>.section-head h2{min-width:0;line-height:22px;overflow-wrap:anywhere}.home-community{--home-community-inset:20px;display:flex;flex-direction:column;align-items:flex-start;gap:13px;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:20px;margin-bottom:15px;min-height:218px;overflow-wrap:anywhere;overflow:hidden}
.home-community .community-image-avatar{position:static;transform:none;inset:auto;display:flex;width:50px;height:50px;border:0;border-radius:11px;background:var(--accent-soft);color:var(--accent);font-size:21px;margin:0}
.home-community-cover{position:relative;align-self:stretch;flex:none;height:100px;margin:calc(-1 * var(--home-community-inset)) calc(-1 * var(--home-community-inset)) 16px}.home-community-cover>.community-image-banner{height:100%;width:100%;background:var(--accent-soft)}
.home-community .home-community-cover>.community-image-avatar{position:absolute;inset:auto auto -16px var(--home-community-inset);border:3px solid var(--surface);z-index:1}
.home-community>strong{font-size:14px;line-height:1.45}.home-community>p{font-size:12px;line-height:1.8;color:var(--muted);max-height:65px;overflow:hidden}
.home-community-online{border-top:1px solid var(--line);padding-top:13px;width:100%;font-size:12px;color:var(--online);margin-top:auto}
.home-community-note{font-size:11px;line-height:1.7;color:var(--muted);margin-top:16px}.home-community-empty p{font-size:13px}
.platform-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:25px 0 0;margin-top:30px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.6}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.collection-grid>.home-game-tile{height:210px}
.game-card{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;align-items:stretch;text-align:left;overflow:hidden}
.game-card .game-art{background:transparent;min-height:0;padding:0}.game-card .game-art img{width:100%;border-radius:9px;box-shadow:none}.game-card-details{border:0;background:transparent;padding:13px 0 0;gap:8px;color:var(--text)}
.game-card h2.game-card-title{color:var(--text);font-size:17px;letter-spacing:-.3px}.game-card-players{color:var(--muted)}.game-card-play{color:var(--accent);border-color:var(--line);background:transparent}
.catalog-intro h1{font-size:48px;letter-spacing:-2px}.catalog-search{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 12px}.catalog-search input{background:transparent;color:var(--text)}
.friends-page>.page-heading h1{font-size:34px}.friends-page>.page-heading p{font-size:14px}.friends-grid,.friends-grid-quiet{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.friend-card,html[data-theme=dark] .friend-card{min-height:92px;padding:15px;background:var(--surface);gap:12px}
.friend-card>.avatar{width:44px;height:44px;font-size:17px;border:0}.friend-card h3{font-size:14px;margin:0 27px 5px 0}.friend-card .friend-status{font-size:11px;gap:6px}.friend-card .presence-dot{width:8px;height:8px;background:#8b8c82}.friend-card .presence-dot[data-online=true]{background:var(--online)}
.friend-card-actions:empty{display:none}.friend-card-actions>.button{font-size:11px;min-height:44px}.friend-card .friend-menu{top:9px;right:5px}.friend-card .friend-menu>summary{font-size:20px}
.friend-menu-items,html[data-theme=dark] .friend-menu-items{background:var(--surface);color:var(--text);border-color:var(--line)}.friend-menu-items>.button{color:var(--text)}
.friends-toolbar>.primary,.friend-card-actions>.primary,.friend-community-picker .primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.friends-toolbar>.primary:hover,.friend-card-actions>.primary:hover,.friend-community-picker .primary:hover{background:var(--accent);filter:brightness(1.08)}
.community-card,.community-detail,.community-hero,.community-settings,.community-list-toolbar{color:var(--text)}
.community-card.panel{border-color:var(--line);background:var(--surface);color:var(--text);box-shadow:none}
.community-card-body{background:var(--surface);color:var(--text)}.community-card-body h2{color:var(--text)}.community-card-body .community-description,.community-card-body .community-access,.community-member-summary{color:var(--muted)}
.community-tab.button[aria-selected=true]{background:var(--accent-soft);border-color:var(--line);color:var(--text)}
.community-card-visual:after{background:linear-gradient(180deg,transparent,var(--surface))}
.community-card .community-open{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.community-chat-inline .chat-dock-panel,.community-chat-inline .dock-heading,.community-chat-inline .dock-composer{background:var(--surface);color:var(--text);border-color:var(--line)}
.community-chat-inline .dock-messages{background:var(--bg);color:var(--text)}.community-chat-inline .dock-composer textarea{background:var(--bg);color:var(--text);border-color:var(--line)}
.profile-photo-preview{display:block;width:112px;height:112px;border-radius:50%;object-fit:cover;border:2px solid var(--line)}
.legacy-work-readonly{display:block;width:100%;min-height:150px;max-width:100%;resize:vertical;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:14px;line-height:1.6}.legacy-work-readonly+.actions{margin-top:14px}
.app-dialog{padding:24px;border-radius:18px;background:var(--surface)}.app-dialog h2{font-size:25px}.app-dialog .button.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.app-dialog input,.app-dialog textarea,.app-dialog select{max-width:100%;min-width:0}.app-dialog .friend-community-picker{width:100%}.friend-community-option strong{font-size:15px}.friend-community-option small{font-size:12px}
.email-confirmation{min-width:0}.email-confirmation .confirmation-email{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font-weight:600;overflow-wrap:anywhere}.email-confirmation>.button{width:100%;white-space:normal;line-height:1.6;text-align:center}
.app-dialog:has(.email-confirmation)>.section-head>.icon-button{color:var(--text)}
.friend-community-option:has(input:disabled){opacity:.7}.friend-community-option>.community-image-avatar{width:48px;height:48px}
.button.danger,.danger{color:var(--danger)}.notice{background:var(--text);color:var(--bg);border-radius:12px}.notice.error{background:var(--danger);color:var(--bg)}
body.shared-game-route #main.view-content{margin:0;padding:0;max-width:none;width:100%}
@media(min-width:1450px){body:not(.shared-game-route) #main.view-content{padding-inline:38px}.home-mosaic{grid-auto-rows:180px}.home-community{min-height:240px}.home-content-grid{grid-template-columns:minmax(0,1fr) 265px}}
@media(max-width:1000px) and (min-width:761px){.home-content-grid{grid-template-columns:minmax(0,1fr) 190px;gap:18px}.home-community{--home-community-inset:16px;padding:16px}.home-friend-copy small{font-size:11px}.home-mosaic{grid-auto-rows:145px}.home-game-tile .home-game-title{font-size:18px}.home-game-tile.home-hero .home-game-title{font-size:27px}.platform-topbar .header-search{width:210px}}
@media(max-width:760px){
 :root{--rail-width:0px}
 .platform-rail{position:static;inset:auto;width:auto;display:block;padding:0;overflow:visible}
 .platform-rail>.brand{display:none}
 .platform-rail .top-nav{position:fixed;inset:auto 0 0;z-index:100;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px));background:var(--header);border-top:1px solid #464c3d;border-radius:0;gap:0}
 .platform-rail .top-nav a{flex-direction:column;justify-content:center;gap:4px;min-height:52px;padding:5px 2px;border-radius:10px;font-size:11px;color:var(--header-text)}
 .platform-rail .top-nav a>.icon{width:19px;height:19px}.platform-rail .top-nav a[aria-current=page]{background:#353a2e;color:#ffad85}.platform-rail .top-nav a>.friends-badge{position:absolute;top:2px;margin-left:25px}
 .platform-rail-footer{display:none}
 .platform-topbar{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,44px) auto;min-height:70px;margin:0;padding:11px 16px;gap:4px}
 .platform-breadcrumb{display:none}.platform-mobile-brand{display:flex;min-height:44px;align-items:center}.platform-mobile-brand img{width:96px;max-width:100%;height:auto;display:block}
 .platform-topbar .header-tools{display:contents}.platform-topbar .button.header-search-toggle{grid-column:2;grid-row:1}.platform-topbar .button.account-button{grid-column:3;grid-row:1}.platform-topbar .header-tools>.button:is(.header-search-toggle,.account-button){width:44px;min-width:44px;height:44px}
 .platform-topbar .mobile-account-actions{grid-column:4;grid-row:1;display:flex;align-items:center;gap:4px}
 .platform-topbar .mobile-account-actions .icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--text);border-radius:10px}
 .platform-topbar .mobile-account-actions .icon-button .icon{width:21px;height:21px}
 .platform-topbar .mobile-account-actions .icon-button[aria-current=page]{background:var(--accent-soft);color:var(--accent)}
 .platform-topbar .button.account-button{padding:0 4px;min-width:44px}.platform-topbar .account-button .avatar{width:34px;height:34px}.platform-topbar .account-button>span:last-child{display:none}
 .site-header[data-search-open=true] .platform-topbar .header-search{grid-column:1/-1;grid-row:2;position:static;inset:auto;display:flex;width:100%;height:48px;padding:0 12px;margin:2px 0 0;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:none}
 .site-header[data-search-open=true] .platform-topbar .header-search input{position:static;inset:auto;width:100%;min-width:0;height:44px;padding:0;background:transparent;color:var(--text);font-size:16px}
 .site-header[data-search-open=true] .platform-topbar .header-search input::placeholder{color:var(--muted);opacity:1}
 .site-header[data-search-open=true] .platform-topbar .header-search-label{width:22px;height:44px;color:var(--muted)}
 body:not(.shared-game-route) #main.view-content{margin:0;width:100%;padding:24px 16px calc(92px + env(safe-area-inset-bottom,0px));min-height:calc(100dvh - 70px)}
 .view-content .page-heading h1,.friends-page>.page-heading h1{font-size:29px}.view-content .page-heading{margin-bottom:24px}.view-content .page-heading>p{font-size:13px}.view-content .page-heading .eyebrow{font-size:10px;letter-spacing:1px}
 .home-friends{padding:14px;margin-bottom:27px}.home-friends-grid{column-gap:16px}.home-friend{gap:7px;min-height:64px}.home-friend-copy strong{font-size:12px}.home-friend-copy small{font-size:11px}
 .home-friend-face .avatar{width:43.5px;height:43.5px;font-size:18px}.home-friends>.section-head h2{font-size:17px}
 .home-content-grid{grid-template-columns:minmax(0,1fr);gap:28px}.home-filters{margin:16px 0 15px}.home-mosaic{grid-auto-rows:139px;gap:12px;grid-template-columns:1.05fr 1fr}.home-game-tile .home-game-title{font-size:17px}.home-game-tile.home-hero .home-game-title{font-size:27px}.home-game-tile .home-game-copy{inset:auto 12px 13px}.home-game-mode{font-size:11px}
 .home-game-tile .button.game-favorite{width:44px;height:44px;top:7px;right:7px}.home-communities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-communities>.section-head{grid-column:1/-1;margin:0}.home-community{--home-community-inset:15px;margin:0;padding:15px;min-height:225px}.home-community>strong{font-size:13px}.home-community>p{font-size:11px;line-height:1.7}.home-community-note,.home-community-empty{grid-column:1/-1}.home-community-note{margin:0}
 .platform-footer{padding-top:20px;margin-top:25px;font-size:11px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.collection-grid>.home-game-tile{height:180px}
 .two-columns{grid-template-columns:1fr;gap:18px}.panel{padding:18px}.friends-grid,.friends-grid-quiet{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.friend-card{display:block;min-height:145px;padding:12px}.friend-card>.avatar{width:34px;height:34px;margin-bottom:8px}.friend-card h3{font-size:13px}.friend-card .friend-status{font-size:11px}.friend-card .friend-menu{top:5px;right:0}.friend-card-actions{margin-top:8px}.friend-card-actions>.button{width:100%;padding:7px 5px}
 .friends-toolbar{gap:10px;max-width:100%}.friends-search{min-width:0;max-width:100%;flex-basis:100%}.friends-search>input{width:0;min-width:0}.friends-tabs{flex-basis:100%;width:100%;min-width:0}.friends-tabs>.button{padding:9px 6px;font-size:11px;min-width:0;flex:1;white-space:normal}.friends-toolbar>.primary{min-height:44px}.friends-page>.page-heading p{font-size:13px}
 .game-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-card{padding:9px}.game-card h2.game-card-title{font-size:15px}.game-card-details{padding-top:12px}.game-card-players{font-size:11px}.catalog-intro h1{font-size:42px}.catalog-search{width:100%;min-height:46px}.catalog-controls{gap:8px}.category-field{gap:8px}.category-field select{max-width:155px}.catalog-result{font-size:11px}
 .community-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.community-card-body{padding:14px}.community-card-body h2{font-size:17px}.community-description{font-size:12px}.community-card .community-open{font-size:12px}
 .app-dialog{padding:18px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);border-radius:16px}.app-dialog h2{font-size:22px}.friend-community-option{padding:10px;gap:10px}.friend-community-option strong{font-size:14px}.friend-community-option small{font-size:11px}.friend-community-option>.community-image-avatar{width:38px;height:38px}.friend-community-option>input{width:22px;height:22px}.friend-community-picker .actions{align-items:stretch}.friend-community-picker .actions .button{flex:1}
 .notice{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:359px){.platform-topbar{padding-inline:12px}.platform-mobile-brand img{width:88px}.home-friends-grid{gap:0 10px}.home-friend{gap:5px}.home-friend-face .avatar{width:37.5px;height:37.5px}.home-friend-copy strong{font-size:11px}.home-friend-copy small{font-size:11px}.home-mosaic{grid-auto-rows:131px}.home-game-tile .home-game-title{font-size:15px}.home-game-tile.home-hero .home-game-title{font-size:25px}.home-community{--home-community-inset:12px;padding:12px}.section-head h2,.home-content-grid .section-head h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.home-game-tile .home-game-art{transition:none}.home-game-tile>.home-game:hover .home-game-art{transform:none}}

/* Refined Home and catalogue: compact real friends, independent favorites. */
.platform-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.home-subtitle{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 8px}
.home-friends{padding:0;margin-bottom:12px}
.home-friends-grid{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:0 0 4px;scrollbar-width:thin}
.home-friend{flex:0 0 96px;min-width:0;border:0;min-height:0;padding:0;gap:6px}
.home-friend-copy small{font-size:11px}
.catalog-game-tile{position:relative;min-width:0;isolation:isolate}
.catalog-game-tile .game-card{height:100%;padding:12px;gap:14px;align-items:stretch;background:var(--surface)}
.catalog-game-tile .game-card h2.game-card-title{margin:0;padding:0 0 2px;text-align:center;font-size:18px;line-height:1.35}
.catalog-game-tile .button.game-favorite{position:absolute;z-index:2;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #e3ded4;border-radius:50%;background:#fffcf6;color:#34372e;padding:10px}
.catalog-game-tile .button.game-favorite[aria-pressed=true]{background:#fffcf6;color:#c94c1b;border-color:#e3ded4}
.catalog-game-tile .game-favorite .icon{width:19px;height:19px}
@media(max-width:760px){.home-subtitle{font-size:13px;margin-bottom:8px}.home-friends{padding:0;margin-bottom:12px}.home-friends-grid{gap:8px}.home-friend{flex-basis:96px;min-width:0;min-height:0;gap:6px}.home-friend-face .avatar{width:43.5px;height:43.5px}.home-friend-copy strong{font-size:12px}.catalog-game-tile .game-card{padding:9px;gap:11px}.catalog-game-tile .game-card h2.game-card-title{font-size:16px}.catalog-game-tile .button.game-favorite{top:15px;right:15px}}

/* Settings expose user choices and account controls, while updates stay automatic. */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.settings-grid>.panel{display:flex;flex-direction:column;align-items:stretch;gap:15px}
.settings-grid .section-head{margin:0}.settings-grid .panel>p{font-size:13px;line-height:1.7;color:var(--muted)}
.settings-grid .panel>.button{align-self:flex-start}
.settings-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.settings-language-options{display:flex;flex-wrap:wrap;gap:8px}
.settings-language-options>.button{gap:9px;min-height:46px;min-width:118px;flex:1 1 118px;padding:10px 13px}
.settings-language-options img{display:block;width:28px;height:20px;object-fit:cover;border-radius:3px}
.settings-language-options>.button[aria-pressed=true],.settings-theme-options>.button[aria-pressed=true]{background:var(--text);color:var(--surface);border-color:var(--text)}
.settings-theme-options{display:flex;flex-wrap:wrap;gap:9px}.settings-theme-options .icon{width:19px;height:19px}
.settings-app-info{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px}.settings-app-info>span{font-size:12px;color:var(--muted)}
.settings-help{font-size:12px!important;line-height:1.7!important;color:var(--muted)}
.settings-updates-paused{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.settings-updates-paused>p{font-size:12px;line-height:1.6;color:var(--muted)}
.settings-danger{margin-top:28px;padding-top:22px;border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;gap:11px}.settings-danger>h2{font-size:19px}.settings-danger>p{font-size:13px;line-height:1.7;color:var(--muted);max-width:650px}
.settings-row{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0;padding:12px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border-bottom:0}.settings-row-copy{min-width:0;flex:1}.settings-row-copy strong{font-size:14px;overflow-wrap:anywhere}.settings-row-copy p,.settings-row-copy small{font-size:12px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.settings-row .button{flex:none;min-height:44px}
@media(max-width:760px){.settings-grid{grid-template-columns:1fr;gap:16px}.settings-grid>.panel{padding:18px}.settings-language-options{gap:7px}.settings-language-options>.button{flex:1 1 118px;min-width:118px;padding:10px 8px;font-size:12px}.settings-language-options img{width:24px;height:17px}.settings-theme-options>.button{flex:1}.settings-actions{align-items:stretch}.settings-actions>.button{flex:1}.settings-danger{margin-top:24px}.settings-row{gap:9px}.settings-row .button{padding:8px 11px;font-size:12px}}

.app-dialog .friend-menu-items{position:static;width:100%;max-width:100%;box-shadow:none;border:0;padding:0;display:flex;flex-direction:column;gap:4px}
.app-dialog .friend-menu-items>.button{width:100%;justify-content:flex-start;text-align:left}
.home-friend-dialog>.section-head{align-items:flex-start}.home-friend-dialog>.section-head h2{min-width:0;overflow-wrap:anywhere;line-height:1.3}.home-friend-dialog>.section-head>.icon-button{flex:none;color:var(--text)}
.app-dialog>.section-head>.dialog-close{display:grid;place-items:center;box-sizing:border-box;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--text)}
.app-dialog>.section-head>.dialog-close .icon{display:block;width:20px;height:20px;pointer-events:none}
.app-dialog>.section-head>.dialog-close:hover{background:var(--accent-soft)}
.app-dialog .password-field{display:grid;min-width:0}
.app-dialog .password-visibility{display:flex;align-items:center;gap:9px;min-height:44px;color:var(--text);cursor:pointer}
.app-dialog .password-visibility>input{flex:none;width:17px;height:17px;min-height:0;margin:0;padding:0;accent-color:var(--accent)}
.button.profile-avatar-trigger{display:inline-grid;place-items:center;flex:none;align-self:start;width:max-content;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit}
.friend-card>.profile-avatar-trigger .avatar{width:44px;height:44px;font-size:17px}
.player-avatar-dialog{width:min(100%,400px)}
.player-avatar-card{display:grid;justify-items:center;gap:12px;margin-block:0 18px;text-align:center;overflow-wrap:anywhere}
.player-avatar-card>.avatar{width:112px;height:112px;font-size:34px}
.player-avatar-card>strong{font-size:20px;line-height:1.3}
.player-avatar-dialog .friend-menu-items>.button{min-height:44px}
@media(max-width:760px){.friend-card>.profile-avatar-trigger{margin-bottom:6px}.friend-card>.profile-avatar-trigger .avatar{width:34px;height:34px}.settings-profile-summary>.profile-avatar-trigger .avatar{width:43px;height:43px;font-size:18px}}
.home-page.play-space{gap:0}

/* Settings workspace: selected category stays beside its content on desktop. */
body.settings-route #header-host{display:block}
body.settings-route #main.view-content{max-width:none;width:auto;min-height:100dvh;margin:0 0 0 var(--rail-width);padding:0}
.settings-workspace{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100dvh;align-items:start;background:var(--bg);color:var(--text)}
.settings-sidebar{position:sticky;top:0;display:flex;flex-direction:column;min-height:100dvh;padding:28px 14px;background:var(--bg);color:var(--text);border-right:1px solid var(--line)}
.settings-brand{display:flex;align-items:center;min-height:44px;padding:0 15px}.settings-brand img{display:block;width:150px;height:auto;max-width:100%}
.settings-games-back{display:flex;align-items:center;gap:8px;min-height:44px;margin:16px 0 23px;padding:8px 15px;color:var(--header-muted);font-size:13px}.settings-games-back .icon{width:16px;height:16px}
.settings-nav-label{margin:0 15px 15px;color:#b8c3ae;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.settings-category-nav{display:flex;flex-direction:column;gap:6px}.settings-category-nav>a{position:relative;display:flex;align-items:center;gap:13px;min-height:46px;padding:11px 15px;border-radius:11px;color:var(--header-text);font-size:14px;line-height:1.4}.settings-category-nav .icon{width:21px;height:21px;flex:none}.settings-category-nav>a:hover{background:#ffffff0c}.settings-category-nav>a[aria-current=page]{background:#394f36;color:#f6f8ee}.settings-category-nav>a[aria-current=page]::before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:5px;background:var(--brand-orange)}
.settings-category-nav>a:focus-visible,.settings-games-back:focus-visible,.settings-brand:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.settings-content{width:100%;max-width:1272px;min-width:0;padding:28px 32px 48px}.settings-page-heading{margin:0 0 22px}.settings-page-heading h1{margin:0;font-size:32px;line-height:1.2;letter-spacing:-.035em}.settings-page-heading p{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.settings-profile-summary{display:flex;align-items:center;gap:16px;min-width:0;min-height:82px;margin:0 0 22px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.settings-profile-summary>.avatar{width:52px;height:52px;flex:none;font-size:23px}.settings-profile-summary>.icon{width:32px;height:32px;flex:none}.settings-profile-copy{min-width:0;flex:1}.settings-profile-copy h2{margin:0;font-size:18px;font-weight:650;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-profile-copy p{margin:5px 0 0;font-size:13px;line-height:1.4;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.settings-profile-summary>.button{flex:none}
.settings-detail{min-width:0}.settings-detail>h2{font-size:20px;line-height:1.3;margin:0 0 16px}.settings-detail>h2:focus{outline:none}.settings-detail>.panel,.settings-account-stack>.panel{border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--surface)}
.settings-detail>.panel>.section-head,.settings-account-stack>.panel>.section-head{margin-bottom:18px}.settings-detail>.panel>.section-head h2{font-size:18px}.settings-detail>.panel>p{font-size:14px;line-height:1.6;margin-bottom:16px;color:var(--muted)}
.settings-overview{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.settings-overview-row{display:flex;align-items:center;gap:17px;min-height:88px;padding:18px 22px;border-bottom:1px solid var(--line)}.settings-overview-row:last-child{border-bottom:0}.settings-overview-row:hover{background:var(--accent-soft)}.settings-overview-row>.icon{width:25px;height:25px;flex:none;color:var(--muted)}.settings-overview-row>span:nth-child(2){min-width:0;flex:1;display:grid;gap:5px}.settings-overview-row strong{font-size:15px;font-weight:650}.settings-overview-row small{color:var(--muted);font-size:13px;line-height:1.45}.settings-row-open{flex:none;color:var(--muted);font-size:26px}
.settings-preference-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);align-items:center;gap:24px;padding:4px 0 22px}.settings-preference-row+.settings-preference-row{border-top:1px solid var(--line);padding:22px 0 0}.settings-preference-copy{display:flex;gap:15px;align-items:flex-start;min-width:0}.settings-preference-copy>.icon{width:25px;height:25px;flex:none;margin-top:3px;color:var(--muted)}.settings-preference-copy h3{font-size:16px;line-height:1.35;margin:0 0 5px}.settings-preference-copy p{font-size:13px;line-height:1.5;color:var(--muted);margin:0;max-width:340px}
.settings-theme-previews{display:grid;grid-template-columns:1fr 1fr;gap:16px}.button.settings-theme-card{position:relative;display:flex;flex-direction:column;gap:9px;min-width:0;padding:0;border:0;background:transparent;color:var(--text);font-size:13px}.settings-theme-preview{display:flex;gap:9px;width:100%;height:85px;padding:13px;border:1px solid #c3c6b8;border-radius:11px;background:#f5f3ec;box-shadow:inset 0 0 0 2px transparent}.settings-theme-preview>i{display:block;flex:none;width:26px;border-radius:4px;background:#dddfd4}.settings-theme-preview>span{display:flex;flex:1;flex-direction:column;gap:8px;min-width:0;padding-top:2px}.settings-theme-preview b{display:block;height:7px;width:100%;border-radius:4px;background:#d3d4ca}.settings-theme-preview b:first-child{width:58%;background:#8d9483}.settings-theme-preview[data-preview-theme=dark]{border-color:#566b50;background:#0c1712}.settings-theme-preview[data-preview-theme=dark]>i{background:#23372b}.settings-theme-preview[data-preview-theme=dark] b{background:#293b2c}.settings-theme-preview[data-preview-theme=dark] b:first-child{background:#8da875}.settings-theme-card[aria-pressed=true] .settings-theme-preview{border:2px solid #9cbd7b;box-shadow:0 0 0 2px #9cbd7b25;padding:12px}.settings-theme-check{position:absolute;top:-8px;right:-8px;display:none;place-items:center;width:25px;height:25px;border-radius:50%;background:#bdd7a4;color:#142411;font-size:16px;font-weight:700}.settings-theme-card[aria-pressed=true] .settings-theme-check{display:grid}
.settings-language-toggle{display:flex;align-items:center;gap:11px;min-height:46px;min-width:0;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);cursor:pointer;font:inherit;font-size:14px}.settings-language-toggle>span[lang]{flex:1}.settings-language-select img{display:block;width:28px;height:20px;flex:none;object-fit:contain}.settings-language-toggle[aria-disabled=true]{opacity:.65;cursor:wait}.settings-language-toggle:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.settings-language-toggle[aria-expanded=true]{border-color:#9cbd7b}.settings-language-toggle[aria-expanded=true] .auth-language-chevron{transform:rotate(225deg)}
.settings-language-menu{--language-min:9rem;--language-gap:4px;grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(var(--language-min),calc((100% - 3 * var(--language-gap)) / 4))),1fr));gap:var(--language-gap);min-width:0;min-height:0;max-height:min(28rem,55dvh);padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow-y:auto;overscroll-behavior:contain}
.settings-language-menu[hidden]{display:none}
.profile-camera-preview{display:block;width:100%;max-height:min(55dvh,24rem);aspect-ratio:4/3;object-fit:contain;border-radius:10px;background:#141813}
.profile-camera-preview[hidden]{display:none}
.button.settings-language-option{position:relative;justify-content:flex-start;gap:5px;min-width:0;min-height:44px;width:100%;padding:7px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:start;font-size:14px;white-space:normal}.settings-language-option img{width:24px;height:17px}.settings-language-option>span[lang]{flex:1}.settings-language-option:is([aria-selected=true],:hover){background:var(--accent-soft)}.settings-language-option:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.button.settings-language-option[aria-selected=true]{padding-inline-end:15px}.settings-language-check{position:absolute;inset-inline-end:4px;inset-block-start:50%;transform:translateY(-50%);font-size:12px;color:var(--accent)}.settings-language-option[aria-selected=false] .settings-language-check{display:none}
.settings-detail-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch}.settings-detail-actions>.button{justify-content:flex-start;min-height:52px;text-align:left}.settings-detail-actions .icon{width:21px;height:21px;flex:none}
.settings-community-nav{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:8px}.settings-community-nav .is-selected{background:var(--accent-soft);border-color:var(--accent)}.settings-inline-list{min-width:0}.settings-inline-list>[role=status]{padding:16px 0;color:var(--muted);line-height:1.55}.settings-inline-list>[role=status]:empty{display:none}.settings-inline-list>.button{margin-top:16px}.settings-account-stack{display:flex;flex-direction:column;gap:20px}.settings-account-stack .settings-danger{margin:0;padding:20px 22px;border:1px solid #d56d5155;border-radius:16px;background:#af5a3b0a}.settings-account-stack .photo-chooser input[type=file]{max-width:100%}.settings-account-stack .identity{margin-bottom:18px}.settings-mobile-title,.settings-mobile-back{display:none}
@media(min-width:1600px){.settings-content{padding:32px 40px 56px}.settings-sidebar{padding-top:32px}}
@media(max-width:1100px) and (min-width:761px){.settings-workspace{grid-template-columns:218px minmax(0,1fr)}.settings-sidebar{padding-inline:12px}.settings-content{padding:25px 24px 40px}.settings-preference-row{grid-template-columns:minmax(0,1fr);gap:18px}.settings-theme-previews{width:min(100%,400px)}.settings-profile-summary{flex-wrap:wrap}.settings-profile-summary>.button{margin-left:68px;flex-basis:calc(100% - 68px)}}
@media(max-width:760px){.settings-workspace{display:block;min-height:calc(100dvh - 162px - env(safe-area-inset-bottom,0px))}.settings-sidebar{position:relative;min-height:0;padding:22px 18px 32px}.settings-brand{padding-left:10px}.settings-games-back{padding-left:10px;margin-bottom:20px}.settings-mobile-title{display:block;margin:0 10px 24px;font-size:28px;line-height:1.25}.settings-nav-label{display:none}.settings-category-nav>a{min-height:54px;font-size:15px;padding:13px 15px}.settings-workspace[data-settings-mobile-detail=false]>.settings-content{display:none}.settings-workspace[data-settings-mobile-detail=true]>.settings-sidebar{display:none}.settings-content{padding:16px 16px 32px;max-width:none}.settings-mobile-back{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:12px;font-size:13px;color:var(--muted)}.settings-mobile-back .icon{width:18px;height:18px}.settings-page-heading{margin-bottom:18px}.settings-page-heading h1{font-size:27px}.settings-page-heading p{font-size:13px;line-height:1.5}.settings-profile-summary{gap:11px;padding:14px;margin-bottom:22px;flex-wrap:wrap}.settings-profile-summary>.avatar{width:43px;height:43px;font-size:18px}.settings-profile-copy h2{font-size:16px}.settings-profile-copy p{font-size:12px}.settings-profile-summary>.button{margin-left:54px;flex-basis:calc(100% - 54px);min-height:44px;padding:9px 12px;font-size:12px}.settings-detail>h2{font-size:19px}.settings-detail>.panel,.settings-account-stack>.panel{padding:18px 15px}.settings-preference-row{grid-template-columns:minmax(0,1fr);gap:18px;padding-bottom:22px}.settings-theme-previews{width:min(100%,400px);gap:13px}.settings-theme-preview{height:80px}.settings-overview-row{gap:12px;padding:17px 15px}.settings-overview-row strong{font-size:14px}.settings-overview-row small{font-size:12px}.settings-row{flex-wrap:wrap}.settings-row>.button{margin-left:auto}.settings-detail-actions>.button{padding:12px;overflow-wrap:anywhere}.settings-account-stack .settings-danger{padding:18px 15px}}
@media(prefers-reduced-motion:reduce){.settings-workspace *{scroll-behavior:auto}}

/* Keep the shared platform navigation around the settings workspace. */
.settings-workspace .settings-brand,.settings-workspace .settings-games-back{display:none}
.settings-nav-label{color:var(--muted)}
.settings-category-nav>a{color:var(--text)}
.settings-category-nav>a:hover{background:var(--accent-soft)}
.settings-category-nav>a[aria-current=page]{background:#394f36;color:#f6f8ee}
.platform-rail-footer .rail-setting[aria-current=page]{background:var(--brand-orange);color:#211b14}
.platform-rail-footer .rail-setting[aria-current=page]:hover{background:#ff7845}
@media(min-width:761px){body.settings-route .platform-topbar{display:none}}
@media(max-width:760px){body.settings-route #main.view-content{width:100%;margin:0;padding:0 0 calc(92px + env(safe-area-inset-bottom,0px));min-height:calc(100dvh - 70px)}}

.platform-rail a:focus-visible,.platform-rail button:focus-visible{outline-color:var(--header-text)}

/* Friends: name-adjacent request action, preserving relationship controls. */
.friend-name-row{display:flex;align-items:center;gap:6px;min-width:0;padding-right:26px;margin-bottom:5px}
.friend-name-row h3{flex:0 1 auto;min-width:0;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.friend-name-row .friend-add-button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;background:transparent;border:1px solid var(--line);border-radius:10px;color:var(--text)}
.friend-name-row .friend-add-button:hover{background:var(--accent-soft);border-color:var(--accent)}
.friend-name-row .friend-add-button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.friend-card-body{min-width:0}

/* Profile photo results remain beside their actions, including on narrow screens. */
.photo-feedback{position:static;margin:0;padding:12px 14px;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);overflow-wrap:anywhere;font-size:14px;line-height:1.6;scroll-margin-block:100px}.photo-feedback.error{border-color:var(--danger);color:var(--text)}

/* Home: approved full-column square Spider thumbnail, preserving other card sizes. */
.home-mosaic{--home-card-height:156px;--home-card-gap:13px;grid-auto-rows:minmax(var(--home-card-height),auto);align-items:start}
.home-mosaic>.home-hero{height:calc(var(--home-card-height)*2 + var(--home-card-gap))}
.home-mosaic>.home-game-tile:not(.home-hero){height:var(--home-card-height)}
.home-mosaic>.home-game-tile[data-game-id="spider"]{height:auto;align-self:start}
.home-mosaic>.home-game-tile[data-game-id="spider"]>.home-game{height:auto;aspect-ratio:1/1}
.home-mosaic>.home-game-tile[data-game-id="spider"] .home-game-art{position:absolute;inset:0;aspect-ratio:auto;object-fit:contain}
@media(min-width:1450px){.home-mosaic{--home-card-height:180px}}
@media(min-width:761px) and (max-width:1000px){.home-mosaic{--home-card-height:145px}}
@media(max-width:760px){.home-mosaic{--home-card-height:139px;--home-card-gap:12px}}
@media(max-width:359px){.home-mosaic{--home-card-height:131px}}

/* Hidden Pairs Home: approved complete9:13portrait artwork. */
.home-mosaic>.home-game-tile[data-game-id="hidden-pairs"]{height:auto;align-self:start}
.home-mosaic>.home-game-tile[data-game-id="hidden-pairs"]>.home-game{height:auto;aspect-ratio:9/13}
.home-mosaic>.home-game-tile[data-game-id="hidden-pairs"] .home-game-art{position:absolute;inset:0;aspect-ratio:auto;object-fit:contain;object-position:center}

.home-game-tile[data-game-id="towers"]>.home-game:hover .home-game-art{transform:none}
/* Witches: complete approved landscape cover; keep the printed title and cards unobscured. */
.home-game-tile[data-game-id="towers"]{height:auto!important;align-self:start}
.home-game-tile[data-game-id="towers"]>.home-game{height:auto}
.home-game-tile[data-game-id="towers"]>.home-game::after{display:none}
.home-game-tile[data-game-id="towers"] .home-game-art{position:static;display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center}
.home-game-tile[data-game-id="towers"] .home-game-copy{position:static;display:flex;padding:10px 14px 12px;gap:3px}
.home-game-tile[data-game-id="towers"] .home-game-title{font-size:16px;letter-spacing:0}
.catalog-game-tile[data-game-id="towers"] .game-art img{aspect-ratio:16/9;object-fit:contain;height:auto}

/* Keep the Witches favorite touch target outside the printed artwork. */
.home-game-tile[data-game-id="towers"] .home-game-copy{padding-right:64px;min-height:66px;box-sizing:border-box}
.home-game-tile[data-game-id="towers"]>.button.game-favorite{top:auto;bottom:10px;right:10px}
@media(max-width:760px){.home-game-tile[data-game-id="towers"] .home-game-title{font-size:13px}}

/* Approved community creation and permission settings. */
.community-settings-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto}
.community-settings-dialog .stack{gap:18px}.community-settings-dialog fieldset{min-width:0;border:0;padding:0;margin:0}.community-settings-dialog legend{font-size:14px;font-weight:600;margin-bottom:10px}
.community-settings-fields{display:grid;gap:17px}.community-settings-help{font-size:12px;line-height:1.5;color:var(--muted);margin:0}.community-settings-error{color:var(--danger);font-size:13px;margin:8px 0 0}
.community-admission-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.community-admission-option{display:grid;grid-template-columns:1fr 18px;gap:6px;padding:13px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2,var(--surface))}.community-admission-option input{grid-row:1;grid-column:2;width:16px;height:16px;margin:0;accent-color:var(--accent)}.community-admission-option strong{grid-row:1;grid-column:1;font-size:13px}.community-admission-option small{grid-column:1/-1;font-size:11px;color:var(--muted)}.community-admission-option:has(input:checked){background:var(--accent-soft);border-color:var(--accent)}
.community-discovery-setting{display:flex;justify-content:space-between;gap:16px;align-items:center}.community-discovery-setting strong,.community-discovery-setting small{display:block}.community-discovery-setting small{font-size:12px;color:var(--muted);margin-top:3px}.community-discovery-setting input{width:20px;height:20px;flex:0 0 20px;accent-color:var(--accent)}
.community-permission-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.community-permission-fields .field{min-width:0}.community-settings-languages{border-top:1px solid var(--line)!important;padding-top:18px!important}.community-language-modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:9px}.community-language-mode{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;font-size:13px}.community-language-mode:has(input:checked){background:var(--accent-soft);border-color:var(--accent)}.community-language-mode input{width:15px;height:15px;margin:0;accent-color:var(--accent)}
.community-settings-language-picker{display:grid;gap:12px;margin:12px 0}.community-settings-chips,.community-language-flags{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.community-settings-dialog .community-language-chip{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 10px;background:var(--accent-soft);color:var(--text);border:1px solid var(--line);border-radius:9px;font-size:13px}.community-language-chip img,.community-language-flag img{object-fit:cover;border-radius:2px}.community-language-all{font-size:12px;color:var(--muted)}.community-language-flags{margin:10px 0}.community-language-flag.button{width:40px;min-height:34px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}.community-request-pending{font-size:12px;color:var(--muted)}
.community-create-media-grid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px}.community-create-media-field{min-width:0}.community-create-media-field legend{font-size:12px!important}.community-create-media-field .field{margin:9px 0 0}.community-create-media-field input[type=file]{width:100%;font-size:12px}.community-create-media-field .text-button{font-size:12px;margin-top:5px}.community-create-preview{height:126px;overflow:hidden;border:1px dashed var(--line);border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--surface-2,var(--surface));color:var(--muted)}.community-create-preview>img{display:block;width:100%;height:100%;object-fit:cover}.community-create-avatar{width:84px;height:84px;border-radius:50%;font-size:30px}.community-create-placeholder{padding:10px;text-align:center;font-size:12px}.community-create-avatar .community-create-placeholder{font-size:30px}.community-create-preview .community-image{position:static;transform:none;inset:auto;width:100%;height:100%;border:0;border-radius:inherit}.community-settings-media>.community-settings-help{margin-top:9px}
.community-settings-dialog>.section-head>.icon-button{color:var(--text)}
.community-settings-fields select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit}
.community-create-media-content{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.community-create-banner{width:100%}.community-create-choose{max-width:100%;white-space:normal;min-height:40px;font-size:13px}.community-create-media-content>.text-button{margin:0}
@media(max-width:600px){.community-settings-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.community-admission-options{grid-template-columns:1fr}.community-admission-option{grid-template-columns:1fr 20px;padding:11px 12px;gap:3px 8px}.community-admission-option input{grid-row:1/3;align-self:center}.community-admission-option small{grid-column:1}.community-permission-fields{grid-template-columns:1fr}.community-create-media-grid{grid-template-columns:1fr}.community-create-media-avatar .community-create-media-content{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px 14px;align-items:center}.community-create-media-avatar .community-create-preview{grid-column:1;grid-row:1/3}.community-create-media-avatar .community-create-choose,.community-create-media-avatar .text-button{grid-column:2;justify-self:start}.community-create-media-avatar .community-create-choose{grid-row:1}.community-create-media-avatar .text-button{grid-row:2}.community-settings-dialog .community-language-chip,.community-language-flag.button,.community-language-mode,.community-create-choose{min-height:44px}.community-settings-dialog input:not([type=radio]):not([type=checkbox]):not([type=file]),.community-settings-dialog select,.community-settings-dialog textarea{font-size:16px}}

/* Approved Pool landscape artwork: keep the8inlay clear in card crops. */
.catalog-game-tile[data-game-id="pool"] .game-art img{object-position:65% 50%}
@media(max-width:760px){
 .home-game[data-game-id="pool"] .home-game-art{object-position:90% 50%}
 .catalog-game-tile[data-game-id="pool"] .game-art img{object-position:90% 50%}
}

/* Pool catalogue: 20% wider photographic field, numeral clear of favorite. */
.catalog-game-tile[data-game-id="pool"] .game-art img{object-position:68.64% 50%}
@media(max-width:760px){
 .catalog-game-tile[data-game-id="pool"] .game-art img{object-position:100% 50%}
}

/* Witches placement: first full-width Home scene2:1; square catalogue and favorites. */
.home-mosaic>.home-game-tile[data-game-id="towers"]{grid-column:1/-1;grid-row:auto}
.home-mosaic>.home-game-tile[data-game-id="towers"] .home-game-art{aspect-ratio:2/1}
.catalog-game-tile[data-game-id="towers"] .game-art img,.collection-grid>.home-game-tile[data-game-id="towers"] .home-game-art{aspect-ratio:1/1;object-fit:contain}

/* Requested Home framing: captions on the image, heart at upper-right, no footer. */
.home-mosaic>.home-game-tile[data-game-id="towers"]>.home-game::after{display:block;background:linear-gradient(180deg,transparent 60%,#07110bdd 100%)}
.home-mosaic>.home-game-tile[data-game-id="towers"] .home-game-copy{position:absolute;inset:auto 14px 12px;padding:0;min-height:0;gap:3px;max-width:calc(100% - 28px);text-shadow:0 1px 3px #000b}
.home-mosaic>.home-game-tile[data-game-id="towers"]>.button.game-favorite{top:10px;right:10px;bottom:auto}
/* Legal acceptance uses native, keyboard-operable controls. */
.legal-consent{display:grid;gap:8px;max-width:100%}.legal-checkbox{display:flex;align-items:flex-start;gap:12px;padding:12px 0;line-height:1.6;cursor:pointer}.legal-checkbox input{flex:none;width:22px;height:22px;margin:3px 0;accent-color:var(--accent,#315d55)}.legal-checkbox span{min-width:0;overflow-wrap:anywhere}.legal-consent a,.legal-links a{text-decoration:underline;text-underline-offset:.2em}.legal-notice{margin:0;font-size:.9rem;line-height:1.6}.legal-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px}.legal-links .text-button{font-size:inherit}#platform-legal-footer{padding:24px 20px 100px;margin-left:var(--rail-width,0)}.legal-gate{max-width:660px}.privacy-choice{position:fixed;z-index:90;right:20px;bottom:80px;max-width:480px;max-height:75dvh;overflow:auto;padding:20px;border:1px solid #8b928e;border-radius:14px;background:var(--surface,#fff);color:var(--text,#20252b);box-shadow:0 10px 45px #0003}.privacy-choice h2{margin:0;font-size:1.1rem}.privacy-choice p{line-height:1.6}.privacy-choice .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.privacy-choice button{min-height:44px}.privacy-choice a{color:inherit;text-decoration:underline}.legal-consent a:focus-visible,.legal-links a:focus-visible,.privacy-choice a:focus-visible{outline:3px solid #c2841b;outline-offset:3px}[data-theme=dark] .privacy-choice{background:#1f2d31;color:#f0f3f1}@media(max-width:760px){#platform-legal-footer{margin-left:0;padding-bottom:100px}.privacy-choice{left:12px;right:12px;bottom:78px;max-width:none;padding:16px}} 


/* Community interior: real persistent conversation and compact supported controls. */
.community-interior{--community-chat-bg:color-mix(in srgb,var(--bg) 80%,var(--surface));--community-other-bubble:color-mix(in srgb,var(--surface) 76%,var(--line));--community-own-bubble:color-mix(in srgb,var(--surface) 66%,var(--accent));gap:9px}
.community-interior-page-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.community-interior>.back-link{align-self:flex-start;min-height:44px;font-size:12px}
.community-interior .community-interior-layout{grid-template-columns:minmax(0,1.95fr) minmax(310px,1fr);gap:14px;align-items:start}
.community-interior .community-main{min-width:0}.community-interior .community-conversation{padding:0;gap:0;border:0;background:transparent;box-shadow:none;min-width:0}
.community-interior .community-chat-slot{min-width:0}.community-interior .community-chat-slot>.button{margin:18px;min-height:44px}
.community-interior .community-chat-inline{width:100%;max-width:none}
.community-interior .community-chat-inline .chat-dock-panel{height:auto;max-height:clamp(360px,calc(100dvh - 175px),850px);min-height:0;border:1px solid var(--line);border-radius:15px;box-shadow:none;overflow:hidden;background:var(--community-chat-bg)}
.community-interior .community-chat-inline:has(.chat-dock-panel:not([hidden]))>.chat-dock-tabs{display:none}
.community-interior .dock-heading{min-height:72px;padding:12px 14px;gap:12px;align-items:center;background:var(--surface)}
.community-interior .dock-heading h2{flex:1;min-width:0;font-size:22px;line-height:1.3;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.community-interior .dock-heading-actions{display:flex;align-items:center;gap:2px;margin-left:auto;flex:none}
.community-interior .dock-heading .icon-button{min-width:44px;min-height:44px;padding:8px;color:var(--text);border-radius:8px}
.community-interior .community-chat-avatar{width:44px;height:44px;flex:0 0 44px}
.community-interior .community-chat-avatar>.community-image-avatar{position:static;inset:auto;transform:none;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft);color:var(--text);display:grid;place-items:center;font-size:23px}
.community-interior .community-chat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.community-interior .dock-messages{height:auto;min-height:0;flex:0 1 auto;padding:20px 18px;display:flex;flex-direction:column;gap:16px;background:var(--community-chat-bg);overflow-x:hidden}
.community-interior .dock-messages>.message{display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 11px;padding:0;margin:0;border:0;flex:0 0 auto;min-width:0;align-items:start}
.community-interior .dock-messages>.message-own{grid-template-columns:minmax(0,1fr) 42px}
.community-interior .message>:is(.avatar,.profile-avatar-trigger){grid-column:1;grid-row:1;width:42px;height:42px;min-width:0;min-height:0}.community-interior .message>.avatar,.community-interior .message>.profile-avatar-trigger .avatar{border:1px solid var(--line);background:var(--accent-soft);border-radius:50%;font-size:16px}.community-interior .message>.profile-avatar-trigger .avatar{width:100%;height:100%}
.community-interior .message-own>:is(.avatar,.profile-avatar-trigger){grid-column:2}
.community-interior .message>.message-body{grid-column:2;grid-row:1;min-width:0;max-width:100%}
.community-interior .message-own>.message-body{grid-column:1;text-align:right}
.community-interior .message-meta{gap:9px;margin:0 0 6px;align-items:center;line-height:1.4}.community-interior .message-own .message-meta{justify-content:flex-end}
.community-interior .message-meta strong{font-size:13px;color:var(--text);font-weight:600}.community-interior .message-meta time{font-size:11px;color:var(--muted);white-space:nowrap}
.community-interior .message-body>p{display:inline-block;max-width:100%;margin:0;padding:11px 14px;border:1px solid var(--line);border-radius:4px 16px 16px 16px;background:var(--community-other-bubble);color:var(--text);font-size:14px;line-height:1.65;text-align:left;overflow-wrap:anywhere;white-space:pre-wrap}
.community-interior .message-own .message-body>p{background:var(--community-own-bubble);border-radius:16px 4px 16px 16px}
.community-interior .local-message .message-body>p{color:var(--text);opacity:.8}
.community-interior .message>.message-tools{grid-column:2;grid-row:2;justify-self:start;display:flex;flex-direction:row;gap:5px}
.community-interior .message-own>.message-tools{grid-column:1;justify-self:end}
.community-interior .message-tools>.text-button{min-height:44px;padding:5px 9px;font-size:11px;line-height:1;color:var(--muted);border-radius:8px}
.community-interior .message-body>.actions{justify-content:flex-start;margin-top:6px}.community-interior .message-own .message-body>.actions{justify-content:flex-end}
.community-interior .dock-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:12px;border-top:1px solid var(--line);background:var(--surface)}
.community-interior .dock-composer textarea{field-sizing:content;min-height:52px;max-height:130px;margin:0;padding:13px 15px;border-radius:13px;resize:none;background:var(--community-chat-bg);font-size:15px;line-height:1.5}
.community-interior .dock-composer>.button{align-self:stretch;min-height:52px;min-width:108px;padding:11px 17px;border-radius:13px;font-size:14px}
.community-interior .dock-status{font-size:12px}.community-interior .dock-status:empty{display:none}
.community-interior .community-sidebar{display:flex;flex-direction:column;gap:14px;min-width:0}
.community-interior .community-sidebar>.panel{padding:18px;gap:15px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
.community-interior .community-side-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.community-interior .community-side-heading h2{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0;margin:0;font-size:17px;font-weight:600;line-height:1.4;letter-spacing:-.02em}
.community-interior .community-side-heading h2>.icon{width:23px;height:23px;color:var(--accent);flex:none}
.community-interior .community-side-heading>.button{font-size:12px;min-height:44px;padding:8px 10px;gap:6px;flex:none;border-radius:9px}
.community-interior .community-side-heading>.button .icon{width:16px;height:16px}
.community-interior .community-card-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:1px 6px;border-radius:20px;font-size:11px;line-height:1;background:var(--accent-soft);color:var(--text);font-variant-numeric:tabular-nums}
.community-interior .community-games-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}
.community-interior .community-games-tab{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:7px 5px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px}
.community-interior .community-games-tab[aria-selected=true]{background:var(--accent-soft);color:var(--text)}
.community-interior .community-games-help{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.community-interior .community-games-content{min-width:0;display:flex;flex-direction:column;gap:10px}
.community-interior .community-games-content>.empty-state{min-height:130px;margin:0;padding:18px;border:1px dashed var(--line);border-radius:11px;background:var(--bg);text-align:left;display:flex;flex-direction:column;justify-content:center;gap:7px}
.community-interior .community-games-content>.empty-state h3{margin:0;font-size:13px;line-height:1.5}.community-interior .community-games-content>.empty-state p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.community-interior .community-party{padding:11px;gap:8px;border-radius:11px}.community-interior .community-party strong{font-size:13px}.community-interior .community-party small{font-size:11px}.community-interior .community-party .button{min-height:44px;font-size:12px;padding:8px 10px}
.community-interior .community-member-preview{display:flex;flex-direction:column;gap:8px;min-width:0}
.community-interior .community-preview-member{padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--bg);min-width:0}
.community-interior .community-preview-member .identity{min-width:0}.community-interior .community-preview-member .identity>div{min-width:0}.community-interior .community-preview-member strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.community-interior .community-preview-member small{font-size:11px;line-height:1.5}
.community-interior .community-preview-member .avatar{width:40px;height:40px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--accent-soft);color:var(--text)}
.community-interior .community-member-invite{width:100%;min-height:44px;border-radius:10px;font-size:12px}
.community-interior .community-management-rows{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--bg)}
.community-interior .community-management-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:52px;margin:0;padding:10px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font-size:12px;text-align:left}
.community-interior .community-management-row:last-child{border-bottom:0}.community-interior .community-management-row>.icon:first-child{width:19px;height:19px;color:var(--accent);flex:none}.community-interior .community-management-row>.icon:last-child:not(:first-child),.community-interior .community-management-row>.community-card-count{margin-left:auto}
.community-interior .community-management-row>span{min-width:0}.community-interior .community-management-row strong{display:block;font-size:12px;line-height:1.5;font-weight:600}.community-interior .community-management-row small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
.community-interior .community-mute-row{justify-content:space-between}.community-interior .community-mute-row input{accent-color:var(--accent);width:22px;height:22px;flex:0 0 22px;margin:0}
.community-interior .community-more-actions>summary{display:flex;align-items:center;min-height:44px;color:var(--muted);font-size:12px;list-style-position:inside;gap:6px}.community-interior .community-more-actions>summary:after{content:'›';font-size:18px}.community-interior .community-more-action-list{display:flex;flex-direction:column;align-items:stretch;gap:3px}.community-interior .community-more-action-list>.button{justify-content:flex-start;min-height:44px;font-size:12px;white-space:normal;text-align:left}
.community-interior-identity{display:flex;gap:14px;align-items:center}.community-interior-identity>.community-image-avatar,.community-info-identity>.community-image-avatar{position:static;transform:none;inset:auto;width:58px;height:58px;flex:none;border-radius:13px}.community-interior-identity h1{font-size:26px;margin:0 0 8px}.community-interior-identity p{font-size:14px;line-height:1.6}
.community-members-dialog,.community-requests-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto}.community-members-dialog-list,.community-requests-list{display:flex;flex-direction:column;gap:10px}.community-members-dialog .community-member{min-width:0}.community-members-dialog .identity{min-width:0}.community-members-dialog .identity>div{min-width:0;overflow-wrap:anywhere}.community-members-dialog .member-actions{flex-wrap:wrap;justify-content:flex-end}.community-requests-dialog .request-row{display:flex;flex-wrap:wrap;gap:12px}
.community-info{max-width:560px;overflow-wrap:anywhere}.community-info>.community-image-banner{position:static;width:100%;height:145px;border-radius:11px;overflow:hidden}.community-info-identity{display:flex;gap:13px;align-items:center}.community-info-identity h3{margin:0;font-size:22px}.community-info p{margin:0;font-size:14px;line-height:1.65}
@media(max-width:1080px) and (min-width:761px){.community-interior .community-interior-layout{grid-template-columns:minmax(0,1fr) 280px}.community-interior .community-sidebar>.panel{padding:14px}.community-interior .community-side-heading{gap:6px}.community-interior .community-side-heading h2{font-size:16px}.community-interior .community-side-heading>.button{font-size:11px;padding-inline:8px}.community-interior .dock-heading{padding:10px;gap:7px}.community-interior .dock-heading h2{font-size:18px}.community-interior .dock-heading .icon-button{min-width:44px;padding:6px}.community-interior .community-chat-avatar{width:38px;height:38px;flex-basis:38px}.community-interior .community-chat-avatar>.community-image-avatar{width:38px;height:38px}}
@media(max-width:900px){.community-interior .community-interior-layout{grid-template-columns:minmax(0,1fr)}.community-interior .community-chat-inline .chat-dock-panel{max-height:clamp(360px,68dvh,740px)}.community-interior .community-sidebar{display:flex;flex-direction:column}.community-interior .community-sidebar>.panel{width:100%}}
@media(max-width:480px){.community-interior .dock-heading{padding:10px;gap:8px;min-height:66px}.community-interior .dock-heading h2{font-size:19px}.community-interior .community-chat-avatar,.community-interior .community-chat-avatar>.community-image-avatar{width:36px;height:36px}.community-interior .community-chat-avatar{flex-basis:36px}.community-interior .dock-heading-actions{gap:0}.community-interior .dock-heading .icon-button{min-width:44px;min-height:44px;padding:6px}.community-interior .dock-messages{padding:16px 11px;gap:13px}.community-interior .dock-messages>.message{grid-template-columns:34px minmax(0,1fr);gap:3px 9px}.community-interior .dock-messages>.message-own{grid-template-columns:minmax(0,1fr) 34px}.community-interior .message>:is(.avatar,.profile-avatar-trigger){width:34px;height:34px}.community-interior .message-body>p{padding:10px 12px;font-size:13px}.community-interior .message-meta{gap:6px}.community-interior .message-meta strong{font-size:12px}.community-interior .dock-composer{gap:8px;padding:10px}.community-interior .dock-composer textarea{font-size:16px;min-height:50px;padding:11px 12px}.community-interior .dock-composer>.button{min-width:82px;min-height:50px;padding:10px;font-size:13px}.community-interior .community-sidebar>.panel{padding:15px}.community-members-dialog .community-member{flex-direction:column;align-items:stretch}.community-members-dialog .member-actions{justify-content:flex-start}}
@media(max-height:520px){.community-interior .community-chat-inline .chat-dock-panel{max-height:330px;min-height:0}.community-interior .dock-heading{min-height:58px;padding-block:7px}.community-interior .dock-messages{min-height:90px;padding-block:10px}.community-interior .dock-composer{padding-block:8px}.community-members-dialog,.community-requests-dialog{max-height:calc(100dvh - 16px)}}

/* Existing report actions stay alongside each bubble; no unsupported controls. */
.community-interior .dock-messages>.message{grid-template-columns:42px minmax(0,1fr) 44px;gap:4px 10px}
.community-interior .dock-messages>.message-own{grid-template-columns:44px minmax(0,1fr) 42px}
.community-interior .message-own>:is(.avatar,.profile-avatar-trigger){grid-column:3}.community-interior .message-own>.message-body{grid-column:2}
.community-interior .message>.message-tools{grid-column:3;grid-row:1;align-self:center;justify-self:start}
.community-interior .message-own>.message-tools{grid-column:1;grid-row:1;justify-self:end}
.community-interior .message-tools>.text-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;color:var(--muted)}
.community-interior .message-tools .icon{width:18px;height:18px}
.community-interior .local-message>.message-body{grid-column:2/-1}.community-interior .message-own.local-message>.message-body{grid-column:1/3}
.community-interior .community-mute-row input{appearance:none;position:relative;width:38px;height:24px;flex-basis:38px;border:1px solid var(--line);border-radius:20px;background:var(--line)}
.community-interior .community-mute-row input:after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface)}
.community-interior .community-mute-row input:checked{background:var(--accent);border-color:var(--accent)}
.community-interior .community-mute-row input:checked:after{left:17px;background:var(--on-accent)}
.community-interior .community-mute-row input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.community-members-dialog .role-select{min-height:44px}
@media(max-width:480px){.community-interior .dock-messages>.message{grid-template-columns:34px minmax(0,1fr) 44px;gap:3px 8px}.community-interior .dock-messages>.message-own{grid-template-columns:44px minmax(0,1fr) 34px}}

/* Keep the real composer clear of fixed mobile navigation in short/keyboard viewports. */
@media(max-height:520px){
 .community-interior .community-chat-inline .chat-dock-panel{max-height:clamp(180px,calc(100dvh - 182px - env(safe-area-inset-bottom,0px)),330px);min-height:0}
 .community-interior .dock-heading{min-height:52px;padding-block:4px}
 .community-interior .dock-messages{min-height:0;flex:0 1 auto;padding-block:8px}
 .community-interior .dock-composer{min-height:0;padding:8px 10px;scroll-margin-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .community-interior .dock-composer textarea{min-height:44px;max-height:72px;padding-block:9px;line-height:1.4;scroll-margin-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .community-interior .dock-composer>.button{min-height:44px}
}

/* Approved Home mosaic: existing artwork, staggered large/small cards. */
.home-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;grid-template-rows:none;gap:16px;align-items:stretch}
.home-mosaic>.home-game-tile[data-game-id]{width:100%;height:auto!important;min-height:120px;aspect-ratio:1/1;grid-column:auto;grid-row:auto;align-self:stretch;border-radius:clamp(14px,1.8vw,24px)}
.home-mosaic>.home-game-tile[data-game-id]>.home-game{height:100%;min-height:0;aspect-ratio:auto;border-radius:inherit}
.home-mosaic>.home-game-tile[data-game-id] .home-game-art{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center}
.home-mosaic>.home-game-tile[data-game-id=towers]{grid-column:1/-1;aspect-ratio:auto;min-height:0}
.home-mosaic>.home-game-tile[data-game-id=towers]>.home-game{height:auto}
.home-mosaic>.home-game-tile[data-game-id=towers] .home-game-art{position:static;height:auto;object-fit:contain}
.home-mosaic[data-filter=all]{grid-template-columns:repeat(16,minmax(0,1fr));grid-template-rows:auto auto auto auto auto;grid-template-areas:"witches witches witches witches witches witches witches witches witches witches witches witches witches witches witches witches" "backgammon backgammon backgammon backgammon backgammon backgammon backgammon backgammon backgammon pool pool pool pool pool pool pool" "backgammon backgammon backgammon backgammon backgammon backgammon backgammon backgammon backgammon hidden hidden hidden hidden hidden hidden hidden" "spider spider spider spider spider spider spider spider spider hidden hidden hidden hidden hidden hidden hidden" "four four four four four four four four naval naval naval naval naval naval naval naval"}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=towers]{grid-area:witches}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=backgammon]{grid-area:backgammon;aspect-ratio:1.05}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=pool]{grid-area:pool;aspect-ratio:1.4}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=spider]{grid-area:spider;aspect-ratio:1.55}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=hidden-pairs]{grid-area:hidden;aspect-ratio:.75}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=four-in-a-row]{grid-area:four;aspect-ratio:2/1;min-height:112px}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=naval]{grid-area:naval;aspect-ratio:2/1;min-height:112px}
.home-mosaic[data-filter=all]>.home-game-tile[data-game-id=backgammon] .home-game-title{font-size:clamp(20px,2.25vw,32px)}
@media(max-width:760px){.home-mosaic{gap:12px}}
@media(max-width:359px){.home-mosaic{gap:10px}}

/* Persisted personal invitations use the existing community surfaces and navigation badge. */
.community-personal-invitations{display:flex;flex-direction:column;gap:14px;margin-block:14px 18px}
.community-personal-invitations[hidden]{display:none}
.community-personal-invitations>.section-head{margin:0}.community-personal-invitations h2{display:flex;align-items:center;gap:9px;font-size:18px}
.community-personal-invitation{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0}
.community-personal-invitation-copy{min-width:0;overflow-wrap:anywhere}.community-personal-invitation h3{margin:0;font-size:16px;line-height:1.5}.community-personal-invitation p{margin:5px 0;color:var(--text);font-size:13px}.community-personal-invitation small,.community-personal-invites-status,.community-personal-invite-help{color:var(--muted);font-size:12px;line-height:1.6}
.community-personal-invitation>.actions{flex:none;gap:8px}.community-personal-invitations .button{min-height:44px}.community-personal-invitations>.button{align-self:flex-start}
@media(max-width:600px){.community-personal-invitation{align-items:stretch;flex-direction:column;gap:12px;padding:12px}.community-personal-invitation>.actions{display:flex}.community-personal-invitation>.actions>.button{flex:1}.community-personal-invitations{padding:15px}.community-personal-invitations h2{font-size:16px}}

/* Optional verified recovery email: private Security category and email links. */
.settings-recovery-disclosure>summary.button{display:flex;justify-content:flex-start;min-height:52px;box-sizing:border-box;text-align:start;list-style:none;cursor:pointer}.settings-recovery-disclosure>summary::-webkit-details-marker{display:none}.settings-recovery-disclosure>summary::after{content:'';width:7px;height:7px;margin-inline-start:auto;border-block-end:1px solid currentColor;border-inline-end:1px solid currentColor;transform:rotate(45deg);flex:none}.settings-recovery-disclosure[open]>summary::after{transform:rotate(225deg)}.secondary-recovery-settings{padding:16px 12px 4px;display:grid;gap:14px;min-width:0}.secondary-recovery-settings h3,.secondary-recovery-settings p{margin:0}.recovery-primary-email{display:grid;gap:5px}.recovery-primary-email strong,.recovery-address-card strong{overflow-wrap:anywhere;min-width:0}.recovery-address-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:12px;background:color-mix(in srgb,currentColor 3%,transparent)}.secondary-recovery-settings form{display:grid;gap:12px}.secondary-recovery-settings input,.recovery-channel select{width:100%;max-width:100%;min-width:0}.recovery-link-page{max-width:660px;margin:24px auto}.recovery-link-page .button,.secondary-recovery-settings button{min-height:44px}.recovery-channel small{line-height:1.5}@media(max-width:760px){.recovery-link-page{margin:12px 0}.settings-recovery-disclosure>summary.button{padding:12px;overflow-wrap:anywhere}.secondary-recovery-settings form .primary{width:100%}}
.recovery-channel select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;line-height:1.4}
.recovery-channel select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Community invitation: owned, paginated accepted-friend picker. */
.community-invite-friend{width:100%}.community-friend-picker{min-width:0;width:100%}.community-friend-options{display:flex;flex-direction:column;gap:8px;max-height:min(42dvh,340px);overflow-y:auto;overscroll-behavior:contain}.community-friend-option{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:var(--surface)}.community-friend-option:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.community-friend-option:has(input:disabled){opacity:.7;cursor:default}.community-friend-option>.avatar{width:38px;height:38px;flex:0 0 38px}.community-friend-name{min-width:0;flex:1;overflow-wrap:anywhere;line-height:1.5}.community-friend-option>input{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:var(--accent)}.community-friend-option:focus-within{outline:2px solid var(--accent);outline-offset:2px}.community-friend-picker .actions{display:flex;flex-wrap:wrap;gap:10px}.community-friend-picker .actions>.button{flex:1;min-width:0;white-space:normal}.community-friend-picker>p{overflow-wrap:anywhere}
.community-friend-dialog>.section-head>.icon-button{color:var(--text)}

/* About groups the two legal documents and keeps advertising preferences accessible. */
.settings-about-stack{display:grid;gap:18px;min-width:0}
.settings-about-stack>.panel{min-width:0;margin:0}
.settings-legal-documents{display:grid;border-block:1px solid var(--line)}
.settings-legal-documents a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 12px;color:var(--text);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.settings-legal-documents a+a{border-top:1px solid var(--line)}
.settings-legal-documents a::after{content:"";width:7px;height:7px;border-block-start:1px solid currentColor;border-inline-end:1px solid currentColor;transform:rotate(45deg);flex:none;color:var(--muted)}
.settings-legal-documents a:is(:hover,:focus-visible){background:color-mix(in srgb,currentColor 6%,transparent);text-decoration:underline;text-underline-offset:.2em}
.settings-legal-documents a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.settings-ad-privacy{margin-block-start:6px;min-height:44px;text-align:start}
@media(max-width:760px){.settings-about-stack>.panel{padding:18px 15px}}
.platform-rail .top-nav .community-locked{position:relative;display:flex;align-items:center;gap:11px;min-width:0;min-height:44px;padding:8px 11px;color:var(--header-muted);color:color-mix(in srgb,var(--header-muted) 72%,var(--header));font-size:12px;font-weight:400;cursor:default}
.community-locked-copy{display:grid;gap:2px;min-width:0;line-height:1.2}
.community-locked-copy small{font-size:10px;overflow-wrap:anywhere}
.platform-rail .top-nav .icon{flex-shrink:0}
.platform-rail .top-nav a>span[dir]{min-width:0;overflow-wrap:anywhere}
.community-coming-soon{display:grid;justify-items:center;gap:6px;text-align:center;padding:20px}
.community-coming-soon h1,.community-coming-soon h2,.community-coming-soon p{margin:0}
.community-coming-soon .icon,.community-coming-soon p{color:var(--muted)}
.home-communities-locked .community-coming-soon h2{font-size:16px;font-weight:600}
.settings-language-toggle>span[lang],.settings-language-option>span[lang]{min-width:0;text-align:start;overflow-wrap:anywhere}
@media(max-width:760px){
 .settings-language-menu{--language-min:7.25rem}
 .button.settings-language-option{padding-inline:6px;font-size:13px}
 .platform-rail .top-nav .community-locked{flex-direction:column;justify-content:center;gap:4px;min-height:52px;padding:4px 1px;text-align:center;font-size:11px}
 .community-locked-copy{line-height:1.1;overflow-wrap:anywhere}
 .community-locked-copy small{font-size:9px}
}

/* The playable preview status belongs to the game-card link. */
.catalog-game-caption{display:grid;justify-items:center;align-content:start;gap:4px;min-width:0}
.game-early-access{display:inline-block;box-sizing:border-box;max-width:100%;padding:3px 7px;border-radius:8px;background:var(--accent-soft);color:var(--text);font-size:11px;line-height:1.3;font-weight:650;text-align:center;overflow-wrap:anywhere}
.catalog-game-tile .game-art{position:relative}
.game-demo-badge{position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%,-50%);pointer-events:none;padding:5px 11px;border:1px solid #fff9;border-radius:6px;background:#171b17d9;color:#fff;font-size:clamp(12px,1.25vw,18px);line-height:1.2;font-weight:750;letter-spacing:.08em}
.home-game-copy .game-early-access{margin-top:2px;background:#fff2d4;color:#412a09;text-align:start}
@media(max-width:1000px){
 .home-mosaic>.home-game-tile[data-game-id]:has(.game-early-access){aspect-ratio:auto}
 .collection-grid>.home-game-tile:has(.game-early-access){height:auto;min-height:210px}
 :is(.home-mosaic,.collection-grid)>.home-game-tile[data-game-id]:has(.game-early-access)>.home-game{display:flex;flex-direction:column;justify-content:flex-end;height:auto;min-height:100%;box-sizing:border-box;padding:58px 12px 13px}
 :is(.home-mosaic,.collection-grid)>.home-game-tile[data-game-id]:has(.game-early-access) .home-game-copy{position:relative;inset:auto}
 .collection-grid>.home-game-tile:has(.game-early-access) .home-game-art{position:absolute;inset:0}
}
@media(max-width:760px){
 .collection-grid>.home-game-tile:has(.game-early-access){min-height:180px}
}

/* Keep the Witches favorite control clear of its printed wordmark on phones. */
@media(max-width:760px){
 .game-catalog>.catalog-game-tile[data-game-id="towers"]:not([hidden]){display:grid;grid-template-rows:minmax(0,1fr) auto}
 .game-catalog>.catalog-game-tile[data-game-id="towers"]>.game-card{grid-area:1/1;min-width:0}
 .game-catalog>.catalog-game-tile[data-game-id="towers"]>.game-guide-link{grid-area:2/1}
 .game-catalog>.catalog-game-tile[data-game-id="towers"]>.button.game-favorite{position:relative;grid-area:1/1;align-self:end;justify-self:end;top:auto;right:auto;bottom:auto;margin:0 15px 22px 0}
 .game-catalog>.catalog-game-tile[data-game-id="towers"] .game-card-title{min-height:44px;padding-right:56px;display:flex;align-items:center;text-align:left}
}

/* Extend the existing profile control across its card, beneath direct actions. */
.friend-card > .profile-avatar-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.friend-card :is(.friend-add-button, .friend-card-actions > .button) {
  position: relative;
  z-index: 2;
}

/* Keep camera and file selection together below the photo section title. */
.photo-chooser-title {
  margin: 0;
  font-size: 1rem;
}
.photo-source-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.photo-source-actions > .button {
  min-inline-size: 0;
  min-block-size: 44px;
  text-align: center;
  white-space: normal;
}
.photo-chooser > input[hidden] {
  display: none;
}

/* Parent-owned, fixed-size Witches web placements. */
.witches-web-ad{position:fixed;z-index:25;width:120px;height:240px;pointer-events:none}
.witches-web-ad[hidden]{display:none}
.witches-web-ad:has(ins[data-ad-status="filled"]){pointer-events:auto}
.shared-game-page:has(>.witches-menu-ad:not([hidden])){
  position:relative;
  --witches-menu-ad-offset:calc(var(--witches-menu-ad-height, 50px) + 24px);
}
.shared-game-page:has(>.witches-menu-ad:not([hidden]))>.game-iframe{height:calc(100dvh - var(--witches-menu-ad-offset))}
html[data-afabel-towers-mobile="true"]:fullscreen .shared-game-page:has(>.witches-menu-ad:not([hidden]))>.game-iframe{
  height:calc(100dvh - var(--witches-menu-ad-offset))!important;
}
.witches-menu-ad{position:absolute;inset:auto 0 0;display:grid;place-items:center;height:var(--witches-menu-ad-offset);padding-top:24px;box-sizing:border-box;background:var(--bg);pointer-events:none}
.witches-menu-ad[hidden]{display:none}
.witches-menu-ad>ins[data-ad-status="filled"]{pointer-events:auto}
@media(orientation:portrait){
  .shared-game-page[data-witches-inline-landscape]:has(>.witches-menu-ad:not([hidden]))>.game-iframe,
  html[data-afabel-towers-mobile="true"]:fullscreen .shared-game-page[data-witches-inline-landscape]:has(>.witches-menu-ad:not([hidden]))>.game-iframe{
    inset:calc((100% - var(--witches-menu-ad-offset)) / 2) auto auto 50%!important;
    width:calc(100cqh - var(--witches-menu-ad-offset))!important;
    height:100cqw!important;
  }
}
