/* MK GAMES site styles. Each game section sets its own colors with --accent, --accent-2 and --bg. */

@font-face { font-family: "Saira"; src: url("fonts/saira.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Saira"; src: url("fonts/saira-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0b0b10;
  --ink-2: #14141c;
  --paper: #f1f1f6;
  --muted: #a9a9ba;
  --line: rgba(255, 255, 255, .13);
  --brand: #ffc60a;
  --accent: var(--brand);
  --accent-2: #fff;
  --display: "Saira", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 500 17px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--brand); color: var(--ink); font-weight: 800; }
.skip:focus { left: 8px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 16, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.bar-logo img { width: 92px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.bar nav a:hover { color: var(--paper); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { appearance: none; border: 0; background: none; color: var(--muted); font: 800 13px/1 var(--body); padding: 8px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.speed { position: absolute; left: 0; top: 50%; width: 46vw; max-width: 720px; transform: translateY(-50%); opacity: .06; pointer-events: none; }
h1 { margin: 0; font: italic 800 clamp(44px, 6.5vw, 92px)/.98 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
h1 em { display: block; font-style: inherit; color: var(--brand); }
.hero-text { margin-top: 26px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.picks { display: grid; gap: 12px; }
.pick { display: flex; align-items: center; gap: 16px; padding: 12px; padding-right: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); text-decoration: none; transition: transform .18s, border-color .18s; }
.pick img { width: 72px; height: 72px; border-radius: 16px; }
.pick b { display: block; font: italic 700 25px/1.15 var(--display); }
.pick small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.pick svg { flex: none; margin-left: auto; width: 14px; color: var(--pick); }
.pick:hover { transform: translateX(6px); border-color: var(--pick); }

/* Game sections */
.game { position: relative; overflow: hidden; background: var(--bg); padding-block: clamp(56px, 8vw, 104px); }
.game > .wrap { position: relative; }
.game-head { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 26px); margin-bottom: clamp(28px, 4vw, 48px); }
.game-head img { flex: none; width: clamp(76px, 9vw, 112px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 14px 40px -12px var(--accent); }
.kicker { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
h2 { margin: 0; font: italic 800 clamp(40px, 7vw, 84px)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; font-weight: 600; }
.features { display: grid; gap: 10px; margin-top: 22px; }
.features li { position: relative; padding-left: 26px; color: rgba(241, 241, 246, .82); line-height: 1.5; }
.features li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%); }
.features b { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.facts li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 700; color: rgba(241, 241, 246, .78); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; font-size: 15.5px; line-height: 1.2; text-decoration: none; transition: transform .15s, background-color .15s, border-color .15s; }
.btn svg { flex: none; width: 19px; height: 19px; }
a.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); }
.btn-play { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #0b0b10); }
a.btn-play:hover { border-color: var(--accent); }
.btn-soon { color: rgba(241, 241, 246, .8); border-style: dashed; cursor: default; }
.poster { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .13), 0 30px 70px -30px #000; }
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(32px, 5vw, 56px); }
.shot { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .3); cursor: zoom-in; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .18s, box-shadow .18s; }
.shot:hover { transform: translateY(-5px); box-shadow: 0 0 0 2px var(--accent); }
.shot:focus-visible { outline-offset: 2px; border-radius: 14px; }

.t-paradox { --accent: #29e4ff; --accent-2: #ff4fd8; --bg: radial-gradient(70% 55% at 88% 6%, rgba(255, 79, 216, .24), transparent 70%), radial-gradient(60% 50% at 4% 96%, rgba(41, 228, 255, .15), transparent 70%), #0a0518; }
.t-paradox h2 span { color: var(--accent-2); }
.t-cyber { --accent: #5fe3cb; --accent-2: #a78bfa; --bg: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 72% 9%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 36% 44%, #cfd6ff 50%, transparent 52%), radial-gradient(2px 2px at 91% 38%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 55% 72%, #cfd6ff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 7% 82%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 84% 88%, #cfd6ff 50%, transparent 52%), radial-gradient(65% 60% at 76% 22%, rgba(82, 72, 200, .42), transparent 72%), #070a1f; }
.t-cyber h2 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.t-magne { --accent: #ffd21f; --bg: linear-gradient(180deg, #41122f 0, #1b1030 46%, #0c1c3f 100%); border-top: 8px solid #ff3b6b; border-bottom: 8px solid #39a0ff; }
.t-magne h2 span { color: var(--accent); }

/* Privacy and contact */
.privacy { padding-block: clamp(56px, 8vw, 104px); }
.h-sub { font-size: clamp(36px, 5.6vw, 68px); }
.privacy-intro { margin-top: 16px; max-width: 42em; color: var(--muted); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-block: 1px solid var(--line); }
.promises li { padding: 22px 22px 22px 0; }
.promises li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.promises b { display: block; margin-bottom: 4px; font: italic 700 22px/1.2 var(--display); }
.promises span { color: var(--muted); font-size: 15.5px; line-height: 1.5; display: block; }
.policy-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.contact { background: var(--brand); color: var(--ink); padding-block: clamp(44px, 6vw, 72px); }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.contact h2 { font-size: clamp(32px, 5vw, 56px); }
.contact p { margin-top: 4px; font-weight: 600; }
.mail { font: italic 700 clamp(20px, 3vw, 32px)/1.2 var(--display); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact :focus-visible { outline-color: var(--ink); }
footer { padding-block: 28px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Screenshot viewer */
dialog.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 9, .94); color: #fff; }
dialog.viewer[open] { display: flex; align-items: center; justify-content: center; }
dialog.viewer img { max-width: 100%; max-height: 100dvh; width: auto; height: auto; padding: 56px 12px 12px; object-fit: contain; }
.v-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(20, 20, 28, .85); color: #fff; font: 700 22px/1 var(--body); cursor: pointer; }
.v-close { top: 8px; right: 12px; }
.v-prev { left: 12px; top: 50%; }
.v-next { right: 12px; top: 50%; }

/* Policy pages */
.doc { --accent: var(--brand); padding-block: clamp(32px, 6vw, 72px) 72px; }
.doc .wrap { max-width: 780px; }
.back { display: inline-flex; gap: 8px; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; }
.back:hover { color: var(--paper); }
.doc-head { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.doc-head img { flex: none; width: 76px; height: 76px; border-radius: 18px; }
.doc h1 { font-size: clamp(36px, 6.6vw, 60px); line-height: 1; }
.doc-lang { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.doc-lang a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.doc-lang a:hover { border-color: var(--accent); }
.doc section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc section > h2 { font-size: clamp(28px, 4.6vw, 40px); }
.doc .muted { margin-top: 6px; color: var(--muted); font-size: 15px; }
.doc h3 { margin: 28px 0 6px; font: italic 700 22px/1.25 var(--display); }
.doc p { color: rgba(241, 241, 246, .86); }
.doc p + p { margin-top: 10px; }
.doc section a { color: var(--accent); overflow-wrap: anywhere; }
.doc strong { color: #fff; }

@media (max-width: 900px) {
  .hero .wrap, .game-body { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(40px, 11.5vw, 92px); }
  .speed { display: none; }
  .poster { order: -1; }
  .shots { display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .shot { flex: 0 0 min(58vw, 240px); scroll-snap-align: start; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises li, .promises li + li { padding: 18px 16px 18px 0; border-left: 0; }
  .promises li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .promises li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .policy-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar .wrap { gap: 12px; }
  .bar nav { gap: 14px; font-size: 14px; }
  .bar nav .opt { display: none; }
  .bar-logo img { width: 72px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .promises li, .promises li + li, .promises li:nth-child(even) { padding: 16px 0; border-left: 0; }
  .promises li + li { border-top: 1px solid var(--line); }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
