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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background-color: var(--surface-page);
  color: var(--text-primary);
  line-height: var(--line-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

#app {
  min-height: 100svh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px var(--space-4);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

:root {
  --site-header-height: 60px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --blur-glass: 10px;
  --blur-strong: 12px;
  --border-soft: 1px solid rgba(138, 150, 177, 0.2);
  --shadow-soft: 0 6px 14px rgba(34, 45, 66, 0.08);
  --shadow-card: 0 10px 24px rgba(31, 41, 61, 0.09);
  --shadow-control: 0 4px 12px rgba(41, 53, 77, 0.1);
  --shadow-code: 0 8px 18px rgba(20, 25, 38, 0.22);
  --surface-page: #fff;
  --surface-card: rgba(255, 255, 255, 0.72);
  --surface-card-alt: rgba(246, 249, 255, 0.72);
  --surface-control: rgba(243, 245, 249, 0.78);
  --surface-control-hover: rgba(233, 237, 245, 0.92);
  --surface-dark: #1f2228;
  --text-primary: #1a1a1a;
  --text-secondary: #2f3f5a;
  --text-muted: #5a616d;
  --text-accent: #1f4ea3;
  --brand-purple: #6d5cff;
  --brand-purple-soft: #efeaff;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --line-tight: 1.25;
  --line-normal: 1.45;
  --line-relaxed: 1.7;
  --btn-radius: var(--radius-sm);
  --btn-padding-y: var(--space-2);
  --btn-padding-x: var(--space-3);
  --btn-bg: var(--surface-control);
  --btn-bg-hover: var(--surface-control-hover);
  --btn-shadow: var(--shadow-control);
  --interactive-transition: 0.2s ease;
}

a,
button {
  transition:
    color var(--interactive-transition),
    background-color var(--interactive-transition),
    box-shadow var(--interactive-transition),
    transform var(--interactive-transition);
}

a:focus-visible,
button:focus-visible,
.menu-link:focus-visible,
.article-read-btn:focus-visible,
.featured-read-btn:focus-visible,
.pagination-link:focus-visible,
.offer-cta:focus-visible,
.article-neighbor-link:focus-visible,
.community-links a:focus-visible,
.bottom-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(31, 78, 163, 0.24),
    var(--btn-shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 9px max(24px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.88), rgba(20, 24, 38, 0.78));
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(8, 12, 22, 0.22);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(109, 92, 255, 0.38),
    rgba(45, 212, 191, 0.26),
    rgba(109, 92, 255, 0.38)
  );
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.header-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.header-brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.header-link {
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(235, 241, 255, 0.82);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  box-shadow: none;
  white-space: nowrap;
}

.header-link.active {
  color: #fff;
  font-weight: 600;
  background: none;
  border: 0;
}

.header-link:hover {
  color: #f3f6ff;
}

.header-burger {
  display: none;
}

.site-title {
  font-size: 0.95rem;
  margin-bottom: 0;
  font-weight: 700;
  color: #fff;
  line-height: var(--line-tight);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  margin: 0;
}

.logo-link {
  display: inline-block;
}

.site-subtitle {
  font-size: 0.72rem;
  margin: 1px 0 0;
  color: rgba(220, 229, 247, 0.74);
  font-weight: 400;
  line-height: 1.2;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 6px;
  text-decoration: none;
  font-size: var(--font-size-sm);
  line-height: var(--line-tight);
  font-weight: 700;
  min-height: 34px;
  color: #fff;
  background: #2a3140;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 14px rgba(8, 12, 22, 0.28);
  border-radius: 9px;
  padding: 7px 12px;
  white-space: nowrap;
}

.header-cta-in-nav {
  display: none;
}

.header-cta::after {
  content: '→';
  font-weight: 700;
}

.header-cta:hover {
  color: #fff;
  background: #333b4d;
  border-color: rgba(255, 255, 255, 0.34);
}

.top-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: var(--space-2);
  overflow-x: hidden;
  padding: 4px 0;
  margin-bottom: var(--space-2);
  background: rgba(247, 247, 249, 0.9);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
  box-shadow: 0 3px 10px rgba(34, 45, 66, 0.08);
}

main {
  margin-top: 0;
  padding-top: 0;
  flex: 1 0 auto;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--font-size-sm);
  line-height: var(--line-tight);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--btn-bg);
  border: 0;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  white-space: nowrap;
  border: var(--border-soft);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--btn-shadow);
}

.menu-link-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-link-content svg {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-link.active {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: #fff;
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--interactive-transition);
}

a:hover {
  color: var(--text-accent);
}

.articles {
  margin-top: 0;
}

.blog-intro {
  margin-bottom: var(--space-2);
}

.blog-title {
  margin: 0 0 var(--space-3);
  font-size: 2rem;
  line-height: 1.2;
}

.blog-lead {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 62ch;
}

.blog-hero {
  margin-bottom: var(--space-4);
}

.blog-hero .section-label {
  color: #9d91ff;
}

.blog-hero .blog-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.blog-hero .blog-lead {
  max-width: 66ch;
  margin: 18px 0 0;
  color: rgba(229, 236, 252, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
}

.home-page,
.blog-page {
  display: grid;
  gap: var(--space-4);
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.blog-page {
  padding-top: 14px;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.blog-topics a {
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.blog-topics a:hover {
  color: var(--text-accent);
  background: none;
}

.article {
  margin-bottom: var(--space-6);
}

.article:last-child {
  margin-bottom: 0;
}

.article-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  line-height: var(--line-tight);
  font-weight: 600;
}

.article-title a {
  text-decoration: none;
}

.article-thumb-link {
  display: block;
  margin-bottom: var(--space-3);
}

.article-thumb-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f6fb;
  border: 1px solid rgba(138, 150, 177, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.article-card {
  background: var(--surface-card);
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
}

.article-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  line-height: var(--line-normal);
}

.article-excerpt {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-relaxed);
}

.article-read-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: var(--btn-shadow);
  border: var(--border-soft);
}

.article-read-btn,
.featured-read-btn,
.offer-cta,
.header-cta,
.hero-cta {
  min-height: 40px;
  font-weight: 700;
  border-radius: 12px;
}

.offer-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  margin-top: var(--space-2);
  margin-inline: auto;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(31, 34, 40, 0.18);
  background: var(--surface-dark);
  color: #fff;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 20px rgba(31, 34, 40, 0.2);
  width: 100%;
  min-width: 0;
  margin-bottom: var(--space-2);
}

.offer-cta:hover {
  color: #fff;
  background: #2a2f38;
  box-shadow: 0 12px 22px rgba(31, 34, 40, 0.24);
}

.menu-link:hover,
.article-read-btn:hover,
.featured-read-btn:hover,
.bottom-link:hover,
.community-links a:hover {
  background: var(--btn-bg-hover);
  color: var(--text-primary);
}

.menu-link:active,
.article-read-btn:active,
.featured-read-btn:active,
.offer-cta:active,
.community-links a:active,
.bottom-link:active {
  transform: translateY(1px);
}

.offer-card {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(58, 120, 255, 0.12) 0%, rgba(58, 120, 255, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(70, 224, 194, 0.1) 0%, rgba(70, 224, 194, 0) 52%),
    var(--surface-card-alt);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-card);
}

.offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(45, 111, 255, 0.08), rgba(30, 201, 184, 0.04) 45%, rgba(0, 0, 0, 0));
}

.offer-section {
  margin-bottom: var(--space-4);
}

.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--space-3);
  align-items: start;
}

.offer-main,
.offer-side {
  min-width: 0;
}

.home-page {
  display: grid;
  gap: var(--space-4);
}

.articles,
.single-article {
  max-width: 760px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.hero-screen {
  position: relative;
  isolation: isolate;
  min-height: 0;
  width: 100%;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  overflow: visible;
}

.hero-screen::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(109, 92, 255, 0.4), rgba(45, 212, 191, 0.32), rgba(109, 92, 255, 0.4))
      top / 100% 1px no-repeat,
    radial-gradient(120% 90% at 0% 0%, rgba(108, 92, 255, 0.22) 0%, rgba(108, 92, 255, 0) 58%),
    radial-gradient(100% 80% at 100% 100%, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0) 62%),
    radial-gradient(120% 90% at 55% 35%, rgba(130, 180, 255, 0.12) 0%, rgba(130, 180, 255, 0) 60%),
    linear-gradient(180deg, #f8faff 0%, #eff4ff 100%);
  background-size:
    100% 1px,
    140% 140%,
    140% 140%,
    130% 130%,
    100% 100%;
  background-position:
    0 0,
    0% 0%,
    100% 100%,
    50% 40%,
    0 0;
  animation: heroGradientShift 14s ease-in-out infinite alternate;
}

.hero-screen::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='none' stroke='%236d5cff' stroke-opacity='0.18' stroke-width='1'%3E%3Cpath d='M28 40h18m-9-9v18'/%3E%3Cpath d='M88 118l7-7-7-7m14 14l7-7-7-7'/%3E%3Cpath d='M154 44h18m-18 8h18'/%3E%3Cpath d='M184 116h8m-8 6h12'/%3E%3C/g%3E%3Ctext x='54' y='58' font-size='12' fill='%236d5cff' fill-opacity='0.18' font-family='monospace'%3E%26lt;div%26gt;%3C/text%3E%3Ctext x='36' y='132' font-size='12' fill='%236d5cff' fill-opacity='0.16' font-family='monospace'%3Econst game = {};%3C/text%3E%3Ctext x='132' y='88' font-size='12' fill='%236d5cff' fill-opacity='0.15' font-family='monospace'%3Efunction()%3C/text%3E%3C/svg%3E");
  background-size: 220px 160px;
  background-repeat: repeat;
}

