/* Kryphos.games — GameTwist Vegas Casino Slots promo · 2026 */
:root {
  --cream: #fff9f5;
  --paper: #ffffff;
  --ink: #2a1045;
  --ink-soft: #5c4a72;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --magenta: #db2777;
  --coral: #fb7185;
  --gold: #fbbf24;
  --mint: #14b8a6;
  --line: rgba(91, 33, 182, 0.14);
  --shadow: 0 18px 50px rgba(91, 33, 182, 0.12);
  --shadow-lg: 0 28px 70px rgba(219, 39, 119, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Literata", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 113, 133, 0.12), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.1), transparent 45%),
    linear-gradient(180deg, var(--cream), #f5efff 40%, var(--cream));
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-deep);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--magenta);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--violet);
  border-radius: 10px;
  z-index: 10000;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 100%;
}

/* Top compliance strip */
.compliance-bar {
  background: linear-gradient(90deg, rgba(91, 33, 182, 0.92), rgba(219, 39, 119, 0.88));
  color: #fff;
  padding: 11px 18px;
  text-align: center;
  font-size: 0.73rem;
  line-height: 1.55;
}

.compliance-bar p {
  margin: 0 auto;
  max-width: 980px;
}

.compliance-bar strong {
  font-weight: 700;
}

.compliance-bar .age-mark {
  display: inline-block;
  margin: 0 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(42, 16, 69, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f3e8ff);
  border: 2px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  text-decoration: none;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--violet-deep);
  border-bottom-color: var(--magenta);
}

/* Shared image contain rule */
.logo-mark img,
.icon-chip img,
.hero-badge img,
.mosaic-cell img,
.scroll-shot img,
.stills-slide__frame img,
.feature-icon img,
.review-avatar img,
.spark img,
.footer-mark img,
.demo-thumb img,
.game-card__icon img,
.prose-deco img,
.gallery-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tags & typography */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-sub {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.section-head {
  margin-bottom: 28px;
}

/* Game intro block */
.game-intro {
  margin-top: 36px;
  padding: 34px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.game-intro::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--violet), var(--magenta), var(--gold));
}

.game-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.game-intro p {
  margin: 0 0 14px;
}

.game-intro .intro-highlight {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(251, 191, 36, 0.12));
  font-weight: 600;
  color: var(--violet-deep);
}

.prose-deco {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.prose-deco span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #faf5ff;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* Hero split */
.hero-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
  margin: 40px 0;
}

.hero-visual {
  position: relative;
}

.hero-badge {
  width: min(280px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #ede9fe);
  border: 3px solid rgba(124, 58, 237, 0.2);
  box-shadow: var(--shadow-lg);
}

.hero-visual .spark-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.spark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.info-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: #faf5ff;
  border: 1px dashed rgba(124, 58, 237, 0.25);
}

.info-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-panel li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.info-panel li:last-child {
  border-bottom: 0;
}

.store-btn {
  display: inline-block;
  margin-top: 18px;
  transition: transform 0.2s, filter 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 18px rgba(91, 33, 182, 0.2));
}

.store-btn img {
  width: auto;
  height: auto;
  max-height: 58px;
}

/* Stats ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 36px 0;
}

.stat-card {
  padding: 20px 16px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--violet-deep);
  font-family: var(--font-display);
}

.stat-card span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Section shell */
.section-block {
  margin: 52px 0;
}

.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Feature cards — staggered */
.feature-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(0deg);
}

.feature-card:nth-child(2) {
  transform: translateY(12px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fdf4ff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Mosaic gallery */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 720px;
}

.mosaic-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 0;
  border-radius: var(--radius-sm);
  background: #f8f5ff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.mosaic-cell--wide {
  grid-column: 1 / -1;
}

.mosaic-cell img {
  width: auto;
  max-width: 100%;
  max-height: 130px;
  margin: 0 auto;
}

/* Horizontal scroll stills */
.scroll-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scroll-snap-type: x mandatory;
  max-width: 720px;
}

