/* S games: un solo archivo de estilos, tres temas por clase en <body>.
   .t-studio = estudio (sobrio) · .t-gan = Good as New (cálido) · .t-bs = Borrowed Seconds (neón oscuro).
   Sin fuentes externas: solo fuentes del sistema. tools/generar_sitios.py copia este archivo a sites/*. */

/* ---------- variables: estudio (por defecto) */
:root{
  color-scheme:light dark;
  --bg:#f5f4f1;--bg2:#ecebe6;--fg:#1c1c1e;--muted:#55555b;--accent:#24527a;--accent-fg:#fff;
  --card:#fff;--line:#dcdad3;--chip:#e6e4dd;
  --head:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --size:17px;--radius:16px;--wrap:760px;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#141416;--bg2:#1c1c1f;--fg:#f0f0f2;--muted:#a6a6ad;--accent:#8cc0ec;--accent-fg:#0b1a26;
  --card:#1f1f23;--line:#33333a;--chip:#2a2a30;
}}

/* ---------- Good as New: crema, latón y terracota del ícono; letra grande */
.t-gan{
  --bg:#f7efe2;--bg2:#efe2cd;--fg:#3a2920;--muted:#65503f;--accent:#9a3a24;--accent-fg:#fff8ee;
  --card:#fffaf2;--line:#e2d2b9;--chip:#f1dcc4;--brass:#c3913f;
  --head:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --body:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --size:19px;--radius:20px;
}
@media (prefers-color-scheme:dark){.t-gan{
  --bg:#211612;--bg2:#2c1e18;--fg:#f4e9d8;--muted:#cdb9a2;--accent:#f0a47e;--accent-fg:#2a140c;
  --card:#2e211a;--line:#4a372b;--chip:#3d2a20;--brass:#d6a75a;
}}

/* ---------- Borrowed Seconds: siempre oscuro, cian y magenta */
/*BS-DEFAULT*/.t-bs{
  color-scheme:dark;
  --bg:#05070c;--bg2:#0a0f18;--fg:#eaf7ff;--muted:#a3b6c6;--accent:#3ff0ff;--accent-fg:#02161a;
  --card:#0b111b;--line:#1b2a3a;--chip:#12202c;--hot:#ff4fb3;
  --head:"Avenir Next Condensed","DIN Condensed","Arial Narrow",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --size:17px;--radius:14px;
}

/* ---------- base */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:var(--size)/1.6 var(--body);overflow-x:clip;
  -webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
main,footer{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{text-decoration-thickness:.14em}
a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
img{max-width:100%;height:auto}
h1,h2,h3{font-family:var(--head);line-height:1.2;letter-spacing:-.01em}
h1{font-size:clamp(2rem,6vw,2.6rem);margin:36px 0 10px}
h2{font-size:1.35rem;margin:36px 0 8px}
p,li{max-width:66ch}
ul{padding-left:1.25em}
li{margin:.35em 0}
li::marker{color:var(--accent)}
strong{font-weight:650}
.muted{color:var(--muted)}

/* cabecera: de borde a borde, con el contenido alineado al texto */
header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  padding:14px max(20px,calc((100% - var(--wrap))/2 + 20px));
  background:color-mix(in srgb,var(--bg) 88%,transparent);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:5;-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px)}
header a.brand{display:inline-flex;align-items:center;gap:10px;font:700 1.1rem/1 var(--head);color:var(--fg);text-decoration:none}
header a.brand::before{content:"";width:30px;height:30px;flex:none;background:url(/favicon.svg) center/contain no-repeat}
header a.brand.app::before{display:none}
header a.brand .ent{margin-left:calc(.28em - 10px)}
@media (max-width:519px){header a.brand .ent{display:none}}
header a.brand img{width:30px;height:30px;border-radius:8px;display:block}
nav{display:flex;flex-wrap:wrap;gap:8px}
nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;
  border:1px solid var(--line);color:var(--fg);text-decoration:none;font-size:.95rem;font-weight:550;background:var(--card)}
nav a:hover{border-color:var(--accent);color:var(--accent)}

footer{padding-top:28px;padding-bottom:44px;margin-top:56px;color:var(--muted);font-size:.92rem;border-top:1px solid var(--line)}
footer a{color:inherit}

/* tarjetas (preguntas frecuentes, etc.) */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;margin:16px 0}
.card h2{margin:0 0 6px;font-size:1.15rem}
.card p{margin:0}

