:root {
  --chw-bg-deep: #0b0705;
  --chw-bg-mid: #1b1110;
  --chw-brass: #d0a86b;
  --chw-amber: #f4be7b;
  --chw-text: #fdf7ef;
  --chw-muted: #c2b1a4;
  --chw-border-soft: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.chw-page {
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(140% 200% at 10% 0%, #483027 0, transparent 55%),
    radial-gradient(140% 160% at 90% 100%, #2d1c16 0, transparent 60%),
    linear-gradient(150deg, var(--chw-bg-deep), var(--chw-bg-mid));
  color: var(--chw-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow-x: hidden;
}

.chw-page::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,215,160,0.30) 0, transparent 55%),
    radial-gradient(1px 1px at 80% 15%, rgba(255,194,130,0.22) 0, transparent 55%),
    radial-gradient(1px 1px at 55% 80%, rgba(255,228,189,0.18) 0, transparent 55%);
  z-index: 0;
}

.chw-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.6rem 2.5rem;
}

.chw-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.6rem;
  position: relative;
  z-index: 50;
}

.chw-logo {
  font-size: 1.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 650;
}

.chw-tagline {
  font-size: 0.92rem;
  color: rgba(194,177,164,0.92);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: -0.15rem;
}

.chw-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 51;
}

.chw-nav a {
  color: rgba(253,247,239,0.88);
  text-decoration: none;
  padding: 0.34rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.055), transparent 65%);
  transition: all 0.22s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  -webkit-tap-highlight-color: transparent;
}

.chw-nav a:hover {
  border-color: rgba(240, 189, 125, 0.9);
  background:
    radial-gradient(circle at 0% 0%, rgba(240,189,125,0.22), transparent 70%),
    rgba(35, 22, 20, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
  color: #fff4e3;
}

.chw-nav a:focus-visible {
  outline: 2px solid rgba(240,189,125,0.75);
  outline-offset: 3px;
}

.chw-hero {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.05rem;
}

.chw-hero-key-wrap {
  width: 100%;
  max-width: 800px;
  height: 265px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chw-hero-key-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(220px 160px at 52% 56%, rgba(240,189,125,0.32) 0, rgba(240,189,125,0.14) 35%, transparent 70%),
    radial-gradient(360px 220px at 50% 60%, rgba(120,78,40,0.18) 0, transparent 72%);
  opacity: 0.92;
}

.chw-hero-key {
  width: min(60vw, 580px);
  height: auto;
  display: block;
  max-width: 100%;
  transform: translateY(-14px) rotate(-7deg) scale(0.945);
  filter:
    drop-shadow(0 22px 46px rgba(0,0,0,0.84))
    drop-shadow(0 0 22px rgba(0,0,0,0.58))
    drop-shadow(0 0 14px rgba(255, 206, 150, 0.10));
  position: relative;
  z-index: 1;
}

.chw-hero-scramble {
  font-size: 1.22rem;
  font-weight: 650;
  font-style: normal;
  color: rgba(253,247,239,0.92);
  text-shadow: 0 12px 24px rgba(0,0,0,0.70);
  letter-spacing: 0.01em;
  max-width: 56ch;
  line-height: 1.55;
}

.chw-hero-scramble span {
  display: block;
}

.chw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.15rem;
}

.chw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(240,189,125,0.55);
  padding: 0.62rem 1.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.chw-hero-btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: 0 10px 22px rgba(0,0,0,0.52);
}

.chw-hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(120px 60px at 22% 28%, rgba(255,255,255,0.34), transparent 60%),
    radial-gradient(180px 80px at 70% 0%, rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.10));
  mix-blend-mode: screen;
}

.chw-hero-btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: rotate(18deg);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.chw-hero-btn:hover {
  transform: translateY(-2px);
}

.chw-hero-btn:hover::after {
  opacity: 1;
  transform: translateX(220%) rotate(18deg);
}

.chw-hero-btn-gold {
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(145deg, #f8d39c, #d7a05a);
  color: #2b180f;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.52),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.chw-hero-meta {
  margin-top: -0.2rem;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 0.7rem 1.05rem;
  max-width: 640px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}

.chw-hero-call {
  font-size: 0.84rem;
  color: rgba(194,177,164,0.92);
  letter-spacing: 0.02em;
}

.chw-hero-trustline {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,247,239,0.60);
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  line-height: 1.5;
}

.chw-hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
  max-width: 900px;
  margin-top: 0.35rem;
}

.chw-tile {
  position: relative;
  border-radius: 1.35rem;
  padding: 1.25rem 1.25rem 1.3rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.10), transparent 60%),
    rgba(33, 20, 17, 0.88);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 30px rgba(0,0,0,0.62);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

