/* CipherNode multi-game visual layer v5
   A neutral game-network interface that keeps the established CipherNode cyan brand. */
:root {
  --cn-bg: #070707;
  --cn-panel: rgba(15, 15, 18, .86);
  --cn-panel-2: rgba(24, 24, 27, .72);
  --cn-border: rgba(63, 63, 70, .78);
  --cn-accent: #00e5ff;
  --cn-accent-2: #22d3ee;
  --cn-emerald: #36d97b;
  --cn-indigo: #6366f1;
  --cn-blue: #2563eb;
  --cn-violet: #8b5cf6;
  --cn-stone: #6b7280;
  --cn-deepslate: #18181b;
  --cn-gold: #facc15;
  --cn-redstone: #ef4444;
}

/* Global scene */
body.cn-games-theme {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 7%, rgba(34, 211, 238, .12), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(99, 102, 241, .10), transparent 26%),
    radial-gradient(circle at 50% 110%, rgba(37, 99, 235, .10), transparent 38%),
    #070707 !important;
}

body.cn-games-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(rgba(0,229,255,.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,229,255,.035) 2px, transparent 2px);
  background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.85) 38%, rgba(0,0,0,.28) 100%);
  opacity: .85;
}

body.cn-games-theme::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: .42;
  background:
    radial-gradient(circle at 50% 100%, rgba(34,211,238,.18), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(34,211,238,.055) 47px 48px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(99,102,241,.045) 47px 48px);
}

body.cn-games-theme > * { position: relative; z-index: 1; }

/* Top utility bar + navigation */
body.cn-games-theme > div:first-child {
  background: rgba(6, 7, 9, .88) !important;
  border-bottom-color: rgba(54, 217, 123, .18) !important;
  box-shadow: inset 0 -1px 0 rgba(0,229,255,.08);
}

body.cn-games-theme nav {
  background: rgba(7, 7, 7, .86) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,229,255,.14) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

body.cn-games-theme nav > div > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-shadow: 0 0 22px rgba(0,229,255,.18);
}

body.cn-games-theme nav > div > a:first-child::before {
  content: none;
}

.cn-brand-logo {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(34, 211, 238, .2));
}

.cn-brand-link span {
  display: inline-block;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cn-accent), transparent);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

/* Hero: multi-game launch console */
.cn-launch-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 15%, rgba(0,229,255,.18), transparent 30%),
    radial-gradient(circle at 80% 22%, rgba(99,102,241,.16), transparent 28%),
    linear-gradient(180deg, #070707 0%, #09090b 58%, #050505 100%) !important;
}

.cn-launch-hero::before,
.cn-launch-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.cn-launch-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 52% 38%, black 0 42%, transparent 76%);
  opacity: .72;
}

.cn-launch-hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background:
    linear-gradient(90deg, transparent, var(--cn-accent), var(--cn-indigo), transparent);
  box-shadow: 0 -18px 60px rgba(34,211,238,.18);
}

.cn-hero-kicker,
.cn-chip,
.cn-world-row,
.cn-stack-pill,
.cn-footer-pill {
  border: 1px solid rgba(0,229,255,.22);
  background: linear-gradient(180deg, rgba(17,17,19,.88), rgba(7,7,7,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 0 30px rgba(0,229,255,.08);
}

.cn-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 999px;
}

.cn-hero-kicker::before,
.cn-footer-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cn-emerald);
  box-shadow: 0 0 18px rgba(54,217,123,.78);
}

