/* Cilithocal — studio shell (glass + scroll themes) */

:root {
  --ci-bg: #12161c;
  --ci-bg-elevated: #1a2028;
  --ci-text: #f2f2f2;
  --ci-muted: #9a9aa3;
  --ci-dim: #5c5c66;
  --ci-signal: rgba(255, 255, 255, 0.72);
  --ci-glow: rgba(255, 255, 255, 0.08);
  --ci-glow-strong: rgba(255, 255, 255, 0.16);
  --ci-ember: rgba(255, 90, 40, 0);
  --ci-ember-mid: rgba(255, 140, 60, 0);
  --ci-glass: rgba(14, 18, 24, 0.52);
  --ci-glass-strong: rgba(10, 14, 18, 0.7);
  --ci-glass-border: rgba(255, 255, 255, 0.12);
  --ci-glass-highlight: rgba(255, 255, 255, 0.06);
  --ci-radius: 12px;
  --ci-nav-h: 64px;
  --ci-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --ci-display: "CharlemagneStd", "Palatino Linotype", Palatino, serif;
  --ci-script: "Italianno", "Segoe Script", cursive;
  --ci-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html.ci-theme-studio {
  --ci-signal: rgba(255, 255, 255, 0.78);
  --ci-glow: rgba(255, 255, 255, 0.1);
  --ci-glow-strong: rgba(255, 255, 255, 0.18);
  --ci-ember: rgba(255, 90, 40, 0);
  --ci-ember-mid: rgba(255, 140, 60, 0);
  --ci-glass-border: rgba(255, 255, 255, 0.12);
}

html.ci-theme-snd {
  --ci-bg: #160c0a;
  --ci-signal: rgba(255, 196, 140, 0.9);
  --ci-glow: rgba(255, 110, 50, 0.14);
  --ci-glow-strong: rgba(255, 140, 60, 0.22);
  --ci-ember: rgba(220, 55, 25, 0.22);
  --ci-ember-mid: rgba(255, 130, 45, 0.16);
  --ci-glass-border: rgba(255, 160, 100, 0.18);
}

@font-face {
  font-family: CharlemagneStd;
  src: url("/libraries/fonts/CharlemagneStd-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #4a4a52 var(--ci-bg);
  scroll-behavior: smooth;
}

body.ci-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ci-font);
  font-weight: 400;
  color: var(--ci-text);
  background: var(--ci-bg);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 0;
}

body.ci-body a {
  font-family: inherit;
  font-weight: 500;
  color: var(--ci-text);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

body.ci-body a:hover {
  color: #fff;
}

body.ci-body h1,
body.ci-body h2,
body.ci-body h3,
body.ci-body h4,
.fCharlemagneStd {
  font-family: var(--ci-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ci-text);
}

/* —— Atmosphere layers —— */
.ci-circuit-field,
.ci-glass-pane,
.ci-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.ci-circuit-field {
  overflow: hidden;
  background: var(--ci-bg);
}

.ci-circuit-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  filter: blur(0.6px);
}

/* Frosted sheet over circuitry — field reads as behind glass */
.ci-glass-pane {
  z-index: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 38%,
      transparent 52%
    ),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(18, 22, 28, 0.22) 42%,
      rgba(18, 22, 28, 0.38) 100%
    );
  backdrop-filter: blur(6px) saturate(1.12);
  -webkit-backdrop-filter: blur(6px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.8s var(--ci-ease);
}

html.ci-theme-snd .ci-glass-pane {
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 180, 120, 0.05) 38%,
      transparent 52%
    ),
    linear-gradient(
      160deg,
      rgba(255, 160, 100, 0.06) 0%,
      rgba(28, 14, 10, 0.26) 42%,
      rgba(22, 12, 10, 0.4) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 190, 140, 0.1);
}

