/* ============================================================
   SAGES & STONES — Enhanced Stylesheet v3.0
   Mobile-first • Cross-browser • Safari/Firefox/Chrome/Edge
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  --bg: #fbfaf8;
  --ink: #1f2328;
  --muted: rgba(31,35,40,.70);
  --border: rgba(31,35,40,.10);
  --sage: #2f5d50;
  --sage-light: #3a7464;
  --lav: #6b5b95;
  --lav-light: #8471b0;
  --gold: #c9a227;
  --gold-light: #e0b840;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(17,24,39,.10);
  --shadow2: 0 4px 18px rgba(17,24,39,.07);
  --shadow3: 0 2px 8px rgba(17,24,39,.06);
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --max: 1120px;
  --topbar-h: 66px;
  --transition: 0.18s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 20% 0%, rgba(107,91,149,.09), transparent 55%),
    radial-gradient(ellipse 900px 500px at 85% 5%, rgba(47,93,80,.09), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #f5f3ee 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px 20px; }

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(251,250,248,.90);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .topbar { background: rgba(251,250,248,.98); }
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 14px;
}

/* ── Brand ── */
.brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sage), var(--lav));
  box-shadow: var(--shadow3);
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text h1 { font-size: 14px; font-weight: 800; letter-spacing: .2px; line-height: 1.2; margin: 0; }
.brand-text p { font-size: 11px; color: var(--muted); margin-top: 1px; line-height: 1; }

