/* ------------------------------------------------------------------
   Turnstile
   ------------------------------------------------------------------ */

.turnstile-slot {
  min-height: 65px;
  margin-top: 2px;
}

.turnstile-slot:empty {
  display: none;
}

.turnstile-slot iframe {
  max-width: 100%;
}

.card-report {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted-2);
  font-family: var(--serif-en);
  font-size: 14px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.card-report:hover {
  border-color: rgba(208, 143, 127, 0.5);
  color: var(--danger);
}

.comment-report {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comment-report:hover {
  color: var(--danger);
}

.report-dialog {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  padding: 22px;
}

.report-dialog[hidden] {
  display: none;
}

.report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
}

.report-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 44px);
  padding: 28px 28px 24px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a0f10;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.report-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.report-kicker {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.report-card h2 {
  margin: 8px 0 8px;
  font-family: var(--serif-cn);
  font-size: 28px;
  font-weight: 400;
  color: var(--ivory);
}

.report-lede {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.8;
}

.report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.report-reasons legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.report-reasons label {
  display: inline-flex;
  cursor: pointer;
}

.report-reasons input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-reasons span {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.report-reasons input:checked + span {
  border-color: rgba(200, 169, 111, 0.55);
  background: rgba(200, 169, 111, 0.08);
  color: var(--gold-bright);
}

.report-note {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.report-note textarea {
  width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ivory);
  font-family: var(--serif-cn);
  font-size: 12px;
  line-height: 1.8;
  resize: vertical;
}

.report-note textarea:focus {
  border-color: rgba(200, 169, 111, 0.5);
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 12px;
}

html[data-theme="light"] .report-backdrop {
  background: rgba(55, 46, 33, 0.3);
}

html[data-theme="light"] .report-card {
  background: #f4efe5;
  border-color: var(--line-soft);
  box-shadow: 0 30px 80px rgba(65, 48, 28, 0.22);
}

html[data-theme="light"] .report-note textarea {
  background: rgba(255, 252, 246, 0.75);
  border-color: var(--line-soft);
  color: var(--ivory);
}

html[data-theme="light"] .report-reasons span {
  border-color: var(--line-soft);
  color: var(--muted);
}

body.account-locked {
  overflow: hidden;
}

.account-drawer {
  position: fixed;
  inset: 0;
  z-index: 460;
  visibility: hidden;
  pointer-events: none;
}

.account-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.account-drawer.is-open .account-backdrop {
  opacity: 1;
}

.account-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0f10, #070a0b 78%);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(34px);
  transition: transform 0.5s var(--ease-soft);
}

.account-drawer.is-open .account-panel {
  transform: none;
}

.account-panel:focus {
  outline: none;
}

.account-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 10, 11, 0.6);
}

