/* ZorMarket site. Colours and shapes come from the game UI: Assets/_Project/UI/GameUI.uss and Scripts/UI/UIShapes.cs
   (blueprint panel, sign buttons with a dark lip and screws, white pills, the tilted yellow title). */

@font-face { font-family: "Bungee"; src: url(fonts/bungee.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Goldman"; src: url(fonts/goldman-700.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --paper: #295ea8;          /* BlueprintPanel.paper */
  --paper-deep: #1f4c8f;
  --grid: rgba(255, 255, 255, .1);
  --green: #2f9b52; --green-lip: #1d6033;   /* UIKit.Green, a shade darker so white text reads */
  --yellow: #ffc71f; --yellow-lip: #9e7b13;
  --blue: #3880eb; --blue-lip: #234f92;
  --red: #db3d40; --red-lip: #882628;
  --charcoal: #3a3f4b; --charcoal-lip: #1f2229;
  --gold: #ffd640; --gold-ink: #462d0a;     /* .title */
  --ink: #1e283c; --ink-soft: #46516a;
  --lip: #a0acc4;                            /* .pill bottom edge */
  --sky: #e8f1ff;
  --line: rgba(41, 94, 168, .07);
  --screw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='%23dbe0e6'/%3E%3Cpath d='M3.6 3.6l4.8 4.8' stroke='%23737880' stroke-width='1.5'/%3E%3C/svg%3E");
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 700 17px/1.55 Goldman, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--sky);
  background-image: linear-gradient(var(--line) 2px, transparent 2px), linear-gradient(90deg, var(--line) 2px, transparent 2px);
  background-size: 32px 32px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--paper-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue-lip); }
h1, h2, h3 { font-weight: 400; }
code { font: 700 .92em/1.4 Consolas, "Cascadia Mono", monospace; overflow-wrap: anywhere; }
.small { font-size: 15px; color: var(--ink-soft); }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .panel :focus-visible, .band :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------- Game widgets ---------- */

/* Blue blueprint paper: grid, white inner border, screws (UIShapes.BlueprintPanel). */
.panel, .tag, .band, .footer {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px);
  background-size: 32px 32px;
}
.panel {
  position: relative;
  color: #fff;
  border-radius: 22px;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, .25);
  padding: 44px 40px 40px;
}
.panel::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .85); border-radius: 12px;
}
.panel::after {
  content: ""; position: absolute; inset: 22px; pointer-events: none;
  background: var(--screw) 0 0 / 11px no-repeat, var(--screw) 100% 0 / 11px no-repeat,
              var(--screw) 0 100% / 11px no-repeat, var(--screw) 100% 100% / 11px no-repeat;
}
.panel a { color: #fff; }
.panel a:hover { color: var(--gold); }
.panel .small { color: rgba(255, 255, 255, .85); }
.panel-title {
  margin: 0 0 12px; text-align: center;
  font: 400 clamp(26px, 4vw, 34px)/1.15 Bungee, Impact, sans-serif; font-variant-caps: small-caps;
  text-shadow: 0 3px 3px rgba(0, 0, 0, .45);
}

/* Road-sign button: colour face, darker lip under it, white inner border, four screws (UIShapes.SignButton). */
.sign {
  --c: var(--blue); --c-lip: var(--blue-lip); --fg: #fff;
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 70px; margin: 0 0 10px; padding: 16px 42px 17px;
  font: 400 23px/1.15 Bungee, Impact, sans-serif; font-variant-caps: small-caps;
  color: var(--fg); text-decoration: none; text-shadow: 0 3px 2px rgba(0, 0, 0, .35);
  background: var(--c); border-radius: 14px;
  box-shadow: 0 8px 0 var(--c-lip), 3px 10px 0 rgba(0, 0, 0, .3);
  transition: transform .14s var(--bounce), box-shadow .14s;
}
.sign::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 4px solid rgba(255, 255, 255, .95); border-radius: 9px;
}
.sign::after {
  content: ""; position: absolute; inset: 11px; pointer-events: none;
  background: var(--screw) 0 0 / 10px no-repeat, var(--screw) 100% 0 / 10px no-repeat,
              var(--screw) 0 100% / 10px no-repeat, var(--screw) 100% 100% / 10px no-repeat;
}
.sign:hover { color: var(--fg); transform: scale(1.04) rotate(-1.5deg); }
.sign:active { transform: translateY(5px) scale(.98); box-shadow: 0 3px 0 var(--c-lip), 2px 5px 0 rgba(0, 0, 0, .3); }
.sign-green { --c: var(--green); --c-lip: var(--green-lip); }
.sign-big { min-height: 80px; font-size: clamp(24px, 2.6vw, 25px); } /* 24 px+ = large text: white on this green passes WCAG AA */