/* ---------- landing: portada */
.hero{display:grid;gap:18px;justify-items:start;padding:44px 0 12px}
.hero .icon{width:128px;height:128px;border-radius:22.5%;display:block}
.hero h1{margin:4px 0 0;font-size:clamp(2.4rem,9vw,3.6rem);line-height:1.05}
.hero .tag{margin:0;font:600 clamp(1.2rem,4.2vw,1.5rem)/1.3 var(--head);color:var(--accent)}
.hero .pitch{margin:4px 0 0;font-size:1.12em}
@media (min-width:720px){
  .hero{grid-template-columns:auto 1fr;column-gap:32px;align-items:center;padding-top:64px}
  .hero .icon{grid-row:span 4;width:176px;height:176px}
}
@media (min-width:720px){.t-studio .hero{grid-template-columns:1fr;padding-top:72px}.t-studio .hero h1{font-size:4rem}}
.soon{display:inline-flex;align-items:center;gap:10px;margin:8px 0 0;padding:12px 18px;border-radius:999px;
  background:var(--chip);color:var(--fg);font-weight:650;max-width:none}
.soon::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--accent);flex:none}

/* características */
.feats{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:12px}
.feats li{margin:0;max-width:none;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px 18px 16px 52px;position:relative}
.feats li::before{content:"";position:absolute;left:20px;top:1.35em;width:14px;height:14px;border-radius:50%;
  background:var(--accent);opacity:.9}
@media (min-width:720px){.feats{grid-template-columns:1fr 1fr}}

/* galería de capturas (aparece sola cuando hay capturas aprobadas) */
.shots{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 14px;margin:32px 0 0}
.shots img{flex:none;width:min(62vw,240px);border-radius:18px;border:1px solid var(--line);scroll-snap-align:start}

/* enlaces de pie de landing (soporte, privacidad) */
.links{display:flex;flex-wrap:wrap;gap:10px;margin:32px 0 0;padding:0;list-style:none}
.links li{margin:0}
.links a{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;border-radius:999px;
  border:1px solid var(--line);background:var(--card);text-decoration:none;font-weight:600}
.links a:hover{border-color:var(--accent)}

/* insignias oficiales de tienda (cuando haya enlace) */
.badges{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:14px 0 0}
.badges img{height:48px;width:auto;display:block}

