/* Game Vault presentation: the NMAI Research type, header, footer and focus pattern in the vault's purple palette, with the catalogue and rating components. */
:root{color-scheme:light;--bg:#fbfefc;--surface:#fff;--raised:#f3fbf6;--text:#25332b;--muted:#48604f;--line:#dcefe3;--accent:#276749;--heading:#1c4532;--tag:#eef9f2;--sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0e1712;--surface:#16231b;--raised:#16231b;--text:#e7f3ec;--muted:#a8c2b2;--line:#27402f;--accent:#68d391;--heading:#e6f7ec;--tag:#16231b}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;--bg:#0e1712;--surface:#16231b;--raised:#16231b;--text:#e7f3ec;--muted:#a8c2b2;--line:#27402f;--accent:#68d391;--heading:#e6f7ec;--tag:#16231b}}
*{box-sizing:border-box}html{scroll-padding-top:1.5rem}body{margin:0;background:var(--bg);color:var(--text);font:17px/1.65 var(--sans)}
a{color:var(--accent);text-underline-offset:.22em;text-decoration-thickness:1px}a:hover{text-decoration-thickness:2px}
button{font:inherit;color:var(--text);cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.55rem .85rem}
:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;top:-100px;left:20px;padding:10px;background:var(--surface);z-index:10}.skip-link:focus{top:15px}

/* Header, as on the NMAI Research pages */
.site-header{max-width:1200px;margin:auto;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.brand{display:block;width:211px;height:36px;background:url(brand/header-nmai-research-light.svg) left center/contain no-repeat;color:transparent;overflow:hidden;white-space:nowrap;text-indent:100%;font-size:1rem;font-weight:750;text-decoration:none}:root[data-theme="dark"] .brand{background-image:url(brand/header-nmai-research-dark.svg)}@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .brand{background-image:url(brand/header-nmai-research-dark.svg)}}@media(forced-colors:active){.brand{background:none;color:LinkText;text-indent:0;width:auto;height:auto}}.brand-mark{margin-right:.35em}.brand-subtitle{font-size:.8rem;color:var(--muted);margin-top:4px}
.site-nav{display:flex;gap:25px;flex-wrap:wrap}.site-nav a{font-size:.9rem;color:var(--muted);text-decoration:none;padding:7px 0}.site-nav a[aria-current]{color:var(--accent);border-bottom:2px solid var(--accent)}
.theme-toggle-btn{font-size:.8rem;min-height:44px;white-space:nowrap}

/* Type and shared components */
h1,h2,h3{color:var(--heading)}h1{font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.12;letter-spacing:-.045em;font-weight:660;margin:0 0 22px}h2{line-height:1.3;letter-spacing:-.025em}p{overflow-wrap:anywhere}
.vault{max-width:1200px;margin:auto;padding:0 28px}
.eyebrow{font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0 0 16px;font-weight:650}
.btn{display:inline-flex;align-items:center;gap:.4em;min-height:48px;padding:.7rem 1.25rem;border-radius:8px;font-weight:650;font-size:.98rem;line-height:1.3;text-decoration:none;border:1px solid var(--line)}
.btn-primary{background:var(--heading);border-color:var(--heading);color:var(--bg)}.btn-primary:hover{background:var(--accent);border-color:var(--accent)}
.btn-quiet{color:var(--heading);background:var(--surface)}.btn-quiet:hover{border-color:var(--accent);color:var(--accent)}

/* Catalogue hero */
.vault-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:56px;align-items:center;padding:64px 0 56px}
.vault-hero h1{font-size:clamp(2.2rem,4.6vw,3.3rem);max-width:17ch}
.lede{font-size:clamp(1.08rem,1.5vw,1.22rem);line-height:1.65;color:var(--muted);max-width:60ch;margin:0 0 32px}.lede strong{color:var(--heading);font-weight:650}
.cta-row{display:flex;flex-wrap:wrap;gap:12px 14px;align-items:center}
.hero-panel{padding:24px 28px 8px;background:var(--raised);border:1px solid var(--line);border-radius:14px}
.hero-panel h2{font-size:.76rem;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:650;margin:0 0 4px}
.steps{list-style:none;margin:0;padding:0}.steps li{padding:14px 0}.steps li+li{border-top:1px solid var(--line)}
.steps h3{font-size:1.05rem;line-height:1.4;margin:0 0 4px}.steps p{margin:0;font-size:.94rem;line-height:1.6;color:var(--muted)}