/* White pill with a grey lip (.pill). */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 6px 18px 3px;
  font: 700 16px/1.2 Goldman, "Segoe UI", sans-serif; color: var(--ink); text-decoration: none;
  background: #fff; border: 0; border-bottom: 5px solid var(--lip); border-radius: 14px;
  cursor: pointer; transition: transform .12s var(--bounce), background-color .12s;
}
.pill:hover { color: var(--ink); background: #fff4c8; transform: scale(1.05); }
.pill:active { transform: scale(.95); }
.pill-small { min-height: 36px; padding: 4px 14px 2px; font-size: 15px; border-bottom-width: 4px; }

/* Key chip (.key). */
.key {
  display: inline-block; padding: 0 8px; margin: 2px 0;
  font-size: .92em; line-height: 1.5; white-space: nowrap; color: var(--ink);
  background: #fff; border: 1px solid #c9d2e3; border-bottom: 4px solid #96a0b4; border-radius: 8px;
}

/* Yellow number circle (.howto-number). */
.num {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font: 400 22px/1 Bungee, Impact, sans-serif; color: #281e05;
  background: #ffc81e; box-shadow: 0 4px 0 #b08a12;
}

/* Section headings: a tilted blueprint tag. */
.tag {
  display: inline-block; margin: 0 0 18px; padding: 10px 26px 12px;
  font: 400 clamp(25px, 4.4vw, 38px)/1.15 Bungee, Impact, sans-serif; font-variant-caps: small-caps;
  color: #fff; text-shadow: 0 3px 3px rgba(0, 0, 0, .45);
  border-radius: 14px; box-shadow: 4px 7px 0 rgba(0, 0, 0, .2);
  transform: rotate(-1.5deg);
}
.section:nth-of-type(even) .tag { transform: rotate(1.2deg); }
.tag-light { background-color: #fff; background-image: none; color: var(--paper-deep); text-shadow: none; }

.section { padding: 64px 0 8px; }
.lead { max-width: 760px; margin: 0 0 26px; font-size: 19px; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-bottom: 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(12, 28, 60, .32), rgba(12, 28, 60, .12) 30%, rgba(12, 28, 60, .18) 78%, var(--sky));
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1140px, 100% - 32px); margin: 0 auto; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 24px/1 Bungee, Impact, sans-serif; font-variant-caps: small-caps; text-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.brand img { border-radius: 8px; }
.brand:hover { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nav .pill { min-height: 40px; font-size: 15px; padding: 5px 14px 2px; }

.hero-inner { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 0; }
.logo {
  position: relative; z-index: 1; margin: 6px 0 -14px;
  font: 400 clamp(56px, 13vw, 132px)/1 Bungee, Impact, sans-serif; font-variant-caps: small-caps; letter-spacing: .01em;
  color: var(--gold); -webkit-text-stroke: .075em var(--gold-ink); paint-order: stroke fill;
  text-shadow: 0 .075em 0 rgba(40, 25, 5, .45);
  transform: rotate(-4deg);
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-3deg) translateY(-6px); } }
.hero-panel { width: min(600px, 100%); padding: 46px 42px 34px; transform: rotate(1.5deg); text-align: center; }
.pitch { margin: 0 0 22px; font-size: 18px; text-shadow: 0 2px 2px rgba(0, 0, 0, .3); }
.dl-meta { margin: 12px 0 4px; font-size: 15px; opacity: .92; }
.dl-meta span { white-space: nowrap; }
.dot { margin: 0 4px; }
.dl-alt { margin: 0 0 14px; font-size: 16px; }
.honest { margin: 0; font-size: 15px; opacity: .92; }
.sticker {
  position: absolute; top: 6px; right: -34px; z-index: 2; margin: 0; padding: 8px 14px 9px;
  font: 400 13px/1.2 Bungee, Impact, sans-serif; text-align: center; color: #2a1d00;
  background: var(--yellow); border-radius: 12px;
  box-shadow: 0 5px 0 var(--yellow-lip), 3px 8px 0 rgba(0, 0, 0, .25);
  transform: rotate(7deg);
}
.sticker span { font-size: 22px; }
/* Wide screens: logo and panel sit over the sky and street on the left, the store sign stays in view on the right. */
@media (min-width: 1000px) {
  .hero { min-height: 860px; } /* tall enough that the picture scales the store sign out from behind the panel */
  .hero-inner { align-items: flex-start; padding-left: max(16px, 6vw); }
  .topbar { width: auto; margin: 0 max(16px, 6vw); }
  .logo { font-size: clamp(56px, 9vw, 120px); margin-left: 8px; }
  .hero-bg { object-position: 0% 40%; }
}