@keyframes heroGradientShift {
  0% {
    background-position:
      0 0,
      0% 0%,
      100% 100%,
      50% 40%,
      0 0;
  }
  50% {
    background-position:
      0 0,
      18% 8%,
      82% 88%,
      58% 48%,
      0 0;
  }
  100% {
    background-position:
      0 0,
      30% 16%,
      70% 78%,
      64% 56%,
      0 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.section-label {
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  color: var(--brand-purple);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-top: 14px;
}

.hero-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero-title-accent {
  color: var(--brand-purple);
}

.hero-lead {
  margin: 0 0 var(--space-4);
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 60ch;
}

.hero-points {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  line-height: var(--line-normal);
}

.hero-point-num {
  flex: 0 0 24px;
  width: 24px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #4a5568;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-3);
}

.hero-cta {
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-position 0.36s ease,
    border-color 0.28s ease,
    color 0.24s ease;
}

.hero-cta-primary {
  color: #fff;
  background: linear-gradient(135deg, #5e53e8 0%, #7263f0 45%, #4f8fc8 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  border: 1px solid rgba(98, 89, 236, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(61, 66, 180, 0.26);
}

.hero-cta-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 28px rgba(56, 62, 176, 0.34);
  filter: saturate(1.06);
}

.hero-cta-secondary {
  color: #2b3447;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(138, 150, 177, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 16px rgba(32, 46, 70, 0.08);
}

.hero-cta-secondary:hover {
  transform: translateY(-2px);
  color: #1f2a3d;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(109, 92, 255, 0.28);
  box-shadow: 0 12px 22px rgba(36, 50, 80, 0.12);
}

.hero-proof {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(20, 24, 38, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(24, 34, 56, 0.1);
  overflow: hidden;
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f7f8fb;
}

.hero-window-bar {
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 24, 38, 0.08);
}

.hero-window-file {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f9d63;
}

.hero-window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  background: #101322;
  overflow: hidden;
}

.hero-game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  cursor: none;
  touch-action: none;
}

.hero-game-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(236, 242, 255, 0.88);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(122, 162, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 247, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-orb,
.hero-pixel {
  position: absolute;
  display: block;
}

.hero-orb {
  border-radius: 999px;
  filter: blur(0.2px);
}

.orb-a {
  width: 88px;
  height: 88px;
  top: 16%;
  left: 18%;
  background: radial-gradient(circle, #7aa2f7 0%, rgba(122, 162, 247, 0.12) 70%);
  animation: driftA 6s ease-in-out infinite alternate;
}

.orb-b {
  width: 64px;
  height: 64px;
  top: 56%;
  left: 55%;
  background: radial-gradient(circle, #9ece6a 0%, rgba(158, 206, 106, 0.1) 72%);
  animation: driftB 8s ease-in-out infinite alternate;
}

.orb-c {
  width: 54px;
  height: 54px;
  top: 24%;
  left: 68%;
  background: radial-gradient(circle, #bb9af7 0%, rgba(187, 154, 247, 0.12) 70%);
  animation: driftC 7s ease-in-out infinite alternate;
}

.hero-pixel {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(199, 214, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(90, 127, 216, 0.45);
}

.pixel-a {
  top: 42%;
  left: 25%;
}

.pixel-b {
  top: 64%;
  left: 35%;
}

.pixel-c {
  top: 36%;
  left: 74%;
}

@keyframes driftA {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(18px, 12px);
  }
}

@keyframes driftB {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-14px, -16px);
  }
}

@keyframes driftC {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(12px, -10px);
  }
}
}

.section-card {
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  padding: var(--space-3);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-card);
}

.section-title {
  font-size: 1.2rem;
  line-height: var(--line-tight);
  margin: 0 0 var(--space-2);
}

.offer-title {
  font-size: 1.06rem;
  line-height: var(--line-tight);
  margin: 0 0 var(--space-2);
}

.offer-title-accent {
  color: var(--text-accent);
}

.offer-text {
  margin: 0 0 var(--space-2);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: var(--line-normal);
}

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.offer-list li {
  position: relative;
  margin: 0;
  padding: 4px 6px 4px 18px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.2;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: var(--border-soft);
}

.offer-list li::before {
  content: '✓';
  position: absolute;
  left: 5px;
  top: 3px;
  color: var(--text-accent);
  font-weight: 700;
  font-size: 0.68rem;
}

.offer-result-preview {
  margin: 4px 0 0;
}

.offer-result-image {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: block;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px;
}

.offer-result-preview figcaption {
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: left;
}

.offer-cta-lead {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: var(--line-normal);
  text-align: center;
  opacity: 0.9;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.featured-section-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(138, 150, 177, 0.22);
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 24px rgba(31, 41, 61, 0.08);
}

.featured-section-card::before {
  content: none;
}

.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.featured-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-normal);
  max-width: 58ch;
}

.featured-all {
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.featured-all:hover {
  color: var(--brand-purple);
}

.featured-section-card .section-title {
  margin-bottom: 6px;
}

.featured-card {
  background: #fff;
  border: 1px solid rgba(138, 150, 177, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.featured-thumb-link {
  display: block;
  width: 100%;
}

.featured-thumb-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  background: #f3f6fb;
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.featured-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.featured-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.featured-meta {
  margin: 0 0 8px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.featured-title {
  font-size: 1.12rem;
  line-height: var(--line-tight);
  margin: 0 0 10px;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-title a {
  text-decoration: none;
  color: var(--text-primary);
}

.featured-excerpt {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-normal);
}

.featured-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--btn-radius);
  background: rgba(246, 249, 255, 0.92);
  padding: 10px 12px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-accent);
  box-shadow: none;
  border: 1px solid rgba(138, 150, 177, 0.24);
  margin-top: auto;
  width: 100%;
}

.community-text {
  margin: 0 0 var(--space-3);
  color: var(--text-secondary);
}

.community-card {
  border-color: rgba(122, 162, 247, 0.26);
  background: linear-gradient(145deg, rgba(36, 40, 59, 0.96) 0%, rgba(31, 35, 53, 0.96) 100%);
  box-shadow:
    0 12px 28px rgba(19, 22, 33, 0.34),
    inset 0 1px 0 rgba(196, 210, 255, 0.08);
}

.community-card .section-title {
  color: #c0caf5;
  text-align: center;
}

.community-card .community-text {
  color: #a9b8e8;
}

.community-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.community-links a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1 1 220px;
  text-decoration: none;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: var(--border-soft);
  background: var(--surface-card);
  font-weight: 700;
  color: var(--text-accent);
  box-shadow: var(--shadow-soft);
}

.community-card .community-links a {
  border: 1px solid rgba(122, 162, 247, 0.26);
  background: linear-gradient(160deg, rgba(47, 63, 120, 0.3) 0%, rgba(36, 40, 59, 0.62) 100%);
  color: #7aa2f7;
  box-shadow: 0 8px 18px rgba(16, 20, 32, 0.28);
}

.community-card .community-links a:hover {
  background: linear-gradient(160deg, rgba(76, 102, 191, 0.42) 0%, rgba(45, 52, 84, 0.72) 100%);
  color: #c0caf5;
}

.community-link-head {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.community-link-head svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-link-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.community-card .community-link-sub {
  color: #a9b8e8;
}

.book-offer-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-3);
  border-color: rgba(98, 125, 220, 0.34);
  background:
    radial-gradient(140% 150% at 0% 0%, rgba(83, 106, 255, 0.2) 0%, rgba(83, 106, 255, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(119, 80, 255, 0.14) 0%, rgba(119, 80, 255, 0) 55%),
    linear-gradient(180deg, rgba(246, 249, 255, 0.96), rgba(255, 255, 255, 0.95));
  box-shadow:
    0 14px 28px rgba(69, 89, 176, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.book-offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(99, 118, 255, 0.08), rgba(58, 214, 180, 0.06) 52%, rgba(0, 0, 0, 0));
}

.book-offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
}

.book-offer-cover {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.book-offer-content {
  min-width: 0;
}

.book-offer-title {
  text-align: center;
  margin-bottom: var(--space-2);
  color: #1f2335;
  text-shadow: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.book-offer-subtitle {
  margin: 2px 0 8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f3f78;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 800;
}

.book-offer-subtitle::before {
  content: '✓';
  color: #2f3f78;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 800;
}

.book-offer-text {
  margin: 0 0 var(--space-2);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: var(--line-normal);
}

.book-offer-js-accent {
  color: #2f3f78;
  font-weight: 700;
}

.book-offer-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  margin: 2px 0 2px auto;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(122, 162, 247, 0.18) 0%, rgba(187, 154, 247, 0.1) 100%);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.book-offer-price-current {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text-primary);
}

.book-offer-cta {
  position: relative;
  overflow: hidden;
  margin: var(--space-2) 0 0;
  border: 1px solid rgba(122, 162, 247, 0.34);
  background: linear-gradient(130deg, #1f2335 0%, #24283b 32%, #2f3f78 62%, #5a7fd8 82%, #7aa2f7 100%);
  background-size: 220% 220%;
  color: #e7ecff;
  box-shadow:
    0 10px 24px rgba(31, 44, 92, 0.3),
    inset 0 1px 0 rgba(210, 225, 255, 0.22);
  transition:
    color 0.2s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  animation: bookCtaGradientFlow 7s ease-in-out infinite;
}

.book-offer-cta:hover {
  color: #f6f9ff;
  border-color: rgba(165, 195, 255, 0.5);
  box-shadow:
    0 10px 24px rgba(31, 44, 92, 0.3),
    0 0 0 1px rgba(165, 195, 255, 0.22),
    inset 0 1px 0 rgba(223, 236, 255, 0.28);
}

.book-offer-cta:active {
  color: #edf3ff;
  border-color: rgba(145, 180, 248, 0.46);
  box-shadow:
    0 9px 18px rgba(31, 44, 92, 0.24),
    inset 0 1px 0 rgba(210, 225, 255, 0.22);
}

.book-offer-cta:focus-visible {
  box-shadow:
    0 0 0 2px rgba(122, 162, 247, 0.34),
    0 12px 24px rgba(52, 84, 168, 0.32);
}

@keyframes bookCtaGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.reviews-slider-card {
  display: grid;
  gap: var(--space-2);
  border-color: rgba(122, 162, 247, 0.26);
  background: linear-gradient(145deg, rgba(36, 40, 59, 0.96) 0%, rgba(31, 35, 53, 0.96) 100%);
  box-shadow:
    0 12px 28px rgba(19, 22, 33, 0.34),
    inset 0 1px 0 rgba(196, 210, 255, 0.08);
}

.reviews-slider-card .section-title {
  color: #c0caf5;
}

.reviews-slider-title {
  text-align: center;
}

.reviews-slide {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(122, 162, 247, 0.26);
  background: linear-gradient(160deg, rgba(47, 63, 120, 0.28) 0%, rgba(36, 40, 59, 0.55) 100%);
  max-height: 360px;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #7aa2f7 rgba(47, 63, 120, 0.32);
}

.reviews-slide::-webkit-scrollbar {
  width: 8px;
}

.reviews-slide::-webkit-scrollbar-track {
  background: rgba(47, 63, 120, 0.28);
  border-radius: 999px;
}

.reviews-slide::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5a7fd8 0%, #7aa2f7 100%);
  border-radius: 999px;
}

