/*
Theme Name: Z Route
Theme URI: https://zrouteguide.com/
Author: Z Route
Description: Original mobile-first companion shell for Z Route Redemption. Dark and light themes. No game data.
Version: 1.6.90
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: zroute
*/

/* Brand tokens (1.6.86). Dark is the default; light mirrors every token. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.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;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-var.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 {
  --zr-bg: #071015;
  --zr-surface: #0D171D;
  --zr-surface-2: #121F27;
  --zr-surface-3: #182934;
  --zr-border: #243740;
  --zr-border-strong: #35505C;
  --zr-text: #F4F7F8;
  --zr-muted: #9EADB4;
  --zr-text-2: var(--zr-muted);
  --zr-primary: #FF5A1F;
  --zr-primary-ink: #FF8A57;
  --zr-primary-soft: rgba(255, 90, 31, 0.14);
  --zr-on-primary: #1A0D08;
  --zr-secondary: #18C7D9;
  --zr-accent: var(--zr-secondary);
  --zr-accent-soft: rgba(24, 199, 217, 0.14);
  --zr-on-accent: #04161A;
  --zr-success: #51D88A;
  --zr-success-soft: rgba(81, 216, 138, 0.14);
  --zr-on-success: #062214;
  --zr-warning: #F5B942;
  --zr-error: #FF4D4D;
  --zr-link: var(--zr-secondary);
  --zr-highlight: var(--zr-primary-ink);
  --zr-gold: #F5B942;
  --zr-gold-text: #FFC861;
  --zr-inset: rgba(0, 0, 0, 0.28);
  --zr-overlay: rgba(3, 8, 11, 0.72);
  --zr-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --zr-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --zr-glow: 0 0 0 1px rgba(255, 90, 31, 0.45), 0 6px 22px rgba(255, 90, 31, 0.28);
  --zr-header: rgba(7, 16, 21, 0.9);
  --zr-hero-a: rgba(255, 90, 31, 0.42);
  --zr-hero-b: rgba(24, 199, 217, 0.2);
  --zr-dot: rgba(158, 173, 180, 0.22);
  --zr-scheme: dark;
  --zr-font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --zr-font-body: Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --zr-radius: 12px;
  --zr-radius-sm: 10px;
  --zr-radius-lg: 16px;
  --zr-space: 1rem;
  --zr-max: 1200px;
  --zr-header-h: 4rem;
  --zr-art-bg: #0D171D;
  --zr-tabbar-h: 3.95rem;
  color-scheme: dark;
}

html[data-theme="dark"] {
  --zr-bg: #071015;
  --zr-surface: #0D171D;
  --zr-surface-2: #121F27;
  --zr-surface-3: #182934;
  --zr-border: #243740;
  --zr-border-strong: #35505C;
  --zr-text: #F4F7F8;
  --zr-muted: #9EADB4;
  --zr-text-2: var(--zr-muted);
  --zr-primary: #FF5A1F;
  --zr-primary-ink: #FF8A57;
  --zr-primary-soft: rgba(255, 90, 31, 0.14);
  --zr-on-primary: #1A0D08;
  --zr-secondary: #18C7D9;
  --zr-accent: var(--zr-secondary);
  --zr-accent-soft: rgba(24, 199, 217, 0.14);
  --zr-on-accent: #04161A;
  --zr-success: #51D88A;
  --zr-success-soft: rgba(81, 216, 138, 0.14);
  --zr-on-success: #062214;
  --zr-warning: #F5B942;
  --zr-error: #FF4D4D;
  --zr-link: var(--zr-secondary);
  --zr-highlight: var(--zr-primary-ink);
  --zr-gold: #F5B942;
  --zr-gold-text: #FFC861;
  --zr-inset: rgba(0, 0, 0, 0.28);
  --zr-overlay: rgba(3, 8, 11, 0.72);
  --zr-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --zr-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --zr-glow: 0 0 0 1px rgba(255, 90, 31, 0.45), 0 6px 22px rgba(255, 90, 31, 0.28);
  --zr-header: rgba(7, 16, 21, 0.9);
  --zr-hero-a: rgba(255, 90, 31, 0.42);
  --zr-hero-b: rgba(24, 199, 217, 0.2);
  --zr-dot: rgba(158, 173, 180, 0.22);
  --zr-scheme: dark;
  color-scheme: dark;
}

html[data-theme="light"] {
  --zr-bg: #F3F6F8;
  --zr-surface: #FFFFFF;
  --zr-surface-2: #EAF0F3;
  --zr-surface-3: #DCE5EA;
  --zr-border: #CAD5DB;
  --zr-border-strong: #A3B4BD;
  --zr-text: #0B1A21;
  --zr-muted: #4B5D66;
  --zr-text-2: var(--zr-muted);
  --zr-primary: #FF5A1F;
  --zr-primary-ink: #B83E0F;
  --zr-primary-soft: rgba(255, 90, 31, 0.12);
  --zr-on-primary: #1A0D08;
  --zr-secondary: #08707D;
  --zr-accent: var(--zr-secondary);
  --zr-accent-soft: rgba(8, 112, 125, 0.1);
  --zr-on-accent: #FFFFFF;
  --zr-success: #1A7F45;
  --zr-success-soft: rgba(26, 127, 69, 0.1);
  --zr-on-success: #FFFFFF;
  --zr-warning: #8F5E00;
  --zr-error: #C42B2B;
  --zr-link: var(--zr-secondary);
  --zr-highlight: var(--zr-primary-ink);
  --zr-gold: #F5B942;
  --zr-gold-text: #8F5E00;
  --zr-inset: rgba(11, 26, 33, 0.05);
  --zr-overlay: rgba(11, 26, 33, 0.45);
  --zr-shadow: 0 6px 20px rgba(11, 26, 33, 0.08);
  --zr-shadow-lg: 0 18px 44px rgba(11, 26, 33, 0.18);
  --zr-glow: 0 0 0 1px rgba(255, 90, 31, 0.4), 0 6px 18px rgba(255, 90, 31, 0.22);
  --zr-header: rgba(243, 246, 248, 0.92);
  --zr-hero-a: rgba(255, 90, 31, 0.2);
  --zr-hero-b: rgba(8, 112, 125, 0.14);
  --zr-dot: rgba(75, 93, 102, 0.2);
  --zr-scheme: light;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --zr-bg: #F3F6F8;
    --zr-surface: #FFFFFF;
    --zr-surface-2: #EAF0F3;
    --zr-surface-3: #DCE5EA;
    --zr-border: #CAD5DB;
    --zr-border-strong: #A3B4BD;
    --zr-text: #0B1A21;
    --zr-muted: #4B5D66;
    --zr-text-2: var(--zr-muted);
    --zr-primary: #FF5A1F;
    --zr-primary-ink: #B83E0F;
    --zr-primary-soft: rgba(255, 90, 31, 0.12);
    --zr-on-primary: #1A0D08;
    --zr-secondary: #08707D;
    --zr-accent: var(--zr-secondary);
    --zr-accent-soft: rgba(8, 112, 125, 0.1);
    --zr-on-accent: #FFFFFF;
    --zr-success: #1A7F45;
    --zr-success-soft: rgba(26, 127, 69, 0.1);
    --zr-on-success: #FFFFFF;
  --zr-on-success: #FFFFFF;
    --zr-warning: #8F5E00;
    --zr-error: #C42B2B;
    --zr-link: var(--zr-secondary);
    --zr-highlight: var(--zr-primary-ink);
    --zr-gold: #F5B942;
    --zr-gold-text: #8F5E00;
    --zr-inset: rgba(11, 26, 33, 0.05);
    --zr-overlay: rgba(11, 26, 33, 0.45);
    --zr-shadow: 0 6px 20px rgba(11, 26, 33, 0.08);
    --zr-shadow-lg: 0 18px 44px rgba(11, 26, 33, 0.18);
    --zr-glow: 0 0 0 1px rgba(255, 90, 31, 0.4), 0 6px 18px rgba(255, 90, 31, 0.22);
    --zr-header: rgba(243, 246, 248, 0.92);
    --zr-hero-a: rgba(255, 90, 31, 0.2);
    --zr-hero-b: rgba(8, 112, 125, 0.14);
    --zr-dot: rgba(75, 93, 102, 0.2);
    --zr-scheme: light;
    color-scheme: light;
  }
}

/* 1.6.88 compact type scale */
:root {
  --zr-fs-xs: 0.75rem;     /* 12px labels */
  --zr-fs-sm: 0.8125rem;   /* 13px */
  --zr-fs-sm2: 0.875rem;   /* 14px */
  --zr-fs-base: 0.9375rem; /* 15px body */
  --zr-fs-md: 1rem;        /* 16px card titles */
  --zr-fs-lg: 1.0625rem;   /* 17px */
  --zr-fs-xl: 1.25rem;     /* 20px numbers / sub heads */
  --zr-fs-2xl: 1.375rem;   /* 22px */
  --zr-fs-3xl: 1.625rem;   /* 26px */
  --zr-fs-h1: 2rem;        /* 32px */
  --zr-fs-h2: 1.3125rem;   /* 21px */
  --zr-fs-h3: 1.0625rem;   /* 17px */
}
@media (max-width: 767px) {
  :root {
    --zr-fs-sm2: 0.8125rem;
    --zr-fs-base: 0.875rem;
    --zr-fs-md: 0.9375rem;
    --zr-fs-lg: 1rem;
    --zr-fs-xl: 1.125rem;
    --zr-fs-2xl: 1.25rem;
    --zr-fs-3xl: 1.375rem;
    --zr-fs-h1: 1.5rem;
    --zr-fs-h2: 1.1875rem;
    --zr-fs-h3: 1rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--zr-bg);
  color: var(--zr-text);
  font-family: var(--zr-font-body);
  font-size: var(--zr-fs-base);
  line-height: 1.5;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--zr-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--zr-text);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.zr-logo__name,
.zr-theme-toggle,
.zr-btn,
.zr-kicker {
  font-family: var(--zr-font-display);
}

h1 {
  font-size: var(--zr-fs-h1);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: var(--zr-fs-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  font-size: var(--zr-fs-h3);
  line-height: 1.25;
  font-weight: 600;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zr-skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--zr-primary);
  color: var(--zr-on-primary);
  padding: 0.6rem 0.9rem;
  border-radius: var(--zr-radius);
  text-decoration: none;
  font-weight: 600;
}

.zr-skip:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--zr-secondary);
  outline-offset: 2px;
}

.zr-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--zr-header);
  border-bottom: 1px solid var(--zr-border);
  backdrop-filter: blur(12px);
}

.zr-header__inner,
.zr-footer__inner,
.zr-main {
  width: min(var(--zr-max), calc(100% - 2rem));
  margin-inline: auto;
}

.zr-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}

.zr-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--zr-text);
  text-decoration: none;
  margin-right: auto;
}

.zr-logo:hover {
  color: var(--zr-text);
}

.zr-logo__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--zr-radius-sm);
  background: linear-gradient(140deg, #FF7A3D 0%, var(--zr-primary) 55%, #D9400C 100%);
  box-shadow: var(--zr-glow);
  color: var(--zr-on-primary);
}

.zr-logo__mark svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zr-logo__mark circle {
  fill: var(--zr-secondary);
  stroke: none;
}

.zr-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.zr-logo__name {
  font-weight: 700;
  font-size: var(--zr-fs-md);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.zr-logo__sub {
  color: var(--zr-accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.zr-nav {
  display: none;
}

.zr-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.zr-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--zr-muted);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: var(--zr-radius);
  font-size: var(--zr-fs-sm2);
  font-weight: 500;
}

.zr-links a:hover,
.zr-links a[aria-current="page"] {
  color: var(--zr-text);
  background: var(--zr-surface-2);
}

.zr-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--zr-primary);
}



html[data-theme="dark"] .zr-when-light,
html[data-theme="light"] .zr-when-dark {
  display: none;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .zr-when-dark {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .zr-when-light {
    display: none;
  }
}

.zr-main {
  min-width: 0;
  padding: 1.25rem 0 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.zr-hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.1rem 1.25rem;
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius);
  background:
    radial-gradient(ellipse at 100% 0%, var(--zr-hero-a), transparent 52%),
    radial-gradient(ellipse at 0% 100%, var(--zr-hero-b), transparent 48%),
    var(--zr-surface);
  box-shadow: var(--zr-shadow);
  display: grid;
  gap: 0.9rem;
}

.zr-hero__sky {
  position: absolute;
  inset: auto 0 0 0;
  height: 4.5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0 1rem;
  pointer-events: none;
  opacity: 0.55;
}

