/* MadBlack Studios — site 1.8
   Night-purple of Monsters Ride's skies, slime green of its GAS and ACCEPT buttons,
   pumpkin orange for coins, the studio's own red only for MadBlack itself.
   Zombie Catapult gets its own torch-lit section. */
:root {
  --night: #170c29;
  --plum: #26143f;
  --plum-2: #341c55;
  --slime: #9be22f;
  --slime-ink: #17240a;
  --moon: #f3eedc;
  --mist: #c9bedc;
  --pumpkin: #ffa126;
  --studio-red: #e3252d;
  --torch: #2b1608;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--night); color: var(--moon); font: 400 17px/1.6 var(--body); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slime); color: var(--slime-ink); padding: 10px 14px; border-radius: 8px; font-weight: 800; z-index: 20; }
.skip:focus { left: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
h2 { font: 900 clamp(28px, 3.6vw, 44px)/1.1 var(--body); letter-spacing: -0.02em; margin: 0 0 10px; }
.sub { color: var(--mist); margin: 0 0 32px; max-width: 60ch; }
.kicker { color: var(--pumpkin); font-weight: 800; margin: 0 0 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 28px; background: rgba(23, 12, 41, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff14; }
.studio img { width: 104px; height: auto; }
.top nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--mist); }
.top nav a:hover { color: var(--moon); }
.top .nav-play { color: var(--slime-ink); background: var(--slime); padding: 9px 16px; border-radius: 999px; font-weight: 900; }
.top .nav-play:hover { color: var(--slime-ink); background: #b2f24f; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,12,41,.96) 0%, rgba(23,12,41,.82) 38%, rgba(23,12,41,.25) 70%, rgba(23,12,41,.55) 100%), linear-gradient(0deg, var(--night) 0%, transparent 28%); }
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 64px 28px; display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.logo-type { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 10vw, 138px); line-height: .88; margin: 4px 0 22px; color: var(--slime); letter-spacing: .01em; text-shadow: 0 4px 0 #3d7a0c, 0 8px 0 #1f3d07, 0 18px 40px rgba(0,0,0,.55); transform: rotate(-2deg); transform-origin: left bottom; }
.lede { font-size: 20px; font-weight: 700; max-width: 34ch; margin: 0 0 14px; }
.hero-note { color: var(--mist); max-width: 46ch; margin: 0; font-size: 15px; }

/* the ride-request phone (the one bold element) */
.phone { position: relative; background: linear-gradient(#2c1650, #1d0f36); border: 10px solid #6b4a1f; border-radius: 34px; padding: 26px 18px 18px; box-shadow: 0 0 0 2px #b78b3c inset, 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px #000; transform: rotate(2.5deg); }
.phone-notch { position: absolute; top: -4px; left: 50%; width: 70px; height: 16px; margin-left: -35px; background: #6b4a1f; border-radius: 0 0 14px 14px; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; }
.phone-bar .app { color: var(--slime); }
.phone-bar .online { border: 1px solid var(--slime); color: var(--slime); border-radius: 999px; padding: 1px 9px; font-size: 11px; }
.phone-bar .online::before { content: "●"; margin-right: 4px; }
.phone-head { margin: 12px 0; background: var(--slime); color: var(--slime-ink); text-align: center; font-weight: 900; font-size: 18px; border-radius: 10px; padding: 7px; }
.rider { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rider img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 30% 45%; border: 3px solid #9b5cf0; }
.rider strong { display: block; font-size: 18px; }
.rider span { font-size: 13px; color: var(--mist); }
.trip { margin: 0 0 10px; display: grid; gap: 6px; }
.trip div { background: #ffffff0d; border: 1px solid #ffffff12; border-radius: 10px; padding: 6px 10px; }
.trip dt { font-size: 11px; color: var(--mist); font-weight: 700; }
.trip dd { margin: 0; font-weight: 800; font-size: 15px; }
.trip .fare { color: var(--pumpkin); font-size: 20px; font-family: var(--display); font-weight: 400; letter-spacing: .03em; }
.phone-fine { font-size: 12px; color: var(--mist); margin: 0 0 10px; line-height: 1.4; }
.accept { display: block; text-align: center; text-decoration: none; background: var(--slime); color: var(--slime-ink); font-weight: 900; font-size: 18px; padding: 12px; border-radius: 12px; box-shadow: 0 4px 0 #4f8a12; }
.accept:hover { background: #b2f24f; }
.accept:active { transform: translateY(3px); box-shadow: 0 1px 0 #4f8a12; }
.decline { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: var(--mist); text-decoration: none; background: #ffffff10; border-radius: 10px; padding: 7px; }
.decline:hover { color: var(--moon); }

/* trailer */
.trailer { padding: 80px 0 40px; }
.screen { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid #ffffff18; }
.screen video { width: 100%; aspect-ratio: 1138 / 720; background: #000; }

/* a ride, step by step */
.ride { padding: 60px 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; }
.steps img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.steps h3 { font-size: 21px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.steps h3::before { content: counter(step); font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--slime-ink); background: var(--pumpkin); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; padding-top: 3px; }
.steps p { margin: 0; color: var(--mist); }

/* worlds */
.worlds { padding: 70px 0 90px; background: linear-gradient(180deg, transparent, var(--plum) 30%, var(--plum)); }
.worlds-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.countries { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.countries li { border: 1px solid #ffffff22; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; color: var(--mist); }
.countries li.free { border-color: var(--slime); color: var(--moon); background: #9be22f1a; }
.countries li span { color: var(--slime); font-size: 12px; margin-left: 6px; }
.cabin-loop { margin: 0; }
.cabin-loop img { width: 100%; border-radius: 18px; border: 6px solid var(--plum-2); }
.cabin-loop figcaption { margin-top: 10px; color: var(--mist); font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; border-radius: 12px; padding: 13px 22px; font-size: 17px; }
.btn-slime { background: var(--slime); color: var(--slime-ink); box-shadow: 0 4px 0 #4f8a12; }
.btn-slime:hover { background: #b2f24f; }

/* zombie catapult */
.zc { padding: 90px 0; background: radial-gradient(ellipse at 20% 30%, #5a2a10 0%, var(--torch) 45%, #140a05 100%); border-top: 4px solid #ff7a1a; }
.zc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.zc-art { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.6); transform: rotate(-1.5deg); }
.zc-type { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.5vw, 72px); line-height: .95; color: #a8f24a; text-shadow: 0 4px 0 #c2410c, 0 10px 24px rgba(0,0,0,.6); margin: 4px 0 16px; letter-spacing: .01em; }
.zc .kicker { color: #ffb15c; }
.zc-copy p { color: #f1dcc6; max-width: 46ch; }
.zc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-play { background: #000; color: #fff; border: 1px solid #ffffff55; padding: 10px 20px 10px 16px; }
.btn-play svg { width: 26px; height: 26px; fill: #a8f24a; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-size: 20px; }
.btn-play small { font-size: 11px; font-weight: 700; color: #ddd; }
.btn-play:hover { background: #1b1b1b; }
.btn-ghost { border: 2px solid #ffb15c; color: #ffd6a8; }
.btn-ghost:hover { background: #ffb15c1f; }

/* footer: the only place the studio red speaks */
.foot { background: #07040c; border-top: 3px solid var(--studio-red); padding: 40px 0; }
.foot-grid { display: grid; grid-template-columns: 140px 1fr auto; gap: 28px; align-items: center; }
.foot img { width: 140px; height: auto; }
.foot p { margin: 0; color: var(--mist); font-size: 15px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot nav a { color: var(--mist); text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot .copy { grid-column: 1 / -1; font-size: 13px; color: #8a7f9c; }

/* phones and small tablets */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 18px 56px; }
  .phone { max-width: 360px; transform: none; }
  .hero::after { background: linear-gradient(180deg, rgba(23,12,41,.55) 0%, rgba(23,12,41,.9) 45%, var(--night) 100%); }
  .steps, .worlds-grid, .zc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { padding: 8px 16px; }
  .top nav a:not(.nav-play) { display: none; }
  .studio img { width: 84px; }
  .lede { font-size: 18px; }
  .trailer { padding-top: 56px; }
  .zc-art { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
