.right-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; }
.right-aside svg { width: 17px; height: 17px; flex: none; }
.right-settings, .right-bets, .right-casino { background: var(--surface); border-radius: 4px; overflow: hidden; }
.right-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; }
.right-settings summary::-webkit-details-marker { display: none; }
.right-settings summary:hover { background: var(--surface-soft); }
.right-settings-body { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.right-settings select { width: 100%; background: var(--surface-raised); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 6px; font: inherit; }
.right-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(--ui-orange) 0 17%,transparent 17%) 1; }
.right-clear { display: grid; place-items: center; padding: 4px; border: 0; background: none; color: var(--text-inactive); cursor: pointer; }
.right-clear:hover { color: var(--text); }
.right-tabs { display: flex; background: var(--surface-raised); }
.right-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; }
.right-tabs button[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--ui-orange); }
.right-tabs button:hover { background: var(--surface-soft); }
.right-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; }
.right-bet-empty .bet-empty-icon { width: 70px; height: 48px; margin-bottom: 20px; }
.right-bet-empty strong { font-size: 13px; }
.right-bet-empty p { font-size: 12px; color: var(--text); }
.right-bet-actions { display: flex; align-items: center; gap: 9px; padding: 9px; }
.right-stake { display: flex; flex: 1; min-width: 0; gap: 6px; align-items: center; border: 1px solid #5e806a; border-radius: 6px; padding: 6px 10px; color: var(--text-inactive); }
.right-stake:focus-within { border-color: var(--ui-orange); }
.right-stake input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; }
.right-login { padding: 7px 22px; border-radius: 8px; background: var(--ui-orange); color: white; font-weight: 700; white-space: nowrap; }
.right-login:hover { background: var(--danger-hover); }
.right-game-tabs { background: var(--surface); }
.right-game-tabs button { flex: none; font-weight: 700; border-bottom: 0; border-top: 2px solid transparent; }
.right-game-tabs button[aria-selected="true"] { border-top-color: var(--ui-orange); }
.right-game-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 10px; }
.right-game-grid[hidden] { display: none; }
.right-game { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.right-game img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.right-game-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; background: rgba(12,33,27,.55); color: white; opacity: 0; transition: opacity .2s; }
.right-game:hover img { transform: scale(1.04); }
.right-game:hover .right-game-play, .right-game:focus-visible .right-game-play { opacity: 1; }
.right-aside :focus-visible, .right-aside-toggle:focus-visible { outline: 2px solid var(--ui-orange); outline-offset: -2px; }
.right-aside-close, .right-aside-toggle, .right-aside-backdrop { display: none; }
@media (min-width: 1280px) {
  .page-shell.has-right-aside { grid-template-columns: 220px minmax(0,1fr) 300px; gap: 16px; }
  .page-shell.has-right-aside:has(.page-side.is-collapsed) { grid-template-columns: 90px minmax(0,1fr) 300px; }
  .has-right-aside .hero-copy { width: 78%; padding: 32px; }
  .has-right-aside .hero h1 { font-size: 51px; }
  .has-right-aside .hero p { font-size: 17px; }
}
@media (max-width: 1279px) {
  .right-aside { display: none; }
  .right-aside.is-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; }
  .right-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; }
  .right-aside-toggle { display: block; position: fixed; right: 18px; bottom: 94px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--ui-orange); color: white; font: inherit; font-weight: 700; z-index: 35; cursor: pointer; box-shadow: var(--shadow); }
  .right-aside-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(6,18,13,.7); z-index: 80; }
  body:has(.right-aside.is-open) { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .right-game img, .right-game-play { transition: none; } }

.right-casino { position: relative; }
.right-game-tabs { padding-right: 34px; }
.right-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; }
.right-motion-toggle:hover { background: var(--surface-soft); color: var(--text); }
.right-motion-toggle[hidden] { display: none; }
.right-game img { transition: transform .2s, opacity 420ms ease-in-out; }
.right-game.is-changing img { opacity: 0; }
.right-game { animation: right-game-pulse 4.8s ease-in-out infinite; }
.right-game:nth-child(2) { animation-delay: -.8s; }
.right-game:nth-child(3) { animation-delay: -1.6s; }
.right-game:nth-child(4) { animation-delay: -2.4s; }
.right-game:nth-child(5) { animation-delay: -3.2s; }
.right-game:nth-child(6) { animation-delay: -4s; }
.right-casino:is(:hover, :focus-within, .is-paused) .right-game { animation-play-state: paused; }
@keyframes right-game-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(.974); } }
@media (prefers-reduced-motion: reduce) { .right-game { animation: none; } .right-game img { transition: none; } }

.right-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(34,42,37,.82); color: #fff; font-size: 10px; line-height: 1.2; pointer-events: auto; transition: opacity 420ms ease-in-out; }
.right-game-stats > span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.right-game-stats b { font-weight: 600; font-variant-numeric: tabular-nums; }
.right-game-stats svg { width: 14px; height: 12px; color: #66bd3a; }
.right-game-stats i { display: inline-block; width: 14px; color: #66bd3a; text-align: center; font-size: 14px; line-height: 12px; font-style: normal; font-weight: 800; }
.right-game.is-changing .right-game-stats { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .right-game-stats { transition: none; } }
