/* C111 gameplay composition. Training is the approved reference consumer. */
:is(#materialStage,#playfield)>.card-game-layout{box-sizing:border-box;--serif:"Noto Serif SC","Songti SC",serif;--mono:"DM Mono",monospace;--sans:"PingFang SC","Microsoft YaHei",sans-serif;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:56px minmax(0,1fr) 160px;gap:12px 24px;padding:16px 24px 12px;background:#0c0c10;color:#eee9df;font:400 14px/1.7 var(--serif);--card-game-action-width:156px;--card-game-action-gap:24px}
:is(#materialStage,#playfield)>.card-game-layout .training-a-progress{grid-column:1/-1;grid-row:1;align-self:start;display:flex;gap:24px;width:max-content;max-width:100%;background:none}
:is(#materialStage,#playfield)>.card-game-layout .training-a-decision{position:relative;grid-column:1;grid-row:2;align-self:center;max-width:440px;min-width:0;min-height:0;max-height:100%;overflow:auto;scrollbar-width:thin}
:is(#materialStage,#playfield)>.card-game-layout .training-a-decision small{font:500 10px/1.2 var(--mono);letter-spacing:2px;color:#bcb9b2}
:is(#materialStage,#playfield)>.card-game-layout .training-a-decision h1{font:600 20px/1.2 var(--serif);margin:12px 0}
:is(#materialStage,#playfield)>.card-game-layout .training-a-attributes{display:flex;gap:16px;margin:0 0 24px;color:#bcb9b2;font:400 11px/1.5 var(--sans)}
:is(#materialStage,#playfield)>.card-game-layout .training-a-score{display:flex;gap:12px;align-items:baseline}
:is(#materialStage,#playfield)>.card-game-layout .training-a-score>strong{font:600 32px/1.1 var(--mono);color:#e4c48d}
:is(#materialStage,#playfield)>.card-game-layout .training-a-score>span{font:400 11px/1.5 var(--sans);color:#bcb9b2}
:is(#materialStage,#playfield)>.card-game-layout .training-a-meter{position:relative;height:4px;background:#ffffff18;margin:16px 0 12px}
:is(#materialStage,#playfield)>.card-game-layout .training-a-meter>i{display:block;height:100%;max-width:100%;background:#e4c48d}
:is(#materialStage,#playfield)>.card-game-layout .training-a-meter>span{position:absolute;top:-4px;height:12px;width:1px;background:#eee9df}
:is(#materialStage,#playfield)>.card-game-layout .training-a-thresholds{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font:500 10px/1.2 var(--mono);color:#bcb9b2}
:is(#materialStage,#playfield)>.card-game-layout .training-a-stage-art{position:absolute;inset:82px 4% auto auto;width:min(54vw,calc((100dvh - 340px)*1.6));height:auto;aspect-ratio:8/5;transform:none;background:transparent;overflow:visible;z-index:1}
:is(#materialStage,#playfield)>.card-game-layout .training-a-stage-art::after{content:none}
:is(#materialStage,#playfield)>.card-game-layout .training-a-stage-art wqxt-card-tile{width:100%;height:auto;aspect-ratio:8/5}
:is(#materialStage,#playfield)>.card-game-layout .training-a-selection{position:absolute;inset:30px 4% auto auto;width:max-content;max-width:54%;display:flex;align-items:center;justify-content:flex-end;gap:24px;padding:0;margin:0;background:none;grid-area:auto;z-index:3}
:is(#materialStage,#playfield)>.card-game-layout .training-a-contribution{display:flex;gap:16px;font:400 12px/1.5 var(--serif)}
:is(#materialStage,#playfield)>.card-game-layout .training-a-contribution b{font:600 14px/1.2 var(--mono);color:#e4c48d}
:is(#materialStage,#playfield)>.card-game-layout .training-a-skill{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:max-content;min-width:0;min-height:44px;height:auto;padding:8px 0;border:0;background:none;color:#eee9df;font:600 14px/1 var(--serif);flex:none}
:is(#materialStage,#playfield)>.card-game-layout .training-a-skill>span{display:inline-block}
:is(#materialStage,#playfield)>.card-game-layout .training-a-pool{grid-column:1/-1;grid-row:3;align-self:end;display:flex;align-items:end;min-width:0;width:auto;height:160px;margin:0 calc(var(--card-game-action-width) + var(--card-game-action-gap)) 0 0;padding:4px 0 8px;gap:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;justify-content:flex-start}
:is(#materialStage,#playfield)>.card-game-layout .training-a-footer{position:static;inset:auto;transform:none;grid-column:1/-1;grid-row:3;justify-self:end;align-self:end;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:8px;width:var(--card-game-action-width);height:auto;min-width:0;min-height:0;padding:0;border:0;pointer-events:auto}
:is(#materialStage,#playfield)>.card-game-layout .training-a-footer wqxt-action-control{width:100%;min-height:44px;height:auto}
:is(#materialStage,#playfield)>.card-game-layout .training-a-footer .selection-copy{display:none}
:is(#materialStage,#playfield)>.card-game-layout wqxt-card-rail-controls{right:204px;bottom:62px}
@media(max-width:1000px),(max-height:560px){
 :is(#materialStage,#playfield)>.card-game-layout{grid-template-rows:36px minmax(0,1fr) 112px;gap:4px 16px;padding:4px 14px 12px;--card-game-action-width:136px;--card-game-action-gap:16px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-progress{gap:16px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-decision>small,:is(#materialStage,#playfield)>.card-game-layout .training-a-decision .mainline-target-copy>small{display:none}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-decision h1{font-size:17px;margin:4px 0}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-attributes{gap:12px;margin:0 0 4px;font-size:10px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-score{gap:8px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-score>strong{font-size:26px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-score>span{font-size:10px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-meter{margin:4px 0 8px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-thresholds{gap:4px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-stage-art{inset:40px 14px auto auto;width:min(44vw,calc((100dvh - 240px)*1.6))}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-selection{inset:-8px 14px auto auto;max-width:calc(100% - 350px);gap:12px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-contribution{gap:12px;font-size:10px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-contribution b{font-size:13px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-skill{padding:0;font-size:12px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-pool{height:123px;padding:4px 0;gap:8px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-footer{gap:4px}
 :is(#materialStage,#playfield)>.card-game-layout wqxt-card-rail-controls{right:174px;bottom:45px}
}

:is(#materialStage,#playfield)>.card-game-layout .hand-card{border:0;background:none;box-shadow:none;outline:0;transform:none!important;filter:none;opacity:1}

.card-game-layout .training-a-decision:focus-visible{outline:2px solid #e4c48d;outline-offset:-2px}
@media(max-width:1000px),(max-height:560px){
 :is(#materialStage,#playfield)>.card-game-layout .training-a-decision{max-height:calc(100% - 12px)}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-decision h1{margin:0 0 4px}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-attributes{margin:0}
 :is(#materialStage,#playfield)>.card-game-layout .training-a-meter{margin:2px 0 4px}
 .card-game-layout .mainline-question{margin:0}
}