.ci-noise {
  opacity: 0.04;
  mix-blend-mode: soft-light;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


.ci-main {
  position: relative;
  z-index: 1;
  padding-top: var(--ci-nav-h);
  min-height: 60vh;
}

/* —— Glass utilities —— */
.ci-glass {
  background: var(--ci-glass);
  border: 1px solid var(--ci-glass-border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 var(--ci-glass-highlight),
    0 10px 40px rgba(0, 0, 0, 0.35);
}

.ci-panel {
  border-radius: var(--ci-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.ci-muted {
  color: var(--ci-muted);
}

.ci-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ci-muted);
  margin: 0 0 0.75rem;
}

.ci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--ci-glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ci-text) !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ci-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Primary — slate fill, light label (never white-on-white) */
.ci-btn-solid {
  background: rgba(232, 236, 242, 0.92);
  color: #12161c !important;
  border-color: rgba(232, 236, 242, 0.95);
}

.ci-btn-solid:hover {
  background: #fff;
  color: #0a0c10 !important;
  border-color: #fff;
}

.ci-btn-warm {
  background: linear-gradient(135deg, #c43a22, #e07030);
  border-color: transparent;
  color: #fff !important;
}

.ci-btn-warm:hover {
  background: linear-gradient(135deg, #d4452b, #f08a40);
  color: #fff !important;
}

/* —— Top bar —— */
.ci-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  height: var(--ci-nav-h);
  display: flex;
  align-items: center;
  background: var(--ci-glass-strong);
  border-bottom: 1px solid var(--ci-glass-border);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

html.ci-theme-snd .ci-topbar {
  box-shadow: 0 0 40px rgba(220, 60, 30, 0.08);
}

.ci-topbar__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ci-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: #fff;
}

.ci-brand__mark {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-family: var(--ci-display);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ci-brand__word {
  font-family: var(--ci-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.ci-brand__product {
  display: none;
  align-items: center;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--ci-glass-border);
}

.ci-brand__product.is-visible {
  display: inline-flex;
}

.ci-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1rem;
  flex: 1;
}

.ci-nav__link {
  position: relative;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ci-muted);
  border-radius: 8px;
}

.ci-nav__link:hover,
.ci-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ci-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.ci-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.ci-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ci-muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ci-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ci-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ci-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ci-text);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ci-account-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ci-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .ci-brand__word {
    display: none;
  }

  .ci-nav-toggle {
    display: inline-grid;
  }

  .ci-nav {
    position: fixed;
    top: var(--ci-nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.75rem;
    background: var(--ci-glass-strong);
    border-bottom: 1px solid var(--ci-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ci-ease), opacity 0.3s ease;
  }

  .ci-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ci-nav__link {
    padding: 0.85rem 1rem;
  }

  .ci-account-btn span.label {
    display: none;
  }
}

/* —— Account offcanvas —— */
.ci-offcanvas.offcanvas {
  background: rgba(10, 10, 12, 0.92);
  border-left: 1px solid var(--ci-glass-border);
  color: var(--ci-text);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  width: min(380px, 92vw);
}

.ci-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--ci-glass-border);
}

.ci-offcanvas .offcanvas-title {
  font-family: var(--ci-display);
  letter-spacing: 0.06em;
}

.ci-offcanvas .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.ci-account-user {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--ci-glass-border);
  border-radius: var(--ci-radius);
  margin-bottom: 1rem;
  font-family: var(--ci-display);
  letter-spacing: 0.04em;
}

.ci-account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ci-account-list a,
.ci-account-list button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ci-text);
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
}

.ci-account-list a:hover,
.ci-account-list button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ci-glass-border);
  color: #fff;
}

.ci-account-list .is-placeholder {
  opacity: 0.55;
}

.ci-account-list .is-placeholder small {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--ci-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ci-login-form .input-group-text {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ci-glass-border);
  color: var(--ci-muted);
}

.ci-login-form .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ci-glass-border);
  color: var(--ci-text);
}

.ci-login-form .form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

.ci-login-form .form-control::placeholder {
  color: var(--ci-dim);
}

.ci-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* —— Logo (flat eclipse hero) —— */
.ci-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  user-select: none;
}

.ci-logo__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Height tracks page width so the hero banner scales as a unit */
  min-height: clamp(220px, 52vw, 820px);
  padding: 0 clamp(0.5rem, 2.5vw, 2rem);
}

.ci-logo__eclipse-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(140px, 42vw, 720px);
  height: clamp(140px, 42vw, 720px);
  /* Slightly right of center so the moon sits under LITHOCAL */
  transform: translate(-28%, -50%);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.ci-logo__eclipse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Sun fades in — no scale / motion */
.ci-logo__sun {
  opacity: 0;
  transition: opacity 0.6s var(--ci-ease);
}

.ci-logo__moon-g {
  transform-box: view-box;
  transform-origin: center;
  /* Visible from the start; drifts slowly into thin eclipse */
  opacity: 1;
  transform: translate(118px, 0);
  transition: transform 5s var(--ci-ease);
}

