:root {
  --color-sandy-desk:#e1d7c2;
  --color-paper-white:#fff;
  --color-cream-paper:#fdfdf8;
  --color-soft-linen:#eeefe9;
  --color-pale-stone:#e5e7e0;
  --color-deep-moss:#23251d;
  --color-olive-char:#4d4f46;
  --color-sage-gray:#65675e;
  --color-ash-green:#9ea096;
  --color-faded-pewter:#b3b3af;
  --color-warm-mist:#bfc1b7;
  --color-pure-black:#000;
  --color-signal-blue:#2f80fa;
  --gradient-signal-blue:linear-gradient(90deg,rgb(1,67,203),rgb(43,111,244) 24.04%,rgb(210,52,1) 46.63%,rgb(255,101,31) 65.87%,rgb(251,160,0) 83.17%,rgb(1,67,203));
  --color-amber-glow:#eb9d2a;
  --color-dark-amber:#cd8407;
  --color-burnished-gold:#b17816;
  --color-marigold:#f1a82c;
  --color-flame-orange:#f54e00;
  --color-moss-green:#6aa84f;
  --font-open-runde:'Open Runde','Inter Tight','DM Sans',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-ibm-plex-sans-variable:'IBM Plex Sans Variable','IBM Plex Sans',Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-ui-monospace:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  --text-micro:12px;
  --text-caption:14px;
  --text-body:16px;
  --text-subheading:19px;
  --text-heading:21px;
  --text-heading-lg:24px;
  --text-display:36px;
  --spacing-4:4px;
  --spacing-6:6px;
  --spacing-8:8px;
  --spacing-10:10px;
  --spacing-12:12px;
  --spacing-14:14px;
  --spacing-16:16px;
  --spacing-20:20px;
  --spacing-24:24px;
  --spacing-32:32px;
  --spacing-64:64px;
  --page-max-width:958px;
  --radius-md:4px;
  --radius-lg:8px;
  --radius-window:6px;
  --radius-full:9999px;
  --shadow-xl:rgba(0,0,0,.25) 0 25px 50px -12px;
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--color-sandy-desk);color:var(--color-deep-moss);font-family:var(--font-open-runde);scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:
  radial-gradient(circle at 20px 20px,rgba(35,37,29,.045) 1px,transparent 1.25px) 0 0/22px 22px,
  var(--color-sandy-desk);color:var(--color-deep-moss);font-family:var(--font-open-runde);font-size:15px;line-height:1.5;padding:62px 22px 28px 116px}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
