/* Monster KO site. Same materials as the game UI (src/ui/styles/global.css + ui.css in the game repo):
   royal-blue world, brighter blue cards with a navy outline and a chunky bottom edge, cream cards, an illustrated logo,
   Lilita One for game text, Nunito for reading. Self-hosted fonts, no external requests. */
@font-face { font-family: 'Lilita One'; src: url('/assets/LilitaOne-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/Nunito-W600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/Nunito-W800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --ol: #102360;
  --bg-1: #2361c9;
  --bg-2: #1e57bb;
  --bg-3: #1a4dab;
  --card-1: #5aa0ff;
  --card-2: #3c80ec;
  --card-3: #2c62d2;
  --card-rim: rgba(220, 236, 255, 0.55);
  --cream-1: #fffaf0;
  --cream-2: #f1dfba;
  --ink: #1d2c66;
  --ink-2: #4d5784;
  --gold-1: #ffe49a;
  --gold-2: #f4b63e;
  --muted: #d2e2ff;
  --paper-page: #dfe8f8;
  --link: #1f5fd0;
  --text-ol: -1.5px -1.5px 0 var(--ol), 1.5px -1.5px 0 var(--ol), -1.5px 1.5px 0 var(--ol), 1.5px 1.5px 0 var(--ol), 0 -1.5px 0 var(--ol), 0 1.5px 0 var(--ol), -1.5px 0 0 var(--ol), 1.5px 0 0 var(--ol), 0 3px 0 var(--ol);
  --text-ol-lg: -2.5px -2.5px 0 var(--ol), 2.5px -2.5px 0 var(--ol), -2.5px 2.5px 0 var(--ol), 2.5px 2.5px 0 var(--ol), 0 -2.5px 0 var(--ol), 0 2.5px 0 var(--ol), -2.5px 0 0 var(--ol), 2.5px 0 0 var(--ol), 0 5px 0 var(--ol);
  --font-game: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 600 17px/1.65 var(--font-body); color: #fff; background: var(--bg-2); }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- top bar: a solid strip so the links read over any art; sticks while scrolling ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13, 31, 92, 0.86); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 2px 0 var(--ol), 0 8px 18px rgba(8, 18, 60, 0.25); }
.topbar-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 9px 40px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2.5px var(--ol), 0 3px 0 2.5px rgba(16, 35, 96, 0.45); }
.mark span { font: 400 22px/1 var(--font-game); letter-spacing: 0.03em; color: #fff; text-shadow: var(--text-ol); }
.topbar .links { margin-left: auto; display: flex; align-items: center; gap: 4px 26px; }
.topbar .links a { font: 400 18px/1.2 var(--font-game); letter-spacing: 0.02em; color: #fff; text-decoration: none; text-shadow: var(--text-ol); padding: 8px 0; }
.topbar .links a:hover, .topbar .links a[aria-current='page'] { color: var(--gold-1); }
.topbar .links a:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 700px) {
  .topbar-inner { padding: 8px 16px; }
  .topbar .links { gap: 2px 16px; }
  .topbar .links a { font-size: 16px; }
  .topbar .links .opt { display: none; }
  .mark img { width: 36px; height: 36px; }
  .mark span { font-size: 19px; }
}

/* ---------- chunky game buttons ---------- */
.btn {
  --b1: #79d6ff; --b2: #2b8de8; --b3: #154f91;
  position: relative; isolation: isolate;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 170px; min-height: 58px; padding: 8px 22px 13px;
  border-radius: 16px; text-decoration: none; color: #fff;
  font: 400 22px/1.05 var(--font-game); letter-spacing: 0.03em; text-shadow: var(--text-ol);
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 0 var(--b3), 0 0 0 3px var(--ol), 0 6px 0 3px rgba(0, 0, 0, 0.38);
}
.btn::before {
  content: ''; position: absolute; left: 6px; right: 6px; top: 4px; height: 42%; z-index: -1; pointer-events: none;
  border-radius: 12px 12px 30px 30px / 12px 12px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06));
}
.btn small { display: block; font: 800 11px/1.2 var(--font-body); letter-spacing: 0.12em; text-shadow: none; color: rgba(255, 255, 255, 0.9); margin-bottom: 3px; }
.btn.orange { --b1: #ffd75a; --b2: #ff9a1c; --b3: #b4510b; }
a.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 var(--b3), 0 0 0 3px var(--ol), 0 2px 0 3px rgba(0, 0, 0, 0.38); }

