/* ============================================================
   葡京娱乐登陆 · 共享样式 /assets/site.css
   夜航式娱乐大厅：墨黑底、酒红分区、鎏金结构线、翡翠状态色
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, fieldset {
  margin: 0;
}

ul, ol { list-style: none; padding: 0; }

img, svg, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --wine: #6B1220;
  --wine-deep: #40080F;
  --gold: #C9A227;
  --gold-bright: #EFD58A;
  --ink: #0D0B0C;
  --paper: #F7F2E8;
  --paper-deep: #E4D9C4;
  --emerald: #1E8F62;
  --emerald-soft: #5FD3A3;
  --taupe: #9A8E85;
  --gold-line: #6E5F3C;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --rail-w: 88px;
  --rail-open: 248px;
  --shell: 1180px;

  --radius-lg: 18px;
  --radius-sm: 10px;

  --shadow-panel: 14px 18px 38px rgba(0, 0, 0, 0.46);
  --shadow-fly: 26px 0 56px rgba(0, 0, 0, 0.58);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(107, 18, 32, 0.55), transparent 62%),
    radial-gradient(760px 460px at 6% 4%, rgba(64, 8, 15, 0.6), transparent 66%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.28;
}

h1 { font-size: clamp(2.05rem, 4.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.875rem); }
h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.3125rem; line-height: 1.5; }

p { max-width: 72ch; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.is-nav-locked { overflow: hidden; }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 130;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(13, 11, 12, 0.98), rgba(13, 11, 12, 0.9));
  border-bottom: 1px solid var(--gold-line);
  color: var(--paper);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(110, 95, 60, 0.35);
  pointer-events: none;
}

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.12s linear;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 18px;
  min-height: 72px;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-line);
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(150deg, var(--wine), var(--wine-deep));
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  border-color: var(--gold-bright);
  color: var(--paper);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand__line {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--taupe);
  line-height: 1.5;
  white-space: nowrap;
}

/* account cluster */
.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-account__label {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--taupe);
  white-space: nowrap;
}

.header-account__section {
  padding: 3px 11px;
  border: 1px dashed var(--gold-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn--ghost {
  border: 1px solid var(--gold-line);
  color: var(--paper);
  background: rgba(247, 242, 232, 0.02);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.08);
}

.btn--gold {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

/* ---------- 7. Nav toggle ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  color: var(--paper);
  background: rgba(64, 8, 15, 0.4);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--gold-bright); color: var(--gold-bright); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.18s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

[data-open="true"] .nav-toggle__bars { background: transparent; }
[data-open="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
[data-open="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__text {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--taupe);
}

/* ---------- 8. Rail navigation (mobile = drawer) ---------- */
.rail-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(86vw, 320px);
  padding: 18px 0 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--wine-deep) 0%, #1B0C11 46%, var(--ink) 100%);
  border-right: 1px solid var(--gold-line);
  box-shadow: var(--shadow-fly);
  transform: translateX(-104%);
  transition: transform 0.3s var(--ease);
}

[data-open="true"] .rail-nav { transform: translateX(0); }

.rail-nav__cap {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(110, 95, 60, 0.55);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-nav__item { margin: 0; }

.rail-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-left: 2px solid transparent;
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.rail-nav__link:hover,
.rail-nav__link:focus-visible {
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.09);
  border-left-color: var(--gold);
}

.rail-nav__link[aria-current="page"] {
  color: var(--gold-bright);
  border-left-color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), transparent 78%);
}

.rail-nav__link[aria-current="page"] .rail-nav__index { color: var(--gold-bright); }

.rail-nav__glyph {
  display: none;
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: var(--gold);
}

.rail-nav__index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-line);
}

.rail-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-nav__note {
  margin-top: 18px;
  padding: 14px 22px 0;
  border-top: 1px solid rgba(110, 95, 60, 0.45);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--taupe);
  max-width: none;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #0D0B0C 0%, #170C0F 70%, #0D0B0C 100%);
  border-top: 1px solid var(--gold-line);
  color: var(--paper);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 52px 20px 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(150deg, var(--wine), var(--wine-deep));
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: 8px 10px 22px rgba(0, 0, 0, 0.45);
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--paper);
}

.footer-brand__note {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--taupe);
}

.footer-col { min-width: 0; }

.footer-col--legal .footer-list { gap: 9px; }

.footer-col__title {
  position: relative;
  margin-bottom: 16px;
  padding-left: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--gold);
}

.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list__item { line-height: 1.55; }

.footer-list__link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-list__link:hover,
.footer-list__link:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-line);
}

.footer-list__link[aria-current="page"] { color: var(--gold-bright); }

.footer-contact__list {
  display: grid;
  gap: 12px;
}

.footer-contact__item {
  display: grid;
  gap: 2px;
  line-height: 1.6;
}

