@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/geist/geist-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/geist/geist-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/geist/geist-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/geist/geist-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/geist/geist-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/geist/geist-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/geist-mono/geist-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/geist-mono/geist-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/pixelify-sans/pixelify-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/pixelify-sans/pixelify-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/pixelify-sans/pixelify-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/pixelify-sans/pixelify-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/pixelify-sans/pixelify-sans-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Pixelify Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/pixelify-sans/pixelify-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Token values follow the Horizon theme. Component rules are original. */
:root {
  --page: #ece7f7;
  --plate-soft: #e9e3f8;
  --plate: #ddd4f3;
  --surface: #f8f6fd;
  --rule: #e4ddf4;
  --ink: #1b1530;
  --ink-soft: #3b3354;
  --muted: #585071;
  --accent: #5333c9;
  --on-accent: #ffffff;
  --danger: #a3301d;
  --success: #136336;
  --warn: #7a4f00;
  --side: #e2dbf2;
  --panel: #f8f6fd;
  --raised: #e9e3f8;
  --button: #ddd4f3;
  --button-bevel: #f4f0fe;
  --well: #f3f0fb;
  --bevel: #ffffff;
  --lip: #c3b8e2;
  --outline: #2b2244;
  --face: #5b3fd6;
  --face-bevel: #8069ef;
  --face-lip: #3a2694;
  --on-face: #ffffff;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --pixel: "Pixelify Sans", "Geist", ui-sans-serif, sans-serif;
  --block-outline: 2px;
  --block-bevel: 2px;
  --block-lip: 4px;
  --text-micro: 11px;
  --text-ui: 14px;
  --text-body: clamp(15px, calc(15px + 2 * (100vw - 375px) / 1065), 17px);
  --text-heading: clamp(20px, calc(20px + 4 * (100vw - 375px) / 1065), 24px);
  --text-title: clamp(32px, calc(32px + 16 * (100vw - 375px) / 1065), 48px);
  --text-display: clamp(34px, calc(34px + 30 * (100vw - 375px) / 1065), 64px);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius: 8px;
  --radius-plate: 12px;
  --radius-pill: 999px;
  --measure: 58ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f0d17;
    --plate-soft: #221e34;
    --plate: #2b2641;
    --surface: #1a1727;
    --rule: #120f1c;
    --ink: #ecedf3;
    --ink-soft: #c5c7d1;
    --muted: #a29cb8;
    --accent: #9a86ff;
    --on-accent: #ffffff;
    --danger: #f07a68;
    --success: #45c27a;
    --warn: #f0b84f;
    --side: #0b0a11;
    --panel: #1a1727;
    --raised: #221e34;
    --button: #2b2641;
    --button-bevel: #3d3560;
    --well: #0c0b12;
    --bevel: #342d52;
    --lip: #07060b;
    --outline: #05040a;
    --face: #5b3fd6;
    --face-bevel: #8a74ff;
    --face-lip: #3a2694;
    --on-face: #ffffff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: #0f0d17;
  --plate-soft: #221e34;
  --plate: #2b2641;
  --surface: #1a1727;
  --rule: #120f1c;
  --ink: #ecedf3;
  --ink-soft: #c5c7d1;
  --muted: #a29cb8;
  --accent: #9a86ff;
  --on-accent: #ffffff;
  --danger: #f07a68;
  --success: #45c27a;
  --warn: #f0b84f;
  --side: #0b0a11;
  --panel: #1a1727;
  --raised: #221e34;
  --button: #2b2641;
  --button-bevel: #3d3560;
  --well: #0c0b12;
  --bevel: #342d52;
  --lip: #07060b;
  --outline: #05040a;
  --face: #5b3fd6;
  --face-bevel: #8a74ff;
  --face-lip: #3a2694;
  --on-face: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--page);
}
::selection { background: color-mix(in srgb, var(--accent) 28%, white); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font); font-weight: 500; color: var(--ink); }
h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 .avatar { display: inline-grid; vertical-align: middle; margin-right: 10px; }
.hero h1 {
  font-size: var(--text-display);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h2 { margin: var(--space-7) 0 var(--space-4); font-size: var(--text-heading); letter-spacing: -0.01em; line-height: 1.3; }
h3 { margin: 0 0 var(--space-2); font-size: var(--text-ui); font-weight: 500; }
p { margin: 0 0 var(--space-4); }

.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.skip:focus { transform: none; z-index: 8; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: var(--space-4) 0 var(--space-6);
  padding: 10px 12px 12px 16px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
  min-width: 0;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.mark .pixel {
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 28px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.mark .sub {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.row, .pager, .foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.desk {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.desk::-webkit-scrollbar { display: none; height: 0; }
.desk > .nav-link,
.desk > .btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
  white-space: nowrap;
}
.tools, .who-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tools { margin-left: auto; }
.who-row { flex: none; }
.who-row form { flex: none; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-ui);
  font-weight: 500;
  padding: 6px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-link:hover { background: var(--plate); color: var(--ink); }
.mob { display: none; flex: none; }
.nav-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.nav-panel > .nav-link,
.nav-panel > .btn,
.nav-panel .who-row .ghost,
.nav-panel .who-row button.who,
.nav-panel .menu-pop .btn {
  display: flex;
  width: 100%;
  min-height: 40px;
  justify-content: center;
  white-space: nowrap;
}
.nav-panel .who-row,
.nav-panel .account-menu { display: grid; gap: 8px; width: 100%; }
.nav-panel .lang { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.nav-panel .account-menu.is-ready { display: grid; }
.nav-panel .account-menu.is-ready .menu-pop,
.nav-panel .menu-pop {
  position: static;
  display: grid !important;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
}
button.who {
  max-width: 14rem;
  min-width: 0;
  min-height: 40px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius);
  background-color: var(--plate);
  background-image: none;
  color: var(--ink);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
  font-family: var(--mono);
  font-size: 12px;
}
button.who span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.who::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
button.who[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
button.who:hover, button.who:active {
  background-color: var(--plate);
  background-image: none;
  color: var(--ink);
  filter: brightness(1.04);
  transform: none;
  padding: 4px 12px 4px 4px;
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.account-menu { display: grid; gap: 8px; justify-items: stretch; }
.account-menu.is-ready { position: relative; display: block; }
.menu-pop { display: grid; gap: 8px; min-width: 11.5rem; }
.account-menu.is-ready .menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  padding: 10px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.menu-pop[hidden] { display: none !important; }
.menu-pop .btn { width: 100%; }
.tabs { margin: 0 0 var(--space-4); }
.tabs .btn { min-width: 8.5rem; }
[data-theme-set] {
  background-color: var(--button);
  background-image: none;
  color: var(--ink);
  box-shadow: inset 0 var(--block-bevel) 0 var(--button-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
[data-theme-set]:hover { color: var(--ink); }
html[data-theme-choice="light"] [data-theme-set="light"],
html[data-theme-choice="dark"] [data-theme-set="dark"],
html[data-theme-choice="system"] [data-theme-set="system"] {
  background-color: var(--face);
  color: var(--on-face);
  box-shadow: inset 0 var(--block-bevel) 0 var(--face-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--face-lip);
}
html[data-theme-choice="light"] [data-theme-set="light"]:hover,
html[data-theme-choice="dark"] [data-theme-set="dark"]:hover,
html[data-theme-choice="system"] [data-theme-set="system"]:hover { color: var(--on-face); }
main { padding-bottom: var(--space-6); }
footer {
  margin-top: var(--space-6);
  padding: var(--space-7) 0 0;
  border-top: var(--block-outline) solid var(--outline);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  overflow: hidden;
}
footer .wrap { padding-bottom: 4px; }
.foot-links { justify-content: center; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--accent); }
.foot-links a.btn,
.foot-links a.btn:hover { color: var(--ink); }
.foot-word {
  margin: 18px 0 0;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(88px, 21vw, 320px);
  line-height: 0.74;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--plate);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  transform: translateY(0.16em);
}

.lang {
  display: inline-flex;
  padding: 2px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--well);
}
.lang a {
  min-width: 36px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.lang a.on { background: var(--face); color: var(--on-face); }
.lang a:hover { color: var(--ink); }
.lang a.on:hover { color: var(--on-face); }

.banner, .flash {
  margin: 0 0 var(--space-4);
  padding: 12px 14px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  color: var(--ink);
  font-size: var(--text-ui);
}
.banner { margin-top: var(--space-4); background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.flash.ok { box-shadow: inset 4px 0 0 var(--success); }
.flash.bad { box-shadow: inset 4px 0 0 var(--danger); }

.kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { max-width: var(--measure); color: var(--ink-soft); font-size: var(--text-body); }
.sheet .lead, .center-col .lead { max-width: none; }
.hero, .facts, .cards { display: grid; gap: var(--space-4); }
.hero { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; margin: var(--space-5) 0 var(--space-7); }
.hero > div { display: flex; flex-direction: column; min-width: 0; }
.hero > div > .split { margin-top: auto; }
.hero .stage { height: 100%; }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.plate, .panel, .card, .facts article, .stage, .steps li {
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.facts article, .panel { padding: 16px 16px 18px; }
.facts h2 { margin: 0 0 8px; font-size: 18px; }
.facts article { background: var(--plate); }
.idx {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: var(--text-micro);
  letter-spacing: 0.06em;
  color: var(--accent);
}
.card {
  display: flex;
  gap: 12px;
  padding: 14px 14px 16px;
  color: inherit;
  text-decoration: none;
}
.card:hover { background: var(--plate-soft); color: inherit; }
.card b, .card i, .card em, .card small { display: block; font-style: normal; }
.card b { font-weight: 500; }
.card em, .card small { color: var(--muted); }
.card em { margin-top: 4px; }
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--radius);
  border: var(--block-outline) solid var(--outline);
  background: var(--face);
  color: var(--on-face);
  font-weight: 500;
}
img.avatar {
  display: block;
  object-fit: cover;
  padding: 0;
  background: var(--surface);
}
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.card small.by { display: flex; align-items: center; gap: 6px; }
.profile { display: grid; gap: 16px; }
.cover {
  position: relative;
  height: 220px;
  border-radius: var(--radius-plate);
  border: var(--block-outline) solid var(--outline);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 10% 0%, color-mix(in srgb, var(--accent) 55%, var(--plate)), transparent 60%),
    var(--plate);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover > .shot-clear {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-top: -28px;
  padding: 0;
  position: relative;
}
.profile-head .avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 var(--block-outline) var(--outline);
  font-size: 40px;
  background: var(--face);
}
.profile-id { min-width: 0; width: min(100%, 36rem); flex: none; padding: 4px 0 0; }
.profile-id h1, .profile-id h2 { margin: 0 0 4px; }
.profile-id p { margin: 0 0 4px; color: var(--muted); }
.profile-actions { margin: 0; padding: 0; display: flex; gap: 8px; flex: none; justify-content: center; }
.shot { display: grid; justify-items: center; gap: 8px; }
.shot-clear { width: auto; min-height: 32px; padding: 0 12px 2px; }
.statbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  padding: 12px 14px 14px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.stat b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.stat:hover { filter: brightness(1.03); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-layout > section > h2, .profile-layout > aside > h2 { margin-top: 0; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.person:last-child { border-bottom: 0; }
.person b { display: block; font-weight: 500; }
.person small { color: var(--muted); }
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 108px;
  padding: 8px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.settings-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.settings-nav a.on { background: var(--face); color: var(--on-face); }
.settings-main { min-width: 0; }
.edit-preview .cover { height: 168px; }
.edit-preview .profile-head { margin-top: -16px; }
.edit-preview .profile-head .avatar { width: 88px; height: 88px; font-size: 28px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  text-decoration: none;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.previews { display: flex; gap: 12px; align-items: center; }
.banner-preview {
  width: 220px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: var(--block-outline) solid var(--outline);
}
.stage { padding: 16px 16px 18px; background: var(--plate); }
.stage-top, .stage-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-id { margin: 12px 0; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stage-list li {
  padding: 8px 10px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
}
.stage-list i {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  flex: none;
}
.stage-list span { display: inline-flex; align-items: center; font-weight: 500; }
.stage-list em { font-style: normal; color: var(--muted); font-size: 13px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 8px; }
.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px 14px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--outline);
  background: var(--well);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.prose { white-space: pre-wrap; }
.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.cards > .empty { grid-column: 1 / -1; }
.empty-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background: var(--plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.empty-mark::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 23px;
  height: 2px;
  background: var(--muted);
}
.empty p { margin: 0; max-width: 36rem; }

button, .btn, .mob > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px 4px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background-color: var(--face);
  color: var(--on-face);
  box-shadow: inset 0 var(--block-bevel) 0 var(--face-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--face-lip);
  font-family: var(--font);
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .btn:hover, .mob > summary:hover {
  color: var(--on-face);
}
button:active, .btn:active {
  transform: translateY(2px);
  padding-bottom: 2px;
  box-shadow: inset 0 2px 0 var(--face-lip);
}
.ghost, button.ghost, a.ghost {
  background-color: var(--button);
  background-image: none;
  color: var(--ink);
  box-shadow: inset 0 var(--block-bevel) 0 var(--button-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.ghost:hover, button.ghost:hover, a.ghost:hover { color: var(--ink); }
.ghost:active, button.ghost:active { box-shadow: inset 0 2px 0 var(--lip); }
.foot-links .ghost { min-height: 32px; padding: 0 12px 3px; }

form.stack, .stack { display: grid; gap: 12px; }
.stack > button { width: 100%; }
.stack.wide { max-width: none; }
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 var(--space-5);
}
.filters > button { width: 100%; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.field { display: grid; gap: 6px; min-width: 0; }
label.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-ui);
  color: var(--ink);
  cursor: pointer;
}
label.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  flex: none;
  border-radius: 6px;
  background: var(--well);
  box-shadow: inset 0 -3px 0 var(--lip);
  cursor: pointer;
}
label.check input:checked {
  background: var(--face);
  border-color: var(--outline);
  box-shadow: inset 0 2px 0 var(--face-bevel), inset 0 -3px 0 var(--face-lip);
}
.tick {
  position: absolute;
  left: 6px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg);
  pointer-events: none;
}
label.check input:checked + .tick { border-color: var(--on-face); }
input, textarea, select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background: var(--well);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 -3px 0 var(--lip);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--lip), 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.errors, .warns { margin: 0; padding-left: 1.1rem; }
.errors { color: var(--danger); }
.warns { color: var(--warn); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.plain li form { margin-left: auto; }
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(7.5rem, 0.7fr) minmax(7.5rem, 0.7fr);
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.user-row > button { width: 100%; }
.user-row small { display: block; color: var(--muted); }
.user-row select { min-height: 36px; }

@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .desk { display: none; }
  .mob { display: block; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .user-row, .filters { grid-template-columns: 1fr; }
  .profile-layout, .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-nav a { justify-content: center; padding: 0 6px; text-align: center; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .profile-head { margin-top: -16px; }
  .profile > .profile-head .avatar { width: 96px; height: 96px; font-size: 32px; }
}
@media (max-width: 720px) {
  .top-row > .tools { display: none; }
  .mob { margin-left: auto; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .wrap { width: min(1120px, calc(100% - 20px)); }
  .cover { height: 140px; }
  .pair { grid-template-columns: 1fr; }
}
html { scrollbar-color: var(--face) var(--page); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb {
  background: var(--face);
  border: 3px solid var(--page);
  border-radius: var(--radius-pill);
}

.mob > summary { list-style: none; }
.mob > summary::-webkit-details-marker { display: none; }
.mob > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.mob[open] > summary::after { transform: translateY(2px) rotate(225deg); }

.sheet {
  margin: 0 0 var(--space-5);
  padding: 16px 16px 18px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.center-col { width: min(42rem, 100%); margin-inline: auto; }
.sheet.narrow { width: min(42rem, 100%); margin-inline: auto; }
.center-col > .sheet,
.sheet.narrow .stack { max-width: none; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 var(--space-4);
}
.split > .btn,
.split > button,
.sheet .row > .btn,
.sheet .row > button { width: 100%; }
.sheet .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.pager { justify-content: center; }
.sheet h1, .sheet h2 { margin-top: 0; }
.sheet h2:not(:first-child) { margin-top: 20px; }
.sheet > :last-child { margin-bottom: 0; }
.sheet .plain li:last-child,
.sheet .user-row:last-child { border-bottom: 0; }
.filters.sheet { align-items: end; }

.code {
  margin: 0 0 10px;
  padding: 10px 12px 12px;
  background: var(--well);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  box-shadow: inset 0 -3px 0 var(--lip);
}
.sheet .code:last-child { margin-bottom: 0; }

.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px 3px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background-color: var(--button);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 var(--block-bevel) 0 var(--button-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.pager a:hover { color: var(--ink); }

.pick { position: relative; display: block; }
.pick::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.pick.is-ready::after { content: none; }
.pick.is-ready select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: 0;
  box-shadow: none;
}
.pick-btn {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
}
.pick-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  flex: none;
}
.pick-menu {
  position: fixed;
  z-index: 20;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
  max-height: min(280px, calc(100vh - 16px));
  overflow: auto;
  overscroll-behavior: contain;
}
.pick-menu[hidden] { display: none !important; }
.pick-menu .pick-opt {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 12px 2px;
  background-color: var(--button);
  background-image: none;
  color: var(--ink);
  box-shadow: inset 0 var(--block-bevel) 0 var(--button-bevel), inset 0 -3px 0 var(--lip);
  filter: none;
}
.pick-menu .pick-opt:hover,
.pick-menu .pick-opt:focus-visible,
.pick-menu .pick-opt[aria-selected="true"] {
  background-color: var(--face);
  background-image: none;
  color: var(--on-face);
  box-shadow: inset 0 var(--block-bevel) 0 var(--face-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--face-lip);
  filter: none;
}

.file { display: grid; gap: 6px; }
.file-row {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background: var(--well);
  box-shadow: inset 0 -3px 0 var(--lip);
}
.file-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  box-shadow: none;
}
.file-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px 2px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background-color: var(--button);
  background-image: none;
  color: var(--ink);
  box-shadow: inset 0 var(--block-bevel) 0 var(--button-bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
  font-weight: 500;
  pointer-events: none;
}
.drop {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--well);
  border: var(--block-outline) solid var(--outline);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.drop.is-over { box-shadow: inset 0 0 0 var(--block-outline) var(--accent); }
.drop-title, .drop-kind { margin: 0; font-family: var(--pixel); font-weight: 600; }
.drop-hint, .drop-status { margin: 0; color: var(--muted); }
.drop-hit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  cursor: pointer;
}
.drop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drop-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--panel);
  border: var(--block-outline) solid var(--outline);
}
.drop-row.is-bad { box-shadow: inset 4px 0 0 var(--danger); }
.drop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-size { color: var(--muted); font-family: var(--mono); font-size: var(--text-micro); }
.drop-row button { min-height: 32px; }
.file-name {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.file-row:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--lip), 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.alert {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 0 0 var(--space-4);
  padding: 12px 12px 14px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  color: var(--ink);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.wrap > .alert:first-child { margin-top: var(--space-4); }
.alert.ok { box-shadow: inset 4px 0 0 var(--success), inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip); }
.alert.bad { box-shadow: inset 4px 0 0 var(--danger), inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip); }
.alert.warn { box-shadow: inset 4px 0 0 var(--warn), inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip); }
.alert-mark {
  width: 28px;
  height: 28px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  background: var(--face);
  box-shadow: inset 0 2px 0 var(--face-bevel), inset 0 -3px 0 var(--face-lip);
}
.alert.ok .alert-mark { background: var(--success); }
.alert.bad .alert-mark { background: var(--danger); }
.alert.warn .alert-mark { background: var(--warn); }
.alert-body { min-width: 0; }
.alert-body p { margin: 4px 0 0; }
.alert-body p:first-child { margin-top: 0; }
.alert .errors, .alert .warns { margin: 0; }
.alert-x {
  width: 32px;
  min-height: 32px;
  padding: 0 0 2px;
}
.alert-x::before { content: "×"; font-size: 18px; line-height: 1; }
.alert-body .ghost { margin-top: 8px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--page) 35%, #120c2288);
}
.modal[hidden] { display: none !important; }
.modal-card {
  width: min(420px, 100%);
  padding: 18px 18px 16px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.modal-card h2 { margin: 0 0 8px; font-size: var(--text-heading); }
.modal-card .row { justify-content: flex-end; margin: 8px 0 0; }

.secret { position: relative; display: block; }
.secret input { padding-right: 7.5rem; }
.peek {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  min-height: 28px;
  padding: 0 10px 2px;
}
.with-swatch { display: flex; gap: 8px; align-items: center; }
.with-swatch input { flex: 1; min-width: 0; }
.swatch {
  width: 36px;
  height: 36px;
  flex: none;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 -3px 0 var(--lip);
}
.cf-turnstile {
  justify-self: center;
  min-height: 65px;
  padding: 8px;
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  background: var(--surface);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}

.gallery-block { margin: 8px 0 20px; }
.gallery-block > p { color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 0 0 12px;
}
.shot-card {
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: var(--block-outline) solid var(--outline);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.shot-card img,
.shot-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--plate);
}
.shot-card figcaption { margin: 0; text-align: center; color: var(--muted); }
.shot-card form { display: flex; justify-content: center; }
.shot-card button { width: auto; }
.gallery-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gallery-forms .sheet { margin: 0; }
.gallery-forms h3 { margin: 0; font-size: 16px; }

@media (max-width: 860px) {
  .gallery-forms { grid-template-columns: 1fr; }
}

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

/* Blocks pass. Square panels, pixel headings, a fixed bar, and original stone.
   Token line above keeps --radius-plate at 12px; this pass squares the corners. */
:root {
  --stone: url("/stone-light.png");
  --scene: url("/scene-light.svg");
  --sky: #8d7fd8;
  --radius: 0px;
  --radius-plate: 0px;
  --radius-pill: 0px;
  font-variant-ligatures: no-common-ligatures;
}
:root[data-theme="dark"] {
  --stone: url("/stone-dark.png");
  --scene: url("/scene-dark.svg");
  --sky: #0a0f2c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: url("/stone-dark.png");
    --scene: url("/scene-dark.svg");
    --sky: #0a0f2c;
  }
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: 64px;
  background: var(--page);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--stone) 0 0 / 256px 256px repeat;
  image-rendering: pixelated;
}

