/* VGKami — "Save Point" for the guides. The tokens, panels, slots, HUD bars, header and footer are the portal's (same site, same
   look); everything below "Reading" is the blog's own: a readable measure, real headings, tables that scroll inside themselves. */

@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/chakra-petch-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/chakra-petch-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/chakra-petch-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree Variable'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/figtree-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Figtree Variable'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/silkscreen-latin-400-normal.woff2) format('woff2'); }

:root {
  --f-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Figtree Variable', 'Figtree', system-ui, -apple-system, sans-serif;
  --f-hud: 'Silkscreen', ui-monospace, monospace;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --t-hud: 10px; --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 19px; --t-xl: 24px; --t-2xl: 32px; --t-3xl: 44px;
  --wrap: 1240px;
  --measure: 720px;
  --step: 6px;

  /* Daylight */
  color-scheme: light;
  --bg: #f6f1e4; --bg-2: #fffcf3; --panel: #fffdf7; --panel-2: #efe7d2; --line: #ddd1b4; --line-2: #c9b98f;
  --ink: #1c1736; --ink-2: #463f6b; --ink-3: #625b85; --link: #006f80; --crystal: #007385; --crystal-2: #5a3dcc;
  --xp: #1d7f37; --gold: #8c5a00; --gold-bg: #ffe7a8; --epic: #7438c9; --danger: #b4321f;
  --slot: #ece2c8; --slot-hi: #fffaf0; --slot-lo: #bfae84; --hero-sky-1: #9fd8ff; --hero-sky-2: #ffe2b8;
  --shadow: 0 1px 0 rgba(28, 23, 54, .06), 0 10px 30px -12px rgba(28, 23, 54, .25);
  --chip: #e8dfc6; --on-crystal: #ffffff; --gold-btn: #f2b821;
  --tip: #1d7f37; --note: #006f80; --warn: #b4321f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b0a1b; --bg-2: #100e26; --panel: #151233; --panel-2: #1c1842; --line: #2a2563; --line-2: #3b3486;
    --ink: #f1edff; --ink-2: #c3bce6; --ink-3: #958dc4; --link: #6eeaff; --crystal: #45e3ff; --crystal-2: #9b86ff;
    --xp: #7bf27a; --gold: #ffd25e; --gold-bg: #3a2c05; --epic: #cf8bff; --danger: #ff7a6b;
    --slot: #211c4f; --slot-hi: #3b3492; --slot-lo: #0a0920; --hero-sky-1: #1a1450; --hero-sky-2: #3d1f63;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8);
    --chip: #221d52; --on-crystal: #0e0b26; --gold-btn: #ffd25e;
    --tip: #7bf27a; --note: #6eeaff; --warn: #ff7a6b;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0a1b; --bg-2: #100e26; --panel: #151233; --panel-2: #1c1842; --line: #2a2563; --line-2: #3b3486;
  --ink: #f1edff; --ink-2: #c3bce6; --ink-3: #958dc4; --link: #6eeaff; --crystal: #45e3ff; --crystal-2: #9b86ff;
  --xp: #7bf27a; --gold: #ffd25e; --gold-bg: #3a2c05; --epic: #cf8bff; --danger: #ff7a6b;
  --slot: #211c4f; --slot-hi: #3b3492; --slot-lo: #0a0920; --hero-sky-1: #1a1450; --hero-sky-2: #3d1f63;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8);
  --chip: #221d52; --on-crystal: #0e0b26; --gold-btn: #ffd25e;
  --tip: #7bf27a; --note: #6eeaff; --warn: #ff7a6b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.55 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--crystal); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.hud { font: 400 var(--t-hud)/1.2 var(--f-hud); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { color: var(--crystal); }

/* stepped pixel corners */
.px { clip-path: polygon(0 var(--step), var(--step) var(--step), var(--step) 0, calc(100% - var(--step)) 0, calc(100% - var(--step)) var(--step), 100% var(--step), 100% calc(100% - var(--step)), calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step)) 100%, var(--step) 100%, var(--step) calc(100% - var(--step)), 0 calc(100% - var(--step))); }
.panel { background: var(--panel); border: 2px solid var(--line); }