.zr-hero__sky span {
  display: block;
  flex: 1;
  background: var(--zr-surface-2);
  border: 1px solid var(--zr-border);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.zr-hero__sky span:nth-child(1) { height: 38%; }
.zr-hero__sky span:nth-child(2) { height: 62%; }
.zr-hero__sky span:nth-child(3) { height: 48%; }
.zr-hero__sky span:nth-child(4) { height: 78%; }
.zr-hero__sky span:nth-child(5) { height: 44%; }
.zr-hero__sky span:nth-child(6) { height: 66%; }
.zr-hero__sky span:nth-child(7) { height: 30%; }

.zr-hero__copy {
  position: relative;
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  padding-bottom: 2.5rem;
}

.zr-eyebrow,
.zr-kicker {
  color: var(--zr-link);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zr-lead,
.zr-muted,
.zr-note {
  color: var(--zr-muted);
}

.zr-lead {
  font-size: var(--zr-fs-md);
  max-width: 38rem;
}

.zr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--zr-radius);
  background: var(--zr-primary);
  color: var(--zr-on-primary);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--zr-glow);
}

.zr-btn:hover {
  color: var(--zr-on-primary);
  filter: brightness(1.05);
}

.zr-search {
  position: relative;
  display: grid;
  gap: 0.4rem;
}

.zr-search input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--zr-radius);
  border: 1px solid var(--zr-border);
  background: var(--zr-bg);
  color: var(--zr-text);
}

.zr-search input::placeholder {
  color: var(--zr-muted);
}

.zr-search input:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.zr-section {
  display: grid;
  gap: 0.85rem;
}

.zr-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.zr-section__head a {
  font-size: var(--zr-fs-sm2);
  font-weight: 600;
  white-space: nowrap;
}

.zr-slots,
.zr-tools,
.zr-db {
  display: grid;
  gap: 0.75rem;
}

.zr-slots {
  grid-template-columns: 1fr 1fr;
}

.zr-card {
  background: var(--zr-surface);
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius);
  box-shadow: var(--zr-shadow);
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

a.zr-card {
  text-decoration: none;
  color: inherit;
}

a.zr-card:hover {
  border-color: var(--zr-secondary);
  color: inherit;
}

.zr-card__label {
  font-family: var(--zr-font-display);
  font-weight: 600;
}

.zr-soon--lg {
  min-height: 14rem;
  align-content: center;
  padding: 1.5rem;
}

.zr-value {
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-xl);
  font-weight: 600;
  color: var(--zr-link);
}

.zr-pagehead {
  display: grid;
  gap: 0.45rem;
}

.zr-calc {
  display: grid;
  gap: 0.75rem;
}

.zr-filters {
  display: grid;
  gap: 0.55rem;
}

.zr-filters ul,
.zr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zr-chip {
  border: 1px solid var(--zr-border);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  border-radius: var(--zr-radius);
  padding: 0.45rem 0.7rem;
  font-size: var(--zr-fs-sm2);
}

.zr-actions a {
  text-decoration: none;
  background: var(--zr-surface);
  border: 1px solid var(--zr-border);
  color: var(--zr-text);
  border-radius: var(--zr-radius);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
}

.zr-actions a:hover {
  border-color: var(--zr-primary);
  color: var(--zr-text);
}

.zr-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 0.15rem;
  padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
  background: var(--zr-surface);
  border-top: 1px solid var(--zr-border);
}

.zr-tabbar .zr-links {
  width: 100%;
  justify-content: space-around;
  gap: 0;
}

.zr-tabbar a {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.25rem;
  padding: 0.25rem 0.15rem;
  font-size: 0.68rem;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.zr-tabbar a[aria-current="page"] {
  color: var(--zr-primary);
  background: transparent;
  box-shadow: none;
}

.zr-tabbar svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zr-footer {
  border-top: 1px solid var(--zr-border);
  background: var(--zr-surface);
  padding: 1.5rem 0 1.75rem;
}

.zr-footer__inner {
  display: grid;
  gap: 1rem;
}

.zr-footer .zr-links {
  flex-wrap: wrap;
}

.zr-footer__note {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm2);
}

@media (min-width: 700px) {
  .zr-slots {
    grid-template-columns: repeat(5, 1fr);
  }

  .zr-tools {
    grid-template-columns: repeat(3, 1fr);
  }

  .zr-db {
    grid-template-columns: repeat(4, 1fr);
  }

  .zr-calc {
    grid-template-columns: repeat(3, 1fr);
  }

  .zr-hero {
    padding: 2.5rem 2rem 2rem;
  }

  .zr-hero__copy {
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  .zr-nav {
    display: block;
  }

  .zr-tabbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .zr-btn:hover {
    filter: none;
  }
}

.zr-pagehead--doc h1 {
  font-size: var(--zr-fs-h1);
  line-height: 1.05;
}

.zr-doc {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}

.zr-doc h2 {
  margin-top: 0.65rem;
  font-size: var(--zr-fs-lg);
}

.zr-doc ul {
  list-style: disc;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.zr-doc li {
  padding-left: 0.15rem;
}

.zr-notice {
  border: 1px solid var(--zr-border);
  background: var(--zr-surface-2);
  border-radius: var(--zr-radius);
  padding: 0.85rem 1rem;
}

.zr-notice--ok {
  border-color: var(--zr-success);
}

.zr-notice--bad {
  border-color: var(--zr-error);
}

.zr-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.zr-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
}

.zr-form input,
.zr-form select,
.zr-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--zr-radius);
  border: 1px solid var(--zr-border);
  background: var(--zr-bg);
  color: var(--zr-text);
}

.zr-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.zr-form input:focus,
.zr-form select:focus,
.zr-form textarea:focus {
  outline: 2px solid var(--zr-secondary);
  outline-offset: 1px;
}

.zr-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.zr-footer__legal {
  padding-top: 0.25rem;
  border-top: 1px solid var(--zr-border);
}

.zr-footer__label {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.zr-guide-list {
  display: grid;
  gap: 0.75rem;
}

.zr-guide-list h2 {
  font-size: var(--zr-fs-lg);
}

.zr-comments {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-top: 0.5rem;
}

.zr-comments .comment-list,
.zr-comments .children {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.zr-comments .children {
  margin-top: 0.75rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--zr-border);
}

.zr-comments .comment-body {
  background: var(--zr-surface);
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius);
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.zr-comments .comment-meta,
.zr-comments .comment-author {
  font-size: var(--zr-fs-sm2);
}

.zr-comments .comment-author .fn {
  font-family: var(--zr-font-display);
  font-style: normal;
  font-weight: 600;
}

.zr-comments .comment-metadata a,
.zr-comments .comment-meta a {
  color: var(--zr-muted);
  text-decoration: none;
}

.zr-comments .comment-content p {
  margin: 0.35rem 0 0;
}

.zr-comments .comment-reply-link {
  font-weight: 600;
}

.zr-comments .comment-form,
.zr-comments .zr-form {
  display: grid;
  gap: 0.85rem;
}

.zr-comments .comment-form p {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.zr-comments .comment-form label {
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
}

.zr-comments .comment-form input[type="text"],
.zr-comments .comment-form input[type="email"],
.zr-comments .comment-form input[type="url"],
.zr-comments .comment-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--zr-radius);
  border: 1px solid var(--zr-border);
  background: var(--zr-bg);
  color: var(--zr-text);
}

.zr-comments .comment-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.zr-comments .comment-form input:focus,
.zr-comments .comment-form textarea:focus {
  outline: 2px solid var(--zr-secondary);
  outline-offset: 1px;
}

.zr-comments .comment-form .zr-btn,
.zr-comments .comment-form input[type="submit"] {
  justify-self: start;
  border: 0;
  cursor: pointer;
  background: var(--zr-primary);
  color: var(--zr-on-primary);
}

.zr-comments .required {
  color: var(--zr-primary);
}




.zr-main {
  min-width: 0;
}

.zr-accent {
  color: var(--zr-primary);
}


.zr-mon-head .zr-muted { max-width: 36rem; }
.zr-controls { display: flex; flex-wrap: wrap; gap: 0.85rem 1.4rem; margin: 0 0 0.4rem; }
.zr-ctl { border: 0; margin: 0; padding: 0; min-width: 0; }
.zr-ctl legend { font-size: var(--zr-fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--zr-muted); margin-bottom: 0.4rem; }
.zr-ctl__row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zr-chip, .zr-dot, .zr-card { font: inherit; color: var(--zr-text); cursor: pointer; }
.zr-chip { border: 1px solid var(--zr-border); background: var(--zr-surface); border-radius: 999px; padding: 0.38rem 0.75rem; }
.zr-chip.is-on { background: var(--zr-accent); color: var(--zr-on-accent); border-color: transparent; }
.zr-rail { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.7rem 0 0.9rem; }
.zr-dot { flex: 0 0 auto; min-width: 2.5rem; height: 2.5rem; padding: 0 0.45rem; border-radius: 999px; border: 1px solid var(--zr-border); background: var(--zr-surface-2); }
.zr-dot.is-on { background: var(--zr-accent); color: var(--zr-on-accent); border-color: transparent; }
.zr-mon { min-width: 0; }
.zr-daygroup { margin: 0 0 1.15rem; scroll-margin-top: 5.2rem; }
.zr-daygroup h2 { margin: 0 0 0.5rem; font-size: var(--zr-fs-md); color: var(--zr-secondary); }
.zr-cards { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.zr-card { border: 1px solid var(--zr-border); background: var(--zr-surface); border-radius: 14px; padding: 0.8rem 0.95rem; text-align: left; box-shadow: var(--zr-shadow); }
.zr-card.is-on { border-color: var(--zr-accent); box-shadow: 0 0 0 1px var(--zr-accent), 0 0 18px var(--zr-accent-soft); }
.zr-pop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; background: var(--zr-overlay); }

.zr-pop[hidden] { display: none; }
.zr-pop__panel { width: min(34rem, 100%); max-height: min(84vh, 40rem); overflow: auto; padding: 1.1rem 1.15rem 1.3rem; border-radius: 18px; border: 1px solid var(--zr-primary); background: radial-gradient(ellipse at 100% 0%, var(--zr-hero-a), transparent 46%), var(--zr-surface); box-shadow: var(--zr-glow), var(--zr-shadow-lg); transform: translateY(22px) scale(0.94); opacity: 0; animation: zr-pop-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes zr-pop-in { to { transform: none; opacity: 1; } }
.zr-pop__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.zr-pop__top h2 { margin: 0; font-size: var(--zr-fs-lg); }
.zr-pop__close { border: 0; background: transparent; color: var(--zr-text); font-size: var(--zr-fs-2xl); line-height: 1; cursor: pointer; }
.zr-pop__name { margin: 0.8rem 0 0.35rem; font-size: var(--zr-fs-xl); }
.zr-pop__desc { margin: 0; color: var(--zr-text); }
body.zr-pop-open { overflow: hidden; }
@media (max-width: 720px) {
  .zr-pop { align-items: end; padding: 0; }
  .zr-pop__panel { width: 100%; max-width: none; border-radius: 18px 18px 0 0; max-height: 78vh; transform: translateY(100%); animation: zr-sheet-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
}
@keyframes zr-sheet-in { to { transform: none; opacity: 1; } }

.zr-home-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.zr-home-events a { display: block; padding: 0.85rem 1rem; border: 1px solid var(--zr-border); border-radius: var(--zr-radius); background: var(--zr-surface); color: var(--zr-text); text-decoration: none; }
.zr-home-events a:hover { border-color: var(--zr-primary); }

.zr-doc img { max-width: min(100%, 28rem); height: auto; border-radius: 16px; display: block; }
.zr-doc h3 { margin: 1rem 0 0.35rem; }

.zr-table-wrap { overflow-x: auto; margin: 0.75rem 0 1.1rem; }
.zr-doc table.zr-weekday { width: 100%; border-collapse: collapse; font-size: var(--zr-fs-sm2); }
.zr-doc table.zr-weekday th,
.zr-doc table.zr-weekday td { border: 1px solid var(--zr-border); padding: 0.45rem 0.55rem; text-align: left; white-space: nowrap; }
.zr-doc table.zr-weekday th { background: var(--zr-surface-2); }
.zr-doc table.zr-weekday td:first-child,
.zr-doc table.zr-weekday th:first-child { white-space: normal; }

.zr-search [hidden] { display: none !important; }
.zr-search .zr-home-events { margin-top: 0.35rem; }

.zr-event { flex: 1 1 18rem; min-width: min(100%, 16rem); display: grid; gap: 0.35rem; align-content: start; }
.zr-event .zr-card { width: 100%; }
.zr-card__desc { margin: 0; color: var(--zr-muted); font-size: var(--zr-fs-sm2); line-height: 1.45; }


.zr-bldg-head {
  text-align: center;
  justify-items: center;
}

.zr-bldg-head h1 {
  color: var(--zr-text);
  font-size: var(--zr-fs-h1);
}

.zr-bldg {
  display: grid;
  gap: 1rem;
}

.zr-bctrl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

button.zr-bpill {
  font-family: inherit;
}

.zr-bpill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
  cursor: pointer;
}

.zr-bpill input {
  width: 3.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: right;
  padding: 0;
}

.zr-bpill input:focus {
  outline: none;
}

.zr-bpill:focus-within,
.zr-bpill.is-on {
  border-color: var(--zr-accent);
  box-shadow: 0 0 0 1px var(--zr-accent);
  background: var(--zr-accent-soft);
}

.zr-bpill__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--zr-secondary);
  box-shadow: inset 0 0 0 2px var(--zr-surface-2);
}

