.demo-games-page {
  --demo-purple: #5630a8;
  --demo-purple-dark: #2a1748;
  --demo-coral: #ff725c;
  --demo-lime: #d9fb65;
  background: #f8f6fc;
  color: #27143f;
}

.demo-games-page .site-header { background: rgba(255,255,255,.96); }
.demo-games-page .wordmark-mark { color: #fff; background: var(--demo-purple); }
.demo-games-page .nav-link { color: #344861; }
.demo-games-page .nav-link:hover, .demo-games-page .nav-link:focus-visible { color: var(--demo-purple); background: #f0eaff; }
.demo-games-page .nav-link-active { color: #fff; background: var(--demo-purple); }
.demo-games-page .nav-link-active:hover, .demo-games-page .nav-link-active:focus-visible { color: #fff; background: #45258e; }

.demo-games-hero {
  padding: 27px 0 29px;
  background: linear-gradient(120deg, #fff 0%, #f7f4fc 100%);
  border-bottom: 1px solid rgba(61,28,94,.12);
}
.demo-games-hero-inner { display: block; }
.demo-games-hero-copy .eyebrow { margin: 0 0 12px; color: #6a5787; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.demo-games-hero-copy .eyebrow-line { display: inline-block; width: 22px; height: 2px; margin: 0 9px 3px 0; background: var(--demo-coral); }
.demo-games-hero h1 { max-width: 800px; margin: 0 0 9px; color: #27143f; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -.05em; }
.demo-games-hero-lede { max-width: 760px; margin: 0; color: #5f5275; font-size: 15px; line-height: 1.5; }
.demo-games-hero-points { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.demo-games-hero-points li { padding: 5px 9px; color: #3d2b59; background: #fff; border: 1px solid rgba(61,28,94,.1); border-radius: 999px; font-size: 10px; font-weight: 800; }

.demo-games-main-section { padding: 27px 0 44px; }
.demo-section-heading { margin-bottom: 15px; }
.demo-section-heading .eyebrow { margin: 0 0 6px; color: #765e99; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.demo-section-heading h2 { margin: 0; color: #27143f; font-size: clamp(24px, 3vw, 31px); line-height: 1.1; letter-spacing: -.04em; }
.demo-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.demo-game-card { display: flex; min-width: 0; flex-direction: column; background: #fff; border: 1px solid rgba(61,28,94,.12); border-radius: 13px; box-shadow: 0 3px 10px rgba(42,23,72,.035); }
.demo-game-card:hover { border-color: rgba(86,48,168,.32); }
.demo-game-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 13px 15px; }
.demo-game-provider { margin: 0 0 4px; color: #765e99; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.demo-game-card h3 { margin: 0 0 6px; color: #27143f; font-size: 19px; line-height: 1.15; letter-spacing: -.03em; }
.demo-game-card h3 a { text-decoration: none; }
.demo-game-card h3 a:hover, .demo-game-card h3 a:focus-visible { color: var(--demo-purple); text-decoration: underline; text-underline-offset: 4px; }
.demo-game-description { margin: 0 0 9px; color: #5f5275; font-size: 12px; line-height: 1.45; }
.demo-game-cta, .demo-play-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; color: #27143f; background: var(--demo-lime); border: 0; border-radius: 11px; font-size: 13px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.demo-game-cta { min-height: auto; margin-top: auto; padding: 2px 0; color: var(--demo-purple); background: transparent; border-radius: 0; font-size: 12px; }
.demo-game-cta:hover, .demo-play-button:hover { background: #c9f04c; transform: translateY(-1px); }
.demo-game-cta:hover { color: #3d217c; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.demo-game-cta span, .demo-related-link span { color: var(--demo-purple); font-size: 17px; }
.demo-games-note { margin-top: 15px; padding: 10px 0 0; color: #625773; border-top: 1px solid rgba(61,28,94,.1); }
.demo-games-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.demo-games-related { padding: 0 0 48px; }
.demo-related-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; background: #fff; border: 1px solid rgba(61,28,94,.12); border-radius: 18px; }
.demo-related-panel h2 { margin: 0 0 5px; color: #27143f; font-size: 22px; line-height: 1.2; }
.demo-related-panel p { margin: 0; color: #665a79; font-size: 13px; }
.demo-related-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.demo-related-link { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 13px; color: #5630a8; background: #f3effb; border-radius: 9px; font-size: 12px; font-weight: 800; text-decoration: none; }
.demo-related-link:hover, .demo-related-link:focus-visible { background: #e8defa; text-decoration: underline; text-underline-offset: 3px; }

.demo-game-main { padding: 12px 0 48px; }
.demo-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: #746887; font-size: 11px; }
.demo-breadcrumbs a { color: #5630a8; font-weight: 750; text-decoration: none; }
.demo-breadcrumbs a:hover, .demo-breadcrumbs a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.demo-breadcrumbs [aria-current="page"] { color: #5f5275; }
.demo-game-intro { margin-bottom: 12px; padding: 17px 20px; background: #fff; border: 1px solid rgba(61,28,94,.12); border-radius: 15px; }
.demo-game-intro .eyebrow { margin: 0 0 9px; color: #765e99; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.demo-game-intro h1 { margin: 0 0 5px; color: #27143f; font-size: clamp(33px, 4vw, 47px); line-height: 1.04; letter-spacing: -.05em; }
.demo-game-intro .demo-game-provider { margin-bottom: 7px; }
.demo-game-intro .demo-game-description { max-width: 800px; margin: 0 0 8px; font-size: 14px; }
.demo-game-disclaimer { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 9px; color: #4a3c61; background: #f7f4fc; border: 1px solid rgba(61,28,94,.08); border-radius: 8px; font-size: 10px; font-weight: 750; }
.demo-game-disclaimer::before { width: 8px; height: 8px; flex: 0 0 8px; background: var(--demo-coral); border-radius: 50%; content: ""; }
.demo-player-panel { padding: clamp(15px, 2vw, 22px); background: #fff; border: 1px solid rgba(61,28,94,.13); border-radius: 16px; box-shadow: 0 4px 16px rgba(42,23,72,.045); }
.demo-player-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.demo-player-heading-copy { flex: 1 1 360px; min-width: 0; }
.demo-player-heading .eyebrow { margin: 0 0 4px; color: #765e99; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.demo-player-heading h2 { margin: 0; color: #27143f; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -.04em; }
.demo-player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.demo-player-launch { display: flex; align-items: center; gap: 4px; }
.demo-play-button { min-width: 142px; }
.demo-player-guide { max-width: 250px; margin: 0; color: #5630a8; font-size: 10px; font-weight: 900; letter-spacing: .02em; line-height: 1.35; text-align: right; }
.demo-player-guide-arrow { display: block; flex: 0 0 42px; width: 42px; height: 26px; overflow: visible; fill: none; stroke: #ff725c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-player-guide[hidden] { display: none; }
.demo-player-panel:not([data-started="true"]) .demo-play-button { animation: demo-button-pulse 2.8s ease-in-out infinite; }
@keyframes demo-button-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(86,48,168,.08); } 50% { box-shadow: 0 0 0 5px rgba(86,48,168,.13); } }
.demo-fullscreen-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 16px; color: #5630a8; background: #f3effb; border: 1px solid #e6dcf7; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.demo-fullscreen-button:hover:not(:disabled), .demo-fullscreen-button:focus-visible { background: #e8defa; }
.demo-fullscreen-button:disabled { color: #8b7e99; cursor: not-allowed; opacity: .65; }
.demo-play-button:disabled { cursor: wait; opacity: .7; transform: none; }
.demo-player-status { min-height: 1.5em; margin: 0 0 11px; color: #665a79; font-size: 12px; }
.demo-player-status[data-state="error"] { color: #a33d31; font-weight: 750; }
.demo-game-stage { display: grid; min-height: 610px; place-items: center; overflow: hidden; background: #171321; border: 1px solid rgba(39,20,63,.18); border-radius: 15px; }
.demo-game-placeholder { max-width: 430px; padding: 30px; color: rgba(255,255,255,.78); text-align: center; }
.demo-game-placeholder-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 16px; color: #27143f; background: var(--demo-lime); border-radius: 17px; font-size: 20px; font-weight: 900; }
.demo-game-placeholder-play { display: inline-grid; margin: 0 auto 16px; padding: 0; background: transparent; border: 0; border-radius: 18px; cursor: pointer; }
.demo-game-placeholder-play .demo-game-placeholder-mark { margin: 0; transition: transform .18s ease, box-shadow .18s ease; }
.demo-game-placeholder-play:hover .demo-game-placeholder-mark { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(217,251,101,.18); }
.demo-game-placeholder-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.demo-game-placeholder strong { display: block; margin-bottom: 6px; color: #fff; font-size: 20px; }
.demo-game-placeholder p { margin: 0; font-size: 13px; line-height: 1.55; }
.demo-game-frame { display: block; width: 100%; height: 650px; border: 0; background: #171321; }
.demo-player-footnote { margin: 11px 0 0; color: #746887; font-size: 11px; line-height: 1.5; }
.demo-game-related-section { padding: 30px 0 0; }
.demo-game-related-section h2 { margin: 0 0 14px; color: #27143f; font-size: 22px; letter-spacing: -.03em; }
.demo-game-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-game-related-card { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; color: #493464; background: #fff; border: 1px solid rgba(61,28,94,.12); border-radius: 12px; font-size: 12px; font-weight: 800; text-decoration: none; }
.demo-game-related-card:hover, .demo-game-related-card:focus-visible { color: #5630a8; border-color: #bca8e5; }


@media (max-width: 920px) {
  .demo-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-player-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .demo-games-hero { padding: 21px 0 23px; }
  .demo-games-hero-lede { font-size: 15px; }
  .demo-games-main-section { padding: 20px 0 32px; }
  .demo-section-heading { margin-bottom: 12px; }
  .demo-game-grid { grid-template-columns: 1fr; gap: 9px; }
  .demo-game-card-copy { padding: 11px 13px; }
  .demo-game-card h3 { font-size: 18px; }
  .demo-games-related { padding-bottom: 45px; }
  .demo-related-panel { align-items: flex-start; flex-direction: column; padding: 20px; }
  .demo-related-links { justify-content: flex-start; }
  .demo-game-main { padding: 8px 0 36px; }
  .demo-breadcrumbs { margin-bottom: 9px; }
  .demo-game-intro { margin-bottom: 9px; padding: 13px 14px; border-radius: 12px; }
  .demo-game-intro .demo-game-description { font-size: 13px; }
  .demo-player-panel { padding: 12px; border-radius: 13px; }
  .demo-player-heading { align-items: stretch; gap: 9px; }
  .demo-player-heading-copy { flex-basis: auto; }
  .demo-player-actions { display: grid; width: 100%; grid-template-columns: 1fr; gap: 8px; }
  .demo-player-launch { display: grid; width: 100%; grid-template-columns: 1fr; justify-items: stretch; gap: 3px; }
  .demo-player-guide { max-width: none; text-align: center; }
  .demo-player-guide-arrow { width: 22px; height: 18px; flex-basis: 18px; margin: 0 auto; transform: rotate(90deg); }
  .demo-play-button, .demo-fullscreen-button { width: 100%; }
  .demo-game-stage { min-height: 480px; border-radius: 11px; }
  .demo-game-frame { height: min(72dvh, 680px); min-height: 480px; }
  .demo-game-related-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-game-card, .demo-game-cta, .demo-play-button, .demo-game-placeholder-play .demo-game-placeholder-mark { transition: none; }
  .demo-play-button { animation: none !important; }
}