.slot { --sz: 56px; width: var(--sz); height: var(--sz); flex: none; display: grid; place-items: center; background: var(--slot); box-shadow: inset 3px 3px 0 var(--slot-hi), inset -3px -3px 0 var(--slot-lo); padding: 5px; overflow: hidden; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 0; }

.btn { --step: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; font: 700 var(--t-sm)/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; border: 0; cursor: pointer; color: var(--on-crystal); background: var(--crystal); white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn.gold { background: var(--gold-btn); color: #1d1500; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font: 600 var(--t-xs)/1.4 var(--f-text); background: var(--chip); color: var(--ink-2); border: 0; cursor: pointer; text-decoration: none; }
.chip:hover { color: var(--ink); text-decoration: none; }
.sponsored { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font: 400 var(--t-hud)/1.4 var(--f-hud); letter-spacing: .08em; text-transform: uppercase; background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.bar { --v: .5; --c: var(--xp); height: 10px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo); position: relative; overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 2px auto 2px 2px; width: calc((100% - 4px) * var(--v)); background: repeating-linear-gradient(90deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 78%, #000) 8px 10px); transform-origin: left; animation: fill .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fill { from { transform: scaleX(0); } }
.stamp { font: 400 var(--t-hud)/1.3 var(--f-hud); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.stamp b { color: var(--ink-2); font-weight: 400; }

.section { padding-block: var(--s-7); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head .kicker { display: block; margin-bottom: 6px; }

.banner { position: relative; overflow: hidden; background: #111; }
.banner svg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }

/* the mark */
.mark { display: inline-flex; align-items: center; gap: 10px; --mark-edge: #120f2b; --mark-core: #d9d2ff; }
:root[data-theme='dark'] .mark { --mark-edge: #05040f; }
.mark .word { font: 700 22px/1 var(--f-display); letter-spacing: .08em; color: var(--ink); }
.mark .word b { color: var(--crystal); font-weight: 700; }
.mark svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--crystal) 45%, transparent)); }

/* ───────── Shell: header, footer, phone hotbar (as the portal's) ───────── */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; z-index: 99; background: var(--panel); padding: 8px 12px; }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--crystal), var(--crystal-2) 45%, var(--epic) 70%, transparent); opacity: .9; }
.admin-bar .top { top: 32px; }
.bar-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.home:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { font: 600 14px/1 var(--f-display); letter-spacing: .03em; color: var(--ink-2); padding: 9px; text-transform: uppercase; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--panel-2); }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--crystal); }
.acts { display: flex; align-items: center; gap: 10px; }
.find, .theme { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; color: var(--ink-2); background: var(--panel-2); border: 2px solid var(--line); }
.theme { cursor: pointer; }
.find input { width: 140px; border: 0; background: transparent; color: var(--ink); font: 500 14px/1 var(--f-text); outline: none; }
.find input::placeholder { color: var(--ink-3); }
.adv { font: 700 14px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: var(--gold); padding: 9px 6px; }
.list { min-height: 40px; }

