/* ZexoMC site styles */

/* Montserrat, self-hosted (SIL OFL) */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Every colour comes from the ZEXOMC pixel logo (assets/zexo-logo.png) */
  --bg: #12031f;             /* ZEXO outline #1e0638, one step darker */
  --panel: #1e0638;          /* ZEXO outline */
  --panel-2: #2c0b52;
  --block: #0a0112;          /* under panels */
  --line: rgba(248, 232, 255, 0.07);
  --ink: #f8e8ff;            /* ZEXO highlight */
  --muted: #d4b2f2;          /* between #e6baff and #bf8cef */
  --purple: #bc68ff;         /* ZEXO body */
  --purple-light: #e6baff;
  --purple-deep: #7a1fd1;    /* ZEXO shade */
  --accent: #ff9e2c;         /* MC body */
  --accent-light: #ffce56;
  --accent-dark: #d9361a;    /* MC shade, button edge */
  --accent-ink: #3a0a00;     /* MC outline */
  --cream: #fff7cb;          /* MC highlight */

  --font: "Montserrat", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --press: 0 5px 0;          /* 3D edge under buttons/panels */
  --container: 1240px;
  --margin: clamp(16px, 3vw, 32px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; text-decoration: none; border-radius: 8px;
}
.skip:focus { top: 8px; }

.container { width: min(var(--container), 100% - 2 * var(--margin)); margin-inline: auto; }

/* Headings */
.title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.eyebrow { display: block; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem); font-weight: 700; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.hl { color: var(--accent); }
.hl-purple { color: var(--purple); }
.hero__lead b { color: var(--purple-light); }

/* Panels and buttons */
.panel {
  background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--press) var(--block);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: var(--press) var(--accent-dark);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background-color 140ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-dark); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-light); }