/* Catalogue */
.games{padding:56px 0 64px;border-top:1px solid var(--line)}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap;margin-bottom:20px}
.section-head h2{font-size:clamp(1.5rem,2.6vw,2rem);margin:0}.section-head a{font-size:.92rem;font-weight:600}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.filters button{min-height:40px;padding:.35rem .95rem;border-radius:999px;font-size:.88rem;color:var(--muted)}
.filters button:hover{border-color:var(--accent);color:var(--accent)}
.filters button[aria-pressed="true"]{background:var(--heading);border-color:var(--heading);color:var(--bg)}
.filter-status{min-height:1.6em;margin:0 0 14px;font-size:.85rem;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.game{display:flex;flex-direction:column;min-width:0;padding:26px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:12px}
.game h3{font-size:1.28rem;line-height:1.3;letter-spacing:-.02em;margin:0 0 6px}
.game h3 a{color:inherit;text-decoration-color:var(--line)}.game h3 a:hover{color:var(--accent)}
.vibe-line{font-style:italic;color:var(--muted);margin:0 0 14px;line-height:1.6}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;padding:0;list-style:none}
.tags li{font-size:.75rem;line-height:1.5;background:var(--tag);border:1px solid var(--line);color:var(--muted);padding:2px 8px;border-radius:4px}
.meta{font-size:.85rem;color:var(--muted);margin:0 0 18px}
.actions{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px}
.actions .btn{min-height:44px;padding:.5rem 1.05rem;font-size:.92rem}
.feedback-line{display:flex;flex-wrap:wrap;align-items:center;column-gap:.4em;margin:6px 0 -10px;font-size:.84rem;color:var(--muted)}
.feedback-line a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
.notice{grid-column:1/-1;text-align:center;padding:56px 20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
.notice h3{margin:0 0 8px;font-size:1.2rem}.notice p{margin:0}

/* Rating page */
.rate-head{max-width:820px;padding:44px 0 8px}
.back-link{display:inline-block;margin:0 0 18px;font-size:.9rem;font-weight:600}
.rate-head h1{font-size:clamp(2rem,4.4vw,3rem);margin:0 0 10px}
.rate-head .vibe-line{font-size:1.08rem}
.rate-head .actions{border-top:0;padding-top:4px;margin:0 0 24px}
.how{max-width:820px;margin:0 0 22px;padding:18px 22px;background:var(--raised);border:1px solid var(--line);border-radius:12px;font-size:.92rem;color:var(--muted)}
.how strong{color:var(--heading)}
.how-email{display:block;margin-top:.5em}
#giscus-box{max-width:820px;min-height:300px;margin-bottom:48px}

/* Footer, as on the NMAI Research pages */
.hub-footer{max-width:1144px;margin:0 auto;padding:26px 0 40px;border-top:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.hub-footer p{margin:0 0 10px}.footer-links{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:14px}

@media(max-width:1200px){.hub-footer{margin-left:28px;margin-right:28px}}
@media(max-width:960px){.vault-hero{grid-template-columns:1fr;gap:40px}.hero-panel{max-width:560px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.site-header{flex-wrap:wrap;gap:15px}.site-nav{order:3;width:100%;gap:4px 25px}.theme-toggle-btn{margin-left:auto}}
@media(max-width:620px){body{font-size:16px}.site-header{padding:20px}.vault{padding:0 20px}.vault-hero{padding:40px 0;gap:32px}.hero-panel{padding:20px 22px 6px}.games{padding:40px 0 48px}.grid{grid-template-columns:1fr;gap:18px}.game{padding:22px}.hub-footer{margin-left:20px;margin-right:20px}.theme-toggle-btn{font-size:.72rem}.site-nav{gap:2px 20px}.site-nav a{font-size:.85rem}.rate-head{padding-top:32px}.how{padding:16px 18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Survey field and finishing layer, shared with the NMAI Research pages. The field (survey-field.js) paints behind every element of the page. */
:root{--field-rgb:28,69,50;--field-alpha:.075;--field-major-alpha:.15;--field-lens-rgb:39,103,73;--field-lens-alpha:.55;--field-glow:rgba(39,103,73,.08);--glass:rgba(243,251,246,.8);--shadow:0 1px 2px rgba(20,60,40,.05),0 12px 28px -16px rgba(20,60,40,.28);--ease:cubic-bezier(.2,.7,.2,1)}
:root[data-theme="dark"]{--field-rgb:104,211,145;--field-alpha:.085;--field-major-alpha:.16;--field-lens-rgb:154,230,180;--field-lens-alpha:.75;--field-glow:rgba(72,187,120,.16);--glass:rgba(22,35,27,.74);--shadow:0 1px 2px rgba(0,0,0,.35),0 14px 30px -16px rgba(0,0,0,.8)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--field-rgb:104,211,145;--field-alpha:.085;--field-major-alpha:.16;--field-lens-rgb:154,230,180;--field-lens-alpha:.75;--field-glow:rgba(72,187,120,.16);--glass:rgba(22,35,27,.74);--shadow:0 1px 2px rgba(0,0,0,.35),0 14px 30px -16px rgba(0,0,0,.8)}}
.survey-field{position:absolute;left:0;top:0;width:100%;z-index:-1;pointer-events:none;overflow:hidden;background:radial-gradient(1100px 620px at 78% 8%,var(--field-glow),transparent 70%);-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 62%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 62%,transparent 100%)}
.survey-field canvas{display:block}
::selection{background:var(--heading);color:var(--bg)}
.eyebrow::before{content:"";display:inline-block;width:20px;height:1px;margin:0 10px 0 0;background:currentColor;vertical-align:.3em;opacity:.7}
a,button,.btn{transition:color .18s var(--ease),background-color .18s var(--ease),border-color .18s var(--ease),box-shadow .25s var(--ease),transform .25s var(--ease)}
.hero-panel,.how{background:var(--glass);-webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15)}
.hero-panel{box-shadow:var(--shadow)}
.game{transition:box-shadow .3s var(--ease),transform .3s var(--ease)}
.game:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
@media(prefers-reduced-motion:reduce){a,button,.btn,.game{transition:none}.game:hover{transform:none}}
/* Vault menus: five vaults in the main menu, a sub-menu for the current vault */
.vault-subnav{max-width:1200px;margin:auto;padding:10px 28px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px;border-bottom:1px solid var(--line);font-size:.85rem}
.vault-subnav-title{font-weight:700;color:var(--heading);letter-spacing:.02em;margin-right:4px}
.vault-subnav a{color:var(--muted);text-decoration:none;padding:5px 0}
.vault-subnav a:hover{color:var(--accent)}
.vault-subnav a[aria-current]{color:var(--accent);border-bottom:2px solid var(--accent)}
@media(max-width:620px){.vault-subnav{padding:8px 20px;gap:2px 16px}.nav-vault{display:none}}
@media print{.vault-subnav{display:none}}
/* The ad-free line (N.'s 959), under the opening paragraph. */
.no-ads{margin:-14px 0 28px;color:var(--heading);font-weight:650}
/* The cards' glow (N.'s 963), after the Music Vault's: on the pointer, or when a link in the card has keyboard focus, the card's ground takes 7 per cent of the accent,
   its border 30 per cent, with a 1 px ring and a soft shadow in the accent; the lift on the pointer stays as it was. */
.game{--a:var(--accent)}
.game:hover,.game:focus-within{background-color:color-mix(in srgb,var(--a) 7%,var(--surface));border-color:color-mix(in srgb,var(--a) 30%,var(--line));border-top-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--a) 70%,transparent),0 16px 44px -18px var(--a)}

