/* Loot & Scoot website - pixel-art night-heist theme */
@font-face { font-family: 'LootPixel'; src: url(../fonts/LootPixel.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'LootPixelBold'; src: url(../fonts/LootPixelBold.ttf) format('truetype'); font-display: swap; }

:root {
  --bg: #0f0d24;
  --bg2: #1c1840;
  --panel: #26224a;
  --panel-2: #312b5c;
  --panel-dark: #181433;
  --ink: #0b0914;
  --text: #fff6e0;
  --dim: #c9c2ee;
  --muted: #8f88b8;
  --yellow: #ffd23f;
  --orange: #ff8c2a;
  --green: #5fd35f;
  --red: #ff4d5e;
  --blue: #4aa3ff;
  --purple: #8a5cf0;
  --pink: #ff6b9a;
  --cyan: #5fd0f5;
  --pixel: 'LootPixel', ui-monospace, monospace;
  --pixel-bold: 'LootPixelBold', ui-monospace, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --chamfer: polygon(12px 0, calc(100% - 12px) 0, calc(100% - 12px) 6px, calc(100% - 6px) 6px, calc(100% - 6px) 12px, 100% 12px,
    100% calc(100% - 12px), calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) calc(100% - 6px), calc(100% - 12px) calc(100% - 6px),
    calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 6px), 6px calc(100% - 6px), 6px calc(100% - 12px), 0 calc(100% - 12px),
    0 12px, 6px 12px, 6px 6px, 12px 6px);
  --chamfer-sm: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px),
    calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px),
    0 6px, 3px 6px, 3px 3px, 6px 3px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--pixel);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--yellow); }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(rgba(11, 9, 20, .92), rgba(11, 9, 20, .72));
  backdrop-filter: blur(6px);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(255, 210, 63, .12);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .brand img { height: 30px; width: auto; }
.nav .links { display: flex; gap: 22px; align-items: center; }
.nav .links a { font-family: var(--pixel-bold); font-size: 15px; color: var(--dim); text-decoration: none; letter-spacing: .5px; }
.nav .links a:hover { color: var(--yellow); }
.nav .links .btn span { font-size: 14px; padding: 9px 14px; }
@media (max-width: 760px) { .nav .links a:not(.btn) { display: none; } }

/* ------------------------------------------------------------- buttons */
.btn {
  --face: var(--yellow); --face-hi: #ffeaa0; --side: #a8771a; --label: #1a1423;
  display: inline-block; text-decoration: none; cursor: pointer; border: 0; background: transparent; padding: 0;
  filter: drop-shadow(0 4px 0 var(--ink)) drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink)) drop-shadow(0 10px 10px rgba(0, 0, 0, .35));
  transition: transform .08s ease;
}
.btn span {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px 18px;
  font-family: var(--pixel-bold); font-size: 22px; line-height: 1; color: var(--label); letter-spacing: .5px;
  background: linear-gradient(var(--face-hi), var(--face) 48%, var(--face));
  clip-path: var(--chamfer);
  box-shadow: inset 0 -7px 0 var(--side), inset 0 4px 0 rgba(255, 255, 255, .35);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); }
.btn.green { --face: var(--green); --face-hi: #b8f5b0; --side: #2f8a3a; }
.btn.blue { --face: var(--blue); --face-hi: #bfe0ff; --side: #2659a8; --label: #fff; }
.btn.blue span { text-shadow: 0 2px 0 var(--ink); }
.btn.dark { --face: #4a4380; --face-hi: #7b72c4; --side: #2a2552; --label: var(--text); }
.btn.dark span { text-shadow: 0 2px 0 var(--ink); }
.btn .spr { --s: 2; }

/* ------------------------------------------------------------- panels */
.panel {
  position: relative;
  background: linear-gradient(var(--panel-2), var(--panel) 40%, var(--panel-dark));
  clip-path: var(--chamfer);
  padding: 26px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .08), inset 0 3px 0 rgba(255, 255, 255, .12);
}
.panel-frame { filter: drop-shadow(0 4px 0 var(--ink)) drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink)) drop-shadow(0 16px 18px rgba(0, 0, 0, .45)); }

