/* ============================================================
   bonu1.site — GLOBAL SYSTEM
   Layout, header/footer, the Bezel motif, buttons, cards, motion.
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}
body {
  background: var(--ink-obsidian);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
::selection { background: var(--ruby-700); color: var(--gold-200); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
  background: var(--ink-line); border-radius: 99px;
  border: 3px solid var(--ink-900);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

/* ---------- TYPE ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-ui);
  color: var(--ink-50);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-snug); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { text-wrap: pretty; }
strong, b { color: var(--ink-50); font-weight: 700; }

/* The display serif is reserved for hero headlines + money numerals.
   This pairing (Bodoni against Sora) is the site's typographic signature. */
.serif {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  font-optical-sizing: auto;
}
.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* Champagne foil text — used sparingly on numerals and rare labels. */
.foil {
  background: var(--grad-foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-drift 9s var(--ease-io) infinite;
}
@keyframes foil-drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.ruby-text { color: var(--ruby-300); }
.gold-text { color: var(--gold-400); }

/* Eyebrow label — wide-tracked micro caps, the atelier voice. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
  flex: none;
}
.eyebrow.is-ruby { color: var(--ruby-300); }
.eyebrow.is-ruby::before { background: linear-gradient(90deg, transparent, var(--ruby-500)); }
.eyebrow.is-center::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(270deg, transparent, var(--gold-500));
  flex: none;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-200);
  line-height: 1.68;
  max-width: 62ch;
}
.muted { color: var(--ink-300); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

/* ---------- LAYOUT ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-wide { max-width: var(--shell-wide); }
.shell-narrow { max-width: 860px; }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-8); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--sp-4); color: var(--ink-200); font-size: var(--fs-lead); }
.stack > * + * { margin-top: var(--sp-4); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.15em; }
.prose p { color: var(--ink-200); }
.prose h3 { margin-top: 2.2em; margin-bottom: .7em; }
.prose a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-hair); }
.prose a:hover { text-decoration-color: var(--gold-400); }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: var(--z-top); background: var(--gold-500); color: var(--ink-abyss);
  font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-sm);
  padding: .7rem 1.4rem; border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ============================================================
   THE BEZEL — signature motif
   1px champagne hairline + four corner tick-marks, drawn with
   layered gradients so it costs no extra DOM and scales cleanly.
   ============================================================ */
.bezel { position: relative; }
.bezel::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
  /* four L-shaped corner brackets */
  background:
    linear-gradient(var(--gold-500), var(--gold-500)) 0 0 / var(--bezel-tick) var(--bezel-w) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 0 0 / var(--bezel-w) var(--bezel-tick) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 100% 0 / var(--bezel-tick) var(--bezel-w) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 100% 0 / var(--bezel-w) var(--bezel-tick) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 0 100% / var(--bezel-tick) var(--bezel-w) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 0 100% / var(--bezel-w) var(--bezel-tick) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 100% 100% / var(--bezel-tick) var(--bezel-w) no-repeat,
    linear-gradient(var(--gold-500), var(--gold-500)) 100% 100% / var(--bezel-w) var(--bezel-tick) no-repeat;
  opacity: .55;
  transition: opacity var(--t) var(--ease);
}
.bezel-lg::after { --bezel-tick: var(--bezel-tick-lg); }
.bezel:hover::after { opacity: 1; }
.bezel-static:hover::after { opacity: .55; }

/* Full hairline frame variant */
.frame {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-800);
}
.frame-inner::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid var(--gold-hair-soft);
  border-radius: var(--radius-xs);
  pointer-events: none;
}

/* Chevron-kinked divider — replaces the plain <hr> */
.rule {
  height: 12px; width: 100%;
  border: 0;
  background: none;
  position: relative;
  overflow: hidden;
}
.rule::before {
  content: "";
  position: absolute; inset-inline: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hair-soft) 18%, var(--gold-hair) 50%, var(--gold-hair-soft) 82%, transparent);
}
.rule::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  translate: -50% -50%;
  rotate: 45deg;
  border: 1px solid var(--gold-500);
  background: var(--ink-obsidian);
}

