@font-face {
  font-family: 'Redemption';
  src: url('https://s.rsg.sc/sc/fonts/rdr2/redemption/Redemption.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'RDRLino';
  src: url('https://s.rsg.sc/sc/fonts/rdr2/rdr-lino/RDRLino-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Hapna';
  src: url('https://s.rsg.sc/sc/fonts/rdr2/hapna/8308ad01-7c3d-4cd8-95c2-45157f1db934.woff2') format('woff2');
  font-display: swap;
}
p, li, ul {
    font-family: 'Hapna';
}
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-transparent: transparent;
  --black-rgb: 0, 0, 0;
  --white-rgb: 255, 255, 255;
  --red-rgb: 230, 40, 40;
  --red-dark-rgb: 173, 17, 17;
  --gold-rgb: 227, 196, 143;
  --green-rgb: 34, 197, 94;
  --max-rgb: 255, 231, 111;
  --bg-base: #050505;
  --bg-base-light: #1f1d1b;
  --bg-panel: #12100e;
  --bg-panel-alt: #181514;
  --bg-input: rgba(0, 0, 0, 0.70);
  --bg-paper: #f0eee9;
  --border-main: #3b3531;
  --border-light: #4a423d;
  --text-main: #e8e5e3;
  --text-muted: #beb8b4;
  --text-dim: #948a82;
  --text-paper: #1c1917;
  --text-danger: #ffbaba;
  --accent-red: #CC0706;
  --accent-red-dark: #ad1111;
  --accent-gold: #e3c48f;
  --accent-green: #22c55e;
  --accent-max: #FFE76F;
  --nav-h: 52px;
  --nav-pad: calc(var(--nav-h) + 24px);
  --shadow-heavy: 0 0 60px rgba(0,0,0,.95);
  --glow-red: 0 0 12px rgba(230,40,40,.35);
  --glow-gold: 0 0 12px rgba(227,196,143,.25);
  --glow-max: 0 0 8px rgba(255,231,111,.45);
  --radius: 10px;
  --ease-rdr: cubic-bezier(0.2, 0.8, 0.2, 1);
  --f-redemption: 'Redemption', serif;
  --f-lino: 'RDRLino', sans-serif;
  --f-hapna: 'Hapna', serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
*,
*::before,
*::after { box-sizing: border-box; }
html,
body { height: 100%; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 0%, var(--bg-base-light) 0%, var(--bg-base) 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
  font-family: var(--f-hapna);
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  margin: 0;
  color: var(--c-white);
}
.t-redemption {
  font-family: var(--f-redemption);
  letter-spacing: .02em;
  font-weight: normal;
}
.t-lino {
  font-family: var(--f-lino);
  letter-spacing: .18em;
  font-weight: normal;
  text-transform: uppercase;
}
.t-mono { font-family: var(--f-mono); }
.text-shadow { text-shadow: 2px 2px 0 rgba(0,0,0,.9); }
.text-white { color: var(--c-white); }
.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 64px;
  justify-content: space-between;
}
.brand {
  font-size: clamp(26px, 3.2vw, 42px);
  color: #fff;
  letter-spacing: .05em;
  flex-shrink: 0;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.topbar-search .searchbar__input {
  width: 160px;
  font-size: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  color: #fff;
  padding: 0 10px;
  transition: width .2s ease, border-color .15s, background .15s;
}
.topbar-search .searchbar__input::placeholder {
  color: rgba(255,255,255,.3);
}
.topbar-search .searchbar__input:focus {
  width: 240px;
  outline: none;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.09);
}
.topbar-search .searchbar__filter-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 9px;
  letter-spacing: .16em;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  transition: background .15s, color .15s, border-color .15s;
}
.topbar-search .searchbar__filter-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 12px;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-user__server {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.topbar-user__sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
}
.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topbar-avatar span {
  font-size: 9px;
  color: rgba(255,255,255,.9);
  font-family: var(--f-lino);
}
.topbar-user__name {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.brand-rule,
.brand-lockup,
.brand-sub,
.topbar-accent,
.topbar-divider,
.corner,
.topbar-deco,
.funds {
  display: none;
}
@media (max-width: 540px) {
  .topbar-search { display: none; }
}
.searchbar { display: none; }
.searchbar-inner { display: none; }
.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: none;
  opacity: 0;
  transition: opacity .25s;
}
.filter-backdrop.is-open {
  display: block;
  opacity: 1;
}
.filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 150;
  background: var(--bg-panel, #1a1410);
  border-left: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.6);
}
.filter-sidebar.is-open { transform: translateX(0); }
.filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.filter-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.filter-label--check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.filter-group .select,
.filter-group .input {
  width: 100%;
}
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 14px var(--nav-pad);
  padding-bottom: calc(var(--nav-pad) + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 10;
  -webkit-overflow-scrolling: touch;
}
.main-inner {
  max-width: 1700px;
  margin: 0 auto;
  min-height: 55vh;
}
.hidden { display: none !important; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row.tight { gap: 6px; }
.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spacer-top { margin-top: 14px; }
.no-margin-bottom { margin-bottom: 0 !important; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-main);
  padding: 6px 8px;
  font-family: var(--f-lino);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-main);
  background: rgba(0,0,0,.4);
  white-space: nowrap;
}
.pill.red {
  border-color: var(--accent-red);
  color: var(--text-danger);
}
.pill.green {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.pill.gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.input,
.textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  color: var(--c-white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input {
  height: 44px;
  padding: 10px 12px;
  font-family: var(--f-lino);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.textarea {
  min-height: 110px;
  padding: 12px;
  font-family: var(--f-hapna);
  font-size: 16px;
  resize: vertical;
}
.input:focus,
.textarea:focus {
  border-color: var(--accent-red);
  box-shadow: var(--glow-red);
  background: var(--c-black);
}
.input:disabled,
.textarea:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: rgba(255,255,255,.03);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}
.select {
  width: 100%;
  height: 44px;
  padding: 10px 36px 10px 12px;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  outline: none;
  font-family: var(--f-lino);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, color .2s, background .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23beb8b4' stroke-width='3' stroke-linecap='square'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.select option {
  background-color: var(--bg-panel);
  color: var(--text-main);
}
.select:focus,
.select:hover {
  border-color: var(--accent-red);
  box-shadow: var(--glow-red);
  color: var(--c-white);
  background-color: var(--c-black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23beb8b4' stroke-width='3' stroke-linecap='square'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.select:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-main);
  background: var(--bg-input);
  appearance: none;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  vertical-align: middle;
  transition: all .2s;
  position: relative;
  flex-shrink: 0;
}
.check::before {
  content: '';
  position: absolute;
  inset: -12px;
}
.check:checked {
  border-color: var(--accent-red);
  background: rgba(230,40,40,.20);
  box-shadow: var(--glow-red);
}
.check:checked::after {
  content: "X";
  font-family: var(--f-lino);
  font-size: 12px;
  color: var(--accent-red);
  line-height: 1;
  pointer-events: none;
}
.flag-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--f-lino);
  font-size: 11px;
  color: var(--text-main);
  letter-spacing: .14em;
  text-transform: uppercase;
  min-height: 44px;
}
.flags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  height: 44px;
  padding: 0 16px;
  min-width: 44px;
  border: 1px solid var(--border-main);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--f-lino);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: transform .1s var(--ease-rdr), border-color .15s, background .15s, color .15s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,.08);
  color: var(--c-white);
}
.btn:active { transform: scale(.96); }
.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.tight {
  height: 38px;
  padding: 0 12px;
  font-size: 10px;
}
.btn-primary {
  background: var(--text-main);
  color: var(--c-black);
  border-color: var(--c-white);
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--accent-red);
  color: var(--c-white);
  border-color: var(--accent-red-dark);
  box-shadow: 0 0 15px rgba(255,255,255,.2);
}
.btn-danger {
  border-color: var(--accent-red);
  color: var(--text-danger);
  background: rgba(230,40,40,.15);
}
.btn-danger:hover {
  background: rgba(230,40,40,.30);
  box-shadow: var(--glow-red);
  color: var(--c-white);
}
.btn-link {
  height: auto;
  min-height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  min-width: 0;
}
.btn-link:hover {
  color: var(--accent-red);
  text-decoration: underline;
  background: transparent;
}
.btn-pause {
  background: var(--c-white);
  color: var(--c-black);
  border-color: rgba(255,255,255,.8);
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255,255,255,.15);
}
.viewhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.viewtitle .kicker {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.viewtitle .title {
  font-size: clamp(26px, 4.5vw, 40px);
  color: var(--c-white);
  margin: 0;
  line-height: .9;
}
.grid { display: grid; gap: 12px; }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 520px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1400px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  box-shadow: 0 18px 38px rgba(0,0,0,.7);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--ease-rdr), border-color .25s, box-shadow .25s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
  box-shadow: 0 25px 45px rgba(0,0,0,.9);
}
.card--readonly { border-color: rgba(227,196,143,.25); }
.card--readonly:hover {
  border-color: rgba(227,196,143,.55);
  box-shadow: 0 25px 45px rgba(0,0,0,.9), var(--glow-gold);
}
.card--purebred:hover {
  border-color: var(--accent-gold);
  box-shadow:
    0 25px 45px rgba(0,0,0,.9),
    0 0 0 1px rgba(239,93,93,.8),
    0 0 28px rgba(230,40,40,.25);
}
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.chip--server {
  font-family: var(--f-lino);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 3px 7px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip--server:hover {
  color: var(--c-white);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}
.chip--stable {
  font-family: var(--f-lino);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  padding: 3px 7px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  display: inline-block;
  margin-bottom: 4px;
}
.chip--stable:hover {
  color: var(--c-white);
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.16);
}
.pill--dim {
  font-family: var(--f-lino);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 3px 6px;
}
.pill--ovr {
  font-family: var(--f-lino);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(205,174,125,.08);
  border: 1px solid rgba(205,174,125,.2);
  padding: 3px 6px;
}
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--c-black);
  border-bottom: 1px solid var(--border-main);
  position: relative;
  overflow: hidden;
}
.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
  transform: scale(1.01);
  transition: transform .8s var(--ease-rdr), filter .8s, opacity .8s;
}
.card:hover .card-media img {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(1.08);
}
.card-media .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95), transparent 60%);
  pointer-events: none;
}
.card-media .topchips {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 8px;
  backdrop-filter: blur(2px);
}
.chip.dim {
  color: var(--text-muted);
  border-color: rgba(255,255,255,.1);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border: 2px solid var(--accent-red);
  color: var(--c-white);
  background: var(--accent-red-dark);
  font-family: var(--f-lino);
  letter-spacing: .20em;
  text-transform: uppercase;
  font-size: 11px;
  transform: rotate(-10deg);
  box-shadow: 0 0 18px rgba(0,0,0,.9);
}
.badge.gold {
  border-color: var(--accent-gold);
  color: var(--c-black);
  background: var(--accent-gold);
  transform: rotate(10deg);
}
.stamp {
  position: absolute;
  border: 3px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: .4rem .9rem;
  font-family: var(--f-lino);
  text-transform: uppercase;
  letter-spacing: .2em;
  box-shadow: 0 0 20px rgba(0,0,0,.9);
  backdrop-filter: blur(4px);
  display: inline-block;
  font-size: 1.4rem;
  line-height: 1;
  transform: rotate(-10deg);
}
.card-body {
  padding: 12px 14px;
  background: var(--bg-panel);
  position: relative;
}
.card-body .kicker {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--f-lino);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-body h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: .95;
  color: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-row b {
  color: var(--c-white);
  font-weight: 800;
}
.stats {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.statline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.statline .label {
  width: 62px;
  text-align: right;
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.track {
  display: flex;
  gap: 2px;
  flex: 1;
  height: 10px;
  align-items: center;
}
.tick {
  flex: 1;
  height: 100%;
  background: #221f1d;
  border: 1px solid var(--c-black);
  transform: skewX(-15deg);
  transition: background .2s, box-shadow .2s;
}
.tick.on {
  background: var(--text-main);
  box-shadow: 0 0 4px rgba(255,255,255,.3);
}
.tick.max {
  background: var(--accent-max);
  border-color: #8f7f2b;
  box-shadow: var(--glow-max);
}
.stats-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.stat-edit-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.stat-edit-line .label {
  width: 92px;
  flex-shrink: 0;
  font-family: var(--f-lino);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-main);
}
.stat-edit-line .track { height: 14px; }
.stat-edit-line .val {
  width: 28px;
  text-align: right;
  font-family: var(--f-lino);
  font-size: 11px;
  color: var(--c-white);
}
.tick.clickable { cursor: pointer; }
.tick.clickable:hover { filter: brightness(1.6); }
.pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.pause-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pause-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px) grayscale(60%);
  -webkit-backdrop-filter: blur(10px) grayscale(60%);
  cursor: pointer;
}
.pause-sidebar {
  position: relative;
  width: min(88vw, 360px);
  height: 100%;
  background: var(--accent-red);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12' mix-blend-mode='multiply'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 60px rgba(0,0,0,.9);
  clip-path: polygon(0 0,98% 0,100% 4%,97% 11%,100% 22%,96% 36%,99% 50%,95% 64%,100% 78%,97% 90%,100% 100%,0 100%);
  transform: translateX(-110%);
  transition: transform .4s var(--ease-rdr);
  overflow: hidden;
}
.pause-overlay.is-open .pause-sidebar {
  transform: translateX(0);
}
.pause-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.pause-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pause-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-redemption);
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.pause-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pause-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
}
.pause-user-sub {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em;
  margin-top: 2px;
}
.pause-close-btn {
  background: rgba(0,0,0,.2);
  border: none;
  color: rgba(255,255,255,.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pause-close-btn:hover {
  background: rgba(0,0,0,.4);
  color: #fff;
}
.pause-nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 24px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.pause-nav::-webkit-scrollbar { width: 4px; }
.pause-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 4px;
}
.pause-nav-section { padding: 4px 0 8px; }
.pause-nav-section + .pause-nav-section {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 4px;
  padding-top: 8px;
}
.pause-nav-section--footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.15) !important;
}
.pause-nav-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 4px 24px 6px;
  font-family: var(--f-lino);
}
.p-navbtn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--f-redemption);
  letter-spacing: .08em;
  font-size: clamp(18px, 4vw, 26px);
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  padding: 6px 24px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, color .15s, padding-left .2s var(--ease-rdr);
  line-height: 1;
}
.p-navbtn:hover {
  color: #fff;
  background: rgba(0,0,0,.15);
  padding-left: 32px;
}
.p-navbtn.active {
  color: #fff;
  background: rgba(0,0,0,.25);
  padding-left: 32px;
  box-shadow: inset 3px 0 0 #fff;
}
.p-navbtn--logout {
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.p-navbtn--logout:hover {
  color: #fff;
  background: rgba(0,0,0,.2);
}
.p-navbtn-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.nav-achievement-badge {
  margin-left: auto;
  background: #fff;
  color: var(--accent-red);
  font-family: var(--f-lino);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.90);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 100;
  opacity: 0;
  transition: opacity .3s;
}
.overlay.show {
  display: block;
  opacity: 1;
}
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 98vw;
  max-width: 1020px;
  height: 94vh;
  max-height: 880px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-heavy);
  display: none;
  z-index: 110;
  overflow: hidden;
  flex-direction: column;
  transform: scale(.97) translateY(10px);
  opacity: 0;
  transition: transform .3s var(--ease-rdr), opacity .3s;
}
.modal.show {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--accent-red-dark);
  flex-shrink: 0;
}
.modal-head .left .k {
  font-size: 10px;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
  font-family: var(--f-lino);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.modal-head .left .h {
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: .95;
  color: var(--c-white);
}
.modal-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.3);
  color: var(--c-white);
  font-family: var(--f-redemption);
  font-size: 30px;
  transition: background .2s, border-color .2s;
}
.modal-close:hover {
  border-color: var(--c-white);
  background: rgba(0,0,0,.6);
}
.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
	padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.modal-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-panel-alt);
  flex-shrink: 0;
}
#hmSoldBanner {
  padding: 6px 12px;
  text-align: center;
  flex-shrink: 0;
  background: rgba(227,196,143,.10);
  border: 1px solid rgba(227,196,143,.40);
}
.editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
}
@media (min-width: 940px) {
  .editor-layout {
    grid-template-columns: 510px 1fr;
    gap: 22px;
    padding: 20px;
    align-items: start;
  }
}
.editor-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border-main);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  padding: 14px;
}
.panel-title {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.8vw, 26px);
  color: var(--c-white);
  font-family: var(--f-redemption);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 8px;
}
.panel-head-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.panel-head-flex .panel-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.field { margin-bottom: 12px; }
.field.full { margin-bottom: 12px; }
.field label {
  display: block;
  font-family: var(--f-lino);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.help,
.field .help {
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--f-lino);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 460px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.bigname {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-white);
  font-size: clamp(26px, 5vw, 40px);
  line-height: .9;
  font-family: var(--f-redemption);
  letter-spacing: .02em;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-main);
  transition: border-color .3s;
}
.bigname:focus { border-color: var(--accent-red); }
.bigname::placeholder { color: rgba(255,255,255,.2); }
.bigname:disabled {
  opacity: .5;
  color: var(--text-muted);
}
.photo {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-main);
  background: var(--c-black);
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}
.photo:hover { border-color: rgba(255,255,255,.4); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.photo .empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: var(--f-lino);
  letter-spacing: .20em;
  text-transform: uppercase;
  font-size: 10px;
  text-align: center;
  padding: 10px;
  pointer-events: none;
}
.photo input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.photo .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lineage-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-main);
  color: var(--text-main);
  padding: 8px 12px;
  font-family: var(--f-hapna);
  font-size: 14px;
  outline: none;
  height: 44px;
}
.lineage-select:focus {
  border-color: var(--accent-red);
  box-shadow: var(--glow-red);
}
.masonry-grid {
  column-count: 1;
  column-gap: 14px;
  padding-top: 10px;
}
@media (min-width: 580px) {
  .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}