.zr-bpill__mark--save {
  border-color: var(--zr-primary);
  background: radial-gradient(circle at 40% 40%, var(--zr-primary), transparent 60%);
}

.zr-bldg__hint {
  margin: 0;
  text-align: center;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm2);
}

.zr-bsum {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface);
}

.zr-bsum__label {
  display: block;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-bsum strong {
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-xl);
  color: var(--zr-highlight);
}

.zr-bsum__rest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
}

.zr-bres {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--zr-text);
  font-weight: 600;
}

.zr-bres__label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 500;
}

.zr-ricon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.zr-bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr));
  gap: 0.75rem;
}

.zr-bcard {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.85rem 0.55rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface);
  color: var(--zr-text);
  text-align: center;
  cursor: pointer;
}

.zr-bcard.is-hidden {
  display: none;
}

.zr-bcard:hover,
.zr-bcard:focus-visible {
  border-color: var(--zr-accent);
  outline: none;
}

.zr-bcard img {
  width: 5.6rem;
  height: 5.6rem;
  object-fit: contain;
}

.zr-bcard__name {
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
  line-height: 1.25;
}

.zr-bcard__lv {
  color: var(--zr-highlight);
  font-weight: 700;
  font-size: var(--zr-fs-sm2);
}

.zr-bcard__bar {
  width: 72%;
  height: 3px;
  border-radius: 999px;
  background: var(--zr-border);
  overflow: hidden;
}

.zr-bcard__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--zr-primary);
}

.zr-bcard__power {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
}

.zr-bdialog {
  width: min(52rem, calc(100% - 1.5rem));
  max-height: min(90vh, 52rem);
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background: var(--zr-surface);
  color: var(--zr-text);
  box-shadow: var(--zr-shadow);
}

.zr-bdialog::backdrop {
  background: var(--zr-overlay);
}

.zr-bdialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.zr-bdialog__top h2 {
  margin: 0;
  font-size: var(--zr-fs-lg);
}

.zr-bdialog__close {
  border: 0;
  background: transparent;
  color: var(--zr-text);
  font-size: var(--zr-fs-2xl);
  line-height: 1;
  cursor: pointer;
}

.zr-bdialog__levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.65rem;
  scroll-margin-top: 5.5rem;
}

.zr-bdialog__levels label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.zr-blevel-cue {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--zr-accent-soft);
  color: var(--zr-text);
  font-size: var(--zr-fs-base);
  font-weight: 700;
  line-height: 1.35;
}

.zr-blevel-cue[hidden] {
  display: none;
}

.zr-blevel-cue.is-quiet {
  background: transparent;
  color: var(--zr-muted);
  font-weight: 600;
  transition: background 0.35s ease, color 0.35s ease;
}

.zr-bdialog__levels.is-jumped {
  border-radius: 14px;
  animation: zr-level-pulse 1.15s ease-in-out 3;
}

.zr-bdialog__levels.is-quiet {
  animation: none;
  box-shadow: none;
}

@keyframes zr-level-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--zr-secondary);
  }
  50% {
    box-shadow: 0 0 0 3px var(--zr-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zr-bdialog__levels.is-jumped {
    animation: none;
    box-shadow: 0 0 0 2px var(--zr-secondary);
  }
}

.zr-bcalc {
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: var(--zr-surface);
}

.zr-bdialog__levels select,
.zr-bdialog__levels input,
.zr-bpre__yours select,
.zr-bpre__yours input,
.zr-bsearch input {
  min-height: 2.6rem;
  width: 100%;
  padding: 0.4rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font: inherit;
}

.zr-bsearch {
  display: grid;
  gap: 0.35rem;
  max-width: 28rem;
  margin: 0 auto;
}

.zr-bsearch span {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-bcard.is-selected {
  border-color: var(--zr-accent);
  box-shadow: 0 0 0 1px var(--zr-accent);
}

.zr-bpath {
  margin-top: 0.75rem;
}

.zr-bpath__panel {
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-surface-2);
  padding: 0.45rem 0.7rem;
}

.zr-bpath__panel > summary {
  cursor: pointer;
  list-style: none;
  color: var(--zr-secondary);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-bpath__panel > summary::-webkit-details-marker {
  display: none;
}

.zr-bpath__panel > summary::before {
  content: "+";
  display: inline-block;
  width: 1rem;
  color: var(--zr-muted);
  font-weight: 700;
}

.zr-bpath__panel[open] > summary::before {
  content: "–";
}

.zr-bpath__list {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.55rem;
  max-height: min(40vh, 18rem);
  overflow: auto;
}

.zr-bpath__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.28rem 0.1rem;
  border-top: 1px solid var(--zr-border);
  font-size: var(--zr-fs-sm);
}

.zr-bpath__range {
  font-weight: 700;
  white-space: nowrap;
}

.zr-bpath__meta {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  text-align: right;
}

.zr-bmiss {
  margin-top: 0.55rem;
}

.zr-bmiss__table {
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--zr-fs-sm);
}

.zr-bmiss__table th,
.zr-bmiss__table td {
  padding: 0.28rem 0.3rem;
  border-bottom: 1px solid var(--zr-border);
  text-align: left;
  vertical-align: top;
}

.zr-bmiss__table th {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zr-bmiss__table th:first-child,
.zr-bmiss__table td:first-child {
  width: 52%;
  overflow-wrap: anywhere;
}

.zr-bmiss__table th:nth-child(2),
.zr-bmiss__table td:nth-child(2) {
  width: 18%;
}

.zr-bmiss__table th:nth-child(3),
.zr-bmiss__table td:nth-child(3) {
  width: 30%;
}

.zr-bmiss__table td:nth-child(2),
.zr-bmiss__table td:nth-child(3) {
  white-space: nowrap;
}

.zr-faq {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.35rem;
}

.zr-faq h2 {
  margin: 0 0 0.4rem;
  font-size: var(--zr-fs-lg);
}

.zr-faq h3 {
  margin: 0.85rem 0 0.2rem;
  font-size: var(--zr-fs-base);
}

.zr-faq p {
  margin: 0;
  color: var(--zr-muted);
}

.zr-bdlg__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.zr-bdlg__stats dt {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
}

.zr-bdlg__stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-md);
  font-weight: 600;
}

.zr-bdlg__math {
  margin: 0.2rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 500;
}

.zr-bldg__steps {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.zr-bldg__steps h3 {
  margin: 0 0 0.25rem;
  font-size: var(--zr-fs-base);
}

.zr-bldg__steps p {
  margin: 0.15rem 0;
}

@media (max-width: 720px) {
  .zr-bsum {
    grid-template-columns: 1fr 1fr;
  }

  .zr-bsum__cell--rest {
    grid-column: 1 / -1;
  }
}


.zr-empty {
  margin-top: 0.35rem;
}

.zr-empty h2 {
  margin-top: 0;
}

.zr-bresults {
  margin-top: 0.7rem;
}

.zr-bresults__kicker,
.zr-bpre__head h3 {
  margin: 0;
  color: var(--zr-secondary);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zr-bresults__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.zr-bresults__card {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-bg);
}

.zr-bresults__label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-bresults__value {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-xl);
  font-weight: 600;
}

.zr-bresults__value--time {
  color: var(--zr-secondary);
}

.zr-bresults__value--power {
  color: var(--zr-highlight);
}

.zr-bresults__value--food {
  color: var(--zr-success);
}

.zr-bresults__value--wood {
  color: var(--zr-warning);
}

.zr-bresults__sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
}

.zr-bpre {
  margin-top: 1.15rem;
}

.zr-bpre__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.zr-bpre__rss {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--zr-text);
  font-size: var(--zr-fs-sm2);
  font-weight: 600;
}

.zr-bpre__note,
.zr-bpre__empty {
  margin: 0.45rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
}

.zr-bpre__list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  overflow-anchor: none;
}

.zr-bpre__headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
}

.zr-bpre__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--zr-border);
  border-radius: 14px;
  background: var(--zr-surface-2);
}

.zr-bpre__name {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.zr-bpre__row.is-open {
  border-color: var(--zr-primary);
}

.zr-bpre__yours {
  display: grid;
  gap: 0.2rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
}

.zr-bpre__yours select,
.zr-bpre__yours input {
  width: 4.6rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface);
  color: var(--zr-text);
}

.zr-bpre__detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
}

.zr-bpre__nest {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.zr-bpre__sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-surface);
}

.zr-bpre__sub.is-open {
  border-color: var(--zr-primary);
}

.zr-bpre__row.is-any .zr-bpre__headrow,
.zr-bpre__sub.is-any .zr-bpre__headrow {
  align-items: flex-start;
  flex-wrap: wrap;
}

.zr-bpre__row.is-any .zr-bpre__name,
.zr-bpre__sub.is-any .zr-bpre__name {
  white-space: normal;
  line-height: 1.35;
}

.zr-bany {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.zr-bany .zr-bpre__yours select {
  width: 100%;
  max-width: 8rem;
}

.zr-bcosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.zr-bcosts__card {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-surface);
}

.zr-bcosts__label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zr-bcosts__num {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--zr-fs-base);
}


.zr-bpre__lv,
.zr-bpre__need,
.zr-bpre__cost,
.zr-bpre__mark {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
}

.zr-bpre__need,
.zr-bpre__cost {
  grid-column: 1 / -1;
  margin: 0;
}

.zr-bpre__mark {
  align-self: start;
  margin-top: 0.15rem;
}

@media (max-width: 720px) {
  .zr-bpre__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .zr-bresults__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .zr-bcalc {
    padding: 0.7rem 0.75rem 0.85rem;
    border-radius: 14px;
  }

  .zr-bdialog__top h2 {
    font-size: var(--zr-fs-md);
  }

  .zr-bdialog__levels {
    gap: 0.4rem;
    margin-top: 0.5rem;
  }

  .zr-bdialog__levels select,
  .zr-bdialog__levels input,
  .zr-bsearch input {
    min-height: 2.35rem;
    padding: 0.3rem 0.55rem;
  }

  .zr-bresults {
    margin-top: 0.55rem;
  }

  .zr-bresults__grid {
    gap: 0.35rem;
    margin-top: 0.35rem;
  }

  .zr-bresults__card {
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
  }

  .zr-bresults__value {
    font-size: var(--zr-fs-base);
  }

  .zr-bpath {
    margin-top: 0.55rem;
  }

  .zr-bpath__panel {
    padding: 0.4rem 0.6rem;
  }

  .zr-bpath__list {
    max-height: min(36vh, 14rem);
  }

  .zr-bmiss {
    margin-top: 0.4rem;
  }

  .zr-bpre {
    margin-top: 0.65rem;
  }

  .zr-bpre__note {
    margin: 0.25rem 0 0.35rem;
  }
}


.zr-research {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}


.zr-rcats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 0.15rem 0 0.85rem;
}

.zr-rcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 24rem;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background: var(--zr-surface);
  color: var(--zr-text);
  text-decoration: none;
}

.zr-rcard__gates {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
}

.zr-rcard__gate {
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--zr-border);
  border-radius: 999px;
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font-size: var(--zr-fs-xs);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.zr-rcard__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 9.25rem;
}

.zr-rcard__art img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.zr-rcard__name {
  min-height: 2.4em;
  font-size: var(--zr-fs-lg);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.zr-rcard__pct {
  font-size: var(--zr-fs-3xl);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.zr-rcard__lines {
  display: grid;
  align-content: start;
  gap: 0.28rem;
  min-height: 6.6rem;
  margin-top: 0.35rem;
}

.zr-rcard__line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
}

.zr-rcard__line strong {
  color: var(--zr-text);
  font-weight: 800;
}

/* Research category tree. Dark canvas, three stored columns. */

.zr-rtools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.zr-rtools button,
.zr-rone__set select {
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font: inherit;
  font-weight: 700;
}

.zr-rtotal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.zr-rtotal__cell {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-surface);
}

.zr-rtotal__label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zr-rtotal__num {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--zr-fs-base);
}

.zr-rone__set select {
  width: 100%;
}

.zr-rone__set {
  position: relative;
}

.zr-rone__face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--zr-border);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font-weight: 800;
  pointer-events: none;
}

.zr-rone__set select {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.75rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.zr-pagehead--back {
  gap: 0.2rem;
}

.zr-rwork {
  display: grid;
  gap: 0.85rem;
  color: var(--zr-text);
}

.zr-rside {
  position: static;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0.9rem 0.85rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 0% 0%, var(--zr-primary-soft), transparent 55%),
    var(--zr-surface);
  box-shadow: var(--zr-shadow);
}

