:root {
  --ink: #140c10;
  --paper: #1b1216;
  --wine: #8a2438;
  --wine-deep: #5c1524;
  --brass: #d4b483;
  --brass-dim: #a8885a;
  --ivory: #f6efe3;
  --fog: #c9bdb0;
  --mute: #8d8278;
  --line: rgba(212, 180, 131, 0.22);
  --glass: rgba(27, 18, 22, 0.72);
  --ok: #d7e3c4;
  --serif: "Source Serif 4", "Georgia", serif;
  --display: "Fraunces", "Georgia", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scroll-padding-bottom: 88px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body {
  min-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ivory);
}

.cr-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cr-wash {
  pointer-events: none;
  position: fixed;
  inset: auto -20vw 10vh auto;
  width: 52vw;
  height: 52vw;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 36, 56, 0.38), transparent 68%);
  animation: cr-drift 16s ease-in-out infinite alternate;
}

.cr-wash.alt {
  inset: -12vh auto auto -12vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(212, 180, 131, 0.12), transparent 70%);
  animation-duration: 22s;
}

@keyframes cr-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

.cr-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.cr-skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.cr-skip:focus {
  left: 12px;
  z-index: 40;
  background: var(--brass);
  color: var(--ink);
  padding: 8px 12px;
}

.cr-ribbon {
  position: relative;
  z-index: 8;
  display: flex;
  overflow: hidden;
  gap: 0;
  background: var(--wine);
  color: var(--ivory);
  border-bottom: 1px solid rgba(246, 239, 227, 0.12);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cr-ribbon__track {
  display: flex;
  width: max-content;
  animation: cr-marquee 32s linear infinite;
}

.cr-ribbon span {
  padding: 10px 28px;
  white-space: nowrap;
}

@keyframes cr-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cr-top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(20, 12, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

.cr-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.cr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.cr-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.cr-brand strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cr-brand small {
  display: block;
  color: var(--fog);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cr-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cr-nav a {
  color: var(--fog);
  text-decoration: none;
  font-size: 0.92rem;
}

.cr-nav a:hover,
.cr-nav a.is-on {
  color: var(--ivory);
}

.cr-lang {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.cr-lang a {
  color: var(--mute);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 999px;
}

.cr-lang a[aria-current="page"] {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}

.cr-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  border-radius: 12px;
}

.cr-hero {
  padding: 28px 0 18px;
}

.cr-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
}

.cr-kicker {
  font-family: var(--mono);
  color: var(--brass);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0 0 14px;
}

.cr-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cr-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.cr-lead {
  margin: 22px 0 0;
  max-width: 38rem;
  color: var(--fog);
  font-size: 1.08rem;
}

.cr-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cr-quick-addr {
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 0.82rem;
}

.cr-quick-addr code {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
  overflow-wrap: anywhere;
}

.cr-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cr-btn--in {
  background: var(--wine);
  color: var(--ivory);
  box-shadow: 0 0 0 0 rgba(138, 36, 56, 0.55);
  animation: cr-pulse 2.4s ease-in-out infinite;
}

.cr-btn--up {
  background: var(--brass);
  color: var(--ink);
}

.cr-btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

@keyframes cr-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 36, 56, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(138, 36, 56, 0); }
}

.cr-panel {
  background:
    linear-gradient(180deg, rgba(246, 239, 227, 0.05), transparent 30%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.cr-panel h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.cr-addr {
  margin: 18px 0 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #12090d;
  border: 1px dashed var(--brass-dim);
}

.cr-addr code {
  display: block;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--brass);
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

.cr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  color: var(--mute);
  font-size: 0.86rem;
}

.cr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.cr-crumbs {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 0.86rem;
}

.cr-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cr-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--brass-dim);
}

.cr-section {
  padding: 56px 0;
}

.cr-section h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cr-section .cr-deck {
  color: var(--fog);
  max-width: 46rem;
  margin-bottom: 28px;
}

.cr-prose {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: #efe6d8;
}

.cr-prose p {
  margin: 0 0 1.05em;
}

.cr-prose h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 1.6em 0 0.6em;
}

.cr-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.cr-steps {
  counter-reset: crstep;
  display: grid;
  gap: 14px;
}

.cr-steps li {
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 16px 70px;
  position: relative;
}

.cr-steps {
  margin: 0;
  padding: 0;
}

.cr-steps li::before {
  counter-increment: crstep;
  content: counter(crstep);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wine);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
}

.cr-cards,
.cr-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 180px;
}

.cr-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.cr-card p {
  margin: 0;
  color: var(--fog);
}

.cr-slider {
  position: relative;
}

.cr-slider__row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}

.cr-slide {
  flex: 0 0 min(78%, 320px);
  scroll-snap-align: start;
  background:
    linear-gradient(160deg, rgba(138, 36, 56, 0.35), transparent 50%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  min-height: 230px;
}

.cr-slide span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.cr-slide h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 10px 0;
}

.cr-slider__nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.cr-slider__nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.cr-score {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}

.cr-mark {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid var(--wine);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.4rem;
  margin: 0 auto;
}

.cr-bars {
  display: grid;
  gap: 10px;
}

.cr-bar {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.cr-bar i {
  height: 8px;
  background: #2a1c21;
  border-radius: 99px;
  display: block;
  overflow: hidden;
}

.cr-bar i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--brass));
}

.cr-event {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
}

.cr-event__date {
  background: var(--wine);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 12px;
  font-family: var(--display);
}

.cr-event__date strong {
  font-size: 2.4rem;
  display: block;
  line-height: 1;
}

.cr-event__body {
  padding: 22px 22px 22px 0;
}

.cr-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cr-faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.08rem;
  list-style: none;
}

.cr-faq summary::-webkit-details-marker {
  display: none;
}

.cr-faq p {
  color: var(--fog);
  margin: 10px 0 0;
}

.cr-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--brass);
  background: rgba(212, 180, 131, 0.08);
  color: var(--fog);
}

.cr-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 110px;
  color: var(--mute);
  font-size: 0.92rem;
}

.cr-foot strong {
  color: var(--ivory);
}

.cr-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.cr-dock .cr-btn {
  flex: 1;
  min-height: 50px;
}

.cr-copy {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  font-family: var(--sans);
  cursor: pointer;
}

@media (max-width: 900px) {
  .cr-hero__grid,
  .cr-split,
  .cr-cards,
  .cr-games,
  .cr-score,
  .cr-event {
    grid-template-columns: 1fr;
  }

  .cr-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #12090d;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cr-nav.is-open {
    display: flex;
  }

  .cr-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cr-event__body {
    padding: 8px 18px 22px;
  }

  .cr-foot {
    padding-bottom: 120px;
  }

  .cr-hero {
    padding-top: 16px;
  }

  .cr-lead {
    font-size: 0.98rem;
    margin-top: 12px;
  }

  .cr-panel {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