@media (min-width: 1500px) {
  .masonry-grid { column-count: 4; }
}
.m-card {
  break-inside: avoid;
  margin-bottom: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  box-shadow: 0 10px 30px rgba(0,0,0,.8);
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.m-card:hover { border-color: var(--border-light); }
.m-kicker {
  font-family: var(--f-lino);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.m-title {
  font-family: var(--f-redemption);
  font-size: clamp(24px, 4vw, 40px);
  color: var(--c-white);
  line-height: .9;
  margin: 0 0 4px;
}
.m-owner {
  font-family: var(--f-hapna);
  font-size: 14px;
  color: var(--accent-red);
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 8px;
}
.campfire-stage {
  position: relative;
  z-index: 1;
  min-height: 100%;
}
.campfire-glow {
  position: fixed;
  bottom: -10vh;
  left: 0;
  right: 0;
  height: 70vh;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(230,40,40,.14) 0%,
    rgba(227,196,143,.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: fireFlicker 4s infinite alternate ease-in-out;
}
@keyframes fireFlicker {
  0% { opacity: .80; transform: scaleY(1); }
  25% { opacity: 1.0; transform: scaleY(1.04); }
  50% { opacity: .70; transform: scaleY(.98); }
  75% { opacity: 1.05; transform: scaleY(1.02); }
  100% { opacity: .90; transform: scaleY(1); }
}
.tablewrap {
  background: rgba(20,18,17,.92);
  border: 1px solid rgba(255,255,255,.10);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-main);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.registry-table { min-width: 960px; }
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0c0a09;
  color: rgba(214,211,209,.55);
  font-family: var(--f-lino);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(214,211,209,.85);
}
tbody tr { cursor: pointer; }
tbody tr:hover {
  background: rgba(255,255,255,.03);
}
.ovr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  padding: 5px 10px;
  font-family: var(--f-lino);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(214,211,209,.65);
}
.paper {
  max-width: 980px;
  margin: 0 auto;
  background: #e8e6e2;
  color: #1c1917;
  box-shadow: var(--shadow-main);
  transform: rotate(.5deg);
  padding: 8px;
}
.paper .inner {
  border: 2px solid #1c1917;
  padding: 14px 14px 10px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.05), transparent),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.12'/%3E%3C/svg%3E");
}
.paper h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(28px, 5vw, 46px);
  border-bottom: 2px solid #1c1917;
  padding-bottom: 8px;
}
.paper table {
  min-width: 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.paper thead th {
  background: transparent;
  color: #1c1917;
  border-bottom: 1px solid rgba(0,0,0,.35);
}
.paper tbody td {
  color: #1c1917;
  border-bottom: 1px dashed rgba(0,0,0,.28);
}
.twocol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 740px) {
  .twocol { grid-template-columns: 1fr 1fr; }
}
.list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.listitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border-main);
  transition: background .2s;
}
.listitem:hover {
  background: rgba(255,255,255,.03);
}
.listitem .title {
  font-family: var(--f-redemption);
  font-size: 22px;
  color: var(--c-white);
  margin: 0;
}
.listitem .small {
  font-family: var(--f-lino);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .12em;
}
#rrLanding { background: var(--bg-base); }
.l-section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 14px;
}
.l-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-red);
  color: #fff;
  font-family: 'RDRLino', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.l-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.l-btn-primary:hover {
  background: var(--accent-red-dark);
  transform: translateY(-1px);
}
.l-btn-primary:hover::after { opacity: 1; }
.l-btn-primary:active { transform: translateY(0); }
.l-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vw, 140px) clamp(24px, 8vw, 120px) 80px;
  overflow: hidden;
}
.l-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.l-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 0% 50%, rgba(139,0,0,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(227,196,143,0.04) 0%, transparent 50%);
}
.l-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
.l-hero__lines {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(227,196,143,1) 39px,
    rgba(227,196,143,1) 40px
  );
}
.l-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: l-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.l-hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(227,196,143,0.5);
  margin-bottom: 24px;
}
.l-hero__title {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.88;
  color: var(--text-main);
  margin: 0 0 32px 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.8);
}
.l-hero__rule {
  width: 48px;
  height: 2px;
  background: var(--accent-red);
  margin: 0 0 28px 0;
}
.l-hero__sub {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.75;
  color: rgba(232,229,227,0.65);
  max-width: 520px;
  margin: 0 0 40px 0;
}
.l-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.l-hero__note {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}
.l-hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: clamp(24px, 8vw, 120px);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  animation: l-fade-up 1.4s 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.l-hero__scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2));
  margin: 0 auto 10px;
}
.l-features {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 8vw, 120px);
  border-top: 1px solid rgba(227,196,143,0.08);
}
.l-features__header { margin-bottom: 64px; }
.l-features__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.9;
  color: var(--text-main);
  margin: 0;
}
.l-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(227,196,143,0.1);
  border-left: 1px solid rgba(227,196,143,0.1);
}
.l-feature {
  display: flex;
  gap: 20px;
  padding: 36px 32px;
  border-right: 1px solid rgba(227,196,143,0.1);
  border-bottom: 1px solid rgba(227,196,143,0.1);
  transition: background 0.2s;
}
.l-feature:hover { background: rgba(227,196,143,0.03); }
.l-feature__num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-red);
  margin-top: 6px;
  flex-shrink: 0;
  width: 24px;
}
.l-feature__title {
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--text-main);
  margin: 0 0 10px 0;
  line-height: 1;
}
.l-feature__text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(232,229,227,0.5);
  margin: 0;
}
.l-cta {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 8vw, 120px);
  border-top: 1px solid rgba(227,196,143,0.08);
}
.l-cta__inner { max-width: 560px; }
.l-cta__rule {
  width: 32px;
  height: 1px;
  background: rgba(227,196,143,0.3);
  margin: 0 0 40px 0;
}
.l-cta__rule:last-child { margin: 40px 0 0 0; }
.l-cta__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.9;
  color: var(--text-main);
  margin: 0 0 20px 0;
}
.l-cta__sub {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(232,229,227,0.5);
  margin: 0 0 36px 0;
}
@keyframes l-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .l-features__grid { grid-template-columns: 1fr; }
  .l-hero__title { line-height: 0.92; }
  .l-hero__actions { flex-direction: column; align-items: flex-start; }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 20px);
  background: rgba(0,0,0,.96);
  border: 1px solid var(--accent-red);
  padding: 12px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.9);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease-rdr);
  max-width: 92vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.toast .t {
  font-family: var(--f-lino);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--c-white);
  line-height: 1.6;
  text-align: center;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.5); }
::-webkit-scrollbar-thumb {
  background: #5c554e;
  border: 1px solid rgba(0,0,0,.8);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }
