:root {
  --bg: #070a12;
  --bg-elevated: #0e1422;
  --bg-card: #121a2b;
  --bg-input: #0a101c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7ff;
  --text-muted: #9aa6c2;
  --text-dim: #6d7894;
  --blue: #4d6cfa;
  --blue-hover: #6380ff;
  --blue-soft: rgba(77, 108, 250, 0.16);
  --success: #2ecc71;
  --danger: #ff5c6c;
  --gold: #f0c14b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --max: 1180px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  padding-bottom: 0;
}

a {
  color: var(--blue-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
.btn {
  font-family: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 10, 18, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-login {
  background: #1b2438;
  color: #fff;
}

.btn-login:hover {
  background: #24304a;
}

.btn-register,
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(77, 108, 250, 0.28);
}

.btn-register:hover,
.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #121a2b;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(7, 10, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  z-index: 999;
  animation: navDrop 0.22s ease;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  min-height: clamp(260px, 42vw, 440px);
  height: clamp(260px, 42vw, 440px);
  background: #070a12;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 10, 18, 0.92) 0%,
    rgba(7, 10, 18, 0.72) 32%,
    rgba(7, 10, 18, 0.28) 58%,
    rgba(7, 10, 18, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  max-width: 540px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* Keep full site container width; pin copy to the left column */
.hero > .container.hero-content {
  max-width: min(100% - 2rem, var(--max));
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  justify-content: start;
  align-items: center;
}

.hero > .container.hero-content > * {
  grid-column: 1;
  max-width: 34rem;
}

.hero-kicker {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

h1.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero-text {
  margin: 0 0 1.4rem;
  color: rgba(244, 247, 255, 0.82);
  font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Legacy alias — same full-bleed banner */
.page-hero.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  min-height: clamp(260px, 42vw, 440px);
  height: clamp(260px, 42vw, 440px);
  background: #070a12;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 10, 18, 0.92) 0%,
    rgba(7, 10, 18, 0.72) 32%,
    rgba(7, 10, 18, 0.28) 58%,
    rgba(7, 10, 18, 0.08) 100%
  );
}

.page-hero .container,
.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}

.page-hero .lead {
  color: var(--text-muted);
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 72ch;
  margin: 0 0 1.25rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-hover);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

section {
  padding: 2.75rem 0;
}

section.hero,
section.page-hero {
  padding: 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.55), transparent);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

h3 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  width: 100%;
}

.game-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.game-card:hover,
.game-card.touch-active {
  transform: translateY(-4px);
  border-color: rgba(77, 108, 250, 0.45);
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #0a101c;
  transition: transform 0.4s ease;
}

.game-card:hover img,
.game-card.touch-active img {
  transform: scale(1.03);
}

.game-card-body {
  padding: 0.75rem 0.8rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.game-card h3,
.game-card-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.game-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex: 1;
}

.game-card .mini-cta {
  margin-top: 0.4rem;
  color: var(--blue-hover);
  font-size: 0.78rem;
  font-weight: 700;
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 108, 250, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.media-frame--shot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a101c;
}

.media-frame--shot img {
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: contain;
  object-position: center;
}

.media-frame--card {
  width: min(100%, 280px);
  margin-left: auto;
  margin-right: 0;
  justify-self: end;
  background: #0a101c;
}

.media-frame--card img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center top;
}

.media-frame--fill {
  width: 100%;
  align-self: stretch;
  background: #0a101c;
}

.media-frame--fill img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.media-frame:hover img {
  transform: none;
}

.media-frame--shot:hover img,
.media-frame--card:hover img,
.media-frame--fill:hover img {
  transform: none;
}

.media-caption {
  display: none;
}

.info-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.info-table th,
.info-table td,
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.info-table th,
.compare-table th {
  width: 38%;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.info-table td,
.compare-table td {
  color: var(--text-muted);
}

.info-table tr:last-child th,
.info-table tr:last-child td,
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.promo-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(77, 108, 250, 0.25), transparent 40%),
    linear-gradient(135deg, #121a2b, #0b1220 55%, #151028);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
  margin: 1.25rem 0 2rem;
}

.promo-hero .media-frame--fill {
  margin: 0;
  height: 100%;
  min-height: 220px;
  background: #0a101c;
}

.promo-hero .media-frame--fill img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-code-big {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0.4rem 0 0.8rem;
  color: #fff;
}

