/* ===== Knexio Shared Styles v8 ===== */
/* Cleaner editorial tool UI: stronger hierarchy, calmer surfaces, less visual noise */

/* ==================== VARIABLES ==================== */
:root {
  --bg: #0c1220;
  --bg2: #101725;
  --bg3: #151e30;
  --panel: #151d2c;
  --card: #182234;
  --card-hover: #1d2a40;
  --border: rgba(226,232,240,0.10);
  --border-hover: rgba(226,232,240,0.20);
  --text-main: #ffffff;
  --text-sub: #b7c1d3;
  --text-muted: #8290a7;
  --accent: #6ea8ff;
  --accent-glow: rgba(110, 168, 255, 0.22);
  --accent-gradient: linear-gradient(135deg, #6ea8ff 0%, #45d2b5 100%);
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --pink: #f472b6;
  --purple: #a78bfa;
  --teal: #2dd4bf;
  --orange: #fb923c;
  --nav-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 20px rgba(79, 140, 255, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(110,168,255,0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(69,210,181,0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text-main);
  font-weight: 400;
  letter-spacing: -0.2px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 68%);
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; color: var(--accent); }

/* ==================== BASE TYPOGRAPHY ==================== */
p { margin-bottom: 14px; text-align: left; }
ul, ol { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 6px; }
h1, h2, h3, h4, h5, h6 { margin-top: 1.25em; margin-bottom: 0.5em; text-align: left; }

/* ==================== CONTENT BOX (Blog Section Wrapper) ==================== */
.content-box {
  margin-bottom: 28px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.2); }
  50%      { box-shadow: 0 0 0 12px rgba(79, 140, 255, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-1 { transition-delay: 0.08s; }
.anim-delay-2 { transition-delay: 0.16s; }
.anim-delay-3 { transition-delay: 0.24s; }
.anim-delay-4 { transition-delay: 0.32s; }
.anim-delay-5 { transition-delay: 0.40s; }
.anim-delay-6 { transition-delay: 0.48s; }
.anim-delay-7 { transition-delay: 0.56s; }
.anim-delay-8 { transition-delay: 0.64s; }

/* ==================== TOP NAV ==================== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(12, 18, 32, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.11);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 0;
}

.top-nav ~ .container,
.top-nav ~ .wrap {
  padding-top: calc(var(--nav-h) + 18px) !important;
}

body > .top-nav + .container:first-of-type {
  padding-top: calc(var(--nav-h) + 18px) !important;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; -webkit-text-fill-color: transparent; }
.nav-logo span { -webkit-text-fill-color: #fff; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 36px;
  flex: 1;
}
.nav-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}
.nav-links li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.nav-links.show {
  display: flex;
}

/* Hamburger menu button (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0 14px;
  gap: 8px;
  width: 220px;
  height: 38px;
  transition: border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.nav-search-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(79, 140, 255, 0.08);
  box-shadow: var(--shadow-glow);
}
.nav-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}
.nav-search-wrap input::placeholder { color: var(--text-sub); }
.nav-search-icon { color: var(--text-sub); font-size: 13px; flex-shrink: 0; }

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 44px) 20px 96px;
  text-align: center;
}

/* ==================== HERO ==================== */
.hero {
  margin-bottom: 46px;
  position: relative;
  padding: 72px 20px 20px;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.12) 0%, rgba(52, 211, 153, 0.06) 30%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-glow::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.3), transparent);
  pointer-events: none;
  z-index: -1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5.8vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #4f8cff 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.hero-search {
  max-width: 520px;
  margin: 0 auto 28px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15), 0 0 20px rgba(79, 140, 255, 0.1);
}
.hero-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  flex: 1;
  width: 100%;
}
.hero-search input::placeholder { color: var(--text-sub); }
.hero-search-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.3);
}
.hero-search-btn:hover { 
  background: var(--accent-gradient);
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 140, 255, 0.4);
}
.hero-hot-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-hot-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
  align-self: center;
}
.hero-hot-btn {
  font-size: 12px;
  color: var(--text-sub);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.16s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.hero-hot-btn:hover {
  color: #fff;
  background: rgba(79, 140, 255, 0.15);
  border-color: rgba(79, 140, 255, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 46px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  transition: transform 0.18s;
}
.trust-item:hover { transform: translateY(-2px); }
.trust-icon {
  font-size: 16px;
  line-height: 1;
}
.trust-item strong { color: #fff; }

/* ==================== SECTION HEADINGS ==================== */
.section-head {
  text-align: left;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.section-head p {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}
.section-gap { margin-bottom: 72px; }
.section-gap { margin-bottom: 54px; }

/* ==================== HOMEPAGE NAV CARDS ==================== */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.nav-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 174px;
  position: relative;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.8;
  transition: opacity 0.25s ease, height 0.25s ease;
}
.nav-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--card-accent, var(--accent)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.26);
  border-color: var(--card-accent, var(--accent));
  text-decoration: none;
}
.nav-card:hover::before { opacity: 1; height: 4px; }
.nav-card:hover::after { opacity: 0.04; }
.nav-card .card-icon { font-size: 26px; margin-bottom: 10px; line-height: 1; display: block; }
.nav-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.nav-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.nav-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
  text-decoration: none;
}
.nav-card .btn:hover {
  background: var(--card-accent, var(--accent));
  border-color: transparent;
  text-decoration: none;
  transform: translateX(3px);
}

