/* TanaWorld: same dark editorial identity as the accepted global entrance. */
body.pw-theme{--ink:#eee9dc;--muted:#b3bfaa;--paper:#131d17;--green:#a8cfb8;--tu-blue:#a8cfb8;--tu-cream:#131d17;--tu-ink:#eee9dc;--tu-muted:#b3bfaa;--tu-line:#3a4a3c;--tu-paper:#1b291f;--tu-soft:#273a2b;margin:0;background:#131d17!important;color:#eee9dc!important;font:15px/1.6 'DM Sans',Arial,sans-serif!important;-webkit-font-smoothing:antialiased}body.pw-theme *{box-sizing:border-box}body.pw-theme a{color:#a8cfb8;text-decoration:none}body.pw-theme button,body.pw-theme input,body.pw-theme select{font-family:'DM Sans',Arial,sans-serif!important}body.pw-theme :is(a,button,input,select,summary,[tabindex]):focus-visible{outline:2px solid #b8d6ad!important;outline-offset:4px}body.pw-theme :is(h1,h2,h3,h4){font-family:Georgia,'Times New Roman',serif!important;font-weight:400!important;letter-spacing:-.035em!important;color:#eee9dc!important}body.pw-theme :is(h1,h2) em{color:#b6d0a9!important;font-style:italic!important;font-family:inherit!important;font-weight:400!important}body.pw-theme button{cursor:pointer}body.pw-theme button:disabled{cursor:not-allowed}body.pw-theme [hidden]{display:none!important}.pw-skip{position:absolute;left:18px;top:-90px;z-index:100;padding:14px;background:#c1dab8;color:#142119!important}.pw-skip:focus{top:10px}.pw-header{max-width:1500px;margin:auto;min-height:100px;padding:20px 5%;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #bdcfaa25}.pw-brand{display:flex;align-items:center;gap:14px;color:#eee9dc!important;text-decoration:none!important;font:400 27px/1 Georgia,serif!important;letter-spacing:-.045em}.pw-brand>img{flex:none;width:38px;height:38px;object-fit:contain}.pw-brand>span>span{color:#a8cfb8}.pw-brand small{display:block;font:400 7px/1.5 'DM Sans',sans-serif;letter-spacing:.18em;color:#b3bfaa;margin-top:8px}.pw-header-actions{display:flex;gap:30px;align-items:center}.pw-switch{display:flex;align-items:center;gap:12px;min-height:44px;font-size:11px;color:#c0cbb4!important}.pw-switch svg{width:18px;height:18px}.pw-menu-open{display:flex;align-items:center;gap:23px;min-height:46px;padding:11px 16px;background:none!important;border:1px solid #98b28870!important;color:#eee9dc!important;font-size:12px;border-radius:0!important}.pw-menu-open svg{width:18px;height:18px}.pw-menu-open:hover{background:#26372a!important}.pw-preview-note{max-width:1400px;margin:auto;padding:10px 5%;font-size:8px;letter-spacing:.11em;color:#a2b196;border-bottom:1px solid #a5b69b18}.pw-kicker{font-size:9px;line-height:1.7;letter-spacing:.18em;color:#b7c8a7}.pw-footer{max-width:1400px;margin:0 auto;background:none!important;border-top:1px solid #98b28840;padding:32px 5%!important;display:flex;align-items:center;justify-content:space-between;gap:25px;color:#b3bfaa!important}.pw-footer>.pw-brand{font-size:23px!important}.pw-footer>.pw-brand>img{width:29px;height:29px}.pw-footer>p{font:italic 15px Georgia,serif;color:#c0cbb4;margin:0}.pw-footer>div{display:flex;gap:20px;font-size:10px}.pw-footer button{min-height:44px;padding:9px 12px;border:1px solid #98b28870;background:none;color:#b3bfaa;font-size:10px}.pw-menu{width:min(960px,calc(100vw - 40px));max-width:none;max-height:88dvh;overflow:auto;padding:32px 40px;border:1px solid #7a99705c!important;background:#152219!important;color:#eee9dc!important;box-shadow:0 20px 100px #0007!important;border-radius:2px!important}.pw-menu::backdrop{background:#07100ced!important;backdrop-filter:none!important}.pw-menu-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.pw-menu-top>.pw-kicker{margin:0}.pw-menu-top>button{width:44px;height:44px;border:1px solid #98b28870;background:none!important;color:#eee9dc!important;border-radius:50%!important;display:grid;place-items:center;padding:0}.pw-menu-top>button>svg{width:22px;height:22px}.pw-menu>h2{font-size:43px!important;line-height:1.05!important;margin:28px 0 30px}.pw-menu nav{display:grid;grid-template-columns:1fr 1fr;gap:0 35px}.pw-menu nav>a{display:grid;grid-template-columns:22px 1fr 20px;gap:15px;align-items:center;border-top:1px solid #98b28840;padding:20px 0;color:#eee9dc!important}.pw-menu nav>a[aria-current]{color:#b6d0a9!important}.pw-menu-number{font:9px 'DM Sans',sans-serif;color:#94ae85}.pw-menu nav strong{display:block;font:400 25px Georgia,serif;letter-spacing:-.025em}.pw-menu nav small{display:block;font:11px/1.6 'DM Sans',sans-serif;color:#adbea1;margin-top:8px}.pw-menu nav>a:hover strong{text-decoration:underline;text-underline-offset:6px}.pw-menu-back{display:inline-flex;font-size:11px;min-height:44px;align-items:center;margin-top:25px}body.pw-theme:has(dialog[open]){overflow:hidden}
/* Hub: one immersive world, followed by an editorial index of working tools. */
.pw-hub-hero{position:relative;isolation:isolate;min-height:520px;padding:65px 7% 55px;overflow:hidden;display:flex;align-items:center}.pw-hub-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:55% center;z-index:-3}.pw-hub-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#101b14ed,#101b1480 50%,#101b1420),linear-gradient(0deg,#131d17,transparent 50%);z-index:-2}.pw-hub-hero h1{font-size:clamp(66px,7.5vw,112px);line-height:.95;letter-spacing:-.05em!important;margin:25px 0}.pw-hub-hero>div>p:not(.pw-kicker){font-size:14px;line-height:1.8;color:#d2dbc6}.pw-primary-link{display:inline-flex;align-items:center;gap:35px;min-height:48px;border-bottom:1px solid #b8cfaa90;margin-top:12px;color:#e8eedc!important;font-size:13px}.pw-primary-link>span{font-size:22px;transition:transform .4s}.pw-primary-link:hover>span{transform:translate(4px,-4px)}.pw-hero-caption{position:absolute;bottom:35px;right:5%;font-size:8px;letter-spacing:.18em;color:#b7c8a7}.pw-tool-section{max-width:1320px;margin:auto;padding:65px 5%}.pw-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:35px}.pw-section-title h2{font-size:56px;line-height:1.05;margin:0}.pw-section-title>p{font-size:13px;line-height:1.8;color:#b3bfaa}.pw-tool-list{display:grid;grid-template-columns:1fr 1fr;gap:0 50px}.pw-tool-row{display:grid;grid-template-columns:23px 1fr 24px;gap:18px;align-items:center;padding:28px 0;border-top:1px solid #a7bc9940;color:#eee9dc!important;min-width:0}.pw-tool-row>span:first-child{color:#9bb58d;font-size:9px}.pw-tool-row h3{font-size:29px;line-height:1.1;margin:0 0 9px}.pw-tool-row p{font-size:12px;line-height:1.6;color:#b3bfaa;margin:0}.pw-tool-row>span:last-child{font-size:24px;color:#bad4ad;transition:transform .35s}.pw-tool-row:hover>span:last-child{transform:translate(4px,-4px)}.pw-server{max-width:1190px;margin:0 auto 60px;padding:32px;border:1px solid #a7bc9940;display:flex;align-items:center;justify-content:space-between;gap:35px}.pw-server h2{font-size:35px;margin:10px 0}.pw-server p{font-size:12px;color:#b3bfaa}.pw-server code{display:block;font:14px 'DM Sans',sans-serif;color:#d4e1c9}.pw-server button{display:block;min-height:44px;border:0;border-bottom:1px solid #a7bc9970;background:none;color:#b6d0a9;padding:10px 0;font-size:12px}.pw-server [role=status]{display:block;margin-top:8px;font-size:11px;color:#b3bfaa}
/* Tools: preserve working layouts, use quiet surfaces and clear data hierarchy. */
body.pw-theme :is(.stats-hero,.atlas-intro){background:transparent!important;border-bottom:1px solid #98b28840!important;padding:38px max(5%,calc((100% - 1160px)/2)) 32px!important;min-height:0!important}body.pw-theme :is(.stats-hero,.atlas-intro) h1{font-size:clamp(43px,4.8vw,67px)!important;line-height:1.02!important;color:#eee9dc!important}body.pw-theme :is(.stats-hero,.atlas-intro) .eyebrow{color:#b6d0a9!important;font:400 9px/1.6 'DM Sans',sans-serif!important;letter-spacing:.17em!important}body.pw-theme :is(.stats-hero,.atlas-intro) :is(p,.stats-freshness){color:#bac9ad!important}body.pw-theme .stats-hero>img{width:105px!important;height:105px!important;opacity:.95}.pw-theme .stats-body{padding-top:35px!important}body.pw-theme .eyebrow{color:#b6d0a9!important;font-family:'DM Sans',Arial,sans-serif!important}body.pw-theme .stats-intro>p{font-size:13px}body.pw-theme :is(.stats-help,.breeding-notice,.ore-help,.map-summary,.map-legend,.team-note,.team-missing,.team-gain){color:#b3bfaa!important}body.pw-theme :is(.leaderboard,.player-collection,.mount-panel,.passives-panel,.stats-explanation){background:#19261d!important;border:1px solid #3a4a3c!important;color:#eee9dc!important}body.pw-theme label{color:#d9e2ce!important}body.pw-theme :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#1d2c21!important;color:#e0e8d7!important;border-color:#5d765f!important;accent-color:#a8cfb8!important;font-size:13px!important;min-height:46px!important;max-width:100%}body.pw-theme select:disabled{color:#9ba992!important;opacity:.7}body.pw-theme :is(input[type=checkbox],input[type=radio]){accent-color:#a8cfb8!important}body.pw-theme :is(.collection-controls button,.breeding-controls button,.mount-controls button,.passive-controls button,.reset-map,#retry-data,#refresh-stats,#mount-retry,#mount-more,#breeding-more,#passive-more,#passive-retry,.parent-picker,#passive-target-picker,.recipe-open,.recipe-trigger,.target-advice-trigger){background:#a8cfb8!important;color:#132119!important;border:1px solid #a8cfb8!important;font-size:12px!important}body.pw-theme :is(.mount-card,.breed-card,.passive-card,.capture-card,.team-section,.team-upgrade,.team-pal,.passive-pair,.parent-choice,.recipe-pair,.chain-step-card){background:#1b291f!important;color:#e0e8d7!important;border-color:#3a4a3c!important}body.pw-theme :is(.mount-card.leading,.passive-best,.chain-output,.passive-advice){background:#273a2b!important;color:#e0e8d7!important;border-color:#668d72!important}body.pw-theme :is(.mount-score,.mount-rank,.mount-terrain,.team-role,.team-badge,.team-links a,.breed-badge,.breed-work,.parent-obtainable,.parent-captured,.passive-rank,.passive-choose,.passive-traits span){background:#293d2d!important;color:#b9d5ad!important;border-color:#3e5842!important}body.pw-theme :is(.mount-metrics,.mount-card p,.passive-effect,.passive-card p,.passive-parent small,.recipe-sex,.inventory-details,.passive-method){color:#b3bfaa!important}body.pw-theme .mount-bar{background:#304733!important}body.pw-theme .mount-bar span{background:#a8cfb8!important}body.pw-theme .summary-grid article{background:#1b291f!important;border-color:#3a4a3c!important}body.pw-theme .summary-grid :is(strong,.progress-metrics strong){color:#b6d0a9!important;font-family:Georgia,serif!important;font-size:40px!important;font-weight:400!important}body.pw-theme .summary-grid :is(small,article>span){color:#b3bfaa!important}body.pw-theme :is(.ranking-scroll,.progress-metrics>div,.capture-placeholder,.craft-details){background:#1b291f!important;color:#e0e8d7!important;border-color:#3a4a3c!important}body.pw-theme .ranking-scroll th{background:#273a2b!important;color:#e0e8d7!important}body.pw-theme .ranking-scroll td{border-color:#3a4a3c!important}body.pw-theme tr.selected{background:#273a2b!important}body.pw-theme .player-select{color:#b6d0a9!important}body.pw-theme .presence{color:#b3bfaa!important}body.pw-theme .atlas{background:#131d17!important}body.pw-theme :is(.atlas-filters,.atlas-map-panel,.atlas-note){background:#19261d!important;color:#e0e8d7!important;border-color:#3a4a3c!important}body.pw-theme :is(.map-pal,.ore-spot){background:#1b291f!important;color:#eee9dc!important;border-color:#3a4a3c!important}body.pw-theme :is(.map-pal,.ore-spot).selected{background:#2a4030!important;border-color:#a8cfb8!important}body.pw-theme .map-modes button{background:#1b291f!important;color:#b6d0a9!important;border:1px solid #a8cfb880!important}body.pw-theme .map-modes button[aria-pressed=true]{background:#a8cfb8!important;color:#142119!important}body.pw-theme .atlas-filters :is(#ore-count,#map-count){color:#b3bfaa!important}body.pw-theme :is(.map-results,.ore-results) :is(strong,small){color:#c3d5b5!important}body.pw-theme .atlas-stamp{color:#b6d0a9!important;border-color:#668d72!important;font-family:'DM Sans',sans-serif!important;font-size:13px!important}body.pw-theme :is(.breeding-notice,.inventory-details,.passive-method,.chain-start-details){background:#1b291f!important;border-color:#3a4a3c!important}body.pw-theme .breeding-modes label{background:#1b291f!important;border-color:#668d72!important}body.pw-theme .breeding-modes label:has(input:checked){background:#2a4030!important;color:#d7e7ca!important}body.pw-theme .target-step{color:#b6d0a9!important}body.pw-theme #paldeck{background:#131d17!important;color:#eee9dc!important;padding-top:40px!important}body.pw-theme #paldeck .deck-heading :is(h1,h2){font-size:clamp(46px,5.5vw,77px)!important;line-height:1.02!important}body.pw-theme #paldeck :is(.deck-heading p,.eyebrow,#deck-status,.data-credit){color:#b3bfaa!important}body.pw-theme .pal-tile{background:#e4e9d8!important;border-color:#a4b69b!important;color:#17261b!important}body.pw-theme .pal-tile img{background:#d1dbc5!important}body.pw-theme .pal-tile .tile-copy strong{color:#17261b!important;font:400 25px/1.15 Georgia,serif!important}body.pw-theme .pal-tile .tile-copy :is(span,small){color:#4d604e!important}body.pw-theme #work-filter{border-color:#668d72!important}body.pw-theme .work-options label{color:#d4e1c9!important;border-color:#668d72!important}body.pw-theme .work-options label:has(input:checked){background:#a8cfb8!important;color:#142119!important}body.pw-theme .work-options label:has(input:checked) span{color:#142119!important}body.pw-theme #deck-player{background:#19261d!important;border-color:#3a4a3c!important;color:#eee9dc!important}body.pw-theme #deck-player label{color:#d4e1c9!important}body.pw-theme #deck-player .stats-help{color:#b3bfaa!important}body.pw-theme #detail-dialog{background:#1b291f!important;color:#eee9dc!important;border:1px solid #668d72!important}body.pw-theme #detail-dialog :is(.detail-stats,.work-list li){background:#273a2b!important;color:#eee9dc!important}body.pw-theme dialog:not(.pw-menu){background:#1b291f!important;color:#eee9dc!important;border-color:#668d72!important}body.pw-theme dialog::backdrop{background:#06100ae6!important}body.pw-theme :is(.stats-body,.atlas-layout,.breeding-grid,.mount-grid,.passive-grid,.pw-tool-list)>*{min-width:0}body.pw-theme .stats-help,body.pw-theme .stats-explanation p{font-size:12px!important}body.pw-theme .collection-mark{opacity:.7}body.pw-theme .stats-section-heading{gap:20px}.pw-theme .stats-section-heading h2{font-size:38px!important}.pw-theme .pw-menu h2{font-size:43px!important}.pw-theme .leaflet-popup-content-wrapper{background:#e4e9d8;color:#152219}.pw-theme .leaflet-popup-tip{background:#e4e9d8}
@media(max-width:900px){.pw-header-actions{gap:20px}.pw-tool-list{gap:0 30px}.pw-server{margin-left:5%;margin-right:5%}.pw-footer>p{display:none}.pw-footer{flex-wrap:wrap}.pw-menu nav{gap:0 25px}}
@media(max-width:600px){.pw-header{min-height:84px;padding:17px 5%;gap:14px}.pw-brand{font-size:24px!important;gap:10px}.pw-brand>img{width:30px;height:30px}.pw-brand small{font-size:6px;letter-spacing:.1em}.pw-header-actions{gap:12px}.pw-switch>span{display:none}.pw-switch{width:44px;justify-content:center}.pw-menu-open{padding:10px 12px;min-width:44px;min-height:44px}.pw-menu-open>span{display:none}.pw-menu-open>svg{width:20px;height:20px}.pw-preview-note{font-size:7px;line-height:1.6;padding:9px 5%}.pw-hub-hero{min-height:440px;padding:45px 6%}.pw-hub-hero h1{font-size:64px}.pw-hub-hero>div>p:not(.pw-kicker){font-size:12px}.pw-kicker{font-size:8px}.pw-hub-hero>img{object-position:52% center}.pw-hero-caption{font-size:7px;left:6%;right:auto;bottom:23px}.pw-tool-section{padding:40px 6%}.pw-section-title{display:block}.pw-section-title h2{font-size:43px}.pw-section-title>p{font-size:12px;margin-top:20px}.pw-tool-list{grid-template-columns:1fr}.pw-tool-row{padding:25px 0;gap:15px}.pw-tool-row h3{font-size:28px}.pw-tool-row p{font-size:11px}.pw-server{margin:0 6% 40px;padding:24px;display:block}.pw-server h2{font-size:30px}.pw-server>div+div{margin-top:25px}.pw-footer{padding:25px 6%!important;gap:22px}.pw-footer>div{font-size:10px;gap:18px}.pw-footer>.pw-brand{font-size:22px!important}.pw-menu{padding:23px;width:calc(100vw - 24px);max-height:92dvh}.pw-menu nav{grid-template-columns:1fr}.pw-menu>h2{font-size:36px!important}.pw-menu nav>a{padding:18px 0}.pw-menu nav strong{font-size:25px}.pw-menu nav small{font-size:10px}body.pw-theme :is(.stats-hero,.atlas-intro){padding:30px 6%!important;gap:15px!important}body.pw-theme :is(.stats-hero,.atlas-intro) h1{font-size:43px!important}body.pw-theme .stats-hero>img{width:65px!important;height:65px!important;position:static!important;align-self:center!important}body.pw-theme .stats-hero{display:flex!important}body.pw-theme .stats-intro{min-width:0}body.pw-theme .stats-intro>p{font-size:12px!important}.pw-theme .stats-section-heading h2{font-size:31px!important}body.pw-theme #paldeck .deck-heading :is(h1,h2){font-size:49px!important}body.pw-theme .pal-tile .tile-copy strong{font-size:22px!important}.pw-theme .stats-body{padding-top:25px!important}body.pw-theme .summary-grid strong{font-size:34px!important}}
@media(prefers-reduced-motion:reduce){.pw-theme *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.pw-theme.motion-paused *{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Corrections ciblées — audit du 28 octobre 2026. */
/* Les descriptions restent lisibles, y compris sur le mode sélectionné. */
body.pw-theme.page-breeding #players-status,
body.pw-theme.page-breeding #breeding-count,
body.pw-theme.page-breeding .breeding-modes small {
  color: #b3bfaa !important;
}
body.pw-theme.page-passives .passive-card summary {
  color: #a8cfb8 !important;
}
body.pw-theme.page-stats .progress-metrics span {
  color: #b3bfaa !important;
}
/* L’alerte garde sa surface jaune : ne pas hériter du texte clair du héros. */
body.pw-theme.page-stats #stats-error {
  background: #ffcf59 !important;
  color: #213336 !important;
}
body.pw-theme.page-paldeck #detail-dialog .detail-note,
body.pw-theme.page-paldeck #detail-dialog .detail-top p {
  color: #b3bfaa !important;
}
body.pw-theme.page-paldeck #detail-dialog .detail-source {
  color: #a8cfb8 !important;
}
/* Cibler les liens de destination, sans recolorer les cartes ni le hub. */
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) footer.pw-footer>div>a {
  color: #a8cfb8 !important;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* Seul le zoom Leaflet est redimensionné ; crédits et liens restent natifs. */
body.pw-theme.page-map .leaflet-control-zoom a {
  background: #e4e9d8 !important;
  color: #17261b !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  display: grid;
  place-items: center;
}
body.pw-theme.page-map .leaflet-control-zoom a:hover {
  background: #c8d8bf !important;
}
body.pw-theme.page-map .leaflet-control-zoom a.leaflet-disabled {
  color: #586250 !important;
}
body.pw-theme.page-map .leaflet-control-zoom a:focus-visible {
  outline: 3px solid #213336 !important;
  outline-offset: -3px;
}
/* Champs à 16 px, descriptions utiles à 12 px : aucun changement de police. */
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  font-size: 16px !important;
}
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(.stats-freshness,.summary-grid small,.summary-grid article>span,.presence,.mount-metrics,.mount-terrain,.passive-effect,.passive-parent small,.passive-pal small,.passive-badge,.map-results small,.ore-results small,.team-note,.team-role,.team-badge,.data-credit,.stats-help,.breeding-notice,.recipe-parent span,.recipe-sex,.map-legend,.map-summary,.ore-help,#collection-meta,.capture-card strong,.capture-card span) {
  font-size: 12px !important;
}
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) footer.pw-footer>div {
  font-size: 12px;
  flex-wrap: wrap;
}
body.ens-unified .ens-live-section .data-note,
body.ens-unified .ens-measure-note,
body.ens-unified .ens-real-settings dt,
body.ens-unified .ens-source,
body.ens-unified .ens-connect-note,
body.ens-unified .ens-server-name>p:last-child,
body.ens-unified #ens-copy-feedback,
body.ens-unified .ens-live-section .eyebrow,
body.ens-unified .ens-connect .eyebrow,
body.ens-unified .ens-live-tools>button {
  font-size: 12px !important;
}
/* Le sous-titre de marque peut revenir à la ligne sans réduire les actions. */
body.pw-theme .pw-brand,
body.ens-unified .pw-brand,
body.pw-theme .pw-brand>span,
body.ens-unified .pw-brand>span {
  min-width: 0;
}
body.pw-theme .pw-brand small,
body.ens-unified .pw-brand small {
  font-size: 10px !important;
  line-height: 1.4;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
body.pw-theme .pw-header-actions,
body.ens-unified .pw-header-actions {
  flex-shrink: 0;
}
/* Les outils commencent plus tôt ; les héros immersifs ne sont pas concernés. */
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(.stats-hero,.atlas-intro) {
  padding: 22px max(5%,calc((100% - 1160px)/2)) 20px !important;
}
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(.stats-hero,.atlas-intro) :is(h1,h1 em) {
  font-size: clamp(34px,3.8vw,50px) !important;
  margin: 8px 0 12px !important;
}
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) .stats-body {
  padding-top: 24px !important;
}
body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(.stats-section-heading h2,.player-collection>h2,.mount-panel>h2,.passives-panel>h2) {
  font-size: 30px !important;
  line-height: 1.15;
  margin: 0 0 12px;
}
body.pw-theme.page-paldeck #paldeck {
  padding-top: 24px !important;
}
body.pw-theme.page-paldeck #paldeck .deck-heading {
  margin-bottom: 18px;
}
body.pw-theme.page-paldeck #paldeck .deck-heading :is(h1,h1 em,h2,h2 em) {
  font-size: clamp(36px,4vw,52px) !important;
  margin: 8px 0 12px;
}
/* Le repli repose sur <details>, pas sur une invisibilité CSS des filtres. */
body.pw-theme.page-map .map-advanced {
  margin: 12px 0 16px;
  border-block: 1px solid #3a4a3c;
}
body.pw-theme.page-map .map-advanced>summary {
  display: list-item;
  min-height: 44px;
  padding: 12px 0;
  color: #a8cfb8 !important;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
body.pw-theme.page-map .map-advanced>summary:focus-visible {
  outline: 2px solid #b8d6ad !important;
  outline-offset: 3px;
}
body.pw-theme.page-map .map-advanced[open]>summary {
  margin-bottom: 12px;
}
body.pw-theme.page-map .map-advanced[open] {
  padding-bottom: 4px;
}
/* Chiffres vivants uniquement, avec les polices éditoriales existantes. */
body.pw-theme.page-stats :is(.summary-grid strong,#server-state,.progress-metrics strong,.ranking-scroll td:not(:first-child),#craft-list strong,.capture-card>span:last-child,#collection-meta),
body.ens-unified :is(#ens-players,#ens-capacity,#ens-xp,#ens-resources) {
  font-variant-numeric: tabular-nums;
}
/* Navigation mobile : moins de vide, jamais moins d’information. */
body:is(.pw-theme,.ens-unified) .pw-menu nav small {
  font-size: 12px;
}
@media(max-width:600px) {
  body:is(.pw-theme,.ens-unified) .pw-menu {
    padding: 16px;
  }
  body:is(.pw-theme,.ens-unified) .pw-menu>h2 {
    font-size: 28px !important;
    margin: 12px 0 16px;
  }
  body:is(.pw-theme,.ens-unified) .pw-menu nav>a {
    min-height: 44px;
    padding: 10px 0;
    grid-template-columns: 18px minmax(0,1fr) 16px;
    gap: 10px;
  }
  body:is(.pw-theme,.ens-unified) .pw-menu nav strong {
    font-size: 21px;
    line-height: 1.15;
  }
  body:is(.pw-theme,.ens-unified) .pw-menu nav small {
    margin-top: 3px;
    line-height: 1.4;
  }
  body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(.stats-hero,.atlas-intro) {
    padding: 20px 6% !important;
  }
  body.pw-theme:is(.page-stats,.page-map,.page-breeding,.page-mounts,.page-teams,.page-passives,.page-paldeck) :is(.stats-hero,.atlas-intro) :is(h1,h1 em) {
    font-size: 34px !important;
  }
  body.pw-theme.page-paldeck #paldeck .deck-heading :is(h1,h1 em,h2,h2 em) {
    font-size: 36px !important;
  }
}
/* Surfaces héritées : gouttières de carte et capacités des descendants. */
body.pw-theme.page-map .atlas-layout {
  background: #131d17;
  border-color: #3a4a3c;
}
body.pw-theme.page-map .atlas-note strong {
  color: #eee9dc;
}
body.pw-theme.page-breeding .breed-work li {
  background: #273a2b;
  color: #eee9dc;
}
body.pw-theme.page-breeding .breed-work li.selected-work {
  background: #344c38;
  outline-color: #75937c;
}
body.pw-theme.page-breeding .breed-work li span {
  color: #eee9dc;
}
body.pw-theme.page-breeding .breed-work li strong {
  color: #c1dab8;
}