@media (max-width: 479px) {
  #rrLang { display: none; }
  .funds { display: none; }
  .brand-title .sub { display: none; }
  .userbox .meta { display: none; }
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .modal-foot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .modal-foot .btn { flex: 1 1 calc(50% - 4px); }
  .editor-layout {
    padding: 10px;
    gap: 10px;
  }
  .panel { padding: 10px; }
  .split { grid-template-columns: 1fr !important; }
  .pause-sidebar {
    width: 100vw;
    clip-path: none;
  }
  .stat-edit-line .track { height: 22px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .funds { display: none; }
  .userbox .meta { display: none; }
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
  }
  .modal-foot { flex-wrap: wrap; }
  .stat-edit-line .track { height: 18px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .userbox .meta { display: block; }
  .funds { display: block; }
  .editor-layout {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 18px;
  }
  .stat-edit-line .track { height: 18px; }
  .modal { width: 94vw; height: 92vh; }
  .stats-editor-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .userbox .meta { display: block; }
  .funds { display: block; }
  .stat-edit-line .track { height: 14px; }
}
@media (min-width: 1400px) {
  .modal {
    max-width: 1080px;
    max-height: 920px;
  }
  .editor-layout {
    grid-template-columns: 580px 1fr;
    padding: 24px;
  }
}
@media (pointer: coarse) {
  .btn,
  .input,
  .select,
  .modal-close {
    min-height: 44px;
  }
  .stat-edit-line .track { height: 22px; }
  .stat-edit-line { min-height: 50px; }
  .card:hover { transform: none; }
  .horse-node:hover { transform: none; }
  .card:active {
    transform: translateY(-3px);
    border-color: var(--text-muted);
  }
  .horse-node:active { transform: translateY(-3px); }
  .p-navbtn { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
.pause-nav-section { margin-bottom: 8px; }
.pause-nav-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--dim);
  padding: 6px 14px 2px;
  text-transform: uppercase;
}
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  background: var(--panel-bg, #1a1008);
  border-top: 1px solid rgba(205,174,125,0.15);
  z-index: 80;
  height: 56px;
}
.action-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dim);
  padding: 4px 2px;
  transition: color 0.15s, background 0.15s;
}
.action-bar-btn:hover,
.action-bar-btn:active {
  color: var(--accent-red);
  background: rgba(204,7,6,0.08);
}
.action-bar-icon {
  font-size: 18px;
  line-height: 1;
}
.action-bar-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.main { padding-bottom: 64px; }
.pat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
  transition: color .15s, border-color .15s, background .15s;
}
.pat-btn:hover {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
}
.pat-btn.patted {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(204,7,6,.06);
}
.pat-btn__icon {
  font-size: 13px;
  line-height: 1;
  transition: transform .15s;
}
.pat-btn.patted .pat-btn__icon { transform: scale(1.2); }
.pat-count { font-weight: 600; }
.nav-achievement-badge {
  display: inline-block;
  background: var(--accent-red, #c0392b);
  color: #fff;
  border-radius: 10px;
  font-size: 9px;
  padding: 0 5px;
  min-width: 16px;
  text-align: center;
  margin-left: 4px;
  vertical-align: middle;
}
.generic-modal-body {
  padding: 20px 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.generic-modal-body .editor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.generic-modal-body .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.generic-modal-body .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#mainToolbar .toolbar-inner {
  flex-wrap: wrap;
  gap: 8px;
}
#mainToolbar [data-filter] {
  display: flex;
  align-items: center;
}
.view-header { padding: 20px 0 16px; }
.view-header__title { margin: 0 0 6px;    font-size: 60px; }
.view-header p,
.view-header__sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state__icon { font-size: 48px; }
.stable-card__banner,
.stable-banner {
  height: 80px;
  background: linear-gradient(135deg, rgba(205,174,125,0.2), rgba(100,60,20,0.4));
  background-size: cover;
  background-position: center;
}
.stable-card__banner--default,
.stable-banner--default {
  background-image: url("/assets/images/placeholder-stable.webp");
  background-size: cover;
  background-position: center;
}
.stable-card__motto,
.stable-profile__motto {
  font-style: italic;
  color: var(--dim);
  font-size: 12px;
}
.stable-card__owner,
.stable-profile__owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.stable-card__owner-avatar,
.stable-profile__owner-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.stable-profile {
  max-width: 900px;
  margin: 0 auto;
}
.stable-profile__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
}
.stable-profile__name { margin: 0 0 6px; }
.stable-profile__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.stable-profile__herd { margin-top: 24px; }
.stable-profile__desc {
  color: var(--dim);
  line-height: 1.6;
}
.profile-view {
  max-width: 800px;
  margin: 0 auto;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-name { margin: 0 0 4px; }
.profile-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.profile-points {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.profile-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.profile-stat__icon { font-size: 20px; }
.profile-stat__val { font-size: 22px; }
.profile-stat__label {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.profile-section { margin: 24px 0; }
@media (max-width: 600px) {
  .profile-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.achievement-badge {
  text-align: center;
  width: 80px;
}
.achievement-badge__icon { font-size: 28px; }
.achievement-badge__name {
  font-size: 9px;
  color: var(--dim);
  margin-top: 2px;
}
.achievement-badge__pts {
  font-size: 9px;
  color: var(--accent-red);
}
.achievement-badge--locked .achievement-badge__icon {
  opacity: 0.25;
  filter: grayscale(1);
}
.achievement-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 8px;
}
.achievement-card--locked { opacity: 0.5; }
.achievement-card__icon {
  font-size: 28px;
  flex-shrink: 0;
}
.achievement-card__name { font-size: 14px; }
.achievement-card__desc {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}
.achievement-card__pts {
  font-size: 11px;
  color: var(--accent-red);
  margin-top: 4px;
}
.achievements-category { margin-bottom: 24px; }
.tack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.tack-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
}
.tack-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tack-card__icon {
  font-size: 22px;
  flex-shrink: 0;
}
.tack-card__info { flex: 1; }
.tack-card__name { font-size: 14px; }
.tack-card__brand,
.tack-card__color {
  font-size: 11px;
}
.tack-card__actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.tack-card__notes {
  font-size: 11px;
  color: var(--dim);
  margin: 8px 0 0;
}
.tack-card__assigned {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 8px;
}
.tack-card__assigned-label {
  font-size: 10px;
  color: var(--dim);
}
.tack-group { margin-bottom: 24px; }
.tack-assign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}
.tack-assign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}
.breeding-view {
  max-width: 900px;
  margin: 0 auto;
}
.breeding-selector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}
.breeding-heart {
  font-size: 32px;
  text-align: center;
  padding-top: 40px;
}
.breeding-parent__card { margin-top: 12px; }
.breeding-horse-card {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.breeding-horse-card__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}
.breeding-horse-card__name { font-size: 16px; }
.mini-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mini-stat {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 3px 6px;
}
.mini-stat__label {
  font-size: 8px;
  color: var(--dim);
  display: block;
}
.mini-stat__val {
  font-size: 12px;
  font-weight: 600;
}
.foal-result {
  background: rgba(205,174,125,0.05);
  border: 1px solid rgba(205,174,125,0.2);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}
.foal-result__meta,
.foal-coats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.foal-stat-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.foal-stat-row__bar {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  height: 8px;
  overflow: hidden;
}
.foal-stat-row__fill {
  height: 100%;
  background: var(--accent-red);
  border-radius: 3px;
  transition: width 0.3s;
}
.foal-stat-row__val {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.stat--up { color: #4caf50; }
.stat--down { color: #ef5350; }
.breeding-disclaimer {
  font-size: 10px;
  margin-top: 16px;
  text-align: center;
}
@media (max-width: 600px) {
  .breeding-selector { grid-template-columns: 1fr; }
  .breeding-heart { padding-top: 0; }
}
.license-view {
  max-width: 800px;
  margin: 0 auto;
}
.license-notice {
  background: rgba(205,174,125,0.07);
  border: 1px solid rgba(205,174,125,0.2);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.license-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.tier-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}
.tier-card--current {
  border-color: var(--accent-red);
  background: rgba(205,174,125,0.05);
}
.tier-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: #1a0f00;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.tier-card__name {
  font-size: 18px;
  margin-bottom: 8px;
}
.tier-card__price { margin-bottom: 16px; }
.tier-card__price-val {
  font-size: 28px;
  font-weight: 700;
}
.tier-card__price-period {
  font-size: 12px;
  color: var(--dim);
}
.tier-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.tier-card__features li {
  padding: 4px 0;
  font-size: 12px;
  color: var(--dim);
}
.tier-card__features li::before {
  content: "✓ ";
  color: var(--accent-red);
}
.tier-card__current-label {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  padding: 8px 0;
}
.license-faq { margin-top: 32px; }
.license-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
}
.license-faq__item summary {
  cursor: pointer;
  font-size: 14px;
}
.license-faq__item p {
  color: var(--dim);
  margin-top: 8px;
}
.license-summary {
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 12px;
  margin: 10px 0;
}
.license-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.license-summary__val {
  font-weight: 600;
  color: var(--accent-red);
}
@media (max-width: 600px) {
  .license-tiers { grid-template-columns: 1fr; }
}
.help-view {
  max-width: 700px;
  margin: 0 auto;
}
.help-section {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}
.help-section__title {
  cursor: pointer;
  padding: 14px 0;
  font-size: 16px;
  list-style: none;
}
.help-section__title::marker,
.help-section__title::-webkit-details-marker {
  display: none;
}
.help-section__body { padding-bottom: 12px; }
.help-item {
  padding: 8px 0;
  border-left: 2px solid rgba(205,174,125,0.2);
  padding-left: 12px;
  margin-bottom: 8px;
}
.help-item__q {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}
.help-item__a {
  font-size: 12px;
  color: var(--dim);
}
.help-support-box {
  background: rgba(205,174,125,0.06);
  border: 1px solid rgba(205,174,125,0.2);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}
.horse-view__hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.horse-view__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.horse-view__photo--empty {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}
.horse-view__name {
  margin: 0 0 8px;
  font-size: 22px;
}
.horse-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.horse-view__section { margin: 16px 0; }
.horse-view__stats { margin: 16px 0; }
.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.stat-bar-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.stat-bar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  height: 8px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  background: var(--accent-red);
  border-radius: 3px;
}
.stat-bar-val {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.horse-view__tack { margin: 16px 0; }
.tack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.sp-view {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}
.sp-view__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sp-view__kicker {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sp-view__title {
  font-size: clamp(28px, 4vw, 46px);
  color: var(--c-white);
  line-height: 1;
  margin: 0;
}
.sp-view__count {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}
.sp-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  cursor: pointer;
  position: relative;
  transition: background .18s, border-color .18s;
  overflow: hidden;
}
.sc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .18s;
}
.sc:hover {
  background: var(--bg-panel-alt);
  border-color: rgba(255,255,255,.14);
}
.sc:hover::before { background: rgba(255,255,255,.15); }
.sc--mine { border-color: rgba(180,30,20,.7); }
.sc--mine::before {
  background: var(--accent-red) !important;
  box-shadow: 0 0 12px rgba(180,30,20,.5);
}
.sc--featured { border-color: rgba(255,255,255,.16); }
.sc__thumb {
  width: 72px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.25);
  padding: 14px 0;
}
.sc__thumb img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.1);
}
.sc__thumb-fallback {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: rgba(255,255,255,.25);
  font-family: var(--f-redemption);
}
.sc__body {
  padding: 14px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.sc__head-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.sc__name {
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--c-white);
  line-height: 1;
  margin: 0;
}
.sc__code {
  font-size: 8px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sc__mine-tag {
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-red);
  border: 1px solid rgba(180,30,20,.4);
  padding: 2px 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.sc__desc {
  font-size: 12px;
  color: rgba(214,211,209,.45);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 0;
}
.sc__foot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sc__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.sc__stat-val {
  font-size: 14px;
  color: rgba(214,211,209,.8);
  font-family: var(--f-redemption);
  line-height: 1;
}
.sc__stat-label {
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sc__dot {
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  align-self: center;
}
.sc__badge {
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(214,211,209,.3);
  border: 1px solid rgba(255,255,255,.07);
  padding: 1px 5px;
}
.sc__ip-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(214,211,209,.3);
}
.sc__arrow {
  width: 48px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.18);
  font-size: 18px;
  border-left: 1px solid rgba(255,255,255,.07);
  transition: color .18s, background .18s;
}
.sc:hover .sc__arrow {
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.04);
}
.sp-empty {
  text-align: center;
  padding: 80px 20px;
}
.sp-empty__icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sp-empty__text {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.svp {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.svp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 20px 0 24px;
  transition: color .15s;
}
.svp-back:hover { color: var(--c-white); }
.svp-hero {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-left: 3px solid var(--accent-red);
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
}
.svp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180,30,20,.06) 0%, transparent 55%);
  pointer-events: none;
}
.svp-hero__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 24px 20px;
  position: relative;
  z-index: 1;
}
.svp-hero__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}
.svp-hero__icon--fallback {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-size: 40px;
  color: rgba(255,255,255,.2);
  font-family: var(--f-redemption);
}
.svp-hero__text {
  flex: 1;
  min-width: 0;
}
.svp-mine-tag {
  display: inline-block;
  font-size: 8px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-red);
  border: 1px solid rgba(180,30,20,.5);
  padding: 2px 7px;
  margin-bottom: 6px;
}
.svp-hero__name {
  font-size: clamp(30px, 5vw, 58px);
  color: var(--c-white);
  line-height: 1;
  margin: 0 0 6px;
}
.svp-hero__code {
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.svp-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.07);
  position: relative;
  z-index: 1;
}
.svp-stat {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.svp-stat:last-child { border-right: none; }
.svp-stat__val {
  font-size: 26px;
  color: var(--c-white);
  line-height: 1;
}
.svp-stat__label {
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.svp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .svp-grid { grid-template-columns: 1fr; }
}
.svp-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  padding: 18px 22px;
}
.svp-panel__label {
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: block;
}
.svp-desc {
  font-size: 13px;
  color: rgba(214,211,209,.7);
  line-height: 1.75;
  margin: 0;
}
.svp-desc--empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
}
.svp-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svp-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.svp-detail__key {
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.svp-detail__val {
  font-size: 13px;
  color: var(--c-white);
}
.svp-detail__val--mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(214,211,209,.9);
}
.svp-detail__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.svp-copy {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(214,211,209,.5);
  padding: 3px 8px;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.svp-copy:hover {
  background: rgba(255,255,255,.14);
  color: var(--c-white);
}
.svp-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.svp-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.svp-link:hover {
  background: var(--bg-panel-alt);
  border-color: rgba(255,255,255,.16);
}
.svp-link__dot {
  width: 5px;
  height: 5px;
  background: var(--accent-red);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.svp-link__label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(214,211,209,.4);
  width: 56px;
  flex-shrink: 0;
}
.svp-link__url {
  font-size: 12px;
  color: rgba(214,211,209,.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.svp-link__arrow {
  font-size: 14px;
  color: rgba(255,255,255,.2);
  margin-left: auto;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.svp-link:hover .svp-link__url { color: var(--c-white); }
.svp-link:hover .svp-link__arrow {
  color: rgba(255,255,255,.6);
  transform: translateX(3px);
}
.svp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 2px;
}
.svp-action-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  color: rgba(214,211,209,.5);
  padding: 16px 22px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, color .15s, border-color .15s;
}
.svp-action-btn:hover {
  background: var(--bg-panel-alt);
  color: var(--c-white);
  border-color: rgba(255,255,255,.16);
}
.svp-action-btn__icon {
  font-size: 7px;
  color: var(--accent-red);
}
.stp {}
.stp-banner {
  width: 100%;
  height: clamp(160px, 22vw, 280px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.stp-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.95));
}
.stp-banner--default {
  background: url('/assets/placeholder-stable.svg') center/cover var(--bg-panel);
}
.stp-header {
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.stp-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stp-identity {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.stp-rule {
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 40px;
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(230,40,40,.6);
}
.stp-kicker {
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.stp-name {
  font-size: clamp(28px, 5vw, 52px);
  color: var(--c-white);
  line-height: 1;
  margin: 0 0 6px;
}
.stp-motto {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .08em;
  font-style: italic;
  margin: 0;
}
.stp-header__rule {
  display: flex;
  align-items: center;
}
.stp-head-rule__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,.1), transparent);
}
.stp-head-rule__line:last-child {
  background: linear-gradient(to left, rgba(255,255,255,.1), transparent);
}
.stp-head-rule__diamond {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.2);
  transform: rotate(45deg);
  margin: 0 10px;
  flex-shrink: 0;
}
.stp-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stp-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stp-stat__val {
  font-size: 24px;
  color: var(--c-white);
  line-height: 1;
}
.stp-stat__label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stp-owner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stp-owner__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  object-fit: cover;
}
.stp-owner__avatar--initials {
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-family: var(--f-lino);
  font-size: 11px;
  color: var(--c-white);
}
.stp-owner__name {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stp-edit-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(214,211,209,.6);
  padding: 7px 14px;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: auto;
  transition: background .15s, color .15s;
}
.stp-edit-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--c-white);
}
.stp-desc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.stp-desc-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.stp-desc-rule__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}
.stp-desc-rule__label {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.stp-desc {
  font-size: 13px;
  color: rgba(214,211,209,.7);
  line-height: 1.7;
  letter-spacing: .04em;
  margin: 0;
}
.stp-herd {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.stp-herd__head { margin-bottom: 20px; }
.create-stable-view {
  max-width: 540px;
  margin: 0 auto;
}
.create-stable-locked {
  text-align: center;
  padding: 60px 20px;
}
.create-stable-locked__icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.load-more {
  text-align: center;
  padding: 20px 0;
}
.foal-stats { margin-top: 16px; }
.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.topbar-accent {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-gold), rgba(227,196,143,.3), transparent);
  margin-top: 2px;
}
.btn--menu {
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn--menu:hover {
  border-color: var(--accent-gold);
  background: rgba(227,196,143,.08);
}
.btn--menu-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-white);
  border-radius: 2px;
  transition: background .2s;
}
.btn--menu:hover .btn--menu-line {
  background: var(--accent-gold);
}
.pause-brand {
  font-size: 42px;
  color: rgba(255,255,255,.9);
  letter-spacing: .08em;
}
.pause-user-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(227,196,143,.2);
  border-top: 1px solid rgba(227,196,143,.15);
  flex-shrink: 0;
}
.pause-user-strip .pause-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.pause-user-strip .btn--sm {
  font-size: 10px;
  padding: 0 10px;
  height: 30px;
  flex-shrink: 0;
}
.pause-footer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 4px;
}
.select--compact {
  height: 32px;
  font-size: 11px;
  padding: 0 8px;
  width: auto;
  min-width: 90px;
  flex-shrink: 0;
  background: rgba(0,0,0,.3);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}