.foot { margin-top: var(--s-8); background: var(--bg-2); border-top: 2px solid var(--line); padding: var(--s-7) 0 var(--s-6); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:not(.btn) { color: var(--ink-2); font-size: var(--t-sm); }
.foot .h { color: var(--ink); margin-bottom: 4px; }
.brand .tag { color: var(--crystal); font-size: 12px; margin-top: 6px; }
.brand p.muted { max-width: 42ch; font-size: var(--t-sm); }
.legal { margin-top: var(--s-6); font-size: var(--t-xs); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.hotbar { display: none; }

@media (max-width: 1120px) { .nav { display: none; } .acts { margin-left: auto; } }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 720px) {
  .bar-row { height: 56px; gap: 10px; }
  .list, .find { display: none; }
  .adv { font-size: 12px; padding: 6px 2px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .brand { grid-column: 1 / -1; }
  body { padding-bottom: 74px; }
  .hotbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 8px; right: 8px; bottom: 8px; padding: 6px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid var(--line-2); box-shadow: var(--shadow); }
  .hotbar a { display: grid; justify-items: center; gap: 3px; color: var(--ink-2); }
  .hotbar a:hover { text-decoration: none; }
  .hotbar .slot { padding: 0; }
  .hotbar a[aria-current='page'] { color: var(--crystal); }
  .hotbar a[aria-current='page'] .slot { box-shadow: inset 3px 3px 0 var(--slot-hi), inset -3px -3px 0 var(--slot-lo), 0 0 0 2px var(--crystal); }
  .hotbar .hud { font-size: 8px; color: inherit; }
}

/* ───────── Reading: one guide ───────── */
.e-head { padding: 28px 0 22px; border-bottom: 2px solid var(--line); background: radial-gradient(900px 300px at 85% 0%, color-mix(in srgb, var(--crystal-2) 16%, transparent), transparent 70%), radial-gradient(700px 240px at 0% 100%, color-mix(in srgb, var(--crystal) 10%, transparent), transparent 70%); }
.e-head h1 { font-size: clamp(30px, 4.6vw, 50px); margin: 10px 0 12px; max-width: 26ch; text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
.strapline { font-size: var(--t-lg); color: var(--ink-2); max-width: 60ch; margin-bottom: 12px; }
.e-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.share { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.share .copy.done { background: var(--xp); color: var(--on-crystal); }
.byline { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .slot { padding: 4px; }
.person > div { display: grid; gap: 2px; }
.person .name { font: 700 16px/1.2 var(--f-display); color: var(--ink); }
.person .socials { font-size: var(--t-xs); color: var(--ink-3); }
.person .socials a { color: var(--ink-3); }

.e-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; }
.e-grid.has-rail { grid-template-columns: minmax(0, 1fr) 300px; }
.e-main { min-width: 0; max-width: calc(var(--measure) + 40px); width: 100%; }
.e-grid:not(.has-rail) .e-main { margin-inline: auto; }
.e-rail, .a-rail { min-width: 0; }
.rail-in { position: sticky; top: 88px; display: grid; gap: 18px; }

.lede { margin: 0 0 26px; background: var(--panel-2); }
.lede img { display: block; width: 100%; height: auto; }

/* the text itself */
.article-text { font-size: 18px; line-height: 1.72; color: var(--ink); overflow-wrap: break-word; }
.article-text > * + * { margin-top: 0; }
.article-text p, .article-text ul, .article-text ol, .article-text figure, .article-text blockquote, .article-text pre, .article-text table, .article-text .wp-block-image, .article-text .wp-caption, .article-text iframe { margin: 0 0 1.15em; }
.article-text h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.9em 0 .6em; padding-top: 12px; border-top: 2px solid var(--line); scroll-margin-top: 90px; }
.article-text h3 { font-size: clamp(20px, 2.1vw, 23px); margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.article-text h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.article-text h5, .article-text h6 { font-size: 17px; margin: 1.2em 0 .4em; }
.article-text h2:first-child, .article-text h3:first-child { margin-top: 0; }
.article-text a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-text a:hover { text-decoration-thickness: 2px; }
.article-text strong, .article-text b { font-weight: 700; color: var(--ink); }
.article-text ul, .article-text ol { padding-left: 1.4em; }
.article-text li { margin: .3em 0; }
.article-text li::marker { color: var(--crystal); }
.article-text img { display: inline-block; height: auto; vertical-align: middle; }
.article-text .aligncenter, .article-text img.aligncenter { display: block; margin-inline: auto; }
.article-text .alignleft { float: left; margin: .3em 1.2em 1em 0; }
.article-text .alignright { float: right; margin: .3em 0 1em 1.2em; }
.article-text figure { max-width: 100%; }
.article-text figure img, .article-text .wp-caption img { display: block; margin-inline: auto; }
.article-text figcaption, .article-text .wp-caption-text, .article-text .wp-element-caption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 8px; line-height: 1.45; }
.article-text figcaption:empty { display: none; }
.article-text .wp-caption { max-width: 100%; }
.article-text blockquote { border-left: 4px solid var(--crystal); background: var(--panel); padding: 14px 18px; color: var(--ink-2); }
.article-text blockquote.twitter-tweet { border-left-color: var(--line-2); }
.article-text pre, .article-text code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.article-text pre { background: var(--panel-2); padding: 14px 16px; overflow-x: auto; }
.article-text :not(pre) > code { background: var(--panel-2); padding: 1px 5px; }
.article-text hr { border: 0; height: 2px; background: var(--line); margin: 2em 0; }
.article-text iframe, .article-text video { max-width: 100%; }
.article-text .wp-block-embed__wrapper iframe, .article-text iframe[src*='youtube'] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.article-text::after { content: ''; display: table; clear: both; }

/* tables scroll inside themselves */
.article-text table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; font-size: 15px; line-height: 1.45; background: var(--panel); border: 2px solid var(--line); }
.article-text thead, .article-text tbody, .article-text tr { width: 100%; }
.article-text th, .article-text td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 90px; }
.article-text th, .article-text thead td { background: var(--panel-2); font: 700 13px/1.3 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.article-text tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--panel-2) 45%, transparent); }
.article-text td img { max-width: 120px; }
.article-text .tablepress { width: auto; }
.article-text .dataTables_wrapper { overflow-x: auto; }