.promo-offer {
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.promo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover,
.promo-card.touch-active {
  transform: translateY(-3px);
  border-color: rgba(77, 108, 250, 0.4);
  box-shadow: var(--shadow);
}

.promo-card.primary {
  border-color: rgba(77, 108, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(77, 108, 250, 0.2), var(--shadow);
}

.promo-badge {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-hover);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.promo-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.copy-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.copy-btn {
  background: #1b2438;
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.15s ease;
}

.copy-btn:hover {
  background: #24304a;
}

.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn.copied {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
  border-color: rgba(46, 204, 113, 0.35);
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.step-text {
  padding: 1.25rem;
}

.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  color: var(--text-muted);
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cta-banner {
  background:
    linear-gradient(90deg, rgba(77, 108, 250, 0.18), rgba(77, 108, 250, 0.05)),
    var(--bg-card);
  border: 1px solid rgba(77, 108, 250, 0.35);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cta-banner h3 {
  margin: 0 0 0.35rem;
}

.cta-banner p {
  margin: 0;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq details[open] {
  border-color: rgba(77, 108, 250, 0.4);
  background: #151e32;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue-hover);
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
  background: var(--blue-soft);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.55rem;
}

.faq p {
  margin: 0;
  animation: faqIn 0.25s ease;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 80% at 12% 0%, rgba(77, 108, 250, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 100%, rgba(77, 108, 250, 0.1), transparent 50%),
    linear-gradient(165deg, #121a2b 0%, #0c1322 42%, #070a12 100%);
}

.footer-inner {
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 0.9rem;
}

.footer-brand p,
.footer-col p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-col h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.socials a:hover {
  background: var(--blue-soft);
  border-color: rgba(77, 108, 250, 0.4);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.4rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  margin-right: 0.5rem;
}

.note {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-row > * {
  scroll-snap-align: start;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: ripple 0.55s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(16px);
  background: #1b2438;
  color: #fff;
  border: 1px solid rgba(77, 108, 250, 0.45);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: none;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(7, 10, 18, 0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta .btn {
  flex: 1;
  min-height: 44px;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 1090;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #121a2b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-top:hover {
  background: var(--blue);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #1b2438;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

body.nav-open {
  overflow: hidden;
}

body.scrolled .site-header {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.mobile-nav {
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav a {
  min-height: 48px;
}

.step img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 360px;
}

.feature-list li {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 108, 250, 0.35);
}

.socials a {
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 58px;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
    order: 2;
    min-width: 44px;
    min-height: 44px;
  }

  .header-actions {
    order: 3;
  }

  .logo {
    order: 1;
  }

  .logo img {
    height: 24px;
  }

  .grid-2,
  .promo-hero,
  .step {
    grid-template-columns: 1fr;
  }

  .media-frame--card {
    width: min(100%, 240px);
    margin-inline: auto;
    justify-self: center;
  }

  .grid-3,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .promo-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78%);
    grid-template-columns: none;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .promo-cards > * {
    scroll-snap-align: start;
  }

  .btn-login,
  .btn-register {
    padding: 0.62rem 0.85rem;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .sticky-cta {
    display: flex;
  }

  main {
    padding-bottom: 4.75rem;
  }

  .hero,
  .page-hero {
    min-height: clamp(300px, 78vw, 420px);
    height: clamp(300px, 78vw, 420px);
  }

  .hero-bg {
    object-position: 72% center;
  }

  .hero::after,
  .page-hero::after {
    background: linear-gradient(
      180deg,
      rgba(7, 10, 18, 0.35) 0%,
      rgba(7, 10, 18, 0.72) 42%,
      rgba(7, 10, 18, 0.96) 100%
    );
  }

  .hero-content,
  .page-hero .hero-content {
    max-width: none;
    padding: 2rem 0 1.5rem;
  }

  .hero > .container.hero-content {
    grid-template-columns: 1fr;
  }

  .hero > .container.hero-content > * {
    max-width: none;
  }

  .hero-title,
  h1.hero-title,
  .page-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .hero-text {
    font-size: 0.98rem;
  }

  section {
    padding: 1.85rem 0;
  }

  section.hero,
  section.page-hero {
    padding: 0;
  }

  .cta-row .btn {
    width: 100%;
    min-height: 48px;
  }

  .cta-banner {
    padding: 1.1rem;
  }

  .cta-banner .btn {
    width: 100%;
  }

  .info-table th,
  .info-table td,
  .compare-table th,
  .compare-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.88rem;
  }

  .info-table th,
  .compare-table th {
    width: 42%;
  }

  .table-wrap {
    margin-inline: -0.15rem;
  }

  .promo-hero {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .promo-code-big {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
    word-break: break-word;
  }

  .step {
    gap: 0;
  }

  .step-text {
    padding: 1.05rem;
  }

  .step img {
    max-height: 280px;
    order: -1;
  }

  .game-card-body {
    padding: 0.65rem 0.7rem 0.8rem;
  }

  .game-card-title {
    font-size: 0.88rem;
  }

  .game-card p {
    font-size: 0.74rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .site-footer {
    padding-bottom: 4.5rem;
  }

  .footer-inner {
    padding: 1.75rem 0 1rem;
  }

  .back-top {
    bottom: 5.2rem;
    right: 0.75rem;
  }

  .toast {
    bottom: 5.2rem;
  }

  /* Avoid hover zoom sticking on touch */
  .media-frame:hover img,
  .game-card:hover img {
    transform: none;
  }

  .game-card.touch-active img {
    transform: scale(1.04);
  }
}

@media (max-width: 640px) {
  .game-cards,
  .game-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .game-card img {
    aspect-ratio: 3 / 4;
    object-position: center top;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .header-actions .btn-login {
    display: none;
  }

  .copy-row .btn,
  .copy-row .copy-btn {
    flex: 1;
    min-height: 44px;
  }

  .faq summary {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .game-cards {
    grid-template-columns: 1fr 1fr;
  }

  .btn-register {
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .game-card,
  .media-frame,
  .media-frame img,
  .promo-card,
  .btn,
  .sticky-cta,
  .back-top,
  .toast,
  .lightbox {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Crypto / Wallet demo ===== */
.crypto-section {
  position: relative;
  overflow: hidden;
}

.crypto-section::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(77, 108, 250, 0.18), transparent 65%);
  pointer-events: none;
}

.crypto-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
  align-items: start;
}

.crypto-copy .pill {
  margin-bottom: 0.85rem;
}

.crypto-copy h2 {
  margin-top: 0;
}

.crypto-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.crypto-points li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
}

.crypto-points strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.coin-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.coin-chip {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.coin-chip:hover {
  color: #fff;
  border-color: rgba(77, 108, 250, 0.45);
}

.coin-chip.is-active {
  background: var(--blue-soft);
  color: #fff;
  border-color: rgba(77, 108, 250, 0.55);
  transform: translateY(-1px);
}

.wallet-demo {
  background: linear-gradient(180deg, #151d31, #0e1422);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.wallet-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.wallet-demo-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
}

.wallet-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  animation: livePulse 1.6s ease infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.wallet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1rem;
}

.wallet-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  border-radius: 9px;
  padding: 0.65rem 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  min-height: 42px;
  transition: background 0.15s ease, color 0.15s ease;
}

.wallet-tab.is-active {
  background: #24304a;
  color: #fff;
}

.wallet-panel[hidden] {
  display: none !important;
}

.wallet-qr {
  display: flex;
  justify-content: center;
  margin: 0.4rem 0 1rem;
}

.wallet-qr svg {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.wallet-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
  margin: 0.55rem 0 0.35rem;
}

.wallet-currency {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  background: #0a101c;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: #fff;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
}

.wallet-currency.static {
  cursor: default;
}

.wallet-currency strong {
  display: block;
  font-size: 0.95rem;
}

.wallet-currency small,
.wallet-currency em {
  color: var(--text-dim);
  font-style: normal;
  font-size: 0.78rem;
}

.wallet-coin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7931a, #ffb84d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.wallet-coin-icon[data-sym="ETH"] { background: linear-gradient(135deg, #627eea, #8aa0ff); }
.wallet-coin-icon[data-sym="USDT"] { background: linear-gradient(135deg, #26a17b, #4cd3a5); }
.wallet-coin-icon[data-sym="USDC"] { background: linear-gradient(135deg, #2775ca, #5aa0ef); }
.wallet-coin-icon[data-sym="SOL"] { background: linear-gradient(135deg, #9945ff, #14f195); }
.wallet-coin-icon[data-sym="LTC"] { background: linear-gradient(135deg, #bfbbbb, #e0e0e0); color: #222; }
.wallet-coin-icon[data-sym="BCH"] { background: linear-gradient(135deg, #0ac18e, #8dffce); color: #083; }
.wallet-coin-icon[data-sym="TRX"] { background: linear-gradient(135deg, #ff060a, #ff6b6b); }
.wallet-coin-icon[data-sym="BNB"] { background: linear-gradient(135deg, #f3ba2f, #ffe08a); color: #333; }
.wallet-coin-icon[data-sym="XRP"] { background: linear-gradient(135deg, #23292f, #6b7280); }
.wallet-coin-icon[data-sym="DOGE"] { background: linear-gradient(135deg, #c2a633, #f5d76e); color: #333; }
.wallet-coin-icon[data-sym="ADA"] { background: linear-gradient(135deg, #0033ad, #4d79ff); }
.wallet-coin-icon[data-sym="LINK"] { background: linear-gradient(135deg, #2a5ada, #6b93ff); }
.wallet-coin-icon[data-sym="AVAX"] { background: linear-gradient(135deg, #e84142, #ff8a8b); }
.wallet-coin-icon[data-sym="TON"] { background: linear-gradient(135deg, #0098ea, #6fd0ff); }
.wallet-coin-icon[data-sym="HBAR"] { background: linear-gradient(135deg, #111, #555); }

.wallet-chevron {
  margin-left: auto;
  color: var(--text-dim);
}

.wallet-currency-list {
  margin-top: 0.4rem;
  background: #0a101c;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  max-height: 220px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.wallet-currency-list[hidden] {
  display: none !important;
}

.wallet-currency-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.wallet-currency-list button:last-child {
  border-bottom: 0;
}

.wallet-currency-list button:hover {
  background: rgba(77, 108, 250, 0.12);
}

.wallet-currency-list em {
  margin-left: auto;
  color: var(--text-dim);
  font-style: normal;
}

.wallet-address-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wallet-address-row code {
  flex: 1;
  background: #0a101c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-input {
  width: 100%;
  background: #0a101c;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: #fff;
  padding: 0.8rem 0.9rem;
  font: inherit;
  outline: none;
}

.wallet-input:focus {
  border-color: rgba(77, 108, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 108, 250, 0.15);
}

.wallet-hint {
  margin: 0.85rem 0 1rem;
  font-size: 0.84rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .crypto-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .wallet-demo {
    position: relative;
    top: auto;
  }
}

/* ===== Overlay game cards / Originals showcase ===== */
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.showcase-head h2 {
  margin: 0.35rem 0 0.4rem;
}

.showcase-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

.feature-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-games--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.overlay-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a101c;
  text-decoration: none !important;
  min-height: 210px;
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.overlay-card--lg {
  min-height: 340px;
}

.overlay-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.overlay-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.05) 20%, rgba(7, 10, 18, 0.88) 100%);
  z-index: 1;
}

.overlay-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.overlay-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-hover);
  background: rgba(77, 108, 250, 0.18);
  border: 1px solid rgba(77, 108, 250, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.overlay-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.overlay-card--lg .overlay-title {
  font-size: 1.55rem;
}

.overlay-desc {
  color: rgba(244, 247, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 28ch;
}

.overlay-cta {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(77, 108, 250, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.overlay-card:hover,
.overlay-card.touch-active {
  transform: translateY(-4px);
  border-color: rgba(77, 108, 250, 0.5);
  box-shadow: var(--shadow);
}

.overlay-card:hover img,
.overlay-card.touch-active img {
  transform: scale(1.07);
}

.overlay-card:hover .overlay-cta,
.overlay-card.touch-active .overlay-cta {
  background: var(--blue-hover);
}

.feature-games--compact .overlay-title {
  font-size: 1.1rem;
}

.feature-games--compact .overlay-cta {
  min-height: 34px;
  font-size: 0.74rem;
  padding: 0.35rem 0.75rem;
}

@media (max-width: 900px) {
  .feature-games {
    grid-template-columns: 1fr;
  }

  .feature-games--compact {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72%, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .feature-games--compact > * {
    scroll-snap-align: start;
  }

  .overlay-card--lg {
    min-height: 280px;
  }

  .showcase-head .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .overlay-card--lg {
    min-height: 250px;
  }

  .overlay-cta {
    width: 100%;
  }
}

/* Know-how interactive panel (games page) */
.knowhow {
  max-width: 980px;
}

.knowhow-head {
  margin-bottom: 1.25rem;
}

.knowhow-head h2 {
  margin: 0.2rem 0 0.45rem;
}

.knowhow-head .lead {
  margin: 0;
  max-width: 40rem;
}

.knowhow-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 0.85rem;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(77, 108, 250, 0.14), transparent 55%),
    linear-gradient(165deg, #151d31 0%, #0e1422 55%, #0c1220 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.knowhow-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.knowhow-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  min-height: 56px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.knowhow-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.knowhow-tab.is-active {
  background: rgba(77, 108, 250, 0.14);
  border-color: rgba(77, 108, 250, 0.35);
  color: #fff;
  transform: translateX(2px);
}

.knowhow-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--blue-hover);
  transition: background 0.18s ease, color 0.18s ease;
}

.knowhow-tab.is-active .knowhow-ico {
  background: var(--blue);
  color: #fff;
}

.knowhow-ico svg {
  width: 20px;
  height: 20px;
}

.knowhow-tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.knowhow-tab-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.knowhow-tab-text small {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.knowhow-tab.is-active .knowhow-tab-text small {
  color: rgba(244, 247, 255, 0.65);
}

.knowhow-panels {
  position: relative;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.35rem;
  min-height: 220px;
}

.knowhow-panel[hidden] {
  display: none !important;
}

.knowhow-panel.is-active {
  animation: knowIn 0.28s ease;
}

@keyframes knowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.knowhow-panel-top {
  margin-bottom: 0.75rem;
}

.knowhow-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-hover);
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  margin-bottom: 0.55rem;
}

.knowhow-panel h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.knowhow-panel p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
}

.knowhow-panel p:last-child {
  margin-bottom: 0;
}

.knowhow-steps {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.knowhow-steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.knowhow-steps li span {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 800px) {
  .knowhow-shell {
    grid-template-columns: 1fr;
    padding: 0.7rem;
  }

  .knowhow-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.15rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .knowhow-tab {
    flex: 0 0 auto;
    min-width: 148px;
    scroll-snap-align: start;
    transform: none !important;
  }

  .knowhow-tab.is-active {
    transform: none !important;
  }

  .knowhow-tab-text small {
    display: none;
  }

  .knowhow-panels {
    min-height: 0;
    padding: 1.05rem 1rem 1.15rem;
  }

  .knowhow-panel h3 {
    font-size: 1.15rem;
  }
}

/* Visual text blocks */
.viz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.viz-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(18, 26, 43, 0.95), rgba(10, 14, 24, 0.98));
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.viz-card:hover {
  border-color: rgba(77, 108, 250, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.viz-card:not(.viz-split) {
  padding: 1.35rem 1.4rem 1.45rem;
}

.viz-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  padding: 0;
  min-height: 280px;
}

.viz-split--flip {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.viz-split--flip .viz-copy { order: 2; }
.viz-split--flip .viz-media { order: 1; }

.viz-grid > .viz-split:nth-child(even) {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.viz-grid > .viz-split:nth-child(even) .viz-copy { order: 2; }
.viz-grid > .viz-split:nth-child(even) .viz-media { order: 1; }

.viz-copy {
  padding: 1.5rem 1.55rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.viz-media {
  margin: 0;
  min-height: 100%;
  background: #0a101c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viz-media img {
  width: 100%;
  height: auto;
  max-height: min(480px, 65vh);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}

.viz-media--fill img {
  height: 100%;
  min-height: 280px;
  max-height: none;
  object-fit: cover;
}

.viz-card h1,
.viz-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  padding-right: 0;
}

.viz-card h1::after,
.viz-card h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.viz-card .lead {
  margin-bottom: 0.85rem;
}

.viz-card p,
.viz-card ul,
.viz-card ol {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.viz-card p:last-child,
.viz-card ul:last-child,
.viz-card ol:last-child,
.viz-card .cta-row:last-child {
  margin-bottom: 0;
}

.viz-card .cta-row {
  margin-top: 1rem;
}

.viz-card--wide {
  grid-column: 1 / -1;
}

.viz-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.viz-spotlight .viz-card {
  height: 100%;
}

.viz-spotlight .media-frame {
  margin: 0;
  height: 100%;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
}

.viz-spotlight .media-frame img {
  height: auto;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.viz-steps {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: step;
}

.viz-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.viz-steps > li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.viz-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.viz-list > li {
  position: relative;
  padding: 0.65rem 0.8rem 0.65rem 2.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.viz-list > li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.info-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.viz-card .info-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-tile:hover {
  border-color: rgba(77, 108, 250, 0.35);
  transform: translateY(-2px);
}

.info-tile strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-hover);
  margin-bottom: 0.35rem;
}

.info-tile span {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}

@media (max-width: 900px) {
  .viz-split,
  .viz-split--flip,
  .viz-spotlight,
  .info-tiles,
  .viz-card .info-tiles {
    grid-template-columns: 1fr;
  }

  .viz-split--flip .viz-copy,
  .viz-split--flip .viz-media {
    order: initial;
  }

  .viz-media img {
    min-height: 0;
    max-height: none;
  }

  .viz-media--fill img {
    min-height: 200px;
  }

  .info-tile:hover {
    transform: none;
  }
}
