/* Full viewport shell. The playable canvas contains at uniform scale; only the decorative art covers. */
.solo100 #app[data-solo-mode=duel]{--chrome151:116px;max-width:none;width:100%;padding:0;}
.solo100 #app[data-solo-mode=duel]>.environment-nav,
.solo100 #app[data-solo-mode=duel]>.topbar,
.solo100 #app[data-solo-mode=duel]>.mode-tabs100{padding-inline:12px;}
.solo100 #app[data-solo-mode=duel] .workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);grid-template-rows:40px minmax(0,1fr) 112px 28px;gap:0;width:100%;max-width:none;height:calc(100dvh - var(--chrome151));min-height:360px;margin:0;padding:0;position:relative;}
.solo100 #app[data-solo-mode=duel] .battle-status150{grid-area:1/1/2/-1;display:flex;align-items:center;justify-content:space-between;width:100%;max-width:none;max-height:none;border:0;border-radius:0;overflow:hidden;padding:0 12px;background:#102733;}
.solo100 #app[data-solo-mode=duel] .battle-status150 .arena-bar{display:flex;flex-direction:row;align-items:center;gap:18px;min-height:40px;height:40px;padding:0;border:0;background:transparent;}
.solo100 #app[data-solo-mode=duel] .battle-status150 .wave-info{display:flex;flex-wrap:nowrap;gap:10px;font-size:12px;}
.solo100 #app[data-solo-mode=duel] .wave-info strong{width:auto;font-size:13px;letter-spacing:0;}
.solo100 #app[data-solo-mode=duel] .wave-info time{font-size:12px;margin:0;}
.solo100 #app[data-solo-mode=duel] .battle-status150 .arena-stats,
.solo100 #app[data-solo-mode=duel] .battle-status150 .arena-stats strong{font-size:14px;}
.solo100 #app[data-solo-mode=duel] .solo-playback123{display:flex;gap:4px;}
.solo100 #app[data-solo-mode=duel] .solo-playback123 button{min-height:30px!important;padding:3px 8px;}
.solo100 #app[data-solo-mode=duel] .battle-status150 .duel-versus{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:0;padding:0;background:transparent;font-size:11px;}
.solo100 #app[data-solo-mode=duel] .arena-panel{grid-area:2/1/3/-1;align-self:stretch;display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;container-type:size;border:0;border-radius:0;position:relative;isolation:isolate;overflow:hidden;background:#20383d;box-shadow:none;}
.solo100 #app[data-solo-mode=duel] .arena-panel::before{content:none;}
.solo100 #app[data-solo-mode=duel] #stage{width:min(100cqw,calc(100cqh * 600 / 747));height:auto;aspect-ratio:600/747;min-height:0;flex:none;border-radius:0;overflow:hidden;box-shadow:0 0 28px #05171a88;}
.solo100 #app[data-solo-mode=duel] #arena{width:100%;height:auto;aspect-ratio:600/747;}
.solo100 #app[data-solo-mode=duel] .duel-controls{grid-area:3/1/4/2;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:100%;height:100%;max-height:none;padding:8px 12px;gap:5px;border:0;border-top:1px solid #93ced344;border-radius:0;background:#142e3d;overflow:visible;}
.solo100 #app[data-solo-mode=duel] .duel-deck-title{margin:0;font-size:11px;min-height:14px;}
.solo100 #app[data-solo-mode=duel] .solo-actions button{min-height:48px;font-size:13px;}
.solo100 #app[data-solo-mode=duel] #upgrade-level{margin:0;font-size:10px;line-height:14px;}
.solo100 #app[data-solo-mode=duel] .battle-power150{grid-area:3/2/4/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.8fr);grid-template-rows:1fr auto;align-items:center;align-self:stretch;gap:4px 12px;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:8px 12px;border:0;border-top:1px solid #93ced344;border-radius:0;background:#142e3d;overflow:visible;}
.solo100 #app[data-solo-mode=duel] .battle-power150 h2{display:none;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy{grid-column:1;grid-row:1/3;padding:8px;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy span,
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy small{font-size:10px;line-height:1.45;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy div{margin:5px 0;}
.solo100 #app[data-solo-mode=duel] #ability-cast{grid-column:2;grid-row:1;min-height:48px;width:100%;margin:0;}
.solo100 #app[data-solo-mode=duel] #power-info{grid-column:2;grid-row:2;font-size:10px;line-height:14px;}
.solo100 #app[data-solo-mode=duel] #ability-info{grid-column:1;grid-row:1/3;font-size:11px;line-height:1.5;}
.solo100 #app[data-solo-mode=duel] .battle-links147{grid-area:4/1/5/-1;margin:0;padding:0;align-items:center;font-size:10px;background:#102733;}
.solo100 #app[data-solo-mode=duel] #duel-settings{width:100%;max-width:800px;margin:0 auto;border-radius:0;}
.solo100 #app[data-solo-mode=duel][data-playing151=true],
.solo100 #app[data-solo-mode=duel][data-immersive151=true],
.solo100 #app[data-solo-mode=duel]:fullscreen{--chrome151:32px;overflow:auto;}
.solo100 #app[data-solo-mode=duel]:is([data-playing151=true],[data-immersive151=true],:fullscreen)>.environment-nav,
.solo100 #app[data-solo-mode=duel]:is([data-playing151=true],[data-immersive151=true],:fullscreen)>.mode-tabs100{display:none;}
.solo100 #app[data-solo-mode=duel]:is([data-playing151=true],[data-immersive151=true],:fullscreen)>.topbar{height:32px;}
@media(min-width:1000px){
.solo100 #app[data-solo-mode=duel] #stage{width:min(100cqw,calc(100cqh * 600 / 555));aspect-ratio:600/555;}
.solo100 #app[data-solo-mode=duel] #arena{aspect-ratio:600/555;}
}
@media(max-width:699px){
.solo100 #app[data-solo-mode=duel] .workspace{grid-template-rows:40px minmax(0,1fr) 88px 88px 28px;min-height:500px;}
.solo100 #app[data-solo-mode=duel] .duel-controls{grid-area:3/1/4/-1;padding:5px 8px;gap:3px;}
.solo100 #app[data-solo-mode=duel] .battle-power150{grid-area:4/1/5/-1;padding:5px 8px;grid-template-columns:minmax(0,1fr) minmax(130px,.7fr);}
.solo100 #app[data-solo-mode=duel] .battle-links147{grid-area:5/1/6/-1;}
.solo100 #app[data-solo-mode=duel] .battle-status150 .duel-versus{display:none;}
.solo100 #app[data-solo-mode=duel] .battle-status150 .arena-bar{width:100%;justify-content:space-between;gap:8px;}
.solo100 #app[data-solo-mode=duel] .solo-actions button{min-height:42px;}
.solo100 #app[data-solo-mode=duel] #upgrade-level{font-size:9px;}
}
/* Keep keyboard focus and button clicks from scrolling the active battlefield. */
body.solo100:has(#app[data-solo-mode=duel][data-playing151=true]){overflow:hidden;}
.solo100 #app[data-solo-mode=duel][data-playing151=true]{height:100dvh;overflow:hidden;}

/* Arena152: one opaque canvas fills the scene, with all actions grouped below. */
.solo100 #app[data-solo-mode=duel] .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:40px minmax(0,1fr) 52px 92px 24px;min-height:420px;}
.solo100 #app[data-solo-mode=duel] .arena-panel{grid-area:2/1/3/-1;}
.solo100 #app[data-solo-mode=duel] .battle-power150{grid-area:3/1/4/-1;display:flex;justify-content:center;align-items:center;gap:16px;padding:4px 12px;background:#102733;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy{display:grid;grid-template-columns:auto auto;gap:1px 14px;border:0;padding:0;background:transparent;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy div{display:none;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy strong{grid-column:1;grid-row:1/3;align-self:center;font-size:13px;}
.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy span,.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy small{font-size:10px;}
.solo100 #app[data-solo-mode=duel] .duel-controls{grid-area:4/1/5/-1;align-items:stretch;padding:4px max(12px,calc((100% - 840px)/2));gap:3px;background:#142e3d;}
.solo100 #app[data-solo-mode=duel] .solo-actions{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:10px;}
.solo100 #app[data-solo-mode=duel] .solo-actions button,.solo100 #app[data-solo-mode=duel] #ability-cast{grid-area:auto;min-height:54px;height:54px;margin:0;font-size:13px;padding:5px 8px;}
.solo100 #app[data-solo-mode=duel] .battle-links147{grid-area:5/1/6/-1;}
@media(min-width:1000px){
 .solo100 #app[data-solo-mode=duel] #stage{width:100%;height:100%;aspect-ratio:auto;box-shadow:none;}
 .solo100 #app[data-solo-mode=duel] #arena{width:100%;height:100%;aspect-ratio:auto;}
}
@media(max-width:699px){
 .solo100 #app[data-solo-mode=duel] .workspace{grid-template-rows:40px minmax(0,1fr) 60px 100px 24px;min-height:500px;}
 .solo100 #app[data-solo-mode=duel] .battle-power150{gap:8px;padding:4px 8px;}
 .solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy{gap:2px 6px;}
 .solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy span,.solo100 #app[data-solo-mode=duel] .battle-power150 .solo-energy small{font-size:9px;}
 .solo100 #app[data-solo-mode=duel] .solo-actions{gap:6px;}
 .solo100 #app[data-solo-mode=duel] .solo-actions button,.solo100 #app[data-solo-mode=duel] #ability-cast{min-height:58px;height:58px;font-size:11px;}
}

/* Arena155: a proportional stage in a calm fullscreen PC frame. */
@media(min-width:1000px){
 .solo100 #app[data-solo-mode=duel]{color:#e9eee6;background:#11251f;}
 .solo100 #app[data-solo-mode=duel] .arena-panel{padding:8px 0;background:radial-gradient(ellipse at 50% 45%,#354b3b 0,#1d342b 55%,#10231e 100%);}
 .solo100 #app[data-solo-mode=duel] .arena-panel::before{content:"";position:absolute;inset:18px;z-index:-1;border:1px solid #d8be7f22;border-radius:16px;background:linear-gradient(115deg,#c7b37b04,transparent 35%,transparent 65%,#c7b37b04);pointer-events:none;}
 .solo100 #app[data-solo-mode=duel] #stage{width:min(calc(100cqw - 16px),calc((100cqh - 16px)*600/555));height:auto;aspect-ratio:600/555;border:1px solid #c6b78488;border-radius:12px;box-shadow:0 18px 45px #0005,0 0 0 5px #091b1844;}
 .solo100 #app[data-solo-mode=duel] #arena{width:100%;height:auto;aspect-ratio:600/555;}
 .solo100 #app[data-solo-mode=duel] .topbar,.solo100 #app[data-solo-mode=duel] .battle-status150,.solo100 #app[data-solo-mode=duel] .battle-links147{background:#10251f;border-color:#d8be7f22;color:#d3decf;}
 .solo100 #app[data-solo-mode=duel] .battle-power150{background:#132c25;border-top:1px solid #d8be7f33;}
 .solo100 #app[data-solo-mode=duel] .duel-controls{background:#183329;border-color:#d8be7f22;padding-inline:max(16px,calc((100% - 760px)/2));}
 .solo100 #app[data-solo-mode=duel] .solo-actions button{border:1px solid #c6b78466;border-radius:9px;background:linear-gradient(#2b473c,#203a30);color:#e2eadc;box-shadow:0 3px 8px #061b1944;transition:background .15s,transform .15s;}
 .solo100 #app[data-solo-mode=duel] .solo-actions #duel-summon{background:linear-gradient(#eddb9c,#c8ac62);color:#233326;border-color:#f0dfa9;}
 .solo100 #app[data-solo-mode=duel] .solo-actions button:enabled:hover{filter:brightness(1.1);transform:translateY(-1px);}
 .solo100 #app[data-solo-mode=duel] .solo-actions button:enabled:active{transform:translateY(1px);}
 .solo100 #app[data-solo-mode=duel] .solo-actions button:disabled{opacity:.5;}
 .solo100 #app[data-solo-mode=duel] .start-overlay>div{border:1px solid #c6b78488;border-radius:12px;background:#112c26ed;box-shadow:0 12px 32px #0005;}
 .solo100 #app[data-solo-mode=duel] .start-overlay #start{background:linear-gradient(#eddb9c,#c8ac62);color:#233326;border-color:#f0dfa9;border-radius:8px;}
 .solo100 #app[data-solo-mode=duel] .rank-choice149{background:#16392e;border-color:#d5bf83;color:#f3df9e;}
}

/* Garden158: matched slate paving and a soft decorative perimeter, PC only.
   Only the canvas edge is feathered. Board controls, cells and road centres
   remain fully visible; no filters, backdrop copies or animation are needed. */
@media(min-width:1000px){
 .solo100 #app[data-solo-mode=duel] #stage{width:min(calc(100cqw - 24px),calc((100cqh - 16px)*600/555));height:auto;aspect-ratio:600/555;border:0;border-radius:0;background:transparent;box-shadow:none;}
 .solo100 #app[data-solo-mode=duel] #arena{width:100%;height:auto;aspect-ratio:600/555;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 1.8%,#000 98.2%,transparent),linear-gradient(to bottom,transparent,#000 .65%,#000 99%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent,#000 1.8%,#000 98.2%,transparent),linear-gradient(to bottom,transparent,#000 .65%,#000 99%,transparent);
  mask-composite:intersect;
 }
 .solo100 #app[data-solo-mode=duel] .arena-panel{background:#b9ad97 url('./assets/optimized/castle-garden157.webp') center/cover no-repeat;}
 .solo100 #app[data-solo-mode=duel] .arena-panel::before{content:none;}
 .solo100 #app[data-solo-mode=duel] .start-overlay{background:transparent;}
}