/* ---------- AMBIENT: guilloché rosette + ruby shaft ---------- */
.ambient {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient > * { position: absolute; }
.guilloche {
  width: min(1100px, 130vw); aspect-ratio: 1;
  opacity: .085;
  color: var(--gold-500);
  animation: rosette 96s linear infinite;
  transform-origin: 50% 50%;
}
.guilloche-b { animation: rosette-rev 132s linear infinite; opacity: .06; color: var(--ruby-500); }
@keyframes rosette     { to { rotate: 360deg; } }
@keyframes rosette-rev { to { rotate: -360deg; } }

.shaft {
  width: 60vw; height: 130%;
  background: radial-gradient(ellipse 42% 48% at 50% 40%, var(--ruby-glow), transparent 70%);
  filter: blur(38px);
  opacity: .5;
  animation: shaft-breathe 14s var(--ease-io) infinite;
}
.shaft-gold { background: radial-gradient(ellipse 40% 46% at 50% 45%, rgba(201,169,97,.24), transparent 70%); }
@keyframes shaft-breathe {
  0%, 100% { opacity: .38; transform: scale(1); }
  50%      { opacity: .6;  transform: scale(1.08); }
}

/* Vitrine backdrop for dark bands */
.vitrine { background: var(--grad-vitrine); position: relative; overflow: hidden; }
.band-line { border-block: 1px solid var(--ink-line-soft); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-py: .95rem; --btn-px: 1.65rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  border-radius: var(--radius-sm);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Primary — ruby, with a travelling specular edge */
.btn-primary {
  background: var(--grad-ruby);
  color: #fff;
  box-shadow: var(--sh-ruby), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 48%, transparent 62%);
  translate: -120% 0;
  transition: translate 620ms var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px var(--ruby-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::before { translate: 120% 0; }

/* Gold — the rare one. Reserved for the single highest-intent CTA. */
.btn-gold {
  background: var(--grad-gold);
  background-size: 200% 100%;
  color: #2A1D05;
  font-weight: 700;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover { background-position: 100% 50%; box-shadow: 0 16px 40px -12px rgba(201,169,97,.5); }

/* Ghost — hairline bezel button */
.btn-ghost {
  background: rgba(255,255,255,.02);
  color: var(--ink-50);
  border: 1px solid var(--ink-line);
}
.btn-ghost:hover { border-color: var(--gold-hair); background: var(--gold-tint-soft); color: var(--gold-200); }

/* Telegram support — deliberately in Telegram blue so it can never be
   confused with the site's own ruby/gold community button. */
.btn-support {
  background: linear-gradient(135deg, var(--tg-blue) 0%, var(--tg-blue-2) 100%);
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(34,158,217,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-support:hover { box-shadow: 0 14px 34px -12px rgba(34,158,217,.7); }

.btn-sm { --btn-py: .68rem; --btn-px: 1.1rem; font-size: var(--fs-xs); }
.btn-lg { --btn-py: 1.15rem; --btn-px: 2.2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with a kinked underline that draws on hover */
.link-kink {
  position: relative;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm);
  color: var(--gold-300);
  display: inline-flex; align-items: center; gap: .45rem;
  padding-bottom: 2px;
}
.link-kink::after {
  content: "";
  position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold-500);
  scale: 0 1; transform-origin: left;
  transition: scale var(--t-slow) var(--ease);
}
.link-kink:hover::after { scale: 1 1; }
.link-kink svg { width: .85em; height: .85em; transition: translate var(--t) var(--ease); }
.link-kink:hover svg { translate: 3px 0; }

/* ---------- CHIPS / BADGES ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .8rem;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  color: var(--ink-200);
  background: rgba(255,255,255,.02);
  transition: all var(--t) var(--ease);
}
.chip-gold { border-color: var(--gold-hair); color: var(--gold-300); background: var(--gold-tint-soft); }
.chip-ruby { border-color: rgba(224,48,76,.3); color: var(--ruby-300); background: var(--ruby-tint-soft); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-rare {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem;
  font-family: var(--font-ui); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  background: var(--grad-gold); color: #2A1D05;
  border-radius: var(--radius-xs);
}

/* ---------- CARDS ---------- */
.card {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform var(--t-slow) var(--ease), border-color var(--t) var(--ease),
              background-color var(--t) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-hair-soft);
  background: var(--ink-700);
  box-shadow: var(--sh-lg);
}
.card-flat:hover { transform: none; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--ink-200); font-size: var(--fs-sm); }

/* Icon plate — a small gem-set square */
.plate {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--ink-600), var(--ink-850));
  border: 1px solid var(--ink-line);
  color: var(--gold-400);
  position: relative;
  transition: all var(--t) var(--ease);
}
.plate svg { width: 22px; height: 22px; }
.plate-ruby { color: var(--ruby-300); }
.card:hover .plate { border-color: var(--gold-hair); color: var(--gold-300); }

/* ---------- FORMS ---------- */
.field { display: block; margin-bottom: var(--sp-5); }
.field-label {
  display: block;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--ink-200); margin-bottom: .55rem;
}
.field-label .req { color: var(--ruby-400); }
.input, .textarea, .select {
  width: 100%;
  padding: .9rem 1rem;
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  color: var(--ink-50);
  font-family: var(--font-body); font-size: var(--fs-sm);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--ink-850);
  box-shadow: 0 0 0 3px var(--gold-tint-soft);
}
.textarea { min-height: 168px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A961' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}
.field-error {
  display: none;
  margin-top: .45rem;
  font-size: var(--fs-xs); color: var(--ruby-300);
}
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--ruby-500); }
.field.is-invalid .field-error { display: block; }
.form-note { font-size: var(--fs-xs); color: var(--ink-300); }
.form-status {
  display: none; margin-top: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--gold-hair); border-radius: var(--radius-sm);
  background: var(--gold-tint-soft); color: var(--gold-200);
  font-size: var(--fs-sm);
}
.form-status.is-visible { display: block; }

