.hub-dialog{box-sizing:border-box;width:min(620px,94vw);max-height:94dvh;overflow:auto;border:2px solid var(--hub-accent,#efbf6c);border-radius:24px;padding:clamp(18px,4vw,34px);background:var(--hub-bg,#142536);color:var(--hub-ink,#fff7e7);font:18px/1.5 system-ui,sans-serif;box-shadow:0 12px 80px #000b}.hub-dialog::backdrop{background:#07111bd9;backdrop-filter:blur(4px)}.hub-dialog h1{font-size:clamp(28px,6vw,48px);line-height:1.05;margin:25px 0 12px}.hub-dialog h2{font-size:26px}.hub-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.hub-heading a{color:inherit;text-decoration:none;font-weight:700}.hub-player{display:flex;align-items:center;gap:8px;max-width:60%;font-size:14px;overflow-wrap:anywhere}.hub-initials{flex:none;border:1px solid currentColor;border-radius:50%;min-width:36px;height:36px;display:grid;place-items:center;font-size:13px}.hub-brand{font-size:13px;letter-spacing:.15em}.hub-subtitle{min-height:1.5em;opacity:.9}.hub-dialog button,.hub-dialog select{font:inherit;background:transparent;color:inherit;border:1px solid #a9b7c0;border-radius:12px;min-height:46px;padding:8px 14px;cursor:pointer}.hub-dialog button:disabled{opacity:.5;cursor:wait}.hub-dialog button:hover{background:#ffffff18}.hub-dialog nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.hub-dialog input:not([type=checkbox]){box-sizing:border-box;display:block;width:100%;padding:12px;font:inherit;color:#122434;background:#fff;border:2px solid #a3b9be;border-radius:10px}.hub-name-row{display:flex;align-items:end;gap:8px;margin:24px 0 14px}.hub-name-row label{flex:1}.hub-name-row button{flex:none;font-size:25px}.hub-dialog .hub-primary{display:block;width:100%;background:var(--hub-accent,#efbf6c);color:#142536;font-weight:800;margin-top:20px}.hub-share{display:flex;gap:10px;align-items:center;font-size:15px}.hub-share input{width:20px;height:20px}.hub-ranking ol{padding:0;list-style:none}.hub-ranking li{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #ffffff30;padding:10px 0}.hub-status,.hub-queue{font-size:14px;min-height:1.5em}.hub-error{color:#ffb6ad}.theme-woman{--hub-bg:#130c20;--hub-accent:#f9bc3c}.theme-break{--hub-bg:#27101f;--hub-accent:#f88ab7}.theme-lipstick{--hub-bg:#090208;--hub-accent:#ff5598}.theme-space{--hub-bg:#0d203c;--hub-accent:#57e6dc}.theme-fair{--hub-bg:#291648;--hub-accent:#f6bf72}.theme-mystery{--hub-bg:#112723;--hub-accent:#f1c47e}.theme-klond,.theme-spider,.theme-freecell{--hub-bg:#123c30;--hub-accent:#e9c16b}.theme-alieni{--hub-bg:#fff8ec;--hub-ink:#192c3d;--hub-accent:#f1bd41}.theme-orione{--hub-bg:#10283b;--hub-accent:#6ed6ef}.theme-corvo{--hub-bg:#251f2c;--hub-accent:#b9a4e7}.theme-pensione,.theme-miramare{--hub-bg:#34291f;--hub-accent:#e3bc89}.theme-centrale{--hub-bg:#0b171f;--hub-accent:#b7ee6f}.ts-hub #sync,.ts-hub #syncNow{display:none!important}.hub-gated #menu:not(button),.hub-gated #overlay,.hub-gated #table-select,.ts-hub:has(.hub-final[open]) #overlay,.ts-hub:has(.hub-final[open]) #menu:not(button){visibility:hidden!important}.hub-gated body>dialog:not(.hub-dialog){visibility:hidden!important}.hub-final-links{display:flex;gap:12px}.hub-heading button{padding:4px}.hub-gated #board{pointer-events:none}@media(max-width:450px){.hub-dialog{padding:18px}.hub-dialog nav button{font-size:15px}.hub-player{font-size:12px}.hub-initials{min-width:30px;height:30px}.hub-dialog h1{margin-top:18px}}
.hub-art{height:150px;display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:16px;margin:14px 0;background:#ffffff08}.hub-art img,.hub-art svg{display:block;max-height:100%;max-width:100%;width:auto;object-fit:contain}.theme-space .hub-art,.theme-fair .hub-art,.theme-mystery .hub-art{height:190px}.theme-klond .hub-art,.theme-spider .hub-art,.theme-freecell .hub-art{height:110px}.theme-voce{--hub-bg:#0b171f;--hub-accent:#b7ee6f}
.hub-name-row svg,.hub-edit svg{width:28px;height:28px;display:block}.hub-subtitle:empty{display:none}.hub-entry.theme-space .hub-art,.hub-entry.theme-fair .hub-art,.hub-entry.theme-mystery .hub-art{float:left;width:34%;height:260px;margin-right:18px}.hub-entry.theme-space nav,.hub-entry.theme-fair nav,.hub-entry.theme-mystery nav{clear:both}@media(max-width:520px){.hub-entry.theme-space .hub-art,.hub-entry.theme-fair .hub-art,.hub-entry.theme-mystery .hub-art{float:none;width:100%;height:150px;margin:12px 0}}
.hub-gated body>:not(script):not(dialog){visibility:hidden!important}
.ts-hub #finished:has(.hub-heading) #end-home{display:none}

/* Full illustrated cards: each game keeps its own typography and cabinet. */
.hub-entry.hub-illustrated{width:min(580px,96vw);max-height:96dvh;min-height:620px;padding:20px 36px 16px;border-radius:14px;border:1px solid #ffffff50;background-color:var(--hub-bg);background-image:var(--entry-art);background-size:var(--entry-grid);background-position:var(--entry-position);font:17px/1.35 system-ui,sans-serif;isolation:isolate;box-shadow:0 12px 70px #000a}
.hub-illustrated .hub-heading{min-height:36px;font-size:15px;position:relative;z-index:1;text-shadow:0 1px 3px #000a}
.hub-illustrated .hub-player{font-size:13px;max-width:62%}
.hub-illustrated .hub-initials{min-width:30px;height:30px;background:#07111b66}
.hub-entry-hero{height:225px;box-sizing:border-box;padding-top:30px;position:relative}
.hub-entry .hub-entry-hero h1{margin:0 auto;text-align:center;font-size:clamp(36px,5.5vw,58px);line-height:1.03;font-weight:950;letter-spacing:-.04em;filter:drop-shadow(0 3px 2px #0008)}
.hub-title-word{display:inline-block}
.hub-entry .hub-subtitle{text-align:center;font-size:15px;font-weight:800;margin:14px 0 0;opacity:1;text-shadow:0 1px 5px #000}
.hub-illustrated form{position:relative;margin:0 8px}
.hub-illustrated .hub-name-row{margin:0 0 6px;align-items:end;gap:12px}
.hub-illustrated .hub-name-row label{font-size:14px;font-weight:650}
.hub-illustrated input:not([type=checkbox]){margin-top:5px;padding:9px 11px;min-height:44px;font-size:17px;border-radius:6px;color:#142236;border:1px solid #9ca9b9}
.hub-edit-wrap{display:flex;align-items:center;gap:7px;max-width:145px;font-size:12px;line-height:1.2}
.hub-illustrated .hub-edit-wrap button{padding:6px;min-height:44px;min-width:44px;border-radius:6px;border-color:currentColor;background:#06101a38}
.hub-entry .hub-guest,.hub-entry .hub-remember{font-size:12px;text-align:center;margin:7px 0 14px}
.hub-illustrated .hub-share{font-size:14px;margin:14px 0;min-height:26px}
.hub-illustrated .hub-share input{accent-color:var(--hub-accent)}
.hub-entry .hub-primary{border:2px solid #fff6;border-radius:8px;font-size:23px;font-weight:850;min-height:58px;margin-top:20px;background:linear-gradient(#ffffff44,#00000015),var(--hub-accent);box-shadow:0 3px 0 #0008,inset 0 0 0 2px #ffffff40;color:var(--hub-button-ink,#102638)}
.hub-entry .hub-primary:enabled:hover{filter:brightness(1.12);transform:translateY(-1px)}
.hub-entry .hub-primary:focus-visible,.hub-entry button:focus-visible,.hub-entry a:focus-visible{outline:3px solid var(--hub-accent);outline-offset:4px}
.hub-illustrated .hub-error{font-size:14px;margin:7px 0;min-height:0}
.hub-illustrated .hub-error:empty{display:none}
.hub-entry nav{justify-content:center;gap:0;margin:15px 8px 0}
.hub-entry nav button{border:0;border-radius:0;min-height:38px;padding:7px 22px;font-size:14px;text-decoration:underline;background:transparent}
.hub-entry nav button+button{border-left:1px solid currentColor}
.hub-entry .hub-remember{margin:5px 0 0;opacity:.9}
.hub-entry.theme-woman{--hub-ink:#07152d;--hub-accent:#ffcb25}
.hub-entry.theme-break{--hub-ink:#07152d;--hub-accent:#10bbcc;--hub-button-ink:#fff}
.theme-woman .hub-heading,.theme-break .hub-heading,.theme-alieni .hub-heading{text-shadow:none}
.theme-woman .hub-initials,.theme-break .hub-initials,.theme-alieni .hub-initials{background:#ffffff80}
.theme-woman .hub-edit-wrap button,.theme-break .hub-edit-wrap button,.theme-alieni .hub-edit-wrap button{background:#ffffff88}
.theme-woman .hub-entry-hero h1,.theme-break .hub-entry-hero h1,.theme-lipstick .hub-entry-hero h1{font-family:Impact,'Arial Black',sans-serif;text-transform:uppercase;-webkit-text-stroke:1px #0c142c;paint-order:stroke fill;text-shadow:3px 4px 0 #0c142c;max-width:94%}
.theme-woman .hub-title-word,.theme-break .hub-title-word,.theme-lipstick .hub-title-word{display:block}
.theme-woman .hub-entry-hero h1{color:#ff97bb;font-size:57px}
.hub-entry.theme-woman .hub-entry-hero{padding-top:8px}
.hub-entry.theme-woman .hub-entry-hero h1{font-size:51px}
.theme-woman .hub-word-1{color:#ffdb3a}
.theme-break .hub-entry-hero h1{color:#ff789f;font-size:62px;transform:rotate(-3deg)}
.theme-break .hub-word-1{color:#47d6e2}
.theme-woman .hub-subtitle,.theme-break .hub-subtitle,.theme-alieni .hub-subtitle{text-shadow:none}
.theme-lipstick .hub-entry-hero h1{font-style:italic;color:#ffadd2;transform:rotate(-6deg);text-shadow:0 0 12px #ff087d,3px 4px #910c4a}
.theme-lipstick .hub-primary{--hub-button-ink:#fff;background:linear-gradient(#fa067e,#b10053);border:2px solid #fff;clip-path:polygon(3% 0,97% 0,100% 20%,100% 80%,97% 100%,3% 100%,0 80%,0 20%);filter:drop-shadow(0 0 6px #ff188b)}
.theme-space .hub-entry-hero h1{font-family:'Arial Black',system-ui,sans-serif;color:#7cf9ff;text-transform:uppercase;letter-spacing:.01em;text-shadow:0 0 4px #fff,0 0 12px #00baff,-2px 2px #025da5}
.theme-space .hub-word-1{display:block;color:#c9a0ff;text-shadow:0 0 5px #fff,0 0 14px #8c46ff}
.theme-space .hub-primary{background:linear-gradient(#26ebff,#0088c8);border:2px solid #aafaff;box-shadow:0 0 12px #009dff,inset 0 0 0 3px #0077a7;color:#fff}
.theme-fair .hub-entry-hero h1{font-family:Georgia,serif;text-transform:uppercase;color:#ffe487;text-shadow:2px 2px #900b00,0 0 8px #ff8b00;-webkit-text-stroke:.6px #a13a00;background:linear-gradient(#8c1707bb,#5b0507dd);border:4px double #ffd064;border-radius:40% 40% 15% 15%;padding:12px 4px;margin-top:22px;font-size:48px}
.theme-fair .hub-primary{border-color:#ffec8c;outline:2px solid #af2708;background:linear-gradient(#ffe56e,#ffb000)}
.theme-mystery .hub-entry-hero h1{font-family:Georgia,serif;text-transform:uppercase;color:#f8df9e;text-shadow:2px 3px #35120c,0 0 8px #c79231;font-size:46px;padding-top:40px}
.theme-mystery .hub-primary{--hub-button-ink:#ffe38a;background:linear-gradient(#9336bc,#461282);border:3px double #f3ce75;box-shadow:0 0 9px #ac6ee777}
.hub-entry.theme-klond,.hub-entry.theme-spider{--hub-accent:#ed193f;--hub-button-ink:#fff}
.hub-entry.theme-freecell{--hub-accent:#ffc72a}
.theme-klond .hub-entry-hero,.theme-spider .hub-entry-hero,.theme-freecell .hub-entry-hero{height:195px;padding-top:62px}
.theme-klond .hub-entry-hero h1,.theme-spider .hub-entry-hero h1,.theme-freecell .hub-entry-hero h1{text-align:left;font-family:Impact,'Arial Black',sans-serif;letter-spacing:-.045em;max-width:70%;margin-left:0;transform:rotate(-5deg);font-size:51px;text-shadow:2px 3px #002c16}
.hub-entry:where(.theme-orione,.theme-pensione,.theme-corvo,.theme-miramare,.theme-voce,.theme-alieni) .hub-entry-hero{height:260px;padding-top:42px}
.hub-entry:where(.theme-orione,.theme-pensione,.theme-corvo,.theme-miramare,.theme-voce,.theme-alieni) .hub-entry-hero h1{text-align:left;margin-left:0;max-width:75%;font-family:Georgia,serif;font-weight:750;font-size:46px;letter-spacing:-.045em;text-shadow:0 2px 4px #000}
.theme-orione .hub-entry-hero .hub-title-word:last-child{color:#35e4fa}
.theme-pensione .hub-entry-hero h1,.theme-miramare .hub-entry-hero h1{color:#ffe3a5}
.theme-corvo .hub-entry-hero h1{font-family:'Arial Black',system-ui,sans-serif!important;color:#dceeff}
.theme-corvo .hub-primary{--hub-button-ink:#fff;background:linear-gradient(#b32dff,#7200e8)}
.theme-voce .hub-entry-hero .hub-title-word:last-child{color:#c1f52b}
.hub-entry.theme-alieni .hub-entry-hero h1{max-width:64%;font-family:'Arial Black',system-ui,sans-serif;font-style:italic;color:#102b41;text-shadow:none;transform:rotate(-7deg);font-size:46px}
.theme-alieni .hub-entry-hero .hub-title-word:last-child{color:#e6a500;font-size:1.2em}
.hub-entry:where(.theme-orione,.theme-pensione,.theme-corvo,.theme-miramare,.theme-voce,.theme-alieni) nav{border-top:1px solid #ffffff70;padding-top:7px}
.hub-entry.theme-alieni nav{border-color:#1d4c6866}
@media(max-width:520px){
 .hub-entry.hub-illustrated{min-height:590px;padding:15px 22px 13px;font-size:16px}
 .hub-entry-hero{height:210px;padding-top:32px}
 .hub-entry .hub-entry-hero h1{font-size:44px}
 .hub-entry.theme-break .hub-entry-hero h1{font-size:49px}
 .hub-entry .hub-subtitle{font-size:13px;margin-top:11px}
 .hub-entry .hub-name-row{gap:8px}
 .hub-entry .hub-edit-wrap{max-width:90px;font-size:10px;gap:4px}
 .hub-entry .hub-edit-wrap svg{width:25px;height:25px}
 .hub-entry .hub-edit-wrap button{min-width:38px;padding:5px}
 .hub-entry .hub-share{font-size:13px}
 .hub-entry .hub-primary{font-size:20px;min-height:54px}
 .hub-entry:where(.theme-orione,.theme-pensione,.theme-corvo,.theme-miramare,.theme-voce,.theme-alieni) .hub-entry-hero{height:248px}
 .hub-entry:where(.theme-orione,.theme-pensione,.theme-corvo,.theme-miramare,.theme-voce,.theme-alieni) .hub-entry-hero h1{font-size:36px}
 .hub-entry:where(.theme-klond,.theme-spider,.theme-freecell) .hub-entry-hero h1{font-size:41px}
 .hub-entry nav button{padding:7px 18px}
}
@media(max-height:620px) and (min-width:700px){.hub-entry.hub-illustrated{margin:12px auto}}
.hub-entry.hub-illustrated .hub-heading a{flex:none;width:auto;min-width:0;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.hub-entry.hub-illustrated .hub-heading{background:none;border:0;padding:0;box-shadow:none;color:inherit}
.hub-entry.hub-illustrated .hub-heading .hub-player{min-width:0;flex:0 1 auto}
.hub-entry.hub-illustrated .hub-name-row label{min-width:0}
.hub-entry.hub-illustrated .hub-edit-wrap{flex:none;width:145px;min-width:0}
.hub-entry.hub-illustrated .hub-edit-wrap button{width:44px;margin:0;flex:0 0 44px}
.hub-entry.hub-illustrated nav{flex-direction:row;flex-wrap:nowrap}
.hub-entry.hub-illustrated nav button{width:auto;flex:0 1 auto;margin:0;min-width:0}
.hub-entry:where(.theme-klond,.theme-spider,.theme-freecell) .hub-entry-hero h1{font-family:'Arial Black',system-ui,sans-serif;font-size:46px;letter-spacing:-.065em;max-width:75%}
.hub-entry:where(.theme-klond,.theme-spider) .hub-word-1{color:#ff254f}
.hub-entry.theme-freecell .hub-word-1{color:#ffcb27}
.hub-entry.hub-illustrated .hub-title-word{font:inherit;letter-spacing:inherit}
.hub-entry.theme-mystery .hub-entry-hero h1 .hub-word-1{display:block}
@media(max-width:520px){.hub-entry.hub-illustrated .hub-edit-wrap{width:90px}.hub-entry.hub-illustrated .hub-edit-wrap button{width:38px;flex-basis:38px}.hub-entry:where(.theme-klond,.theme-spider,.theme-freecell) .hub-entry-hero h1{font-size:34px}}

/* Reserve space for the real submit button before assigning height to the artwork. */
.hub-entry.hub-illustrated .hub-heading .hub-profile-control{display:flex;align-items:center;gap:7px;flex:0 1 auto;width:auto;min-width:0;min-height:36px;max-width:64%;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;font:inherit;text-align:left;cursor:pointer}
.hub-entry.hub-illustrated .hub-profile-control:hover{background:#ffffff25}
.hub-profile-control .hub-initials svg,.hub-heading .hub-initials svg{width:23px;height:23px;display:block}
.hub-entry.hub-illustrated .hub-profile-control .hub-player-name{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.hub-entry.hub-illustrated[open]{display:flex;flex-direction:column;height:min(660px,96dvh);min-height:0;overflow:auto;overscroll-behavior:contain}
.hub-entry.hub-illustrated .hub-heading{flex:0 0 36px}
.hub-entry.hub-illustrated .hub-entry-hero{flex:1 0 125px;height:auto;min-height:125px;padding-top:20px}
.hub-entry.hub-illustrated form{flex:none;margin:0 8px;padding:0;min-height:0}
.hub-entry.hub-illustrated .hub-name-row{margin:0 0 6px}
.hub-entry.hub-illustrated .hub-guest{margin:6px 0 10px;line-height:1.35}
.hub-entry.hub-illustrated .hub-share{margin:10px 0;min-height:26px;padding:0;line-height:1.35}
.hub-entry.hub-illustrated .hub-primary{position:sticky;bottom:0;z-index:2;margin:12px 0 0;min-height:54px}
.hub-entry.hub-illustrated nav{flex:none;margin-top:10px;padding-top:0}
.hub-entry.hub-illustrated .hub-remember{flex:none;margin:4px 0 0;line-height:1.35}
@media(max-height:650px){
 .hub-entry.hub-illustrated[open]{padding-top:12px;padding-bottom:10px}
 .hub-entry.hub-illustrated .hub-entry-hero{flex-basis:110px;min-height:110px;padding-top:8px}
 .hub-entry.hub-illustrated .hub-entry-hero h1{font-size:clamp(29px,5vw,42px);padding-top:0;margin-top:0}
 .hub-entry.hub-illustrated .hub-subtitle{font-size:13px;margin-top:6px}
 .hub-entry.hub-illustrated .hub-guest{margin:4px 0 6px}
 .hub-entry.hub-illustrated .hub-primary{margin-top:8px;min-height:48px}
 .hub-entry.hub-illustrated nav{margin-top:7px}
 .hub-entry.hub-illustrated nav button{min-height:32px;padding-top:4px;padding-bottom:4px}
}

/* Shared profile on the site and in native end-of-game summaries. */
.hub-player.hub-profile-control{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:auto;max-width:64%;min-width:0;min-height:36px;margin:0;padding:4px 6px;border:0;border-radius:7px;background:transparent;color:inherit;font:14px/1.25 system-ui,sans-serif;cursor:pointer;text-align:left;box-shadow:none}
.hub-profile-control .hub-player-name{overflow-wrap:anywhere}
.hub-profile-control .hub-initials{width:32px;min-width:32px;height:32px}
.shell>header .hub-site-profile{margin-left:auto;flex:0 1 auto;color:inherit;font-size:14px}
.hub-profile-control:hover{background:#ffffff22}
.hub-profile-control:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.hub-profile-dialog button{display:block;width:100%;margin:10px 0}
.hub-profile-dialog input{margin-top:7px}
.hub-native-final .hub-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;background:none;color:inherit;border:0;padding:0;margin:0 0 16px}
.hub-native-final .hub-heading>a{display:inline;width:auto;margin:0;padding:0;background:none;border:0;box-shadow:none;color:inherit;font:700 15px system-ui,sans-serif;text-decoration:none}
.hub-native-final .hub-heading .hub-profile-control{width:auto;max-width:64%;margin:0;padding:3px;flex:0 1 auto;font:13px system-ui,sans-serif}
.hub-native-final .hub-final-links{display:flex;justify-content:center}
.hub-native-final .hub-final-links button{width:auto;margin:6px}
.hub-native-final .hub-final-comment{font:15px/1.4 system-ui,sans-serif}
.hub-native-final .hub-theme-title{font:800 30px/1.1 system-ui,sans-serif;margin:8px 0 16px;color:var(--hub-accent);text-align:center}
.hub-native-final.theme-klond .hub-word-1,.hub-native-final.theme-spider .hub-word-1{color:#ef264d}
.hub-native-final.theme-freecell .hub-word-1{color:#ffc72a}

/* Titles keep the game's identity in its own leaderboard and arcade ending. */
.hub-themed-panel .hub-theme-title{font:900 clamp(28px,6vw,45px)/1.05 'Arial Black',system-ui,sans-serif;text-align:center;margin:24px 0 14px;color:var(--hub-accent);letter-spacing:-.035em}
.hub-themed-panel .hub-theme-title .hub-title-word{font:inherit;letter-spacing:inherit}
.hub-themed-panel.theme-woman .hub-theme-title,.hub-themed-panel.theme-break .hub-theme-title,.hub-themed-panel.theme-lipstick .hub-theme-title{font-family:Impact,'Arial Black',sans-serif;text-transform:uppercase;text-shadow:2px 3px #000}
.hub-themed-panel:where(.theme-woman,.theme-break,.theme-lipstick) .hub-title-word{display:block}
.hub-themed-panel.theme-woman .hub-theme-title{color:#ff98bd}
.hub-themed-panel.theme-woman .hub-word-1{color:#ffd337}
.hub-themed-panel.theme-break .hub-theme-title{color:#ff7ca9}
.hub-themed-panel.theme-break .hub-word-1{color:#52dbe7}
.hub-themed-panel.theme-lipstick .hub-theme-title{font-style:italic;color:#ffa3d2;text-shadow:0 0 12px #ff087d,2px 3px #780539}
.hub-themed-panel.theme-space .hub-theme-title{color:#7cffff;text-shadow:0 0 10px #0395ff;text-transform:uppercase}
.hub-themed-panel.theme-space .hub-word-1{color:#c6a2ff}
.hub-themed-panel.theme-fair .hub-theme-title,.hub-themed-panel.theme-mystery .hub-theme-title{font-family:Georgia,serif;color:#ffe09a;text-shadow:2px 3px #5b1a06;text-transform:uppercase}
.hub-themed-panel .hub-rank-title{font:750 23px/1.2 system-ui,sans-serif;color:var(--hub-accent);text-align:center;margin:12px 0 22px}
.hub-ranking .hub-rank-tabs{display:flex;gap:8px;flex-wrap:wrap}
.hub-ranking [data-rank-view][aria-pressed=true]{background:var(--hub-accent);color:#122333;border-color:var(--hub-accent)}
.hub-ranking .hub-status{margin:15px 0;overflow-wrap:anywhere}
.hub-ranking .hub-queue:empty{display:none}
.hub-ranking select{display:block;max-width:100%;margin-top:6px}
.hub-final.hub-illustrated{background-color:var(--hub-bg);background-image:linear-gradient(#050a12b8,#050a12ef),var(--entry-art);background-size:100% 100%,var(--entry-grid);background-position:0 0,var(--entry-position)}
.hub-final nav{justify-content:center}
.hub-final>p:not(.hub-final-comment){font-weight:650}
.hub-final .hub-heading{color:var(--hub-ink,#fff7e7)}
.ts-hub:has(.hub-final[open]) #overlay,.ts-hub:has(.hub-final[open]) #menu:not(button){visibility:hidden!important}
.hub-native-final{max-height:94dvh;overflow:auto}
@media(max-width:520px){.shell>header .hub-site-profile{max-width:100%;font-size:12px}.hub-ranking .hub-rank-tabs button{font-size:15px;padding:7px 10px}.hub-native-final .hub-heading .hub-profile-control{font-size:12px}.hub-native-final .hub-heading .hub-initials{min-width:28px;width:28px;height:28px}}
.hub-version-badge{position:fixed;left:env(safe-area-inset-left,0px);bottom:env(safe-area-inset-bottom,0px);z-index:10000;font:600 10px/1.2 system-ui,sans-serif;color:#fff;background:#594012dd;border:1px solid #d5b46e;border-radius:4px;padding:4px 5px;max-width:230px;overflow-wrap:anywhere}
.hub-gated body>.hub-version-badge{visibility:visible!important}

/* Drawn navigation icons and illustrated leaderboard mastheads. */
.hub-icon{display:inline-block;width:28px;height:28px;flex:0 0 28px;vertical-align:middle;color:var(--hub-accent,currentColor)}
.hub-heading>a .hub-icon{width:22px;height:22px;color:inherit}
.hub-ranking.hub-illustrated{background:var(--hub-bg);width:min(760px,96vw);min-height:0}
.hub-ranking .hub-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0;margin:0;background:none;border:0;box-shadow:none}
.hub-ranking .hub-heading>a{display:inline-flex;align-items:center;flex:none;width:auto;min-width:0;min-height:40px;padding:0;margin:0;border:0;background:none;color:inherit;box-shadow:none;text-decoration:none}
.hub-ranking .hub-heading .hub-profile-control{width:auto;max-width:65%;margin:0;min-height:36px;background:transparent}
.hub-ranking .hub-rank-hero{position:relative;isolation:isolate;display:grid;place-items:center;min-height:145px;margin:20px -12px 0;padding:18px 12px;border:1px solid var(--hub-accent);border-radius:18px;overflow:hidden;background-image:linear-gradient(#09102048,#09102092),var(--entry-art);background-size:100% 100%,var(--entry-grid);background-position:0 0,var(--entry-position)}
.hub-ranking .hub-rank-hero .hub-theme-title{margin:0;text-shadow:2px 3px #000,0 0 12px #000;line-height:1.1}
.hub-ranking.theme-fair .hub-rank-hero .hub-theme-title{padding:10px 20px;border:5px dotted #ffdc70;border-radius:28px;background:#721408da;box-shadow:0 0 15px #ffb42866}
.hub-ranking:where(.theme-klond,.theme-spider,.theme-freecell) .hub-rank-hero{min-height:125px;background-image:linear-gradient(#06241460,#062414a8),var(--entry-art)}
.hub-ranking .hub-rank-tabs{display:flex!important;flex-direction:row!important;align-items:stretch;gap:8px;margin:18px 0 0;padding:0}
.hub-ranking .hub-rank-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1 1 auto;width:auto!important;min-width:0;margin:0!important;padding:9px 12px;font:600 16px/1.2 system-ui,sans-serif}
.hub-ranking .hub-rank-tabs button:last-child{flex:0 0 64px}
.hub-ranking [aria-pressed=true] .hub-icon{color:inherit}
.hub-ranking>button{width:auto!important;margin:8px 8px 0 0!important}
.hub-ranking>label{display:block;margin:10px 0;font-size:16px}
.hub-ranking .hub-status:has(.hub-work-sign){min-height:150px;display:grid;place-items:center}
.hub-work-sign{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;transform:rotate(-2deg)}
.hub-work-sign .hub-icon{height:86px;width:86px;filter:drop-shadow(0 4px 3px #0007)}
.hub-work-sign strong{padding:5px 18px;border:2px solid var(--hub-accent);border-radius:5px;font:800 19px/1.3 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em;background:#07111b}
.hub-device-guide{margin-top:22px;padding-top:12px;border-top:1px solid #8995a880;font:15px/1.5 system-ui,sans-serif}
.hub-device-guide ul{display:flex;flex-wrap:wrap;gap:12px;list-style:none;padding:0}
.hub-device-guide li{display:flex;align-items:center;gap:8px}
.hub-device-guide small{display:block;opacity:.85}
.hub-public-version{font:12px/1.5 system-ui,sans-serif;opacity:.7;margin-top:14px}

/* Recover illustration space above the nickname without moving the play anchor. */
.hub-entry.hub-illustrated .hub-entry-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 4px;min-height:32px}
.hub-entry.hub-illustrated .hub-entry-meta .hub-share{margin:0;font-size:12px;flex:1}
.hub-entry.hub-illustrated .hub-entry-meta .hub-guest{margin:0;font-size:11px;text-align:right;flex:0 1 42%}
.hub-entry.theme-woman .hub-subtitle{color:#a10e1c;text-shadow:0 1px 1px #fff8}
.hub-entry.theme-woman{background-image:none;background-color:#ffe12f}
.hub-entry.theme-woman::before{content:'';position:absolute;inset:23px 0 0;z-index:-1;background-image:var(--entry-art);background-size:var(--entry-grid);background-position:var(--entry-position);border-radius:inherit;pointer-events:none}
.hub-entry.hub-illustrated .hub-sync-note{font:12px/1.35 system-ui,sans-serif;background:#112739e8;color:#fff;padding:6px 9px;border-radius:5px;margin:6px 8px 0}
.hub-entry .hub-engine-retry{margin:0 8px;font-size:13px;min-height:32px}
@media(max-width:420px){.hub-entry.hub-illustrated .hub-entry-meta{flex-wrap:wrap;gap:3px}.hub-entry.hub-illustrated .hub-entry-meta .hub-guest{flex:1 0 100%;text-align:left}.hub-ranking .hub-rank-tabs button{font-size:14px;padding:9px 7px}.hub-ranking .hub-rank-hero{min-height:120px}.hub-ranking .hub-heading .hub-player{font-size:11px}}

/* The launcher remains reachable from the Wi-Fi network and explains the actual check. */
.hub-panel-home{margin:0;background:#0c1725;color:#edf4ff;font:16px/1.55 system-ui,sans-serif}
.hub-panel-home .shell{max-width:1060px;margin:auto;padding:24px}
.hub-panel-home header{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.hub-panel-home a{color:#8fe6ff}
.hub-panel-home .hub-panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:24px 0}
.hub-panel-home .hub-panel-link{display:block;padding:18px;background:#193148;border:1px solid #58738b;border-radius:12px;text-decoration:none}
.hub-network{padding:20px;margin:26px 0;border:1px solid #e9c16b;border-radius:16px;background:#182c40}
.hub-network h2{margin-top:0;font-size:23px}
.hub-network a{overflow-wrap:anywhere;font-weight:700}
.hub-network small{display:block;margin-top:8px}
.hub-ranking .hub-rank-hero{background:var(--hub-bg)}
.hub-rank-hero::before{content:'';position:absolute;z-index:-2;left:0;right:0;top:50%;height:0;padding-bottom:100%;transform:translateY(-50%);background-image:var(--entry-art);background-size:var(--entry-grid);background-position:var(--entry-position)}
.hub-rank-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#09102035,#091020a8)}
.hub-work-sign .hub-icon{flex:none}
.hub-entry.theme-woman::before{z-index:0}
.hub-entry.theme-woman>*{position:relative;z-index:1}
.hub-rank-hero::before{z-index:0}
.hub-rank-hero::after{z-index:1}
.hub-ranking .hub-rank-hero .hub-theme-title{position:relative;z-index:2}
.hub-entry.theme-woman::before{top:95px}
.hub-entry .hub-engine-retry[hidden]{display:none!important}
.hub-entry:where(.theme-woman,.theme-break) .hub-name-row{margin-bottom:0}
.hub-entry.hub-illustrated .hub-entry-meta{margin:0;min-height:26px;gap:3px}
.hub-entry:where(.theme-woman,.theme-break) .hub-primary{margin-top:5px}
.hub-entry.hub-illustrated .hub-sync-note{position:absolute;left:16px;right:16px;bottom:0;z-index:4;margin:0;max-height:44px;overflow:auto}
.hub-entry:has(.hub-sync-note) .hub-remember{visibility:hidden}
.hub-entry.hub-illustrated .hub-sync-note{position:static;margin:3px 8px 0;max-height:none;font-size:11px;overflow:visible}
.hub-entry:has(.hub-sync-note) .hub-remember{display:none}
.hub-ranking>button{display:inline-flex!important;align-items:center;justify-content:center}
.hub-ranking:where(.theme-klond,.theme-spider,.theme-freecell) .hub-rank-hero::before{left:auto;right:0;top:0;transform:none;width:45%;height:0;padding-bottom:45%}
.hub-ranking:where(.theme-klond,.theme-spider,.theme-freecell) .hub-rank-hero .hub-theme-title{justify-self:start;max-width:60%;font-size:clamp(27px,5vw,42px)}

/* Domestic Invaders: one wide title and a higher illustration, clear of the nickname. */
.hub-entry.theme-woman .hub-entry-hero{padding-top:0}
.hub-entry.theme-woman .hub-entry-hero h1{font-size:clamp(27px,5.9vw,46px);line-height:1.12;max-width:100%;white-space:nowrap;letter-spacing:-.035em}
.hub-entry.theme-woman .hub-entry-hero .hub-title-word{display:inline}
.hub-entry.theme-woman .hub-subtitle{margin-top:10px}
.hub-entry.theme-woman::before{top:-30px}

/* Independent character: its size follows the hero space, never the background crop. */
.hub-entry.theme-woman::before{inset:0;background-image:url('/_hub/assets/woman-invaders-background-v2.png');background-size:100% 100%;background-position:center}
.hub-entry.theme-woman .hub-entry-hero{display:flex;flex-direction:column;align-items:center;gap:0}
.hub-entry.theme-woman .hub-entry-hero h1{flex:none;width:100%}
.hub-entry.theme-woman .hub-subtitle{flex:none;width:100%;min-height:0;margin:8px 0 4px}
.hub-entry.theme-woman .hub-woman-mascot{display:block;flex:1 1 0;min-height:0;max-height:180px;width:200px;max-width:48%;margin:2px auto 8px;overflow:hidden}
.hub-entry.hub-illustrated.theme-woman form{gap:0}
.hub-entry.hub-illustrated.theme-woman .hub-name-row{margin-bottom:0}
.hub-entry.hub-illustrated.theme-woman .hub-entry-meta{min-height:22px}
.hub-entry.hub-illustrated.theme-woman .hub-primary{margin-top:3px}
.hub-entry.theme-woman .hub-entry-hero h1,.hub-entry.theme-woman .hub-subtitle{position:relative;z-index:2}
@media(max-height:520px){.hub-entry.theme-woman .hub-woman-mascot{transform:translateY(5px) scale(1.3);transform-origin:center bottom}}

/* Native game header rules must never position or disable dialog headings. */
.hub-dialog>.hub-heading,.hub-native-final>.hub-heading,#ts-game-menu>.ts-menu-head{position:relative!important;inset:auto!important;z-index:auto!important;pointer-events:auto!important;transform:none!important;height:auto!important;max-width:none!important;width:100%!important;box-sizing:border-box;float:none!important}
.hub-heading a,.hub-heading button,#ts-game-menu>.ts-menu-head button{pointer-events:auto!important}
#ts-game-menu>.ts-menu-head{display:flex!important;align-items:center;gap:12px;flex-wrap:nowrap;margin:0 0 12px!important;padding:0 0 14px!important;min-height:60px;flex:none;isolation:isolate}
#ts-game-menu>.hub-menu-heading>.hub-menu-title{flex:1 1 40%;min-width:0;margin:0!important;padding:0!important;text-align:left;font-size:clamp(18px,3.4vw,25px);line-height:1.12;overflow-wrap:anywhere}
#ts-game-menu>.hub-menu-heading .hub-menu-title .hub-title-word{display:inline;font:inherit}
#ts-game-menu>.hub-menu-heading>.hub-profile-control{display:flex;flex:0 1 42%;width:auto;min-width:0;max-width:44%;min-height:44px;margin:0;padding:4px;border:0;background:transparent;color:inherit;text-align:left;font:600 14px/1.2 system-ui,sans-serif}
#ts-game-menu .hub-profile-control .hub-player-name{display:block;font:inherit;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ts-game-menu .hub-profile-control .hub-initials{min-width:30px;width:30px;height:30px;font:12px system-ui,sans-serif}
#ts-game-menu>.hub-menu-heading>[data-ts="close"]{position:static!important;inset:auto!important;flex:0 0 44px;width:44px;min-width:44px;height:46px;margin:0;padding:4px;text-align:center}
#ts-game-menu.hub-native-menu>.ts-menu-list{position:relative;inset:auto;clear:both;margin-top:0}
#ts-game-menu.hub-native-menu>.ts-name-form[hidden]{display:none!important}
#ts-game-menu.hub-native-menu>.ts-name-form:not([hidden]){position:relative;inset:auto;display:grid;margin:0 0 16px}
#ts-game-menu .hub-menu-title{color:#184761;text-shadow:none}
#ts-game-menu.theme-woman .hub-menu-title{color:#b71962;text-shadow:1px 1px #ffd337}
#ts-game-menu.theme-break .hub-menu-title{color:#b91a62;text-shadow:1px 1px #52dbe7}
#ts-game-menu.theme-lipstick .hub-menu-title{color:#b60060;text-shadow:0 0 3px #ff93c9}
#ts-game-menu:where(.theme-fair,.theme-mystery) .hub-menu-title{color:#855220;text-shadow:none}
@media(max-width:420px){#ts-game-menu>.hub-menu-heading{gap:7px}#ts-game-menu>.hub-menu-heading>.hub-menu-title{font-size:18px}#ts-game-menu>.hub-menu-heading>.hub-profile-control{font-size:12px;gap:5px}#ts-game-menu .hub-profile-control .hub-initials{min-width:26px;width:26px;height:26px}}

/* Menu illustration only: native game sprites and all other themes are untouched. */
.hub-entry.hub-illustrated.theme-woman{--hub-bg:#071a25;--hub-ink:#fff5df;--hub-accent:#ffd16b;background-image:none;color:var(--hub-ink);height:min(760px,96dvh);border-color:#b89c66}
.hub-entry.theme-woman::before{inset:0;background-image:linear-gradient(#05101c22,#05101c22),url('/_hub/assets/domestic-invaders/cover.png');background-size:cover;background-position:center}
.hub-entry.theme-woman .hub-heading{color:#fff5df;text-shadow:0 1px 3px #000}
.hub-entry.theme-woman .hub-initials{background:#071a25;color:#fff5df}
.hub-entry.theme-woman .hub-entry-hero{min-height:230px;padding-top:6px}
.hub-entry.theme-woman .hub-entry-hero h1{margin:6px auto 0;color:#ff9dba}
.hub-entry.theme-woman .hub-entry-hero .hub-word-1{color:#ffd16b}
.hub-entry.theme-woman .hub-subtitle{color:#fff5df;text-shadow:0 1px 3px #000;font-weight:700}
.hub-entry.theme-woman .hub-woman-mascot{width:300px;max-width:80%;max-height:265px;min-height:120px;flex:1 1 150px;transform:none;margin:4px auto 8px}
.hub-entry.hub-illustrated.theme-woman form{background:#071a25;border:1px solid #577078;border-radius:14px;padding:12px;margin:0;color:#fff5df}
.hub-entry.theme-woman .hub-edit-wrap button{background:#143341;color:#fff5df;border-color:#9eb7bb}
.hub-entry.theme-woman .hub-guest,.hub-entry.theme-woman .hub-remember{color:#fff5df;opacity:1}
.hub-entry.theme-woman .hub-share{color:#fff5df}.hub-entry.theme-woman input[type=checkbox]{accent-color:#ffd16b}
.hub-entry.theme-woman .hub-primary{background:#ffd16b;color:#10232f;border-color:#ffe2a0;box-shadow:0 3px 0 #775123}
.hub-entry.theme-woman nav{justify-content:center}.hub-entry.theme-woman nav button{color:#fff5df;background:#071a25;border-color:#9eb7bb}
.hub-entry.theme-woman :is(button,a,input):focus-visible{outline:3px solid #fff5df;outline-offset:3px}
@media(max-width:420px){.hub-entry.hub-illustrated.theme-woman{padding:14px 16px}.hub-entry.theme-woman .hub-entry-hero h1{font-size:clamp(25px,7vw,32px)}.hub-entry.theme-woman .hub-woman-mascot{max-width:86%}.hub-entry.hub-illustrated.theme-woman .hub-entry-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.hub-entry.theme-woman .hub-guest{margin:3px 0}}
@media(max-height:520px){.hub-entry.theme-woman .hub-entry-hero{min-height:210px;flex:none}.hub-entry.theme-woman .hub-woman-mascot{min-height:130px;max-height:150px;width:190px;transform:none}}

/* Suppress browser double-tap gestures only on active playfields and controls. */
.ts-hub :is(canvas,#stage,#touch,#table,#board){touch-action:none}
.ts-hub :is(button,a,[role="button"]){touch-action:manipulation}
.ts-hub :is(canvas,#stage,#touch,#table,#board){-webkit-user-select:none;user-select:none}
/* iOS otherwise magnifies focused small nickname fields. Keep page pinch zoom enabled. */
.ts-hub :is(input:not([type="checkbox"]):not([type="range"]),textarea,select){font-size:max(16px,1em)}

/* Local marker; readable versions belong at the foot of pages and menus. */
.hub-version-badge{width:42px;height:42px;box-sizing:border-box;display:grid;place-items:center;padding:0;font-size:10px;border-radius:3px;pointer-events:none}
.top-five-link{position:relative;padding-top:34px!important}.top-five-genre{position:absolute;top:10px;left:16px;right:12px;font:600 11px/1.25 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:inherit;opacity:.8}
.hub-public-version{display:block;flex:0 0 100%;font:11px/1.5 system-ui,sans-serif;margin:14px 0 0;opacity:.65;pointer-events:none}

@media(max-width:420px){.hub-entry.hub-illustrated.theme-woman .hub-entry-meta{flex-wrap:nowrap;height:auto}.hub-entry.hub-illustrated.theme-woman .hub-entry-meta .hub-guest,.hub-entry.hub-illustrated.theme-woman .hub-entry-meta .hub-share{flex:0 1 auto;width:100%;min-width:0;text-align:left}}

@media(max-height:520px){.hub-entry.hub-illustrated.theme-woman .hub-primary{position:static}}
/* Menu revision 1.2.1: one viewport, clear hero, lower play anchor. */
html.hub-gated,html.hub-gated body{overflow:hidden!important;overscroll-behavior:none}
html .hub-entry.hub-illustrated[open]{box-sizing:border-box;display:flex;flex-direction:column;width:min(580px,96vw);height:min(860px,96dvh);max-height:96dvh;min-height:0;padding:16px 22px 12px;overflow:auto;overscroll-behavior:contain;gap:0}
html .hub-entry.hub-illustrated>.hub-heading{display:flex!important;visibility:visible!important;flex:0 0 40px;min-height:40px;max-height:none!important;overflow:visible!important;width:100%!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;transform:none!important}
html .hub-entry.hub-illustrated>.hub-heading>*{visibility:visible!important}
html .hub-entry.hub-illustrated .hub-entry-hero{flex:1 1 auto;display:flex;flex-direction:column;justify-content:flex-start;height:auto;min-height:150px;padding:24px 0 18px;margin:0;overflow:hidden}
html .hub-entry.hub-illustrated .hub-entry-hero h1{flex:none;margin-top:0;padding-top:0;max-width:100%;font-size:clamp(30px,7.5vw,48px)}
html .hub-entry.hub-illustrated .hub-subtitle{flex:none;margin:16px 0 0;font-size:14px;line-height:1.35;min-height:0}
html .hub-entry.hub-illustrated :is(form,nav,.hub-remember,.hub-public-version,.hub-error,.hub-engine-retry,.hub-sync-note){flex-shrink:0}
html .hub-entry.hub-illustrated form{margin:0 8px;padding:0;min-height:0;display:flex;flex-direction:column;gap:0}
html .hub-entry.hub-illustrated .hub-name-row{margin:0 0 6px;gap:8px}
html .hub-entry.hub-illustrated .hub-name-row label{font-size:14px;line-height:1.3}
html .hub-entry.hub-illustrated .hub-edit-wrap{width:105px;max-width:105px;font-size:11px}
html .hub-entry.hub-illustrated .hub-edit-wrap button{width:44px;min-width:44px;flex-basis:44px}
html .hub-entry.hub-illustrated input:not([type=checkbox]){font-size:17px;min-height:44px;margin-top:5px}
html .hub-entry.hub-illustrated .hub-guest{font-size:12px;margin:4px 0 6px}
html .hub-entry.hub-illustrated .hub-share{font-size:13px;min-height:26px;margin:6px 0}
html .hub-entry.hub-illustrated .hub-entry-meta{display:flex;flex-direction:column;align-items:stretch;min-height:0;height:auto;gap:2px;margin:0}
html .hub-entry.hub-illustrated .hub-entry-meta :is(.hub-share,.hub-guest){flex:none;width:auto;text-align:left;margin:2px 0;max-width:none}
html .hub-entry.hub-illustrated .hub-primary{position:static;width:100%;margin:12px 0 0;min-height:54px;font-size:21px}
html .hub-entry.hub-illustrated nav{margin:10px 8px 0;padding-top:0;min-height:36px}
html .hub-entry.hub-illustrated nav button{font-size:14px;min-height:36px;padding:6px 16px}
html .hub-entry.hub-illustrated .hub-remember{font-size:11px;line-height:1.3;margin:5px 0 0}
html .hub-entry.hub-illustrated>.hub-public-version{margin:7px 0 0;font-size:10px;line-height:1.3}
html .hub-entry.hub-illustrated.theme-woman form{padding:10px;margin:0;background:#071a25e8}
html .hub-entry.hub-illustrated.theme-woman .hub-woman-mascot{min-height:0;max-height:250px;flex:1 1 auto;margin:8px auto 0}
html .hub-entry.hub-illustrated:where(.theme-klond,.theme-spider,.theme-freecell) .hub-entry-hero{padding-top:38px}
html .hub-entry.hub-illustrated:where(.theme-klond,.theme-spider,.theme-freecell) .hub-entry-hero h1{max-width:75%;font-size:clamp(30px,8vw,46px)}
html .hub-entry.hub-illustrated:where(.theme-orione,.theme-pensione,.theme-corvo,.theme-miramare,.theme-voce,.theme-alieni) .hub-entry-hero h1{max-width:78%}
html .hub-entry.hub-illustrated.theme-alieni .hub-entry-hero h1{max-width:68%}
/* Native portrait rules must never hide headers within a dialog. */
.portrait-phone dialog header,.portrait-phone dialog header *{visibility:visible!important}
@media(max-height:650px){
 html .hub-entry.hub-illustrated[open]{padding:10px 18px 8px}
 html .hub-entry.hub-illustrated .hub-entry-hero{min-height:110px;padding-top:10px;padding-bottom:8px}
 html .hub-entry.hub-illustrated .hub-entry-hero h1{font-size:30px}
 html .hub-entry.hub-illustrated .hub-subtitle{font-size:12px;margin-top:9px}
 html .hub-entry.hub-illustrated .hub-primary{min-height:46px;margin-top:8px;font-size:19px}
 html .hub-entry.hub-illustrated .hub-remember{font-size:10px}
 html .hub-entry.hub-illustrated nav{margin-top:5px;min-height:32px}
 html .hub-entry.hub-illustrated nav button{min-height:32px;padding:4px 12px}
}
@media(orientation:landscape) and (max-height:550px) and (min-width:600px){
 html .hub-entry.hub-illustrated[open]{width:min(880px,96vw);display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);grid-template-rows:40px minmax(0,1fr) auto auto auto;column-gap:22px;padding:10px 22px}
 html .hub-entry.hub-illustrated>.hub-heading{grid-column:1/-1}
 html .hub-entry.hub-illustrated .hub-entry-hero{grid-column:1;grid-row:2/6;min-height:0;align-self:stretch;padding-top:14px}
 html .hub-entry.hub-illustrated form{grid-column:2;grid-row:2;align-self:end}
 html .hub-entry.hub-illustrated>nav{grid-column:2;grid-row:3}
 html .hub-entry.hub-illustrated>.hub-remember{grid-column:2;grid-row:4}
 html .hub-entry.hub-illustrated>.hub-public-version{grid-column:2;grid-row:5}
 html .hub-entry.hub-illustrated>.hub-error:empty{display:none}
 html .hub-entry.hub-illustrated .hub-entry-hero h1{font-size:32px}
 html .hub-entry.hub-illustrated .hub-name-row label{font-size:12px}
 html .hub-entry.hub-illustrated .hub-share{font-size:12px;margin:3px 0}
 html .hub-entry.hub-illustrated .hub-guest{font-size:11px;margin:3px 0}
}
/* Version footer must size to its text, not to 100% of a flex column. */
html .hub-entry.hub-illustrated>.hub-public-version{flex:0 0 auto}
/* The document stays still; conversations, long lists and dialogs retain their own scrolling. */
html.ts-hub{overflow:hidden;overscroll-behavior:none}

.hub-categories{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:22px 0 30px;padding:18px;border:1px solid #17213429;border-radius:14px;background:#fff;color:#172134}.hub-categories strong{flex-basis:100%;font-size:18px}.hub-categories a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #c9d1e1;border-radius:24px;text-decoration:none;font-size:15px;font-weight:700}.hub-categories a:hover,.hub-categories a[aria-current]{background:#2e4eff;color:white;border-color:#2e4eff}.hub-leave-table{max-width:min(440px,92vw);padding:24px}.hub-leave-table button{min-height:44px;margin:8px;padding:10px 15px}@media(max-width:700px){.hub-categories{gap:8px;padding:14px}.hub-categories a{flex:1 1 auto;justify-content:center}}

/* Image-only category refresh; original hit areas and card geometry are retained. */
.hub-categories{background-color:#fff4e4;background-image:linear-gradient(#fff8ed0a,#fff4e44d),url('/_hub/assets/categories-v1.webp');background-size:cover;background-position:center 22%;border-color:#eab5b5;box-shadow:0 3px 14px #9b204212}
.hub-categories strong{width:max-content;flex-basis:auto;margin-right:100%;padding:2px 7px;border-radius:6px;background:#fff8edda;white-space:nowrap;color:#252336}
.hub-categories a{background:linear-gradient(145deg,#fff 5%,#fff2f1 48%,#efb0b6);border-color:#dd8f9a;color:#4e1c2c;box-shadow:0 2px 5px #6b17352a;transition:box-shadow .16s ease,background .16s ease,color .16s ease}
.hub-categories a[aria-current="page"],.hub-categories a:active{color:#fff;background:linear-gradient(145deg,#f78492,#dc254d 58%,#a8143b);border-color:#a8143b;box-shadow:0 0 0 2px #fff9,0 0 17px #f8497180;text-decoration:none}
.hub-categories a:focus-visible{outline:3px solid #a8143b;outline-offset:3px;box-shadow:0 0 18px #fa446f99}
@media(hover:hover){.hub-categories a:hover{color:#fff;background:linear-gradient(145deg,#f8a2ab,#e9365b 60%,#bf1641);border-color:#b82546;box-shadow:0 0 16px #f8497180}}
@media(max-width:700px){.hub-categories{background-size:100% auto;background-position:center top;background-repeat:no-repeat}.hub-categories strong{background:#fff8ede6}.hub-categories a{background:linear-gradient(145deg,#ffffffed,#fff0eff5 50%,#edacb7f5)}.hub-categories a[aria-current="page"],.hub-categories a:active{background:linear-gradient(145deg,#f78492,#dc254d 58%,#a8143b)}}
/* Only computer category pages become compact; phone/tablet spacing stays unchanged. */
@media(min-width:900px){
 html.hub-desktop body[data-hub-category] .shell>header{padding-top:16px;padding-bottom:16px;gap:16px}
 html.hub-desktop body[data-hub-category] .shell>header nav{gap:14px}
 html.hub-desktop body[data-hub-category] .games-hero{padding:20px 0 12px}
 html.hub-desktop body[data-hub-category] .games-hero h1{font-size:38px;line-height:1.1;letter-spacing:-.035em}
 html.hub-desktop body[data-hub-category] .games-hero .intro{margin-top:8px;font-size:17px;line-height:1.35}
 html.hub-desktop body[data-hub-category] .hub-categories{margin:8px 0 18px;padding:12px 16px;gap:8px 12px}

}
@media(prefers-reduced-motion:reduce){.hub-categories a{transition:none}}

/* Preserve the existing one-column fallback; move artwork only in the existing two-column desktop layout. */
@media(min-width:900px) and (max-height:550px) and (orientation:landscape){
 html.hub-desktop .hub-entry.hub-illustrated:is(.theme-klond,.theme-spider,.theme-freecell){background-image:var(--entry-desktop-art);background-size:var(--entry-grid);background-position:var(--entry-position)}
}

.hub-categories strong{flex:0 0 100%;width:auto;margin-right:0;padding:0;background:none}.hub-categories strong span{display:inline-block;padding:2px 7px;border-radius:6px;background:#fff8ede6}

/* Two clear exits/actions across TSGames menus. */
#ts-game-menu .ts-menu-list [data-ts="restart"],#ts-game-menu .ts-menu-list a.ts-menu-primary,.hub-home-tsgames{background:#ffda83!important;color:#172134!important;border:2px solid #cf9e3f!important;border-radius:10px;padding:10px 14px!important;font-weight:800!important;text-decoration:none;display:inline-flex;align-items:center;gap:7px;min-height:44px;box-sizing:border-box}
#ts-game-menu .ts-menu-list [data-ts="restart"],#ts-game-menu .ts-menu-list a.ts-menu-primary{display:block;width:100%}.hub-home-tsgames:focus-visible{outline:3px solid #3155e7;outline-offset:3px}
