/* FORMA WIN game page v105. One screen for demo and real. */
html body.fw36.play-page-active,
html body.fw36.game-active {
  padding-top: 64px !important;
  overflow-x: clip;
}
@media (min-width: 700px) {
  html body.fw36.play-page-active,
  html body.fw36.game-active {
    padding-top: 76px !important;
  }
}
@media (min-width: 1440px) {
  html body.fw36.play-page-active,
  html body.fw36.game-active {
    padding-top: 88px !important;
  }
}
/* Full-bleed shell so the play background fills the viewport.
   The game column itself stays on the site notebook width and is centered. */
html body.fw36.play-page-active #casinoApp,
html body.fw36.game-active #casinoApp,
html body.fw36.play-page-active .casino-layout,
html body.fw36.play-page-active #casinoMain,
html body.forma-ui.play-page-active #casinoApp,
html body.forma-ui.play-page-active .casino-layout,
html body.forma-ui.play-page-active .casino-main,
html body.fw36.play-page-active #pagePlay {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
html body.fw36.play-page-active #casinoApp,
html body.fw36.game-active #casinoApp,
html body.forma-ui.play-page-active #casinoApp {
  padding-top: 0 !important;
}
html body.fw36.play-page-active #casinoMain,
html body.forma-ui.play-page-active .casino-main {
  padding: 0 !important;
}
html body.fw36.play-page-active .fw36-header,
html body.fw36.game-active .fw36-header {
  display: flex !important;
  z-index: 80;
}
html body.fw36.play-page-active .fw36-nav,
html body.fw36.game-active .fw36-nav,
html body.fw36.play-page-active .fw36-footer,
html body.fw36.game-active .fw36-footer,
html body.fw36.play-page-active #casinoFooter,
html body.fw36.play-page-active #dunePlayLegacy,
html body.fw36.play-page-active .play-page-header,
html body.fw36.play-page-active .play-page-menu,
html body.fw36.play-page-active .play-page-menu-backdrop,
html body.fw36.play-page-active .play-page-winners,
html body.fw36.play-page-active .play-page-stats-modal,
html body.fw36.play-page-active .play-page-game-tools-popover,
html body.fw36.play-page-active .play-page-game-tools-backdrop,
html body.fw36.play-page-active .play-page-bg,
html body.fw36.play-page-active #gameFrameOverlay,
html body.fw36.play-page-active .casino-header,
html body.fw36.play-page-active .casino-sidebar,
html body.fw36.play-page-active #casinoSidebar,
html body.fw36.play-page-active .sidebar-backdrop,
html body.fw36.play-page-active .bottom-nav {
  display: none !important;
}

