/* WrathEye Studios — Android games subsite (/android/).
   Self-contained: nothing here is shared with the studio site or the other game sites.
   Studio ink (near-black, off-white, one blue accent) with each game bringing its own colour. */

:root {
  --bg: #0a090d;
  --panel: #131118;
  --panel-2: #1a1721;
  --line: #26222e;
  --ink: #f4f2f7;
  --muted: #a9a3b4;
  --dim: #7d778a;
  --accent: #3a8fff;
  --huebox: #ff5fa2;
  --huebox-2: #ffc83d;
  --circuit: #35d0ba;
  --hueflow: #ff8a3d;
  --huescape: #c77dff;
  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Fredoka", "Oswald", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* ---- top bar ---- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.brand img { width: 26px; height: auto; }
.brand small { font: 12px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.bar nav { margin-left: auto; display: flex; gap: 4px; }
.bar nav a {
  white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 10px;
  transition: color 160ms ease, background-color 160ms ease;
}
.bar nav a:hover { color: var(--ink); background: var(--panel); }
.bar nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 480px) {
  .bar .wrap { gap: 8px; }
  .bar nav a { padding: 8px; font-size: 14px; }
  .bar nav a:first-child { display: none; }   /* the brand already links to the games list */
  .brand small { display: none; }
}

/* ---- type ---- */
.eyebrow { font: 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; margin: 18px 0 0; }

/* ---- hub hero ---- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 95, 162, 0.16), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(53, 208, 186, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

/* ---- game cards (hub) ---- */
.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding: 24px 0 64px; }
.game {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--panel)) 0%, var(--panel) 55%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  border-radius: var(--radius); padding: 24px; overflow: hidden;
}
.game--huebox { --c: var(--huebox); }
.game--circuit { --c: var(--circuit); }
.game-head { display: flex; align-items: center; gap: 16px; }
.game-head img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--c) 60%, transparent); }
.game p { margin: 0; color: var(--muted); }
.pill {
  display: inline-block; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 999px; margin-top: 8px;
  color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 35%, transparent);
}
.game-shots { display: flex; gap: 10px; margin-top: auto; }
.game-shots img { width: calc((100% - 20px) / 3); border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- buttons ---- */
.btn {
  --c: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 18px; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 15px;
  background: var(--c); color: #0b0a0e; border: 1px solid transparent;
  transition: transform 140ms var(--ease-out), filter 160ms ease, background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--panel-2); }
@media (hover: hover) and (pointer: fine) { .btn:not(.btn--ghost):hover { filter: brightness(1.08); } }
.game--huebox .btn:not(.btn--ghost), .page--huebox .btn:not(.btn--ghost) { --c: var(--huebox-2); }
.game--circuit .btn:not(.btn--ghost), .page--circuit .btn:not(.btn--ghost) { --c: var(--circuit); }

/* ---- promise strip ---- */
.promise { border-top: 1px solid var(--line); padding: 56px 0; }
.promise ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.promise li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.promise strong { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 15px; }

/* ---- game page ---- */
.game-hero { padding: 56px 0 32px; position: relative; overflow: hidden; }
.game-hero::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 900px; aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.page--huebox { --c: var(--huebox); }
.page--circuit { --c: var(--circuit); }
.page--hueflow { --c: var(--hueflow); }
.page--huescape { --c: var(--huescape); }
.page--hueflow .btn:not(.btn--ghost) { --c: var(--hueflow); }
.page--huescape .btn:not(.btn--ghost) { --c: var(--huescape); }
.support { margin: 0 auto; max-width: 720px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--accent)); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.support h2 { margin-top: 0; }
.support p { color: var(--muted); margin: 0 auto 20px; max-width: 52ch; }
.game-hero .wrap { position: relative; display: grid; gap: 28px; grid-template-columns: auto 1fr; align-items: center; }
.game-hero .icon { width: 148px; height: 148px; border-radius: 36px; box-shadow: 0 20px 50px -12px color-mix(in srgb, var(--c) 65%, transparent); }
.game-hero .actions { margin-top: 24px; }
.store-note { font: 13px/1.4 var(--mono); color: var(--dim); margin: 12px 0 0; }
@media (max-width: 640px) {
  .game-hero .wrap { grid-template-columns: 1fr; }
  .game-hero .icon { width: 112px; height: 112px; border-radius: 28px; }
}

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px;
  overflow-x: auto; padding: 8px 0 20px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shots img { width: 100%; border-radius: 22px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--panel); }
@media (max-width: 640px) { .shots { grid-auto-columns: 62%; } }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features strong { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 4px; color: var(--ink); }
.features span { color: var(--muted); font-size: 15px; }

.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---- policy ---- */
.policy { max-width: 760px; padding: 48px 0 72px; }
.policy h1 { font-size: clamp(34px, 5vw, 52px); }
.policy h2 { font-size: 22px; margin: 36px 0 10px; color: var(--c, var(--ink)); }
.policy p, .policy li { color: var(--muted); }
.policy strong { color: var(--ink); }
.policy a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--c, var(--accent)) 70%, transparent); text-underline-offset: 3px; }
.policy .note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); border-radius: 12px; padding: 14px 18px; color: var(--ink); }
.policy code { font-family: var(--mono); font-size: 14px; background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
.contents { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.contents a { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.contents a:hover { color: var(--ink); border-color: var(--dim); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* ---- entrance motion: one soft rise, nothing for reduced motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 600ms var(--ease-out) both; }
  .rise:nth-child(2) { animation-delay: 80ms; }
  .rise:nth-child(3) { animation-delay: 160ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