.account-kicker {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.account-head h2 {
  margin: 7px 0 0;
  font-family: var(--serif-cn);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.account-body {
  flex: 1;
  min-height: 0;
  padding: 20px 28px 28px;
  overflow-y: auto;
}

.account-identity {
  padding: 15px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.account-identity-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}

.account-identity-top strong {
  font-family: var(--serif-cn);
  font-size: 18px;
  font-weight: 400;
  color: var(--ivory);
}

.account-identity-top span {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.account-identity-top em {
  padding: 2px 7px;
  border: 1px solid rgba(200, 169, 111, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.account-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9px;
}

.account-counts b {
  margin-right: 3px;
  color: var(--ivory);
  font-family: var(--serif-en);
  font-size: 15px;
  font-weight: 400;
}

.account-tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.account-tab {
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.account-tab:hover {
  color: var(--ivory);
}

.account-tab.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.account-pane {
  margin-top: 16px;
}

.account-entry {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.account-entry:last-child {
  border-bottom: 0;
}

.account-entry-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.account-entry-horse {
  font-family: var(--serif-cn);
  font-size: 17px;
  font-weight: 400;
  color: var(--ivory);
}

.account-entry-time {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.account-status {
  padding: 2px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.account-status--pending {
  border-color: rgba(200, 169, 111, 0.35);
  color: var(--gold);
}

.account-status--approved {
  border-color: rgba(119, 151, 119, 0.35);
  color: #9dbb9d;
}

.account-status--rejected {
  border-color: rgba(208, 143, 127, 0.35);
  color: var(--danger);
}

.account-status--private {
  border-color: var(--line);
  color: var(--muted-2);
}

.account-entry-message {
  margin-top: 8px;
  font-family: var(--serif-cn);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ivory-dim);
  white-space: pre-line;
  word-break: break-word;
}

.account-entry-parent {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.7;
}

.account-entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.account-entry-meta {
  color: var(--muted-2);
  font-size: 8.5px;
}

.account-delete {
  color: var(--danger);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-empty {
  padding: 34px 0;
  color: var(--muted-2);
  font-family: var(--serif-cn);
  font-size: 13px;
  line-height: 1.9;
}

.account-settings form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.account-settings .gate-field input {
  background: rgba(255, 255, 255, 0.03);
}

.account-settings-note {
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .account-head {
    padding: 20px 20px 16px;
  }

  .account-body {
    padding: 16px 20px 24px;
  }

  .account-panel {
    width: 100%;
  }
}

html[data-theme="light"] .account-panel {
  background: #f4efe5;
  color: var(--ivory);
  border-color: var(--line-soft);
}

html[data-theme="light"] .account-head {
  background: rgba(244, 239, 229, 0.92);
  border-color: var(--line-soft);
}

html[data-theme="light"] .account-backdrop {
  background: rgba(55, 46, 33, 0.28);
}

html[data-theme="light"] .account-identity,
html[data-theme="light"] .account-settings .gate-field input {
  background: rgba(255, 252, 246, 0.7);
  border-color: var(--line-soft);
}

html[data-theme="light"] .account-entry-message {
  color: var(--ivory);
}

html[data-theme="light"] .account-status--approved {
  color: #4f7554;
}

body.gate-open {
  overflow: hidden;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--line-soft);
}

.nav-login,
.nav-user,
.nav-logout,
.nav-admin {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.nav-guest {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.nav-login:hover,
.nav-user:hover,
.nav-logout:hover,
.nav-admin:hover {
  color: var(--gold-bright);
}

.nav-login {
  color: var(--gold);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 150px;
}

.nav-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200, 169, 111, 0.6);
}

.nav-admin {
  color: var(--gold);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.theme-toggle:hover {
  border-color: rgba(200, 169, 111, 0.4);
  color: var(--gold-bright);
  background: rgba(200, 169, 111, 0.05);
}

.theme-toggle--nav {
  border: 0;
  padding: 7px;
  font-size: 14px;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  background:
    radial-gradient(900px 700px at 18% 10%, rgba(78, 91, 74, 0.22), transparent 62%),
    radial-gradient(800px 600px at 88% 90%, rgba(125, 83, 39, 0.18), transparent 65%),
    #070a0b;
}

.gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.gate-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  width: min(1080px, 100%);
  min-height: 620px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 14, 0.86);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: gateIn 0.8s var(--ease-out) both;
  backdrop-filter: blur(16px);
}

@keyframes gateIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gate-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 46px 38px;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(200, 169, 111, 0.06), transparent 52%),
    radial-gradient(540px 360px at 86% 10%, rgba(200, 169, 111, 0.08), transparent 70%);
}

.gate-cover::after {
  content: "馬";
  position: absolute;
  right: -28px;
  bottom: -72px;
  color: rgba(200, 169, 111, 0.055);
  font-family: var(--serif-cn);
  font-size: 330px;
  line-height: 1;
  pointer-events: none;
}

.gate-cover-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seal {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #a34b3b;
  color: #b25a46;
  font-family: var(--serif-cn);
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.08em;
  transform: rotate(-2deg);
}

.gate-edition {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.gate-kicker {
  margin-top: 42px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.gate-title {
  margin-top: 14px;
  font-family: var(--serif-cn);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.03em;
}

.gate-title em {
  color: var(--gold-bright);
  font-style: normal;
}

.gate-copy {
  max-width: 360px;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--serif-cn);
  font-size: 15px;
  line-height: 2;
}

.gate-cover-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 46px;
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.gate-cover-line {
  flex: 1;
  max-width: 54px;
  height: 1px;
  background: var(--line);
}

.gate-panel {
  display: flex;
  flex-direction: column;
  padding: 34px 38px 28px;
  background: rgba(7, 10, 11, 0.32);
}

.gate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gate-panel-label {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

.gate-choices {
  display: flex;
  flex-direction: column;
  margin-top: 42px;
  border-top: 1px solid var(--line-soft);
}

.gate-choice {
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  transition:
    padding 0.35s var(--ease-out),
    background 0.35s ease;
}

.gate-choice:hover {
  padding-left: 12px;
  background: rgba(200, 169, 111, 0.045);
}

.gate-choice-num {
  color: var(--gold-deep);
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.gate-choice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gate-choice-text strong {
  font-family: var(--serif-cn);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.gate-choice-text small {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.gate-choice-arrow {
  color: var(--gold);
  font-size: 15px;
  transition: transform 0.3s var(--ease-out);
}

.gate-choice:hover .gate-choice-arrow {
  transform: translateX(4px);
}

.gate-form {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  animation: gateFormIn 0.45s var(--ease-out) both;
}

@keyframes gateFormIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gate-back {
  align-self: flex-start;
  margin-bottom: 24px;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.gate-back:hover {
  color: var(--gold-bright);
}

.gate-form h2 {
  font-family: var(--serif-cn);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.gate-form-lede {
  max-width: 340px;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--serif-cn);
  font-size: 13px;
  line-height: 1.9;
}

.gate-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 26px;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-field > span {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.gate-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ivory);
  font-family: var(--serif-cn);
  font-size: 14px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.gate-field input:focus {
  border-color: rgba(200, 169, 111, 0.55);
  background: rgba(200, 169, 111, 0.035);
}

.gate-field input::placeholder {
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 11px;
}

.gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gate-form-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.6;
}

.gate-submit {
  align-self: flex-start;
  margin-top: 2px;
}

.gate-switch {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 10px;
}

.gate-switch button {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-panel-foot {
  margin-top: auto;
  padding-top: 30px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .gate {
    padding: 16px;
  }

  .gate-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gate-cover {
    padding: 30px 26px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .gate-kicker {
    margin-top: 24px;
  }

  .gate-title {
    font-size: clamp(36px, 8vw, 48px);
  }

  .gate-copy {
    display: none;
  }

  .gate-cover-foot {
    margin-top: 24px;
  }

  .gate-panel {
    padding: 24px 26px 24px;
  }

  .gate-choices {
    margin-top: 24px;
  }

  .gate-choice {
    padding: 17px 2px;
  }

  .gate-form h2 {
    font-size: 32px;
  }
}

@media (max-width: 760px) {
  .nav-account {
    gap: 8px;
    padding-left: 0;
    border-left: 0;
  }

  .nav-user-name {
    display: inline;
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-guest,
  .nav-login {
    display: none;
  }

  .nav-admin {
    display: none;
  }

  .theme-toggle--nav {
    display: inline-flex;
  }

  .nav-links {
    gap: 12px;
  }

  .gate-cover::after {
    font-size: 220px;
  }
}

/* ------------------------------------------------------------------
   Light theme — 日读
   ------------------------------------------------------------------ */

html[data-theme="light"] {
  --ink: #f1ebdf;
  --ink-2: #e9e1d3;
  --ivory: #29251f;
  --ivory-dim: #3a352d;
  --muted: #6f685d;
  --muted-2: #958d7e;
  --gold: #8b6a3d;
  --gold-bright: #795426;
  --gold-deep: #a98554;
  --line: rgba(55, 46, 33, 0.18);
  --line-soft: rgba(55, 46, 33, 0.1);
  --danger: #9e4b3c;
}

html[data-theme="light"] body {
  background:
    radial-gradient(1100px 760px at 76% 12%, rgba(144, 128, 96, 0.12), transparent 62%),
    radial-gradient(900px 700px at 8% 82%, rgba(163, 126, 72, 0.1), transparent 66%),
    linear-gradient(180deg, #f4efe5 0%, #eee7da 48%, #e9e1d3 100%);
  color: var(--ivory);
}

html[data-theme="light"] .grain {
  opacity: 0.13;
  mix-blend-mode: multiply;
}

html[data-theme="light"] ::selection {
  background: rgba(139, 106, 61, 0.24);
  color: #211b12;
}

html[data-theme="light"] .nav.is-scrolled {
  background: rgba(244, 239, 229, 0.86);
  border-color: var(--line-soft);
}

html[data-theme="light"] .nav-count {
  border-left-color: var(--line-soft);
}

html[data-theme="light"] .nav-cta {
  border-color: rgba(139, 106, 61, 0.4);
  color: var(--gold-bright);
}

html[data-theme="light"] .nav-cta:hover {
  background: var(--gold);
  color: #fffaf0;
}

html[data-theme="light"] .hero-year {
  color: rgba(55, 46, 33, 0.055);
}

html[data-theme="light"] .hero-stars .star {
  background: rgba(55, 46, 33, 0.4);
  box-shadow: none;
}

html[data-theme="light"] .emblem {
  color: var(--gold);
}

html[data-theme="light"] .emblem-char {
  color: rgba(139, 106, 61, 0.72);
  text-shadow: none;
}

html[data-theme="light"] .emblem-glow {
  background: radial-gradient(circle, rgba(139, 106, 61, 0.09), transparent 65%);
}

html[data-theme="light"] .emblem-ring {
  border-color: rgba(139, 106, 61, 0.22);
}

html[data-theme="light"] .emblem-star,
html[data-theme="light"] .scroll-cue {
  color: var(--muted-2);
}

html[data-theme="light"] .scroll-cue i {
  background: var(--muted-2);
}

html[data-theme="light"] .hero-stat dd {
  color: var(--ivory);
}

html[data-theme="light"] .section-title,
html[data-theme="light"] .wall-head h1 {
  color: var(--ivory);
}

html[data-theme="light"] .ritual-card,
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .ranking,
html[data-theme="light"] .stat-box {
  background: rgba(255, 252, 246, 0.62);
  border-color: var(--line-soft);
  box-shadow: 0 14px 40px rgba(69, 55, 35, 0.055);
}

html[data-theme="light"] .card:hover {
  background: rgba(255, 252, 246, 0.9);
  border-color: rgba(139, 106, 61, 0.24);
  box-shadow: 0 20px 50px rgba(69, 55, 35, 0.09);
}

html[data-theme="light"] .ritual-card::before {
  opacity: 0.5;
}

html[data-theme="light"] .card-message,
html[data-theme="light"] .card-horse,
html[data-theme="light"] .rank-name,
html[data-theme="light"] .comment-letter p,
html[data-theme="light"] .comment-item p {
  color: var(--ivory);
}

html[data-theme="light"] .card-author,
html[data-theme="light"] .card-foot,
html[data-theme="light"] .card-actions,
html[data-theme="light"] .card-meta {
  color: var(--muted-2);
}

html[data-theme="light"] .wall-toolbar,
html[data-theme="light"] .wall-head,
html[data-theme="light"] .wall-foot {
  border-color: var(--line-soft);
}

html[data-theme="light"] .chip,
html[data-theme="light"] .wall-search,
html[data-theme="light"] .select-wrap select {
  border-color: var(--line-soft);
  background: rgba(255, 252, 246, 0.5);
  color: var(--muted);
}

html[data-theme="light"] .chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fffaf0;
}

html[data-theme="light"] .card-comment-btn,
html[data-theme="light"] .star-btn,
html[data-theme="light"] .card-expand {
  border-color: var(--line-soft);
  color: var(--muted);
  background: transparent;
}

html[data-theme="light"] .card-comment-btn:hover,
html[data-theme="light"] .star-btn:hover,
html[data-theme="light"] .card-expand:hover {
  border-color: rgba(139, 106, 61, 0.35);
  color: var(--gold-bright);
}

html[data-theme="light"] .card-images img,
html[data-theme="light"] .review-images img,
html[data-theme="light"] .image-preview img {
  filter: saturate(0.94) contrast(0.98);
}

html[data-theme="light"] .footer {
  border-color: var(--line-soft);
  color: var(--muted-2);
}

html[data-theme="light"] .flow {
  background: #f4efe5;
  color: var(--ivory);
}

html[data-theme="light"] .flow-bg {
  background:
    radial-gradient(900px 620px at 78% 8%, rgba(139, 106, 61, 0.08), transparent 62%),
    linear-gradient(180deg, #f4efe5, #ebe3d5);
}

html[data-theme="light"] .flow-head {
  border-color: var(--line-soft);
  background: rgba(244, 239, 229, 0.9);
}

html[data-theme="light"] .flow-close,
html[data-theme="light"] .flow-back {
  border-color: var(--line-soft);
  color: var(--muted);
}

html[data-theme="light"] .flow-rail {
  border-color: var(--line-soft);
}

html[data-theme="light"] .flow-rail li {
  color: var(--muted-2);
}

html[data-theme="light"] .flow-rail li.is-active {
  color: var(--gold-bright);
}

html[data-theme="light"] .flow-progress i {
  background: var(--gold);
}

html[data-theme="light"] .step-kicker,
html[data-theme="light"] .field > span,
html[data-theme="light"] .field-label {
  color: var(--muted-2);
}

html[data-theme="light"] .step-title {
  color: var(--ivory);
}

html[data-theme="light"] .step-copy {
  color: var(--muted);
}

html[data-theme="light"] .chips button,
html[data-theme="light"] .choice,
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  border-color: var(--line-soft);
  background: rgba(255, 252, 246, 0.62);
  color: var(--ivory);
}

html[data-theme="light"] .chips button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fffaf0;
}

html[data-theme="light"] .choice:hover {
  border-color: rgba(139, 106, 61, 0.3);
}

html[data-theme="light"] .choice.is-selected {
  border-color: var(--gold);
  background: rgba(139, 106, 61, 0.08);
}

html[data-theme="light"] .flow-foot {
  border-color: var(--line-soft);
  background: rgba(244, 239, 229, 0.9);
}

html[data-theme="light"] .flow-summary,
html[data-theme="light"] .summary-box {
  background: rgba(255, 252, 246, 0.65);
  border-color: var(--line-soft);
}

html[data-theme="light"] .image-add {
  border-color: var(--line-soft);
  color: var(--muted);
}

html[data-theme="light"] .image-preview {
  border-color: var(--line-soft);
}

html[data-theme="light"] .comment-backdrop {
  background: rgba(55, 46, 33, 0.3);
}

html[data-theme="light"] .comment-panel {
  background: #f4efe5;
  color: var(--ivory);
  border-color: var(--line-soft);
}

html[data-theme="light"] .comment-head {
  background: rgba(244, 239, 229, 0.9);
  border-color: var(--line-soft);
}

html[data-theme="light"] .comment-letter {
  background: rgba(255, 252, 246, 0.55);
  border-color: var(--line-soft);
}

html[data-theme="light"] .comment-item {
  border-color: var(--line-soft);
}

html[data-theme="light"] .field--years input {
  background: transparent;
  color: var(--ivory);
}

html[data-theme="light"] .field--years input::placeholder {
  color: rgba(55, 46, 33, 0.2);
}

html[data-theme="light"] .comment-form {
  background: rgba(244, 239, 229, 0.94);
  border-color: var(--line-soft);
}

html[data-theme="light"] .comment-compose {
  background: rgba(255, 252, 246, 0.7);
  border-color: var(--line-soft);
}

html[data-theme="light"] .comment-compose textarea {
  background: transparent;
  color: var(--ivory);
}

html[data-theme="light"] .comment-compose textarea::placeholder {
  color: rgba(55, 46, 33, 0.35);
}

html[data-theme="light"] .comment-form input,
html[data-theme="light"] .comment-form textarea {
  background: rgba(255, 252, 246, 0.72);
  border-color: var(--line-soft);
  color: var(--ivory);
}

html[data-theme="light"] .comment-close {
  border-color: var(--line-soft);
  color: var(--muted);
}

html[data-theme="light"] .toast {
  background: #2c2821;
  color: #f6f0e4;
}

html[data-theme="light"] .gate {
  background:
    radial-gradient(900px 700px at 18% 10%, rgba(139, 106, 61, 0.1), transparent 62%),
    radial-gradient(800px 600px at 88% 90%, rgba(105, 119, 92, 0.12), transparent 65%),
    #eee7da;
}

html[data-theme="light"] .gate-shell {
  background: rgba(249, 245, 237, 0.92);
  box-shadow:
    0 40px 110px rgba(70, 55, 33, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .gate-cover {
  background:
    linear-gradient(145deg, rgba(139, 106, 61, 0.07), transparent 52%),
    radial-gradient(540px 360px at 86% 10%, rgba(139, 106, 61, 0.08), transparent 70%);
}

html[data-theme="light"] .gate-cover::after {
  color: rgba(55, 46, 33, 0.055);
}

html[data-theme="light"] .gate-panel {
  background: rgba(255, 252, 246, 0.35);
}

html[data-theme="light"] .gate-field input {
  background: rgba(255, 252, 246, 0.75);
  color: var(--ivory);
}

html[data-theme="light"] .gate-choice:hover {
  background: rgba(139, 106, 61, 0.06);
}

html[data-theme="light"] .line--gold {
  background: linear-gradient(100deg, #5d3f1e 0%, #7a572b 55%, #9b743f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .gate-title em {
  color: var(--gold-bright);
}

html[data-theme="light"] .seal {
  color: #a34332;
  border-color: #a34332;
}


:root {
  --ink: #070a0b;
  --ink-2: #0a0f10;
  --ivory: #f1ebde;
  --ivory-dim: #e6dfd0;
  --muted: #98a19b;
  --muted-2: #6d7671;
  --gold: #c8a96f;
  --gold-bright: #e8cf9a;
  --gold-deep: #8e6c3c;
  --line: rgba(214, 196, 160, 0.18);
  --line-soft: rgba(214, 196, 160, 0.09);
  --danger: #d08f7f;
  --serif-en: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia,
    "Times New Roman", serif;
  --serif-cn: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --max: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1100px 760px at 76% 12%, rgba(64, 82, 68, 0.2), transparent 62%),
    radial-gradient(900px 700px at 8% 82%, rgba(95, 68, 33, 0.15), transparent 66%),
    linear-gradient(180deg, #070a0b 0%, #080c0d 42%, #060809 100%);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.flow-locked,
body.comments-locked {
  overflow: hidden;
}

::selection {
  background: rgba(200, 169, 111, 0.28);
  color: #fffdf7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
fieldset {
  margin: 0;
}

fieldset {
  border: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.step-title:focus {
  outline: none;
}

.star-btn[disabled] {
  cursor: default;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

:focus-visible {
  outline: 2px solid rgba(200, 169, 111, 0.65);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070a0b;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 111, 0.2);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 169, 111, 0.35);
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 500;
  padding: 12px 18px;
  background: var(--gold);
  color: #151007;
  border-radius: 8px;
  font-size: 12px;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(10) infinite;
}

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

/* ------------------------------------------------------------------
   Typography & atoms
   ------------------------------------------------------------------ */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.5;
  color: var(--gold);
  text-transform: uppercase;
}

.eyebrow-star {
  font-size: 10px;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(200, 169, 111, 0.6);
}

.section {
  position: relative;
  padding: 140px 0;
}

.section-title {
  font-family: var(--serif-cn);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.section-copy {
  max-width: 430px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s ease,
    transform 0.9s var(--ease-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease-out),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--gold {
  background: linear-gradient(135deg, #e8cf9a 0%, #c9a76c 56%, #b18b50 100%);
  color: #171208;
  box-shadow:
    0 12px 42px -18px rgba(216, 187, 128, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 50px -18px rgba(216, 187, 128, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--gold:active {
  transform: translateY(0);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--ivory-dim);
}

.btn--ghost:hover {
  border-color: rgba(200, 169, 111, 0.45);
  background: rgba(200, 169, 111, 0.055);
  transform: translateY(-2px);
}

.btn--small {
  padding: 11px 18px;
  font-size: 11px;
}

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    backdrop-filter 0.45s ease;
}

.nav.is-scrolled {
  background: rgba(7, 10, 11, 0.78);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--max));
  height: 78px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(200, 169, 111, 0.3));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-type strong {
  font-family: var(--serif-cn);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.brand-type small {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.28em;
  color: var(--muted-2);
}

.brand--small .brand-mark {
  width: 24px;
  height: 24px;
}

.brand--small .brand-type strong {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links > a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}

.nav-links > a:hover {
  color: var(--ivory);
}

.nav-links > a:hover::after {
  width: 100%;
}

.nav-count {
  padding-left: 30px;
  border-left: 1px solid var(--line-soft);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: var(--muted-2);
  white-space: nowrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(200, 169, 111, 0.35);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.nav-cta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #161107;
}

.nav-cta--mobile {
  display: none;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 150px 0 112px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 111, 0.09), transparent 66%);
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: #f5eedf;
  box-shadow: 0 0 6px rgba(245, 238, 223, 0.5);
  opacity: 0.15;
  animation: twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}

.star--gold {
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(200, 169, 111, 0.75);
}

.hero-year {
  position: absolute;
  right: -2.5%;
  bottom: -9%;
  font-family: var(--serif-en);
  font-size: clamp(250px, 33vw, 520px);
  line-height: 0.7;
  letter-spacing: -0.05em;
  color: rgba(241, 235, 222, 0.017);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 0 30px;
  font-family: var(--serif-cn);
  font-size: clamp(46px, 5.9vw, 86px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.015em;
}

.hero-title .line {
  display: block;
}

.line--gold {
  position: relative;
  width: fit-content;
  padding-right: 0.55em;
  background: linear-gradient(100deg, #f8eeda 0%, #ddc28c 38%, #c8a96f 68%, #9b7745 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line--gold::after {
  content: "✦";
  position: absolute;
  top: 0.16em;
  right: 0.1em;
  font-size: 0.2em;
  line-height: 1;
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
  text-shadow: 0 0 22px rgba(200, 169, 111, 0.9);
  animation: starBreath 4s ease-in-out infinite;
}

.hero-lede {
  max-width: 620px;
  margin: 0 0 40px;
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  margin: 62px 0 0;
}

.hero-stat {
  padding: 0 26px;
  border-left: 1px solid var(--line-soft);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat dt {
  margin-bottom: 9px;
  font-size: 9px;
  letter-spacing: 0.19em;
  color: var(--muted-2);
  white-space: nowrap;
}

.hero-stat dd {
  font-family: var(--serif-en);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}

.hero-stat dd i {
  margin-left: 2px;
  font-size: 0.58em;
  font-style: normal;
  color: var(--gold);
}

/* emblem */

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 472px);
  aspect-ratio: 1;
  justify-self: center;
}

.emblem-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 111, 0.17), rgba(80, 70, 45, 0.05) 44%, transparent 70%);
  filter: blur(18px);
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.emblem-ring--outer {
  inset: 0;
  border: 1px solid rgba(200, 169, 111, 0.2);
}

.emblem-ring--dashed {
  inset: 7%;
  border: 1px dashed rgba(200, 169, 111, 0.26);
  animation: spin 80s linear infinite;
}

.emblem-ring--inner {
  inset: 17%;
  border: 1px solid rgba(200, 169, 111, 0.11);
}

.emblem-ring--inner::before,
.emblem-ring--inner::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 14px;
  background: rgba(200, 169, 111, 0.3);
  transform: translateX(-50%);
}

.emblem-ring--inner::before {
  top: -7px;
}

.emblem-ring--inner::after {
  bottom: -7px;
}

.emblem-char {
  position: relative;
  z-index: 1;
  font-family: var(--serif-cn);
  font-size: clamp(150px, 16vw, 236px);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(180deg, #f8eedb 0%, #dcc08c 46%, #9a7645 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 20px 56px rgba(200, 169, 111, 0.16));
  transform: translateY(-1.5%);
}

.emblem-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: 0.32em;
  line-height: 1;
  color: rgba(200, 169, 111, 0.62);
  white-space: nowrap;
}

.emblem-label--top {
  top: 7.5%;
}

.emblem-label--bottom {
  bottom: 7.5%;
  letter-spacing: 0.26em;
}

.emblem-star {
  position: absolute;
  z-index: 2;
  font-size: 8px;
  color: var(--gold-bright);
  opacity: 0.75;
  text-shadow: 0 0 12px rgba(200, 169, 111, 0.8);
  animation: starBreath 5s ease-in-out infinite;
}

.emblem-star--1 {
  top: 17%;
  left: 12%;
}

.emblem-star--2 {
  top: 26%;
  right: 8%;
  animation-delay: 1.4s;
}

.emblem-star--3 {
  bottom: 19%;
  left: 9%;
  animation-delay: 2.2s;
}

.emblem-star--4 {
  bottom: 13%;
  right: 14%;
  animation-delay: 0.7s;
}

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 38px;
  height: 1px;
  overflow: hidden;
  background: rgba(200, 169, 111, 0.18);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: var(--gold);
  animation: cueTravel 2.8s ease-in-out infinite;
}

.hero-foot-note {
  text-align: right;
}

/* hero entrance */

.hero-in {
  opacity: 0;
  animation: heroRise 1s var(--ease-soft) forwards;
}

.hero-in--2 {
  animation-delay: 0.1s;
}

.hero-in--3 {
  animation-delay: 0.18s;
}

.hero-in--4 {
  animation-delay: 0.28s;
}

.hero-in--5 {
  animation-delay: 0.38s;
}

.hero-in--6 {
  animation-delay: 0.48s;
}

/* ------------------------------------------------------------------
   About / ritual
   ------------------------------------------------------------------ */

.about {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 72px;
}

.section-head .section-copy {
  justify-self: end;
  padding-bottom: 6px;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.ritual-card {
  position: relative;
  padding: 38px 32px 42px;
  background: var(--ink);
  transition: background 0.45s ease;
}

.ritual-card:hover {
  background: rgba(255, 255, 255, 0.018);
}

.ritual-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-family: var(--serif-en);
  font-size: 46px;
  line-height: 1;
  color: rgba(200, 169, 111, 0.13);
  transition: color 0.45s ease;
}

.ritual-card:hover .ritual-num {
  color: rgba(200, 169, 111, 0.25);
}

.ritual-tag {
  display: block;
  margin-bottom: 52px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.ritual-card h3 {
  margin-bottom: 14px;
  font-family: var(--serif-cn);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ivory);
}

.ritual-card p {
  max-width: 280px;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
}

.timeline {
  position: relative;
  margin-top: 78px;
  padding: 0 8px;
}

.timeline-track {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(200, 169, 111, 0.05),
    rgba(200, 169, 111, 0.42) 32%,
    rgba(200, 169, 111, 0.42) 68%,
    rgba(200, 169, 111, 0.12)
  );
}

.timeline-points {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-point {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 28px;
}

.timeline-point::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(200, 169, 111, 0.46);
  border-radius: 50%;
  background: var(--ink);
}

.timeline-point b {
  font-family: var(--serif-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
}

.timeline-point span {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.timeline-point--now {
  align-items: flex-end;
  text-align: right;
}

.timeline-point--now::before {
  left: auto;
  right: 0;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(200, 169, 111, 0.1),
    0 0 18px rgba(200, 169, 111, 0.55);
}

.timeline-point--now b {
  color: var(--gold-bright);
}

.about-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 68px;
}

.about-cta p {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------
   Wall
   ------------------------------------------------------------------ */

.wall {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 26%);
}

.wall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 40px;
  scroll-margin-top: 0;
}

.wall-lede {
  max-width: 540px;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

.wall-head-right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 4px;
}

.wall-count {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  white-space: nowrap;
}

.wall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.filter-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.decade-filter,
.year-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.decade-label {
  flex: none;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.decade-chips,
.year-chips {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.decade-chips::-webkit-scrollbar,
.year-chips::-webkit-scrollbar {
  display: none;
}

.decade-chip {
  flex: none;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  white-space: nowrap;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.decade-chip span {
  margin-left: 4px;
  font-size: 8px;
  color: rgba(200, 169, 111, 0.6);
}

.decade-chip:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory);
}

.decade-chip.is-active {
  border-color: rgba(200, 169, 111, 0.35);
  background: rgba(200, 169, 111, 0.07);
  color: var(--gold-bright);
}

.decade-empty {
  padding: 5px 4px;
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
}

.era-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.era-chip {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--muted);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.era-chip:hover {
  color: var(--ivory);
}

.era-chip.is-active {
  border-color: rgba(200, 169, 111, 0.4);
  background: rgba(200, 169, 111, 0.07);
  color: var(--gold-bright);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 250px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.search:focus-within {
  border-color: rgba(200, 169, 111, 0.45);
  background: rgba(255, 255, 255, 0.035);
}

.search svg {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

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

.sort {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 30px 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
}

.sort select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
}

.sort option {
  background: #0c1113;
  color: var(--ivory);
}

.sort svg {
  position: absolute;
  right: 12px;
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.4;
  pointer-events: none;
}

.wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 44px;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 25px 21px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.01) 55%,
    rgba(255, 255, 255, 0.02)
  );
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.5s ease,
    background 0.5s ease;
  animation: cardIn 0.7s var(--ease-soft) backwards;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 210px at 100% 0, rgba(200, 169, 111, 0.07), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 169, 111, 0.24);
}

.card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: var(--muted-2);
}

.era-badge {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.official-badge {
  padding: 4px 8px;
  border: 1px solid rgba(200, 169, 111, 0.22);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.card-time {
  margin-left: auto;
  white-space: nowrap;
}

.card-message {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-bottom: 16px;
  overflow: hidden;
  font-family: var(--serif-cn);
  font-size: 14.5px;
  line-height: 1.95;
  color: #e9e2d4;
  white-space: pre-line;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.card.is-expanded .card-message {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.expand-btn {
  align-self: flex-start;
  margin: -6px 0 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gold);
  transition: color 0.3s ease;
}

.expand-btn:hover {
  color: var(--gold-bright);
}

.card-images {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 15px;
}

.card-images--single {
  grid-template-columns: minmax(0, 1fr);
}

.card-images a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #050809;
}

.card-images--single a {
  aspect-ratio: 16 / 9;
}

.card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.card-images a:hover img {
  transform: scale(1.04);
}

.card-horse {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.card-horse strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif-cn);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.card-horse .alt {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.card-meta i {
  font-style: normal;
  color: rgba(200, 169, 111, 0.45);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 10.5px;
  color: var(--muted);
}

.author span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(200, 169, 111, 0.28);
  border-radius: 50%;
  background: rgba(200, 169, 111, 0.07);
  font-family: var(--serif-cn);
  font-size: 11px;
  color: var(--gold-bright);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.comment-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--muted);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.comment-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-btn:hover {
  border-color: rgba(200, 169, 111, 0.4);
  background: rgba(200, 169, 111, 0.05);
  color: var(--gold);
}

.star-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--muted);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.star-btn svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.star-btn:hover {
  border-color: rgba(200, 169, 111, 0.4);
  background: rgba(200, 169, 111, 0.05);
  color: var(--gold);
}

.star-btn.is-starred {
  border-color: rgba(200, 169, 111, 0.45);
  background: rgba(200, 169, 111, 0.08);
  color: var(--gold-bright);
}

.star-btn.is-starred svg {
  fill: currentColor;
  stroke: none;
}

.star-btn.is-burst {
  animation: starPop 0.5s var(--ease-out);
}

/* empty */

.wall-empty {
  padding: 76px 32px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
}

.empty-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 26px;
  border: 1px solid rgba(200, 169, 111, 0.3);
  border-radius: 50%;
}

.empty-orbit::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(200, 169, 111, 0.14);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.empty-orbit span {
  font-size: 18px;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(200, 169, 111, 0.6);
}

.wall-empty h3 {
  margin-bottom: 10px;
  font-family: var(--serif-cn);
  font-size: 24px;
  font-weight: 400;
  color: var(--ivory);
}

.wall-empty p {
  margin-bottom: 26px;
  font-size: 12px;
  color: var(--muted);
}

.wall-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.wall-more .btn {
  min-width: 180px;
}

/* aside */

.wall-aside {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  padding: 23px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.007));
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.panel-head h3 {
  font-family: var(--serif-cn);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.panel-head span {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.panel-note {
  margin-bottom: 18px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.ranking {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
  padding: 0;
}

.ranking-empty {
  padding: 16px 0 10px;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted-2);
}

.rank-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.rank-num {
  font-family: var(--serif-en);
  font-size: 11px;
  color: var(--muted-2);
}

.rank-body {
  min-width: 0;
}

.rank-name {
  display: block;
  overflow: hidden;
  font-family: var(--serif-cn);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ivory-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-bar {
  display: block;
  height: 2px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 169, 111, 0.35), var(--gold));
  transition: width 1.1s var(--ease-soft);
}

.rank-count {
  font-family: var(--serif-en);
  font-size: 13px;
  color: var(--gold);
}

.rank-item:nth-child(1) .rank-num {
  color: var(--gold-bright);
}

.rank-item:nth-child(1) .rank-name {
  color: var(--ivory);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.mini-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-stats strong {
  font-family: var(--serif-en);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}

.mini-stats span {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.era-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.era-bar {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.era-bar i {
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.era-bar b {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(200, 169, 111, 0.55);
  transition: width 1s var(--ease-soft);
}

.era-bar em {
  font-style: normal;
  text-align: right;
  color: var(--muted);
  font-size: 9px;
}

.quote-panel {
  padding: 28px 24px;
  border-color: rgba(200, 169, 111, 0.15);
  background: linear-gradient(160deg, rgba(200, 169, 111, 0.065), rgba(255, 255, 255, 0.008));
}

.quote-panel p {
  margin-bottom: 16px;
  font-family: var(--serif-cn);
  font-size: 14.5px;
  line-height: 1.95;
  color: #e5dbc7;
}

.quote-panel span {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.footer {
  padding: 52px 0 38px;
  border-top: 1px solid var(--line-soft);
  background: #06090a;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-align: right;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.service-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.service-status em {
  font-style: normal;
  color: var(--muted);
}

.service-status.is-online i {
  background: #8fbf9a;
  box-shadow:
    0 0 0 3px rgba(143, 191, 154, 0.1),
    0 0 10px rgba(143, 191, 154, 0.55);
}

.service-status.is-offline i {
  background: #c08072;
}

/* ------------------------------------------------------------------
   Flow overlay
   ------------------------------------------------------------------ */

.flow {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 100px;
  background: #070a0b;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.flow.is-open {
  opacity: 1;
  visibility: visible;
}

.flow-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 620px at 82% 8%, rgba(62, 80, 65, 0.2), transparent 64%),
    radial-gradient(800px 520px at 4% 92%, rgba(94, 68, 32, 0.14), transparent 66%),
    #070a0b;
  pointer-events: none;
}

.flow-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(200, 169, 111, 0.045) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(200, 169, 111, 0.025) 50%, transparent calc(50% + 0.5px));
  pointer-events: none;
}

.flow-stars {
  position: absolute;
  inset: 0;
}

.flow-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.flow-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8e6c3c, var(--gold-bright));
  box-shadow: 0 0 14px rgba(200, 169, 111, 0.65);
  transition: width 0.65s var(--ease-soft);
}

.flow-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(200, 169, 111, 0.06);
  background: rgba(7, 10, 11, 0.74);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.flow-head-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.flow-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.flow-counter b {
  font-size: 17px;
  font-weight: 400;
  color: var(--gold-bright);
}

.flow-counter i {
  font-style: normal;
  font-size: 9px;
  color: var(--muted-2);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  transition:
    transform 0.4s var(--ease-out),
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.icon-btn:hover {
  transform: rotate(90deg);
  border-color: rgba(200, 169, 111, 0.4);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ivory);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.flow-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 80px;
  width: min(calc(100% - 84px), 1180px);
  min-height: calc(100svh - 84px);
  margin-inline: auto;
  padding: 44px 0 74px;
}

.flow-rail {
  position: sticky;
  top: 124px;
  align-self: start;
  padding-top: 8px;
}

.flow-rail ol {
  position: relative;
  list-style: none;
  padding: 0;
}

.flow-rail ol::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 4px;
  width: 1px;
  background: rgba(200, 169, 111, 0.1);
}

.flow-rail li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0 11px 22px;
  opacity: 0.42;
  color: var(--muted-2);
  transition:
    opacity 0.4s ease,
    color 0.4s ease;
}

.flow-rail li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(200, 169, 111, 0.28);
  border-radius: 50%;
  background: #070a0b;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.flow-rail li span {
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.flow-rail li em {
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.18em;
}

.flow-rail li.is-active {
  opacity: 1;
  color: var(--ivory);
}

.flow-rail li.is-active::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow:
    0 0 0 4px rgba(200, 169, 111, 0.1),
    0 0 16px rgba(200, 169, 111, 0.45);
}

.flow-rail li.is-done {
  opacity: 0.76;
  color: var(--muted);
}

.flow-rail li.is-done::before {
  border-color: rgba(200, 169, 111, 0.5);
  background: rgba(200, 169, 111, 0.5);
}

.rail-note {
  margin-top: 42px;
  padding-left: 22px;
  font-size: 10px;
  line-height: 1.95;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.flow-main {
  min-width: 0;
  padding-top: 18px;
}

.flow-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  transition: height 0.55s var(--ease-soft);
}

.step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--enter-y, 26px));
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.65s var(--ease-soft),
    visibility 0.65s;
}

.flow-stage.is-back .step {
  --enter-y: -26px;
}

.step.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.step.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateY(var(--leave-y, -20px));
}

.flow-stage.is-back .step.is-leaving {
  --leave-y: 20px;
}

.step-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.step-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: rgba(200, 169, 111, 0.55);
}