.btn--ghost { background: var(--panel-2); color: var(--ink); box-shadow: var(--press) var(--block); }
.btn--ghost:hover { background: #3a1268; box-shadow: 0 7px 0 var(--block); }
.btn--ghost:active { box-shadow: 0 1px 0 var(--block); }
.btn--wide { width: 100%; min-height: 52px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--purple); color: var(--accent-ink); border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump 320ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* Navbar */
.bar { position: fixed; inset: 16px 0 auto 0; z-index: 20; pointer-events: none; }
.bar__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 14px 12px 20px;
  background: rgba(30, 6, 56, 0.94); border-radius: var(--radius);
  box-shadow: var(--press) var(--block), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.wordmark { display: block; text-decoration: none; flex: none; }
.wordmark img { width: 112px; height: 26px; image-rendering: pixelated; }
.bar__links { display: flex; gap: 6px; margin-right: auto; }
.bar__links a {
  padding: 9px 14px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted);
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.bar__links a:hover { color: var(--ink); background: var(--line); }
.bar__links a[aria-current="page"] { color: var(--ink); background: var(--block); }
.bar__actions { display: flex; gap: 10px; align-items: center; }
.bar__toggle { display: none; background: var(--panel-2); border: 0; border-radius: 8px; width: 44px; height: 44px; cursor: pointer; place-items: center; }
.bar__toggle svg { width: 20px; height: 20px; fill: var(--ink); }

/* Hero */
.hero { padding-top: calc(var(--bar-h) + clamp(32px, 6vw, 88px)); padding-bottom: var(--section); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: -0.015em; }
.hero__lead { margin-top: 22px; max-width: 54ch; color: var(--ink); font-size: 18px; }
.hero__join { margin-top: 36px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero__join p { font-weight: 600; max-width: 30ch; }
.hero__join .btn { font-size: 17px; min-height: 52px; padding: 0 26px; }

/* Live status */
.status { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.status__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--muted); flex: none; }
.status.is-online .status__dot { background: #22c55e; animation: blink 2.4s steps(2, jump-none) infinite; }
.status.is-offline .status__dot { background: #ef4444; }
.status.is-online .status__text b { color: #22c55e; }
@keyframes blink { 50% { opacity: 0.35; } }

/* Hero art */
.hero__art { position: relative; aspect-ratio: 1 / 0.92; }
.hero__sky {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--panel-2);
  box-shadow: 0 8px 0 var(--block);
}
.hero__sky::before, .hero__sky::after { content: ""; position: absolute; left: 0; right: 0; }
.hero__sky::before { bottom: 18%; height: 8%; background: var(--purple-deep); }
.hero__sky::after { bottom: 0; height: 18%; background: var(--panel); }
.hero__cloud { position: absolute; background: var(--purple-deep); opacity: 0.55; height: 7%; }
.hero__cloud--a { top: 14%; left: 10%; width: 26%; }
.hero__cloud--a::after { content: ""; position: absolute; left: 22%; top: -100%; width: 46%; height: 100%; background: inherit; }
.hero__cloud--b { top: 30%; right: 8%; width: 20%; }
.hero__logo { position: absolute; left: 50%; top: 50%; width: 82%; transform: translate(-50%, -62%); image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }

/* Sections */
.section { padding-bottom: var(--section); }
.section__head { margin-bottom: 36px; }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; }
.feature__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); margin-bottom: 18px; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* Mode cards */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform 160ms var(--ease); }
.mode:hover { transform: translateY(-4px); }
.mode__art { position: relative; aspect-ratio: 16 / 9; }
.mode__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: rgba(0, 0, 0, 0.25); }
.mode--smp .mode__art { background: linear-gradient(var(--purple) 0 60%, var(--purple-deep) 60% 72%, var(--panel) 72%); }
.mode--survival .mode__art { background: linear-gradient(var(--accent-light) 0 58%, var(--accent) 58% 70%, var(--accent-ink) 70%); }
.mode--bedwars .mode__art { background: linear-gradient(var(--accent-dark) 0 58%, #f6691a 58% 72%, var(--cream) 72%); }
.mode__tag { position: absolute; left: 20px; bottom: 14px; z-index: 1; font-size: 13px; font-weight: 800; text-transform: uppercase; background: var(--block); color: var(--ink); padding: 4px 10px; border-radius: 6px; }
.mode__body { padding: 24px 26px 28px; display: grid; gap: 10px; }
.mode h3 { font-size: 22px; font-weight: 800; }
.mode p { color: var(--ink); }
.mode p b { color: var(--accent-light); font-weight: 700; }
.mode__more { margin-top: 6px; font-weight: 700; color: var(--accent); }

/* Staff CTA */
.cta { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.cta__badge { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 6px; margin-left: 10px; vertical-align: middle; }
.cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.cta p { margin-top: 14px; color: var(--muted); max-width: 56ch; }
.cta .btn { margin-top: 24px; }
.cta__roles { display: grid; gap: 10px; }
.cta__roles li { background: var(--panel-2); border-left: 4px solid var(--purple); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.cta__roles span { color: var(--muted); font-weight: 500; font-size: 14px; }
.cta__bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 24%; background: var(--accent); }

/* Inner pages */
.page-top { padding-top: calc(var(--bar-h) + clamp(40px, 6vw, 80px)); padding-bottom: var(--section); }
.page-top h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; }

/* Modes page */
.modes__body { margin-top: 36px; padding: clamp(20px, 3vw, 36px); }
.modes__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.modes__label { display: none; }
.modes__table { border-collapse: collapse; width: 100%; }
.modes__table th, .modes__table td { padding: 12px 0; text-align: left; vertical-align: baseline; font-weight: 500; }
.modes__table th { color: var(--purple); font-weight: 800; text-transform: uppercase; font-size: 14px; width: 26%; padding-right: 16px; }
.modes__table td:last-child { text-align: right; color: var(--muted); font-weight: 700; white-space: nowrap; padding-left: 16px; }
.modes__table tr.group-start > * { padding-top: 36px; }
.modes__table tr.group-start:first-child > * { padding-top: 0; }

/* Store */
.store { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.store__side { position: sticky; top: calc(var(--bar-h) + 24px); }
.store__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.store__note { margin-top: 18px; color: var(--muted); }
.menu { display: grid; gap: 40px; }
.menu[hidden] { display: none; }
.maintenance { display: grid; justify-items: start; gap: 14px; padding: 32px; }
.maintenance__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.maintenance__text { color: var(--muted); max-width: 48ch; }
.menu__name { font-size: 20px; font-weight: 800; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.menu__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.item {
  display: grid; gap: 6px; width: 100%; padding: 20px 22px; text-align: left; cursor: pointer;
  background: var(--panel); color: var(--ink); border: 0; border-radius: var(--radius);
  box-shadow: var(--press) var(--block);
  transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.item:hover { transform: translateY(-3px); background: var(--panel-2); }
.item:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--block); }
.item__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 20px; font-weight: 800; }
.item__price { color: var(--accent); font-variant-numeric: tabular-nums; }
.item__desc { font-size: 15px; color: var(--muted); }
.item__add { justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 5px 12px; border-radius: 6px; }
.item.added .item__add { background: #22c55e; color: #04210f; }
.menu__foot { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Rules */
.rules { display: grid; gap: 16px; }
.rules__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: baseline; padding: 26px 28px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--press) var(--block); }
.rules__row:first-child { background: none; box-shadow: none; padding: 0 0 20px; }
.rules__q { font-size: 20px; font-weight: 800; line-height: 1.3; }
.rules__q--head { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); text-transform: uppercase; line-height: 1.05; }
.rules__a { color: var(--muted); }
.rules__a--intro { color: var(--ink); font-size: 18px; }

/* Staff page */
.staff__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.staff__sentence { margin-top: 18px; font-size: 20px; font-weight: 600; max-width: 46ch; }
.staff__roles { margin-top: 40px; }
.staff__ask { font-weight: 800; text-transform: uppercase; color: var(--accent); }
.roles { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.roles li { padding: 26px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--press) var(--block); display: grid; gap: 14px; align-content: start; }
.role { justify-self: start; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-sm); padding: 10px 18px; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: var(--press) var(--accent-dark); transition: transform 140ms var(--ease); }
.role:hover { transform: translateY(-2px); }
.role:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-dark); }
.role__req { color: var(--muted); }
.staff__small { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* Staff select screen (Mortal Kombat style) */
.mk {
  background:
    radial-gradient(ellipse 70% 45% at 30% 100%, rgba(255, 110, 30, 0.32), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(188, 104, 255, 0.16), transparent 70%);
}
.mk__head { margin-bottom: clamp(24px, 4vw, 48px); }
.mk__title {
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); font-weight: 800; text-transform: uppercase; line-height: 1;
  text-shadow: 0.06em 0.06em 0 var(--accent-dark);
}
.mk__lead { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.mk__note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.mk__stage {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  grid-template-areas: "fighter info roster"; gap: clamp(20px, 3vw, 48px); align-items: center;
}
.mk__fighter {
  --glow: var(--accent);
  grid-area: fighter; position: relative; margin: 0;
  height: clamp(360px, 34vw, 500px); display: flex; align-items: flex-end; justify-content: center;
}
.mk__fighter[data-kind="admin"] { --glow: var(--purple); }
.mk__fighter[data-kind="dev"] { --glow: var(--accent-light); }
.mk__fighter::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -14px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.7;
}
.mk__skin {
  position: relative; height: 100%; width: auto; image-rendering: pixelated;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--glow) 45%, transparent));
}
.mk__fighter.is-swap .mk__skin { animation: mk-enter 420ms var(--ease) both; }
@keyframes mk-enter { from { opacity: 0; transform: translateX(-40px) scale(0.96); } }
.mk__info { grid-area: info; min-width: 0; }
.mk__p1 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.mk__name {
  margin-top: 6px; font-size: clamp(2rem, 0.8rem + 3.6vw, 4rem); font-weight: 800; text-transform: uppercase;
  line-height: 1; overflow-wrap: anywhere; text-shadow: 0.06em 0.06em 0 var(--block);
}
.mk__role { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.mk__prefix {
  font-weight: 800; color: var(--prefix); background: var(--block); padding: 4px 10px; border-radius: 8px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}
.mk__stats { margin-top: 24px; display: grid; gap: 10px; max-width: 460px; }
.mk__stats li { display: grid; grid-template-columns: 7.5em 1fr 2.2em; align-items: center; gap: 12px; font-size: 15px; }
.mk__stats span { font-weight: 700; color: var(--muted); }
.mk__stats i {
  height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--block);
  background: linear-gradient(90deg, var(--accent-light), var(--accent) var(--v), var(--block) var(--v));
}
.mk__stats b { text-align: right; font-weight: 800; }
.mk__move { margin-top: 22px; display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--panel); box-shadow: var(--press) var(--block); }
.mk__move b { color: var(--accent-light); }
.mk__roster { grid-area: roster; display: grid; grid-template-columns: repeat(2, 128px); gap: 14px; }
.mk__tile {
  position: relative; display: grid; gap: 6px; width: 100%; padding: 8px 8px 10px; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--panel); border: 3px solid var(--panel-2); border-radius: 12px;
  box-shadow: var(--press) var(--block); transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}