img,video,iframe{max-width:100%}
figure{margin:0}
ul,ol{margin:0;padding:0}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{letter-spacing:-.025em;color:var(--color-deep-moss)}
h1{font-size:clamp(28px,3.7vw,36px);line-height:1.15;font-weight:800}
h2{font-size:24px;line-height:1.33;font-weight:700}
h3{font-size:19px;line-height:1.35;font-weight:700}
p{font-size:15px;line-height:1.55;color:var(--color-olive-char)}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Global workspace shell */
.aehea-site-header{position:relative;z-index:70}
.aehea-topbar{position:fixed;z-index:80;left:0;right:0;top:0;height:52px;padding:0 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;background:rgba(225,215,194,.93);backdrop-filter:blur(10px);border-bottom:1px solid rgba(77,79,70,.22)}
.aehea-top-brand{display:flex;align-items:center;gap:9px;min-width:0}
.aehea-top-logo{display:block;width:46px;height:34px;overflow:hidden}
.aehea-top-logo .aehea-logo{display:block;width:100%;height:100%}
.aehea-top-logo img{display:block;width:100%;height:100%;object-fit:contain}
.aehea-top-brand-copy{display:grid;line-height:1.05}
.aehea-top-brand-copy strong{font-family:var(--font-ibm-plex-sans-variable);font-size:13px;font-weight:700;letter-spacing:.04em}
.aehea-top-brand-copy small{font-family:var(--font-ui-monospace);font-size:10px;color:var(--color-sage-gray);margin-top:3px}
.aehea-topnav{display:flex;align-items:center;gap:4px;min-width:0}
.aehea-topnav a{position:relative;padding:6px 8px;border-radius:4px;font-family:var(--font-ibm-plex-sans-variable);font-size:13px;font-weight:500;color:var(--color-olive-char);transition:.15s ease}
.aehea-topnav a:hover{background:rgba(255,255,255,.35);color:var(--color-deep-moss)}
.aehea-topnav a[aria-current="page"]{color:var(--color-deep-moss)}
.aehea-topnav a[aria-current="page"]::after{content:"";position:absolute;left:8px;right:8px;bottom:1px;height:1px;background:var(--color-deep-moss)}
.aehea-top-actions{display:flex;align-items:center;gap:7px}
.aehea-search{display:flex;align-items:center;width:224px;height:34px;padding:0 8px;background:var(--color-cream-paper);border:1px solid var(--color-warm-mist);border-radius:4px;color:var(--color-sage-gray)}
.aehea-search>span{font-size:16px;line-height:1;margin-right:5px}
.aehea-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--color-deep-moss);font-family:var(--font-ibm-plex-sans-variable);font-size:13px}
.aehea-search input::placeholder{color:var(--color-ash-green)}
.aehea-search kbd{min-width:17px;height:18px;display:grid;place-items:center;border:1px solid var(--color-faded-pewter);border-radius:3px;background:var(--color-soft-linen);font:10px/1 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-language{position:relative}
.aehea-language-toggle{height:34px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid transparent;background:transparent;border-radius:4px;color:var(--color-olive-char);font-family:var(--font-ibm-plex-sans-variable);font-size:13px;font-weight:500;cursor:pointer}
.aehea-language-toggle:hover,.aehea-language.is-open .aehea-language-toggle{background:rgba(255,255,255,.4);border-color:var(--color-warm-mist)}
.aehea-language-toggle b{font-weight:400;color:var(--color-sage-gray)}
.aehea-language-menu{position:absolute;right:0;top:40px;width:190px;max-height:360px;overflow:auto;display:none;padding:5px;background:var(--color-paper-white);border:1px solid var(--color-warm-mist);border-radius:6px;box-shadow:var(--shadow-xl)}
.aehea-language.is-open .aehea-language-menu{display:grid}
.aehea-language-menu button{appearance:none;border:0;background:transparent;text-align:left;padding:7px 9px;border-radius:4px;color:var(--color-olive-char);font-family:var(--font-ibm-plex-sans-variable);font-size:13px;cursor:pointer}
.aehea-language-menu button:hover,.aehea-language-menu button[aria-selected="true"]{background:var(--color-pale-stone);color:var(--color-deep-moss)}
.aehea-amber-button,.aehea-outline-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 12px;border-radius:4px;font-family:var(--font-ibm-plex-sans-variable);font-size:14px;font-weight:600;transition:.15s ease}
.aehea-amber-button{background:var(--color-amber-glow);color:var(--color-deep-moss);border:1px solid var(--color-dark-amber)}
.aehea-amber-button:hover{background:var(--color-dark-amber)}
.aehea-outline-button{background:transparent;color:var(--color-burnished-gold);border:1px solid var(--color-burnished-gold)}
.aehea-outline-button:hover{background:rgba(235,157,42,.08)}
.aehea-text-link{color:var(--color-burnished-gold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.aehea-filedock{position:fixed;z-index:65;left:14px;top:70px;width:78px;display:grid;gap:5px;padding:7px;background:rgba(253,253,248,.62);border:1px solid rgba(191,193,183,.9);border-radius:6px;backdrop-filter:blur(8px)}
.aehea-filedock a{display:grid;place-items:center;gap:5px;min-height:67px;padding:7px 4px;border-radius:4px;color:var(--color-olive-char);font-family:var(--font-ibm-plex-sans-variable);font-size:11px;font-weight:500;transition:.15s ease}
.aehea-filedock a:hover,.aehea-filedock a[aria-current="page"]{background:var(--color-pale-stone);color:var(--color-deep-moss)}
.aehea-filedock a[aria-current="page"] .aehea-dock-icon{color:var(--color-signal-blue)}
.aehea-dock-icon{font:24px/1 var(--font-open-runde);height:25px;display:grid;place-items:center;color:var(--color-olive-char)}
.aehea-filedock small{font-size:10px;line-height:1.1}

.container{width:min(var(--page-max-width),calc(100vw - 154px));margin:0 auto}
.aehea-app-window{position:relative;background:var(--color-paper-white);border:1px solid var(--color-warm-mist);border-radius:6px;overflow:hidden}
.aehea-window-titlebar{height:36px;padding:0 11px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--color-warm-mist);backdrop-filter:blur(8px)}
.aehea-window-file{display:flex;align-items:center;gap:7px;min-width:0;font-family:var(--font-ibm-plex-sans-variable);font-size:12px;color:var(--color-olive-char)}
.aehea-window-file strong{font-weight:600;color:var(--color-deep-moss);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aehea-window-file small{padding-left:7px;border-left:1px solid var(--color-faded-pewter);color:var(--color-sage-gray);white-space:nowrap}
.aehea-file-glyph{font-size:13px;color:var(--color-signal-blue)}
.aehea-window-controls{display:flex;align-items:center;gap:7px}
.aehea-window-controls span{width:9px;height:9px;border-radius:50%;border:1px solid rgba(35,37,29,.28);background:var(--color-soft-linen)}
.aehea-window-controls span:nth-child(1){background:var(--color-moss-green)}
.aehea-window-controls span:nth-child(2){background:var(--color-marigold)}
.aehea-window-controls span:nth-child(3){background:var(--color-flame-orange)}
.aehea-window-toolbar{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 13px;background:var(--color-soft-linen);border-bottom:1px solid var(--color-warm-mist);font-family:var(--font-ibm-plex-sans-variable)}
.aehea-tabs{display:flex;align-items:end;gap:3px;align-self:stretch}
.aehea-tabs a,.aehea-tabs span{display:flex;align-items:center;padding:0 10px;height:100%;border-bottom:2px solid transparent;color:var(--color-sage-gray);font-size:13px;font-weight:500}
.aehea-tabs a:hover{color:var(--color-deep-moss)}
.aehea-tabs a[aria-current="page"],.aehea-tabs span[aria-current="page"]{background:var(--color-paper-white);color:var(--color-signal-blue);border-bottom-color:var(--color-signal-blue)}
.aehea-toolbar-count{font:12px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray);white-space:nowrap}
.aehea-window-body{padding:24px 28px 30px}
.aehea-eyebrow{display:block;margin-bottom:7px;font:12px/1.35 var(--font-ui-monospace);color:var(--color-sage-gray)}

/* Homepage dashboard */
.aehea-home-dashboard{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(250px,.82fr);gap:20px;padding:2px 0 18px;border-bottom:1px solid var(--color-warm-mist);align-items:start}
.aehea-home-copy h1{max-width:520px;margin:0 0 8px;font-size:clamp(28px,3.25vw,36px);line-height:1.04;font-weight:800;letter-spacing:-.032em}
.aehea-home-copy p{max-width:570px;margin:0 0 13px;font-size:14px;line-height:1.48}
.aehea-home-actions{display:flex;gap:7px;flex-wrap:wrap}.aehea-home-actions .aehea-amber-button,.aehea-home-actions .aehea-outline-button{min-height:32px;padding:5px 11px;font-size:13px}
.aehea-home-widgets{display:grid;gap:6px}
.aehea-home-widgets a{display:grid;grid-template-columns:28px 1fr;grid-template-areas:"n t" "n s";column-gap:8px;align-items:center;min-height:62px;padding:8px 10px;background:var(--color-cream-paper);border:1px solid var(--color-warm-mist);border-radius:4px;transition:.15s ease}
.aehea-home-widgets a:hover{background:var(--color-soft-linen)}
.aehea-home-widgets span{grid-area:n;display:grid;place-items:center;width:26px;height:26px;border-radius:4px;background:var(--color-pale-stone);font:10px/1 var(--font-ui-monospace);color:var(--color-signal-blue)}
.aehea-home-widgets strong{grid-area:t;font-size:13px;line-height:1.2;font-weight:700}
.aehea-home-widgets small{grid-area:s;font-size:11px;line-height:1.25;color:var(--color-sage-gray)}

/* Listing + game grid */
.aehea-listing-head,.aehea-directory-head,.aehea-favorites-head,.aehea-news-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:2px 0 14px}
.aehea-listing-head>div:first-child,.aehea-directory-head>div:first-child,.aehea-favorites-head>div:first-child{max-width:650px}
.aehea-listing-head h1,.aehea-directory-head h1,.aehea-favorites-head h1,.aehea-news-hero h1{margin-bottom:6px;font-size:30px;line-height:1.08}
.aehea-listing-head p,.aehea-directory-head p,.aehea-favorites-head p,.aehea-news-hero p{margin:0;font-size:14px;line-height:1.45}
.aehea-listing-counter{display:grid;justify-items:end;line-height:1}
.aehea-listing-counter strong{font-size:25px;font-weight:800;letter-spacing:-.04em}
.aehea-listing-counter span{margin-top:5px;font:12px/1 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-category-dashboard{display:grid;grid-template-columns:1.22fr .78fr;gap:18px;align-items:stretch;padding-bottom:16px;border-bottom:1px solid var(--color-warm-mist)}
.aehea-category-dashboard>div{padding:4px 0 2px}
.aehea-category-dashboard h1{margin:0 0 6px;font-size:30px;line-height:1.08}
.aehea-category-dashboard p{margin:0 0 12px;font-size:14px;line-height:1.45}
.aehea-category-dashboard figure{position:relative;overflow:hidden;min-height:150px;border:1px solid var(--color-warm-mist);border-radius:4px;background:var(--color-soft-linen)}
.aehea-category-dashboard img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.88) contrast(.97)}
.aehea-category-dashboard figcaption{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:baseline;gap:7px;width:max-content;max-width:calc(100% - 16px);padding:5px 8px;background:rgba(253,253,248,.92);border:1px solid var(--color-warm-mist);border-radius:4px;font:12px/1.2 var(--font-ui-monospace);color:var(--color-olive-char)}
.aehea-category-dashboard figcaption span{font-weight:700;color:var(--color-deep-moss)}
.aehea-search-notice{padding:9px 10px;margin:14px 0;background:var(--color-soft-linen);border-left:3px solid var(--color-signal-blue);border-radius:0 4px 4px 0;color:var(--color-olive-char)}
.aehea-grid-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 9px;padding-bottom:8px;border-bottom:1px solid var(--color-warm-mist);font-family:var(--font-ibm-plex-sans-variable)}
.aehea-grid-heading>div{display:flex;align-items:center;gap:7px}
.aehea-grid-heading strong{font-size:13px;font-weight:600}
.aehea-grid-heading small{font:11px/1 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-grid-dot{width:7px;height:7px;border-radius:50%;background:var(--color-moss-green);box-shadow:0 0 0 2px rgba(106,168,79,.16)}
#items_container.aehea-game-grid,.aehea-related #items_container{list-style:none;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin:0;padding:0}
#items_container.aehea-game-grid>.aehea-game-card,.aehea-related #items_container>.aehea-game-card{grid-column:span 3}
.aehea-game-card{min-width:0;background:var(--color-paper-white);border:1px solid var(--color-warm-mist);border-radius:4px;overflow:hidden;transition:.15s ease}
.aehea-game-card:hover{background:var(--color-soft-linen);border-color:var(--color-ash-green)}
.aehea-game-card>a{display:block;color:inherit}
.thumb-img-container{position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;background:var(--color-pale-stone);border-bottom:1px solid var(--color-warm-mist)}
.thumb-img-container img.thumb,.thumb-img-container video,.thumb-img-container iframe,.pog-favorite-art img{display:block;width:100%;height:100%;object-fit:cover;border:0}
.thumb-img-container .pog-hover-preview,.thumb-img-container .pog-mobile-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
.aehea-card-open{position:absolute;right:6px;top:6px;z-index:4;display:grid;place-items:center;width:24px;height:24px;background:rgba(253,253,248,.9);border:1px solid rgba(191,193,183,.9);border-radius:4px;color:var(--color-deep-moss);opacity:0;transform:translateY(-2px);transition:.15s ease}
.aehea-game-card:hover .aehea-card-open,.aehea-game-card:focus-within .aehea-card-open{opacity:1;transform:none}
.item-name{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:9px 9px 10px}
.item-name>span:first-child{min-width:0;display:grid;gap:3px}
.game-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.25;font-weight:700}
.item-name small{font:10px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray);text-transform:uppercase}
.aehea-card-index{font:10px/1.2 var(--font-ui-monospace);color:var(--color-ash-green);padding-top:2px}
.aehea-game-card>a:focus-visible{outline:2px solid var(--color-signal-blue);outline-offset:-2px}
.pog-mobile-fill-card{display:none}
.aehea-category-note{display:flex;gap:12px;margin-top:24px;padding:15px;background:var(--color-soft-linen);border:1px solid var(--color-warm-mist);border-radius:4px}
.aehea-category-note h2{margin:0 0 4px;font-size:18px}
.aehea-category-note p{margin:0;font-size:14px}
.aehea-note-pin{flex:0 0 auto;color:var(--color-flame-orange);font-size:11px;padding-top:4px}

