/* Block Mash website: Lantern Night colours from Assets/Game/Data/themes.json. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-extrabold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg1: #0f1a3a;
  --bg2: #1c2b5a;
  --surface: #16224a;
  --surface2: #26356d;
  --line: #2c3b70;
  --ink: #ffffff;
  --ink2: #aeb8e0;
  --gold: #ffc94a;
  --gold-ink: #1a1a2e;
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--bg1);
  background-image:
    radial-gradient(1.6px 1.6px at 24px 36px, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(1.2px 1.2px at 150px 92px, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(1.6px 1.6px at 230px 190px, rgba(174, 184, 224, 0.5), transparent 70%),
    radial-gradient(1.2px 1.2px at 80px 250px, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(1.2px 1.2px at 280px 40px, rgba(174, 184, 224, 0.45), transparent 70%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  background-size: 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 100% 100%;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08f; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; padding: 8px 14px; background: var(--gold); color: var(--gold-ink); border-radius: 10px; z-index: 1; }

/* Header and footer */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 0.2px; }
.mash { color: var(--gold); }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; padding-bottom: 48px; }

.site-footer { border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink2); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0; }

/* Home */
.hero { position: relative; text-align: center; padding: 40px 0 28px; }
.hero-icon { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 50px rgba(255, 201, 74, 0.16), 0 12px 30px rgba(0, 0, 0, 0.45); }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 11vw, 68px); line-height: 1.05; margin: 22px 0 4px; }
.kicker { font-family: var(--display); font-weight: 800; color: var(--ink2); font-size: 20px; margin: 0 0 18px; }
.lead { max-width: 560px; margin: 0 auto 22px; font-size: 18px; color: #dfe4f7; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
/* Store badges: dark, icon + two lines, like the official ones. Text stays white in every state. */
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 228px; padding: 10px 22px 10px 16px; border-radius: 14px; text-decoration: none; text-align: left; color: #fff; background: linear-gradient(180deg, #121a35 0%, #070b1a 100%); border: 1px solid rgba(255, 255, 255, 0.26); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.store-icon { width: 28px; height: 28px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.store-text strong { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.2px; }
a.store:hover, a.store:focus-visible { color: #fff; border-radius: 14px; transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 201, 74, 0.18); }
a.store:active { transform: translateY(0); }
.store.soon { cursor: default; color: var(--ink2); background: rgba(22, 34, 74, 0.7); border-color: var(--line); box-shadow: none; }
.store.soon .store-text small, .store.soon .store-text strong { color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .store { transition: none; } a.store:hover, a.store:focus-visible { transform: none; } }

.lantern { position: absolute; width: 9px; height: 14px; border-radius: 4px; background: #ffb347; box-shadow: 0 0 14px 5px rgba(255, 170, 60, 0.35); opacity: 0.85; }
.lantern.l1 { left: 6%; top: 30px; }
.lantern.l2 { right: 9%; top: 70px; }
.lantern.l3 { left: 14%; top: 230px; transform: scale(0.75); }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.card h2, .card h3 { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink2); font-size: 16px; }
.dots { display: flex; gap: 6px; margin-bottom: 12px; }
.dots i { width: 14px; height: 14px; border-radius: 4px; }
.dots .blue { background: #3fa9f5; }
.dots .teal { background: #2ec4b6; }
.dots .green { background: #7ed957; }
.dots .violet { background: #8e6cef; }
.dots .pink { background: #ff7eb6; }
.dots .red { background: #ff5a5f; }
.dots .amber { background: #ffb400; }
.dots .gold { background: #ffc94a; }
.dots .cream { background: #fff4c2; }
/* Feature cards: rows of three on wide screens, a shorter last row centred. */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0; }
.features .card { flex: 1 1 210px; max-width: calc((100% - 28px) / 3); }
@media (max-width: 720px) { .features .card { max-width: none; } }
.section-title { font-family: var(--display); font-weight: 800; font-size: 24px; text-align: center; margin: 34px 0 0; }
.note { text-align: center; color: var(--ink2); margin: 8px 0 0; }

/* Text pages */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px 34px; margin-top: 8px; }
.doc h1 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 7vw, 42px); line-height: 1.15; margin: 0 0 4px; }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.3; margin: 34px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc p, .doc li { color: #dfe4f7; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.meta { color: var(--ink2); margin: 0 0 22px; }

.service { border: 1px solid var(--line); background: rgba(38, 53, 109, 0.45); border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
.service h3 { margin: 0 0 6px; font-size: 17px; }
.service dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.service dt { color: var(--ink2); font-weight: 600; }
.service dd { margin: 0; color: #dfe4f7; }

.contact-box { background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 18px 0 8px; }
.contact-box p { margin: 0; }
.contact-box p + p { margin-top: 6px; }
.big-link { font-size: 20px; font-weight: 700; }

.faq h3 { color: var(--ink); }
.faq p { margin-top: 0; }

.center { text-align: center; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { gap: 10px 12px; }
  .site-nav { gap: 14px; }
  .wordmark { font-size: 20px; }
  .doc { padding: 22px 18px 26px; border-radius: 16px; }
  .service dl { grid-template-columns: 1fr; gap: 0; }
  .service dd + dt { margin-top: 6px; }
  .lantern { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
