/* Rodigital — colours taken from the logo (background #010318 is also the games' launch colour) */
:root {
  --bg: #010318;
  --bg-raised: #080b2b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f3fb;
  --muted: #a7a9cc;
  --violet: #6a2cff;
  --magenta: #ff2fc8;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --brand: linear-gradient(100deg, var(--violet) 0%, var(--magenta) 42%, var(--orange) 74%, var(--yellow) 100%);
  --radius: 18px;
  --wrap: 1120px;
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft brand glow behind everything, like the square logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 0% 0%, rgba(80, 30, 220, 0.20), transparent 70%),
    radial-gradient(55vw 45vh at 100% 100%, rgba(255, 60, 140, 0.13), transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--text); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 3, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.wordmark { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 400; }

.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- hero ---------- */

.hero { padding: 56px 0 88px; text-align: center; }

.hero-logo {
  width: min(560px, 100%);
  margin: 0 auto;
  /* fade the image edges so its glow melts into the page */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 17%, #000 83%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 17%, #000 83%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px auto 14px;
  max-width: 20ch;
}
.hero .makers { font-size: 1.05rem; font-weight: 600; margin: 0 auto 10px; color: var(--text); }
.hero .makers a { text-decoration: none; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .makers a:hover { text-decoration: underline; text-decoration-color: var(--magenta); }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 52ch; margin: 0 auto 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 30px -8px rgba(255, 47, 200, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(255, 47, 200, 0.7); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- sections ---------- */

section { scroll-margin-top: 76px; }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* "PLAY • CREATE • INNOVATE" style label with the logo's pixel trail */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.pixels { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.pixels i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--magenta); }
.pixels i:nth-child(2) { background: #ff5fa0; opacity: 0; }
.pixels i:nth-child(3) { background: var(--orange); }
.pixels i:nth-child(4) { background: #ff6f7a; opacity: 0; }
.pixels i:nth-child(5) { background: #ff7a5c; }
.pixels i:nth-child(6) { opacity: 0; }

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 44px; }

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- games ---------- */

.games { display: grid; gap: 28px; }

.game {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 420px;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  isolation: isolate;
}
.game:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.game:nth-child(even) .game-art { order: 2; }

.game-art { position: relative; min-height: 260px; }
.game-art > img.scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.game-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(1, 3, 24, 0.55));
}
.game-art .game-logo {
  position: absolute; z-index: 1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(78%, 420px);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.game-body { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }

.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.game-head h3 { margin: 0; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1.2; }
.game-genre { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }

.game-body p.desc { margin: 0 0 22px; color: #d6d7ec; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.82rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: #d6d7ec;
}

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
}
.status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.18);
}
.status.soon::before { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.18); }
.status.live::before { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }

/* ---------- store badges (official artwork, unmodified) + QR codes ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 18px 22px; margin: 22px 0 0; }
.store { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.badge { display: inline-flex; align-items: center; height: 44px; border-radius: 9px; }
.badge img { height: 44px; width: auto; }
/* Google's PNG carries 41/250 of transparent padding on every side: scale it up and pull the padding in */
.badge-google { overflow: visible; }
.badge-google img { height: 65.5px; margin: -10.75px; }
.badge[aria-disabled="true"] { pointer-events: none; cursor: default; }

.qr {
  width: 104px; height: 104px; padding: 8px; border-radius: 12px;
  background: #fff;
}
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
/* until the store link exists */
.qr-soon {
  display: grid; place-items: center; text-align: center;
  background: transparent; border: 1.5px dashed rgba(255, 255, 255, 0.22);
  color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
/* on phones you tap the badge; a QR code only helps on a bigger screen */
@media (hover: none) and (pointer: coarse), (max-width: 560px) {
  .qr { display: none; }
}

.game-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 0; font-size: 0.9rem; }
.game-links a.more { color: var(--text); font-weight: 600; text-decoration: none; }
.game-links a.more:hover { color: #ff8fe0; }
.game-links a { color: var(--muted); text-underline-offset: 3px; }
.game-links a:hover { color: var(--text); }

/* thin brand-coloured edge on each game card */
.game::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: var(--brand);
}