.ci-logo__mark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 96vw);
  max-width: 100%;
  padding: 0;
  mix-blend-mode: difference;
  /* Root scale: all wordmark sizes are ems of this — tracks page width */
  font-size: clamp(6px, 1.85vw, 26px);
}

.ci-logo__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
}

.ci-logo__word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

/* Square frame around Ci — ~2× LITHOCAL */
.ci-logo__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.2em;
  width: 1.12em;
  height: 1.12em;
  padding: 0;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  margin-right: 0;
  flex-shrink: 0;
  line-height: 1;
}

.ci-logo__box-frame {
  position: absolute;
  inset: 0;
  border: 0.035em solid #fff;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease, transform 0.8s var(--ci-ease);
  pointer-events: none;
}

.ci-logo__ci {
  font-family: var(--ci-display);
  font-size: 0.8em;
  line-height: 0.9;
  color: #fff;
  opacity: 0;
  transform: translateY(0.04em);
  transition: opacity 0.85s ease, transform 0.85s var(--ci-ease);
  display: block;
}

.ci-logo__lithocal {
  font-family: var(--ci-display);
  font-size: 6.1em;
  letter-spacing: 0.03em;
  line-height: 0.92;
  color: #fff;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.35s var(--ci-ease), opacity 0.3s ease;
  white-space: nowrap;
}

.ci-logo__script {
  position: relative;
  z-index: 1;
  /* Tucked up under LITHOCAL, left edge against the Ci box */
  margin-top: -0.05em;
  margin-left: 0;
  padding-left: 0;
  font-family: var(--ci-script);
  font-size: 3.2em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(0.15em);
  transition: opacity 0.8s ease, transform 0.8s var(--ci-ease);
  text-align: left;
  white-space: nowrap;
}

/* Stages */
.ci-logo.is-sun .ci-logo__sun,
.ci-logo.is-ready .ci-logo__sun {
  opacity: 1;
}

/* Thin eclipse — slow settle from the opening frame */
.ci-logo.is-eclipse .ci-logo__moon-g,
.ci-logo.is-ready .ci-logo__moon-g {
  opacity: 1;
  transform: translate(11px, 0);
}

