/* Qyran — "Poster" direction.
   Layout: cream page, heavy ink outlines, each game owns a solid colour block. */

@font-face { font-family: "Bricolage"; src: url(/assets/bricolage.a756882d8a.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/inter.3100e775e8.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #14161f;
  --ink-2: #4a4a52;
  --cream: #f6f0e4;
  --paper: #ffffff;
  --gold: #f0b43c;
  --case: #dcbd84;
  --case-ink: #2a1d0e;
  --case-accent: #9e2f1f;
  --yw: #1f4a45;
  --yw-ink: #fbe9c7;
  --yw-accent: #ffb347;
  --red: #b23a28;
  --red-ink: #fff3ec;

  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r: 28px;
  --r-sm: 18px;
  --line: 2px solid var(--ink);
  --lift: 0 6px 0 var(--ink);
  --space: clamp(32px, 5vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"] { list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
[id] { scroll-margin-top: 24px; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 2px solid currentColor; line-height: 1.2; }
.small { font-size: 14px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 700 16px/1 var(--body); text-decoration: none;
  background: var(--cream); color: var(--ink); box-shadow: 0 4px 0 var(--gold);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold); }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 rgba(20, 22, 31, .35); }
.btn-dark:hover { box-shadow: 0 2px 0 rgba(20, 22, 31, .35); }
.btn-line { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; }
.btn-line:hover { box-shadow: none; transform: translateY(-1px); }
.btn-line-light { background: transparent; color: var(--cream); border: 2px solid var(--cream); box-shadow: none; }
.btn-line-light:hover { box-shadow: none; transform: translateY(-1px); }

/* ---------- header ---------- */
.top { padding-block: 16px; position: relative; z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: .06em; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 4px; background: var(--paper); border-radius: 999px; padding: 6px; border: var(--line); box-shadow: 0 2px 0 var(--ink); }
.nav a { padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--ink); color: var(--cream); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; padding: 0 18px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 14px; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--gold); color: var(--ink); }
.menu-panel { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); background: var(--paper); border: var(--line); border-radius: 20px; padding: 8px; display: grid; box-shadow: var(--lift); }
.menu-panel a { padding: 14px 16px; border-radius: 12px; font: 700 20px/1.1 var(--display); text-decoration: none; }
.menu-panel a:hover { background: var(--cream); }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(8px, 2vw, 24px) var(--space); }
.hero-box { background: var(--ink); color: var(--cream); border-radius: var(--r); padding: clamp(28px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.hero-box::after { content: ""; position: absolute; z-index: -1; width: clamp(220px, 30vw, 420px); aspect-ratio: 1; border-radius: 50%; right: clamp(-230px, -13vw, -90px); top: clamp(-250px, -15vw, -110px); background: var(--gold); }
.hero-box .eyebrow { color: var(--gold); margin-bottom: clamp(16px, 2vw, 24px); }
.hero h1 { font: 800 clamp(54px, 11.5vw, 184px)/.86 var(--display); letter-spacing: -.05em; }
.hero h1 span { display: block; color: var(--gold); }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(28px, 4vw, 48px); }
.hero-row p { max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: #d9d4c8; }

/* ---------- blocks ---------- */
.block { padding-bottom: var(--space); }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.block-head h2 { font: 800 clamp(38px, 5vw, 64px)/.95 var(--display); letter-spacing: -.04em; }
.block-head p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- game cards (home) ---------- */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.game { border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; border: var(--line); box-shadow: var(--lift); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.game:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.game figure { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--line); }
.game img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.game:hover img { transform: scale(1.03); }
.game-body { container-type: inline-size; padding: clamp(22px, 3vw, 40px); flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.game h3 { font: 800 clamp(36px, 15cqi, 80px)/.9 var(--display); letter-spacing: -.045em; margin: 16px 0 14px; }
.game p { font-size: clamp(16px, 1.4vw, 18px); max-width: 40ch; }
.go { margin-top: auto; padding-top: 24px; font: 700 18px/1 var(--display); display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
.go i { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; }
.go svg { width: 20px; height: 20px; }

.g-case { background: var(--case); color: var(--case-ink); }
.g-case .pill { color: var(--case-accent); }
.g-yw { background: var(--yw); color: var(--yw-ink); }
.g-yw .pill { color: var(--yw-accent); }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.v { border-radius: var(--r); padding: 28px; background: var(--paper); border: var(--line); min-width: 0; }
.v h3 { font: 800 24px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.v p { font-size: 15.5px; color: var(--ink-2); }
.v-big { background: var(--gold); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.v-big h2 { font: 800 clamp(28px, 2.8vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.v-big p { color: var(--ink); }

/* ---------- contact ---------- */
.contact { padding-bottom: var(--space); }
.contact-box { border-radius: var(--r); background: var(--red); color: var(--red-ink); padding: clamp(32px, 6vw, 80px); display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.contact h2 { font: 800 clamp(48px, 7vw, 110px)/.9 var(--display); letter-spacing: -.045em; }
.contact-side { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.contact-side p { opacity: .9; }
.mail { font: 700 clamp(20px, 2.4vw, 30px)/1.1 var(--display); text-decoration: none; border-bottom: 3px solid rgba(255, 243, 236, .55); padding-bottom: 6px; overflow-wrap: anywhere; }
.mail:hover { border-color: var(--red-ink); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--red-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.socials a:hover { background: var(--red-ink); color: var(--red); }

/* ---------- footer ---------- */
.foot { border-top: var(--line); background: var(--paper); padding-block: clamp(36px, 5vw, 56px) 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 38ch; }
.foot-col { display: grid; align-content: start; gap: 10px; font-size: 15px; min-width: 0; }
.foot-col b { font: 800 16px/1.2 var(--display); margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(20, 22, 31, .15); font-size: 13.5px; color: var(--ink-2); }

/* ---------- game page ---------- */
.ghero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; padding: 0; border-radius: var(--r); overflow: hidden; border: var(--line); box-shadow: var(--lift); margin-top: clamp(8px, 2vw, 24px); margin-bottom: var(--space); }
.ghero-text { container-type: inline-size; min-width: 0; padding: clamp(24px, 4.5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-content: center; }
.ghero h1 { font: 800 clamp(40px, 16cqi, 128px)/.86 var(--display); letter-spacing: -.05em; }
.ghero-tag { font: 700 clamp(20px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -.01em; max-width: 22ch; }
.ghero-art { border-left: var(--line); min-height: 100%; }
.ghero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.ghero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.g-yw .btn-dark { background: var(--yw-ink); color: var(--yw); }
.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.stores li { font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .08); }
.g-yw .stores li { background: rgba(255, 255, 255, .1); }
.stores .soon { background: transparent; border: 2px dashed currentColor; padding: 4px 10px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; opacity: .8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 4vw, 64px); }
.about h2 { font: 800 clamp(38px, 5vw, 64px)/.95 var(--display); letter-spacing: -.04em; }
.about-text { display: grid; gap: 18px; font-size: clamp(17px, 1.5vw, 20px); max-width: 62ch; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.feature { background: var(--paper); border: var(--line); border-radius: var(--r-sm); padding: 26px; min-width: 0; }
.feature h3 { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 10px; }
.feature p { font-size: 15.5px; color: var(--ink-2); }
.theme-case .feature:first-child { background: var(--case); }
.theme-yw .feature:first-child { background: var(--yw); color: var(--yw-ink); }
.theme-yw .feature:first-child p { color: var(--yw-ink); opacity: .85; }
.theme-case .feature:first-child p { color: var(--case-ink); }

.shots-section .block-head { margin-bottom: clamp(18px, 2.4vw, 28px); }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.shots figure { display: grid; gap: 10px; }
.shots img { width: 100%; border-radius: 24px; border: var(--line); box-shadow: var(--lift); background: var(--ink); aspect-ratio: 390 / 844; }
.shots figcaption { font-weight: 700; font-size: 15px; text-align: center; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(16px, 4vw, 64px); }
.faq h2 { font: 800 clamp(38px, 5vw, 64px)/.95 var(--display); letter-spacing: -.04em; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: var(--line); border-radius: var(--r-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 700 19px/1.25 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 26px/1 var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 60ch; }
.faq-more { grid-column: 2; font-size: 15.5px; color: var(--ink-2); }

.next-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; border-radius: var(--r); border: var(--line); box-shadow: var(--lift); padding: clamp(24px, 4vw, 48px); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.next-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.next-card .pill { grid-column: 1; justify-self: start; }
.next-name { grid-column: 1; font: 800 clamp(40px, 5vw, 72px)/.9 var(--display); letter-spacing: -.045em; }
.next-tag { grid-column: 1; font-size: clamp(16px, 1.4vw, 18px); }
.next-card i { grid-column: 2; grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.next-card svg { width: 26px; height: 26px; }

/* ---------- docs: privacy, support, press ---------- */
.doc { padding-block: clamp(16px, 3vw, 40px) var(--space); max-width: 880px; }
.doc .crumbs { margin-bottom: 20px; }
.doc h1 { font: 800 clamp(44px, 7vw, 88px)/.92 var(--display); letter-spacing: -.045em; margin-bottom: 20px; }
.doc-intro { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; margin-bottom: 12px; }
.doc section { border-top: var(--line); padding-top: 22px; margin-top: 32px; }
.doc h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 12px; }
.doc section p { max-width: 64ch; color: var(--ink-2); }
.doc section p + p { margin-top: 12px; }
.doc a { text-underline-offset: 3px; text-decoration-thickness: 2px; }
.doc b { color: var(--ink); }

.press { max-width: var(--max); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 56px); }
.press-grid p { max-width: 60ch; color: var(--ink-2); }
.facts { display: grid; gap: 0; border: var(--line); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; align-self: start; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(20, 22, 31, .12); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--ink-2); overflow-wrap: anywhere; }
.press-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.press-game { border: var(--line); border-radius: var(--r-sm); overflow: hidden; display: grid; }
.press-game img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: var(--line); }
.press-game > div { padding: 22px; display: grid; gap: 8px; justify-items: start; }
.press-game h3 { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.press-game p { color: inherit !important; }
.press-game .small { opacity: .8; }
.press-game a { font-weight: 700; }
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.logo-tile { border: var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 28px 20px 16px; display: grid; gap: 18px; justify-items: center; text-decoration: none; font-weight: 700; font-size: 14px; }
.logo-tile img { height: 56px; width: auto; }
.logo-tile.dark { background: var(--ink); color: var(--cream); }
.logo-tile.gold { background: var(--gold); }
.logo-tile:hover span { text-decoration: underline; }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(8px, 2vw, 24px) var(--space); }
.lost-box { background: var(--ink); color: var(--cream); border-radius: var(--r); padding: clamp(32px, 7vw, 96px); display: grid; gap: 18px; justify-items: start; }
.lost-box .eyebrow { color: var(--gold); }
.lost h1 { font: 800 clamp(48px, 9vw, 140px)/.88 var(--display); letter-spacing: -.05em; }
.lost p { max-width: 48ch; color: #d9d4c8; }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .top { position: relative; }
  .games, .press-games { grid-template-columns: minmax(0, 1fr); }
  .ghero { grid-template-columns: minmax(0, 1fr); }
  .ghero-art { border-left: 0; border-top: var(--line); order: -1; }
  .about, .faq, .press-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-more { grid-column: 1; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 14px; scrollbar-width: thin; }
  .shots li { flex: 0 0 min(62vw, 260px); scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .values, .features, .logos { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-box { align-items: flex-start; }
  .next-card { grid-template-columns: minmax(0, 1fr); }
  .next-card i { grid-column: 1; grid-row: auto; width: 52px; height: 52px; }
  .btn { width: 100%; }
  .ghero-cta, .lost-links { width: 100%; }
  .hero-row .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
