.slip-aside {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
  max-height: calc(100dvh - var(--header-height) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-soft) transparent;
  display: grid;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
}
.slip-aside svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.slip-settings,
.slip-bets,
.slip-casino {
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}
.slip-settings summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  list-style: none;
}
.slip-settings summary::-webkit-details-marker {
  display: none;
}
.slip-settings summary:hover {
  background: var(--surface-soft);
}
.slip-settings-body {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.slip-settings select {
  width: 100%;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
  font: inherit;
}
.slip-panel-heading {
  min-height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--flag-red) 0 17%, transparent 17%)
    1;
}
.slip-clear {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--text-inactive);
  cursor: pointer;
}
.slip-clear:hover {
  color: var(--text);
}
.slip-tabs {
  display: flex;
  background: var(--surface-raised);
}
.slip-tabs button {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}
.slip-tabs button[aria-selected="true"] {
  color: var(--text-strong);
  border-bottom-color: var(--flag-red);
}
.slip-tabs button:hover {
  background: var(--surface-soft);
}
.slip-bet-empty {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 30px 12px 38px;
  background: var(--surface-raised);
  text-align: center;
}
.slip-bet-empty .page-bet-empty-icon {
  width: 70px;
  height: 48px;
  margin-bottom: 20px;
}
.slip-bet-empty strong {
  font-size: 13px;
}
.slip-bet-empty p {
  font-size: 12px;
  color: var(--text);
}
.slip-bet-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
}
.slip-stake {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 6px;
  align-items: center;
  border: 1px solid #668bb7;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-inactive);
}
.slip-stake:focus-within {
  border-color: var(--flag-red);
}
.slip-stake input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.slip-login {
  padding: 7px 22px;
  border-radius: 8px;
  background: var(--flag-red);
  color: white;
  font-weight: 700;
  white-space: nowrap;
}
.slip-login:hover {
  background: var(--danger-hover);
}
.slip-game-tabs {
  background: var(--surface);
}
.slip-game-tabs button {
  flex: none;
  font-weight: 700;
  border-bottom: 0;
  border-top: 2px solid transparent;
}
.slip-game-tabs button[aria-selected="true"] {
  border-top-color: var(--flag-red);
}
.slip-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.slip-game-grid[hidden] {
  display: none;
}
.slip-game {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
}
.slip-game img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.slip-game-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(9, 23, 43, 0.55);
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.slip-game:hover img {
  transform: scale(1.04);
}
.slip-game:hover .slip-game-play,
.slip-game:focus-visible .slip-game-play {
  opacity: 1;
}
.slip-aside :focus-visible,
.slip-aside-toggle:focus-visible {
  outline: 2px solid var(--flag-red);
  outline-offset: -2px;
}
.slip-aside-close,
.slip-aside-toggle,
.slip-aside-backdrop {
  display: none;
}
@media (min-width: 1280px) {
  .site-shell.page-has-right-aside {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .site-shell.page-has-right-aside:has(.site-side.state-collapsed) {
    grid-template-columns: 90px minmax(0, 1fr) 300px;
  }
  .page-has-right-aside .page-hero-copy {
    width: 78%;
    padding: 32px;
  }
  .page-has-right-aside .page-hero h1 {
    font-size: clamp(38px, 3.2vw, 50px);
  }
  .page-has-right-aside .page-hero p {
    font-size: 17px;
  }
}
@media (max-width: 1279px) {
  .slip-aside {
    display: none;
  }
  .slip-aside.state-open {
    display: grid;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 100%);
    max-height: 100dvh;
    padding: 12px;
    background: var(--body-bg);
    z-index: 81;
    align-content: start;
    overscroll-behavior: contain;
  }
  .slip-aside-close {
    display: block;
    justify-self: end;
    border: 0;
    border-radius: 4px;
    padding: 0 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
  }
  .slip-aside-toggle {
    display: block;
    position: fixed;
    right: 18px;
    bottom: 94px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--flag-red);
    color: white;
    font: inherit;
    font-weight: 700;
    z-index: 35;
    cursor: pointer;
    box-shadow: var(--shadow);
  }
  .slip-aside-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 16, 32, 0.7);
    z-index: 80;
  }
  body:has(.slip-aside.state-open) {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slip-game img,
  .slip-game-play {
    transition: none;
  }
}

.slip-casino {
  position: relative;
}
.slip-game-tabs {
  padding-right: 34px;
}
.slip-motion-toggle {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 1;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.slip-motion-toggle:hover {
  background: var(--surface-soft);
  color: var(--text);
}
.slip-motion-toggle[hidden] {
  display: none;
}
.slip-game img {
  transition:
    transform 0.2s,
    opacity 420ms ease-in-out;
}
.slip-game.state-changing img {
  opacity: 0;
}
.slip-game {
  animation: right-game-pulse 4.8s ease-in-out infinite;
}
.slip-game:nth-child(2) {
  animation-delay: -0.8s;
}
.slip-game:nth-child(3) {
  animation-delay: -1.6s;
}
.slip-game:nth-child(4) {
  animation-delay: -2.4s;
}
.slip-game:nth-child(5) {
  animation-delay: -3.2s;
}
.slip-game:nth-child(6) {
  animation-delay: -4s;
}
.slip-casino:is(:hover, :focus-within, .state-paused) .slip-game {
  animation-play-state: paused;
}
@keyframes right-game-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.974);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slip-game {
    animation: none;
  }
  .slip-game img {
    transition: none;
  }
}

.slip-game-stats {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 1;
  display: grid;
  gap: 1px;
  min-width: 62px;
  padding: 4px 7px 4px 5px;
  border-radius: 14px;
  background: rgba(20, 35, 56, 0.82);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  pointer-events: auto;
  transition: opacity 420ms ease-in-out;
}
.slip-game-stats > span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.slip-game-stats b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slip-game-stats svg {
  width: 14px;
  height: 12px;
  color: #82c4ff;
}
.slip-game-stats i {
  display: inline-block;
  width: 14px;
  color: #82c4ff;
  text-align: center;
  font-size: 14px;
  line-height: 12px;
  font-style: normal;
  font-weight: 800;
}
.slip-game.state-changing .slip-game-stats {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .slip-game-stats {
    transition: none;
  }
}