.ci-logo.is-etching .ci-logo__lithocal,
.ci-logo.is-ready .ci-logo__lithocal {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.ci-logo.is-scripted .ci-logo__script,
.ci-logo.is-ready .ci-logo__script {
  opacity: 1;
  transform: none;
}

.ci-logo.is-boxed .ci-logo__box-frame,
.ci-logo.is-ready .ci-logo__box-frame {
  opacity: 1;
  transform: none;
}

.ci-logo.is-boxed .ci-logo__ci,
.ci-logo.is-ready .ci-logo__ci {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ci-logo__lithocal,
  .ci-logo__script,
  .ci-logo__box-frame,
  .ci-logo__ci,
  .ci-logo__sun,
  .ci-logo__moon-g {
    transition: none !important;
    animation: none !important;
  }

  .ci-logo .ci-logo__lithocal,
  .ci-logo .ci-logo__script,
  .ci-logo .ci-logo__box-frame,
  .ci-logo .ci-logo__ci,
  .ci-logo .ci-logo__sun {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .ci-logo .ci-logo__moon-g {
    opacity: 1;
    transform: translate(11px, 0);
  }
}

/* —— Home chapters —— */
.ci-hero {
  min-height: calc(100vh - var(--ci-nav-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1rem, 2vh, 2rem) 0 2rem;
  max-width: none;
  width: 100%;
  margin: 0;
}

.ci-hero__copy {
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  max-width: 34rem;
}

.ci-hero__copy p {
  color: var(--ci-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin: 0 0 1.5rem;
}

.ci-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ci-scroll-hint {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--ci-dim);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease 5s;
}

.ci-logo.is-ready ~ .ci-scroll-hint,
.ci-hero.is-ready .ci-scroll-hint {
  opacity: 1;
}

.ci-chapter {
  position: relative;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}

.ci-chapter__glass {
  border-radius: calc(var(--ci-radius) + 6px);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--ci-glass);
  border: 1px solid var(--ci-glass-border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 var(--ci-glass-highlight),
    0 16px 48px rgba(0, 0, 0, 0.28);
}

html.ci-theme-snd .ci-chapter__glass {
  background: rgba(28, 14, 10, 0.45);
  border-color: rgba(255, 160, 100, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 190, 140, 0.08),
    0 16px 48px rgba(40, 10, 0, 0.35);
}

.ci-chapter__head {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ci-chapter__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.ci-chapter__head p {
  margin: 0;
  color: var(--ci-muted);
  font-size: 1.05rem;
}

.ci-game-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .ci-game-feature {
    grid-template-columns: 1fr;
  }
}

.ci-game-media {
  position: relative;
  border-radius: calc(var(--ci-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--ci-glass-border);
  background: #111;
  aspect-ratio: 16 / 10;
}

.ci-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.ci-game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.ci-game-copy h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.ci-game-copy p {
  color: var(--ci-muted);
  margin: 0 0 1.25rem;
}

.ci-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.ci-store-row img {
  height: 40px;
  width: auto;
}

.ci-beat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .ci-beat-grid {
    grid-template-columns: 1fr;
  }
}

.ci-beat {
  padding: 1.25rem;
  border-radius: var(--ci-radius);
  border: 1px solid var(--ci-glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.ci-beat h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.ci-beat p {
  margin: 0;
  color: var(--ci-muted);
  font-size: 0.95rem;
}

.ci-coming {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--ci-radius);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--ci-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ci-coming strong {
  color: var(--ci-text);
  font-family: var(--ci-display);
  letter-spacing: 0.04em;
}

.ci-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .ci-about-grid {
    grid-template-columns: 1fr;
  }
}

.ci-contact-card {
  max-width: 36rem;
}

.ci-contact-card p {
  color: var(--ci-muted);
}

/* —— Inner pages —— */
.ci-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.ci-page--wide {
  max-width: 1280px;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
}

.ci-page--wide .ci-chapter__head {
  max-width: none;
  margin-bottom: 1.5rem;
}

.ci-page--wide .ci-chapter__head h1 {
  margin-bottom: 0.5rem;
}

.ci-page--wide .ci-chapter__glass > p {
  color: var(--ci-muted);
  max-width: 48rem;
}

/* —— Profile —— */
.ci-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.ci-profile__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ci-profile__panel h2 {
  font-family: var(--ci-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  color: var(--ci-text);
}

.ci-profile__panel .form-label {
  color: var(--ci-text);
}

.ci-profile__panel .form-text,
.ci-profile__panel .ci-muted {
  color: var(--ci-dim);
}

.ci-profile__value {
  color: var(--ci-text);
  word-break: break-word;
}

.ci-profile__panel .form-check-label {
  color: var(--ci-muted);
}

.ci-profile__panel .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

@media (max-width: 900px) {
  .ci-profile__grid {
    grid-template-columns: 1fr;
  }
}

.ci-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.ci-page p {
  color: var(--ci-muted);
}

.ci-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 800px) {
  .ci-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .ci-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ci-media-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--ci-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ci-text) !important;
  font-size: 0.92rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ci-media-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
}

.ci-media-card i {
  color: var(--ci-muted);
  width: 1.1rem;
  text-align: center;
}

/* —— Footer —— */
.ci-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  border-top: 1px solid var(--ci-glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ci-muted);
}

.ci-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .ci-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.ci-footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: #fff;
}

.ci-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ci-footer li {
  margin-bottom: 0.45rem;
}

.ci-footer a {
  color: var(--ci-muted);
}

.ci-footer a:hover {
  color: #fff;
}

.ci-footer__mark {
  max-width: 120px;
  opacity: 0.85;
}

.ci-footer__copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-family: var(--ci-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ci-dim);
}

/* Bootstrap dark overrides for modals on this shell */
body.ci-body .modal-content {
  background: #12141a;
  color: var(--ci-text);
  border: 1px solid var(--ci-glass-border);
}

body.ci-body .modal-header,
body.ci-body .modal-footer {
  border-color: var(--ci-glass-border);
}

body.ci-body .btn-close {
  filter: invert(1);
}

body.ci-body .btn-dark1 {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--ci-glass-border);
}

body.ci-body .btn-dark1:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.linkWhiteGlow {
  color: var(--ci-muted) !important;
}

.linkWhiteGlow:hover {
  color: #fff !important;
}

/* —— Set 'N Det product page (inherits shell) —— */
body.ci-page-snd .ci-page.ci-snd-page {
  /* Match home .ci-chapter glass column */
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1rem, 4vw, 3rem) 4rem;
  box-sizing: border-box;
}

