/* Perfect Fifth studio site. Shared by the studio home page and each app's page.
   Privacy pages keep their own style files so the policy URLs never change look under Play's feet. */
:root {
  --bg: #14121f;
  --bg-2: #1c1930;
  --card: #231f3b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2eefc;
  --muted: #a9a3c4;
  --accent: #f4b93a;      /* the chai-stall mustard, our one warm colour */
  --accent-ink: #2b1a14;
  --indigo: #6f6ad8;
  --radius: 16px;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #2a2552 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(20, 18, 31, 0.78); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.top nav a:hover { color: var(--text); }
@media (max-width: 520px) { .top nav { gap: 14px; } .top nav a { font-size: 0.88rem; } }

/* hero */
.hero { padding: 84px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 620px; margin: 0 auto 28px; color: var(--muted); font-size: 1.15rem; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* sections */
section { padding: 56px 0; }
h2 { font-size: 1.7rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

/* app cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.app .cover { aspect-ratio: 1024 / 500; background: var(--bg-2); }
.app .cover img { width: 100%; height: 100%; object-fit: cover; }
.app .cover.plain { display: grid; place-items: center; background: linear-gradient(135deg, #2e2d7d, #14121f); }
.app .cover.plain img { width: 96px; height: 96px; border-radius: 22px; }
.app .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app .row { display: flex; align-items: center; gap: 14px; }
.app .row img { width: 52px; height: 52px; border-radius: 12px; }
.app h3 { margin: 0; font-size: 1.2rem; }
.app .sub { margin: 0; color: var(--muted); font-size: 0.9rem; }
.app p { margin: 0; color: var(--muted); }
.app .actions { margin-top: auto; padding-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(244, 185, 58, 0.16); color: var(--accent); }
.pill.soon { background: rgba(111, 106, 216, 0.2); color: #b9b6ff; }

/* about + values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.value h3 { margin: 0 0 6px; font-size: 1.05rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* screenshot strip */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 20px 18px; margin: 0 -20px; scroll-snap-type: x mandatory; scroll-padding-left: 20px; }
.shots figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.shots img { width: 220px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.shots figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; text-align: center; }
@media (min-width: 900px) { .shots figure, .shots img { width: 236px; } }

/* feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.feature .em { font-size: 1.6rem; line-height: 1; }
.feature h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.feature h3 .pill { margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* game page hero */
.game-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: 56px 0 24px; }
.game-hero .titlebox { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-hero .titlebox img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.game-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; }
.game-hero .by { margin: 0; color: var(--muted); }
.game-hero p.tag { color: var(--text); font-size: 1.2rem; margin: 0 0 12px; }
.game-hero p.desc { color: var(--muted); margin: 0 0 22px; }
.game-hero .feature-img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45); }
@media (max-width: 800px) { .game-hero { grid-template-columns: 1fr; } .game-hero .btns { justify-content: flex-start; } }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; }
.facts li { margin: 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* contact + footer */
.contact { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 20px; }
.contact p { color: var(--muted); margin: 0 0 18px; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