.scroll-shot {
  flex: 0 0 min(200px, 62vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.scroll-shot img {
  width: auto;
  max-width: 100%;
  max-height: 110px;
  margin: 0 auto;
}

/* Vertical stills slider */
.stills-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 12px 10px;
  align-items: center;
  max-width: 360px;
  margin: 0 auto;
  padding: 18px 12px 14px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stills-slider__viewport {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 440px;
}

.stills-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.stills-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.stills-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.stills-slide__frame {
  width: min(240px, 100%);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: calc(var(--radius-sm) + 2px);
  background: linear-gradient(180deg, #faf5ff, #fff);
  border: 1px solid var(--line);
}

.stills-slide__frame img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

.stills-slide figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.stills-slider__nav {
  grid-row: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--violet-deep);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.stills-slider__nav:hover {
  background: #faf5ff;
  transform: scale(1.05);
}

.stills-slider__nav--prev {
  grid-column: 1;
}

.stills-slider__nav--next {
  grid-column: 3;
}

.stills-slider__dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stills-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.22);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.stills-slider__dot.is-active {
  background: var(--magenta);
  transform: scale(1.15);
}

@media (max-width: 480px) {
  .stills-slider {
    max-width: 100%;
    padding-inline: 8px;
  }

  .stills-slider__nav {
    width: 36px;
    height: 36px;
  }

  .stills-slider__viewport {
    height: 400px;
  }

  .stills-slide__frame {
    width: min(210px, 72vw);
    height: 360px;
  }
}

/* Tabs — reviews */
.tabs-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #faf5ff;
}

.tab-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab-btn.is-active {
  color: var(--violet-deep);
  background: var(--paper);
  border-bottom-color: var(--magenta);
}

.tab-panel {
  display: none;
  padding: 24px;
}

.tab-panel.is-active {
  display: block;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.review-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: #fffbff;
  border: 1px solid var(--line);
}

.review-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.review-stars {
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.review-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Classics marquee */
.classics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.classics-strip span {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(251, 191, 36, 0.18));
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--violet-deep);
}

/* Challenge board */
.challenge-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.challenge-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
}

.challenge-item .icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf2f8;
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}

.challenge-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.challenge-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Gallery mini row */
.gallery-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.gallery-mini div {
  aspect-ratio: 4/3;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #f5f3ff;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: #faf5ff;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-a {
  display: block;
}

/* CTA band */
.cta-band {
  margin: 48px 0 36px;
  padding: 32px;
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(219, 39, 119, 0.08));
  border: 1px solid var(--line);
}

.cta-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Page hero (inner pages) */
.page-hero {
  margin: 36px 0 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.content-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--ink-soft);
}

.content-card ul {
  padding-left: 1.2rem;
}

/* Games page */
.game-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.game-card__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: #faf5ff;
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 8px;
}

.demo-card {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  padding: 0;
  border: 0;
  background: #1a0b2e;
  cursor: pointer;
}

.demo-thumb img {
  min-height: 100%;
}

.demo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 16, 69, 0.45);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s;
}

.demo-thumb:hover .demo-play,
.demo-thumb:focus-visible .demo-play {
  opacity: 1;
}

.demo-body {
  padding: 20px 22px 24px;
}

.demo-body h3 {
  margin: 0 0 8px;
}

.demo-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.06), rgba(219, 39, 119, 0.08));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--violet-deep);
}

.footnote {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 16, 69, 0.72);
  backdrop-filter: blur(8px);
}

.age-gate.is-hidden {
  display: none;
}

.age-card {
  width: min(480px, 100%);
  padding: 32px 28px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.age-card h1 {
  margin: 16px 0 10px;
  font-size: 1.45rem;
}

.age-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.age-slider-wrap {
  margin: 18px 0;
  text-align: left;
}

.age-slider-wrap label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.age-slider {
  width: 100%;
  accent-color: var(--violet);
}

.age-slider-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.btn-enter {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet-deep), var(--magenta));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-enter:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-enter:not(:disabled):hover {
  transform: translateY(-1px);
}

/* Game modal */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 16px;
}

.game-modal.is-hidden {
  display: none;
}

.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 11, 46, 0.78);
}

.game-modal__panel {
  position: relative;
  width: min(1100px, 100%);
  height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.game-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #faf5ff;
  border-bottom: 1px solid var(--line);
}

.game-modal__title {
  margin: 0;
  font-size: 1rem;
}

.game-modal__close {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.game-modal__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

/* Ribbon note */
.note-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.22);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.note-ribbon strong {
  color: #0f766e;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .feature-deck,
  .review-grid,
  .challenge-board,
  .stats-ribbon,
  .game-card {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(2) {
    transform: none;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .gallery-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .game-intro,
  .panel,
  .content-card {
    padding: 22px 18px;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}