.chw-tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.chw-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(240,189,125,0.28);
  box-shadow: 0 22px 44px rgba(0,0,0,0.82);
  filter: brightness(1.03);
}

.chw-tile::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.02rem;
  height: 2px;
  width: 0%;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(240,189,125,0.0),
    rgba(240,189,125,0.90),
    rgba(240,189,125,0.0)
  );
  opacity: 0.95;
  transition: width 0.22s ease;
  pointer-events: none;
}

.chw-tile:hover::after {
  width: 100%;
}

.chw-tile-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(194,177,164,0.92);
  margin-bottom: 0.35rem;
}

.chw-tile-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.chw-tile-title {
  font-size: 1.06rem;
  font-weight: 650;
  margin: 0;
}

.chw-tile-body {
  font-size: 0.9rem;
  color: rgba(194,177,164,0.92);
  margin: 0;
  white-space: pre-line;
}

@keyframes chwHeroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chw-hero-tile {
  opacity: 0;
  transform: translateY(18px);
  animation: chwHeroIn 1.1s ease-out both;
}

.chw-hero-tiles > .chw-hero-tile:nth-child(1) {
  animation-delay: 1.10s;
}

.chw-hero-tiles > .chw-hero-tile:nth-child(2) {
  animation-delay: 1.42s;
}

.chw-hero-tiles > .chw-hero-tile:nth-child(3) {
  animation-delay: 1.74s;
}

@keyframes chwScrollHintFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.82;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.chw-scroll-hint {
  grid-column: 2;
  justify-self: center;
  margin-top: -0.15rem;
  padding: 0.30rem 0.78rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(253,247,239,0.86);
  background: rgba(25, 15, 14, 0.58);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 26px rgba(0,0,0,0.50);
  pointer-events: none;
  animation: chwScrollHintFloat 1.6s ease-in-out infinite;
}

.chw-section {
  margin-top: 4.2rem;
  border-radius: 1.9rem;
  padding: 2.2rem 2rem 2.6rem;
  border: 1px solid var(--chw-border-soft);
  position: relative;
  overflow: hidden;
}

.chw-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}

.chw-section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(194,177,164,0.92);
}

.chw-section-title {
  font-size: 1.4rem;
  font-weight: 650;
  margin: 0;
}

.chw-section-body {
  font-size: 0.95rem;
  color: rgba(194,177,164,0.92);
  max-width: 36rem;
}

.chw-section-play {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,232,198,0.28), transparent 60%),
    linear-gradient(145deg, #2d1b15, #160d0a);
}

.chw-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.9rem;
  align-items: center;
}