.zr-rside__id {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.zr-rside__id img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.zr-rside h1 {
  color: var(--zr-text);
  font-size: var(--zr-fs-xl);
  line-height: 1.15;
  letter-spacing: 0;
}

.zr-rside__count,
.zr-rside__alpha {
  margin-top: 0.2rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
  line-height: 1.35;
}

.zr-rside__kicker {
  color: var(--zr-accent);
  font-size: var(--zr-fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-rside .zr-rtools {
  display: grid;
  gap: 0.45rem;
}

.zr-rside .zr-rtools button {
  width: 100%;
  color: var(--zr-accent);
  background: var(--zr-surface-2);
  border-color: var(--zr-border-strong);
  font-weight: 800;
}

.zr-rside .zr-rtools button[aria-pressed="true"] {
  color: var(--zr-on-accent);
  background: var(--zr-accent);
  border-color: var(--zr-accent);
}

.zr-rside .zr-rtotal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  margin-top: 0;
}

.zr-rside .zr-rtotal__cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.12rem 0;
  border: 0;
  background: transparent;
}

.zr-rside .zr-rtotal__label {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  letter-spacing: 0;
  text-transform: none;
}

.zr-rside .zr-rtotal__num {
  margin-top: 0;
  color: var(--zr-highlight);
  font-size: var(--zr-fs-base);
}

.zr-rtotal__wait {
  margin: 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
}

.zr-rwork,
.zr-rtree-scroll {
  min-width: 0;
}

.zr-rtree-scroll {
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background-color: var(--zr-surface);
  background-image: radial-gradient(var(--zr-dot) 1.1px, transparent 1.25px);
  background-size: 18px 18px;
}

.zr-rtree {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.zr-rtree-grid {
  --zr-cols: 3;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--zr-cols), minmax(0, 1fr));
  gap: clamp(0.65rem, 2.2vw, 2.75rem) clamp(0.28rem, 1.2vw, 1.45rem);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: clamp(0.45rem, 1.5vw, 1.2rem) clamp(0.3rem, 1.2vw, 1.4rem) clamp(0.55rem, 1.6vw, 1.5rem);
}

.zr-rlines {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.zr-rlines path {
  stroke: var(--zr-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zr-rnode {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "art"
    "name"
    "lv"
    "bar";
  justify-items: stretch;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem 0.65rem 0.8rem;
  overflow: hidden;
  border: 1px solid var(--zr-border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--zr-surface-2) 0%, var(--zr-surface) 100%);
  color: var(--zr-text);
  box-shadow: var(--zr-shadow);
}

.zr-rnode__hit {
  display: contents;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

.zr-rnode__hit img {
  grid-area: art;
  justify-self: center;
  width: clamp(2rem, 11vw, 4.5rem);
  height: clamp(2rem, 11vw, 4.5rem);
  object-fit: contain;
}

.zr-rnode__name {
  grid-area: name;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.5em;
  padding: 0 0.2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(0.68rem, 2.4vw, 0.98rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.zr-rnode__lv {
  position: relative;
  grid-area: lv;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.zr-rnode__face {
  display: block;
  width: 100%;
  color: var(--zr-highlight);
  font-size: clamp(0.62rem, 2.1vw, 0.86rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.zr-rnode__lv select {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.zr-rbar {
  grid-area: bar;
  display: flex;
  gap: 0.18rem;
  width: 100%;
  margin-top: 0.1rem;
}

.zr-rseg {
  flex: 1 1 0;
  height: 0.42rem;
  border-radius: 99px;
  background: var(--zr-surface-3);
}

.zr-rseg.is-on {
  background: var(--zr-primary);
}

.zr-rdone {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: clamp(2.4rem, 34%, 4.8rem);
  height: clamp(2.4rem, 34%, 4.8rem);
  overflow: hidden;
  pointer-events: none;
}

.zr-rdone[hidden] {
  display: none;
}

.zr-rdone span {
  position: absolute;
  top: 0.72rem;
  right: -1.45rem;
  width: 6.4rem;
  transform: rotate(45deg);
  background: var(--zr-success);
  color: var(--zr-on-success);
  font-size: clamp(0.55rem, 2vw, 0.72rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.zr-rone {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  max-width: 36rem;
  margin-top: 0.2rem;
  padding: 1rem 0.9rem 1.1rem;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background: var(--zr-surface);
}

.zr-rone img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.zr-rone__lv {
  margin: 0;
  color: var(--zr-muted);
  font-weight: 800;
}

.zr-rone__desc {
  width: 100%;
  margin: 0.15rem 0 0;
  text-align: left;
  line-height: 1.4;
}

.zr-rone__set {
  display: grid;
  gap: 0.2rem;
  width: min(16rem, 100%);
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
}

.zr-rone__kicker {
  width: 100%;
  margin: 0.35rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zr-rone__reqs {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zr-rone__reqs li {
  margin: 0.15rem 0 0;
}

.zr-rone__buffbox {
  width: 100%;
}

.zr-rone__buffs {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: zr-buff;
}

.zr-rone__buffs li {
  margin: 0.28rem 0 0;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-surface-2);
  counter-increment: zr-buff;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.zr-rone__buffs li::before {
  content: counter(zr-buff) ") ";
  color: var(--zr-muted);
  font-weight: 800;
}

.zr-rone__buffs strong {
  color: var(--zr-secondary);
  font-weight: 800;
}

.zr-rone__none {
  width: 100%;
  margin: 0;
  color: var(--zr-muted);
  font-weight: 700;
}

.zr-rone .zr-rtotal {
  width: 100%;
}

@media (max-width: 899px) {
  .zr-rcats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    overflow: visible;
    padding-right: 0;
  }

  .zr-rcard {
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    gap: 0.2rem;
    padding: 0.45rem 0.4rem 0.55rem;
    border-radius: 14px;
  }

  .zr-rcard__gate {
    padding: 0.1rem 0.28rem;
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .zr-rcard__art {
    height: auto;
  }

  .zr-rcard__art img {
    width: 3.4rem;
    height: 3.4rem;
  }

  .zr-rcard__name {
    min-height: 0;
    font-size: var(--zr-fs-xs);
    overflow-wrap: anywhere;
  }

  .zr-rcard__pct {
    font-size: var(--zr-fs-lg);
  }

  .zr-rcard__lines {
    gap: 0.16rem;
    min-height: 0;
    margin-top: 0.15rem;
  }

  .zr-rcard__line {
    gap: 0.2rem;
    min-width: 0;
    font-size: 0.68rem;
    flex-wrap: wrap;
  }

  .zr-rside {
    position: sticky;
    top: 4rem;
    z-index: 30;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem 0.45rem;
  }

  .zr-rside__id {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.4rem;
  }

  .zr-rside__id img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .zr-rside h1 {
    font-size: var(--zr-fs-base);
  }

  .zr-rside__count,
  .zr-rside__alpha,
  .zr-rside__kicker {
    display: none;
  }

  .zr-rside .zr-rtotal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.6rem;
  }

  .zr-rside .zr-rtotal__label {
    font-size: var(--zr-fs-xs);
  }

  .zr-rside .zr-rtotal__num {
    font-size: var(--zr-fs-sm);
  }

  .zr-rside .zr-rtools {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .zr-rside .zr-rtools button {
    min-height: 0;
    padding: 0.32rem 0.4rem;
    font-size: var(--zr-fs-xs);
  }

  .zr-rnode {
    padding: 0.45rem 0.25rem 0.4rem;
  }

  .zr-rnode__name {
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .zr-rcats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    overflow: visible;
  }

  .zr-rcard {
    flex: none;
    width: auto;
    min-height: 26rem;
  }

  .zr-rtotal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zr-rside .zr-rtotal {
    grid-template-columns: 1fr;
  }

  .zr-rwork {
    grid-template-columns: 17.5rem minmax(0, 1fr);
    align-items: start;
  }

  .zr-rside {
    position: sticky;
    top: 5rem;
    z-index: 5;
    align-self: start;
  }
}

html.zr-sheet-lock,
html.zr-sheet-lock body {
  overflow: hidden;
}

.zr-rsheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.zr-rsheet[hidden] {
  display: none;
}

.zr-rsheet__back {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--zr-overlay);
  cursor: pointer;
}

.zr-rsheet__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100%);
  max-height: calc(100dvh - 1rem);
  min-height: 0;
  padding: 0.85rem 0.75rem 0.7rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: var(--zr-surface);
  color: var(--zr-text);
  box-shadow: var(--zr-shadow-lg);
}

.zr-rsheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.zr-rsheet__title {
  margin: 0;
  color: var(--zr-text);
  font-size: var(--zr-fs-lg);
  line-height: 1.2;
}

.zr-rsheet__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.zr-rsheet__lvline {
  color: var(--zr-text);
  font-size: var(--zr-fs-sm2);
  font-weight: 800;
  white-space: nowrap;
}

.zr-rsheet__x {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--zr-text);
  font-size: var(--zr-fs-2xl);
  line-height: 1;
  cursor: pointer;
}

.zr-rsheet__req {
  margin: 0.35rem 0 0.55rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
  line-height: 1.35;
}

.zr-rsheet__list {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.1rem;
}

.zr-rsheet__wait {
  margin: 0.4rem 0;
  color: var(--zr-muted);
  font-weight: 700;
}

.zr-rsheet__row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.35rem 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: var(--zr-surface-2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.zr-rsheet__row.is-zero {
  background: var(--zr-surface-3);
}

.zr-rsheet__row.is-done {
  background: var(--zr-success-soft);
}

.zr-rsheet__mark {
  color: var(--zr-highlight);
  font-size: var(--zr-fs-md);
  font-weight: 800;
  line-height: 1.2;
}

.zr-rsheet__main {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.zr-rsheet__stats,
.zr-rsheet__sumbits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.65rem;
  min-width: 0;
}

.zr-rsheet__bit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: var(--zr-fs-sm);
  font-weight: 800;
}

.zr-rsheet__pwr {
  color: var(--zr-highlight);
}

.zr-rsheet__pwr::before {
  content: "\26A1\00a0";
}

.zr-rsheet__time::before {
  content: "\23F1\00a0";
}

.zr-rsheet__buff {
  color: var(--zr-success);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
  line-height: 1.3;
}

.zr-rsheet__foot {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--zr-border);
}

.zr-rsheet__sum {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
}

.zr-rsheet__sumlabel {
  font-size: var(--zr-fs-sm);
  font-weight: 800;
}

.zr-rsheet .zr-ricon {
  width: 16px;
  height: 16px;
}

.zr-rsheet__need {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
  line-height: 1.3;
}

.zr-rsheet__notice {
  margin: 0.45rem 0 0.35rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--zr-primary);
  border-radius: 12px;
  background: var(--zr-primary-soft);
}

.zr-rsheet__notice[hidden] {
  display: none;
}

.zr-rsheet__notetitle {
  margin: 0;
  font-size: var(--zr-fs-sm);
  font-weight: 800;
}

.zr-rsheet__notelist {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  line-height: 1.35;
}

.zr-rsheet__notebtn {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--zr-success);
  border-radius: 12px;
  background: var(--zr-success-soft);
  color: var(--zr-text);
  font: inherit;
  font-size: var(--zr-fs-xs);
  font-weight: 800;
  cursor: pointer;
}


.zr-hgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}

.zr-hcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.55rem 0.45rem 0.7rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--zr-surface-2), var(--zr-surface));
  color: var(--zr-text);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--zr-shadow);
}

.zr-hcard:hover {
  border-color: var(--zr-accent);
  color: var(--zr-text);
}

.zr-hcard__frame {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: 12px;
  background: var(--zr-art-bg);
}

.zr-hcard__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.zr-hcard__name {
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.zr-hcard__meta {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
  line-height: 1.3;
}

.zr-hcalc {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

.zr-hstage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
  min-height: 18rem;
  padding: 1rem 0.85rem 1.15rem;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 18%, var(--zr-hero-a), transparent 55%),
    radial-gradient(ellipse at 0% 100%, var(--zr-hero-b), transparent 50%),
    linear-gradient(180deg, var(--zr-surface-2), var(--zr-surface));
  box-shadow: var(--zr-shadow);
  overflow: hidden;
}

.zr-hstage__art {
  width: min(14rem, 72%);
  height: auto;
  max-height: 18rem;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.zr-hstage__plate {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: min(16rem, 100%);
  margin-top: -0.35rem;
  padding: 0.55rem 0.85rem 0.65rem;
  border: 1px solid var(--zr-border-strong);
  border-radius: 10px;
  background: var(--zr-surface);
  box-shadow: var(--zr-shadow);
  text-align: center;
}

.zr-hstage__name {
  margin: 0;
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zr-text);
}

.zr-hstage__meta {
  margin: 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
}

.zr-hstage__level {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--zr-highlight);
}

.zr-hstars {
  display: flex;
  gap: 0.28rem;
  margin-top: 0.2rem;
}

.zr-hstar {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid var(--zr-border-strong);
  background: var(--zr-inset);
  box-shadow: none;
}

