@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Colours taken from the game: its night-navy UI, the cream notice paper, the orange CONTINUE button,
   and the key art's gold SLUMLORD / red MAXX lettering. */
:root {
  --night: #121319;
  --night-2: #1A1C25;
  --line: #2C2F3C;
  --paper: #F4EFE4;
  --paper-2: #E9E1CF;
  --paper-rule: #CFC4AC;
  --ink: #1C1A17;
  --ink-soft: #4A453C;
  --orange: #E85A0C;     /* buttons + headings on dark */
  --rust: #A93A10;       /* orange text on paper (AA contrast) */
  --red: #C8322A;        /* MAXX red */
  --gold: #E9B04A;       /* SLUMLORD gold */
  --green: #6CC070;      /* ledger green on dark */
  --fog: #B9B4AA;        /* body text on dark */
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--fog);
  font-family: var(--mono); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: max(18px, env(safe-area-inset-left)); }
.narrow { max-width: 780px; }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .8rem; text-wrap: balance; color: #fff; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.kicker {
  font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .6rem;
}
.kicker::before { content: "\2014\00a0"; }
.lede { font-size: clamp(1.08rem, 2vw, 1.22rem); }

/* ---------- hero ---------- */
/* The art sits on top as a banner; the title overlaps only its rooftops so the landlord's face stays clear.
   Heights are capped in px (a very tall window must not stretch it). */
.hero { position: relative; background: var(--night); text-align: center; }
.hero picture { display: block; position: relative; }
.hero-bg { width: 100%; height: clamp(340px, 46vw, 600px); object-fit: cover; object-position: 50% 30%; }
.hero picture::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,19,25,.35) 0%, rgba(18,19,25,0) 25%, rgba(18,19,25,0) 58%, rgba(18,19,25,.85) 85%, var(--night) 100%);
}
.hero-inner {
  position: relative; z-index: 1; margin-top: clamp(-180px, -13vw, -110px);
  padding: 0 18px clamp(1.5rem, 4vw, 2.5rem);
}
.hero h1 { margin: 0 auto; max-width: 780px; }
.hero h1 img { width: 100%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
.tagline {
  color: var(--paper); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem); text-shadow: 0 2px 8px rgba(0,0,0,.8); margin: .4rem 0 1.4rem;
}

/* A rubber stamp, like the game's red CASHED OUT / OVERDUE stamps */
.stamp {
  display: inline-block; margin: 0; transform: rotate(-2.5deg);
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.92rem, 2.2vw, 1.1rem);
  color: var(--gold); border: 3px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px;
  padding: .45rem 1rem; background: rgba(18,19,25,.72); border-radius: 3px;
}
.stamp-dark { color: var(--red); border-color: var(--red); outline-color: var(--red); background: transparent; margin-top: 1.4rem; }

/* ---------- the notice (cream paper, like the game's OFFICIAL PROPERTY NOTICE) ---------- */
.notice-sec { padding-top: clamp(2rem, 5vw, 3.5rem); }
.notice {
  position: relative; background: var(--paper); color: var(--ink);
  border: 3px solid var(--orange); border-radius: 2px; padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.notice h2 { color: var(--ink); }
.notice strong { color: var(--rust); }
.notice-head {
  text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding-bottom: .7rem; margin-bottom: 1.4rem;
}
.notice-head span { display: block; letter-spacing: .1em; font-weight: 400; }
.notice-foot { font-size: .85rem; color: var(--ink-soft); border-top: 1px dashed var(--paper-rule); padding-top: .8rem; margin: 1.2rem 0 0; }

/* ---------- the month + the Ledger Roll ---------- */
.month { background: var(--night-2); border-block: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: step; display: grid; gap: .8rem; }
.steps li {
  counter-increment: step; position: relative; background: rgba(18,19,25,.88); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); padding: .9rem 1rem .9rem 3.4rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: .9rem; top: .85rem; width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center; background: var(--orange); color: var(--night); font-weight: 700; border-radius: 2px;
}
.steps h3 { margin: 0 0 .2rem; color: var(--gold); }
.steps p { margin: 0; font-size: .98rem; }