.footer-contact__label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--taupe);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 14px;
  max-width: 38ch;
  padding-top: 12px;
  border-top: 1px solid rgba(110, 95, 60, 0.45);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--taupe);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(110, 95, 60, 0.5);
}

.footer-meta__item {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--taupe);
}

/* ---------- 10. Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.section-head__title {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--paper);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.6;
  color: var(--gold);
}

.lede {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.9;
  color: var(--paper-deep);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rule {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: linear-gradient(90deg, var(--gold-line), rgba(110, 95, 60, 0));
}

/* ---------- 11. Prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--paper);
}

.prose > * + * { margin-top: 1em; }

.prose h2 { margin-top: 1.9em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; color: var(--gold-bright); }

.prose a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-line);
}

.prose a:hover { text-decoration-color: var(--gold-bright); }

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin-top: 1em;
}

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; }

.prose blockquote {
  padding: 14px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(228, 217, 196, 0.07);
  color: var(--paper-deep);
}

.prose--terms {
  font-size: 15px;
  line-height: 1.95;
}

/* ---------- 12. Panels, badges, media, breadcrumb, status band ---------- */
.panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(107, 18, 32, 0.55), rgba(13, 11, 12, 0.94));
  box-shadow: var(--shadow-panel);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.panel:hover { border-color: var(--gold); }

.panel__topline {
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  pointer-events: none;
}

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(110, 95, 60, 0.5);
  box-shadow: 10px 14px 30px rgba(0, 0, 0, 0.4);
}

.panel--paper .panel__topline { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--gold-bright);
  white-space: nowrap;
}

.badge--live {
  border-color: rgba(30, 143, 98, 0.6);
  color: var(--emerald-soft);
  background: rgba(30, 143, 98, 0.1);
}

.badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(30, 143, 98, 0.22);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background-color: #150E10;
  background-image:
    linear-gradient(148deg, rgba(107, 18, 32, 0.6), rgba(13, 11, 12, 0.9) 68%),
    repeating-linear-gradient(135deg, rgba(201, 162, 39, 0.07) 0 2px, transparent 2px 11px);
  box-shadow: var(--shadow-panel);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(13, 11, 12, 0.94), rgba(13, 11, 12, 0));
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--paper-deep);
}

.breadcrumb {
  padding: 18px 0 6px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--taupe);
}

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

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--gold-line);
}

.breadcrumb__link {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-line);
}

.breadcrumb__current { color: var(--gold); }

.status-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 14px 20px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: linear-gradient(90deg, rgba(64, 8, 15, 0.72), rgba(13, 11, 12, 0.5));
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--paper-deep);
}

.status-band__path {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

/* ---------- 13. Motion ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  will-change: opacity, transform;
}

.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Breakpoints ---------- */
@media (min-width: 600px) {
  .header-main { padding: 12px 24px; }
  .brand__name { font-size: 20px; }
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 48ch; }
  .content-grid { gap: 32px; }
}

@media (min-width: 900px) {
  .content-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
  .content-grid--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .content-grid--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .footer-top { grid-template-columns: 1.35fr 1fr 1fr 1.25fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .header-main { padding: 14px 28px; min-height: 78px; }

  .nav-toggle { display: none; }

  .rail-nav {
    position: fixed;
    width: var(--rail-w);
    transform: none;
    padding: 0 0 22px;
    overflow: hidden;
    box-shadow: none;
    transition: width 0.28s var(--ease), box-shadow 0.28s var(--ease);
  }

  .rail-nav:hover,
  .rail-nav:focus-within {
    width: var(--rail-open);
    box-shadow: var(--shadow-fly);
  }

  .rail-nav__cap {
    height: 88px;
    padding: 0;
    margin-bottom: 16px;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.26em;
    border-bottom: 1px solid rgba(110, 95, 60, 0.55);
  }

  .rail-nav__link {
    padding: 14px 0 14px 24px;
    gap: 12px;
  }

  .rail-nav__glyph { display: block; }

  .rail-nav__label {
    max-width: 0;
    opacity: 0;
    transition: max-width 0.28s var(--ease), opacity 0.2s ease;
  }

  .rail-nav:hover .rail-nav__label,
  .rail-nav:focus-within .rail-nav__label {
    max-width: 190px;
    opacity: 1;
  }

  .rail-nav__note {
    align-self: center;
    margin-top: auto;
    padding: 16px 0 0;
    border-top: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.22em;
    font-size: 11px;
  }

  .footer-shell { padding: 60px 28px 28px; }
}

@media (max-width: 600px) {
  .brand__line,
  .header-account__label,
  .header-account__section { display: none; }
  .brand__name { font-size: 16px; }
  .brand__mark { width: 38px; height: 38px; font-size: 17px; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .header-main { gap: 10px; padding: 10px 14px; min-height: 64px; }
}

/* ---------- 15. Reduced motion ---------- */
@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;
    transition-delay: 0ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-nav,
  [data-open="true"] .rail-nav { transition: none; }
}