/* ---------- studio ---------- */

.studio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.studio-grid p { color: #d6d7ec; margin: 0 0 16px; }

.pillars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pillars li {
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px solid var(--line);
}
.pillars strong {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase;
  margin-bottom: 6px;
}
.pillars strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--magenta)); }
.pillars span { color: var(--muted); font-size: 0.97rem; }

/* ---------- contact ---------- */

.contact-card {
  position: relative; overflow: hidden;
  padding: 56px 40px; border-radius: calc(var(--radius) + 6px);
  background: var(--bg-raised); border: 1px solid var(--line);
  text-align: center;
}
.contact-card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 47, 200, 0.18), transparent);
  z-index: 0; pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h2 { margin-bottom: 10px; }
.contact-card p { color: var(--muted); margin: 0 auto 28px; max-width: 48ch; }
.mail {
  display: inline-block; font-size: clamp(1.25rem, 3.2vw, 1.9rem); font-weight: 700;
  text-decoration: none; word-break: break-all;
  border-bottom: 2px solid transparent; transition: border-color .2s;
}
.mail:hover { border-color: var(--magenta); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.tagline { letter-spacing: 0.24em; font-size: 0.74rem; text-transform: uppercase; }
.tagline .d1 { color: var(--magenta); }
.tagline .d2 { color: var(--orange); }

/* ---------- legal pages ---------- */

.legal { padding: 64px 0 88px; }
.legal [id] { scroll-margin-top: 84px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15; }
.legal .sub { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #d6d7ec; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; color: #d6d7ec; }
.legal a { color: #ff8fe0; text-underline-offset: 3px; }
.legal a:hover { color: #fff; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }
.legal .lang-switch { display: inline-flex; gap: 8px; margin-bottom: 32px; }
.legal .lang-switch a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; }
.legal .lang-switch a:hover { background: rgba(255, 255, 255, 0.06); }
.legal .box { padding: 20px 24px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); }
.legal .box > p:first-child { margin-top: 0; }
.legal .box > p:last-child { margin-bottom: 0; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: #d6d7ec; }

/* ---------- game pages ---------- */

.game-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero > img.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.game-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1, 3, 24, 0.15) 0%, rgba(1, 3, 24, 0.55) 60%, var(--bg) 100%);
}
.game-hero .wrap { padding: 72px 0 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.game-hero .game-logo { width: min(520px, 90%); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5)); }
.game-hero .tagline-lg { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 600; margin: 18px 0 14px; max-width: 34ch; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.game-hero .status { margin-bottom: 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.game-hero .stores { justify-content: center; }
.game-hero .store { align-items: center; }

.game-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.game-intro p { color: #d6d7ec; margin: 0 0 16px; }
.features { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 26px; color: #d6d7ec; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 2.5px;
  background: var(--brand);
}
.facts { padding: 24px 26px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); }
.facts h3 { margin: 0 0 14px; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .game-links { margin-top: 20px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gallery a { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 16px 12px; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 880px) {
  .game-intro { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr; }
}

.support-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 16px; }
.legal a.support-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.legal a.support-card:hover { border-color: rgba(255, 47, 200, 0.5); transform: translateY(-2px); color: var(--text); }
.support-card img { width: 56px; height: 56px; border-radius: 13px; }
.support-card strong { display: block; font-size: 1.1rem; }
.support-card small { color: var(--muted); font-size: 0.9rem; }

/* Placeholder that still needs real data before going live — see README.md */
.todo { outline: 2px dashed var(--orange); outline-offset: 2px; background: rgba(255, 138, 61, 0.14); border-radius: 4px; padding: 0 4px; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .game, .game:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .game:nth-child(even) .game-art { order: 0; }
  .game-art { aspect-ratio: 16 / 9; min-height: 0; }
  .game-body { padding: 28px 24px 30px; }
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 60px; }
  .brand .wordmark { display: none; }
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
  .hero { padding: 32px 0 64px; }
  .section { padding: 64px 0; }
  .contact-card { padding: 40px 20px; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