/* callouts: [note] [tip] [warning] */
.callout { --c: var(--note); background: var(--panel); border: 2px solid var(--line); border-left: 6px solid var(--c); padding: 12px 16px 12px 18px; margin: 0 0 1.2em; font-size: 17px; }
.callout.tip { --c: var(--tip); } .callout.warning { --c: var(--warn); }
.callout-label { color: var(--c); display: block; margin-bottom: 4px; }
.callout-body > :last-child { margin-bottom: 0; }

/* [table_of_contents] */
.toc { background: var(--panel); border: 2px solid var(--line); padding: 14px 18px; margin: 0 0 1.4em; }
.toc .toc-title { color: var(--crystal); margin-bottom: 8px; }
.toc .list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc .list li { margin: 0; padding-left: 0; font-size: 16px; line-height: 1.4; }
.toc .list li::marker { content: none; }
.toc .list li a { display: block; padding: 4px 0 4px 10px; border-left: 3px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc .list li a:hover { color: var(--ink); border-left-color: var(--crystal); }
.toc .list li.H3 a { padding-left: 26px; font-size: 15px; }
.toc .list .hidden { display: none; }
.toc .list-toggle a { color: var(--link); font-weight: 600; }
.toc:not(.ready) { display: none; }

/* [related] */
.custom_related_section { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--panel); border: 2px solid var(--line); border-left: 6px solid var(--crystal-2); padding: 10px 14px; margin: 0 0 1.2em; font-size: 16px; }
.custom_related_section .relate { font: 400 var(--t-hud)/1.2 var(--f-hud); letter-spacing: .06em; text-transform: uppercase; color: var(--crystal-2); }
.custom_related_section .post_info a { font-weight: 600; }
.custom-related-posts { background: var(--panel); border: 2px solid var(--line); padding: 12px 16px; margin: 0 0 1.2em; }

