/* Fire Crew — the website.
   The game's own look: its panels, its hi-vis lime, Oswald for the big words and Roboto Condensed for the rest.
   Two seasons instead of light and dark, as in the game: a summer evening and a winter day. */

:root {
  --lime: #d7ff3c;          /* Ui.YELLOW: the turnout stripes */
  --lime-ink: #14160a;      /* Ui.DARK */
  --red: #e23628;           /* Ui.RED */

  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --radius: 6px;            /* the game's panels */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Summer evening: the game's dark panels over a golden-hour town. */
:root[data-season="summer"] {
  --bg: #0e0f12;
  --bg-alt: #131418;
  --panel: #18191d;         /* Ui.PANEL */
  --inset: #303238;         /* Ui.INSET */
  --line: rgba(240, 242, 235, 0.1);
  --text: #f0f2eb;          /* Ui.TEXT */
  --mute: #a0a5a0;          /* Ui.DIM */
  --hi: var(--lime);        /* an accent that reads as text */
  --glow: rgba(255, 168, 82, 0.16);
  --scrim: linear-gradient(90deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.7) 40%, rgba(10, 11, 13, 0.1) 80%);
  --fade: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  color-scheme: dark;
}

/* Winter day: snow-white panels, cold light, the brigade's red for accents. */
:root[data-season="winter"] {
  --bg: #eef2f5;
  --bg-alt: #e3e9ee;
  --panel: #ffffff;
  --inset: #d7dee5;
  --line: rgba(20, 23, 28, 0.1);
  --text: #15181d;
  --mute: #56606c;
  --hi: #c62f22;
  --glow: rgba(120, 170, 230, 0.22);
  --scrim: linear-gradient(90deg, rgba(238, 242, 245, 0.95) 0%, rgba(238, 242, 245, 0.75) 42%, rgba(238, 242, 245, 0.05) 82%);
  --fade: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s, color 0.5s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 4px; }
code { font-size: 0.92em; padding: 1px 6px; border-radius: 4px; background: var(--inset); }

/* Language and season: both are in the page; the one not chosen is hidden. */
html[data-lang="sl"] [lang="en"]:not(html),
html[data-lang="en"] [lang="sl"]:not(html),
html[data-season="summer"] .s-winter,
html[data-season="winter"] .s-summer { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hi);
}
.label::before { content: ""; width: 34px; height: 5px; border-radius: 2px; background: var(--lime); }
.title {
  margin: 0 0 40px;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: 0.005em;
  text-wrap: balance;
}
h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; }
p { margin: 0; }
.sub { margin: 52px 0 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--mute); }
.note { margin-top: 22px; color: var(--mute); }
.note a { color: var(--hi); font-weight: 700; border-bottom: 2px solid currentColor; }

/* ---------- buttons, tags ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { --h: 60px; padding: 0 30px; font-size: 20px; }
.btn--hi { background: var(--lime); color: var(--lime-ink); }
.btn--hi:hover { box-shadow: 0 10px 34px -8px rgba(215, 255, 60, 0.6); transform: translateY(-1px); }
.btn--quiet { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { background: var(--inset); }
.btn:active { transform: scale(0.97); }

.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 4px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--inset); color: var(--text);
}
.tag--hi { background: var(--lime); color: var(--lime-ink); }

.band { display: block; width: 180px; height: 6px; border-radius: 2px; background: var(--lime); margin-bottom: 22px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; }
.brand img { border-radius: 8px; }
.brand b { color: var(--hi); font-weight: 700; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav__links a { color: var(--mute); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.toggle { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.toggle button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 4px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--mute); text-transform: uppercase;
}
.toggle button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--inset); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: drift 30s ease-in-out infinite alternate; }
.hero__media::before { content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--fade); z-index: 1; }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }
.lockup { margin: 0; display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 700; line-height: 0.88; text-transform: uppercase; }
.lockup__name { font-size: clamp(64px, 12vw, 156px); letter-spacing: 0.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25); }
.lockup__edition { margin-top: 10px; font-size: clamp(28px, 4.6vw, 58px); color: var(--hi); letter-spacing: 0.04em; }
:root[data-season="summer"] .lockup__edition { color: var(--lime); }
.hero__line { max-width: 34ch; margin: 26px 0 34px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 0; padding: 0; list-style: none; }
.facts li {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em;
}
.facts b { font-family: var(--f-display); font-size: 24px; color: var(--text); letter-spacing: 0.02em; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }

/* the shift, in four steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.step figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--inset); }
.step img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.step:hover img { transform: scale(1.05); }
.step__body { position: relative; padding: 22px 20px 24px; }
.step__no {
  position: absolute; top: -22px; left: 20px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--lime); color: var(--lime-ink); font-family: var(--f-display); font-weight: 700; font-size: 22px;
}
.step h3 { margin-top: 12px; }
.step p { color: var(--mute); font-size: 16px; }

.calls { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.calls li { padding: 8px 14px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 16px; }

/* editions */
.edition { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px var(--glow); }
.edition figure { margin: 0; min-height: 320px; }
.edition img { width: 100%; height: 100%; object-fit: cover; }
.edition__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3.5vw, 44px); }
.edition h3 { font-size: clamp(30px, 3.2vw, 42px); margin: 0; }
.edition h3 small { font-size: 0.6em; }
.edition p { color: var(--mute); }
.edition .btn { margin-top: auto; }

