@keyframes decalude-fanions {
  0%,100% { filter: drop-shadow(0 0 4px rgba(246,204,92,.22)); }
  50% { filter: drop-shadow(0 0 11px rgba(246,204,92,.58)); }
}

.decalude-home {
  color:#f7edd0;
  background:
    radial-gradient(circle at 50% -8%,rgba(189,128,27,.24),transparent 31%),
    radial-gradient(circle at 0 55%,rgba(112,52,13,.12),transparent 38%),
    linear-gradient(160deg,#090a0f,#030305 65%,#0d0905);
}
.decalude-home::before,.decalude-home::after{content:'✦';position:absolute;top:112px;color:#805d1f;font-size:10px}
.decalude-home::before{left:13px}.decalude-home::after{right:13px}
.decalude-home-header{padding:45px 14px 0;position:relative;text-align:center;flex:none}
.decalude-portal-button,.decalude-points-button{position:absolute;top:5px;border:1px solid #70511d;border-radius:8px;background:#120f0a;color:#dcb956;font:900 8px Nunito,sans-serif;padding:7px 8px;cursor:pointer;z-index:2}
.decalude-portal-button{left:14px}
.decalude-points-button{right:14px;max-width:72px;line-height:1.1}
.decalude-home-brand{display:flex;align-items:center;justify-content:center;gap:8px}
.decalude-home-brand img{width:42px;height:42px;animation:decalude-fanions 3s ease-in-out infinite}
.decalude-home-brand small{display:block;color:#b99647;font-size:7px;font-weight:1000;letter-spacing:.2em;text-align:left}
.decalude-home-brand h1{font-size:28px;line-height:.95;letter-spacing:.05em;color:#fff4c8;text-shadow:0 0 15px #bd842e66;text-align:left}
.decalude-home-subtitle{margin-top:5px;color:#8f826a;font-size:8px;letter-spacing:.04em}
.decalude-about-button{margin-top:6px;padding:3px 9px;border:1px solid #5f491f;border-radius:999px;background:#100e0a;color:#caaa55;font:900 7px Nunito,sans-serif;letter-spacing:.05em;cursor:pointer}
.decalude-home-ornament{height:18px;display:flex;align-items:center;justify-content:center;gap:7px;color:#e5bd51;font-size:9px}
.decalude-home-ornament i{display:block;width:86px;height:1px;background:linear-gradient(90deg,transparent,#b18028)}
.decalude-home-ornament i:last-child{transform:scaleX(-1)}
.decalude-home-content{padding:0 13px 8px;display:flex;flex:1;min-height:0;flex-direction:column;gap:6px}
.decalude-loading{margin:auto;color:#b99647;font-size:10px;font-weight:1000;letter-spacing:.12em}
.decalude-home-intro{padding:7px 10px;border:1px solid #72551f;border-radius:10px;background:linear-gradient(120deg,#1e160a,#0e0d0b);display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}
.decalude-home-intro strong{color:#f2ce68;font-size:10px;letter-spacing:.08em;white-space:nowrap}
.decalude-home-intro span{color:#b1a58f;font-size:8px;line-height:1.25;text-align:right}
.decalude-home-intro.ready{border-color:#9f772a;box-shadow:inset 0 0 18px #d6a73a10}
.decalude-home-list{display:flex;flex:1;min-height:0;flex-direction:column;gap:4px}
.decalude-home-row{--decalude-surface:#0b0c10;display:grid;align-items:center;gap:6px;min-height:0;flex:1;padding:3px 5px;border-radius:8px}
.decalude-home-row.requirement{grid-template-columns:24px minmax(0,1fr) 42px}
.decalude-home-row:not(.requirement){grid-template-columns:24px minmax(0,1fr) 42px 44px 46px}
.decalude-row-number{width:22px;height:22px;display:grid;place-items:center;border:1px solid #614a24;border-radius:6px;color:#d1a94e;font-size:8px;font-weight:1000;background:#17130c}
.decalude-row-main,.decalude-row-game{min-width:0}
.decalude-row-main>div{display:flex;justify-content:space-between;gap:5px;align-items:center}
.decalude-row-main strong,.decalude-row-game strong{display:block;color:#eee8d8;font-size:9px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.decalude-row-main b{color:#d5b457;font-size:8px;white-space:nowrap}
.decalude-row-track{display:block;height:3px;margin-top:3px;background:#25231d;border-radius:99px;overflow:hidden}
.decalude-row-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--game-color),#f3d370)}
.decalude-row-game small{display:block;margin-top:2px;color:#706a5f;font-size:6px;font-weight:1000;letter-spacing:.09em}
.state-played .decalude-row-game small{color:#77c990}.state-current .decalude-row-game small{color:#f2ca61}.state-upcoming{opacity:.58}
.decalude-row-time{text-align:right;min-width:0}
.decalude-row-time span{display:block;color:#655f54;font-size:5px;font-weight:1000;letter-spacing:.08em}
.decalude-row-time b{display:block;color:#ddd4bf;font-size:8px;white-space:nowrap}
.decalude-row-time.points b{color:#e9c55c}
.decalude-row-action{width:100%;height:22px;border:1px solid #a87e2a;border-radius:6px;background:linear-gradient(135deg,#c28c29,#f0ca5c);color:#171006;font:1000 7px Nunito,sans-serif;padding:0;cursor:pointer}
.decalude-row-action.recap{border-color:#695225;background:#17130d;color:#d8b553}
.decalude-row-action.done,.decalude-row-action.locked{border-color:#3b3428;background:#141310;color:#777064;cursor:default}
.decalude-home-footer{height:26px;display:flex;align-items:center;justify-content:space-between;padding:0 7px;border-top:1px solid #3b3020;color:#796e5b;flex:none}
.decalude-home-footer strong{color:#d8b553;font-size:9px}.decalude-home-footer span{font-size:7px}
.decalude-demo-note{text-align:center;color:#574f42;font-size:7px;line-height:1;flex:none}
.decalude-home-score-actions{display:grid;gap:3px;flex:none}
.decalude-recap-browser,.decalude-download-scores{height:21px;flex:none;border:1px solid #59451f;border-radius:7px;background:#100e0a;color:#c5a752;font:1000 7px Nunito,sans-serif;letter-spacing:.05em;cursor:pointer}
.decalude-download-scores{border-color:#a88432;color:#f2d77e;background:linear-gradient(100deg,#171007,#2a1c08,#171007)}
.decalude-recap-browser:disabled,.decalude-download-scores:disabled{cursor:wait;opacity:.72}

.decalude-recap-content{padding:5px 14px 12px;display:flex;flex:1;min-height:0;flex-direction:column;gap:9px}
.decalude-recap-victory{text-align:center;padding:10px;border:1px solid #9a7125;border-radius:14px;background:radial-gradient(circle at 50% 0,#38250d,#100d08 68%);box-shadow:0 0 24px #ca90272b}
.decalude-recap-victory>span{display:block;color:#f5d778;font-size:21px;line-height:1}.decalude-recap-victory small{display:block;color:#b99445;font-size:7px;font-weight:1000;letter-spacing:.2em}.decalude-recap-victory h2{color:#fff0b5;font-size:19px;margin:2px 0 7px}
.decalude-recap-victory>div{display:grid;grid-template-columns:1fr 1fr;gap:1px 12px}.decalude-recap-victory b{color:#f0cc65;font-size:15px}.decalude-recap-victory i{grid-row:2;color:#716651;font-size:6px;font-style:normal;font-weight:1000;letter-spacing:.09em}
.decalude-recap-rankings{display:grid;grid-template-columns:1fr 1fr;gap:7px;flex:1;min-height:0}
.decalude-recap-points{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;padding:7px 10px;border:1px solid #8a6728;border-radius:10px;background:linear-gradient(120deg,#251a09,#100e0a);text-align:center;flex:none}.decalude-recap-points>div small{display:block;color:#8e7b55;font-size:6px;font-weight:1000;letter-spacing:.08em}.decalude-recap-points>div b{display:block;color:#f1ce69;font-size:13px}.decalude-recap-points p{grid-column:1 / 3;margin:2px 0 0;color:#b09d72;font-size:7px;line-height:1.25}.decalude-recap-points.loading{display:flex;align-items:center;justify-content:space-between}.decalude-recap-points.loading strong{color:#d4b65f;font-size:8px}.decalude-recap-points.loading span{color:#887d69;font-size:7px}
.decalude-score-grid{--decalude-surface:#0d0d0e;border-radius:12px;padding:8px 7px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.decalude-ranking-title{color:#d7b75b;font-size:7px;font-weight:1000;text-align:center;letter-spacing:.04em;margin-bottom:3px}
.decalude-ranking-row{display:grid;grid-template-columns:17px 1fr auto;align-items:center;gap:4px;padding:5px 3px;border-bottom:1px solid #24211a;color:#837b6d;font-size:8px}.decalude-ranking-row:last-child{border-bottom:0}.decalude-ranking-row span{width:15px;height:15px;display:grid;place-items:center;border:1px solid #604a22;border-radius:50%;color:#cba74c;font-weight:1000}.decalude-ranking-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.decalude-ranking-row>div{text-align:right}.decalude-ranking-row b{display:block;color:#e0c66f}.decalude-ranking-row em{display:block;color:#9d8447;font-size:6px;font-style:normal;font-weight:1000}.decalude-ranking-row.mine{background:#2a2110;border-radius:6px;color:#f0dfaa}
.decalude-ranking-row.mine.outside-top{margin-top:4px;border-top:1px solid #8f6d2c;box-shadow:inset 0 1px #e1bd5a1f}
.decalude-recap-history{display:grid;grid-template-columns:1fr 1fr;gap:7px;flex:none}.decalude-history-button{height:28px;overflow:hidden;border:1px solid #59451f;border-radius:8px;background:#100e0a;color:#b99b51;font:900 7px Nunito,sans-serif;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.decalude-history-button:disabled{color:#554e40;border-color:#302b23;cursor:default}
.decalude-recap-actions{display:flex;flex-direction:column;gap:6px;flex:none}.decalude-next-game{width:100%;height:44px;border:1px solid #ffe083;border-radius:10px;background:linear-gradient(115deg,#8b5818,#f0cb62 48%,#9d681c);box-shadow:0 0 18px #dca83b55;color:#1b1104;font:1000 10px Nunito,sans-serif;letter-spacing:.04em;cursor:pointer}.decalude-recap-actions .decalude-secondary{width:100%;height:28px}
.decalude-primary,.decalude-secondary{height:36px;border-radius:9px;font:1000 8px Nunito,sans-serif;letter-spacing:.04em;cursor:pointer}.decalude-primary{border:1px solid #f0ca5c;background:linear-gradient(135deg,#9a681d,#f1c954);color:#160f05}.decalude-secondary{border:1px solid #6f5728;background:#18130b;color:#d8b75a}

.decalude-points{overflow:hidden}
.decalude-points-content{padding:10px 14px 12px;display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;overflow:auto}
.decalude-points-lead{display:grid;grid-template-columns:27px 1fr;align-items:center;gap:0 8px;padding:9px 11px;border:1px solid #9a7125;border-radius:13px;background:radial-gradient(circle at 25% 0,#38250d,#100d08 70%)}
.decalude-points-lead>span{grid-row:1 / 3;color:#f5d778;font-size:22px;text-align:center}.decalude-points-lead small{display:block;color:#b99445;font-size:7px;font-weight:1000;letter-spacing:.2em}.decalude-points-lead h2{margin:1px 0;color:#fff0b5;font-size:14px}.decalude-points-lead p{grid-column:1 / 3;margin:6px 0 0;color:#c1b6a0;font-size:10px;line-height:1.4}.decalude-points-lead p strong{color:#f0cc65}
.decalude-points-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.decalude-points-grid article{display:flex;gap:7px;padding:8px;border:1px solid #4f3d1e;border-radius:10px;background:#0d0d0e}.decalude-points-grid article>b{width:20px;height:20px;display:grid;place-items:center;flex:none;border:1px solid #745823;border-radius:50%;color:#d8b553;font-size:8px}.decalude-points-grid h3{margin:0 0 4px;color:#e4c974;font-size:8.5px;line-height:1.25}.decalude-points-grid p{margin:0;color:#aaa191;font-size:9px;line-height:1.38}.decalude-points-grid sup{font-size:.7em}
.decalude-points-formula{padding:9px;border:1px solid #7c5d25;border-radius:10px;background:linear-gradient(120deg,#1e160a,#0e0d0b);text-align:center}.decalude-points-formula small{display:block;color:#a88949;font-size:7px;font-weight:1000;letter-spacing:.15em}.decalude-points-formula strong{display:block;margin:4px 0;color:#f2ce68;font-size:11px}.decalude-points-formula span{display:block;color:#988e7c;font-size:8px;line-height:1.3}.decalude-points-note{margin:0;color:#998f7e;font-size:8.5px;line-height:1.4;text-align:center}.decalude-points-actions{margin-top:auto}.decalude-points-actions button{width:100%}

.decalude-game-ribbon{position:fixed;left:50%;top:4px;transform:translateX(-50%);z-index:20050;height:24px;display:flex;align-items:center;gap:5px;padding:2px 9px 2px 3px;border:1px solid #f0ca5c;border-radius:99px;background:linear-gradient(110deg,#171108,#2c1e09,#0e0c09);box-shadow:0 0 16px #d99d364d;color:#f0ce6c;font:1000 7px Nunito,sans-serif;pointer-events:none;letter-spacing:.07em}
.decalude-game-ribbon img{width:18px;height:18px}.decalude-game-ribbon b{color:#9d8d6a;font-size:6px}
.decalude-screen-frame{position:fixed;inset:0;z-index:20040;box-sizing:border-box;pointer-events:none;border:3px solid #d9ac43;background:none;box-shadow:inset 0 0 10px #d7a52f55,0 0 13px #d7a52f55;animation:decalude-frame-glow 3.2s ease-in-out infinite}
.decalude-completion-guard{position:fixed;inset:0;z-index:20055;background:transparent;pointer-events:auto;touch-action:none}
.decalude-recap-trigger{position:fixed;z-index:20060;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);min-width:min(310px,calc(100vw - 32px));height:46px;padding:0 22px;border:1px solid #ffe08a;border-radius:999px;background:linear-gradient(115deg,#7e5016,#efc85c 48%,#9d681c);box-shadow:0 4px 22px #000a,0 0 22px #e4b43b80;color:#1c1205;font:1000 11px Nunito,sans-serif;letter-spacing:.07em;cursor:pointer}.decalude-recap-trigger span{color:#fff6ca;margin-right:5px}.decalude-recap-trigger:disabled{opacity:.7;cursor:wait}
@keyframes decalude-frame-glow{0%,100%{opacity:.72;filter:saturate(.9)}50%{opacity:1;filter:saturate(1.25)}}

.decalude-join-card{width:100%;display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:13px;cursor:pointer;touch-action:manipulation;color:#f6e8b4}
.decalude-join-card img{width:42px;height:42px}.decalude-join-card>div{flex:1;min-width:0}.decalude-join-card strong{display:block;font-size:16px;letter-spacing:.04em}.decalude-join-card span{display:block;color:#ae9b72;font-size:9px;margin-top:2px}.decalude-join-card b{color:#e9c75f;font-size:18px}

@media (max-height:620px){.decalude-home-header{padding-top:43px}.decalude-portal-button,.decalude-points-button{top:4px}.decalude-home-brand img{width:36px;height:36px}.decalude-home-brand h1{font-size:24px}.decalude-home-subtitle{margin-top:2px}.decalude-home-ornament{height:13px}.decalude-home-content{gap:4px}.decalude-home-intro{padding:5px 8px}.decalude-home-list{gap:3px}.decalude-recap-content{gap:5px}.decalude-recap-victory{padding:5px}.decalude-ranking-row{padding:2px}.decalude-recap-history button{height:24px}.decalude-next-game{height:36px}.decalude-recap-actions .decalude-secondary{height:24px}.decalude-points-content{padding-top:5px;gap:5px}.decalude-points-grid article{padding:6px}.decalude-points-grid p{font-size:8.5px}.decalude-points-formula{padding:6px}.decalude-points-note{font-size:8px}}
@media (prefers-reduced-motion:reduce){.decalude-home-brand img,.decalude-screen-frame{animation:none}}


/* Ecran de jeu autonome commun a toutes les epreuves Decalude. */
.decalude-game-chrome{
  position:fixed;
  inset:0;
  z-index:20058;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  overflow-x:hidden;
  overflow-y:auto;
  padding:max(16px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom));
  font-family:Nunito,system-ui,sans-serif;
  color:#2b1a05;
  background:
    radial-gradient(circle at 50% -12%,rgba(255,249,197,.92),transparent 35%),
    radial-gradient(circle at 0 55%,rgba(105,57,7,.2),transparent 40%),
    linear-gradient(145deg,#8b5c12 0%,#e4bd58 29%,#b37a1d 55%,#f0d477 78%,#8b5910 100%);
  pointer-events:auto;
}
.decalude-game-chrome::before{
  content:'';
  position:fixed;
  inset:5px;
  z-index:-1;
  border:1px solid rgba(255,244,177,.78);
  border-radius:16px;
  box-shadow:inset 0 0 0 2px rgba(75,42,5,.32),inset 0 0 42px rgba(73,38,2,.25),0 0 18px rgba(255,219,105,.45);
  pointer-events:none;
}
.decalude-game-chrome>header,
.decalude-game-stage,
.decalude-game-controls{
  width:100%;
  max-width:720px;
  flex:none;
  box-sizing:border-box;
}
.decalude-game-chrome>header{
  position:relative;
  display:block;
  min-height:82px;
  padding:15px 160px 13px 18px;
  border:1px solid #f5db88;
  border-radius:16px;
  background:linear-gradient(120deg,#171006,#49300e 52%,#211506);
  box-shadow:0 5px 18px rgba(55,30,2,.38),inset 0 0 22px rgba(255,208,74,.1);
  color:#fff0b4;
}
.decalude-game-chrome>header small{
  display:block;
  color:#d7bd78;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.02em;
}
.decalude-game-chrome>header strong{
  display:block;
  margin-top:5px;
  color:#fff5cf;
  font-size:25px;
  line-height:1.05;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.decalude-game-progress{
  position:absolute;
  right:17px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  text-align:right;
}
.decalude-game-progress span{
  color:#f1cf68;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.08em;
}
.decalude-game-progress b{
  color:#ffe27d;
  font-size:16px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.decalude-game-stage{
  --decalude-stage-ratio:1;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:260px;
  aspect-ratio:var(--decalude-stage-ratio);
  overflow:hidden;
  padding:12px;
  border:2px solid #65420b;
  border-radius:18px;
  background:
    linear-gradient(#15120c,#15120c) padding-box,
    linear-gradient(130deg,#fff0a9,#8b5b12 42%,#f6d36d 72%,#6f4508) border-box;
  box-shadow:0 8px 24px rgba(60,31,0,.42),inset 0 0 24px rgba(0,0,0,.55);
  pointer-events:auto;
}
.decalude-game-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  padding:11px;
  border:1px solid #f0d27a;
  border-radius:16px;
  background:linear-gradient(120deg,#171006,#3d290d 52%,#1b1207);
  box-shadow:0 5px 18px rgba(55,30,2,.38);
}
.decalude-game-controls button{
  min-width:0;
  min-height:48px;
  padding:8px 10px;
  border:1px solid #9c752d;
  border-radius:10px;
  background:#1a140b;
  color:#edcf75;
  font:900 13px/1.15 Nunito,system-ui,sans-serif;
  letter-spacing:.015em;
  cursor:pointer;
  touch-action:manipulation;
}
.decalude-game-controls button[data-action="restart"]{color:#f5dda0}
.decalude-game-controls button[data-action="exit"]{background:#35240d;border-color:#d3a640;color:#ffe6a0}
.decalude-game-controls button.active{background:#e1bd56;color:#241704}
.decalude-game-controls button:disabled{opacity:.4;cursor:default}
.decalude-game-chrome.is-complete .decalude-game-controls button[data-action]{display:none}
.decalude-game-controls .decalude-next{
  display:block;
  grid-column:1/-1;
  min-height:54px;
  border-color:#fff0a8;
  background:linear-gradient(115deg,#8b5a17,#f2d06d 48%,#a66e1e);
  color:#231604;
  font-size:15px;
  letter-spacing:.08em;
}
.decalude-native-header,
.decalude-native-controls,
.decalude-native-common{visibility:hidden!important}
.decalude-confirm{
  position:fixed;
  inset:0;
  z-index:20080;
  display:grid;
  place-items:center;
  padding:20px;
  background:#241704d9;
  font-family:Nunito,system-ui,sans-serif;
}
.decalude-confirm>div{
  width:min(390px,100%);
  box-sizing:border-box;
  padding:27px 21px;
  border:1px solid #f0d071;
  border-radius:18px;
  background:radial-gradient(circle at 50% 0,#503611,#151008 68%);
  box-shadow:0 0 34px #7f4e0a99;
  text-align:center;
  color:#f1e4c5;
}
.decalude-confirm small{color:#e1bd59;font-size:11px;font-weight:1000;letter-spacing:.2em}
.decalude-confirm h2{margin:7px 0;color:#fff2bd;font-size:23px}
.decalude-confirm p{margin:0 0 20px;color:#c3b596;font-size:14px;line-height:1.45}
.decalude-confirm nav{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.decalude-confirm button{min-height:46px;border:1px solid #846728;border-radius:9px;background:#1a140b;color:#e0c36b;font:900 12px Nunito,system-ui,sans-serif}
.decalude-confirm button:last-child{border-color:#f1d273;background:linear-gradient(135deg,#9a681d,#f1c954);color:#160f05}

.decalude-tableau-actif .shell>header{visibility:hidden!important}
.decalude-tableau-actif #view>.tools,
.decalude-tableau-actif #view>.row{visibility:hidden!important}
.decalude-complete .gagne-anim,
.decalude-complete .voile.gagne{display:none!important}

/* The native board is extracted into Decalude; campaign screens stay unchanged. */
.decalude-native-root{visibility:hidden!important}
.decalude-game-stage .decalude-board-theme{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  transform:none!important;
  z-index:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
  visibility:visible!important;
}
.decalude-game-stage .decalude-board-zone{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  z-index:1!important;
  visibility:visible!important;
  margin:0!important;
  max-width:100%!important;
  max-height:100%!important;
}
.decalude-game-stage .decalude-board-zone *{visibility:visible!important}
.decalude-game-stage canvas.decalude-board-zone{
  width:100%!important;
  height:auto!important;
  object-fit:contain;
}
.decalude-game-stage .decalude-board-fill{
  flex:1 1 auto!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
/* Fiat Lux : grille CSS aux proportions du tableau (largeur --fl-bw posée par la scène). */
.decalude-game-stage [data-decalude-game="fiatlux"]>.decalude-board-zone{
  display:grid!important;
  flex:none!important;
  width:var(--fl-bw,100%)!important;
  height:auto!important;
  margin:0!important;
}
.decalude-game-stage [data-decalude-game="unruly"]>.decalude-board-zone{
  width:100%!important;
  height:100%!important;
  padding:0!important;
}
.decalude-game-stage [data-decalude-game="dotlink"]>.decalude-board-zone{
  width:100%!important;
  height:100%!important;
  padding:0!important;
}
.decalude-game-stage [data-decalude-game="dotlink"] .cadre{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.decalude-game-stage [data-decalude-game="dotlink"] svg.grille{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
}
.decalude-game-stage :is([data-decalude-game="bridges"],[data-decalude-game="blueberry"],[data-decalude-game="circlesum"],[data-decalude-game="slant"],[data-decalude-game="galaxies"])>.decalude-board-zone,
.decalude-game-stage :is([data-decalude-game="bridges"],[data-decalude-game="blueberry"],[data-decalude-game="circlesum"],[data-decalude-game="slant"],[data-decalude-game="galaxies"]) .cadre{
  width:100%!important;
  height:100%!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.decalude-game-stage :is([data-decalude-game="bridges"],[data-decalude-game="blueberry"],[data-decalude-game="circlesum"],[data-decalude-game="slant"],[data-decalude-game="galaxies"]) svg.grille{
  max-width:100%!important;
  max-height:100%!important;
}
.decalude-game-stage [data-decalude-game="champdevision"]>.decalude-board-zone,
.decalude-game-stage [data-decalude-game="sansaucundouble"]>.decalude-board-zone{width:100%!important}
.decalude-game-stage [data-decalude-game="rectangles"]>.decalude-board-zone{flex:none!important;transform:scale(var(--decalude-board-scale,1))!important;transform-origin:center!important}
.decalude-game-stage [data-decalude-game="samegame"]>.decalude-board-zone{flex:none!important;transform:scale(var(--decalude-board-scale,1))!important;transform-origin:center!important}
.decalude-arrow-theme .board-wrap{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.decalude-arrow-theme .board-wrap>.board{
  width:min(100%,calc(100dvh - 280px))!important;
  flex:none!important;
}
@media(min-width:720px){
  .decalude-game-chrome{padding-inline:24px}
  .decalude-game-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:430px){
  .decalude-game-chrome{gap:9px;padding-left:9px;padding-right:9px}
  .decalude-game-chrome>header{min-height:76px;padding:12px 135px 11px 14px}
  .decalude-game-chrome>header small{font-size:11px}
  .decalude-game-chrome>header strong{font-size:22px}
  .decalude-game-progress{right:13px;gap:4px}
  .decalude-game-progress span,.decalude-game-progress b{font-size:10px}
  .decalude-game-stage{min-height:230px;padding:8px;border-radius:14px}
  .decalude-game-controls{padding:8px;gap:7px}
  .decalude-game-controls button{min-height:45px;font-size:12px}
}
@media(max-height:620px) and (orientation:landscape){
  .decalude-game-chrome{align-items:stretch}
  .decalude-game-chrome>header,
  .decalude-game-stage,
  .decalude-game-controls{max-width:none}
}
@media(prefers-reduced-motion:reduce){.decalude-game-chrome::before{box-shadow:inset 0 0 0 2px rgba(75,42,5,.32)}}
/* Vitrail conserve son plateau natif, mais celui-ci doit remplir la scène
   Décalude après son extraction hors de l'écran du jeu. */
.decalude-game-stage .decalude-board-theme[data-decalude-game="filling"]{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
}
/* Pavé de Vitrail (chiffres + ⌫), extrait avec le plateau : sous la grille. */
.decalude-game-stage [data-decalude-game="filling"]>.pave{
  flex:none!important;
  width:100%!important;
  padding:0!important;
}
.decalude-game-stage [data-decalude-game="filling"] .pave.fini{visibility:hidden!important}
.decalude-game-stage [data-decalude-game="filling"]>.decalude-board-zone{
  width:100%!important;
  height:auto!important;
  flex:1 1 0!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
}
.decalude-game-stage [data-decalude-game="filling"] .plateau{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.decalude-game-stage [data-decalude-game="filling"] .cadre{
  max-width:100%!important;
  max-height:100%!important;
}
.decalude-game-stage [data-decalude-game="filling"] svg.grille{
  max-width:100%!important;
  max-height:100%!important;
  display:block!important;
  visibility:visible!important;
}
/* Secours pour Vitrail : son plateau SVG est extrait de la section native,
   dont la visibilité est masquée pendant le Décalude. */
.decalude-native-root[data-decalude-game="filling"]{visibility:visible!important;pointer-events:none!important;background:transparent!important}
.decalude-native-root[data-decalude-game="filling"]>*{visibility:hidden!important}
.decalude-game-stage [data-decalude-game="filling"],
.decalude-game-stage [data-decalude-game="filling"] *{visibility:visible!important}
/* Vitrail : exploiter toute la scène, avec le ratio 7×9 du tableau. */
.decalude-game-stage [data-decalude-game="filling"] .plateau,
.decalude-game-stage [data-decalude-game="filling"] .cadre{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
}
.decalude-game-stage [data-decalude-game="filling"] .cadre{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 1 auto!important;
}
.decalude-game-stage [data-decalude-game="filling"] svg.grille{
  max-width:100%!important;
  max-height:100%!important;
}
.decalude-game-stage [data-decalude-game="samegame"]>.decalude-board-zone{
  flex:none!important;
  width:324px!important;
  max-width:none!important;
}
.decalude-game-stage [data-decalude-game="samegame"]>.decalude-board-zone{
  margin-inline:auto!important;
}
.decalude-game-stage [data-decalude-game="filling"]>.decalude-board-zone,
.decalude-game-stage [data-decalude-game="filling"] .plateau,
.decalude-game-stage [data-decalude-game="filling"] .cadre{
  overflow:visible!important;
}
