/* BlueRock - game website (4friends.in/bluerock)
   Palette, fonts and chrome come straight from the game: ink outlines, the grey "desktop window"
   UI with a blue title bar, cream cards with maroon trim, sign boards and gold coins. */

@font-face { font-family: "Pixelify Sans"; src: url("/bluerock/fonts/PixelifySans.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/bluerock/fonts/VT323.woff") format("woff"); font-display: swap; }

:root {
  --ink: #1d1420;
  --ink-2: #4a3f55;
  --win: #c0c0c0;
  --win-hi: #ffffff;
  --win-lo: #808080;
  --title: #1a3c8c;
  --title-2: #2c5cb8;
  --blue: #2f6fc8;
  --blue-hi: #8cc8f4;
  --gold: #f2bf47;
  --gold-2: #c98a22;
  --cream: #f4e6cf;
  --cream-2: #e9d4b0;
  --red: #b8434a;
  --maroon: #6e2430;
  --green: #4fb168;
  --green-2: #2f7d44;
  --grass: #3f9a33;
  --grass-2: #2c7426;
  --night: #2a2440;
  --night-2: #1f1a31;
  --dusk: #946e84;
  --road: #443446;
  --sky: #7db6e6;
  --sky-2: #c4e3f6;
  --px: 4px;                 /* one game pixel at 4x */
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: "VT323", ui-monospace, monospace; font-size: 22px; line-height: 1.22;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: "Pixelify Sans", "VT323", monospace; font-weight: 700; margin: 0; line-height: 1.05; }
p { margin: 0 0 .7em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 20px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px dashed var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- chrome pieces */

/* Grey desktop window, as in the game UI and the logo */
.win {
  background: var(--win); border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 var(--win-hi), inset -3px -3px 0 var(--win-lo), 8px 8px 0 rgba(20, 12, 28, .45);
  padding: 6px;
}
.win-title {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 8px;
  background: linear-gradient(180deg, var(--title-2) 0 3px, var(--title) 3px);
  color: #fff; font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
}
.win-title .coin-ico { width: 20px; height: 20px; flex: none; }
.win-title span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-ctl { display: flex; gap: 3px; flex: none; }
.win-ctl > i, .win-ctl > .x {
  display: block; width: 22px; height: 20px; background: var(--win); border: 2px solid var(--ink); position: relative;
  box-shadow: inset 2px 2px 0 var(--win-hi), inset -2px -2px 0 var(--win-lo);
}
.win-ctl > :first-child::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 4px; height: 3px; background: var(--ink); }
.win-ctl > :last-child::before, .win-ctl > :last-child::after {
  content: ""; position: absolute; left: 50%; top: 50%; right: auto; bottom: auto; width: 12px; height: 3px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg);
}
.win-ctl > :last-child::after { transform: translate(-50%, -50%) rotate(-45deg); }
.win-ctl > .x { cursor: pointer; width: 26px; height: 24px; }
.win-ctl > .x:active { box-shadow: inset 2px 2px 0 var(--win-lo), inset -2px -2px 0 var(--win-hi); }
.win-body { padding: 18px 18px 14px; }
.inset {
  background: #fff; border: 2px solid var(--ink-2);
  box-shadow: inset 2px 2px 0 var(--win-lo);
}

/* Cream card with maroon trim (in-game info cards) */
.card {
  background: var(--cream); border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 8px var(--cream), 6px 6px 0 rgba(20, 12, 28, .35);
  padding: 22px 22px 18px;
}

/* Town sign board (cream plank, brown frame, two posts) */
.sign {
  position: relative; display: inline-block; padding: 10px 26px 8px; margin: 0 auto 34px;
  background: #f3e3c3; color: var(--ink); border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 4px #8a5a32, inset 0 -8px 0 4px #e2cda4, 0 6px 0 rgba(20, 12, 28, .35);
  font-family: "Pixelify Sans", monospace; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(26px, 4vw, 40px);
}
.sign::before, .sign::after { content: ""; position: absolute; top: -14px; width: 10px; height: 14px; background: #6b4226; border: 3px solid var(--ink); border-bottom: 0; }
.sign::before { left: 18%; } .sign::after { right: 18%; }
.sign-wrap { text-align: center; }
.kicker { display: block; text-align: center; font-size: 22px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin: -18px 0 30px; }

/* Buttons: grey bevel, green "go", gold */
.btn {
  --b: var(--win); --hi: var(--win-hi); --lo: var(--win-lo); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 6px 24px 8px;
  background: var(--b); color: var(--fg); border: 3px solid var(--ink); text-decoration: none; white-space: nowrap;
  font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo), 4px 4px 0 rgba(20, 12, 28, .5);
  transition: transform .08s steps(1), box-shadow .08s steps(1); user-select: none;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo), 5px 6px 0 rgba(20, 12, 28, .5); }