.zr-hstar.is-on {
  border-color: #f5b942;
  background: radial-gradient(circle at 35% 30%, #ffe29a, #f5b942 55%, #b57a12);
  box-shadow: 0 0 8px rgba(245, 185, 66, 0.55);
}

.zr-hpanel__title {
  margin: 0 0 0.35rem;
  font-size: var(--zr-fs-base);
}

.zr-hpanel[hidden] {
  display: none !important;
}

.zr-hcosts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin: 0.55rem 0 0.75rem;
}

.zr-hcost {
  display: grid;
  gap: 0.15rem;
}

.zr-hcost__label {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zr-hcost strong,
.zr-hstat__num {
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-xl);
  color: var(--zr-highlight);
}

.zr-hblock {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: var(--zr-surface);
  margin: 0 0 0.75rem;
}

.zr-hblock h3 {
  margin: 0 0 0.35rem;
}

.zr-hstats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem 0.8rem;
}

.zr-hstat {
  display: grid;
  gap: 0.1rem;
}

.zr-hstat__label {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
}

.zr-hskills {
  display: grid;
  gap: 0.75rem;
}

.zr-hskill {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: var(--zr-surface);
}

.zr-hskill__top {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.zr-hskill__top img,
.zr-hskill__ph {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 8px;
  background: var(--zr-inset);
}

.zr-hskill h3,
.zr-hskill p {
  margin: 0;
}

.zr-hskill__cost {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
}

.zr-hskill__cap {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 600;
}

.zr-hbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--zr-tabbar-h) + 0.45rem + env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(var(--zr-max), calc(100% - 1.2rem));
  margin-inline: auto;
  padding: 0.45rem;
  border: 1px solid var(--zr-border);
  border-radius: 14px;
  background: var(--zr-header);
  backdrop-filter: blur(10px);
  box-shadow: var(--zr-shadow-lg);
}

.zr-hbar__btn {
  appearance: none;
  min-height: 2.7rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--zr-muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.zr-hbar__btn.is-active {
  border-color: var(--zr-accent);
  background: var(--zr-accent-soft);
  color: var(--zr-accent);
  box-shadow: none;
}

@media (min-width: 1024px) {
  .zr-hcalc {
    padding-bottom: 5.5rem;
  }

  .zr-hbar {
    bottom: 0.85rem;
  }
}

@media (min-width: 768px) {
  .zr-hstage {
    min-height: 22rem;
  }

  .zr-hstage__art {
    width: min(16rem, 48%);
    max-height: 22rem;
  }
}

@media (max-width: 899px) {
  .zr-hgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .zr-hcard {
    padding: 0.4rem 0.35rem 0.55rem;
  }

  .zr-hcard__name {
    font-size: var(--zr-fs-sm);
  }
}

.zr-hskill-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 0.8rem;
}

.zr-hskill-rail__btn {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-inset);
  cursor: pointer;
}

.zr-hskill-rail__btn.is-active {
  border: 2px solid var(--zr-accent);
  box-shadow: 0 0 0 1px var(--zr-accent), 0 0 14px var(--zr-accent-soft);
}

.zr-hskill-rail__btn img,
.zr-hskill-rail__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
}

.zr-hskill-rail__lock {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  width: 0.85rem;
  height: 0.7rem;
  border: 2px solid #f3e2b0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.55);
}

.zr-hskill-rail__lock::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: -0.42rem;
  width: 0.42rem;
  height: 0.38rem;
  border: 2px solid #f3e2b0;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.zr-hskill.is-locked .zr-hskill__stepper,
.zr-hskill[hidden],
.zr-hskill__stepper[hidden],
.zr-hskill__books[hidden],
.zr-hskill__stars[hidden],
.zr-hskill__maxline[hidden],
.zr-hskill__unlock[hidden],
.zr-hskill__need[hidden],
.zr-hskill__desc[hidden],
.zr-hskill__cd[hidden],
.zr-hskill-rail__lock[hidden],
.zr-hskill-rail__lv[hidden] {
  display: none !important;
}

.zr-hskill-rail__btn.is-locked img,
.zr-hskill-rail__btn.is-locked .zr-hskill-rail__ph {
  filter: grayscale(1);
  opacity: 0.55;
}

.zr-hskill.is-locked {
  filter: grayscale(0.85);
  opacity: 0.72;
}

.zr-hskill-rail__lv {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.12rem 0 0.08rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #f5b942;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  border-radius: 0 0 11px 11px;
  pointer-events: none;
}

.zr-hskill__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.zr-hskill__titles h3 {
  margin: 0;
}

.zr-hskill__type {
  margin: 0.1rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
}

.zr-hskill__stepper {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.zr-hskill__stepper button,
.zr-hstar-step button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--zr-border-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--zr-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.zr-hskill-level {
  width: 3.2rem;
  text-align: center;
  font-weight: 700;
}

.zr-hskill__maxline,
.zr-hskill__stars {
  margin: 0.45rem 0 0;
}

.zr-hskill__maxlabel {
  display: block;
  color: var(--zr-highlight);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
}

.zr-hskill__stars {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  list-style: none;
}

.zr-hskill__starline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zr-hstars--sm .zr-hstar {
  width: 0.55rem;
  height: 0.55rem;
}

.zr-hskill__costs {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.55rem;
}

.zr-hskill__cost-next,
.zr-hskill__cost-max,
.zr-hskill__need {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  margin: 0;
}

.zr-hmedal {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.zr-hmedal__art {
  width: 5.5rem;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  background: var(--zr-inset);
}

.zr-hmedal__label {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.zr-hstar-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.zr-hstar-readout {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 7rem;
}

.zr-hstar-label {
  margin: 0;
  font-weight: 800;
  color: var(--zr-gold-text);
}

.zr-hstars--lg .zr-hstar {
  width: 1rem;
  height: 1rem;
}

.zr-hstar-cap {
  margin: 0.55rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  font-weight: 700;
}

.zr-hstar-target {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.8rem;
}

.zr-hsec {
  scroll-margin-top: 5.5rem;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: var(--zr-surface);
}

.zr-hsec[hidden] {
  display: none !important;
}

.zr-hlevel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.zr-hlevel h3,
.zr-hsec > h3 {
  margin: 0.85rem 0 0.45rem;
}

.zr-hnum {
  width: 5.6rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--zr-border-strong);
  border-radius: 8px;
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.zr-hcheck {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.zr-hcheck input {
  margin-top: 0.2rem;
}

.zr-hstar-step.is-held {
  opacity: 0.45;
}

.zr-hskill__maxtext {
  display: block;
  margin-top: 0.25rem;
}


@media (max-width: 640px) {
  .zr-hmedal {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }

  .zr-hmedal__art {
    width: 4.2rem;
  }
}


/* Hero page cards matching the level, equipment, and base-stat stack. */
.zr-hsec--hero {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.zr-hcardish,
.zr-hequip {
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: 16px;
  background: var(--zr-surface);
}

.zr-hsec--hero .zr-hpanel__title {
  margin: 0;
  font-size: var(--zr-fs-base);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-hsec--hero .zr-hlevel {
  margin-bottom: 0.7rem;
}

.zr-hexp {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  margin: 0;
}

.zr-hexp__tag {
  min-width: 2.4rem;
  color: var(--zr-text);
  font-size: var(--zr-fs-base);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.zr-hexp__pair {
  color: var(--zr-muted);
  font-weight: 600;
}

.zr-hexp__pair strong {
  color: var(--zr-highlight);
  font-family: var(--zr-font-display);
  font-size: var(--zr-fs-md);
  font-weight: 800;
}

.zr-hequip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.zr-hequip__slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.zr-hequip__slot {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.35rem;
  min-height: 5.6rem;
  padding: 0.45rem 0.2rem;
  border: 1px dashed var(--zr-border-strong);
  border-radius: 12px;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.zr-hequip__plus {
  color: var(--zr-muted);
  font-size: var(--zr-fs-xl);
  font-weight: 500;
  line-height: 1;
}

.zr-hequip__hint {
  margin: 0.75rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
}

.zr-hsec--hero .zr-hstats-title {
  margin-bottom: 0.7rem;
}

.zr-hsec--hero .zr-hstats {
  display: grid;
  gap: 0.55rem;
}

.zr-hsec--hero .zr-hstat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: var(--zr-inset);
}

.zr-hsec--hero .zr-hstat__label {
  color: var(--zr-text);
  font-size: var(--zr-fs-base);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.zr-hsec--hero .zr-hstat__num {
  font-size: var(--zr-fs-lg);
}

.zr-hmax {
  margin: 0.85rem 0 0;
  color: var(--zr-highlight);
  font-weight: 700;
  line-height: 1.45;
}

.zr-hnote {
  margin: 0.55rem 0 0;
  font-size: var(--zr-fs-sm);
  line-height: 1.45;
}

html[data-theme="light"] .zr-hcardish,
html[data-theme="light"] .zr-hequip {
  background: var(--zr-surface);
  border-color: var(--zr-border);
}

/* Public gift codes. */
.zr-codes {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.zr-code-group {
  padding: 1rem;
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius);
  background: var(--zr-surface);
  box-shadow: var(--zr-shadow);
}

.zr-code-group h2 {
  margin: 0 0 0.7rem;
  color: var(--zr-secondary);
  font-size: var(--zr-fs-lg);
}

.zr-code-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.55rem;
}

.zr-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--zr-border);
  border-radius: 10px;
  background: var(--zr-surface-2);
}

.zr-code-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--zr-text);
  font-size: var(--zr-fs-base);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.zr-code-copy {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--zr-secondary);
  border-radius: 8px;
  background: transparent;
  color: var(--zr-secondary);
  font: inherit;
  font-size: var(--zr-fs-sm);
  font-weight: 700;
  cursor: pointer;
}

.zr-code-copy:hover {
  background: var(--zr-secondary);
  color: var(--zr-on-accent);
}


/* Skill detail card, matched to the one-skill layout. */
.zr-hsec--skills {
  padding: 0;
  border: 0;
  background: transparent;
}

.zr-hskill {
  gap: 0.55rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: 18px;
  background: var(--zr-surface);
}

.zr-hskill__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.zr-hskill__name h3 {
  margin: 0;
  font-size: var(--zr-fs-xl);
  font-weight: 800;
}

.zr-hskill__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  background: var(--zr-success-soft);
  color: var(--zr-success);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.zr-hskill__type {
  margin: -0.15rem 0 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm2);
  font-style: italic;
  font-weight: 600;
}

.zr-hskill__stepper {
  justify-content: flex-start;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.zr-hskill__stepper .zr-hskill-minus,
.zr-hskill__stepper .zr-hskill-plus {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border-color: var(--zr-accent);
  font-size: var(--zr-fs-lg);
  line-height: 1;
}

.zr-hskill__stepper .zr-hskill-minus:disabled,
.zr-hskill__stepper .zr-hskill-plus:disabled {
  opacity: 0.35;
  cursor: default;
}

.zr-hskill-level {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 7.2rem;
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid var(--zr-accent);
  border-radius: 12px;
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font-weight: 800;
}

.zr-hskill-level::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--zr-accent);
}

.zr-hskill-level__pick {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.zr-hskill__desc {
  margin: 0.35rem 0 0;
  font-size: var(--zr-fs-md);
  font-weight: 700;
  line-height: 1.35;
}

.zr-hskill__cd {
  margin: 0.2rem 0 0;
  color: var(--zr-muted);
  font-weight: 700;
}

.zr-hskill__num {
  color: var(--zr-highlight);
  font-weight: 800;
}

.zr-hskill__maxline {
  display: block;
  margin: 0.35rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--zr-inset);
}

.zr-hskill__maxlabel {
  color: var(--zr-highlight);
  font-size: var(--zr-fs-base);
  font-weight: 800;
}

.zr-hskill__maxtext {
  display: block;
  margin-top: 0.2rem;
  color: var(--zr-text);
  font-weight: 700;
}

.zr-hskill__stars {
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.zr-hskill__starline {
  gap: 0.85rem;
  align-items: flex-start;
}

.zr-hskill__starline .zr-hstars {
  width: 5.4rem;
  flex: none;
  margin: 0;
}

.zr-hskill__extra {
  color: var(--zr-text);
  font-weight: 700;
}

.zr-hskill__books {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--zr-border);
}

.zr-hskill__books img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.zr-hskill__books-label {
  margin: 0 0 0.2rem;
  font-weight: 800;
}

.zr-hskill__books .zr-hskill__cost-next,
.zr-hskill__books .zr-hskill__cost-max {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm2);
}

.zr-hskill__books .zr-hskill__cost-next strong,
.zr-hskill__books .zr-hskill__cost-max strong {
  color: var(--zr-text);
}


/* 1.6.80: skill icons span the full width; smaller skill card text. */
.zr-hskill-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  margin: 0.4rem 0 0.9rem;
}

