/* Progity Games — visual system derived from the studio logo:
   near-black space (#00000d, the logo's own background), a cyan→violet→magenta orbit,
   stepping pixel squares and a four-point spark. Each game brings its own --accent. */

@font-face {
    font-family: "Archivo Black";
    src: url("fonts/archivo-black.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans.woff") format("woff");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #00000d;
    --bg-raised: #06061a;
    --bg-sunk: #03030f;
    --ink: #f3f1ff;
    --ink-soft: #d6d2f2;
    --muted: #9c97c2;
    --line: rgba(150, 140, 255, .14);
    --line-strong: rgba(170, 160, 255, .3);
    --cyan: #08bafb;
    --blue: #3363fb;
    --violet: #8c44fa;
    --purple: #b72ffb;
    --magenta: #fc14c3;
    --brand-gradient: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
    --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --text: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
    --wrap: min(1200px, 100% - 2.5rem);
    --radius: 14px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --accent: var(--violet);
    --accent-ink: #fff;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; overflow-wrap: break-word; hyphens: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.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 {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    padding: .7rem 1rem; border-radius: 8px; background: var(--ink); color: var(--bg);
    font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ---------- Shared type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    margin-bottom: 1.1rem;
    color: #c3b2ff;
    font-size: .78rem; font-weight: 700; line-height: 1.2;
    letter-spacing: .32em; text-transform: uppercase;
}
.eyebrow::before {
    /* The logo's three stepping pixels: blue → violet → magenta. */
    content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; margin-left: 20px;
    background: var(--magenta); box-shadow: -11px 3px 0 -1px var(--violet), -20px 6px 0 -2px var(--blue);
    transform: translateY(-3px);
}
:lang(ja) .eyebrow { letter-spacing: .12em; }
.section-title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    line-height: .98; letter-spacing: -.02em;
    text-wrap: balance;
}
.section-lead { max-width: 38rem; margin-top: 1.1rem; color: var(--muted); font-size: 1.125rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.tag {
    display: inline-block; padding: .2rem .55rem; border-radius: 6px;
    background: var(--accent); color: var(--accent-ink);
    font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.tag--soon { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
:lang(ja) .section-title, :lang(ja) .hero__title, :lang(ja) .featured__title, :lang(ja) .contact__mail {
    font-family: var(--display), "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; font-weight: 900; letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.25rem; padding: .85rem 1.5rem;
    border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(252, 20, 195, .55), 0 0 0 1px rgba(252, 20, 195, .5); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .no-js .site-header { background: rgba(0, 0, 13, .94); border-bottom-color: var(--line); }
.site-header__inner {
    width: var(--wrap); margin: 0 auto; height: 4.5rem;
    display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: 3.6rem; height: auto; mix-blend-mode: lighten; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
    position: relative; padding: .5rem .8rem; border-radius: 8px;
    color: var(--ink-soft); font-size: .95rem; font-weight: 600; text-decoration: none;
}
.nav a::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
    background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.lang { position: relative; }
.lang summary {
    display: flex; align-items: center; gap: .45rem; list-style: none; cursor: pointer;
    min-height: 2.5rem; padding: .4rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px;
    font-size: .85rem; font-weight: 700; letter-spacing: .08em;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { border-color: var(--cyan); }
.lang[open] svg { transform: rotate(180deg); }
.lang__menu {
    position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60;
    width: 13rem; padding: .4rem; border: 1px solid var(--line-strong); border-radius: 12px;
    background: var(--bg-raised); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .9);
}
.lang__menu a {
    display: flex; gap: .75rem; padding: .5rem .65rem; border-radius: 7px;
    color: var(--ink-soft); font-size: .95rem; text-decoration: none;
}
.lang__menu a span { width: 1.6rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; line-height: 1.9; }
.lang__menu a:hover { background: rgba(140, 68, 250, .16); color: var(--ink); }
.lang__menu a[aria-current] { color: var(--ink); background: rgba(8, 186, 251, .1); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__orbit { position: absolute; inset: -4.5rem 0 0; z-index: -1; pointer-events: none; }
.hero__orbit svg { width: 100%; height: 100%; }
.orbit { fill: none; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.orbit--1 { opacity: .55; transform: rotate(-14deg); animation: orbit 90s linear infinite; }
.orbit--2 { stroke: rgba(140, 68, 250, .28); transform: rotate(-20deg); stroke-dasharray: 2 10; animation: orbit 140s linear infinite reverse; }
.orbit--3 { stroke: rgba(8, 186, 251, .12); transform: rotate(-9deg); }
@keyframes orbit { from { rotate: 0deg; } to { rotate: 360deg; } }
.pixel { position: absolute; border-radius: 22%; animation: drift 9s ease-in-out infinite; }
.pixel--1 { width: .7rem; height: .7rem; right: 21%; top: 30%; background: var(--blue); }
.pixel--2 { width: 1rem; height: 1rem; right: 17.5%; top: 24%; background: var(--violet); animation-delay: -3s; }
.pixel--3 { width: 1.45rem; height: 1.45rem; right: 13%; top: 16%; background: var(--magenta); animation-delay: -6s; box-shadow: 0 0 24px rgba(252, 20, 195, .6); }
@keyframes drift { 50% { translate: .35rem -.45rem; } }

.hero__inner {
    width: var(--wrap); margin: 0 auto;
    min-height: min(52rem, calc(100svh - 4.5rem));
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center; gap: 2rem;
    padding: 3rem 0 5rem;
}
.hero__title {
    font-family: var(--display);
    font-size: clamp(3.1rem, 8.2vw, 7.4rem);
    line-height: .9; letter-spacing: -.035em;
    text-wrap: balance;
}
.hero__lead { max-width: 34rem; margin-top: 1.75rem; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.hero__logo { justify-self: center; width: min(100%, 30rem); }
.hero__logo img { width: 100%; mix-blend-mode: lighten; animation: logo-in 1.2s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; scale: .94; filter: blur(6px); } }

/* ---------- Featured ---------- */
.featured { width: var(--wrap); margin: 0 auto; padding: 1rem 0 0; }
.featured__frame {
    position: relative; overflow: hidden;
    padding: clamp(1.25rem, 3.5vw, 2.75rem);
    border: 1px solid var(--line); border-radius: 24px;
    background:
        radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
        var(--bg-raised);
}
.featured__frame::before {
    content: ""; position: absolute; left: 0; top: 2.4rem; bottom: 2.4rem; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--accent); box-shadow: 0 0 22px var(--accent);
}
.featured__label {
    display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem;
    color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
}
.pixels { display: inline-flex; align-items: flex-end; gap: 3px; }
.pixels i { display: block; width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; opacity: .45; }
.pixels i:nth-child(2) { width: 8px; height: 8px; opacity: .7; }
.pixels i:nth-child(3) { width: 10px; height: 10px; opacity: 1; }
.featured__grid {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "cover body" "shots body";
    gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.featured__cover { grid-area: cover; }
.featured__body { grid-area: body; }
.shots { grid-area: shots; }
.featured__cover { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
.featured__cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .8s var(--ease); }
.featured__frame:hover .featured__cover img { transform: scale(1.025); }
.featured__id { display: flex; align-items: center; gap: 1.1rem; }
.featured__title { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95; letter-spacing: -.03em; margin-top: .35rem; }
.featured__tagline { margin-top: 1.4rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.3; color: var(--accent); }
.featured__desc { margin-top: .8rem; color: var(--ink-soft); }
.app-icon { flex: none; width: 5.5rem; height: 5.5rem; border-radius: 23%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 34px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.app-icon--blank { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 2.4rem; }

.facts { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: .5rem; }
.facts li::before {
    content: ""; flex: none; width: .7rem; height: .7rem; background: var(--accent);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.shots {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(7rem, 1fr); gap: .75rem;
    align-self: start; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.shots li { scroll-snap-align: start; }
.shots img {
    width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px;
    border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s;
}
.shots li:hover img { transform: translateY(-.35rem); border-color: var(--accent); }

/* ---------- Download actions ---------- */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.get__stores { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.store { display: block; border-radius: 9px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s; }
.store img { height: 3rem; width: auto; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.store--other {
    display: inline-flex; align-items: center; min-height: 3rem; padding: .5rem 1rem; border: 1px solid var(--line-strong);
    font-weight: 700; font-size: .95rem; text-decoration: none;
}
.get--compact { margin-top: 1.2rem; }
.get--compact .store img { height: 2.6rem; }
.get--compact .store--other { min-height: 2.6rem; }
/* The visitor's own store first and larger; the other one stays available. */
html[data-platform="ios"] .store--android, html[data-platform="android"] .store--ios { order: 2; opacity: .78; }
html[data-platform="ios"] .store--android img, html[data-platform="android"] .store--ios img { height: 2.35rem; }
html[data-platform="ios"] .store--ios img, html[data-platform="android"] .store--android img { height: 3.25rem; }
html[data-platform="ios"] .store--android:hover, html[data-platform="android"] .store--ios:hover { opacity: 1; }
.get__site {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0;
    color: var(--ink); font-weight: 700; text-decoration: none;
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat;
    transition: background-size .3s var(--ease), color .2s;
}
.get__site:hover { color: var(--accent); background-size: 0 2px; }
.get__site svg { transition: transform .3s var(--ease); }
.get__site:hover svg { transform: translate(2px, -2px); }

/* ---------- Sections ---------- */
.section { width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) 0 0; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.notice { padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); }

/* ---------- Catalog shelf ---------- */
.shelf { counter-reset: shelf; border-top: 1px solid var(--line); }
.shelf__item {
    position: relative;
    display: grid; grid-template-columns: 4.5rem 7rem minmax(0, 1fr) auto; gap: 0 clamp(1rem, 3vw, 2.5rem);
    align-items: start; padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    border-bottom: 1px solid var(--line);
}
.shelf__item::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.shelf__item:hover::before, .shelf__item:focus-within::before { transform: scaleX(1); }
.shelf__num {
    font-family: var(--display); font-size: 2.6rem; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(170, 160, 255, .45);
    transition: color .4s, -webkit-text-stroke-color .4s;
}
.shelf__item:hover .shelf__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.shelf__icon .app-icon { width: 7rem; height: 7rem; transition: transform .5s var(--ease); }
.shelf__item:hover .shelf__icon .app-icon { transform: rotate(-4deg) scale(1.04); }
.shelf__title { margin-top: .4rem; font-family: var(--display); font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.shelf__tagline { margin-top: .6rem; color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.shelf__desc { max-width: 40rem; margin-top: .55rem; color: var(--ink-soft); }
.shelf__shots { display: flex; gap: .6rem; }
.shelf__shots img {
    width: 6.4rem; aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
    border-radius: 12px; border: 1px solid var(--line); opacity: .82;
    transition: transform .5s var(--ease), opacity .4s;
}
.shelf__shots img:nth-child(2) { margin-top: 1.5rem; }
.shelf__item:hover .shelf__shots img { opacity: 1; transform: translateY(-.4rem); }

/* ---------- Upcoming ---------- */
.upcoming__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.upcoming__item {
    overflow: hidden; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 20px;
    background: var(--bg-sunk);
}
.upcoming__art { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; filter: saturate(.85); }
.upcoming__body { padding: 1.5rem; }
.upcoming__title { margin-top: .7rem; font-family: var(--display); font-size: 1.9rem; line-height: 1; }

/* ---------- Studio ---------- */
.studio__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.studio__grid .section-head { margin: 0; position: sticky; top: 7rem; }
.studio__text { display: grid; gap: 1.25rem; color: var(--ink-soft); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.studio__text p:first-child { color: var(--ink); }
.studio__parent { color: var(--muted); font-size: 1rem; }
.studio__parent a { color: var(--ink); font-weight: 700; text-decoration-color: var(--violet); text-underline-offset: .2em; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact .eyebrow::before { display: none; }
.contact .section-lead { margin-inline: auto; }
.contact__mail {
    display: inline-block; margin-top: 2.2rem;
    font-family: var(--display); font-size: clamp(1.6rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -.02em;
    text-decoration: none; overflow-wrap: anywhere;
    background: var(--brand-gradient) left bottom / 100% 3px no-repeat; padding-bottom: .25rem;
    transition: background-size .4s var(--ease);
}
.contact__mail:hover { background-size: 100% 100%; color: #fff; }
.contact__social { margin-top: 2.4rem; }
.contact__follow { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }
:lang(ja) .contact__follow { letter-spacing: .12em; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.social__link {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .5rem 1.1rem .5rem .85rem;
    border: 1px solid var(--line-strong); border-radius: 10px;
    color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none;
    transition: border-color .25s, transform .25s var(--ease), color .25s;
}
.social__link .icon { flex: none; color: var(--ink-soft); transition: color .25s; }
.social__link:hover { border-color: var(--magenta); transform: translateY(-2px); }
.social__link:hover .icon { color: var(--magenta); }
.social--icons { justify-content: flex-start; margin-top: 1.25rem; gap: .5rem; }
.social--icons .social__link { width: 2.75rem; min-height: 2.75rem; padding: 0; justify-content: center; border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunk); }
.site-footer__top {
    width: var(--wrap); margin: 0 auto; padding: 3rem 0 2rem;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: start;
}
.site-footer__logo img { width: 9.5rem; mix-blend-mode: lighten; }
.site-footer__nav { display: flex; flex-direction: column; gap: .45rem; padding-top: 1rem; }
.site-footer__nav a, .site-footer__langs a, .site-footer__settings { color: var(--ink-soft); text-decoration: none; }
.site-footer__nav a:hover, .site-footer__langs a:hover, .site-footer__settings:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.site-footer__settings { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }

/* Language and cookie panels stay in the document flow. Only reopened settings use a modal. */
.preferences [hidden] { display: none; }
.preferences__panel {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: .75rem 1.5rem; width: var(--wrap); margin: 0 auto .75rem; padding: .9rem 1.15rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-raised);
}
.preferences__panel > div:first-child { flex: 1 1 24rem; }
.preferences__panel h2 { font-size: 1.0625rem; font-weight: 700; }
.preferences__panel p { color: var(--ink-soft); font-size: 1rem; margin-top: .2rem; }
.preferences__panel p a { color: var(--ink); white-space: normal; }
.preferences__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.preferences__actions .btn {
    min-height: 2.75rem; padding: .45rem .8rem; background: transparent;
    font-size: .9375rem; text-align: center; white-space: normal; cursor: pointer;
}
.preferences__dialog {
    width: min(33rem, 100% - 2rem); max-height: calc(100% - 2rem); padding: 0;
    border: 0; border-radius: var(--radius); background: var(--bg-raised); color: var(--ink);
}
.preferences__dialog::backdrop { background: rgb(0 0 13 / .8); }
.preferences__dialog .preferences__panel { width: 100%; margin: 0; padding: 1.25rem; }
.site-footer__langs { display: grid; grid-template-columns: repeat(2, auto); gap: .35rem 1.5rem; padding-top: 1rem; font-size: .92rem; }
.site-footer__langs a[aria-current] { color: var(--cyan); }
.site-footer__legal {
    width: var(--wrap); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line);
    display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; line-height: 1.5;
}

/* ---------- Error page ---------- */
.error-page {
    position: relative; isolation: isolate; overflow: hidden;
    width: var(--wrap); margin: 0 auto; min-height: 70svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem;
    padding: 4rem 0;
}
.error-page .section-lead { margin-bottom: 1.8rem; }
.error-page .eyebrow::before { display: none; }

/* ---------- Reveal on scroll (enabled by site.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .shelf__shots { display: none; }
    .shelf__item { grid-template-columns: 3.5rem 6rem minmax(0, 1fr); }
    .shelf__icon .app-icon { width: 6rem; height: 6rem; }
}
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 1rem 0 4rem; gap: .5rem; }
    .hero__logo { order: -1; width: min(70vw, 20rem); }
    .hero__copy { text-align: left; }
    .featured__grid { grid-template-columns: 1fr; grid-template-areas: "cover" "body" "shots"; }
    .shots { grid-auto-columns: minmax(8.5rem, 24%); margin-top: 1rem; }
    .studio__grid { grid-template-columns: 1fr; }
    .studio__grid .section-head { position: static; }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
    .pixel--1 { right: 18%; top: 22%; } .pixel--2 { right: 12%; top: 16%; } .pixel--3 { right: 5%; top: 9%; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .nav { display: none; }
    .lang { margin-left: auto; }
    .site-header__inner { height: 4rem; }
    .brand img { width: 3rem; }
    .hero__cta .btn { flex: 1 1 auto; }
    .featured__frame { border-radius: 18px; }
    .featured__frame::before { top: 1.5rem; bottom: auto; height: 3.5rem; }
    .app-icon { width: 4.5rem; height: 4.5rem; }
    .shots { grid-auto-columns: 40%; }
    .shelf__item { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 1rem; }
    .shelf__num { position: absolute; right: 0; top: 1.5rem; font-size: 1.9rem; }
    .shelf__icon .app-icon { width: 4.5rem; height: 4.5rem; }
    .shelf__main { grid-column: 1 / -1; margin-top: 1rem; }
    .shelf__icon { grid-column: 1; }
    .get { gap: .9rem 1.25rem; }
    .site-footer__top { grid-template-columns: 1fr; }
    .social__link { padding: .5rem .95rem .5rem .75rem; }
}
@media (hover: none) {
    .shelf__item:hover .shelf__icon .app-icon, .shelf__item:hover .shelf__shots img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media print {
    .site-header, .hero__orbit, .shots { display: none; }
    body { background: #fff; color: #000; }
}