body.ci-page-snd .ci-snd-glass h2 {
  color: var(--ci-text);
  margin-top: 0;
}

body.ci-page-snd .ci-snd-glass p,
body.ci-page-snd .ci-snd-glass li {
  color: var(--ci-muted);
}

body.ci-page-snd .ci-snd-glass ul {
  padding-left: 1.1rem;
}

body.ci-page-snd .ci-snd-glass li + li {
  margin-top: 0.75rem;
}

body.ci-page-snd .ci-snd-store-row,
body.ci-page-snd .ci-snd-hero-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.ci-page-snd .ci-snd-hero-stores {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
}

body.ci-page-snd .ci-snd-platforms {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--ci-text) !important;
  margin: 0;
}

body.ci-page-snd .hero-image {
  height: 50%;
  min-height: min(70vh, 640px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 160, 100, 0.18);
}

body.ci-page-snd .hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  width: 90%;
}

body.ci-page-snd .ci-main .container-fluid,
body.ci-page-snd .ci-main .container {
  color: var(--ci-text);
}

body.ci-page-snd .ci-main img.img-fluid {
  border: 1px solid rgba(255, 160, 100, 0.25) !important;
  border-radius: 10px !important;
}

.ci-brand__product a,
.ci-brand__product img {
  display: block;
  max-height: 32px;
  width: auto;
}

/* Dark form controls on inner pages */
body.ci-body .form-control,
body.ci-body .form-select,
body.ci-body textarea.form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ci-glass-border);
  color: var(--ci-text);
}

body.ci-body .form-control:focus,
body.ci-body .form-select:focus,
body.ci-body textarea.form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

body.ci-body .form-label,
body.ci-body .form-text {
  color: var(--ci-muted);
}

body.ci-body .alert {
  border-radius: 10px;
  border: 1px solid var(--ci-glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ci-text);
}

body.ci-body .alert-success {
  background: rgba(60, 160, 110, 0.16);
  border-color: rgba(90, 200, 140, 0.35);
  color: #d8f5e6;
}

body.ci-body .alert-danger {
  background: rgba(200, 70, 70, 0.16);
  border-color: rgba(240, 120, 120, 0.35);
  color: #f8d4d4;
}

body.ci-body .alert-warning {
  background: rgba(255, 170, 70, 0.12);
  border-color: rgba(255, 180, 90, 0.32);
  color: #ffe4c4;
}

body.ci-body .card {
  background: var(--ci-glass);
  border: 1px solid var(--ci-glass-border);
  border-radius: calc(var(--ci-radius) + 6px);
  color: var(--ci-text);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 var(--ci-glass-highlight),
    0 16px 48px rgba(0, 0, 0, 0.28);
}

body.ci-body .card-title {
  color: var(--ci-text);
}

body.ci-body .card-subtitle,
body.ci-body .text-muted {
  color: var(--ci-muted) !important;
}

body.ci-body .card .form-check-label,
body.ci-body .form-check-label {
  color: var(--ci-text);
}

body.ci-body .btn-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--ci-glass-border);
}

body.ci-body .btn-dark:hover,
body.ci-body .btn-dark:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

body.ci-body .btn-dark:disabled,
body.ci-body .btn-dark.disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ci-muted);
  border-color: var(--ci-glass-border);
  opacity: 1;
}

body.ci-body .btn-outline-secondary {
  color: var(--ci-muted);
  border-color: var(--ci-glass-border);
  background: transparent;
}

body.ci-body .btn-outline-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

body.ci-body code {
  color: #e8e8ec;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ci-glass-border);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}

body.ci-body a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: var(--ci-signal);
}

body.ci-body a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
  color: #fff;
}

.ci-mfa-recovery-code {
  display: inline-block;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ci-glass-border);
  border-radius: 8px;
  color: var(--ci-text);
  word-break: break-all;
}

/* Quiet zone so scanners can read QR on dark glass backgrounds */
#qrcode,
[data-mfa-qr] {
  display: inline-block;
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 0;
  margin-bottom: 1rem;
}

#qrcode img,
#qrcode canvas,
#qrcode table,
[data-mfa-qr] img,
[data-mfa-qr] canvas,
[data-mfa-qr] table {
  display: block;
  background: #ffffff;
  margin: 0;
  padding: 0;
  border: 0;
}

