/* Card-based arcade; these presentation rules never alter active-game canvases. */
@layer halo-gaming {
body:not(.hg-gaming) [data-social-panel="games"]{--hub-bg:#0e1425;--hub-card:#172136;--hub-ink:#eef3ff;--hub-muted:#a4b2cc;--hub-line:#33435d;--hub-accent:#80c5ff;--hub-glow:#3765ba28;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;padding-bottom:100px!important;box-sizing:border-box!important;height:calc(100dvh - 170px)!important;min-height:0!important;max-height:calc(100dvh - 170px)!important;}
html[data-theme="light"] body:not(.hg-gaming) [data-social-panel="games"]{--hub-bg:#eef3fb;--hub-card:#fff;--hub-ink:#182b46;--hub-muted:#52647e;--hub-line:#cad6e8;--hub-accent:#2868b2;--hub-glow:#729dce25;}
[data-social-panel="games"][data-gaming-accent="ion"]{--hub-accent:#28bba9!important;--hub-glow:#38d1c62b!important;}[data-social-panel="games"][data-gaming-accent="solar"]{--hub-accent:#e69442!important;--hub-glow:#f8ac5030!important;}[data-social-panel="games"][data-gaming-accent="plasma"]{--hub-accent:#a68cff!important;--hub-glow:#895fe332!important;}
body:not(.hg-gaming) .halo-gaming-identity{min-height:0!important;padding:12px 16px!important;margin:0 0 14px!important;background:var(--hub-card)!important;border:1px solid var(--hub-line)!important;border-radius:20px!important;color:var(--hub-ink)!important;gap:12px!important;box-shadow:none!important;}
.halo-gaming-identity>div:first-child>p:last-child{display:none!important;}
.halo-gaming-identity h3{font-size:18px!important;margin:3px 0 4px!important;}.halo-gaming-identity p{font-size:12px!important;margin:0!important;color:var(--hub-muted)!important;}.halo-gaming-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important;}.halo-gaming-actions button{min-height:40px!important;border-radius:12px!important;padding:9px 13px!important;background:var(--hub-glow)!important;border:1px solid var(--hub-line)!important;color:var(--hub-ink)!important;font-size:12px!important;}
.hgh-hubbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;margin-bottom:18px;padding:20px 24px;border-radius:24px;background:linear-gradient(135deg,var(--hub-glow),transparent),var(--hub-card);border:1px solid var(--hub-line);color:var(--hub-ink);position:relative;overflow:hidden;}
.hgh-kicker{font:700 10px/1.3 system-ui;letter-spacing:.18em;color:var(--hub-accent);margin:0 0 9px;}.hgh-hubbar h2{font-size:clamp(22px,3.5vw,34px);line-height:1.15;letter-spacing:-.04em;margin:0;max-width:22ch;}.hgh-tabs{grid-column:1;display:flex;gap:7px;flex-wrap:wrap;}.hgh-settings-button{grid-column:2;grid-row:1/3;align-self:center;width:44px;padding:10px!important;}.hgh-settings-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;}.halo-gaming-actions :is([data-gaming-board],[data-gaming-competitions]){display:none!important;}
.hgh-hubbar button,.hgh-discovery :is(button,select),.hgh-data-pane button,.hgh-preferences>button{min-height:42px;border:1px solid var(--hub-line,var(--line));border-radius:12px;padding:10px 14px;background:var(--hub-card,var(--surface-soft));color:var(--hub-ink,var(--text));font:650 12px/1.3 system-ui;cursor:pointer;}.hgh-discovery>button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:middle;}.hgh-discovery>button>span{margin-left:6px;}
.hgh-tabs button[aria-pressed="true"],.hgh-discovery button[aria-pressed="true"],.hgh-pane-toolbar button[aria-pressed="true"]{background:var(--hub-accent)!important;color:#111d31!important;border-color:transparent!important;}html[data-theme=light] :is(.hgh-tabs,.hgh-discovery,.hgh-pane-toolbar) button[aria-pressed=true]{color:#fff!important;}
body:not(.hg-gaming) .hg-library{display:block!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;padding:18px!important;border:1px solid var(--hub-line)!important;border-radius:24px!important;background:var(--hub-bg)!important;color:var(--hub-ink)!important;box-shadow:none!important;overflow:visible!important;}
body .hg-library[hidden],.hgh-data-pane[hidden],.hgh-game-card[hidden],.hgh-empty[hidden]{display:none!important;}.hg-library>.hg-eyebrow{display:none!important;color:var(--hub-muted)!important;font-size:10px!important;letter-spacing:.16em!important;margin:0 0 7px!important;}.hg-library>h2{font-size:21px!important;line-height:1.2!important;margin:0 0 6px!important;}.hg-library>p{font-size:12px!important;color:var(--hub-muted)!important;margin:0 0 14px!important;}
.hg-library .hg-categories{display:flex!important;gap:6px!important;padding:5px!important;margin:16px 0!important;background:var(--hub-card)!important;border-radius:14px!important;border:1px solid var(--hub-line)!important;}.hg-categories button{min-height:42px!important;flex:1!important;font-size:12px!important;background:transparent!important;color:var(--hub-muted)!important;border:0!important;border-radius:10px!important;box-shadow:none!important;}.hg-categories button[aria-selected=true]{background:var(--hub-glow)!important;color:var(--hub-ink)!important;}
.hgh-discovery{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:9px!important;align-items:end!important;margin:14px 0!important;}.hgh-discovery label{display:grid;gap:6px;font-size:11px;color:var(--hub-muted);}.hgh-discovery input{box-sizing:border-box;width:100%;min-width:0;height:44px;padding:10px 13px;border:1px solid var(--hub-line);border-radius:12px;background:var(--hub-card);color:var(--hub-ink);font:16px system-ui!important;}.hgh-discovery select{font-size:12px!important;max-width:170px!important;height:44px!important;min-height:44px!important;padding:8px!important;text-indent:0!important;line-height:1.3!important;text-align:start!important;}.hgh-discovery>:is(button,select){background:var(--hub-card)!important;color:var(--hub-ink)!important;border:1px solid var(--hub-line)!important;border-radius:12px!important;position:static!important;transform:none!important;display:block!important;width:auto!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;align-self:end!important;}.hgh-results{min-height:18px!important;font-variant-numeric:tabular-nums;font-size:11px!important;margin:0 0 12px!important;}
body:not(.hg-gaming) #hg-game-catalog{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:14px!important;padding:0!important;margin:0!important;background:transparent!important;overflow:visible!important;}.hgh-game-card{min-width:0;position:relative;border:1px solid var(--hub-line);border-radius:20px;background:var(--hub-card);overflow:hidden;box-shadow:0 12px 22px #0a183014;transition:border-color .16s,box-shadow .16s;}.hgh-game-card:hover{border-color:var(--hub-accent);box-shadow:0 14px 25px var(--hub-glow);}.hgh-game-card.is-unavailable{opacity:.65;}
body .hgh-launch{display:grid!important;width:100%!important;box-sizing:border-box!important;grid-template-rows:120px auto minmax(38px,1fr) auto!important;justify-items:start!important;align-items:start!important;gap:9px!important;min-height:274px!important;padding:14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--hub-ink)!important;box-shadow:none!important;text-align:start!important;transform:none!important;position:static!important;cursor:pointer!important;}.hgh-launch b{font-size:14px!important;line-height:1.2!important;letter-spacing:-.01em!important;overflow-wrap:anywhere!important;}.hgh-launch small{font-size:11px!important;line-height:1.5!important;color:var(--hub-muted)!important;min-height:33px!important;}
body .hgh-launch>.hgh-game-art{display:block!important;width:100px!important;height:100px!important;justify-self:center!important;align-self:center!important;border-radius:24px!important;margin:6px 0 0!important;background-image:url('/halo-game-icons.webp')!important;background-size:400% 400%!important;background-position:var(--art-x,0%) var(--art-y,0%)!important;background-color:transparent!important;font-size:0!important;box-shadow:0 10px 25px var(--hub-glow)!important;overflow:hidden!important;}.hgh-launch>.hgh-game-art.is-vector{background-image:none!important;}.hgh-game-art img{width:100%;height:100%;object-fit:contain;}.hgh-play-cue{display:block!important;width:100%!important;box-sizing:border-box!important;border-radius:10px!important;background:var(--hub-glow)!important;color:var(--hub-ink)!important;text-align:center!important;font:700 11px/1.4 system-ui!important;padding:8px!important;}
.hgh-favorite{position:absolute!important;min-height:44px!important;max-height:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;width:44px!important;padding:0!important;box-shadow:none!important;display:grid!important;place-items:center!important;background:var(--hub-card)!important;color:var(--hub-muted)!important;border-radius:50%!important;border:1px solid var(--hub-line)!important;z-index:2;right:7px;top:7px;width:38px;height:38px;border-radius:50%;border:1px solid var(--hub-line);background:var(--hub-card);color:var(--hub-muted);font-size:22px;cursor:pointer;}.hgh-favorite[aria-pressed=true]{color:var(--hub-accent)!important;border-color:var(--hub-accent);}.hgh-game-card:has(.hgh-launch.is-selected){border-color:var(--hub-accent);}
[data-gaming-surface="grid"] .hg-library{background-image:linear-gradient(var(--hub-line) 1px,transparent 1px),linear-gradient(90deg,var(--hub-line) 1px,transparent 1px)!important;background-size:32px 32px!important;}[data-gaming-surface="orbit"] .hg-library{background-image:radial-gradient(ellipse at 12% 0,var(--hub-glow),transparent 55%),radial-gradient(ellipse at 90% 85%,var(--hub-glow),transparent 50%)!important;}[data-gaming-card="holo"] .hgh-game-card{background:linear-gradient(135deg,var(--hub-card) 35%,var(--hub-glow),var(--hub-card))!important;box-shadow:inset 0 1px 0 #ffffff35!important;}
[data-gaming-density=compact] .hgh-launch{grid-template-rows:82px auto minmax(32px,1fr) auto!important;min-height:228px!important;gap:7px!important;}[data-gaming-density=compact] .hgh-launch>.hgh-game-art{width:72px!important;height:72px!important;border-radius:18px!important;}[data-gaming-motion=reduced] :is(.hgh-game-card,.hgh-launch){transition:none!important;animation:none!important;}
.hgh-data-pane{box-sizing:border-box;padding:22px;border:1px solid var(--hub-line);border-radius:24px;background:var(--hub-bg);color:var(--hub-ink);min-height:380px;}.hgh-data-status{min-height:100px;display:grid;place-content:center;color:var(--hub-muted);}.hgh-pane-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;}.hgh-personal-score{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;}.hgh-personal-score article,.hgh-event-grid article{padding:18px;background:var(--hub-card);border:1px solid var(--hub-line);border-radius:18px;}.hgh-personal-score small{display:block;color:var(--hub-muted);font-size:11px;}.hgh-personal-score strong{font:800 30px system-ui;}.hgh-ranking{list-style:none;padding:0;display:grid;gap:10px;}.hgh-ranking li{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:17px;border:1px solid var(--hub-line);border-radius:15px;background:var(--hub-card);font-size:13px;}.hgh-ranking li:nth-child(-n+3){border-color:var(--hub-accent);background:linear-gradient(100deg,var(--hub-glow),var(--hub-card));}.hgh-ranking span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.hgh-ranking b{font-size:12px;font-variant-numeric:tabular-nums;}.hgh-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px;}.hgh-event-grid h3{font-size:18px;overflow-wrap:anywhere;}.hgh-event-grid button{display:block;margin-top:16px;}.hgh-event-grid small{color:var(--hub-accent);}.hgh-empty{padding:30px;border:1px dashed var(--hub-line);border-radius:18px;color:var(--hub-muted);text-align:center;}
.hgh-preferences{display:grid;gap:12px;}.hgh-preferences label{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:13px;}.hgh-preferences input[type=checkbox]{width:20px!important;height:20px!important;flex:none!important;}.hgh-preferences select{width:auto!important;max-width:190px!important;min-height:44px!important;font-size:16px!important;}.hgh-preferences>button{background:var(--surface-soft);color:var(--text);border-color:var(--line);text-align:start;}
body.hg-gaming :is(.hgh-hubbar,.hgh-data-pane){display:none!important;}[data-social-panel=games] :is(button,input,select):focus-visible{outline:2px solid var(--hub-accent)!important;outline-offset:3px!important;}
.hgh-badges{position:absolute;top:12px;left:10px;max-width:65%;color:var(--hub-ink);background:var(--hub-glow);border-radius:8px;padding:4px 6px;font:700 9px system-ui;pointer-events:none;}.hgh-badges:empty{display:none;}
html[data-theme=light] [data-social-panel=games][data-gaming-accent=ion]{--hub-accent:#08796f!important;}html[data-theme=light] [data-social-panel=games][data-gaming-accent=solar]{--hub-accent:#9d5905!important;}html[data-theme=light] [data-social-panel=games][data-gaming-accent=plasma]{--hub-accent:#7551c8!important;}
.hgh-discovery>button[aria-pressed=true]{background:var(--hub-accent)!important;color:#111d31!important;}html[data-theme=light] .hgh-discovery>button[aria-pressed=true]{color:#fff!important;}
@media(min-width:1600px){body:not(.hg-gaming) #hg-game-catalog{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
@media(max-width:600px){.hgh-hubbar{grid-template-columns:minmax(0,1fr) 44px;padding:18px;gap:14px;}.hgh-tabs{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;}.hgh-tabs button{flex:1;padding:9px 6px;font-size:11px;}.hgh-settings-button{grid-column:2;grid-row:1;align-self:start;}.hgh-discovery{grid-template-columns:minmax(0,1fr) 44px 110px!important;}.hgh-discovery label{grid-column:auto!important;}.hgh-discovery>button>span{display:none;}.hgh-discovery select{max-width:none!important;font-size:16px!important;}.hgh-data-pane{padding:16px;}.hgh-ranking li{gap:6px;padding:13px 9px;grid-template-columns:32px minmax(0,1fr) auto;font-size:11px;}.hgh-ranking b{font-size:10px;}body:not(.hg-gaming) #hg-game-catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}body .hgh-launch{padding:10px!important;min-height:254px!important;grid-template-rows:94px auto minmax(40px,1fr) auto!important;gap:8px!important;}.hgh-launch b{font-size:12px!important;}.hgh-launch small{font-size:10px!important;}body .hgh-launch>.hgh-game-art{width:76px!important;height:76px!important;border-radius:20px!important;}.hgh-favorite{width:34px;height:34px;font-size:20px;right:5px;top:5px;}body:not(.hg-gaming) .hg-library{padding:12px!important;}.hg-categories button{font-size:10px!important;padding:8px 3px!important;}.halo-gaming-identity{flex-direction:row!important;align-items:center!important;}.hgh-event-grid{grid-template-columns:1fr;}}
@media(prefers-reduced-motion:reduce){.hgh-game-card{transition:none!important;}}
}