/* Category accent colors */
.nav-card[data-accent="blue"]   { --card-accent: #4f8cff; }
.nav-card[data-accent="green"]  { --card-accent: #34d399; }
.nav-card[data-accent="yellow"] { --card-accent: #fbbf24; }
.nav-card[data-accent="pink"]   { --card-accent: #f472b6; }
.nav-card[data-accent="purple"] { --card-accent: #a78bfa; }
.nav-card[data-accent="orange"] { --card-accent: #fb923c; }
.nav-card[data-accent="teal"]   { --card-accent: #2dd4bf; }

/* ==================== FEATURED SECTIONS ==================== */
.featured { text-align: left; }

.link-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}
.link-group a {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.link-group a:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  text-decoration: none;
}
.link-group a strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.link-group a span {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}
.link-group a .arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.18s;
}
.link-group a:hover .arrow { opacity: 1; }

/* ==================== WHY KNEXIO ==================== */
.why-block { text-align: left; }
.why-block .section-head { text-align: left; }
.why-block .section-head h2,
.why-block .section-head p { text-align: left; }
.why-grid { text-align: left; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; }
.why-item { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; transition: transform 0.2s, border-color 0.2s; text-align: left; }
.why-item:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.15); }
.why-icon { font-size: 36px; display: block; margin-bottom: 14px; }
.why-item h3 { font-size: 17px; margin: 0 0 8px; color: var(--text-main); }
.why-item p { font-size: 13.5px; margin: 0; color: var(--text-sub); line-height: 1.6; }

/* ==================== ADS ==================== */
.ad-banner { color: var(--text-sub); display: flex; justify-content: center; padding: 8px 0; }

/* ==================== READABILITY POLISH ==================== */
.knx-polished .container,
.knx-polished .wrap {
  scroll-margin-top: var(--nav-h);
}

.knx-polished .back {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto 28px !important;
  color: var(--text-sub) !important;
  text-align: left !important;
}

.knx-polished .container > h1,
.knx-polished .wrap > h1,
.knx-polished .container > h1 span,
.knx-polished .wrap > h1 span {
  background: linear-gradient(120deg, #6ea8ff 0%, #45d2b5 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.knx-polished .container > h1,
.knx-polished .wrap > h1 {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.knx-polished .subtitle,
.knx-polished .intro,
.knx-polished .hero-sub {
  color: var(--text-sub) !important;
  max-width: 720px;
}

.knx-polished .section,
.knx-polished .content-box,
.knx-polished .main-panel,
.knx-polished .step-block,
.knx-polished .notice,
.knx-polished .extra-info,
.knx-polished .panel,
.knx-polished .faq-item,
.knx-polished .result-box {
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(226,232,240,0.11) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

.knx-polished .section,
.knx-polished .content-box,
.knx-polished .main-panel,
.knx-polished .step-block,
.knx-polished .notice,
.knx-polished .extra-info,
.knx-polished .panel {
  padding: 22px !important;
  margin-block: 22px !important;
}

.knx-polished .section h2,
.knx-polished .seo h2,
.knx-polished .content-box h2,
.knx-polished .main-panel h2,
.knx-polished .step-block h2,
.knx-polished .panel h2 {
  margin-top: 0 !important;
  font-size: clamp(20px, 2vw, 24px) !important;
  color: #fff !important;
}

.knx-polished .section p,
.knx-polished .seo p,
.knx-polished .content-box p,
.knx-polished .main-panel p,
.knx-polished .step-block p,
.knx-polished .notice p,
.knx-polished .extra-info p,
.knx-polished .faq-item p {
  color: var(--text-sub) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
  max-width: 76ch;
}

.knx-polished .faq-item {
  padding: 0 !important;
  margin-bottom: 10px !important;
  overflow: hidden;
}

.knx-polished .faq-item details {
  padding: 0;
}

.knx-polished .faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  color: #fff;
  font-weight: 700;
}

.knx-polished .faq-item summary::-webkit-details-marker {
  display: none;
}

.knx-polished .faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.knx-polished .faq-item details[open] summary::after {
  content: "−";
}

.knx-polished .faq-item details > :not(summary) {
  margin: 0;
  padding: 0 18px 16px;
}

.knx-polished .tools a,
.knx-polished .category-nav a,
.knx-polished .tag {
  border-radius: 999px !important;
}

.knx-polished textarea,
.knx-polished input,
.knx-polished select {
  border-color: rgba(226,232,240,0.14) !important;
}

.knx-polished button,
.knx-polished .btn,
.knx-polished .play-btn {
  border-radius: 9px !important;
}

/* ==================== SURFACE NORMALIZATION ==================== */
.knx-polished .gameplay-section,
.knx-polished .faq-section,
.knx-polished .history-section,
.knx-polished .info-section,
.knx-polished .more-games,
.knx-polished .related-games,
.knx-polished .knx-prose-card,
.knx-polished .knx-faq-group,
.knx-polished .seo,
.knx-polished .toc {
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(226,232,240,0.11) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14) !important;
  padding: 22px !important;
  margin: 22px auto !important;
  max-width: 980px !important;
  width: 100% !important;
  text-align: left !important;
}

.knx-polished .knx-surface-shell,
.knx-polished .section:has(.section),
.knx-polished .section:has(.content-box),
.knx-polished .section:has(.gameplay-section),
.knx-polished .section:has(.faq-section),
.knx-polished .section:has(.history-section),
.knx-polished .section:has(.info-section),
.knx-polished .section:has(.more-games),
.knx-polished .section:has(.related-games),
.knx-polished .section:has(.card),
.knx-polished .section:has(.panel),
.knx-polished .section:has(.box),
.knx-polished .content-box:has(.content-box),
.knx-polished .content-box:has(.box),
.knx-polished .content-box:has(.card),
.knx-polished .content-box:has(.panel),
.knx-polished .content-box:has(.knx-prose-card) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 24px auto !important;
  max-width: 980px !important;
  width: 100% !important;
  border-radius: 0 !important;
}

.knx-polished .knx-heading-only {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 36px 0 10px !important;
}

.knx-polished .knx-heading-only h2,
.knx-polished .knx-heading-only h3 {
  margin: 0 !important;
}

.knx-polished .ad-banner,
.knx-polished .ad-slot,
.knx-polished .ad-top,
.knx-polished .ad-mid,
.knx-polished .knx-ad-unit {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 28px auto !important;
  min-height: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.knx-polished .knx-contains-ad:has(> .knx-ad-unit:only-child) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.knx-polished .box,
.knx-polished .card,
.knx-polished .panel-box {
  border-color: rgba(226,232,240,0.12) !important;
}

.knx-polished .content-box > .content-box:first-child,
.knx-polished .section > .section:first-child,
.knx-polished .section > .gameplay-section:first-child {
  margin-top: 0 !important;
}

.knx-polished .section,
.knx-polished .content-box,
.knx-polished .main-panel,
.knx-polished .step-block,
.knx-polished .notice,
.knx-polished .extra-info,
.knx-polished .panel {
  max-width: 980px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.knx-polished .knx-prose-card > :last-child,
.knx-polished .knx-faq-group > :last-child,
.knx-polished .gameplay-section > :last-child,
.knx-polished .faq-section > :last-child,
.knx-polished .history-section > :last-child,
.knx-polished .info-section > :last-child,
.knx-polished .more-games > :last-child,
.knx-polished .related-games > :last-child,
.knx-polished .content-box > :last-child,
.knx-polished .section > :last-child {
  margin-bottom: 0 !important;
}

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1100px;
  font-size: 13.5px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.8;
}
footer a { color: var(--accent); transition: color 0.15s; }
footer a:hover { color: #fff; text-decoration: none; }
footer p { text-align: center; }
footer .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer .footer-copy { opacity: 0.5; font-size: 12px; }

.site-footer {
  margin-top: 64px !important;
}

.site-footer p {
  margin: 0 0 8px !important;
}

.site-footer .footer-note {
  opacity: 0.58;
  font-size: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .link-group { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.show {
    position: absolute;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 14px;
    background: rgba(7, 13, 26, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .nav-links.show li { margin: 0; }
  .nav-links.show li a {
    display: block;
    padding: 10px 12px;
  }
  .nav-toggle { display: block; }
  .nav-search-wrap { width: 160px; }
}

@media (max-width: 600px) {
  .nav-search-wrap { display: none; }
  .nav-toggle { display: block; }
  .container { padding: calc(var(--nav-h) + 36px) 16px 80px; }
  .hero { padding: 60px 20px 20px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .nav-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .link-group { grid-template-columns: 1fr; }
  .trust-bar { gap: 16px; }
  .section-head h2 { font-size: 21px; }
  footer .footer-links { gap: 6px 14px; }
}