/* ============================================================
   ANNOUNCEMENT RIBBON
   ============================================================ */
.ribbon {
  position: relative; z-index: var(--z-ribbon);
  background: linear-gradient(90deg, var(--ruby-950), var(--ruby-800) 45%, var(--ruby-950));
  border-bottom: 1px solid rgba(201,169,97,.18);
  color: var(--gold-200);
  font-family: var(--font-ui); font-size: var(--fs-xs);
}
.ribbon-inner {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  min-height: 42px; padding-block: .45rem;
}
.ribbon-track { position: relative; flex: 1; min-width: 0; height: 1.4em; }
.ribbon-msg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  opacity: 0; translate: 0 45%;
  transition: opacity 520ms var(--ease), translate 520ms var(--ease);
  text-align: center;
}
.ribbon-msg.is-active { opacity: 1; translate: 0 0; }
.ribbon-msg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ribbon-msg b { color: var(--gold-300); font-weight: 700; }
.ribbon-pause {
  flex: none; width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: var(--radius-xs); color: var(--gold-400);
  transition: background-color var(--t) var(--ease);
}
.ribbon-pause:hover { background: rgba(255,255,255,.08); }
.ribbon-pause svg { width: 11px; height: 11px; }
.ribbon-pause .ico-play { display: none; }
.ribbon.is-paused .ico-play { display: block; }
.ribbon.is-paused .ico-pause { display: none; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(10,7,8,.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--ink-line-soft);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--gold-hair-soft); background: rgba(8,5,6,.94); }
.header-inner {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { width: 132px; height: auto; }
.brand-sub {
  display: none;
  font-family: var(--font-ui); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--ink-300);
  padding-left: .7rem; border-left: 1px solid var(--ink-line);
}

