/* =========================================================================
   Kurova Studios — hoja de estilos única (portada, legales y 404)
   Paleta sacada del logo: brasa (naranja), pizarra, hueso y un toque lavanda.
   ========================================================================= */

:root {
    /* Tinta (secciones oscuras) */
    --ink: #0b0e13;
    --ink-2: #11151c;
    --ink-3: #181e27;
    --ink-line: rgba(255, 255, 255, .08);

    /* Papel (secciones claras) */
    --paper: #fbfaf7;
    --bone: #f3f1ec;
    --bone-2: #e9e6df;
    --line: rgba(29, 29, 31, .08);

    /* Texto */
    --text: #1d1d1f;
    --text-2: #5f5f66;
    --text-3: #86868b;
    --text-inv: #f5f5f7;
    --text-inv-2: #a1a1a6;
    --text-inv-3: #6e6e73;

    /* Marca */
    --ember: #ff6a1f;
    --ember-hi: #ff8a2b;
    --ember-glow: #ffa24a;
    --ember-deep: #c2330a;
    --ember-burnt: #6e1a04;
    --slate: #2f3b48;
    --slate-2: #485468;
    --lavender: #a08ad8;

    --grad-ember: linear-gradient(135deg, #ff9a3c 0%, #ff6a1f 45%, #e8430f 100%);

    /* Forma */
    --r-xl: 32px;
    --r-l: 26px;
    --r-m: 18px;
    --gutter: clamp(16px, 4vw, 24px);
    --wrap: 1120px;
    --nav-h: 52px;

    /* Movimiento */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --track-display: -.035em;
    --track-title: -.022em;
}

/* Escrituras sin espacios entre letras apretadas: tipografía propia y sin tracking negativo */
html[lang="th"] { --font: "Inter", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; --track-display: 0; --track-title: 0; }
html[lang="my"] { --font: "Inter", "Noto Sans Myanmar", "Myanmar Text", Padauk, sans-serif; --track-display: 0; --track-title: 0; }
html[lang="hi"] { --font: "Inter", "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif; --track-display: 0; --track-title: 0; }
html[lang="my"] body { line-height: 1.85; }
html[lang="my"] .display, html[lang="my"] .hero__title, html[lang="my"] .tile__title { line-height: 1.45; }
html[lang="th"] .display, html[lang="th"] .hero__title, html[lang="hi"] .display, html[lang="hi"] .hero__title { line-height: 1.3; }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    font-optical-sizing: auto;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(255, 106, 31, .25); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
    position: fixed; top: 10px; left: 10px; z-index: 100;
    padding: 10px 16px; border-radius: 999px;
    background: var(--ember); color: #fff; font-weight: 600; font-size: 14px;
    transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------- tonos */
.tone-dark { background: var(--ink); color: var(--text-inv); color-scheme: dark; }
.tone-light { background: var(--paper); }
.tone-bone { background: var(--bone); }

/* grano sutil para que el negro no se vea plano */
.tone-dark { position: relative; isolation: isolate; }
.tone-dark::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tile.tone-dark::after { border-radius: inherit; }

/* ---------------------------------------------------------- tipografía */
.eyebrow {
    font-size: 15px; font-weight: 600; letter-spacing: .01em;
    color: var(--ember);
    margin-bottom: 14px;
}
.tone-dark .eyebrow { color: var(--ember-glow); }
.eyebrow--pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--text-inv-2);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.eyebrow--pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ember); box-shadow: 0 0 12px var(--ember);
}