h1, h2, h3, .card b, .index-list b, .mark .pixel, .nav-link, button, .btn, .mob > summary, .foot-word, .foot-disclaimer, .tag {
  font-family: var(--pixel);
  letter-spacing: 0;
}
h1, h2, .foot-word, .mark .pixel { font-weight: 700; }
h3, .card b, button, .btn, .nav-link { font-weight: 600; }
.kicker { color: var(--ink-soft); }

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 16;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--side);
  box-shadow: 0 var(--block-outline) 0 var(--outline);
}
.top-row {
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4.5vw, 64px);
  gap: 16px;
}
.mark .pixel {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.desk {
  width: auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  gap: 2px;
}
.desk > .nav-link,
.desk > .btn { flex: none; min-height: 32px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.nav-link:hover,
.theme-toggle:hover { background: var(--raised); color: var(--ink); }
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--raised);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.tools .btn,
.tools .ghost,
.theme-toggle { min-height: 32px; padding: 0 12px 2px; }
a.btn.discord { gap: 8px; }
.pixel-discord {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}
.mob > summary {
  min-height: 40px;
  padding: 0 12px;
  border-color: transparent;
  background: transparent;
  background-image: none;
  color: var(--ink);
  box-shadow: none;
}
.mob > summary:hover,
.mob > summary:active {
  background: var(--raised);
  color: var(--ink);
  filter: none;
  transform: none;
  box-shadow: none;
}
.mob[open] > .nav-panel {
  position: fixed;
  inset: 64px 0 0;
  z-index: 15;
  margin: 0;
  padding: 16px clamp(16px, 4.5vw, 64px) 32px;
  overflow: auto;
  background: var(--side);
  border-top: 0;
}
.nav-panel > .nav-link {
  justify-content: flex-start;
  min-height: 48px;
  height: auto;
  padding: 8px 0;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.nav-panel > .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 12px; }
main { padding-top: 28px; }
.skip { z-index: 40; }

button, .btn, .mob > summary, .pick-btn, .file-btn, .pager a {
  background-image: none;
}
button:hover, .btn:hover, .pick-btn:hover {
  filter: none;
}
button:active, .btn:active { transform: translateY(1px); }
.pick-menu .pick-opt,
.pick-menu .pick-opt:hover,
.pick-menu .pick-opt:focus-visible,
.pick-menu .pick-opt[aria-selected="true"] { background-image: none; }
label.check input { border-radius: 0; }

.hero {
  display: block;
  width: 100vw;
  margin: -28px 0 var(--space-6) calc(50% - 50vw);
  padding: clamp(48px, 8vw, 96px) 0 clamp(132px, 16vw, 220px);
  border: 0;
  border-bottom: var(--block-outline) solid var(--outline);
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, var(--page) 0 34%, color-mix(in srgb, var(--page) 88%, transparent) 52%, color-mix(in srgb, var(--page) 28%, transparent) 100%),
    var(--scene) right bottom / min(720px, 62vw) auto no-repeat,
    var(--sky);
  image-rendering: pixelated;
}
.hero-copy { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: var(--ink-soft); }
.hero .split { display: flex; flex-wrap: wrap; margin-top: 8px; }
.hero .split > .btn { width: auto; }

