:root {
  --bg: #02070d;
  --bg-soft: #07121e;
  --surface: #0b131d;
  --surface-strong: #111d2b;
  --text: #f7fbff;
  --muted: #aec0d1;
  --line: rgba(226, 242, 255, 0.16);
  --line-strong: rgba(226, 242, 255, 0.34);
  --accent: #16bfff;
  --accent-deep: #006fd3;
  --cyan: #66dcff;
  --coral: #ff2538;
  --red: #ff2538;
  --metal: #f2f6fb;
  --steel: #8395a8;
  --amber: #ffd166;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max: 1048px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #02070d;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.54), rgba(2, 7, 13, 0.36) 48%, rgba(2, 7, 13, 0.54)),
    linear-gradient(rgba(2, 7, 13, 0.3), rgba(2, 7, 13, 0.3)),
    url("assets/dgh-brand-background.png");
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.026));
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--text);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header::after {
  display: none;
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(3, 10, 17, 0.82), rgba(3, 10, 17, 0.6));
  border-bottom: 1px solid rgba(226, 242, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  backdrop-filter: blur(18px) saturate(128%);
}

.site-header.is-scrolled::after {
  opacity: 0;
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .top-nav {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

.brand,
.top-nav,
.header-action,
.hero-actions,
.filter-bar,
.filter-toggles,
.selection-summary,
.drawer-stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background: rgba(3, 10, 17, 0.18);
  border: 1px solid rgba(226, 242, 255, 0.08);
  border-radius: 999px;
  font-weight: 760;
  font-size: 18px;
  min-width: 0;
  backdrop-filter: blur(8px);
}

.brand > span:last-child {
  overflow: hidden;
  color: var(--metal);
  text-shadow: 0 0 18px rgba(22, 191, 255, 0.28);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo-frame {
  display: grid;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  background: #02070d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow:
    0 0 22px rgba(22, 191, 255, 0.22),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(22, 191, 255, 0.45))
    drop-shadow(0 0 18px rgba(255, 37, 56, 0.16));
}

.top-nav {
  gap: 28px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--muted);
  background: rgba(3, 10, 17, 0.14);
  border: 1px solid rgba(226, 242, 255, 0.06);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 680;
  backdrop-filter: blur(8px);
}

.top-nav a {
  transition: color 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
}

.header-action,
.primary-action,
.ghost-action,
.icon-button,
.chip,
.drawer-close,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0;
}