.zr-hskill-rail__btn {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.zr-hskill-rail__btn img,
.zr-hskill-rail__ph {
  border-radius: 13px;
}

.zr-hskill-rail__lv {
  font-size: var(--zr-fs-xs);
  padding: 0.18rem 0 0.12rem;
  border-radius: 0 0 13px 13px;
}

.zr-hskill-rail__lock {
  right: 0.3rem;
  bottom: 0.3rem;
}

.zr-hskill__name h3 {
  font-size: var(--zr-fs-h3);
}

.zr-hskill__type {
  font-size: var(--zr-fs-sm);
}

.zr-hskill-level {
  font-size: var(--zr-fs-sm2);
}

.zr-hskill__desc {
  font-size: var(--zr-fs-sm2);
  line-height: 1.4;
}

.zr-hskill__cd,
.zr-hskill__unlock {
  font-size: var(--zr-fs-sm);
}

.zr-hskill__maxlabel {
  font-size: var(--zr-fs-sm);
}

.zr-hskill__maxtext,
.zr-hskill__extra {
  font-size: var(--zr-fs-sm);
}

.zr-hskill__books-label {
  font-size: var(--zr-fs-sm);
}

.zr-hskill__books .zr-hskill__cost-next,
.zr-hskill__books .zr-hskill__cost-max {
  font-size: var(--zr-fs-sm);
}

/* ===== 1.6.82 — game-style Hero Medal star card (Stars panel) ===== */
.zr-hms {
  --zr-hms-gold: var(--zr-gold-text);
  --zr-hms-text: var(--zr-text);
  --zr-hms-muted: var(--zr-muted);
  --zr-hms-red: #6e0d0d;
  padding: 18px 20px 20px;
  border-radius: 20px;
  border: 1px solid var(--zr-border);
  background: linear-gradient(180deg, var(--zr-surface-2) 0%, var(--zr-surface) 100%);
  box-shadow: var(--zr-shadow);
  color: var(--zr-hms-text);
  font-family: Roboto, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.3;
}

.zr-hms p {
  margin: 0;
}

.zr-hms__top {
  display: flex;
  justify-content: flex-end;
  margin: -6px -4px 2px 0;
}

.zr-hms__recruit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  font-size: var(--zr-fs-base);
  font-weight: 400;
  color: var(--zr-hms-muted);
}

.zr-hms__recruit input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  border-radius: 5px;
  border: 2px solid var(--zr-border-strong);
  background: var(--zr-surface);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
}

.zr-hms__recruit input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 3px solid #1a1510;
  border-bottom: 3px solid #1a1510;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.zr-hms__recruit input:checked {
  background: var(--zr-hms-gold);
  border-color: var(--zr-hms-gold);
}

.zr-hms__recruit input:checked::after {
  opacity: 1;
}

.zr-hms__recruit input:checked + span {
  color: var(--zr-hms-gold);
}

.zr-hms__recruit input:focus-visible {
  outline: 2px solid var(--zr-hms-gold);
  outline-offset: 2px;
}