/* ── Desktop Nav ── */
.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.nav a {
  font-size: 13px;
  font-weight: 700;
  color: rgba(31,35,40,.72);
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  -webkit-transition: background var(--transition), border-color var(--transition), color var(--transition);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav a:hover { background: rgba(47,93,80,.08); border-color: rgba(47,93,80,.12); text-decoration: none; }
.nav a.active { background: -webkit-linear-gradient(left, var(--sage), var(--lav)); background: linear-gradient(90deg, var(--sage), var(--lav)); color: #fff; border-color: transparent; }
.nav a.karma-link { background: linear-gradient(135deg, #1a1a1a, #2a1f0e); color: #d6b97a; border-color: rgba(214,185,122,.25); }
.nav a.karma-link:hover { background: linear-gradient(135deg, #222, #3a2a12); border-color: rgba(214,185,122,.40); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  cursor: pointer;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background var(--transition);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(47,93,80,.08); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  -webkit-transition: -webkit-transform 0.22s ease, opacity 0.22s ease;
  transition: transform 0.22s ease, opacity 0.22s ease;
  -webkit-transform-origin: center;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { -webkit-transform: translateY(7px) rotate(45deg); transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; -webkit-transform: scaleX(0); transform: scaleX(0); }
.hamburger.open span:nth-child(3) { -webkit-transform: translateY(-7px) rotate(-45deg); transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(251,250,248,.98);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 16px;
  box-shadow: 0 8px 32px rgba(17,24,39,.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: rgba(31,35,40,.80);
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  margin-bottom: 4px;
  -webkit-transition: background var(--transition), border-color var(--transition);
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.mobile-nav a:hover { background: rgba(47,93,80,.08); border-color: rgba(47,93,80,.12); }
.mobile-nav a.active { background: linear-gradient(90deg, var(--sage), var(--lav)); color: #fff; }
.mobile-nav a.karma-link { background: linear-gradient(135deg, #1a1a1a, #2a1f0e); color: #d6b97a; border-color: rgba(214,185,122,.25); }

/* ── Hero ── */
.hero {
  margin: 22px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.70) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 260px; height: 260px;
  border-radius: 999px;
  background: rgba(107,91,149,.10);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -150px -150px auto;
  width: 320px; height: 320px;
  border-radius: 999px;
  background: rgba(47,93,80,.10);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 32px 30px; }

.kicker {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(31,35,40,.65);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--gold);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-animation: pulse-dot 2.5s ease-in-out infinite;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@-webkit-keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.5); }
  50% { box-shadow: 0 0 0 5px rgba(201,162,39,0); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.5); }
  50% { box-shadow: 0 0 0 5px rgba(201,162,39,0); }
}
.h-title {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}
.h-sub { color: var(--muted); max-width: 720px; font-size: 16px; line-height: 1.6; }

/* ── Buttons ── */
.cta-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 18px;
}
.btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  -webkit-transition: -webkit-transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { -webkit-transform: translateY(1px); transform: translateY(1px); opacity: .9; }
.btn:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 2px 8px rgba(47,93,80,.25); }
.btn-primary:hover { background: var(--sage-light); box-shadow: 0 4px 14px rgba(47,93,80,.30); }
.btn-secondary { background: rgba(255,255,255,.80); border-color: var(--border); color: rgba(31,35,40,.85); box-shadow: var(--shadow3); }
.btn-secondary:hover { background: rgba(107,91,149,.07); border-color: rgba(107,91,149,.18); }
.btn-soft { background: rgba(47,93,80,.10); border-color: rgba(47,93,80,.16); color: rgba(31,35,40,.88); }
.btn-soft:hover { background: rgba(47,93,80,.15); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #a07a10); color: #fff; box-shadow: 0 3px 12px rgba(201,162,39,.30); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), #c09010); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; -webkit-transform: none; transform: none; box-shadow: none; }

/* ── Badges ── */
.badge-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 7px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.72); color: rgba(31,35,40,.72); }
.badge.sage { background: rgba(47,93,80,.11); border-color: rgba(47,93,80,.20); color: var(--sage); }
.badge.lav { background: rgba(107,91,149,.11); border-color: rgba(107,91,149,.22); color: var(--lav); }
.badge.gold { background: rgba(201,162,39,.11); border-color: rgba(201,162,39,.25); color: #7a5f10; }

/* ── Section title ── */
.section-title { margin: 26px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }

/* ── Grid ── */
.grid { display: -ms-grid; display: grid; gap: 16px; }
.grid-3 { -ms-grid-columns: 1fr 16px 1fr 16px 1fr; grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { -ms-grid-columns: 1fr 16px 1fr; grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { -ms-grid-columns: 1fr 16px 1fr 16px 1fr 16px 1fr; grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
  padding: 22px;
  -webkit-transition: box-shadow var(--transition), -webkit-transform var(--transition);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card ul { margin: 8px 0 0 0; color: var(--muted); font-size: 14px; }
.card ul li { padding: 4px 0 4px 18px; position: relative; line-height: 1.5; }
.card ul li::before { content: "•"; position: absolute; left: 4px; color: var(--gold); }

/* feature cards */
.feature-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
  padding: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  -webkit-transition: box-shadow var(--transition), -webkit-transform var(--transition);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.feature-icon { font-size: 32px; line-height: 1; width: 52px; height: 52px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; border-radius: 14px; background: rgba(47,93,80,.08); -ms-flex-negative: 0; flex-shrink: 0; }
.feature-card h3 { font-size: 16px; font-weight: 800; margin: 0; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }

/* ── Forms ── */
.form { display: -ms-grid; display: grid; gap: 14px; }
label { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgba(31,35,40,.68); display: block; margin-bottom: 4px; }
input, textarea, select {
  width: 100%;
  border: 1.5px solid rgba(31,35,40,.14);
  border-radius: 13px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  -webkit-transition: border-color var(--transition), box-shadow var(--transition);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(107,91,149,.40); box-shadow: 0 0 0 4px rgba(107,91,149,.12); }
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: rgba(31,35,40,.38); }
input::-moz-placeholder, textarea::-moz-placeholder { color: rgba(31,35,40,.38); }
input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: rgba(31,35,40,.38); }

/* ── Output ── */
.output { display: none; margin-top: 14px; }
.output.active { display: block; }

.callout { border-left: 3px solid var(--gold); background: rgba(255,255,255,.65); border-radius: 0 13px 13px 0; padding: 14px 16px; color: rgba(31,35,40,.80); font-size: 14px; line-height: 1.6; }
.kv { display: -ms-grid; display: grid; gap: 10px; margin-top: 4px; }
.kv .row { padding: 14px 16px; border-radius: 13px; border: 1px solid var(--border); background: rgba(255,255,255,.75); }
.kv .row b { color: var(--ink); font-size: 14px; }
.kv .row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.output-card { background: rgba(255,255,255,.80); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; margin-top: 10px; }
.output-card h4 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); margin: 0 0 8px; }
.output-card p { font-size: 14px; color: var(--muted); margin: 0 0 6px; line-height: 1.6; }
.output-card ul { margin: 4px 0 0 0; padding: 0; list-style: none; }
.output-card ul li { font-size: 14px; color: var(--muted); padding: 3px 0 3px 16px; position: relative; }
.output-card ul li::before { content: "✦"; position: absolute; left: 0; font-size: 9px; color: var(--gold); top: 5px; }

hr.sep { border: none; height: 1px; background: var(--border); margin: 18px 0; }

.disclaimer { border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(255,255,255,.55); padding: 13px 15px; color: rgba(31,35,40,.65); font-size: 12px; line-height: 1.55; }

/* ── Stats ── */
.stats-row { display: -webkit-box; display: -ms-flexbox; display: flex; gap: 20px; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.stat { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 100px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--sage); letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Spinner ── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; -webkit-animation: spin .6s linear infinite; animation: spin .6s linear infinite; vertical-align: middle; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

/* ── Toast ── */
.toast { position: fixed; bottom: 20px; left: 50%; -webkit-transform: translateX(-50%) translateY(20px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: 999px; z-index: 9999; opacity: 0; pointer-events: none; -webkit-transition: opacity .25s ease, -webkit-transform .25s ease; transition: opacity .25s ease, transform .25s ease; white-space: nowrap; }
.toast.show { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
footer { margin: 32px 0 14px; color: rgba(31,35,40,.55); font-size: 13px; text-align: center; padding-top: 20px; border-top: 1px solid var(--border); }
footer a { text-decoration: underline; color: var(--sage); }

/* ── Fade-in ── */
.fade-in { opacity: 0; -webkit-transform: translateY(18px); transform: translateY(18px); -webkit-transition: opacity .5s ease, -webkit-transform .5s ease; transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .hamburger { display: -webkit-box; display: -ms-flexbox; display: flex; }
  .topbar-inner { padding: 0 16px; }
  .wrap { padding: 18px 16px; }
  .hero-inner { padding: 22px 18px; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
  .cta-row .btn { width: 100%; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
}
@media (max-width: 480px) {
  :root { --topbar-h: 60px; }
  .brand-text p { display: none; }
  .mark { width: 36px; height: 36px; border-radius: 11px; }
  .h-title { font-size: clamp(22px, 7vw, 30px); }
  .h-sub { font-size: 15px; }
  .card { padding: 16px; }
  .section-title { font-size: 17px; }
  .btn { font-size: 13px; padding: 10px 14px; }
}
@media (max-width: 360px) {
  .wrap { padding: 14px 12px; }
  .card { padding: 14px; }
}

/* ============================================================
   KARMA CASINO — Dark Luxe Theme
   ============================================================ */
.kc-body {
  background-color: #0f0d09;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(214,185,122,.07), transparent 60%),
    radial-gradient(ellipse 80% 80% at 80% 80%, rgba(107,91,149,.08), transparent 60%),
    linear-gradient(180deg, #0f0d09 0%, #1a1510 60%, #0f0d09 100%);
  color: #e8e2d6;
  min-height: 100vh;
}
.kc-body .topbar { background: rgba(15,13,9,.88); border-bottom-color: rgba(214,185,122,.12); }
.kc-body .brand-text h1 { color: #e8e2d6; }
.kc-body .brand-text p { color: rgba(232,226,214,.55); }
.kc-body .hamburger { background: rgba(255,255,255,.07); border-color: rgba(214,185,122,.20); }
.kc-body .hamburger span { background: #d6b97a; }
.kc-body .mobile-nav { background: rgba(15,13,9,.97); border-bottom-color: rgba(214,185,122,.12); }
.kc-body .mobile-nav a { color: rgba(232,226,214,.80); }
.kc-body .mobile-nav a:hover { background: rgba(214,185,122,.08); border-color: rgba(214,185,122,.15); }
.kc-body .mobile-nav a.active { background: linear-gradient(135deg, #c9a227, #6b5b95); color: #fff; }
.kc-body footer { border-top-color: rgba(214,185,122,.12); color: rgba(232,226,214,.45); }
.kc-body footer a { color: #d6b97a; }

#kc-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.kc-wrap { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; position: relative; z-index: 1; }

.kc-header { text-align: center; padding: 20px 0 10px; }
.kc-title { font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -.02em; color: #d6b97a; text-shadow: 0 0 40px rgba(214,185,122,.25); margin-bottom: 6px; }
.kc-subtitle { font-size: 14px; color: rgba(232,226,214,.60); }

/* Marquee ticker */
.kc-ticker { background: rgba(214,185,122,.07); border: 1px solid rgba(214,185,122,.14); border-radius: 999px; overflow: hidden; padding: 8px 0; margin: 14px 0; }
.kc-ticker-inner { display: -webkit-box; display: -ms-flexbox; display: flex; white-space: nowrap; -webkit-animation: ticker 20s linear infinite; animation: ticker 20s linear infinite; }
.kc-ticker-inner span { display: inline-block; padding: 0 32px; font-size: 13px; font-weight: 700; color: #d6b97a; letter-spacing: .05em; }
@-webkit-keyframes ticker { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); } }
@keyframes ticker { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); } }

/* Machine */
.kc-machine {
  background: linear-gradient(160deg, rgba(42,36,28,.95) 0%, rgba(22,18,14,.98) 100%);
  border: 1px solid rgba(214,185,122,.20);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: 0 0 60px rgba(0,0,0,.5), 0 0 120px rgba(214,185,122,.04), inset 0 1px 0 rgba(214,185,122,.10);
  position: relative;
  overflow: hidden;
}
.kc-machine::before { content: ""; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(180deg, rgba(214,185,122,.04) 0%, transparent 40%); pointer-events: none; }

/* Stats bar */
.kc-stats-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin-bottom: 20px; padding: 12px 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(214,185,122,.12); border-radius: 14px; gap: 12px; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.kc-stat { text-align: center; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 60px; }
.kc-stat-num { font-size: 22px; font-weight: 800; color: #d6b97a; line-height: 1; }
.kc-stat-lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(232,226,214,.45); margin-top: 3px; }

/* Reels */
.kc-slot { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.kc-reel { width: 72px; height: 96px; overflow: hidden; border-radius: 12px; border: 2px solid rgba(214,185,122,.25); background: rgba(0,0,0,.55); position: relative; -ms-flex-negative: 0; flex-shrink: 0; }
.kc-reel.lit { border-color: #d6b97a; box-shadow: 0 0 14px rgba(214,185,122,.45), inset 0 0 10px rgba(214,185,122,.07); }
.kc-reel-strip { position: absolute; top: 0; left: 0; right: 0; will-change: top; }
.kc-symbol { height: 96px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; font-size: 38px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.kc-symbol.letter { font-size: 28px; font-weight: 900; color: #d6b97a; text-shadow: 0 0 12px rgba(214,185,122,.6); font-family: Georgia, 'Times New Roman', serif; }
.kc-reel::before, .kc-reel::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; z-index: 2; pointer-events: none; }
.kc-reel::before { top: 0; background: -webkit-linear-gradient(top, rgba(0,0,0,.7), transparent); background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent); }
.kc-reel::after { bottom: 0; background: -webkit-linear-gradient(bottom, rgba(0,0,0,.7), transparent); background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.kc-win-line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(214,185,122,.15); -webkit-transform: translateY(-50%); transform: translateY(-50%); pointer-events: none; z-index: 3; -webkit-transition: background .3s ease, box-shadow .3s ease; transition: background .3s ease, box-shadow .3s ease; }
.kc-win-line.active { background: rgba(214,185,122,.70); box-shadow: 0 0 10px rgba(214,185,122,.50); }

/* Spin button */
.kc-spin-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #c9a227 0%, #8f6f2a 50%, #c9a227 100%);
  background-size: 200% auto;
  color: #1a1207;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  border: none;
  cursor: pointer;
  -webkit-transition: background-position .4s ease, box-shadow .2s ease, -webkit-transform .12s ease, opacity .2s ease;
  transition: background-position .4s ease, box-shadow .2s ease, transform .12s ease, opacity .2s ease;
  box-shadow: 0 4px 20px rgba(201,162,39,.30);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.kc-spin-btn:hover:not(:disabled) { background-position: right center; box-shadow: 0 6px 28px rgba(201,162,39,.40); }
.kc-spin-btn:active:not(:disabled) { -webkit-transform: translateY(1px); transform: translateY(1px); }
.kc-spin-btn:disabled { opacity: .5; cursor: not-allowed; -webkit-transform: none; transform: none; }

/* Result */
.kc-result { min-height: 56px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 4px; margin: 14px 0 0; text-align: center; }
.kc-result-title { font-size: 18px; font-weight: 800; color: #d6b97a; opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); -webkit-transition: opacity .4s ease, -webkit-transform .4s ease; transition: opacity .4s ease, transform .4s ease; }
.kc-result-title.show { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
.kc-result-msg { font-size: 14px; color: rgba(232,226,214,.75); opacity: 0; -webkit-transform: translateY(6px); transform: translateY(6px); -webkit-transition: opacity .4s ease .1s, -webkit-transform .4s ease .1s; transition: opacity .4s ease .1s, transform .4s ease .1s; }
.kc-result-msg.show { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

/* Reading box */
.kc-reading-box { display: none; margin-top: 16px; background: rgba(201,162,39,.07); border: 1px solid rgba(214,185,122,.22); border-radius: 16px; padding: 18px; text-align: left; -webkit-animation: fadeSlideUp .4s ease; animation: fadeSlideUp .4s ease; }
.kc-reading-box.show { display: block; }
.kc-reading-box h4 { font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: #d6b97a; margin: 0 0 10px; }
.kc-reading-box p { font-size: 14px; color: rgba(232,226,214,.80); line-height: 1.65; margin: 0 0 8px; }
.kc-reading-box p:last-child { margin: 0; }
@-webkit-keyframes fadeSlideUp { from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }
@keyframes fadeSlideUp { from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); } to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } }

/* Machine glow */
.kc-machine.win-glow { -webkit-animation: machineGlow 1.6s ease-in-out 3; animation: machineGlow 1.6s ease-in-out 3; }
@-webkit-keyframes machineGlow { 0%,100% { box-shadow: 0 0 60px rgba(0,0,0,.5), 0 0 120px rgba(214,185,122,.04); } 50% { box-shadow: 0 0 60px rgba(0,0,0,.3), 0 0 80px rgba(214,185,122,.25), 0 0 120px rgba(214,185,122,.10); } }
@keyframes machineGlow { 0%,100% { box-shadow: 0 0 60px rgba(0,0,0,.5), 0 0 120px rgba(214,185,122,.04); } 50% { box-shadow: 0 0 60px rgba(0,0,0,.3), 0 0 80px rgba(214,185,122,.25), 0 0 120px rgba(214,185,122,.10); } }

/* Paytable */
.kc-paytable { background: rgba(0,0,0,.3); border: 1px solid rgba(214,185,122,.12); border-radius: 18px; padding: 20px; margin-top: 20px; }
.kc-paytable h3 { font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: #d6b97a; margin: 0 0 14px; text-align: center; }
.kc-pay-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 6px; -webkit-transition: background .2s ease; transition: background .2s ease; gap: 8px; }
.kc-pay-row:hover { background: rgba(214,185,122,.05); border-color: rgba(214,185,122,.10); }
.kc-pay-row:last-child { margin-bottom: 0; }
.kc-pay-symbols { font-size: 16px; letter-spacing: 3px; -ms-flex-negative: 0; flex-shrink: 0; }
.kc-pay-desc { font-size: 12px; color: rgba(232,226,214,.65); -webkit-box-flex: 1; -ms-flex: 1; flex: 1; padding: 0 8px; }
.kc-pay-pts { font-size: 13px; font-weight: 800; color: #d6b97a; white-space: nowrap; -ms-flex-negative: 0; flex-shrink: 0; }

/* History */
.kc-history { background: rgba(0,0,0,.3); border: 1px solid rgba(214,185,122,.12); border-radius: 18px; padding: 20px; margin-top: 16px; }
.kc-history h3 { font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: #d6b97a; margin: 0 0 12px; }
.kc-history-list { display: -ms-grid; display: grid; gap: 5px; }
.kc-history-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.03); font-size: 12px; gap: 8px; }
.kc-history-symbols { letter-spacing: 2px; font-size: 14px; }
.kc-history-pts { color: #d6b97a; font-weight: 700; white-space: nowrap; }
.kc-history-empty { font-size: 13px; color: rgba(232,226,214,.35); text-align: center; padding: 10px; }

/* Sound toggle */
.kc-sound-btn { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(214,185,122,.15); border-radius: 999px; padding: 7px 14px; color: rgba(232,226,214,.65); font-size: 12px; font-weight: 700; cursor: pointer; -webkit-transition: background .2s ease, border-color .2s ease; transition: background .2s ease, border-color .2s ease; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.kc-sound-btn:hover { background: rgba(214,185,122,.08); border-color: rgba(214,185,122,.25); }
.kc-sound-btn.active { color: #d6b97a; border-color: rgba(214,185,122,.35); background: rgba(214,185,122,.08); }

/* Controls */
.kc-controls { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; margin-bottom: 16px; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; }
.kc-spins-left { font-size: 12px; color: rgba(232,226,214,.55); font-weight: 700; }
.kc-spins-left b { color: #d6b97a; }

/* Confetti */
#kc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }

/* Paybox */
.kc-paybox { margin-top: 20px; text-align: center; padding: 20px; background: rgba(0,0,0,.25); border: 1px solid rgba(214,185,122,.12); border-radius: 18px; }
.kc-paybox p { font-size: 14px; color: rgba(232,226,214,.65); margin: 0 0 12px; }

/* Streak */
.kc-streak { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 5px; background: rgba(201,162,39,.12); border: 1px solid rgba(214,185,122,.20); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: #d6b97a; }

/* Responsive KC */
@media (max-width: 580px) {
  .kc-reel { width: 58px; height: 78px; }
  .kc-symbol { height: 78px; font-size: 30px; }
  .kc-symbol.letter { font-size: 22px; }
  .kc-slot { gap: 6px; }
  .kc-machine { padding: 20px 16px 18px; }
  .kc-stats-bar { padding: 10px 12px; }
  .kc-stat-num { font-size: 18px; }
  .kc-paytable, .kc-history { padding: 16px; }
  .kc-pay-symbols { font-size: 13px; letter-spacing: 1px; }
}
@media (max-width: 380px) {
  .kc-reel { width: 50px; height: 70px; }
  .kc-symbol { height: 70px; font-size: 26px; }
  .kc-symbol.letter { font-size: 19px; }
  .kc-slot { gap: 5px; }
}