.pause-footer-row .p-navbtn--logout {
  padding: 0 8px;
  min-height: 32px;
  font-size: 14px;
}
#rrFundsWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pause-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: opacity 0.15s;
}
.pause-avatar-btn:hover { opacity: 0.75; }
.pause-user-strip .pause-user-name {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--c-white, --c-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: left;
  transition: color 0.15s;
}
.pause-user-strip .pause-user-name:hover { color: #e74c3c; }
.pause-icon-btn {
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242,237,230,0.5);
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.pause-icon-btn:hover {
  color: var(--accent-red);
  background: rgba(0,0,0,.2);
}
.pause-icon-btn .nav-achievement-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red, #c0392b);
  color: #fff;
  font-size: 9px;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.card__body {
  padding: 12px 14px;
  background: var(--bg-panel);
  position: relative;
}
.card__name {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1;
  margin: 0 0 6px;
}
.card__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 8px;
  letter-spacing: 0.05em;
}
.card__photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.card__photo--placeholder {
  background-image: url("/assets/images/placeholder-horse.svg");
  background-size: cover;
  background-position: center;
  min-height: 160px;
}
.stable-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
}
.stable-fab__btn {
  background: var(--accent-red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 24px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.6),
    0 2px 8px rgba(230,40,40,0.3);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.stable-fab__btn:hover {
  background: var(--accent-red-dark);
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.7),
    0 4px 12px rgba(230,40,40,0.4);
}
.stable-fab__btn:active { transform: translateY(0); }
@media (max-width: 640px) {
  .stable-fab {
    bottom: 16px;
    right: 16px;
  }
  .stable-fab__btn { padding: 12px 20px; }
}
.t-hapna { font-family: 'RDRHapna', 'Georgia', serif; }
.muted { color: var(--dim); }
.error { color: #ff5555; }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.btn--secondary {
  background: rgba(205,174,125,0.15);
  border-color: rgba(205,174,125,0.4);
  color: var(--accent-red);
}
.btn--secondary:hover {
  background: rgba(205,174,125,0.25);
}
.btn--danger {
  background: rgba(220,40,40,0.85);
  border-color: rgba(220,40,40,0.6);
  color: #fff;
}
.btn--danger:hover {
  background: rgba(220,40,40,1);
}
.btn--danger-ghost {
  background: transparent;
  border-color: rgba(220,40,40,0.4);
  color: rgba(220,40,40,0.9);
}
.btn--danger-ghost:hover {
  background: rgba(220,40,40,0.1);
  border-color: rgba(220,40,40,0.8);
}
.btn--icon {
  padding: 6px 8px;
  background: transparent;
  border-color: transparent;
}
.btn--icon:hover { background: rgba(255,255,255,0.06); }
.btn--xs {
  padding: 3px 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.pill--gold {
  background: rgba(204,7,6,0.14);
  color: var(--accent-red);
  border: 1px solid rgba(204,7,6,0.3);
}
.skeleton-card {
  background: var(--bg-panel);
  border-radius: 4px;
  overflow: hidden;
}
.skeleton-card__img { height: 160px; }
.skeleton-card__body { padding: 12px; }
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}
@keyframes skeleton-shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}
.skeleton-pulse {
  background: rgba(255,255,255,0.08);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.horse-node {
  width: 100%;
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.9);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--ease-rdr), border-color .25s, background .25s, box-shadow .25s;
}
.horse-node:hover {
  transform: translateY(-3px);
  border-color: var(--text-muted);
  background: var(--bg-panel-alt);
}
.horse-node.focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(230,40,40,.25), 0 20px 50px -22px rgba(0,0,0,1);
}
.horse-node.unknown {
  opacity: .5;
  cursor: default;
}
.horse-node.unknown:hover {
  transform: none;
  border-color: var(--border-main);
}
.horse-node.node--sold { border-color: rgba(227,196,143,.30); }
.horse-node.node--sold:hover {
  border-color: rgba(227,196,143,.60);
  box-shadow: var(--glow-gold);
}
.horse-node .topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.horse-node .role {
  font-family: var(--f-lino);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 9px;
  color: var(--text-muted);
}
.horse-node .badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.horse-node .body {
  display: flex;
  gap: 10px;
  padding: 8px 10px 10px;
}
.horse-node .media {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--border-main);
  background: url('/assets/placeholder-horse.svg') center/cover var(--c-black);
  overflow: hidden;
}
.horse-node .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-rdr);
}
.horse-node:hover .media img { transform: scale(1.1); }
.horse-node .fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--f-redemption);
  font-size: 28px;
  color: rgba(255,255,255,.15);
}
.horse-node .meta {
  flex: 1;
  min-width: 0;
}
.horse-node .name {
  font-family: var(--f-redemption);
  font-size: clamp(16px, 2.5vw, 26px);
  line-height: .95;
  color: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.horse-node .sub {
  margin-top: 4px;
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.horse-node .txt {
  font-family: var(--f-lino);
  font-size: 10px;
}
.horse-node .ovr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  padding: 4px 8px;
  font-family: var(--f-lino);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 9px;
  color: rgba(214,211,209,.65);
  margin-top: 8px;
}
.horse-node .ovr .k { font-size: 8px; }
.horse-node .ovr .v {
  font-family: var(--f-redemption);
  font-size: 18px;
  color: rgba(214,211,209,.9);
}
.horse-node .badge {
  position: static;
  transform: none;
  font-size: 9px;
  padding: 3px 6px;
  border-width: 1px;
}
.tablewrap { overflow-x: auto; }
.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.registry-table th {
  font-family: 'RDRLino', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--dim);
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  text-align: left;
}
.registry-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.registry-row {
  cursor: pointer;
  transition: background 0.1s;
}
.registry-row:hover { background: rgba(255,255,255,0.03); }
.registry-row--sold { opacity: 0.55; }
.registry-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.registry-thumb--empty {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: url('/assets/placeholder-horse.svg') center/cover;
}
.registry-td--thumb { width: 40px; }
.registry-td--name { font-size: 14px; white-space: nowrap; }
.registry-td--meta { color: var(--dim); white-space: nowrap; }
.registry-td--coat {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registry-td--ovr { text-align: center; }
.registry-td--server {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registry-td--edit { width: 60px; }
.registry-star {
  color: var(--accent-red);
  margin-left: 4px;
}
.registry-sold {
  font-family: 'RDRLino', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-left: 6px;
  opacity: 0.7;
}
.registry-ovr {
  font-family: 'Redemption', serif;
  font-size: 18px;
}
.registry-ovr--max { color: var(--accent-red); }
.registry-edit-btn {
  opacity: 0;
  transition: opacity 0.15s;
}
.registry-row:hover .registry-edit-btn { opacity: 1; }
.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-cell__svg {
  width: 32px;
  height: 32px;
}
.stat-cell__val {
  font-family: 'Redemption', serif;
  font-size: 12px;
  line-height: 1;
}
.settings-view { max-width: 640px;margin: 0 auto; }
.settings-section { margin-bottom: 32px; }
.settings-section__title {
  margin: 0 0 12px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}
.settings-row__label {
  font-size: 12px;
  letter-spacing: 0.05em;
}
.settings-row__value {
  font-size: 12px;
  color: var(--dim);
}
.friends-view,
.friends-feed-view {
  max-width: 720px;
}
.friends-notice { margin-bottom: 24px; }
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  transition: border-color 0.1s;
}
.friend-row:hover { border-color: rgba(255,255,255,0.12); }
.friend-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.friend-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.friend-row__avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(205,174,125,0.15);
  font-size: 13px;
  color: var(--accent-red);
}
.friend-row__info {
  flex: 1;
  min-width: 0;
}
.friend-row__name { font-size: 16px; }
.friend-row__since {
  font-size: 10px;
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.friend-row__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.compare-view{
  max-width:900px;
  margin:0 auto;
}
.compare-slots{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:20px;
  align-items:start;
  margin-bottom:28px;
}
.compare-slot{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.compare-vs{
  font-size:28px;
  text-align:center;
  color:var(--text-muted);
  padding-top:60px;
}
.compare-horse-card{
  background:var(--bg-panel);
  border:1px solid rgba(255,255,255,.08);
  border-radius:4px;
  overflow:hidden;
}
.compare-horse-card__img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
}
.compare-horse-card__name{
  font-size:20px;
  padding:10px 12px 4px;
}
.compare-horse-card .t-lino{
  padding:0 12px 10px;
  font-size:10px;
  color:var(--text-muted);
}
.compare-stats-panel{
  margin-top:22px;
  background:var(--bg-panel);
  border:1px solid rgba(255,255,255,.08);
  border-radius:4px;
  padding:22px 24px;
}
.compare-stats-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  margin-bottom:18px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.compare-stats-name{
  font-size:18px;
}
.compare-stats-name:last-child{
  text-align:right;
}
.compare-stats-title{
  font-size:9px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--text-muted);
  text-align:center;
}
.compare-stat-row{
  display:grid;
  grid-template-columns:34px 1fr 34px;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.compare-stat-val{
  font-family:var(--f-redemption);
  font-size:18px;
  text-align:center;
  color:var(--text-muted);
}
.compare-stat-val--winner{
  color:var(--accent-gold);
}
.compare-stat-bars{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
}
.compare-stat-label{
  font-family:var(--f-lino);
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--text-muted);
  text-align:center;
}
.compare-bar{
  height:4px;
  border-radius:2px;
  min-width:2px;
  transition:width .35s ease;
}
.compare-bar--a{
  justify-self:end;
  background:var(--accent-red);
  box-shadow:0 0 8px rgba(var(--red-rgb),.35);
}
.compare-bar--b{
  justify-self:start;
  background:var(--accent-gold);
  box-shadow:0 0 8px rgba(204,7,6,.35);
}
.compare-total-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.compare-total{
  font-family:var(--f-redemption);
  font-size:28px;
  text-align:center;
  color:var(--text-muted);
}
.compare-total--winner{
  color:var(--accent-gold);
}
.compare-total-row .t-lino{
  font-size:9px;
  letter-spacing:.2em;
  text-align:center;
  color:var(--text-muted);
}
@media (max-width:600px){
  .compare-slots{
    grid-template-columns:1fr;
  }
  .compare-vs{
    padding-top:0;
  }
}
.breeding-view { max-width: 860px; }
.breeding-selector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 32px;
}
.breeding-parent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.breeding-parent__card { min-height: 60px; }
.breeding-heart {
  font-size: 28px;
  align-self: center;
  padding-top: 36px;
  color: var(--dim);
}
.breeding-horse-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.breeding-horse-card__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.breeding-horse-card__name {
  font-size: 18px;
  padding: 10px 12px 4px;
}
.breeding-result { margin-top: 8px; }
.foal-result__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.foal-stat-row__label {
  font-family: 'RDRLino', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.mini-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px 12px;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mini-stat__label {
  font-family: 'RDRLino', sans-serif;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.mini-stat__val {
  font-family: 'Redemption', serif;
  font-size: 14px;
}
.horse-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.horse-view__hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.horse-view__photo {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}
.horse-view__photo--empty {
  width: 200px;
  height: 150px;
  border-radius: 4px;
  flex-shrink: 0;
  background: url('/assets/placeholder-horse.svg') center/cover;
}
.horse-view__header-info {
  flex: 1;
  min-width: 0;
}
.horse-view__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.horse-view__pats { margin-top: 10px; }
.horse-view__section {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.horse-view__stats {}
.profile-view { max-width: 800px; }
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.profile-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(205,174,125,0.15);
  font-family: 'Redemption', serif;
  font-size: 28px;
  color: var(--accent-red);
}
.profile-header__info {
  flex: 1;
  min-width: 0;
}
.profile-name {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 36px);
}
.profile-settings-btn { flex-shrink: 0; }
.profile-points {
  font-family: 'RDRLino', sans-serif;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px,1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.profile-stat {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 14px 10px;
  text-align: center;
}
.profile-stat__val {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
  margin-bottom: 4px;
}
.profile-stat__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.profile-section { margin-bottom: 32px; }
.profile-section h3 { margin: 0 0 14px; }
.profile-license {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.profile-badge {
  font-family: 'RDRLino', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.achievements-view {}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 12px;
}
.achievement-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  transition: border-color 0.15s;
}
.achievement-card--earned { border-color: rgba(205,174,125,0.3); }
.achievement-card--locked { opacity: 0.45; }
.achievement-card:hover { border-color: rgba(255,255,255,0.2); }
.achievement-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.achievement-badge {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
}
.achievement-badge--locked {
  opacity: 0.4;
  filter: grayscale(1);
}
.achievement-badge__icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}
.achievement-badge__name {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--dim);
}
.achievement-badge__pts {
  font-family: 'Redemption', serif;
  font-size: 14px;
  color: var(--accent-red);
}
.tack-view {}
.tack-card__meta {
  font-size: 11px;
  color: var(--dim);
  margin: 4px 0;
}
.tack-card__type {
  font-family: 'RDRLino', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 4px;
}
.stable-banner-preview {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: url('/assets/images/placeholder-stable.webp') center/cover;
}
.rdr-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 20px;
}
.modal-main {
  flex: 1 1 60%;
  min-width: 0;
}
.modal-side { flex: 0 0 280px; }
.txt { font-family: 'RDRLino', sans-serif; }
.l-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.l-feature__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stable-card { cursor: pointer; }
.stable-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.tier-card__cta {
  margin-top: auto;
  padding-top: 16px;
}
.help-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.pause-overlay { z-index: 8000; }
.pause-panels-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.pause-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .22s var(--ease-rdr), transform .22s var(--ease-rdr);
}
.pause-panel.is-active {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.pause-panel--sub { transform: translateX(40px); }
.pause-panel--sub.is-active { transform: translateX(0); }
#pausePanelRoot { padding: 4px 0 0; }
.pause-root-footer {
  margin-top: auto;
  padding: 8px 0 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.p-catbtn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 52px;
  transition: background .15s, padding-left .2s var(--ease-rdr);
}
.p-catbtn:hover {
  background: rgba(0,0,0,.15);
  padding-left: 32px;
}
.p-catbtn__label {
  font-family: var(--f-redemption);
  font-size: clamp(22px, 4.5vw, 30px);
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}
.p-catbtn:hover .p-catbtn__label { color: #fff; }
.p-catbtn__arrow {
  font-size: 22px;
  color: rgba(255,255,255,.3);
  transition: color .15s, transform .15s;
}
.p-catbtn:hover .p-catbtn__arrow {
  color: rgba(255,255,255,.7);
  transform: translateX(4px);
}
.p-backbtn {
  background: rgba(0,0,0,.2);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--f-lino);
  letter-spacing: .14em;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  padding: 12px 24px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  transition: color .15s, background .15s;
  font-family: monospace;
}
.p-backbtn:hover {
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.3);
}
.pause-panel--sub .p-navbtn { font-size: clamp(20px, 4vw, 28px); }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-rule {
  width: 3px;
  height: 36px;
  background: var(--accent-red);
  box-shadow: var(--glow-red);
  flex-shrink: 0;
}
.brand-wordmark {
  font-size: clamp(20px, 3.5vw, 32px);
  color: var(--c-white);
  line-height: 1;
  letter-spacing: .04em;
  margin: 0;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(4,3,2,.97);
  border-top: 1px solid rgba(255,255,255,.07);
}
.bottom-bar__btn {
  flex: 1;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.bottom-bar__btn:last-child { border-right: none; }
.bottom-bar__btn--menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.bottom-bar__btn--menu:hover { background: rgba(255,255,255,.05); }
.bottom-bar__line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,.6);
  transition: background .15s;
}
.bottom-bar__btn--menu:hover .bottom-bar__line {
  background: rgba(255,255,255,.9);
}
.bottom-bar__btn--stable {
  color: rgba(214,211,209,.6);
}
.bottom-bar__btn--stable:hover,
.bottom-bar__btn--stable.active {
  color: var(--c-white);
  background: rgba(255,255,255,.04);
}
.bottom-bar__btn--stable.active {
  box-shadow: inset 0 2px 0 var(--accent-red);
}
.bottom-bar__btn--add {
  color: var(--accent-red);
  font-weight: 600;
}
.bottom-bar__btn--add:hover {
  background: rgba(230,40,40,.1);
  color: #ff6b6b;
}

