/* TCA V23 — Duel Access canonique. Les anciennes couches Duel ont été retirées. */
.v221-duel-page{
  --duel-ink:#21172b;
  --duel-muted:#5b5165;
  --duel-purple:#7024d1;
  --duel-cyan:#087f99;
  --duel-night:#090b17;
  display:flex;
  flex-direction:column;
  gap:16px;
  color:var(--duel-ink);
}

.v221-duel-page :where(button,select){min-height:44px}
.v221-duel-page :where(p,label){font-size:13px}
.v221-duel-page :where(small,em){font-size:11px}
.v221-duel-page button:focus-visible,
.v221-duel-page select:focus-visible,
.v221-duel-page summary:focus-visible{
  outline:3px solid #087f99!important;
  outline-offset:3px!important;
}

.tca-games-head-v214{background:linear-gradient(135deg,#fff,#f5effd)!important}
.tca-games-head-v214 :where(h1){color:#21172b!important;text-shadow:none!important}
.tca-games-head-v214 :where(p){color:#574d61!important;text-shadow:none!important}
.tca-games-head-v214 :where(small,span){color:#641dad!important;text-shadow:none!important}

.v221-duel-page.is-lobby>.v23-duel-page-heading{order:1}
.v221-duel-page.is-lobby>.v23-duel-quick-guide{order:2}
.v221-duel-page.is-lobby>.v181-mode-picker{order:3}
.v221-duel-page.is-lobby>.v23-duel-loadout{order:4}
.v221-duel-page.is-lobby>.v18-rules{order:5}
.v221-duel-page.is-lobby>.v221-duel-mission{order:6}
.v221-duel-page.is-lobby>.v23-game-progress{order:7}
.v221-duel-page.is-lobby>.v181-season-banner{order:8}
.v221-duel-page.is-lobby>.v181-circuit-track{order:9}
.v221-duel-page.is-lobby>.v221-center-duel{order:10}
.v221-duel-page.is-lobby>.v18-duel-history{order:11}
.v221-duel-page.is-lobby>.v181-demo-panel{order:12}
.v221-duel-page.is-playing{gap:0}

.tca-games-access-v214:has(.v221-duel-page.is-playing)>.tca-games-head-v214,
.tca-games-access-v214:has(.v221-duel-page.is-playing)>.tca-games-tabs-v214,
.v221-duel-page.is-playing>:not(.v23-duel-board){
  display:none!important;
}

.v23-duel-page-heading{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:24px!important;
  margin:0!important;
  padding:clamp(22px,3vw,36px)!important;
  border:1px solid #ddd4e7!important;
  border-radius:26px!important;
  background:radial-gradient(circle at 88% 12%,rgba(138,51,230,.18),transparent 30%),linear-gradient(135deg,#fff 20%,#f6f0ff)!important;
  box-shadow:0 18px 50px rgba(35,19,49,.09)!important;
}

.v23-duel-page-heading small,
.v23-duel-loadout .v18-section-title small{
  color:#651cad!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
}

.v23-duel-page-heading h1{
  margin:6px 0 8px!important;
  color:#18101f!important;
  font-size:clamp(36px,5vw,64px)!important;
  line-height:.96!important;
}

.v23-duel-page-heading p{max-width:720px!important;margin:0!important;color:#53495d!important;font-size:16px!important;line-height:1.55!important}
.v23-duel-heading-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.v23-duel-heading-actions>*{min-height:46px!important;padding:0 16px!important;border-radius:14px!important;font-size:12px!important;font-weight:900!important}
.v23-duel-heading-actions button{border:1px solid #7c3aed;background:#fff;color:#561c91}

.v23-duel-quick-guide{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:14px;
  border:1px solid #ded5e8;
  border-radius:22px;
  background:#fff;
}

.v23-duel-quick-guide>i{display:none}
.v23-duel-quick-guide>div{
  min-height:88px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-content:center;
  column-gap:12px;
  padding:14px;
  border-radius:16px;
  background:#f8f5fb;
}

.v23-duel-quick-guide>div>span{
  grid-row:1/3;
  align-self:center;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,var(--duel-purple),var(--duel-cyan));
  color:#fff;
  font-size:16px;
  font-weight:950;
}

.v23-duel-quick-guide b{align-self:end;color:#21172b;font-size:15px}
.v23-duel-quick-guide small{align-self:start;margin-top:3px;color:#5a5064!important;font-size:12px!important;line-height:1.4}

.v221-duel-page .v181-mode-picker{
  grid-template-columns:repeat(2,minmax(0,1fr)) auto!important;
  gap:12px!important;
  margin:0!important;
}

.v221-duel-page .v181-mode-picker>button{
  min-height:82px;
  grid-template-columns:50px minmax(0,1fr)!important;
  gap:13px!important;
  padding:15px!important;
  border:1px solid #dcd3e5!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#21172b!important;
}

.v221-duel-page .v181-mode-picker>button>span{
  width:50px!important;
  height:50px!important;
  border-radius:15px!important;
  background:#f1e8fb!important;
  color:#5c169f!important;
  font-size:14px!important;
}

.v221-duel-page .v181-mode-picker b{color:#21172b!important;font-size:16px!important}
.v221-duel-page .v181-mode-picker small{color:#5f5569!important;font-size:12px!important;line-height:1.4!important}
.v221-duel-page .v181-mode-picker>button.is-active{border-color:#8b43d8!important;background:linear-gradient(135deg,#f5edff,#eefbff)!important;box-shadow:inset 0 0 0 2px rgba(124,58,237,.2)!important}
.v221-duel-page .v181-mode-picker>.v181-events-link{min-width:150px;color:#fff!important;background:linear-gradient(135deg,#6d28d9,#087f99)!important}

.v221-duel-page .v18-rules{margin:0!important;padding:15px 18px!important;border:1px solid #dcd3e5!important;border-radius:16px!important;background:#fff}
.v221-duel-page .v18-rules summary{min-height:44px;display:flex;align-items:center;color:#571693!important;font-size:13px!important;font-weight:900;cursor:pointer}
.v221-duel-page .v18-rules p{color:#554b5f!important;font-size:13px!important;line-height:1.55}

.v221-duel-mission,
.v221-center-duel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0;
  padding:18px 20px;
  border:1px solid #d9cee5;
  border-radius:20px;
  background:#fff;
}

.v221-duel-mission h2,.v221-center-duel h2{margin:4px 0;color:#21172b}
.v221-duel-mission p,.v221-center-duel p{margin:0;color:#5b5165!important}
.v221-duel-mission small,.v221-center-duel small{color:#651cad!important;font-weight:900;letter-spacing:.09em}
.v221-duel-mission>b{padding:10px 14px;border-radius:999px;background:#ede3fa;color:#54158f;white-space:nowrap}
.v221-center-duel label{display:grid;gap:5px;min-width:210px;color:#4f4658;font-weight:800}
.v221-center-duel input{min-height:46px;padding:0 12px;border:1px solid #cabdde;border-radius:12px;background:#fff;color:#21172b;text-transform:uppercase}
.v221-center-duel input::placeholder{color:#7b7085!important;opacity:1!important}
.v221-center-duel button,.v221-moment-button{min-height:46px;padding:0 16px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--duel-purple),var(--duel-cyan));color:#fff;font-weight:900}
.v221-center-duel code{font-size:11px;color:#5d1a99}
.v221-locked{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #cbbdde;border-radius:999px;background:#f3eef8;color:#4f176f!important;font-size:11px!important;font-weight:900}

.v23-duel-loadout,
.v18-duel-history{
  margin:0!important;
  padding:clamp(18px,2.5vw,28px)!important;
  border:1px solid #d9cee5!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 18px 45px rgba(35,19,49,.08)!important;
}

.v23-duel-loadout .v18-section-title{align-items:flex-start!important;margin-bottom:16px}
.v23-duel-loadout .v18-section-title h2{margin:5px 0!important;color:#21172b!important;font-size:clamp(24px,3vw,34px)!important}
.v23-duel-loadout .v18-section-title p{margin:0;color:#5b5165!important;font-size:13px!important}
.v23-duel-loadout .v18-section-title>span{min-width:104px;min-height:44px;display:grid;place-items:center;border-radius:999px;background:#ede3fa;color:#54158f;font-size:13px;font-weight:900}
.v23-duel-loaner-note,.v23-duel-family-note{margin-top:9px!important;padding:10px 12px;border-left:4px solid var(--duel-cyan);border-radius:8px;background:#eefafd;color:#274d57!important;font-size:12px!important}

.v23-duel-loadout .v181-duel-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}

.v23-duel-loadout .v181-duel-card-grid>button{
  position:relative;
  min-height:150px!important;
  display:grid;
  grid-template-columns:78px minmax(0,1fr) 34px!important;
  align-items:center;
  gap:12px!important;
  padding:13px!important;
  overflow:hidden;
  border:2px solid #e2dbe9!important;
  border-radius:18px!important;
  background:#fbfafd!important;
  color:#21172b!important;
  text-align:left;
}

.v23-duel-loadout .v181-duel-card-grid>button:hover{transform:translateY(-2px);border-color:#aa7bd9!important}
.v23-duel-loadout .v181-duel-card-grid>button.is-active{border-color:#7c3aed!important;border-left:6px solid var(--type-accent,#7c3aed)!important;background:linear-gradient(145deg,#f6efff,#f0fbfd)!important}
.v23-duel-loadout [data-duel-type="prisme"]{--type-accent:#9b3bf0}
.v23-duel-loadout [data-duel-type="écho"]{--type-accent:#0088a5}
.v23-duel-loadout [data-duel-type="faille"]{--type-accent:#ba5b13}
.v23-duel-loadout .v181-duel-card-grid img{width:78px!important;max-height:112px;object-fit:contain;transform:none!important}
.v23-duel-loadout .v181-duel-card-grid small{display:inline-flex;min-height:24px;align-items:center;padding:0 8px;border-radius:999px;background:#eee4f7;color:#4a176f!important;font-size:11px!important;font-weight:900}
.v23-duel-loadout .v181-duel-card-grid h3{margin:7px 0 5px!important;color:#21172b!important;font-size:15px!important;line-height:1.2!important}
.v23-duel-loadout .v181-duel-card-grid p{margin:0;color:#4f4658!important;font-size:12px!important}
.v23-duel-loadout .v181-duel-card-grid p b{color:#21172b!important}
.v23-duel-loadout .v181-duel-card-grid em{display:block;margin-top:6px!important;color:#62586c!important;font-size:11px!important;line-height:1.35!important;font-style:normal}
.v23-duel-loadout .v181-duel-card-grid em::before{content:"CIRCUIT · ";color:#54158f;font-weight:950}
.v23-duel-loadout .v181-duel-card-grid>button>span{width:32px;height:32px;display:grid;place-items:center;border:1px solid #cbb8dc;border-radius:11px;background:#fff;color:#611aa7!important;font-size:18px!important;font-weight:900}

.v23-duel-loadout .v18-duel-start{display:flex;align-items:flex-end!important;justify-content:flex-end;gap:12px!important;margin-top:18px!important}
.v23-duel-loadout .v18-duel-start label{color:#4f4658!important;font-size:12px!important;font-weight:800}
.v23-duel-loadout .v18-duel-start select{min-height:48px;margin-top:6px!important;padding:0 42px 0 13px!important;border:1px solid #cabdde!important;border-radius:13px!important;background:#fff!important;color:#21172b!important;font-size:13px!important}
.v23-duel-loadout .v18-duel-start .v18-primary{min-width:min(330px,100%);min-height:52px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--duel-purple),var(--duel-cyan));color:#fff;font-size:14px;font-weight:950}

.v18-duel-history h2{margin:0 0 10px;color:#21172b}
.v18-duel-history>div{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 0;border-top:1px solid #eee9f3}
.v18-duel-history p{margin:0;color:#21172b}
.v18-duel-history small{display:block;color:#5b5165!important}

.v221-duel-page .v23-card-heading button{min-height:44px}
.v221-duel-page .v23-game-progress>header>button{background:linear-gradient(135deg,#7024d1,#087f99)}
.v221-duel-page .v18-season-banner p{color:#ded6e7!important;font-size:12px!important}
.v221-duel-page .v18-season-banner small,
.v221-duel-page .v181-season-count span,
.v221-duel-page .v181-season-count small{color:#ded6e7!important;font-size:11px!important;line-height:1.45}
.v221-duel-page .v181-circuit-track article small{color:#5d5268!important;font-size:11px!important}
.v221-duel-page .v181-circuit-track article.is-unlocked small{color:#146942!important}
.v221-duel-page .v181-circuit-track h3{color:#21172b!important;font-size:14px!important}
.v221-duel-page .v181-circuit-track p{color:#5b5165!important;font-size:12px!important;line-height:1.45}
.v221-duel-page .v18-demo-panel p{color:#66562f!important;font-size:12px!important;line-height:1.45}
.v221-duel-page .v18-demo-panel :where(button,select){min-height:44px;font-size:11px!important}

.v221-duel-page .v23-duel-board{
  position:relative;
  min-height:700px;
  margin:0!important;
  padding:clamp(16px,2.5vw,30px)!important;
  overflow:hidden;
  border:1px solid rgba(190,174,232,.34)!important;
  border-radius:clamp(18px,2.4vw,28px)!important;
  background:radial-gradient(circle at 50% 9%,rgba(139,66,226,.3),transparent 30%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(180deg,#11162a,#080a15 70%)!important;
  background-size:auto,42px 42px,42px 42px,auto!important;
  color:#fff!important;
  box-shadow:0 24px 70px rgba(5,7,16,.32)!important;
}

.v23-duel-board:focus{outline:none}
.v23-duel-board :where(h2,h3,h4,b,strong){color:#fff!important}
.v23-duel-board :where(p,small,span,em){color:#ddd5e7}
.v23-duel-board-header{position:relative;z-index:1;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center!important;gap:16px;padding-bottom:17px;border-bottom:1px solid rgba(203,187,235,.22)}
.v23-duel-board-header>div:first-child small{color:#cdb8f2!important;font-size:11px!important;font-weight:900!important;letter-spacing:.1em}
.v23-duel-board-header h2{margin:4px 0 0!important;color:#fff!important;font-size:clamp(22px,3vw,34px)!important}

.v23-duel-score{display:grid;grid-template-columns:minmax(54px,1fr) auto minmax(72px,1fr);align-items:center;gap:8px;padding:7px;border:1px solid rgba(203,187,235,.28);border-radius:17px;background:rgba(5,7,15,.7)}
.v23-duel-score>div{min-height:54px;display:grid;place-items:center;padding:5px 9px;border-radius:12px;background:rgba(255,255,255,.07)}
.v23-duel-score small{color:#cfc1e5!important;font-size:11px!important;font-weight:900}
.v23-duel-score b{font-size:24px;line-height:1}
.v23-duel-score>span{color:#efe9f7!important;font-size:11px!important;font-weight:900;white-space:nowrap}
.v23-duel-quit{min-height:48px!important;padding:0 16px!important;border:1px solid rgba(226,215,244,.38)!important;border-radius:14px!important;background:rgba(255,255,255,.08)!important;color:#fff!important;font-size:12px!important;font-weight:900!important}

.v23-duel-type-key{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:9px;margin:14px auto 0;padding:8px 12px;border-radius:999px;background:rgba(5,7,15,.62)}
.v23-duel-type-key span{display:flex;align-items:center;gap:4px;color:#d8cfe5!important;font-size:11px!important;white-space:nowrap}
.v23-duel-type-key i{color:#a99abb;font-style:normal}

.v23-duel-guardian-zone,
.v23-duel-player-zone{position:relative;z-index:1;margin-top:15px;padding:16px;border:1px solid rgba(196,181,253,.2);border-radius:20px;background:rgba(5,7,16,.54)}
.v23-duel-guardian-zone>div:first-child,
.v23-duel-player-zone>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.v23-duel-guardian-zone>div:first-child small,
.v23-duel-player-zone>div:first-child small{color:#baa5dd!important;font-size:11px!important;font-weight:900;letter-spacing:.12em}
.v23-duel-guardian-zone h3,
.v23-duel-player-zone h3{margin:0;color:#fff!important;font-size:18px!important}

.v221-guardian-types{display:flex;justify-content:center;gap:14px;margin:14px 0 0}
.v221-guardian-types>div{position:relative;display:grid;justify-items:center;gap:6px}
.v221-guardian-types img{width:82px;aspect-ratio:2/3;object-fit:cover;border:2px solid rgba(196,181,253,.35);border-radius:11px}
.v221-guardian-types b,
.v23-duel-player-zone .v181-play-cards span{padding:5px 9px;border-radius:999px;background:#6d23ad;color:#fff!important;font-size:11px!important;font-weight:900}
.v221-guardian-types [data-duel-type="écho"] b,
.v23-duel-player-zone [data-duel-type="écho"] span{background:#076e84}
.v221-guardian-types [data-duel-type="faille"] b,
.v23-duel-player-zone [data-duel-type="faille"] span{background:#8a4513}
.v221-guardian-types .is-used{opacity:.55}
.v221-guardian-types .is-previewed{opacity:1;transform:translateY(-4px)}
.v221-guardian-types .is-previewed img{border-color:#c879ff;box-shadow:0 0 0 3px rgba(200,121,255,.18),0 10px 28px rgba(5,7,16,.42)}
.v221-guardian-types em{position:absolute;top:8px;padding:5px 7px;border-radius:7px;background:#f4effb;color:#33253f!important;font-size:11px!important;font-style:normal;font-weight:900}
.v221-guardian-types .is-previewed small{position:absolute;right:5px;bottom:31px;padding:5px 7px;border-radius:7px;background:#f4effb;color:#33253f!important;font-size:11px!important;font-weight:900}

.v23-duel-phase{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:10px;margin:16px auto 0!important;padding:11px 14px;border-radius:14px;background:rgba(118,45,200,.2);color:#f0e9f8!important;font-size:14px!important}
.v23-duel-phase>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#7a2bd4;color:#fff!important;font-weight:900}
.v23-duel-player-zone{background:linear-gradient(180deg,rgba(22,30,55,.76),rgba(5,7,16,.76))}
.v23-duel-player-zone .v181-play-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.v23-duel-player-zone .v181-play-cards>button{position:relative;width:100%;min-width:0;min-height:250px;padding:12px;border:2px solid rgba(196,181,253,.25);border-radius:18px;background:linear-gradient(145deg,#21113c,#142138);color:#fff;text-align:center}
.v23-duel-player-zone .v181-play-cards>button:not(:disabled):hover{transform:translateY(-3px);border-color:#b564ff}
.v23-duel-player-zone .v181-play-cards img{width:100%;height:160px;object-fit:contain;transform:none!important}
.v23-duel-player-zone .v181-play-cards b{display:block;margin:8px 0 6px;color:#fff!important;font-size:15px!important}
.v23-duel-player-zone .v181-play-cards span{display:inline-flex}
.v23-duel-player-zone .v181-play-cards small{display:block;margin-top:7px;color:#e1d8ee!important;font-size:12px!important}
.v23-duel-player-zone .v181-play-cards>button:disabled{opacity:.62!important;filter:grayscale(.78)!important}
.v23-duel-player-zone .v181-play-cards em{position:absolute;inset:12px 12px auto auto;padding:6px 8px;border-radius:8px;background:#f4effb;color:#33253f!important;font-size:11px!important;font-style:normal;font-weight:900}

.v221-reveal-stage{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:20px;max-width:760px;margin:22px auto 0;padding:22px;border:1px solid rgba(196,181,253,.22);border-radius:22px;background:rgba(6,8,18,.46)}
.v221-reveal-stage>div:not(.v23-duel-reveal-actions){display:grid;justify-items:center;gap:8px}
.v221-reveal-stage img{width:140px;max-width:100%;aspect-ratio:2/3;object-fit:contain}
.v221-reveal-stage>div:not(.v23-duel-reveal-actions) span{color:#f4effb!important;font-size:12px!important;font-weight:900}
.v221-reveal-stage>div:not(.v23-duel-reveal-actions) strong{max-width:150px;color:#d9cee8!important;font-size:12px!important;line-height:1.3;text-align:center}
.v23-duel-reveal-actions{grid-column:1/-1;width:min(520px,100%);display:grid!important;grid-template-columns:1fr 1.4fr;gap:10px!important}
.v23-duel-reveal-actions button,
.v23-duel-round-reveal>.v18-primary{min-height:50px;border:1px solid rgba(214,201,240,.38);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:900}
.v23-duel-reveal-actions .v18-primary,
.v23-duel-round-reveal>.v18-primary{border:0;background:linear-gradient(135deg,#792ad9,#087f99)}

.v23-duel-round-reveal{max-width:820px;margin:20px auto 0;padding:clamp(18px,3vw,30px);border:1px solid rgba(196,181,253,.25);border-radius:24px;background:rgba(6,8,18,.58);text-align:center}
.v23-duel-round-reveal.is-win{box-shadow:inset 0 3px 0 #33c790}
.v23-duel-round-reveal.is-loss{box-shadow:inset 0 3px 0 #ef7a76}
.v23-duel-round-reveal.is-draw{box-shadow:inset 0 3px 0 #d7b554}
.v23-duel-round-reveal>header small{color:#cdb8f2!important;font-size:11px!important;font-weight:900;letter-spacing:.12em}
.v23-duel-round-reveal>header h3{margin:5px 0;color:#fff!important;font-size:clamp(24px,3.5vw,38px)}
.v23-duel-round-reveal>header p{max-width:650px;margin:0 auto;color:#d7d0e0!important;font-size:13px!important}
.v23-duel-reveal-cards{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;margin:20px 0}
.v23-duel-reveal-cards>article{min-width:0;padding:14px;border:2px solid rgba(196,181,253,.25);border-top-color:var(--reveal-accent,#8b5fd1);border-radius:18px;background:rgba(255,255,255,.07)}
.v23-duel-reveal-cards>[data-duel-type="prisme"]{--reveal-accent:#b563ff}
.v23-duel-reveal-cards>[data-duel-type="écho"]{--reveal-accent:#2cd5ee}
.v23-duel-reveal-cards>[data-duel-type="faille"]{--reveal-accent:#f39b55}
.v23-duel-reveal-cards article>span{color:#d7c8f4!important;font-size:11px!important;font-weight:900}
.v23-duel-reveal-cards img{width:min(145px,80%);height:180px;margin:8px auto;object-fit:contain}
.v23-duel-reveal-cards h4{margin:5px 0;color:#fff!important;font-size:15px}
.v23-duel-reveal-cards p{margin:0;color:#e3dcea!important;font-size:12px!important}
.v23-duel-reveal-cards small{display:inline-flex;min-height:26px;align-items:center;margin-top:7px;padding:0 9px;border-radius:999px;background:#332743;color:#fff!important;font-size:11px!important;font-weight:900}
.v23-duel-reveal-cards>b{color:#c7b1ea;font-size:22px}
.v23-duel-round-reveal>.v18-primary{min-width:min(320px,100%)}

.v23-duel-rounds{margin:14px 0 0;padding:12px 14px;border:1px solid rgba(196,181,253,.18);border-radius:14px;background:rgba(6,8,18,.38)}
.v23-duel-rounds summary{min-height:44px;display:flex;align-items:center;color:#ddd3ec;font-size:12px;font-weight:850;cursor:pointer}
.v23-duel-rounds .v18-round-log>div{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:8px;background:rgba(255,255,255,.07)!important}
.v23-duel-rounds .v18-round-log p,
.v23-duel-rounds .v18-round-log small{color:#ddd5e7!important;font-size:11px!important}

.v23-duel-board .v18-duel-result{max-width:700px;margin:30px auto;padding:clamp(28px,5vw,56px)!important;border:1px solid rgba(196,181,253,.24);border-radius:24px;background:rgba(255,255,255,.07);text-align:center}
.v23-duel-board .v18-duel-result>span{color:#c688ff!important;font-size:50px}
.v23-duel-board .v18-duel-result h2{color:#fff!important;font-size:clamp(26px,4vw,42px)}
.v23-duel-board .v18-duel-result p{color:#ddd5e7!important;font-size:14px!important;line-height:1.55}
.v23-duel-board .v18-duel-result button{min-height:48px!important;margin:5px;padding:0 18px!important;border:0!important;background:linear-gradient(135deg,#7126cc,#087f99)!important;color:#fff!important;font-size:12px!important}

.v221-archetype-ability{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 0!important;padding:15px 17px!important;border:1px solid rgba(196,181,253,.2);border-radius:16px;background:rgba(17,22,42,.92)!important;color:#fff}
.v221-archetype-ability :where(h3,p){color:#fff!important}
.v221-archetype-ability button,.v181-impulses button{min-height:44px;padding:0 12px;border:1px solid rgba(196,181,253,.3);border-radius:10px;background:#21123b;color:#fff;font-size:11px}
.v181-impulses{display:flex;justify-content:center;gap:8px;margin:12px 0}

.v221-duel-tutorial{position:fixed;z-index:26000;inset:0;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:rgba(7,5,13,.78)}
.v221-duel-tutorial>section{position:relative;width:min(520px,100%);max-height:100%;overflow-y:auto;padding:28px;border:1px solid rgba(196,181,253,.3);border-radius:24px;background:#11152a;color:#fff}
.v221-duel-tutorial h2{margin:8px 0;color:#fff;font-size:32px}
.v221-duel-tutorial :where(p,small){color:#d6cfdf!important;font-size:13px!important;line-height:1.6}
.v221-duel-tutorial footer{display:flex;justify-content:flex-end;gap:10px}
.v221-duel-tutorial button{min-height:44px;padding:0 18px;border:1px solid rgba(196,181,253,.28);border-radius:12px;background:transparent;color:#fff;font-weight:800}
.v221-duel-tutorial button.is-primary{background:linear-gradient(135deg,#7c3aed,#087f99)}
.v23-duel-tutorial-close{position:absolute;top:14px;right:14px;width:44px;padding:0!important}
.v221-tutorial-progress{display:flex;gap:7px;margin:20px 0}
.v221-tutorial-progress i{height:6px;flex:1;border-radius:99px;background:rgba(255,255,255,.15)}
.v221-tutorial-progress i.is-active{background:#a855f7}

#root:has(.v221-duel-page.is-playing) .tca-toast-shell{top:max(84px,calc(env(safe-area-inset-top) + 72px))!important;bottom:auto!important}

@media(max-width:900px){
  .v23-duel-page-heading{align-items:flex-start!important;flex-direction:column!important}
  .v23-duel-heading-actions{width:100%;justify-content:flex-start}
  .v23-duel-loadout .v181-duel-card-grid{grid-template-columns:1fr 1fr!important}
  .v23-duel-board-header{grid-template-columns:1fr auto}
  .v23-duel-board-header .v23-duel-score{grid-column:1/-1;grid-row:2;width:min(520px,100%);justify-self:center}
}

@media(max-width:660px){
  .v221-duel-page{gap:12px}
  .v23-duel-page-heading{padding:20px!important;border-radius:20px!important}
  .v23-duel-page-heading h1{font-size:42px!important}
  .v23-duel-page-heading p{font-size:14px!important}
  .v23-duel-heading-actions>*{flex:1}
  .v23-duel-quick-guide{grid-template-columns:1fr;padding:10px}
  .v23-duel-quick-guide>div{min-height:74px;padding:11px}
  .v221-duel-page .v181-mode-picker{grid-template-columns:1fr!important}
  .v221-duel-page .v181-mode-picker>.v181-events-link{width:100%}
  .v221-duel-mission,.v221-center-duel,.v221-archetype-ability{align-items:stretch;flex-direction:column}
  .v221-center-duel label{min-width:0}
  .v23-duel-loadout .v181-duel-card-grid{grid-template-columns:1fr!important}
  .v23-duel-loadout .v181-duel-card-grid>button{min-height:132px!important;grid-template-columns:68px minmax(0,1fr) 34px!important}
  .v23-duel-loadout .v181-duel-card-grid img{width:68px!important}
  .v23-duel-loadout .v18-duel-start{align-items:stretch!important;flex-direction:column}
  .v23-duel-loadout .v18-duel-start>*{width:100%;min-width:0}
  .v221-duel-page .v23-duel-board{min-height:calc(100dvh - 150px);padding:12px!important;border-radius:18px!important}
  .v23-duel-board-header{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding-bottom:12px}
  .v23-duel-board-header>div:first-child small{font-size:11px!important}
  .v23-duel-board-header h2{font-size:24px!important}
  .v23-duel-score{grid-template-columns:minmax(58px,1fr) auto minmax(76px,1fr)}
  .v23-duel-type-key{gap:5px;padding:8px;overflow-x:auto;justify-content:flex-start}
  .v23-duel-type-key span{font-size:11px!important}
  .v23-duel-guardian-zone,.v23-duel-player-zone{padding:12px}
  .v221-guardian-types{gap:7px}
  .v221-guardian-types>div{min-width:0;flex:1}
  .v221-guardian-types img{width:min(70px,100%)}
  .v23-duel-player-zone .v181-play-cards{gap:6px}
  .v23-duel-player-zone .v181-play-cards>button{min-height:210px;padding:7px;border-radius:14px}
  .v23-duel-player-zone .v181-play-cards img{height:116px}
  .v23-duel-player-zone .v181-play-cards b{font-size:12px!important}
  .v23-duel-player-zone .v181-play-cards small{font-size:11px!important}
  .v221-reveal-stage{gap:10px;padding:14px}
  .v221-reveal-stage img{width:105px}
  .v23-duel-reveal-actions{grid-template-columns:1fr}
  .v23-duel-reveal-cards{gap:7px}
  .v23-duel-reveal-cards>article{padding:8px}
  .v23-duel-reveal-cards img{height:125px}
  .v23-duel-reveal-cards h4{font-size:12px}
  .v23-duel-reveal-cards p{font-size:11px!important}
}

@media(max-width:390px){
  .v23-duel-player-zone .v181-play-cards>button{min-height:196px;padding:6px}
  .v23-duel-player-zone .v181-play-cards img{height:104px}
  .v23-duel-player-zone .v181-play-cards span{padding:4px 6px}
}

@media(prefers-reduced-motion:reduce){
  .v221-duel-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* V23 Jeux Access — expériences autonomes sous la même origine TCA. */
.tca-games-access-v214 .tca-games-tabs-v214{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tca-hockey-embed-v23{display:grid;gap:16px}
.tca-hockey-embed-v23>header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;
  border:1px solid #ded5e9;border-radius:22px;background:#fff;color:#21172b
}
.tca-hockey-embed-v23>header h2{margin:5px 0;color:#21172b!important;font-size:clamp(25px,4vw,38px)}
.tca-hockey-embed-v23>header p{max-width:760px;margin:0;color:#574d61!important;font-size:14px!important;line-height:1.55}
.tca-hockey-embed-status-v23{
  display:inline-flex;min-height:36px;align-items:center;justify-content:center;flex:0 0 auto;padding:0 13px;
  border:1px solid #d8c6eb;border-radius:999px;background:#f4edfc;color:#5b1d96!important;
  font-size:11px!important;font-weight:900;letter-spacing:.08em;text-align:center
}
.tca-hockey-honorary-warning-v23{
  margin:0;padding:13px 16px;border:1px solid #e6c45e;border-radius:15px;
  background:#fff8dc;color:#5f4300!important;font-size:13px!important;font-weight:850;line-height:1.45
}
.tca-hockey-picker-v23{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tca-hockey-picker-v23 button{
  display:grid;gap:3px;min-height:64px;padding:12px 15px;border:1px solid #d9cce8;border-radius:16px;
  background:#fff;color:#2a1b35;text-align:left;cursor:pointer
}
.tca-hockey-picker-v23 button b{font-size:12px;letter-spacing:.06em}
.tca-hockey-picker-v23 button small{color:#62576b;font-size:11px;line-height:1.35}
.tca-hockey-picker-v23 button.is-active{
  border-color:#7c3aed;background:linear-gradient(135deg,#f4edff,#e9f8ff);box-shadow:0 0 0 2px rgba(124,58,237,.12)
}
.tca-hockey-picker-v23 button:focus-visible{outline:3px solid #087f99;outline-offset:2px}
.tca-hockey-frame-v23{
  position:relative;overflow:hidden;min-height:690px;border:1px solid rgba(196,181,253,.28);
  border-radius:24px;background:#0b0b17;box-shadow:0 22px 55px rgba(25,12,42,.16)
}
.tca-hockey-frame-v23 iframe{display:block;width:100%;height:690px;border:0;background:#0b0b17}

.tca-accessverse-host-v23{display:grid;gap:16px;color:#f8fafc}
.tca-accessverse-host-v23>header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;
  border:1px solid rgba(196,181,253,.3);border-radius:22px;
  background:linear-gradient(135deg,#111326,#21103d);box-shadow:0 22px 55px rgba(25,12,42,.18)
}
.tca-accessverse-host-v23>header h2{
  margin:5px 0;color:#fff!important;font-size:clamp(25px,4vw,38px);line-height:1.1
}
.tca-accessverse-host-v23>header p{
  max-width:820px;margin:0;color:#e7e1ef!important;font-size:14px!important;line-height:1.6
}
.tca-accessverse-host-badge-v23{
  display:inline-flex;min-height:36px;align-items:center;justify-content:center;flex:0 0 auto;padding:0 13px;
  border:1px solid rgba(216,180,254,.55);border-radius:999px;background:rgba(139,92,246,.2);
  color:#f3e8ff!important;font-size:11px!important;font-weight:900;letter-spacing:.08em;text-align:center
}
.tca-accessverse-internal-badges-v23{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:390px}
.tca-accessverse-internal-badges-v23 span{
  display:inline-flex;min-height:34px;align-items:center;justify-content:center;padding:0 11px;
  border:1px solid rgba(253,224,71,.65);border-radius:999px;background:rgba(113,63,18,.45);
  color:#fef9c3!important;font-size:10px!important;font-weight:950;letter-spacing:.075em;text-align:center
}
.tca-games-accessverse-disabled-v23{display:grid;gap:3px;padding:16px;border:1px dashed #b8aec5;border-radius:12px;background:#e9e4ef;color:#625a70;cursor:not-allowed}
.tca-games-accessverse-disabled-v23 b{color:#3f3748}.tca-games-accessverse-disabled-v23 small{font-size:11px}
.tca-accessverse-launch-v23{
  display:grid;place-items:center;min-height:430px;padding:32px;text-align:center;
  border:1px solid rgba(196,181,253,.28);border-radius:24px;
  background:radial-gradient(circle at 50% 35%,rgba(124,58,237,.3),transparent 42%),#090b18
}
.tca-accessverse-launch-v23>div{color:#c084fc;font-size:72px;line-height:1}
.tca-accessverse-launch-v23 p{
  max-width:680px;margin:4px auto 20px;color:#e7e1ef!important;font-size:14px!important;line-height:1.6
}
.tca-accessverse-launch-v23 button,.tca-accessverse-frame-actions-v23 button{
  min-height:48px;padding:0 20px;border:1px solid rgba(216,180,254,.55);border-radius:14px;
  background:linear-gradient(135deg,#7c3aed,#087f99);color:#fff;font-size:12px;font-weight:900;letter-spacing:.06em
}
.tca-accessverse-launch-v23 button:focus-visible,.tca-accessverse-frame-actions-v23 button:focus-visible{
  outline:3px solid #67e8f9;outline-offset:3px
}
.tca-accessverse-frame-v23{
  overflow:hidden;border:1px solid rgba(196,181,253,.28);border-radius:24px;
  background:#090b18;box-shadow:0 22px 55px rgba(25,12,42,.2)
}
.tca-accessverse-frame-toolbar-v23{
  display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;
  border-bottom:1px solid rgba(196,181,253,.2);background:#111326;color:#fff
}
.tca-accessverse-lifecycle-v23{display:grid;min-width:0;gap:3px}
.tca-accessverse-lifecycle-v23>strong{color:#fff;font-size:14px}
.tca-accessverse-lifecycle-v23>span{color:#cbd5e1;font-size:11px;font-weight:850;letter-spacing:.055em}
.tca-accessverse-frame-v23.is-ready .tca-accessverse-lifecycle-v23>span{color:#86efac}
.tca-accessverse-frame-v23.is-error .tca-accessverse-lifecycle-v23>span{color:#fda4af}
.tca-accessverse-frame-actions-v23{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:9px}
.tca-accessverse-frame-actions-v23 button{min-height:42px;padding:0 15px}
.tca-accessverse-frame-v23.is-error .tca-accessverse-frame-actions-v23 button:first-child{
  border-color:rgba(103,232,249,.72);background:linear-gradient(135deg,#0e7490,#7c3aed)
}
.tca-accessverse-progress-v23{display:grid;gap:9px;padding:11px 16px 13px;border-bottom:1px solid rgba(196,181,253,.18);background:#0c1023;color:#fff}
.tca-accessverse-progress-v23>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tca-accessverse-progress-v23 span{color:#dbeafe;font-size:12px;font-weight:760}
.tca-accessverse-progress-v23 strong{min-width:48px;color:#fff;font-size:12px;font-variant-numeric:tabular-nums;text-align:right}
.tca-accessverse-progress-v23 [role="progressbar"]{height:10px;overflow:hidden;border:1px solid rgba(165,180,252,.36);border-radius:999px;background:#030616}
.tca-accessverse-progress-v23 i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c3aed,#22d3ee);transition:width .16s ease}
.tca-accessverse-error-v23{margin:0;padding:12px 16px;border-bottom:1px solid rgba(251,113,133,.36);background:#3f0c1d;color:#ffe4e6!important;font-size:13px!important;line-height:1.5}
.tca-accessverse-frame-v23 iframe{display:block;width:100%;height:720px;border:0;background:#090b18}

@media(max-width:700px){
  .tca-games-access-v214 .tca-games-tabs-v214{grid-template-columns:1fr}
  .tca-games-access-v214 .tca-games-tabs-v214 button{font-size:11px!important}
  .tca-hockey-embed-v23>header{align-items:stretch;flex-direction:column;padding:18px}
  .tca-hockey-embed-status-v23{align-self:flex-start}
  .tca-hockey-picker-v23{grid-template-columns:1fr}
  .tca-hockey-frame-v23,.tca-hockey-frame-v23 iframe{height:760px;min-height:760px}
  .tca-accessverse-host-v23>header{align-items:stretch;flex-direction:column;padding:18px}
  .tca-accessverse-host-badge-v23{align-self:flex-start}
  .tca-accessverse-internal-badges-v23{justify-content:flex-start;max-width:none}
  .tca-accessverse-launch-v23{min-height:360px;padding:24px 18px}
  .tca-accessverse-frame-toolbar-v23{align-items:stretch;flex-direction:column}
  .tca-accessverse-frame-actions-v23{justify-content:stretch}
  .tca-accessverse-frame-actions-v23 button{flex:1 1 0}
  .tca-accessverse-frame-v23 iframe{height:760px;min-height:760px}
}

/* Les anciennes règles du design system vivent dans la couche `base` avec
   `!important`; la correction doit donc rejoindre cette même couche. */
@layer base{
.tca-nav .tca-nav-links{
  max-width:612px!important;
}
.tca-nav.is-standard .tca-nav-links{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.tca-nav.is-family .tca-nav-links{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.tca-nav .tca-nav-links .tca-nav-experience-v23{
  position:relative;box-sizing:border-box;min-width:0;text-decoration:none;cursor:pointer
}
.tca-nav .tca-nav-links .tca-nav-experience-v23.is-accessverse{
  border-right:1px solid rgba(167,139,250,.4)!important;border-radius:15px 0 0 15px!important
}
.tca-nav-experience-glyph-v23{
  width:18px;height:18px;display:grid;place-items:center;border-radius:6px;
  background:linear-gradient(135deg,#7c3aed,#087f99);color:#fff!important;font-size:7px;font-weight:950;line-height:1
}
.tca-nav-experience-label-v23{display:block;min-width:0;max-width:100%}
.tca-nav-experience-desktop-v23{display:inline}
.tca-nav-experience-mobile-v23{display:none}
.tca-nav-experience-badge-v23{
  position:absolute;top:2px;right:2px;min-width:24px;padding:2px 4px;border-radius:999px;
  background:#fef3c7;color:#713f12!important;font-size:6px!important;font-weight:950;letter-spacing:.04em;line-height:1.2
}
.tca-nav-experience-v23:focus-visible{outline:3px solid #67e8f9!important;outline-offset:2px!important}

/* INC-605 — Hockey demeure dans le bandeau Accueil; le dock garde AccessVerse
   et les cinq destinations principales sur une seule ligne. */
@media(min-width:1100px){
  .tca-nav.is-standard{min-height:72px!important}
  .tca-nav.is-standard .tca-nav-links{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(72px,96px))!important;
    grid-template-rows:minmax(54px,auto)!important;
    grid-auto-flow:row!important;
    justify-content:center!important;
    align-items:stretch!important;
    max-width:612px!important;
    gap:6px!important
  }
}

@media(min-width:901px) and (max-width:1024px){
  .tca-nav{grid-template-columns:1fr!important}
  .tca-nav .tca-nav-links{max-width:none!important;width:100%!important}
}

@media(max-width:900px){
  .tca-nav.is-standard .tca-nav-links{grid-template-columns:repeat(6,minmax(0,1fr))!important;max-width:none!important;overflow:visible!important}
  .tca-nav.is-family .tca-nav-links{grid-template-columns:repeat(5,minmax(0,1fr))!important;max-width:none!important;overflow:visible!important}
}

@media(max-width:760px){
  .tca-nav{padding-left:max(3px,env(safe-area-inset-left))!important;padding-right:max(3px,env(safe-area-inset-right))!important}
  .tca-nav .tca-nav-links{gap:2px!important;overflow:visible!important}
  .tca-nav.is-standard .tca-nav-links{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .tca-nav.is-family .tca-nav-links{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .tca-nav .tca-nav-links .tca-nav-link{min-height:54px!important;padding:4px 1px!important;font-size:7px!important}
  .tca-nav .tca-nav-links .tca-nav-experience-v23.is-accessverse{border-radius:12px 0 0 12px!important}
  .tca-nav-experience-desktop-v23{display:none}
  .tca-nav-experience-mobile-v23{display:inline}
  .tca-nav-experience-badge-v23{top:1px;right:1px;min-width:20px;padding:1px 3px;font-size:5px!important}
}

@media(max-width:360px){
  .tca-nav .tca-nav-links{gap:1px!important}
  .tca-nav .tca-nav-links .tca-nav-link{padding-left:0!important;padding-right:0!important}
  .tca-nav-experience-badge-v23{transform:scale(.9);transform-origin:top right}
}
}

/* INC-258 — la grande preview relaie le pan vertical sans bloquer pinch/zoom. */
.tca-locker-v213>.tca-locker-preview{touch-action:pan-x pinch-zoom!important}
.tca-locker-v213>.tca-locker-controls{-webkit-overflow-scrolling:touch!important}

/* INC-597 — sur desktop, un seul propriétaire de scroll pour tout le
   personnalisateur. La preview reste visible pendant la lecture des options. */
@media(min-width:681px){
  .tca-locker-v213{
    align-items:start!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important
  }
  .tca-locker-v213>.tca-locker-preview{
    position:sticky!important;
    top:0!important;
    align-self:start!important
  }
  .tca-locker-v213>.tca-locker-controls{
    height:auto!important;
    min-height:100%!important;
    overflow:visible!important
  }
}
