:root {
  --bg: #07090f;
  --bg-2: #0d111a;
  --bg-3: #131925;
  --line: rgba(212, 175, 55, 0.14);
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --ink: #f4f1ea;
  --muted: #a7b0c0;
  --dim: #7a8496;
  --accent: #1f8a70;
  --danger: #c45c5c;
  --radius: 14px;
  --container: 1120px;
  --header: 72px;
  --ease: 0.2s ease;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 138, 112, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

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

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

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li {
  margin: 0.4rem 0;
  color: var(--muted);
}

li::marker {
  color: var(--gold);
}

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

[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.92);
  font-size: 0.78rem;
  color: var(--dim);
  padding: 0.55rem 0;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.topbar strong {
  color: var(--gold);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.88);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: 118px;
  height: auto;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 0.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.header__cta {
  display: none;
  margin-left: 0.5rem;
}

.burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  display: grid;
  place-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn--primary {
  background: linear-gradient(180deg, #ecd37a, var(--gold));
  color: #1a1405;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn--full {
  width: 100%;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

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

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--ease);
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform var(--ease);
  overflow: auto;
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-3);
  font-size: 1.4rem;
  line-height: 1;
}

.drawer nav {
  display: grid;
  gap: 0.4rem;
}

.drawer nav a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Keep closer to 16:9 so cover doesn't crop the face */
  height: clamp(460px, 56vw, 620px);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: 2.5rem 0 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor on face + roulette, not vertical center */
  object-position: 78% 12%;
  display: block;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7, 9, 15, 0.92) 0%, rgba(7, 9, 15, 0.72) 36%, rgba(7, 9, 15, 0.18) 58%, rgba(7, 9, 15, 0.4) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.15) 0%, transparent 35%, rgba(7, 9, 15, 0.82) 100%);
}

.hero__content {
  position: relative;
  padding-bottom: 1.25rem;
  animation: hero-rise 0.7s ease both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, #fff 10%, var(--gold-2) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34ch;
  color: #d7dbe6;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: #b7becc;
  font-size: 0.86rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.slots-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.85rem 0 1.15rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.slots-marquee__track {
  display: flex;
  width: max-content;
  gap: 0.7rem;
  animation: marquee-x 42s linear infinite;
  will-change: transform;
}

.slots-marquee:hover .slots-marquee__track {
  animation-play-state: paused;
}

.slots-marquee__item {
  flex: 0 0 auto;
  width: 96px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: #10131c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform var(--ease), border-color var(--ease);
  text-decoration: none;
}

.slots-marquee__item:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(212, 175, 55, 0.55);
}

.slots-marquee__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 228 / 213;
  object-fit: cover;
  display: block;
}

@keyframes marquee-x {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767px) {
  .hero {
    height: clamp(520px, 118vw, 640px);
  }

  .hero__bg {
    object-position: 82% 8%;
  }

  .hero__brand {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .hero__lead {
    max-width: 28ch;
    font-size: 0.98rem;
  }
}

@media (min-width: 768px) {
  .slots-marquee__item {
    width: 112px;
  }

  .hero__bg {
    object-position: 74% 10%;
  }
}

@media (min-width: 1200px) {
  .hero {
    height: clamp(520px, 48vw, 640px);
  }

  .hero__bg {
    object-position: 70% 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
  }

  .slots-marquee__item[aria-hidden="true"] {
    display: none;
  }

  .hero__content {
    animation: none;
  }
}

.layout {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.toc {
  background: rgba(19, 25, 37, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.toc__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.2rem;
  counter-reset: toc;
}

.toc a {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  border-left: 2px solid transparent;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 700;
  padding-top: 0.15rem;
}

.toc a:hover,
.toc a.is-active {
  color: #fff;
  background: rgba(212, 175, 55, 0.08);
  border-left-color: var(--gold);
}

@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: calc(var(--header) + 1rem);
  }
}

.article {
  min-width: 0;
}

.article__date {
  color: var(--dim);
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
}

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin: 2.4rem 0 0.9rem;
  letter-spacing: -0.015em;
}

.article h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--gold-2);
}

.article p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.article strong {
  color: #eef1f7;
  font-weight: 650;
}

.note {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.07);
  padding: 0.9rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
}

.note strong {
  color: var(--gold-2);
}

.cta-band {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.1), rgba(31, 138, 112, 0.08)),
    var(--bg-3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 0.9rem 1rem 0.4rem;
  color: var(--ink);
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.05);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.faq {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19, 25, 37, 0.7);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.faq__q span:last-child {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.faq__a {
  display: none;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq__item.is-open .faq__a {
  display: block;
}

.responsible {
  margin-top: 2.5rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(196, 92, 92, 0.35);
  background: rgba(196, 92, 92, 0.08);
}

.responsible__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #f0b4b4;
}

.footer {
  border-top: 1px solid var(--line);
  background: #05070c;
  padding: 2rem 0 6rem;
}

@media (min-width: 768px) {
  .footer {
    padding-bottom: 2.5rem;
  }
}

.footer__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__label {
  font-size: 0.92rem;
  margin: 0 0 0.6rem;
  color: var(--gold-2);
  font-weight: 700;
}

.footer p,
.footer a {
  color: var(--dim);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer__legal {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--dim);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(7, 9, 15, 0.96);
  border-top: 1px solid var(--line);
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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