.ledger {
  margin: 0; background: var(--paper); color: var(--ink); padding: 1.3rem 1.2rem 1rem;
  border: 1px solid var(--paper-rule); box-shadow: 0 18px 40px rgba(0,0,0,.5); transform: rotate(1deg);
  font-variant-numeric: tabular-nums;
}
.ledger-title { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem;
  border-bottom: 2px solid var(--ink-soft); padding-bottom: .6rem; margin-bottom: .5rem; }
.ledger dl { margin: 0; }
.ledger dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem .4rem; font-size: .95rem; }
.ledger dl > div:nth-child(even) { background: var(--paper-2); }
.ledger dt, .ledger dd { margin: 0; }
.ledger dd { font-weight: 700; white-space: nowrap; color: var(--rust); }
.ledger dt { position: relative; padding-left: 1.2rem; }
.ledger dt::before { content: ""; position: absolute; left: 0; top: .42em; width: .62em; height: .62em; background: var(--ink); }
.ledger .play dt::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ledger .combo dt::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ledger .syn dt::before { background: transparent; border: 1.5px solid var(--ink); transform: rotate(45deg) scale(.82); }
.ledger .syn dd { color: var(--ink); }
.ledger .more { color: var(--ink-soft); font-style: italic; }
.ledger .more dt::before { display: none; }
.ledger .sum { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ledger .sum dt { padding-left: .2rem; }
.ledger .sum dt::before { display: none; }
.ledger .more + .sum { border-top: 2px solid var(--ink); margin-top: .3rem; }
.ledger .mult dd { color: var(--ink); }
.ledger-total { text-align: center; font-weight: 700; color: var(--orange); font-size: clamp(1.5rem, 4vw, 2rem); margin: .9rem 0 .3rem;
  text-transform: uppercase; text-shadow: 1px 1px 0 var(--rust); }
.ledger figcaption { text-align: center; font-size: .8rem; color: var(--ink-soft); }

/* Ledger Roll reveal (site.js adds .roll-ready, then .rolled when it scrolls into view) */
.roll-ready:not(.rolled) dl > div, .roll-ready:not(.rolled) .ledger-total { opacity: 0; }
.rolled dl > div, .rolled .ledger-total { animation: typein .3s steps(3) both; }
.rolled dl > div:nth-child(2) { animation-delay: .18s; } .rolled dl > div:nth-child(3) { animation-delay: .36s; }
.rolled dl > div:nth-child(4) { animation-delay: .54s; } .rolled dl > div:nth-child(5) { animation-delay: .72s; }
.rolled dl > div:nth-child(6) { animation-delay: .9s; }  .rolled dl > div:nth-child(7) { animation-delay: 1.08s; }
.rolled dl > div:nth-child(8) { animation-delay: 1.26s; } .rolled .ledger-total { animation-delay: 1.6s; }
.roll-done dl > div, .roll-done .ledger-total { opacity: 1 !important; animation: none !important; }
@keyframes typein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- bosses ---------- */
.bosses { text-align: center; }
.boss-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: left; }
.boss-list li { background: var(--night-2); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 1.2rem; }
.boss-list img { width: 128px; height: 128px; border: 2px solid var(--line); margin-bottom: 1rem; }
.boss-list h3 { color: var(--orange); text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; }
.boss-list p { margin: 0; font-size: .98rem; }
.boss-note { margin-top: 2rem; }
.boss-tally { color: #fff; font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 0; }

/* ---------- gallery ---------- */
.photos { background: #0C0D12; border-block: 1px solid var(--line); }
.sub { color: var(--fog); }
.gallery { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 14px; }
.gallery li.big { grid-column: span 2; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery figcaption { font-size: .82rem; line-height: 1.45; margin-top: .45rem; }
.gallery figcaption b { color: var(--gold); }

/* ---------- invoice ---------- */
.invoice {
  background: var(--paper); color: var(--ink); padding: clamp(1.3rem, 4vw, 2.6rem); max-width: 900px; margin: 0 auto;
  border-top: 8px solid var(--orange); box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.invoice h2 { color: var(--ink); }
.invoice .kicker { color: var(--rust); }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .98rem; }
.invoice th { text-align: left; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding: .4rem .6rem; }
.invoice td { padding: .7rem .6rem; border-bottom: 1px dashed var(--paper-rule); vertical-align: top; }
.invoice tbody tr:nth-child(even) { background: rgba(233,225,207,.55); }
.invoice td.q { font-weight: 700; font-size: 1.35rem; color: var(--rust); text-align: right; width: 4.5rem; line-height: 1.1; padding-top: .62rem; }
.invoice b { text-transform: uppercase; letter-spacing: .03em; }

/* ---------- satire + early access ---------- */
.satire { text-align: center; }
.punch { color: var(--gold); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.35rem); margin: 0; }
.ea { text-align: center; background: var(--paper); color: var(--ink); }
.ea h2 { color: var(--ink); }
.ea .kicker { color: var(--rust); }
.facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.facts li { border: 1.5px solid var(--ink); padding: .25rem .7rem; font-weight: 700; font-size: .9rem; }

/* ---------- footer ---------- */
.foot { background: #0A0B0F; color: var(--fog); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.studio-logo { width: 240px; margin-bottom: 1rem; }
.studio { font-size: 1.15rem; color: #fff; margin-bottom: .4rem; }
.foot details { border-top: 1px solid var(--line); padding: .8rem 0; }
.foot details:first-of-type { margin-top: 1.4rem; }
.foot summary { cursor: pointer; font-weight: 700; color: #fff; }
.foot details p { margin: .7rem 0 0; }
.fine { font-size: .84rem; color: #8F8A80; margin: 1rem 0 0; }

/* ---------- screenshot viewer ---------- */
dialog#viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; color: var(--paper); }
dialog#viewer::backdrop { background: rgba(6,7,10,.92); }
dialog#viewer img { max-height: 84vh; width: auto; border: 1px solid var(--line); }
dialog#viewer .cap { margin: .6rem 0 0; font-size: .9rem; text-align: center; }
dialog#viewer .close {
  position: absolute; top: -18px; right: -12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--orange); color: var(--night); font: 700 1.8rem/1 var(--mono); cursor: pointer;
}

/* ---------- 404 ---------- */
.page404 { min-height: min(80vh, 720px); display: grid; place-items: center; }
.page404 .notice { text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .ledger { transform: none; max-width: 480px; }
  .boss-list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .boss-list li { display: grid; grid-template-columns: 96px 1fr; gap: 0 1rem; align-items: start; }
  .boss-list img { width: 96px; height: 96px; grid-row: span 2; margin: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-bg { height: 420px; object-position: 50% 40%; }
  .hero-inner { margin-top: -120px; }
  .gallery { gap: 14px 10px; }
  .ledger-title { font-size: .82rem; letter-spacing: .02em; }
  .stamp { font-size: .8rem; letter-spacing: .06em; padding: .4rem .7rem; }
  .notice h2 { font-size: 1.45rem; }
  .ledger dl > div { font-size: .88rem; }
  .gallery figcaption { font-size: .76rem; }
  .invoice td.q { width: 3.2rem; font-size: 1.15rem; padding-inline: .3rem .5rem; }
  .invoice td { padding-inline: .3rem; }
  .boss-list li { grid-template-columns: 72px 1fr; }
  .boss-list img { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .roll-ready:not(.rolled) dl > div, .roll-ready:not(.rolled) .ledger-total { opacity: 1; }
}
.notice a { color: var(--rust); font-weight: 700; }
.notice a:hover { color: var(--ink); }
.back { display: inline-block; margin-top: .4rem; border: 2px solid var(--rust); padding: .5rem 1rem; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