.step-title {
  margin-bottom: 18px;
  font-family: var(--serif-cn);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.step-sub {
  max-width: 520px;
  margin-bottom: 36px;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* fields */

.field--years {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 360px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.field--years:focus-within {
  border-color: var(--gold);
}

.field--years.is-invalid {
  border-color: var(--danger);
}

.field--years input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ivory);
  font-family: var(--serif-en);
  font-size: clamp(64px, 7vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.field--years input::placeholder {
  color: rgba(241, 235, 222, 0.14);
}

.field-suffix {
  padding-bottom: 15px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.chips button {
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.chips button:hover {
  border-color: rgba(200, 169, 111, 0.35);
  color: var(--ivory);
}

.chips button.is-active {
  border-color: rgba(200, 169, 111, 0.5);
  background: rgba(200, 169, 111, 0.08);
  color: var(--gold-bright);
}

/* choices */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 152px;
  padding: 19px 17px 21px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.choice-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(200, 169, 111, 0.4);
  border-radius: 50%;
  transition: border-color 0.3s ease;
}

.choice-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}

.choice-key {
  font-family: var(--serif-en);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.choice strong {
  margin-bottom: 8px;
  font-family: var(--serif-cn);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ivory);
}

.choice small {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted-2);
}

.choice:hover {
  border-color: rgba(200, 169, 111, 0.3);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.choice.is-selected,
.choice:has(input:checked) {
  border-color: rgba(200, 169, 111, 0.55);
  background: linear-gradient(160deg, rgba(200, 169, 111, 0.1), rgba(200, 169, 111, 0.018));
  box-shadow:
    0 0 0 1px rgba(200, 169, 111, 0.06),
    0 18px 44px -32px rgba(200, 169, 111, 0.55);
}

.choice.is-selected .choice-dot,
.choice:has(input:checked) .choice-dot {
  border-color: var(--gold);
}

.choice.is-selected .choice-dot::after,
.choice:has(input:checked) .choice-dot::after {
  transform: scale(1);
}

.choice:focus-within {
  outline: 2px solid rgba(200, 169, 111, 0.5);
  outline-offset: 3px;
}

.reveal-field {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  animation: fadeUp 0.5s var(--ease-out) both;
}

.reveal-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.reveal-field label span {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.reveal-field input {
  width: 100%;
  max-width: 460px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease;
}

.reveal-field input:focus {
  border-color: var(--gold);
}

.reveal-field input::placeholder {
  color: rgba(152, 161, 155, 0.42);
}

/* horse form */

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.field--line {
  position: relative;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.3s ease;
}

.field--line:focus-within {
  border-color: rgba(200, 169, 111, 0.6);
}

.field--line.is-invalid {
  border-color: var(--danger);
}

.field--line label,
.sex-field legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  padding: 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.field--line input {
  width: 100%;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.field--line input::placeholder {
  color: rgba(152, 161, 155, 0.35);
}

.field-hint {
  display: block;
  margin-top: 7px;
  font-size: 8.5px;
  letter-spacing: 0.07em;
  color: var(--muted-2);
}

.row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 30px;
}

.sex-options {
  display: flex;
  gap: 6px;
}

.sex-options label {
  position: relative;
  flex: 1;
}

.sex-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sex-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.sex-options label:hover span {
  border-color: rgba(200, 169, 111, 0.3);
  color: var(--ivory);
}

.sex-options input:checked + span {
  border-color: rgba(200, 169, 111, 0.5);
  background: rgba(200, 169, 111, 0.1);
  color: var(--gold-bright);
}

.sex-options input:focus-visible + span {
  outline: 2px solid rgba(200, 169, 111, 0.5);
  outline-offset: 2px;
}

.horse-preview {
  min-height: 18px;
  margin-top: 16px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.horse-preview.is-on {
  opacity: 1;
}

/* message */

.write-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.write-summary strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif-cn);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.4;
}

.write-summary span {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.link-edit {
  flex: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(200, 169, 111, 0.25);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.field--message {
  position: relative;
  margin-bottom: 28px;
}

.field--message label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.field--message label span {
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.field--message textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px 15px 30px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px;
  line-height: 1.85;
  resize: vertical;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.field--message textarea:focus {
  border-color: rgba(200, 169, 111, 0.5);
  background: rgba(255, 255, 255, 0.035);
}

.field--message textarea::placeholder {
  color: rgba(152, 161, 155, 0.4);
}

.field--message.is-invalid textarea {
  border-color: var(--danger);
}

.char-count {
  position: absolute;
  right: 13px;
  bottom: 11px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.field--author {
  max-width: 340px;
  margin-bottom: 26px;
}

/* image picker */

.image-picker {
  margin: -4px 0 24px;
}

.image-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.image-picker-head > span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.image-picker-head em {
  font-style: normal;
  letter-spacing: 0.04em;
  color: rgba(152, 161, 155, 0.6);
}

.image-add {
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.image-add:hover {
  border-color: rgba(200, 169, 111, 0.4);
  background: rgba(200, 169, 111, 0.06);
}

.image-add:disabled {
  opacity: 0.5;
  cursor: default;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-previews:empty {
  display: none;
}

.image-preview {
  position: relative;
  overflow: hidden;
  width: 88px;
  flex: none;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #050809;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(7, 10, 11, 0.8);
  color: var(--ivory);
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.image-preview button:hover {
  border-color: rgba(200, 169, 111, 0.5);
  color: var(--gold-bright);
}

.review-note {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted-2);
}

.publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 4px;
  padding: 20px 0 2px;
  border-top: 1px solid var(--line-soft);
}

.publish-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.publish-copy p {
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted-2);
  transition: color 0.3s ease;
}

.switch {
  position: relative;
  flex: none;
  width: 47px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    background 0.35s ease,
    border-color 0.35s ease;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.4s var(--ease-out),
    background 0.3s ease;
}

.switch.is-on {
  border-color: rgba(200, 169, 111, 0.5);
  background: rgba(200, 169, 111, 0.17);
}

.switch.is-on i {
  transform: translateX(20px);
  background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(200, 169, 111, 0.5);
}

.field-error {
  min-height: 17px;
  margin-top: 16px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--danger);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.field-error.is-on {
  opacity: 1;
  transform: none;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}

.step-actions--center {
  justify-content: center;
  margin-top: 38px;
}

.key-hint {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.link-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.link-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-back:hover {
  color: var(--ivory);
}

.privacy-note {
  margin-top: 19px;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-align: right;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.btn.is-loading svg {
  animation: spin 1.2s linear infinite;
}

/* done */

.step--done {
  padding-top: 12px;
  text-align: center;
}

.done-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto 34px;
}

.done-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 169, 111, 0.28);
  border-radius: 50%;
  animation: donePulse 3.4s ease-out infinite;
}

.done-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(200, 169, 111, 0.24);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.done-mark svg {
  width: 40px;
  height: 40px;
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 22px rgba(200, 169, 111, 0.65));
  animation: starIn 0.9s var(--ease-out) both;
}

.step--done .step-kicker {
  justify-content: center;
}

.step--done .step-kicker::before {
  display: none;
}

.step--done .step-title {
  margin-bottom: 14px;
  font-size: clamp(34px, 3.8vw, 48px);
  white-space: pre-line;
}

.step--done .step-sub {
  max-width: 470px;
  margin: 0 auto 34px;
  font-size: 12.5px;
}

.done-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  min-width: 260px;
  padding: 18px 34px;
  border: 1px solid rgba(200, 169, 111, 0.2);
  border-radius: 14px;
  background: rgba(200, 169, 111, 0.04);
}

.done-card-star {
  position: absolute;
  top: -8px;
  left: 50%;
  padding: 0 8px;
  background: #070a0b;
  font-size: 10px;
  color: var(--gold);
  transform: translateX(-50%);
}

.done-card strong {
  font-family: var(--serif-cn);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.4;
}

.done-card small {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------
   Comment drawer
   ------------------------------------------------------------------ */

.comment-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.comment-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.comment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 6, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.comment-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0f10, #070a0b 72%);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(34px);
  transition: transform 0.55s var(--ease-soft);
}

.comment-panel:focus {
  outline: none;
}

.comment-drawer.is-open .comment-panel {
  transform: none;
}

.comment-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 10, 11, 0.6);
}

.comment-head-copy {
  min-width: 0;
}

.comment-kicker {
  margin: 0;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.comment-head h2 {
  margin: 8px 0 0;
  overflow: hidden;
  font-family: var(--serif-cn);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ivory);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-body {
  flex: 1;
  min-height: 0;
  padding: 22px 28px 16px;
  overflow-y: auto;
}

.comment-letter {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}

.comment-letter-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: var(--muted-2);
}

.comment-letter-time {
  margin-left: auto;
  white-space: nowrap;
}

.comment-letter-message {
  margin: 16px 0 18px;
  font-family: var(--serif-cn);
  font-size: 14.5px;
  line-height: 1.95;
  color: #e9e2d4;
  white-space: pre-line;
  word-break: break-word;
}

.comment-letter-horse {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.comment-letter-horse strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif-cn);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ivory);
}