.bottom-bar__btn--filter {
  max-height: 56px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, max-height 0.25s ease, transform 0.2s ease;
}

.bottom-bar__btn--filter.hidden {
  opacity: 0;
  max-height: 0;
  transform: translateY(100%);
  pointer-events: none;
  overflow: hidden;
}

.main { padding-bottom: 64px; }
.p-navbtn--discord {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  display: block;
}
.p-navbtn--discord:hover { color: #7289da; }
.story-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  border-radius: 2px;
}
.story-image-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.story-card-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.hv-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin: 16px 0 0;
}
.hv-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.hv-tab:hover { color: var(--c-white); }
.hv-tab.active {
  color: var(--c-white);
  border-bottom-color: var(--accent-red);
}
.hv-panel {
  padding-top: 16px;
}
.hv-stories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hv-story-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}
.hv-story-card__img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}
.hv-story-card__body {
  padding: 14px 16px;
}
.hv-story-card__meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.admin-tile {
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 16px 12px;
  text-align: center;
}
.admin-tile__val  { font-size: clamp(28px, 4vw, 40px); line-height: 1; margin-bottom: 4px; }
.admin-tile__label { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.admin-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 720px) { .admin-charts-row { grid-template-columns: 1fr; } }
.admin-chart-panel { overflow: hidden; }
.admin-chart-panel canvas { width: 100%; display: block; }
.admin-bar-list  { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.admin-bar-row   { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 8px; }
.admin-bar-row__label { font-size: 10px; letter-spacing: 0.08em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-bar-row__track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.admin-bar-row__fill  { height: 100%; background: var(--accent-red); border-radius: 3px; transition: width 0.4s ease; }
.admin-bar-row__val   { font-size: 10px; color: var(--text-muted); text-align: right; }
.admin-user-table { display: flex; flex-direction: column; gap: 2px; }
.admin-user-row {
  display: grid;
  grid-template-columns: 2fr 80px 50px 90px 80px 60px 100px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 12px;
}
.admin-user-row:not(.admin-user-row--head):hover { background: rgba(255,255,255,0.03); }
.admin-user-row--head { opacity: 0.4; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-user-row__name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.admin-user-row__num  { opacity: 0.6; }
.admin-user-row__date { font-size: 10px; opacity: 0.4; }
.admin-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.admin-avatar--initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(205,174,125,0.15);
  font-size: 11px; color: var(--accent-red);
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
}
.admin-badge-btn {
  background: none; border: none; cursor: pointer;
  font-size: 10px; letter-spacing: 0.08em; padding: 3px 6px;
  border-radius: 3px; transition: background 0.1s;
  font-family: var(--f-lino);
}
.admin-badge-btn:hover { background: rgba(255,255,255,0.06); }
.admin-tier-pill--free    { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.admin-tier-pill--premium { background: rgba(205,174,125,0.15); color: var(--accent-red); border-color: rgba(205,174,125,0.3); }
.admin-tier-pill--pro     { background: rgba(220,60,60,0.15);   color: var(--accent-red); border-color: rgba(220,60,60,0.3); }
.topbar-user__profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity .15s;
}
.topbar-user__profile-btn:hover { opacity: .75; }
.pause-user-name {
  font-family: var(--f-lino);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
}
.pause-user-name:hover { color: #fff; }
#cropOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}
#cropOverlay.crop-overlay--visible { opacity: 1; }
.crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.crop-dialog {
  position: relative;
  z-index: 1;
  background: var(--surface, #1a1a1a);
  border: 1px solid rgba(205,174,125,0.2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 96vw;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
.crop-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.crop-title { font-size: 15px; color: var(--accent-red); }
.crop-hint  { font-size: 10px; letter-spacing: 0.08em; color: var(--dim, #666); }
.crop-stage {
  position: relative;
  overflow: hidden;
  background: #000;
}
#cropCanvas {
  display: block;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#cropCanvas:active { cursor: grabbing; }
.crop-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.42);
}
.crop-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent-red);
  border-style: solid;
  border-width: 0;
}
.crop-corner--tl { top: 0;    left: 0;  border-top-width: 2px;    border-left-width: 2px; }
.crop-corner--tr { top: 0;    right: 0; border-top-width: 2px;    border-right-width: 2px; }
.crop-corner--bl { bottom: 0; left: 0;  border-bottom-width: 2px; border-left-width: 2px; }
.crop-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.crop-footer {
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.crop-zoom-slider {
  width: 100%;
  accent-color: var(--accent-red);
  cursor: pointer;
}
.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.stable-banner-edit { display: flex; flex-direction: column; gap: 10px; }
.stable-banner-preview {
  width: 100%; height: 80px;
  background: rgba(255,255,255,0.04) center/cover no-repeat;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.stable-banner-actions { display: flex; gap: 8px; }
.horse-name-prefix {
  display: inline-flex; align-items: center;
  background: rgba(205,174,125,0.15);
  border: 1px solid rgba(205,174,125,0.3);
  color: var(--accent-red);
  font-family: var(--f-lino); font-size: 9px; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 3px;
  vertical-align: middle; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.horse-name-prefix:hover {
  background: rgba(205,174,125,0.25);
  border-color: rgba(205,174,125,0.6);
}
.admin-breed-list { display: flex; flex-direction: column; gap: 4px; }
.admin-breed-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.035);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s ease;
}
.admin-breed-row:hover {
    background: rgba(255,255,255,0.07);
}
.admin-breed-row > :nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-media__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 140px;
  background: #0d0c0b;
  color: rgba(255,255,255,0.12);
  font-size: 64px;
}
.pill--link {
  cursor: pointer;
  background: rgba(205,174,125,0.12);
  border: 1px solid rgba(205,174,125,0.25);
  color: var(--accent-red);
  transition: background 0.15s;
}
.pill--link:hover {
  background: rgba(205,174,125,0.22);
}
.hrp {
  width: 100%;
}
.hrp-banner {
  height: 260px;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.hrp-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(0,0,0,0.72)),
    linear-gradient(to right, rgba(0,0,0,0.28), rgba(0,0,0,0.06) 28%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.hrp-banner--default {
  background:
    linear-gradient(180deg, rgba(32,32,32,0.7), rgba(10,10,10,0.94)),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 30%);
}
.hrp-header {
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 0;
  background: rgba(8,8,8,0.94);
}
.hrp-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto minmax(260px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 28px 28px 24px;
}
.hrp-identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
.hrp-identity__main {
  min-width: 0;
}
.hrp-rule {
  width: 4px;
  min-width: 4px;
  height: 78px;
  background: var(--accent-red, #a43a32);
  box-shadow: 0 0 18px rgba(164,58,50,0.28);
}
.hrp-kicker {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hrp-name {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  word-break: break-word;
}
.hrp-motto {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.82;
  font-style: italic;
}
.hrp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hrp-header__rule {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 90px;
}
.hrp-head-rule__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
}
.hrp-head-rule__diamond {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: rgba(255,255,255,0.28);
}
.hrp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.hrp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hrp-stat--big {
  min-width: 88px;
}
.hrp-stat__val {
  font-size: 52px;
  line-height: 0.9;
}
.hrp-stat__label {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hrp-edit-btn,
.hrp-pat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s, border-color .15s, background .15s;
}
.hrp-edit-btn:hover,
.hrp-pat-btn:hover {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
}
.hrp-pat-btn.patted {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(204,7,6,.06);
}
.hrp-pat-btn .pat-btn__icon {
  font-size: 16px;
  transition: transform .15s;
}
.hrp-pat-btn.patted .pat-btn__icon { transform: scale(1.25); }
.hrp-status-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.hrp-section,
.hrp-desc-wrap,
.hrp-tack {
  margin-top: 22px;
}
.hrp-desc-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hrp-desc-rule__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.hrp-desc-rule__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.72;
}
.hrp-block {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.hrp-block + .hrp-block {
  margin-top: 10px;
}
.hrp-block__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}
.hrp-block__text {
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
  opacity: 0.92;
}
.hrp-stats-wrap {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.hrp-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hrp-info-card {
  padding: 16px 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  min-height: 84px;
}
.hrp-info-card__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-bottom: 8px;
}
.hrp-info-card__value {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.92;
}
.hrp-tack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hrp-detail-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.hrp-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.hrp-detail-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.64;
}
.hrp-detail-val {
  font-size: 13px;
  opacity: 0.9;
  text-align: right;
}
.hrp-lineage-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hrp-lineage-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hrp-lineage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.045);
}
.hrp-lineage-card--unknown {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}
.hrp-lineage-card__name {
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hrp-lineage-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.hrp-lineage-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hrp-lineage-card__body {
  padding: 14px;
}
.hrp-lineage-card .kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hrp-lineage-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
}
.hrp-lineage-card .card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hrp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}
#hrpStoriesWrap .grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hv-tabs {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hv-tab {
  appearance: none;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.62);
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.hv-tab.active {
  color: rgba(255,255,255,0.96);
  box-shadow: inset 0 -2px 0 var(--accent-gold, #c9a25f);
}
.hv-panel.hidden {
  display: none !important;
}
.hrp-stats-wrap .stats,
.hrp-stats-wrap .horse-stats,
.hrp-stats-wrap .stats-grid,
.hrp-stats-wrap .hrp-stats {
  width: 100%;
}
@media (max-width: 1100px) {
  .hrp-header__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .hrp-header__rule {
    display: none;
  }
  .hrp-meta {
    align-items: flex-start;
  }
  .hrp-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #hrpStoriesWrap .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .hrp-banner {
    height: 190px;
  }
  .hrp-header__inner {
    padding: 20px 16px 18px;
  }
  .hrp-identity {
    gap: 14px;
  }
  .hrp-rule {
    height: 58px;
  }
  .hrp-name {
    font-size: 34px;
  }
  .hrp-motto {
    font-size: 13px;
  }
  .hrp-stat__val {
    font-size: 42px;
  }
  .hrp-info-grid {
    grid-template-columns: 1fr;
  }
  .hrp-lineage-row {
    grid-template-columns: 1fr;
  }
  #hrpStoriesWrap .grid.cards {
    grid-template-columns: 1fr;
  }
  .hrp-detail-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hrp-detail-val {
    text-align: left;
  }
}
.horse-hero{
  height:420px;
  background-size:cover;
  background-position:center;
}
.horse-header{
  text-align:center;
  padding:30px 20px;
}
.horse-name{
  font-size:60px;
}
.horse-divider{
  width:120px;
  height:4px;
  background:#b53030;
  margin:12px auto;
}
.horse-tags span{
  margin:0 10px;
  opacity:.8;
}
.horse-stats{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
  margin:30px 0;
}
.horse-stat-card{
  background:rgba(255,255,255,.03);
  padding:20px;
  text-align:center;
}
.horse-stat-val{
  font-size:32px;
}
.horse-main{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:30px;
}
.horse-card{
  background:rgba(255,255,255,.03);
  padding:24px;
}
.horse-reg-row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.horse-lineage{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.horse-parent{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  background:rgba(255,255,255,.03);
  padding:12px;
  border-radius:6px;
  border:none;
  color: #fff;
  cursor:pointer;
}
.horse-parent-avatar{
  width:54px;
  height:54px;
  border-radius:50%;
  object-fit:cover;
}
.horse-parent-avatar--fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
}
.horse-parent-name{
  font-size:12px;
  text-align:center;
}
.horse-avatar {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.home-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 60px;
}
.home-body {
  padding: 0 40px;
  margin-bottom: 40px;
}
.home-sec-title {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,.1), transparent);
}
.home-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 2px solid var(--accent-red);
}
.home-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 5% 50%, rgba(204,7,6,.14) 0%, transparent 55%),
    url("/assets/images/20260307120623_1.jpg"),
    linear-gradient(150deg, #1c0e08 0%, #0d0806 50%, #080504 100%);
background-size: cover;
	background-position: center;
}
.home-hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.home-hero__body {
  position: relative;
  z-index: 1;
  padding: 48px 40px 44px;
}
.home-hero__greet {
  font-size: 17px;
  font-style: italic;
  color: var(--accent-gold);
  opacity: .85;
  margin: 0 0 10px;
}
.home-hero__name {
  font-size: clamp(56px, 8vw, 104px);
  line-height: .88;
  margin: 0 0 32px;
  letter-spacing: .02em;
  text-shadow: 0 4px 28px rgba(0,0,0,.8);
}
.home-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-statrow {
  display: flex;
    align-items: stretch;
    background: rgba(0, 0, 0, .4);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 20px;
}
.home-statrow__cell {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  gap: 5px;
  text-align: center;
}
.home-statrow__val {
  font-size: 40px;
  line-height: 1;
  color: var(--c-white);
}
.home-statrow__val--sm { font-size: 22px; }
.home-statrow__lbl {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.home-statrow__rule {
  width: 1px;
  background: rgba(255,255,255,.07);
  align-self: stretch;
  flex-shrink: 0;
}
.home-horse-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.home-horse-banner {
  position: relative;
  height: 400px;
  background-color: #0d0c0b;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  transition: border-color .25s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.home-horse-banner:hover {
  border-color: var(--accent-red);
  transform: translateY(-3px);
}
.home-horse-banner--nophoto {
  background: radial-gradient(ellipse at 30% 30%, rgba(70,18,10,.9), #0d0c0b 70%);
}
.home-horse-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.93) 100%);
}
.home-horse-banner__badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 9px;
  letter-spacing: .22em;
  background: var(--accent-red);
  color: #fff;
  padding: 5px 14px;
}
.home-horse-banner__body {
  position: relative;
  z-index: 1;
  padding: 20px 24px 24px;
  width: 100%;
}
.home-challenge {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background: radial-gradient(ellipse at center, rgba(28,18,12,1) 0%, rgba(12,8,6,1) 100%);
  border: 1px solid rgba(205,174,125,.25);
  border-left: 4px solid var(--accent-gold);
  padding: 36px 40px;
  display: flex;
  align-items: center;
}
.home-challenge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.home-challenge__glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(205,174,125,.09) 0%, transparent 65%);
  pointer-events: none;
}
.home-challenge__content { position: relative; z-index: 1; }
.home-challenge__title {
  font-size: clamp(36px, 4.5vw, 58px);
  color: var(--accent-gold);
  margin: 0 0 16px;
  line-height: .92;
}
.home-challenge__desc {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  opacity: .88;
  max-width: 720px;
}
.home-stats-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-stats-panel { padding: 24px; }
.home-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.home-stat-item:last-child { border-bottom: none; }
.home-stat-item__label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.home-stat-item__val {
  font-size: 28px;
  color: var(--c-white);
  line-height: 1;
}
.home-stat-item__val--sm { font-size: 18px; }
@media (max-width: 1100px) {
  .home-body { padding: 0 24px; }
  .home-hero__body { padding: 36px 24px 36px; }
}
@media (max-width: 900px) {
  .home-stats-3col { grid-template-columns: 1fr 1fr; }
  .home-horse-pair { grid-template-columns: 1fr; }
  .home-horse-banner { height: 260px; }
  .home-challenge { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .home-hero__name { font-size: 52px; }
  .home-stats-3col { grid-template-columns: 1fr; }
  .home-body { padding: 0 16px; }
  .home-hero__body { padding: 28px 16px 28px; }
  .home-statrow__val { font-size: 28px; }
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.sc-card {
  position: relative;
  height: 460px;
  background-color: #0e0d0c;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .25s;
}
.sc-card--nophoto {
  background:
    radial-gradient(ellipse 90% 90% at 20% 70%, rgba(204,7,6,.14) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1c100a 0%, #0b0806 100%);
  background-size: cover, 180px 180px, cover;
}
.sc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.sc-card:hover::before {
  transform: scale(1.06);
}
.sc-card--nophoto::before { display: none; }
.sc-card__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, transparent 35%, rgba(0,0,0,.6) 65%, rgba(0,0,0,.95) 100%);
  z-index: 1;
  transition: opacity .3s;
}
.sc-card:hover .sc-card__scrim {
  opacity: .85;
}
.sc-card__top {
  padding: 14px 14px 0;
  gap: 8px;
}
.sc-card__vis,
.sc-card__horse {
  font-size: 8px;
  letter-spacing: .16em;
  padding: 4px 8px;
  backdrop-filter: blur(3px);
}
.sc-card__horse {
  font-size: 9px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  padding: 3px 9px;
}
.sc-card__body {
  position: relative;
  z-index: 2;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sc-card__date {
  font-size: 9px;
  letter-spacing: .18em;
  opacity: .45;
}
.sc-card__title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: .92;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.sc-card__author {
  font-size: 12px;
  opacity: .52;
  margin: 1px 0 0;
}
.sc-card__snippet {
  font-size: 12px;
  line-height: 1.65;
  opacity: .56;
  margin-top: 6px;
}
.sc-card__cta {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--accent-red);
  opacity: 0;
  margin-top: 4px;
  transition: opacity .2s;
}
.sc-card:hover .sc-card__cta { opacity: 1; }
.sr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity .3s;
}
.sr-overlay--in { opacity: 1; }
.sr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
}
.sr-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(16px) scale(.98);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sr-overlay--in .sr-sheet {
  transform: translateY(0) scale(1);
}
.sr-close {
  position: absolute;
  top: -14px;
  right: 0;
  width: 36px;
  height: 36px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: color .15s, border-color .15s;
}
.sr-close:hover {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.sr-paper {
  background: #f0ede7;
  color: #1c1917;
  box-shadow:
    0 4px 0 #c8c4be,
    0 8px 0 #b8b4ae,
    0 32px 80px rgba(0,0,0,.9);
  transform: rotate(-.4deg);
  padding: 10px;
}
.sr-overlay--in .sr-paper {
  animation: sr-settle .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sr-settle {
  from { transform: rotate(-1.2deg) translateY(8px); }
  to   { transform: rotate(-.4deg)  translateY(0);   }
}
.sr-paper__inner {
  border: 2px solid #1c1917;
  padding: 44px 52px 48px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.04), transparent 120px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.1'/%3E%3C/svg%3E"),
    #f0ede7;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.04) 0%, transparent 120px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.1'/%3E%3C/svg%3E"),
    repeating-linear-gradient(transparent, transparent 27px, rgba(0,0,0,.06) 27px, rgba(0,0,0,.06) 28px);
}
.sr-header {
  text-align: center;
  margin-bottom: 36px;
}
.sr-header__kicker {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #5c4a3a;
  opacity: .6;
  margin-bottom: 14px;
}
.sr-header__title {
  font-size: clamp(32px, 6vw, 52px);
  line-height: .9;
  color: #1c1917;
  margin: 0 0 18px;
  letter-spacing: .02em;
}
.sr-header__rule {
  width: 60px;
  height: 2px;
  background: #1c1917;
  margin: 0 auto 16px;
}
.sr-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--f-hapna);
  font-size: 13px;
  color: #5c4a3a;
  opacity: .75;
}
.sr-horse-link {
  font-size: 9px;
  letter-spacing: .18em;
  color: #8b3030;
  border: 1px solid rgba(139,48,48,.3);
  padding: 3px 10px;
  background: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color .15s, color .15s;
}
.sr-horse-link:hover {
  color: #6b1a1a;
  border-color: rgba(107,26,26,.5);
}
.sr-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sr-para {
  font-size: 16px;
  line-height: 1.9;
  color: #2a2018;
  margin: 0 0 18px;
  letter-spacing: .01em;
}
.sr-body .sr-para:first-child::first-letter {
  font-family: var(--f-redemption);
  font-size: 4.6em;
  line-height: .72;
  float: left;
  margin: 8px 10px 0 0;
  color: #8b3030;
}
.sr-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px dashed rgba(0,0,0,.2);
  display: flex;
  justify-content: flex-end;
}
.sr-footer .btn {
  color: #1c1917;
  border-color: rgba(0,0,0,.3);
  background: rgba(0,0,0,.06);
}
.sr-footer .btn:hover {
  background: rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.5);
}
@media (max-width: 760px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-card { height: 380px; }
  .sr-paper__inner { padding: 32px 28px 36px; }
}
.card.hc .card-media {
  position: relative;
}
.card-edit-btn--overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .15s ease, transform .15s ease, background .15s ease, border-color .15s ease;
}
.card.hc:hover .card-edit-btn--overlay {
  opacity: 1;
  transform: translateY(0);
}
.card-edit-btn--overlay:hover {
  background: rgba(0,0,0,.72);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
@media (pointer: coarse) {
  .card-edit-btn--overlay {
    opacity: .9;
    transform: none;
  }
}



/* poster */
.poster {
  position: relative;
  display: flex;
  width: 960px;
  height: 540px;
  overflow: hidden;
  background: #0d0b09;
  border: 3px solid rgba(204,7,6,0.7);
  outline: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 5px #0d0b09, inset 0 0 0 6px rgba(204,7,6,0.35);
}

/* image column — 75% */
.poster__img {
  position: relative;
  flex: 0 0 75%;
  background-size: cover;
  background-position: center;
  background-color: #1a0d04;
}

.poster__img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, #0d0b09 100%);
}