.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: var(--sp-2); }
.nav-link {
  position: relative;
  display: block; padding: .6rem .85rem;
  font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-200);
  transition: color var(--t) var(--ease);
}
.nav-link:hover { color: var(--ink-50); }
/* kinked chevron underline, not a straight bar */
.nav-link::after {
  content: "";
  position: absolute; left: 50%; bottom: .25rem;
  width: 7px; height: 7px;
  translate: -50% 0; rotate: 45deg;
  border-right: 1px solid var(--gold-500);
  border-bottom: 1px solid var(--gold-500);
  opacity: 0; scale: .4;
  transition: opacity var(--t) var(--ease), scale var(--t) var(--ease);
}
.nav-link:hover::after { opacity: .7; scale: .75; }
.nav-link[aria-current="page"] { color: var(--gold-300); }
.nav-link[aria-current="page"]::after { opacity: 1; scale: .8; }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  padding: 0; place-items: center;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.hamburger:hover { border-color: var(--gold-hair); }
.hamburger-box { position: relative; width: 18px; height: 12px; }
.hamburger-box span {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: var(--gold-400); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), width var(--t) var(--ease);
}
.hamburger-box span:nth-child(1) { top: 0; }
.hamburger-box span:nth-child(2) { top: 5px; width: 70%; }
.hamburger-box span:nth-child(3) { top: 10.5px; }
.hamburger[aria-expanded="true"] .hamburger-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-box span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-box span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: rgba(5,3,4,.72);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-abyss);
  border-top: 1px solid var(--ink-line);
  padding-top: var(--sp-9);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-7) var(--sp-6);
  position: relative; z-index: 1;
}
.footer-brand img { width: 148px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--ink-300); max-width: 38ch; }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  color: var(--ink-200);
  transition: all var(--t) var(--ease);
}
.footer-social a:hover { border-color: var(--gold-hair); color: var(--gold-300); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--gold-400); margin-bottom: var(--sp-4);
}
.footer-col li + li { margin-top: .7rem; }
.footer-col a { font-size: var(--fs-sm); color: var(--ink-300); transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--gold-200); }

.footer-compliance {
  margin-top: var(--sp-8);
  padding: var(--sp-5);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: rgba(196,30,58,.045);
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
  align-items: start;
  position: relative; z-index: 1;
}
.footer-age {
  flex: none;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ruby-500); border-radius: 50%;
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  color: var(--ruby-300);
}
.footer-compliance p { font-size: var(--fs-xs); color: var(--ink-300); line-height: 1.75; }
.footer-compliance p + p { margin-top: .6rem; }
.footer-compliance a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }

.footer-base {
  margin-top: var(--sp-7);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--ink-line-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.footer-base p { font-size: var(--fs-xs); color: var(--ink-400); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a { font-size: var(--fs-xs); color: var(--ink-300); }
.footer-legal a:hover { color: var(--gold-300); }

/* ============================================================
   COOKIE BAR
   ============================================================ */
.cookie {
  position: fixed; inset-inline: var(--gutter); bottom: var(--gutter);
  z-index: var(--z-cookie);
  max-width: 640px; margin-inline: auto;
  background: var(--ink-850);
  border: 1px solid var(--gold-hair-soft);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--sh-xl);
  display: none;
  translate: 0 20px; opacity: 0;
  transition: translate var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}
.cookie.is-mounted { display: block; }
.cookie.is-visible { translate: 0 0; opacity: 1; }
.cookie h4 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.cookie p { font-size: var(--fs-xs); color: var(--ink-300); margin-bottom: var(--sp-4); }
.cookie p a { color: var(--gold-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ============================================================
   MOTION — "vitrine reveal"
   A curtain wipe (clip-path) + lift, rather than a plain fade-up.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  translate: 0 22px;
  clip-path: inset(0 0 12% 0);
  transition:
    opacity var(--t-reveal) var(--ease) var(--reveal-delay, 0ms),
    translate var(--t-reveal) var(--ease) var(--reveal-delay, 0ms),
    clip-path var(--t-reveal) var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}
[data-reveal].is-revealed { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); }
/* No-JS and reduced-motion users get the finished state immediately. */
.no-js [data-reveal] { opacity: 1; translate: 0; clip-path: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; translate: 0 !important; clip-path: none !important; }
}