/* key takeaway, spoilers, buttons from the options */
.key-takeaway-sec { background: var(--gold-bg); border: 2px solid color-mix(in srgb, var(--gold) 40%, transparent); padding: 14px 18px; margin: 0 0 1.4em; }
.key-takeaway-sec .title { color: var(--gold); margin-bottom: 6px; }
.key-takeaway-sec .conet { color: var(--ink); margin: 0; }
.spoiler { background: var(--ink); color: transparent; cursor: pointer; padding: 0 3px; transition: color .2s, background .2s; }
.spoiler.revealed { background: var(--panel-2); color: inherit; }
.achievement-text { display: inline-block; background: var(--gold-bg); color: var(--gold); padding: 2px 8px; font-weight: 600; }
.custom_ext_btn_post { display: inline-block; margin: 4px 6px 4px 0; }
.custom_ext_btn_post a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--crystal); color: var(--on-crystal) !important; text-decoration: none !important; font: 700 14px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }

/* the snippets' boxes: Foresee, enemy and achievement tables, content table */
.foresee, .enemy-table, .achievement-table, .content_table { margin: 0 0 1.3em; }
.foresee-inner, .enemy-table-inner, .achievement-table-inner { background: var(--panel); border: 2px solid var(--line); }
.foresee-header, .enemy-header, .achievement-header { background: var(--panel-2); padding: 10px 16px; font-family: var(--f-display); font-weight: 700; border-bottom: 2px solid var(--line); }
.foresee-header *, .enemy-header *, .achievement-header * { font-size: 19px !important; margin: 0 !important; }
.foresee-content, .enemy-content, .achievement-content, .foresee-bottom, .enemy-bottom, .achievement-bottom { padding: 12px 16px; }
.foresee-content span { display: block; font-size: 17px !important; }
.achievement-row { display: flex; gap: 14px; align-items: flex-start; }
.content_table { display: grid; gap: 8px; }
.content_table .content-row a { display: flex; justify-content: space-between; gap: 12px; background: var(--panel); border: 2px solid var(--line); padding: 10px 14px; text-decoration: none; color: var(--ink); }
.content_table .content-row h5 { font-size: 17px; margin: 0 0 4px; }
.content_table .content-row p { margin: 0; font-size: 15px; color: var(--ink-2); }
.content_table .content-row img { width: 48px; height: 48px; object-fit: contain; }

/* [enemy_table_v2] */
.enemy_table_v2 { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; background: var(--panel); border: 2px solid var(--line); border-top: 4px solid var(--danger); padding: 14px 16px; margin: 0 0 1.3em; }
.enemy_table_v2 .enemy-pic img { width: 120px; height: auto; display: block; image-rendering: auto; }
.enemy_table_v2 .enemy-kicker { color: var(--danger); }
.enemy_table_v2 .enemy_title { font-size: 21px; margin: 2px 0 8px !important; border: 0 !important; padding: 0 !important; }
.enemy_content_v2 { min-width: 0; font-size: 16px; }
.enemy_content_v2 > :last-child { margin-bottom: 0; }
@media (max-width: 560px) { .enemy_table_v2 { grid-template-columns: 1fr; } }

/* [checklist] */
.wiki_checklist_section { margin: 0 0 .5em; }
.wiki_checklist_section .checkmark { display: flex; align-items: center; gap: 10px; cursor: pointer; background: var(--panel); border: 2px solid var(--line); padding: 8px 12px; }
.wiki_checklist_section input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--xp); }
.wiki_checklist_section .head-title { margin: 0 !important; font-size: 17px; border: 0 !important; padding: 0 !important; }

