/* Maquettes mobiles validées le 21 octobre. Chargé après les styles existants. */
.palbox-open,.palbox-more-passives,.mobile-tier-vip-note,.home-event-controls,.home-next-event,.shop-filter-hint{display:none}
.home-event-hub{display:contents}
.layout-events .home-event-hub>.upcoming-events{order:-2}
.layout-events .home-event-hub>.current-events{order:-1}
.home-next-event[hidden],.shop-owned-badge[hidden],.shop-owned-info[hidden]{display:none!important}
.shop-page .shop-card-copy{display:flex;flex-direction:column;flex:1;position:relative}
.shop-page .shop-card-copy h2{margin-bottom:14px}
.shop-page .shop-card-bottom{margin-top:auto}
.shop-owned-badge{display:inline-flex;align-self:flex-start;order:-1;font-size:11px;color:#a6e3bc;margin-bottom:6px}
.shop-owned-info{padding:14px 16px;border:1px solid #7ac39760;border-radius:11px;background:#79be8e0b;margin-block:16px}
.shop-owned-info strong{color:#b3e5c1;font-size:15px}
.shop-owned-info p{font-size:13px;line-height:1.6;margin:7px 0 0}
.shop-dialog [data-shop-prepare]:disabled{background:#3b4654;border:1px solid #74808e;color:#d6dce3;box-shadow:none;cursor:not-allowed;opacity:1}
.palbox-detail-dialog{width:min(620px,calc(100% - 24px));max-height:88dvh;overflow:auto}
.palbox-detail-dialog h2{font-size:22px;padding-right:25px;margin-bottom:20px}
.palbox-detail-dialog .palbox-card{border:0;box-shadow:none;padding:0;background:none;animation:none;transform:none}
.paldex-explanation{color:var(--muted);font-size:13px;margin:14px 0}
.paldex-explanation summary{cursor:pointer;display:flex;gap:8px;align-items:center;min-height:40px;list-style:none}
.paldex-explanation summary .icon{width:16px;height:16px}
.paldex-explanation p{line-height:1.65}
@media(max-width:700px){
 .shop-page.commerce-page{padding:0 10px 24px}
 .shop-page .atelier-stage{margin-inline:-10px;padding-inline:16px;min-height:190px}
 .shop-page .shop-account{padding:11px 13px;gap:4px;line-height:1.6;margin-block:14px}
 .shop-page .shop-filter-panel{min-width:0;padding:7px 0;border:0;background:none;box-shadow:none}
 .shop-page .shop-filter-panel .shop-categories{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:7px;margin:0;padding:2px 0 6px;scroll-padding:3px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#85713c transparent;-webkit-overflow-scrolling:touch}
 .shop-page .shop-filter-panel .shop-categories button{flex:0 0 auto;white-space:nowrap;min-height:42px;font-size:12px;padding:9px 13px}
 .shop-filter-hint{display:block;font-size:11px;color:#b1bfce;margin-top:4px}
 .shop-page .shop-toolbar{gap:8px}
 .shop-page .shop-search input{font-size:16px;min-height:44px}
 .shop-page .shop-result-line{margin:10px 0;font-size:12px}
 .shop-page .shop-result-line>span{display:none}
 .shop-page .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 6px}
 .shop-page .shop-card{min-width:0;border-radius:12px;display:flex;flex-direction:column}
 .shop-page .shop-card-art{height:98px;min-height:98px;padding-top:20px}
 .shop-page .shop-product-tag{font-size:9px;max-width:calc(100% - 10px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 5px;left:5px;top:5px}
 .shop-page .shop-art-cluster{width:100%;min-width:0}
 .shop-page .shop-art-cluster img{width:45%;height:62px;margin-inline:-8%;max-width:60%;object-fit:contain}
 .shop-page .shop-art-cluster.single img{width:76px;height:76px;max-width:90%;margin:0}
 .shop-page .shop-art-emblem .icon{width:45px;height:45px}
 .shop-page .shop-card-copy{padding:8px 6px;gap:5px}
 .shop-page .shop-card h2{font-size:13px;line-height:1.3;letter-spacing:-.015em;margin:0 0 6px;overflow-wrap:anywhere;hyphens:auto}
 .shop-page .shop-card-bottom{display:flex;flex-direction:column;align-items:stretch;gap:5px}
 .shop-page .shop-card-bottom>strong{font-size:20px;line-height:1.25;white-space:normal}
 .shop-page .shop-card-bottom .shop-from{font-size:10px;line-height:1.3}
 .shop-page .shop-card-bottom .currency-icon{width:17px;height:17px}
 .shop-page .shop-card-bottom button{display:flex;justify-content:center;width:100%;min-height:40px;padding:8px 2px;margin:0;border-radius:8px;font-size:12px;line-height:1.2;background:linear-gradient(115deg,#ffe16c,#ffbf1a);border:1px solid #ffdb73;color:#17212a;font-weight:800}
 .shop-page .shop-owned-badge{font-size:10px;line-height:1.3;margin:0}
 .shop-dialog{width:calc(100% - 24px);max-height:88dvh;overflow-y:auto;padding:24px 18px}
 .shop-dialog h2{font-size:26px;line-height:1.15}
 .shop-detail-description{font-size:14px;line-height:1.7}
 .shop-detail-art{max-height:130px;overflow-x:auto;overflow-y:hidden}
 .shop-dialog [data-shop-prepare]{min-height:46px;font-size:14px}
 .shop-page .shop-how{margin-top:20px}
 /* Deux Pals par ligne ; le détail complet s'ouvre sans nouvelle lecture. */
 body[data-page=member] .palbox-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-page=member] .palbox-card{padding:10px;min-width:0;display:flex;flex-direction:column}
 .palbox-collection .palbox-card-heading{gap:6px;align-items:start;flex-direction:column}
 .palbox-collection .palbox-card-heading>img{width:76px;height:76px;align-self:center}
 .palbox-collection .palbox-card-heading>div{width:100%}
 .palbox-collection .palbox-card h4{font-size:16px;line-height:1.2;margin:3px 0;overflow-wrap:anywhere}
 .palbox-collection .palbox-card-heading p{font-size:12px;margin:2px 0}
 .palbox-collection .palbox-card .eyebrow{font-size:10px;letter-spacing:0}
 .palbox-collection .palbox-stars{font-size:11px;letter-spacing:0}
 .palbox-collection .palbox-ivs{gap:3px;padding:8px 0;margin:8px 0}
 .palbox-collection .palbox-ivs dt{font-size:10px;line-height:1.2}
 .palbox-collection .palbox-ivs dd{font-size:14px;margin:4px 0 0;white-space:nowrap}
 .palbox-collection .palbox-passives{gap:4px;flex-wrap:nowrap;margin-bottom:4px}
 .palbox-collection .palbox-passives span{font-size:11px;line-height:1.3;padding:4px;overflow-wrap:anywhere}
 .palbox-collection .palbox-grid.is-compact .palbox-passives span:nth-child(n+2):not(.palbox-more-passives){display:none}
 .palbox-grid.is-compact .palbox-more-passives{display:inline-flex;align-items:center;flex-shrink:0}
 .palbox-collection .palbox-grid.is-compact .detail-disclosure{display:none}
 .palbox-grid.is-compact .palbox-open{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-top:auto;min-height:40px;color:#f3d37c;background:none;border:0;border-top:1px solid #ffffff14;font:inherit;font-size:12px;cursor:pointer}
 .palbox-open .icon{width:15px;height:15px}
 .member-container-tabs{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin-bottom:12px}
 .member-container-tabs .button{flex:none;min-height:42px;padding:9px 10px;font-size:12px}
 .palbox-search{margin-bottom:12px}
 .palbox-search>label{font-size:12px}
 .palbox-search .member-search-input{gap:6px}
 .palbox-search input{font-size:16px;padding-inline:9px;min-height:44px}
 .palbox-search .button{font-size:12px;padding:10px 8px;min-height:44px}
 .palbox-intro p{font-size:13px;line-height:1.5;margin-bottom:12px}
 /* Trois espèces par ligne, filtres rapprochés. */
 body[data-page=member] .paldex-panel{padding:12px}
 .paldex-panel .member-large-stat{font-size:30px;white-space:nowrap}
 .paldex-panel .member-large-stat small{font-size:15px}
 .paldex-panel .member-panel-title h3{font-size:23px}
 .paldex-panel .eyebrow{font-size:9px}
 .paldex-explanation{font-size:12px;margin:5px 0}
 .paldex-panel .member-freshness{font-size:11px;margin:7px 0}
 .paldex-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:12px}
 .paldex-search>div:first-child{grid-column:auto}
 .paldex-search label{font-size:11px;margin-bottom:5px}
 .paldex-search input,.paldex-search select{min-height:44px;width:100%;font-size:16px;padding-inline:8px}
 .paldex-search .member-search-input input{padding-left:32px}
 .paldex-search>.button{grid-column:1/-1;min-height:40px;padding:8px}
 body[data-page=member] .paldex-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .paldex-grid .paldex-entry{padding:9px 4px;border-radius:10px}
 .paldex-grid .paldex-pal-symbol{height:65px;margin:0 0 6px}
 .paldex-grid .paldex-pal-symbol img{width:65px;height:65px;max-width:100%;object-fit:contain}
 .paldex-grid h4{font-size:12px;line-height:1.25;min-height:30px}
 .paldex-grid .paldex-entry>span{font-size:11px;gap:3px;margin-top:5px;line-height:1.3}
 /* Prochains paliers : une seule rangée à faire glisser au doigt. */
 body[data-page=member] .battlepass-upcoming .battlepass-track-list{display:flex;flex-wrap:nowrap;gap:10px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;scroll-snap-type:x proximity;scroll-padding-inline:2px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 body[data-page=member] .battlepass-upcoming .battlepass-tier{display:grid;grid-template-columns:minmax(0,1fr);flex:0 0 clamp(158px,55%,220px);min-width:0;width:auto;padding:9px;gap:7px;align-content:start;scroll-snap-align:start}
 .battlepass-upcoming .tier-number{grid-column:1;grid-row:auto;flex-direction:row;justify-content:space-between;align-items:center;padding:0;gap:4px}
 .battlepass-upcoming .tier-number strong{font-size:27px}
 .battlepass-upcoming .tier-number small{font-size:10px;max-width:65px;overflow-wrap:anywhere}
 body[data-page=member] .battlepass-upcoming .tier-reward{grid-column:1;padding:8px;min-height:0}
 .battlepass-upcoming .tier-art{height:40px;margin-top:5px;gap:3px}
 .battlepass-upcoming .tier-art img{width:36px;height:36px;max-width:45%}
 .battlepass-upcoming .tier-art>.icon{width:32px;height:32px}
 .battlepass-upcoming .tier-reward p{font-size:12px;line-height:1.4;margin:5px 0 8px;overflow-wrap:anywhere}
 .battlepass-upcoming .tier-status{font-size:11px;gap:3px}
 .battlepass-upcoming .tier-vip-upcoming{display:none}
 .mobile-tier-vip-note{display:flex;gap:7px;color:#e0cc93;font-size:12px;line-height:1.5;margin:12px 0}
 .mobile-tier-vip-note .icon{width:18px;height:18px;flex-shrink:0}
 body[data-page=member] .battlepass-current{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px}
 .battlepass-current>.tier-number{grid-column:1/-1;grid-row:auto;flex-direction:row;justify-content:space-between;padding:0}
 .battlepass-current .tier-number strong{font-size:28px}
 .battlepass-current>.tier-reward{grid-column:auto;padding:9px;min-height:0}
 .battlepass-current .tier-art{height:47px;margin-top:5px}
 .battlepass-current .tier-art img{width:42px;height:42px}
 .battlepass-current .tier-reward p{font-size:12px;line-height:1.5;margin:5px 0 8px}
 .battlepass-current .tier-status{font-size:11px}
 .battlepass-current>.tier-vip{grid-column:1/-1;font-size:11px}
 body[data-page=member] .battlepass-summary{padding:20px 16px}
 .battlepass-summary>.battlepass-summary-copy{padding-right:65px}
 .battlepass-summary h3{font-size:34px}
 .battlepass-summary-copy p{font-size:13px;line-height:1.5}
 .battlepass-summary>.battlepass-mascot{width:115px;height:130px;right:2px;top:22px}
 .battlepass-summary .battlepass-vip-note{font-size:12px!important;line-height:1.5;margin-block:12px}
 .battlepass-summary .member-freshness{font-size:11px;margin-bottom:0}
 /* Offres personnelles et publiques : deux cartes compactes. */
 body[data-page] .market-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-page] .market-offer{padding:11px;min-width:0;display:flex;flex-direction:column}
 body[data-page] .market-offer .market-offer-product{display:flex;flex-direction:column;align-items:stretch;gap:5px}
 body[data-page] .market-offer .market-offer-product>img{width:100%;height:86px;object-fit:contain}
 body[data-page] .market-offer .market-offer-product>.icon{width:100%;height:66px}
 body[data-page] .market-offer .market-offer-product .eyebrow{font-size:10px;letter-spacing:0}
 body[data-page] .market-offer .market-offer-product h3{font-size:16px;line-height:1.25;overflow-wrap:anywhere;margin:4px 0 8px}
 body[data-page] .market-offer .market-exchange{padding:9px;margin:5px 0 9px}
 body[data-page] .market-exchange>span{font-size:11px}
 body[data-page] .market-offer .market-exchange strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere;display:block;margin-top:4px}
 body[data-page] .market-offer .market-offer-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto;padding-top:6px}
 body[data-page] .market-offer-actions .text-button{min-height:40px;font-size:12px;padding:6px;flex:1;border:1px solid #56616e75;border-radius:7px}
 .market-offer-note{font-size:12px;overflow-wrap:anywhere}
 .market-offer-note summary{min-height:40px}
 .market-editor-heading{gap:9px}
 .market-editor-heading h3{font-size:20px}
 .market-editor-heading>.button{font-size:12px;padding:10px;min-height:44px}
 /* Le lanceur d'aide reste accessible, sans le grand cartouche superposé. */
 .palpatine{right:7px;bottom:calc(78px + env(safe-area-inset-bottom))}
 .palpatine .palpatine-prompt{display:none}
 .palpatine .palpatine-bubble{width:42px;height:42px;gap:0;border-radius:50%;background:#14222df2;border:1px solid #c6a24e88}
 .palpatine .palpatine-bubble img{width:35px;height:35px}
 .palpatine-panel{bottom:52px}
 /* Les deux blocs d'événements deviennent un seul panneau à onglets. */
 .home-body .home-event-hub{display:block;grid-column:1/-1;min-width:0;padding:14px;border:1px solid #b79b594f;border-radius:15px;background:linear-gradient(125deg,#24343f,#14222d)}
 .layout-events .home-event-hub{order:-1}
 .home-event-hub.is-enhanced .home-event-controls{display:block}
 .home-event-controls h2{font-size:21px;margin:0 0 12px}
 .home-event-controls>div{display:flex;gap:5px;padding:4px;border:1px solid #49565f;border-radius:11px}
 .home-event-controls button{flex:1;min-width:0;min-height:44px;padding:7px 4px;border:0;border-radius:8px;background:none;color:#dae1e9;font:inherit;font-weight:800;font-size:13px;cursor:pointer}
 .home-event-controls button[aria-pressed=true]{background:#ffcf32;color:#15202a}
 .home-event-controls button:disabled{opacity:.6;cursor:default}
 .home-body .home-event-hub .upcoming-events,.home-body .home-event-hub .current-events{height:auto;max-height:none;min-height:0;padding:0;border:0;background:none;box-shadow:none;grid-column:auto;margin:0}
 .home-event-hub.is-enhanced .upcoming-heading,.home-event-hub.is-enhanced .current-events>header{display:none}
 .home-event-hub.is-enhanced[data-event-view=current] .upcoming-events,.home-event-hub.is-enhanced[data-event-view=upcoming] .current-events{display:none}
 .home-event-hub .upcoming-list,.home-event-hub .current-events-list{height:auto;max-height:none;overflow:visible;padding:0;margin:7px 0 0}
 .home-body .home-event-hub .upcoming-list>li{padding:8px 0;margin:0;position:relative;min-height:66px}
 .home-body .home-event-hub .event-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-right:38px}
 .home-body .home-event-hub .event-row strong{font-size:14px;line-height:1.35}
 .home-body .home-event-hub .event-row time{font-size:12px;line-height:1.5;margin-top:4px}
 .home-body .home-event-hub .event-countdown{font-size:12px;line-height:1.4;max-width:90px;text-align:right}
 .home-body .home-event-hub .event-map-link,.home-body .home-event-hub .event-reminder{width:34px;min-width:34px;height:44px;min-height:44px;right:0;top:8px}
 .home-event-hub .event-reminder>span{display:none}
 .home-body .home-event-hub .current-events .live-event-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;padding:10px 0;min-height:70px}
 .home-body .home-event-hub .live-event-row>a:first-child{min-width:0}
 .home-body .home-event-hub .live-event-row strong{font-size:14px;line-height:1.35}
 .home-event-hub .live-event-row p{display:none}
 .home-body .home-event-hub .live-event-row small{font-size:12px;line-height:1.5;margin-top:3px;-webkit-line-clamp:2}
 .home-body .home-event-hub .live-event-map{font-size:0;min-width:40px;min-height:44px;justify-content:center}
 .home-event-hub .live-event-map .icon{width:20px;height:20px}
 .home-body .home-event-hub .live-event-time{grid-column:1/-1;font-size:11px;margin:0;color:#a4d7cb}
 .home-body .home-event-hub .current-events>footer,.home-body .home-event-hub .upcoming-status{font-size:11px;line-height:1.5;margin:8px 0 0}
 .home-event-hub .home-next-event{display:block;font-size:12px;line-height:1.5;color:#ffdd83;border-top:1px solid #ffffff1c;padding-top:11px;margin-top:11px;min-height:42px}
}
@media(max-width:360px){
 .shop-page.commerce-page{padding-inline:8px}
 .shop-page .shop-grid{gap:7px 4px}
 .shop-page .shop-card-copy{padding-inline:5px}
 .shop-page .shop-card h2{font-size:12px}
 .shop-page .shop-card-bottom>strong{font-size:18px}
 .shop-page .shop-card-bottom button{font-size:11px}
 .palbox-collection .palbox-ivs dt{font-size:9px}
 .palbox-collection .palbox-ivs dd{font-size:12px}
}

@media(min-width:370px) and (max-width:700px){
 .palbox-collection .palbox-card-heading{flex-direction:row;align-items:center;gap:7px}
 .palbox-collection .palbox-card-heading>img{width:62px;height:72px}
 .palbox-collection .palbox-card-heading>div{width:auto;flex:1}
 .palbox-collection .palbox-card h4{font-size:15px}
 .palbox-collection .palbox-card-heading p{font-size:11px}
}
@media(max-width:700px){
 .palbox-collection .palbox-ivs dt{font-size:0;line-height:1.25}
 .palbox-collection .palbox-ivs dt::after{font-size:10px}
 .palbox-collection .palbox-ivs>div:nth-child(1) dt::after{content:'PV'}
 .palbox-collection .palbox-ivs>div:nth-child(2) dt::after{content:'ATQ'}
 .palbox-collection .palbox-ivs>div:nth-child(3) dt::after{content:'DÉF'}
}

/* Fenêtre de l’équipe : trois profils par ligne sur téléphone. */
@media(max-width:700px){
 .team-dialog .team-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px}
 .team-dialog .team-card{padding:12px 3px;border-radius:11px}
 .team-dialog .team-avatar{width:54px;height:54px;font-size:23px}
 .team-dialog .team-card h3{font-size:13px;line-height:1.3;margin:10px 0 6px;overflow-wrap:anywhere}
 .team-dialog .team-role{font-size:11px;line-height:1.4;display:block;letter-spacing:-.02em;hyphens:auto;overflow-wrap:anywhere}
}
@media(max-width:360px){
 .team-dialog{padding-inline:12px}
 .team-dialog .team-grid{gap:5px}
 .team-dialog .team-avatar{width:48px;height:48px}
}