.header-action,
.primary-action {
  min-height: 48px;
  padding: 0 18px;
  color: #031018;
  background: linear-gradient(135deg, #f8fcff 0%, #52d7ff 36%, #0877d8 72%, #004986 100%);
  border-radius: 999px;
  font-weight: 760;
  box-shadow:
    0 14px 34px rgba(22, 191, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-action:hover,
.header-action:hover,
.primary-action:focus-visible,
.header-action:focus-visible {
  background: linear-gradient(135deg, #ffffff 0%, #69dcff 42%, #1090f0 100%);
  box-shadow: 0 18px 44px rgba(22, 191, 255, 0.38);
  transform: translateY(-2px);
}

.primary-action.compact {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 14px;
}

.primary-action svg,
.header-action svg,
.ghost-action svg,
.icon-button svg,
.card-button svg,
.drawer-close svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 560px;
  padding: 104px max(24px, calc((100vw - var(--max)) / 2)) 52px;
  overflow: visible;
  align-items: center;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-left: 28px;
  transform: translateY(-28px);
}

.hero-copy::before {
  position: absolute;
  top: 8px;
  bottom: 16px;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(102, 220, 255, 0), rgba(102, 220, 255, 0.95) 22%, rgba(255, 37, 56, 0.56) 100%);
  box-shadow: 0 0 22px rgba(22, 191, 255, 0.56);
}

.hero-copy::after {
  position: absolute;
  right: 24px;
  bottom: -34px;
  width: 190px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(22, 191, 255, 0), rgba(22, 191, 255, 0.72), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.hero .eyebrow::before {
  width: 44px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), rgba(102, 220, 255, 0));
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  padding-bottom: 0.18em;
  overflow: visible;
  font-size: 58px;
  line-height: 1.18;
  font-weight: 780;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #d9e5ee 48%, #8ea2b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(22, 191, 255, 0.1);
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 760;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 18px;
  color: #d9e4ee;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-meta span {
  min-height: 34px;
  padding: 8px 12px;
  color: rgba(242, 246, 251, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(226, 242, 255, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 720;
  backdrop-filter: blur(14px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-action {
  min-height: 48px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 720;
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.ghost-action:hover,
.ghost-action:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.hero-visual {
  display: none;
}

.neon-track {
  position: absolute;
  z-index: 1;
  width: 620px;
  height: 420px;
  border: 7px solid rgba(22, 191, 255, 0.8);
  border-radius: 96px 0 96px 0;
  border-left-color: transparent;
  border-bottom-color: transparent;
  filter: drop-shadow(0 0 18px rgba(22, 191, 255, 0.74));
  opacity: 0.66;
}

.track-a {
  top: 122px;
  right: 4px;
  transform: rotate(-13deg);
}

.track-b {
  top: 165px;
  right: 96px;
  border-width: 3px;
  opacity: 0.5;
  transform: rotate(-13deg) scale(0.86);
  border-color: rgba(255, 37, 56, 0.58);
  border-left-color: transparent;
  border-bottom-color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 37, 56, 0.46));
}

.track-c {
  top: 224px;
  right: 210px;
  border-color: rgba(242, 246, 251, 0.3);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-width: 2px;
  opacity: 0.8;
  transform: rotate(-13deg) scale(0.68);
  filter: drop-shadow(0 0 12px rgba(22, 191, 255, 0.34));
}

.floating-tile {
  position: absolute;
  display: grid;
  gap: 6px;
  width: 122px;
  padding: 14px;
  background: rgba(7, 18, 30, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.floating-tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.floating-tile strong {
  font-size: 30px;
  line-height: 1;
}

.tile-one {
  right: 440px;
  bottom: 94px;
}

.tile-two {
  right: 150px;
  top: 130px;
  border-color: rgba(255, 209, 102, 0.4);
}

.activity-section,
.demo-lab,
.selection-panel,
.contact-band {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.activity-section {
  padding: 16px 0 72px;
}

.demo-lab {
  overflow: visible;
  padding: 34px 0 86px;
}

.demo-lab::before {
  display: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.demo-head {
  align-items: start;
}

.demo-head p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

.demo-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.demo-card {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 29, 42, 0.97), rgba(5, 10, 16, 0.96)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(22, 191, 255, 0.12));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.demo-card-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
}

.demo-preview {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 191, 255, 0.16), rgba(255, 37, 56, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.saber-preview {
  display: grid;
  place-items: center;
}

.saber-preview::before,
.saber-preview::after {
  position: absolute;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: rotate(20deg) scaleX(1.8);
}

.saber-preview::after {
  width: 180px;
  height: 180px;
  border-color: rgba(22, 191, 255, 0.28);
}

.mini-saber {
  position: relative;
  z-index: 2;
  width: min(74%, 420px);
  height: 46px;
  transform: rotate(-10deg);
}

.mini-saber-blade {
  position: absolute;
  top: 13px;
  left: 104px;
  width: calc(100% - 104px);
  height: 16px;
  background: linear-gradient(90deg, #ffffff, var(--accent) 34%, rgba(22, 191, 255, 0));
  border-radius: 999px;
  box-shadow:
    0 0 20px rgba(22, 191, 255, 0.95),
    0 0 58px rgba(22, 191, 255, 0.55);
}

.mini-saber-handle {
  position: absolute;
  left: 0;
  top: 4px;
  width: 122px;
  height: 36px;
  background:
    linear-gradient(90deg, #e9f7ff, #647485 28%, #f7fbff 46%, #27313b 64%, #d8ecff),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.demo-score-bubble {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  color: #031018;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 800;
}

.reflex-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 36px;
}

.reflex-preview span {
  min-height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.reflex-preview .is-hot {
  background: var(--red);
  box-shadow:
    0 0 22px rgba(255, 37, 56, 0.8),
    inset 0 0 18px rgba(255, 255, 255, 0.22);
}

.wheel-preview {
  display: grid;
  place-items: center;
}

.mini-wheel-disc,
.prize-wheel-disc {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111 0 16%, transparent 17%),
    conic-gradient(
      from -90deg,
      #18c8ff 0deg 45deg,
      #ff2b45 45deg 90deg,
      #ffd166 90deg 135deg,
      #66e0ff 135deg 180deg,
      #f7fbff 180deg 225deg,
      #18c8ff 225deg 270deg,
      #ff2b45 270deg 315deg,
      #ffd166 315deg 360deg
    );
  border: 7px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 28px rgba(22, 191, 255, 0.45),
    0 22px 44px rgba(0, 0, 0, 0.32);
}

.mini-wheel {
  position: relative;
  width: min(62%, 210px);
  aspect-ratio: 1;
}

.mini-wheel-disc {
  width: 100%;
  animation: wheel-idle 8s linear infinite;
}

.prize-wheel {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
}

.mini-wheel-disc::before,
.prize-wheel-disc::before {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
}

.mini-wheel::after,
.prize-wheel::after {
  position: absolute;
  top: -23px;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border-top: 30px solid #fff;
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transform: translateX(-50%);
}

.mini-wheel-disc span,
.prize-wheel-center {
  position: absolute;
  inset: 38%;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #031018;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(22, 191, 255, 0.18);
  font-weight: 900;
}

@keyframes wheel-idle {
  to {
    transform: rotate(360deg);
  }
}

.demo-card-body {
  display: flex;
  justify-content: center;
  padding: 28px;
  flex-direction: column;
}

.demo-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-card h3 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.1;
}

.demo-card p {
  margin: 0 0 24px;
  color: #d9e4ee;
  line-height: 1.7;
  font-weight: 640;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-action.compact-ghost {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 14px;
}

.demo-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 60;
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  color: var(--text);
  background: rgba(6, 12, 19, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.demo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 180ms ease;
}

.demo-backdrop.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.58);
}

.demo-modal-content {
  padding: 34px;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.demo-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 191, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.power-saber {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 84px;
  height: 340px;
  transform: translateX(-50%);
}

.power-saber-blade {
  position: absolute;
  left: 31px;
  bottom: 96px;
  width: 22px;
  height: 230px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--accent));
  border-radius: 999px 999px 10px 10px;
  box-shadow:
    0 0 calc(18px + var(--power, 0) * 34px) rgba(22, 191, 255, 0.9),
    0 0 calc(38px + var(--power, 0) * 76px) rgba(22, 191, 255, 0.46);
  transform: scaleY(calc(0.08 + var(--power, 0) * 0.92));
  transform-origin: bottom;
  transition:
    transform 90ms linear,
    box-shadow 90ms linear;
}

.power-saber-handle {
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 48px;
  height: 112px;
  background:
    linear-gradient(90deg, #f4fbff, #768393 28%, #17212b 30%, #e8f4ff 56%, #273340 70%, #b8d9f2),
    linear-gradient(180deg, #f9fdff, #202a34);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.power-saber-handle::before,
.power-saber-handle::after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 6px;
  content: "";
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
}

.power-saber-handle::before {
  top: 25px;
}

.power-saber-handle::after {
  bottom: 25px;
}

.demo-readout {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-readout strong {
  font-size: 54px;
  line-height: 1;
}

.demo-readout span {
  color: var(--muted);
  font-weight: 720;
}

.meter-track {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.wheel-readout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 12px;
  align-items: stretch;
}

.wheel-readout div {
  min-width: 0;
}

.wheel-readout strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 42px;
  line-height: 0.98;
}

.wheel-readout [data-wheel-prize] {
  font-size: 34px;
}

.meter-fill {
  width: calc(var(--power, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--red));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(22, 191, 255, 0.6);
  transition: width 90ms linear;
}

.demo-controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.demo-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

.hold-button {
  user-select: none;
  touch-action: manipulation;
}

.reflex-game {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 18px;
}

.reflex-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(100%, 340px);
  margin: 0 auto;
}

.reflex-cell {
  aspect-ratio: 1;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    background 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.reflex-cell.is-active {
  background: var(--red);
  box-shadow:
    0 0 22px rgba(255, 37, 56, 0.72),
    inset 0 0 18px rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.reflex-cell:disabled {
  cursor: default;
  opacity: 0.82;
}

.wheel-stage {
  display: grid;
  place-items: center;
  padding: 28px;
}

.prize-wheel {
  width: min(100%, 360px);
}

.prize-wheel-disc {
  width: 100%;
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform 3.1s cubic-bezier(0.12, 0.78, 0.18, 1);
}

.prize-wheel-center {
  font-size: 22px;
}

.prize-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.prize-list span {
  min-height: 36px;
  padding: 9px 11px;
  color: #d9e4ee;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
}

.prize-result {
  margin: 18px 0 0;
  padding: 16px;
  color: var(--text);
  background: rgba(22, 191, 255, 0.1);
  border: 1px solid rgba(22, 191, 255, 0.32);
  border-radius: 8px;
  font-weight: 760;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.filter-bar {
  position: sticky;
  top: 88px;
  z-index: 12;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 34px;
  background: rgba(7, 18, 30, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 304px);
  min-height: 46px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-field svg {
  width: 18px;
  height: 18px;
  margin-left: 15px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: #8ea0b1;
}

.chip-row {
  display: flex;
  flex: 1 1 300px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.chip.is-active {
  color: #031018;
  background: var(--accent);
}

.chip:hover,
.chip:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-toggles {
  gap: 8px;
  margin-left: auto;
}

.icon-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
}

.icon-button[aria-pressed="true"] {
  color: #031018;
  background: var(--amber);
  border-color: transparent;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 16px;
}

.activity-card {
  position: relative;
  min-width: 0;
  color: var(--text);
  border-radius: 8px;
  outline: 0;
  transform: translateY(0);
  transition:
    transform 190ms ease,
    filter 190ms ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  transform: translateY(-7px);
}

.activity-card.is-selected .card-media {
  outline: 2px solid var(--accent);
  box-shadow:
    0 0 0 5px rgba(22, 191, 255, 0.14),
    0 24px 46px rgba(0, 0, 0, 0.32);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.48)),
    linear-gradient(90deg, rgba(22, 191, 255, 0.22), rgba(255, 37, 56, 0.12) 46%, transparent 68%);
  opacity: 0;
  transition: opacity 190ms ease;
}

.activity-card:hover .card-media::after,
.activity-card:focus-visible .card-media::after {
  opacity: 1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 320ms ease;
}

.activity-card:hover img,
.activity-card:focus-visible img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #031018;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.card-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: var(--text);
  background: rgba(3, 10, 17, 0.76);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.card-button:hover,
.card-button:focus-visible {
  color: #031018;
  background: var(--accent);
  transform: scale(1.08);
}

.activity-card.is-selected .card-button {
  color: #031018;
  background: var(--accent);
}

.card-body {
  padding: 14px 0 0;
}

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 780;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 760;
}

.rating svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-meta svg {
  width: 15px;
  height: 15px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 54px 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-weight: 700;
}

.selection-panel {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 28px;
  padding: 38px;
  margin-bottom: 34px;
  background:
    linear-gradient(135deg, rgba(18, 29, 42, 0.95), rgba(4, 8, 13, 0.95)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 44%, rgba(22, 191, 255, 0.12));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.selection-content {
  min-width: 0;
}

.selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 20px;
}

.empty-selection {
  margin: 0;
  color: var(--muted);
  font-weight: 680;
}

.selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 38px;
  padding: 0 9px 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 720;
}

.selection-pill button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.selection-pill button:hover,
.selection-pill button:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.selection-pill svg {
  width: 15px;
  height: 15px;
}

.selection-summary {
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 720;
}

.selection-summary strong {
  color: var(--text);
  font-size: 22px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px 0 92px;
}

.contact-band p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 620;
}

.detail-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  width: min(428px, calc(100vw - 36px));
  overflow: hidden;
  background: rgba(7, 15, 24, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 28px));
  transition: transform 240ms ease;
  backdrop-filter: blur(18px);
  flex-direction: column;
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 240ms ease;
}

.drawer-backdrop.is-open {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.34);
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.drawer-media {
  height: 238px;
  background-position: center;
  background-size: cover;
}

.drawer-body {
  padding: 28px;
}

.drawer-category {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.drawer-body h2 {
  margin-bottom: 16px;
}

.drawer-body p:not(.drawer-category) {
  color: #d9e4ee;
  line-height: 1.7;
  font-weight: 600;
}

.drawer-stats {
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}

.drawer-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.drawer-stats svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.drawer-select {
  width: 100%;
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .hero {
    min-height: 540px;
    padding-top: 96px;
  }

  h1 {
    font-size: 52px;
    line-height: 1.16;
  }

  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-showcase,
  .demo-card-featured,
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-card-featured {
    grid-column: auto;
  }

  .demo-stage {
    min-height: 360px;
  }

  .selection-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 68px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-logo-frame {
    width: 38px;
    height: 42px;
  }

  .header-action {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .header-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero {
    min-height: auto;
    padding: 92px 18px 46px;
  }

  .hero-copy {
    max-width: 100%;
    padding-left: 18px;
    transform: none;
  }

  .hero-copy::before {
    top: 2px;
    bottom: 12px;
  }

  .hero-copy::after {
    display: none;
  }

  h1 {
    font-size: 38px;
    line-height: 1.16;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-meta {
    margin-bottom: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .ghost-action {
    width: 100%;
  }

  .activity-section,
  .demo-lab,
  .selection-panel,
  .contact-band {
    width: calc(100% - 32px);
  }

  .section-head,
  .demo-head,
  .contact-band,
  .selection-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-lab {
    padding-bottom: 58px;
  }

  .demo-card,
  .demo-card-featured {
    min-height: 0;
  }

  .demo-card-body,
  .demo-modal-content {
    padding: 22px;
  }

  .demo-card h3 {
    font-size: 25px;
  }

  .demo-actions,
  .demo-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-actions .primary-action,
  .demo-actions .ghost-action,
  .demo-controls .primary-action,
  .demo-controls .ghost-action {
    width: 100%;
  }

  .demo-shell {
    gap: 20px;
  }

  .demo-stage {
    min-height: 320px;
  }

  .reflex-game {
    min-height: 0;
    padding: 14px;
  }

  .reflex-game-grid {
    width: min(100%, 286px);
    gap: 8px;
  }

  .wheel-stage {
    padding: 18px;
  }

  .prize-wheel {
    width: min(100%, 270px);
  }

  .prize-list {
    grid-template-columns: 1fr;
  }

  .demo-readout strong {
    font-size: 40px;
  }

  .wheel-readout {
    grid-template-columns: 1fr;
  }

  .wheel-readout strong,
  .wheel-readout [data-wheel-prize] {
    font-size: 36px;
  }

  .power-saber {
    height: 288px;
    bottom: 30px;
  }

  .power-saber-blade {
    height: 190px;
  }

  .filter-bar {
    top: 76px;
    padding: 10px;
  }

  .search-field {
    width: 100%;
  }

  .filter-toggles {
    width: 100%;
    margin-left: 0;
  }

  .filter-toggles .icon-button {
    flex: 1 1 0;
  }

  .activity-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .selection-panel {
    padding: 24px;
  }

  .selection-summary .primary-action {
    width: 100%;
  }

  .contact-band .primary-action {
    width: 100%;
  }

  .detail-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 86vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    transform: translateY(calc(100% + 18px));
  }

  .detail-drawer.is-open {
    transform: translateY(0);
  }

  .drawer-media {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
