/* Mogul Life Simulator — site styles
   Palette taken from the game: night harbor navy, money gold, profit green,
   and receipt paper for the patch notes. */
:root {
  --ink: #070b15;
  --navy: #0c1424;
  --navy-2: #14213b;
  --line: rgba(233, 236, 243, 0.1);
  --text: #e9ecf3;
  --slate: #93a0b8;
  --gold: #ffc74d;
  --gold-deep: #e8971a;
  --green: #5be38c;
  --paper: #f3eedf;
  --paper-ink: #2a2620;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; max-width: 18ch; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow > details { max-width: 860px; }
.section-lead { color: var(--slate); font-size: 19px; max-width: 60ch; margin-top: 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 800 16px/1 var(--body);
  text-decoration: none; color: var(--ink);
  background: var(--gold);
  border-radius: 12px; padding: 14px 22px;
  box-shadow: 0 4px 0 var(--gold-deep);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { background: #ffd36e; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn-big { font-size: 19px; padding: 20px 30px; border-radius: 14px; }
.btn-small { font-size: 14px; padding: 10px 16px; box-shadow: 0 3px 0 var(--gold-deep); }
.btn-gold { font-size: 18px; padding: 18px 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.cta-note { color: var(--slate); font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
  background: rgba(7, 11, 21, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand span { font: 900 19px var(--display); color: var(--gold); }
.links { display: flex; gap: 6px; margin-right: auto; }
.links a { text-decoration: none; color: var(--slate); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang {
  background: none; border: 1px solid var(--line); color: var(--text);
  font: 700 13px var(--body); padding: 8px 11px; border-radius: 8px; cursor: pointer;
}
.lang:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 880px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end; gap: 40px;
  padding: 120px max(28px, calc((100vw - var(--wrap)) / 2 + 24px)) 90px;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 21, .92) 0%, rgba(7, 11, 21, .6) 45%, rgba(7, 11, 21, .15) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 11, 21, 0) 40%);
}
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 900; max-width: 11ch; color: #fff; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #cfd5e2; max-width: 46ch; margin-top: 26px; }

/* the net-worth card mirrors the money panel in the game's HUD */
.worth {
  margin: 0; justify-self: end; width: min(100%, 380px);
  background: rgba(12, 20, 36, 0.88);
  border: 1px solid rgba(255, 199, 77, 0.35);
  border-radius: 18px; padding: 22px 24px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.worth figcaption { color: var(--slate); font-size: 14px; font-weight: 700; }
.worth output {
  display: block; font: 900 clamp(30px, 3.3vw, 44px)/1.1 var(--display);
  color: var(--green); font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap;
}
.spark { height: 48px; margin-top: 12px; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.spark polyline { fill: none; stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.worth-day { color: var(--slate); font-size: 13px; margin-top: 10px; }

/* ---------- features ---------- */
.play { padding: 120px 0 60px; }
.feature {
  max-width: var(--wrap); margin: 70px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.feature img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.feature.flip img { order: 2; }
.feature-text p { color: var(--slate); margin-top: 14px; font-size: 18px; }
.feature-text h3 { font-size: clamp(24px, 2.4vw, 32px); }

/* ---------- cities: a road from the open towns to the locked ones ---------- */
.cities { padding: 100px 0; background: var(--navy); border-block: 1px solid var(--line); }
.road { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 118px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 44px);
  opacity: .5;
}
.city { padding-right: 22px; }
.city img, .locked { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; position: relative; z-index: 1; }
.locked { background: linear-gradient(140deg, #2b1d4d, #7b3fbf 60%, #ff4fb3); filter: saturate(.6) brightness(.55); }
.locked.gold { background: linear-gradient(140deg, #3b2a0c, #b8862a 60%, #fff0b3); }
.city h3 { margin-top: 18px; font-size: 19px; }
.city p { color: var(--slate); font-size: 15px; margin-top: 8px; }
.state { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.open .state { background: rgba(91, 227, 140, .15); color: var(--green); }
.soon .state { background: rgba(255, 255, 255, .07); color: var(--slate); }
.soon h3 { color: var(--slate); }

/* ---------- gallery ---------- */
.gallery { padding: 110px 0; }
.shots { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 220px); grid-auto-flow: dense; gap: 12px; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.03); }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 6, 12, .9); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.lb-close, .lb-nav { position: fixed; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 24px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.prev { left: 20px; } .next { right: 20px; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--ink); }

/* ---------- download ---------- */
.download { padding: 110px 0; background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%); border-top: 1px solid var(--line); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.steps li::before {
  content: counter(s); grid-row: span 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 900 18px var(--display); color: var(--ink); background: var(--gold); border-radius: 12px;
}
.steps strong { font-size: 18px; }
.steps span { color: var(--slate); font-size: 16px; }
.smartscreen { margin-top: 22px; font-size: 14px; color: var(--slate); max-width: 62ch; padding-left: 14px; border-left: 3px solid var(--gold); }
.reqs { background: var(--navy-2); border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.reqs h3 { font-size: 18px; }
.reqs dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 15px; }
.reqs dt { color: var(--slate); }
.reqs dd { margin: 0; font-weight: 700; }

/* ---------- updates: printed receipt ---------- */
.updates { padding: 110px 0; }
.upd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 60px; align-items: start; }
.news { margin-top: 34px; display: grid; gap: 22px; }
.news article { border-left: 3px solid var(--tag, var(--gold)); padding-left: 18px; }
.news .meta { font-size: 13px; color: var(--slate); }
.news .tag { color: var(--tag, var(--gold)); font-weight: 800; margin-right: 8px; }
.news h3 { font-size: 20px; margin-top: 4px; }
.news p { color: var(--slate); margin-top: 6px; font-size: 16px; }
.receipt {
  background: var(--paper); color: var(--paper-ink);
  font: 400 14px/1.55 var(--mono);
  padding: 30px 28px 34px;
  transform: rotate(1.2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  --tooth: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.r-head { text-align: center; border-bottom: 2px dashed rgba(42, 38, 32, .35); padding-bottom: 14px; margin-bottom: 14px; }
.r-head strong { display: block; font: 900 26px var(--display); letter-spacing: .08em; }
.r-ver { display: flex; justify-content: space-between; font-weight: 700; margin-top: 16px; }
.r-line { padding-left: 14px; text-indent: -14px; margin-top: 4px; }
.r-line::before { content: "+ "; }
.r-foot { text-align: center; margin-top: 22px; padding-top: 14px; border-top: 2px dashed rgba(42, 38, 32, .35); font-weight: 700; }

/* ---------- support ---------- */
.support { padding: 80px 0; background: var(--gold); color: var(--ink); }
.support-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.support h2 { max-width: none; font-size: clamp(28px, 3.4vw, 42px); }
.support p { max-width: 54ch; margin-top: 12px; font-size: 18px; }
.support .btn { background: var(--ink); color: var(--gold); box-shadow: 0 4px 0 #000; }
.support .btn:hover { background: var(--navy-2); }

/* ---------- faq ---------- */
.faq { padding: 110px 0; }
.faq h2 { margin-bottom: 30px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 800; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 700 26px var(--display); color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--slate); padding: 0 0 22px; max-width: 66ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--slate); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .brand span { font-size: 15px; }
.foot a { color: var(--slate); }
.foot p a + a { margin-left: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .nav-end { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .worth { justify-self: start; }
  .feature, .dl-grid, .upd-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip img { order: 0; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .road::before { display: none; }
  .receipt { transform: none; max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 10px 16px; gap: 12px; }
  .wrap, .feature { padding: 0 16px; }
  .hero { padding: 70px 16px 60px; min-height: 0; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(7, 11, 21, .72) 60%, rgba(7, 11, 21, .55) 100%); }
  .road { grid-template-columns: 1fr; }
  .city { padding-right: 0; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot.wide { grid-column: span 2; grid-row: span 1; }
  .btn-big { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
