/* Oxira default theme. Signature: layered liquid "tubes" (hard color bands, no gradients). Everything else stays quiet. */
:root {
    --accent: #2563eb;
    --bg: #f3f6fa;
    --surface: #ffffff;
    --fg: #172033;
    --muted: #556074;
    --line: #d8dee8;
    --link: var(--accent);
    --glass: rgba(23, 32, 51, .16);
    --l1: var(--accent);
    --l2: #12a39a;
    --l3: #f2b134;
    --l4: #e0527a;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
    --radius: 1.25rem;
    --wrap: 72rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
    --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.05rem);
    --step-4: clamp(2.6rem, 1.6rem + 4.5vw, 4.75rem);
}
.theme-dark {
    --bg: #0d1424;
    --surface: #151f35;
    --fg: #e9eef6;
    --muted: #9aa6ba;
    --line: #24304a;
    --link: color-mix(in srgb, var(--accent) 55%, #ffffff);
    --glass: rgba(233, 238, 246, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--step-0)/1.6 var(--font-body); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--l3); outline-offset: 3px; border-radius: .25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: .5rem 1rem; }

.site-header, .site-footer, main { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem; }
main { padding-bottom: 4rem; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { font-family: var(--font-heading); font-weight: 800; font-size: var(--step-1); text-decoration: none; color: var(--fg); letter-spacing: -.01em; }
.lang-switch { display: flex; gap: .25rem; }
.lang-switch a { padding: .3rem .6rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; }
.lang-switch a[aria-current] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

.lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.button, .store {
    display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.3rem; border-radius: 999px;
    background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
}
.button:hover, .store:hover { filter: brightness(1.08); }

/* Home: the tubes are the one loud element */
.hero { display: grid; gap: 2.5rem; align-items: end; padding: 3rem 0 4rem; }
.hero h1 { font-size: var(--step-4); max-width: 12ch; }
.tubes { display: flex; gap: clamp(.75rem, 2vw, 1.25rem); align-items: flex-end; justify-content: flex-start; }
.tube {
    display: flex; flex-direction: column-reverse; width: clamp(3.2rem, 9vw, 4.6rem); height: clamp(12rem, 34vw, 17rem);
    padding: .3rem; border: 3px solid var(--glass); border-top: 0; border-radius: 0 0 999px 999px; overflow: hidden;
}
.tube i { display: block; flex: 0 0 22%; }
.tube i:first-child { border-radius: 0 0 999px 999px; }
.tube .l1 { background: var(--l1); }
.tube .l2 { background: var(--l2); }
.tube .l3 { background: var(--l3); }
.tube .l4 { background: var(--l4); }
@media (min-width: 52rem) {
    .hero { grid-template-columns: 1.3fr 1fr; }
    .tubes { justify-content: flex-end; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero .tube i { animation: pour .9s cubic-bezier(.2, .8, .2, 1) both; }
    .hero .tube:nth-child(2) i { animation-delay: .12s; }
    .hero .tube:nth-child(3) i { animation-delay: .24s; }
    .hero .tube:nth-child(4) i { animation-delay: .36s; }
    @keyframes pour { from { transform: translateY(120%); } }
}

.games h2 { margin-bottom: 1.5rem; }
.game-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.game-card { display: grid; gap: .35rem; text-decoration: none; color: var(--fg); }
.game-card img { width: 100%; max-width: 9rem; aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); transition: transform .2s; }
.game-card:hover img { transform: translateY(-3px); }
.game-card .name { font-family: var(--font-heading); font-weight: 800; font-size: var(--step-1); line-height: 1.2; }
.game-card .tagline { color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); }

/* Game page */
.game { --game-accent: var(--accent); --game-accent-2: var(--l2); }
.pour { display: flex; height: .9rem; margin: .5rem 0 2rem; border-radius: 999px; overflow: hidden; }
.pour i { flex: 2; background: var(--game-accent); }
.pour i + i { flex: 1; background: var(--game-accent-2); }
.game-banner { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.game-body { display: grid; gap: 2.5rem; }
.game-title { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.game-title h1 { margin: 0; }
.game-icon { width: clamp(5rem, 14vw, 7rem); border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.tagline { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.4; margin: .35rem 0 0; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.store { background: var(--game-accent); }
.store.soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
.prose { max-width: 38rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.game-video { margin: 2rem 0; }
.yt-facade { position: relative; display: block; max-width: 40rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: #172033; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; }
.yt-play::before { content: ""; border-left: .7em solid currentColor; border-top: .42em solid transparent; border-bottom: .42em solid transparent; }
.yt-frame { width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.shots { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { height: min(30rem, 70vh); width: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.game-links { margin-top: 2rem; font-size: .95rem; }
@media (max-width: 59.99rem) {
    /* small screens: screenshots right after the description, trailer and links after them */
    .game-body { gap: 0; }
    .game-main { display: contents; }
    .game-shots { order: 1; margin-bottom: 1rem; }
    .game-video, .game-links { order: 2; }
    .shots img { height: min(26rem, 60vh); }
}
@media (min-width: 60rem) {
    .layout-portrait-gallery .game-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
    .layout-portrait-gallery .game-shots { position: sticky; top: 1rem; }
    .layout-banner .shots img { height: 20rem; }
}

/* Text pages */
.privacy, .page { max-width: 42rem; padding-top: 1.5rem; }
.privacy h1, .page h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-1); margin-top: 2em; }
.updated, .crumb { color: var(--muted); font-size: .95rem; }
.crumb a { color: var(--muted); }

/* 404 */
.error-page { padding: 3rem 0; }
.tubes-small .tube { height: 8rem; width: 3rem; }
.tubes-small .tube i { flex-basis: 30%; }
.error-page .tubes { margin-bottom: 2rem; }
