/* The game's UI palette (ui_style.hpp in the game) and the page's layout. */

/* Fontsource 5.3.0 builds (OFL 1.1, licences beside the files): latin for English, latin-ext for Czech. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/cinzel-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #080c10;        /* kPanel */
  --bg-2: #0e151a;      /* kControl */
  --hover: #123036;     /* kHover */
  --edge: #1d4f49;      /* kEdge */
  --teal: #2bb6a6;      /* kTeal */
  --glow: #6ff0e0;      /* kGlow */
  --glow-text: #9ffff2; /* kGlowText */
  --text: #cdd6d2;      /* kText */
  --dim: #8a9794;       /* kDim */
  --label: #62a69d;     /* kLabel */
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--glow); }
h1, h2, h3 { margin: 0; hyphens: auto; overflow-wrap: anywhere; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(20px, 4vw); }

.label {
  font: 700 13px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--label);
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font: 700 13px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--teal); color: #04121a; }
.btn-solid:hover { background: var(--glow); }
.btn-ghost { border: 1px solid var(--edge); color: var(--text); background: rgba(8, 12, 16, .55); }
.btn-ghost:hover { border-color: var(--teal); color: var(--glow-text); background: var(--hover); }

.badge {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(8, 12, 16, .6);
  font: 700 12px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
}

.shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.shot:hover { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 28px rgba(111, 240, 224, .18); }
.shot img { width: 100%; aspect-ratio: 1600 / 992; object-fit: cover; }

/* Header: the sigil and name, the page's anchors, the language switcher. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
  padding: 0 max(20px, 4vw);
  border-bottom: 1px solid rgba(29, 79, 73, .6);
  background: rgba(8, 12, 16, .82);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font: 700 18px/1 var(--serif);
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; color: var(--glow); }
.anchors { display: flex; gap: 22px; }
.anchors a { color: var(--dim); text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.anchors a:hover { color: var(--glow-text); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--edge); border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .08em; }
.langs a { padding: 6px 10px; border-radius: 999px; color: var(--dim); text-decoration: none; }
.langs a:hover { color: var(--glow-text); }
.langs a[aria-current] { background: var(--teal); color: #04121a; }

/* Hero: a big frame of the game with the logo over its dark side. */
.hero { position: relative; height: min(86vh, 860px); min-height: 560px; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 16, .95) 0%, rgba(8, 12, 16, .78) 34%, rgba(8, 12, 16, .1) 72%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-text { position: absolute; left: max(20px, 6vw); bottom: 12vh; z-index: 1; max-width: 540px; }
.hero-text h1 { margin-bottom: 26px; }
.hero-text .logo { width: 100%; }
.hero-text .tag { margin: 0 0 10px; font-size: clamp(17px, 2vw, 20px); }
.hero-text .byline { margin: 0 0 22px; color: var(--label); font-size: 15px; }
.hero-text .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; padding-top: 88px; padding-bottom: 40px; }
.intro h2 { margin-top: 16px; font: 700 clamp(28px, 3.4vw, 40px)/1.2 var(--serif); }
.intro p { margin: 0; font-size: 18px; }

.rows { display: grid; gap: 84px; padding-top: 72px; padding-bottom: 88px; }
.row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 52px; align-items: center; }
.row:nth-child(even) .shot { order: 2; }
.row .num { color: var(--teal); }
.row h3 { margin: 12px 0 14px; font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); }
.row p { margin: 0; font-size: 17px; }

.more { padding-bottom: 88px; }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 38%);
  gap: 14px;
  margin-top: 26px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.strip .shot { scroll-snap-align: start; }

.dev { max-width: 860px; padding-bottom: 96px; }
.dev h2 { margin: 16px 0 16px; font: 700 clamp(26px, 3vw, 34px)/1.2 var(--serif); }
.dev p { margin: 0; font-size: 18px; }

footer { border-top: 1px solid var(--edge); background: #060a0d; }
footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding-top: 40px; padding-bottom: 52px; }
footer svg { width: 42px; height: 42px; color: var(--teal); }
.credits { color: var(--dim); font-size: 13px; line-height: 1.75; }
.credits p { margin: 0 0 6px; }
.credits a { color: var(--label); overflow-wrap: anywhere; }
.credits strong { color: var(--text); letter-spacing: .12em; font-weight: 600; }

dialog.lightbox {
  max-width: min(94vw, 1600px);
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--bg);
}
dialog.lightbox::backdrop { background: rgba(2, 4, 6, .88); }
/* An explicit width: inside a shrink-to-fit dialog, max-width: 100% has nothing to resolve against. */
dialog.lightbox img { width: min(92vw, 1600px, calc(84vh * 1600 / 992)); max-width: none; height: auto; }
dialog.lightbox p { margin: 0; padding: 10px 16px; color: var(--dim); font-size: 14px; }

@media (max-width: 820px) {
  .anchors { display: none; }
  .intro, .row { grid-template-columns: 1fr; gap: 22px; }
  .row:nth-child(even) .shot { order: 0; }
  .hero-text { right: 20px; }
  /* The text spans the whole width here, so the whole frame darkens, not just its left side. */
  .hero::after { background: linear-gradient(to bottom, rgba(8, 12, 16, .55), rgba(8, 12, 16, .86) 45%, var(--bg)); }
  footer .wrap { grid-template-columns: 1fr; }
}
