/* Magfor2 — cores tiradas da logo */
:root {
  --ink: #140018;
  --ink-2: #1b0321;
  --ink-3: #26082f;
  --card: #1f0625;
  --card-2: #2a0b35;
  --line: #3a1248;
  --purple-dk: #430365;
  --purple: #7f04bc;
  --purple-2: #8e03d7;
  --pink: #e658fc;
  --cream: #fdedc8;
  --cream-2: #e1bfa4;
  --gold: #fdc001;
  --gold-2: #fde47a;
  --text: #f4e6cf;
  --muted: #c3a9c9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --wrap: 1180px;
  --font-display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(127, 4, 188, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(230, 88, 252, 0.10), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--cream); margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; color: var(--pink); margin-bottom: 0.8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- botões ---------- */
.btn {
  --bg: var(--card-2);
  --fg: var(--cream);
  --edge: #0b0010;
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.8em 1.35em; border-radius: 999px; border: 3px solid var(--edge);
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 400 1.08rem/1 var(--font-display); letter-spacing: 0.02em;
  box-shadow: 0 5px 0 var(--edge); transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  cursor: pointer;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); }
.btn-gold { --bg: linear-gradient(180deg, var(--gold-2), var(--gold) 55%); --fg: var(--ink); }
.btn-pink { --bg: linear-gradient(180deg, var(--pink), var(--purple-2)); --fg: #fff; }
.btn-ghost { --bg: rgba(255, 255, 255, 0.04); --edge: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-small { font-size: 0.95rem; padding: 0.65em 1.05em; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 800; text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform 0.15s; }

.badge { display: inline-block; font: 800 0.75rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5em 0.85em; border-radius: 999px; margin-bottom: 0.9em; }
.badge-live { background: rgba(253, 192, 1, 0.15); color: var(--gold-2); border: 1px solid rgba(253, 192, 1, 0.45); }
.badge-dev { background: rgba(230, 88, 252, 0.14); color: var(--pink); border: 1px solid rgba(230, 88, 252, 0.45); }
.badge-dev::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--pink); margin-right: 0.5em; vertical-align: 0.05em; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.sparkle { width: 1em; height: 1em; fill: var(--gold); flex: none; }

/* ---------- cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 0, 24, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(58, 18, 72, 0.7); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 400 1.6rem/1 var(--font-display); }
.brand img { width: 52px; transition: transform 0.25s; }
.brand:hover { color: var(--cream); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav ul a:hover { background: rgba(230, 88, 252, 0.12); color: var(--cream); }
.nav a[aria-current="page"] { background: var(--purple); color: #fff; }
.nav .lang { display: inline-flex; padding: 3px; gap: 2px; border: 2px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; }
.nav .lang .lang-opt { display: inline-block; padding: 6px 12px; border-radius: 999px; line-height: 1; }
.nav .lang a.lang-opt { color: var(--cream); opacity: 0.85; }
.nav .lang a.lang-opt:hover { opacity: 1; background: rgba(230, 88, 252, 0.18); }
.nav .lang .is-on { background: var(--gold); color: var(--ink); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 760px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; margin-right: -10px; }
  .nav-burger span { width: 24px; height: 3px; border-radius: 3px; background: var(--cream); transition: transform 0.2s, opacity 0.2s; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 22px; background: rgba(20, 0, 24, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.2s; }
  .nav ul { flex-direction: column; }
  .nav a { display: block; padding: 12px 14px; font-size: 1.1rem; }
  .lang { align-self: flex-start; }
  .nav-toggle:checked ~ .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* aba do chapéu (borda ondulada roxa, como a aba do chapéu da logo) */
.brim { height: 46px; background: linear-gradient(180deg, var(--pink), var(--purple-2) 45%, var(--purple-dk)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V30C150 6 330 0 600 6s450 18 600 0v40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V30C150 6 330 0 600 6s450 18 600 0v40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-bottom: 50px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-shadow: 0 4px 0 #0b0010; }
.hero .lead { margin-bottom: 1.6em; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(460px, 100%); filter: drop-shadow(0 24px 40px rgba(127, 4, 188, 0.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.stars .sparkle { position: absolute; animation: twinkle 3.2s ease-in-out infinite; }
.stars .s1 { width: 30px; height: 30px; left: 6%; top: 18%; }
.stars .s2 { width: 18px; height: 18px; left: 46%; top: 12%; animation-delay: 0.6s; }
.stars .s3 { width: 24px; height: 24px; right: 7%; top: 22%; animation-delay: 1.2s; }
.stars .s4 { width: 14px; height: 14px; left: 38%; bottom: 22%; animation-delay: 1.8s; }
.stars .s5 { width: 20px; height: 20px; right: 40%; bottom: 30%; animation-delay: 2.4s; fill: var(--gold-2); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.55) rotate(45deg); opacity: 0.55; } }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(300px, 75%); }
  .hero .lead { margin-inline: auto; }
  .hero .row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- seções ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.page-head { padding: 46px 0 6px; }
.page-head .lead { margin-bottom: 0.4em; }
.head-links { margin-top: 18px; gap: 18px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs li[aria-current] { color: var(--cream-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- jogo em destaque ---------- */
.featured-card { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0; background: linear-gradient(160deg, #2b0a14, #1f0625 55%); border: 3px solid #0b0010; border-radius: 28px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(253, 192, 1, 0.18); overflow: visible; }
.featured-art { border-radius: 25px 0 0 25px; overflow: hidden; background: #2b0a14; }
.featured-art { display: block; }
.featured-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.4s; }
.featured-art:hover img { transform: scale(1.03); }
.featured-body { padding: 40px 44px 40px; position: relative; z-index: 1; align-self: center; }
.featured-body h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); text-shadow: 0 4px 0 #0b0010, 0 0 28px rgba(253, 192, 1, 0.35); margin-bottom: 0.3em; }
.hook { font: 400 1.35rem/1.3 var(--font-display); color: var(--accent, var(--gold)); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li strong { color: var(--cream); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C6.5 11 11 6.5 12 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C6.5 11 11 6.5 12 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.featured-mascot { position: absolute; width: 150px; right: -30px; top: -46px; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); transform: rotate(8deg); pointer-events: none; animation: float 5s ease-in-out infinite; }
@media (max-width: 960px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-art { border-radius: 25px 25px 0 0; aspect-ratio: 4 / 3; }
  .featured-art img { object-position: center 20%; }
  .featured-mascot { width: 110px; right: -10px; top: -36px; }
}
@media (max-width: 520px) { .featured-body { padding: 26px 20px 30px; } .featured-mascot { display: none; } }

/* ---------- em desenvolvimento ---------- */
.dev-card { display: grid; grid-template-columns: 1.2fr 1fr; background: linear-gradient(160deg, #0c1530, #1f0625 70%); border: 3px solid #0b0010; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px rgba(230, 88, 252, 0.25); }
.dev-art { position: relative; min-height: 260px; }
.dev-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; image-rendering: pixelated; }
.dev-body { padding: 34px 36px; }
.dev-body h2 { color: #fff; text-shadow: 0 0 18px rgba(230, 88, 252, 0.6); }
@media (max-width: 960px) { .dev-card { grid-template-columns: 1fr; } .dev-art { aspect-ratio: 1278 / 540; min-height: 0; } }
@media (max-width: 520px) { .dev-body { padding: 26px 20px 30px; } }

/* ---------- grade de jogos ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.game-card { background: var(--card); border: 3px solid #0b0010; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); display: flex; flex-direction: column; transition: transform 0.2s; }
.game-card:hover { transform: translateY(-4px); }
.game-card-img img { width: 100%; aspect-ratio: 630 / 500; object-fit: cover; image-rendering: pixelated; }
.game-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.game-card-body h3 { margin-bottom: 0.15em; font-size: 1.7rem; }
.game-card-body h3 a { color: var(--cream); text-decoration: none; }
.game-card-body h3 a:hover { color: var(--accent); }
.game-card-body .row { margin-top: auto; }
.game-card-body .badge { align-self: flex-start; }

/* ---------- página de jogo ---------- */
.game-hero { position: relative; padding: 40px 0 56px; overflow: hidden; isolation: isolate; border-bottom: 3px solid #0b0010; }
.game-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; image-rendering: pixelated; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 0, 24, 0.92) 0%, rgba(20, 0, 24, 0.7) 45%, rgba(20, 0, 24, 0.15) 100%), linear-gradient(0deg, rgba(20, 0, 24, 0.9), transparent 45%); }
.game-hero-in { min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.game-logo { width: min(420px, 85%); margin-bottom: 12px; filter: drop-shadow(0 6px 0 #0b0010); }
.game-hero h1:not(.sr) { text-shadow: 0 4px 0 #0b0010, 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.game-hero .hook { max-width: 30ch; font-size: 1.55rem; text-shadow: 0 2px 0 #0b0010; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.game-side { position: sticky; top: 96px; background: var(--card); border: 3px solid #0b0010; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.game-side > img { border-radius: var(--radius-sm); image-rendering: pixelated; margin-bottom: 14px; }
.facts { margin: 0 0 16px; display: grid; gap: 10px; }
.facts div { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.facts dt { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--cream); font-weight: 600; }
.h-small { font-size: 1.1rem; margin-bottom: 8px; }
.side-links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.side-links a:hover { background: rgba(230, 88, 252, 0.12); color: var(--cream); }
.feature-list { list-style: none; padding: 0; margin: 0 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feature-list li { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin: 0 !important; }
.feature-list li::before { display: none; }
.feature-list .sparkle { width: 18px; height: 18px; margin-top: 4px; fill: var(--accent); }
.feature-list strong { display: block; color: var(--cream); font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 0.98rem; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shot { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 3px solid #0b0010; }
.prose .shot img { image-rendering: pixelated; transition: transform 0.3s; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.prose .feature-list { padding: 0; }
.prose .feature-list li::before { display: none; }
.shot:hover img { transform: scale(1.04); }
@media (max-width: 960px) { .game-layout { grid-template-columns: 1fr; } .game-side { position: static; } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 3px solid #0b0010; margin: 1.6em 0; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 0, 14, 0.94); display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade 0.15s; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; image-rendering: pixelated; }
@keyframes fade { from { opacity: 0; } }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--purple-2); }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--purple-dk), var(--card-2)); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-ph { display: grid; place-items: center; height: 100%; }
.post-card-ph .sparkle { width: 54px; height: 54px; opacity: 0.8; }
.post-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body p { color: var(--muted); }
.post-card-title { font-size: 1.4rem; margin-bottom: 0.4em; }
.post-card-title a { color: var(--cream); text-decoration: none; }
.post-card-title a:hover { color: var(--gold-2); }
.post-card .tags { margin-top: auto; }
.meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6em; }
.meta a { color: var(--gold-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags a { display: inline-block; font-size: 0.82rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(230, 88, 252, 0.1); color: var(--pink); text-decoration: none; border: 1px solid rgba(230, 88, 252, 0.25); }
.tags a:hover, .tags a[aria-current] { background: var(--pink); color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty .sparkle { width: 42px; height: 42px; margin: 0 auto 12px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }

/* post */
.post-head { padding: 40px 0 10px; }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0.35em 0 0.3em; }
.post-head .lead { font-size: 1.25rem; }
.post-head .tags { margin-top: 4px; }
.post-cover { margin: 28px auto 0; max-width: 1060px; }
.post-cover img { width: 100%; border-radius: var(--radius); border: 3px solid #0b0010; box-shadow: var(--shadow); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 48px; padding-top: 34px; padding-bottom: 20px; }
.post-layout:has(.toc) { grid-template-columns: 220px minmax(0, 760px); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 0.92rem; border-left: 2px solid var(--line); padding-left: 16px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--gold-2); }
.toc .d3 { padding-left: 14px; font-size: 0.88rem; }
@media (max-width: 1000px) { .post-layout:has(.toc) { grid-template-columns: minmax(0, 760px); } .toc { display: none; } }
.post-foot { padding-top: 10px; padding-bottom: 40px; }
.share { display: flex; align-items: center; gap: 8px; margin: 10px 0 26px; color: var(--muted); font-weight: 700; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--cream); border: 1px solid var(--line); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--purple); color: #fff; }
.share button.ok { background: var(--gold); color: var(--ink); }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.author-box img { width: 72px; flex: none; }
.author-box strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--cream); }
.author-box p { margin: 2px 0 4px; color: var(--muted); }
.related { background: linear-gradient(180deg, transparent, rgba(67, 3, 101, 0.25)); }

/* tipografia do conteúdo */
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.9rem; margin: 1.8em 0 0.55em; }
.prose h3 { font-size: 1.45rem; margin: 1.6em 0 0.5em; }
.prose h4 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
.prose h2, .prose h3, .prose h4 { position: relative; }
.prose .anchor { position: absolute; left: -1.1em; color: var(--purple-2); text-decoration: none; opacity: 0; transition: opacity 0.15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--pink); }
.prose ul > li { list-style: none; position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.15em; top: 0.62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
.prose strong { color: var(--cream); font-weight: 800; }
.prose em { color: var(--cream-2); }
.prose a { color: var(--gold-2); text-decoration-thickness: 2px; text-decoration-color: rgba(253, 228, 122, 0.4); }
.prose a:hover { text-decoration-color: var(--gold); }
.prose img { border-radius: var(--radius-sm); border: 3px solid #0b0010; margin: 1.4em auto; box-shadow: var(--shadow); }
.prose figure { margin: 1.8em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { text-align: center; font-size: 0.92rem; color: var(--muted); margin-top: 0.7em; font-style: italic; }
.prose blockquote { margin: 1.6em 0; padding: 1em 1.3em; background: var(--card); border-left: 5px solid var(--pink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--cream-2); font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 24px; margin: 2.4em 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 24'%3E%3Cg fill='%23fdc001'%3E%3Cpath d='M12 4c.6 4 3.4 6.8 8 8-4.6 1.2-7.4 4-8 8-.6-4-3.4-6.8-8-8 4.6-1.2 7.4-4 8-8z'/%3E%3Cpath d='M48 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C42.5 11 47 6.5 48 0z'/%3E%3Cpath d='M84 4c.6 4 3.4 6.8 8 8-4.6 1.2-7.4 4-8 8-.6-4-3.4-6.8-8-8 4.6-1.2 7.4-4 8-8z'/%3E%3C/g%3E%3C/svg%3E") center / 96px 24px no-repeat; }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; background: var(--card-2); color: var(--gold-2); padding: 0.15em 0.4em; border-radius: 6px; }
.prose pre { background: #0d0011; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; margin: 1.5em 0; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: #eadcf0; font-size: 0.9rem; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--card-2); color: var(--cream); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.prose input[type="checkbox"] { accent-color: var(--gold); margin-right: 6px; }
.prose li:has(> input[type="checkbox"])::before { display: none; }

/* highlight.js com as cores da marca */
.hljs-comment, .hljs-quote { color: #8a6f93; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-literal { color: var(--pink); }
.hljs-string, .hljs-attr, .hljs-template-variable, .hljs-addition { color: var(--gold-2); }
.hljs-number, .hljs-symbol, .hljs-bullet { color: #ff9e64; }
.hljs-title, .hljs-section, .hljs-function .hljs-title, .hljs-title.function_ { color: #7fd6ff; }
.hljs-type, .hljs-class .hljs-title, .hljs-title.class_ { color: #9ef0a9; }
.hljs-variable, .hljs-params { color: #eadcf0; }
.hljs-meta, .hljs-deletion { color: #ff7a9a; }

/* ---------- sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 50px; align-items: center; }
.about-logo img { filter: drop-shadow(0 24px 40px rgba(127, 4, 188, 0.4)); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-logo { order: -1; max-width: 240px; margin: 0 auto; } }
.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.values li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.values .sparkle { width: 28px; height: 28px; margin-bottom: 12px; }
.values h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.values p { color: var(--muted); margin: 0; }
.me-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 3px solid #0b0010; border-radius: 28px; padding: 40px; box-shadow: var(--shadow); max-width: 1000px; }
.me-avatar { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 25%, var(--pink), var(--purple-2) 45%, var(--purple-dk)); border: 4px solid #0b0010; box-shadow: 0 0 0 6px rgba(253, 192, 1, 0.25); }
.me-avatar span { font: 400 6rem/1 var(--font-display); color: var(--cream); text-shadow: 0 6px 0 #0b0010; }
.me-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) { .me-card { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; } .me-avatar { margin: 0 auto; width: 150px; height: 150px; } .me-avatar span { font-size: 4.4rem; } .me-card .prose { text-align: left; } }
.contact { text-align: center; }
.contact p { color: var(--muted); }
.big-mail { font-size: 1.25rem; margin: 6px 0 24px; }
.social-row { justify-content: center; }

.about-teaser { display: flex; gap: 36px; align-items: center; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 3px solid #0b0010; border-radius: 28px; padding: 36px 40px; box-shadow: var(--shadow); max-width: 1000px; }
.about-teaser img { width: 170px; flex: none; }
.about-teaser p { color: var(--muted); }
@media (max-width: 680px) { .about-teaser { flex-direction: column; text-align: center; padding: 28px 22px; } .about-teaser img { width: 120px; } }

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 110px; }
.big404 { font: 400 clamp(6rem, 20vw, 11rem)/1 var(--font-display); color: var(--purple-2); text-shadow: 0 8px 0 #0b0010, 0 0 60px rgba(230, 88, 252, 0.4); margin: 0; }
.notfound .lead { margin: 0 auto 1.6em; }

/* ---------- rodapé ---------- */
.site-footer { margin-top: 40px; }
.site-footer .brim { transform: scaleY(-1); height: 40px; margin-bottom: -1px; background: linear-gradient(0deg, var(--purple-dk), var(--purple-2)); }
.footer-in { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 20px; background: transparent; }
.site-footer { background: linear-gradient(180deg, transparent 40px, #0d0011 40px); }
.footer-brand img { width: 96px; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); max-width: 32ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { color: var(--gold-2); }
.social a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.social a:hover { color: var(--gold-2); }
.social-row { display: flex !important; flex-wrap: wrap; gap: 12px !important; }
.social-row a { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); }
.copy { color: #8a6f93; font-size: 0.88rem; padding-top: 14px; padding-bottom: 26px; border-top: 1px solid #241029; margin-top: 10px; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- banner do Discord ---------- */
.btn-discord { --bg: linear-gradient(180deg, #7b86ff, #5865f2); --fg: #fff; font-size: 1.15rem; padding: 16px 30px; }
.btn-discord .ic { width: 24px; height: 24px; }
.discord-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 48px 56px; padding-right: 300px; border-radius: 32px; overflow: hidden; border: 3px solid #0b0010;
  background: radial-gradient(circle at 15% 20%, rgba(124, 134, 255, 0.55), transparent 55%), radial-gradient(circle at 85% 90%, rgba(230, 88, 252, 0.45), transparent 55%), linear-gradient(135deg, #2b2f8f, #430365 55%, #1f0625);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.discord-icon { width: 150px; height: 150px; border-radius: 40px; display: grid; place-items: center; background: #5865f2; color: #fff; box-shadow: 0 10px 0 #2b2f8f, 0 18px 40px rgba(0, 0, 0, 0.45); transform: rotate(-6deg); }
.discord-icon svg { width: 96px; height: 96px; }
.discord-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; margin: 4px 0 12px; color: var(--cream); text-shadow: 0 4px 0 #0b0010; }
.discord-body > p { font-size: 1.12rem; max-width: 560px; color: #efe3ff; margin: 0 0 18px; }
.discord-body .kicker { color: #c9ceff; }
.discord-perks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; max-width: 560px; }
.discord-perks li { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--cream); }
.discord-perks .sparkle { width: 16px; height: 16px; flex: none; fill: var(--gold); }
.discord-mascot { position: absolute; right: 26px; bottom: -6px; width: 260px; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)); animation: float 5s ease-in-out infinite; }
.discord-glow { position: absolute; inset: 0; pointer-events: none; }
.discord-glow .sparkle { position: absolute; fill: var(--gold); opacity: 0.85; }
.discord-glow .d1 { width: 22px; top: 26px; right: 330px; }
.discord-glow .d2 { width: 14px; top: 70px; right: 290px; }
.discord-glow .d3 { width: 18px; bottom: 34px; left: 230px; opacity: 0.6; }
@media (max-width: 900px) {
  .discord-card { grid-template-columns: 1fr; padding: 34px 24px 220px; text-align: center; gap: 20px; }
  .discord-icon { width: 104px; height: 104px; border-radius: 28px; margin: 0 auto; }
  .discord-icon svg { width: 66px; height: 66px; }
  .discord-body > p, .discord-perks { margin-left: auto; margin-right: auto; }
  .discord-perks { grid-template-columns: 1fr; text-align: left; max-width: 300px; }
  .discord-mascot { right: 50%; transform: translateX(50%); width: 190px; animation: none; }
  .discord-glow .d1 { right: 24px; } .discord-glow .d2 { right: 60px; } .discord-glow .d3 { left: 24px; bottom: 180px; }
}