.btn:active { transform: translate(3px, 3px); box-shadow: inset 3px 3px 0 var(--lo), inset -3px -3px 0 var(--hi), 0 0 0 rgba(0, 0, 0, 0); }
.btn img, .btn svg { width: 24px; height: 24px; flex: none; }
.btn-green { --b: var(--green); --hi: #8ee09f; --lo: var(--green-2); --fg: #fff; text-shadow: 2px 2px 0 var(--green-2); }
.btn-gold  { --b: var(--gold); --hi: #ffe7a0; --lo: var(--gold-2); --fg: var(--ink); }
.btn-blue  { --b: var(--blue); --hi: var(--blue-hi); --lo: var(--title); --fg: #fff; text-shadow: 2px 2px 0 var(--title); }
.btn-lg { min-height: 62px; font-size: 24px; padding: 6px 30px 9px; }
.btn.soon { filter: saturate(.75); }

/* ---------------------------------------------------------------- top bar */

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 60px;
  background: var(--win); border-bottom: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 var(--win-hi), inset 0 -3px 0 var(--win-lo), 0 4px 0 rgba(20, 12, 28, .25);
}
.bar-inner { height: 100%; display: flex; align-items: center; gap: 10px; }
.bar-home { display: flex; align-items: center; height: 46px; padding: 0 4px; text-decoration: none; flex: none; }
.bar-home img { width: 174px; height: 34px; image-rendering: pixelated; transition: transform .1s steps(2); }  /* exactly 2x */
.bar-home:hover img { transform: translateY(-2px); }
@media (max-width: 420px) { .bar-home img { width: 130.5px; height: 25.5px; } }
.bar-links { display: flex; gap: 2px; margin-left: 8px; }
.bar-links a {
  height: 42px; display: flex; align-items: center; padding: 0 14px 2px; text-decoration: none; text-transform: uppercase;
  font-family: "Pixelify Sans", monospace; font-weight: 500; font-size: 17px; letter-spacing: .06em; border: 3px solid transparent;
}
.bar-links a:hover, .bar-links a.on { border-color: var(--ink); background: #d4d4d4; box-shadow: inset 3px 3px 0 var(--win-lo), inset -3px -3px 0 var(--win-hi); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bar .btn { min-height: 42px; font-size: 17px; padding: 4px 16px 6px; box-shadow: inset 3px 3px 0 var(--hi), inset -3px -3px 0 var(--lo); }
.bar-studio { font-size: 19px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.bar-studio:hover { color: var(--ink); text-decoration: underline; }
.bar-clock { font-size: 22px; padding: 4px 10px; border: 2px solid var(--win-lo); box-shadow: inset -2px -2px 0 var(--win-hi); background: #cfcfcf; }
.menu-btn { display: none; width: 46px; height: 42px; border: 3px solid var(--ink); background: var(--win); box-shadow: inset 3px 3px 0 var(--win-hi), inset -3px -3px 0 var(--win-lo); }
.menu-btn span { display: block; width: 22px; height: 3px; margin: 4px auto; background: var(--ink); }
.bar-clock { white-space: nowrap; }
@media (max-width: 1180px) { .bar-studio { display: none; } }
@media (max-width: 1040px) { .bar-clock { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .bar-links {
    display: none; position: absolute; top: 60px; left: 12px; right: 12px; flex-direction: column; gap: 0; margin: 0;
    background: var(--win); border: 3px solid var(--ink); padding: 6px;
    box-shadow: inset 3px 3px 0 var(--win-hi), inset -3px -3px 0 var(--win-lo), 6px 6px 0 rgba(20, 12, 28, .45);
  }
  .bar.open .bar-links { display: flex; }
  .bar-links a { height: 48px; font-size: 20px; }
}
@media (max-width: 420px) { .bar .btn-green span { display: none; } .bar .btn { padding: 4px 10px 6px; } }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden; padding-top: 60px; isolation: isolate;
  background: linear-gradient(180deg, #241d3a 0%, #3b2f5c 22%, #6a5378 50%, var(--dusk) 100%);
}
.stars { position: absolute; inset: 0 0 30% 0; z-index: -1; pointer-events: none; }
.stars i { position: absolute; width: 4px; height: 4px; background: #fff3d6; animation: twinkle 3s steps(2) infinite; }
.stars i.b { width: 8px; height: 8px; background: none;
  box-shadow: 4px 0 0 #fff3d6, 0 4px 0 #fff3d6, 4px 4px 0 #fff, 8px 4px 0 #fff3d6, 4px 8px 0 #fff3d6; width: 4px; height: 4px; }
@keyframes twinkle { 50% { opacity: .25; } }
.moon { position: absolute; top: 110px; right: 9%; width: 72px; z-index: -1; filter: drop-shadow(0 0 22px rgba(255, 230, 170, .55)); }
.cloud { position: absolute; z-index: -1; pointer-events: none; opacity: .9; animation: drift linear infinite; will-change: transform; }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(140vw); } }

.hero { --sky-h: clamp(120px, 20vh, 220px); }
#clouds { position: absolute; left: 0; right: 0; top: 60px; height: var(--sky-h); z-index: -1; pointer-events: none; }
.hero-inner { position: relative; text-align: center; padding: var(--sky-h) 20px 10px; }
/* Logo: one image per letter, drawn at 1 game pixel = --lp screen pixels (whole numbers stay crisp).
   Timing copies MainMenu.cs: each letter falls from above with OutBounce (0.6 s, 0.07 s apart),
   then bobs on a sine wave with its own period (1.8 s + 0.07 s per letter). */
.logo { --lp: 4px; display: flex; justify-content: center; margin: 0 auto; padding-top: 6px; }
@media (min-width: 520px) { .logo { --lp: 5px; } }
@media (min-width: 640px) { .logo { --lp: 6px; } }
@media (min-width: 860px) { .logo { --lp: 8px; } }
@media (max-width: 380px) { .logo { --lp: 3.5px; } }
.lt { display: block; animation: lt-drop .6s linear both; animation-delay: calc(.1s + var(--i) * .07s); }
.lt img { display: block; width: calc(11 * var(--lp)); height: calc(17 * var(--lp)); image-rendering: pixelated;
  animation: lt-bob calc(1.8s + var(--i) * .07s) linear infinite; animation-delay: calc(.7s + var(--i) * .07s); }
@keyframes lt-drop {   /* EaseType.OutBounce from 300 units above (about 3.3 letter heights) */
  0%     { transform: translateY(-330%); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  8%     { opacity: 1; }
  36.4%  { transform: translateY(0);      animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  54.5%  { transform: translateY(-82%);   animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  72.7%  { transform: translateY(0);      animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  81.8%  { transform: translateY(-20%);   animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  90.9%  { transform: translateY(0);      animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  95.5%  { transform: translateY(-5%);    animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100%   { transform: translateY(0); opacity: 1; }
}
@keyframes lt-bob {    /* rt.Bob(4, period): sin wave, up first */
  0%   { transform: translateY(0);                          animation-timing-function: cubic-bezier(.33, .66, .66, 1); }
  25%  { transform: translateY(calc(var(--lp) * -.75));     animation-timing-function: cubic-bezier(.33, 0, .66, .33); }
  50%  { transform: translateY(0);                          animation-timing-function: cubic-bezier(.33, .66, .66, 1); }
  75%  { transform: translateY(calc(var(--lp) * .75));      animation-timing-function: cubic-bezier(.33, 0, .66, .33); }
  100% { transform: translateY(0); }
}
/* the rest of the title screen arrives after the logo, like the game's menu panel */
.hero-tag { animation: fade-in .8s ease both .8s; }
.hero-cta > * { animation: pop-in .35s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.hero-cta > :nth-child(1) { animation-delay: .9s; } .hero-cta > :nth-child(2) { animation-delay: .98s; }
.hero-plat { animation: fade-in .6s ease both 1.1s; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { transform: scale(0); } }
.cta .hero-cta > * { animation: none; }
.hero-tag {
  margin: 22px auto 22px; max-width: 760px; color: #fff; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.15;
  text-shadow: 3px 3px 0 var(--ink);
}
.hero-tag b { color: var(--gold); font-weight: 400; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-plat { margin: 16px 0 0; color: #f6e4d8; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink); }
.hero-plat i { color: var(--gold); font-style: normal; padding: 0 6px; }

/* Town strip: the real game town with walkers and traffic on top */
@media (max-width: 640px) {
  .hero-plat { font-size: 18px; letter-spacing: .06em; }
  .hero-cta .btn-lg { width: 100%; max-width: 360px; }
  .moon { top: 84px; width: 48px; }
}
.town { position: relative; width: max(100%, 860px); left: 50%; transform: translateX(-50%); margin-top: clamp(10px, 4vh, 40px); }
.town-art { width: 100%; aspect-ratio: 3840 / 1240; object-fit: cover; }
.walkers { position: absolute; left: 0; right: 0; bottom: calc(var(--road-h, 40px) + 0px); height: 0; pointer-events: none; }
.walker, .car { position: absolute; bottom: 0; background-repeat: no-repeat; image-rendering: pixelated; transform-origin: 50% 100%; }
.walker { width: calc(10px * var(--s)); height: calc(18px * var(--s)); background-size: calc(40px * var(--s)) 100%; animation: walk .5s steps(4) infinite; }
@keyframes walk { to { background-position: calc(-40px * var(--s)) 0; } }
.road { position: relative; height: var(--road-h, 40px); background: var(--road); border-top: 3px solid #2e2233; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, #d9c27a 0 36px, transparent 36px 80px); opacity: .8; }
.car { bottom: 6%; animation: wheels .4s steps(2) infinite; }
/* steps(2) over the whole 2-frame strip shows frame 0, then frame 1 (ending at -1 frame would show half-frames) */
@keyframes wheels { to { background-position: calc(-2 * var(--fw)) 0; } }

/* ---------------------------------------------------------------- ticker */

.ticker { background: var(--ink); color: #c9f2c9; border-top: 3px solid #000; border-bottom: 3px solid #000; overflow: hidden; white-space: nowrap; font-size: 22px; height: 40px; display: flex; align-items: center; }
.ticker-track { display: inline-flex; gap: 46px; padding-left: 46px; animation: tick 50s linear infinite; }
.ticker-track span b { font-weight: 400; color: #fff; }
.ticker .up { color: #6fe08a; } .ticker .dn { color: #ff7d7d; } .ticker .gd { color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding: 96px 0 104px; }
.section-night { background: var(--night); color: #f1e8f7;
  background-image: radial-gradient(#ffffff22 1.5px, transparent 1.6px), radial-gradient(#ffffff14 1.5px, transparent 1.6px);
  background-size: 120px 120px, 76px 76px; background-position: 10px 20px, 50px 70px; }
.section-day { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 78%, #d9efc9 100%); overflow: hidden; }
.section-day > .wrap { position: relative; z-index: 1; }
.day-clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.day-clouds .cloud { z-index: 0; opacity: .95; }
.section-grass { background: var(--grass); color: #fff; }
.section-cream { background: var(--cream-2); background-image: linear-gradient(#0000 0 46px, #d8bf96 46px 48px); background-size: 100% 48px; }

/* Pixel grass edge on top of a section */
.edge-grass::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; image-rendering: pixelated;
  background:
    linear-gradient(90deg, var(--grass) 0 8px, transparent 8px 12px, var(--grass) 12px 20px, transparent 20px 24px) 0 0 / 24px 4px repeat-x,
    linear-gradient(var(--grass), var(--grass)) 0 4px / 100% 12px no-repeat;
}
.hills-band { height: calc(30px * 4); background: url("/bluerock/img/sprites/hills.png") 0 100% / auto 100% repeat-x, #d9efc9; image-rendering: pixelated; margin-top: -1px; }

/* Trailer */
.trailer-win { max-width: 1040px; margin: 0 auto; }
.video-box { position: relative; aspect-ratio: 16 / 9; background: #000; border: 3px solid var(--ink); overflow: hidden; }
.video-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; background: center / cover no-repeat; cursor: pointer; }
.video-poster::before { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 28, .25); transition: background .2s; }
.video-poster:hover::before { background: rgba(20, 12, 28, .05); }
.play {
  position: relative; width: 112px; height: 112px; background: var(--gold); border: 4px solid var(--ink);
  box-shadow: inset 4px 4px 0 #ffe7a0, inset -4px -4px 0 var(--gold-2), 6px 6px 0 rgba(20, 12, 28, .55);
  transition: transform .1s steps(1);
}
.play::after { content: ""; position: absolute; left: 42px; top: 30px; border-left: 36px solid var(--ink); border-top: 22px solid transparent; border-bottom: 22px solid transparent; }
.video-poster:hover .play { transform: scale(1.08); }
.video-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px 2px; font-size: 20px; color: var(--ink-2); flex-wrap: wrap; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.about-grid h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--title); margin-bottom: 14px; }
.about-grid h2 em { font-style: normal; color: var(--gold-2); }
.about-shot { transform: rotate(1.2deg); }
.about-shot img { width: 100%; border: 3px solid var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.stat { text-align: center; padding: 16px 10px 12px; }
.stat b { display: block; font-family: "Pixelify Sans", monospace; font-size: clamp(34px, 4vw, 50px); color: var(--title); line-height: 1; }
.stat span { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.portraits { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.portraits img { width: 64px; height: 64px; border: 3px solid var(--ink); image-rendering: pixelated; transition: transform .15s steps(2); }
.portraits img:hover { transform: translateY(-6px) rotate(-3deg); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.feat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.feat-scene {
  height: 196px; display: flex; align-items: flex-end; justify-content: center; gap: 8px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #8ec5ee 0%, #cfe9f8 calc(100% - 34px), var(--grass) calc(100% - 34px) calc(100% - 26px), var(--grass-2) calc(100% - 26px) calc(100% - 22px), #b8b0a6 calc(100% - 22px));
  margin: 8px 8px 0; border: 3px solid var(--ink);
}
.feat-scene.night { background: linear-gradient(180deg, #2a2440 0%, #4c3d6b calc(100% - 34px), #2c6b2a calc(100% - 34px) calc(100% - 26px), #1f4f1f calc(100% - 26px) calc(100% - 22px), #6e6578 calc(100% - 22px)); }
.feat-scene img { image-rendering: pixelated; margin-bottom: 24px; position: relative; flex: none; }
.feat-body { padding: 16px 20px 20px; }
.feat h3 { font-size: 24px; color: var(--maroon); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feat h3 img { width: 24px; height: 24px; image-rendering: pixelated; }
.feat p { margin: 0; color: #3a2e3e; }

/* "How money moves" chain */
.chain-win { margin-top: 56px; }
.chain { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.chain-step { flex: 1 1 150px; max-width: 200px; text-align: center; padding: 14px 10px; }
.chain-step img { width: 48px; height: 48px; margin: 0 auto 8px; image-rendering: pixelated; }
.chain-step b { display: block; font-family: "Pixelify Sans", monospace; font-size: 19px; color: var(--title); margin-bottom: 4px; }
.chain-step span { font-size: 19px; color: var(--ink-2); line-height: 1.1; display: block; }
.chain-arrow { align-self: center; font-family: "Pixelify Sans", monospace; font-size: 32px; color: var(--red); padding: 0 2px; }
@media (max-width: 760px) { .chain-arrow { display: none; } .chain-step { flex-basis: 45%; } }
.chain-note { margin: 10px 4px 0; font-size: 19px; color: var(--ink-2); text-align: center; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot { position: relative; display: block; padding: 6px; background: var(--win); border: 3px solid var(--ink); cursor: zoom-in;
  box-shadow: inset 3px 3px 0 var(--win-hi), inset -3px -3px 0 var(--win-lo), 6px 6px 0 rgba(0, 0, 0, .35); transition: transform .12s steps(2); }
.shot:hover { transform: translateY(-4px) rotate(-.4deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--ink); }
.shot figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: #fff; padding: 2px 10px 3px; font-size: 19px; opacity: 0; transform: translateY(6px); transition: .15s steps(2); }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .shot:first-child { grid-column: span 2; grid-row: auto; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery .shot:first-child { grid-column: auto; } .shot figcaption { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(15, 10, 22, .92); padding: 70px 16px 30px; }
.lightbox.open { display: grid; }
.lightbox .win { width: min(1280px, 100%); }
.lightbox img { width: 100%; max-height: calc(100vh - 210px); object-fit: contain; background: #000; border: 3px solid var(--ink); }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; }
.lb-row p { flex: 1; margin: 0; font-size: 22px; }
.lb-row .btn { min-height: 44px; padding: 4px 16px 6px; font-size: 18px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 2px dashed #b9a07a; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 16px 4px; font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 22px; color: var(--maroon); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); border: 3px solid var(--ink); color: var(--ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::before { content: "-"; background: var(--green); color: #fff; }
.faq details p { padding: 0 4px 16px 48px; margin: 0; color: #3a2e3e; }

/* Wishlist CTA */
.cta { position: relative; text-align: center; padding: 120px 0 130px; color: #fff; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; filter: saturate(1.1); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 26, 49, .9), rgba(31, 26, 49, .55) 45%, rgba(31, 26, 49, .92)); }
.cta h2 { font-size: clamp(34px, 5vw, 60px); text-shadow: 4px 4px 0 var(--ink); margin-bottom: 14px; }
.cta h2 span { color: var(--gold); }
.cta p { font-size: 26px; max-width: 640px; margin: 0 auto 28px; text-shadow: 2px 2px 0 var(--ink); }
.coin-rain { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.coin-rain img { position: absolute; top: -40px; width: 30px; image-rendering: pixelated; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(calc(100vh + 900px)) rotate(0deg); } }

/* Socials */
.socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-decoration: none; color: inherit; }
.social .tile { width: 64px; height: 64px; display: grid; place-items: center; background: var(--win); border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 var(--win-hi), inset -3px -3px 0 var(--win-lo), 4px 4px 0 rgba(0, 0, 0, .4); transition: transform .08s steps(1); }
.social:hover .tile { transform: translateY(-3px); }
.social:active .tile { transform: translate(3px, 3px); box-shadow: inset 3px 3px 0 var(--win-lo), inset -3px -3px 0 var(--win-hi); }
.social small { font-size: 19px; letter-spacing: .04em; }
.social small { white-space: nowrap; }
.social .tile { position: relative; }
.social.soon { cursor: default; }
.social.soon .tile::after {
  content: "SOON"; position: absolute; right: -10px; top: -9px; padding: 0 4px 1px; background: var(--gold); color: var(--ink);
  border: 2px solid var(--ink); font-family: "VT323", monospace; font-size: 15px; line-height: 1.1; letter-spacing: .04em;
}

/* Footer */
.foot { background: var(--ink); color: #cbbfd6; padding: 56px 0 30px; border-top: 4px solid #000; }
.foot-top { display: flex; gap: 36px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-studio { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; }
.foot-studio img { height: 44px; width: auto; }
.foot-studio span { font-size: 20px; color: #cbbfd6; display: block; }
.foot-studio b { font-family: "Pixelify Sans", monospace; font-size: 22px; letter-spacing: .04em; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 21px; }
.foot-links a { text-decoration: none; color: #cbbfd6; } .foot-links a:hover { color: var(--gold); }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 2px dashed #3d3146; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 19px; color: #8e8199; }
.foot .socials { justify-content: flex-start; }
.foot .social .tile { width: 52px; height: 52px; } .foot .social { width: 76px; }

/* Reveal on scroll (stepped, like the game's tweens) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .45s steps(5), transform .45s steps(5); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- official brand marks
   Logos are the official marks (Simple Icons, CC0) used as masks, so each one shows in its brand colour. */
.brand-mark { display: block; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: currentColor; }

/* Steam button, in Steam's own colours */
.btn-steam {
  --b: #171a21; --hi: #3d4450; --lo: #0b0d11; --fg: #fff;
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 55%, #171a21 100%);
  font-family: "Motiva Sans", Arial, Helvetica, sans-serif; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.btn-steam:hover { background: linear-gradient(180deg, #31557a 0%, #20324a 55%, #1b2838 100%); }
.btn-steam .steam-logo { width: 28px; height: 28px; flex: none; color: #fff;
  -webkit-mask: url("/bluerock/img/brands/steam.svg") center / contain no-repeat; mask: url("/bluerock/img/brands/steam.svg") center / contain no-repeat; background: #fff; }
.btn-steam.btn-lg .steam-logo { width: 38px; height: 38px; }
.steam-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.steam-txt small { font-size: 12px; font-weight: 400; letter-spacing: .08em; color: #c7d5e0; margin-bottom: 3px; }
.btn-steam.soon { filter: none; }
.bar .btn-steam { font-size: 16px; }
.bar .btn-steam .steam-logo { width: 22px; height: 22px; }
@media (max-width: 420px) { .bar .btn-steam span { display: none; } }

/* Social tiles: official logo in the brand's colours */
.social .tile { overflow: visible; }
.social .glyph { width: 32px; height: 32px; position: relative; }
.foot .social .glyph { width: 26px; height: 26px; }
.social .glyph { -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: #fff; }
.b-steam     .tile { background: linear-gradient(180deg, #2a475e, #171a21); --hi: #3d4450; }
.b-discord   .tile { background: #5865f2; }
.b-youtube   .tile { background: #fff; }
.b-youtube   .glyph { background: #ff0000; }
.b-x         .tile { background: #000; }
.b-instagram .tile { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
/* keep the game's chunky bevel on every tile */
.social .tile { box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .35), inset -3px -3px 0 rgba(0, 0, 0, .35), 4px 4px 0 rgba(0, 0, 0, .4); }
.social.soon .glyph { opacity: .55; }

/* About: the official description */
.about-desc { font-size: 26px; line-height: 1.25; }
.about-desc b { font-weight: 400; color: var(--title); }
.about-desc em { font-style: normal; color: var(--gold-2); }
@media (max-width: 640px) { .about-desc { font-size: 23px; } }

/* Downloads: art pack */
.dl-win { max-width: 1040px; margin: 0 auto; }
.dl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; background: var(--cream); border: 2px solid var(--ink-2); margin-top: 6px; color: var(--ink); }
.dl-previews { position: relative; aspect-ratio: 16 / 11; }
.dl-previews img { position: absolute; width: 74%; border: 3px solid var(--ink); box-shadow: 5px 5px 0 rgba(20, 12, 28, .35); transition: transform .15s steps(2); }
.dl-a { left: 0; top: 0; transform: rotate(-4deg); }
.dl-c { right: 0; top: 18%; transform: rotate(3deg); }
.dl-b { left: 13%; bottom: 0; transform: rotate(-1deg); z-index: 1; }
.dl-win:hover .dl-a { transform: rotate(-6deg) translate(-6px, -4px); }
.dl-win:hover .dl-c { transform: rotate(5deg) translate(6px, -2px); }
.dl-info h3 { font-size: 30px; color: var(--maroon); margin-bottom: 10px; }
.dl-list { list-style: none; padding: 0; margin: 4px 0 22px; }
.dl-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 2px dashed #cdb48d; }
.dl-list li img { width: 24px; height: 24px; image-rendering: pixelated; flex: none; }
.dl-list li span { margin-left: auto; color: var(--ink-2); font-size: 19px; white-space: nowrap; }
.dl-meta { margin: 12px 0 0; font-size: 19px; color: var(--ink-2); }
@media (max-width: 860px) { .dl-body { grid-template-columns: 1fr; } .dl-previews { max-width: 520px; width: 100%; margin: 0 auto; } }
.portraits { flex-wrap: nowrap; gap: 10px; }
.portraits img { flex: 1 1 0; min-width: 0; max-width: 64px; width: auto; height: auto; aspect-ratio: 1; }

/* Gallery: the rest of the screenshots open with "Show all" */
.shot[hidden] { display: none; }
.more-wrap { text-align: center; margin-top: 34px; }