/* Pagination */
.pog-pagination{margin:24px 0 0;padding-top:14px;border-top:1px solid var(--color-warm-mist)}
.pog-pagination ol{list-style:none;display:flex;align-items:center;justify-content:center;gap:4px}
.pog-pagination a,.pog-pagination span{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border:1px solid transparent;border-radius:4px;font-family:var(--font-ibm-plex-sans-variable);font-size:12px;color:var(--color-sage-gray)}
.pog-pagination a:hover{background:var(--color-pale-stone);color:var(--color-deep-moss)}
.pog-pagination .current{background:var(--color-paper-white);color:var(--color-signal-blue);border-color:var(--color-signal-blue)}
.pog-mobile-pagination{display:none}

/* Category file browser */
.aehea-directory-key{display:grid;gap:5px;padding-top:5px;font:11px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-directory-key span{display:flex;align-items:center;gap:6px}
.aehea-directory-key i{width:7px;height:7px;border-radius:50%;background:var(--color-ash-green)}
.aehea-directory-key .is-blue{background:var(--color-signal-blue)}
.aehea-directory-key .is-amber{background:var(--color-amber-glow)}
.aehea-category-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.aehea-category-tile{position:relative;display:grid;grid-template-columns:112px 1fr auto;gap:12px;align-items:center;min-height:86px;padding:8px;background:var(--color-cream-paper);border:1px solid var(--color-warm-mist);border-radius:4px;transition:.15s ease}
.aehea-category-tile:hover{background:var(--color-soft-linen);border-color:var(--color-ash-green)}
.aehea-category-tile figure{height:68px;border:1px solid var(--color-faded-pewter);border-radius:3px;overflow:hidden;background:var(--color-pale-stone)}
.aehea-category-tile img{display:block;width:100%;height:100%;object-fit:cover}
.aehea-category-tile>div{min-width:0;display:grid;grid-template-columns:20px 1fr;grid-template-areas:"icon title" "icon meta";column-gap:7px;align-items:center}
.aehea-folder-glyph{grid-area:icon;position:relative;width:18px;height:13px;border:1px solid var(--color-burnished-gold);border-radius:2px;background:rgba(235,157,42,.1)}
.aehea-folder-glyph::before{content:"";position:absolute;left:1px;top:-5px;width:8px;height:4px;border:1px solid var(--color-burnished-gold);border-bottom:0;border-radius:2px 2px 0 0;background:var(--color-cream-paper)}
.aehea-category-tile strong{grid-area:title;min-width:0;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aehea-category-tile small{grid-area:meta;font:11px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-category-tile>b{font-weight:400;color:var(--color-ash-green)}

/* Game application */
.aehea-game-toolbar{padding-right:8px}
.aehea-breadcrumbs{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:var(--color-sage-gray)}
.aehea-breadcrumbs a{color:var(--color-olive-char)}
.aehea-breadcrumbs a:hover{color:var(--color-signal-blue)}
.aehea-game-toolbar-actions{display:flex;gap:4px}
.pog-player-action{appearance:none;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 8px;border:1px solid var(--color-warm-mist);background:var(--color-paper-white);border-radius:4px;color:var(--color-olive-char);font-family:var(--font-ibm-plex-sans-variable);font-size:12px;cursor:pointer}
.pog-player-action:hover,.pog-player-action.is-active{background:var(--color-pale-stone);color:var(--color-deep-moss)}
.pog-player-action.is-active{border-color:var(--color-signal-blue);color:var(--color-signal-blue)}
.pog-player-action strong{font-weight:600}
.aehea-game-window-body{padding-top:16px}
.aehea-game-workbench{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(245px,.7fr);gap:12px;align-items:stretch}
.aehea-player-pane{min-width:0;border:1px solid var(--color-warm-mist);border-radius:4px;overflow:hidden;background:var(--color-cream-paper)}
.aehea-pane-label{height:32px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 9px;background:var(--color-soft-linen);border-bottom:1px solid var(--color-warm-mist);font:11px/1 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-pane-label>span{display:flex;align-items:center;gap:6px}
.aehea-pane-label i{width:7px;height:7px;border-radius:50%;background:var(--color-moss-green)}
.pog-game-spotlight{min-width:0;background:#111}
.pog-game-visual{position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;background:#111}
.pog-game-visual>img{display:block;width:100%;height:100%;object-fit:cover}
/* Functional game iframe layer. Keep these mechanics independent of the visual theme. */
.pog-game-visual>img{transition:opacity .18s ease,filter .18s ease}
.pog-game-visual.is-loading>img{opacity:.58;filter:brightness(.72)}
.pog-game-visual.is-playing>img{opacity:0;pointer-events:none}
.pog-game-frame{position:absolute!important;z-index:4!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:#000!important;opacity:0;pointer-events:none;transform:none!important;transition:opacity .18s ease}
.pog-game-visual.is-playing>.pog-game-frame{opacity:1;pointer-events:auto}
.pog-game-visual.is-loading::after{content:"loading game";position:absolute;z-index:6;left:10px;bottom:10px;padding:5px 8px;border:1px solid var(--color-warm-mist);border-radius:4px;background:rgba(253,253,248,.92);color:var(--color-olive-char);font:11px/1 var(--font-ui-monospace);pointer-events:none}
.pog-game-visual.is-playing::after{display:none}
.pog-game-visual.pog-player-fullscreen-active,.pog-game-visual.pog-player-fullscreen-active:fullscreen,.pog-game-visual.pog-player-fullscreen-active:-webkit-full-screen{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;aspect-ratio:auto!important;background:#000!important}
.pog-game-visual.pog-player-fullscreen-active>.pog-game-frame{top:50%!important;left:50%!important;transform:translate(-50%,-50%) scale(var(--pog-game-frame-scale,1))!important}
.pog-mobile-enter,.pog-mobile-exit{appearance:none;position:absolute;z-index:12;display:none;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(255,255,255,.28);background:rgba(17,17,17,.78);color:#fff;border-radius:4px;font:11px/1 var(--font-ibm-plex-sans-variable);font-weight:600;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.pog-mobile-enter{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));min-height:32px;padding:0 9px}
.pog-mobile-exit{left:max(8px,env(safe-area-inset-left));top:max(8px,env(safe-area-inset-top));min-height:32px;padding:0 9px}
.pog-game-visual.is-playing>.pog-mobile-enter{display:inline-flex}
html.pog-mobile-page-immersive,body.pog-mobile-page-immersive{overflow:hidden!important;overscroll-behavior:none!important;background:#000!important}
.pog-game-visual.pog-mobile-immersive{position:fixed!important;z-index:2147483000!important;inset:0!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;margin:0!important;aspect-ratio:auto!important;background:#000!important;border-radius:0!important}
.pog-game-visual.pog-mobile-immersive>.pog-mobile-enter{display:none!important}
.pog-game-visual.pog-mobile-immersive>.pog-mobile-exit{display:inline-flex}
.pog-game-visual.pog-mobile-immersive>.pog-game-frame,.pog-game-visual.pog-player-fullscreen-active>.pog-game-frame{inset:0!important;width:100%!important;height:100%!important;transform:none!important}
.pog-game-launch{position:absolute;right:10px;bottom:10px;z-index:5;display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--color-dark-amber);background:var(--color-amber-glow);color:var(--color-deep-moss);border-radius:4px;font-family:var(--font-ibm-plex-sans-variable);font-size:13px;font-weight:600}
.aehea-game-inspector{padding:17px;background:var(--color-soft-linen);border:1px solid var(--color-warm-mist);border-radius:4px}
.aehea-game-inspector h1{margin:0 0 8px;font-size:27px;line-height:1.08}
.aehea-game-inspector>p{margin-bottom:12px;font-size:14px}
.aehea-category-chip{display:inline-flex;margin-bottom:14px;padding:3px 8px;border-radius:999px;background:var(--color-flame-orange);color:white;font:11px/1.4 var(--font-ibm-plex-sans-variable);font-weight:600}
.aehea-game-meta{margin:0 0 15px;border-top:1px solid var(--color-warm-mist)}
.aehea-game-meta>div{display:grid;grid-template-columns:82px 1fr;gap:8px;padding:7px 0;border-bottom:1px solid var(--color-warm-mist)}
.aehea-game-meta dt,.aehea-game-meta dd{margin:0;font-size:12px;line-height:1.3}
.aehea-game-meta dt{font-family:var(--font-ibm-plex-sans-variable);color:var(--color-sage-gray)}
.aehea-game-meta dd{font-family:var(--font-ui-monospace);color:var(--color-deep-moss);overflow-wrap:anywhere}
.aehea-play-button{width:100%;min-height:38px;text-align:center}
.aehea-content-tabs{height:42px;display:flex;align-items:end;gap:2px;margin-top:18px;border-bottom:1px solid var(--color-warm-mist)}
.aehea-content-tabs span{height:42px;display:flex;align-items:center;padding:0 12px;border-bottom:2px solid transparent;font-family:var(--font-ibm-plex-sans-variable);font-size:13px;font-weight:500;color:var(--color-sage-gray)}
.aehea-content-tabs span[aria-current="page"]{color:var(--color-signal-blue);border-bottom-color:var(--color-signal-blue);background:var(--color-paper-white)}
.aehea-game-document{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(235px,.6fr);gap:28px;padding:24px 0 8px}
.aehea-prose h2{margin:0 0 12px}
.aehea-prose h3{margin:22px 0 8px}
.aehea-prose p{margin:0 0 11px}
.aehea-gameplay-preview{margin:20px 0 0;border:1px solid var(--color-warm-mist);border-radius:4px;overflow:hidden;background:var(--color-soft-linen)}
.aehea-gameplay-preview video{display:block;width:100%;background:#111}
.aehea-gameplay-preview figcaption{padding:6px 8px;font:11px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-controls{padding:14px;background:var(--color-cream-paper);border:1px solid var(--color-warm-mist);border-radius:4px}
.aehea-controls h2{margin:0 0 11px;font-size:18px}
.aehea-controls ul{list-style:none;display:grid;gap:7px}
.aehea-controls li{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:center;padding-bottom:7px;border-bottom:1px solid var(--color-pale-stone)}
.aehea-controls kbd{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:24px;padding:2px 6px;background:var(--color-soft-linen);border:1px solid var(--color-faded-pewter);border-bottom-width:2px;border-radius:4px;font:11px/1 var(--font-ui-monospace);color:var(--color-deep-moss)}
.aehea-controls li span{font-size:12px;color:var(--color-olive-char)}
.pog-game-tags{margin-top:18px;padding-top:12px;border-top:1px solid var(--color-warm-mist)}
.pog-game-tags>strong{display:block;margin-bottom:8px;font-size:12px}
.pog-game-tags>div{display:flex;flex-wrap:wrap;gap:5px}
.pog-game-tags a{display:inline-flex;padding:2px 7px;border-radius:999px;background:var(--color-pale-stone);color:var(--color-olive-char);font:10px/1.5 var(--font-ibm-plex-sans-variable)}
.pog-game-tags a:hover{background:var(--color-signal-blue);color:white}
.aehea-related{margin-top:28px;padding-top:20px;border-top:1px solid var(--color-warm-mist)}
.aehea-related-head{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:9px}
.aehea-related-head h2{margin:0;font-size:21px}

/* Favorites */
.pog-favorites-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pog-favorite-card{position:relative;overflow:hidden;border:1px solid var(--color-warm-mist);border-radius:4px;background:var(--color-paper-white)}
.pog-favorite-card>a{display:block}
.pog-favorite-art{display:block;aspect-ratio:16/10;overflow:hidden;border-bottom:1px solid var(--color-warm-mist);background:var(--color-pale-stone)}
.pog-favorite-copy{display:grid;gap:3px;padding:9px 9px 36px}
.pog-favorite-copy strong{font-size:13px}
.pog-favorite-copy small{font:10px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.pog-favorite-remove{position:absolute;left:9px;bottom:9px;appearance:none;border:1px solid var(--color-warm-mist);background:var(--color-soft-linen);border-radius:4px;padding:3px 7px;color:var(--color-sage-gray);font:10px/1.2 var(--font-ibm-plex-sans-variable);cursor:pointer}
.pog-favorite-remove:hover{color:var(--color-flame-orange);border-color:var(--color-flame-orange)}
.pog-favorite-remove strong{font-weight:600}
.pog-favorites-empty,.pog-empty-state,.aehea-news-empty{display:grid;justify-items:start;gap:7px;padding:26px;background:var(--color-soft-linen);border:1px dashed var(--color-warm-mist);border-radius:4px}
.pog-favorites-empty h2,.pog-empty-state strong,.aehea-news-empty h2{margin:0}
.pog-favorites-empty p,.pog-empty-state p,.aehea-news-empty p{margin:0 0 5px}
.aehea-file-empty{font-size:30px;color:var(--color-ash-green)}

/* News */
.aehea-news-signal{display:grid;justify-items:end;gap:2px;padding:9px 0;font:11px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-news-signal i{width:8px;height:8px;border-radius:50%;background:var(--color-moss-green);margin-bottom:4px}
.aehea-news-signal strong{color:var(--color-deep-moss)}
.aehea-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.aehea-news-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;background:var(--color-cream-paper);border:1px solid var(--color-warm-mist);border-radius:4px}
.aehea-news-card:hover{background:var(--color-soft-linen)}
.aehea-news-card-media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--color-pale-stone);border-bottom:1px solid var(--color-warm-mist)}
.aehea-news-card-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease,filter .25s ease}
.aehea-news-card:hover .aehea-news-card-image{transform:scale(1.025);filter:saturate(1.06)}
.aehea-news-card-body{display:flex;flex:1;flex-direction:column;padding:14px}
.aehea-news-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;font:10px/1 var(--font-ui-monospace);color:var(--color-ash-green)}
.aehea-news-card-body>small{font:11px/1.2 var(--font-ibm-plex-sans-variable);color:var(--color-signal-blue)}
.aehea-news-card h2{margin:7px 0 8px;font-size:18px;line-height:1.3}
.aehea-news-card p{margin:0 0 12px;font-size:13px}
.aehea-news-card .aehea-text-link{margin-top:auto}
.aehea-news-document{max-width:700px;margin:8px auto;padding:10px 0 22px}
.aehea-news-document h1{margin:0 0 14px}
.aehea-news-article-media{margin:0 0 20px;overflow:hidden;background:var(--color-soft-linen);border:1px solid var(--color-warm-mist);border-radius:4px}
.aehea-news-article-image{display:block;width:100%;height:auto;max-height:460px;object-fit:cover}
.aehea-news-article-media figcaption{padding:7px 10px;border-top:1px solid var(--color-warm-mist);font:10px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-news-document>p{font-size:18px;line-height:1.55}
.aehea-news-document aside{display:grid;gap:2px;margin-top:24px;padding:12px;background:var(--color-soft-linen);border-left:3px solid var(--color-signal-blue);font-size:13px;color:var(--color-olive-char)}

/* Static/editorial pages — re-framed as documents */
.aehea-static-window{padding-top:36px;overflow:visible}
.aehea-static-window::before{content:"document.mdx   ·   AEHEA";position:absolute;left:0;right:0;top:0;height:36px;display:flex;align-items:center;padding:0 12px;background:var(--color-paper-white);border-bottom:1px solid var(--color-warm-mist);border-radius:6px 6px 0 0;font:12px/1 var(--font-ibm-plex-sans-variable);color:var(--color-olive-char)}
body[data-static-page="about"] .aehea-static-window::before{content:"about.mdx   ·   AEHEA"}
body[data-static-page="privacy"] .aehea-static-window::before{content:"privacy.mdx   ·   AEHEA"}
body[data-static-page="terms"] .aehea-static-window::before{content:"terms.mdx   ·   AEHEA"}
.aehea-static-window>*{margin-left:28px;margin-right:28px}
.pog-editorial-breadcrumbs{display:flex;gap:6px;padding:14px 0 12px;border-bottom:1px solid var(--color-warm-mist);font:12px/1.4 var(--font-ibm-plex-sans-variable);color:var(--color-sage-gray)}
.pog-about-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;padding:18px 0;border-bottom:1px solid var(--color-warm-mist)}
.pog-about-hero-copy{padding:8px 0}
.pog-section-kicker{display:block;margin-bottom:7px;font:11px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.pog-about-hero h1,.pog-policy-hero h1{font-size:32px;line-height:1.08;margin:0 0 8px}
.pog-about-hero-art{overflow:hidden;border:1px solid var(--color-warm-mist);border-radius:4px;background:var(--color-soft-linen)}
.pog-about-hero-art img{display:block;width:100%;height:100%;min-height:180px;object-fit:cover;filter:saturate(.86)}
.pog-about-hero-art figcaption{padding:6px 8px;font:10px/1.2 var(--font-ui-monospace);color:var(--color-sage-gray)}
.pog-editorial-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.pog-editorial-primary,.pog-editorial-secondary{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:4px;font-family:var(--font-ibm-plex-sans-variable);font-size:13px;font-weight:600}
.pog-editorial-primary{background:var(--color-amber-glow);border:1px solid var(--color-dark-amber)}
.pog-editorial-secondary{color:var(--color-burnished-gold);border:1px solid var(--color-burnished-gold)}
.pog-about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:16px 0}
.pog-about-stats article{padding:13px;background:var(--color-soft-linen);border:1px solid var(--color-warm-mist);border-radius:4px}
.pog-about-stats strong{display:block;font-size:24px}
.pog-about-stats span{font-size:12px;color:var(--color-sage-gray)}
.pog-editorial-panel,.pog-about-workflow,.pog-about-gallery,.pog-about-values,.pog-about-ecosystem,.pog-about-final,.pog-policy-layout,.pog-policy-callout,.pog-policy-hero{margin-top:8px;padding:20px 0;border-top:1px solid var(--color-warm-mist)}
.pog-editorial-panel{display:grid;grid-template-columns:.75fr 1.25fr;gap:24px}
.pog-about-prose p,.pog-about-ecosystem p,.pog-policy-content p{margin:0 0 10px}
.pog-about-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pog-about-gallery figure{overflow:hidden;border:1px solid var(--color-warm-mist);border-radius:4px;background:var(--color-cream-paper)}
.pog-about-gallery img{display:block;width:100%;aspect-ratio:3/1;object-fit:cover}
.pog-about-gallery figcaption{display:grid;gap:2px;padding:8px}
.pog-about-gallery figcaption span{font-size:12px;color:var(--color-sage-gray)}
.pog-about-workflow>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pog-about-workflow article,.pog-about-values article,.pog-about-note{padding:14px;background:var(--color-cream-paper);border:1px solid var(--color-warm-mist);border-radius:4px}
.pog-about-workflow article>span{font:11px/1 var(--font-ui-monospace);color:var(--color-signal-blue)}
.pog-about-workflow h3{margin:6px 0}
.pog-about-workflow p{font-size:13px;margin:0}
.pog-about-values{display:grid;grid-template-columns:1.25fr .75fr;gap:8px}
.pog-about-values ul{padding-left:18px}
.pog-about-values li{margin:7px 0;color:var(--color-olive-char)}
.pog-about-final{padding-bottom:28px}
.pog-policy-hero{padding-top:18px}
.pog-policy-hero>p{max-width:680px}
.pog-policy-hero dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 0}
.pog-policy-hero dl>div{padding:10px;background:var(--color-soft-linen);border:1px solid var(--color-warm-mist);border-radius:4px}
.pog-policy-hero dt{font:10px/1 var(--font-ui-monospace);color:var(--color-sage-gray)}
.pog-policy-hero dd{margin:4px 0 0}
.pog-policy-callout{display:flex;gap:10px;padding:12px;background:var(--color-soft-linen)!important;border:1px solid var(--color-warm-mist)!important;border-radius:4px}
.pog-policy-callout p{margin:0}
.pog-policy-layout{display:grid;grid-template-columns:190px 1fr;gap:24px}
.pog-policy-toc{position:sticky;top:72px;align-self:start;padding:12px;background:var(--color-soft-linen);border:1px solid var(--color-warm-mist);border-radius:4px}
.pog-policy-toc nav{display:grid;gap:5px;margin-top:8px}
.pog-policy-toc a{font-size:12px;color:var(--color-sage-gray)}
.pog-policy-content section{position:relative;padding:0 0 19px;margin:0 0 19px;border-bottom:1px solid var(--color-warm-mist)}
.pog-policy-content section>span{font:11px/1 var(--font-ui-monospace);color:var(--color-signal-blue)}
.pog-policy-content h2{margin:5px 0 8px;font-size:20px}
.pog-policy-footer{display:flex;justify-content:space-between;gap:12px;padding:15px 0 24px;border-top:1px solid var(--color-warm-mist);font-size:12px}
.pog-policy-footer p{margin:0;font-size:12px}

/* Footer */
.aehea-desk-footer{width:min(var(--page-max-width),calc(100vw - 154px));margin:12px auto 0;display:flex;justify-content:space-between;gap:18px;padding:9px 2px;font:10px/1.4 var(--font-ui-monospace);color:var(--color-sage-gray)}
.aehea-desk-footer>div,.aehea-desk-footer nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.aehea-desk-footer a:hover{color:var(--color-deep-moss)}
.aehea-footer-status{display:flex;align-items:center;gap:5px}
.aehea-footer-status i{width:6px;height:6px;border-radius:50%;background:var(--color-moss-green)}

@media (max-width:1180px){
  .aehea-topnav{display:none}
  .aehea-topbar{grid-template-columns:auto 1fr}
  .aehea-top-actions{justify-self:end}
}

@media (max-width:900px){
  body{padding:58px 12px 86px}
  .container,.aehea-desk-footer{width:min(100%,720px)}
  .aehea-filedock{left:50%;top:auto;bottom:10px;transform:translateX(-50%);width:auto;grid-auto-flow:column;grid-template-columns:repeat(6,58px);gap:2px;padding:5px;background:rgba(253,253,248,.94);box-shadow:0 8px 25px rgba(35,37,29,.13)}
  .aehea-filedock a{min-height:52px;padding:4px 2px}
  .aehea-dock-icon{font-size:20px;height:20px}
  .aehea-top-brand-copy small{display:none}
  .aehea-search{width:min(34vw,210px)}
  .aehea-window-body{padding:20px}
  #items_container.aehea-game-grid>.aehea-game-card,.aehea-related #items_container>.aehea-game-card{grid-column:span 4}
  .aehea-game-workbench{grid-template-columns:1fr}
  .aehea-game-inspector{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
  .aehea-game-inspector>h1,.aehea-game-inspector>.aehea-eyebrow,.aehea-game-inspector>p,.aehea-game-inspector>.aehea-category-chip{grid-column:1/-1}
  .aehea-game-inspector .aehea-game-meta{grid-column:1/2;margin:0}
  .aehea-game-inspector .aehea-play-button{grid-column:2/3;align-self:end}
  .aehea-game-document{grid-template-columns:1fr}
}

@media (max-width:700px){
  .aehea-topbar{padding:0 9px;gap:8px}
  .aehea-top-brand-copy{display:none}
  .aehea-top-logo{width:42px}
  .aehea-top-actions{gap:4px}
  .aehea-search{width:min(48vw,240px)}
  .aehea-search kbd{display:none}
  .aehea-language-toggle{width:36px;padding:0;justify-content:center}
  .aehea-language-toggle span{display:none}
  .aehea-language-toggle b{font-size:15px}
  .aehea-top-actions>.aehea-amber-button{width:34px;padding:0;font-size:0}
  .aehea-top-actions>.aehea-amber-button span{font-size:15px}
  .aehea-window-file small{display:none}
  .aehea-window-body{padding:16px}
  .aehea-home-dashboard,.aehea-category-dashboard{grid-template-columns:1fr}
  .aehea-home-copy h1{font-size:30px}
  .aehea-home-widgets{grid-template-columns:repeat(3,1fr)}
  .aehea-home-widgets a{grid-template-columns:1fr;grid-template-areas:"n" "t" "s";justify-items:start}
  .aehea-home-widgets small{display:none}
  .aehea-listing-head,.aehea-directory-head,.aehea-favorites-head,.aehea-news-hero{display:grid;grid-template-columns:1fr}
  .aehea-listing-counter,.aehea-news-signal{justify-items:start}
  #items_container.aehea-game-grid,.aehea-related #items_container{gap:7px}
  #items_container.aehea-game-grid>.aehea-game-card,.aehea-related #items_container>.aehea-game-card{grid-column:span 6}
  .aehea-category-directory-grid{grid-template-columns:1fr}
  .aehea-category-tile{grid-template-columns:96px 1fr auto}
  .aehea-news-grid{grid-template-columns:1fr}
  .pog-favorites-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aehea-game-inspector{display:block}
  .aehea-game-inspector .aehea-play-button{margin-top:12px}
  .aehea-game-toolbar{align-items:flex-start;padding-top:7px;padding-bottom:7px}
  .aehea-breadcrumbs{display:none}
  .aehea-content-tabs{overflow:auto}
  .aehea-static-window>*{margin-left:16px;margin-right:16px}
  .pog-about-hero,.pog-editorial-panel,.pog-about-values,.pog-policy-layout{grid-template-columns:1fr}
  .pog-about-stats,.pog-about-workflow>div{grid-template-columns:1fr}
  .pog-about-gallery{grid-template-columns:1fr}
  .pog-policy-toc{position:static}
  .aehea-desk-footer{display:grid;justify-content:start;margin-bottom:60px}
  #items_container>.item:not(.pog-mobile-page-item){display:none}
  #items_container>.pog-mobile-page-item{display:list-item;order:var(--pog-mobile-order,999)}
  #items_container>.pog-mobile-fill-card{display:list-item}
  #items_container{grid-auto-flow:row}
  .pog-desktop-pagination{display:none}
  .pog-mobile-pagination{display:block}
}


/* Mobile card -> game direct launcher. The current AEHEA theme does not load
   the old POG v3 stylesheet where these mechanics originally lived, so keep
   the functional viewport layer here with the active theme. */
html.pog-feed-game-open,body.pog-feed-game-open{overflow:hidden!important;overscroll-behavior:none!important}
.pog-feed-game-layer{position:fixed!important;z-index:2147483000!important;inset:0!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;overflow:hidden!important;background:#000!important;touch-action:none!important}
.pog-feed-game-stage{position:absolute!important;z-index:1!important;top:0!important;left:0!important;width:var(--pog-feed-viewport-width,100dvw)!important;height:var(--pog-feed-viewport-height,100dvh)!important;overflow:hidden!important;background:#000!important}
.pog-feed-game-frame{position:absolute!important;z-index:1!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:#000!important;transform:none!important}
.pog-feed-game-close{appearance:none;position:absolute;z-index:5;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:4px 8px;border:1px solid rgba(255,255,255,.28);border-radius:4px;background:rgba(0,0,0,.62);color:#fff;font:11px/1 var(--font-ibm-plex-sans-variable);font-weight:600;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.pog-feed-game-close span{font-size:18px;line-height:.8}.pog-feed-game-close strong{font-size:10px;letter-spacing:.04em}
/* Keep the direct mobile launch about the game itself. The fixed viewport and
   Y8 player already expose their own controls; AEHEA only retains a way back. */
.pog-feed-game-controls{display:none!important}

@media (max-width:700px){
  /* Mobile index/category pages are thumbnail-first: keep the global search and
     bottom launcher, remove desktop-window chrome and card captions. */
  body[data-page-type="home"],body[data-page-type="category"]{padding-left:0;padding-right:0}
  body[data-page-type="home"]>.aehea-site-header+.container,
  body[data-page-type="category"]>.aehea-site-header+.container{width:100%;max-width:none}
  body[data-page-type="home"] .items-container.aehea-app-window,
  body[data-page-type="category"] .items-container.aehea-app-window{border-left:0;border-right:0;border-radius:0;background:transparent;overflow:visible}
  body[data-page-type="home"] .items-container>.aehea-window-titlebar,
  body[data-page-type="home"] .items-container>.aehea-window-toolbar,
  body[data-page-type="category"] .items-container>.aehea-window-titlebar,
  body[data-page-type="category"] .items-container>.aehea-window-toolbar{display:none}
  body[data-page-type="home"] .items-container>.aehea-window-body,
  body[data-page-type="category"] .items-container>.aehea-window-body{padding:6px}
  body[data-page-type="home"] .aehea-home-dashboard{display:none}
  body[data-page-type="category"] .aehea-category-dashboard{display:block;padding:4px 4px 8px;border:0}
  body[data-page-type="category"] .aehea-category-dashboard>div{padding:0}
  body[data-page-type="category"] .aehea-category-dashboard .aehea-eyebrow,
  body[data-page-type="category"] .aehea-category-dashboard p,
  body[data-page-type="category"] .aehea-category-dashboard a,
  body[data-page-type="category"] .aehea-category-dashboard figure{display:none}
  body[data-page-type="category"] .aehea-category-dashboard h1{margin:0;font-size:20px;line-height:1.2;font-weight:700}
  body[data-page-type="home"] .aehea-grid-heading,
  body[data-page-type="category"] .aehea-grid-heading{display:none}
  body[data-page-type="home"] #items_container.aehea-game-grid,
  body[data-page-type="category"] #items_container.aehea-game-grid{gap:5px}
  body[data-page-type="home"] .aehea-game-card,
  body[data-page-type="category"] .aehea-game-card{border:0;border-radius:3px;background:transparent}
  body[data-page-type="home"] .thumb-img-container,
  body[data-page-type="category"] .thumb-img-container{border:1px solid rgba(77,79,70,.18);border-radius:3px;aspect-ratio:16/10}
  body[data-page-type="home"] .aehea-game-card .item-name,
  body[data-page-type="category"] .aehea-game-card .item-name,
  body[data-page-type="home"] .aehea-card-open,
  body[data-page-type="category"] .aehea-card-open{display:none}
  body[data-page-type="category"] .aehea-category-note{display:none}
  body[data-page-type="home"] .pog-pagination,
  body[data-page-type="category"] .pog-pagination{margin-top:10px;padding-top:8px}
  body[data-page-type="home"] .aehea-desk-footer,
  body[data-page-type="category"] .aehea-desk-footer{display:none}

  /* Game pages go nearly full-bleed on phones so the Y8 viewport gets the
     maximum useful width without being trapped inside desktop window chrome. */
  body[data-page-type="game"]{padding:52px 0 78px}
  body[data-page-type="game"]>.aehea-site-header+.container{width:100%;max-width:none}
  body[data-page-type="game"] .pog-game-profile.aehea-app-window{border-left:0;border-right:0;border-radius:0}
  body[data-page-type="game"] .pog-game-profile>.aehea-window-titlebar{display:none}
  body[data-page-type="game"] .aehea-game-toolbar{display:none}
  body[data-page-type="game"] .aehea-game-window-body{padding:0}
  body[data-page-type="game"] .aehea-game-workbench{display:block}
  body[data-page-type="game"] .aehea-player-pane{border:0;border-radius:0;background:#111}
  body[data-page-type="game"] .aehea-pane-label{display:none}
  body[data-page-type="game"] .pog-game-spotlight{width:100%;background:#000}
  body[data-page-type="game"] .pog-game-visual{max-width:100%;background:#000}
  /* Mobile Y8 ?fit=auto player: AEHEA supplies only the responsive viewport.
     Y8 owns the game's internal proportions; no catalog/native dimensions are used. */
  body[data-page-type="game"] .pog-game-visual>.pog-game-frame,
  body[data-page-type="game"] .pog-game-visual>.pog-game-frame.pog-game-frame-fluid{
    position:absolute!important;inset:0!important;top:0!important;left:0!important;
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
    transform:none!important;transform-origin:50% 50%!important;
  }
  body[data-page-type="game"] .aehea-game-inspector{margin:0;border:0;border-top:1px solid var(--color-warm-mist);border-radius:0;padding:12px 12px 14px;background:var(--color-cream-paper)}
  body[data-page-type="game"] .aehea-game-inspector>.aehea-eyebrow,
  body[data-page-type="game"] .aehea-game-inspector>p,
  body[data-page-type="game"] .aehea-game-inspector>.aehea-category-chip,
  body[data-page-type="game"] .aehea-game-meta{display:none}
  body[data-page-type="game"] .aehea-game-inspector h1{margin:0 0 9px;font-size:21px;line-height:1.15}
  body[data-page-type="game"] .aehea-play-button{width:auto;min-height:34px;margin:0!important;padding:5px 10px;font-size:12px}
  body[data-page-type="game"] .aehea-content-tabs{display:none}
  body[data-page-type="game"] .aehea-game-document{padding:14px 12px 4px}
  body[data-page-type="game"] .aehea-related{padding:0 12px 12px}
  body[data-page-type="game"] .aehea-desk-footer{display:none}
  .pog-mobile-enter{display:none}
  .pog-game-visual.is-playing>.pog-mobile-enter{display:inline-flex}
}

@media (max-width:430px){
  body{padding-left:8px;padding-right:8px}
  .aehea-search{width:47vw}
  .aehea-window-titlebar{padding-left:9px}
  .aehea-window-toolbar{padding-left:8px;padding-right:8px}
  .aehea-tabs a{padding:0 7px;font-size:12px}
  .aehea-toolbar-count{display:none}
  .aehea-window-body{padding:12px}
  .aehea-home-copy h1{font-size:30px}
  .aehea-home-widgets{grid-template-columns:1fr}
  .aehea-home-widgets a{grid-template-columns:30px 1fr;grid-template-areas:"n t" "n s"}
  .aehea-home-widgets small{display:block}
  .item-name{padding:7px}
  .game-title{font-size:12px}
  .aehea-card-index{display:none}
  .aehea-category-tile{grid-template-columns:82px 1fr auto;gap:8px}
  .aehea-category-tile figure{height:58px}
  .pog-favorites-grid{grid-template-columns:1fr 1fr}
  .aehea-game-inspector{padding:13px}
  .aehea-game-inspector h1{font-size:24px}
  .aehea-game-document{padding-top:17px}
  .aehea-related-head{align-items:flex-start;display:grid}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
