/* WipeoutLabs - the studio site (wipeoutlabs.com). Layout after a publisher's portal (Alvin's reference,
   2026-10-07): a sticky dark header, a full-bleed featured-game hero, an "All Games" grid of tall covers with badges
   and platform icons, Latest News and a footer. Our own brand and games. */
:root {
  --bg: #121318;
  --bg2: #191b22;
  --panel: #1f222b;
  --line: #2c303b;
  --text: #f2f3f5;
  --muted: #9aa0ad;
  --dim: #6d7380;
  --accent: #f0b43c;
  --accent2: #ffd47a;
  --live: #3ddc84;
  --soon: #e9c46a;
  --radius: 4px;
  --max: 1280px;
  --head: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% 0%, #1d2030 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: rgba(18, 19, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.01em; font-size: 21px; }
.logo img { width: 36px; height: 36px; }
/* the wordmark of the 2026-10-19 mark: "wipeout" heavy, "labs" in the regular weight, both white */
.logo b { color: inherit; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 34px; flex: 1; }
.nav > a, .nav .drop > button {
  white-space: nowrap;
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: #d6d9df;
  background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: inherit;
}
.nav > a:hover, .nav .drop > button:hover, .nav .drop:focus-within > button { color: #fff; }
.nav .spacer { flex: 1; }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop .menu {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 230px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.drop.right .menu { left: auto; right: -16px; }
.drop:hover .menu, .drop:focus-within .menu, .drop.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu h6 { margin: 6px 18px 4px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.menu a { display: block; padding: 8px 18px; font-size: 14px; color: #d6d9df; }
.menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: #fff; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: auto; transition: transform .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }

/* ---------------------------------------------------------------- hero (featured game slides) */
.hero { position: relative; height: min(78vh, 760px); min-height: 520px; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide picture, .slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide img.bg { object-fit: cover; object-position: center; transform: scale(1.04); transition: transform 7s ease; }
.slide.on img.bg { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 17, 0.92) 0%, rgba(12, 13, 17, 0.72) 32%, rgba(12, 13, 17, 0.1) 62%, transparent 100%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.slide .copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.slide .copy > * { max-width: 560px; }
.kicker { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.01em; }
.hero p.lead { color: #cfd3da; font-size: 17px; margin: 0 0 22px; max-width: 470px; }
.platforms { display: flex; gap: 12px; align-items: center; color: #c9ced6; margin: 0 0 28px; }
.platforms svg { width: 22px; height: 22px; }
.platforms .label { font-size: 13px; color: var(--muted); margin-left: 4px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #241703; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn.disabled { background: #2a2d36; color: var(--muted); cursor: default; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.dots .wrap { display: flex; gap: 10px; }
.dots button { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.28); cursor: pointer; padding: 0; }
.dots button.on { background: var(--accent); }

/* ---------------------------------------------------------------- sections */
section.block { padding: 72px 0 24px; }
.block h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 30px; font-weight: 800; letter-spacing: -0.01em; }

/* All Games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 24px; }
.card { display: block; }
.card .cover { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .cover img { transform: scale(1.05); }
.card .cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); border-radius: inherit; }
.badge {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 4px 10px; border-radius: 3px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(10, 10, 14, 0.82); color: var(--soon);
}
.badge.live { color: var(--live); }
.badge.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 8px var(--live); }
.card h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 600; }
.card .platforms { margin: 0; gap: 10px; color: #aeb4bf; }
.card .platforms svg { width: 19px; height: 19px; }

/* News */
.news { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news article { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-size: 14px; padding-top: 3px; }
.news h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.news p { margin: 0; color: var(--muted); }
.news a.more { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-block; margin-top: 8px; }

/* Studio */
.studio { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.studio p { color: #c3c8d0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.stat b { display: block; font-size: 30px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- game pages */
.game-hero { position: relative; min-height: 560px; height: 70vh; overflow: hidden; }
.game-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 17, 0.9), rgba(12, 13, 17, 0.45) 45%, transparent 75%), linear-gradient(0deg, var(--bg), transparent 35%); }
.game-hero .wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: 64px; gap: 36px; }
.game-hero .poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.game-hero .poster { width: 220px; flex: none; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); }
.game-hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 0 0 12px; line-height: 1.05; font-weight: 800; }
.game-hero .lead { color: #d3d7de; max-width: 560px; margin: 0 0 20px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 auto 8px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.fact small { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--accent2); }
.feature p { margin: 0; color: #c3c8d0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.gallery a { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: auto; }

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: 80px; border-top: 1px solid var(--line); background: #0e0f13; padding: 40px 0 50px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 28px 60px; justify-content: space-between; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a:hover { color: #fff; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: fixed; top: var(--head); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav > a, .nav .drop > button { padding: 14px 0; text-align: left; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .spacer { display: none; }
  .drop .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 12px; display: none; }
  .drop.open .menu { display: block; }
  .hero { height: min(86vh, 720px); min-height: 560px; }
  .slide::after { background: linear-gradient(0deg, rgba(12, 13, 17, 0.97) 0%, rgba(12, 13, 17, 0.82) 50%, rgba(12, 13, 17, 0.5) 100%); }
  .slide .copy { justify-content: flex-end; padding-bottom: 80px; }
  .news article { grid-template-columns: 1fr; gap: 6px; }
  .studio { grid-template-columns: 1fr; }
  .game-hero .wrap { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .game-hero .poster { width: 150px; }
}
@media (max-width: 520px) {
  .games { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .card h3 { font-size: 15px; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
figure { margin: 0; }
.cta.after { margin-top: 36px; }

/* ---------------------------------------------------------------- Athenia: play in browser / on PC, the PC section */
.btn svg { width: 18px; height: 18px; flex: none; }
.play-choice .btn { min-width: 220px; justify-content: center; }
.play-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.play-note a { color: var(--accent2); margin-left: 6px; }
.pc-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; }
.pc-get, .pc-info { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.pc-get { align-self: start; border-color: rgba(240, 180, 60, 0.45); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pc-lead { margin: 0; color: #d3d7de; font-size: 16px; }
.pc-size { margin: 0; color: var(--muted); font-size: 14px; }
.pc-info h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent2); }
.pc-info h3 + * { margin-top: 0; }
.pc-info ol, .pc-info ul { margin: 0 0 18px; padding-left: 20px; color: #c3c8d0; }
.pc-info li { margin: 5px 0; }
.pc-info p { margin: 0 0 18px; color: #c3c8d0; }
.pc-info a { color: var(--accent2); text-decoration: underline; }
.pc-info b { color: #fff; }
.pc-small { font-size: 13px; color: var(--muted) !important; margin-bottom: 0 !important; }
@media (max-width: 860px) { .pc-panel { grid-template-columns: 1fr; } .play-choice .btn { min-width: 0; flex: 1 1 200px; } }

/* ---------------------------------------------------------------- Atlas Online showcase (games/atlas-online/) */
.badge.retired { color: #c9ced6; }
.badge.retired::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8a909c; margin-right: 7px; vertical-align: 1px; }
.card .era { margin: 0; font-size: 13px; color: var(--muted); }
.game-hero.atlas img.bg { object-position: 62% 30%; }
.game-hero.atlas::after { background: linear-gradient(90deg, rgba(12, 13, 17, 0.95), rgba(12, 13, 17, 0.8) 42%, rgba(12, 13, 17, 0.3) 72%, rgba(12, 13, 17, 0.1)), linear-gradient(0deg, var(--bg), transparent 35%); }
.game-hero.atlas .lead { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.game-hero .logo-art { width: min(360px, 80%); margin: 0 0 6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.game-hero .logo-art img { width: 100%; height: auto; }
.retired-note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(12, 13, 17, 0.6); color: #d6d9df; font-size: 14px; margin: 0; }
.retired-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a909c; flex: none; }
.story { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.story p { color: #c3c8d0; margin: 0 0 16px; }
.story p b { color: #fff; }
.story .stats { grid-template-columns: repeat(2, 1fr); }
.story .stat b { font-size: 26px; }
.features.media .feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature .art { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 60%, #2a2e3a, #16181e 70%); overflow: hidden; }
.feature .art img { width: 100%; height: 100%; object-fit: cover; }
.feature .art.contain img { object-fit: contain; padding: 8px; }
.feature .art.pair { display: grid; grid-template-columns: 1fr 1fr; }
.feature .body { padding: 20px 22px 22px; }
.gallery button.shot { all: unset; box-sizing: border-box; display: block; cursor: zoom-in; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery button.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery button.shot:hover img { transform: scale(1.03); }
.gallery button.shot .frame { overflow: hidden; }
.timeline { list-style: none; margin: 0; padding: 0; columns: 2 420px; column-gap: 56px; }
.timeline li { position: relative; padding: 0 0 22px 26px; margin-left: 8px; border-left: 2px solid var(--line); break-inside: avoid; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline li.end::before { background: #8a909c; border-color: #8a909c; }
.timeline time { display: block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline h3 { margin: 2px 0 4px; font-size: 17px; }
.timeline p { margin: 0; color: var(--muted); max-width: 720px; }
.next-panel { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid rgba(240, 180, 60, 0.45); background: var(--panel); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.next-panel .pic img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.next-panel .txt { padding: 32px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.next-panel h2 { margin: 0 0 12px; }
.next-panel p { color: #c3c8d0; margin: 0 0 22px; }
.credits { color: var(--dim); font-size: 13px; margin: 18px 0 0; }
/* the lightbox (site.js builds it for any .gallery[data-lightbox]) */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 7, 10, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox .cap { color: #d6d9df; margin: 14px 0 0; font-size: 15px; text-align: center; max-width: 900px; }
.lightbox .count { color: var(--dim); font-size: 13px; margin-top: 4px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font: 700 24px/1 "Noto Sans", system-ui, sans-serif; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.18); outline: none; }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 24px; }
  .game-hero.atlas { height: auto; }
  .game-hero.atlas .wrap { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .game-hero.atlas::after { background: linear-gradient(0deg, rgba(12, 13, 17, 0.97) 0%, rgba(12, 13, 17, 0.82) 55%, rgba(12, 13, 17, 0.55) 100%); }
  .game-hero .logo-art { width: min(300px, 85%); }
  .next-panel { grid-template-columns: 1fr; }
  .next-panel .pic img { min-height: 0; aspect-ratio: 16 / 9; }
  .lightbox { padding: 60px 8px 80px; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 16px; transform: none; }
  .lightbox .prev { left: calc(50% - 60px); } .lightbox .next { right: calc(50% - 60px); }
}
/* the Atlas showcase's sections (2026-10-12): a lead line, and the cast - wiki renders on a lit panel */
.section-lead { color: var(--muted); margin: -6px 0 22px; max-width: 760px; }
.cast-group { margin: 6px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 0 0 28px; }
.who { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.who .pic { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 42%, #3b4152 0%, #282c38 52%, #1b1e26 100%); }
.who .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.who figcaption { padding: 10px 12px 14px; }
.who figcaption b { display: block; font-size: 15px; }
.who figcaption span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.badge.boss { background: #5a2a8a; color: #fff; }
@media (max-width: 520px) {
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .who figcaption { padding: 8px 10px 12px; }
  .who figcaption span { font-size: 12px; }
}
/* SIGN IN WITH GOOGLE and the account (2026-10-12; js/account.js): Google's own dark-theme button - #131314, a #8e918f
   outline, the four-colour G, Roboto Medium - and the account chip; [hidden] must beat the buttons' display */
[hidden] { display: none !important; }
.gsi { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: 1px solid #8e918f; border-radius: 4px; background: #131314; color: #e3e3e3; font: 500 14px/20px Roboto, "Noto Sans", system-ui, sans-serif; letter-spacing: 0.25px; white-space: nowrap; }
.gsi:hover { background: #1e1f21; }
.gsi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gsi svg { width: 20px; height: 20px; flex: none; }
.cta .gsi { height: 50px; padding: 0 20px; font-size: 16px; }
.acct { display: flex; align-items: center; gap: 10px; flex: none; }
.acct-chip { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 600; max-width: 280px; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chip button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 700; white-space: nowrap; }
.acct-chip button:hover, .acct-chip button:focus-visible { background: rgba(255, 255, 255, 0.16); }
.btn.play-big { font-size: 17px; padding: 16px 32px; letter-spacing: 0.06em; }
@media (max-width: 860px) {
  .acct { margin-left: auto; }
  .burger { margin-left: 4px; }
  .acct-chip { max-width: 190px; }
}
@media (max-width: 520px) {
  .acct .gsi { padding: 0 10px; }
  .acct .gsi .gsi-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .acct-chip { max-width: 160px; padding-left: 10px; }
  .acct-chip .acct-name { max-width: 70px; }
  .cta .gsi, .btn.play-big { width: 100%; justify-content: center; }
}
/* a game page's hero on a phone grows with its content (the sign-in row made Athenia's taller than 70vh, and the top -
   poster, title - was cut off under the header, as the Atlas hero already handled) */
@media (max-width: 860px) {
  .game-hero { height: auto; }
  .game-hero .wrap { padding-top: 48px; }
}
/* a phone's header: the name gives way, "Sign out" stays (the name is the chip's title) */
@media (max-width: 420px) {
  .site-head .wrap { gap: 12px; }
  .acct-chip { padding-left: 4px; }
  .acct-chip .acct-name { display: none; }
}
/* LATEST FROM THE DEVLOG (2026-10-14, js/devlog-teaser.js): the homepage's three newest Athenia updates with a picture, each a
   link to its entry on /ai/devlog/; a section head with its "every update" link on the right */
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 30px; }
.block-head h2 { margin: 0; }
.block-head .kicker { margin-bottom: 8px; }
.block-head .more { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.block-head .more::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.block-head .more:hover { color: var(--accent2); }
.dl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dl-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s; }
.dl-card:hover, .dl-card:focus-visible { border-color: rgba(240, 180, 60, 0.55); }
.dl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #16181e; }
.dl-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dl-card:hover .dl-art img { transform: scale(1.04); }
.badge.tag-new { color: var(--live); }
.badge.tag-improved { color: var(--accent2); }
.badge.tag-fixed { color: #ff8a7a; }
.dl-body { padding: 16px 18px 20px; }
.dl-body time { color: var(--muted); font-size: 13px; }
.dl-body h3 { margin: 4px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.dl-body p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@media (max-width: 860px) {
  .dl-cards { grid-template-columns: 1fr; gap: 14px; }
  .dl-card { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
  .dl-art { aspect-ratio: auto; min-height: 120px; }
  .dl-art img { position: absolute; inset: 0; }
  .dl-art .badge { top: 8px; left: 8px; font-size: 11px; padding: 3px 7px; }
  .dl-body { padding: 12px 14px 14px; }
  .dl-body h3 { font-size: 16px; margin: 2px 0 6px; }
  .dl-body p { font-size: 13px; -webkit-line-clamp: 2; line-clamp: 2; }
}
/* the header between a phone's menu and a wide screen (861-1180 px): with the DEVLOG tab (2026-10-14) the five menu
   entries, the logo and the sign-in no longer fit at the desktop gaps - entries wrapped onto two lines and the page
   scrolled sideways. Tighter gaps, one line each, Google's button as its G alone (as on a phone), the account's name
   shortened, and gone below 960 px ("Sign out" stays) */
@media (min-width: 861px) and (max-width: 1180px) {
  .site-head .wrap { gap: 20px; }
  .nav { gap: 18px; }
  .acct .gsi { padding: 0 10px; }
  .acct .gsi .gsi-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .acct-chip { max-width: 160px; padding-left: 10px; }
  .acct-chip .acct-name { max-width: 70px; }
}
@media (min-width: 861px) and (max-width: 960px) {
  .acct-chip { padding-left: 4px; }
  .acct-chip .acct-name { display: none; }
}
/* the logo never shrinks (a flex item with no flex-shrink: 0 gave it 159 px for 195 px of content, and with the
   account chip shown its name ran under ATHENIA ONLINE at 861-875 px); the narrowest desktop widths take the gaps down
   once more so the unshrunk logo still fits without scrolling sideways (review, 2026-10-14) */
.site-head .logo { flex-shrink: 0; }
@media (min-width: 861px) and (max-width: 900px) {
  .site-head .wrap { gap: 12px; }
  .nav { gap: 12px; }
}
/* just above that range the desktop gaps come back, and a long account name in a 280 px chip scrolled the page 17 px
   sideways at 1181 px (the header sweep in tools/home_local.mjs): the chip stays a little narrower there */
@media (min-width: 1181px) and (max-width: 1280px) {
  .acct-chip { max-width: 200px; }
}