#pagePlay.forma-play {
  --pl-frame-chrome: 255px;
  display: block;
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - 64px);
  padding: 8px 16px 28px;
  background: var(--fw-bg, #07070b);
  color: #f2eff7;
  overflow-x: clip;
}
#pagePlay.forma-play:has(.pl-bonus-progress:not([hidden])) {
  --pl-frame-chrome: 335px;
}
@media (min-width: 700px) {
  #pagePlay.forma-play { min-height: calc(100svh - 76px); }
}
@media (min-width: 1440px) {
  #pagePlay.forma-play { min-height: calc(100svh - 88px); }
}
#formaPlayRoot {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  min-width: 0;
}
@media (min-width: 1440px) {
  #formaPlayRoot { max-width: 1488px; }
}
#formaPlayRoot svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.pl-heading { display: flex; align-items: center; gap: 24px; margin: 0 0 22px; min-height: 60px; }
.pl-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 40px; font-size: 13px; color: #b7a6ce; padding: 0 14px;
  background: #242228; border-radius: 10px; flex: none; border: 0; cursor: pointer;
}
.pl-game-heading { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1; }
.pl-game-heading > img { width: 42px; height: 49px; object-fit: cover; border-radius: 8px; flex: none; background: #1a1820; }
.pl-game-heading h1,
#formaPlayRoot #playPageTitleHeader {
  font-size: 22px; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 4px; color: #f2eff7;
  overflow-wrap: anywhere; font-weight: 700; display: block;
}
.pl-game-heading h1:focus,
#formaPlayRoot #playPageTitleHeader:focus { outline: none; }
.pl-game-heading > div { min-width: 0; }
.pl-game-heading > div > span { font-size: 12px; color: #a69aad; }
.pl-mode { display: flex; padding: 4px; background: #242228; border-radius: 10px; flex: none; gap: 3px; }
.pl-mode > button {
  font-size: 13px; line-height: 1.4; font-weight: 600; padding: 9px 15px; min-height: 36px;
  border-radius: 7px; color: #afa6ba; background: none; border: 0; cursor: pointer;
}
.pl-mode > button[aria-pressed="true"] { background: #6b4eff; color: #fff; }

.pl-layout { display: block; }
.pl-main { min-width: 0; }
#plSide { display: none; }

.pl-bonus-progress { margin: 0 0 12px; padding: 13px 15px 12px; border-radius: 13px; background: #242128; color: #f1edf7; min-width: 0; }
.pl-bonus-progress[hidden] { display: none !important; }
.pl-bonus-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.5; }
.pl-bonus-heading > span { color: #c7bcd3; }
.pl-bonus-heading > strong { color: #c3b2ff; font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-bonus-track { height: 5px; border-radius: 10px; background: #443b50; overflow: hidden; margin: 10px 0; }
.pl-bonus-fill { display: block; height: 100%; width: var(--progress); border-radius: inherit; background: #a38bff; }
.pl-bonus-values { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; min-width: 0; }
.pl-bonus-done { font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.pl-bonus-remaining { font-size: 10px; color: #b3a6c0; text-align: right; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.pl-bonus-remaining > strong { font-size: 11px; color: #d5c9e1; font-weight: 600; }
.pl-bonus-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; line-height: 1.6; color: #bfb1ce; min-height: 38px; }
.pl-bonus-state button { min-height: 44px; padding: 8px 4px; color: #c3b2ff; font-size: 12px; font-weight: 700; flex: none; background: none; border: 0; cursor: pointer; }

.pl-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  min-height: 420px;
  border-radius: 17px;
  overflow: hidden;
  background: #0e0b15;
  border: 1px solid #3c304e;
}
#plViewport,
#plViewport > iframe,
#playPageIframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  position: relative;
  z-index: 0;
}
.pl-frame:fullscreen,
.pl-frame:-webkit-full-screen {
  max-height: none;
  min-height: 100%;
  border-radius: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
}
#pagePlay.forma-play .play-page-iframe-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0e0b15cc;
  color: #d5c9e1;
}
#pagePlay.forma-play .play-page-iframe-loading.hidden { display: none !important; }

.pl-preview {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 15%, #b667c9, #4e276e 52%, #271636);
  color: #fff;
}
.pl-preview[hidden] { display: none !important; }
.pl-preview-label {
  position: absolute; top: 13px; right: 14px; z-index: 3;
  padding: 5px 9px; border-radius: 6px; background: #1a102abf; color: #ded0ed; font-size: 10px;
}
.pl-game-backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(20px) brightness(.22); z-index: -1; }
.pl-game-poster { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; padding: 40px 20px 110px; gap: 12px; }
.pl-game-poster > img { max-height: 48%; width: auto; max-width: 180px; object-fit: contain; border-radius: 14px; box-shadow: 0 16px 50px #0006; }
.pl-game-poster > strong { font-size: 22px; text-align: center; overflow-wrap: anywhere; }
.pl-game-poster > span { font-size: 13px; color: #c6b7d6; }
.pl-preview-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; min-height: 70px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1e112bd9; border-top: 1px solid #bda3da26;
}
.pl-preview-bottom > span { font-size: 12px; line-height: 1.5; color: #d3c2e3; max-width: 340px; }
.pl-launch, .pl-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 43px; padding: 11px 18px; background: #6b4eff; color: #fff;
  border-radius: 10px; font-size: 13px; font-weight: 700; border: 0; cursor: pointer;
}
.pl-launch > svg { fill: currentColor !important; stroke: none !important; width: 16px !important; }

.pl-frame-status {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; color: #40344e; box-shadow: 0 8px 30px #0003;
  border-radius: 11px; padding: 13px 16px; font-size: 13px;
}
.pl-frame-status[hidden] { display: none !important; }
.pl-status-dot { width: 7px; height: 7px; background: #6b4eff; border-radius: 50%; flex: none; }
.pl-frame-status .pl-text { margin-left: auto; color: #704daf; background: none; border: 0; cursor: pointer; font-weight: 700; }

.pl-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 0 0; gap: 12px; }
.pl-mode-caption { font-size: 12px; color: #a99bb6; }
.pl-tools { display: flex; align-items: center; gap: 5px; }
.pl-tools > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 36px; height: 36px; padding: 8px; border-radius: 8px; color: #b6a4c7;
  background: #25222a; border: 0; cursor: pointer;
}
.pl-tools > button:hover,
.pl-tools > button[aria-pressed="true"],
.pl-tools > button.active { background: #383044; color: #d7c1ff; }
.pl-tools > .pl-favorite { width: auto; padding-inline: 12px; font-size: 12px; }
.pl-favorite > svg { width: 17px !important; }
.pl-tool-divider { height: 19px; width: 1px; background: #3a3242; margin: 0 6px; }
.pl-session-hint { font-size: 11px; color: #9c8baa; line-height: 1.6; margin: 9px 0 0; }

.pl-account-card { border-radius: 15px; padding: 22px; background: #232126; color: #ede7f4; }
.pl-aside-label { font-size: 12px; color: #b6a5c5; }
.pl-user { display: flex; align-items: center; gap: 10px; margin: 20px 0 24px; }
.pl-user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #383044; color: #d7bdff; font-size: 18px; font-weight: 700; }
.pl-user > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pl-user strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-user > div > span { font-size: 11px; color: #c4a8f4; }
.pl-profile-link { margin-left: auto; font-size: 22px; color: #b9a3d2; padding: 4px 8px; background: none; border: 0; cursor: pointer; }
.pl-balance { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.pl-balance > span, .pl-bonus > span { font-size: 12px; color: #b5a7c1; }
.pl-balance > strong { font-size: 25px; line-height: 1.2; letter-spacing: -.7px; }
.pl-bonus { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.pl-bonus > strong { font-size: 13px; color: #c7aff7; }
.pl-account-card > .pl-primary { width: 100%; }
.pl-account-card h3 { font-size: 21px; line-height: 1.25; margin: 19px 0 10px; }
.pl-account-card p { font-size: 13px; line-height: 1.6; color: #b6a9c4; margin: 0 0 20px; }
.pl-text { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 5px 0; min-height: 30px; background: none; border: 0; font-size: 12px; color: #c1a9e6; cursor: pointer; }
.pl-account-card > .pl-text { width: 100%; margin-top: 9px; }

.pl-winners-card { margin-top: 16px; padding: 19px 16px 13px; background: #232126; border: 1px solid #ffffff05; border-radius: 15px; color: #ede7f4; }
.pl-winners-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-winners-heading h2 { font-size: 16px; line-height: 1.3; font-weight: 700; margin: 0; }
.pl-winners-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 3px 5px; background: #332a3e; color: #c6b1e6; font-size: 9px; }
.pl-winners-badge > i { width: 4px; height: 4px; border-radius: 50%; background: #b9a0ed; }
.pl-winners-badge[data-state="error"] { color: #c3b4cb; background: #322c37; }
.pl-winners-scope { margin: 6px 0 13px; font-size: 11px; line-height: 1.5; color: #a99ab9; }
.pl-winners-list { display: flex; flex-direction: column; }
.pl-winner { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 11px 0; text-align: left; background: none; border: 0; border-top: 1px solid #ffffff09; color: inherit; cursor: pointer; }
.pl-winner > img { display: block; width: 36px; height: 44px; object-fit: cover; border-radius: 6px; }
.pl-winner-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.pl-winner-copy > strong { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-winner-copy > span { font-size: 10px; color: #b5a3c5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-winner-amount { font-size: 13px; font-weight: 700; color: #cfb7ff; max-width: 91px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-winner-fallback { display: grid; place-items: center; width: 36px; height: 44px; border-radius: 6px; background: #393044; color: #cdb4f3; font-size: 18px; font-weight: 700; }
.pl-winners-note { border-top: 1px solid #ffffff09; padding-top: 11px; margin: 0; font-size: 10px; color: #a89ab7; }
.pl-winners-empty { padding: 20px 0; font-size: 12px; color: #bcb0c7; margin: 0; }

.pl-more { margin-top: 28px; }
.pl-more .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pl-more h2 { font-size: 21px; margin: 0; }
.pl-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.pl-related > button { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
.pl-related img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; background: #1a1820; }
.pl-related strong { font-size: 13px; margin-top: 9px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-related span { font-size: 11px; color: #a89ab5; margin-top: 4px; }

.pl-wide .pl-layout { display: block; }
.pl-wide #plSide { display: none !important; }

.pl-not-found { padding: 80px 20px; text-align: center; }
.pl-not-found h1 { font-size: 28px; margin: 0 0 22px; }

@media (max-width: 599px) {
  #formaPlayRoot .pl-mode,
  #formaPlayRoot .pl-more { display: none !important; }
  #formaPlayRoot .pl-mode > button { visibility: hidden; }
  .pl-back { font-size: 0; gap: 0; width: 40px; height: 40px; padding: 8px; min-height: 40px; }
  .pl-heading { gap: 10px; margin-bottom: 16px; }
  .pl-game-heading { gap: 9px; }
  .pl-game-heading > img { width: 32px; height: 40px; }
  .pl-game-heading h1 { font-size: 17px; }
  .pl-game-heading > div > span { font-size: 10px; }
  .pl-frame { min-height: 450px; }
  #plViewport, #playPageIframe { min-height: 450px; }
  .pl-preview-bottom { min-height: 111px; padding: 13px 15px; flex-direction: column; align-items: stretch; }
  .pl-preview-bottom > span { font-size: 11px; text-align: center; }
  .pl-tools > .pl-favorite { width: 40px; padding: 8px; }
  .pl-favorite > span { display: none; }
  .pl-tools > button { width: 40px; height: 40px; }
  .pl-tools > [data-player-wide] { display: none; }
}

@media (max-width: 1199px) {
  .pl-heading { gap: 16px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .pl-heading { flex-wrap: wrap; }
  .pl-mode { margin-left: auto; }
  .pl-frame { min-height: 360px; max-width: 100%; }
  #plViewport, #playPageIframe { min-height: 360px; }
  #pagePlay.forma-play,
  #formaPlayRoot,
  .pl-frame { overflow-x: clip; }
}

@media (min-width: 700px) {
  .pl-bonus-progress {
    display: grid;
    grid-template-columns: minmax(145px, .7fr) minmax(110px, 1fr) minmax(225px, 1.2fr);
    align-items: center;
    gap: 20px;
    padding: 15px 18px;
    margin-bottom: 14px;
  }
  .pl-bonus-heading { gap: 16px; }
  .pl-bonus-heading > strong { font-size: 14px; }
  .pl-bonus-track { margin: 0; }
  .pl-bonus-values { flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
  .pl-bonus-remaining { font-size: 11px; }
  .pl-bonus-state { grid-column: 1 / -1; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .pl-bonus-progress {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px 18px;
  }
  .pl-bonus-heading { grid-column: 1 / -1; }
  .pl-bonus-track { grid-row: 2; }
}

@media (min-width: 900px) {
  .pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; align-items: start; }
  #plSide { display: block; }
  html body.play-page-active #pagePlay.forma-play .play-page-frame-wrap,
  html body.play-page-active #pagePlay.forma-play .pl-frame,
  #pagePlay.forma-play .pl-frame {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: calc(100dvh - var(--pl-frame-chrome, 255px));
    max-width: min(100%, calc((100dvh - var(--pl-frame-chrome, 255px)) * 16 / 9));
    min-height: 360px;
    margin-left: 0;
    margin-right: 0;
  }
  #plViewport, #playPageIframe { min-height: 0; }
  .pl-wide .pl-layout { grid-template-columns: minmax(0, 1fr); }
  .pl-wide #plSide { display: none !important; }
  #pagePlay.forma-play .pl-wide .pl-frame {
    max-width: min(100%, calc((100dvh - var(--pl-frame-chrome, 255px) + 10px) * 16 / 9));
  }
  .pl-related { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  #pagePlay.forma-play { padding: 10px 32px 40px; --pl-frame-chrome: 240px; }
  #pagePlay.forma-play:has(.pl-bonus-progress:not([hidden])) { --pl-frame-chrome: 320px; }
  .pl-game-heading h1 { font-size: 24px; }
}

@media (min-width: 1440px) {
  #pagePlay.forma-play { padding: 12px 48px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-bonus-fill { transition: none; }
}