.soon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.soon__card { position: relative; padding: 26px 20px 22px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.soon__card::after {
  content: "SOON"; position: absolute; top: 14px; right: 14px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--mute);
}
html[data-lang="sl"] .soon__card::after { content: "KMALU"; }
.soon__flag { display: block; width: 54px; height: 8px; margin-bottom: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--c1) 0 33.3%, var(--c2) 33.3% 66.6%, var(--c3) 66.6%); box-shadow: inset 0 0 0 1px var(--line); }
.soon__card p { color: var(--mute); font-size: 15px; }

/* download */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 26px 26px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.dl:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--lime); }
.dl__logo { width: 40px; height: 40px; flex: none; }
.dl__text { display: flex; flex-direction: column; }
.dl__os { font-family: var(--f-display); font-weight: 600; font-size: 30px; text-transform: uppercase; line-height: 1.1; }
.dl__meta { color: var(--mute); font-size: 15px; }
.dl__yours { display: none; margin-left: auto; }
.dl.is-yours { box-shadow: inset 0 0 0 2px var(--lime); }
.dl.is-yours .dl__yours { display: inline-flex; }

.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.help details { border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.help summary { cursor: pointer; padding: 16px 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; color: var(--hi); font-size: 20px; line-height: 1; }
.help details[open] summary::after { content: "–"; }
.help p { padding: 0 18px 18px; color: var(--mute); font-size: 16px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 16px; }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin-right: 2px;
  border-radius: 5px; background: var(--text); color: var(--bg); font: 700 12px var(--f-body);
}

.discord {
  display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 28px 30px; border-radius: 10px;
  background: #5865f2; color: #fff;
}
.discord > svg { width: 52px; height: 52px; flex: none; }
.discord p { color: rgba(255, 255, 255, 0.85); }
.discord .btn { margin-left: auto; flex: none; }

/* ---------- footer ---------- */
.foot { padding: 52px 0 36px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.foot__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.brand--foot { margin: 0 0 4px; font-size: 26px; }
.foot__sub { color: var(--mute); }
.foot__links { display: flex; gap: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; }
.foot__links a:hover { color: var(--hi); }
.foot__fine { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; color: var(--mute); font-size: 14px; }
.foot__fine b { color: var(--red); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1040px) {
  .steps, .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { height: 60px; gap: 12px; }
  .brand span { display: none; }
  .toggle__word { display: none; }
  .toggle button { padding: 0 9px; }
  .hero { padding-top: 96px; }
  .hero__cta .btn { width: 100%; }
  .steps, .soon, .downloads { grid-template-columns: 1fr; }
  .edition { grid-template-columns: 1fr; }
  .edition figure { min-height: 200px; aspect-ratio: 16 / 9; }
  .dl { padding: 22px; }
  .discord { flex-direction: column; align-items: flex-start; }
  .discord .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
