/* Miniblox Field Guide — arcade cabinet, not print magazine.
   Dark canvas, blocky accents, chunky numerals. No soft shadows, no pastels. */

:root {
  --bg: #070d1c;
  --bg-2: #0b1428;
  --panel: #101a33;
  --panel-2: #16223f;
  --line: #24325a;
  --line-soft: #1b2743;
  --ink: #eaf0ff;
  --muted: #93a3c9;
  --blue: #4f8cff;
  --cyan: #45d6ff;
  --green: #59d97f;
  --yellow: #ffd34d;
  --orange: #ff9f43;
  --pink: #ff6ea9;
  --radius: 6px;
  --measure: 68ch;
  --pad: clamp(16px, 4vw, 40px);
  --font-display: "Oxanium", system-ui, sans-serif;
  --font-brand: "Oxanium", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(79, 140, 255, .22), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(255, 110, 169, .16), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 20%, transparent 78%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

img, svg, video { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 99;
  background: var(--yellow); color: #08122a;
  padding: 8px 14px; border-radius: var(--radius); font-weight: 700;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 13, 28, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .07em;
  color: #fff;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--blue) 0 50%, var(--cyan) 50% 100%);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(79, 140, 255, .25), 0 0 22px rgba(69, 214, 255, .5);
  transform: rotate(8deg);
}

.brand span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }

.site-nav a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  letter-spacing: .01em;
}

.site-nav a:hover {
  color: #fff;
  background: var(--panel);
  border-color: var(--line);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: #08122a;
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 700;
}

/* ---------------- mode switcher ---------------- */

.switcher {
  position: sticky;
  top: 66px;
  z-index: 30;
  background: linear-gradient(90deg, rgba(79, 140, 255, .16), rgba(69, 214, 255, .1));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.switcher .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.switcher .label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 4px;
}

.switcher a {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 26, 51, .9);
  white-space: nowrap;
}

.switcher a:hover { border-color: var(--cyan); color: #fff; text-decoration: none; }
.switcher a[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(79, 140, 255, .45);
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #05091a;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/screens/00-lobby.jpg");
  background-size: cover;
  background-position: center 34%;
  opacity: .7;
  filter: saturate(1.25) brightness(.85) blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 13, 28, .58) 0%, rgba(7, 13, 28, .88) 58%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 13, 28, .94) 0%, rgba(7, 13, 28, .52) 55%, rgba(7, 13, 28, .88) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(26px, 3.4vw, 44px);
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 62px);
  max-width: 20ch;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .7);
}

.hero.mini .wrap {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(20px, 2.4vw, 30px);
}

.hero.mini h1 { font-size: clamp(26px, 3.2vw, 38px); max-width: 22ch; }

.hero.mini .hero-media {
  background-position: center 42%;
  opacity: .82;
  filter: saturate(1.25) brightness(1.1) blur(1px);
}

.hero.mini::after {
  background:
    linear-gradient(180deg, rgba(7, 13, 28, .34) 0%, rgba(7, 13, 28, .84) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 13, 28, .93) 0%, rgba(7, 13, 28, .52) 58%, rgba(7, 13, 28, .86) 100%);
}

.hero.mini .lede { font-size: 16px; max-width: 70ch; }

.hero .lede { color: #cfd9f2; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats div {
  background: rgba(16, 26, 51, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  backdrop-filter: blur(6px);
}

.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--yellow);
  line-height: 1.15;
}

.hero-stats span {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- type ---------------- */

main { padding: 46px 0 84px; position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 .55em;
  color: #fff;
}

h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(21px, 2.9vw, 30px); font-weight: 700; margin-top: 2.1em; }
h3 { font-size: 18.5px; font-weight: 700; margin-top: 1.7em; }

h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background: var(--blue);
  border-radius: 2px;
  transform: translateY(-2px) rotate(45deg);
  box-shadow: 0 0 14px rgba(79, 140, 255, .7);
}

p, ul, ol, table { max-width: var(--measure); }
p { margin: 0 0 1.05em; color: #c9d4ee; }
li { margin-bottom: .42em; color: #c9d4ee; }
strong, b { color: #fff; }

.kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow);
}

.lede {
  font-size: 18.5px;
  color: #b9c6e6;
  max-width: 62ch;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }

/* ---------------- badges ---------------- */

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  vertical-align: 3px;
  white-space: nowrap;
}

.badge.tested { background: var(--green); color: #05210f; }
.badge.official { background: var(--blue); color: #fff; }
.badge.unverified { background: var(--orange); color: #2a1400; }

/* ---------------- mode board ---------------- */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 12px;
  max-width: none;
  margin: 22px 0 10px;
}

.board a,
.board .cell {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 15px 15px 13px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 118px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.board a:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 140, 255, .7);
  box-shadow: 0 14px 30px -12px rgba(79, 140, 255, .55);
  text-decoration: none;
}

.board .g-pvp { border-top-color: var(--pink); }
.board .g-social { border-top-color: var(--cyan); }
.board .g-creative { border-top-color: var(--yellow); }
.board .g-solo { border-top-color: var(--orange); }
.board .g-sandbox { border-top-color: var(--green); }
.board .g-alias { border-top-color: var(--muted); }

.board .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: #fff;
  letter-spacing: -.01em;
}

.board .meta {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 2px;
}

.board .count {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
}

.board .count small { color: var(--muted); font-weight: 400; }

/* ---------------- match brief ---------------- */

.brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0 36px;
  max-width: none;
}

.brief div {
  background: var(--panel);
  padding: 13px 15px;
}

.brief dt {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 5px;
}

.brief dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  letter-spacing: -.01em;
}

.brief dd small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 3px;
}

/* ---------------- tables ---------------- */

.table-scroll { overflow-x: auto; max-width: none; margin: 22px 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

thead th {
  background: rgba(79, 140, 255, .16);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cddcff;
  border-bottom: 1px solid var(--line);
}

tbody th { color: #fff; font-weight: 600; }
tbody tr:hover td, tbody tr:hover th { background: rgba(79, 140, 255, .07); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- callouts ---------------- */

.note {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 15px 19px;
  margin: 26px 0;
  max-width: var(--measure);
  border-radius: var(--radius);
}

.note.warn { border-left-color: var(--orange); }

.note p, .note li { margin-bottom: .7em; }
.note p:last-child, .note li:last-child { margin-bottom: 0; }

.note .t {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

/* ---------------- figures ---------------- */

figure { margin: 32px 0; max-width: 900px; }

figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
}

figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 9px;
  max-width: var(--measure);
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

/* ---------------- footer ---------------- */

.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #050a18;
  padding: 38px 0 52px;
  font-size: 13.5px;
  color: var(--muted);
}

.site-foot .wrap { display: flex; gap: 32px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: #fff; }

.tiny { font-size: 12px; color: #7385ab; max-width: var(--measure); }

/* ---------------- responsive ---------------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav { margin-left: 0; width: 100%; }
  .switcher { top: 0; }
  .brief { grid-template-columns: repeat(2, 1fr); }
  h2::before { width: 9px; height: 9px; }
}

/* language bar */
.langbar{border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.langbar .wrap{display:flex;gap:10px;align-items:center;justify-content:flex-end;padding-top:6px;padding-bottom:6px}
.langbar span{text-transform:uppercase;letter-spacing:.12em;font-size:10px;opacity:.65}
.langbar a{color:var(--muted);text-decoration:none;padding:2px 6px;border-radius:3px}
.langbar a:hover{color:var(--ink);background:rgba(79,140,255,.12)}
.langbar a[aria-current="true"]{color:var(--ink);background:rgba(79,140,255,.18)}
