:root {
  --hh-black: #03070a;
  --hh-ink: #07111a;
  --hh-panel: rgba(7, 17, 25, .94);
  --hh-panel-soft: rgba(10, 27, 38, .88);
  --hh-gold: #d5a13e;
  --hh-gold-light: #ffe19a;
  --hh-gold-dark: #74470d;
  --hh-green: #70ee8d;
  --hh-blue: #9fd8ff;
  --hh-red: #ff4d35;
  --hh-text: #fff3dc;
  --hh-muted: #d7c7a7;
  --hh-line: rgba(213, 161, 62, .52);
  --hh-shadow: 0 28px 100px rgba(0,0,0,.78);
}

* {
  box-sizing: border-box;
}

.hh-overlay {
  color: var(--hh-text);
  font-family: Georgia, "Times New Roman", serif;
}

.hh-overlay button {
  font: inherit;
}

.hh-demo-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
}

.hh-demo-card {
  width: min(900px, 100%);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  border: 1px solid var(--hh-line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.08)),
    url("./assets/heaven-horse-reference.webp") center/cover;
  box-shadow: var(--hh-shadow);
}

.hh-demo-kicker {
  color: var(--hh-gold-light);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 700;
}

.hh-demo-card h1 {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--hh-gold-light);
  font-size: clamp(42px, 8vw, 88px);
  line-height: .9;
  text-shadow: 0 4px 0 #533008, 0 0 28px rgba(213,161,62,.44);
}

.hh-demo-card p {
  max-width: 620px;
  font-size: 20px;
  color: #fff2d8;
}

.hh-gold-button {
  align-self: flex-start;
  border: 1px solid #ffe19a;
  color: #fff4d6;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 12px 26px;
  cursor: pointer;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3ce75, #9a5b12 55%, #5a2d06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px rgba(0,0,0,.42);
}

.hh-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hh-overlay.is-open {
  display: flex;
}

.hh-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,225,154,.12), transparent 28%),
    rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

.hh-modal {
  position: relative;
  width: min(1640px, 99vw);
  max-height: 95vh;
  overflow: auto;
  border: 2px solid var(--hh-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,225,154,.12), transparent 28%),
    linear-gradient(180deg, rgba(4,9,13,.98), rgba(6,15,22,.98));
  box-shadow: var(--hh-shadow), inset 0 0 70px rgba(213,161,62,.06);
  padding: 14px;
}

.hh-modal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,225,154,.22);
  border-radius: 10px;
  pointer-events: none;
}

.hh-close {
  position: sticky;
  top: 6px;
  margin-left: auto;
  float: right;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hh-gold);
  border-radius: 50%;
  color: var(--hh-gold-light);
  cursor: pointer;
  background: rgba(3,7,10,.94);
  font-size: 34px;
  line-height: .9;
  box-shadow: 0 0 20px rgba(213,161,62,.26);
}

.hh-topbar {
  display: grid;
  grid-template-columns: 220px 1fr 430px;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.hh-brand-main {
  color: var(--hh-gold-light);
  font-size: 58px;
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.04em;
  text-shadow: 0 3px 0 #533008, 0 0 24px rgba(255,225,154,.42);
}

.hh-brand-sub {
  color: var(--hh-gold-light);
  font-weight: 800;
  letter-spacing: .35em;
  margin-left: 4px;
}

.hh-top-title {
  text-align: center;
}

.hh-top-title h2 {
  margin: 0;
  color: var(--hh-gold-light);
  font-size: clamp(32px, 4.4vw, 58px);
  letter-spacing: .05em;
  text-shadow: 0 4px 0 #533008, 0 0 24px rgba(255,225,154,.38);
}

.hh-top-title p {
  margin: 2px 0 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff3d8;
  font-size: 19px;
}

.hh-top-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hh-line);
  border-radius: 8px;
  background: rgba(0,0,0,.25);
}

.hh-top-benefits article {
  padding: 10px;
  border-right: 1px solid rgba(213,161,62,.25);
}

.hh-top-benefits article:last-child {
  border-right: 0;
}

.hh-top-benefits strong {
  display: block;
  color: var(--hh-gold-light);
  text-transform: uppercase;
  font-size: 12px;
}