/* The header's boxes in the same place on every page, and where the NMAI Research pages have them: the same
   rules as the main site's portfolio.css. A grid with fixed slots: the brand (211 px), the main links from a fixed
   start, an empty slot where the main site has its language menu, and the buttons' slot (the theme button wide enough
   for either label, the place of the main site's music button kept). Every link carries its underline's 2 px, coloured
   only on the current page's link, and the scrollbar's room is kept on short pages too. */
html{scrollbar-gutter:stable}
:root{--hdr-lang:calc(2 * 4.2 * .85rem + 12px);--hdr-theme:7rem;--hdr-tools:calc(54px + var(--hdr-theme))}
.site-header{display:grid;grid-template-columns:211px minmax(0,1fr) var(--hdr-lang) var(--hdr-tools);grid-template-rows:minmax(44px,auto);grid-template-areas:"brand nav lang tools";align-items:center;column-gap:24px;row-gap:15px}
.site-header>div:first-child{grid-area:brand;min-width:0}
.site-header>.site-nav{grid-area:nav;justify-self:start;margin-left:12px}
.site-header>.theme-toggle-btn{grid-area:tools;justify-self:end;margin-left:0}
.site-header .theme-toggle-btn{min-width:var(--hdr-theme);text-align:center}
.site-nav a{border-bottom:2px solid transparent}
/* In forced colours (such as a Windows contrast theme) a transparent border is drawn in the text colour: there only the current page's link keeps its underline, the others keep its 2 px as padding, and the brand shows its text name alone in either theme */
@media(forced-colors:active){.site-nav a:not([aria-current]),.lang-switch a:not([aria-current]){border-bottom-style:none;padding-bottom:9px}.brand{background:none!important}}
@media(max-width:1199px){.site-header{grid-template-rows:auto auto;grid-template-areas:"brand . lang tools" "nav nav nav nav"}.site-header>.site-nav{margin-left:0}}
@media(max-width:620px){:root{--hdr-theme:6.4rem}.site-header{grid-template-columns:minmax(0,1fr) var(--hdr-lang) var(--hdr-tools);grid-template-rows:auto minmax(44px,auto) auto;grid-template-areas:"brand brand brand" ". lang tools" "nav nav nav";column-gap:10px}}
@media(max-width:359px){.site-header{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px}}

/* The language menu (English, Magyar) in the slot above, with the main site's rules for it (portfolio.css): each link a
   fixed width, so the current one's bold moves nothing; the current one's underline in the accent */
.lang-switch{display:flex;gap:12px;font-size:.85rem}.lang-switch a{color:var(--muted);text-decoration:none;padding:7px 0}
.lang-switch a[aria-current]{color:var(--heading);font-weight:650;border-bottom:2px solid var(--accent)}
.translation-note{margin-bottom:10px}
.site-header>.lang-switch{grid-area:lang;justify-self:end;margin-left:0}
.lang-switch a{border-bottom:2px solid transparent;min-width:4.2em;text-align:center}
@media(max-width:359px){.lang-switch a{min-width:0}}
