.game-pola-page {
  min-height: 100vh;
  color: var(--theme-text, #f8f8fa);
}

.game-pola-page::before,
.game-pola-page::after,
.game-pola-page .game-pola-main::before,
.game-pola-page .game-pola-main::after {
  content: none;
  display: none;
}

.game-pola-main {
  padding: clamp(12px, 2vw, 22px) 0 clamp(24px, 3vw, 38px);
}

/* The page shell is now only a width controller. The visible UI uses one main card. */
.game-pola-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.game-pola-intro {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
}

.game-pola-intro-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.game-pola-intro-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: color-mix(in srgb, var(--theme-text, #f8f8fa) 90%, transparent);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.015em;
  line-height: 1;
}

.game-pola-intro-chip--provider {
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
}

.game-pola-intro h2 {
  display: grid;
  gap: 4px;
  max-width: 980px;
  margin: 0;
  color: var(--theme-text, #f8f8fa);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.07;
  text-wrap: balance;
}

.game-pola-intro h2 span {
  display: block;
}

.game-pola-intro h2 span:last-child {
  color: color-mix(in srgb, var(--theme-text, #f8f8fa) 82%, transparent);
  font-size: 0.62em;
  font-weight: 760;
  letter-spacing: -0.018em;
  line-height: 1.32;
}

/* One primary wrapper replaces the previous stack of visible containers. */
.game-pola-tips-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: color-mix(
    in srgb,
    var(--theme-container-bg, #363737) 90%,
    var(--theme-bg, #141415) 10%
  );
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.game-pola-tips-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.game-pola-tips-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.game-pola-tips-heading p {
  margin: 0;
  color: var(--theme-text, #f8f8fa);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.game-pola-tips-heading time {
  color: rgba(226, 232, 240, 0.72);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.35;
}

.game-pola-main-button:focus-visible,
.game-pola-back-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--rtpx-button-accent, #f8f8fa) 70%, white);
  outline-offset: 3px;
}

.game-pola-tips-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  align-items: stretch;
  gap: 20px;
  padding: 20px;
}

.game-pola-stepper,
.game-pola-game-summary {
  min-width: 0;
  min-height: 0;
}

/* These elements remain semantic sections, but no longer render as nested cards. */
.game-pola-panel-surface {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.game-pola-panel-surface--steps {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.game-pola-panel-surface--summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-pola-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 0 2px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.game-pola-panel-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.game-pola-panel-heading strong {
  color: var(--theme-text, #f8f8fa);
  font-size: 10.5px;
  font-weight: 920;
  letter-spacing: 0.075em;
  line-height: 1.15;
  text-transform: uppercase;
}

.game-pola-panel-heading span {
  color: rgba(226, 232, 240, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.game-pola-step-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 9px;
  min-height: 0;
  height: 100%;
}

.game-pola-step-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(155px, 0.4fr) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: none;
}

.game-pola-step-card::before {
  content: none;
  display: none;
}

.game-pola-step-heading {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 12px 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.018);
}

.game-pola-step-heading-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  min-width: 0;
}

.game-pola-step-heading strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--theme-text, #f8f8fa);
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.game-pola-step-heading em {
  color: rgba(226, 232, 240, 0.82);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
}

.game-pola-step-instruction {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 7px;
  padding: 12px 14px;
}

.game-pola-step-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  width: fit-content;
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.game-pola-step-metric strong {
  color: var(--theme-text, #f8f8fa);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1;
}

.game-pola-step-metric span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
}

.game-pola-step-instruction p {
  margin: 0;
  color: rgba(226, 232, 240, 0.68);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

.game-pola-game-summary {
  align-self: stretch;
  height: 100%;
}

.game-pola-panel-heading--summary {
  flex: 0 0 auto;
}

.game-pola-game-overview {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.game-pola-game-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.game-pola-game-media {
  width: 84px;
  height: 84px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
}

.game-pola-game-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.game-pola-game-title {
  margin: 0;
  color: var(--theme-text, #f8f8fa);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 930;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-align: left;
  overflow-wrap: anywhere;
}

.game-pola-info-table {
  display: grid;
  gap: 0;
  margin: 0;
}

.game-pola-info-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.game-pola-info-row:last-child {
  border-bottom: 0;
}

.game-pola-info-row dt,
.game-pola-info-row dd {
  margin: 0;
}

.game-pola-info-row dt {
  color: rgba(226, 232, 240, 0.56);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-pola-info-row dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: var(--theme-text, #f8f8fa);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.game-pola-volatility {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 20px;
}

.game-pola-volatility span {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: rgba(226, 232, 240, 0.2);
}

.game-pola-volatility span.is-active {
  color: var(--rtpx-button-accent, #f8f8fa);
}

.game-pola-volatility svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.game-pola-note {
  align-self: stretch;
  width: 100%;
  margin-top: auto;
  padding: 11px 12px;
  border-left: 3px solid color-mix(in srgb, var(--rtpx-button-accent, #f8f8fa) 65%, transparent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.025);
}

.game-pola-note strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.game-pola-note p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 10px;
  font-weight: 620;
  line-height: 1.52;
}

.game-pola-tips-footer {
  display: grid;
  gap: 9px;
  padding: 0 20px 20px;
}

.game-pola-main-button,
.game-pola-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
  transition: opacity 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.game-pola-main-button {
  border: 1px solid var(--rtpx-button-accent, #f8f8fa);
  background: var(--rtpx-button-accent, #f8f8fa);
  color: var(--rtpx-button-accent-text, #ffffff);
}

.game-pola-main-button.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.game-pola-back-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--theme-text, #f8f8fa);
}

.game-pola-empty,
.game-pola-loading {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 232, 240, 0.7);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.45;
}

.game-pola-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  max-width: min(92vw, 420px);
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(var(--theme-container-bg-rgb, 54, 55, 55), 0.96);
  color: var(--theme-text, #f8f8fa);
  font-size: 12px;
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.game-pola-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.game-pola-page .main-nav__list-item::before,
.game-pola-page .main-nav__list-item::after,
.game-pola-page .main-nav__link::before,
.game-pola-page .main-nav__link::after {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .game-pola-back-button:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.035);
  }
}

@media (max-width: 860px) {
  .game-pola-tips-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .game-pola-panel-surface,
  .game-pola-game-summary {
    height: auto;
  }

  .game-pola-step-list {
    grid-template-rows: none;
    height: auto;
  }

  .game-pola-note {
    margin-top: 0;
  }

  .game-pola-tips-footer {
    padding: 0 18px 18px;
  }
}

@media (max-width: 620px) {
  .game-pola-main {
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .game-pola-shell {
    width: min(100% - 18px, 1120px);
  }

  .game-pola-intro {
    gap: 7px;
    margin-bottom: 11px;
  }

  .game-pola-intro-chips {
    gap: 6px;
  }

  .game-pola-intro-chip {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 9.5px;
  }

  .game-pola-intro h2 {
    gap: 3px;
    font-size: clamp(18px, 5.8vw, 24px);
    line-height: 1.12;
  }

  .game-pola-intro h2 span:last-child {
    font-size: 0.66em;
    line-height: 1.38;
  }

  .game-pola-tips-card {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .game-pola-tips-header {
    min-height: 0;
    padding: 14px;
  }

  .game-pola-tips-heading p {
    font-size: 12px;
  }

  .game-pola-tips-heading time {
    font-size: 10.5px;
  }

  .game-pola-tips-body {
    padding: 14px;
    gap: 17px;
  }

  .game-pola-panel-surface--steps,
  .game-pola-panel-surface--summary {
    gap: 10px;
  }

  .game-pola-panel-heading {
    padding: 0 0 9px;
  }

  .game-pola-panel-heading strong {
    font-size: 10px;
  }

  .game-pola-panel-heading span {
    font-size: 9.5px;
    line-height: 1.35;
  }

  .game-pola-step-list {
    gap: 8px;
  }

  .game-pola-step-card {
    grid-template-columns: minmax(126px, 0.42fr) minmax(0, 1fr);
    min-height: 88px;
    border-radius: 10px;
  }

  .game-pola-step-heading {
    padding: 10px;
  }

  .game-pola-step-heading-copy {
    gap: 6px;
  }

  .game-pola-step-heading strong {
    min-height: 21px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .game-pola-step-heading em {
    font-size: 10px;
    line-height: 1.3;
  }

  .game-pola-step-instruction {
    gap: 6px;
    padding: 10px;
  }

  .game-pola-step-metric {
    min-height: 29px;
    padding: 5px 8px;
  }

  .game-pola-step-metric strong {
    font-size: 17px;
  }

  .game-pola-step-metric span {
    font-size: 9px;
  }

  .game-pola-step-instruction p {
    font-size: 9.5px;
    line-height: 1.42;
  }

  .game-pola-game-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
  }

  .game-pola-game-media {
    width: 72px;
    height: 72px;
    border-radius: 11px;
  }

  .game-pola-game-title {
    font-size: 17px;
    line-height: 1.2;
  }

  .game-pola-info-row {
    grid-template-columns: 90px minmax(0, 1fr);
    min-height: 36px;
    gap: 8px;
    padding: 7px 0;
  }

  .game-pola-info-row dt {
    font-size: 8px;
  }

  .game-pola-info-row dd {
    font-size: 9.5px;
  }

  .game-pola-volatility {
    gap: 2px;
  }

  .game-pola-volatility span {
    width: 14px;
    height: 14px;
  }

  .game-pola-note {
    padding: 10px 11px;
  }

  .game-pola-note strong {
    font-size: 8px;
  }

  .game-pola-note p {
    font-size: 9.5px;
    line-height: 1.5;
  }

  .game-pola-tips-footer {
    gap: 8px;
    padding: 0 14px 14px;
  }

  .game-pola-main-button,
  .game-pola-back-button {
    min-height: 42px;
    border-radius: 8px;
    font-size: 10.5px;
  }
}

@media (max-width: 440px) {
  .game-pola-step-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .game-pola-step-heading {
    padding: 10px 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  }

  .game-pola-step-instruction {
    padding: 10px 11px;
  }

  .game-pola-game-head {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .game-pola-game-media {
    width: 68px;
    height: 68px;
  }

  .game-pola-info-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .game-pola-shell {
    width: min(100% - 14px, 1120px);
  }

  .game-pola-tips-body {
    padding: 12px;
  }

  .game-pola-info-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .game-pola-tips-footer {
    padding: 0 12px 12px;
  }
}

.game-pola-step-list[data-pola-state="loading"] {
  min-height: 420px;
}

.game-pola-step-list[data-pola-state="loading"] > .game-pola-loading {
  min-height: inherit;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 860px) {
  .game-pola-step-list[data-pola-state="loading"] {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .game-pola-step-list[data-pola-state="loading"] {
    min-height: 368px;
  }
}

@media (max-width: 440px) {
  .game-pola-step-list[data-pola-state="loading"] {
    min-height: 560px;
  }
}