/* the verdict box */
.verdict { background: var(--panel); border: 2px solid var(--line); padding: 18px; margin: 0 0 1.6em; display: grid; gap: 16px; }
.v-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v-score { background: var(--panel-2); padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.v-num { font: 700 40px/1 var(--f-display); color: var(--xp); }
.v-score.user .v-num { color: var(--crystal); }
.verdict .rating_metric table { display: table; width: 100%; margin: 0; }
.verdict .rating_metric td { vertical-align: middle; }
.verdict .bar.mini { display: inline-block; width: 64px; height: 8px; margin-right: 8px; vertical-align: middle; }
.verdict .rating_box { display: inline-flex; align-items: center; gap: 6px; }
.verdict .vote-login { display: block; font-size: 12px; }
.proscons_section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proscons_section ul { list-style: none; padding: 0; margin: 6px 0 0; }
.proscons_section li { padding-left: 22px; position: relative; font-size: 16px; }
.proscons_section .pros li::before { content: '+'; position: absolute; left: 4px; color: var(--xp); font-weight: 700; }
.proscons_section .cons li::before { content: '−'; position: absolute; left: 4px; color: var(--danger); font-weight: 700; }
.proscons_section .pros h4 { color: var(--xp); } .proscons_section .cons h4 { color: var(--danger); }
.buy_now_section { display: flex; flex-wrap: wrap; gap: 8px; }
.buy_now_section .btn { color: #1d1500 !important; text-decoration: none !important; }
@media (max-width: 560px) { .v-scores, .proscons_section { grid-template-columns: 1fr; } }

/* wiki: the character card beside the text, contributors */
.chart_first_div { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.chart_first_content { min-width: 0; }
.character_info { position: sticky; top: 88px; }
.character_section { background: var(--panel); border: 2px solid var(--line); }
.character_section .heading { font: 700 18px/1.2 var(--f-display); padding: 12px 14px; background: var(--panel-2); border-bottom: 2px solid var(--line); }
.character_innner > img { display: block; width: 100%; height: auto; }
.character_section .content { padding: 8px 14px 12px; font-size: 15px; display: grid; gap: 8px; }
.character_section .single_row_heading .inner_heading { font: 400 var(--t-hud)/1.2 var(--f-hud); letter-spacing: .06em; text-transform: uppercase; color: var(--crystal); padding-top: 6px; }
.character_section .single_row_with_label_and_description, .character_section .single_row_with_multi_description, .character_section .title_with_image { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.character_section .left_label { font-weight: 700; color: var(--ink); }
.character_section ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 960px) { .chart_first_div { grid-template-columns: 1fr; } .character_info { position: static; } }
#wiki_top_contribution { background: var(--panel); border: 2px solid var(--line); padding: 12px 16px; margin: 1.6em 0; }
#wiki_top_contribution .header { display: flex; justify-content: space-between; align-items: baseline; }
#wiki_top_contribution .contribution_list { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
#wiki_top_contribution img { width: 32px; height: 32px; display: inline-block; vertical-align: middle; margin-right: 6px; }

/* the dynamic "N / total" numbers above list headings (ACF switch) */
.dynamic_head_aghadi { font: 400 var(--t-hud)/1 var(--f-hud); letter-spacing: .08em; color: var(--crystal); margin: 1.9em 0 -1.2em; }
.dynamic_head_aghadi .key-num { font: 700 26px/1 var(--f-display); color: var(--crystal); margin-right: 4px; }

/* walkthrough chapter links */
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2em 0 0; }
.chapter-nav a { display: grid; gap: 4px; background: var(--panel); border: 2px solid var(--line); padding: 12px 14px; text-decoration: none !important; color: var(--ink); }
.chapter-nav a:hover { border-color: var(--crystal); }
.chapter-nav .hud { display: inline-flex; gap: 6px; align-items: center; color: var(--crystal); }
.chapter-nav .single-next-post { text-align: right; grid-column: 2; }
.chapter-nav .single-next-post .hud { justify-content: flex-end; }

/* about the writer */
.about-author { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 2px solid var(--line); padding: 16px; margin-top: 32px; }
.about-author .name { font: 700 18px/1.2 var(--f-display); color: var(--ink); display: inline-block; margin: 2px 0 4px; }
.about-author .muted { font-size: 15px; }

/* the right rail */
.sidebar_navigation { padding: 14px 16px; font-size: 15px; }
.sidebar_navigation .sidebar_navigation_title { color: var(--crystal); margin-bottom: 8px; }
.sidebar_navigation ul { margin: 0; padding-left: 1.1em; }
.nl-box { padding: 18px 16px; display: grid; gap: 10px; }
.nl-box .nl-k { color: var(--crystal); }
.nl-mark { display: flex; }
.nl-t { font-size: 22px; line-height: 1.15; }
.nl-d { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.nl-form { display: grid; gap: 8px; margin-top: 2px; }
.nl-form input { height: 44px; min-width: 0; padding: 0 12px; border: 2px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 500 15px/1 var(--f-text); }
.nl-form input::placeholder { color: var(--ink-3); }
.nl-form input:focus { outline: 3px solid var(--crystal); outline-offset: 0; border-color: var(--crystal); }
.nl-form .btn { width: 100%; }
.nl-form .btn[disabled] { opacity: .6; cursor: progress; }
.nl-msg { margin: 0; min-height: 1.3em; font-size: var(--t-xs); color: var(--ink-3); }
.nl-msg.ok { color: var(--crystal); }
.nl-msg.err { color: #c2412d; }
.nl-in-pop { padding: 6px 4px 4px; }
.nl-in-pop .nl-t { font-size: 26px; }
@media (min-width: 560px) { .nl-in-pop .nl-form { grid-template-columns: 1fr auto; } .nl-in-pop .nl-form .btn { width: auto; } }
/* Ghost's signup form takes its box's height (the old theme gave it 300 px): without a fixed height it collapses and gets cut off */
.nl-embed { height: 300px; position: relative; }
.nl-embed iframe { width: 100% !important; height: 300px !important; border: 0; }   /* a fixed height: Ghost's wrapper is absolutely positioned, so % would fall back to 150 px */
.widget { background: var(--panel); border: 2px solid var(--line); padding: 14px 16px; font-size: 15px; }
.widget-title { color: var(--crystal); margin-bottom: 10px; font-size: var(--t-hud); }
.widget .widget-title h4 { font: inherit; color: inherit; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.widget li a { display: block; padding: 6px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.widget li:last-child a { border-bottom: 0; }
.widget li a:hover { color: var(--ink); }
.w-more { display: inline-block; margin-top: 8px; color: var(--link); }
/* block widgets hold the old ad network blocks (no loader on the page today): no panel around them, so an empty one takes no room */
.widget.widget_block { background: none; border: 0; padding: 0; clip-path: none; }
.widget.widget_block:empty, .widget.widget_block p:empty { display: none; }

/* read next (vgkami-read-more plugin) */
.read-more-wrapper { margin-top: 40px; }
.read-more-wrapper:empty { display: none; }

/* the newsletter offer */
.nl-veil { position: fixed; inset: 0; z-index: 98; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(2px); }
.nl-pop { position: fixed; z-index: 99; left: 50%; top: 18%; transform: translateX(-50%); width: min(560px, 100% - 32px); padding: 18px; box-shadow: var(--shadow); }
.nl-pop-in { height: 300px; }
.nl-close { margin: 10px auto 0; display: flex; }

/* ───────── Lists ───────── */
.a-head { position: relative; border-bottom: 2px solid var(--line); overflow: hidden; }
.a-banner { position: absolute; inset: 0; opacity: .55; }
.a-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 55%, color-mix(in srgb, var(--bg) 30%, transparent) 100%); }
.a-head-in { position: relative; z-index: 1; padding: 34px 0 26px; }
.a-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 8px 0 10px; max-width: 22ch; }
.a-head .lede { color: var(--ink-2); max-width: 70ch; font-size: 17px; margin-bottom: 10px; background: none; }
.a-head .lede p { margin: 0 0 .5em; }
.a-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 28px; }
.a-grid.has-rail { grid-template-columns: minmax(0, 1fr) 300px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 2px solid var(--line); transition: transform .15s ease, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card-link { display: grid; height: 100%; color: var(--ink); text-decoration: none !important; grid-template-rows: auto 1fr; }
.card-pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.card-pic img, .card-pic .banner { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: grid; gap: 6px; padding: 12px 14px 14px; align-content: start; }
.card-title { font-size: 18px; line-height: 1.25; }
.card-excerpt { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; align-items: center; }
.pager .page-numbers { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; justify-content: center; background: var(--panel); border: 2px solid var(--line); font: 700 14px/1 var(--f-display); color: var(--ink-2); }
.pager .page-numbers.current { background: var(--crystal); border-color: var(--crystal); color: var(--on-crystal); }
.pager .page-numbers.dots { border: 0; background: none; }
.pager a.page-numbers:hover { border-color: var(--crystal); text-decoration: none; color: var(--ink); }
.empty { padding: 22px; display: grid; gap: 10px; }

.s-form { --step: 4px; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 2px solid var(--line-2); padding: 6px 6px 6px 12px; max-width: 620px; margin: 6px 0 10px; color: var(--ink-3); }
.s-form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; outline: none; color: var(--ink); height: 40px; }
.s-form input::placeholder { color: var(--ink-3); }

/* pages */
.p-top { padding: 26px 0 18px; border-bottom: 2px solid var(--line); background: radial-gradient(900px 260px at 80% 0%, color-mix(in srgb, var(--crystal-2) 14%, transparent), transparent 70%); }
.p-top h1 { font-size: clamp(34px, 5vw, 52px); margin: 8px 0 10px; }
.prose-wrap { max-width: calc(var(--measure) + 40px); padding-top: 26px; }
.compare-post { padding-top: 24px; overflow-x: auto; }

/* not found */
.lost { position: relative; overflow: hidden; border-bottom: 2px solid var(--line); }
.lost-banner { position: absolute; inset: 0; opacity: .7; }
.lost::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), var(--bg) 92%); }
.lost-in { position: relative; z-index: 1; padding: 72px 0 56px; }
.lost h1 { font-size: clamp(36px, 6vw, 64px); margin: 10px 0 12px; }
.lost .lede { color: var(--ink-2); font-size: 18px; max-width: 56ch; background: none; margin-bottom: 14px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* the front page (only if "/" is ever WordPress's again) */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--line); }
.hero-banner { position: absolute; inset: 0; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 1; padding: 80px 0 60px; display: grid; justify-items: start; gap: 10px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.hero .kicker { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: grid; background: var(--panel); border: 2px solid var(--line); color: var(--ink); text-decoration: none !important; }
.tile-banner { height: 90px; }
.tile-body { display: grid; gap: 4px; padding: 12px 14px; }
.tile-body b { font: 700 20px/1.2 var(--f-display); }

/* the sponsor box and card keep their own look (ym-sponsor / deal #51); they just get room */
.ym-sp { margin: 1.6em 0; }

@media (max-width: 1024px) {
  .e-grid.has-rail, .a-grid.has-rail { grid-template-columns: minmax(0, 1fr); }
  .e-main { margin-inline: auto; }
  .rail-in { position: static; }
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .e-head { padding: 18px 0 16px; }
  .article-text { font-size: 17px; line-height: 1.68; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav .single-next-post { grid-column: 1; }
  .cards { grid-template-columns: 1fr; }
  .a-head-in { padding: 24px 0 18px; }
  .lost-in { padding: 48px 0 40px; }
  .about-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .foot, .hotbar, .e-rail, .share, .nl-pop, .nl-veil, .read-more-wrapper { display: none !important; }
  .e-grid.has-rail { grid-template-columns: 1fr; }
}

/* /edit-profile/ */
.notice { padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.notice.ok { color: var(--xp); } .notice.bad { color: var(--danger); }
.profile-form { display: grid; gap: 12px; padding: 18px; max-width: 560px; }
.profile-form label { display: grid; gap: 4px; font: 600 14px/1.3 var(--f-text); color: var(--ink-2); }
.profile-form input[type='text'], .profile-form input[type='email'], .profile-form input[type='password'] { height: 42px; padding: 0 10px; background: var(--bg-2); border: 2px solid var(--line); color: var(--ink); }
.pf-photo { display: flex; gap: 14px; align-items: center; }
