:root {
  color-scheme: dark;
  --bg: #02030a;
  --panel: #0d1220;
  --text: #ecedee;
  --muted: #9ba1a6;
  --accent: #5fd4e6;
  --studio-accent: #b8a6f2;
  --border: #1c2436;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Wider container for the more visual marketing pages (Home, Our Games).
   Long-form reading pages (Our Story, Privacy, Support) keep the narrower
   720px column above, since justified text reads worse when very wide. */
.wrap.wide {
  max-width: 1180px;
}

/* Breaks an element out of the centered .wrap to the full viewport width,
   for a hero image that should feel like it fills the screen. */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: block;
}

.brand span {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

/* Two-tone wordmark, e.g. "RoBu" / "Games" in contrasting colors. */
.wordmark {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wordmark .wm-a {
  color: var(--studio-accent);
}

.wordmark .wm-b {
  color: inherit;
  margin-left: 0.35em;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

nav.site a:hover,
nav.site a:focus,
nav.site a[aria-current="page"] {
  color: var(--accent);
}

/* Studio-level pages (Home, Our Story, Our Games, Privacy, Support) use the
   studio purple; ONE PIXEL's own page keeps the default cyan above. */
.studio nav.site a:hover,
.studio nav.site a:focus,
.studio nav.site a[aria-current="page"] {
  color: var(--studio-accent);
}

.studio footer.site nav a {
  color: var(--studio-accent);
}

/* "Our Games" hover dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Invisible hit-area bridging the gap to the menu below, so the pointer
   never leaves .nav-dropdown while moving down into it. Absolutely
   positioned, so it doesn't add any height to the nav row itself. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -60px;
  right: 0;
  top: 100%;
  height: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px;
  min-width: 150px;
  z-index: 20;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  margin-left: 0 !important;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: rgba(255, 255, 255, 0.05);
}

/* Each game previews its own signature color on hover, regardless of
   whether the surrounding nav is currently purple (studio) or cyan. */
.dropdown-item.one-pixel:hover,
.dropdown-item.one-pixel:focus,
.studio .dropdown-item.one-pixel:hover,
.studio .dropdown-item.one-pixel:focus {
  color: var(--accent);
}

.game-card:hover h3 {
  color: var(--accent);
}

main {
  padding-top: 40px;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.studio h1 {
  color: var(--studio-accent);
}

.one-pixel h1 {
  color: var(--accent);
}

h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.tagline {
  color: var(--accent);
  font-size: 1.15rem;
  margin: 0 0 24px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -4px 0 28px;
}

a {
  color: var(--accent);
}

ul,
ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 20px;
}

.faq dt {
  font-weight: 600;
  margin: 24px 0 6px;
}

.faq dd {
  margin: 0 0 4px;
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
}

.card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
}

.studio .card strong {
  color: var(--studio-accent);
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }

  nav.site a {
    margin-left: 14px;
  }
}

footer.site {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site a {
  color: var(--muted);
  text-decoration: underline;
}

footer.site nav a {
  margin: 0 10px 0 0;
  color: var(--accent);
  text-decoration: none;
}

/* "RoBu Games" leads out to the purple studio site, so it previews purple
   wherever it appears, inside ONE PIXEL's otherwise-cyan section. */
nav.site a.nav-studio:hover,
nav.site a.nav-studio:focus {
  color: var(--studio-accent);
}

footer.site nav a.nav-studio {
  color: var(--studio-accent);
}

/* Justify body copy on desktop; headings, nav, buttons stay left/normal. */
main p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

h1, h2, h3, h4, .btn, nav a, .card, .game-card, .badge, .shot-caption, .meta {
  text-align: left;
}

@media (max-width: 600px) {
  main p {
    text-align: left;
    hyphens: none;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #02030a;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.98rem;
}

.btn:hover {
  opacity: 0.88;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.studio {
  background: var(--studio-accent);
}

/* Studio hero (homepage) */
/* Full-bleed hero banner: text overlaid directly on the art, like a real
   marketing hero, instead of stacked as separate blocks. */
.hero-banner {
  position: relative;
  min-height: min(64vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Original artwork, not a reused game asset: a single point of light in
   the dark, drawn entirely in CSS — matches the tagline directly. */
.hero-banner-original {
  background:
    radial-gradient(circle at 64% 82%, rgba(255, 255, 255, 0.95) 0%, rgba(216, 201, 250, 0.6) 0.7%, rgba(184, 166, 242, 0.3) 2%, transparent 6%),
    radial-gradient(ellipse 55% 60% at 64% 82%, rgba(150, 120, 230, 0.28) 0%, rgba(110, 85, 190, 0.12) 45%, transparent 75%),
    radial-gradient(ellipse 95% 75% at 50% 105%, rgba(55, 38, 100, 0.4) 0%, transparent 70%),
    var(--bg);
}

/* ONE PIXEL's own hero — same treatment, cyan instead of purple. */
.hero-banner-cyan {
  background:
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.95) 0%, rgba(190, 240, 248, 0.6) 0.7%, rgba(95, 212, 230, 0.3) 2%, transparent 6%),
    radial-gradient(ellipse 55% 60% at 60% 80%, rgba(95, 212, 230, 0.28) 0%, rgba(50, 150, 170, 0.12) 45%, transparent 75%),
    radial-gradient(ellipse 95% 75% at 50% 105%, rgba(15, 60, 75, 0.4) 0%, transparent 70%),
    var(--bg);
}

.hero-banner-cyan .wordmark .wm-a {
  color: var(--accent);
}

.hero-banner-cyan .hero-banner-content .tagline {
  color: var(--accent);
}

.hero-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 3, 10, 0.35) 0%, rgba(2, 3, 10, 0.55) 55%, rgba(2, 3, 10, 0.88) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.hero-banner-content .mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}

.hero-banner-content h1 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.hero-banner-content .tagline {
  text-align: center;
  color: var(--studio-accent);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .hero-banner {
    min-height: 440px;
  }
}

.studio-intro {
  max-width: 560px;
  margin: 0 auto;
}

.studio-intro p {
  text-align: center;
}

/* Narrow reading column for prose pages inside a .wide frame, so the page
   shell (nav, hero image) can be wide while the actual text stays readable. */
.prose {
  max-width: 620px;
  margin: 0 auto;
}

/* Badges / status pills */
.badge {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 16px;
}

.badge.status-testing {
  color: #f0c878;
  border-color: #5a4826;
}

/* Game / studio cards */
.game-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 16px;
}

.game-card img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex-shrink: 0;
  display: block;
}

.game-card h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.coming-card {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Decorative artwork banner (clearly not gameplay) */
.decor {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 8px 0 28px;
  border: 1px solid var(--border);
  background: #060a16;
}

.decor img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.92;
}

/* Full-bleed homepage hero: edge-to-edge, no border/radius, taller. */
.decor.hero-bleed {
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0 40px;
}

.decor.hero-bleed img {
  height: min(60vh, 620px);
  object-position: center 35%;
}

@media (max-width: 700px) {
  .decor.hero-bleed img {
    height: 320px;
  }
}

.decor-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(2, 3, 10, 0.68);
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
}

/* Real gameplay screenshot gallery */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 8px;
}

.shot-item img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.shot-caption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}

.gallery-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

@media (max-width: 600px) {
  .shot-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* Video placeholder */
.video-placeholder {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 18px 0 8px;
}

.video-placeholder img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.45) saturate(0.9);
}

.video-placeholder .video-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 20px;
}