.cn-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cn-chip { color: #a1a1aa; border-radius: 999px; padding: 9px 12px; font-size: 13px; font-weight: 800; }
.cn-chip i { color: var(--cn-accent); margin-right: 7px; }

.cn-primary-btn,
.cn-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  border-radius: 999px;
  padding: 14px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cn-primary-btn { color: #001015 !important; background: var(--cn-accent) !important; box-shadow: 0 5px 0 #06738a, 0 0 34px rgba(0,229,255,.26); }
.cn-secondary-btn { color: #e5e5e5 !important; background: rgba(24,24,27,.72); border: 1px solid rgba(63,63,70,.85); }
.cn-primary-btn:hover, .cn-secondary-btn:hover { transform: translateY(-2px); }
.cn-secondary-btn:hover { border-color: rgba(0,229,255,.42); color: var(--cn-accent) !important; }

.cn-launcher-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.22);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(24,24,27,.92), rgba(7,7,7,.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 8px, transparent 8px 16px);
  box-shadow: 0 35px 110px rgba(0,0,0,.48), 0 0 80px rgba(0,229,255,.08), inset 0 1px 0 rgba(255,255,255,.08);
}

.cn-launcher-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  opacity: .35;
}

.cn-launcher-card > * { position: relative; z-index: 1; }

.cn-launcher-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(63,63,70,.7);
  background: rgba(9,9,11,.72);
}