.display {
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: var(--track-display);
    color: var(--text);
    text-wrap: balance;
}
.display--light {
    background: linear-gradient(180deg, #ffffff 0%, #c9c4bc 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display--xl { font-size: clamp(56px, 10vw, 128px); line-height: 1; }
.display--left { text-align: left; }

.lead {
    margin-top: 22px;
    font-size: clamp(19px, 1.9vw, 23px);
    line-height: 1.45;
    font-weight: 450;
    letter-spacing: -.012em;
    color: var(--text-2);
    max-width: 640px;
    text-wrap: pretty;
}
.lead--dark { color: var(--text-inv-2); }
.lead--left { margin-inline: 0; }

/* palabras que se encienden al hacer scroll */
[data-words] .w { opacity: var(--o, .18); transition: opacity .25s linear; }
.no-motion [data-words] .w, .no-js [data-words] .w { opacity: 1; }

/* ---------------------------------------------------------- botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 24px;
    border-radius: 999px;
    font-size: 17px; font-weight: 500; letter-spacing: -.01em;
    transition: transform .4s var(--ease-out), background-color .25s, box-shadow .4s var(--ease-out);
    will-change: transform;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary {
    color: #fff;
    background: var(--ember);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 30px -10px rgba(255, 106, 31, .7);
}
.btn--primary:hover { background: #ff7a33; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 40px -12px rgba(255, 106, 31, .85); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 18px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 17px; font-weight: 500; color: var(--ember-glow);
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------- navegación */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    color: var(--text-inv);
    transition: color .4s var(--ease);
}
.nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(11, 14, 19, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav[data-tone="light"] { color: var(--text); }
.nav[data-tone="light"]::before { background: rgba(251, 250, 247, .78); border-bottom-color: rgba(0, 0, 0, .07); }

.nav__bar {
    height: var(--nav-h);
    width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.nav__brand img { width: 34px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }

.nav__links { display: flex; gap: 32px; font-size: 13px; }
.nav__links a { opacity: .78; transition: opacity .2s; padding-block: 6px; position: relative; }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"]::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: var(--ember);
}

.nav__actions { display: flex; align-items: center; gap: 6px; }

/* selector de idioma */
.lang { position: relative; }
.lang__btn {
    display: flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
    opacity: .85; transition: opacity .2s, background-color .2s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { opacity: 1; background: rgba(128, 128, 128, .14); }
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 210px; padding: 6px;
    border-radius: 16px;
    background: rgba(252, 251, 249, .9);
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .06);
    color: var(--text);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu button {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left;
}
.lang__menu button:hover, .lang__menu button:focus-visible { background: rgba(0, 0, 0, .05); outline: none; }
.lang__menu button small { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--text-3); }
.lang__menu button[aria-checked="true"] { font-weight: 600; }
.lang__menu button[aria-checked="true"] small { color: var(--ember); }

/* menú móvil */
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; border-radius: 999px; }
.nav__toggle span {
    position: absolute; left: 12px; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor;
    transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 22px; }
.menu-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

.nav__sheet { display: none; }