.hh-top-benefits span {
  color: var(--hh-muted);
  font-size: 12px;
}

.hh-grid {
  display: grid;
  grid-template-columns: 390px minmax(620px, 1fr) 470px;
  gap: 14px;
}

.hh-panel,
.hh-hero,
.hh-cycle,
.hh-blessing {
  border: 1px solid var(--hh-line);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(8,19,29,.94), rgba(4,9,13,.96));
  box-shadow: inset 0 0 26px rgba(213,161,62,.04);
}

.hh-panel {
  padding: 13px;
  margin-bottom: 12px;
}

.hh-panel h3,
.hh-cycle h3 {
  margin: 0 0 8px;
  color: var(--hh-gold-light);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 22px;
}

.hh-panel-subtitle {
  margin: 0 0 10px;
  text-align: center;
  text-transform: uppercase;
  color: var(--hh-muted);
  letter-spacing: .08em;
  font-size: 13px;
}

.hh-instructions article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(213,161,62,.18);
}

.hh-instructions h4 {
  margin: 0 0 6px;
  color: var(--hh-green);
  text-transform: uppercase;
  font-size: 17px;
}

.hh-instructions article:nth-of-type(2) h4 {
  color: var(--hh-blue);
}

.hh-instructions p {
  margin: 0;
  color: #f3e7ce;
  line-height: 1.35;
}

.hh-icon-token {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,225,154,.6);
  color: #2d1800;
  font-weight: 900;
  background: radial-gradient(circle, #ffe19a, #a06112 65%, #3a1b00);
  box-shadow: 0 0 20px rgba(255,225,154,.22);
}

.hh-icon-token.cart {
  color: var(--hh-gold-light);
  background: rgba(0,0,0,.36);
}

.hh-warning {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,77,53,.82);
  border-radius: 7px;
  text-align: center;
  background: rgba(22,0,0,.38);
}

.hh-warning strong {
  display: block;
  color: var(--hh-red);
  text-transform: uppercase;
  font-size: 18px;
}

.hh-warning span {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
}

.hh-age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hh-age-card {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 9px;
  border: 1px solid rgba(213,161,62,.25);
  background: rgba(0,0,0,.22);
}

.hh-age-card span {
  color: #f5e8ce;
}

.hh-age-card b {
  color: var(--hh-gold-light);
}

.hh-small-brand {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 130px;
}

.hh-small-logo {
  color: var(--hh-gold-light);
  font-size: 54px;
  font-weight: 900;
  text-shadow: 0 3px 0 #533008, 0 0 24px rgba(255,225,154,.38);
}

.hh-small-brand p {
  margin: 0;
  text-transform: uppercase;
  line-height: 1.5;
  color: #fff1d1;
  font-weight: bold;
}

.hh-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hh-hero-slide {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background-size: cover;
  background-position: center;
  transition: background-image .32s ease;
}

.hh-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,225,154,.08), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.08) 50%, rgba(0,0,0,.42));
  pointer-events: none;
}

.hh-hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -260px;
}

.hh-hero-copy small {
  color: var(--hh-gold-light);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: bold;
}

.hh-hero-copy h3 {
  margin: 6px 0 0;
  color: var(--hh-gold-light);
  text-transform: uppercase;
  font-size: clamp(42px, 6vw, 76px);
  text-shadow: 0 4px 0 #533008, 0 0 30px rgba(255,225,154,.42);
}

.hh-hero-copy p {
  margin: 4px 0 0;
  color: #fff3d8;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: .08em;
}

.hh-slide-btn {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--hh-gold);
  border-radius: 50%;
  cursor: pointer;
  color: var(--hh-gold-light);
  background: rgba(0,0,0,.48);
  font-size: 38px;
  line-height: .85;
}

.hh-slide-btn.left { left: 16px; }
.hh-slide-btn.right { right: 16px; }

.hh-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hh-dot {
  width: 11px;
  height: 11px;
  border: 1px solid #fff6d6;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,.28);
}

.hh-dot.active {
  border-color: var(--hh-gold-light);
  background: var(--hh-gold-light);
}