.reviews-slide::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6b90e3 0%, #8ab1ff 100%);
}

.reviews-slide-title {
  margin: 0 0 6px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #7aa2f7;
}

.reviews-stars {
  margin: 0 0 8px;
  color: #e0af68;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  line-height: 1;
}

.reviews-slide-text {
  margin: 0 0 8px;
  color: #c0caf5;
  font-size: 0.92rem;
  line-height: var(--line-normal);
}

.reviews-slide-text:last-child {
  margin-bottom: 0;
}

.reviews-slider-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
}

.reviews-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(122, 162, 247, 0.3);
  background: rgba(47, 63, 120, 0.45);
  color: #c0caf5;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 20, 32, 0.28);
}

.reviews-arrow-btn:hover {
  background: rgba(90, 127, 216, 0.45);
}

.reviews-arrow-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(122, 162, 247, 0.38),
    0 6px 14px rgba(16, 20, 32, 0.28);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(192, 202, 245, 0.35);
  cursor: pointer;
}

.reviews-dot.active {
  width: 18px;
  background: #7aa2f7;
}

@media (max-width: 768px) {
  .reviews-slide {
    max-height: 300px;
  }

  .reviews-arrow-btn {
    width: 32px;
    height: 32px;
  }
}

.single-article {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  margin-bottom: var(--space-6);
}

.article-header {
  margin-bottom: var(--space-6);
}

.article-detail-title {
  font-size: 2.1rem;
  margin-bottom: var(--space-3);
  line-height: var(--line-tight);
}

.article-content {
  min-width: 0;
  font-size: var(--font-size-md);
  line-height: 1.75;
  color: var(--text-primary);
}

.article-toc {
  position: sticky;
  top: var(--site-header-height);
  z-index: 29;
  width: 100vw;
  margin: -16px calc(50% - 50vw) var(--space-4);
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.9), rgba(20, 24, 38, 0.84));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(8, 12, 22, 0.16);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
}

.article-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(760px, calc(100% - 48px));
  min-height: 42px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(235, 241, 255, 0.92);
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: none;
  cursor: pointer;
}

.article-toc-toggle::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
}

.article-toc-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.article-toc-toggle[aria-expanded='true']::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.article-toc-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px max(24px, calc((100vw - 760px) / 2)) 12px;
  border: 0;
  border-bottom: 1px solid rgba(138, 150, 177, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  list-style: none;
  display: grid;
  gap: 2px;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 14px 28px rgba(31, 41, 61, 0.14);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
}

.article-toc-list[hidden] {
  display: none;
}

.article-toc-list li {
  margin: 0;
  padding-left: calc((var(--toc-level, 2) - 2) * 14px);
  position: relative;
}

.article-toc-list a {
  text-decoration: none;
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 9px;
  border-radius: 8px;
}

.article-toc-list a:hover {
  color: var(--text-accent);
  background: rgba(31, 78, 163, 0.07);
}

.article-toc-list .toc-level-3 a,
.article-toc-list .toc-level-4 a {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.article-toc-list .toc-level-3 a:hover,
.article-toc-list .toc-level-4 a:hover {
  color: var(--text-accent);
}

.article-toc-list .toc-level-3::before,
.article-toc-list .toc-level-4::before {
  content: none;
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 50px;
  }

  .article-toc {
    margin-top: -16px;
  }

  .article-toc-toggle {
    width: calc(100% - 32px);
    min-height: 40px;
  }

  .article-toc-list {
    padding-inline: 16px;
    max-height: min(52svh, 360px);
  }
}

.article-body {
  min-width: 0;
  max-width: 100%;
}

.article-body h2 {
  margin: var(--space-5) 0 var(--space-3);
  line-height: var(--line-tight);
  font-size: 1.32rem;
  font-weight: 700;
  scroll-margin-top: calc(var(--site-header-height) + 60px);
}

.article-body h3 {
  margin: var(--space-4) 0 var(--space-2);
  line-height: var(--line-normal);
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--text-secondary);
  border-left: 0;
  scroll-margin-top: calc(var(--site-header-height) + 60px);
}

.article-body h4 {
  margin: var(--space-3) 0 var(--space-2);
  line-height: var(--line-normal);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 0;
  scroll-margin-top: calc(var(--site-header-height) + 60px);
}

.article-body p {
  margin: 0 0 var(--space-3);
}

.article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-3) 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-3);
  padding-left: 22px;
}