.zr-hms__row {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.zr-hms__row.is-held .zr-hms__stars {
  opacity: 0.55;
}

.zr-hms .zr-hms__btn {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--zr-border-strong);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font: 500 1.375rem/1 Roboto, "Segoe UI", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.zr-hms .zr-hms__btn:hover:not(:disabled) {
  border-color: var(--zr-accent);
  background: var(--zr-accent-soft);
}

.zr-hms .zr-hms__btn:active:not(:disabled) {
  transform: scale(0.93);
}

.zr-hms .zr-hms__btn:disabled {
  color: var(--zr-muted);
  opacity: 0.55;
  border-color: var(--zr-border);
  cursor: not-allowed;
}

.zr-hms .zr-hms__btn:focus-visible,
.zr-hms__star:focus-visible {
  outline: 2px solid var(--zr-hms-gold);
  outline-offset: 2px;
}

.zr-hms__stars {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.zr-hms__star {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.zr-hms__star:hover {
  transform: translateY(-1px) scale(1.03);
}

.zr-hms__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 1.5px rgba(110, 0, 0, 0.6)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}

.zr-hms__edge {
  fill: none;
  stroke: var(--zr-hms-red);
  stroke-width: 4.5;
  stroke-linejoin: round;
}

.zr-hms__fl { fill: #a4a4a4; transition: fill 160ms ease-out; }
.zr-hms__fd { fill: #838383; transition: fill 160ms ease-out; }
.zr-hms__arm.is-on .zr-hms__fl { fill: #ffd54a; }
.zr-hms__arm.is-on .zr-hms__fd { fill: #f3a516; }

.zr-hms__seams {
  fill: none;
  stroke: rgba(40, 30, 20, 0.45);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.zr-hms__outline {
  fill: none;
  stroke: #3d0606;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.zr-hms__star.is-full .zr-hms__svg {
  filter: drop-shadow(0 0 2px rgba(150, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(255, 190, 60, 0.35));
}

.zr-hms__star.is-pulse .zr-hms__svg {
  animation: zr-hms-pulse 300ms ease-out;
}

@keyframes zr-hms-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.zr-hms__label {
  margin: 0 0 16px !important;
  text-align: center;
  font-size: var(--zr-fs-2xl);
  font-weight: 400;
  color: var(--zr-hms-gold);
  font-variant-numeric: tabular-nums;
}

.zr-hms__hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.zr-hms__frame {
  position: relative;
  flex: none;
  width: 68px;
  height: 68px;
  display: block;
}

.zr-hms__frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  transform: rotate(45deg);
  border-radius: 9px;
  background: linear-gradient(135deg, #9cc4ff 0%, #3d74e6 45%, #1c3d9e 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.zr-hms__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, #6f9cf2 0 6px, #1c3d9e 6.5px 8px, transparent 8.5px),
    radial-gradient(circle at 78% 22%, #6f9cf2 0 6px, #1c3d9e 6.5px 8px, transparent 8.5px),
    radial-gradient(circle at 50% 92%, #4f80e8 0 4px, transparent 4.5px);
}

.zr-hms__frame img {
  position: absolute;
  z-index: 1;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  max-width: none;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 12%;
  background: #27323c;
}

.zr-hms__title {
  font-size: var(--zr-fs-xl);
  font-weight: 400;
  color: var(--zr-hms-text);
}

.zr-hms__costs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.6rem;
  row-gap: 4px;
  margin-bottom: 10px;
}

.zr-hms__cost {
  font-size: var(--zr-fs-xl);
  color: var(--zr-hms-text);
}

.zr-hms__cost strong {
  color: var(--zr-hms-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zr-hms__cap {
  font-size: var(--zr-fs-md);
  color: var(--zr-hms-muted);
}

@media (max-width: 560px) {
  .zr-hms {
    padding: 14px 14px 16px;
  }

  .zr-hms .zr-hms__btn {
    width: 44px;
    height: 44px;
    font-size: var(--zr-fs-xl);
  }

  .zr-hms__row {
    gap: 2px;
  }

  .zr-hms__stars {
    gap: 0;
  }

  .zr-hms__recruit {
    font-size: var(--zr-fs-base);
  }

  .zr-hms__label {
    font-size: var(--zr-fs-xl);
  }

  .zr-hms__frame {
    width: 58px;
    height: 58px;
  }

  .zr-hms__frame img {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }

  .zr-hms__title,
  .zr-hms__cost {
    font-size: var(--zr-fs-md);
  }

  .zr-hms__cap {
    font-size: var(--zr-fs-base);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zr-hms *,
  .zr-hms *::before,
  .zr-hms *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 1.6.84 — mini segmented SVG stars (hero top card + skill star lines) ===== */
.zr-hstars {
  align-items: center;
  gap: 0.12rem;
}

.zr-hstar,
.zr-hstar.is-on {
  display: inline-block;
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  line-height: 0;
}

.zr-hstar .zr-hms__svg {
  width: 100%;
  height: 100%;
}

.zr-hstar.is-full .zr-hms__svg {
  filter: drop-shadow(0 0 1.5px rgba(150, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 190, 60, 0.45));
}

.zr-hstars--sm {
  gap: 0.05rem;
}

.zr-hstars--sm .zr-hstar,
.zr-hstars--sm .zr-hstar.is-on {
  width: 0.95rem;
  height: 0.95rem;
}

.zr-hskill__starline .zr-hstars {
  width: auto;
}

/* ===== 1.6.85 — site search (header panel + homepage) ===== */
.zr-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
}

.zr-search-toggle:hover,
.zr-search-toggle[aria-expanded="true"] {
  border-color: var(--zr-accent);
  color: var(--zr-accent);
}

.zr-search-toggle svg,
.zr-sbox__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.zr-search-toggle__text,
.zr-search-toggle__kbd {
  display: none;
}

.zr-search-toggle__kbd {
  padding: 0 0.35rem;
  border: 1px solid var(--zr-border);
  border-radius: 4px;
  font: 600 0.72rem/1.35 ui-monospace, Menlo, Consolas, monospace;
  color: var(--zr-muted);
}

@media (min-width: 1100px) {
  .zr-search-toggle__text,
  .zr-search-toggle__kbd {
    display: inline;
  }
}

.zr-search-panel {
  border-top: 1px solid var(--zr-border);
  background: var(--zr-header);
}

.zr-search-panel[hidden] {
  display: none !important;
}

.zr-search-panel__inner {
  width: min(var(--zr-max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.6rem 0 0.75rem;
}

.zr-sbox {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
}

.zr-sbox__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zr-accent);
  display: flex;
  pointer-events: none;
}

.zr-sbox__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 2.9rem 0.7rem 2.6rem;
  border: 1px solid var(--zr-border-strong);
  border-radius: 12px;
  background: var(--zr-bg);
  color: var(--zr-text);
  font: inherit;
  font-size: var(--zr-fs-base);
  -webkit-appearance: none;
  appearance: none;
}

.zr-sbox__input::placeholder {
  color: var(--zr-muted);
}

.zr-sbox__input:focus {
  outline: none;
  border-color: var(--zr-accent);
  box-shadow: 0 0 0 3px var(--zr-accent-soft);
}

.zr-sbox__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.zr-sbox__close {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--zr-muted);
  font-size: var(--zr-fs-2xl);
  line-height: 1;
  cursor: pointer;
}

.zr-sbox__close:hover {
  color: var(--zr-text);
}

.zr-sbox__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: min(60vh, 28rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--zr-border);
  border-radius: 12px;
  background: var(--zr-surface);
  box-shadow: var(--zr-shadow-lg);
}

.zr-sbox__list[hidden] {
  display: none !important;
}

.zr-sbox__list li {
  margin: 0;
  padding: 0;
}

.zr-sbox__opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--zr-text);
  text-decoration: none;
}

.zr-sbox__opt:hover,
.zr-sbox__opt.is-active {
  background: var(--zr-accent-soft);
  color: var(--zr-text);
}

.zr-sbox__opt.is-active {
  box-shadow: inset 2px 0 0 var(--zr-accent);
}

.zr-sbox__thumb {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--zr-surface-2);
  border: 1px solid var(--zr-border);
  color: var(--zr-accent);
  font-weight: 700;
  font-size: var(--zr-fs-sm);
}

.zr-sbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.zr-sbox__txt {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.zr-sbox__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zr-sbox__title mark {
  background: none;
  color: var(--zr-highlight);
  font-weight: 700;
}

.zr-sbox__sub {
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zr-sbox__tag {
  flex: none;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--zr-border);
  border-radius: 999px;
  color: var(--zr-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.zr-sbox__opt--all {
  justify-content: center;
  color: var(--zr-link);
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
  border-top: 1px solid var(--zr-border);
  border-radius: 0 0 8px 8px;
}

/* Homepage hero search: results flow in-page (hero card clips overflow). */
.zr-sbox--hero {
  flex-wrap: wrap;
  margin: 0.25rem 0 0;
  max-width: none;
}

.zr-sbox--hero .zr-sbox__input {
  min-height: 3.4rem;
  font-size: var(--zr-fs-md);
  padding-right: 1rem;
}

.zr-sbox--hero .zr-sbox__icon {
  top: 1.7rem;
}

.zr-sbox--hero .zr-sbox__list {
  position: static;
  flex: 1 0 100%;
  margin-top: 0.4rem;
  box-shadow: var(--zr-shadow);
}

.zr-home__hint {
  margin: 0;
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm);
}

/* ===== 1.6.85 — homepage hub ===== */
.zr-feat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zr-feat > li {
  display: flex;
}

.zr-feat__card {
  width: 100%;
  text-decoration: none;
  color: var(--zr-text);
  border-color: var(--zr-border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.zr-feat__card:hover {
  border-color: var(--zr-accent);
  color: var(--zr-text);
  transform: translateY(-1px);
}

.zr-feat__card h3 {
  margin: 0;
}

.zr-feat__card p {
  margin: 0;
}

.zr-feat__stat {
  color: var(--zr-primary-ink);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zr-feat__cta {
  margin-top: auto;
  color: var(--zr-link);
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
}

.zr-hgrid--home {
  grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr));
  gap: 0.6rem;
}

.zr-hgrid--home .zr-hcard__name {
  font-size: var(--zr-fs-sm2);
}

.zr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zr-chiplink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  border: 1px solid var(--zr-border);
  border-radius: 999px;
  background: var(--zr-surface);
  color: var(--zr-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--zr-fs-sm2);
}

.zr-chiplink:hover {
  border-color: var(--zr-accent);
  color: var(--zr-text);
}

.zr-chiplink img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.zr-home-codes {
  text-decoration: none;
  color: var(--zr-text);
  border-color: var(--zr-border);
}

.zr-home-codes:hover {
  border-color: var(--zr-accent);
  color: var(--zr-text);
}

.zr-home-codes p {
  margin: 0;
}

.zr-home-codes__count strong {
  color: var(--zr-highlight);
  font-size: var(--zr-fs-2xl);
  font-family: var(--zr-font-display);
}

.zr-home-codes__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.zr-home-codes__groups li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--zr-border);
  border-radius: 999px;
  font-size: var(--zr-fs-sm);
  color: var(--zr-muted);
}

.zr-home-codes__groups span {
  color: var(--zr-text);
  font-weight: 700;
}

.zr-home__disclaimer {
  font-size: var(--zr-fs-sm);
}

/* Hero card names follow the theme text tokens. */
.zr-hcard .zr-hcard__name {
  color: var(--zr-text);
}

.zr-hcard .zr-hcard__meta {
  color: var(--zr-muted);
}

/* ===== 1.6.86 — app shell + brand system ===== */
body {
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--zr-tabbar-h) + env(safe-area-inset-bottom));
}

/* Tabular numbers wherever values are shown. */
.zr-value,
.zr-bsum strong,
.zr-bres,
.zr-bresults__value,
.zr-bcard__lv,
.zr-bcard__power,
.zr-rtotal__num,
.zr-rnode__face,
.zr-rcard__pct,
.zr-rsheet__row,
.zr-hcost strong,
.zr-hstat__num,
.zr-hexp__pair strong,
.zr-hskill__num,
.zr-hmax,
.zr-hnum,
.zr-feat__stat,
.zr-home-codes__count strong,
.zr-code-row code,
table {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--zr-primary);
  color: var(--zr-on-primary);
}

:focus-visible {
  outline: 2px solid var(--zr-accent);
  outline-offset: 2px;
}

/* Header */
.zr-header {
  background: var(--zr-header);
  border-bottom: 1px solid var(--zr-border);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.zr-header__inner {
  min-height: var(--zr-header-h);
  gap: 0.5rem;
}

.zr-logo {
  margin-right: auto;
  min-width: 0;
}

.zr-nav {
  margin-inline: auto;
}

.zr-nav .zr-links {
  gap: 0.1rem;
}

.zr-nav .zr-links a {
  position: relative;
  padding: 0.5rem 0.62rem;
  border-radius: var(--zr-radius-sm);
  color: var(--zr-muted);
  font-size: var(--zr-fs-sm2);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.zr-nav .zr-links a:hover {
  color: var(--zr-text);
  background: var(--zr-surface-2);
}

.zr-nav .zr-links a[aria-current="page"] {
  color: var(--zr-text);
  background: var(--zr-accent-soft);
  box-shadow: inset 0 -2px 0 var(--zr-accent);
}

.zr-upd {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.1rem;
  border-radius: 50%;
  background: var(--zr-primary);
  box-shadow: 0 0 0 2px var(--zr-header), 0 0 8px rgba(255, 90, 31, 0.6);
  align-self: flex-start;
}

.zr-hactions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.zr-iconbtn,
.zr-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius-sm);
  background: var(--zr-surface-2);
  color: var(--zr-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.zr-iconbtn:hover,
.zr-iconbtn[aria-expanded="true"],
.zr-search-toggle:hover,
.zr-search-toggle[aria-expanded="true"] {
  border-color: var(--zr-accent);
  color: var(--zr-accent);
}

.zr-iconbtn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zr-theme-toggle {
  padding: 0;
  width: 2.5rem;
}

html[data-theme="dark"] .zr-theme-toggle .zr-when-light,
html[data-theme="light"] .zr-theme-toggle .zr-when-dark {
  display: none;
}

/* Notifications */
.zr-notif {
  position: relative;
  display: none;
}

.zr-notif__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 60;
  width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius-lg);
  background: var(--zr-surface);
  box-shadow: var(--zr-shadow-lg);
}

.zr-notif__panel[hidden] {
  display: none;
}

.zr-notif__title {
  margin: 0 0 0.6rem;
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zr-notif__empty {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.1rem 0.5rem 0.6rem;
  border: 1px dashed var(--zr-border);
  border-radius: var(--zr-radius);
  background: var(--zr-surface-2);
  color: var(--zr-muted);
  text-align: center;
}

.zr-notif__empty svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zr-notif__empty p {
  margin: 0;
  color: var(--zr-text);
  font-weight: 600;
}

/* Account avatar */
.zr-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--zr-border);
  border-radius: 50%;
  background: var(--zr-surface-2);
  color: var(--zr-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.zr-avatar:hover {
  border-color: var(--zr-accent);
  color: var(--zr-accent);
}

.zr-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.zr-avatar.is-user {
  border-color: transparent;
  background: linear-gradient(140deg, var(--zr-secondary), #0E8C99);
  color: #04161A;
  font-family: var(--zr-font-display);
  font-weight: 700;
}

body.page-my-z-route .zr-avatar,
.zr-avatar[aria-current="page"] {
  border-color: var(--zr-accent);
}

/* Search toggle: icon only on small screens */
.zr-search-toggle__text,
.zr-search-toggle__kbd {
  display: none;
}

@media (min-width: 1280px) {
  .zr-search-toggle {
    padding: 0 0.7rem;
    min-width: 8.5rem;
    justify-content: flex-start;
    color: var(--zr-muted);
  }

  .zr-search-toggle__text {
    display: inline;
    margin-right: auto;
    font-weight: 500;
  }

  .zr-search-toggle__kbd {
    display: inline;
  }
}

@media (min-width: 768px) {
  .zr-notif {
    display: block;
  }

  .zr-hactions {
    gap: 0.5rem;
  }
}

@media (max-width: 1023px) {
  .zr-nav {
    display: none;
  }
}

@media (max-width: 380px) {
  .zr-logo__sub {
    letter-spacing: 0.14em;
  }

  .zr-hactions {
    gap: 0.3rem;
  }
}

/* Mobile bottom navigation */
.zr-tabbar {
  padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom));
  background: var(--zr-header);
  border-top: 1px solid var(--zr-border);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.zr-tabbar a {
  position: relative;
  min-height: 3.35rem;
  border-radius: var(--zr-radius-sm);
  color: var(--zr-muted);
  font-size: var(--zr-fs-xs);
  font-weight: 600;
  letter-spacing: 0;
}

.zr-tabbar a:hover {
  background: transparent;
  color: var(--zr-text);
}

.zr-tabbar a[aria-current="page"] {
  color: var(--zr-accent);
  background: var(--zr-accent-soft);
}

.zr-tabbar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 30%;
  right: 30%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--zr-accent);
}

.zr-tabbar .zr-upd {
  position: absolute;
  top: 0.45rem;
  left: calc(50% + 0.55rem);
  margin: 0;
}

/* Buttons */
.zr-btn {
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--zr-radius-sm);
  background: var(--zr-primary);
  color: var(--zr-on-primary);
  box-shadow: var(--zr-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.zr-btn:hover {
  color: var(--zr-on-primary);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.zr-btn--ghost {
  background: var(--zr-surface-2);
  border-color: var(--zr-border);
  color: var(--zr-text);
  box-shadow: none;
}

.zr-btn--ghost:hover {
  color: var(--zr-accent);
  border-color: var(--zr-accent);
  filter: none;
}

/* Cards: layered surfaces, 1px borders, soft shadow */
.zr-card {
  border-radius: var(--zr-radius-lg);
}

a.zr-card:hover {
  border-color: var(--zr-accent);
}

.zr-eyebrow,
.zr-kicker {
  color: var(--zr-accent);
}

/* Coming soon panel */
.zr-soon--lg {
  justify-items: start;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse at 100% 0%, var(--zr-hero-a), transparent 50%),
    radial-gradient(ellipse at 0% 100%, var(--zr-hero-b), transparent 50%),
    var(--zr-surface);
}

.zr-soon__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--zr-border);
  border-radius: var(--zr-radius);
  background: var(--zr-surface-2);
  color: var(--zr-primary-ink);
}

.zr-soon__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.zr-soon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

/* Footer */
.zr-footer {
  background: var(--zr-surface);
}

.zr-footer__name {
  font-family: var(--zr-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zr-footer .zr-links a[aria-current="page"] {
  color: var(--zr-accent);
  background: transparent;
  box-shadow: none;
}

/* Forms pick up the accent focus ring */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--zr-accent);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .zr-btn:hover {
    transform: none;
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* The hero art stage stays a dark game frame in both modes so portraits read cleanly. */
.zr-hstage {
  --zr-surface: #0D171D;
  --zr-surface-2: #121F27;
  --zr-border: #243740;
  --zr-border-strong: #35505C;
  --zr-text: #F4F7F8;
  --zr-muted: #9EADB4;
  --zr-highlight: #FF8A57;
  --zr-inset: rgba(0, 0, 0, 0.28);
  --zr-hero-a: rgba(255, 90, 31, 0.34);
  --zr-hero-b: rgba(24, 199, 217, 0.16);
  color-scheme: dark;
  color: var(--zr-text);
}

/* Hero pages: leave room for the fixed Hero/Skills/Stars bar above the footer. */
body:has(.zr-hbar) {
  padding-bottom: calc(var(--zr-tabbar-h) + 4.4rem + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
  body:has(.zr-hbar) {
    padding-bottom: 4.6rem;
  }
}

/* 1.6.87 hero filters */
.zr-hfilter { display: grid; gap: 0.6rem; margin: 0 0 1.1rem; padding: 0.85rem 1rem; background: var(--zr-surface); border: 1px solid var(--zr-border); border-radius: var(--zr-radius); }
.zr-hfilter__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.zr-hfilter__label { min-width: 3.6rem; font-size: var(--zr-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zr-muted); }
.zr-hfilter .zr-chip { font-size: var(--zr-fs-sm); min-height: 2.25rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.zr-hfilter .zr-chip:hover { border-color: var(--zr-accent); }
.zr-hfilter .zr-chip:focus-visible { outline: 2px solid var(--zr-accent); outline-offset: 2px; }
.zr-chip__n { font-size: var(--zr-fs-xs); opacity: 0.7; font-variant-numeric: tabular-nums; }
.zr-hfilter__count { margin: 0; font-size: var(--zr-fs-sm); color: var(--zr-muted); }
.zr-hcard[hidden], .zr-hcard-wrap[hidden] { display: none !important; }
.zr-hfilter__empty { text-align: center; padding: 2rem 1rem; color: var(--zr-muted); border: 1px dashed var(--zr-border); border-radius: var(--zr-radius); }
@media (max-width: 767px) {
	.zr-hfilter { padding: 0.7rem; }
	.zr-hfilter__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -0.7rem; padding: 0 0.7rem; }
	.zr-hfilter__row::-webkit-scrollbar { display: none; }
	.zr-hfilter .zr-chip { flex: 0 0 auto; }
}

/* 1.6.87 compact changelog */
.zr-log { display: grid; gap: 0.6rem; max-width: 46rem; }
.zr-log__day { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.25rem 1rem; padding: 0.7rem 0.9rem; background: var(--zr-surface); border: 1px solid var(--zr-border); border-radius: var(--zr-radius-sm); }
.zr-log__day h2 { margin: 0; font-size: var(--zr-fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--zr-accent); line-height: 1.5; }
.zr-log__day ul { margin: 0; padding-left: 1rem; font-size: var(--zr-fs-sm2); line-height: 1.5; color: var(--zr-text); }
.zr-log__day li + li { margin-top: 0.15rem; }
.zr-log__day li::marker { color: var(--zr-muted); }
@media (max-width: 599px) { .zr-log__day { grid-template-columns: 1fr; } }

/* 1.6.88 touch targets (44px) */
.zr-iconbtn,
.zr-search-toggle { min-width: 2.75rem; min-height: 2.75rem; }
.zr-avatar { width: 2.75rem; height: 2.75rem; }
.zr-hfilter .zr-chip { min-height: 2.75rem; }
.zr-log__day ul { font-size: var(--zr-fs-sm2); }
.zr-log__day h2 { font-size: var(--zr-fs-xs); }

/* ============ 1.6.89 design system components ============ */
html.zr-lock, html.zr-lock body { overflow: hidden; }
.zr-ov { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(3, 8, 11, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.2s ease; }
.zr-ov.is-open { opacity: 1; }
.zr-dlg { position: relative; display: flex; flex-direction: column; width: min(34rem, 100%); max-height: min(85vh, 46rem); background: var(--zr-surface); color: var(--zr-text); border: 1px solid var(--zr-border); border-radius: var(--zr-radius-lg, 16px); box-shadow: var(--zr-shadow-lg); outline: none; transform: translateY(12px) scale(0.98); transition: transform 0.2s ease; }
.zr-dlg--lg { width: min(52rem, 100%); }
.zr-ov.is-open .zr-dlg { transform: none; }
.zr-dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 0.85rem 0.85rem 1.1rem; border-bottom: 1px solid var(--zr-border); }
.zr-dlg__title { margin: 0; font-size: var(--zr-fs-lg); line-height: 1.3; }
.zr-dlg__x { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--zr-border); border-radius: var(--zr-radius-sm); background: var(--zr-surface-2); color: var(--zr-text); cursor: pointer; }
.zr-dlg__x:hover { border-color: var(--zr-accent); color: var(--zr-accent); }
.zr-dlg__x svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.zr-dlg__body { padding: 1rem 1.1rem 1.2rem; overflow: auto; overscroll-behavior: contain; font-size: var(--zr-fs-base); }
.zr-dlg__foot { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.75rem 1.1rem; border-top: 1px solid var(--zr-border); }
.zr-ov--drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.zr-dlg--drawer { width: min(24rem, 92vw); max-height: none; height: 100%; border-radius: var(--zr-radius-lg, 16px) 0 0 var(--zr-radius-lg, 16px); border-right: 0; transform: translateX(100%); }
@media (max-width: 767px) {
  .zr-ov--modal { align-items: flex-end; padding: 0; }
  .zr-dlg--modal { width: 100%; max-height: 88vh; border-radius: var(--zr-radius-lg, 16px) var(--zr-radius-lg, 16px) 0 0; transform: translateY(100%); }
  .zr-ov--drawer { align-items: flex-end; }
  .zr-dlg--drawer { width: 100%; height: auto; max-height: 82vh; border-right: 1px solid var(--zr-border); border-radius: var(--zr-radius-lg, 16px) var(--zr-radius-lg, 16px) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .zr-dlg--modal::before, .zr-dlg--drawer::before { content: ""; position: absolute; top: 0.4rem; left: 50%; width: 2.5rem; height: 0.25rem; margin-left: -1.25rem; border-radius: 99px; background: var(--zr-border-strong); }
}
/* Toast */
.zr-toasts { position: fixed; z-index: 1100; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 0.5rem; width: max-content; max-width: calc(100vw - 2rem); pointer-events: none; }
@media (max-width: 1023px) { .zr-toasts { bottom: calc(var(--zr-tabbar-h) + 0.9rem + env(safe-area-inset-bottom)); } body:has(.zr-hbar) .zr-toasts { bottom: calc(var(--zr-tabbar-h) + 4.6rem + env(safe-area-inset-bottom)); } }
.zr-toast { display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.95rem 0.65rem 0.7rem; background: var(--zr-surface-3, var(--zr-surface-2)); color: var(--zr-text); border: 1px solid var(--zr-border-strong, var(--zr-border)); border-radius: var(--zr-radius); box-shadow: var(--zr-shadow-lg); font-size: var(--zr-fs-sm2); font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease; }
.zr-toast.is-in { opacity: 1; transform: none; }
.zr-toast__icon { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--zr-success-soft, rgba(81, 216, 138, 0.16)); color: var(--zr-success); }
.zr-toast--error .zr-toast__icon { background: rgba(255, 77, 77, 0.14); color: var(--zr-error); }
.zr-toast--info .zr-toast__icon { background: var(--zr-accent-soft); color: var(--zr-accent); }
.zr-toast__icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Tooltip */
.zr-tip { position: absolute; z-index: 1200; max-width: 16rem; padding: 0.4rem 0.6rem; background: var(--zr-text); color: var(--zr-bg); border-radius: var(--zr-radius-sm); font-size: var(--zr-fs-xs); font-weight: 600; line-height: 1.35; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity 0.12s ease, transform 0.12s ease; box-shadow: var(--zr-shadow); }
.zr-tip.is-on { opacity: 1; transform: none; }
[data-tip] { cursor: help; text-decoration: underline dotted; text-decoration-color: var(--zr-muted); text-underline-offset: 0.2em; }
button[data-tip], a[data-tip] { text-decoration: none; }
img.zr-ricon { cursor: help; }
/* Comparison table */
.zr-ctable-wrap { overflow-x: auto; border: 1px solid var(--zr-border); border-radius: var(--zr-radius); }
.zr-ctable { width: 100%; border-collapse: collapse; font-size: var(--zr-fs-sm2); font-variant-numeric: tabular-nums; }
.zr-ctable th, .zr-ctable td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--zr-border); text-align: right; white-space: nowrap; }
.zr-ctable thead th { position: sticky; top: 0; background: var(--zr-surface-2); text-align: center; font-size: var(--zr-fs-sm); vertical-align: bottom; }
.zr-ctable tbody th { position: sticky; left: 0; z-index: 1; background: var(--zr-surface); text-align: left; font-weight: 600; color: var(--zr-muted); font-size: var(--zr-fs-sm); }
.zr-ctable tr.zr-ctable__group th { background: var(--zr-surface-2); color: var(--zr-accent); font-size: var(--zr-fs-xs); letter-spacing: 0.06em; text-transform: uppercase; text-align: left; }
.zr-ctable td.is-best { color: var(--zr-success); font-weight: 700; }
.zr-ctable tbody tr:last-child > * { border-bottom: 0; }
.zr-ctable__hero { display: grid; justify-items: center; gap: 0.3rem; min-width: 6.5rem; }
.zr-ctable__hero img { width: 3.25rem; height: 3.25rem; object-fit: cover; object-position: top; border-radius: var(--zr-radius-sm); background: var(--zr-art-bg); }
.zr-ctable__note { margin: 0.6rem 0 0; font-size: var(--zr-fs-xs); color: var(--zr-muted); }
@media (prefers-reduced-motion: reduce) {
  .zr-ov, .zr-dlg, .zr-toast, .zr-tip { transition: none !important; }
}
/* Hero DB: filter button (phones), compare */
.zr-hfilter__bar { display: none; }
.zr-hfilter__open { display: inline-flex; align-items: center; gap: 0.45rem; }
.zr-hfilter__open svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zr-hfilter__badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 99px; background: var(--zr-accent); color: var(--zr-on-accent); font-size: var(--zr-fs-xs); }
@media (max-width: 767px) {
  .zr-hfilter[data-drawer] { display: none; }
  .zr-hfilter__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 1rem; }
  .zr-dlg .zr-hfilter { display: grid; margin: 0; padding: 0; border: 0; background: none; }
  .zr-dlg .zr-hfilter__row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.zr-hcard-wrap { position: relative; display: grid; }