/* ---------- panels (game cards) ---------- */
.panel {
  position: relative; border-radius: 18px; background: linear-gradient(180deg, var(--card-1) 0%, var(--card-2) 50%, var(--card-3) 100%);
  box-shadow: inset 0 0 0 1.5px var(--card-rim), inset 0 3px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(16, 40, 120, 0.3), 0 0 0 2.5px var(--ol), 0 6px 0 2.5px rgba(16, 35, 96, 0.4);
}
.parch {
  color: var(--ink); border-radius: 18px; background: linear-gradient(180deg, var(--cream-1), var(--cream-2));
  box-shadow: inset 0 3px 0 #fff, inset 0 -5px 0 rgba(150, 110, 50, 0.22), 0 0 0 2.5px var(--ol), 0 6px 0 2.5px rgba(4, 8, 24, 0.45);
}

/* ---------- home: hero ----------
   Phone: the portrait splash on top, the logo overlapping its faded bottom.
   Desktop: one centred 1440px stage (text left, sharp key art right). Outside the stage a blurred copy of the same art
   fills the window, so wide screens show a full scene instead of art on one side and empty blue on the other. */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(30, 87, 187, 0), var(--bg-2)); }
.hero-bg { display: none; }
.hero-inner { position: relative; max-width: 1440px; margin: 0 auto; }
.hero-art { position: relative; height: min(64svh, 540px); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.hero-copy { position: relative; z-index: 2; margin-top: -110px; padding: 0 20px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo { margin: 0; width: min(88vw, 420px); }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(8, 18, 60, 0.45)); }
.pitch { margin: 6px 0 0; font: 400 clamp(24px, 6vw, 32px)/1.1 var(--font-game); letter-spacing: 0.02em; text-shadow: var(--text-ol-lg); }
.lede { margin: 10px 0 0; max-width: 400px; color: #eef4ff; font-size: 17px; line-height: 1.5; text-shadow: 0 1px 2px rgba(8, 18, 60, 0.85), 0 0 12px rgba(8, 18, 60, 0.5); }
.soon { text-shadow: 0 1px 2px rgba(8, 18, 60, 0.85); margin: 26px 0 10px; font: 800 13px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-1); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badges img { height: 52px; width: auto; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(8, 18, 60, 0.35); }
@media (min-width: 900px) {
  /* layered hero: a character-free landscape fills the whole window (any crop of scenery is fine), the cut-out
     monsters stand on it at their own size inside the centred 1440px stage */
  .hero-bg { display: block; position: absolute; inset: 0; background: url('/assets/img/hero-landscape.jpg') 50% 62% / cover no-repeat; }
  .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 35, 96, 0.7) 0%, rgba(16, 35, 96, 0.42) 28%, rgba(16, 35, 96, 0) 52%); }
  .hero::after { height: 90px; }
  .hero-inner { height: clamp(600px, 76vh, 720px); display: flex; align-items: center; }
  .hero-art { position: absolute; z-index: 1; top: 3%; bottom: 26px; left: 400px; right: 24px; height: auto; }
  .hero-art img { object-fit: contain; object-position: 100% 100%; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 14px 24px rgba(8, 18, 60, 0.35)); }
  .hero-copy { margin: 0; padding: 48px 40px 64px; width: 500px; align-items: flex-start; text-align: left; }
  .logo { width: 440px; margin-left: -10px; }
  .badges { justify-content: flex-start; }
}