.comment-letter-horse > span {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-letter-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 10.5px;
  color: var(--muted);
}

.comment-letter-images,
.comment-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 15px;
}

.comment-letter-images a,
.comment-images a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #050809;
}

.comment-letter-images img,
.comment-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
  margin-bottom: 0;
}

.comment-thread {
  margin-top: 26px;
}

.thread-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.thread-head h3 {
  font-family: var(--serif-cn);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ivory);
}

.thread-head span {
  font-family: var(--serif-en);
  font-size: 12px;
  color: var(--gold);
}

.comment-list {
  display: flex;
  flex-direction: column;
}

.comment-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-item .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

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

.comment-main header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-main strong {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ivory-dim);
}

.comment-main time {
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.comment-main p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-line;
  word-break: break-word;
}

.comment-empty {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted-2);
}

.comment-form {
  flex: none;
  padding: 15px 28px 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-form-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.comment-review-hint {
  margin: 0 0 10px;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.comment-image-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.image-add--small {
  padding: 5px 9px;
  font-size: 9px;
}

.comment-image-hint {
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.comment-image-previews {
  display: flex;
  gap: 6px;
  width: 100%;
}

.comment-image-previews:empty {
  display: none;
}

.comment-image-previews .image-preview {
  width: 58px;
  flex: none;
  aspect-ratio: 1;
}

.comment-name {
  flex: 1;
  min-width: 0;
}

.comment-name > span {
  display: block;
  margin-bottom: 6px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.comment-name input {
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--ivory);
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.comment-name input:focus {
  border-color: var(--gold);
}

.comment-name input::placeholder {
  color: rgba(152, 161, 155, 0.38);
}

.comment-name input:disabled {
  opacity: 0.4;
}

.anon-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding-bottom: 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.anon-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.anon-box {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.anon-toggle input:checked + .anon-box {
  border-color: rgba(200, 169, 111, 0.6);
  background: rgba(200, 169, 111, 0.16);
}

.anon-toggle input:checked + .anon-box::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid var(--gold-bright);
  border-bottom: 1.5px solid var(--gold-bright);
  transform: rotate(40deg);
}

.anon-toggle input:focus-visible + .anon-box {
  outline: 2px solid rgba(200, 169, 111, 0.5);
  outline-offset: 2px;
}

.comment-compose {
  margin-top: 12px;
  padding: 9px 12px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease;
}

.comment-compose:focus-within {
  border-color: rgba(200, 169, 111, 0.4);
}

.comment-compose textarea {
  width: 100%;
  min-height: 48px;
  max-height: 140px;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ivory);
  resize: vertical;
}

.comment-compose textarea::placeholder {
  color: rgba(152, 161, 155, 0.38);
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}

.comment-count {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.comment-form .btn--small {
  padding: 9px 14px;
  font-size: 10px;
}

.comment-form .field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 9.5px;
}

.comment-form.is-anon .comment-name input {
  border-bottom-style: dashed;
}

@media (max-width: 760px) {
  .comment-panel {
    width: 100%;
    border-left: 0;
  }

  .comment-head {
    padding: 18px 20px 16px;
  }

  .comment-head h2 {
    font-size: 23px;
  }

  .comment-body {
    padding: 16px 20px 10px;
  }

  .comment-letter {
    padding: 17px;
  }

  .comment-form {
    padding: 12px 20px 18px;
  }

  .comment-form-row {
    gap: 10px;
  }

  .comment-compose textarea {
    min-height: 44px;
  }

  .decade-filter,
  .year-filter {
    width: 100%;
  }

  .decade-chips,
  .year-chips {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .comment-head {
    padding: 15px 18px 13px;
  }

  .comment-head h2 {
    margin-top: 6px;
    font-size: 21px;
  }

  .comment-kicker {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .comment-body {
    padding: 14px 18px 8px;
  }

  .comment-letter {
    padding: 15px;
  }

  .comment-letter-message {
    font-size: 13.5px;
  }

  .comment-form {
    padding: 11px 18px 16px;
  }

  .comment-form .btn--small {
    padding: 9px 12px;
  }

  .decade-chip {
    padding: 5px 7px;
    font-size: 9px;
  }
}

/* ------------------------------------------------------------------
   Toast / noscript
   ------------------------------------------------------------------ */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 300;
  padding: 11px 18px;
  border: 1px solid rgba(200, 169, 111, 0.24);
  border-radius: 999px;
  background: rgba(15, 20, 21, 0.95);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ease-out),
    visibility 0.35s ease;
  backdrop-filter: blur(10px);
  max-width: calc(100vw - 40px);
}

.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 400;
  padding: 14px 18px;
  border: 1px solid rgba(200, 169, 111, 0.3);
  border-radius: 10px;
  background: #0d1213;
  font-size: 12px;
  color: var(--ivory);
  text-align: center;
}

/* ------------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------------ */

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.85;
    transform: scale(1);
  }
}

