/* Alboria's website: pastel yellow and blue, starry night bands. */
:root {
    /* Rounded system fonts: nothing is loaded from other servers. */
    --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, sans-serif;
    --font-body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    --sun: #ffe07a;        /* amarillo pastel */
    --sun-deep: #ffc93c;
    --sky: #9fd3ff;        /* azul pastel */
    --sky-deep: #5aa9f0;
    --night: #1e2a4f;      /* texto */
    --night-soft: #4a5a85;
    --paper: #e3f2ff;      /* fondo: azul pastel claro */
    --dusk: #3f5ba8;       /* azul pastel oscuro, para las secciones de noche */
    --dusk-deep: #2c4282;
    --card: #ffffff;
    --mint: #a8ecd4;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; font-family: var(--font-body); color: var(--night); line-height: 1.55;
    background: var(--paper);
  }
  /* A starfield: tiny dots in two sizes, twinkling slowly. */
  .starfield { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .starfield i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
  .starfield i.big { width: 5px; height: 5px; box-shadow: 0 0 8px #fff; }
  .starfield i.spark { width: 14px; height: 14px; background: none; animation-duration: 6s; }
  .starfield i.spark::before, .starfield i.spark::after { content: ""; position: absolute; inset: 0; margin: auto; background: #fff7c2; border-radius: 2px; }
  .starfield i.spark::before { width: 2px; height: 14px; } .starfield i.spark::after { width: 14px; height: 2px; }
  @keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
  h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
  a { color: var(--sky-deep); }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

  /* Barra superior */
  header { position: sticky; top: 0; z-index: 10; background: rgba(227, 242, 255, 0.85); backdrop-filter: blur(6px); }
  .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; text-decoration: none; color: var(--night); }
  .brand svg { width: 38px; height: 38px; }
  nav a { margin-left: 22px; font-weight: 700; color: var(--night); text-decoration: none; }
  nav a:hover { color: var(--sky-deep); }
  .lang { margin-left: 22px; padding: 4px 10px; border: 2px solid var(--night); border-radius: 999px; font-weight: 700; font-size: 13px; }

  /* Portada */
  .hero {
    position: relative; overflow: hidden;
    background: radial-gradient(circle at 80% 20%, #c9e8ff 0, var(--sky) 45%, #7fc2fb 100%);
    border-radius: 0 0 48px 48px;
  }
  .hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; min-height: 480px; padding-top: 30px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(44px, 7vw, 76px); margin: 0 0 14px; color: var(--night); }
  .hero h1 span { color: #fff; text-shadow: 0 4px 0 var(--sky-deep); }
  .hero p { font-size: 20px; max-width: 520px; margin: 0 0 26px; color: #22325c; }
  .btns { display: flex; flex-wrap: wrap; gap: 14px; }
  .btn {
    display: inline-block; padding: 14px 26px; border-radius: 18px; font-weight: 800; font-size: 17px;
    text-decoration: none; transition: transform .15s;
  }
  .btn:hover { transform: translateY(-3px); }
  .btn-sun { background: var(--sun); color: var(--night); box-shadow: 0 6px 0 var(--sun-deep); }
  .btn-ghost { background: rgba(255,255,255,.55); color: var(--night); box-shadow: 0 6px 0 rgba(30,42,79,.15); }

  .planet { width: 100%; max-width: 420px; justify-self: center; animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }

  /* Secciones */
  section { padding: 70px 0 10px; }
  section h2 { font-size: 40px; margin: 0 0 10px; }
  .lede { font-size: 19px; color: var(--night-soft); max-width: 680px; margin: 0 0 30px; }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card {
    background: var(--card); border-radius: 28px; padding: 26px; border: 3px solid #cfe6ff;
    box-shadow: 0 10px 0 #b9dbff;
  }
  .card .icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; margin-bottom: 14px; }
  .card h3 { font-size: 24px; margin: 0 0 6px; }
  .card p { margin: 0; color: var(--night-soft); }
  .i-sun { background: var(--sun); } .i-sky { background: var(--sky); } .i-mint { background: var(--mint); }

  .night {
    position: relative; margin-top: 70px; padding: 70px 0 80px; color: #fff;
    background: radial-gradient(circle at 15% 20%, #5b78c9 0, var(--dusk) 45%, var(--dusk-deep) 100%);
    border-radius: 48px;
  }
  .night section { padding-top: 0; position: relative; }
  .night h2 { color: #fff; } .night .lede { color: #d6e2ff; }
  .games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .game { border-radius: 28px; padding: 24px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
  .game h3 { font-size: 26px; margin: 0; }
  .game small { font-weight: 700; color: var(--night-soft); }
  .badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
  .g1 { background: var(--sun); } .g1 .badge { background: var(--night); color: var(--sun); }
  .g2, .g3 { background: rgba(255,255,255,.08); border: 3px dashed var(--sky); color: #fff; } .g2 small, .g3 small { color: #c7d5ff; }
  .g2 .badge, .g3 .badge { background: var(--sky); color: var(--night); }

  /* Privacidad */
  .privacy { background: #fff8dc; border-radius: 36px; padding: 40px; margin-top: 10px; box-shadow: 0 10px 0 #ffe7a1; }
  .privacy h3 { font-size: 22px; margin: 22px 0 6px; }
  .privacy ul { margin: 6px 0; padding-left: 20px; }
  .privacy p, .privacy li { color: #33406a; }
  .note { font-size: 13px; color: var(--night-soft); margin-top: 18px; }

  .promise h3 { font-size: 22px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
  .split-col { border-radius: 28px; padding: 26px; }
  .split-col h3 { font-size: 24px; margin: 12px 0 6px; }
  .split-col p { margin: 0; }
  .ports { background: var(--dusk); color: #fff; } .ports p { color: #d6e2ff; } .ports .badge { background: var(--sun); color: var(--night); }
  .own { background: #fff; border: 3px dashed var(--sky-deep); } .own .badge { background: var(--sky); color: var(--night); }
  .support { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--sun); border-radius: 28px; padding: 26px 30px; box-shadow: 0 10px 0 var(--sun-deep); }
  .support h3 { font-size: 24px; margin: 0 0 6px; } .support p { margin: 0; color: #3b3a2a; max-width: 640px; }
  .support .btn { background: #fff; box-shadow: 0 6px 0 rgba(30,42,79,.2); white-space: nowrap; }
  .devs { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 15%, #6f8be0 0, var(--dusk) 50%, var(--dusk-deep) 100%); color: #fff; border-radius: 36px; padding: 40px; }
  .devs h2 { color: #fff; margin-top: 14px; } .devs p, .devs li { color: #d6e2ff; max-width: 760px; }
  .devs .badge { background: var(--sun); color: var(--night); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
  .devs .btn { margin-top: 12px; }
  .terms { background: #fff; box-shadow: 0 10px 0 #cfe6ff; border: 3px solid #cfe6ff; }
  @media (max-width: 820px) { .split { grid-template-columns: 1fr; } .support { flex-direction: column; align-items: flex-start; } }
  footer { position: relative; overflow: hidden; margin-top: 70px; background: var(--night); color: #cfd8f5; border-radius: 48px 48px 0 0; }
  footer .wrap { padding: 40px 20px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
  footer a { color: var(--sun); }
  footer small { display: block; max-width: 640px; color: #9aa7cf; }


  @media (max-width: 820px) {
    .hero .wrap, .cards, .games { grid-template-columns: 1fr; }
    nav a:not(.lang) { display: none; }
    .planet { max-width: 300px; }
  }

/* Language picker in the top bar. */
.lang-pick { margin-left: 22px; }
.lang-pick select {
  font: inherit; font-weight: 700; font-size: 13px; color: var(--night); background: transparent;
  border: 2px solid var(--night); border-radius: 999px; padding: 4px 10px; cursor: pointer;
}

/* Legal pages: one readable column. */
.legal { max-width: 820px; margin: 40px auto 0; background: #fff; border-radius: 36px; padding: 44px;
  border: 3px solid #cfe6ff; box-shadow: 0 10px 0 #cfe6ff; }
.legal h1 { font-size: 44px; margin: 0 0 6px; }
.legal h2 { font-size: 26px; margin: 30px 0 8px; }
.legal p, .legal li { color: #33406a; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid #eef3ff; }
.legal .updated { color: var(--night-soft); font-size: 14px; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 800; text-decoration: none; }
@media (max-width: 820px) { .legal { padding: 26px; border-radius: 26px; } }

/* Read by screen readers, not drawn. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Long menus (Japanese, Russian…) fit: tighter spacing, never split a label, and the least
   needed links go first when the bar runs out of room. */
nav { display: flex; align-items: center; white-space: nowrap; }
nav a { margin-left: 16px; font-size: 15px; }
@media (max-width: 1140px) { nav a[href$="#what"], nav a[href$="#games"] { display: none; } }

/* Japanese and Chinese titles break between phrases, not in the middle of a word. */
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2 { word-break: auto-phrase; line-break: strict; }
:lang(ko) h1, :lang(ko) h2 { word-break: keep-all; }

/* Gears of War 3's card: our own scene in the game's mood, dark under the text so it reads. */
.game.g1 {
  position: relative; overflow: hidden; color: #fff; background: #2a2420 url("gears3-card.svg") center 85% / cover no-repeat;
  box-shadow: inset 0 70px 50px -40px rgba(12, 9, 7, 0.55);
}
.game.g1 small { color: #f6dcae; }
.game.g1 .badge { background: var(--sun); color: var(--night); }
.game.g1 h3, .game.g1 small { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85); }

/* Download link in the top bar: the one that stays on small screens. */
nav a.nav-cta { padding: 6px 14px; border-radius: 999px; background: var(--sun); box-shadow: 0 3px 0 var(--sun-deep); }
nav a.nav-cta:hover { color: var(--night); }
@media (max-width: 820px) { nav a.nav-cta { display: inline-block; } }

/* Numbered steps: how it works, first steps, playing online. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.steps-row { grid-template-columns: repeat(3, 1fr); }
.steps li {
  counter-increment: step; position: relative; background: var(--card); border-radius: 28px; padding: 26px 26px 26px 84px;
  border: 3px solid #cfe6ff; box-shadow: 0 10px 0 #b9dbff;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: var(--sun); font-family: var(--font-display); font-weight: 800; font-size: 22px;
}
.steps h3 { font-size: 22px; margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--night-soft); }
.steps-night li { background: rgba(255,255,255,.08); border: 3px dashed var(--sky); box-shadow: none; }
.steps-night li::before { background: var(--sky); color: var(--night); }
.steps-night p { color: #e6edff; padding-top: 8px; }
.steps code, .steps kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; padding: 1px 7px; border-radius: 7px; background: rgba(255,255,255,.18); white-space: nowrap; }
.more { margin: 26px 0 0; font-weight: 800; }
.more a { text-decoration: none; }

/* A game's page: what you need, the steps, the questions. */
.need { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.need .card p, .need .card li { color: var(--night-soft); }
.need b { color: var(--night); }
.plain { margin: 0; padding-left: 20px; } .plain li + li { margin-top: 8px; }
.tips { margin-top: 26px; background: #fff8dc; border-radius: 28px; padding: 26px 30px; box-shadow: 0 10px 0 #ffe7a1; }
.tips h3 { font-size: 22px; margin: 0 0 10px; } .tips li { color: #33406a; }
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq details { background: var(--card); border-radius: 22px; border: 3px solid #cfe6ff; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.faq details[open] summary { padding-bottom: 6px; }
.faq p { margin: 0 0 20px; color: var(--night-soft); }

/* The link at the foot of Gears of War 3's card. */
.game-link { display: block; margin-top: 10px; font-weight: 800; color: var(--sun); text-decoration: none; text-shadow: 0 2px 6px rgba(0,0,0,.85); }

/* The public code, on a game's page. */
.code { margin-top: 26px; display: flex; align-items: center; gap: 22px; background: #fff; border: 3px solid #cfe6ff; border-radius: 28px; padding: 26px 30px; box-shadow: 0 10px 0 #b9dbff; }
.code .icon { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; }
.code h3 { font-size: 24px; margin: 0 0 6px; } .code p { margin: 0; color: var(--night-soft); max-width: 640px; }
.code .btn { margin-left: auto; white-space: nowrap; background: var(--sky); }

@media (max-width: 820px) {
  .steps, .steps-row, .need { grid-template-columns: 1fr; }
  .code { flex-direction: column; align-items: flex-start; } .code .btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .wrap.bar { gap: 8px; padding: 0 14px; } .brand { font-size: 20px; gap: 6px; } .brand svg { width: 30px; height: 30px; }
  nav a.nav-cta { margin-left: 0; padding: 5px 10px; font-size: 13px; }
  .lang-pick { margin-left: 6px; } .lang-pick select { padding: 4px 6px; font-size: 12px; }
}
/* The narrowest phones: the hero's button is the download link. */
@media (max-width: 360px) { nav a.nav-cta { display: none; } }

/* A game's page: its own scene under the title, dark so the text reads. */
.game-hero { background: #2a2420 url("gears3-card.svg") center 80% / cover no-repeat; color: #fff; }
.game-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,7,.82) 0, rgba(12,9,7,.55) 55%, rgba(12,9,7,.15) 100%); }
.game-hero h1 { color: #fff; } .game-hero h1 span { color: var(--sun); text-shadow: none; }
.game-hero p, .game-hero .hero-note { color: #f6e7cc; }
.game-hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 60px; }
.game-hero p { max-width: 640px; }
.game-hero .back { color: var(--sun); display: block; }
.game-hero .badge { display: inline-block; background: var(--sun); color: var(--night); margin-bottom: 12px; }
.game-hero .btn-ghost { background: rgba(255,255,255,.88); }
.hero .hero-note { font-size: 15px; margin: 18px 0 0; }

/* Gears of War 3's card is a link to its page. */
a.game { text-decoration: none; transition: transform .15s; } a.game:hover { transform: translateY(-3px); }