/* ---------- estudio: tarjetas de los juegos, cada una con su identidad */
.lead{font-size:1.15em;color:var(--muted);margin-top:0}
.games{display:grid;gap:18px;margin:28px 0}
@media (min-width:720px){.games{grid-template-columns:1fr 1fr}}
.game{border-radius:22px;padding:24px;display:grid;gap:10px;align-content:start;border:1px solid transparent}
.game img{width:84px;height:84px;border-radius:22.5%}
.game h2{margin:6px 0 0;font-size:1.6rem}
.game h2 a{color:inherit;text-decoration:none}
.game h2 a:hover{text-decoration:underline}
.game p{margin:0}
.game .glinks{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-weight:600}
.game .peek{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.game .peek img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;object-position:50% 45%;border-radius:14px;display:block}
.game.gan .peek img{border:1px solid #e2d2b9}
.game.bs .peek img{border:1px solid rgba(63,240,255,.3)}
.game.gan{background:#f7efe2;color:#3a2920;border-color:#e2d2b9}
.game.gan h2{font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif}
.game.gan a{color:#9a3a24}
.game.bs{background:radial-gradient(120% 90% at 100% 0,#0e2a33 0,#05070c 60%);color:#eaf7ff;border-color:#1b2a3a}
.game.bs h2{font-family:"Avenir Next Condensed","DIN Condensed","Arial Narrow",sans-serif;text-transform:uppercase;letter-spacing:.04em;
  text-shadow:0 0 18px rgba(63,240,255,.45)}
.game.bs a{color:#3ff0ff}
.game.bs img{box-shadow:0 0 28px rgba(63,240,255,.35)}
.game.gan img{box-shadow:0 6px 18px rgba(90,40,20,.25)}

/* ---------- toques de Good as New */
.t-gan h1{font-weight:600}
.t-gan .hero{position:relative}
.t-gan .hero .icon{box-shadow:0 10px 30px rgba(90,40,20,.28),0 0 0 6px var(--card),0 0 0 7px var(--brass)}
.t-gan :is(.hero,.hero2) .tag{font-style:italic;font-weight:500}
.t-gan .feats li::before{background:var(--brass);box-shadow:0 0 0 3px color-mix(in srgb,var(--brass) 30%,transparent)}
.t-gan main>h1{border-bottom:2px solid var(--brass);padding-bottom:10px}
.t-gan .card{box-shadow:0 1px 0 var(--line)}
.t-gan{background-image:radial-gradient(90% 60% at 50% -10%,var(--bg2),transparent 70%);background-repeat:no-repeat}

/* ---------- toques de Borrowed Seconds */
.t-bs{background:
  radial-gradient(70% 45% at 85% -5%,rgba(63,240,255,.16),transparent 70%),
  radial-gradient(60% 40% at 0% 15%,rgba(255,79,179,.12),transparent 70%),
  linear-gradient(rgba(63,240,255,.045) 1px,transparent 1px) 0 0/100% 32px,
  var(--bg);background-attachment:fixed,fixed,scroll,scroll}
.t-bs h1,.t-bs h2{font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.t-bs h1{text-shadow:0 0 22px rgba(63,240,255,.5)}
.t-bs h2{color:var(--fg)}
.t-bs main>h2::before{content:"";display:inline-block;width:18px;height:3px;margin:0 10px .3em 0;background:var(--hot);
  box-shadow:0 0 10px var(--hot);vertical-align:middle}
.t-bs .hero .icon{box-shadow:0 0 0 1px rgba(63,240,255,.5),0 0 40px rgba(63,240,255,.35),0 0 90px rgba(255,79,179,.18)}
.t-bs :is(.hero,.hero2) .tag{font-family:var(--mono);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--hot);
  text-shadow:0 0 14px rgba(255,79,179,.45)}
.t-bs .soon{font-family:var(--mono);font-size:.92em;text-transform:uppercase;letter-spacing:.04em;border:1px solid rgba(63,240,255,.45);
  background:rgba(63,240,255,.07)}
.t-bs .soon::before{background:var(--hot);box-shadow:0 0 10px var(--hot)}
.t-bs .feats li,.t-bs .card{background:rgba(11,17,27,.82);border-color:var(--line)}
.t-bs .feats li::before{border-radius:3px;transform:rotate(45deg);width:11px;height:11px;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.t-bs .feats li:nth-child(even)::before{background:var(--hot);box-shadow:0 0 10px var(--hot)}
.t-bs .card h2{color:var(--accent);text-transform:none;letter-spacing:0;font-weight:700}
.t-bs nav a,.t-bs .links a{background:rgba(11,17,27,.7)}
.t-bs .links a:hover,.t-bs nav a:hover{box-shadow:0 0 14px rgba(63,240,255,.35)}

/* ---------- landings de juego: portada con teléfono, tiendas, galería, aparición al hacer scroll */
.landing{--wrap:1080px}
.landing main>section{margin-top:64px}
.landing main>section.hero2{margin-top:0}
.landing main h2{font-size:clamp(1.5rem,4.5vw,2rem);margin:0 0 18px}
.hero2{display:grid;gap:36px;padding:40px 0 8px;align-items:center}
.hero2 .icon{width:84px;height:84px;border-radius:22.5%;display:block}
.hero2 h1{margin:18px 0 6px;font-size:clamp(2.5rem,9vw,4.2rem);line-height:1.02}
.hero2 .tag{margin:0;font:600 clamp(1.2rem,4.2vw,1.55rem)/1.3 var(--head);color:var(--accent)}
.hero2 .pitch{font-size:1.12em;margin:16px 0 0}
.phone{justify-self:center;width:min(300px,76vw);aspect-ratio:9/19.5;border-radius:46px;padding:10px;background:#16110e;
  box-shadow:0 30px 60px -20px rgba(40,20,10,.45),0 0 0 1px rgba(0,0,0,.2) inset}
.phone img,.phone video{display:block;width:100%;height:100%;object-fit:cover;border-radius:36px;background:#000}
@media (min-width:860px){.hero2{grid-template-columns:1fr auto;column-gap:56px;padding-top:64px}.phone{width:310px}}
.stores{list-style:none;display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:24px 0 0}
.stores li{margin:0;display:flex;flex-direction:column;justify-content:center;min-height:52px;padding:6px 18px;border-radius:14px;
  background:var(--fg);color:var(--bg);line-height:1.15;max-width:none}
.stores b{font-size:1.02rem;font-weight:700}
.stores span{font-size:.78rem;opacity:.8;text-transform:uppercase;letter-spacing:.06em}
.soon-note{margin:12px 0 0;color:var(--muted);font-size:.95em}
.gallery-head{display:flex;align-items:end;justify-content:space-between;gap:12px}
.arrows{display:flex;gap:8px}
.arrows button{width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--fg);
  font:600 1.5rem/1 system-ui,sans-serif;cursor:pointer}
.arrows button:hover{border-color:var(--accent);color:var(--accent)}
.arrows button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.gallery .shots{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 18px;margin:0;scrollbar-width:thin}
.gallery .shots:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:12px}
.gallery .shots img{flex:none;width:min(62vw,250px);height:auto;aspect-ratio:9/19.5;object-fit:cover;border-radius:26px;
  border:1px solid var(--line);scroll-snap-align:start;background:var(--bg2)}
.band{margin:64px auto 0;max-width:780px;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:26px;
  box-shadow:0 22px 44px -22px rgba(90,40,20,.45)}
.band img{display:block;width:100%;height:auto;border-radius:18px}
.cta{text-align:center;padding:36px 24px;border-radius:24px;background:var(--card);border:1px solid var(--line)}
.cta-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:none;margin:0}
.cta-links a{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:var(--accent);
  color:var(--accent-fg);font-weight:700;text-decoration:none}
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
  .js .reveal.in{opacity:1;transform:none}
  .hero2 .phone{animation:sube .9s cubic-bezier(.2,.7,.2,1) both}
  @keyframes sube{from{opacity:0;transform:translateY(30px)}}
}
.t-gan .phone{background:#3a2920;box-shadow:0 30px 60px -22px rgba(90,40,20,.5),0 0 0 2px var(--brass)}
.t-gan .stores li{background:var(--accent);color:var(--accent-fg)}
.t-bs .phone{background:#020407;box-shadow:0 0 0 1.5px rgba(63,240,255,.55),0 0 50px rgba(63,240,255,.28),0 0 110px rgba(255,79,179,.16)}
.t-bs .stores li{background:rgba(63,240,255,.08);color:var(--fg);border:1px solid rgba(63,240,255,.45)}
.t-bs .stores span{color:var(--hot);opacity:1;font-family:var(--mono)}
.t-bs .gallery .shots img{border-color:rgba(63,240,255,.3)}
.t-bs .hero2 .icon{box-shadow:0 0 24px rgba(63,240,255,.35)}
.t-gan .hero2 .icon{box-shadow:0 6px 18px rgba(90,40,20,.25)}

/* ---------- selector de idioma (sin JS: <details>) */
.langs{position:relative}
.langs summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;
  border:1px solid var(--line);background:var(--card);color:var(--fg);font-size:.95rem;font-weight:550;cursor:pointer}
.langs summary::-webkit-details-marker{display:none}
.langs .lc{display:none;font-weight:700}
@media (max-width:519px){.langs .ln{display:none}.langs .lc{display:inline}}
.langs summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);margin-left:2px;opacity:.7}
.langs[open] summary{border-color:var(--accent)}
.langs summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.langs ul{position:absolute;right:0;top:calc(100% + 6px);z-index:10;list-style:none;margin:0;padding:6px;min-width:200px;
  background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px -16px rgba(0,0,0,.35);
  max-height:70vh;overflow:auto}
.langs li{margin:0;max-width:none}
.langs ul a{display:flex;min-height:44px;align-items:center;padding:0 12px;border-radius:10px;color:var(--fg);text-decoration:none;font-weight:500}
.langs ul a:hover{background:var(--bg2)}
.langs ul a[aria-current]{color:var(--accent);font-weight:700}
.t-bs .langs ul{background:#0b111b}

/* ---------- chino, japonés y coreano: fuentes del sistema, sin itálica ni versalitas falsas */
:lang(ja){--body:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Meiryo","Noto Sans JP",sans-serif}
:lang(ko){--body:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
:lang(zh-Hans){--body:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif}
:lang(zh-Hant){--body:-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei","Noto Sans TC",sans-serif}
:lang(ja) body,:lang(ko) body,:lang(zh-Hans) body,:lang(zh-Hant) body{font-family:var(--body)}
:lang(ja) :is(.tag,.pitch,li,p,h2),:lang(zh-Hans) :is(.tag,.pitch,li,p,h2),:lang(zh-Hant) :is(.tag,.pitch,li,p,h2){line-break:strict}
:lang(ko) :is(p,li,h1,h2,.tag){word-break:keep-all}
:is(:lang(ja),:lang(ko),:lang(zh-Hans),:lang(zh-Hant)) .tag{font-style:normal!important;letter-spacing:0}
:is(:lang(ja),:lang(ko),:lang(zh-Hans),:lang(zh-Hant)) .card h2,
:is(:lang(ja),:lang(ko),:lang(zh-Hans),:lang(zh-Hant)) main h2{font-family:var(--body)}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{header{position:static}}
