:root {
  --bg: #f4faf7;
  --fg: #0a0a0f;
  --muted: #3d4a46;
  --border: rgba(10, 10, 15, 0.08);
  --accent: #1f7a55;
  --accent-hover: #166246;
  --mint: #63e8b6;
  --mint-deep: #3dcf96;
  --gold: #fbbf24;
  --card: #ffffff;
  --page: 67rem;
  --read: 45rem;
  --max: var(--read);
  --font-display: "Nunito", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 6% -8%, rgba(99, 232, 182, 0.34), transparent 58%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(251, 191, 36, 0.12), transparent 52%),
    radial-gradient(ellipse 45% 35% at 92% 100%, rgba(99, 232, 182, 0.2), transparent 55%);
}

body.blog-index {
  --max: var(--page);
}

body.blog-article .site-header-inner,
body.blog-article .site-footer-inner {
  max-width: var(--read);
}

.site-header,
.wrap,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(99, 232, 182, 0.35);
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(99, 232, 182, 0.22);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.site-header-inner,
.site-footer-inner,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header-inner,
.site-footer-inner {
  max-width: var(--page);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--mint);
  color: #0a0a0f;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(99, 232, 182, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.nav-cta:hover {
  color: #0a0a0f;
  background: #85f0cb;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 232, 182, 0.36);
}

.nav-cta--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