.poster__img-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 25%, transparent 55%);
}

.poster__name {
  position: absolute;
  bottom: 20px;
  left: 22px;
  font-size: 68px;
  line-height: 1;
  margin: 0;
  text-shadow: 0 3px 20px rgba(0,0,0,0.9);
  z-index: 1;
}

/* info panel — 25% */
.poster__panel {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 12px;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(204,7,6,0.14) 0%, transparent 70%), #0d0b09;
}

.poster__forsale {
  font-size: 32px;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
}

.poster__rule {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 10px;
}

.poster__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.poster__field-label {
  font-family: var(--f-hapna);
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  line-height: 1;
  margin-bottom: 2px;
}

.poster__field-value {
  font-family: var(--f-hapna);
  font-size: 15px;
  color: #e8e5e3;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster__rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 0;
  margin-top: auto;
}

.pstr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pstr__svg {
  width: 52px;
  height: 52px;
}

.pstr__val {
  font-family: var(--f-redemption);
  font-size: 17px;
  line-height: 1;
  margin-top: -38px;
  position: relative;
  z-index: 1;
}

.pstr__lbl {
  font-family: var(--f-hapna);
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.poster__url {
  font-size: 11px;
  color: rgba(204,7,6,0.9);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* corner ornaments */
.poster__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.poster__corner::before,
.poster__corner::after {
  content: '';
  position: absolute;
  background: rgba(204,7,6,0.85);
}

.poster__corner::before {
  width: 8px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.poster__corner::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 6px 0 0 rgba(204,7,6,0.55), -6px 0 0 rgba(204,7,6,0.55);
}

.poster__border-tl { top: 4px;  left: 4px;  }
.poster__border-tr { top: 4px;  right: 4px; }
.poster__border-bl { bottom: 4px; left: 4px;  }
.poster__border-br { bottom: 4px; right: 4px; }

/* trade */

.trade-draft-panel,
.trade-claim-panel {
  margin-bottom: 30px;
}

.trade-section-kicker {
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .55;
  margin-bottom: 6px;
}

.trade-section-title {
  font-size: 32px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* gallery */
.trade-gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.trade-card {
  min-width: 150px;
  max-width: 150px;
  flex: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--bg-panel);
  transition: border-color .15s, transform .15s;
}

.trade-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.trade-card.is-selected {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 1px var(--accent-red);
}

.trade-card__media {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.trade-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) sepia(0.15);
  display: block;
}

.trade-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 140px;
  background: #0b0a09;
  font-size: 40px;
  color: #333;
}

.trade-card__body {
  padding: 10px 12px;
}

.trade-card__kicker {
  font-size: 8px;
  letter-spacing: .12em;
  opacity: .5;
  margin-bottom: 3px;
}

.trade-card__name {
  font-size: 19px;
  margin: 0;
  line-height: 1;
}

