.play-page #machine .game-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  column-gap:14px;
}
.game-title { min-width:0; }
.play-page #machine .game-heading .play-mode { margin:0; }
.play-page #machine .game-heading .balance { min-width:0; text-align:right; }
.game-heading .balance strong { line-height:1.05; }
#restricted {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  padding:16px;
  border-radius:12px;
  background:var(--panel);
}
#restricted h1 { grid-area:1/1; margin:0; font-size:clamp(20px,5vw,34px); line-height:1.05; }
#restricted .play-mode { grid-area:1/2; margin:0; }
#restricted p { margin:0; color:var(--muted); font-size:13px; }
#restricted .secondary { justify-self:end; }

.play-page #machine[data-cabinet] .arena-column {
  grid-template-rows:repeat(7,min-content);
}
.machine[data-cabinet] #slot-win-details { grid-area:4/1; }
.machine[data-cabinet] #availability { grid-area:5/1; }
.machine[data-cabinet] #game-guide { grid-area:6/1; }
.machine[data-cabinet] .slot-paytable { grid-area:7/1; }
@media(min-width:860px) {
  .play-page #machine[data-cabinet] .arena-column { grid-template-rows:repeat(6,min-content); }
  .machine[data-cabinet] .slot-paytable { grid-area:1/2/span 6; }
}
.machine[data-cabinet] .slot-cabinet-body { padding-block-start:max(32px,2.3vw); }
.play-page #machine[data-cabinet] #play {
  border-color:#ffb576;
  background:var(--betly-orange);
  color:#231308;
}
.machine[data-cabinet] #stage > .game-win-effect:has(.slot-win-overlay) {
  align-items:start;
  padding:4px 8px 0;
}
.machine[data-cabinet] .slot-win-overlay {
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:8px;
  min-width:0;
  padding:3px 10px;
  border-radius:6px;
}
.machine[data-cabinet] .slot-win-overlay span {
  font-size:10px;
  white-space:nowrap;
}
.machine[data-cabinet] .slot-win-overlay strong {
  font-size:clamp(13px,3.8vw,19px);
  line-height:1.05;
  white-space:nowrap;
}
.slot-win-trace {
  position:absolute;
  z-index:3;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
.machine[data-cabinet] #stage:has(.slot-win-trace) .reel-cell.winner:not(.active-payline) {
  animation:none;
  border-color:#bd965c;
  box-shadow:inset 0 0 10px #f8c57731;
}
.machine[data-cabinet] .slot-win-details {
  margin:0;
  border:1px solid #5d4733;
  border-radius:8px;
  background:#1e1917;
}
.slot-win-details summary {
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
  padding:7px 9px;
  color:#ffdaa9;
  font-size:12px;
}
.slot-win-details summary::-webkit-details-marker { display:none; }
.slot-win-details summary small { margin-inline-start:auto; white-space:nowrap; color:#c9b9ab; }
.slot-win-details summary::after {
  content:"";
  width:6px;
  height:6px;
  border:solid #d0a773;
  border-width:0 1px 1px 0;
  transform:rotate(45deg);
}
.slot-win-details[open] summary::after { transform:rotate(225deg); }
.slot-win-details ol {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  list-style:none;
  padding:0 8px 8px;
  margin:0;
}
.slot-win-details .slot-win-choice {
  padding:5px 8px;
  border:1px solid #624d3b;
  border-radius:5px;
  background:#251f1b;
  color:#e6d7c6;
  font-size:11px;
}
.slot-win-choice[aria-pressed=true] { border-color:#d79554; color:#ffddb4; background:#3c2a1e; }

:is(.race-finish-place,.track,.race-dot)[data-lane="0"] { --lane-color:#6abaff; }
:is(.race-finish-place,.track,.race-dot)[data-lane="1"] { --lane-color:#eb95d8; }
:is(.race-finish-place,.track,.race-dot)[data-lane="2"] { --lane-color:#f5c770; }
:is(.race-finish-place,.track,.race-dot)[data-lane="3"] { --lane-color:#8dd6a2; }
.race-finish-headline { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:flex-end; gap:2px 8px; text-align:right; }
.race-finish-margin { color:#e4d1be; font-weight:600; white-space:nowrap; }
.race-finish-margin:empty,.race-finish-winner:empty { display:none; }
.race-finish-place {
  border-inline-start:3px solid var(--lane-color);
}
.race-finish-place:first-child[data-finished=true] { border-inline-start-color:var(--lane-color); }
.race-finish-place .race-finish-rank { color:var(--lane-color); }
.racecourse .track > span:first-child { color:var(--lane-color); }
.racecourse .track:not(:has(.race-winner)) > strong { box-shadow:inset 2px 0 var(--lane-color); }
.racecourse[data-timed-finish] .track:has(.race-winner) > strong {
  background:var(--lane-color);
  color:#161414;
}
.racecourse .race-dot { background:var(--lane-color); }
.racecourse[data-finish-photo=true] .race-surface {
  box-shadow:inset 0 0 0 1px #efb86e;
}
@media(max-width:740px) {
  .play-page #machine .game-heading { gap:5px; margin-block-end:6px; padding-block-end:6px; }
  .play-page #machine .game-heading h1 {
    overflow-wrap:anywhere;
    font-size:clamp(17px,4.85vw,25px);
    line-height:1.02;
    margin:2px 0 0;
  }
  .play-page #machine .game-heading .eyebrow {
    font-size:8px;
    letter-spacing:.06em;
  }
  .play-page .play-mode a { min-width:0; min-height:30px; align-content:center; padding:3px 6px; font-size:11px; }
  .play-page #machine .game-heading .balance { max-width:97px; gap:2px; padding:4px 5px; }
  .play-page #machine .game-heading .balance small { font-size:8px; letter-spacing:.02em; line-height:1.1; }
  .play-page #machine .game-heading .balance strong { font-size:16px; }
  .play-page #machine[data-guest] .game-heading .balance strong { font-size:11px; }
  .play-page #machine #manage-credits { font-size:9px; line-height:1.1; }
  .machine[data-cabinet] .slot-cabinet-body { padding-block-start:29px; }
  .race-finish-headline { gap:1px 5px; }
  .race-finish-margin { font-size:9px; }
}