.hh-blessing {
  padding: 10px;
  text-align: center;
  color: var(--hh-gold-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 12px;
}

.hh-trait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px 12px;
}

.hh-trait {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(213,161,62,.12);
  font-size: 13px;
}

.hh-trait span {
  color: #f4e6c9;
}

.hh-trait b {
  color: var(--hh-gold-light);
}

.hh-cycle {
  padding: 13px;
}

.hh-cycle-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 9px;
  align-items: center;
}

.hh-cycle-row article {
  text-align: center;
  min-height: 132px;
  padding: 10px;
  border: 1px solid rgba(213,161,62,.22);
  border-radius: 50% 50% 10px 10px / 22% 22% 10px 10px;
  background: rgba(0,0,0,.22);
}

.hh-cycle-row article div {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,225,154,.5);
  font-size: 30px;
  background: radial-gradient(circle, rgba(255,225,154,.22), rgba(0,0,0,.32));
}

.hh-cycle-row strong {
  display: block;
  color: var(--hh-gold-light);
  text-transform: uppercase;
  font-size: 12px;
}

.hh-cycle-row span {
  color: var(--hh-muted);
  font-size: 11px;
}

.hh-cycle-row em {
  color: var(--hh-gold-light);
  font-size: 30px;
  font-style: normal;
}

.hh-shop h3 {
  font-size: 20px;
}

.hh-shop-head {
  display: grid;
  grid-template-columns: 1fr 170px;
  padding: 10px;
  border: 1px solid rgba(213,161,62,.3);
  color: var(--hh-gold-light);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
}

.hh-shop-list {
  border-left: 1px solid rgba(213,161,62,.25);
  border-right: 1px solid rgba(213,161,62,.25);
}

.hh-shop-item {
  display: grid;
  grid-template-columns: 48px 1fr 150px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(213,161,62,.18);
  background: rgba(0,0,0,.18);
}

.hh-shop-item:nth-child(even) {
  background: rgba(255,255,255,.02);
}

.hh-shop-item .item-icon {
  font-size: 28px;
}

.hh-shop-item .item-name {
  color: #fff2d8;
  font-size: 14px;
}

.hh-shop-item .item-cost {
  color: var(--hh-gold-light);
  font-weight: 900;
  text-align: right;
  font-size: 19px;
}

.hh-shop-lock {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(213,161,62,.28);
  border-radius: 7px;
  text-align: center;
  color: var(--hh-gold-light);
  text-transform: uppercase;
  font-weight: bold;
  background: rgba(0,0,0,.26);
}

.hh-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(213,161,62,.25);
  color: #f5e7c8;
  text-transform: uppercase;
  font-size: 13px;
}

body.hh-modal-lock {
  overflow: hidden;
}

@media (max-width: 1480px) {
  .hh-grid {
    grid-template-columns: 330px minmax(520px, 1fr);
  }

  .hh-right {
    grid-column: 1 / -1;
  }

  .hh-shop-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hh-shop-head {
    display: none;
  }
}

@media (max-width: 1040px) {
  .hh-topbar,
  .hh-grid {
    grid-template-columns: 1fr;
  }

  .hh-top-benefits {
    grid-template-columns: 1fr;
  }

  .hh-top-benefits article {
    border-right: 0;
    border-bottom: 1px solid rgba(213,161,62,.25);
  }

  .hh-trait-grid,
  .hh-age-grid,
  .hh-shop-list {
    grid-template-columns: 1fr 1fr;
  }

  .hh-cycle-row {
    grid-template-columns: 1fr;
  }

  .hh-cycle-row em {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .hh-overlay {
    padding: 0;
  }

  .hh-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .hh-demo-card {
    padding: 32px;
  }

  .hh-hero,
  .hh-hero-slide {
    min-height: 380px;
  }

  .hh-hero-copy {
    margin-top: -190px;
  }

  .hh-hero-copy h3 {
    font-size: 36px;
  }

  .hh-trait-grid,
  .hh-age-grid,
  .hh-shop-list {
    grid-template-columns: 1fr;
  }

  .hh-shop-item {
    grid-template-columns: 42px 1fr auto;
  }

  .hh-footer {
    flex-direction: column;
    text-align: center;
  }
}