.zr-hcmp { position: absolute; top: 0.4rem; right: 0.4rem; z-index: 2; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.zr-hcmp span { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(7, 16, 21, 0.62); color: #fff; }
.zr-hcmp svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.zr-hcmp[aria-pressed="true"] span { background: var(--zr-accent); border-color: var(--zr-accent); color: var(--zr-on-accent); }
.zr-hcmp:focus-visible { outline: none; }
.zr-hcmp:focus-visible span { outline: 2px solid var(--zr-accent); outline-offset: 2px; }
.zr-hcard-wrap.is-picked .zr-hcard { border-color: var(--zr-accent); box-shadow: 0 0 0 1px var(--zr-accent); }
.zr-hcmpbar { position: fixed; z-index: 60; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.5rem 0.5rem 0.9rem; background: var(--zr-surface); border: 1px solid var(--zr-border-strong, var(--zr-border)); border-radius: var(--zr-radius); box-shadow: var(--zr-shadow-lg); font-size: var(--zr-fs-sm2); white-space: nowrap; }
.zr-hcmpbar[hidden] { display: none; }
@media (max-width: 1023px) { .zr-hcmpbar { bottom: calc(var(--zr-tabbar-h) + 0.6rem + env(safe-area-inset-bottom)); } }
.zr-hint { margin: 0 0 0.9rem; font-size: var(--zr-fs-sm); color: var(--zr-muted); }
/* Hero skill details */
.zr-hskill__more { margin-left: auto; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--zr-border); border-radius: var(--zr-radius-sm); background: var(--zr-surface-2); color: var(--zr-accent); cursor: pointer; flex: 0 0 auto; }
.zr-hskill__more:hover { border-color: var(--zr-accent); }
.zr-hskill__more svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zr-skilldlg { display: grid; gap: 0.6rem; }
.zr-skilldlg .zr-hskill__name h3 { display: none; }
.zr-skilldlg__lv { display: inline-flex; gap: 0.5rem; align-items: center; font-size: var(--zr-fs-sm); font-weight: 700; color: var(--zr-accent); }

/* 1.6.89 homepage artwork banner */
.zr-hero--art { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-top: 0.75rem; }
.zr-hero--art > * { min-width: 0; }
.zr-hero--art .zr-hero__copy { padding-bottom: 1.25rem; z-index: 2; }
.zr-hero--art .zr-lead { font-size: var(--zr-fs-md); color: var(--zr-muted); }
.zr-hero--art .zr-hero__sky { height: 5rem; opacity: 0.45; }
.zr-hero__art { position: relative; z-index: 1; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; height: 12.5rem; margin: 0 -1.1rem; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.zr-hero__art::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 70%; aspect-ratio: 1.6; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, var(--zr-primary-soft), transparent 68%); filter: blur(6px); }
.zr-hero__art::after { content: ""; position: absolute; inset: auto 10% 0; height: 30%; background: radial-gradient(ellipse at 50% 100%, var(--zr-accent-soft), transparent 70%); }
.zr-hero__fig { position: relative; display: block; width: auto; max-width: none; height: 88%; margin: 0 -9%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35)); }
.zr-hero__fig--3 { z-index: 3; height: 100%; }
.zr-hero__fig--2, .zr-hero__fig--4 { z-index: 2; }
.zr-hero__fig--1, .zr-hero__fig--5 { z-index: 1; height: 76%; display: none; }
[data-theme="dark"] .zr-hero__fig:not(.zr-hero__fig--3) { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)) brightness(0.82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .zr-hero__fig:not(.zr-hero__fig--3) { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)) brightness(0.82); } }
.zr-hero__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.zr-hero__cta .zr-btn { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 9rem; }
@media (min-width: 600px) { .zr-hero__fig--1, .zr-hero__fig--5 { display: block; } .zr-hero__art { height: 15rem; } .zr-hero__cta .zr-btn { flex: 0 0 auto; padding-left: 1.4rem; padding-right: 1.4rem; } }
@media (min-width: 1024px) {
  .zr-hero--art { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: 25rem; padding: 2.25rem 2.25rem 0; }
  .zr-hero--art .zr-hero__copy { padding-bottom: 2.75rem; }
  .zr-hero__art { order: 2; align-self: end; height: 23rem; margin: 0 -1.5rem 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
}
.zr-hero__cta .zr-btn { white-space: nowrap; padding-left: 0.85rem; padding-right: 0.85rem; }
.zr-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; filter: none; }

/* 1.6.90 phone fit, visible compare select, phone compare table */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 599px) {
  .zr-hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
  .zr-hgrid .zr-hcard { padding: 0.3rem 0.25rem 0.45rem; border-radius: 12px; gap: 0.2rem; }
  .zr-hgrid .zr-hcard__frame { border-radius: 9px; }
  .zr-hgrid .zr-hcard__name { font-size: var(--zr-fs-sm); }
  .zr-hgrid .zr-hcard__meta { font-size: var(--zr-fs-xs); letter-spacing: -0.01em; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .zr-hgrid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
}
.zr-hcmp { top: 0; right: 0; width: 2.9rem; height: 2.9rem; }
.zr-hcmp span { width: 1.85rem; height: 1.85rem; border: 2px solid #fff; background: rgba(7, 16, 21, 0.72); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.zr-hcmp svg { width: 1rem; height: 1rem; stroke-width: 3; }
.zr-hcmp:hover span { border-color: var(--zr-accent); }
.zr-hcmp[aria-pressed="true"] span { border-color: #fff; }
.zr-hint--cmp { display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.8rem; border: 1px dashed var(--zr-accent); border-radius: var(--zr-radius); background: var(--zr-accent-soft); color: var(--zr-text); font-size: var(--zr-fs-sm2); font-weight: 600; }
.zr-hint__dot { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--zr-accent); color: var(--zr-accent); }
.zr-hint__dot svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
@media (max-width: 599px) {
  .zr-dlg .zr-ctable-wrap { overflow-x: visible; }
  .zr-ctable { table-layout: fixed; font-size: var(--zr-fs-sm); }
  .zr-ctable th, .zr-ctable td { padding: 0.45rem 0.3rem; white-space: normal; overflow-wrap: anywhere; }
  .zr-ctable thead th:first-child, .zr-ctable tbody th { width: 27%; }
  .zr-ctable tbody th { position: static; font-size: var(--zr-fs-xs); }
  .zr-ctable__hero { min-width: 0; font-size: var(--zr-fs-xs); }
  .zr-ctable__hero img { width: 2.4rem; height: 2.4rem; }
  .zr-dlg--lg .zr-dlg__body { padding: 0.75rem 0.6rem 1rem; }
}