.article-body li {
  margin: 0 0 var(--space-2);
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body a {
  overflow-wrap: anywhere;
}

.article-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-callout {
  margin: var(--space-4) 0;
  padding: 17px 18px;
  border: 1px solid rgba(111, 129, 176, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(109, 92, 255, 0.09) 0%, rgba(109, 92, 255, 0) 55%),
    #f7f9fd;
}

.article-callout--result {
  border-color: rgba(58, 176, 158, 0.28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(45, 190, 169, 0.1) 0%, rgba(45, 190, 169, 0) 56%),
    #f7fbfb;
}

.article-callout--source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 18px;
  border: 1px solid rgba(109, 92, 255, 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(29, 40, 64, 0.06);
  color: var(--text-primary);
}

.article-callout--source::before {
  content: '';
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--brand-purple-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236d5cff' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.75 8.25h5.69l1.62 1.8h9.19v8.2a1.6 1.6 0 0 1-1.6 1.6H5.35a1.6 1.6 0 0 1-1.6-1.6V8.25Z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.75 8.25V6.9A1.65 1.65 0 0 1 5.4 5.25h4.12l1.53 1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.article-callout--source > strong {
  flex: 1 1 calc(100% - 54px);
  margin: 0;
  color: var(--text-primary);
}

.article-callout--source p {
  flex: 1 0 100%;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.article-callout--source a:not(.article-read-btn) {
  color: var(--text-accent);
}

.article-callout > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
  line-height: 1.35;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-book-cta {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin: var(--space-4) 0 var(--space-5);
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(109, 92, 255, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(51, 195, 183, 0.18), transparent 34%),
    linear-gradient(135deg, #171f35 0%, #202947 100%);
  box-shadow: 0 14px 30px rgba(31, 39, 68, 0.16);
  color: #eef3ff;
}

.article-book-cta-cover {
  width: 100%;
  max-width: 156px;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(186, 199, 230, 0.28);
  box-shadow: 0 8px 20px rgba(4, 8, 18, 0.34);
}

.article-book-cta-content {
  display: grid;
  gap: 10px;
}

.article-book-cta-kicker {
  margin: 0;
  color: #7edfc7;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-book-cta-content > strong,
.article-book-cta > strong {
  max-width: 600px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.4;
}

.article-book-cta-content p,
.article-book-cta > p {
  max-width: 620px;
  margin: 0;
  color: #bdc9df;
}

.article-book-cta-content a,
.article-book-cta > a {
  justify-self: start;
  margin-top: 4px;
  padding: 10px 15px;
  border: 1px solid rgba(170, 156, 255, 0.48);
  border-radius: 10px;
  background: linear-gradient(135deg, #6e5ce8 0%, #3e8fa8 100%);
  box-shadow: 0 8px 20px rgba(61, 69, 162, 0.32);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.article-book-cta-content a:hover,
.article-book-cta > a:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(61, 69, 162, 0.4);
}

.article-table-wrap {
  width: 100%;
  margin: var(--space-4) 0 var(--space-5);
  overflow-x: auto;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 48, 74, 0.06);
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.91rem;
  line-height: 1.5;
}

.article-table--compact {
  min-width: 500px;
}

.article-table th,
.article-table td {
  padding: 13px 15px;
  border-right: 1px solid #e5e9f1;
  border-bottom: 1px solid #e5e9f1;
  text-align: left;
  vertical-align: top;
}

.article-table th:last-child,
.article-table td:last-child {
  border-right: 0;
}

.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-table th {
  color: #26334a;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  background: #f1f4f9;
}

.article-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.article-table code {
  white-space: nowrap;
}

.article-figure {
  margin: var(--space-4) 0 var(--space-5);
  padding: 10px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 48, 74, 0.07);
}

.article-body .article-figure img {
  margin: 0;
  border-radius: 9px;
}

.article-figure figcaption {
  padding: 10px 7px 2px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.article-demo {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: var(--space-4) 0 var(--space-5);
  overflow: hidden;
  border: 1px solid rgba(116, 134, 176, 0.24);
  border-radius: 16px;
  background: #101728;
  box-shadow: 0 18px 36px rgba(24, 34, 57, 0.17);
}

.article-demo-frame {
  display: block;
  /* iOS Safari раздувает iframe до intrinsic-ширины canvas/контента; 1px + min-width держит рамку по родителю. */
  width: 1px;
  min-width: 100%;
  max-width: 100%;
  border: 0;
  background: #101728;
}

.article-demo-frame--game {
  height: 700px;
}

.article-demo-frame--movement {
  height: 400px;
}

.article-demo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 13px 14px;
  border-top: 1px solid rgba(146, 164, 203, 0.18);
  background: #151f33;
}

.article-demo-actions a {
  color: #dce8ff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.article-demo-actions a:hover {
  color: #fff;
}

.article-demo-actions .article-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 248px;
  height: 48px;
  padding: 0 14px;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #6d5ce7 0%, #458cae 100%);
  box-shadow: 0 7px 16px rgba(72, 73, 174, 0.28);
}

.article-demo-actions .article-source-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.article-sources {
  padding-left: 20px;
}

.article-sources li {
  padding-left: 3px;
}

@media (max-width: 768px) {
  .article-lead {
    font-size: 1rem;
  }

  .article-callout {
    padding: 14px;
    border-radius: 12px;
  }

  .article-callout--source .article-read-btn,
  .article-callout--source .article-source-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .article-book-cta {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 13px;
  }

  .article-book-cta-cover {
    max-width: 92px;
  }

  .article-book-cta-content {
    gap: 7px;
  }

  .article-book-cta-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .article-book-cta-content > strong,
  .article-book-cta > strong {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .article-book-cta-content p,
  .article-book-cta > p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .article-book-cta-content a,
  .article-book-cta > a {
    justify-self: stretch;
    width: 100%;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .article-table {
    font-size: 0.86rem;
  }

  .article-table th,
  .article-table td {
    padding: 11px 12px;
  }

  .article-figure {
    padding: 6px;
    border-radius: 12px;
  }

  .article-figure figcaption {
    padding: 9px 5px 3px;
    font-size: 0.8rem;
  }

  .article-demo {
    border-radius: 12px;
  }

  .article-demo-frame--game {
    height: 610px;
  }

  .article-demo-frame--movement {
    height: 265px;
  }

  .article-demo-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 11px 12px;
    text-align: center;
  }

  .article-demo-actions .article-read-btn {
    width: 100%;
  }
}

.read-next-block {
  margin: var(--space-5) 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.read-next-block h2 {
  margin: 0 0 var(--space-3);
  font-size: 1.25rem;
  line-height: var(--line-tight);
}

.read-next-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.post-card-compact {
  padding: 14px;
  border: 1px solid rgba(138, 150, 177, 0.22);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(29, 40, 64, 0.08);
  transition: border-color 0.2s ease;
}

.post-card-compact:hover {
  border-color: #cfd6e4;
}

.post-card-compact .post-card-media {
  margin: -14px -14px 10px;
  aspect-ratio: 1200 / 676;
  border-radius: 16px 16px 0 0;
}

.post-card-compact .post-card-title {
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

.post-card-compact .post-card-foot span,
.post-card-compact .post-card-foot a {
  font-size: 0.78rem;
}

.lesson-materials {
  margin: var(--space-3) 0 var(--space-5);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: var(--border-soft);
  background: var(--surface-card-alt);
  box-shadow: var(--shadow-card);
}

.lesson-materials h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.18rem;
  line-height: var(--line-tight);
}

.lesson-materials p {
  margin: 0 0 var(--space-2);
}

.lesson-materials .article-read-btn {
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  padding-inline: 18px;
  box-shadow: 0 10px 18px rgba(31, 34, 40, 0.12);
}

.lesson-materials-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.lesson-materials-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--space-4);
}

.lesson-materials-list li {
  margin: 0 0 var(--space-1);
  break-inside: avoid;
}

.lesson-materials-list li:last-child {
  margin-bottom: 0;
}

.lesson-materials-list a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lesson-materials-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7c8ecb;
  opacity: 0.85;
}

.course-program {
  margin: 0 0 var(--space-5);
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  box-shadow: none;
}

.course-program-title,
.course-program h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

.course-program ol {
  margin: 0;
  padding-left: 1.25em;
  list-style: decimal;
  display: block;
}

.course-program li {
  margin: 0 0 8px;
  padding: 0;
  display: list-item;
  border: 0;
  background: none;
  box-shadow: none;
}

.course-program li:last-child {
  margin-bottom: 0;
}

.course-program a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.course-program a:hover {
  color: var(--text-accent);
}

.course-program:has(.course-step-index) {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 150, 231, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 28px rgba(60, 95, 180, 0.08);
}

.course-program:has(.course-step-index) ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.course-program:has(.course-step-index) li {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(129, 149, 201, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(80, 97, 160, 0.08);
}

.course-step-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2f80ed, #1cb5e0);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(47, 128, 237, 0.35);
}

.course-step-text {
  min-width: 0;
  display: block;
}

.lesson-cta {
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
  display: flex;
  justify-content: center;
}

.lesson-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  min-width: 260px;
  border: 0;
  background: linear-gradient(90deg, #2f6bff 0%, #1f8eff 46%, #15c9b5 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 26px rgba(40, 122, 230, 0.33);
  width: 100%;
  max-width: 100%;
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  animation: lessonCtaGradientShift 3.2s ease-in-out infinite;
}

.lesson-cta-btn::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -40%;
  width: 32%;
  height: 340%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 46%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-260%) rotate(18deg);
  animation: lessonCtaShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.lesson-cta-btn:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(40, 122, 230, 0.38);
}

.lesson-cta-btn:active {
  transform: translateY(1px);
}

@keyframes lessonCtaGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes lessonCtaShine {
  0%,
  58% {
    transform: translateX(-260%) rotate(18deg);
    opacity: 0;
  }
  66% {
    opacity: 1;
  }
  82% {
    transform: translateX(420%) rotate(18deg);
    opacity: 0;
  }
  100% {
    transform: translateX(420%) rotate(18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lesson-cta-btn,
  .lesson-cta-btn::after,
  .book-offer-cta {
    animation: none;
  }
}

.article-code {
  margin: var(--space-4) 0 var(--space-5);
  padding: var(--space-3) 14px;
  border-radius: var(--radius-md);
  background: #24283b;
  color: #c0caf5;
  overflow-x: auto;
  border: 1px solid rgba(148, 164, 194, 0.26);
  box-shadow: var(--shadow-code);
}

.article-code code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  line-height: 1.5;
  white-space: pre;
}

.article-code .hljs-comment,
.article-code .hljs-quote {
  color: #565f89;
}

.article-code .hljs-keyword,
.article-code .hljs-selector-tag,
.article-code .hljs-type {
  color: #bb9af7;
}

.article-code .hljs-string,
.article-code .hljs-attr {
  color: #9ece6a;
}

.article-code .hljs-number,
.article-code .hljs-literal {
  color: #ff9e64;
}

.article-code .hljs-title,
.article-code .hljs-function {
  color: #7aa2f7;
}

.article-neighbors {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  border-top: 1px solid #e6e8ee;
}

.article-neighbors.article-neighbors-single {
  grid-template-columns: minmax(0, 1fr);
}

.article-neighbor-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: none;
  backdrop-filter: none;
}

.article-neighbor-link:has(> .neighbor-icon-spacer:first-child) {
  justify-content: flex-end;
  text-align: right;
}

.article-neighbor-link:hover {
  background: none;
  color: var(--text-accent);
}

.neighbor-title {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.neighbor-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  line-height: 1;
  background: none;
  border: 0;
  flex: 0 0 auto;
}

.neighbor-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neighbor-icon-spacer {
  display: none;
}

.neighbor-thumb {
  display: none;
}

.article-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  border: var(--border-soft);
  margin-bottom: 14px;
}

.pagination {
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid #e6e8ee;
}

.pagination-link {
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  min-height: 0;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: none;
  color: var(--text-primary);
}

.pagination-link:hover {
  background: none;
  color: var(--text-accent);
}

.pagination-info {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.not-found-page {
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: center;
}

.not-found-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.not-found-code {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-purple);
}

.not-found-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-primary);
}

.not-found-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.not-found-game {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 520;
  border-radius: 18px;
  overflow: hidden;
  background: #07080e;
  border: 1px solid rgba(109, 92, 255, 0.28);
  box-shadow: 0 16px 40px rgba(20, 24, 38, 0.18);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.not-found-game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}

.not-found-game-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.not-found-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: var(--border-soft);
  background: var(--surface-control);
  color: var(--surface-dark);
  font-weight: 600;
  font-size: 0.92em;
}

.not-found-home-btn:hover {
  color: var(--surface-dark);
  background: var(--surface-control-hover);
}

@media (max-height: 740px) {
  .not-found-page {
    width: min(280px, 100%);
    padding-top: 16px;
    padding-bottom: 24px;
    gap: 8px;
  }

  .not-found-title {
    font-size: 1.2rem;
  }
}

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: var(--space-1);
  font-size: 0.9em;
}

.app-footer {
  width: 100%;
  margin-top: auto;
  padding: 48px max(24px, calc((100vw - 1180px) / 2)) 24px;
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.96), rgba(25, 30, 46, 0.93));
  border-top: 1px solid rgba(109, 92, 255, 0.22);
  color: rgba(225, 233, 248, 0.82);
  text-align: left;
}

.app-footer .site-title {
  color: #fff;
}

.app-footer .site-subtitle {
  color: rgba(206, 218, 240, 0.74);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin: 0 0 12px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
}

.footer-text {
  margin: 12px 0 0;
  color: rgba(206, 218, 240, 0.82);
}

.footer-text + .footer-text {
  margin-top: 8px;
}