.ribbon {
  display: inline-block; font-family: var(--pixel-bold); font-size: 16px; color: #1a1423; letter-spacing: 1px;
  background: linear-gradient(#ffe48a, var(--yellow)); padding: 8px 20px 10px; clip-path: var(--chamfer-sm);
  box-shadow: inset 0 -4px 0 #c9951e;
}

/* ------------------------------------------------------------- sections */
section { position: relative; padding: 110px 0; }
.section-title { text-align: center; margin-bottom: 54px; }
.section-title h2 {
  font-family: var(--pixel-bold); font-weight: normal; font-size: clamp(30px, 5vw, 54px); line-height: 1.1; margin: 14px 0 12px;
  text-shadow: 0 4px 0 var(--ink), 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 -4px 0 var(--ink), 0 8px 0 rgba(0, 0, 0, .4);
}
.section-title h2 em { font-style: normal; color: var(--yellow); }
.section-title p { color: var(--dim); max-width: 640px; margin: 0 auto; }
.stars-bg { background:
  radial-gradient(2px 2px at 10% 20%, #fff8 50%, transparent 51%),
  radial-gradient(2px 2px at 30% 70%, #fff6 50%, transparent 51%),
  radial-gradient(2px 2px at 55% 30%, #fff7 50%, transparent 51%),
  radial-gradient(2px 2px at 80% 60%, #fff5 50%, transparent 51%),
  radial-gradient(2px 2px at 90% 15%, #fff8 50%, transparent 51%); }

/* ------------------------------------------------------------- hero */
.hero {
  min-height: 100vh; min-height: 100svh; padding: 130px 0 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(#0b0a1f, #1c1840 45%, #3a2a63 80%, #5b3772);
}
.hero .sky { position: absolute; inset: 0; background: url(../img/menu_sky.png) center bottom / cover no-repeat; image-rendering: pixelated; opacity: .95; }
.hero .layer { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; image-rendering: pixelated; }
.hero .far { height: 70%; background-image: url(../img/menu_far.png); background-size: auto 100%; animation: scroll 120s linear infinite; opacity: .9; }
.hero .near { height: 62%; background-image: url(../img/menu_near.png); background-size: auto 100%; animation: scroll 60s linear infinite; }
.hero .roof { height: 18%; background-image: url(../img/menu_roof.png); background-size: auto 100%; bottom: -4px; }
@keyframes scroll { from { background-position-x: 0; } to { background-position-x: -2400px; } }
.beam {
  position: absolute; bottom: 0; width: 220px; height: 140vh; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255, 240, 180, .22), rgba(255, 240, 180, 0) 85%);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); mix-blend-mode: screen; pointer-events: none;
}
.beam.b1 { left: 8%; animation: sweep 9s ease-in-out infinite alternate; }
.beam.b2 { right: 6%; animation: sweep 11s ease-in-out infinite alternate-reverse; }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(24deg); } }
.hero .content { position: relative; z-index: 2; text-align: center; padding-bottom: 22vh; }
.hero .logo { width: min(860px, 92vw); height: auto; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .35)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hero .tagline { font-family: var(--pixel-bold); font-size: clamp(22px, 3.4vw, 36px); color: var(--yellow); margin: 22px 0 10px; letter-spacing: 2px;
  text-shadow: 0 3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink); }
.hero .blurb { max-width: 680px; margin: 0 auto 28px; color: var(--text); font-size: clamp(16px, 2vw, 20px); text-shadow: 0 2px 0 var(--ink); }
.hero .actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel-bold); font-size: 13px; color: var(--dim);
  background: rgba(11, 9, 20, .65); padding: 8px 14px; clip-path: var(--chamfer-sm); }
.chip .spr { --s: 1.5; }
.runner { position: absolute; z-index: 3; bottom: 6.5%; left: 0; animation: run 22s linear infinite; }
@keyframes run { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 160px)); } }

/* ------------------------------------------------------------- characters (CSS sprites) */
.char {
  --s: 4; --row: 0;
  width: calc(32px * var(--s)); height: calc(32px * var(--s));
  background: url(../img/characters.png) no-repeat;
  background-size: calc(192px * var(--s)) calc(1312px * var(--s));
  background-position: calc(-64px * var(--s)) calc(var(--row) * -32px * var(--s));
  image-rendering: pixelated;
  animation: walk .62s steps(4) infinite;
  flex: none;
}
.char.idle { animation: idle 1.2s steps(2) infinite; background-position-x: 0; }
@keyframes walk { from { background-position-x: calc(-64px * var(--s)); } to { background-position-x: calc(-192px * var(--s)); } }
@keyframes idle { from { background-position-x: 0; } to { background-position-x: calc(-64px * var(--s)); } }