.chw-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.chw-btn-secondary {
  border-color: rgba(255,255,255,0.20);
  background: linear-gradient(145deg, #3b2618, #1f120c);
  color: #fff4e3;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.75),
    0 0 22px rgba(240,189,125,0.16);
}

.chw-btn-primary {
  background: linear-gradient(145deg, #f8d39c, #d7a05a);
  color: #2b180f;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.65),
    0 0 24px rgba(240,189,125,0.20);
}

.chw-feature-card {
  width: 270px;
  max-width: 100%;
  border-radius: 1.6rem;
  padding: 1.15rem 1.15rem 1.4rem;
  background: linear-gradient(145deg,#3b2618,#1f120c);
  border: 1px solid rgba(255,245,228,0.2);
  box-shadow: 0 20px 45px rgba(0,0,0,0.9);
}

.chw-feature-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(194,177,164,0.92);
  margin-bottom: 0.55rem;
}

.chw-feature-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.chw-feature-body {
  font-size: 0.85rem;
  color: rgba(194,177,164,0.92);
  margin-bottom: 0.75rem;
}

.chw-feature-meta {
  font-size: 0.78rem;
  color: rgba(194,177,164,0.92);
  display: flex;
  justify-content: space-between;
}

.chw-section-you {
  background:
    radial-gradient(circle at 0% 100%, rgba(255,230,196,0.9), transparent 60%),
    linear-gradient(145deg, #fbe7cf, #f6f0e9);
  color: #2a1b13;
  border-color: rgba(0, 0, 0, 0.06);
}

.chw-section-you * {
  color: inherit;
}

.chw-you-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
}

.chw-you-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.chw-btn-you-primary {
  border-color: #b48442;
  background: linear-gradient(145deg, #f8d39c, #d7a05a);
  color: #2b180f;
  box-shadow: 0 14px 34px rgba(122, 80, 36, 0.45);
  font-weight: 800;
}

.chw-btn-you-secondary {
  border-color: rgba(0, 0, 0, 0.2);
  color: #3b2418;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 24px rgba(99,64,29,0.3);
  font-weight: 800;
}

.chw-you-card {
  border-radius: 1.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f1e2d3);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 16px 34px rgba(90, 63, 38, 0.25);
  font-size: 0.88rem;
  color: #6c4c3b;
}

.chw-you-card-title {
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: #3a2215;
}

.chw-you-card-list {
  margin-top: 0.45rem;
  padding-left: 1rem;
  font-size: 0.86rem;
}

.chw-you-card-list li {
  margin-bottom: 0.22rem;
}

.chw-you-main .chw-section-body {
  margin-top: 2.05rem;
}

.chw-section-clues {
  background:
    radial-gradient(circle at 100% 0%, rgba(240,189,125,0.22), transparent 65%),
    linear-gradient(145deg, #1a1010, #100809);
}

.chw-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.chw-view-main {
  font-size: 0.95rem;
  color: rgba(194,177,164,0.92);
}

.chw-view-main p + p {
  margin-top: 0.7rem;
}

.chw-view-side {
  border-radius: 1.4rem;
  padding: 1.2rem 1.15rem 1.4rem;
  background:
    radial-gradient(circle at 0 0, rgba(255,238,204,0.22), transparent 60%),
    rgba(25, 15, 14, 0.88);
  border: 1px solid rgba(255,238,210,0.22);
  font-size: 0.86rem;
  color: rgba(194,177,164,0.92);
  box-shadow: 0 16px 38px rgba(0,0,0,0.78);
}

.chw-view-side ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.chw-view-side li {
  margin-bottom: 0.25rem;
}

.chw-reveal {
  will-change: transform, opacity;
  opacity: 1;
  transform: none;
}

@keyframes chwRevealIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .chw-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation-name: chwRevealIn;
    animation-duration: 1ms;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 10% cover 28%;
  }
}

.chw-footer {
  width: 100vw;
  margin: 3.5rem calc(50% - 50vw) 0;
  padding: 1.8rem 1.6rem 0.9rem;
  box-sizing: border-box;
  font-size: 0.75rem;
  color: rgba(244, 219, 192, 0.9);
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.chw-footer-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.45rem;
}

.chw-footer-edition {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 219, 192, 0.82);
}

.chw-footer-brandline {
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 219, 192, 0.95);
}

.chw-footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.chw-footer a,
.chw-footer button {
  color: inherit;
  text-decoration: none;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chw-footer a:hover,
.chw-footer button:hover {
  text-decoration: underline;
}

.chw-footer-dot {
  display: inline-block;
  padding: 0 0.6rem;
  opacity: 0.95;
  transform: translateY(-0.5px);
}

.chw-legal {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.chw-legal-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 170px;
  border-radius: 14px;
  padding: 0.5rem;
  background:
    radial-gradient(circle at 0 0, rgba(255,238,204,0.18), transparent 60%),
    rgba(25, 15, 14, 0.95);
  border: 1px solid rgba(255,238,210,0.22);
  box-shadow: 0 18px 46px rgba(0,0,0,0.85);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 10;
}

.chw-legal:hover .chw-legal-menu,
.chw-legal:focus-within .chw-legal-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chw-legal-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(253,247,239,0.92);
}

.chw-legal-menu a:hover,
.chw-legal-menu a:focus-visible {
  background: rgba(240,189,125,0.16);
  text-decoration: none;
  outline: none;
}

@media (max-width: 900px) {
  .chw-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .chw-nav {
    flex-wrap: wrap;
  }

  .chw-hero {
    padding-top: 1.2rem;
  }

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

  .chw-scroll-hint {
    grid-column: 1;
  }

  .chw-play-layout,
  .chw-you-layout,
  .chw-view-layout {
    grid-template-columns: 1fr;
  }

  .chw-section {
    padding: 1.8rem 1.5rem 2.1rem;
  }

  .chw-you-main .chw-section-body {
    margin-top: 1.65rem;
  }
}

@media (max-width: 600px) {
  .chw-shell {
    padding-inline: 1.1rem;
  }

  .chw-hero-key-wrap {
    height: 225px;
  }

  .chw-hero-key {
    width: min(80vw, 520px);
  }

  .chw-hero-actions {
    flex-direction: column;
  }

  .chw-btn {
    width: 100%;
    justify-content: center;
  }

  .chw-hero-trustline {
    max-width: 100%;
  }

  .chw-hero-meta {
    max-width: 100%;
  }
}

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

  .chw-hero-tile,
  .chw-scroll-hint,
  .chw-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .chw-tile,
  .chw-tile::after,
  .chw-hero-btn::after {
    transition: none !important;
  }

  .chw-hero-btn::after {
    opacity: 0 !important;
  }

  .chw-hero-btn:hover {
    transform: none !important;
  }
}