.footer-meta p {
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a,
.footer-meta a,
.footer-bottom a {
  color: rgba(226, 235, 252, 0.9);
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-copy {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social a[aria-label='ВКонтакте'] svg {
  width: 18px;
  height: 18px;
}

.bottom-nav {
  display: none;
}

.consent-popup {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  padding: 14px;
  z-index: 100;
}

.consent-popup p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.consent-popup a {
  text-decoration: none;
  font-weight: 700;
}

.consent-btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--surface-dark);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .header-nav {
    gap: 18px;
  }

  .header-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .blog-page {
    padding-top: 10px;
  }

  .container {
    max-width: 100%;
    padding: 0 16px var(--space-4);
  }

  .site-header {
    margin-bottom: 0;
    padding: 8px 16px;
  }

  .header-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-cta-bar {
    display: none;
  }

  .header-cta-in-nav {
    display: inline-flex;
    margin-top: 8px;
    width: 100%;
  }

  .logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .site-title {
    font-size: 0.92rem;
  }

  .site-subtitle {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .header-burger span,
  .header-burger span::before,
  .header-burger span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(245, 249, 255, 0.95);
    position: relative;
    transition:
      transform 0.2s ease,
      top 0.2s ease,
      background-color 0.2s ease;
  }

  .header-burger span::before,
  .header-burger span::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .header-burger span::before {
    top: -6px;
  }

  .header-burger span::after {
    top: 6px;
  }

  .site-header.is-open .header-burger span {
    background: transparent;
  }

  .site-header.is-open .header-burger {
    background: rgba(109, 92, 255, 0.2);
    border-color: rgba(178, 168, 255, 0.52);
  }

  .site-header.is-open .header-burger span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header.is-open .header-burger span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .header-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 10px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, rgba(20, 24, 38, 0.94), rgba(25, 30, 46, 0.9));
    border-top: 1px solid rgba(109, 92, 255, 0.24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 24px rgba(7, 11, 20, 0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .site-header.is-open .header-nav {
    display: flex;
  }

  .header-link {
    font-size: 0.95rem;
    padding: 12px 0;
    color: rgba(230, 238, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-link.active {
    color: #fff;
  }

  .header-link:hover {
    color: #fff;
  }

  .header-link:last-child {
    border-bottom: 0;
  }

  .hero-screen {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    padding: 0 0 var(--space-3);
  }

  .hero-screen::after {
    opacity: 0.28;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-points {
    gap: 6px;
    margin-bottom: var(--space-3);
  }

  .hero-points li {
    font-size: 0.92rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-cta-primary {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    min-height: 220px;
  }

  .app-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .offer-card {
    padding: var(--space-2) var(--space-3);
  }

  .offer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .offer-title {
    font-size: 0.98rem;
    margin-bottom: 5px;
  }

  .offer-text {
    font-size: 0.84rem;
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .offer-list li {
    font-size: 0.68rem;
    padding: 4px 5px 4px 17px;
  }

  .offer-result-image {
    height: 98px;
  }

  .offer-cta-lead {
    font-size: 0.76rem;
    margin-top: 6px;
  }

  .offer-cta {
    font-size: 0.82rem;
    padding: 7px 10px;
    min-width: 100%;
  }

  .article {
    margin-bottom: 40px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .article-detail-title {
    font-size: 1.75rem;
  }

  .article-body h2,
  .article-body h3,
  .article-body h4 {
    scroll-margin-top: 84px;
  }

  .article-neighbors {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .article-neighbor-link {
    font-size: 0.82rem;
    gap: 6px;
  }

  .lesson-materials-list {
    columns: 1;
  }

  .course-program:has(.course-step-index) li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lesson-cta-btn {
    min-width: 0;
    width: 100%;
  }

  .book-offer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .book-offer-cover {
    max-width: 190px;
    margin: 0 auto;
  }

  .consent-popup {
    bottom: 16px;
  }

  .app-footer {
    margin-top: auto;
    padding-top: var(--space-2);
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bottom-link {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: var(--btn-radius);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.1;
    font-weight: 600;
    background: var(--btn-bg);
    border: var(--border-soft);
    box-shadow: var(--btn-shadow);
  }

  .bottom-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-link.active {
    background: var(--surface-dark);
    border-color: var(--surface-dark);
    color: #fff;
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0 12px calc(var(--space-6) + env(safe-area-inset-bottom));
  }

  .home-page {
    gap: var(--space-3);
  }

  .section-card,
  .offer-card,
  .article-card {
    padding: var(--space-2);
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .featured-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-inner {
    font-size: 0.86rem;
  }

  .site-header {
    padding-inline: 12px;
  }

  .app-footer {
    padding-inline: 12px;
  }
}

@media (max-width: 390px) {
  .site-subtitle {
    font-size: 0.76rem;
  }

  .offer-list li {
    font-size: 0.66rem;
    padding: 4px 5px 4px 16px;
  }

  .offer-list li::before {
    left: 4px;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-top: 6px;
    padding-bottom: var(--space-2);
  }

  .section-title {
    font-size: 1.08rem;
  }
}

/* Product polish: home/blog */
.home-page {
  gap: 56px;
}

.hero-screen {
  min-height: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-visual {
  border-radius: 0;
  border: 0;
}

.hero-orb {
  opacity: 0.8;
}

.hero-pixel {
  opacity: 0.65;
}

.hero-proof {
  color: #5f6a7d;
}

.section-card,
.article-card {
  border-radius: 14px;
  border: 1px solid rgba(138, 150, 177, 0.2);
  box-shadow: 0 10px 22px rgba(24, 34, 56, 0.06);
}

.featured-head {
  align-items: center;
}

.featured-grid {
  gap: var(--space-3);
}

.featured-card {
  padding: var(--space-3);
}

.featured-meta {
  font-size: 0.76rem;
}

.featured-title {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.featured-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.8em;
}

.featured-read-btn {
  min-height: 38px;
  justify-content: center;
}

.community-card {
  border-color: rgba(138, 150, 177, 0.2);
  background: #fff;
  box-shadow: 0 10px 22px rgba(24, 34, 56, 0.06);
}

.community-card .section-title {
  color: var(--text-primary);
  text-align: left;
}

.community-card .community-text {
  color: var(--text-secondary);
}

.community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.community-links a,
.community-card .community-links a {
  border: 1px solid rgba(138, 150, 177, 0.2);
  background: #fff;
  color: var(--text-primary);
  box-shadow: none;
}

.community-link-sub,
.community-card .community-link-sub {
  color: var(--text-muted);
}

.blog-intro {
  margin-bottom: var(--space-4);
}

.blog-topics a {
  border: 0;
  background: none;
}

.article {
  margin-bottom: var(--space-4);
}

.article-title {
  font-size: 1.3rem;
}

.article-excerpt {
  margin-bottom: var(--space-3);
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  font-weight: 700;
  min-width: 140px;
}

@media (max-width: 992px) {
  .hero-screen {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-visual {
    min-height: 220px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .home-page {
    gap: 36px;
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-title {
    font-size: 1.55rem;
  }
}

/* Stability refinement: typography and spacing rhythm */
.featured-head {
  align-items: flex-end;
}

.featured-subtitle {
  font-size: 0.95rem;
  line-height: 1.45;
}

.featured-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
}

.featured-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.featured-title {
  margin: 0;
  min-height: 0;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  font-size: 1.08rem;
  line-height: 1.3;
}

.featured-title a {
  display: inline;
}

.featured-excerpt {
  min-height: 0;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  font-size: 0.92rem;
  line-height: 1.5;
}

.featured-read-btn {
  width: auto;
  min-width: 128px;
  margin-top: 8px;
  align-self: flex-start;
}

.community-card .section-title {
  margin-bottom: 10px;
}

.community-text {
  font-size: 0.98rem;
  line-height: 1.6;
}

.community-links a,
.community-card .community-links a {
  gap: 6px;
  padding: 16px 18px;
}

.community-link-head {
  font-size: 1.02rem;
}

.community-link-sub,
.community-card .community-link-sub {
  font-size: 0.86rem;
  line-height: 1.45;
}

.footer-inner {
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-title {
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.footer-text,
.footer-meta p,
.footer-links a,
.footer-bottom a,
.footer-copy {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-meta,
.footer-links {
  gap: 8px;
}

.featured-section {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding: 24px 20px;
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(108, 92, 255, 0.08) 0%, rgba(108, 92, 255, 0) 52%),
    linear-gradient(180deg, #fcfdff 0%, #f8faff 100%);
}

.home-page .section-title {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.2;
  margin: 0;
}

.home-page .hero-kicker,
.home-page .section-label {
  color: #4a5568;
}

.home-block-head {
  margin-bottom: var(--space-5);
}

.home-path-section {
  position: relative;
  padding: 24px 20px;
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(45, 212, 191, 0.08) 0%, rgba(45, 212, 191, 0) 56%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-path {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  position: relative;
}

.home-path::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(109, 92, 255, 0.32),
    rgba(109, 92, 255, 0.2),
    rgba(45, 212, 191, 0.26),
    rgba(109, 92, 255, 0.2),
    rgba(109, 92, 255, 0.32)
  );
  pointer-events: none;
}

.home-path li {
  position: relative;
  min-width: 0;
  display: flex;
  z-index: 1;
}

.home-path-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(138, 150, 177, 0.18);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.home-path-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6d5cff 0%, #5f84dd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(66, 72, 188, 0.24);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.home-path-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-path-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 92, 255, 0.38);
  box-shadow: 0 10px 20px rgba(34, 49, 78, 0.14);
}

.home-path-card:hover .home-path-num {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(66, 72, 188, 0.32);
  filter: saturate(1.08);
}

.home-skills-section,
.home-flow-section,
.home-audience-section,
.home-requirements-section,
.home-faq-section {
  position: relative;
  padding: 24px 20px;
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(109, 92, 255, 0.06) 0%, rgba(109, 92, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.home-skill-card {
  padding: 16px;
  border: 1px solid rgba(138, 150, 177, 0.14);
  border-radius: 12px;
  background: #fff;
}

.home-skill-card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-skill-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #273146;
  background: linear-gradient(180deg, #edf1ff 0%, #dde6ff 100%);
  border: 1px solid rgba(122, 138, 184, 0.3);
}

.home-skill-card--structure .home-skill-icon {
  background: linear-gradient(180deg, #edf1ff 0%, #e2e8ff 100%);
}

.home-skill-card--architecture .home-skill-icon {
  background: linear-gradient(180deg, #eef8ff 0%, #dceeff 100%);
}

.home-skill-card--practice .home-skill-icon {
  background: linear-gradient(180deg, #f5efff 0%, #e9ddff 100%);
}

.home-skill-card--frontend .home-skill-icon {
  background: linear-gradient(180deg, #eefdf6 0%, #daf6e9 100%);
}

.home-skills-preview {
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-skills-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(138, 150, 177, 0.16);
  background: rgba(245, 248, 255, 0.92);
}

.home-skills-preview-file {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.home-skills-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #1f9d63;
  font-weight: 600;
}

.home-skills-preview-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.home-skills-preview-status span:last-child {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.home-skills-preview-status.is-ready {
  color: #6d5cff;
}

.home-skills-preview-status.is-ready span:first-child {
  background: #7c6df2;
  box-shadow: 0 0 0 3px rgba(109, 92, 255, 0.14);
}

.home-skills-preview-status.is-game-over {
  color: #c35463;
}

.home-skills-preview-status.is-game-over span:first-child {
  background: #e76572;
  box-shadow: 0 0 0 3px rgba(231, 101, 114, 0.15);
}

.home-skills-preview-canvas {
  display: block;
  width: 100%;
  min-height: 220px;
  flex: 1 1 auto;
  background: #11182a;
  cursor: ns-resize;
  touch-action: none;
}

.home-skills-preview-canvas:focus-visible {
  outline: 3px solid rgba(109, 92, 255, 0.55);
  outline-offset: -3px;
}

.home-skills-preview-fallback {
  display: none;
  padding: 12px;
  background: rgba(16, 22, 36, 0.94);
  border-top: 1px solid rgba(138, 150, 177, 0.18);
  gap: 5px;
}

.home-skills-preview-fallback span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.75rem;
  color: rgba(224, 236, 255, 0.9);
  white-space: nowrap;
  animation: codeTicker 8s linear infinite;
}

.home-skills-preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-top: 1px solid rgba(138, 150, 177, 0.16);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2a3347;
  background: rgba(255, 255, 255, 0.88);
}

.home-skills-preview-link:hover {
  color: var(--brand-purple);
  background: #fff;
}

.home-flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.home-flow-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(138, 150, 177, 0.14);
  border-radius: 12px;
  background: #fff;
}

.home-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2f3f5a;
  background: #eceff4;
}

.home-flow-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.home-flow-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-audience-card {
  padding: 16px;
  border: 1px solid rgba(138, 150, 177, 0.14);
  border-radius: 12px;
  background: #fff;
}

.home-audience-card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.3;
}

.home-audience-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-requirements-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.home-requirements-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(138, 150, 177, 0.14);
  border-radius: 12px;
  background: #fff;
}

.home-requirements-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2f3f5a;
  background: #eceff4;
}

.home-requirements-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.home-requirements-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-featured-groups {
  display: grid;
  gap: 22px;
}

.home-featured-group {
  padding: 16px;
  border: 1px solid rgba(138, 150, 177, 0.14);
  border-radius: 14px;
  background: #fff;
}

.home-featured-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.home-featured-group-head h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.home-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-material-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  background: #fff;
  padding: 18px;
}

.home-material-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.home-material-cover {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(20, 24, 38, 0.08);
  margin-bottom: 12px;
  background: #f4f5f8;
}

.home-material-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}

.home-material-card li {
  color: var(--text-muted);
  line-height: 1.45;
}

.home-material-card a {
  color: inherit;
  text-decoration: none;
}

.home-material-item {
  display: inline-block;
}

.home-material-card ol a:hover,
.home-material-card ol a:focus-visible {
  color: var(--brand-purple);
}

.home-material-more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.home-material-more:hover,
.home-material-more:focus-visible {
  color: var(--brand-purple);
}

.home-faq-list {
  display: grid;
  gap: 10px;
}

.home-faq-item {
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: 12px;
  background: #fff;
}

.home-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.home-faq-question span {
  display: inline-block;
  min-width: 14px;
  color: #5b6472;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.home-faq-question[aria-expanded='true'] span {
  transform: rotate(45deg);
}

.home-faq-answer {
  padding: 0 16px 14px;
}

.home-faq-answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-final-cta {
  padding: 26px 20px;
  border: 1px solid rgba(138, 150, 177, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(45, 212, 191, 0.1) 0%, rgba(45, 212, 191, 0) 52%),
    linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.home-final-cta p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 62ch;
}

.home-final-cta .hero-cta {
  justify-content: center;
}

.home-final-cta-visual {
  width: min(100%, 640px);
  padding: 14px 16px;
  border: 1px solid rgba(138, 150, 177, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(120% 130% at 10% 0%, rgba(124, 107, 255, 0.18) 0%, rgba(124, 107, 255, 0) 55%),
    linear-gradient(180deg, rgba(19, 27, 45, 0.96) 0%, rgba(14, 21, 36, 0.96) 100%);
  box-shadow:
    0 12px 22px rgba(19, 29, 48, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-final-roadmap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-final-roadmap-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 165, 205, 0.34);
  background: rgba(38, 53, 84, 0.78);
  color: rgba(228, 238, 255, 0.94);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(8, 12, 22, 0.2);
}

.home-final-roadmap-step--active {
  border-color: rgba(152, 132, 255, 0.56);
  background: linear-gradient(135deg, rgba(116, 95, 255, 0.95) 0%, rgba(86, 191, 255, 0.88) 100%);
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(109, 92, 255, 0.18),
    0 10px 20px rgba(68, 72, 182, 0.34);
  animation: roadmapGlow 3s ease-in-out infinite;
}

.home-final-roadmap-connector {
  color: rgba(170, 188, 222, 0.76);
  font-size: 1rem;
  font-weight: 700;
}

@keyframes codeTicker {
  0% {
    transform: translateX(0);
    opacity: 0.84;
  }
  50% {
    transform: translateX(-8px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.84;
  }
}

@keyframes roadmapGlow {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px);
    filter: brightness(1.08);
  }
}

.home-article-list {
  counter-reset: home-article;
  border-top: 1px solid rgba(20, 24, 38, 0.08);
}

.home-article-row {
  display: grid;
  grid-template-columns: 36px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(20, 24, 38, 0.08);
  text-decoration: none;
  color: inherit;
}

.home-article-num::before {
  counter-increment: home-article;
  content: counter(home-article, decimal-leading-zero);
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b6472;
}

.home-article-media {
  display: block;
  width: 96px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f5f8;
}

.home-article-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-article-media .post-card-fallback {
  height: 100%;
  font-size: 0.72rem;
}

.home-article-title {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-article-body {
  min-width: 0;
}

.home-article-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-article-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.home-article-arrow {
  color: var(--text-primary);
}

.home-article-row:hover .home-article-title,
.home-article-row:hover .home-article-arrow {
  color: var(--brand-purple);
}

@media (max-width: 1100px) {
  .home-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-path::before {
    right: calc(33% + 12px);
  }

  .home-materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-skills-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-audience-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-featured-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.read-next-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(24, 34, 56, 0.04);
  padding: 18px 18px 16px;
  transition: border-color 0.2s ease;
  margin: 0 auto;
}

.post-card:hover {
  border-color: #cfd6e4;
}

.post-card-media {
  display: block;
  width: auto;
  aspect-ratio: 1200 / 676;
  margin: -18px -18px 14px;
  background: #fff;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.post-card-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.post-card-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
}

.post-card-title a {
  text-decoration: none;
  color: var(--text-primary);
}

.post-card-title a:hover {
  color: var(--text-accent);
}

.post-card-excerpt {
  margin: 0 0 18px;
  color: #5b6472;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1 1 auto;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.post-card-foot span {
  color: #8a93a3;
  font-size: 0.82rem;
}

.post-card-foot a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 500;
}

.post-card-foot a:hover {
  color: var(--text-accent);
}

.blog-feed {
  border-top: 1px solid #e6e8ee;
}

.post-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #e6e8ee;
}

.post-row-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 96px;
  background: #f7f8fb;
  overflow: hidden;
}

.post-row-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.post-row-body {
  min-width: 0;
}

.post-row-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 700;
}

.post-row-title a {
  text-decoration: none;
  color: var(--text-primary);
}

.post-row-title a:hover {
  color: var(--text-accent);
}

.post-row-excerpt {
  margin: 0 0 12px;
  color: #3f4a5a;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.post-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-row-foot span {
  color: #8a93a3;
  font-size: 0.86rem;
}

.post-row-foot a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.post-row-foot a:hover {
  color: var(--text-accent);
}

@media (max-width: 768px) {
  .home-path-section,
  .featured-section,
  .home-skills-section,
  .home-flow-section,
  .home-audience-section,
  .home-requirements-section,
  .home-faq-section,
  .home-final-cta {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .home-path {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .home-path li:not(:last-child)::after,
  .home-path li:nth-child(3)::after {
    content: none;
  }

  .home-path::before {
    content: none;
  }

  .home-materials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-featured-group {
    padding: 12px;
  }

  .home-flow-list li {
    padding: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .home-requirements-list li {
    padding: 12px;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .home-requirements-num {
    width: 36px;
    height: 28px;
    font-size: 0.72rem;
  }

  .home-skills-preview-link {
    font-size: 0.84rem;
    padding: 10px 12px;
  }

  .home-flow-num {
    width: 30px;
    height: 30px;
  }

  .home-faq-question {
    padding: 12px 14px;
    font-size: 0.94rem;
  }

  .home-faq-answer {
    padding: 0 14px 12px;
  }

  .home-final-cta-visual {
    width: 100%;
    padding: 10px 12px;
  }

  .home-final-roadmap {
    gap: 8px;
  }

  .home-final-roadmap-step {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .home-final-roadmap-connector {
    font-size: 0.9rem;
  }

  .home-article-row {
    grid-template-columns: 28px 72px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .home-article-media {
    width: 72px;
    height: 48px;
  }

  .home-article-meta {
    grid-column: 2 / -1;
  }

  .home-block-actions {
    flex-direction: column;
  }

  .home-block-actions .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .read-next-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-game-canvas {
    min-height: 240px;
  }

  .post-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .post-row-media {
    width: 100%;
    height: 120px;
  }

  .post-row-title {
    font-size: 1.28rem;
  }

  .blog-title {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-screen::before,
  .home-skills-preview-fallback span,
  .home-final-roadmap-step--active {
    animation: none;
  }
}

/* Article source button */
.article-source-button {
  font-family: inherit;
  cursor: pointer;
}

.article-callout--source .article-read-btn,
.article-callout--source .article-source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
  box-shadow: none;
}

.article-callout--source .article-source-button {
  border: 0;
  background: var(--brand-purple);
  color: #fff;
}

.article-callout--source .article-source-button:hover {
  background: #5b4ae8;
  color: #fff;
}

.article-callout--source .article-source-download {
  border: 1px solid rgba(111, 129, 176, 0.28);
  background: #fff;
  color: var(--text-primary);
}

.article-callout--source .article-source-download:hover {
  background: #f6f7fb;
  color: var(--text-primary);
}

/* Play catalog and game page */
.play-page {
  display: grid;
  gap: 20px;
  padding: 32px 0 72px;
}

.play-page-head {
  display: grid;
  gap: 8px;
}

.play-page-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.play-page-lead {
  margin: 0;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.play-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121, 111, 236, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(47, 202, 187, 0.2), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(109, 92, 255, 0.28), transparent 42%),
    linear-gradient(140deg, #151c30 0%, #202945 100%);
  box-shadow: 0 24px 52px rgba(23, 31, 53, 0.18);
  color: #f6f8ff;
}

.play-hero {
  padding: clamp(16px, 3vw, 30px);
}

.play-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}

.play-hero > * {
  position: relative;
  z-index: 1;
}

.play-hero .section-label {
  color: #9d91ff;
}

.play-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.play-hero > p:last-child {
  max-width: 60ch;
  margin: 10px 0 0;
  color: rgba(229, 236, 252, 0.78);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.5;
}

.play-hero.blog-hero {
  padding: clamp(16px, 3vw, 28px);
}

.play-hero.blog-hero .blog-title {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.play-hero.blog-hero .blog-lead {
  margin-top: 10px;
  max-width: 60ch;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.5;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
}

.play-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.play-card:hover,
.play-card:focus-visible {
  color: inherit;
}

.play-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #11192b;
}

.play-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.play-card:hover .play-card-cover img,
.play-card:focus-visible .play-card-cover img {
  transform: scale(1.05);
}

.play-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.play-card:hover .play-card-title,
.play-card:focus-visible .play-card-title {
  color: var(--text-accent);
}

.blog-page .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.blog-page .post-card {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid rgba(138, 150, 177, 0.22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 40, 64, 0.09);
  padding: 22px;
}

.blog-page .post-card:hover {
  border-color: #cfd6e4;
}

.blog-page .post-card-media {
  margin: -22px -22px 14px;
}

html:has(body.is-play-game) {
  height: 100%;
}

body.is-play-game {
  height: 100svh;
  overflow: hidden;
  background: #0e1525;
}

body.is-play-game .container {
  max-width: none;
  min-height: 0;
  height: 100%;
  padding: 0;
  flex: 1 1 auto;
}

body.is-play-game .site-header {
  flex: 0 0 auto;
  position: relative;
}

body.is-play-game main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.play-game-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.play-game-frame {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0e1525;
}

/* Reusable source viewer */
body.source-viewer-open {
  overflow: hidden;
}

.source-viewer[hidden] {
  display: none;
}

.source-viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.source-viewer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(7, 11, 21, 0.74);
  backdrop-filter: blur(8px);
  cursor: default;
}

.source-viewer-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(1040px, 100%);
  height: min(780px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid rgba(157, 145, 255, 0.26);
  border-radius: 18px;
  outline: none;
  background: #111827;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  color: #edf2ff;
  animation: sourceViewerIn 0.2s ease-out both;
}

.source-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 86% 0%, rgba(47, 202, 187, 0.13), transparent 34%),
    #171f34;
}

.source-viewer-header p {
  margin: 0 0 3px;
  color: #968aff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.source-viewer-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
}

.source-viewer-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #d9e2f7;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.source-viewer-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.source-viewer-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.source-viewer-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 14px 0;
  background: #111827;
  scrollbar-width: thin;
}

.source-viewer-tabs button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 9px 9px 0 0;
  padding: 9px 14px;
  color: #93a1bb;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.source-viewer-tabs button:hover {
  color: #dce5f8;
  background: rgba(255, 255, 255, 0.04);
}

.source-viewer-tabs button[aria-selected='true'] {
  border-color: rgba(157, 145, 255, 0.18);
  border-bottom-color: #1b2438;
  color: #fff;
  background: #1b2438;
}

.source-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 8px 14px;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: #1b2438;
}

.source-viewer-toolbar > span {
  min-width: 0;
  overflow: hidden;
  color: #b9c6dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-viewer-toolbar > div {
  display: flex;
  gap: 7px;
}

.source-viewer-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 10px;
  color: #e2e9f8;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.source-viewer-toolbar button:hover:not(:disabled) {
  border-color: rgba(157, 145, 255, 0.35);
  background: rgba(124, 105, 242, 0.16);
}

.source-viewer-toolbar button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.source-viewer-toolbar button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.source-viewer-content {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #0d1423;
}

.source-viewer-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #8f9db8;
  text-align: center;
}

.source-viewer-state[hidden],
.source-viewer-code[hidden] {
  display: none;
}

.source-viewer-code {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: auto;
  border-radius: 0;
  background: #0d1423 !important;
  scrollbar-color: #4a5570 #111827;
}

.source-viewer-code code {
  display: block;
  min-width: max-content;
  min-height: 100%;
  padding: 20px !important;
  background: #0d1423 !important;
  font-size: 0.8rem;
  line-height: 1.65;
  tab-size: 2;
}

.source-viewer-status {
  min-height: 30px;
  margin: 0;
  padding: 6px 15px;
  color: #79ddc2;
  background: #111827;
  font-size: 0.74rem;
  text-align: right;
}

@keyframes sourceViewerIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .play-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .play-page {
    padding: 22px 0 52px;
  }

  .play-hero {
    border-radius: 16px;
    padding: 16px 14px;
  }

  .play-hero h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .play-hero.blog-hero {
    padding: 16px 14px;
  }

  .play-hero.blog-hero .blog-title {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .source-viewer {
    padding: 10px;
  }

  .source-viewer-dialog {
    height: calc(100svh - 20px);
    border-radius: 13px;
  }

  .source-viewer-header {
    padding: 14px;
  }

  .source-viewer-header h2 {
    font-size: 1.05rem;
  }

  .source-viewer-tabs {
    padding-inline: 8px;
  }

  .source-viewer-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 9px;
  }

  .source-viewer-toolbar > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-viewer-toolbar button {
    justify-content: center;
  }

  .source-viewer-code code {
    padding: 14px !important;
    font-size: 0.73rem;
  }
}

@media (max-width: 640px) {
  .play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .play-card-title {
    font-size: 0.875rem;
  }
}

@media (max-width: 430px) {
  .source-viewer-toolbar button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-viewer-dialog,
  .play-card,
  .play-card-cover img {
    animation: none;
    transition: none;
  }
}

.track-page {
  display: grid;
  gap: 18px;
  padding-bottom: 12px;
}

.track-page-lead {
  margin: 6px 0 0;
  color: var(--text-secondary);
  max-width: 74ch;
}

.track-chapters {
  position: relative;
  overflow: hidden;
  padding: 14px 15px 13px;
  border-radius: 14px;
  border: 1px solid rgba(109, 92, 255, 0.2);
  background:
    radial-gradient(rgba(109, 92, 255, 0.11) 0.7px, transparent 0.8px) 0 0 / 11px 11px,
    linear-gradient(180deg, rgba(247, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 18px rgba(61, 48, 128, 0.06);
}

.track-chapters::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(109, 92, 255, 0.72),
    rgba(45, 212, 191, 0.42),
    rgba(109, 92, 255, 0.16)
  );
}

.track-chapter-line {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.track-chapter {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(138, 150, 177, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
}

.track-chapter:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -12px;
  width: 12px;
  border-top: 2px dashed rgba(109, 92, 255, 0.38);
}

.track-chapter:hover {
  border-color: rgba(109, 92, 255, 0.42);
  background: linear-gradient(180deg, #efeaff, #f8f6ff);
  color: inherit;
}

.track-chapter-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border-radius: 999px;
  border: 2px solid var(--brand-purple);
  background: #b7b1ee;
}

.track-chapter-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-chapter-num {
  color: var(--brand-purple);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.track-chapter-title {
  color: #2a245c;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.track-chapter-count {
  color: #6b7288;
  font-size: 0.72rem;
}

.track-groups {
  gap: 12px;
}

.track-group-collapsible {
  padding: 0;
}

.track-group-summary {
  margin: 0;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.track-group-summary::-webkit-details-marker {
  display: none;
}

.track-group-summary h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.track-group-summary::after {
  content: "+";
  margin-left: auto;
  color: #697487;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.track-group-collapsible[open] .track-group-summary::after {
  content: "−";
}

.track-group-content {
  padding: 0 16px 12px;
}

.track-group-description {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.track-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(138, 150, 177, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.track-status-pill--free {
  color: #2f6a50;
  border-color: rgba(79, 183, 141, 0.45);
  background: rgba(228, 251, 241, 0.92);
}

.track-status-pill--paid {
  color: #49226f;
  border-color: rgba(200, 151, 255, 0.7);
  background: linear-gradient(135deg, #fff1bd, #f6ddff 58%, #e7d0ff);
  box-shadow: 0 5px 14px rgba(130, 76, 195, 0.22);
}

.track-status-pill--paid::before {
  content: "✦";
  margin-right: 6px;
  font-size: 0.74rem;
  color: #8a4be0;
}

.track-status-pill--soon {
  color: #6a3f12;
  border-color: rgba(239, 178, 98, 0.7);
  background: linear-gradient(135deg, #fff6d4, #ffe7c3 55%, #ffe0b6);
  box-shadow: 0 5px 14px rgba(183, 124, 55, 0.18);
}

.track-status-pill--soon::before {
  content: "⏳";
  margin-right: 6px;
  font-size: 0.74rem;
  color: #b56a1f;
}

.track-page .track-article-row {
  grid-template-columns: 30px 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 0;
}

.track-page .track-article-row .home-article-media {
  width: 72px;
  height: 46px;
}

.track-page .track-article-row .home-article-title {
  margin-bottom: 3px;
  font-size: 1rem;
}

.track-page .track-article-row .home-article-excerpt {
  font-size: 0.88rem;
  line-height: 1.45;
}

.track-page .track-article-row--paid {
  position: relative;
  margin: 6px 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(211, 166, 255, 0.62);
  border-bottom-color: rgba(211, 166, 255, 0.62);
  background:
    radial-gradient(220px 120px at 98% 8%, rgba(255, 229, 133, 0.34), rgba(255, 229, 133, 0) 65%),
    linear-gradient(130deg, rgba(249, 242, 255, 0.94), rgba(255, 251, 236, 0.97) 58%, rgba(242, 231, 255, 0.96));
  box-shadow: 0 10px 20px rgba(96, 52, 153, 0.11);
  overflow: hidden;
}

.track-page .track-article-row--paid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.34) 80%, rgba(255, 255, 255, 0) 100%);
}

.track-page a.track-article-row--paid:hover {
  border-color: rgba(183, 129, 243, 0.82);
  box-shadow: 0 14px 30px rgba(92, 47, 153, 0.18);
}

.track-page a.track-article-row--paid:hover .home-article-title {
  color: #7d34cc;
}

.track-page .track-article-row--paid .home-article-media {
  width: 78px;
  height: 100px;
  border-radius: 11px;
  border: 1px solid rgba(182, 131, 245, 0.46);
  background: linear-gradient(165deg, #ffffff, #f5e8ff);
  box-shadow: 0 8px 14px rgba(46, 19, 82, 0.14);
  padding: 5px;
}

.track-page .track-article-row--paid .home-article-media img {
  object-fit: contain;
}

.track-page .track-article-row--paid .home-article-title {
  font-weight: 800;
}

.track-page .track-article-row--paid .home-article-excerpt {
  color: #4b4f5c;
}

.track-page .track-article-row--paid .home-article-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(171, 113, 239, 0.62);
  background: rgba(255, 255, 255, 0.84);
  color: #7d34cc;
}

.track-page .track-article-row--soon {
  position: relative;
  cursor: default;
  margin: 6px 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(244, 190, 121, 0.62);
  border-bottom-color: rgba(244, 190, 121, 0.62);
  background:
    radial-gradient(220px 120px at 98% 8%, rgba(255, 233, 169, 0.36), rgba(255, 233, 169, 0) 66%),
    linear-gradient(130deg, rgba(255, 249, 235, 0.95), rgba(255, 241, 216, 0.95) 58%, rgba(255, 235, 205, 0.95));
  box-shadow: 0 10px 20px rgba(146, 98, 36, 0.1);
  overflow: hidden;
}

.track-page .track-article-row--soon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.32) 82%, rgba(255, 255, 255, 0) 100%);
}

.track-page .track-article-row--soon .home-article-arrow {
  display: none;
}

.track-page .track-article-row--soon:hover .home-article-title,
.track-page .track-article-row--soon:hover .home-article-arrow {
  color: inherit;
}

.track-page .track-article-row--soon .home-article-title {
  font-weight: 800;
  color: #7a4a15;
}

.track-page .track-article-row--soon .home-article-excerpt {
  color: #675541;
}

.track-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 15px 13px;
  border-radius: 14px;
  border: 1px solid rgba(109, 92, 255, 0.2);
  background:
    radial-gradient(rgba(109, 92, 255, 0.11) 0.7px, transparent 0.8px) 0 0 / 11px 11px,
    linear-gradient(180deg, rgba(247, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 18px rgba(61, 48, 128, 0.06);
}

.track-hero::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(109, 92, 255, 0.72),
    rgba(45, 212, 191, 0.42),
    rgba(109, 92, 255, 0.16)
  );
}

.track-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.track-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-title {
  margin: 10px 0 8px;
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  line-height: 1.22;
  color: var(--text-primary);
}

.track-hero-lead {
  margin: 0;
  max-width: 72ch;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.track-hero-stack {
  margin: 8px 0 0;
  color: #5b5678;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.track-metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(109, 92, 255, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #5b5678;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.track-cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(109, 92, 255, 0.28);
  background: linear-gradient(180deg, #ffffff, var(--brand-purple-soft));
  color: #4d3fd4;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(109, 92, 255, 0.1);
}

.track-cta:hover {
  color: #3b2fc4;
  border-color: rgba(109, 92, 255, 0.46);
  box-shadow: 0 6px 14px rgba(109, 92, 255, 0.16);
}

.track-program {
  display: grid;
  gap: 12px;
}

.track-program-head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

.track-program-head p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  max-width: 70ch;
  line-height: 1.55;
}

.track-block {
  scroll-margin-top: calc(var(--site-header-height) + 12px);
  border: 1px solid rgba(138, 150, 177, 0.28);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 6px 14px 12px;
}

.track-block-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 10px 2px;
}

.track-block-summary::-webkit-details-marker {
  display: none;
}

.track-block-summary::after {
  content: "+";
  color: #697487;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.track-block[open] .track-block-summary::after {
  content: "−";
}

.track-block-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.track-block-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-purple);
  background: var(--brand-purple-soft);
  border: 1px solid rgba(109, 92, 255, 0.22);
}

.track-block-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: #1d2433;
}

.track-block-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: #6b7288;
}

.track-block-description {
  margin: 0 2px 10px;
  color: var(--text-muted);
  line-height: 1.52;
  font-size: 0.92rem;
}

.track-page .home-article-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b6472;
  font-variant-numeric: tabular-nums;
}

.track-page .home-article-num::before {
  content: none;
  counter-increment: none;
}

.article-track-nav {
  position: relative;
  margin: 12px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(109, 92, 255, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(rgba(109, 92, 255, 0.11) 0.7px, transparent 0.8px) 0 0 / 11px 11px,
    linear-gradient(180deg, rgba(247, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
  padding: 14px 15px 13px;
  box-shadow: 0 8px 18px rgba(61, 48, 128, 0.06);
}

.article-track-nav::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(109, 92, 255, 0.72),
    rgba(45, 212, 191, 0.42),
    rgba(109, 92, 255, 0.16)
  );
}

.article-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.article-track-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-track-progress {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(109, 92, 255, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #5b5678;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-track-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(109, 92, 255, 0.28);
  background: linear-gradient(180deg, #ffffff, var(--brand-purple-soft));
  color: #4d3fd4;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(109, 92, 255, 0.1);
}

.article-track-map svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.article-track-map:hover {
  color: #3b2fc4;
  border-color: rgba(109, 92, 255, 0.46);
  box-shadow: 0 6px 14px rgba(109, 92, 255, 0.16);
}

.article-track-line {
  margin-top: 11px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.article-track-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(138, 150, 177, 0.28);
  background: rgba(255, 255, 255, 0.78);
  position: relative;
}

.article-track-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -12px;
  width: 12px;
  border-top: 2px dashed rgba(109, 92, 255, 0.38);
}

.article-track-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border-radius: 999px;
  border: 2px solid #9aa3c0;
  background: transparent;
}

.article-track-step-link,
.article-track-step-label {
  min-width: 0;
  color: #2a467a;
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
}

.article-track-step-link:hover {
  color: var(--brand-purple);
}

.article-track-step--prev .article-track-dot {
  border-color: #7c74d8;
  background: #b7b1ee;
}

.article-track-step--next {
  opacity: 0.92;
}

.article-track-step--current {
  border-color: rgba(109, 92, 255, 0.42);
  background: linear-gradient(180deg, #efeaff, #f8f6ff);
  box-shadow: 0 0 0 1px rgba(109, 92, 255, 0.06);
}

.article-track-step--current .article-track-dot {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(109, 92, 255, 0.18);
  animation: articleTrackPulse 1.8s ease-in-out infinite;
}

.article-track-step--current .article-track-step-label {
  color: #2a245c;
  font-weight: 700;
}

@keyframes articleTrackPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(109, 92, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(109, 92, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-track-step--current .article-track-dot {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .track-chapter-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .track-chapter:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .track-hero {
    border-radius: 14px;
    padding: 14px 15px 13px;
  }

  .track-chapter-line {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .track-chapter:nth-child(3n)::after,
  .track-chapter:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 15px;
    bottom: -10px;
    width: 0;
    height: 10px;
    border-top: 0;
    border-left: 2px dashed rgba(109, 92, 255, 0.38);
    display: block;
  }

  .track-chapter:last-child::after {
    display: none;
  }

  .track-block {
    border-radius: 13px;
    padding: 4px 10px 10px;
  }

  .track-group-summary {
    padding: 12px;
  }

  .track-group-content {
    padding: 0 12px 10px;
  }

  .article-track-line {
    flex-direction: column;
    gap: 10px;
  }

  .article-track-step:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 15px;
    bottom: -10px;
    width: 0;
    height: 10px;
    border-top: 0;
    border-left: 2px dashed rgba(109, 92, 255, 0.38);
  }

  .track-page .track-article-row--paid {
    margin: 4px 0;
    padding: 12px 10px;
  }

  .track-page .track-article-row--paid .home-article-media {
    width: 72px;
    height: 92px;
    padding: 4px;
  }

  .track-page .track-article-row--soon {
    margin: 4px 0;
    padding: 12px 10px;
  }
}
