/* jolved labs games — the studio's pages (home, one page per game, its privacy policy).
   The Weekly Game Challenge archive keeps its own styles in challenge/styles.css. */
:root {
  --bg: #05060a;
  --panel: #0c1018;
  --line: #1b2333;
  --line-strong: #2a3547;
  --ink: #eaf6ff;
  --ink-2: #d5e2f0;
  --ink-3: #b8c6d8;
  --mut: #93a3b8;
  --accent: #39e6ff;
  --accent-hi: #8af2ff;
  --pink: #ff6b9d;
  --wrap: 1200px;
  --mono: 'Share Tech Mono', ui-monospace, Consolas, monospace;
  --sans: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }   /* the width/height attributes reserve space; CSS sizes the box */
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 6px; font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0; }
.muted { color: var(--mut); }

/* header and footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; align-items: center; }
.logo b { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.logo b span { color: var(--accent); }
.logo small { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--mut); text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--accent); }
.crumbs { font-family: var(--mono); font-size: 14px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.crumbs a { color: var(--mut); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.site-foot .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; font-size: 14px; color: var(--mut); }
.site-foot .col { display: flex; flex-direction: column; gap: 6px; }
.site-foot .col strong { color: var(--ink); font-weight: 600; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn:hover { color: var(--bg); background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 15px; font-weight: 500; }
.pill.small { min-height: 44px; padding: 0 14px; font-size: 14px; color: var(--ink-3); }
.btn svg, .pill svg { flex: none; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* phone frames */
.phone { border-radius: 30px; border: 7px solid #1c2433; background: #000; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); }
.phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

/* home: hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 64px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(52px, 8vw, 96px); line-height: 0.95; font-weight: 700; letter-spacing: -1px; }
.hero .lead { margin: 0; font-size: 22px; line-height: 1.4; color: var(--ink-2); max-width: 520px; }
.hero .sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mut); max-width: 520px; }
.hero-shots { flex: 1 1 480px; min-width: 0; display: flex; justify-content: center; gap: 24px; align-items: flex-start; }
.hero-shots .phone { width: 220px; max-width: 46%; }
.hero-shots .phone + .phone { margin-top: 56px; }

/* home: sections and cards */
.section { padding-top: 24px; padding-bottom: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 34px; font-weight: 700; }
.section-head p { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--mut); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card > img, .card .cover { display: block; width: 100%; aspect-ratio: 630 / 500; object-fit: cover; background: #121826; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .tags { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); margin: 0; }
.card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .line { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); flex: 1; }
.card .btns { gap: 10px; padding-top: 6px; }
.grid.dev { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card.dev .cover { aspect-ratio: 630 / 500; }
.card.dev .title-card { aspect-ratio: 630 / 500; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; background: radial-gradient(circle at 50% 40%, #142033 0%, #0a0e16 70%); border-bottom: 1px solid var(--line); }
.card.dev .title-card span { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--ink-2); line-height: 1.1; }
.badge { display: inline-flex; align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink); border: 1px solid rgba(255, 107, 157, 0.45); border-radius: 4px; padding: 2px 8px; }
.archive { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.archive .text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.archive .text .eyebrow { color: var(--pink); }
.archive h2 { margin: 0; font-size: 24px; font-weight: 700; }
.archive p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }

/* game pages */
.game-top { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-end; padding-top: 56px; padding-bottom: 36px; }
.game-id { flex: 1 1 560px; min-width: 0; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.game-id > div { flex: 1 1 280px; min-width: 0; }
.game-id .icon { flex: none; width: 112px; height: 112px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.game-id h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 700; }
.game-id .lead { margin: 8px 0 0; font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 640px; }
.key-art { display: block; width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.banner { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.h2 { margin: 0 0 22px; font-size: 28px; font-weight: 700; }
.shots { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; margin: 0; padding-left: 0; list-style: none; }
.shots li { flex: 0 0 200px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shots .phone { border-radius: 28px; box-shadow: none; }
.shots figcaption { font-family: var(--mono); font-size: 13px; color: var(--mut); text-align: center; }
.shots.wide li { flex: 0 0 min(460px, 82vw); }
.shots.wide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.about { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.about .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about .main > p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--accent); }
.feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.facts-box { flex: 1 1 280px; min-width: 0; }
.facts { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; font-size: 15px; }
.facts dt { font-family: var(--mono); color: var(--mut); }
.facts dd { margin: 0; }

/* privacy */
.policy { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.policy .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.lang { display: flex; gap: 4px; font-size: 14px; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; color: var(--mut); text-decoration: none; }
.lang a:hover { color: var(--ink); background: #121826; }
.policy h1 { margin: 18px 0 6px; font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--ink); }
.policy h2 { margin: 30px 0 6px; font-size: 21px; font-weight: 700; color: var(--accent); }
.policy p { margin: 0 0 12px; }
.policy strong { color: var(--ink); }
.policy .date { font-family: var(--mono); font-size: 14px; color: var(--mut); }
.policy .short { border: 1px solid rgba(57, 230, 255, 0.35); background: rgba(57, 230, 255, 0.06); border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.policy .short h2 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.policy .short p { margin: 0; }
.policy section + section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.todo { color: #ffd0dd; background: rgba(255, 61, 129, 0.12); border: 1px dashed rgba(255, 61, 129, 0.5); border-radius: 4px; padding: 0 6px; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 40px; gap: 36px; }
  .hero .lead { font-size: 19px; }
  .section-head h2 { font-size: 28px; }
  .archive { padding: 22px 20px; }
  .game-top { padding-top: 36px; }
  .game-id .icon { width: 84px; height: 84px; border-radius: 18px; }
  .policy { padding-top: 36px; }
  .policy h1 { font-size: 32px; }
  .shots li { flex-basis: 160px; }
  .facts { padding: 18px; }
}
