@font-face{font-family:"Panel Space Grotesk";src:url("/homescreens/fonts/space-grotesk-400.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Panel Space Grotesk";src:url("/homescreens/fonts/space-grotesk-600.ttf") format("truetype");font-weight:600;font-display:swap}
html[data-homescreens-romm][data-hs-theme]{
  --hs-bg:#0b0f1f;--hs-bg-deep:#090b16;--hs-bg-accent:#151a2e;--hs-bar:8 10 20;
  --hs-glow-a:40 66 140;--hs-glow-b:148 88 255;--hs-accent:0 210 220;--hs-brand:255 107 154;
  --hs-text:#f3f5ff;--hs-muted:#9aa3c7;--hs-intensity:.45;
  --r-font-family-sans:"Panel Space Grotesk",system-ui,sans-serif;
  --r-font-family-display:var(--r-font-family-sans);
  --r-color-bg:var(--hs-bg);--r-color-bg-elevated:rgb(255 255 255 / .055);
  --r-color-fg:var(--hs-text);--r-color-fg-heading:var(--hs-text);--r-color-fg-secondary:#ccd4e7;--r-color-fg-muted:var(--hs-muted);
  --r-color-brand-primary:rgb(var(--hs-accent));--r-color-brand-primary-hover:color-mix(in srgb,rgb(var(--hs-accent)) 75%,white);
  --r-color-brand-primary-pressed:color-mix(in srgb,rgb(var(--hs-accent)) 75%,black);
  --r-color-brand-secondary:rgb(var(--hs-brand));--r-color-panel:color-mix(in srgb,var(--hs-bg-accent) 97%,transparent);
  --r-color-panel-border:rgb(255 255 255 / .12);--r-color-border:rgb(255 255 255 / .09);
  --r-glass-bar-bg:rgb(var(--hs-bar) / .9);--r-radius-card:22px;--r-radius-lg:18px;
  --r-nav-h:80px;--r-nav-pill-h:48px;--r-font-size-lg:16px;--r-font-size-xl:18px;
  color-scheme:dark;
}
html[data-homescreens-romm] body{font-family:var(--r-font-family-sans);background:var(--hs-bg-deep);color:var(--hs-text)}
html[data-homescreens-romm] .r-v2-bg,
html[data-homescreens-romm] .r-v2-bg__overlay{background:none!important}
html[data-homescreens-romm] .r-v2-bg__layer{background:none!important;opacity:0!important}
html[data-homescreens-romm] .r-v2-app-shell{background:linear-gradient(180deg,var(--hs-bg),var(--hs-bg-deep));isolation:isolate}
html[data-homescreens-romm] .r-v2-app-shell::before{content:"";position:fixed;inset:-8%;z-index:-1;pointer-events:none;opacity:var(--hs-intensity);background:radial-gradient(ellipse at 12% 16%,rgb(var(--hs-glow-a) / .68),transparent 48%),radial-gradient(ellipse at 86% 38%,rgb(var(--hs-glow-b) / .46),transparent 52%);background-size:110% 110%}
html[data-homescreens-romm][data-hs-motion=on][data-hs-player=off] .r-v2-app-shell::before{animation:hs-library-glow 35s ease-in-out infinite alternate}
@keyframes hs-library-glow{to{background-position:60px 35px,-55px 20px}}
html[data-homescreens-romm] .r-v2-nav-bar{height:var(--r-nav-h);background:rgb(var(--hs-bar) / .86);border-bottom:1px solid rgb(var(--hs-accent) / .14);backdrop-filter:blur(22px)}
html[data-homescreens-romm] .r-v2-nav{height:100%;padding:0 24px;gap:18px;max-width:none}
html[data-homescreens-romm] .r-v2-nav__logo{display:none}
html[data-homescreens-romm] .r-v2-nav__center{min-width:0}
html[data-homescreens-romm] .r-slider-btn-group--tab .r-slider-btn-group__btn{min-height:44px;font-size:15px}
html[data-homescreens-romm] .r-v2-nav__right{gap:10px}
html[data-homescreens-romm] .r-v2-nav__right .r-btn{min-height:44px}
.hs-romm-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.hs-romm-controls[hidden],html[data-hs-auth=on] .hs-romm-controls,html[data-hs-auth=on] .r-v2-nav-bar,html[data-homescreens-romm] body:has(.r-v2-login-form) .hs-romm-controls{display:none!important}
.hs-romm-button{font:600 14px var(--r-font-family-sans);color:var(--hs-text);background:rgb(255 255 255 / .055);border:1px solid rgb(255 255 255 / .12);border-radius:14px;min-height:46px;padding:0 16px;cursor:pointer;touch-action:manipulation;white-space:nowrap}
.hs-romm-button[hidden]{display:none!important}
.hs-romm-button:hover{border-color:rgb(var(--hs-accent) / .7);background:rgb(var(--hs-accent) / .1)}
.hs-romm-button:focus-visible,html[data-homescreens-romm] a:focus-visible{outline:3px solid rgb(var(--hs-accent));outline-offset:3px}
.hs-romm-back{width:46px;padding:0;font-size:25px}.hs-romm-home{background:rgb(var(--hs-accent) / .1);border-color:rgb(var(--hs-accent) / .22)}
:root{--hs-elysium-gold:#ebca86}
.hs-romm-room{display:flex;align-items:center;gap:14px;white-space:nowrap;color:var(--hs-text)}
.hs-romm-brand-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;box-sizing:border-box;border:1px solid #ebca86a6;border-radius:13px;background:#0a0e1399;color:var(--hs-elysium-gold);font-size:28px;font-weight:600}
.hs-romm-brand-name{font-size:19px;font-weight:600;letter-spacing:.24em;line-height:1.15}
.hs-romm-brand-name span{display:block;font-size:9px;color:var(--hs-elysium-gold);letter-spacing:.24em;margin-top:7px}
@media(max-width:700px){.hs-romm-room{gap:9px}.hs-romm-brand-mark{width:36px;height:36px;flex-basis:36px;border-radius:10px;font-size:24px}.hs-romm-brand-name{font-size:14px}.hs-romm-brand-name span{font-size:7px;margin-top:5px}}
.hs-romm-screen-controls{font-size:21px;width:46px;padding:0}
.hs-romm-pair-controller{min-height:56px;font-size:16px}.hs-romm-controls--fallback .hs-romm-pair-controller{margin-left:auto}.hs-romm-controls--fallback .hs-romm-pair-controller+.hs-romm-screen-controls{margin-left:0}
html[data-homescreens-romm] .r-v2-main{padding-top:28px}
html[data-homescreens-romm] .card-row__head{margin-bottom:20px}
html[data-homescreens-romm] .card-row__title{font-size:20px;font-weight:600;letter-spacing:-.02em}
html[data-homescreens-romm] .r-v2-main .r-card{border-color:rgb(255 255 255 / .1);box-shadow:0 14px 42px rgb(0 0 0 / .2)}
html[data-homescreens-romm] .r-v2-main .r-tag{border-radius:8px}
html[data-homescreens-romm] .r-btn--primary{color:var(--hs-bg-deep)}
.hs-romm-controls--fallback{position:sticky;top:0;z-index:2000;height:80px;padding:12px 24px;background:rgb(var(--hs-bar) / .94)}
.hs-romm-controls--fallback .hs-romm-screen-controls{margin-left:auto}
.hs-romm-dialog{position:fixed;inset:0;z-index:10000;background:rgb(0 0 0 / .75);display:grid;place-items:center;padding:24px;backdrop-filter:blur(10px)}
.hs-romm-dialog-card{max-width:460px;padding:32px;border:1px solid rgb(var(--hs-accent) / .35);border-radius:24px;background:var(--hs-bg-accent);box-shadow:0 20px 80px #0009}
.hs-romm-dialog-card h2{font-size:26px;margin:0 0 12px}.hs-romm-dialog-card p{color:var(--hs-muted);line-height:1.6}
.hs-romm-dialog-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.hs-romm-preview-note{position:fixed;right:24px;top:92px;z-index:3000;padding:22px;border-radius:18px;border:1px solid rgb(var(--hs-accent) / .3);background:var(--hs-bg-accent);max-width:320px;line-height:1.5}
@media(max-width:1100px){.hs-romm-room{display:none}html[data-homescreens-romm] .r-v2-nav{padding:0 16px;gap:12px}}
@media(max-width:700px){html[data-homescreens-romm]{--r-nav-h:72px}.hs-romm-button{min-height:44px;border-radius:12px}.hs-romm-home{padding:0 12px}.hs-romm-controls{gap:6px}html[data-homescreens-romm] .r-v2-nav{padding:0 12px}}
@media(prefers-reduced-motion:reduce){html[data-homescreens-romm] .r-v2-app-shell::before{animation:none!important}}

/* Spacious platform cards, scoped away from Home carousels and game galleries. */
html[data-homescreens-romm] .r-v2-pidx__grid.hs-platform-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html[data-homescreens-romm] .hs-platform-rows .hs-platform-row{
  --hs-platform-accent:120 190 210;
  display:grid;grid-template-columns:124px minmax(0,1fr) auto;
  grid-template-rows:auto auto 1fr auto;column-gap:18px;row-gap:8px;
  grid-template-areas:"icon eyebrow eyebrow" "icon name name" "description description description" "count status cta";
  align-items:center;align-content:center;width:100%;min-height:260px;height:auto;aspect-ratio:auto;
  padding:24px;box-sizing:border-box;text-align:left;position:relative;isolation:isolate;overflow:hidden;
  border:1px solid rgb(var(--hs-platform-accent) / .22);border-radius:26px;
  background:radial-gradient(ellipse at 0% 30%,rgb(var(--hs-platform-accent) / .16),transparent 56%),radial-gradient(ellipse at 100% 100%,rgb(var(--hs-platform-accent) / .09),transparent 60%),linear-gradient(115deg,color-mix(in srgb,var(--hs-bg-accent) 95%,#111722),var(--hs-bg-deep));
  box-shadow:0 14px 34px #0003,inset 0 1px 0 #ffffff06;touch-action:manipulation;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
html[data-homescreens-romm] .hs-platform-row::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(125deg,transparent 0 43px,rgb(var(--hs-platform-accent) / .045) 44px 45px,transparent 46px 89px);mask-image:linear-gradient(90deg,transparent 35%,black)}
html[data-homescreens-romm] .hs-platform-row::after{content:"";position:absolute;right:-80px;top:-175px;width:440px;height:440px;border:1px solid rgb(var(--hs-platform-accent) / .1);border-radius:50%;box-shadow:0 0 0 34px rgb(var(--hs-platform-accent) / .035),0 0 0 70px rgb(var(--hs-platform-accent) / .025);z-index:-1;pointer-events:none}
html[data-homescreens-romm] .hs-platform-row:hover{border-color:rgb(var(--hs-platform-accent) / .6);box-shadow:0 18px 42px #0004,inset 0 0 0 1px rgb(var(--hs-platform-accent) / .08);transform:none}
html[data-homescreens-romm] .hs-platform-row:focus-visible{outline:3px solid rgb(var(--hs-platform-accent));outline-offset:4px}
html[data-homescreens-romm] .hs-platform-row .r-v2-tile__icon{grid-area:icon;width:110px;height:110px;margin:0;box-sizing:border-box;padding:18px;border:1px solid rgb(var(--hs-platform-accent) / .22);border-radius:24px;background:linear-gradient(145deg,rgb(var(--hs-platform-accent) / .13),rgb(var(--hs-platform-accent) / .035));box-shadow:inset 0 1px 0 #ffffff0d}
html[data-homescreens-romm] .hs-platform-row .plat-tile__icon-inner{width:100%;height:100%;max-width:none;max-height:none}
html[data-homescreens-romm] .hs-platform-row .r-platform-icon__img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 10px #0005)}
html[data-homescreens-romm] .hs-platform-row__eyebrow{grid-area:eyebrow;color:rgb(var(--hs-platform-accent));font-size:12px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;font-weight:600}
html[data-homescreens-romm] .hs-platform-row .r-v2-tile__name{grid-area:name;display:block;min-height:0;height:auto;margin:0;max-width:none;text-align:left;overflow:visible;text-overflow:clip;white-space:normal;-webkit-line-clamp:unset;font-size:clamp(22px,1.7vw,28px);font-weight:600;line-height:1.18;letter-spacing:-.035em;color:var(--hs-text)}
html[data-homescreens-romm] .hs-platform-row__description{grid-area:description;margin:4px 0 0;max-width:660px;color:color-mix(in srgb,var(--hs-text) 74%,var(--hs-bg));font-size:16px;line-height:1.6;font-weight:400}
html[data-homescreens-romm] .hs-platform-row .r-v2-tile__count{grid-area:count;align-self:center;justify-self:start;margin:0;font-size:20px;line-height:1.25;font-weight:600;letter-spacing:-.025em;color:var(--hs-text)}
html[data-homescreens-romm] .hs-platform-row .plat-tile__playable{grid-area:status;position:static;justify-self:start;align-self:center;z-index:1;margin:0}
html[data-homescreens-romm] .hs-platform-row__status{grid-area:status;font-size:13px;line-height:1.5;color:var(--hs-muted);white-space:normal}
html[data-homescreens-romm] .hs-platform-row--playable .hs-platform-row__status{padding-left:24px}
html[data-homescreens-romm] .hs-platform-row__cta{grid-area:cta;justify-self:end;margin:0;padding:10px 12px;border:1px solid rgb(var(--hs-platform-accent) / .25);border-radius:12px;background:rgb(var(--hs-platform-accent) / .09);color:rgb(var(--hs-platform-accent));font-size:13px;font-weight:600;line-height:1.5}
@media(max-width:1100px){html[data-homescreens-romm] .r-v2-pidx__grid.hs-platform-rows{grid-template-columns:minmax(0,1fr)}html[data-homescreens-romm] .hs-platform-rows .hs-platform-row{grid-template-columns:132px minmax(0,1fr) 172px;grid-template-areas:"icon eyebrow count" "icon name count" "icon description status" "icon description cta";column-gap:22px;padding:24px;min-height:210px}html[data-homescreens-romm] .hs-platform-row .r-v2-tile__icon{width:124px;height:138px;padding:20px}html[data-homescreens-romm] .hs-platform-row__description{font-size:15px}html[data-homescreens-romm] .hs-platform-row__cta{justify-self:start}}
@media(max-width:680px){html[data-homescreens-romm] .hs-platform-rows .hs-platform-row{grid-template-columns:82px minmax(0,1fr);grid-template-rows:auto auto auto auto auto;grid-template-areas:"icon eyebrow" "icon name" "description description" "count count" "status cta";gap:12px 18px;padding:22px;min-height:0;border-radius:22px}html[data-homescreens-romm] .hs-platform-row .r-v2-tile__icon{width:82px;height:96px;padding:12px;border-radius:16px}html[data-homescreens-romm] .hs-platform-row .r-v2-tile__name{font-size:23px}html[data-homescreens-romm] .hs-platform-row .r-v2-tile__count{font-size:20px;margin-top:4px}html[data-homescreens-romm] .hs-platform-row__description{margin-top:0}html[data-homescreens-romm] .hs-platform-row__cta{justify-self:end;margin:0;font-size:13px;padding:10px 12px}html[data-homescreens-romm] .hs-platform-row__eyebrow{font-size:10px;letter-spacing:.08em}}
@media(prefers-reduced-motion:reduce){html[data-homescreens-romm] .hs-platform-row{animation:none!important;transition:none}}

/* A large hamburger opens the native controls, including in fullscreen. */
html[data-homescreens-romm] .hs-game-toolbar{opacity:1!important;transform:none!important;visibility:visible!important;display:none!important;position:absolute!important;bottom:0!important;left:0!important;width:100%!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:22px!important;height:auto!important;max-height:90%;overflow:auto;box-sizing:border-box;background:rgb(var(--hs-bar) / .98)!important;border-top:1px solid rgb(var(--hs-accent) / .3);box-shadow:0 -20px 80px #0009;z-index:30}
html[data-homescreens-romm] [data-hs-game-menu=open]>.hs-game-toolbar{display:flex!important}
.hs-game-menu-toggle{position:absolute;bottom:18px;right:18px;z-index:31;min-width:124px;min-height:64px;font-size:20px;background:rgb(var(--hs-bar) / .95);border-color:rgb(var(--hs-accent) / .5);box-shadow:0 4px 24px #0007}
[data-hs-game-menu=open]>.hs-game-menu-toggle{display:none}
.hs-game-menu-header{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px;order:-3;padding-bottom:14px;border-bottom:1px solid rgb(255 255 255 / .12)}
.hs-game-menu-header strong{font:600 26px var(--r-font-family-sans);color:var(--hs-text)}
.hs-game-menu-header .hs-romm-button{min-height:60px;font-size:18px}
html[data-homescreens-romm] .hs-game-toolbar:not([data-hs-expanded=yes])>:not([data-hs-primary]){display:none!important}
html[data-homescreens-romm] .hs-game-toolbar .ejs_menu_button,html[data-homescreens-romm] .hs-game-toolbar>.hs-romm-button{width:auto!important;min-width:78px;min-height:60px!important;padding:8px 14px!important;margin:0!important;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;border:1px solid rgb(255 255 255 / .15)!important;border-radius:14px!important;background:rgb(255 255 255 / .06)!important;box-sizing:border-box;touch-action:manipulation}
html[data-homescreens-romm] .hs-game-toolbar .ejs_menu_button[style*="display: none"]{display:none!important}
html[data-homescreens-romm] .hs-game-toolbar .ejs_menu_button>svg{width:22px!important;height:22px!important;margin:0!important}
html[data-homescreens-romm] .hs-game-toolbar .ejs_menu_button>.ejs_menu_text{position:static!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;padding:0!important;margin:0!important;background:none!important;color:var(--hs-text)!important;font:600 14px var(--r-font-family-sans)!important;white-space:nowrap;line-height:1.2}
html[data-homescreens-romm] .hs-game-toolbar .ejs_menu_text::before,html[data-homescreens-romm] .hs-game-toolbar .ejs_menu_text::after{display:none!important}
html[data-homescreens-romm] .hs-game-toolbar .hs-game-save-quit{order:-1;background:rgb(var(--hs-accent) / .16)!important;border-color:rgb(var(--hs-accent) / .65)!important;min-width:140px}
html[data-homescreens-romm] .hs-game-toolbar .ejs_volume_parent{display:flex!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;align-items:center;gap:12px;min-height:60px!important;padding:0 12px!important;border:1px solid rgb(255 255 255 / .15);border-radius:14px}
html[data-homescreens-romm] .hs-game-toolbar .ejs_volume_parent input[type=range]{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;flex:0 0 170px!important;width:170px!important;height:48px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;appearance:none!important;touch-action:none}
html[data-homescreens-romm] .hs-game-toolbar input[type=range]::-webkit-slider-runnable-track{height:6px!important;background:rgb(255 255 255 / .25)!important;border-radius:6px!important}
html[data-homescreens-romm] .hs-game-toolbar input[type=range]::-webkit-slider-thumb{appearance:none!important;width:28px!important;height:28px!important;margin-top:-11px!important;border:3px solid var(--hs-text)!important;background:rgb(var(--hs-accent))!important;border-radius:50%!important}
html[data-homescreens-romm] .ejs_parent:has(>.hs-game-toolbar)>.ejs_canvas_parent{height:100%!important}
html[data-homescreens-romm] .ejs_parent .ejs_popup_container button,html[data-homescreens-romm] .ejs_parent .ejs_popup_container select{min-height:48px!important;font-size:16px!important;touch-action:manipulation}
html[data-homescreens-romm] .ejs_parent .ejs_popup_container input{min-height:44px!important;font-size:16px!important}
html[data-homescreens-romm] .ejs_parent .ejs_popup_container .ejs_button,
html[data-homescreens-romm] .ejs_parent .ejs_popup_container .ejs_control_set_button,
html[data-homescreens-romm] .ejs_parent .ejs_popup_container a[role=tab]{min-height:48px!important;padding:10px 16px!important;display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;font-size:16px!important;touch-action:manipulation}
.hs-controller-dialog{position:absolute}body>.hs-controller-dialog{position:fixed}.hs-controller-dialog .hs-romm-dialog-card{width:min(680px,95%);max-width:680px;max-height:90%;overflow:auto}.hs-controller-dialog .hs-romm-button{min-height:60px;font-size:17px}.hs-controller-devices{display:grid;gap:10px}.hs-controller-devices>a{display:flex;align-items:center;text-decoration:none}.hs-controller-status{min-height:24px}

/* Floating library keyboard; no page resize or game-input capture. */
.hs-home-platforms .card-row__track{gap:18px;padding-top:8px;padding-bottom:14px}
html[data-homescreens-romm] .hs-home-platforms > .card-row__head{display:none!important}
html[data-homescreens-romm] .hs-home-platform{--hs-platform-accent:120 190 210;position:relative;isolation:isolate;overflow:hidden;flex:0 0 286px;width:286px;min-height:284px;height:auto;aspect-ratio:auto;padding:24px;box-sizing:border-box;display:grid;grid-template-rows:100px auto auto 1fr auto;align-items:center;justify-items:start;gap:8px;text-align:left;border:1px solid rgb(var(--hs-platform-accent) / .27);border-radius:24px;background:radial-gradient(ellipse at 80% 0%,rgb(var(--hs-platform-accent) / .22),transparent 65%),linear-gradient(140deg,var(--hs-bg-accent),var(--hs-bg-deep));box-shadow:inset 0 1px 0 #ffffff0d,0 10px 22px #0003;touch-action:manipulation}
.hs-home-platform::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(135deg,transparent 0 28px,rgb(var(--hs-platform-accent) / .055) 29px 30px,transparent 31px 58px);mask-image:linear-gradient(90deg,transparent,black)}
.hs-home-platform::after{content:"";position:absolute;right:-76px;top:-64px;width:220px;height:220px;border-radius:50%;border:1px solid rgb(var(--hs-platform-accent) / .2);box-shadow:0 0 0 22px rgb(var(--hs-platform-accent) / .045),0 0 0 44px rgb(var(--hs-platform-accent) / .025);z-index:-1;pointer-events:none}
html[data-homescreens-romm] .hs-home-platform .r-v2-tile__icon{width:104px;height:100px;padding:12px;margin:0;border-radius:20px;background:rgb(var(--hs-platform-accent) / .09);border:1px solid rgb(var(--hs-platform-accent) / .2)}
html[data-homescreens-romm] .hs-home-platform .plat-tile__icon-inner{width:100%;height:100%;max-width:none;max-height:none}
html[data-homescreens-romm] .hs-home-platform .r-platform-icon__img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 8px #0006)}
html[data-homescreens-romm] .hs-home-platform .r-v2-tile__name{grid-row:3;margin:0;font-size:22px;line-height:1.18;text-align:left;white-space:normal;max-width:none;height:auto;min-height:0;overflow:visible;-webkit-line-clamp:unset;letter-spacing:-.025em}
html[data-homescreens-romm] .hs-home-platform .r-v2-tile__count{grid-row:4;margin:0;font-size:16px;font-weight:600;color:var(--hs-text)}
.hs-home-platform__label{grid-row:2;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:rgb(var(--hs-platform-accent))}
.hs-home-platform__cta{grid-row:5;font-size:13px;font-weight:600;color:rgb(var(--hs-platform-accent));border-top:1px solid rgb(var(--hs-platform-accent) / .18);padding-top:10px;width:100%}
html[data-homescreens-romm] .hs-home-platform .plat-tile__playable{position:absolute;right:20px;top:20px}
html[data-homescreens-romm] .hs-home-platform:hover,html[data-homescreens-romm] .hs-home-platform:focus-visible{border-color:rgb(var(--hs-platform-accent) / .8);outline:3px solid rgb(var(--hs-platform-accent));outline-offset:3px;transform:none}
@media(max-width:680px){html[data-homescreens-romm] .hs-home-platform{flex-basis:242px;width:242px;min-height:270px;padding:20px}}
.hs-search-keyboard{position:fixed;right:20px;bottom:20px;z-index:5000;width:min(600px,calc(100vw - 16px));box-sizing:border-box;padding:12px;display:grid;gap:6px;border:1px solid rgb(var(--hs-accent) / .4);border-radius:20px;background:color-mix(in srgb,var(--hs-bg-accent) 97%,black);box-shadow:0 14px 70px #000a;color:var(--hs-text);font-family:var(--r-font-family-sans)}
.hs-search-keyboard[hidden]{display:none!important}
.hs-search-keyboard__header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hs-search-keyboard__handle{flex:1;font-size:13px;font-weight:600;color:var(--hs-muted);padding:8px;cursor:move;touch-action:none;user-select:none}
.hs-search-keyboard__preview{font-size:14px;line-height:24px;padding:0 8px 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--hs-text)}
.hs-search-keyboard__row{display:flex;gap:5px;justify-content:center}
.hs-search-keyboard__key{min-width:0;flex:1;min-height:44px;padding:4px;border:1px solid rgb(255 255 255 / .13);border-radius:9px;background:rgb(255 255 255 / .07);color:var(--hs-text);font:600 17px var(--r-font-family-sans);cursor:pointer;touch-action:manipulation;user-select:none}
.hs-search-keyboard__key:hover,.hs-search-keyboard__key[aria-pressed=true]{background:rgb(var(--hs-accent) / .16);border-color:rgb(var(--hs-accent) / .6)}
.hs-search-keyboard__key:active{background:rgb(var(--hs-accent) / .3)}
.hs-search-keyboard__key:focus-visible{outline:3px solid rgb(var(--hs-accent));outline-offset:1px}
.hs-search-keyboard__wide{flex:1.65;font-size:12px}.hs-search-keyboard__space{flex:4;font-size:14px}.hs-search-keyboard__search{flex:2;font-size:14px;background:rgb(var(--hs-accent) / .16);border-color:rgb(var(--hs-accent) / .4)}
.hs-search-keyboard__close{flex:0 0 34px;min-height:32px;font-size:24px;background:transparent;border:0}
@media(max-width:620px){.hs-search-keyboard{right:8px;bottom:8px;padding:8px}.hs-search-keyboard__row{gap:3px}.hs-search-keyboard__key{font-size:15px}.hs-search-keyboard__wide{font-size:10px}}

/* Home: a resume carousel, readable console labels and a quieter discovery area. */
html[data-homescreens-romm] .hs-home-library .hs-library-card{display:grid!important}
html[data-homescreens-romm] .hs-home-library .hs-library-card>.r-gc__art{width:100%!important}
html[data-homescreens-romm] .hs-continue-hero .card-row__track{scroll-padding-inline:var(--r-row-pad,24px)}
html[data-homescreens-romm] .hs-home-library .hs-resume-card{scroll-margin:0}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay-bottom{position:absolute;display:flex;gap:8px;width:auto}
html[data-homescreens-romm] .hs-home-library{gap:26px;padding-top:18px}
.hs-library-snapshot{display:flex;align-items:center;flex-wrap:wrap;gap:28px;margin:0 var(--r-row-pad,24px);padding:4px 0 18px;border-bottom:1px solid rgb(255 255 255 / .1)}
.hs-library-snapshot__title{font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--hs-muted);margin-right:auto}
.hs-library-snapshot__item{display:flex;align-items:baseline;gap:8px;color:var(--hs-muted);font-size:13px}
.hs-library-snapshot__item strong{font-size:23px;letter-spacing:-.04em;color:var(--hs-text);font-weight:600}
html[data-homescreens-romm] .hs-home-library .card-row__title{font-size:24px;font-weight:600;letter-spacing:-.04em}
html[data-homescreens-romm] .hs-home-library .card-row__head{margin-bottom:16px}
html[data-homescreens-romm] .hs-home-library .card-row__arrow{width:52px;min-height:52px;background:rgb(var(--hs-bar) / .95);border:1px solid rgb(255 255 255 / .18);box-shadow:0 4px 22px #0006;border-radius:16px!important}
html[data-homescreens-romm] .hs-game-shelf .card-row__track{gap:18px!important;padding-top:5px;padding-bottom:14px}
html[data-homescreens-romm] .hs-game-shelf .r-v2-home__rec{width:210px;gap:8px}
html[data-homescreens-romm] .hs-library-card{width:210px;flex:0 0 210px;min-width:0;box-sizing:border-box;display:grid;grid-template-areas:"art" "console" "title";grid-template-rows:auto auto 1fr;gap:11px;padding:10px 10px 15px;background:linear-gradient(160deg,rgb(var(--hs-console-accent) / .08),rgb(255 255 255 / .025));border:1px solid rgb(var(--hs-console-accent) / .2);border-radius:20px;text-decoration:none;transition:border-color .15s,box-shadow .15s}
html[data-homescreens-romm] .hs-library-card>.r-gc__art{grid-area:art;width:100%;border-radius:13px;overflow:hidden}
html[data-homescreens-romm] .hs-library-card>.r-gc__label{grid-area:title;width:auto;padding:0 2px;font-size:15px;line-height:1.35;min-height:40px;height:auto;text-align:left;color:var(--hs-text);font-weight:600;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hs-card-console{grid-area:console;display:flex;align-items:center;gap:8px;color:rgb(var(--hs-console-accent));font-size:12px;font-weight:600;min-height:22px;line-height:1.2;pointer-events:none;padding:0 2px}
.hs-card-console img{width:23px;height:23px;object-fit:contain}.hs-card-console img[hidden]{display:none}
html[data-homescreens-romm] .hs-library-card:hover,html[data-homescreens-romm] .hs-library-card:focus-visible{transform:none;border-color:rgb(var(--hs-console-accent) / .8);outline:3px solid rgb(var(--hs-console-accent));outline-offset:2px;box-shadow:0 8px 28px rgb(var(--hs-console-accent) / .12)}
html[data-homescreens-romm] .hs-home-library .rec-reason{display:none!important}
html[data-homescreens-romm] .hs-continue-hero .card-row__track{gap:20px!important;scroll-snap-type:x mandatory;padding-top:5px;padding-bottom:10px}
html[data-homescreens-romm] .hs-resume-card{flex:0 0 100%;width:100%;height:470px;min-height:470px;padding:0;display:grid;grid-template-columns:54% minmax(0,1fr);grid-template-areas:"art detail";grid-template-rows:1fr;gap:0;border-radius:28px;overflow:hidden;scroll-snap-align:start;scroll-margin:4px;background:radial-gradient(ellipse at 85% 20%,rgb(var(--hs-console-accent) / .11),transparent 65%),var(--hs-bg-deep);box-shadow:0 18px 55px #0003}
html[data-homescreens-romm] .hs-resume-card>.r-gc__art{height:100%;aspect-ratio:auto!important;border-radius:0;background:#020508;position:relative}
html[data-homescreens-romm] .hs-resume-card>.r-gc__art>.game-cover__img{width:100%;height:100%;object-fit:contain!important}
html[data-homescreens-romm] .hs-resume-card .cover-art-pip{width:92px;right:22px;bottom:22px;border:1px solid #ffffff40;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0008}
html[data-homescreens-romm] .hs-resume-card>.r-gc__label,html[data-homescreens-romm] .hs-resume-card>.hs-card-console{display:none}
.hs-resume-card__detail{grid-area:detail;min-width:0;padding:28px 32px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;color:var(--hs-text)}
.hs-resume-card__eyebrow{font-size:11px;letter-spacing:.15em;font-weight:600;color:rgb(var(--hs-console-accent))}
.hs-resume-card__metadata{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;line-height:1.5;color:var(--hs-muted)}
.hs-resume-card__console{padding:5px 10px;border:1px solid rgb(var(--hs-console-accent) / .35);border-radius:8px;color:rgb(var(--hs-console-accent));background:rgb(var(--hs-console-accent) / .09);font-weight:600}
.hs-resume-card__title{font-family:var(--r-font-family-sans);font-size:clamp(28px,2.9vw,43px);font-weight:600;line-height:1.08;letter-spacing:-.045em;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hs-resume-card__summary{font-size:14px;line-height:1.6;color:color-mix(in srgb,var(--hs-text) 72%,var(--hs-bg));margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hs-resume-card__summary[hidden]{display:none}
.hs-resume-card__facts{align-self:stretch;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;padding:14px 0;border-top:1px solid rgb(255 255 255 / .1);border-bottom:1px solid rgb(255 255 255 / .1)}
.hs-resume-card__fact{min-width:0;display:flex;flex-direction:column;gap:5px}
.hs-resume-card__fact>span:first-child{font-size:9px;font-weight:600;letter-spacing:.13em;color:var(--hs-muted)}
.hs-resume-card__fact strong{font-size:14px;font-weight:600;line-height:1.35;color:var(--hs-text)}
.hs-resume-card__save-hint{font-size:11px;line-height:1.4;color:var(--hs-muted)}
.hs-resume-card__actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.hs-resume-card__actions button{font:600 15px var(--r-font-family-sans);border-radius:13px;min-height:54px;padding:10px 22px;cursor:pointer;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center}
.hs-resume-card__actions button[hidden]{display:none}
.hs-resume-card__launch{border:1px solid rgb(var(--hs-console-accent));background:rgb(var(--hs-console-accent));color:var(--hs-bg-deep)}
.hs-resume-card__launch::before{content:"▶";font-size:12px;margin-right:9px}
.hs-resume-card__details{border:1px solid rgb(255 255 255 / .18);background:rgb(255 255 255 / .05);color:var(--hs-text)}
.hs-resume-card__actions button:hover{filter:brightness(1.15)}
.hs-resume-card__actions button:focus-visible{outline:3px solid var(--hs-text);outline-offset:3px}
.hs-resume-card__image-label{position:absolute;top:20px;left:20px;max-width:45%;background:#050b14c9;border:1px solid #ffffff25;color:#e1e8f3;border-radius:8px;padding:6px 10px;font-size:11px;font-weight:600;pointer-events:none}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay{background:transparent;opacity:1;pointer-events:none}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay-center{display:none}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay-bottom{pointer-events:auto;right:auto;left:18px;bottom:18px}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay-bottom button{min-width:44px;min-height:44px;background:#071019c9;border:1px solid #ffffff25;border-radius:11px}
html[data-homescreens-romm] .hs-home-discover{margin:10px var(--r-row-pad,24px) 0;padding:22px 0 0;border-top:1px solid rgb(255 255 255 / .1);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;overflow:visible}
.hs-home-discover::before{content:"DISCOVER SOMETHING DIFFERENT";grid-column:1/-1;font-size:11px;font-weight:600;letter-spacing:.13em;color:var(--hs-muted)}
html[data-homescreens-romm] .hs-library-stats-source{display:none!important}
.hs-home-discover:not(:has(>.r-v2-widget:not(.hs-library-stats-source))){display:none!important}
html[data-homescreens-romm] .hs-home-discover>.r-v2-widget{width:100%!important;box-sizing:border-box;padding:24px;border:1px solid rgb(255 255 255 / .12);border-radius:22px;background:linear-gradient(135deg,rgb(var(--hs-accent) / .07),rgb(255 255 255 / .035))}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget__title{font-size:12px;letter-spacing:.12em;color:rgb(var(--hs-accent));margin-bottom:18px}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget__action{right:18px;top:14px}
html[data-homescreens-romm] .hs-home-discover button{min-width:48px;min-height:48px}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget-pick__body,html[data-homescreens-romm] .hs-home-discover .r-v2-widget-anniv__body{gap:22px}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget-pick__cover,html[data-homescreens-romm] .hs-home-discover .r-v2-widget-anniv__cover{width:84px;flex:0 0 84px;border-radius:10px;overflow:hidden}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget-pick__name,html[data-homescreens-romm] .hs-home-discover .r-v2-widget-anniv__name{font-size:23px;font-weight:600;line-height:1.25;white-space:normal}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget-pick__platform,html[data-homescreens-romm] .hs-home-discover .r-v2-widget-anniv__platform{font-size:14px;margin:9px 0;color:var(--hs-text)}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget-pick__platform-name,html[data-homescreens-romm] .hs-home-discover .r-v2-widget-anniv__platform-name{white-space:normal;overflow:visible}
html[data-homescreens-romm] .hs-home-discover .r-v2-widget-pick__meta,html[data-homescreens-romm] .hs-home-discover .r-v2-widget-anniv__meta{font-size:13px}
@media(max-width:1100px){html[data-homescreens-romm] .hs-resume-card{height:480px;min-height:480px;grid-template-columns:48% minmax(0,1fr)}.hs-resume-card__detail{padding:24px;gap:12px}.hs-resume-card__title{font-size:30px}.hs-resume-card__summary{font-size:13px;-webkit-line-clamp:3}.hs-resume-card__actions button{padding:10px 15px;font-size:14px}.hs-library-snapshot{gap:20px}.hs-library-snapshot__title{margin-right:0}}
@media(max-width:680px){html[data-homescreens-romm] .hs-resume-card{height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:230px auto;grid-template-areas:"art" "detail"}.hs-resume-card__detail{padding:24px;gap:13px}.hs-resume-card__title{font-size:30px}.hs-resume-card__facts{padding:14px 0}.hs-resume-card__image-label{font-size:10px;top:14px;left:14px}html[data-homescreens-romm] .hs-resume-card .cover-art-pip{width:65px;right:15px;bottom:15px}html[data-homescreens-romm] .hs-home-discover{grid-template-columns:minmax(0,1fr)}.hs-library-snapshot{gap:12px 18px}.hs-library-snapshot__title{width:100%;font-size:10px}.hs-library-snapshot__item{font-size:12px}.hs-library-snapshot__item strong{font-size:20px}html[data-homescreens-romm] .hs-game-shelf .r-v2-home__rec,html[data-homescreens-romm] .hs-library-card{width:190px;flex-basis:190px}html[data-homescreens-romm] .hs-home-library .card-row__title{font-size:22px}}
@media(max-width:680px){html[data-homescreens-romm] .hs-home-library .hs-resume-card{width:100%;flex-basis:100%}}
@media(prefers-reduced-motion:reduce){html[data-homescreens-romm] .hs-library-card{transition:none;animation:none}}

/* Transparent console wordmarks replace the visual name in both views.
   The native title stays available if an image cannot be loaded. */
/* Console detail banners retain RomM's native stats, tabs and actions. */
html[data-homescreens-romm] .info-panel.hs-platform-header{--hs-platform-accent:120 190 210;position:relative;isolation:isolate;display:grid;grid-template-columns:164px minmax(0,1fr);gap:22px 32px;align-items:center;overflow:hidden;padding:28px 30px 18px;border:1px solid rgb(var(--hs-platform-accent) / .24);border-radius:26px;background:radial-gradient(ellipse at 5% 0%,rgb(var(--hs-platform-accent) / .17),transparent 50%),linear-gradient(115deg,color-mix(in srgb,var(--hs-bg-accent) 90%,#101820),var(--hs-bg-deep));box-shadow:inset 0 1px 0 #ffffff0d,0 14px 30px #0002;margin-bottom:18px}
html[data-homescreens-romm] .hs-platform-header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(125deg,transparent 0 58px,rgb(var(--hs-platform-accent) / .035) 59px 60px,transparent 61px 119px);mask-image:linear-gradient(90deg,transparent 40%,black)}
html[data-homescreens-romm] .hs-platform-header::after{content:"";position:absolute;right:-80px;top:-170px;width:490px;height:490px;border-radius:50%;border:1px solid rgb(var(--hs-platform-accent) / .11);box-shadow:0 0 0 35px rgb(var(--hs-platform-accent) / .025);z-index:-1;pointer-events:none}
html[data-homescreens-romm] .hs-platform-header>.info-panel__cover{width:164px;height:164px;align-self:center;display:grid;place-items:center;padding:18px;box-sizing:border-box;border-radius:28px;border:1px solid rgb(var(--hs-platform-accent) / .28);background:linear-gradient(145deg,rgb(var(--hs-platform-accent) / .12),rgb(var(--hs-platform-accent) / .035));box-shadow:inset 0 1px 0 #ffffff10,0 16px 28px #0002}
html[data-homescreens-romm] .hs-platform-header .r-v2-plat__panel-icon,html[data-homescreens-romm] .hs-platform-header .r-platform-icon{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%;max-height:100%}
html[data-homescreens-romm] .hs-platform-header .r-platform-icon__img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 10px #0005)}
html[data-homescreens-romm] .hs-platform-header>.info-panel__details{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"eyebrow stats" "name stats" "description stats" "tags stats" "providers providers";gap:8px 34px;align-items:start}
html[data-homescreens-romm] .hs-platform-header__eyebrow{grid-area:eyebrow;color:rgb(var(--hs-platform-accent));font-size:11px;line-height:1.4;letter-spacing:.13em;text-transform:uppercase;font-weight:600}
html[data-homescreens-romm] .hs-platform-header .info-panel__title{grid-area:name;margin:0;font-size:clamp(28px,2.5vw,38px);line-height:1.2;letter-spacing:-.035em}
html[data-homescreens-romm] .hs-platform-header--logo-ready .info-panel__title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
html[data-homescreens-romm] .hs-platform-header__logo{grid-area:name;width:100%;max-width:370px;height:58px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 8px #0005)}
html[data-homescreens-romm] .hs-platform-header__logo[hidden]{display:none}
html[data-homescreens-romm] .hs-platform-header[data-hs-platform="gbc"] .hs-platform-header__logo{filter:brightness(1.5) drop-shadow(0 0 1px #ffffff40) drop-shadow(0 3px 8px #0005)}
html[data-homescreens-romm] .hs-platform-header__description{grid-area:description;max-width:68ch;margin:2px 0 0;color:color-mix(in srgb,var(--hs-text) 78%,var(--hs-bg));font-size:15px;line-height:1.6}
html[data-homescreens-romm] .hs-platform-header .info-panel__tags{grid-area:tags;display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 0}
html[data-homescreens-romm] .hs-platform-header .hs-platform-header__duplicate-tag{display:none}
html[data-homescreens-romm] .hs-platform-header .info-panel__tags .r-chip{min-height:30px;padding:4px 10px;border:1px solid rgb(var(--hs-platform-accent) / .2);background:rgb(var(--hs-platform-accent) / .07);color:var(--hs-muted);font-size:12px}
html[data-homescreens-romm] .hs-platform-header .info-panel__tags .r-v2-plat__playable{color:rgb(var(--hs-platform-accent));background:rgb(var(--hs-platform-accent) / .13)}
html[data-homescreens-romm] .hs-platform-header .info-panel__stats{grid-area:stats;align-self:center;display:flex;gap:12px;margin:0}
html[data-homescreens-romm] .hs-platform-header .stat{min-width:114px;padding:20px 18px;border-radius:18px;border:1px solid rgb(var(--hs-platform-accent) / .18);background:linear-gradient(140deg,rgb(var(--hs-platform-accent) / .08),#ffffff02)}
html[data-homescreens-romm] .hs-platform-header .stat__value{color:var(--hs-text);font-size:clamp(24px,2vw,30px);line-height:1.2;letter-spacing:-.04em;white-space:nowrap}
html[data-homescreens-romm] .hs-platform-header .stat__label{margin-top:7px;font-size:10px;font-weight:600;letter-spacing:.11em;color:var(--hs-muted);text-transform:uppercase}
html[data-homescreens-romm] .hs-platform-header__sources{position:absolute;left:30px;bottom:18px;justify-self:start;min-width:0;margin-top:0;color:var(--hs-muted);font-size:12px}
html[data-homescreens-romm] .hs-platform-header__sources summary{cursor:pointer;min-height:48px;display:flex;gap:8px;align-items:center;list-style:none;touch-action:manipulation;border-radius:10px;padding:0 8px;margin-left:-8px}
html[data-homescreens-romm] .hs-platform-header__sources summary::-webkit-details-marker{display:none}
html[data-homescreens-romm] .hs-platform-header__sources summary::before{content:"›";font-size:22px;line-height:1;transition:transform .15s}
html[data-homescreens-romm] .hs-platform-header__sources[open] summary::before{transform:rotate(90deg)}
html[data-homescreens-romm] .hs-platform-header__sources summary:hover{color:var(--hs-text);background:rgb(var(--hs-platform-accent) / .07)}
html[data-homescreens-romm] .hs-platform-header__sources summary:focus-visible{outline:2px solid rgb(var(--hs-platform-accent));outline-offset:2px}
html[data-homescreens-romm] .hs-platform-header .info-panel__providers{grid-area:providers;display:none!important;margin:0;flex-wrap:wrap;gap:8px}
html[data-homescreens-romm] .hs-platform-header .info-panel__details:has(.hs-platform-header__sources[open]) .info-panel__providers{display:flex!important}
html[data-homescreens-romm] .hs-platform-header .r-v2-plat__provider{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;border:1px solid rgb(var(--hs-platform-accent) / .18);border-radius:12px;background:rgb(var(--hs-platform-accent) / .04);font-size:12px;color:var(--hs-muted)}
html[data-homescreens-romm] .hs-platform-header .r-v2-plat__provider::after{content:attr(data-hs-provider-name)}
html[data-homescreens-romm] .hs-platform-header .r-v2-plat__provider-label{display:none}
html[data-homescreens-romm] .hs-platform-header>.info-panel__actions{grid-column:1/-1;position:static;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;width:auto;margin:0;padding:16px 0 0 180px;border-top:1px solid rgb(var(--hs-platform-accent) / .16)}
html[data-homescreens-romm] .hs-platform-header .info-panel__actions>.r-btn{width:auto!important;min-width:48px;height:48px!important;min-height:48px;border-radius:13px!important;padding:0 15px;border-color:rgb(var(--hs-platform-accent) / .22);background:rgb(var(--hs-platform-accent) / .065);color:var(--hs-text);touch-action:manipulation}
html[data-homescreens-romm] .hs-platform-header .info-panel__actions>.r-btn:hover{background:rgb(var(--hs-platform-accent) / .16);border-color:rgb(var(--hs-platform-accent) / .65)}
html[data-homescreens-romm] .hs-platform-header .info-panel__actions>.r-btn:focus-visible{outline:2px solid rgb(var(--hs-platform-accent));outline-offset:3px}
html[data-homescreens-romm] .hs-platform-header .r-btn__content{gap:9px}
html[data-homescreens-romm] .hs-platform-header__action-label{font-size:13px;font-weight:600;white-space:nowrap}
html[data-homescreens-romm] .hs-platform-header .r-v2-plat__playable .r-icon{color:inherit}
@media(max-width:800px){html[data-homescreens-romm] .hs-platform-header__sources{position:static;grid-area:sources}html[data-homescreens-romm] .hs-platform-header>.info-panel__actions{padding-left:0}}
html[data-homescreens-romm] .r-v2-plat__tabs{min-height:52px;margin:0 0 8px}
html[data-homescreens-romm] .r-v2-plat__tabs .r-tab-nav__btn{min-height:50px;padding:0 18px;font-size:13px;font-weight:600}
@media(max-width:1150px){html[data-homescreens-romm] .info-panel.hs-platform-header{grid-template-columns:132px minmax(0,1fr);gap:18px 24px;padding:24px}html[data-homescreens-romm] .hs-platform-header>.info-panel__cover{width:132px;height:146px;padding:16px;border-radius:22px}html[data-homescreens-romm] .hs-platform-header>.info-panel__details{gap:8px 20px}html[data-homescreens-romm] .hs-platform-header .info-panel__stats{flex-direction:column;gap:10px}html[data-homescreens-romm] .hs-platform-header .stat{min-width:120px;padding:14px 16px}html[data-homescreens-romm] .hs-platform-header__logo{height:58px;max-width:310px}}
@media(max-width:800px){html[data-homescreens-romm] .info-panel.hs-platform-header{grid-template-columns:100px minmax(0,1fr);gap:18px;padding:20px;border-radius:22px}html[data-homescreens-romm] .hs-platform-header>.info-panel__cover{width:100px;height:112px;padding:12px;border-radius:20px;align-self:start;margin-top:22px}html[data-homescreens-romm] .hs-platform-header>.info-panel__details{grid-template-columns:minmax(0,1fr);grid-template-areas:"eyebrow" "name" "description" "tags" "stats" "sources" "providers";gap:10px}html[data-homescreens-romm] .hs-platform-header .info-panel__stats{flex-direction:row;flex-wrap:wrap;margin-top:4px}html[data-homescreens-romm] .hs-platform-header .stat{min-width:100px;padding:13px 16px}html[data-homescreens-romm] .hs-platform-header__logo{height:54px}html[data-homescreens-romm] .hs-platform-header__description{font-size:14px}html[data-homescreens-romm] .hs-platform-header>.info-panel__actions{justify-content:flex-start;padding-top:14px}html[data-homescreens-romm] .hs-platform-header .info-panel__actions>.r-btn{padding:0 12px}html[data-homescreens-romm] .hs-platform-header__action-label{font-size:12px}}
@media(max-width:480px){html[data-homescreens-romm] .info-panel.hs-platform-header{grid-template-columns:68px minmax(0,1fr);gap:16px;padding:16px}html[data-homescreens-romm] .hs-platform-header>.info-panel__cover{width:68px;height:80px;border-radius:16px;padding:8px}html[data-homescreens-romm] .hs-platform-header__logo{height:46px}html[data-homescreens-romm] .hs-platform-header .info-panel__stats{gap:8px}html[data-homescreens-romm] .hs-platform-header .stat{min-width:80px;padding:12px}html[data-homescreens-romm] .hs-platform-header .stat__value{font-size:22px}}

html[data-homescreens-romm] .hs-platform-logo{display:block;object-fit:contain;object-position:left center;width:100%;max-width:280px;height:60px;filter:drop-shadow(0 3px 8px #0005);pointer-events:none}
html[data-homescreens-romm] .hs-platform-logo[hidden]{display:none}
html[data-homescreens-romm] .hs-home-platform>.hs-platform-logo{grid-row:3;max-width:236px;height:54px}
html[data-homescreens-romm] .hs-platform-row>.hs-platform-logo{grid-area:name;align-self:center;max-width:300px;height:58px}
html[data-homescreens-romm] .hs-platform-logo-ready>.r-v2-tile__name{display:none!important}
html[data-homescreens-romm] [data-hs-platform="gbc"]>.hs-platform-logo{filter:brightness(1.5) drop-shadow(0 0 1px #ffffff40) drop-shadow(0 3px 8px #0005)}

/* Give every Home shelf an identifiable heading, a clear count and a rule. */
html[data-homescreens-romm] .hs-home-library .card-row__head{gap:14px!important;margin-bottom:14px;min-height:48px;color:var(--hs-text)}
html[data-homescreens-romm] .hs-home-library .card-row__head::after{content:"";height:1px;flex:1;min-width:12px;margin-left:6px;background:linear-gradient(90deg,rgb(var(--hs-accent) / .27),rgb(255 255 255 / .045))}
html[data-homescreens-romm] .hs-home-library .card-row__icon{width:44px;height:44px;box-sizing:border-box;border-radius:14px;opacity:1;background:linear-gradient(140deg,rgb(var(--hs-accent) / .18),rgb(var(--hs-accent) / .055));border:1px solid rgb(var(--hs-accent) / .27);color:rgb(var(--hs-accent));box-shadow:inset 0 1px 0 #ffffff0c}
html[data-homescreens-romm] .hs-home-library .card-row__title{font-size:clamp(23px,2vw,29px);color:var(--hs-text);line-height:1.2;letter-spacing:-.035em}
html[data-homescreens-romm] .hs-home-library .card-row__head>.r-tag{height:27px;box-sizing:border-box;padding:4px 9px;border-radius:8px;font-size:12px;font-weight:600;line-height:18px;flex-shrink:0;background:rgb(var(--hs-accent) / .085);border:1px solid rgb(var(--hs-accent) / .19);color:color-mix(in srgb,var(--hs-text) 76%,var(--hs-bg));gap:4px}
html[data-homescreens-romm] .hs-game-shelf .card-row__head>.r-tag::after,html[data-homescreens-romm] .hs-continue-hero .card-row__head>.r-tag::after{content:"games";font-weight:400;color:var(--hs-muted)}
html[data-homescreens-romm] .hs-home-platforms .card-row__head>.r-tag::after{content:"consoles";font-weight:400;color:var(--hs-muted)}
html[data-homescreens-romm] .hs-continue-hero .card-row__icon{color:var(--hs-bg-deep);background:rgb(var(--hs-accent));border-color:rgb(var(--hs-accent));box-shadow:0 4px 18px rgb(var(--hs-accent) / .15)}

/* Cinematic resume artwork with all native game actions still available. */
html[data-homescreens-romm] .hs-home-library{padding-top:0}
html[data-homescreens-romm] .hs-continue-hero{order:-2;position:relative;scroll-margin-top:80px}
html[data-homescreens-romm] .hs-continue-hero .card-row__head{position:absolute;right:28px;bottom:180px;z-index:4;margin:0;pointer-events:none}
html[data-homescreens-romm] .hs-continue-hero .card-row__head>.card-row__title,
html[data-homescreens-romm] .hs-continue-hero .card-row__head>.card-row__icon,
html[data-homescreens-romm] .hs-continue-hero .card-row__head>.r-tag{display:none}
html[data-homescreens-romm] .hs-continue-hero .card-row__track{padding:0!important;gap:0!important;scroll-padding:0;overflow-y:hidden}
html[data-homescreens-romm] .hs-home-library .hs-resume-card{position:relative;isolation:isolate;display:grid!important;grid-template-areas:"scene";grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:100%;flex-basis:100%;height:calc(100svh - 80px);min-height:620px;max-height:860px;border:0;border-radius:0;padding:0;background:var(--hs-bg-deep);box-shadow:none}
html[data-homescreens-romm] .hs-resume-card>.r-gc__art{grid-area:scene;width:100%;height:100%;border-radius:0;background:var(--hs-bg-deep)}
html[data-homescreens-romm] .hs-resume-card>.r-gc__art>.game-cover__img{width:100%;height:100%;object-fit:cover!important;object-position:65% center}
html[data-homescreens-romm] .hs-resume-card::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(90deg,rgb(3 10 16 / .96) 0%,rgb(3 10 16 / .89) 22%,rgb(3 10 16 / .55) 47%,rgb(3 10 16 / .08) 77%),linear-gradient(0deg,var(--hs-bg-deep),transparent 32%)}
html[data-homescreens-romm] .hs-resume-card__detail{grid-area:scene;position:relative;z-index:2;align-self:center;justify-self:start;width:min(48%,680px);padding:40px clamp(28px,4vw,80px) 100px;gap:18px;box-sizing:content-box;color:#f5f7fc}
html[data-homescreens-romm] .hs-resume-card__eyebrow{font-size:11px;letter-spacing:.2em;color:rgb(var(--hs-console-accent))}
html[data-homescreens-romm] .hs-resume-card__title{font-size:clamp(38px,4.2vw,70px);line-height:1.04;letter-spacing:-.05em;text-wrap:balance;color:#f5f7fc;text-shadow:0 3px 22px #0008}
html[data-homescreens-romm] .hs-resume-card__metadata{font-size:13px;color:#ccd5e2;gap:12px}
html[data-homescreens-romm] .hs-resume-card__console{font-size:13px;border-radius:7px;padding:6px 10px;background:rgb(7 16 25 / .7)}
html[data-homescreens-romm] .hs-resume-card__summary{font-size:15px;line-height:1.65;color:#d0d8e5;max-width:560px}
html[data-homescreens-romm] .hs-resume-card__facts{max-width:540px;border-bottom:0;border-color:#ffffff26;padding:16px 0 4px}
html[data-homescreens-romm] .hs-resume-card__fact>span:first-child,html[data-homescreens-romm] .hs-resume-card__save-hint{color:#b6c3d5}
html[data-homescreens-romm] .hs-resume-card__fact strong{color:#edf2f8}
html[data-homescreens-romm] .hs-resume-card__actions{margin-top:5px}
html[data-homescreens-romm] .hs-resume-card__actions button{min-height:58px;font-size:16px;padding:12px 25px}
html[data-homescreens-romm] .hs-resume-card__details{background:#12202cc9;border-color:#ffffff40;color:#f5f7fc}
html[data-homescreens-romm] .hs-resume-card__image-label{z-index:3;left:auto;right:24px;top:24px;font-size:10px;background:#0710199c;color:#ccd5e2}
html[data-homescreens-romm] .hs-resume-card .cover-art-pip{display:none}
html[data-homescreens-romm] .hs-resume-card .r-gc__platform-icon,html[data-homescreens-romm] .hs-resume-card .r-v2-game-btn--action-status{z-index:3;top:64px}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay{z-index:3}
html[data-homescreens-romm] .hs-resume-card .r-gc__overlay-bottom{left:auto;right:24px;bottom:164px}
html[data-homescreens-romm] .hs-resume-card .card-flags{display:none}
html[data-homescreens-romm] .hs-resume-card:hover,html[data-homescreens-romm] .hs-resume-card:focus-visible{outline:0;box-shadow:none}
.hs-resume-rail{position:absolute;left:0;right:0;bottom:24px;z-index:4;display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;margin:0;padding:0 clamp(24px,4vw,80px);scrollbar-width:none}
.hs-resume-rail__game{position:relative;isolation:isolate;flex:0 0 210px;height:118px;overflow:hidden;padding:0;border:1px solid #ffffff30;border-radius:11px;background:#0a1520;color:#f5f7fc;cursor:pointer;touch-action:manipulation;text-align:left;font-family:var(--r-font-family-sans)}
.hs-resume-rail__game>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hs-resume-rail__game::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#020810f5,transparent 90%);z-index:-1}
.hs-resume-rail__number{position:absolute;left:12px;top:10px;font-size:10px;letter-spacing:.1em;text-shadow:0 2px 5px #000}
.hs-resume-rail__caption{position:absolute;inset:auto 12px 11px;display:flex;flex-direction:column;gap:4px}
.hs-resume-rail__caption strong{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hs-resume-rail__caption>span{font-size:10px;color:#c0ccd9}
.hs-resume-rail__game[aria-pressed=true]{border:2px solid rgb(var(--hs-console-accent,var(--hs-accent)));box-shadow:0 0 0 1px #ffffff20}
.hs-resume-rail__game:hover,.hs-resume-rail__game:focus-visible{outline:3px solid rgb(var(--hs-accent));outline-offset:-3px}

/* Let the franchise artwork and the collection identity share a larger card. */
html[data-homescreens-romm] .r-v2-cidx__grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}
html[data-homescreens-romm] .coll-tile.hs-collection-tile:not(.coll-tile--list){position:relative;display:block;isolation:isolate;overflow:hidden;min-width:0;height:370px;padding:0;border:1px solid rgb(var(--hs-collection-accent) / .3);border-radius:22px;background:var(--hs-bg-deep);box-shadow:0 14px 35px #0003;text-align:left;transition:border-color .18s,box-shadow .18s}
html[data-homescreens-romm] .hs-collection-tile.coll-tile--row{width:280px;flex:0 0 280px}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-tile__cover{position:absolute;inset:0;width:100%;height:100%;z-index:-2;margin:0}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-mosaic{width:100%;height:100%;aspect-ratio:auto!important;border-radius:0!important}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-mosaic img{width:100%;height:100%;object-fit:cover;object-position:center}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list)::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,rgb(3 9 16 / .98) 0%,rgb(3 9 16 / .85) 17%,rgb(3 9 16 / .04) 60%)}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-tile__name{position:absolute;left:22px;right:22px;bottom:70px;color:#fff;font-size:29px;font-weight:600;line-height:1.1;letter-spacing:-.035em;text-wrap:balance;white-space:normal;overflow:visible;display:block;-webkit-line-clamp:unset;max-height:none;text-shadow:0 2px 12px #0007;padding:0;margin:0}
html[data-homescreens-romm] .hs-collection-tile--long:not(.coll-tile--list) .coll-tile__name{font-size:24px}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-tile__count{position:absolute;left:22px;bottom:22px;display:flex;align-items:baseline;gap:7px;padding:6px 11px;border-radius:9px;background:rgb(var(--hs-collection-accent) / .1);border:1px solid rgb(var(--hs-collection-accent) / .35);color:rgb(var(--hs-collection-accent));font-size:12px;line-height:1.1;margin:0}
.hs-collection-tile .coll-tile__count strong{font-size:21px;font-weight:600;letter-spacing:-.04em}
html[data-homescreens-romm] .hs-collection-tile .coll-tile__public{top:14px;right:14px;bottom:auto;background:#09111b99;border:1px solid #ffffff40;width:28px;height:28px}
html[data-homescreens-romm] .hs-collection-tile:hover,html[data-homescreens-romm] .hs-collection-tile:focus-visible{transform:none;border-color:rgb(var(--hs-collection-accent));outline:3px solid rgb(var(--hs-collection-accent));outline-offset:3px;box-shadow:0 18px 45px #0005}
html[data-homescreens-romm] .coll-tile--list.hs-collection-tile .coll-tile__count{display:flex;align-items:baseline;gap:6px}
@media(max-width:900px){html[data-homescreens-romm] .hs-resume-card__detail{width:65%;padding:34px 30px 110px}html[data-homescreens-romm] .hs-resume-card__title{font-size:42px}html[data-homescreens-romm] .hs-resume-card::after{background:linear-gradient(90deg,#030a10ed,#030a1070 85%),linear-gradient(0deg,var(--hs-bg-deep),transparent 40%)}html[data-homescreens-romm] .r-v2-cidx__grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}
@media(max-width:600px){html[data-homescreens-romm] .hs-home-library .hs-resume-card{min-height:660px;max-height:none;height:calc(100svh - 72px)}html[data-homescreens-romm] .hs-resume-card__detail{align-self:end;width:auto;max-width:100%;padding:32px 24px 225px;gap:14px;box-sizing:border-box}html[data-homescreens-romm] .hs-resume-card__title{font-size:35px}html[data-homescreens-romm] .hs-resume-card__summary{-webkit-line-clamp:2;font-size:14px}html[data-homescreens-romm] .hs-resume-card::after{background:linear-gradient(0deg,#030a10fa 8%,#030a10c9 56%,#030a1020 100%)}html[data-homescreens-romm] .hs-resume-card>.r-gc__art>.game-cover__img{object-position:65% top}.hs-resume-rail{padding-left:24px;padding-right:24px;bottom:88px}.hs-resume-rail__game{flex-basis:185px;height:105px}html[data-homescreens-romm] .hs-resume-card .r-gc__overlay-bottom{bottom:auto;top:72px;right:20px}html[data-homescreens-romm] .hs-resume-card .r-gc__platform-icon,html[data-homescreens-romm] .hs-resume-card .r-v2-game-btn--action-status{top:22px}html[data-homescreens-romm] .hs-continue-hero .card-row__head{bottom:160px}html[data-homescreens-romm] .r-v2-cidx__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}html[data-homescreens-romm] .hs-collection-tile.coll-tile--row{width:240px;flex-basis:240px}html[data-homescreens-romm] .coll-tile.hs-collection-tile:not(.coll-tile--list){height:325px}html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-tile__name{left:16px;right:16px;font-size:23px}html[data-homescreens-romm] .hs-collection-tile--long:not(.coll-tile--list) .coll-tile__name{font-size:20px}html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .coll-tile__count{left:16px}}
@media(prefers-reduced-motion:reduce){.hs-collection-tile{transition:none!important}}
@media(max-width:700px){html[data-homescreens-romm] .hs-continue-hero{scroll-margin-top:72px}}

/* Keep artwork still on hover; outlines continue to identify the current tile. */
html[data-homescreens-romm] .r-gc .r-gc__art,
html[data-homescreens-romm] .coll-tile .coll-tile__cover{transform:none!important}
html[data-homescreens-romm],
html[data-homescreens-romm] body,
html[data-homescreens-romm] main,
html[data-homescreens-romm] .card-row__track,
html[data-homescreens-romm] .hs-resume-rail{scrollbar-width:none}
html[data-homescreens-romm]::-webkit-scrollbar,
html[data-homescreens-romm] body::-webkit-scrollbar,
html[data-homescreens-romm] main::-webkit-scrollbar,
html[data-homescreens-romm] .card-row__track::-webkit-scrollbar,
html[data-homescreens-romm] .hs-resume-rail::-webkit-scrollbar{width:0;height:0}

/* A revealed header floats above the player; the game keeps the whole viewport. */
html[data-homescreens-romm][data-hs-player=on]{--r-nav-h:0px;--r-stage-inset:0px}
html[data-homescreens-romm][data-hs-player=on] .r-v2-player__stage-wrap,
html[data-homescreens-romm][data-hs-player=on] .r-v2-stage{inset:0!important}
html[data-homescreens-romm][data-hs-player=on] .r-v2-nav-bar,
html[data-homescreens-romm][data-hs-player=on] .hs-romm-controls--fallback{position:fixed;left:0;right:0;top:0;height:80px;box-sizing:border-box;z-index:2200;transition:opacity .18s,transform .18s,visibility .18s;box-shadow:0 12px 36px #0005}
html[data-homescreens-romm][data-hs-player-chrome=hidden] .r-v2-nav-bar,
html[data-homescreens-romm][data-hs-player-chrome=hidden] .hs-romm-controls--fallback{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-100%)}
html[data-homescreens-romm][data-hs-player-chrome=revealed] .r-v2-nav-bar,
html[data-homescreens-romm][data-hs-player-chrome=revealed] .hs-romm-controls--fallback{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
html[data-homescreens-romm][data-hs-player=on] .r-v2-stage__bar{top:0;transition:top .18s,opacity .3s,visibility .3s}
html[data-homescreens-romm][data-hs-player-chrome=revealed] .r-v2-stage__bar{top:80px}
@media(max-width:700px){html[data-homescreens-romm][data-hs-player=on] .r-v2-nav-bar,html[data-homescreens-romm][data-hs-player=on] .hs-romm-controls--fallback{height:72px}html[data-homescreens-romm][data-hs-player-chrome=revealed] .r-v2-stage__bar{top:72px}}
@media(prefers-reduced-motion:reduce){html[data-homescreens-romm][data-hs-player=on] .r-v2-nav-bar,html[data-homescreens-romm][data-hs-player=on] .hs-romm-controls--fallback{transition:none}}
@media(max-width:680px){html[data-homescreens-romm] .hs-home-library .card-row__head{gap:10px!important}html[data-homescreens-romm] .hs-home-library .card-row__title{font-size:22px}html[data-homescreens-romm] .hs-platform-row>.hs-platform-logo{max-width:100%;height:50px}}
@media(max-width:480px){html[data-homescreens-romm] .hs-home-library .card-row__title{font-size:18px}html[data-homescreens-romm] .hs-home-library .card-row__icon{width:34px;height:34px;border-radius:11px}html[data-homescreens-romm] .hs-home-library .card-row__head>.r-tag::after{display:none}html[data-homescreens-romm] .hs-home-library .card-row__head::after{display:none}}

/* GalleryShell reads this token too: 34px console + 56px title + 2px border
   + its native 18px row gap. Keep virtual offsets and visible cards in sync. */
html[data-homescreens-romm]{--hs-gallery-row-chrome:110px}
html[data-homescreens-romm] .r-v2-shell .hs-gallery-card{
  display:grid!important;grid-template-areas:"art" "console" "title";
  grid-template-rows:var(--r-card-art-h) 34px 56px;gap:0;
  width:calc(var(--r-card-art-h) * var(--hs-gallery-art-ratio,.6667));
  height:calc(var(--r-card-art-h) + 92px);min-height:0;flex:0 0 auto;
  padding:0;border-radius:18px;overflow:hidden;align-items:stretch;
}
html[data-homescreens-romm] .hs-gallery-card>.r-gc__art{
  width:100%!important;height:var(--r-card-art-h);border-radius:16px 16px 0 0;
  outline:none;transform:none!important;box-shadow:none;
}
html[data-homescreens-romm] .hs-gallery-card>.hs-card-console{
  width:0;min-width:100%;height:34px;min-height:0;box-sizing:border-box;padding:4px 8px 0;gap:6px;
  font-size:13px;line-height:15px;font-weight:600;
}
html[data-homescreens-romm] .hs-gallery-card>.hs-card-console img{width:20px;height:20px;flex:none}
html[data-homescreens-romm] .hs-gallery-card>.hs-card-console span{
  min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
html[data-homescreens-romm] .hs-gallery-card>.r-gc__label{
  box-sizing:border-box;width:0;min-width:100%;max-width:100%;height:56px;min-height:0;
  margin:0;padding:6px 10px 10px;font-size:16px;line-height:20px;letter-spacing:-.02em;
}
html[data-homescreens-romm] .hs-gallery-card:focus-within{border-color:rgb(var(--hs-console-accent) / .8)}
/* Fill complete packed rows; short final rows keep sensible card widths.
   Only width changes, so native virtual row offsets remain unchanged. */
html[data-homescreens-romm] .hs-gallery-fill-row .hs-gallery-card{flex-grow:1}
html[data-homescreens-romm][data-input="pad"] .hs-gallery-card.r-gc--focused{
  outline:3px solid rgb(var(--hs-console-accent));outline-offset:2px;
}
html[data-homescreens-romm] .r-v2-shell .game-list-row__platform-name,
html[data-homescreens-romm] .r-v2-shell .r-list-compact__facts{
  color:rgb(var(--hs-console-accent));font-weight:600;font-size:14px;
}
html[data-homescreens-romm] .r-v2-shell .game-list-row__name{font-size:16px}
@media(max-width:680px){
  html[data-homescreens-romm] .hs-gallery-card>.r-gc__label{font-size:14px}
  html[data-homescreens-romm] .hs-gallery-card>.hs-card-console{font-size:12px;line-height:14px}
}

/* Transparent franchise marks sit over the artwork; native names stay accessible. */
.hs-collection-logo{display:none;opacity:0;pointer-events:none;filter:drop-shadow(0 3px 2px #000c) drop-shadow(0 0 12px #0008)}
html[data-homescreens-romm] .hs-collection-tile:not(.coll-tile--list) .hs-collection-logo{
  display:block;position:absolute;left:22px;bottom:73px;width:calc(100% - 44px);height:88px;object-fit:contain;object-position:left bottom;
}
html[data-homescreens-romm] .hs-collection-tile--logo .hs-collection-logo{opacity:1}
html[data-homescreens-romm] .hs-collection-tile--logo .hs-collection-logo--light{filter:brightness(0) invert(1) drop-shadow(0 3px 2px #000c) drop-shadow(0 0 12px #0008)}
html[data-homescreens-romm] .hs-collection-tile--logo:not(.coll-tile--list) .hs-collection-logo--tall{height:102px;max-width:80%}
html[data-homescreens-romm] .hs-collection-tile--logo:not(.coll-tile--list) .coll-tile__name{
  width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
@media(max-width:600px){
  html[data-homescreens-romm] .hs-collection-tile--logo:not(.coll-tile--list) .hs-collection-logo{left:16px;width:calc(100% - 32px);height:76px}
  html[data-homescreens-romm] .hs-collection-tile--logo:not(.coll-tile--list) .hs-collection-logo--tall{height:90px}
}

/* Hardware dates belong with the identity, independently of library counts. */
html[data-homescreens-romm],html[data-homescreens-romm] *{scrollbar-width:none}
html[data-homescreens-romm]::-webkit-scrollbar,html[data-homescreens-romm] *::-webkit-scrollbar{width:0;height:0}
html[data-homescreens-romm] .hs-platform-rows .hs-platform-row{grid-template-rows:auto auto auto 1fr auto;grid-template-areas:"icon eyebrow eyebrow" "icon name name" "icon years years" "description description description" "count status cta"}
.hs-platform-row__years{grid-area:years;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:600;letter-spacing:.06em;color:var(--hs-text)}
.hs-platform-row__years::before,.hs-platform-header__years::before{content:"HARDWARE ERA";font-size:9px;font-weight:600;letter-spacing:.12em;color:rgb(var(--hs-platform-accent))}
html[data-homescreens-romm] .hs-home-platform{grid-template-rows:100px auto auto auto 1fr auto}
html[data-homescreens-romm] .hs-home-platform__years{grid-row:4;color:var(--hs-muted);font-size:13px;letter-spacing:.04em}
html[data-homescreens-romm] .hs-home-platform .r-v2-tile__count{grid-row:5}
html[data-homescreens-romm] .hs-home-platform__cta{grid-row:6}
.hs-platform-header__years{display:flex;gap:10px;align-items:center;border:1px solid rgb(var(--hs-platform-accent) / .2);background:rgb(var(--hs-platform-accent) / .07);padding:5px 10px;border-radius:12px;color:var(--hs-text);font-size:12px}
@media(max-width:1100px) and (min-width:681px){html[data-homescreens-romm] .hs-platform-rows .hs-platform-row{grid-template-areas:"icon eyebrow count" "icon name count" "icon years status" "icon description cta";grid-template-rows:auto auto auto auto}}
@media(max-width:680px){html[data-homescreens-romm] .hs-platform-rows .hs-platform-row{grid-template-areas:"icon eyebrow" "icon name" "years years" "description description" "count count" "status cta";grid-template-rows:auto auto auto auto auto auto}.hs-platform-row__years{font-size:13px}}

/* Collection facts are separate from the filtered, virtualized game gallery. */
html[data-homescreens-romm] .info-panel.hs-collection-header{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:start;gap:24px;padding:30px;border:1px solid #82dbe830;border-radius:26px;background:var(--hs-bg-deep);box-shadow:inset 0 1px 0 #ffffff0a,0 14px 32px #0003;margin-bottom:22px}
.hs-collection-header__backdrop{position:absolute;inset:0 0 0 auto;width:66%;height:100%;object-fit:cover;object-position:center 35%;z-index:-2;opacity:.48;pointer-events:none}
.hs-collection-header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,var(--hs-bg-deep) 15%,color-mix(in srgb,var(--hs-bg-deep) 92%,transparent) 44%,color-mix(in srgb,var(--hs-bg-deep) 55%,transparent)),linear-gradient(0deg,var(--hs-bg-deep),transparent 75%)}
html[data-homescreens-romm] .hs-collection-header>.info-panel__cover{width:150px;align-self:center;border-radius:20px;overflow:hidden;box-shadow:0 12px 28px #0006;border:1px solid #ffffff20}
html[data-homescreens-romm] .hs-collection-header .r-v2-coll__panel-cover{width:100%;height:auto}
html[data-homescreens-romm] .hs-collection-header>.info-panel__details{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;max-width:1050px}
html[data-homescreens-romm] .hs-collection-header .info-panel__eyebrow{order:0;margin:0;color:var(--hs-accent);font-size:10px;letter-spacing:.16em}
html[data-homescreens-romm] .hs-collection-header .info-panel__title{order:1;margin:0;font-size:36px;line-height:1.2}
.hs-collection-header__logo{order:1;width:min(370px,100%);height:74px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 3px #000a)}
.hs-collection-header__logo--light{filter:brightness(0) invert(1) drop-shadow(0 3px 3px #000a)}
.hs-collection-header__logo--tall{height:96px}
html[data-homescreens-romm] .hs-collection-header--logo .info-panel__title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-homescreens-romm] .hs-collection-header .info-panel__tags{order:2;margin:0;max-width:78ch}
html[data-homescreens-romm] .hs-collection-header .info-panel__tags>.r-chip{display:block;height:auto!important;min-height:0;padding:0;background:none;border:0;border-radius:0!important;color:var(--hs-muted);font-size:14px;line-height:1.6;white-space:normal;text-align:left}
html[data-homescreens-romm] .hs-collection-header .info-panel__tags .r-chip__content{white-space:normal}
html[data-homescreens-romm] .hs-collection-header .info-panel__stats{order:3;display:flex;gap:18px;align-items:center;margin:0}
html[data-homescreens-romm] .hs-collection-header .stat{display:flex;gap:9px;align-items:baseline}
html[data-homescreens-romm] .hs-collection-header .stat__value{font-size:27px;line-height:1.2;color:var(--hs-text)}
html[data-homescreens-romm] .hs-collection-header .stat__label{font-size:10px;letter-spacing:.12em;color:var(--hs-muted)}
.hs-collection-header__facts{order:4;width:100%;display:flex;flex-direction:column;gap:18px}
.hs-collection-header__genres{display:flex;flex-wrap:wrap;gap:7px}
.hs-collection-header__genre{font-size:12px;line-height:1.4;padding:5px 10px;border-radius:9px;border:1px solid #83daea35;background:#83daea0c;color:var(--hs-text)}
.hs-collection-header__section-label{display:block;color:var(--hs-muted);font-size:9px;letter-spacing:.13em;font-weight:600;margin-bottom:9px}
.hs-collection-header__console-list{display:flex;flex-wrap:wrap;gap:8px}
.hs-collection-header__console{display:flex;align-items:center;gap:7px;min-height:42px;padding:6px 10px;color:rgb(var(--hs-console-accent));background:color-mix(in srgb,var(--hs-bg-deep) 87%,transparent);border:1px solid rgb(var(--hs-console-accent) / .3);border-radius:11px;text-decoration:none;box-sizing:border-box;font-size:12px;font-weight:600;touch-action:manipulation}
.hs-collection-header__console img{width:23px;height:23px;object-fit:contain}
.hs-collection-header__console strong{font-size:11px;font-weight:600;color:var(--hs-text);background:#ffffff0c;border-radius:6px;padding:3px 5px;margin-left:2px}
.hs-collection-header__console:hover{border-color:rgb(var(--hs-console-accent));background:rgb(var(--hs-console-accent) / .12)}
.hs-collection-header__console:focus-visible{outline:2px solid rgb(var(--hs-console-accent));outline-offset:3px}
html[data-homescreens-romm] .hs-collection-header>.info-panel__actions{position:static;align-self:start;display:flex;flex-direction:column;gap:10px;margin:0}
html[data-homescreens-romm] .hs-collection-header .info-panel__actions>button{width:auto!important;height:44px!important;min-width:44px;padding:0 13px;border-radius:12px!important;background:#ffffff08;border-color:#ffffff26;color:var(--hs-text)}
.hs-collection-header__action-label{font-size:12px;font-weight:600;margin-left:8px;white-space:nowrap}
@media(max-width:1100px){html[data-homescreens-romm] .info-panel.hs-collection-header{grid-template-columns:118px minmax(0,1fr);padding:24px;gap:20px}html[data-homescreens-romm] .hs-collection-header>.info-panel__cover{width:118px}html[data-homescreens-romm] .hs-collection-header>.info-panel__actions{grid-column:2;flex-direction:row}.hs-collection-header__logo{height:64px}}
@media(max-width:600px){html[data-homescreens-romm] .info-panel.hs-collection-header{grid-template-columns:minmax(0,1fr);padding:22px;gap:16px;border-radius:22px}html[data-homescreens-romm] .hs-collection-header>.info-panel__cover{display:none}html[data-homescreens-romm] .hs-collection-header>.info-panel__actions{grid-column:1}.hs-collection-header__backdrop{width:100%;opacity:.34}.hs-collection-header__logo{height:62px}.hs-collection-header__console{font-size:12px}.hs-collection-header::before{background:linear-gradient(90deg,color-mix(in srgb,var(--hs-bg-deep) 88%,transparent),color-mix(in srgb,var(--hs-bg-deep) 70%,transparent))}}