main.wrap {
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

.page-hero {
  margin: 0 0 2.25rem;
  max-width: 38rem;
}

.page-hero .meta {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta a {
  font-weight: 700;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-header .meta {
  margin-bottom: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 1.2rem;
  font-size: 1.075rem;
}

.prose h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.2;
}

.prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  margin-left: 0;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: rgba(99, 232, 182, 0.12);
  color: hsl(160 20% 18%);
  font-style: italic;
}

.prose strong {
  font-weight: 800;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.prose .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.prose .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose .video-caption {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.prose .good-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 640px) {
  .prose .good-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.prose .good-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 28px rgba(10, 10, 15, 0.04);
}

.prose .good-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.prose .good-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.prose .good-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.prose .platform-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.15rem;
  margin: 0 0 1rem;
  border-left-width: 4px;
  box-shadow: 0 10px 28px rgba(10, 10, 15, 0.04);
}

.prose .platform-instagram { border-left-color: #E1306C; }
.prose .platform-tiktok { border-left-color: #111111; }
.prose .platform-snapchat { border-left-color: #FFFC00; }
.prose .platform-discord { border-left-color: #5865F2; }

.prose .platform-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.prose .platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  flex-shrink: 0;
  color: #fff;
}

.prose .platform-instagram .platform-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.prose .platform-tiktok .platform-icon {
  background: #010101;
  color: #fff;
}
.prose .platform-snapchat .platform-icon {
  background: #FFFC00;
  color: #111;
}
.prose .platform-discord .platform-icon {
  background: #5865F2;
}

.prose .platform-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.prose .platform-tagline {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.prose .platform-card > p {
  margin: 0;
  font-size: 1rem;
}

.prose .contrast-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.15rem 0 1.5rem;
}

.prose .contrast-item {
  background: rgba(99, 232, 182, 0.12);
  border: 1px solid rgba(99, 232, 182, 0.28);
  border-radius: 14px;
  padding: 0.9rem 1.05rem;
  font-size: 1rem;
}

.prose .blog-figure {
  margin: 1.5rem 0 1.75rem;
  padding: 0;
}

.prose .blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 40px rgba(10, 10, 15, 0.06);
}

.prose .blog-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.prose .blog-figure-wide {
  width: min(var(--page), calc(100vw - 3rem));
  max-width: min(var(--page), calc(100vw - 3rem));
  margin-left: calc(50% - min(var(--page), calc(100vw - 3rem)) / 2);
}

.prose .blog-figure-wide img {
  background: #0a0a0f;
}

.prose .classroom-game-portrait {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.prose .table-scroll {
  overflow-x: visible;
  margin: 0 0 1.5rem;
}

.prose table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.4;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(10, 10, 15, 0.04);
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.5rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.prose th {
  background: rgba(99, 232, 182, 0.16);
  font-weight: 800;
}

.prose tbody tr:nth-child(even) {
  background: #fff;
}

.prose .compare-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 800;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.prose .compare-table th[scope="row"] {
  width: 22%;
  background: rgba(99, 232, 182, 0.16);
}

@media (max-width: 640px) {
  .prose table {
    font-size: 0.74rem;
  }

  .prose th,
  .prose td {
    padding: 0.4rem 0.35rem;
  }
}

.prose pre {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #eef7f2;
  color: var(--fg);
  font-size: 0.92rem;
  line-height: 1.5;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.prose :not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(31, 122, 85, 0.08);
}

.prose pre code {
  font-size: inherit;
  background: none;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list--featured {
  margin-bottom: 1.15rem;
}

.post-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .post-list--grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 10, 15, 0.05);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.post-card:hover {
  border-color: rgba(99, 232, 182, 0.75);
  transform: translateY(-3px);
  color: inherit;
  box-shadow: 0 18px 40px rgba(99, 232, 182, 0.18);
}

.post-list--grid .post-card:not(:has(.post-card-media)) {
  border-top: 5px solid var(--mint);
}

.post-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e7faf2 0%, #f7fffb 100%);
  overflow: hidden;
}

.post-list--grid .post-card-media {
  aspect-ratio: 16 / 10;
}

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

.post-card-media--plain {
  min-height: 11rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(99, 232, 182, 0.45), transparent 46%),
    radial-gradient(circle at 78% 70%, rgba(251, 191, 36, 0.22), transparent 42%),
    linear-gradient(180deg, #dff7ee 0%, #f4faf7 100%);
}

.post-card--featured {
  display: grid;
  grid-template-columns: 1fr;
}

.post-card--featured .post-card-media {
  min-height: 14rem;
  aspect-ratio: auto;
  padding: 1.15rem;
  background: #fff;
}

.post-card--featured .post-card-media img {
  object-fit: contain;
  max-height: 20rem;
  height: auto;
  padding: 0;
}

.post-card--featured .post-card-body {
  padding: 1.5rem 1.6rem 1.65rem;
}

.post-card--featured h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

@media (min-width: 880px) {
  .post-card--featured {
    grid-template-columns: 1.08fr 1fr;
    align-items: stretch;
  }

  .post-card--featured .post-card-media {
    min-height: 100%;
    padding: 1.35rem;
  }

  .post-card--featured .post-card-media img {
    max-height: none;
    height: 100%;
    padding: 0;
  }

  .post-card--featured .post-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.85rem;
  }
}

.post-card-body {
  padding: 1.2rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.2;
}

.post-hero {
  margin: 0 0 2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  box-shadow: 0 18px 44px rgba(10, 10, 15, 0.07);
}

.post-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.post-card .date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.post-card .pin {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(99, 232, 182, 0.22);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.blog-cta {
  margin-top: 2.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eafaf3 100%);
  border: 1.5px solid rgba(99, 232, 182, 0.5);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(99, 232, 182, 0.14);
}

.blog-cta h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  font-weight: 900;
}

.blog-cta p {
  margin: 0 auto 1.2rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.blog-cta--compact {
  margin-top: 3rem;
  padding: 1.6rem 1.25rem 1.75rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(99, 232, 182, 0.22);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.6rem 0 2.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .nav-cta {
    transition: none;
  }

  .post-card:hover,
  .nav-cta:hover {
    transform: none;
  }
}

.language-menu { position: relative; }
.language-menu summary {
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}
.language-menu ul {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 10rem;
  padding: 0.4rem;
  margin: 0.35rem 0 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 10, 15, 0.12);
}
.language-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 8px;
}
.language-menu a:hover,
.language-menu a[aria-current="page"] { background: rgba(99, 232, 182, 0.2); }
@media (max-width: 600px) {
  .site-header-inner {
    gap: 0.5rem;
    padding: 0.65rem 1rem;
  }
  .brand { min-width: 0; }
  .brand img {
    width: clamp(6rem, 28vw, 8.5rem);
    max-width: 100%;
    height: auto;
  }
  .site-nav {
    flex-shrink: 0;
    gap: 0.25rem;
  }
  .site-nav .nav-cta {
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .language-menu summary {
    min-height: 2.75rem;
  }
  .language-menu ul {
    max-width: calc(100vw - 2rem);
  }
}
