/* ---------------------------------------------------------------------------
 * Tally theme overrides.
 *
 * The base stylesheet (style1/home.css) still carries all the layout. This file
 * loads after it and only restyles identity: type, header chrome and buttons —
 * so the inherited layout stays intact and the look is ours.
 *
 * Direction: gold is the game's currency, so gold leads. Dark slate chrome
 * instead of frosted glass, and a geometric display face instead of the Roman
 * serif, which never suited a voxel game about money.
 * ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/site/css/fonts/space-grotesk.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  /* gold ramp replaces the inherited orange */
  --orange-1: #f7d27a;
  --orange-2: #e8b64a;
  --orange-3: #c9922a;
  --cta-text: #2e2208;
  --cta-rim: #8a6410;
  --spectate-rim: #2b3442;

  /* chrome: solid slate rather than white glass */
  --glass-bg: rgba(18, 24, 33, 0.72);
  --glass-bg-strong: rgba(18, 24, 33, 0.86);
  --glass-border: rgba(233, 200, 120, 0.20);
  --glass-border-strong: rgba(233, 200, 120, 0.34);

  --ink: #f6f8fb;
  --ink-soft: rgba(246, 248, 251, 0.80);
  --ink-mute: rgba(246, 248, 251, 0.56);

  --radius: 12px;
  --radius-lg: 14px;

  --font-display: 'Space Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-ui: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --tally-gold: #e8b64a;
  --tally-mint: #5ce0a0;
}

body, .kn-page { font-family: var(--font-ui); }

/* ---- wordmark + hero type ------------------------------------------------ */
.kn-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 17px;
}
.kn-brand__tag {
  background: rgba(232, 182, 74, 0.16);
  border: 1px solid rgba(232, 182, 74, 0.42);
  color: var(--tally-gold);
  letter-spacing: 0.14em;
  font-weight: 700;
}
.kn-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.055em;   /* the geometric face needs far less tracking than a serif */
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.22), 0 14px 40px rgba(0, 0, 0, 0.35);
}
.kn-hero__slogan { font-weight: 500; letter-spacing: 0.005em; }
.kn-guide__title, .kn-docbook__h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.045em;
}
.kn-guide__h2, .kn-docbook__h2, .kn-docbook__h3 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* ---- surfaces ------------------------------------------------------------
 * The base sheet paints the header and both reading panels with one late
 * `!important` rule (white glass). We restate all of them here in slate so the
 * whole site reads as one theme — `!important` is required to win against it. */
.kn-header {
  background: linear-gradient(180deg, rgba(14, 19, 27, 0.92), rgba(14, 19, 27, 0.78)) !important;
  border: 1px solid rgba(232, 200, 130, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
.kn-guide__hero-band,
.kn-guide__block,
.kn-docbook__sidebar,
.kn-docbook__article {
  background: rgba(16, 22, 30, 0.80) !important;
  border: 1px solid rgba(232, 200, 130, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.kn-guide__hero-band { border-color: rgba(232, 182, 74, 0.28); }
.kn-docbook__navLink:hover { color: var(--tally-gold); }
.kn-docbook__sideLabel { color: var(--tally-gold); letter-spacing: 0.1em; }
.kn-guide__callout { border-left: 3px solid var(--tally-gold); }
.kn-guide__callout--warn { border-left-color: #ff9a6a; }
.kn-guide__callout--tip { border-left-color: var(--tally-mint); }
.kn-nav__link {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
}
.kn-nav__link::after {                 /* gold underline grows on hover */
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 2px; border-radius: 2px;
  background: var(--tally-gold);
  transition: right 0.22s var(--ease-out);
}
.kn-nav__link:hover { color: var(--ink); }
.kn-nav__link:hover::after { right: 0; }
.kn-header-telegram, .kn-header-x {
  color: var(--ink-soft);
  border: 1px solid rgba(232, 200, 130, 0.18);
  border-radius: 10px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.kn-header-telegram:hover, .kn-header-x:hover {
  color: var(--tally-gold);
  border-color: rgba(232, 182, 74, 0.5);
  background: rgba(232, 182, 74, 0.10);
}

/* ---- buttons ------------------------------------------------------------- */
.kn-btn {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}
/* header "Connect": outlined gold, so the hero CTA stays the loudest thing */
.kn-header__actions .kn-btn {
  background: transparent;
  border: 1.5px solid rgba(232, 182, 74, 0.65);
  color: var(--tally-gold);
  box-shadow: none;
  text-shadow: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.kn-header__actions .kn-btn:hover {
  background: var(--tally-gold);
  border-color: var(--tally-gold);
  color: #241a05;
}
/* primary CTA: solid gold */
.kn-btn--hero-play {
  background: linear-gradient(180deg, #f7d27a, #dfa838);
  border: 1px solid #8a6410;
  color: #2e2208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(201, 146, 42, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.kn-btn--hero-play:hover { filter: brightness(1.06); }
/* secondary: dark slate with a mint edge — clearly not the main action */
.kn-btn--hero-spectate {
  background: linear-gradient(180deg, rgba(30, 39, 52, 0.95), rgba(20, 27, 37, 0.95));
  border: 1px solid rgba(92, 224, 160, 0.35);
  color: #dff5ea;
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
}
.kn-btn--hero-spectate:hover {
  border-color: rgba(92, 224, 160, 0.7);
  background: linear-gradient(180deg, rgba(38, 52, 66, 0.96), rgba(26, 35, 47, 0.96));
}

/* ---- stat + contract pills ---------------------------------------------- */
.kn-stat {
  background: rgba(18, 24, 33, 0.66);
  border: 1px solid rgba(232, 200, 130, 0.18);
  border-radius: 999px;
}
.kn-stat__value { color: var(--tally-gold); font-weight: 700; }
.kn-stat__dot { background: var(--tally-mint); box-shadow: 0 0 8px var(--tally-mint); }
.kn-ca__value { color: var(--tally-gold); letter-spacing: 0.04em; }

/* ---- footer -------------------------------------------------------------- */
.kn-foot { color: var(--ink-mute); }
.kn-foot__x { color: var(--tally-gold); }