.trade-empty {
  text-align: center;
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .45;
}

/* action bar */
.trade-action-bar {
  margin-top: 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: 16px 18px;
}

.trade-action-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trade-action-bar__label {
  font-size: 9px;
  letter-spacing: .16em;
  opacity: .5;
  margin-bottom: 3px;
}

.trade-action-bar__horse {
  font-size: 26px;
  line-height: 1;
  color: #fff;
}

.trade-action-bar__controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.trade-price-input {
  width: 130px;
  font-size: 15px;
}

/* code box */
.trade-code-wrap {
  margin-top: 20px;
}

.trade-code-paper {
  max-width: 380px;
  transform: rotate(-1deg);
  box-shadow: 0 10px 30px rgba(0,0,0,.85);
}

.trade-code-inner {
  text-align: center;
  padding: 24px;
}

.trade-code-label {
  font-size: 10px;
  color: #1c1917;
  letter-spacing: .2em;
  border-bottom: 1px solid rgba(28,25,23,.3);
  padding-bottom: 8px;
  margin-bottom: 14px;
  opacity: 1;
}

.trade-code-value {
  font-size: 32px;
  color: #1c1917;
  font-weight: bold;
  letter-spacing: 4px;
  user-select: all;
}

.trade-code-sub {
  font-size: 18px;
  color: #1c1917;
  margin-top: 10px;
  opacity: .75;
}

.trade-code-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 380px;
}

/* claim */
.trade-claim-row {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.trade-claim-input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 15px;
}

/* list rows */
.trade-empty-row {
  justify-content: center;
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .4;
}

.trade-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-left: 2px solid rgba(255,255,255,.12);
}

.trade-row--out {
  border-left-color: var(--accent-red);
}

.trade-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.trade-row__name {
  font-size: 24px;
  color: #fff;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

.trade-row__date {
  opacity: .45;
  font-size: 11px;
}

.trade-row__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-row__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trade-row__actions {
  display: flex;
  gap: 6px;
}


/* hp back button */

.hp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-bottom: 4px;
}

.hp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding: 8px 0;
  transition: color .15s;
  min-height: 44px;
}

.hp-back-btn::before {
  content: '←';
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  transition: transform .15s;
}

.hp-back-btn:hover {
  color: var(--c-white);
}

.hp-back-btn:hover::before {
  transform: translateX(-3px);
}

.hp-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity .25s ease;

  /* layered background for depth */
  background: radial-gradient(
      circle at center,
      rgba(25,23,20,0.35) 0%,
      rgba(11,10,9,1) 70%
    ),
    #0b0a09;

  animation: vt-breathe 3.5s ease-in-out infinite;
}

.vt-overlay--in {
  opacity: 1;
}

.vt-overlay--out {
  opacity: 0;
}
.vt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.04) 0%,
    rgba(0,0,0,0.6) 70%
  );

  mix-blend-mode: overlay;
  animation: vt-flicker 4s ease-in-out infinite;
}

@keyframes vt-flicker {
  0%   { opacity: 0.25; }
  50%  { opacity: 0.45; }
  100% { opacity: 0.25; }
}
@keyframes vt-breathe {
  0%   { filter: brightness(0.92); }
  50%  { filter: brightness(1.02); }
  100% { filter: brightness(0.92); }
}
.vt-panel {
  text-align: center;
  padding: 24px;
}

.vt-horse {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vt-horse-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vt-title {
  margin: 0;
}

.ach-earned {
  border-color: var(--accent-red);
}

.ach-locked {
  opacity: .45;
}

.ach-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.ach-cat-kicker {
  opacity: .55;
  margin-bottom: 12px;
}

.lineage-wrap {
  position: relative;
  overflow-x: auto;
  padding: 10px 0 60px;
  -webkit-overflow-scrolling: touch;
}
.lineage-wrap::after {
  content: '';
  position: sticky;
  right: 0;
  display: block;
  width: 48px;
  height: 0;
  background: linear-gradient(to left, rgba(5,5,5,.75), transparent);
  pointer-events: none;
  float: right;
  margin-top: calc(-100vh);
}
.lineage-stage {
  min-width: 860px;
  padding: 14px 18px 20px;
  position: relative;
}
.lineage-controls { margin-bottom: 16px; }
.lineage-hint {
  text-align: center;
  padding: 12px 0 4px;
  font-family: var(--f-lino);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.lineage-grid {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(180px, 1.5fr) minmax(160px, 1fr);
  gap: 12px;
  min-height: 480px;
  align-items: stretch;
}
.lineage-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px;
}
/* wip */

.wip-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: rgba(230, 140, 20, 0.07);
  border: 1px solid rgba(230, 140, 20, 0.25);
  border-left: 3px solid rgba(230, 140, 20, 0.7);
}

.wip-notice__icon {
  font-size: 20px;
  opacity: .7;
  flex-shrink: 0;
  line-height: 1.2;
}

.wip-notice__label {
  font-size: 9px;
  letter-spacing: .2em;
  opacity: .6;
  margin-bottom: 3px;
}

.wip-notice__text {
  margin: 0;
  font-size: 13px;
  opacity: .75;
  line-height: 1.5;
}
/* lineage */

.lin-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  border: 1px solid var(--border-main);
  min-height: 500px;
}

/* sidebar */
.lin-sidebar {
  border-right: 1px solid var(--border-main);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lin-sidebar__top {
  padding: 10px;
  border-bottom: 1px solid var(--border-main);
  flex-shrink: 0;
}

.lin-sidebar__search {
  width: 100%;
}

.lin-side-list {
  overflow-y: auto;
  flex: 1;
  max-height: 600px;
}

.lin-side-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .1s;
}

.lin-side-item:hover {
  background: rgba(255,255,255,.05);
}

.lin-side-item--active {
  background: rgba(204,7,6,.1);
  border-left: 3px solid var(--accent-red);
}

.lin-side-item__name {
  font-size: 15px;
  line-height: 1;
  margin-bottom: 3px;
}

.lin-side-item--active .lin-side-item__name {
  color: #fff;
}

.lin-side-item__meta {
  font-family: var(--f-hapna);
  font-size: 11px;
  color: var(--text-muted);
  opacity: .6;
}

/* main */
.lin-main {
  padding: 20px 24px;
  min-width: 0;
}

/* inbreeding */
.lin-coeff {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: rgba(204,7,6,.06);
  border: 1px solid rgba(204,7,6,.2);
}

.lin-coeff__label {
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lin-coeff__val {
  font-size: 26px;
  line-height: 1;
  color: var(--accent-red);
}

.lin-coeff__risk {
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .5;
}

/* generational table */
.lin-tree-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
}

.lin-tree {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lin-tree col { width: 33.33%; }

.lin-th {
  font-family: var(--f-lino);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .5;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border-main);
  text-align: left;
}

.lin-td {
  padding: 0;
  vertical-align: top;
  border: 1px solid var(--border-main);
}

.lin-td--subject { border-left: none; }

/* cell content */
.lin-cell-wrap {
  padding: 18px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lin-cell-wrap--link {
  cursor: pointer;
  transition: background .1s;
}

.lin-cell-wrap--link:hover {
  background: rgba(255,255,255,.04);
}

.lin-cell-wrap--own {
  border-left: 3px solid var(--accent-red);
}

.lin-cell-wrap--empty {
  opacity: .25;
}

.lin-cell__role {
  font-family: var(--f-lino);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.lin-cell-wrap--own .lin-cell__role {
  color: var(--accent-red);
  opacity: .8;
}

.lin-cell__empty {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-muted);
}

.lin-cell__name {
  font-size: 22px;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 4px;
}

.lin-td--subject .lin-cell__name {
  font-size: 30px;
}

.lin-cell__breed {
  font-family: var(--f-hapna);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.lin-cell__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lin-cell__details span {
  font-family: var(--f-hapna);
  font-size: 12px;
  color: var(--text-muted);
  opacity: .6;
}

.lin-cell__ovr {
  color: var(--text-main) !important;
  opacity: 1 !important;
  font-family: var(--f-lino) !important;
  font-size: 11px !important;
  letter-spacing: .12em;
}

.lin-cell__tag {
  margin-top: 6px;
  display: inline-block;
  font-family: var(--f-lino);
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-red);
  border: 1px solid rgba(204,7,6,.35);
  padding: 2px 6px;
  align-self: flex-start;
}

/* offspring / siblings */
.lin-section {
  margin-bottom: 24px;
}

.lin-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 0;
}

.lin-rels {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-main);
  border-top: none;
}

.lin-rel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-right: 1px solid var(--border-main);
  border-top: 1px solid var(--border-main);
  min-width: 140px;
  cursor: pointer;
  transition: background .1s;
}

.lin-rel:hover { background: rgba(255,255,255,.04); }

.lin-rel--own { border-top: 2px solid var(--accent-red); }

.lin-rel__name {
  font-size: 17px;
  line-height: 1;
  color: var(--text-main);
}

.lin-rel__race {
  font-family: var(--f-hapna);
  font-size: 11px;
  color: var(--text-muted);
  opacity: .55;
}

@media (max-width: 800px) {
  .lin-layout { grid-template-columns: 1fr; }
  .lin-sidebar { border-right: none; border-bottom: 1px solid var(--border-main); max-height: 200px; }
}

/* server profile additions */

/* event banner */
.svp-event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 2px;
  border-left: 3px solid var(--accent-red);
}

.svp-event__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(204,7,6,.5);
  flex-shrink: 0;
  margin-top: 5px;
  animation: svp-pulse 2s ease-in-out infinite;
}

@keyframes svp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.svp-event__label {
  font-size: 8px;
  letter-spacing: .22em;
  color: var(--accent-red);
  opacity: .7;
  margin-bottom: 4px;
}

.svp-event__name {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.svp-event__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 6px;
}

.svp-event__date {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--text-muted);
  opacity: .45;
}

/* staff */
.svp-staff {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svp-staff-member {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svp-staff-member__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
}

.svp-staff-member__avatar--fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: rgba(255,255,255,.2);
}

.svp-staff-member__name {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 3px;
}

.svp-staff-member__role {
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--text-muted);
  opacity: .5;
}

/* banner — reuses stp-banner, no new class needed */
/* grid — allow 3 panels when staff present */
.svp-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* tack */

.tack-stats {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-main);
  background: rgba(0,0,0,.25);
  margin-bottom: 24px;
}

.tack-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 12px;
}

.tack-stat__val {
  font-size: 26px;
  color: var(--accent-red);
  line-height: 1;
}

.tack-stat__label {
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.tack-stat__sep {
  width: 1px;
  height: 28px;
  background: var(--border-main);
  flex-shrink: 0;
}

.tack-row {
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.tack-row__main {
  flex: 1;
  min-width: 0;
}

.tack-row__name {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tack-row__meta {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.tack-row__notes {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tack-row__assigned {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}

.tack-row__actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .tack-row { flex-wrap: wrap; }
  .tack-row__assigned { order: 3; width: 100%; }
}

/* hide the old topbar entirely */
.topbar { display: none !important; }

/* main no longer needs topbar offset */
.main { padding-top: 0; }

/* view banner */
.vb {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #0a0806;
  background-size: cover;
  background-position: center top;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.vb--fallback {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1c0f08 0%, #0a0604 60%, #110809 100%);
}

.vb__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.82) 100%),
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* top strip: 3px red accent line */
.vb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-red);
  z-index: 2;
}

.vb__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 20px 20px;
  z-index: 1;
  max-width: 1700px;
  margin: 0 auto;
  left: 0; right: 0;
}

/* top row: wordmark + menu */
.vb__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vb__wordmark {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--c-white);
  letter-spacing: .05em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  user-select: none;
}

/* bottom row: title + actions */
.vb__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.vb__title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.88;
  margin: 0;
  color: var(--c-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  letter-spacing: .02em;
}

.vb__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* keep the existing menu button style, just reposition it in banner */
.vb .btn--menu {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}

.vb .btn--menu:hover {
  background: rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
  .vb { height: 160px; }
  .vb__inner { padding: 12px 16px 16px; }
  .vb__title { font-size: clamp(28px, 8vw, 42px); }
}
/* view banners */
.view-banner {
  width: 100%;
  height: clamp(120px, 16vw, 200px);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, rgba(180,30,20,.18) 0%, transparent 70%),
              linear-gradient(160deg, rgba(30,10,10,1) 0%, rgba(10,8,8,1) 100%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.view-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(227,196,143,1) 39px, rgba(227,196,143,1) 40px
  );
}

.view-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(180,30,20,.12) 0%, transparent 50%,
    rgba(0,0,0,.3) 100%);
}

.view-banner__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 4vw, 40px);
}

.view-banner__kicker {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}

.view-banner__title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: .9;
  color: var(--c-white);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}

.view-banner__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-red);
  box-shadow: 0 0 20px rgba(180,30,20,.6);
}