/* ---------------------------------------------------------- hero */
.hero {
    min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    padding: calc(var(--nav-h) + 48px) 0 96px;
    text-align: center;
    overflow: hidden;
}
.hero__glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(50% 40% at 50% 42%, rgba(255, 106, 31, .30) 0%, rgba(255, 106, 31, 0) 70%),
        radial-gradient(35% 30% at 28% 70%, rgba(160, 138, 216, .14) 0%, rgba(160, 138, 216, 0) 70%),
        radial-gradient(60% 50% at 50% 110%, rgba(72, 84, 104, .45) 0%, rgba(72, 84, 104, 0) 70%);
    transform: translate3d(0, var(--glow-y, 0), 0);
}
.hero__inner {
    width: min(var(--wrap), 100% - 2 * var(--gutter));
    display: flex; flex-direction: column; align-items: center;
}
.hero__logo { margin: 28px 0 8px; }
.hero__logo img {
    width: min(640px, 86vw, 60vh);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)) drop-shadow(0 0 80px rgba(255, 106, 31, .18));
    transform: translate3d(0, var(--logo-y, 0), 0) scale(var(--logo-s, 1));
    opacity: var(--logo-o, 1);
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.hero__title {
    margin-top: 6px;
    font-size: clamp(44px, 7.6vw, 96px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: var(--track-display);
    background: linear-gradient(180deg, #ffffff 10%, #cfc9c0 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-wrap: balance;
}
.hero__lead {
    margin-top: 22px; max-width: 620px;
    font-size: clamp(19px, 2vw, 24px); line-height: 1.42; letter-spacing: -.012em;
    color: var(--text-inv-2);
    text-wrap: pretty;
}
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }

.hero__scroll {
    position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
    width: 24px; height: 38px; border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, .22);
}
.hero__scroll span {
    position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
    background: rgba(255, 255, 255, .6);
    animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------------------------------------------------------- secciones */
.section { padding-block: clamp(96px, 13vw, 168px); }
.section__head { margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head--center .lead { margin-inline: auto; }

/* ---------------------------------------------------------- bento */
.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}
.tile {
    position: relative; overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(28px, 3.4vw, 44px);
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 20px 50px -30px rgba(17, 21, 28, .25);
    display: flex; flex-direction: column;
    min-height: 440px;
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.tile.is-tilting { transition: transform .12s linear, box-shadow .6s var(--ease-out); }
.tile:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 30px 70px -30px rgba(17, 21, 28, .35); }
.tile::before { /* luz que sigue al puntero */
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
.tile:hover::before { opacity: 1; }

.tile__copy { position: relative; z-index: 2; max-width: 440px; }
.tile__kicker { font-size: 14px; font-weight: 600; color: var(--ember); margin-bottom: 10px; }
.tile__title {
    font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; font-weight: 700;
    letter-spacing: var(--track-title);
    text-wrap: balance;
}
.tile__text { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* acción: tarjeta oscura con el puño */
.tile--action { grid-column: span 4; min-height: 540px; background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(11, 14, 19, .6); }
.tile--action::after { opacity: .06; }
.tile--action .tile__kicker { color: var(--ember-glow); }
.tile--action .tile__title { color: var(--text-inv); }
.tile--action .tile__text { color: var(--text-inv-2); max-width: 340px; }
.tile--action .tile__punch {
    position: absolute; z-index: 1;
    right: -4%; bottom: -8%;
    width: min(64%, 520px);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
    transform: rotate(-8deg) translate3d(var(--px, 0), var(--py, 0), 0);
    transition: transform .8s var(--ease-out);
}
.tile--action:hover .tile__punch { transform: rotate(-4deg) scale(1.04) translate3d(var(--px, 0), var(--py, 0), 0); }
.tile--action > .tile__copy::before { /* brasa detrás del puño */
    content: ""; position: absolute; right: -90%; bottom: -120%; width: 520px; height: 520px; z-index: -1;
    background: radial-gradient(circle, rgba(255, 106, 31, .38), rgba(255, 106, 31, 0) 65%);
    pointer-events: none;
}

/* móvil: teléfono dibujado */
.tile--mobile { grid-column: span 2; justify-content: space-between; gap: 28px; }
.phone {
    position: relative; align-self: center;
    width: 112px; height: 196px; border-radius: 26px;
    background: linear-gradient(160deg, #222a35, #0f131a);
    box-shadow: 0 0 0 5px #e9e6df, 0 0 0 6px #d8d4cc, 0 24px 40px -18px rgba(11, 14, 19, .5);
    overflow: hidden;
}
.phone::before { /* pantalla */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(80% 50% at 50% 30%, rgba(255, 106, 31, .55), transparent 70%),
        radial-gradient(60% 40% at 50% 100%, rgba(160, 138, 216, .35), transparent 70%);
}
.phone__notch { position: absolute; top: 8px; left: 50%; width: 34px; height: 9px; margin-left: -17px; border-radius: 6px; background: #0b0e13; z-index: 1; }
.phone__tap {
    position: absolute; left: 26%; bottom: 22%; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
    animation: tap 2.4s var(--ease) infinite;
}
.phone__tap--2 { left: auto; right: 22%; bottom: 30%; animation-delay: 1.2s; background: var(--ember-glow); }
@keyframes tap {
    0% { transform: scale(.6); opacity: 0; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
    15% { transform: scale(1); opacity: 1; }
    60% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); opacity: .9; }
    100% { transform: scale(.8); opacity: 0; box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

/* arte: muestras de color */
.tile--art { grid-column: span 2; justify-content: space-between; gap: 28px; }
.swatches { display: flex; align-self: center; padding-block: 34px; }
.swatches span {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--c);
    margin-left: -16px;
    box-shadow: 0 0 0 4px #fff, 0 14px 24px -12px rgba(17, 21, 28, .45);
    transition: transform .6s var(--ease-out);
}
.swatches span:first-child { margin-left: 0; }
.tile--art:hover .swatches span { transform: translateY(-6px); }
.tile--art:hover .swatches span:nth-child(2) { transition-delay: .04s; }
.tile--art:hover .swatches span:nth-child(3) { transition-delay: .08s; }
.tile--art:hover .swatches span:nth-child(4) { transition-delay: .12s; }
.tile--art:hover .swatches span:nth-child(5) { transition-delay: .16s; }

/* gratis: brasa */
.tile--free {
    grid-column: span 4; justify-content: flex-end;
    background: var(--grad-ember); color: #fff;
    box-shadow: 0 30px 60px -30px rgba(232, 67, 15, .7);
}
.tile--free .tile__kicker { color: rgba(255, 255, 255, .85); }
.tile--free .tile__text { color: rgba(255, 255, 255, .88); max-width: 380px; }
.tile__play {
    position: absolute; right: -40px; top: -30px; width: 360px; height: 360px;
    fill: rgba(255, 255, 255, .14);
    transform: rotate(-12deg);
    transition: transform 1s var(--ease-out);
}
.tile--free:hover .tile__play { transform: rotate(-4deg) scale(1.05); }

/* ---------------------------------------------------------- juegos */
.game + .game { margin-top: clamp(96px, 12vw, 160px); padding-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--ink-line); }

.game__hero {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--r-xl);
    aspect-ratio: 1024 / 500;
    background: var(--ink-3);
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px var(--ink-line);
}
.game__hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.6s var(--ease-out); }
.game__hero:hover img { transform: scale(1.04); }
.game__hero::after { /* foco del puntero */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .10), transparent 50%);
    opacity: 0; transition: opacity .5s;
}
.game__hero:hover::after { opacity: 1; }