.index-list {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: 8px;
}
.index-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: baseline;
  margin: 0;
  padding: 16px 20px;
  background: var(--panel);
  border: var(--block-outline) solid var(--outline);
  box-shadow: inset 0 var(--block-bevel) 0 var(--bevel), inset 0 calc(var(--block-lip) * -1) 0 var(--lip);
}
.index-list .idx { margin: 0; }
.index-list b { font-size: var(--text-heading); line-height: 1.2; }
.index-list em { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: var(--text-micro); letter-spacing: 0.04em; }

.facts { grid-template-columns: minmax(0, 1fr); }
.facts article {
  display: grid;
  grid-template-columns: 40px minmax(0, 14rem) minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  background: var(--panel);
}
.facts article .idx { margin: 0; }
.facts article h2 { margin: 0; }
.facts article p:last-child { margin: 0; color: var(--muted); }

.cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--panel);
}
.card:hover { background: var(--raised); }
.card .avatar,
.card img.avatar {
  width: 48px;
  height: 48px;
  font-family: var(--pixel);
  font-size: 22px;
  font-weight: 600;
}
.card > span { min-width: 0; }
.card b { font-size: var(--text-heading); line-height: 1.2; }
.card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plate, .panel, .sheet, .stage, .steps li, .alert, .modal-card, .shot-card { background: var(--panel); }