.mk__tile img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; filter: grayscale(0.6) brightness(0.8); transition: filter 160ms var(--ease); }
.mk__tile-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk__tile:hover img, .mk__tile:focus-visible img, .mk__tile[aria-pressed="true"] img { filter: none; }
.mk__tile:hover { transform: translateY(-3px); }
.mk__tile[aria-pressed="true"] { border-color: var(--accent); background: var(--panel-2); }
.mk__tile[aria-pressed="true"]::after {
  content: "P1"; position: absolute; top: -10px; right: -8px; padding: 2px 7px; border-radius: 6px;
  font-size: 13px; font-weight: 800; color: var(--accent-ink); background: var(--accent); box-shadow: 0 3px 0 var(--accent-dark);
}
.staff { padding-bottom: var(--section); }

/* Policy pages */
.legal { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.legal__body { max-width: 70ch; }
.legal__toc { position: sticky; top: calc(var(--bar-h) + 24px); padding: 24px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--press) var(--block); }
.legal__toc-title { font-weight: 800; text-transform: uppercase; margin: 0 0 12px !important; }
.legal__toc ul { display: grid; gap: 8px; font-size: 14px; }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--accent); }
.legal__lead { margin-top: 20px; font-size: 18px; }
.legal h2 { margin-top: 52px; font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--accent); }
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 800; }
.legal p { margin-top: 12px; color: var(--ink); }
.legal a { color: var(--accent); text-underline-offset: 0.15em; }
.legal code { font-size: 0.9em; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }

/* Footer */
.foot { padding: 0 0 36px; }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot__chips, .foot__social { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  background: var(--panel); color: var(--ink); border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 16px; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums;
  box-shadow: var(--press) var(--block); transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
a.chip:hover, button.chip:hover { transform: translateY(-2px); background: var(--panel-2); }
.chip--num { cursor: default; color: var(--accent-light); }
.chip--icon { width: 48px; padding: 0; justify-content: center; }
.chip svg { width: 22px; height: 22px; fill: currentColor; }
.chip__group { display: flex; gap: 6px; }
.foot__legal { margin-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot__policies { display: flex; gap: 16px; flex-wrap: wrap; }
.foot__policies a { color: var(--ink); text-decoration: none; }
.foot__policies a:hover { color: var(--accent); }
.foot__legal a { color: var(--ink); }

/* Boot intro */
html.intro-pending body > *:not(.boot) { opacity: 0; }
body > * { transition: opacity 400ms var(--ease); }
.boot { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer; }
.boot__bg { position: absolute; inset: 0; background: var(--bg); }
.boot__logo { position: relative; width: min(84vw, 896px); height: auto; image-rendering: pixelated; transform-origin: 0 0; }
.boot__skip { position: absolute; right: var(--margin); bottom: 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--muted); }

/* Dialogs */
.sheet {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  box-shadow: var(--press) var(--block), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.sheet::backdrop { background: rgba(10, 1, 18, 0.78); }
.sheet__inner { padding: 28px; display: grid; gap: 18px; }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sheet__head h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.sheet__close { background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 0; }
.sheet__close:hover { color: var(--ink); }
.sheet__note { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); }
.cart-list { display: grid; gap: 10px; }
.cart-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.cart-list button { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; padding: 4px 0; }
.cart-list button:hover { color: var(--accent); }
.cart-list .price { margin-left: auto; font-variant-numeric: tabular-nums; }
.cart-empty { color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; background: var(--block); border-radius: var(--radius-sm); padding: 12px 16px; }
.cart-total span { color: var(--accent); }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--block); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:user-invalid { border-color: #ef4444; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--accent); color: var(--accent-ink); padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  box-shadow: var(--press) var(--accent-dark), 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Reveal on scroll (JS on, motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal > *, .js .reveal.solo { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js .reveal.in > *, .js .reveal.solo.in { opacity: 1; transform: none; }
  .js .reveal.in > *:nth-child(2) { transition-delay: 80ms; }
  .js .reveal.in > *:nth-child(3) { transition-delay: 160ms; }
  .js .reveal.in > *:nth-child(4) { transition-delay: 240ms; }
  .hero__logo { animation: float 5s ease-in-out infinite; }
  @keyframes float { 50% { transform: translate(-50%, -66%); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status.is-online .status__dot { animation: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; }
  .features__grid, .modes-grid { grid-template-columns: 1fr 1fr; }
  .store { grid-template-columns: 1fr; }
  .store__side { position: static; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; grid-row: 1; }
  .roles { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .mk__stage { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "roster roster" "fighter info"; }
  .mk__roster { grid-template-columns: repeat(4, minmax(0, 128px)); }
}

/* Phone */
@media (max-width: 820px) {
  :root { --bar-h: 88px; }
  .bar__inner { flex-wrap: wrap; gap: 12px; padding: 10px 10px 10px 16px; }
  .bar__toggle { display: grid; order: 2; }
  .bar__actions { order: 1; margin-left: auto; }
  .bar__links { order: 3; display: none; width: 100%; flex-direction: column; gap: 4px; padding: 6px 0 4px; }
  .bar.is-open .bar__links { display: flex; }
  .bar__links a { padding: 12px 14px; font-size: 15px; }
  .wordmark img { width: 96px; height: auto; }
  .bar .btn { padding: 0 14px; min-height: 42px; }
}
@media (max-width: 420px) {
  .bar__store-label { display: none; }
  .bar .btn--accent { width: 46px; padding: 0; }
}
@media (max-width: 640px) {
  .mk__stage { grid-template-columns: 1fr; grid-template-areas: "roster" "fighter" "info"; }
  .mk__roster { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .mk__fighter { height: 300px; }
  .mk__tile { padding: 5px 5px 7px; }
  .mk__tile-name { font-size: 11px; }
  .features__grid, .modes-grid, .menu__list { grid-template-columns: 1fr; }
  .hero__join { flex-direction: column; align-items: stretch; }
  .hero__join .btn { width: 100%; }
  .rules__row { grid-template-columns: 1fr; gap: 10px; }
  .modes__table thead { display: none; }
  .modes__table tr { display: grid; grid-template-columns: 1fr auto; }
  .modes__table th { width: auto; grid-column: 1; padding: 0; }
  .modes__table td { padding: 2px 0 14px; }
  .modes__table td:first-of-type { grid-column: 1; }
  .modes__table td:last-child { grid-column: 2; grid-row: 1; padding: 0 0 0 12px; }
  .modes__table tr.group-start > * { padding-top: 24px; }
  .modes__table tr.group-start > td:first-of-type { padding-top: 2px; }
  .bar__cart-label { display: none; }
  .bar__inner { flex-wrap: nowrap; }
  .bar.is-open .bar__inner { flex-wrap: wrap; }
  .bar__actions { gap: 8px; }
  .foot__row { flex-direction: column; align-items: flex-start; }
}
