.xg-course-section{
  background:
    linear-gradient(180deg,rgba(0,229,255,.035),transparent 42%),
    var(--bg2)
}
.xg-course-head{
  display:grid;
  gap:8px;
  margin-bottom:28px
}
.xgw-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:18px;
  align-items:start;
  border:1px solid rgba(0,229,255,.14);
  border-radius:12px;
  background:rgba(255,255,255,.032);
  box-shadow:0 28px 90px rgba(0,0,0,.26);
  padding:18px
}
.xgw-stage,
.xgw-panel,
.xgw-box{
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(6,14,28,.58)
}
.xgw-stage{
  display:grid;
  gap:12px;
  padding:14px
}
.xgw-presets{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px
}
.xgw-presets button{
  display:grid;
  gap:4px;
  min-height:58px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  color:#fff;
  cursor:pointer;
  padding:9px 10px;
  text-align:left;
  transition:all .18s ease
}
.xgw-presets button:hover{
  border-color:rgba(0,255,135,.35);
  background:linear-gradient(180deg,rgba(0,255,135,.13),rgba(255,255,255,.018));
  transform:translateY(-1px)
}
.xgw-presets strong{
  overflow:hidden;
  font-size:12px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap
}
.xgw-presets span{
  display:-webkit-box;
  overflow:hidden;
  color:rgba(200,220,255,.62);
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2
}
.xgw-toolbar{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px
}
.xgw-tool{
  display:inline-grid;
  width:42px;
  min-width:42px;
  height:42px;
  place-items:center;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:rgba(240,246,255,.78);
  cursor:pointer;
  transition:all .18s ease
}
.xgw-tool:hover,
.xgw-tool.is-active{
  border-color:rgba(0,255,135,.5);
  background:rgba(0,255,135,.1);
  color:#fff;
  transform:translateY(-1px)
}
.xgw-tool:disabled{
  cursor:not-allowed;
  opacity:.42;
  transform:none
}
.xgw-pitch-wrap{
  display:grid;
  justify-items:center;
  border-radius:10px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015)),
    #07101e;
  padding:14px
}
.xgw-pitch{
  width:min(100%,520px);
  aspect-ratio:4/5;
  border-radius:9px;
  box-shadow:0 18px 48px rgba(0,0,0,.35);
  touch-action:none;
  user-select:none
}
.xgw-pitch.is-place{cursor:crosshair}
.xgw-grass{fill:#116b3d}
.xgw-stripe{fill:rgba(255,255,255,.052)}
.xgw-stripe-alt{fill:rgba(0,0,0,.055)}
.xgw-line,
.xgw-line-heavy{
  fill:none;
  stroke:rgba(255,255,255,.78);
  stroke-width:.24;
  vector-effect:non-scaling-stroke
}
.xgw-line-heavy{stroke-width:.38}
.xgw-dot{fill:rgba(255,255,255,.88)}
.xgw-goal{
  fill:rgba(255,255,255,.14);
  stroke:rgba(255,255,255,.9);
  stroke-width:.24;
  vector-effect:non-scaling-stroke
}
.xgw-shot-guide{
  fill:none;
  stroke:rgba(255,205,66,.82);
  stroke-dasharray:.7 .72;
  stroke-linecap:round;
  stroke-width:.2;
  vector-effect:non-scaling-stroke;
  pointer-events:none
}
.xgw-shot-guide line{
  stroke:rgba(255,255,255,.55);
  stroke-dasharray:.6 .85
}
.xgw-keeper-guide{pointer-events:none}
.xgw-keeper-guide path{
  fill:rgba(59,130,246,.17);
  stroke:rgba(147,197,253,.44);
  stroke-width:.16;
  vector-effect:non-scaling-stroke
}
.xgw-keeper-guide line{
  stroke:#93c5fd;
  stroke-linecap:round;
  stroke-width:1.05;
  vector-effect:non-scaling-stroke
}
.xgw-marker{
  cursor:grab;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.32))
}
.xgw-marker:active{cursor:grabbing}
.xgw-marker text{
  fill:#fff;
  font-size:2.2px;
  font-weight:900;
  pointer-events:none;
  text-anchor:middle
}
.xgw-shooter circle:first-child{
  fill:#00b7d8;
  stroke:#fff;
  stroke-width:.34;
  vector-effect:non-scaling-stroke
}
.xgw-shooter circle:nth-child(2){fill:#ffcd42}
.xgw-goalkeeper rect{
  fill:#3b82f6;
  stroke:#fff;
  stroke-width:.34;
  vector-effect:non-scaling-stroke
}
.xgw-defender circle{
  fill:#f43f5e;
  stroke:#fff;
  stroke-width:.32;
  vector-effect:non-scaling-stroke
}
.xgw-selected circle{
  stroke:#ffcd42;
  stroke-width:.58
}
.xgw-panel{
  display:grid;
  gap:12px;
  padding:12px
}
.xgw-result{
  display:grid;
  gap:12px;
  border-radius:10px;
  background:
    linear-gradient(135deg,rgba(0,229,255,.15),transparent 48%),
    rgba(255,255,255,.045);
  padding:16px
}
.xgw-result-top,
.xgw-prob{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px
}
.xgw-kicker,
.xgw-control span,
.xgw-metric span,
.xgw-factor-col>span,
.xgw-note{
  color:rgba(200,220,255,.55);
  font-size:11px;
  font-weight:800;
  letter-spacing:2.2px;
  text-transform:uppercase
}
.xgw-result-top strong{
  color:#fff;
  font-family:'Bebas Neue',sans-serif;
  font-size:52px;
  letter-spacing:1px;
  line-height:.86
}
.xgw-prob span{
  color:var(--green);
  font-family:'Bebas Neue',sans-serif;
  font-size:76px;
  letter-spacing:1px;
  line-height:.86
}
.xgw-prob small{
  align-self:flex-end;
  border:1px solid rgba(0,255,135,.18);
  border-radius:999px;
  background:rgba(0,255,135,.08);
  color:#d9fff0;
  padding:6px 10px;
  font-size:12px;
  font-weight:800
}
.xgw-bar{
  height:9px;
  border-radius:999px;
  background:
    linear-gradient(90deg,#00ff87,#ffcd42 58%,#f43f5e) 0 / var(--xg-fill) 100% no-repeat,
    rgba(255,255,255,.09)
}
.xgw-box{
  display:grid;
  gap:12px;
  padding:14px
}
.xgw-insight,
.xgw-keeper-panel,
.xgw-model-panel,
.xgw-share-panel{
  display:grid;
  gap:9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(6,14,28,.72);
  padding:14px
}
.xgw-insight span,
.xgw-keeper-panel span,
.xgw-panel-title span,
.xgw-model-grid span{
  color:rgba(200,220,255,.58);
  font-size:11px;
  font-weight:800;
  letter-spacing:2.2px;
  text-transform:uppercase
}
.xgw-insight p{
  margin:0;
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:1.5
}
.xgw-keeper-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px
}
.xgw-keeper-head strong{
  color:#d9fff0;
  font-size:14px;
  font-weight:900;
  text-align:right
}
.xgw-keeper-bar{
  height:8px;
  border-radius:999px;
  background:
    linear-gradient(90deg,#38bdf8,#00ff87) 0 / var(--keeper-fill) 100% no-repeat,
    rgba(255,255,255,.09)
}
.xgw-keeper-panel small{
  color:rgba(200,220,255,.62);
  font-size:11px;
  font-weight:800;
  line-height:1.45
}
.xgw-panel-title{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#00ff87
}
.xgw-model-panel>strong{
  color:#fff;
  font-size:15px;
  font-weight:900
}
.xgw-model-grid{
  display:grid;
  grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
  gap:7px 10px
}
.xgw-model-grid b{
  overflow:hidden;
  color:#eaf7ff;
  font-size:12px;
  font-weight:900;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap
}
.xgw-share-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px
}
.xgw-share-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  color:#fff;
  cursor:pointer;
  font-size:11px;
  font-weight:900
}
.xgw-share-actions button:hover{
  border-color:rgba(0,255,135,.32);
  background:rgba(0,255,135,.1)
}
.xgw-share-panel small{
  color:#d9fff0;
  font-size:11px;
  font-weight:900
}
.xgw-controls{
  display:grid;
  gap:12px
}
.xgw-control{
  display:grid;
  gap:8px
}
.xgw-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.xgw-seg{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:4px
}
.xgw-seg button{
  min-height:34px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:rgba(240,246,255,.62);
  cursor:pointer;
  font-size:12px;
  font-weight:800
}
.xgw-seg button.is-active{
  background:rgba(255,255,255,.1);
  color:#fff
}
.xgw-select{
  width:100%;
  min-height:40px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:#07101e;
  color:#fff;
  font:800 13px 'Inter',sans-serif;
  padding:0 10px
}
.xgw-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.08)
}
.xgw-metric{
  display:grid;
  gap:4px;
  background:rgba(6,14,28,.8);
  padding:12px
}
.xgw-metric:last-child:nth-child(odd){grid-column:1/-1}
.xgw-metric strong{
  color:#fff;
  font-size:18px;
  font-weight:900
}
.xgw-factors{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.08)
}
.xgw-factor-col{
  display:grid;
  align-content:start;
  gap:8px;
  background:rgba(6,14,28,.8);
  padding:12px
}
.xgw-factor{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 8px;
  border-radius:8px;
  background:rgba(255,255,255,.045);
  padding:8px
}
.xgw-factor strong{
  overflow:hidden;
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap
}
.xgw-factor small{
  color:rgba(200,220,255,.55);
  font-size:11px;
  font-weight:800
}
.xgw-factor em{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  color:#00ff87;
  font-size:12px;
  font-style:normal;
  font-weight:900
}
.xgw-factor-col:nth-child(2) .xgw-factor em{color:#fb7185}
.xgw-note{
  margin:0;
  text-align:right;
  letter-spacing:1.2px
}
@media (max-width:980px){
  .xgw-card{grid-template-columns:1fr}
  .xgw-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
  .xgw-result,
  .xgw-insight,
  .xgw-keeper-panel,
  .xgw-model-panel,
  .xgw-share-panel,
  .xgw-box,
  .xgw-metrics,
  .xgw-factors,
  .xgw-note{grid-column:auto}
}
@media (max-width:680px){
  .xgw-card{padding:12px}
  .xgw-stage,
  .xgw-panel{padding:10px}
  .xgw-presets,
  .xgw-panel,
  .xgw-grid-2,
  .xgw-metrics,
  .xgw-factors,
  .xgw-share-actions{grid-template-columns:1fr}
  .xgw-prob span{font-size:58px}
  .xgw-result-top strong{font-size:44px}
}
