.beats-lab,.match-lab {
  position:relative;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-height:clamp(330px,58cqw,395px);
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:clamp(14px,3.2cqw,23px);
  padding:clamp(19px,4cqw,28px) clamp(20px,4.5cqw,32px);
  font-size:clamp(14px,2.4cqw,16px);
  font-variant-numeric:tabular-nums;
  line-height:1.4;
  text-align:left;
}
:is(.match-lab,.beats-lab) .lg-button {font-weight:650}
.studio-top,.studio-bottom,.studio-title,.beat-tempo,.match-actions,.beat-tools {
  display:flex;
  align-items:center;
  gap:10px;
}
.studio-top,.studio-bottom {justify-content:space-between}
.studio-title {font-size:clamp(19px,3.6cqw,25px);font-weight:800;letter-spacing:-.03em;color:inherit}
.studio-title svg {width:1.37em;height:1.37em;flex:none}
.beats-lab {
  background:radial-gradient(ellipse at 96% -14%,#354574,transparent 59%),#112140;
  color:#fff;
  --lg-fill:var(--aqua);
  --lg-foreground:#f8fdff;
  --lg-muted:#c2d2e7;
  --lg-field-glass:rgb(214 232 255 / 12%);
  --lg-field-glass-active:rgb(214 232 255 / 22%);
}
.beat-logo {color:#9feee6}
.beat-seq {
  display:grid;
  align-self:center;
  width:100%;
  gap:clamp(10px,2.3cqw,16px);
}
.beat-row {
  display:grid;
  align-items:center;
  grid-template-columns:clamp(39px,8cqw,54px) repeat(8,minmax(0,1fr));
  gap:clamp(6px,1.5cqw,12px);
}
.lane-0 {--note:#8ce6db}
.lane-1 {--note:#ffc274}
.lane-2 {--note:#c3afff}
.track-name {font-weight:650;color:var(--note)}
.beat-positions {font:600 13px/1.25 Arial,sans-serif;text-align:center;color:#a6b8d8}
.beat-positions span.is-tick {color:#fff;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.beats-lab .beat-pad {
  width:100%;
  --lg-control-pad:0px;
  --lg-field-glass:rgb(195 219 255 / 10%);
  --lg-field-glass-active:rgb(195 219 255 / 22%);
}
.beat-light {
  position:relative;
  display:block;
  flex:none;
  width:5px;
  height:5px;
  border-radius:20px;
  background:#a9bddd;
  pointer-events:none;
}
.beat-pad[aria-pressed="true"] {
  --lg-field-glass:color-mix(in srgb,var(--note) 87%,transparent);
  --lg-field-glass-active:var(--note);
}
.beat-pad[aria-pressed="true"] .beat-light {width:12px;height:4px;background:#102343}
.beat-pad.is-tick:not(:focus-visible) {outline:2px solid white;outline-offset:2px}
.beat-tempo {gap:14px;color:#c6d3ef;font-size:14px}
.beat-tempo b {font:600 12px Arial,sans-serif}
.beat-tempo .lg-segmented {--lg-tab-width:clamp(51px,9.1cqw,65px)}
.beats-lab .beats-play {--lg-field-glass:var(--aqua);--lg-field-glass-active:#b3f6ef;min-width:108px}
.match-lab {
  color:#093e35;
  background:#ddf4e8;
  --lg-fill:#085948;
  --lg-foreground:#093e35;
  --lg-muted:#285b50;
  --lg-field-glass:rgb(255 255 255 / 54%);
  --lg-field-glass-active:rgb(255 255 255 / 76%);
}
.match-lab .lg-segmented {--lg-tab-width:clamp(65px,12cqw,85px)}
.court-stage {
  --line:rgb(247 255 239 / 68%);
  position:relative;
  display:grid;
  grid-template:1fr 1fr / 1fr 1fr;
  align-items:center;
  justify-items:center;
  min-height:clamp(161px,31cqw,226px);
  border-radius:15px;
  background:#169872;
  padding:2.2% 3.5%;
  box-sizing:border-box;
  box-shadow:inset 0 0 0 1px rgb(18 107 67 / 14%),0 4px 0 #0f795829;
}
.court-lines,.court-lines i,.court-lines:before,.court-lines:after {position:absolute;pointer-events:none}
.court-lines {inset:6% 2.6%;border:1.5px solid var(--line)}
.court-lines:before,.court-lines:after {content:"";top:0;bottom:0;width:7%;background:#0877574d}
.court-lines:before {left:0;border-right:1.5px solid var(--line)}
.court-lines:after {right:0;border-left:1.5px solid var(--line)}
.court-lines i:first-child {inset:8% 0;border-block:1.5px solid var(--line)}
.court-lines i:nth-child(2) {inset:0 36%;border-inline:1.5px solid var(--line);background:#38ac823d}
.court-lines i:last-child {left:0;right:0;top:50%;height:1.5px;background:linear-gradient(to right,var(--line) 36%,transparent 36% 64%,var(--line) 64%)}
.court-net {
  position:absolute;
  top:2%;
  bottom:2%;
  left:50%;
  width:4px;
  margin-left:-2px;
  border-radius:5px;
  background:#fff;
  box-shadow:5px 0 #0246393d;
}
.court-net:before,.court-net:after {
  position:absolute;
  content:"";
  left:50%;
  width:10px;
  height:10px;
  border-radius:50%;
  background:white;
  transform:translateX(-50%);
  box-shadow:0 2px #076540;
}
.court-net:before {top:0}
.court-net:after {bottom:0}
.court-player {position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(6px,1.6cqw,12px);font-weight:700;color:#fff;font-size:clamp(16px,2.7cqw,20px);line-height:1.3}
.court-player span {color:#fff;text-shadow:0 1px 3px #014939}
.court-player small {display:block;margin-top:2px;font-size:12px;color:#fff;font-weight:550}
.court-shirt {width:clamp(36px,7.7cqw,54px);height:auto;filter:drop-shadow(0 3px 1px #06413650)}
.side-a {grid-column:1;color:#ffdc69;--shirt-ink:#643213;justify-self:center;translate:-9%}
.side-b {grid-column:2;flex-direction:row-reverse;color:#2351ad;--shirt-ink:#fff;translate:9%}
.slot-0,.slot-2 {grid-row:1}
.slot-1,.slot-3 {grid-row:2}
.match-live {display:flex;align-items:center;gap:clamp(12px,2.5cqw,22px)}
.match-live strong {font-size:clamp(17px,3.1cqw,22px);font-weight:780;color:inherit;white-space:nowrap}
.match-live>span {font-size:14px;color:#1e5346;white-space:nowrap}
.match-live>span>span+span {margin-left:13px}
.match-live small {font-size:12px;color:#3c655a}
.match-lab .match-next {--lg-field-glass:rgb(7 86 109 / 94%);--lg-field-glass-active:#05586d;flex-direction:row-reverse}
@media (hover:hover) and (pointer:fine) {
  .beats-lab .lg-button:not(:disabled):hover {--lg-field-glass:#ffffff30}
  .beats-lab .beat-pad[aria-pressed="true"]:not(:disabled):hover {--lg-field-glass:var(--note)}
  .beats-lab .beats-play:not(:disabled):hover {--lg-field-glass:#b1f3ea}
  .match-lab .match-next:not(:disabled):hover {--lg-field-glass:#0a6882}
}
@container (max-width: 570px) {
  .match-live {flex-direction:column;gap:2px;align-items:flex-start}
  .match-live>span {font-size:13px}
  .beat-tempo {gap:8px}
  .beat-tempo b {display:none}
  .beats-lab .beats-play {min-width:94px}
}
@media (prefers-reduced-motion:no-preference) {
  .court-player {transition:transform .3s cubic-bezier(.2,.8,.3,1);animation:court-enter .32s cubic-bezier(.2,.8,.3,1)}
  .beat-light {transition:width .15s,background-color .15s}
  @keyframes court-enter {from{opacity:0;transform:translateY(6px) scale(.86)}}
}

.beats-lab[data-solo=true] :is(.lane-1,.lane-2) .track-name{opacity:.6}
