*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#101827;color:#f2f5fb;font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.header{position:sticky;top:0;z-index:10;min-height:60px;padding:10px max(14px,env(safe-area-inset-left));background:#172233;border-bottom:1px solid #334255;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:9px;font-size:16px;white-space:nowrap}.brand-logo{width:31px;height:31px;background:#cf3340;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:850}.mode-toggle{display:flex;gap:3px;background:#0b1524;padding:4px;border-radius:11px;border:1px solid #35485c}.mode-toggle button{border:0;border-radius:8px;color:#c4cedb;background:transparent;padding:9px 15px;font-weight:750;font-size:13px;cursor:pointer}.mode-toggle button.chosen{background:#db4551;color:#fff}.search-area{position:sticky;top:60px;z-index:9;background:#101827;padding:10px 14px 8px;border-bottom:1px solid #2c3b4e}.search-frame{display:flex;align-items:center;gap:9px;background:#222f41;border:1px solid #495a70;border-radius:12px;padding:0 12px;max-width:740px;height:48px;margin:auto}.search-frame:focus-within{border-color:#ff858b}.search-frame>span{font-size:28px;color:#b6c3d1}.search-frame input{background:transparent;color:#fff;font:inherit;outline:0;border:0;min-width:0;flex:1}.search-frame input::placeholder{color:#acb8c9}.search-frame button{font-size:24px;color:#d5dce7;border:0;background:transparent;cursor:pointer}main{padding:12px 15px 70px;max-width:760px;margin:auto}.breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-height:12px}.back{background:#27364a;border:1px solid #51647b;color:#eff5fa;padding:10px 15px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}.context{margin:14px 0 16px;text-align:center}.context .eyebrow{font-size:11px;color:#f3a1a5;text-transform:uppercase;font-weight:850;letter-spacing:1.4px}.context h1{margin:5px 0;font-size:clamp(22px,5vw,31px);line-height:1.25}.context p{font-size:13px;color:#a9bacc;margin:6px 0}.view{max-width:660px;margin:auto}.stack{display:flex;flex-direction:column;gap:10px;align-items:stretch}.entry{display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;color:#f6f7fb;background:#223249;border:1px solid #415874;border-radius:13px;min-height:64px;padding:14px 15px;font:inherit;box-shadow:0 3px 7px #0002;width:100%;transition:background .15s}.entry:hover,.entry:focus-visible{background:#314762;outline:1px solid #8fa8c3}.entry .num{color:#f28a90;font-size:13px;font-weight:850;min-width:46px}.entry .label{flex:1;font-weight:700}.entry .chevron{font-size:23px;color:#97acc3}.entry small{font-size:12px;color:#b2c4d7;display:block}.chapter.entry{min-height:74px}.chapter .num{font-size:17px}.group-head{margin:25px 0 10px;padding:10px 12px;background:#2c3a4e;border-left:5px solid #db4551;font-size:17px;font-weight:850;border-radius:4px}.group-head:first-child{margin-top:0}.group-head.speed{border-color:#e8434c}.group-head.attack{border-color:#f7b52c}.group-head.defense{border-color:#3ea7e6}.group-head.damage{border-color:#44bc78}.power.entry{min-height:70px}.power-image{width:49px;height:49px;object-fit:contain;flex:0 0 49px;border-radius:50%;background:#fff}.power-text{flex:1;min-width:0;font-weight:800}.power .category{display:block;font-size:11px;color:#afc1d5;font-weight:600}.rule-paper{background:#f8fafc;color:#111923;border-radius:13px;padding:22px 19px;white-space:normal;box-shadow:0 8px 28px #0005;font-size:16px;line-height:1.68}.verbatim{white-space:pre-wrap;overflow-wrap:anywhere}.verbatim a{color:#125ab0;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;font-weight:650}.verbatim a:hover{color:#a52338}.inline-graphic{display:inline-block;vertical-align:middle;object-fit:contain;max-height:52px;max-width:85px;margin:0 3px}.symbol-inline{display:inline-block;vertical-align:middle;object-fit:contain;width:25px;height:25px;background:#32465d;border-radius:4px;margin:0 3px;padding:2px}.rule-tools{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.small-action{background:#25384d;color:white;border:1px solid #58718b;padding:8px 11px;border-radius:8px;cursor:pointer;font-size:12px}.rule-paper .crosslink{cursor:pointer}.pac-article{margin-bottom:12px}.pac-article .rule-paper{padding:22px 18px}.pac-title{display:flex;align-items:center;gap:12px;margin:0 0 13px}.pac-title img{width:58px;height:58px;object-fit:contain;background:white;border-radius:50%}.pac-title h2{margin:0;font-size:22px}.note{font-size:13px;color:#b7c8d9;line-height:1.5;margin:10px 0 16px}.reference{margin-top:16px}.reference .entry{margin:8px 0}.terrain-swatch{width:34px;height:18px;flex:none;border-radius:3px;border:1px solid #fff6}.symbol-strip{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:9px 0 12px}.symbol-strip img{width:45px;height:45px;object-fit:contain;background:#364c63;border-radius:9px;padding:7px}.empty{padding:25px;text-align:center;color:#b3c0d1}.search-result{border-left:3px solid #e16c74}.source-label{color:#76899f;font-size:12px}.footer{color:#99a9bc;text-align:center;font-size:12px;margin:24px 0}.panel-accordion{border:1px solid #4d6278;background:#233449;border-radius:12px;overflow:hidden;margin-bottom:9px}.panel-accordion summary{cursor:pointer;padding:16px 18px;font-weight:750}.panel-accordion[open] summary{border-bottom:1px solid #52667c}.panel-accordion .rule-paper{border-radius:0}.search-result .num{min-width:40px}@media(min-width:800px){.header{padding-left:28px;padding-right:28px}main{padding-top:24px}.entry{min-height:72px}.rule-paper{padding:30px 32px}}
/* v2: Symbol-first, readable on mobile, with no tiny cropped PAC artwork. */
.power-symbol{--power-color:#777;flex:0 0 52px;width:52px;height:52px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--power-color);border:3px solid rgba(255,255,255,.88);box-shadow:0 2px 6px #0006,inset 0 0 0 2px #0003}
.power-symbol img{width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 1px 1px #0009)}
.pac-title .power-symbol{flex-basis:66px;width:66px;height:66px}
.pac-title .power-symbol img{width:42px;height:42px}
.inline-graphic{width:auto;height:1.55em;max-width:2.8em;max-height:none;object-fit:contain;vertical-align:-.33em;margin:0 .11em;background:white;border-radius:0}
.section-intro,.chapter-intro{margin:0 0 15px}
.group-head{margin-top:18px}
@media(max-width:450px){.entry{min-height:60px;padding:12px}.power-symbol{width:48px;height:48px;flex-basis:48px}.power-symbol img{width:30px;height:30px}.power.entry{min-height:66px}.rule-paper{font-size:16px;padding:17px 15px}}

/* Desktop: dedicated, scrollable rule tree beside reading pane. */
.desktop-sidebar{display:none}
@media(min-width:1050px){
 .desktop-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);max-width:1500px;margin:0 auto;gap:24px;padding:24px 28px 70px;align-items:start}
 .desktop-sidebar{display:block;position:sticky;top:145px;max-height:calc(100vh - 165px);overflow:auto;overscroll-behavior:contain;background:#19273a;border:1px solid #3a526e;border-radius:15px;padding:14px;scrollbar-color:#506784 transparent}
 .sidebar-title{position:sticky;top:-14px;background:#19273a;padding:4px 9px 13px;font-size:16px;font-weight:850;border-bottom:1px solid #364960;margin-bottom:10px}
 .sidebar-item{display:flex;align-items:center;gap:9px;text-align:left;width:100%;color:#d6e0eb;background:transparent;border:0;border-radius:8px;cursor:pointer;font:600 13px/1.35 system-ui,sans-serif;padding:11px 10px;overflow-wrap:anywhere}
 .sidebar-item:hover,.sidebar-item:focus-visible{background:#30445d;color:white;outline:none}
 .sidebar-item.active{background:#3c4d66;color:#fff;box-shadow:inset 3px 0 #ee5967}
 .sidebar-item.depth-1{padding-left:22px;font-weight:550}
 .sidebar-item.depth-2{padding-left:35px;font-weight:450;font-size:12px}
 .sidebar-group{color:#a5b9ce;font-size:11px;font-weight:850;letter-spacing:1px;padding:20px 10px 6px}
 .sidebar-dot{display:inline-block;width:10px;height:10px;border:1px solid #fff5;border-radius:50%;flex:none}
 main{min-width:0;margin:0;padding:0;max-width:none}
 .view{max-width:900px;margin:0 auto}
 .context{text-align:left;max-width:900px;margin:9px auto 20px}
 .breadcrumbs{max-width:900px;margin:auto}
 .rule-paper{padding:30px 35px;font-size:17px;line-height:1.75}
 .stack{max-width:840px;margin:auto;gap:10px}
 .header{padding-left:max(28px,calc((100vw - 1440px)/2));padding-right:max(28px,calc((100vw - 1440px)/2))}
 .search-frame{max-width:850px}
 .entry{min-height:60px}
 .group-head{margin-top:24px}
}
@media(min-width:1400px){.desktop-layout{grid-template-columns:360px minmax(0,1fr);gap:34px}}
@media(max-width:360px){.brand{font-size:13px}.mode-toggle button{padding:8px 10px}.entry .num{min-width:36px}}

/* November update: quieter dark reading panels and continuous inline PDF glyphs. */
.rule-paper{background:#233246;color:#e8f0f9;border:1px solid #40536c;box-shadow:0 5px 19px #050a1480}
.rule-paper .verbatim{white-space:pre-wrap;line-height:1.7}
.rule-paper a{color:#82c9ff;text-decoration-color:#82c9ff}
.rule-paper a:hover{color:#ffb7bd}
.inline-graphic{display:inline;vertical-align:-.19em;height:1.1em;max-width:2.2em;max-height:1.25em;width:auto;margin:0 .09em;background:transparent;object-fit:contain;white-space:normal}
.pac-side-switch{display:flex;gap:3px;margin:10px auto 16px;width:min(100%,420px);border-radius:15px;border:1px solid #526780;background:#182537;padding:5px}
.pac-side-switch[hidden]{display:none}
.pac-side-switch button{flex:1;min-height:43px;border:0;border-radius:11px;background:transparent;color:#b5c7dd;font-weight:800;font-size:15px;cursor:pointer}
.pac-side-switch button.active{background:#df4b59;color:white;box-shadow:0 2px 6px #0005}
@media(min-width:1050px){.pac-side-switch{margin:0 0 16px;max-width:420px}}

/* Source-derived scalable symbol font; glyphs participate in the text line box. */
.rule-paper .verbatim{white-space:normal;overflow-wrap:normal;line-height:1.72}
.rule-bullets{padding-left:1.5em;margin:.7em 0 0;list-style:square}
.rule-bullets li{padding-left:.2em;margin:.55em 0}
.inherent-entry{margin-bottom:12px;padding:18px 20px}
.inherent-entry h2{font-size:1.04rem;color:#f7abb0;margin:0 0 7px}
.terrain-accordions{display:flex;flex-direction:column;gap:9px}
.terrain-detail{border:1px solid #435a74;border-radius:12px;background:#223248;overflow:hidden}
.terrain-summary{display:flex;align-items:center;gap:13px;list-style:none;cursor:pointer;padding:15px 17px;font-weight:700}
.terrain-summary::-webkit-details-marker{display:none}
.terrain-summary>span:nth-child(2){flex:1}
.terrain-chevron{color:#a3bed6;transition:transform .15s}
.terrain-detail[open] .terrain-chevron{transform:rotate(180deg)}
.terrain-content{border-top:1px solid #42546b;padding:12px 18px 18px;background:#233246}
.terrain-rule{margin-bottom:16px}
.terrain-rule h3{font-size:14px;color:#f3a1a5;margin:10px 0 7px}
.terrain-rule .verbatim{font-size:15px;line-height:1.65}

/* PAC front opens closed, like the four columns on the physical card. */
.power-group{background:#1b293b;border:1px solid #415771;border-radius:13px;margin:0 0 12px;overflow:hidden}
.power-group-heading{list-style:none;display:flex;align-items:center;gap:12px;padding:17px 18px;font-weight:850;letter-spacing:.6px;cursor:pointer;border-left:5px solid #e84b59}
.power-group-heading::-webkit-details-marker{display:none}
.power-group-heading.attack{border-color:#f0b632}.power-group-heading.defense{border-color:#52a7e1}.power-group-heading.damage{border-color:#51bb82}
.group-count{margin-left:auto;color:#aebed0;font-size:13px;font-weight:500}
.group-arrow{font-size:22px;color:#aebed0;transition:transform .15s}
.power-group[open] .group-arrow{transform:rotate(180deg)}
.power-group-stack{padding:0 11px 12px}
.power-group-stack .entry{box-shadow:none}
.improved-row{display:flex;gap:14px;align-items:flex-start;padding:14px;background:#24344a;border:1px solid #455c75;border-radius:13px;margin:0 0 12px}
.improved-icon{width:54px;height:54px;object-fit:contain;flex:0 0 54px;background:#eee;border-radius:50%;padding:3px}
.improved-pair{display:grid;grid-template-columns:1fr 1fr;flex:1;min-width:0;gap:12px}
.improved-cell{min-width:0;padding:7px 9px 9px}
.improved-cell h2{font-size:15px;color:#f3c5c8;line-height:1.35;margin:0 0 8px}
.improved-cell .verbatim{font-size:15px;line-height:1.62}
.improved-na{color:#91a5bb}
@media(max-width:620px){.improved-row{gap:8px;padding:10px}.improved-icon{width:42px;height:42px;flex-basis:42px}.improved-pair{grid-template-columns:1fr;gap:8px}.improved-cell{padding:4px 6px;border-bottom:1px solid #40546d}.improved-cell:last-child{border-bottom:0}}

.sidebar-power-fold{border-bottom:1px solid #35495e;padding:3px 0}
.sidebar-power-heading{list-style:none;cursor:pointer;padding:12px 13px;color:#cdd9e6;font-weight:800;font-size:13px}
.sidebar-power-heading::-webkit-details-marker{display:none}
.sidebar-power-heading::after{content:'⌄';float:right;color:#94a9bc}
.sidebar-power-fold[open] .sidebar-power-heading::after{content:'⌃'}

/* PAC mobile and desktop navigation refinements */
.pac-side-switch{width:max-content;min-width:148px;max-width:190px;padding:3px;margin:6px auto 13px;border-radius:10px;align-self:center}
.pac-side-switch button{min-height:32px;padding:5px 15px;font-size:13px;border-radius:7px}
@media(min-width:1050px){.pac-side-switch{margin:6px 0 13px;max-width:190px}}
.pac-title .power-symbol{width:60px;height:60px;flex:0 0 60px}
.power-symbol{position:relative;overflow:hidden;isolation:isolate}
.power-symbol:before{content:'';position:absolute;inset:2px;border-radius:50%;border:2px solid #0006;box-shadow:inset 0 3px 5px #fff8,inset 0 -4px 4px #0005}
.power-x{position:relative;z-index:1;font-size:24px;font-weight:950;color:#131313;text-shadow:0 1px 1px #fff3;line-height:1}
.pac-title .power-x{font-size:30px}
.keyphrase-entry{margin-bottom:12px}
.keyphrase-heading{display:flex;align-items:center;gap:12px;margin-bottom:7px}
.keyphrase-heading h2{margin:0;font-size:18px}
.keyphrase-icon{width:38px;height:38px;object-fit:contain;flex:none}
@media(max-width:620px){.keyphrase-entry{padding:15px}.keyphrase-icon{width:32px;height:32px}}

.keyphrase-inline{display:inline-block;vertical-align:-.23em;height:1.35em;width:auto;max-width:50%;object-fit:contain;margin:0 .12em}
.keyphrase-heading .keyphrase-icon{height:39px;width:auto;max-width:58px}

/* The symbols are transparent, resolution-independent relative to the reading font. */
img.rule-glyph{display:inline-block!important;font-family:inherit!important;vertical-align:-.17em;height:1.24em;width:auto;max-width:1.65em;margin:0 .085em;object-fit:contain;line-height:normal!important;white-space:normal}

/* PAC visual corrections (Nov 5): align navigation to reading column. */
.pac-side-switch{margin:7px auto 10px;max-width:none;min-width:0;width:max-content;gap:3px;justify-content:flex-start}
.pac-side-switch button{flex:0 0 auto;padding:5px 15px;min-width:73px}
@media(min-width:1050px){.pac-side-switch{margin:7px auto 10px;width:900px;max-width:100%;justify-content:flex-start}}
@media(max-width:1049px){.pac-side-switch{margin-left:0;margin-right:0}}
/* Navigation appears directly below PAC side switch on detail screens. */
.breadcrumbs:empty{display:none}
/* Distinct readable category glyphs, rather than generic X discs. */
.power-symbol{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:var(--power-color);box-shadow:0 2px 7px #0008,inset 0 -3px 6px #0007}
.power-symbol:before{pointer-events:none}
.power-symbol .power-category-icon{position:relative;z-index:2;display:block;width:31px;height:31px;object-fit:contain;filter:drop-shadow(0 1px 2px #000b)}
.pac-title .power-symbol .power-category-icon{width:38px;height:38px}
/* Keyphrase icons are black source artwork; reverse to high-contrast white. */
.keyphrase-icon,.keyphrase-inline{filter:brightness(0) invert(1);background:transparent!important}
.keyphrase-heading .keyphrase-icon{min-height:43px;max-height:66px;max-width:92px;width:auto;height:auto;object-fit:contain}
.keyphrase-heading{align-items:center;min-height:44px}
.keyphrase-inline{height:1.55em;max-width:65%;vertical-align:-.28em}
@media(max-width:620px){.keyphrase-heading .keyphrase-icon{min-height:36px;max-height:54px;max-width:78px}.power-symbol .power-category-icon{width:29px;height:29px}}

/* PAC icons are source-derived vector contours; no opaque PNG backgrounds or filter. */
.pac-vector-heading,.pac-vector-inline{display:inline-block;vertical-align:-.14em;color:#dce7f4;filter:none!important;background:none!important;overflow:visible;flex:none}
.pac-vector-heading{height:46px;width:55px;align-self:center}
.pac-vector-inline{height:1.48em;width:auto;max-width:6.7em;vertical-align:-.3em;margin:0 .12em;color:#dce7f4}
.keyphrase-heading{align-items:center;gap:14px}
@media(max-width:620px){.pac-vector-heading{height:41px;width:48px}}
/* Small Front/Back switch aligned with the PAC content column. */
.pac-side-switch,.pac-side-switch:not([hidden]){display:flex;flex:none;align-self:auto;justify-content:flex-start;box-sizing:border-box;gap:3px;width:174px!important;min-width:0!important;max-width:174px!important;padding:3px!important;margin:7px 0 12px max(0px,calc((100% - 660px)/2))!important;border-radius:10px}
.pac-side-switch[hidden]{display:none!important}
.pac-side-switch button{flex:1 1 0!important;min-width:0!important;padding:5px 12px;min-height:34px}
@media(min-width:1050px){.pac-side-switch,.pac-side-switch:not([hidden]){margin-left:max(0px,calc((100% - 900px)/2))!important}}

/* November 5: standalone supplied icons, no contour tracing or PNG inversion. */
.pac-icon-sequence{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px;max-width:100%;vertical-align:-.38em;margin:0 .12em;line-height:1}
.pac-source-inline{display:inline-block;object-fit:contain;width:34px;height:34px;flex:0 0 34px;background:transparent;border:0;filter:none!important}
.pac-source-heading{display:block;object-fit:contain;width:48px;height:48px;flex:0 0 48px;filter:none!important;background:transparent}
.keyphrase-heading{align-items:center;min-height:53px}
.keyphrase-entry .verbatim{line-height:1.9;overflow-wrap:break-word}
.improved-row .improved-icon{background:transparent;padding:0;border:0;object-fit:contain}
@media(max-width:620px){.pac-source-inline{width:32px;height:32px;flex-basis:32px}.pac-source-heading{width:43px;height:43px;flex-basis:43px}.pac-icon-sequence{gap:2px}}

.pac-passenger-single{display:inline-block;width:26px;height:34px;vertical-align:-.36em;margin:0 .13em;fill:currentColor;color:#eef4fa}
/* Supplied standalone combat symbols inside color-coded power markers. */
.power-symbol .power-category-icon,.pac-title .power-symbol .power-category-icon{filter:drop-shadow(0 1px 1px #0009);background:transparent;border:0;object-fit:contain}