/* ------------------------------------------------------------- trailer */
.trailer { background: linear-gradient(#5b3772, #2a1f55 18%, var(--bg2)); }
.trailer .grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 860px) { .trailer .grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.phone {
  width: min(360px, 82vw); aspect-ratio: 9 / 16; position: relative; padding: 14px;
  background: linear-gradient(#3a3366, #1d1838); clip-path: var(--chamfer);
  box-shadow: inset 0 0 0 4px #0b0914, inset 0 0 0 8px #4f4690;
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; clip-path: var(--chamfer-sm); }
.phone .tap { position: absolute; inset: 14px; display: grid; place-items: center; cursor: pointer; border: 0; background: rgba(11, 9, 20, .25); color: var(--text); }
.phone .tap[hidden] { display: none; }
.phone .tap .ribbon { font-size: 20px; }
.trailer h3 { font-family: var(--pixel-bold); font-weight: normal; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin: 10px 0 18px;
  text-shadow: 0 4px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink); }
.trailer h3 em { color: var(--yellow); font-style: normal; }
.beats { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.beats li { display: flex; gap: 14px; align-items: center; color: var(--dim); }
.beats li .spr { --s: 2.5; }
@media (max-width: 860px) { .beats { justify-items: center; } }

/* ------------------------------------------------------------- features */
.features { background: var(--bg2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { height: 100%; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease; }
.card:hover { transform: translateY(-6px) rotate(-.4deg); }
.card .icon { height: 120px; display: flex; align-items: center; justify-content: center; margin: -6px 0 6px;
  background: radial-gradient(closest-side, rgba(var(--glow), .35), transparent); }
.card h3 { font-family: var(--pixel-bold); font-weight: normal; font-size: 22px; margin: 0; color: var(--yellow); line-height: 1.2; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }

/* ------------------------------------------------------------- gallery */
.gallery { background: linear-gradient(var(--bg2), var(--bg)); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(760px, 86vw); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 6vw 30px; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; }
.shots button { scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; }
.shots img { display: block; width: 100%; height: auto; clip-path: var(--chamfer); transition: transform .2s ease; }
.shots button:hover img { transform: scale(1.02); }
.gallery-nav { display: flex; gap: 18px; justify-content: center; margin-top: 8px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(8, 6, 20, .9); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 86vh; clip-path: var(--chamfer); }
dialog.lightbox .close { display: block; margin: 14px auto 0; }

/* ------------------------------------------------------------- stars */
.how { background: var(--bg); }
.star-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; text-align: center; }
.star-grid .panel { display: grid; justify-items: center; gap: 10px; }
.star-grid h3 { font-family: var(--pixel-bold); font-weight: normal; margin: 0; font-size: 20px; }
.star-grid p { margin: 0; color: var(--dim); font-size: 16px; }

/* ------------------------------------------------------------- crew */
.crew { background: linear-gradient(var(--bg), #241c4a); overflow: hidden; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.crew .panel { text-align: center; display: grid; justify-items: center; gap: 6px; }
.crew h3 { font-family: var(--pixel-bold); font-weight: normal; margin: 6px 0 0; font-size: 20px; color: var(--yellow); }
.crew p { margin: 0; color: var(--dim); font-size: 15px; }
.outfits { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.outfits .char { --s: 3; }

/* ------------------------------------------------------------- cta + footer */
.cta { text-align: center; background: radial-gradient(ellipse at 50% 120%, #6a3d7a, transparent 60%), #241c4a; }
.cta .char { margin: 0 auto 10px; }
footer { background: #08061a; border-top: 4px solid var(--ink); padding: 44px 0 36px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer .brand img { height: 28px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; font-family: var(--pixel-bold); font-size: 14px; }
footer a:hover { color: var(--yellow); }
footer small { display: block; width: 100%; color: #6f6896; }

/* ------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- legal pages */
.legal { padding: 120px 0 80px; background: linear-gradient(#141033, var(--bg) 300px); }
.legal .doc { width: min(860px, 100% - 32px); margin: 0 auto; }
.legal h1 { font-family: var(--pixel-bold); font-weight: normal; font-size: clamp(32px, 5vw, 48px); margin: 18px 0 6px;
  text-shadow: 0 4px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink); }
.legal .meta { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.legal .tldr { margin-bottom: 40px; }
.legal .tldr h2 { margin-top: 0; }
.legal .tldr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legal .tldr li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--text); }
.legal .tldr li .spr { --s: 1.5; margin-top: 2px; }
.legal h2 { font-family: var(--pixel-bold); font-weight: normal; font-size: 24px; color: var(--yellow); margin: 40px 0 10px; }
.legal p, .legal li { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: #e8e2f6; }
.legal ul { padding-left: 22px; }
.legal code { background: #241f47; padding: 1px 6px; border-radius: 3px; font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; margin: 10px 0 6px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #332c62; vertical-align: top; color: #e8e2f6; }
.legal th { color: var(--yellow); font-weight: 600; }

/* ------------------------------------------------------------- 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px;
  background: linear-gradient(#0b0a1f, #1c1840 55%, #3a2a63); }
.lost .bars { position: fixed; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(90deg, transparent 0 60px, #9aa0b8 60px 76px, transparent 76px 136px); }
.lost h1 { font-family: var(--pixel-bold); font-weight: normal; font-size: clamp(54px, 10vw, 110px); color: var(--red); margin: 10px 0 0; line-height: 1;
  text-shadow: 0 6px 0 var(--ink), 5px 0 0 var(--ink), -5px 0 0 var(--ink), 0 -5px 0 var(--ink); }
.lost p { color: var(--dim); }

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