@scope (.wiki-v16-overlay) {
:scope {
  --bg-0:#030c14;--bg-1:#071522;--bg-2:#0a1b2b;--bg-3:#0d263c;
  --panel:#071724;--panel-hi:#0c2235;
  --line:#24465f;--line-hi:#356b91;--line-soft:#163246;
  --text:#eef6fc;--muted:#91a9bb;--muted-2:#637c91;
  --blue:#2e80d1;--blue-2:#55aff8;--blue-3:#15538b;--cyan:#70c7ff;
  --green:#85db52;--amber:#e2bd36;--orange:#f17a2d;--red:#d35454;--purple:#b36ee5;
  --shadow:0 30px 80px rgba(0,0,0,.52);
  --inner:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -1px 0 rgba(0,0,0,.48);
  --font:"Trebuchet MS","Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box;font-family:var(--font)}
button,input{font:inherit}button{color:inherit}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.game-shell{position:relative;z-index:1;width:100vw;height:100vh;display:grid;place-items:center;padding:15px}
.wiki-window{
  width:min(1510px,calc(100vw - 24px));height:min(930px,calc(100vh - 24px));min-height:690px;
  position:relative;overflow:hidden;border:1px solid #38698a;border-radius:10px;
  background:linear-gradient(90deg,transparent,rgba(81,167,231,.035) 50%,transparent),linear-gradient(180deg,#071724,#04111c);
  box-shadow:var(--shadow),0 0 0 1px rgba(0,0,0,.75),inset 0 1px 0 rgba(149,208,249,.08)
}
.wiki-window::before{content:"";position:absolute;inset:4px;z-index:10;pointer-events:none;border:1px solid rgba(87,157,205,.14);border-radius:7px;box-shadow:inset 0 0 32px rgba(0,0,0,.18)}
.wiki-window::after{content:"";position:absolute;left:12px;right:12px;top:0;height:2px;z-index:11;background:linear-gradient(90deg,transparent,#3a83b6 16%,#65b9ee 50%,#3a83b6 84%,transparent);opacity:.66}
.frame-corner{position:absolute;width:25px;height:25px;z-index:12;pointer-events:none;opacity:.8}
.frame-corner::before,.frame-corner::after{content:"";position:absolute;background:#4f91bb}.frame-corner::before{width:16px;height:2px}.frame-corner::after{width:2px;height:16px}
.frame-corner.tl{top:7px;left:7px}.frame-corner.tr{top:7px;right:7px;transform:rotate(90deg)}.frame-corner.bl{bottom:7px;left:7px;transform:rotate(-90deg)}.frame-corner.br{bottom:7px;right:7px;transform:rotate(180deg)}
.frame-corner::before,.frame-corner::after{top:0;left:0}

.wiki-header{
  height:84px;display:flex;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid #28516e;
  background:linear-gradient(90deg,rgba(59,137,194,.12),transparent 36%),linear-gradient(180deg,#102c43,#0a2032 70%,#091d2d);
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.05)
}
.brand-mark{
  width:64px;height:64px;flex:0 0 auto;display:grid;place-items:center;position:relative;border:1px solid #36719c;border-radius:9px;
  background:linear-gradient(145deg,#123958,#0a2135 65%);box-shadow:inset 0 0 0 3px #071725,inset 0 0 0 4px rgba(95,170,221,.22),0 5px 16px rgba(0,0,0,.3)
}
.brand-mark::before,.brand-mark::after{content:"";position:absolute;background:#6cb6e9;opacity:.42}.brand-mark::before{width:18px;height:1px;left:-8px;top:50%}.brand-mark::after{width:1px;height:18px;top:-8px;left:50%}
.brand-ring{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;border:1px solid #4385b4;box-shadow:inset 0 0 0 4px rgba(3,15,24,.72);background:#0a2133}
.pokeball-mark{width:34px;height:34px;border-radius:50%;border:3px solid #07131e;background:linear-gradient(#d94442 0 46%,#07131e 46% 55%,#e8eef2 55% 100%);position:relative}
.pokeball-mark::after{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;transform:translate(-50%,-50%);border-radius:50%;background:#edf5fa;border:3px solid #07131e}
.header-copy{min-width:260px}.header-eyebrow{display:block;color:#64aee0;font-size:9px;font-weight:800;letter-spacing:.16em;margin-bottom:4px;opacity:.82}.header-copy h1{margin:0;font-size:28px;line-height:.95;letter-spacing:.05em;font-weight:900;text-shadow:0 2px 0 #06121b}.header-copy p{margin:7px 0 0;color:#bbccd8;font-size:12px}
.header-search{width:min(590px,42vw);height:38px;margin-left:auto;position:relative;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;padding:0 10px;border:1px solid #31536b;border-radius:3px;background:#05121c;box-shadow:inset 0 2px 6px rgba(0,0,0,.3)}
.header-search svg{color:#6faadb}.header-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:11px}.header-search input::placeholder{color:#627b8e}.header-search kbd{width:22px;height:22px;display:grid;place-items:center;border:1px solid #31536b;border-radius:3px;background:#0a1e2d;color:#7592a5;font-size:8px}
.header-status{display:flex;align-items:center;gap:9px;margin-left:8px;padding:8px 12px;border-left:1px solid rgba(95,153,192,.27);border-right:1px solid rgba(95,153,192,.15)}
.status-dot{width:8px;height:8px;border-radius:50%;background:#66d17e;box-shadow:0 0 10px rgba(102,209,126,.35)}.header-status div{display:grid;gap:1px}.header-status b{color:#d9edf9;font-size:9px;letter-spacing:.10em}.header-status small{color:#6f8da3;font-size:8px}

.wiki-layout{height:calc(100% - 84px);display:grid;grid-template-columns:270px minmax(620px,1fr) 310px}
.panel-section{min-width:0;background:linear-gradient(180deg,rgba(7,24,37,.985),rgba(4,17,28,.985))}
.navigation-panel{padding:17px 15px 15px;border-right:1px solid #1f4058;overflow:auto;scrollbar-width:thin;scrollbar-color:#4c7897 transparent;background:linear-gradient(180deg,#081c2b,#061621 70%)}
.content-panel{padding:14px 16px;border-right:1px solid #1f4058;overflow:hidden;display:flex;flex-direction:column}
.detail-panel{padding:16px 18px;overflow:auto;scrollbar-width:thin;scrollbar-color:#4c7897 transparent;background:linear-gradient(180deg,#071a29,#051520)}

.sidebar-title{display:flex;align-items:center;gap:10px;margin:0 2px 13px;padding-bottom:11px;border-bottom:1px solid #203d53}
.section-glyph{width:25px;height:25px;display:grid;place-items:center;color:#62b5ef;border:1px solid #2c668f;background:#0a2234;font-size:9px;transform:rotate(45deg)}
.sidebar-title strong{display:block;font-size:11px;letter-spacing:.12em}.sidebar-title small{display:block;color:#69869b;font-size:9px;margin-top:2px}
.nav-section+.nav-section{margin-top:15px}.nav-label{display:block;margin:0 5px 6px;color:#5f8298;font-size:7px;font-weight:800;letter-spacing:.12em}
.nav-button{width:100%;min-height:33px;display:flex;align-items:center;position:relative;padding:0 10px;border:1px solid transparent;border-radius:3px;background:transparent;color:#9db1c0;font-size:10px;text-align:left;cursor:pointer}
.nav-button:hover{color:#e2eef5;background:#0c2232;border-color:#25475e}.nav-button.active{color:white;background:linear-gradient(180deg,#216ca9,#174c7a);border-color:#55a5df;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 0 1px rgba(5,19,29,.7),0 3px 10px rgba(0,0,0,.18)}
.nav-button.active::after{content:"";position:absolute;right:8px;width:5px;height:5px;border-radius:50%;background:#76caff}
.back-game{display:flex;align-items:center;gap:7px;margin-top:16px;padding:11px 9px;border-top:1px solid #203d53;color:#6e8da2;font-size:8px}.back-game span{font-size:14px}.back-game strong{font-weight:700}

.page-title-row{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 2px 12px;border-bottom:1px solid #203d53}
.page-title-row>div>span{display:block;margin-bottom:4px;color:#64aee0;font-size:8px;font-weight:800;letter-spacing:.14em}.page-title-row h2{margin:0;font-size:26px;line-height:1;font-weight:800}.page-title-row p{margin:6px 0 0;color:#7f9aac;font-size:10px;line-height:1.4}
.icon-btn-text{min-height:34px;padding:0 10px;border:1px solid #356d96;border-radius:4px;background:linear-gradient(180deg,#0b1d2c,#07141e);cursor:pointer;color:#a9c5d6;font-size:8px;font-weight:700;box-shadow:var(--inner)}.icon-btn-text:hover{border-color:#60b4ef;background:#102b42;color:white}
.page-content{min-height:0;overflow:auto;padding:13px 1px 22px;scrollbar-width:thin;scrollbar-color:#4c7897 transparent}.page-content>*+*{margin-top:12px}

.detail-heading{display:flex;align-items:center;gap:7px;margin-bottom:10px}.detail-heading.second{margin-top:18px}.detail-heading > span{flex:1;height:1px;background:linear-gradient(90deg,transparent,#315a75)}.detail-heading > span:last-child{transform:scaleX(-1)}.detail-heading h4{margin:0;text-transform:uppercase;color:#75bcec;letter-spacing:.08em;font-size:8px;white-space:nowrap}
.toc{display:grid;gap:4px}.toc button{min-height:30px;padding:0 8px;border:0;border-left:1px solid #284c64;background:transparent;color:#7694a8;font-size:8px;text-align:left;cursor:pointer}.toc button:hover{color:#d1e3ed;border-left-color:#61b7ee}
.quick-tip{padding:11px;border:1px solid #31516a;border-radius:3px;background:linear-gradient(180deg,#0b1d2a,#07141e);color:#91a9bb;font-size:8px;line-height:1.55}.quick-tip::before{content:"!";width:17px;height:17px;display:grid;place-items:center;float:left;margin:0 8px 4px 0;border:1px solid #5c86a1;border-radius:50%;color:#8fc5e6;font-weight:800}
.related{display:grid;gap:6px}.related button{min-height:34px;padding:0 10px;border:1px solid #2c4e64;border-radius:3px;background:#071621;color:#8da8b8;font-size:8px;text-align:left;cursor:pointer}.related button:hover{border-color:#4b82a6;background:#0d2739;color:#e0eef5}

.home-hero{min-height:250px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);overflow:hidden;border:1px solid #315b75;border-radius:4px;background:radial-gradient(circle at 75% 45%,rgba(63,137,180,.14),transparent 30%),linear-gradient(135deg,#102c43,#081b29 70%);box-shadow:inset 0 0 45px rgba(0,0,0,.28)}
.home-hero-copy{display:grid;align-content:center;padding:26px}.page-kicker{color:#6fb5e5;font-size:8px;font-weight:800;letter-spacing:.16em}.home-hero h3{margin:9px 0 8px;font-size:29px;line-height:1}.home-hero p{max-width:620px;margin:0;color:#a8bdca;font-size:11px;line-height:1.55}.hero-buttons{display:flex;gap:8px;margin-top:20px}
.game-cta{min-width:210px;min-height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border:1px solid #4a9edd;border-radius:3px;background:linear-gradient(180deg,#2d7fc1,#1a568d);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -9px 18px rgba(0,0,0,.11),0 5px 13px rgba(0,0,0,.22);cursor:pointer}.game-cta span{display:grid;text-align:left}.game-cta small{font-size:6px;color:#b7dcf2;letter-spacing:.14em}.game-cta strong{font-size:10px}.game-cta b{font-size:16px}.game-cta:hover{filter:brightness(1.08)}
.ghost-cta{min-height:52px;padding:0 14px;border:1px solid #31536b;border-radius:3px;background:#071621;color:#98b3c3;font-size:8px;font-weight:800;cursor:pointer}.ghost-cta:hover{border-color:#4b82a6;background:#0d2739;color:white}
.hero-pokemon{position:relative;min-height:250px}.hero-sprite{position:absolute;display:grid;place-items:center}.hero-sprite img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 10px 6px rgba(0,0,0,.4))}.hero-sprite-a{width:170px;height:170px;right:77px;bottom:27px;z-index:3}.hero-sprite-b{width:112px;height:112px;right:12px;bottom:17px;opacity:.7}.hero-sprite-c{width:108px;height:108px;left:7px;top:25px;opacity:.62}

.section-card{overflow:hidden;border:1px solid #31516a;border-radius:4px;background:linear-gradient(180deg,#0a1e2d,#07151f);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.section-heading{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 11px;border-bottom:1px solid #203d53}.section-heading > span{flex:1;height:1px;background:linear-gradient(90deg,transparent,#315a75)}.section-heading > span:last-child{transform:scaleX(-1)}.section-heading h4{margin:0;color:#75bcec;font-size:8px;letter-spacing:.10em;white-space:nowrap}

.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.category-card{min-height:118px;display:grid;align-content:center;justify-items:center;gap:5px;padding:12px;border:0;border-right:1px solid #203d53;border-bottom:1px solid #203d53;background:transparent;cursor:pointer}.category-card:nth-child(3n){border-right:0}.category-card:nth-last-child(-n+3){border-bottom:0}.category-card:hover{background:#0c2232}.category-card i{width:34px;height:34px;display:grid;place-items:center;border:1px solid #356b91;border-radius:50%;background:#0a2234;color:#74c1f3;font-style:normal;font-size:9px;font-weight:800}.category-card strong{font-size:10px}.category-card p{max-width:180px;margin:0;color:#6e899a;font-size:8px;line-height:1.4;text-align:center}
.system-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px}.system-cards button{min-height:60px;display:grid;align-content:center;gap:3px;padding:9px 10px;border:1px solid #31516a;border-radius:3px;background:linear-gradient(180deg,#0b1d2a,#07141e);text-align:left;cursor:pointer}.system-cards button:hover{border-color:#4a83a8;background:#0d283a}.system-cards strong{font-size:9px}.system-cards span{color:#6e899a;font-size:7px}

.guide-steps{display:grid;gap:7px}.guide-steps article{min-height:66px;display:grid;grid-template-columns:48px 1fr;align-items:center;border:1px solid #31516a;border-radius:4px;background:#091b29}.guide-steps article>b{display:grid;place-items:center;align-self:stretch;border-right:1px solid #203d53;color:#66b4e4;font-size:10px}.guide-steps article>div{padding:10px 12px}.guide-steps strong{font-size:10px}.guide-steps p{margin:4px 0 0;color:#728ea0;font-size:8px}
.resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px}.resource-grid>div{min-height:68px;display:grid;align-content:center;padding:10px;border:1px solid #294d64;border-radius:3px;background:#071822}.resource-grid strong{font-size:16px}.resource-grid span{margin-top:3px;color:#668497;font-size:7px;font-weight:800}

.pokemon-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pokemon-showcase article{min-height:190px;display:grid;justify-items:center;align-content:center;gap:7px;border:1px solid #315b75;border-radius:4px;background:linear-gradient(180deg,#0c2232,#071621)}.pokemon-showcase article>img{width:105px;height:105px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 7px 4px rgba(0,0,0,.36))}.pokemon-showcase article>strong{font-size:12px}
.types{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.type{min-height:23px;display:inline-flex;align-items:center;gap:5px;padding:2px 7px 2px 3px;border:1px solid #49647a;border-radius:4px;background:linear-gradient(180deg,#0c1c28,#07151e);font-size:7px;font-weight:800}.type img{width:16px;height:16px}.type.fire{border-color:#885239}.type.water{border-color:#3e688a}.type.flying{border-color:#5a6f87}.type.ghost{border-color:#654e7e}.type.poison{border-color:#6e4f7d}

.data-list{display:grid}.data-list>div{min-height:50px;display:grid;grid-template-columns:150px 1fr;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid #203d53}.data-list>div:last-child{border-bottom:0}.data-list span{color:#75a7ca;font-size:8px;font-weight:800}.data-list p{margin:0;color:#849eae;font-size:8px;line-height:1.45}
.tier-list,.difficulty-list,.item-table,.ball-table{display:grid}.tier-list>div,.difficulty-list>div,.item-table>div,.ball-table>div{min-height:43px;display:grid;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid #203d53}.tier-list>div,.difficulty-list>div{grid-template-columns:150px 1fr}.item-table>div{grid-template-columns:160px 1fr auto}.ball-table>div{grid-template-columns:1fr auto auto}.tier-list>div:last-child,.difficulty-list>div:last-child,.item-table>div:last-child,.ball-table>div:last-child{border-bottom:0}.tier-list span,.difficulty-list span,.item-table span,.ball-table span,.ball-table small{color:#7893a4;font-size:8px}.item-table strong,.ball-table strong{font-size:9px}.item-table b{color:#d8e6ee;font-size:8px}
.tier,.difficulty-list b{font-size:8px}.tier.common{color:#8295a2}.tier.uncommon{color:#62c981}.tier.rare{color:#61aef0}.tier.epic{color:#b47ae8}.tier.legendary{color:#f0b83f}.difficulty-list .easy{color:var(--green)}.difficulty-list .medium{color:var(--amber)}.difficulty-list .hard{color:var(--orange)}

.metric-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-strip.three{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-strip>div{min-height:74px;display:grid;align-content:center;padding:10px 12px;border:1px solid #31516a;border-radius:4px;background:linear-gradient(180deg,#0b1d2a,#07141e)}.metric-strip span{color:#668497;font-size:7px;font-weight:800}.metric-strip strong{margin-top:4px;font-size:16px}
.tip-box,.warning-box{padding:11px 12px;border:1px solid #31516a;border-left:3px solid #5a9ed0;border-radius:3px;background:#091b29}.warning-box{border-left-color:var(--amber)}.tip-box b,.warning-box b{display:block;margin-bottom:4px;color:#79bce8;font-size:7px;letter-spacing:.08em}.warning-box b{color:#e0b94c}.tip-box p,.warning-box p,.body-copy{margin:0;color:#839dad;font-size:8px;line-height:1.55}.body-copy{padding:12px}
.skill-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid #31516a;border-radius:4px;background:#07151f}.skill-slots>div{min-height:88px;display:grid;align-content:center;justify-items:center;gap:4px;border-right:1px solid #203d53;background:#091b29}.skill-slots>div:last-child{border-right:0}.skill-slots b{color:#67b6e6;font-size:9px}.skill-slots strong{font-size:14px}.skill-slots span{color:#667f90;font-size:7px}.skill-slots .locked{filter:saturate(.45);opacity:.7}
.types-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.type-big{min-height:64px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #31516a;border-radius:4px;background:linear-gradient(180deg,#0b1d2a,#07141e)}.type-big img{width:22px;height:22px}.type-big strong{font-size:8px}
.game-list{margin:0;padding:11px 15px 11px 28px;color:#819baa;font-size:8px;line-height:1.65}.game-list li::marker{color:#5ba9d7}
.two-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bonus-line,.chip-line,.vip-plans{display:flex;flex-wrap:wrap;gap:6px;padding:10px}.bonus-line span,.chip-line span,.vip-plans span{min-height:29px;display:inline-flex;align-items:center;padding:0 9px;border:1px solid #31516a;border-radius:3px;background:#071822;color:#91a9b8;font-size:8px}
.mastery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.mastery-grid span{min-height:54px;display:grid;place-items:center;border:1px solid #31516a;border-radius:4px;background:linear-gradient(180deg,#0b1d2a,#07141e);color:#9eb5c3;font-size:9px;font-weight:700}
.gym-table{overflow:hidden;border:1px solid #31516a;border-radius:4px}.gym-table>div{min-height:39px;display:grid;grid-template-columns:1.1fr .55fr .8fr .8fr .55fr;align-items:center;gap:9px;padding:0 11px;border-bottom:1px solid #203d53;background:#091b29;color:#829aaa;font-size:8px}.gym-table>div:last-child{border-bottom:0}.gym-table .head{min-height:32px;background:#0c2232;color:#5e7e91;font-size:7px;font-weight:800}.gym-table strong{color:#cbd9e1}
.account-boosts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px}.account-boosts>div{min-height:78px;display:grid;align-content:center;gap:4px;padding:10px;border:1px solid #31516a;border-radius:3px;background:#071822}.account-boosts strong{font-size:9px}.account-boosts span{color:#8da6b5;font-size:8px}.account-boosts b{color:#68b9e8;font-size:8px}

.search-results{width:100%;max-height:360px;overflow:auto;position:absolute;z-index:50;left:0;top:44px;border:1px solid #356b91;border-radius:4px;background:#071724;box-shadow:0 14px 30px rgba(0,0,0,.42)}
.search-result{width:100%;display:grid;gap:3px;padding:9px 10px;border:0;border-bottom:1px solid #203d53;background:transparent;text-align:left;cursor:pointer}.search-result:last-child{border-bottom:0}.search-result:hover{background:#0c2232}.search-result strong{font-size:9px}.search-result span{color:#678397;font-size:7px}
*{scrollbar-width:thin;scrollbar-color:#4a7290 #07141e}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:#07141e}*::-webkit-scrollbar-thumb{background:#3c6886;border:2px solid #07141e;border-radius:6px}

@media(max-width:1240px){.wiki-layout{grid-template-columns:245px minmax(560px,1fr) 275px}.header-status{display:none}.header-search{width:min(520px,45vw)}}
@media(max-width:1040px){body{overflow:auto}.game-shell{height:auto;min-height:100vh;place-items:start center}.wiki-window{height:auto;min-height:760px}.wiki-layout{grid-template-columns:235px minmax(0,1fr)}.detail-panel{grid-column:1/-1;border-top:1px solid #1f4058}.home-hero{grid-template-columns:1fr}.hero-pokemon{display:none}.types-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.wiki-header{height:auto;min-height:116px;display:grid;grid-template-columns:auto 1fr;padding:12px 16px}.brand-mark{width:52px;height:52px}.brand-ring{width:38px;height:38px}.pokeball-mark{width:28px;height:28px}.header-copy h1{font-size:22px}.header-copy p{display:none}.header-search{grid-column:1/-1;width:100%;margin:0}.wiki-layout{height:auto;grid-template-columns:1fr}.navigation-panel{display:none}.content-panel{border-right:0}.detail-panel{display:none}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card:nth-child(3n){border-right:1px solid #203d53}.category-card:nth-child(2n){border-right:0}.system-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pokemon-showcase{grid-template-columns:1fr}.metric-strip.three,.resource-grid,.account-boosts{grid-template-columns:1fr}.two-panels{grid-template-columns:1fr}.types-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* =========================================================
   V3 — READABILITY PASS
   Mantém o visual Hunts/Manager, mas prioriza leitura.
   ========================================================= */

:scope {
  --text: #f4f8fb;
  --muted: #b5c8d5;
  --muted-2: #8299aa;
}

/* Header */
.header-eyebrow {
  font-size: 9.5px;
  letter-spacing: .11em;
}

.header-copy h1 {
  font-size: 30px;
}

.header-copy p {
  font-size: 12.5px;
  color: #c3d2dc;
}

.header-search input {
  font-size: 12px;
}

/* Sidebar */
.sidebar-title strong {
  font-size: 12px;
}

.sidebar-title small {
  font-size: 10px;
  color: #7f9aab;
}

.nav-label {
  font-size: 8px;
  letter-spacing: .09em;
}

.nav-button {
  min-height: 36px;
  font-size: 10.5px;
  color: #aec0cc;
}

.back-game {
  font-size: 9px;
}

/* Page header */
.page-title-row {
  min-height: 92px;
}

.page-title-row > div > span {
  font-size: 9px;
  letter-spacing: .10em;
}

.page-title-row h2 {
  font-size: 28px;
}

.page-title-row p {
  max-width: 760px;
  margin-top: 8px;
  color: #9fb5c3;
  font-size: 11px;
  line-height: 1.55;
}

.icon-btn-text {
  font-size: 9px;
}

/* Main content spacing */
.page-content {
  padding-top: 16px;
}

.page-content > * + * {
  margin-top: 14px;
}

/* Right column */
.detail-heading h4 {
  font-size: 9px;
}

.toc button {
  min-height: 32px;
  color: #90a9b8;
  font-size: 9px;
  line-height: 1.35;
}

.quick-tip {
  color: #a9becb;
  font-size: 9.5px;
  line-height: 1.65;
}

.related button {
  min-height: 37px;
  color: #a2b8c5;
  font-size: 9px;
}

/* Home hero */
.page-kicker {
  font-size: 9px;
}

.home-hero h3 {
  font-size: 31px;
}

.home-hero p {
  max-width: 680px;
  color: #bccbd5;
  font-size: 11.5px;
  line-height: 1.65;
}

.game-cta small {
  font-size: 7px;
}

.game-cta strong {
  font-size: 11px;
}

.ghost-cta {
  font-size: 9px;
}

/* Section headers */
.section-heading {
  min-height: 42px;
}

.section-heading h4 {
  color: #83c7f3;
  font-size: 9.5px;
  letter-spacing: .07em;
}

/* Explore cards */
.category-card {
  min-height: 128px;
  gap: 7px;
}

.category-card i {
  width: 38px;
  height: 38px;
  font-size: 10px;
}

.category-card strong {
  font-size: 11px;
}

.category-card p {
  max-width: 210px;
  color: #849dac;
  font-size: 9.5px;
  line-height: 1.5;
}

.system-cards button {
  min-height: 66px;
}

.system-cards strong {
  font-size: 10.5px;
}

.system-cards span {
  color: #8199a8;
  font-size: 9px;
}

/* Guide steps */
.guide-steps article {
  min-height: 76px;
}

.guide-steps article > b {
  font-size: 11px;
}

.guide-steps strong {
  font-size: 11px;
}

.guide-steps p {
  color: #8fa5b4;
  font-size: 9.5px;
  line-height: 1.5;
}

/* Metrics */
.resource-grid > div,
.metric-strip > div {
  min-height: 78px;
}

.resource-grid strong,
.metric-strip strong {
  font-size: 17px;
}

.resource-grid span,
.metric-strip span {
  font-size: 8.5px;
}

/* Pokémon cards */
.pokemon-showcase article > strong {
  font-size: 13px;
}

.type {
  min-height: 25px;
  font-size: 8px;
}

/* Data/info lists */
.data-list > div {
  min-height: 56px;
  grid-template-columns: 165px 1fr;
}

.data-list span {
  font-size: 9px;
}

.data-list p {
  color: #91a9b8;
  font-size: 9.5px;
  line-height: 1.55;
}

/* Tier, items, balls */
.tier-list > div,
.difficulty-list > div,
.item-table > div,
.ball-table > div {
  min-height: 48px;
}

.tier,
.difficulty-list b {
  font-size: 9px;
}

.tier-list span,
.difficulty-list span,
.item-table span,
.ball-table span,
.ball-table small {
  color: #90a8b7;
  font-size: 9px;
}

.item-table strong,
.ball-table strong {
  font-size: 10px;
}

.item-table b {
  font-size: 9px;
}

/* Skill slots */
.skill-slots > div {
  min-height: 96px;
}

.skill-slots b {
  font-size: 10px;
}

.skill-slots strong {
  font-size: 15px;
}

.skill-slots span {
  font-size: 8.5px;
}

/* Types */
.type-big {
  min-height: 70px;
}

.type-big strong {
  font-size: 9px;
}

/* Lists and paragraphs */
.game-list {
  padding-top: 13px;
  padding-bottom: 13px;
  color: #95acba;
  font-size: 9.5px;
  line-height: 1.75;
}

.body-copy {
  padding: 14px;
  color: #96adbb;
  font-size: 9.5px;
  line-height: 1.7;
}

.tip-box,
.warning-box {
  padding: 13px 14px;
}

.tip-box b,
.warning-box b {
  font-size: 8px;
}

.tip-box p,
.warning-box p {
  color: #9ab0bd;
  font-size: 9.5px;
  line-height: 1.65;
}

/* Two-column panels */
.two-panels .section-card {
  min-height: 170px;
}

/* Bonus/chips */
.bonus-line span,
.chip-line span,
.vip-plans span {
  min-height: 31px;
  font-size: 9px;
}

/* Masteries */
.mastery-grid span {
  min-height: 58px;
  font-size: 10px;
}

/* Gym table */
.gym-table > div {
  min-height: 43px;
  font-size: 9px;
}

.gym-table .head {
  min-height: 35px;
  font-size: 8px;
}

/* Account boosts */
.account-boosts > div {
  min-height: 84px;
}

.account-boosts strong {
  font-size: 10px;
}

.account-boosts span,
.account-boosts b {
  font-size: 9px;
}

/* Search results */
.search-result {
  padding: 11px 12px;
}

.search-result strong {
  font-size: 10.5px;
}

.search-result span {
  font-size: 8.5px;
}

/* Reduce overly faint separators from competing with text */
.section-heading > span,
.detail-heading > span {
  opacity: .72;
}

/* Slightly wider reading column at common desktop resolutions */
@media (min-width: 1241px) {
  .wiki-layout {
    grid-template-columns: 275px minmax(640px, 1fr) 300px;
  }
}

/* Smaller screens: keep readable sizes instead of shrinking typography */
@media (max-width: 1040px) {
  .nav-button {
    font-size: 10px;
  }

  .page-title-row h2 {
    font-size: 25px;
  }

  .page-title-row p,
  .home-hero p {
    font-size: 11px;
  }
}


/* =========================================================
   V4 — ICONOGRAPHY PASS
   Bootstrap Icons for navigation and systems.
   PokeOrigins Type SVGs remain the native game assets.
   ========================================================= */

.bi {
  font-family: inherit !important;
  font-style: normal;
  line-height: 1;
}

.nav-button {
  gap: 9px;
}

.nav-icon {
  width: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  color: #6f9bb8;
  font-size: 14px;
  transition: color 120ms ease;
}

.nav-button:hover .nav-icon {
  color: #a0cff0;
}

.nav-button.active .nav-icon {
  color: #dcf2ff;
}

.section-glyph {
  transform: rotate(45deg);
}

.section-glyph .bi {
  font-size: 11px;
  transform: rotate(-45deg);
}

.back-game .bi {
  color: #739db8;
  font-size: 14px;
}

.icon-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.icon-btn-text .bi {
  color: #72b8e4;
  font-size: 13px;
}

.category-card .category-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 1px;
  border: 1px solid #356b91;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(81,165,218,.15), transparent 66%),
    #0a2234;
  color: #80cdf7;
  font-size: 18px;
  box-shadow: inset 0 0 0 3px rgba(5,20,31,.55);
}

.category-card:hover .category-icon {
  border-color: #4e8db8;
  color: #b1e1fb;
}

.system-cards button {
  grid-template-columns: 30px minmax(0,1fr);
  column-gap: 8px;
}

.system-cards button .system-icon {
  grid-row: 1 / span 2;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid #315b75;
  border-radius: 4px;
  background: #071822;
  color: #71bce9;
  font-size: 15px;
}

.system-cards button strong,
.system-cards button span {
  grid-column: 2;
}

.game-cta {
  gap: 10px;
}

.cta-leading-icon {
  flex: 0 0 auto;
  color: #dff5ff;
  font-size: 18px;
}

.ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ghost-cta .bi {
  color: #78bfe9;
  font-size: 14px;
}

.section-heading h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title-icon {
  color: #6dbce9;
  font-size: 12px;
}

.page-icon-intro {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #31516a;
  border-radius: 4px;
  background: linear-gradient(180deg,#0a1e2d,#07151f);
}

.page-icon-intro > .bi {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #081a27;
  color: #79c7f2;
  font-size: 18px;
}

.page-icon-intro > div {
  display: grid;
  gap: 3px;
}

.page-icon-intro strong {
  color: #dceaf2;
  font-size: 10px;
}

.page-icon-intro span {
  color: #849dac;
  font-size: 9px;
}

.quick-tip {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: start;
  gap: 8px;
}

.quick-tip::before {
  display: none;
}

.quick-tip-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #8dd1f4;
  font-size: 16px;
}

.related button {
  display: flex;
  align-items: center;
  gap: 7px;
}

.related button .bi {
  color: #5e9dc2;
  font-size: 14px;
}

.related button:hover .bi {
  color: #97d2f3;
}

@media (max-width: 720px) {
  .nav-icon { font-size: 13px; }
  .category-card .category-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}


/* =========================================================
   V5 — ICON FIXES
   Pokémon uses a Poké Ball; Shiny uses the former stars icon.
   ========================================================= */

/* Important: decorative mirrored lines must only target direct children. */
.section-heading > span:last-child,
.detail-heading > span:last-child {
  transform: scaleX(-1);
}

/* Mini Poké Ball drawn with CSS so it matches the game and needs no new asset. */
.poke-icon {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background:
    linear-gradient(
      to bottom,
      #c84b4b 0%,
      #c84b4b 43%,
      #08141e 43%,
      #08141e 57%,
      #dce8ef 57%,
      #dce8ef 100%
    );
  border: 2px solid #07131d;
  box-shadow:
    0 0 0 1px #48728d,
    inset 0 0 0 1px rgba(255,255,255,.05);
}

.poke-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 2px solid #07131d;
  border-radius: 50%;
  background: #e9f1f5;
  box-shadow: 0 0 0 1px rgba(91,151,189,.24);
}

/* Sidebar Poké Ball */
.nav-pokeball {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-left: 1px;
  margin-right: 1px;
}

.nav-button.active .nav-pokeball {
  box-shadow:
    0 0 0 1px #8bcff4,
    0 0 7px rgba(105,188,237,.18);
}

/* Home Pokémon category */
.category-pokeball {
  width: 30px;
  height: 30px;
  margin: 5px 0 6px;
  box-shadow:
    0 0 0 5px #0a2234,
    0 0 0 6px #356b91,
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.category-pokeball::before {
  width: 9px;
  height: 9px;
}

.category-card:hover .category-pokeball {
  box-shadow:
    0 0 0 5px #0b283c,
    0 0 0 6px #4e8db8,
    0 0 12px rgba(100,184,235,.10);
}


/* =========================================================
   V6 — CHARIZARD SPRITE AS POKÉMON ICON
   Uses the real game sprite; no generated image.
   ========================================================= */

.sprite-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sprite-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
}

/* Sidebar — visually matches the 17px icon footprint. */
.nav-charizard-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-left: -1px;
  margin-right: -1px;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,.55))
    drop-shadow(0 0 3px rgba(105,188,237,.10));
}

.nav-charizard-icon img {
  transform: scale(1.12);
}

.nav-button:hover .nav-charizard-icon {
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,.55))
    drop-shadow(0 0 4px rgba(120,205,250,.22));
}

.nav-button.active .nav-charizard-icon {
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,.55))
    drop-shadow(0 0 5px rgba(155,223,255,.32));
}

/* Home card — same circular treatment as the other category icons. */
.category-charizard-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1px;
  border: 1px solid #356b91;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(81,165,218,.14), transparent 66%),
    #0a2234;
  box-shadow: inset 0 0 0 3px rgba(5,20,31,.55);
}

.category-charizard-icon img {
  width: 31px;
  height: 31px;
  transform: translateY(1px);
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.50));
}

.category-card:hover .category-charizard-icon {
  border-color: #4e8db8;
  background:
    radial-gradient(circle, rgba(91,184,236,.18), transparent 67%),
    #0b283c;
}

.category-card:hover .category-charizard-icon img {
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,.50))
    drop-shadow(0 0 4px rgba(112,201,247,.15));
}

/* Pokémon page intro. */
.page-pokemon-intro .page-charizard-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #081a27;
}

.page-pokemon-intro .page-charizard-icon img {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.45));
}

/* Shiny page intro keeps the stars treatment. */
.page-shiny-intro > .bi {
  color: #8ed8ff;
  text-shadow: 0 0 5px rgba(103,197,242,.18);
}

/* Remove obsolete Poké Ball icon visuals if still present elsewhere. */
.nav-pokeball,
.category-pokeball {
  display: none !important;
}


/* =========================================================
   V7 — MONOCHROME POKÉMON ICON
   Charizard sprite becomes a cyan UI icon, matching the rest
   of the Hunts/Manager icon language.
   ========================================================= */

/* Convert all visible pixels of the Charizard sprite to the same cyan tone.
   Transparency/shape are preserved, so the sprite reads like a true UI icon. */
.nav-charizard-icon img,
.category-charizard-icon img,
.page-charizard-icon img {
  filter:
    brightness(0)
    saturate(100%)
    invert(76%)
    sepia(31%)
    saturate(1040%)
    hue-rotate(166deg)
    brightness(102%)
    contrast(96%);
}

/* Sidebar: same optical weight as Bootstrap icons. */
.nav-charizard-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  opacity: .88;
}

.nav-charizard-icon img {
  width: 17px;
  height: 17px;
  transform: scale(1.08);
  filter:
    brightness(0)
    saturate(100%)
    invert(67%)
    sepia(35%)
    saturate(805%)
    hue-rotate(167deg)
    brightness(97%)
    contrast(93%);
}

.nav-button:hover .nav-charizard-icon {
  opacity: 1;
}

.nav-button.active .nav-charizard-icon img {
  filter:
    brightness(0)
    saturate(100%)
    invert(91%)
    sepia(18%)
    saturate(872%)
    hue-rotate(170deg)
    brightness(103%)
    contrast(101%);
}

/* Home category: icon treatment identical to the other round category icons. */
.category-charizard-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1px;
  border: 1px solid #356b91;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(81,165,218,.15), transparent 66%),
    #0a2234;
  box-shadow: inset 0 0 0 3px rgba(5,20,31,.55);
}

.category-charizard-icon img {
  width: 24px;
  height: 24px;
  transform: none;
}

.category-card:hover .category-charizard-icon img {
  filter:
    brightness(0)
    saturate(100%)
    invert(88%)
    sepia(18%)
    saturate(1010%)
    hue-rotate(170deg)
    brightness(102%)
    contrast(97%);
}

/* Pokémon page intro: same square icon block used by the other systems. */
.page-pokemon-intro .page-charizard-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #081a27;
}

.page-pokemon-intro .page-charizard-icon img {
  width: 24px;
  height: 24px;
}


/* =========================================================
   V8 — MYNAUI POKEBALL SVG
   Local SVG asset from MynaUI (MIT), colored with currentColor.
   ========================================================= */

.myna-pokeball {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url("assets/ui/pokeball-mynaui.svg");
  mask-image: url("assets/ui/pokeball-mynaui.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Sidebar */
.nav-pokeball-svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #6f9bb8;
  transition: color 120ms ease;
}

.nav-button:hover .nav-pokeball-svg {
  color: #a0cff0;
}

.nav-button.active .nav-pokeball-svg {
  color: #dcf2ff;
}

/* Home category icon: identical shell language to the other category icons. */
.category-pokeball-shell {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 1px;
  border: 1px solid #356b91;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(81,165,218,.15), transparent 66%),
    #0a2234;
  box-shadow: inset 0 0 0 3px rgba(5,20,31,.55);
  color: #80cdf7;
}

.category-pokeball-svg {
  width: 23px;
  height: 23px;
}

.category-card:hover .category-pokeball-shell {
  border-color: #4e8db8;
  background:
    radial-gradient(circle, rgba(91,184,236,.18), transparent 67%),
    #0b283c;
  color: #b1e1fb;
}

/* Pokémon page intro */
.page-pokeball-shell {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #081a27;
  color: #79c7f2;
}

.page-pokeball-svg {
  width: 22px;
  height: 22px;
}

/* Retire the experimental Charizard/pokeball CSS icons. */
.nav-charizard-icon,
.category-charizard-icon,
.page-charizard-icon,
.nav-pokeball,
.category-pokeball {
  display: none !important;
}


/* =========================================================
   V9 — INLINE POKEBALL SVG
   No mask/external SVG dependency; works under file:// too.
   ========================================================= */

.inline-pokeball,
.category-pokeball-shell,
.page-pokeball-shell {
  color: #78bfe9;
}

.myna-pokeball-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

/* Sidebar */
.nav-inline-pokeball {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  color: #6f9bb8;
}

.nav-button:hover .nav-inline-pokeball {
  color: #a0cff0;
}

.nav-button.active .nav-inline-pokeball {
  color: #dcf2ff;
}

/* Home card */
.category-pokeball-shell {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 1px;
  border: 1px solid #356b91;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(81,165,218,.15), transparent 66%),
    #0a2234;
  box-shadow: inset 0 0 0 3px rgba(5,20,31,.55);
}

.category-pokeball-shell .myna-pokeball-svg {
  width: 23px;
  height: 23px;
}

.category-card:hover .category-pokeball-shell {
  color: #b1e1fb;
  border-color: #4e8db8;
}

/* Pokémon page intro */
.page-pokeball-shell {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #081a27;
}

.page-pokeball-shell .myna-pokeball-svg {
  width: 22px;
  height: 22px;
}

/* Disable old mask-based spans if any remain. */
.myna-pokeball {
  display: none !important;
}


/* V10 — Sidebar Pokémon uses the same working inline Poké Ball SVG. */
.nav-button[data-page="pokemon"] .nav-inline-pokeball {
  display: grid !important;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  color: #6f9bb8;
}

.nav-button[data-page="pokemon"]:hover .nav-inline-pokeball {
  color: #a0cff0;
}

.nav-button[data-page="pokemon"].active .nav-inline-pokeball {
  color: #dcf2ff;
}


/* =========================================================
   V11 — SIDEBAR HIERARCHY
   Stronger grouping between HOME / ENCICLOPÉDIA / MUNDO / SISTEMAS.
   ========================================================= */

.navigation-panel {
  padding: 17px 12px 15px;
  scrollbar-width: thin;
  scrollbar-color: #31546b transparent;
}

/* Make each category feel like its own navigation block. */
.nav-section {
  position: relative;
  padding: 0 0 5px 10px;
}

.nav-section + .nav-section {
  margin-top: 16px;
}

/* Subtle vertical rail connecting items inside the same category. */
.nav-section::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 38px;
  bottom: 9px;
  width: 1px;
  background: linear-gradient(
    180deg,
    #35617c 0%,
    #1c3d52 72%,
    transparent 100%
  );
  opacity: .82;
}

/* Real category header instead of a tiny floating label. */
.nav-label {
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px -10px;
  padding: 0 9px;
  border-top: 1px solid rgba(66, 116, 149, .26);
  border-bottom: 1px solid #203f54;
  background:
    linear-gradient(
      90deg,
      rgba(29, 71, 99, .25),
      rgba(9, 29, 43, .12) 78%,
      transparent
    );
  color: #8ebbd5;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .075em;
}

.nav-label .bi {
  width: 14px;
  display: grid;
  place-items: center;
  color: #68acd5;
  font-size: 11px;
}

.nav-label > span {
  line-height: 1;
}

/* Links now clearly belong to the block above them. */
.nav-button {
  width: calc(100% - 3px);
  min-height: 35px;
  margin-left: 0;
  padding: 0 9px 0 11px;
  border-radius: 3px;
  color: #a8bbc7;
}

.nav-button + .nav-button {
  margin-top: 1px;
}

.nav-button::before {
  content: "";
  width: 5px;
  height: 1px;
  position: absolute;
  left: -5px;
  top: 50%;
  background: #31556c;
  opacity: .62;
}

.nav-button:hover {
  border-color: #274c64;
  background:
    linear-gradient(
      90deg,
      rgba(24, 61, 85, .42),
      rgba(10, 34, 50, .64)
    );
}

/* Selected item remains obvious without dominating the whole sidebar. */
.nav-button.active {
  color: #f2f8fb;
  border-color: #3a7196;
  background:
    linear-gradient(
      180deg,
      #194e75 0%,
      #123c5d 100%
    );
  box-shadow:
    inset 2px 0 #6ab9e9,
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 7px rgba(0,0,0,.16);
}

.nav-button.active::before {
  width: 6px;
  background: #69b8e8;
  opacity: 1;
}

.nav-button.active::after {
  width: 4px;
  height: 4px;
  right: 8px;
  background: #8ed4fa;
  box-shadow: 0 0 5px rgba(105, 190, 239, .22);
}

/* Icon hierarchy follows the link state. */
.nav-icon,
.nav-inline-pokeball {
  color: #719bb6;
}

.nav-button:hover .nav-icon,
.nav-button:hover .nav-inline-pokeball {
  color: #9eccea;
}

.nav-button.active .nav-icon,
.nav-button.active .nav-inline-pokeball {
  color: #d9f1ff;
}

/* More separation before the footer link. */
.back-game {
  margin-top: 20px;
  border-top-color: #27495f;
}

/* Thinner, quieter scrollbar. */
.navigation-panel::-webkit-scrollbar {
  width: 6px;
}

.navigation-panel::-webkit-scrollbar-track {
  background: transparent;
}

.navigation-panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  background: #31546b;
  background-clip: padding-box;
}

.navigation-panel::-webkit-scrollbar-thumb:hover {
  background: #46718d;
  background-clip: padding-box;
}

/* Slightly more room for hierarchy without stealing from content. */
@media (min-width: 1241px) {
  .wiki-layout {
    grid-template-columns: 282px minmax(640px, 1fr) 300px;
  }
}

@media (max-width: 1240px) {
  .wiki-layout {
    grid-template-columns: 252px minmax(560px, 1fr) 275px;
  }
}

@media (max-width: 1040px) {
  .wiki-layout {
    grid-template-columns: 238px minmax(0, 1fr);
  }
}


/* =========================================================
   V12 — CLOSE BUTTON
   Removes copy-link and adds top-right window close control.
   ========================================================= */

.wiki-header {
  position: relative;
  padding-right: 58px;
}

.wiki-close-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 20;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #7894a7;
  cursor: pointer;
  transition:
    color 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.wiki-close-button .bi {
  font-size: 17px;
}

.wiki-close-button:hover {
  color: #e5f1f7;
  border-color: #315d78;
  background: #0b2232;
}

.wiki-close-button:active {
  background: #081a27;
  transform: translateY(1px);
}

/* Hidden state used by the standalone prototype. */
.wiki-window.is-closed {
  display: none;
}

.wiki-closed-placeholder {
  min-height: 100vh;
  display: none;
  place-items: center;
  position: relative;
  z-index: 2;
}

.wiki-closed-placeholder.is-visible {
  display: grid;
}

.wiki-reopen-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #356d96;
  border-radius: 4px;
  background: linear-gradient(180deg,#0b2232,#071722);
  color: #a9c3d2;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.wiki-reopen-button:hover {
  border-color: #4d8ab4;
  color: #eef7fb;
  background: #0e2a3e;
}


/* =========================================================
   V13 — ITEMS / STONES
   Uses the game's real Stone spritesheets.
   ========================================================= */

.items-section-intro {
  margin: 0;
  padding: 12px 13px;
  border-bottom: 1px solid #203d53;
  color: #92a9b8;
  font-size: 9.5px;
  line-height: 1.55;
}

.stones-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stone-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-right: 1px solid #203d53;
  border-bottom: 1px solid #203d53;
  background: transparent;
}

.stone-card:nth-child(4n) {
  border-right: 0;
}

.stone-card:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.stone-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stone-card strong {
  overflow: hidden;
  color: #dbe9f1;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stone-card > div > span {
  color: #7f99a9;
  font-size: 8px;
  line-height: 1.35;
}

.stone-card small {
  color: #d0aa51;
  font-size: 6.5px;
  line-height: 1.25;
  font-weight: 800;
}

.wiki-item-visual {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.42));
}

.wiki-item-visual > img,
.wiki-item-visual > .animated-item-visual,
.wiki-item-visual > .animated-item-visual .animated-item-fallback,
.wiki-item-visual > .animated-item-visual .animated-item-viewport {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.wiki-item-visual-large,
.wiki-item-visual-large > img,
.wiki-item-visual-large > .animated-item-visual,
.wiki-item-visual-large > .animated-item-visual .animated-item-fallback,
.wiki-item-visual-large > .animated-item-visual .animated-item-viewport {
  width: 64px;
  height: 64px;
}

.wiki-item-table > div {
  grid-template-columns: 44px 160px minmax(0, 1fr) auto;
}

.shiny-stone-section {
  border-color: #42627d;
}

.shiny-stone-feature {
  min-height: 122px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 8% 50%, rgba(92, 173, 221, .10), transparent 20%),
    linear-gradient(180deg, #0b2030, #07151f);
}

.shiny-stone-feature > div {
  display: grid;
  gap: 5px;
}

.shiny-item-kicker {
  color: #7dbfe7;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
}

.shiny-stone-feature strong {
  color: #eef7fb;
  font-size: 15px;
}

.shiny-stone-feature p {
  max-width: 700px;
  margin: 0;
  color: #94acba;
  font-size: 9.5px;
  line-height: 1.6;
}

.shiny-stone-feature p b {
  color: #dfeef5;
}

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

  .stone-card:nth-child(4n) {
    border-right: 1px solid #203d53;
  }

  .stone-card:nth-child(3n) {
    border-right: 0;
  }

  .stone-card:nth-last-child(-n + 4) {
    border-bottom: 1px solid #203d53;
  }

  .stone-card:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
}

@media (max-width: 760px), (max-width: 900px) and (max-height: 560px) {
  .stones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stone-card:nth-child(3n) {
    border-right: 1px solid #203d53;
  }

  .stone-card:nth-child(2n) {
    border-right: 0;
  }

  .shiny-stone-feature {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}


/* =========================================================
   V14 — POKEORIGINS LOGO
   Uses the user-supplied logo with its external black
   background removed. Replaces the red Poké Ball header mark.
   ========================================================= */

.brand-mark {
  overflow: hidden;
  padding: 2px;
}

.brand-logo-wrap {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.brand-logo-image {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.34));
}

/* Retire the previous Poké Ball header artwork. */
.brand-ring,
.pokeball-mark {
  display: none !important;
}

@media (max-width: 720px) {
  .brand-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .brand-logo-image {
    width: 44px;
    height: 44px;
  }
}


/* =========================================================
   V15 — HELD ITEMS DETAIL
   ========================================================= */

.held-tier-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.held-tier-grid article {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 10px 7px;
  border-right: 1px solid #203d53;
  background: linear-gradient(180deg,#0a1d2b,#07151f);
}

.held-tier-grid article:last-child {
  border-right: 0;
}

.held-tier-index {
  color: #7197ae;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
}

.held-tier-grid strong {
  color: #e7f2f7;
  font-size: 16px;
}

.held-tier-grid small {
  color: #7892a2;
  font-size: 7.5px;
}

.held-tier-grid article:nth-child(1) strong { color: #94a7b3; }
.held-tier-grid article:nth-child(2) strong { color: #66c887; }
.held-tier-grid article:nth-child(3) strong { color: #66aef0; }
.held-tier-grid article:nth-child(4) strong { color: #8d86ef; }
.held-tier-grid article:nth-child(5) strong { color: #b77be6; }
.held-tier-grid article:nth-child(6) strong { color: #e0a84d; }
.held-tier-grid article:nth-child(7) strong { color: #f0c54f; }

.held-spin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
}

.held-spin-ticket {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid #203d53;
  background:
    radial-gradient(circle at 25% 50%, rgba(81,165,218,.11), transparent 35%),
    #081822;
}

.held-spin-ticket > .bi {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #0a2234;
  color: #78c3ef;
  font-size: 20px;
}

.held-spin-ticket > div {
  display: grid;
  gap: 4px;
}

.held-spin-ticket span {
  color: #6e91a6;
  font-size: 7px;
  font-weight: 800;
}

.held-spin-ticket strong {
  color: #e6f0f5;
  font-size: 13px;
}

.held-spin-ticket small {
  color: #7893a4;
  font-size: 8px;
}

.held-spin-chances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.held-spin-chances > div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 11px;
  border-right: 1px solid #203d53;
  border-bottom: 1px solid #203d53;
  background: #091a27;
}

.held-spin-chances > div:nth-child(4n) {
  border-right: 0;
}

.held-spin-chances > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.held-spin-chances span {
  color: #6d8b9d;
  font-size: 7px;
  font-weight: 800;
}

.held-spin-chances strong {
  color: #dce8ef;
  font-size: 13px;
}

.held-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.held-family-grid > span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid #203d53;
  border-bottom: 1px solid #203d53;
  color: #9ab0bd;
  font-size: 9px;
  background: #081822;
}

.held-family-grid > span:nth-child(3n) {
  border-right: 0;
}

.held-family-grid > span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.held-family-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
}

.held-family-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.held-family-name {
  min-width: 0;
}

@media (max-width: 1100px) {
  .held-tier-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .held-tier-grid article:nth-child(4n) {
    border-right: 0;
  }

  .held-tier-grid article:nth-child(n + 5) {
    border-top: 1px solid #203d53;
  }

  .held-spin-layout {
    grid-template-columns: 1fr;
  }

  .held-spin-ticket {
    border-right: 0;
    border-bottom: 1px solid #203d53;
  }
}

@media (max-width: 760px) {
  .held-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .held-spin-chances,
  .held-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .held-family-grid > span:nth-child(3n) {
    border-right: 1px solid #203d53;
  }

  .held-family-grid > span:nth-child(2n) {
    border-right: 0;
  }
}


/* =========================================================
   V16 — MASTERIES DETAIL
   ========================================================= */

.mastery-school-grid.detailed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mastery-school-grid.detailed article {
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  padding: 10px 12px;
  border-right: 1px solid #203d53;
  border-bottom: 1px solid #203d53;
  background: #081822;
}

.mastery-school-grid.detailed article:nth-child(3n) {
  border-right: 0;
}

.mastery-school-grid.detailed article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.mastery-school-grid.detailed article > .bi {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #0a2234;
  color: #75c0ec;
  font-size: 16px;
}

.mastery-school-grid.detailed strong {
  align-self: end;
  color: #dbe9f1;
  font-size: 10px;
}

.mastery-school-grid.detailed span {
  align-self: start;
  margin-top: 3px;
  color: #738fa1;
  font-size: 7.5px;
}

.mastery-rank-table {
  overflow-x: auto;
}

.mastery-rank-table > div {
  min-width: 760px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 90px 110px 90px 80px 80px 120px 80px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid #203d53;
  background: #081822;
}

.mastery-rank-table > div:last-child {
  border-bottom: 0;
}

.mastery-rank-head {
  min-height: 35px !important;
  background: #0c2232 !important;
}

.mastery-rank-head span {
  color: #65869a !important;
  font-size: 7px !important;
  font-weight: 800;
  letter-spacing: .04em;
}

.mastery-rank-table strong {
  color: #d9e7ef;
  font-size: 9px;
}

.mastery-rank-table span {
  color: #8fa6b5;
  font-size: 8.5px;
}

.mastery-rank-table b {
  color: #75c9eb;
  font-size: 9px;
}

.mastery-rank-table > div:nth-child(3) b { color: #86c88e; }
.mastery-rank-table > div:nth-child(4) b { color: #78afe8; }
.mastery-rank-table > div:nth-child(5) b { color: #9a8ee8; }
.mastery-rank-table > div:nth-child(6) b { color: #bd84e4; }
.mastery-rank-table > div:nth-child(7) b { color: #efc654; }

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

.mastery-objectives article {
  min-height: 88px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-right: 1px solid #203d53;
  border-bottom: 1px solid #203d53;
  background: #081822;
}

.mastery-objectives article:nth-child(2n) {
  border-right: 0;
}

.mastery-objectives article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mastery-objectives article > .bi {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #356b91;
  border-radius: 4px;
  background: #0a2234;
  color: #77c3ef;
  font-size: 17px;
}

.mastery-objectives strong {
  color: #dce8ef;
  font-size: 10px;
}

.mastery-objectives p {
  margin: 4px 0 0;
  color: #839dab;
  font-size: 8.5px;
  line-height: 1.45;
}

.mastery-bonus-card {
  border-color: #365c78;
}

.mastery-bonus-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 12px 10px;
  overflow-x: auto;
}

.mastery-bonus-flow > div {
  min-width: 82px;
  min-height: 60px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid #31516a;
  border-radius: 4px;
  background: #071822;
}

.mastery-bonus-flow > div span {
  color: #6e8da0;
  font-size: 7px;
  font-weight: 800;
}

.mastery-bonus-flow > div strong {
  color: #dbeaf2;
  font-size: 14px;
}

.mastery-bonus-flow > div:last-of-type {
  border-color: #6e6c35;
  background:
    radial-gradient(circle at 50% 35%, rgba(224,183,70,.09), transparent 60%),
    #091922;
}

.mastery-bonus-flow > div:last-of-type strong {
  color: #efc654;
}

.mastery-bonus-flow > .bi {
  color: #4b7895;
  font-size: 12px;
}

.mastery-bonus-note {
  margin: 0;
  padding: 0 14px 14px;
  color: #8ba3b2;
  font-size: 8.5px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 900px) {
  .mastery-school-grid.detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mastery-school-grid.detailed article:nth-child(3n) {
    border-right: 1px solid #203d53;
  }

  .mastery-school-grid.detailed article:nth-child(2n) {
    border-right: 0;
  }

  .mastery-objectives {
    grid-template-columns: 1fr;
  }

  .mastery-objectives article {
    border-right: 0;
  }

  .mastery-objectives article:nth-last-child(-n + 2) {
    border-bottom: 1px solid #203d53;
  }

  .mastery-objectives article:last-child {
    border-bottom: 0;
  }
}

/* Integração PokeOrigins: o stylesheet original permanece isolado nesta janela. */
:scope {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background: rgba(2, 8, 15, .67);
  backdrop-filter: blur(2px);
}

:scope.hidden {
  display: none;
}

.game-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  background: transparent;
}

.wiki-window {
  max-height: calc(100vh - 24px);
  min-height: min(690px, calc(100vh - 24px));
}

.back-game {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
}

.back-game:hover {
  color: #d9edf9;
  background: #0c2232;
}

.bi {
  font-family: inherit !important;
  font-style: normal;
  line-height: 1;
}

.bi::before {
  content: "";
  width: 1em;
  height: 1em;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--wiki-bi-icon) center / contain no-repeat;
  mask: var(--wiki-bi-icon) center / contain no-repeat;
}

.header-search > .bi {
  display: grid;
  place-items: center;
  color: #6faadb;
  font-size: 14px;
}

.header-search input[type="search"] {
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
}

.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-decoration {
  display: none;
}

.wiki-loading,
.wiki-load-error {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid #31516a;
  border-radius: 4px;
  background: #07151f;
  color: #91a9bb;
  font-size: 11px;
  text-align: center;
}

.wiki-load-error {
  color: #e5a5a5;
  border-color: #75434b;
}

.wiki-mobile-navigation-toggle {
  display: none;
}

@media (max-width: 760px), (max-width: 900px) and (max-height: 560px) {
  :scope {
    padding:
      max(6px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }

  .game-shell {
    width: 100%;
    height: 100%;
    padding: 0;
    place-items: stretch;
  }

  .wiki-window {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .wiki-header {
    min-height: 124px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 56px 10px 10px;
  }

  .wiki-header .brand-mark {
    width: 44px;
    height: 44px;
  }

  .wiki-header .header-copy {
    min-width: 0;
  }

  .wiki-header .header-copy h1 {
    font-size: 20px;
  }

  .wiki-mobile-navigation-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid #356d96;
    border-radius: 4px;
    background: #0a2232;
    color: #b9d7e8;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
  }

  .wiki-mobile-menu-glyph {
    position: relative;
    width: 18px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .wiki-mobile-menu-glyph::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    border-top: 2px solid currentColor;
  }

  .wiki-mobile-navigation-toggle span {
    display: none;
  }

  .wiki-close-button {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 8px;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    margin: 0;
  }

  .wiki-layout {
    height: auto;
    min-height: 0;
    display: block;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .navigation-panel {
    position: sticky;
    z-index: 30;
    top: 0;
    display: none;
    width: min(310px, 88vw);
    height: 100%;
    min-height: calc(100dvh - 138px);
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    border-right: 1px solid #356b91;
    box-shadow: 18px 0 36px rgba(0, 0, 0, .55);
  }

  :scope.mobile-navigation-open .navigation-panel {
    display: block;
  }

  :scope.mobile-navigation-open .content-panel,
  :scope.mobile-navigation-open .detail-panel {
    display: none;
  }

  .navigation-panel .nav-button,
  .navigation-panel .back-game,
  .toc button,
  .related button {
    min-height: 44px;
  }

  .content-panel {
    min-height: calc(100dvh - 138px);
    display: flex;
    padding: 12px 10px 18px;
    overflow: visible;
    border-right: 0;
  }

  .page-title-row {
    min-height: 74px;
  }

  .page-content {
    overflow: visible;
  }

  .detail-panel {
    display: block;
    max-height: none;
    padding: 16px 12px max(22px, env(safe-area-inset-bottom));
    overflow: visible;
    border-top: 1px solid #1f4058;
  }
}

@media (max-width: 480px) {
  .wiki-header {
    min-height: 118px;
  }

  .wiki-header .header-eyebrow,
  .header-search kbd {
    display: none;
  }

  .header-search {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .category-grid,
  .system-cards,
  .types-grid {
    grid-template-columns: 1fr;
  }
}
}