/* ---------- home: sections ---------- */
.section { position: relative; padding: 56px 20px; }
main.home { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.wrap { max-width: 1120px; margin: 0 auto; }
.h2 { margin: 0 0 10px; text-align: center; font: 400 clamp(32px, 6vw, 46px)/1.05 var(--font-game); letter-spacing: 0.02em; text-shadow: var(--text-ol-lg); }
.sub { margin: 0 auto 34px; max-width: 620px; text-align: center; color: var(--muted); font-size: 18px; }

.plays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.play { padding: 26px 22px 24px; text-align: center; }
.phone { width: min(100%, 236px); margin: 0 auto; border-radius: 26px; overflow: hidden; background: var(--ol); box-shadow: 0 0 0 3px var(--ol), 0 0 0 7px rgba(255, 255, 255, 0.2), 0 0 0 9.5px var(--ol); aspect-ratio: 390 / 844; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.play h3 { margin: 18px 0 4px; font: 400 25px/1.1 var(--font-game); letter-spacing: 0.02em; text-shadow: var(--text-ol); }
.play p { margin: 0; color: #eef4ff; font-size: 16px; line-height: 1.5; }
@media (max-width: 860px) {
  .plays { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding: 6px 4px 18px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
  .plays::-webkit-scrollbar { display: none; }
  .play { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
}

.bosses { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.boss { text-align: center; }
.medal {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #5aa0ff 0%, #2c62d2 70%);
  box-shadow: 0 0 0 2.5px var(--ol), 0 5px 0 2.5px rgba(16, 35, 96, 0.45);
}
.medal img { position: absolute; left: 6%; top: 8%; width: 88%; height: 92%; object-fit: cover; object-position: top; }
/* the gold ring sits on top, so the portrait goes behind it */
.medal::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 5px #f5c654, inset 0 0 0 7.5px #74470f, inset 0 3px 0 6px rgba(255, 240, 184, 0.35); }
.boss b { display: block; margin-top: 12px; font: 400 19px/1.1 var(--font-game); letter-spacing: 0.02em; text-shadow: var(--text-ol); }
.boss span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--muted); }
@media (max-width: 860px) {
  .bosses { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -20px; padding: 6px 20px 16px; scrollbar-width: none; }
  .bosses::-webkit-scrollbar { display: none; }
  .boss { flex: 0 0 122px; scroll-snap-align: start; }
}

.arena { overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.arena .art { min-height: 300px; background: #0b1a4a url('/assets/img/arena.jpg') center / cover no-repeat; }
.arena .text { padding: 34px 32px 38px; }
.arena h2 { margin: 0 0 10px; font: 400 clamp(30px, 5vw, 40px)/1.05 var(--font-game); text-shadow: var(--text-ol-lg); }
.arena p { margin: 0 0 12px; color: #eef4ff; }
.arena ul { margin: 6px 0 0; padding: 0; list-style: none; }
.arena li { position: relative; padding-left: 26px; margin: 6px 0; font-weight: 800; }
.arena li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--gold-2); box-shadow: 0 0 0 2px var(--ol); }
@media (max-width: 860px) { .arena { grid-template-columns: 1fr; } .arena .art { min-height: 210px; } .arena .text { padding: 24px 22px 28px; } }

.promise { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 30px 30px; }
.promise svg { width: 58px; height: 58px; }
.promise h3 { margin: 0 0 4px; font: 400 26px/1.1 var(--font-game); color: var(--ink); }
.promise p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .promise { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 22px 28px; } }

/* ---------- home: how it works (a real sequence, so the steps are numbered) ---------- */
.section.how { padding-top: 36px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.how-art { margin: 0; border-radius: 22px; overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 3px var(--ol), 0 0 0 7px rgba(255, 255, 255, 0.18), 0 0 0 9.5px var(--ol), 0 18px 40px rgba(8, 18, 60, 0.35); }
.how-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.h2.left { text-align: left; margin-bottom: 22px; }
.how-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.how-steps li { counter-increment: step; position: relative; padding-left: 64px; min-height: 46px; }
.how-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; padding-bottom: 3px; font: 400 26px/1 var(--font-game); color: #fff; text-shadow: var(--text-ol);
  background: linear-gradient(180deg, #ffd75a, #ff9a1c); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 #b4510b, 0 0 0 2.5px var(--ol), 0 4px 0 2.5px rgba(16, 35, 96, 0.4);
}
.how-steps b { display: block; font: 400 24px/1.15 var(--font-game); letter-spacing: 0.01em; text-shadow: var(--text-ol); }
.how-steps span { display: block; margin-top: 4px; color: #e6efff; font-size: 17px; line-height: 1.5; max-width: 46ch; }
@media (max-width: 860px) {
  /* phone: heading, then the picture, then the steps */
  .how-grid { display: flex; flex-direction: column; gap: 24px; }
  .how-copy { display: contents; }
  .how-copy .h2 { order: -1; margin-bottom: 0; }
  .h2.left { text-align: center; }
  .how-steps b { font-size: 22px; }
}

/* ---------- FAQ: every answer visible, two columns on wide screens, no card per item ---------- */
.faq { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.qa { min-width: 0; padding: 22px 0 26px; border-top: 2px solid rgba(190, 215, 255, 0.22); }
.qa h3 { margin: 0 0 8px; font: 400 22px/1.2 var(--font-game); letter-spacing: 0.01em; text-wrap: balance; text-shadow: var(--text-ol); }
.qa p { margin: 0; max-width: 60ch; color: #e6efff; font-size: 16.5px; line-height: 1.6; }
.qa a { color: var(--gold-1); font-weight: 800; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } .qa h3 { font-size: 20px; } }

/* ---------- footer ---------- */
.footer { background: var(--ol); color: var(--muted); padding: 34px 20px 40px; font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: #fff; font-weight: 800; text-decoration: none; }
.footer a:hover { color: var(--gold-1); }
.footer .copy { margin-left: auto; }
@media (max-width: 700px) { .footer .copy { margin-left: 0; width: 100%; } }

/* ---------- legal pages ---------- */
.legal-band { position: relative; background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-3) 100%); padding: 44px 20px 96px; }
.legal-band .wrap { max-width: 820px; }
.legal-band h1 { margin: 0; font: 400 clamp(40px, 8vw, 58px)/1.02 var(--font-game); letter-spacing: 0.02em; text-shadow: var(--text-ol-lg); }
.legal-band .meta { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.legal-page { background: var(--paper-page); padding: 0 14px 64px; }
.paper {
  position: relative; top: -56px; max-width: 820px; margin: 0 auto -56px; padding: clamp(24px, 5vw, 52px);
  color: var(--ink); background: #fff; border-radius: 20px;
  box-shadow: inset 0 -5px 0 rgba(16, 40, 120, 0.08), 0 0 0 2.5px var(--ol), 0 7px 0 2.5px rgba(16, 35, 96, 0.28);
}
.paper a { color: var(--link); font-weight: 800; text-decoration: none; }
.paper a:hover { text-decoration: underline; }
.paper strong { font-weight: 800; color: var(--ol); }
.paper h2 { margin: 40px 0 10px; font: 400 27px/1.15 var(--font-game); letter-spacing: 0.01em; color: var(--ol); scroll-margin-top: 8px; }
.paper h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 800; color: var(--ol); }
.paper p { margin: 0 0 14px; }
.paper ul, .paper ol { margin: 0 0 16px; padding-left: 22px; }
.paper li { margin: 0 0 7px; }
.paper .lead { font-size: 18px; color: var(--ink); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 26px; padding: 0 0 22px; border-bottom: 2px solid #e6ecf8; font-size: 16px; }
.facts dt { font-weight: 800; color: var(--ol); }
.facts dd { margin: 0; }
.toc { margin: 0 0 8px; padding: 18px 22px 18px 44px; columns: 2; column-gap: 36px; background: #f2f6fd; border-radius: 14px; font-size: 16px; }
.toc li { break-inside: avoid; margin: 0 0 5px; }
@media (max-width: 600px) { .toc { columns: 1; } .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.callout { margin: 18px 0 20px; padding: 18px 22px 20px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.paper th, .paper td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 2px solid #e6ecf8; }
.paper th { font-weight: 800; color: var(--ol); background: #f2f6fd; }
.paper thead th:first-child { border-top-left-radius: 10px; }
.paper thead th:last-child { border-top-right-radius: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 6px 48px; min-height: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font: 400 19px/1 var(--font-game); color: #fff; text-shadow: var(--text-ol);
  background: linear-gradient(180deg, #ffd75a, #ff9a1c); box-shadow: inset 0 -3px 0 #b4510b, 0 0 0 2px var(--ol);
}
