.pg-blog { --c: var(--accent); }
[data-cat="minecraft"] { --c: #3DDC97; }
[data-cat="game-guides"] { --c: #9AA4FF; }
[data-cat="server-tips"] { --c: #FABF26; }
[data-cat="news"] { --c: #FF8AA0; }
[data-cat="palworld"] { --c: #5CC8F2; }
[data-cat="project-zomboid"] { --c: #D4E157; }
[data-cat="counter-strike-2"] { --c: #F5B841; }
[data-cat="rust"] { --c: #E8704F; }

.b-head, .a-head {
  position: relative; isolation: isolate;
  padding: 136px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.b-head::before, .a-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 34, .78) 0%, rgba(10, 12, 34, .9) 60%, var(--bg) 100%),
    url("../images/background-difuminado.webp") center 30% / cover no-repeat;
}

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: #4A507E; }
.crumbs a { color: var(--text); padding: 4px 0; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.b-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: end; margin-top: 22px; }
.b-head h1 { font-size: 54px; line-height: 1.06; font-weight: 800; letter-spacing: -.02em; max-width: 19ch; text-wrap: balance; }
.b-lede { margin-top: 18px; max-width: 56ch; font-size: 18.5px; color: var(--text); }

.b-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #E3E5F5; }
.b-search-box {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  background: #070919; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.b-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 123, 255, .25); }
.b-prompt { font: 700 16px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--yellow); }
.b-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: #fff; font: 500 16px/1 var(--f-text);
}
.b-search input::placeholder { color: #6C7199; }
.b-search input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }

.b-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.b-cat {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: 600 15px/1 var(--f-text); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.b-cat[data-cat]:not([data-cat=""])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.b-cat:hover { border-color: #3A4180; color: #fff; }
.b-cat[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--bg); }
.b-cat .b-n { font-weight: 500; color: var(--muted); }
.b-cat[aria-pressed="true"] .b-n { color: #4A507E; }
.b-cat[hidden], .b-cats[hidden], .b-search[hidden] { display: none; }
html:not(.js) .b-cats, html:not(.js) .b-search { display: none; }

.b-list { padding: 56px 0 96px; }
.b-list[hidden] { display: none; }
.b-list-h { margin: 72px 0 24px; font-size: 26px; }
.b-feat:empty + .b-list-h { margin-top: 0; }

.post {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .2s ease;
}
.post:hover { border-color: #3A4180; }
.post:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.post:hover .post-img img { transform: scale(1.035); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--c); }
.post-cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.post-title { margin-top: 10px; font-size: 20px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.post-title a { color: #fff; }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-title a:focus-visible { outline: none; }
.post-sum { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.post-read { display: inline-flex; align-items: center; gap: 6px; }
.post-read svg { width: 16px; height: 16px; }
.post-par { margin-top: 10px; font-size: 13.5px; }
.post-par a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.post-par a:hover, .post-par a:focus-visible { color: var(--text); }

.post--feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: 20px; }
.post--feat .post-img { aspect-ratio: auto; min-height: 400px; }
.post--feat .post-body { padding: 44px 44px 40px; justify-content: center; }
.post--feat .post-title { margin-top: 14px; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; }
.post--feat .post-sum { margin-top: 16px; font-size: 17px; -webkit-line-clamp: 5; }
.post--feat .post-meta { margin-top: 28px; padding-top: 0; justify-content: flex-start; gap: 24px; }

.b-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.b-grid li[hidden], .post[hidden], .b-none[hidden], .b-more [hidden] { display: none; }
.b-none { margin-top: 8px; padding: 40px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; }
.b-none p { color: #fff; font-weight: 600; margin-bottom: 16px; }
.b-status { margin-top: 32px; text-align: center; font-size: 14px; color: var(--muted); }
.b-status:empty { display: none; }
.b-more { display: flex; justify-content: center; margin-top: 16px; }

.b-empty { padding: 64px 0 96px; }
.b-empty-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px;
  padding: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
}
.b-empty-intro h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.01em; }
.b-empty-intro p { margin-top: 16px; max-width: 46ch; font-size: 17.5px; }
.b-empty-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.b-topics-h { font: 600 15px/1.3 var(--f-text); color: #E3E5F5; margin-bottom: 14px; }
.b-topics ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.b-topics li { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.b-topics li:last-child { border-bottom: 1px solid var(--line); }
.b-topics li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--c); }
.b-topics strong { color: #fff; font-weight: 600; }
.b-topics span { font-size: 15.5px; color: var(--text); }
.b-games-h { margin: 56px 0 18px; font-size: 22px; }
.b-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.b-games a {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 14px 10px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.3;
  transition: border-color .15s ease;
}
.b-games a:hover { border-color: var(--accent); }
.b-games img { width: 52px; height: 52px; border-radius: 10px; flex: none; object-fit: cover; }

.b-plans { padding: 0 0 112px; }
.b-plans-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 40px;
  padding: 40px 44px; border-radius: 20px; border: 1px solid #2F3670;
  background: linear-gradient(120deg, #1A1F4D 0%, var(--card) 70%);
}
.b-plans-text h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.b-plans-text p { margin-top: 12px; font-size: 16px; max-width: 52ch; }
.b-plans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: #E3E5F5; }
.b-plans-list li { display: flex; align-items: center; gap: 10px; }
.b-plans-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

.a-head { padding-bottom: 0; border-bottom: 0; }
.a-head::before { bottom: 30%; }
.a-head .post-cat { margin-top: 28px; }
.a-head h1 { margin-top: 12px; max-width: 22ch; font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.a-deck { margin-top: 18px; max-width: 62ch; font-size: 19px; line-height: 1.6; }
.a-by { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; font-size: 15px; color: var(--muted); }
.a-author { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; }
.a-author img { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); object-fit: contain; }
.a-by .post-read svg { width: 17px; height: 17px; }
.a-hero { margin: 40px 0 0; }
.a-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: top; border-radius: 20px; border: 1px solid var(--line); }
.a-hero figcaption, .prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.a-layout { display: grid; grid-template-columns: minmax(0, 720px) 270px; justify-content: space-between; gap: 64px; padding: 56px 24px 96px; }
.a-toc { position: sticky; top: 108px; align-self: start; order: 2; }
.a-toc details { border-left: 1px solid var(--line); padding-left: 20px; }
.a-toc summary { list-style: none; font: 600 15px/1.3 var(--f-text); color: #fff; margin-bottom: 12px; }
.a-toc summary::-webkit-details-marker { display: none; }
.a-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.a-toc a { display: block; position: relative; padding: 7px 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); transition: color .15s ease; }
.a-toc a:hover { color: #fff; }
.a-toc a[aria-current="true"] { color: #fff; }
.a-toc a[aria-current="true"]::before { content: ""; position: absolute; left: -21px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); border-radius: 2px; }

.prose { min-width: 0; font-size: 17.5px; line-height: 1.75; color: #C9CCE6; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 30px; line-height: 1.2; scroll-margin-top: 100px; }
.prose h3 { margin-top: 36px; font-size: 21px; line-height: 1.3; scroll-margin-top: 100px; }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose a { color: #AEB6FF; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }
.prose figure { margin: 32px 0 0; }
.prose figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.prose :not(pre) > code { padding: 2px 7px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font: 500 .88em/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #fff; }
.a-intro { font-size: 19px; color: #E3E5F5; }

.a-steps { list-style: none; padding: 0 !important; counter-reset: paso; display: grid; gap: 0; }
.a-steps > li { counter-increment: paso; position: relative; padding: 0 0 22px 52px; margin: 0 !important; }
.a-steps > li::before {
  content: counter(paso); position: absolute; left: 0; top: 1px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid #3A4180; color: #fff; font: 700 14px/1 var(--f-text);
}
.a-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }

.a-code { margin-top: 20px; border-radius: 14px; border: 1px solid var(--line); background: #070919; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--line); background: #0C0F2A; }
.code-where { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.code-copy {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text);
  font: 600 13.5px/1 var(--f-text); cursor: pointer;
}
.code-copy:hover { background: var(--card); border-color: var(--line); color: #fff; }
.code-copy svg { width: 16px; height: 16px; }
.code-copy.is-ok { color: var(--ok); }
.a-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 500 15px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #E3E5F5; tab-size: 4; }
.a-code .pr { color: var(--yellow); user-select: none; }
.a-code .cm { color: #6C7199; }

.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 16px; line-height: 1.65; }
.note svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.note--warn { border-color: rgba(250, 191, 38, .35); }
.note--warn svg { color: var(--yellow); }
.note p + p { margin-top: 8px; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; color: #fff; font-weight: 600; font-size: 16.5px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; font-size: 16px; line-height: 1.7; }

.a-games { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-games li { margin: 0 !important; }
.a-games a { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.35; transition: border-color .15s ease; }
.a-games a:hover { border-color: var(--accent); color: #fff; }
.a-games img { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.a-games small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }

.a-end { margin-top: 56px !important; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.a-end p { font-size: 15.5px; color: var(--muted); max-width: 48ch; }
.a-end a.btn { text-decoration: none; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .post-img img, .faq summary svg { transition: none; }
  .post:hover .post-img img { transform: none; }
}

@media (max-width: 1100px) {
  .b-plans-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .b-plans-card .btn { justify-self: start; }
  .a-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; }
}
@media (max-width: 960px) {
  .b-head-grid { grid-template-columns: 1fr; gap: 28px; }
  .b-head h1 { font-size: 44px; }
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .post--feat { grid-template-columns: 1fr; }
  .post--feat .post-img { min-height: 0; aspect-ratio: 16 / 9; }
  .post--feat .post-body { padding: 28px; }
  .post--feat .post-title { font-size: 28px; }
  .b-empty-card { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .b-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-plans-card { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .a-head h1 { font-size: 40px; }
  .a-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .a-toc { position: static; order: 0; }
  .a-toc details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 18px; }
  .a-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; cursor: pointer; }
  .a-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .a-toc details[open] summary::after { transform: rotate(-135deg); }
  .a-toc ol { padding-bottom: 14px; }
  .a-toc a[aria-current="true"]::before { display: none; }
}
@media (max-width: 640px) {
  .b-head, .a-head { padding-top: 112px; }
  .b-head { padding-bottom: 36px; }
  .b-head h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .b-lede { font-size: 17px; }
  .b-cats { margin-top: 28px; gap: 8px; }
  .b-cat { height: 44px; padding: 0 14px; }
  .b-list { padding: 36px 0 72px; }
  .b-list-h { margin-top: 48px; font-size: 22px; }
  .b-grid { grid-template-columns: 1fr; gap: 18px; }
  .post--feat .post-body { padding: 22px; }
  .post--feat .post-title { font-size: 24px; }
  .post--feat .post-meta { margin-top: 20px; }
  .b-empty { padding: 40px 0 72px; }
  .b-empty-card { padding: 26px 20px; border-radius: 16px; }
  .b-empty-intro h2 { font-size: 30px; }
  .b-empty-cta .btn { flex: 1 1 100%; }
  .b-games { grid-template-columns: 1fr; gap: 10px; }
  .b-games a { min-height: 64px; }
  .b-games img { width: 44px; height: 44px; }
  .b-plans { padding-bottom: 80px; }
  .b-plans-card { padding: 26px 20px; border-radius: 16px; }
  .b-plans-text h2 { font-size: 25px; }
  .b-plans-card .btn { justify-self: stretch; }
  .crumbs [aria-current] { max-width: 22ch; }
  .a-head h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .a-deck { font-size: 17px; }
  .a-by { gap: 10px 20px; font-size: 14px; }
  .a-hero { margin-top: 28px; }
  .a-hero img { border-radius: 14px; aspect-ratio: 16 / 10; }
  .a-layout { padding: 24px 16px 72px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 25px; margin-top: 44px; }
  .a-intro { font-size: 17.5px; }
  .a-code pre { font-size: 14px; padding: 14px; }
  .a-games { grid-template-columns: 1fr; }
}