.cn-window-dots { display: flex; gap: 8px; }
.cn-window-dots span { width: 10px; height: 10px; border-radius: 3px; background: #3f3f46; }
.cn-window-dots span:nth-child(1) { background: var(--cn-redstone); }
.cn-window-dots span:nth-child(2) { background: var(--cn-gold); }
.cn-window-dots span:nth-child(3) { background: var(--cn-emerald); }

.cn-launcher-body { padding: 24px; }
.cn-world-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  margin-bottom: 12px;
}
.cn-world-row strong { color: #fff; display: block; }
.cn-world-row span { color: #71717a; font-size: 13px; }
.cn-world-row em { color: var(--cn-accent); font-style: normal; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.cn-world-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset -5px -5px 0 rgba(0,0,0,.28), inset 2px 2px 0 rgba(255,255,255,.12);
}
.cn-world-icon.grass { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.cn-world-icon.diamond { background: linear-gradient(135deg, #67e8f9, #0891b2); }
.cn-world-icon.redstone { background: linear-gradient(135deg, #ef4444, #7f1d1d); }

.cn-console {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(63,63,70,.78);
  background: rgba(0,0,0,.55);
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.85;
}
.cn-console b { color: var(--cn-emerald); font-weight: 800; }
.cn-console .cyan { color: var(--cn-accent); }

/* Feature/world cards */
.cn-biome-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(99,102,241,.09), transparent 32%),
    radial-gradient(circle at 84% 10%, rgba(0,229,255,.09), transparent 30%),
    #080808 !important;
}

.cn-world-card,
.cn-mc-feature-card,
.cn-mc-panel,
.cn-stack-board,
.cn-page-card,
.cn-games-theme [class*="bg-[#111113]"][class*="border"],
.cn-games-theme [class*="bg-[#111]"][class*="border"] {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24,24,27,.78), rgba(8,8,10,.94)) !important;
  border: 1px solid rgba(63,63,70,.75) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.18);
}

.cn-world-card::before,
.cn-mc-feature-card::before,
.cn-mc-panel::before,
.cn-stack-board::before,
.cn-page-card::before,
.cn-games-theme [class*="bg-[#111113]"][class*="border"]::before,
.cn-games-theme [class*="bg-[#111]"][class*="border"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .15;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.cn-world-card > *, .cn-mc-feature-card > *, .cn-mc-panel > *, .cn-stack-board > *, .cn-page-card > *,
.cn-games-theme [class*="bg-[#111113]"][class*="border"] > *,
.cn-games-theme [class*="bg-[#111]"][class*="border"] > * { position: relative; z-index: 1; }

.cn-world-card {
  border-radius: 26px;
  padding: 28px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cn-world-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,.45) !important; box-shadow: 0 30px 90px rgba(0,229,255,.09), inset 0 1px 0 rgba(255,255,255,.06); }

.cn-cube-badge {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: white;
  margin-bottom: 22px;
  box-shadow: inset -6px -6px 0 rgba(0,0,0,.30), inset 2px 2px 0 rgba(255,255,255,.12), 0 0 32px rgba(0,229,255,.12);
}
.cn-cube-badge.overworld { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.cn-cube-badge.nether { background: linear-gradient(135deg, #ef4444, #451a03); }
.cn-cube-badge.diamond { background: linear-gradient(135deg, #67e8f9, #0369a1); }
.cn-cube-badge.stone { background: linear-gradient(135deg, #71717a, #27272a); }

.cn-stack-board { border-radius: 28px; padding: 28px; }
.cn-stack-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-stack-pill { display: inline-flex; align-items: center; gap: 9px; color: #d4d4d8; border-radius: 999px; padding: 10px 13px; font-size: 13px; font-weight: 800; }
.cn-stack-pill i { color: var(--cn-accent); }



/* Prevent long emails, URLs, and legal addresses from being clipped inside cards. */
.cn-games-theme .cn-safe-wrap,
.cn-games-theme .cn-world-card,
.cn-games-theme .cn-mc-feature-card,
.cn-games-theme .cn-mc-panel,
.cn-games-theme .cn-stack-board,
.cn-games-theme .cn-page-card,
.cn-games-theme .cn-footer-card,
.cn-games-theme .cn-contact-card,
.cn-games-theme [class*="bg-[#111113]"][class*="border"],
.cn-games-theme [class*="bg-[#111]"][class*="border"] {
  min-width: 0;
}

.cn-games-theme .cn-safe-wrap,
.cn-games-theme .cn-world-card a,
.cn-games-theme .cn-mc-feature-card a,
.cn-games-theme .cn-mc-panel a,
.cn-games-theme .cn-stack-board a,
.cn-games-theme .cn-page-card a,
.cn-games-theme .cn-footer-card a,
.cn-games-theme .cn-footer-card p,
.cn-games-theme .cn-contact-card a,
.cn-games-theme .cn-contact-card p,
.cn-games-theme [class*="bg-[#111113]"][class*="border"] a,
.cn-games-theme [class*="bg-[#111113]"][class*="border"] p,
.cn-games-theme [class*="bg-[#111]"][class*="border"] a,
.cn-games-theme [class*="bg-[#111]"][class*="border"] p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cn-games-theme .cn-safe-wrap,
.cn-games-theme .cn-contact-card a,
.cn-games-theme .cn-contact-card p,
.cn-games-theme .cn-footer-card a {
  display: inline-block;
}

.cn-games-theme .cn-contact-methods {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

.cn-games-theme .cn-contact-card {
  min-height: 148px;
}


@media (min-width: 861px) {
  .cn-games-theme .cn-contact-methods .cn-business-address-card {
    grid-column: 2 / span 1;
  }
}

@media (max-width: 860px) {
  .cn-games-theme .cn-contact-methods {
    grid-template-columns: 1fr !important;
  }
}

/* Forms / inputs */
.cn-games-theme input,
.cn-games-theme textarea,
.cn-games-theme select {
  background: rgba(5, 5, 5, .76) !important;
  border-color: rgba(63,63,70,.9) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.cn-games-theme input:focus,
.cn-games-theme textarea:focus,
.cn-games-theme select:focus {
  border-color: var(--cn-accent) !important;
  box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}

/* Buttons */
body.cn-games-theme a[class*="bg-[#22d3ee]"],
body.cn-games-theme button[class*="bg-[#22d3ee]"],
body.cn-games-theme .bg-accent,
body.cn-games-theme button[class*="bg-[#00E5FF]"],
body.cn-games-theme a[class*="bg-[#00E5FF]"] {
  box-shadow: 0 5px 0 rgba(8,145,178,.70), 0 0 28px rgba(0,229,255,.20);
}
body.cn-games-theme a[class*="bg-[#22d3ee]"]:hover,
body.cn-games-theme button[class*="bg-[#22d3ee]"]:hover,
body.cn-games-theme button[class*="bg-[#00E5FF]"]:hover,
body.cn-games-theme a[class*="bg-[#00E5FF]"]:hover { transform: translateY(-1px); }

/* Page headers and policy pages */
.cn-games-theme main.py-20,
.cn-games-theme main.flex-1.py-20 {
  position: relative;
}
.cn-games-theme main.py-20::before,
.cn-games-theme main.flex-1.py-20::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(0,229,255,.13), transparent 38%),
    linear-gradient(180deg, rgba(99,102,241,.06), transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
}

.cn-games-theme main h1 {
  text-shadow: 0 0 34px rgba(0,229,255,.14);
}
.cn-games-theme main h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cn-indigo), var(--cn-accent));
  box-shadow: 0 0 22px rgba(0,229,255,.25);
}
.cn-games-theme .text-center h1::after { margin-left: auto; margin-right: auto; }

/* FAQ / tabs small upgrades */
.cn-games-theme .tab-btn { border: 1px solid transparent; }
.cn-games-theme .tab-btn:hover { border-color: rgba(0,229,255,.25); background: rgba(0,229,255,.06); }

/* Mobile menu gets the same world-card look */
.cn-mobile-menu-card {
  border-color: rgba(0,229,255,.18) !important;
  background:
    linear-gradient(180deg, rgba(17,17,19,.96), rgba(5,5,5,.98)) !important;
  box-shadow: 0 25px 90px rgba(0,0,0,.55), 0 0 70px rgba(0,229,255,.10) !important;
}

/* Footer: neutral game-network footer */
.cn-world-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(0,229,255,.12), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(99,102,241,.10), transparent 28%),
    linear-gradient(180deg, #050505 0%, #040404 100%) !important;
  border-top: 1px solid rgba(0,229,255,.14) !important;
}

.cn-footer-terrain {
  height: 18px;
  opacity: .95;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--cn-accent) 22%, var(--cn-indigo) 50%, var(--cn-accent) 78%, transparent 92%);
  clip-path: polygon(0 45%, 8% 45%, 8% 25%, 18% 25%, 18% 55%, 32% 55%, 32% 20%, 47% 20%, 47% 50%, 65% 50%, 65% 28%, 82% 28%, 82% 52%, 100% 52%, 100% 65%, 0 65%);
  box-shadow: 0 -18px 60px rgba(34,211,238,.18);
}

.cn-footer-card {
  border: 1px solid rgba(63,63,70,.72);
  background: linear-gradient(180deg, rgba(17,17,19,.78), rgba(7,7,7,.92));
  border-radius: 26px;
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.18);
}

.cn-footer-title { color: white; font-weight: 900; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.cn-footer-title::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--cn-accent); box-shadow: 0 0 18px rgba(0,229,255,.65); }

.cn-world-footer a { transition: color .2s ease, transform .2s ease; }
.cn-world-footer a:hover { color: var(--cn-accent) !important; transform: translateX(2px); }
.cn-footer-link-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.cn-footer-link-list a {
  display: inline-block !important;
  width: fit-content;
  color: #71717a;
  margin: 0 !important;
  line-height: 1.35;
  white-space: nowrap !important;
}
.cn-footer-link-list p {
  display: block !important;
  color: #71717a;
  margin: 0 !important;
  line-height: 1.35;
}

.cn-footer-pill { display: inline-flex; align-items: center; gap: 8px; color: #d4d4d8; border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.cn-footer-biomes { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
.cn-footer-biomes span { color: #a1a1aa; font-size: 12px; font-weight: 700; border: 1px solid rgba(63,63,70,.8); border-radius: 999px; padding: 6px 12px; background: rgba(0,0,0,.22); white-space: nowrap !important; display: inline-flex !important; align-items: center !important; }
.cn-footer-bottom { border-top: 1px solid rgba(63,63,70,.65); margin-top: 36px; padding-top: 24px; color: #52525b; font-size: 13px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .cn-launcher-card { margin-top: 34px; }
}

@media (max-width: 768px) {
  .cn-launch-hero { padding-top: 6rem !important; padding-bottom: 6rem !important; }
  .cn-hero-chips { gap: 8px; }
  .cn-chip { font-size: 12px; padding: 8px 10px; }
  .cn-world-row { grid-template-columns: auto 1fr; }
  .cn-world-row em { grid-column: 1 / -1; }
  .cn-footer-terrain { height: 42px; }
  .cn-footer-bottom { display: block; }
  .cn-footer-bottom p + p { margin-top: 10px; }
}


/* Discord entry points */
.cn-discord-hero-btn,
.cn-discord-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 18% 15%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, #5865f2 0%, #22d3ee 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 5px 0 rgba(54, 66, 188, .7), 0 0 34px rgba(88,101,242,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cn-discord-hero-btn {
  padding: 14px 24px;
}
.cn-discord-footer-btn {
  min-height: 34px;
  padding: 8px 13px;
  font-size: 13px;
}
.cn-discord-hero-btn:hover,
.cn-discord-footer-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 7px 0 rgba(54, 66, 188, .65), 0 0 42px rgba(34,211,238,.28);
}
.cn-discord-world-row {
  color: inherit;
  text-decoration: none;
  border-color: rgba(88,101,242,.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 0 34px rgba(88,101,242,.15);
}
.cn-discord-world-row:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,.65) !important;
}
.cn-world-icon.discord {
  background: linear-gradient(135deg, #5865f2, #22d3ee);
}


/* ============================================================
   Homepage body redesign v4 (2026)
   New credibility-focused body components. Scoped with cn- prefixes;
   header, footer, and existing components above are untouched.
   ============================================================ */

/* --- Section rhythm helpers --- */
.cn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cn-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cn-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--cn-emerald);
  box-shadow: 0 0 14px rgba(54,217,123,.8);
}

/* --- Hero trust strip (facts row under hero) --- */
.cn-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(63,63,70,.7);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,17,19,.8), rgba(8,8,10,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 70px rgba(0,0,0,.28);
}
.cn-trust-cell {
  padding: 20px 22px;
  border-right: 1px solid rgba(63,63,70,.55);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cn-trust-cell:last-child { border-right: 0; }
.cn-trust-ico {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cn-accent);
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  font-size: 16px;
}
.cn-trust-cell strong { color: #fff; display: block; font-size: 14px; line-height: 1.2; }
.cn-trust-cell span { color: #a1a1aa; font-size: 12px; line-height: 1.3; }
@media (max-width: 900px) {
  .cn-trust-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cn-trust-cell:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  .cn-trust-strip { grid-template-columns: 1fr; }
  .cn-trust-cell { border-right: 0; border-bottom: 1px solid rgba(63,63,70,.55); }
  .cn-trust-cell:last-child { border-bottom: 0; }
}

/* --- Plan overview cards --- */
.cn-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 980px) { .cn-plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

.cn-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(63,63,70,.75);
  border-radius: 26px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(24,24,27,.8), rgba(8,8,10,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.cn-plan-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,.4); box-shadow: 0 30px 90px rgba(0,229,255,.08); }
.cn-plan-card.featured {
  border-color: rgba(0,229,255,.5);
  background: linear-gradient(180deg, rgba(6,32,40,.72), rgba(8,10,12,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 90px rgba(0,229,255,.12);
}
.cn-plan-flag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #001015;
  background: var(--cn-accent);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(0,229,255,.35);
}
.cn-plan-flag.soon { color: #fcd34d; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); box-shadow: none; }
.cn-plan-name { color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.cn-plan-sub { color: #a1a1aa; font-size: 13px; margin-top: 4px; min-height: 34px; }
.cn-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 4px; }
.cn-plan-price b { color: #fff; font-size: 40px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.cn-plan-price span { color: #71717a; font-size: 14px; font-weight: 700; }
.cn-plan-pricenote { color: #71717a; font-size: 12px; margin-bottom: 20px; }
.cn-plan-list { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid rgba(63,63,70,.55); display: grid; gap: 12px; }
.cn-plan-list li { display: flex; align-items: flex-start; gap: 11px; color: #d4d4d8; font-size: 14px; line-height: 1.4; }
.cn-plan-list li i { color: var(--cn-emerald); margin-top: 3px; flex: 0 0 auto; font-size: 13px; }
.cn-plan-list li.muted { color: #71717a; }
.cn-plan-list li.muted i { color: #52525b; }
.cn-plan-cta { margin-top: auto; }

/* --- Feature grid (host capabilities) --- */
.cn-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) { .cn-feature-grid { grid-template-columns: 1fr; } }
.cn-feature-item {
  position: relative;
  border: 1px solid rgba(63,63,70,.72);
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(20,20,23,.72), rgba(8,8,10,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .22s ease, transform .22s ease;
}
.cn-feature-item:hover { border-color: rgba(0,229,255,.35); transform: translateY(-3px); }
.cn-feature-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cn-accent);
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  font-size: 18px;
  margin-bottom: 18px;
}
.cn-feature-item h3 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.cn-feature-item p { color: #a1a1aa; font-size: 14px; line-height: 1.6; }

/* --- Software / compatibility chips --- */
.cn-soft-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cn-soft-chip {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d4d4d8; font-size: 13px; font-weight: 800;
  border: 1px solid rgba(63,63,70,.8);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(9,9,11,.5);
}
.cn-soft-chip i { color: var(--cn-accent); }

/* --- Panel proof: feature list beside screenshot --- */
.cn-panel-features { display: grid; gap: 14px; text-align: left; }
.cn-panel-feature { display: flex; gap: 13px; align-items: flex-start; }
.cn-panel-feature i { color: var(--cn-accent); margin-top: 4px; font-size: 15px; flex: 0 0 auto; }
.cn-panel-feature strong { color: #fff; display: block; font-size: 15px; }
.cn-panel-feature span { color: #a1a1aa; font-size: 13px; line-height: 1.5; }

/* --- Game library --- */
.cn-games-hero {
  padding: 92px 24px 54px;
  border-bottom: 1px solid rgba(63,63,70,.62);
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(34,211,238,.14), transparent 34%),
    radial-gradient(circle at 22% 90%, rgba(99,102,241,.10), transparent 30%);
}

.cn-games-hero h1 {
  max-width: 780px;
  margin-inline: auto;
}

.cn-games-intro {
  max-width: 680px;
  margin: 22px auto 0;
  color: #a1a1aa;
  font-size: 17px;
  line-height: 1.75;
}

.cn-game-controls {
  max-width: 850px;
  margin: 40px auto 0;
}

.cn-game-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  color: #e5e7eb;
  border: 1px solid rgba(63,63,70,.85);
  border-radius: 16px;
  background: rgba(10,10,12,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 70px rgba(0,0,0,.2);
}

.cn-game-search:focus-within {
  border-color: rgba(34,211,238,.62);
  box-shadow: 0 0 0 3px rgba(34,211,238,.08);
}

.cn-game-search i { color: var(--cn-accent-2); }
.cn-game-search input { width: 100%; outline: 0; border: 0; background: transparent; color: #fff; }
.cn-game-search input::placeholder { color: #71717a; }

.cn-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.cn-filter-btn {
  border: 1px solid rgba(63,63,70,.8);
  border-radius: 999px;
  padding: 8px 13px;
  color: #a1a1aa;
  background: rgba(15,15,18,.72);
  font-size: 12px;
  font-weight: 800;
  transition: .2s ease;
}

.cn-filter-btn:hover,
.cn-filter-btn.is-active {
  border-color: rgba(34,211,238,.5);
  color: #001015;
  background: var(--cn-accent-2);
}

.cn-game-library { padding: 56px 24px 96px; }
.cn-game-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cn-game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid rgba(63,63,70,.78);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24,24,27,.76), rgba(7,7,9,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 22px 60px rgba(0,0,0,.2);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.cn-game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34,211,238,.42);
  box-shadow: 0 30px 90px rgba(34,211,238,.08);
}

.cn-game-card[hidden] { display: none !important; }
.cn-game-art {
  position: relative;
  height: 230px;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #111113;
}

.cn-game-art::before,
.cn-game-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cn-game-art::before {
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,7,7,.02) 35%, rgba(7,7,7,.92) 100%),
    linear-gradient(90deg, rgba(34,211,238,.06), transparent 45%);
  z-index: 2;
}

.cn-game-art::after {
  inset: 0;
  border: 1px solid rgba(255,255,255,.055);
  z-index: 3;
}

.cn-game-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .45s ease, filter .45s ease;
}

.cn-game-card:hover .cn-game-art img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.cn-game-art-wide img { object-position: center; }
.cn-game-art-wide.bedrock img { object-position: 70% center; }

.cn-game-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.cn-game-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cn-game-topline h2 { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.cn-game-status { display: inline-flex; align-items: center; gap: 6px; color: #86efac; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.cn-game-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 13px rgba(74,222,128,.7); }
.cn-game-desc { color: #a1a1aa; font-size: 13px; line-height: 1.65; margin-top: 12px; }
.cn-game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.cn-game-tags span { border: 1px solid rgba(63,63,70,.8); border-radius: 999px; padding: 5px 9px; color: #a1a1aa; background: rgba(9,9,11,.6); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cn-game-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; }
.cn-game-action small { color: #71717a; }
.cn-game-action a { display: inline-flex; align-items: center; gap: 8px; color: #001015; background: var(--cn-accent-2); border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 900; }
.cn-game-action a:hover { background: #fff; }

.cn-no-results {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  color: #a1a1aa;
  border: 1px dashed rgba(63,63,70,.8);
  border-radius: 22px;
}
.cn-no-results.is-visible { display: block; }

.cn-game-note {
  max-width: 920px;
  margin: 50px auto 0;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid rgba(34,211,238,.22);
  border-radius: 20px;
  background: rgba(34,211,238,.045);
  color: #a1a1aa;
  line-height: 1.65;
}
.cn-game-note i { color: var(--cn-accent-2); margin-top: 4px; }
.cn-game-note strong { color: #fff; }

@media (max-width: 980px) {
  .cn-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cn-brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .cn-games-hero { padding-top: 66px; }
  .cn-game-library { padding-inline: 16px; }
  .cn-game-grid { grid-template-columns: 1fr; }
  .cn-game-card { min-height: 390px; }
}

/* Dedicated game pages */
.cn-detail-shell {
  min-height: 100vh;
}

.cn-detail-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(34,211,238,.18);
  background: #050506;
}

.cn-detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(.86);
  transform: scale(1.025);
}

.cn-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,4,6,.97) 0%, rgba(4,4,6,.78) 42%, rgba(4,4,6,.30) 72%, rgba(4,4,6,.62) 100%),
    linear-gradient(to top, #070707 0%, rgba(7,7,7,.38) 45%, rgba(7,7,7,.16) 100%);
}

.cn-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.cn-detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 74px;
}

.cn-detail-copy { max-width: 760px; }

.cn-detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 800;
}

.cn-detail-breadcrumb a { color: #67e8f9; }
.cn-detail-breadcrumb a:hover { color: #fff; }

.cn-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(34,211,238,.34);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8,145,178,.13);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.cn-detail-title {
  max-width: 830px;
  margin-top: 22px;
  color: #fff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 950;
  text-wrap: balance;
  text-shadow: 0 14px 54px rgba(0,0,0,.55);
}

.cn-detail-lead {
  max-width: 690px;
  margin-top: 24px;
  color: #d4d4d8;
  font-size: 17px;
  line-height: 1.75;
}

.cn-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.cn-detail-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #e4e4e7;
  background: rgba(9,9,11,.56);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
}

.cn-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cn-detail-art-credit {
  margin-top: 28px;
  color: #71717a;
  font-size: 11px;
}

.cn-detail-plans {
  padding: 92px 24px;
  background: linear-gradient(180deg, #070707, #09090b);
}

.cn-detail-section-head {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.cn-detail-section-head h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 950;
}

.cn-detail-section-head p {
  max-width: 670px;
  margin: 18px auto 0;
  color: #a1a1aa;
  line-height: 1.75;
}

.cn-game-plan-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cn-game-plan {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(63,63,70,.78);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(34,211,238,.10), transparent 34%),
    linear-gradient(160deg, rgba(24,24,27,.88), rgba(8,8,10,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 60px rgba(0,0,0,.2);
  transition: transform .22s ease, border-color .22s ease;
}

.cn-game-plan:hover {
  transform: translateY(-5px);
  border-color: rgba(34,211,238,.45);
}

.cn-game-plan.is-popular {
  border-color: rgba(34,211,238,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 80px rgba(34,211,238,.09);
}

.cn-game-plan-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #a5f3fc;
  background: rgba(34,211,238,.10);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.cn-game-plan h3 {
  margin-top: 18px;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.cn-game-plan-price {
  margin-top: 9px;
  color: #fff;
  font-size: 35px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.cn-game-plan-price span {
  color: #71717a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.cn-game-plan ul {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 19px 0;
  border-top: 1px solid rgba(63,63,70,.62);
  border-bottom: 1px solid rgba(63,63,70,.62);
  color: #a1a1aa;
  font-size: 13px;
}

.cn-game-plan li { display: flex; align-items: flex-start; gap: 9px; }
.cn-game-plan li i { margin-top: 3px; color: #4ade80; font-size: 11px; }

.cn-game-plan a {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #001015;
  background: #22d3ee;
  font-weight: 900;
}

.cn-game-plan a:hover { background: #fff; }

.cn-detail-disclaimer {
  width: min(920px, 100%);
  margin: 34px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(34,211,238,.22);
  border-radius: 18px;
  color: #a1a1aa;
  background: rgba(34,211,238,.045);
  line-height: 1.65;
  text-align: center;
  font-size: 13px;
}

.cn-detail-features {
  padding: 82px 24px;
  border-top: 1px solid rgba(63,63,70,.55);
  background: #070707;
}

.cn-detail-feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cn-detail-feature {
  padding: 24px;
  border: 1px solid rgba(63,63,70,.72);
  border-radius: 20px;
  background: rgba(17,17,19,.74);
}

.cn-detail-feature i { color: #22d3ee; font-size: 19px; }
.cn-detail-feature h3 { margin-top: 15px; color: #fff; font-size: 16px; font-weight: 900; }
.cn-detail-feature p { margin-top: 8px; color: #85858f; font-size: 12px; line-height: 1.65; }

@media (max-width: 980px) {
  .cn-game-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-detail-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-detail-hero::before {
    background:
      linear-gradient(90deg, rgba(4,4,6,.96), rgba(4,4,6,.58)),
      linear-gradient(to top, #070707, rgba(7,7,7,.28) 60%);
  }
}

@media (max-width: 640px) {
  .cn-detail-hero { min-height: 600px; }
  .cn-detail-hero-inner { width: min(100% - 32px, 1240px); padding: 112px 0 56px; }
  .cn-detail-lead { font-size: 15px; }
  .cn-detail-actions a { width: 100%; justify-content: center; }
  .cn-game-plan-grid,
  .cn-detail-feature-grid { grid-template-columns: 1fr; }
  .cn-detail-plans,
  .cn-detail-features { padding-inline: 16px; }
}

/* --- Section divider accent (subtle) --- */
.cn-section-dark { background: #080808 !important; }