@keyframes starBreath {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cueTravel {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(250%);
  }
}

@keyframes starPop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.13);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes starIn {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-35deg);
  }
  62% {
    opacity: 1;
    transform: scale(1.14) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes donePulse {
  0% {
    opacity: 0.85;
    transform: scale(0.86);
  }
  70% {
    opacity: 0;
    transform: scale(1.22);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes grainShift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  30% {
    transform: translate(3%, -2%);
  }
  50% {
    transform: translate(-1%, 2%);
  }
  70% {
    transform: translate(2%, 3%);
  }
  90% {
    transform: translate(-3%, 1%);
  }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1240px) {
  .flow-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 56px;
  }

  .wall-layout {
    gap: 32px;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
  }

  .emblem {
    width: min(100%, 410px);
  }

  .hero-stat {
    padding: 0 20px;
  }

  .wall-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .search {
    width: 210px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 110px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 54px;
  }

  .section-head .section-copy {
    justify-self: start;
  }

  .wall-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .wall-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .quote-panel {
    grid-column: 1 / -1;
  }

  .flow-shell {
    grid-template-columns: 1fr;
    gap: 0;
    width: min(calc(100% - 64px), 680px);
  }

  .flow-rail {
    display: none;
  }

  .flow-main {
    padding-top: 0;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .emblem {
    display: none;
  }

  .hero-copy {
    z-index: 2;
  }

  .hero-title {
    font-size: clamp(46px, 7.4vw, 72px);
  }

  .hero-lede {
    max-width: 500px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }

  .nav-inner {
    width: calc(100% - 40px);
    height: 68px;
  }

  .nav-links > a,
  .nav-count {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta--mobile {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 124px 0 90px;
  }

  .hero-foot {
    display: none;
  }

  .hero-title {
    font-size: clamp(42px, 10.4vw, 58px);
    margin-bottom: 24px;
  }

  .hero-lede {
    font-size: 13.5px;
    margin-bottom: 30px;
  }

  .br-desktop {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
    margin-top: 46px;
  }

  .hero-stat {
    padding: 0 18px;
  }

  .hero-stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) {
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
  }

  .emblem {
    right: -190px;
    top: 44px;
    width: 400px;
    opacity: 0.16;
  }

  .section {
    padding: 90px 0;
  }

  .section-title {
    font-size: clamp(31px, 8vw, 42px);
  }

  .ritual-grid {
    grid-template-columns: 1fr;
  }

  .ritual-card {
    padding: 30px 26px 32px;
  }

  .ritual-tag {
    margin-bottom: 28px;
  }

  .ritual-num {
    font-size: 40px;
  }

  .timeline {
    margin-top: 54px;
    padding-bottom: 6px;
  }

  .timeline-points {
    min-width: 0;
  }

  .timeline-point b {
    font-size: 12px;
  }

  .timeline-point span {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .wall-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .wall-head-right {
    width: 100%;
    justify-content: space-between;
  }

  .wall-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .toolbar-right {
    width: 100%;
  }

  .search {
    flex: 1;
    width: auto;
  }

  .sort {
    flex: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .wall-aside {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 26px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }

  .flow-head {
    height: 72px;
    padding: 0 20px;
  }

  .flow-shell {
    width: calc(100% - 40px);
    min-height: calc(100svh - 72px);
    padding: 32px 0 60px;
  }

  .flow-counter {
    font-size: 10px;
  }

  .flow-counter b {
    font-size: 14px;
  }

  .flow-head-right {
    gap: 14px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 0;
    padding: 16px 17px;
  }

  .choice-top {
    margin-bottom: 14px;
  }

  .choice strong {
    margin-bottom: 5px;
  }

  .name-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .row-2 {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .step-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  .step-sub {
    margin-bottom: 32px;
  }

  .step-actions {
    margin-top: 34px;
  }

  .privacy-note {
    text-align: left;
  }

  .step--done .step-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .step--done .step-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(38px, 11.4vw, 50px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .line--gold::after {
    right: 0.04em;
  }

  .hero-stat dd {
    font-size: 26px;
  }

  .btn {
    padding: 14px 22px;
  }

  .wall-toolbar {
    padding: 14px 0;
  }

  .era-filter {
    gap: 2px;
  }

  .era-chip {
    padding: 7px 10px;
    font-size: 10px;
  }

  .toolbar-right {
    align-items: stretch;
  }

  .search {
    height: 36px;
  }

  .sort {
    height: 36px;
  }

  .card {
    padding: 21px 20px 19px;
  }

  .wall-empty {
    padding: 56px 22px;
  }

  .field--years input {
    font-size: 68px;
  }

  .field--years {
    max-width: 100%;
  }

  .chips {
    gap: 6px;
  }

  .chips button {
    padding: 7px 11px;
    font-size: 9.5px;
  }

  .step-actions {
    gap: 12px;
  }

  .step-actions > .btn {
    margin-left: auto;
  }

  .key-hint {
    display: none;
  }

  .btn--submit {
    min-width: 0;
    flex: 1;
  }

  .publish {
    gap: 16px;
  }

  .flow-head .brand-type small {
    display: none;
  }

  .flow-head .brand-type strong {
    font-size: 16px;
  }

  .done-card {
    min-width: 0;
    width: 100%;
    padding: 18px 20px;
  }

  .toast {
    bottom: 18px;
    font-size: 10.5px;
    text-align: center;
    border-radius: 12px;
    width: calc(100vw - 32px);
  }
}

@media (max-height: 900px) and (min-width: 981px) {
  .flow-shell {
    padding-top: 22px;
    padding-bottom: 44px;
  }

  .flow-rail {
    top: 108px;
  }

  .flow-main {
    padding-top: 4px;
  }

  .step-title {
    margin-bottom: 12px;
    font-size: clamp(32px, 3.2vw, 40px);
  }

  .step-sub {
    margin-bottom: 26px;
    font-size: 12px;
  }

  .field--years input {
    font-size: 72px;
  }

  .choice {
    min-height: 132px;
    padding: 16px;
  }

  .choice-top {
    margin-bottom: 20px;
  }

  .name-grid {
    margin-bottom: 24px;
  }

  .row-2 {
    margin-bottom: 22px;
  }

  .field--message textarea {
    min-height: 116px;
  }

  .write-summary {
    margin-bottom: 20px;
  }

  .field--author {
    margin-bottom: 20px;
  }

  .publish {
    padding-top: 16px;
  }

  .step-actions {
    margin-top: 26px;
  }
}

@media (max-height: 720px) and (min-width: 981px) {
  .flow-shell {
    padding-top: 26px;
  }

  .flow-rail {
    top: 108px;
  }

  .step-title {
    margin-bottom: 12px;
  }

  .step-sub {
    margin-bottom: 30px;
  }

  .step-actions {
    margin-top: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-in {
    opacity: 1;
  }
}
