/* baoogames.com page CSS, on top of the tasteskill kit (assets/kit). Only what the kit lacks: the language
   switch, the logo in the bar, the store buttons, the frames' ratios and the legal text. */

/* every text is written twice; the page's lang shows one */
html[lang="es"] .en, html[lang="en"] .es { display: none !important; }

.nav__logo img { height: 40px; width: auto; display: block; }
.closing .nav__logo img { height: 44px; }
@media (max-width: 639px) { .nav__bar .nav__logo img { height: 30px; } .nav__bar .btn .corto { display: none; } }
.idioma { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; min-height: 44px; padding: 0 var(--s-3); }

/* the trailer plays in Dust Rider's frame */
.marco-video video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* the games: a picture, where it stands, its name and one line */
.juego__foto { aspect-ratio: 16 / 9; margin: 0; }
.juego__estado { margin: 0; font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); }
.juego .juego__estado { margin-top: var(--s-5); }
.juego h3 { margin-top: var(--s-2); font-size: var(--t-h3); }
.juego .link { display: inline-block; margin-top: var(--s-3); }
.publicado__foto { aspect-ratio: 5 / 4; align-self: center; }
.marco-video .ly-play__label { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--p-inv-bg); color: var(--p-inv-ink); }

/* the stores */
.tiendas { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.tienda { display: inline-flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-6) var(--s-3) var(--s-4);
  border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font: 500 20px/1.1 var(--font-display); }
.tienda small { display: block; font: 500 13px/1.3 var(--font-text); opacity: .8; }
.tienda .ic { width: 36px; height: 36px; flex: none; background: var(--bg); border-radius: 10px; padding: 4px; }
.tienda--pronto { background: var(--g-alt); color: var(--ink); }

/* the close: the studio's logo set across the .wrap */
.close__name { display: block; width: fit-content; margin: var(--s-8) 0 0; }
.close__name img { display: block; height: clamp(72px, 13vw, 190px); width: auto; max-width: 100%; }

/* a game's page */
.ficha__estado { display: flex; align-items: center; gap: var(--s-3); margin: 0; font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); }
.ficha__icono { width: 48px; height: 48px; border-radius: 12px; }
.ficha__texto h1 { margin: 0; }
.ficha__foto { aspect-ratio: 1 / 1; }
.ficha__texto > * + * { margin-top: var(--s-5); }
.puntos { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); font-size: var(--t-body); line-height: 1.6; }
.legales { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }

/* legal pages: one column of text */
main.legal { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.legal__nav { display: flex; justify-content: space-between; gap: var(--s-5); margin: 0 0 var(--s-7); }
.legal__texto { max-width: 70ch; font-size: var(--t-body); line-height: 1.7; }
.legal__texto h1 { font-size: var(--t-h2); line-height: 1.1; margin: 0 0 var(--s-6); }
.legal__texto h2 { font-size: var(--t-h3); margin: var(--s-8) 0 var(--s-4); }
.legal__texto a { color: var(--action); }
.legal__texto :is(ul, ol) { padding-left: 1.4em; } .legal__texto ul { list-style: disc; } .legal__texto ol { list-style: decimal; } .legal__texto li { margin: var(--s-1) 0; }

/* tablet and phone: Dust Rider's words over its picture */
@media (max-width: 1023px) { #publicados .grid > * { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .juego__foto { aspect-ratio: 1 / 1; } }

/* the homepage's hero (image-to-code, idea B): the logo, the story and a stack of three game cards, as tall as the words */
.portada { padding-top: calc(var(--nav) + var(--s-6)); }
.portada .grid { align-items: stretch; align-content: center; min-height: calc(100svh - var(--nav) - var(--s-8)); }
.portada__texto > * + * { margin-top: var(--s-6); }
.portada__logo { display: block; width: min(540px, 100%); height: auto; margin-bottom: var(--s-8); }
.publicado__enlaces { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0; }
.portada h1 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(40px, 5vw, 76px); margin: 0; }
.portada .hero__lead { max-width: 34em; color: var(--ink); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.portada__pila { position: relative; min-height: 480px; }
.portada__carta { position: absolute; top: 8px; width: 46%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 6px solid var(--bg);
  box-shadow: 0 24px 48px -16px rgb(43 29 23 / .35); transition: translate .35s cubic-bezier(.2,.7,.2,1); }
.portada__carta img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portada__carta--1 { left: 3%; z-index: 3; rotate: -3deg; }
.portada__carta--2 { left: 28%; z-index: 2; rotate: 2deg; scale: .92; }
.portada__carta--3 { left: 52%; z-index: 1; rotate: 6deg; scale: .88; }
@media (prefers-reduced-motion: no-preference) { .portada__carta:hover { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .portada__carta { transition: none; } }
@media (max-width: 1023px) {
  .portada .grid > * { grid-column: 1 / -1; }
  .portada .grid { min-height: 0; }
  .portada__pila { height: 52svh; max-height: 520px; }
  .portada__carta { width: 30%; } .portada__carta--1 { left: 12%; } .portada__carta--2 { left: 35%; } .portada__carta--3 { left: 57%; }
}
@media (max-width: 639px) {
  .portada { padding-top: calc(var(--nav) + var(--s-4)); padding-bottom: var(--s-5); }
  .portada .grid { row-gap: var(--s-4); } .portada__texto > * + * { margin-top: var(--s-4); }
  .portada__logo { width: 72%; margin-bottom: var(--s-5); }
  .portada__pila { height: 33svh; min-height: 0; } .portada__carta { width: 38%; border-width: 4px; }
  .portada__carta--1 { left: 6px; } .portada__carta--2 { left: 30%; } .portada__carta--3 { left: 58%; }
}

/* touch: no grey flash, no double-tap zoom wait */
html { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

/* colour by section: the hero's red dots, Dust Rider on the brand's red, the games in development on sand,
   what's next on the dark brown; each band sets the tokens its words and buttons read */
.portada { position: relative; isolation: isolate; }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 12px 12px, color-mix(in oklab, var(--p-accent) 42%, transparent) 2px, transparent 2.6px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 48% 62% at 76% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 48% 62% at 76% 50%, #000 30%, transparent 100%); }
@media (max-width: 1023px) { .portada::before { -webkit-mask-image: radial-gradient(ellipse 80% 34% at 50% 78%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 34% at 50% 78%, #000 30%, transparent 100%); } }

.banda { background: var(--bg); color: var(--ink); }
/* Dust Rider: a soft peach, a red wave at its foot leading into the sand */
.banda--rayas { --bg: #fdf0e8; --muted: #5f554f; position: relative; isolation: isolate;
  background: var(--bg); }
.banda--rayas .frame { box-shadow: 0 24px 48px -20px rgb(43 29 23 / .35); }
.ola { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(64px, 9vw, 140px); display: block; }
.ola path { fill: var(--p-accent); }
.banda { display: grid; align-content: center; }
.banda--arena { --bg: var(--p-surface); --muted: #5f554f; }
.banda--oscura { --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: #cfc6bf; --line: rgb(254 251 245 / .18); --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink); }
.banda :is(h2, h3) { color: var(--ink); }
.banda .muted, .banda .juego__estado { color: var(--muted); }
.banda .link { color: var(--ink); }
#publicados .publicado__enlaces { margin-top: var(--s-5); }
#en-desarrollo { border-top: 0; }