/* Sheen sweep — light catching a polished surface */
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: "";
  position: absolute; top: -60%; left: -80%;
  width: 45%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  rotate: 18deg;
  animation: sheen-sweep 6.5s var(--ease-io) infinite;
  pointer-events: none;
}
@keyframes sheen-sweep {
  0%, 72%  { translate: 0 0; opacity: 0; }
  76%      { opacity: 1; }
  100%     { translate: 460% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sheen::after { display: none; } }

/* Page transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: var(--z-top);
  background: var(--ink-obsidian);
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
body.is-leaving .curtain { opacity: 1; }

/* ---------- SCROLL RAIL (chapter progress) ---------- */
.rail {
  position: fixed; left: max(1.1rem, calc((100vw - var(--shell)) / 2 - 3.4rem));
  top: 50%; translate: 0 -50%;
  z-index: 40;
  display: none;
  flex-direction: column; align-items: center; gap: .85rem;
}
.rail-line { width: 1px; height: 74px; background: var(--ink-line); position: relative; overflow: hidden; }
.rail-line::after {
  content: ""; position: absolute; inset-inline: 0; top: 0;
  height: var(--rail-progress, 0%);
  background: linear-gradient(180deg, var(--gold-500), var(--ruby-500));
  transition: height 140ms linear;
}
.rail-dot {
  width: 7px; height: 7px; rotate: 45deg;
  border: 1px solid var(--ink-500);
  background: var(--ink-obsidian);
  transition: all var(--t) var(--ease);
}
.rail-dot[aria-current="true"] { border-color: var(--gold-400); background: var(--gold-500); scale: 1.2; }
.rail-dot:hover { border-color: var(--gold-400); }

/* ============================================================
   SHARED COMPONENTS (used on 2+ pages)
   ============================================================ */

/* ---------- CHAPTER HEADING ----------
   The page reads as a numbered catalogue rather than a stack of
   anonymous sections. */
.chapter {
  display: flex; align-items: baseline; gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.chapter-n {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-600);
  flex: none;
  letter-spacing: -0.04em;
}
.chapter-txt { flex: 1; min-width: 0; }
.chapter-txt .eyebrow { margin-bottom: .5rem; }

/* ---------- ACCORDION / FAQ ---------- */
.acc { border-top: 1px solid var(--ink-line); }
.acc-item { border-bottom: 1px solid var(--ink-line); }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  width: 100%; text-align: left;
  padding: 1.35rem 0;
  font-family: var(--font-ui); font-size: var(--fs-h4); font-weight: 600;
  color: var(--ink-50);
  letter-spacing: var(--ls-head);
  transition: color var(--t) var(--ease);
}
.acc-trigger:hover { color: var(--gold-300); }
.acc-mark {
  flex: none; position: relative;
  width: 26px; height: 26px;
  border: 1px solid var(--ink-line); border-radius: var(--radius-xs);
  transition: all var(--t) var(--ease);
}
.acc-mark::before, .acc-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--gold-400);
  translate: -50% -50%;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.acc-mark::before { width: 11px; height: 1px; }
.acc-mark::after  { width: 1px; height: 11px; }
.acc-trigger:hover .acc-mark { border-color: var(--gold-hair); }
.acc-item.is-open .acc-mark { background: var(--gold-tint); border-color: var(--gold-hair); }
.acc-item.is-open .acc-mark::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-panel {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
}
.acc-panel-in { padding: 0 0 1.5rem; max-width: 76ch; }
.acc-panel-in p { color: var(--ink-200); font-size: var(--fs-sm); }
.acc-panel-in p + p { margin-top: .9em; }
.acc-panel-in a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }
.no-js .acc-panel { max-height: none; }

/* ---------- GAME CARD ---------- */
.gcard {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-850);
  border: 1px solid var(--ink-line);
  transition: transform var(--t-slow) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.gcard:hover { transform: translateY(-5px); border-color: var(--gold-hair); box-shadow: var(--sh-lg); }
.gcard-art {
  display: block; position: relative;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: var(--ink-900);
}
.gcard-art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 620ms var(--ease), filter var(--t) var(--ease);
}
.gcard:hover .gcard-art img { transform: scale(1.07); filter: brightness(1.06); }
/* "Play" pill rises from below on hover */
.gcard-art::after {
  content: attr(data-cta);
  position: absolute; left: 50%; bottom: 12px;
  translate: -50% 140%;
  padding: .42rem 1rem;
  background: var(--grad-ruby);
  color: #fff;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--sh-ruby);
  transition: translate 420ms var(--ease);
}
.gcard:hover .gcard-art::after, .gcard:focus-visible .gcard-art::after { translate: -50% 0; }
.gcard-meta {
  display: block;
  padding: .8rem .85rem .9rem;
  border-top: 1px solid var(--ink-line-soft);
}
.gcard-meta b {
  display: block;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-50);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gcard-meta i {
  display: block; font-style: normal;
  font-size: 10px; letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--ink-400); margin-top: .2rem;
}

.gcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: var(--sp-4);
}

/* ---------- ARC CAROUSEL ---------- */
.arc { position: relative; }
.arc-stage {
  position: relative;
  height: clamp(430px, 62vw, 660px);
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
  touch-action: pan-y;
  cursor: grab;
  /* Neighbour slides sit deliberately outside the stage on narrow screens;
     clip them here so the fan never widens the document. */
  overflow: hidden;
}
.arc-stage.is-dragging { cursor: grabbing; }
.arc-slide {
  position: absolute;
  width: clamp(190px, 30vw, 268px);
  transform-origin: 50% 118%;
  transition: transform 720ms var(--ease), opacity 720ms var(--ease);
  will-change: transform, opacity;
}
.arc-slide .plinth { --dev-w: 100%; width: 100%; }
.arc-slide:not(.is-current) .plinth::before,
.arc-slide:not(.is-current) .plinth-glare { display: none; }
.arc-slide:not(.is-current) .plinth-body { animation: none; }

.arc-controls {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.arc-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  color: var(--gold-400);
  transition: all var(--t) var(--ease);
}
.arc-btn:hover { border-color: var(--gold-hair); background: var(--gold-tint-soft); transform: translateY(-2px); }
.arc-btn svg { width: 15px; height: 15px; }
.arc-dots { display: flex; gap: .55rem; }
.arc-dot {
  width: 8px; height: 8px; rotate: 45deg; padding: 0;
  border: 1px solid var(--ink-500);
  background: transparent;
  transition: all var(--t) var(--ease);
}
.arc-dot:hover { border-color: var(--gold-400); }
.arc-dot.is-active { background: var(--gold-500); border-color: var(--gold-400); scale: 1.25; }
.arc-progress {
  width: min(280px, 60%); height: 2px;
  margin: var(--sp-4) auto 0;
  background: var(--ink-line);
  overflow: hidden;
}
.arc-bar {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--ruby-500));
  transform: scaleX(0); transform-origin: left;
}
.arc-caption {
  text-align: center;
  margin-top: var(--sp-4);
  font-family: var(--font-ui); font-size: var(--fs-sm);
  color: var(--ink-200);
  min-height: 1.6em;
}

/* ---------- BREADCRUMB ---------- */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); color: var(--ink-400);
  padding-top: var(--sp-6);
}
.crumb a { color: var(--ink-300); transition: color var(--t) var(--ease); }
.crumb a:hover { color: var(--gold-300); }
.crumb li { display: flex; align-items: center; gap: .5rem; }
.crumb li + li::before { content: "/"; color: var(--ink-500); }
.crumb [aria-current] { color: var(--gold-300); }

/* ---------- NOTE BOXES ---------- */
.note {
  border: 1px solid var(--ink-line);
  border-left: 2px solid var(--gold-500);
  border-radius: var(--radius-sm);
  background: var(--gold-tint-soft);
  padding: var(--sp-5);
}
.note h4 { margin-bottom: .5rem; color: var(--gold-200); }
.note p { font-size: var(--fs-sm); color: var(--ink-200); }
.note-ruby { border-left-color: var(--ruby-500); background: var(--ruby-tint-soft); }
.note-ruby h4 { color: var(--ruby-300); }

/* ---------- TABLES ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--ink-line); border-radius: var(--radius); }
.tbl { min-width: 520px; font-size: var(--fs-sm); }
.tbl th, .tbl td { padding: .95rem 1.1rem; text-align: left; }
.tbl thead th {
  background: var(--ink-850);
  font-family: var(--font-ui); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--gold-400);
  border-bottom: 1px solid var(--ink-line);
}
.tbl tbody tr + tr td { border-top: 1px solid var(--ink-line-soft); }
.tbl tbody tr:hover td { background: rgba(255,255,255,.02); }
.tbl td:first-child { color: var(--ink-50); font-weight: 600; }
.tbl td { color: var(--ink-200); }

/* ---------- STEP LIST ---------- */
.steps { counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 3.6rem;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--ink-line-soft);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--sp-4);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  color: transparent; -webkit-text-stroke: .8px var(--gold-600);
  line-height: 1;
}
.steps li h4 { margin-bottom: .35rem; }
.steps li p { font-size: var(--fs-sm); color: var(--ink-200); }