footer {
  margin-top: 48px;
  padding: clamp(56px, 8vw, 96px) 0 0;
  border-top: var(--block-outline) solid var(--outline);
  background: var(--side);
  text-align: left;
}
footer .wrap { padding-bottom: 8px; }
.foot-disclaimer {
  max-width: 38rem;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}
.foot-links { justify-content: flex-start; gap: 8px 20px; }
.foot-links a { color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--ink); }
.foot-word { color: var(--plate); }
:root[data-theme="dark"] .foot-word { color: var(--panel); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .foot-word { color: var(--panel); }
}

.tag {
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .desk { display: none; }
  .mob { display: block; }
}
@media (min-width: 1101px) {
  .mob { display: none; }
  .desk { min-width: 0; overflow-x: auto; }
}
@media (max-width: 900px) {
  .top-row > .tools { display: none; }
  .mob { margin-left: auto; }
  .facts article,
  .index-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .facts article p:last-child,
  .index-list em { grid-column: 2; }
  .hero::before { content: none; }
  .card em { white-space: normal; }
}
@media (max-width: 640px) {
  .card { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .card .avatar, .card img.avatar { width: 40px; height: 40px; }
}

/* Modrinth's page shape: search in the bar, a filter column, project cards, a mod page with a side panel. Colors stay Horizon. */
.nav-search { flex: 1; min-width: 0; display: flex; }
.nav-search input {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: var(--block-outline) solid var(--outline);
  background: var(--well);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-ui);
}
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mods-list { grid-template-columns: minmax(0, 1fr); }
.mods-list .card > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
}
.mods-list .card b,
.mods-list .card em { grid-column: 1; }
.mods-list .card i,
.mods-list .card small.by {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}
.filters > button { width: auto; min-width: 8rem; }
.mod-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 20px;
}
.mod-head .avatar, .mod-head img.avatar { width: 96px; height: 96px; font-size: 36px; }
.mod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.mod-side { display: grid; gap: 12px; position: sticky; top: 80px; }
.mod-side .btn, .mod-side .split { display: grid; gap: 8px; }
.mod-side .btn { width: 100%; }
.mod-side .meta p { margin: 0 0 8px; }
.mod-side .meta b { display: block; font-family: var(--pixel); font-weight: 600; }
.profile-head { align-items: flex-start; text-align: left; flex-direction: row; margin-top: -48px; padding: 0 16px; }
.profile-actions { justify-content: flex-start; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) {
  .mod-layout, .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .mods-list .card > span { grid-template-columns: minmax(0, 1fr); }
  .mods-list .card i,
  .mods-list .card small.by { grid-column: 1; justify-self: start; text-align: left; }
  .mod-side { position: static; }
  .mod-head { grid-template-columns: 64px minmax(0, 1fr); }
  .mod-head .avatar, .mod-head img.avatar { width: 64px; height: 64px; }
  .profile-head { flex-direction: column; align-items: center; text-align: center; }
}