.game__info {
    margin-top: clamp(40px, 6vw, 72px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.game__icon {
    width: 88px; height: 88px; margin-bottom: 22px;
    border-radius: 22%;
    image-rendering: pixelated;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 40px -18px rgba(0, 0, 0, .9);
}
.game--alt .game__info { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.game--alt .game__intro { order: 2; }
.game__genre { font-size: 14px; font-weight: 600; color: var(--ember-glow); letter-spacing: .01em; }
.game__name {
    margin-top: 8px;
    font-size: clamp(40px, 5.4vw, 64px); line-height: 1; font-weight: 750; letter-spacing: -.035em;
    color: var(--text-inv);
}
.game__tagline {
    margin-top: 14px;
    font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 650; letter-spacing: var(--track-title);
    background: linear-gradient(90deg, #ffb066, #ff6a1f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-wrap: balance;
}
.game__text { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--text-inv-2); max-width: 480px; text-wrap: pretty; }

.play {
    margin-top: 30px;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 9px 22px 9px 16px; min-height: 56px;
    border-radius: 14px;
    background: #000; color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8);
    transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.play:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .45); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9); }
.play:active { transform: scale(.98); }
.play svg { width: 26px; height: 26px; flex: none; }
.play__text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.play__small { font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.play__big { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.game__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game__features li {
    padding: 24px 22px 26px;
    border-radius: var(--r-m);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--ink-line);
    transition: background-color .3s, border-color .3s, transform .5s var(--ease-out);
}
.game__features li:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.game__features svg { width: 26px; height: 26px; margin-bottom: 16px; fill: none; stroke: var(--ember-glow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.game__features h4 { font-size: 17px; font-weight: 650; letter-spacing: -.012em; color: var(--text-inv); }
.game__features p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-inv-2); }

/* galería de capturas */
.gallery { position: relative; margin-top: clamp(48px, 6vw, 72px); }
.gallery__track {
    display: flex; align-items: flex-start; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 0;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: 6px; }
.gallery__track img {
    flex: none; scroll-snap-align: start;
    height: clamp(220px, 30vw, 400px); width: auto;
    border-radius: var(--r-m);
    background: var(--ink-3);
    box-shadow: 0 0 0 1px var(--ink-line), 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.gallery.is-end .gallery__track { -webkit-mask-image: none; mask-image: none; }
.gallery__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.gallery__btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: var(--text-inv);
    transition: background-color .2s, opacity .2s;
}
.gallery__btn:hover { background: rgba(255, 255, 255, .18); }
.gallery__btn[disabled] { opacity: .3; cursor: default; }
.gallery__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- estudio */
.studio {
    display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px);
}
.studio__mark { display: grid; place-items: center; }
.studio__mark img {
    width: min(100%, 400px);
    filter: drop-shadow(0 40px 50px rgba(17, 21, 28, .28));
    animation: float 9s ease-in-out infinite;
}
.values {
    margin-top: clamp(64px, 9vw, 112px);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.value {
    padding: 32px 30px 34px;
    border-radius: var(--r-l);
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 20px 40px -30px rgba(17, 21, 28, .25);
}
.value svg {
    width: 30px; height: 30px; margin-bottom: 22px;
    fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.value h3 { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.016em; text-wrap: balance; }
.value p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* ---------------------------------------------------------- contacto */
.contact { overflow: hidden; padding-block: clamp(120px, 16vw, 200px); }
.contact__glow {
    position: absolute; left: 50%; top: 55%; z-index: -1; pointer-events: none;
    width: 900px; height: 600px; translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(255, 106, 31, .28), rgba(255, 106, 31, 0));
}
.contact__cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact__mail { font-size: 15px; color: var(--text-inv-2); transition: color .2s; word-break: break-all; }
.contact__mail:hover { color: var(--text-inv); }

/* ---------------------------------------------------------- pie */
.foot { background: var(--bone); color: var(--text-2); font-size: 13px; padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { width: 48px; }
.foot__brand > span { display: flex; flex-direction: column; gap: 2px; }
.foot__brand strong { color: var(--text); font-size: 15px; font-weight: 600; }
.foot__cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.foot__cols div { display: flex; flex-direction: column; gap: 10px; }
.foot__cols h4 { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: .01em; margin-bottom: 2px; }
.foot__cols a { transition: color .2s; }
.foot__cols a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot__mail { word-break: break-all; }
.foot__bottom { padding-top: 22px; color: var(--text-3); font-size: 12px; }

/* ---------------------------------------------------------- legales */
.page-legal { background: var(--paper); }
.legal-hero {
    padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 5vw, 64px);
    background:
        radial-gradient(50% 120% at 85% 0%, rgba(255, 106, 31, .10), transparent 70%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}
.legal-back {
    display: inline-flex; align-items: center; gap: 4px; margin-bottom: 28px;
    font-size: 14px; font-weight: 500; color: var(--ember);
}
.legal-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.legal-back:hover svg { transform: translateX(-3px); }
.legal-hero h1 {
    font-size: clamp(40px, 6vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: var(--track-display);
    text-wrap: balance;
}
.legal-date {
    display: inline-flex; margin-top: 20px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--text-2);
    background: rgba(0, 0, 0, .045);
}
.legal-intro { margin-top: 26px; max-width: 760px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--text-2); letter-spacing: -.01em; }
.legal-intro strong { color: var(--text); font-weight: 600; }

.legal-body { padding-block: clamp(48px, 6vw, 80px) clamp(80px, 10vw, 128px); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); font-size: 13px; }
.toc p { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a {
    display: block; padding: 6px 0 6px 16px; margin-left: -1px;
    color: var(--text-3); border-left: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--ember); }

.prose { max-width: 720px; }
.prose section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: var(--track-title); margin-bottom: 16px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: #3a3a3f; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--ember-deep); text-decoration: underline; text-decoration-color: rgba(194, 51, 10, .3); text-underline-offset: 3px; word-break: break-word; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .mail-card {
    margin-top: 18px; display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 20px; border-radius: 16px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 12px 30px -20px rgba(17, 21, 28, .3);
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
    word-break: break-all;
}
.prose .mail-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(17, 21, 28, .4); }
.prose .mail-card svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.prose .related {
    margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 24px 28px; border-radius: var(--r-l);
    background: var(--ink); color: var(--text-inv);
    text-decoration: none;
    transition: transform .5s var(--ease-out);
}
.related:hover { transform: translateY(-2px); }
.related span { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.related svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ember-glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- 404 */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.nf img { width: min(360px, 70vw); margin: 0 auto 28px; transform: rotate(-10deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
.nf .display { max-width: 820px; margin-inline: auto; }
.nf .btn { margin-top: 36px; }

/* ---------------------------------------------------------- apariciones */
.js .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal.is-in { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
    .tile--action, .tile--free { grid-column: span 6; }
    .tile--mobile, .tile--art { grid-column: span 3; }
    .game__info, .game--alt .game__info { grid-template-columns: 1fr; }
    .game--alt .game__intro { order: 0; }
    .legal-grid { grid-template-columns: 1fr; }
    .toc { display: none; }
    .prose { max-width: none; }
}

@media (max-width: 760px) {
    :root { --nav-h: 48px; }
    .nav__links { display: none; }
    .nav__toggle { display: block; }
    .nav__brand span { display: none; }

    .nav__sheet {
        display: flex; flex-direction: column; gap: 4px;
        position: fixed; inset: var(--nav-h) 0 0; z-index: -2;
        padding: 28px calc(var(--gutter) + 8px);
        background: rgba(11, 14, 19, .92);
        -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
        color: var(--text-inv);
        opacity: 0; visibility: hidden;
        transition: opacity .35s var(--ease), visibility 0s .35s;
    }
    .nav[data-tone="light"] .nav__sheet { background: rgba(251, 250, 247, .94); color: var(--text); }
    .nav__sheet a {
        font-size: 30px; font-weight: 650; letter-spacing: -.02em; padding: 8px 0;
        opacity: 0; transform: translateY(-8px);
        transition: opacity .4s var(--ease), transform .5s var(--ease-out);
    }
    .menu-open .nav__sheet { opacity: 1; visibility: visible; transition-delay: 0s; }
    .menu-open .nav__sheet a { opacity: 1; transform: none; }
    .menu-open .nav__sheet a:nth-child(2) { transition-delay: .04s; }
    .menu-open .nav__sheet a:nth-child(3) { transition-delay: .08s; }
    .menu-open .nav__sheet a:nth-child(4) { transition-delay: .12s; }
    .menu-open { overflow: hidden; }

    .bento { gap: 14px; }
    .tile { min-height: 0; border-radius: var(--r-l); }
    .tile--mobile, .tile--art { grid-column: span 6; }
    .tile--action { min-height: 520px; justify-content: flex-start; }
    .tile--action .tile__punch { width: 78%; right: -8%; bottom: -6%; }
    .tile--free { min-height: 340px; }
    .tile__play { width: 260px; height: 260px; }
    .phone { width: 96px; height: 168px; }

    .game__hero { border-radius: var(--r-l); }
    .game__features { grid-template-columns: 1fr; gap: 10px; }
    .game__features li { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; padding: 18px; }
    .game__features svg { margin: 2px 0 0; grid-row: span 2; }
    .gallery__track { gap: 10px; -webkit-mask-image: none; mask-image: none; }
    .gallery__track img { height: 46vw; width: auto; }
    .gallery__nav { display: none; }

    .studio { grid-template-columns: 1fr; }
    .studio__mark { order: -1; }
    .studio__mark img { width: min(64%, 260px); }
    .values { grid-template-columns: 1fr; gap: 14px; }

    .foot__top { flex-direction: column; }
    .foot__cols { gap: 28px 40px; }

    .related { padding: 20px 22px; }
    .related span { font-size: 17px; }
}

@media (max-width: 380px) {
    .swatches span { width: 52px; height: 52px; }
}

/* ---------------------------------------------------------- movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
}