.view-banner--stable    { background: radial-gradient(ellipse at 70% 50%, rgba(180,30,20,.22) 0%, transparent 65%), linear-gradient(150deg, #1a0808 0%, #0a0808 100%); }
.view-banner--registry  { background: radial-gradient(ellipse at 30% 60%, rgba(180,30,20,.20) 0%, transparent 65%), linear-gradient(140deg, #0e0808 0%, #08080a 100%); }
.view-banner--trade     { background: radial-gradient(ellipse at 80% 30%, rgba(90,50,20,.25) 0%, transparent 65%), linear-gradient(160deg, #120d06 0%, #080808 100%); }
.view-banner--community { background: radial-gradient(ellipse at 50% 70%, rgba(20,40,80,.25) 0%, transparent 65%), linear-gradient(150deg, #06080e 0%, #080808 100%); }
.view-banner--stories   { background: radial-gradient(ellipse at 40% 40%, rgba(180,30,20,.15) 0%, transparent 60%), linear-gradient(160deg, #100808 0%, #0a0808 100%); }
.view-banner--friends   { background: radial-gradient(ellipse at 60% 50%, rgba(20,60,40,.22) 0%, transparent 65%), linear-gradient(150deg, #060e08 0%, #080808 100%); }
.view-banner--tack      { background: radial-gradient(ellipse at 30% 40%, rgba(60,40,20,.25) 0%, transparent 65%), linear-gradient(160deg, #0e0a06 0%, #080808 100%); }
.view-banner--achievements { background: radial-gradient(ellipse at 70% 60%, rgba(180,30,20,.18) 0%, transparent 65%), linear-gradient(140deg, #120808 0%, #080808 100%); }
.view-banner--lineage   { background: radial-gradient(ellipse at 50% 30%, rgba(40,20,60,.25) 0%, transparent 65%), linear-gradient(160deg, #0a0810 0%, #080808 100%); }
.view-banner--settings  { background: radial-gradient(ellipse at 20% 60%, rgba(180,30,20,.12) 0%, transparent 65%), linear-gradient(150deg, #0e0808 0%, #080808 100%); }
.view-banner--profile   { background: radial-gradient(ellipse at 60% 40%, rgba(180,30,20,.15) 0%, transparent 65%), linear-gradient(150deg, #120808 0%, #080808 100%); }

/* Governor's Office */
.gov-hero {
  position: relative;
  overflow: hidden;
  background: #0d0b09;
  border-bottom: 1px solid var(--border-main);
  padding: clamp(32px, 5vw, 60px) clamp(20px, 5vw, 60px);
  display: flex;
  align-items: flex-end;
  gap: 32px;
  min-height: 220px;
}

.gov-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.012) 40px, rgba(255,255,255,.012) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.012) 40px, rgba(255,255,255,.012) 41px);
  pointer-events: none;
}

.gov-hero__seal {
  flex-shrink: 0;
  width: clamp(80px, 12vw, 130px);
  height: clamp(80px, 12vw, 130px);
  opacity: .12;
}

.gov-hero__text { position: relative; }

.gov-hero__kicker {
  font-size: 9px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

.gov-hero__title {
  font-family: var(--f-redemption);
  font-size: clamp(40px, 7vw, 80px);
  line-height: .88;
  color: #fff;
  margin: 0 0 12px;
}

.gov-hero__rule {
  width: 48px;
  height: 2px;
  background: var(--accent-red);
}

.gov-wrap {
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: calc(clamp(24px, 4vw, 48px) + var(--nav-pad) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.gov-desks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .gov-desks { grid-template-columns: 1fr 1fr; align-items: start; }
}

.gov-desk {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border-main);
  border-top: 3px solid var(--accent-red);
  padding: 28px;
}

.gov-desk__kicker {
  font-size: 9px;
  letter-spacing: .26em;
  opacity: .4;
  margin-bottom: 8px;
}

.gov-desk__title {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 6px;
  line-height: .95;
}

.gov-desk__sub {
  font-size: 12px;
  opacity: .5;
  line-height: 1.6;
  margin: 0 0 24px;
}

.gov-section__kicker {
  font-size: 10px;
  letter-spacing: .24em;
  opacity: .45;
  margin-bottom: 6px;
}

.gov-section__title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
  line-height: .9;
}

.gov-section__sub {
  font-size: 13px;
  opacity: .55;
  margin: 0 0 24px;
  line-height: 1.6;
}

.gov-contracts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gov-contract {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
}

.gov-contract__rule {
  width: 3px;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
}

.gov-contract--out .gov-contract__rule { background: var(--accent-red); }
.gov-contract--in  .gov-contract__rule { background: #4caf50; }

.gov-contract__body {
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gov-contract__direction {
  font-size: 9px;
  letter-spacing: .22em;
  opacity: .4;
}

.gov-contract__name {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: .95;
  color: #fff;
}

.gov-contract__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gov-contract__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.gov-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.gov-horse-card {
  aspect-ratio: 3 / 4;
  background: var(--bg-panel) center/cover;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .15s, transform .15s;
}

.gov-horse-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.gov-horse-card.is-selected { border-color: var(--accent-red); box-shadow: 0 0 0 1px var(--accent-red); }

.gov-horse-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 55%);
}

.gov-horse-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gov-horse-card__breed {
  font-size: 8px;
  letter-spacing: .2em;
  opacity: .55;
}

.gov-horse-card__name {
  font-size: 16px;
  line-height: 1;
  color: #fff;
}

.gov-horse-card__ovr { align-self: flex-start; margin-top: 3px; }

.gov-action-panel {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  padding: 22px;
  margin-bottom: 16px;
}

.gov-action-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.gov-action-panel__horse {
  font-size: 26px;
  line-height: 1;
  color: #fff;
  margin-top: 4px;
}

.gov-action-panel__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gov-price-input { width: 140px; }

.gov-code-wrap { margin-top: 16px; }

.gov-code-paper {
  max-width: 380px;
  transform: rotate(-0.8deg);
  box-shadow: 0 10px 40px rgba(0,0,0,.9);
}

.gov-code-inner { text-align: center; padding: 28px; }

.gov-code-label {
  font-size: 10px;
  color: #1c1917;
  letter-spacing: .22em;
  border-bottom: 1px solid rgba(28,25,23,.25);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.gov-code-value {
  font-size: 32px;
  color: #1c1917;
  font-weight: bold;
  letter-spacing: 6px;
  user-select: all;
}

.gov-code-sub {
  font-size: 14px;
  color: #1c1917;
  margin-top: 10px;
  opacity: .6;
}

.gov-code-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 380px;
}

.gov-claim-row {
  display: flex;
  gap: 12px;
}

.gov-claim-input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 16px;
}

.gov-empty {
  padding: 32px;
  text-align: center;
  opacity: .45;
  font-size: 10px;
  letter-spacing: .18em;
}

.gov-log__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 14px;
}

.gov-log__title {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.gov-log__count {
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .35;
}

/* Horse Scout */
.scout-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #060402;
}

.scout-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 100% 50%, rgba(204,7,6,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(204,7,6,.05) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,.007) 48px, rgba(255,255,255,.007) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,.007) 48px, rgba(255,255,255,.007) 49px);
}

.scout-hero__silhouette {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: 0;
  height: 90%;
  opacity: .055;
  pointer-events: none;
  user-select: none;
}

.scout-hero__inner {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
  max-width: 640px;
}

.scout-hero__kicker {
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.scout-hero__title {
  font-size: clamp(48px, 9vw, 100px);
  line-height: .85;
  margin: 0 0 16px;
  color: #fff;
}

.scout-hero__sub {
  font-size: 14px;
  opacity: .45;
  max-width: 440px;
  line-height: 1.7;
  margin: 0;
}

.scout-brief {
  background: #0d0b08;
  border-bottom: 1px solid var(--border-main);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
}

.scout-brief::before {
  content: 'WANTED';
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  font-family: var(--f-redemption);
  font-size: clamp(48px, 8vw, 96px);
  color: var(--accent-red);
  opacity: .04;
  pointer-events: none;
  user-select: none;
  letter-spacing: .1em;
}

.scout-brief__board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}

.scout-brief__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .scout-brief__row { grid-template-columns: repeat(3, 1fr); align-items: end; }
}

.scout-brief__label {
  font-size: 9px;
  letter-spacing: .2em;
  opacity: .4;
  margin-bottom: 8px;
}

.scout-brief__field--action { display: flex; align-items: flex-end; }

.scout-dispatch-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent-red);
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--f-lino);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .15s;
}

.scout-dispatch-btn:hover { background: var(--accent-red-dark); }
.scout-dispatch-btn:disabled { opacity: .5; cursor: not-allowed; }
.scout-dispatch-btn__icon { font-size: 8px; }

.scout-riding {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
}

.scout-riding__phrase {
  font-size: 10px;
  letter-spacing: .22em;
  opacity: .35;
  margin-bottom: 24px;
}

.scout-riding__track {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,.06);
  overflow: visible;
}

.scout-riding__bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-red);
  box-shadow: 0 0 10px rgba(204,7,6,.5);
  transition: width .08s linear;
}

.scout-riding__rider {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--accent-red);
  transition: left .08s linear;
  filter: drop-shadow(0 0 6px rgba(204,7,6,.8));
}

.scout-result-head {
  padding: clamp(20px, 3vw, 40px) clamp(20px, 5vw, 60px) 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  letter-spacing: .22em;
  opacity: .5;
}

.scout-result-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: #0d0b09 center/cover;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 0;
  transition: filter .2s;
}

@media (max-width: 600px) { .scout-result-hero { aspect-ratio: 4 / 3; } }

.scout-result-hero:hover { filter: brightness(1.08); }
.scout-result-hero--nophoto { background: linear-gradient(135deg, #1a0808 0%, #08080a 100%); }

.scout-result-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
  pointer-events: none;
}

.scout-result-hero__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.scout-result-hero__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.scout-result-hero__name {
  font-size: clamp(36px, 6vw, 72px);
  line-height: .88;
  color: #fff;
  margin: 0;
}

.scout-result-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.scout-result-hero__cta {
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--accent-red);
  margin-top: 4px;
}

.scout-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border-main);
  border-top: 1px solid var(--border-main);
}

.scout-result-grid > * {
  background: var(--bg-base);
}

.scout-empty {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
}

.scout-empty__title {
  font-size: clamp(36px, 6vw, 60px);
  opacity: .25;
  margin-bottom: 16px;
}

.scout-empty__sub {
  font-size: 14px;
  opacity: .35;
  max-width: 400px;
}

/* Horse editor view */
.horse-editor-view {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
}

.hev-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-main);
  padding: 12px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hev-back {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .15s;
}
.hev-back:hover { color: var(--text-main); }

.hev-head__title {
  flex: 1;
  min-width: 0;
}

.hev-head__h {
  font-size: clamp(20px, 3vw, 32px);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hev-sold-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: rgba(204,7,6,.08);
  border: 1px solid rgba(204,7,6,.3);
  border-radius: 4px;
}

.hev-sold-banner__label {
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--accent-red);
}

.hev-sold-banner__owner {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.hev-head__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hev-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  padding-bottom: calc(var(--nav-pad) + env(safe-area-inset-bottom, 0px));
}

/* Horse gallery */
.hv-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.hv-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,.06);
}

.hv-gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}

.hv-gallery-item:hover .hv-gallery-item__img { transform: scale(1.04); }

.hv-gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: rgba(0,0,0,.75);
  font-size: 9px;
  letter-spacing: .1em;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-gallery-item__del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}

.hv-gallery-item:hover .hv-gallery-item__del { opacity: 1; }
.hv-gallery-item__del:hover { background: rgba(204,7,6,.7); color: #fff; }

.hv-gallery-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.hv-gallery-upload__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  color: var(--text-dim);
}

.hv-gallery-upload__btn:hover { border-color: rgba(255,255,255,.3); color: var(--text-main); }

.hv-gallery-upload__hint {
  font-size: 9px;
  letter-spacing: .1em;
  opacity: .35;
}

/* Horse awards */
.hv-awards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-award {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,.2);
  border-radius: 6px;
  border-left: 3px solid var(--award-color, var(--accent-red));
}

.hv-award__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.hv-award__name {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 4px;
  color: #fff;
}

.hv-award__note {
  font-size: 13px;
  opacity: .7;
  margin-bottom: 4px;
  line-height: 1.4;
}

.hv-award__meta {
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .4;
}

/* Server profile award panel */
.svp-awards-panel {
  margin-top: 24px;
}

.svp-award-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.svp-award-form .input {
  min-width: 0;
}

/* Back button for horse/stable profile views */
.horse-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color .15s;
}
.horse-back:hover { color: var(--text-main); }

/* Notification bell */
.topbar-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  border-radius: 50%;
  transition: color .15s, background .15s;
}
.topbar-bell:hover { color: var(--text-main); background: rgba(255,255,255,.06); }
.topbar-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--accent-red);
  color: #fff;
  font-size: 9px;
  font-family: var(--f-lino);
  letter-spacing: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Notification panel */
.notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 499;
}
.notif-panel {
  position: fixed;
  top: 52px;
  right: 12px;
  width: clamp(280px, 90vw, 360px);
  max-height: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-main);
  flex-shrink: 0;
}
.notif-panel__close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
}
.notif-panel__list {
  overflow-y: auto;
  flex: 1;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: default;
  transition: background .12s;
}
.notif-item[data-action] { cursor: pointer; }
.notif-item[data-action]:hover { background: rgba(255,255,255,.04); }
.notif-item--unseen { background: rgba(204,7,6,.05); }
.notif-item--empty,
.notif-item--loading {
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .4;
  justify-content: center;
  cursor: default;
  padding: 24px 16px;
}
.notif-item__icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-red);
}
.notif-item__text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-main);
}
.notif-item__time {
  font-size: 9px;
  letter-spacing: .1em;
  opacity: .4;
  margin-top: 3px;
}

/* Welcome screen */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s;
}
.welcome-overlay--in { opacity: 1; }
.welcome-panel {
  max-width: 520px;
  width: 100%;
}
.welcome-panel__brand {
  font-size: 10px;
  letter-spacing: .28em;
  opacity: .4;
  margin-bottom: 16px;
}
.welcome-panel__title {
  font-size: clamp(42px, 8vw, 72px);
  line-height: .9;
  margin: 0 0 36px;
  color: #fff;
}
.welcome-panel__points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.welcome-panel__point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.welcome-panel__point-icon {
  color: var(--accent-red);
  font-size: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}
.welcome-panel__point-head {
  font-size: 10px;
  letter-spacing: .18em;
  margin-bottom: 4px;
  color: var(--text-muted);
}
.welcome-panel__point-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
}
.welcome-panel__cta {
  padding: 14px 36px;
  font-size: 14px;
}

.btn--disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Global nav clearance for full-page views */
.horse-profile,
.stp,
.svp,
.gov-wrap,
.scout-brief,
.hev-body,
.settings-view,
.friends-view,
.help-view {
  padding-bottom: calc(var(--nav-pad) + env(safe-area-inset-bottom, 0px));
}