/* ---------- PAGE HERO (inner pages) ---------- */
.phero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ink-line-soft);
  background: var(--grad-vitrine);
}
.phero-in { position: relative; z-index: 1; max-width: 70ch; }
.phero h1 { margin-block: var(--sp-3) var(--sp-4); }
.phero .lead { color: var(--ink-200); }

/* ---------- UTILITIES ---------- */
.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;
}
.text-center { text-align: center; }
.flow-4 > * + * { margin-top: var(--sp-4); }
.flow-5 > * + * { margin-top: var(--sp-5); }
.flow-6 > * + * { margin-top: var(--sp-6); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.icon { width: 1em; height: 1em; fill: currentColor; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }

/* ------------------------------------------------------------------
   MIN-WIDTH GUARD
   Grid and flex children default to min-width:auto, so a nowrap game
   title or a min-width table can widen its track beyond its share and
   push the whole document sideways. Opt every layout child back to 0.
   Verified by the overflow harness at 360-1440px on every page.
   ------------------------------------------------------------------ */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.gcard-grid > *, .related-rail > *, .feat-grid > *,
.cats > *, .dive > *, .tg > *, .trust > *, .strip-in > *,
.standards > *, .guides > *, .safety > *, .catribbon > *,
.seo-grid > *, .rg-grid > *, .dial-wrap > *, .hero-grid > *,
.dl-grid > *, .about-open > *, .contact-grid > *, .detail-grid > *,
.doc-grid > *, .rail-row > *, .footer-grid > *, .field-row > *,
.cat > *, .filterbar-in > * { min-width: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1400px) { .rail { display: flex; } }
@media (min-width: 1025px) { .brand-sub { display: block; } }

@media (max-width: 1024px) {
  html { scroll-padding-top: 90px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

  .hamburger { display: grid; }
  /* Nav leaves the flex flow here, so the action group needs its own
     auto margin — otherwise the hamburger drifts to the left. */
  .header-actions { margin-inline-start: auto; }
  .header-inner { min-height: 66px; }

  /* backdrop-filter on an ancestor establishes a containing block for
     position:fixed descendants. With it on, the drawer below would be
     positioned against the ~66px header instead of the viewport — giving a
     stub-height panel and adding its off-canvas width to the document's
     scrollable area. Swap the blur for an opaque fill at drawer widths. */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 7, 8, 0.97);
  }
  .header.is-stuck { background: rgba(8, 5, 6, 0.99); }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    z-index: var(--z-nav);
    width: min(380px, 86vw);
    margin-inline-start: 0;
    background: var(--ink-900);
    border-left: 1px solid var(--gold-hair-soft);
    padding: var(--sp-8) var(--sp-6) var(--sp-6);
    overflow-y: auto;
    translate: 100% 0;
    visibility: hidden;
    transition: translate var(--t-slow) var(--ease), visibility var(--t-slow);
    box-shadow: var(--sh-xl);
  }
  body.nav-open .nav { translate: 0 0; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--ink-line-soft); }
  .nav-link {
    padding: 1.05rem .25rem;
    font-size: 1.05rem;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-link::after { position: static; translate: 0; opacity: .35; scale: .8; }
  .nav-link[aria-current="page"]::after { opacity: 1; }
  .nav-cta { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }

  /* Scope the desktop-only hide to its container so a later
     `.btn { display: inline-flex }` cannot win on specificity. */
  .header-actions .header-cta-desktop { display: none; }
}

@media (min-width: 1025px) {
  .nav-cta { display: none; }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-compliance { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .ribbon-inner { gap: var(--sp-2); }
}

@media (max-width: 620px) {
  .brand img { width: 112px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .cookie { inset-inline: .75rem; bottom: .75rem; padding: var(--sp-4); }
  .cookie-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .btn { --btn-px: 1.3rem; }
  .btn-group > .btn { width: 100%; }
}