/* ---------- What it is ---------- */

.points { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.points li { padding: 20px 20px 18px; background: #fff; border-radius: 18px; border-bottom: 6px solid var(--lip); }
.points h3, .step h3 { margin: 14px 0 4px; font: 400 20px/1.2 Bungee, Impact, sans-serif; font-variant-caps: small-caps; color: var(--paper-deep); }
.points p { margin: 0; color: var(--ink-soft); }

/* ---------- Feature cards ---------- */

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { overflow: hidden; background: #fff; border-radius: 18px; border-bottom: 6px solid var(--lip); box-shadow: 0 14px 24px -18px rgba(20, 40, 80, .45); transition: transform .2s var(--bounce); }
.card:hover { transform: translateY(-4px) rotate(-.6deg); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 14px 18px 18px; }
.card h3 { margin: 0 0 6px; font: 400 21px/1.15 Bungee, Impact, sans-serif; font-variant-caps: small-caps; color: var(--paper-deep); }
.card p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- Bosses ---------- */

.band { margin-top: 72px; padding: 60px 0 70px; color: #fff; }
.band .lead { text-shadow: 0 2px 2px rgba(0, 0, 0, .3); }
.bosses { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; list-style: none; }
.boss { display: flex; flex-direction: column; align-items: center; text-align: center; }
.boss:nth-child(1) { transform: rotate(-1.5deg); }
.boss:nth-child(2) { transform: rotate(1.2deg); }
.boss:nth-child(3) { transform: rotate(-.8deg); }
.boss img { display: block; width: 100%; max-width: 330px; aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid #fff; border-radius: 18px; box-shadow: 6px 10px 0 rgba(0, 0, 0, .25); }
.plate {
  position: relative; margin: -30px 0 12px; padding: 12px 26px 13px; min-width: 210px;
  font: 400 24px/1.1 Bungee, Impact, sans-serif; font-variant-caps: small-caps; color: #fff;
  text-shadow: 0 3px 2px rgba(0, 0, 0, .35); border-radius: 12px;
  background: var(--c); box-shadow: 0 7px 0 var(--c-lip), 3px 9px 0 rgba(0, 0, 0, .3);
}
.plate::before { content: ""; position: absolute; inset: 6px; border: 3px solid rgba(255, 255, 255, .95); border-radius: 8px; }
.plate-red { --c: var(--red); --c-lip: var(--red-lip); }
.plate-yellow { --c: var(--yellow); --c-lip: var(--yellow-lip); color: #2a1d00; text-shadow: 0 2px 0 rgba(255, 255, 255, .35); }
.plate-dark { --c: var(--charcoal); --c-lip: var(--charcoal-lip); color: var(--gold); }
.boss p { max-width: 320px; margin: 4px 0 0; text-shadow: 0 2px 2px rgba(0, 0, 0, .3); }

/* ---------- Gallery and lightbox ---------- */

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; overflow: hidden; background: #fff; border-radius: 14px; border-bottom: 5px solid var(--lip); }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease-out; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { width: min(1400px, 100% - 24px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(10, 22, 46, .9); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 14px; }
.lightbox figcaption { margin: 10px 0 0; text-align: center; }
.lb-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }

/* ---------- Friends ---------- */

.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } }
.ways { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ways li { padding: 14px 18px 12px; background: #fff; border-radius: 16px; border-bottom: 5px solid var(--lip); }
.ways p { margin: 6px 0 0; color: var(--ink-soft); }
.label { display: inline-block; padding: 2px 12px 0; font: 400 15px/1.6 Bungee, Impact, sans-serif; color: #2a1d00; background: #ffc81e; border-radius: 10px; box-shadow: 0 3px 0 #b08a12; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border: 7px solid #fff; border-radius: 18px; box-shadow: 6px 10px 0 rgba(0, 0, 0, .18); transform: rotate(1.2deg); }
.shot figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink-soft); }

.crew { display: flex; justify-content: center; gap: 4px; margin: 26px 0 0; }
.bean { width: 54px; height: 84px; overflow: visible; animation: hop 2.6s ease-in-out infinite; }
.crew .bean:nth-child(1) { color: #ff7326; }
.crew .bean:nth-child(2) { color: #ff59bf; animation-delay: -.4s; }
.crew .bean:nth-child(3) { color: #73d933; animation-delay: -.9s; }
.crew .bean:nth-child(4) { color: #338cff; animation-delay: -1.3s; }
.crew .bean:nth-child(5) { color: #9959ff; animation-delay: -1.7s; }
.crew .bean:nth-child(6) { color: #ffd126; animation-delay: -2.1s; }
@keyframes hop { 50% { transform: translateY(-5px) rotate(2deg); } }
.pupils { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .12s ease-out; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.crew .bean:nth-child(even) .eyes { animation-delay: -2.2s; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---------- Install ---------- */

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.step { padding: 22px 22px 16px; background: #fff; border-radius: 18px; border-bottom: 6px solid var(--lip); }
.step p { margin: 8px 0 0; }
.step code { padding: 1px 5px; background: #edf2fb; border-radius: 6px; }
.note { margin: 20px 0 0; padding: 16px 20px; background: #fff4c8; border-radius: 16px; border-bottom: 5px solid #e2c56a; }
.note code { padding: 1px 5px; background: #fff; border-radius: 6px; }

/* ---------- Requirements and safety ---------- */

.reqs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; }
.reqs div { padding: 16px 18px 14px; background: #fff; border-radius: 16px; border-bottom: 5px solid var(--lip); }
.reqs dt { font: 400 16px/1.3 Bungee, Impact, sans-serif; font-variant-caps: small-caps; color: var(--paper-deep); }
.reqs dd { margin: 6px 0 0; }
.safety { padding: 48px 44px 40px; transform: rotate(-.5deg); }
.safety-grid { display: grid; gap: 10px 40px; }
@media (min-width: 900px) { .safety-grid { grid-template-columns: 1fr 1.15fr; } }
.facts { margin: 0 0 18px; padding-left: 20px; }
.facts li { margin: 6px 0; }
.cmd { display: inline-block; margin: 2px 0 12px; padding: 6px 12px; background: rgba(8, 24, 54, .35); border-radius: 10px; }
.hash-title { margin: 0 0 8px; font: 400 18px/1.2 Bungee, Impact, sans-serif; font-variant-caps: small-caps; }
.hash { margin: 0 0 12px; padding: 12px 14px; background: rgba(8, 24, 54, .35); border-radius: 14px; }
.hash-name { margin: 0 0 4px; font-size: 15px; }
.hash code { display: block; font-size: 14px; word-break: break-all; }
.hash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 0; }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 240px; } }
.faq { display: grid; gap: 12px; }
.asker { position: relative; display: flex; justify-content: center; padding-top: 70px; }
.asker .bean { width: 120px; height: 188px; color: #26ccbf; }
.bubble {
  position: absolute; top: 0; left: 50%; margin: 0 0 0 10px; display: grid; place-items: center; width: 74px; height: 64px;
  font: 400 40px/1 Bungee, Impact, sans-serif; color: var(--paper-deep);
  background: #fff; border-radius: 20px; border-bottom: 5px solid var(--lip); transform: rotate(8deg);
}
@media (max-width: 899px) { .asker { display: none; } }
.faq details { background: #fff; border-radius: 16px; border-bottom: 5px solid var(--lip); }
.faq summary { position: relative; padding: 16px 52px 14px 20px; cursor: pointer; list-style: none; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  display: grid; place-items: center; font: 400 20px/1 Bungee, Impact, sans-serif; color: #281e05;
  background: #ffc81e; border-radius: 50%; transition: transform .2s var(--bounce);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.footer { margin-top: 80px; padding: 34px 0 40px; color: #fff; text-align: center; }
.footer a { color: #fff; }
.footer a:hover { color: var(--gold); }
.footer p { margin: 6px 0; }
.footer .small { color: rgba(255, 255, 255, .85); }
.footer-logo { font: 400 34px/1 Bungee, Impact, sans-serif; font-variant-caps: small-caps; color: var(--gold); -webkit-text-stroke: .075em var(--gold-ink); paint-order: stroke fill; transform: rotate(-3deg); }
.crew-small { margin: 0 0 10px; }
.crew-small .bean { width: 40px; height: 62px; }
.crew-small .bean:nth-child(1) { color: #ff7326; }
.crew-small .bean:nth-child(2) { color: #ff59bf; animation-delay: -1.2s; }

/* ---------- Small screens and motion ---------- */

@media (max-width: 720px) {
  .nav { display: none; }
  .hero-panel { padding: 42px 26px 30px; transform: rotate(1deg); }
  .panel { padding: 42px 26px 34px; }
  .safety { padding: 44px 24px 34px; }
  .sign { padding-inline: 30px; }
  .sticker { position: static; display: inline-block; margin: 0 0 12px; transform: rotate(-2deg); }
  .section { padding-top: 52px; }
  .lead { font-size: 18px; }
  .bean { width: 44px; height: 69px; }
}

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