/* Game pages – mobile first */
.game-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #cae8ff 100%);
  font-family: Inter, system-ui, sans-serif;
  color: #1a1a2e;
}

.game-page *,
.game-page *::before,
.game-page *::after {
  box-sizing: border-box;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 98, 174, 0.12);
}

.game-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1662ae;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.game-back:hover {
  color: #2488ec;
}

.game-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #56ccf2, #7268ff);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.game-balance img {
  width: 28px;
  height: 28px;
}

.game-main {
  padding: 8px 16px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.game-title {
  text-align: center;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #1662ae;
}

.game-stage {
  position: relative;
  width: 100%;
  margin: 0 auto 16px;
}

.game-bg {
  display: block;
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Orbit Flow slots */
.slot-machine {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8% 10% 14%;
}

.slot-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.slot-grid {
  position: relative;
  z-index: 2;
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6%;
  margin-top: 2%;
}

.slot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10, 20, 50, 0.35);
  transition: box-shadow 0.25s, transform 0.25s;
}

.slot-cell img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  pointer-events: none;
}

.slot-cell--win {
  box-shadow: 0 0 16px rgba(255, 215, 80, 0.9);
  transform: scale(1.05);
  background: rgba(255, 200, 60, 0.25);
}

/* Deep Flow plinko */
.plinko-board-wrap {
  position: absolute;
  inset: 8% 10% 12%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.plinko-board {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

#plinko-canvas,
.plinko-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-embed .game-stage--modal {
  margin-bottom: 12px;
}

.game-embed .game-stage--modal .game-bg {
  aspect-ratio: 3 / 4;
  max-height: 52vh;
  border-radius: 12px;
}

.game-modal__content .game-controls {
  padding: 0 4px;
}

.game-modal__content .game-play-btn {
  max-width: 100%;
}

.game-controls {
  text-align: center;
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2488ec, #1662ae);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.game-play-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.game-play-btn:disabled,
.game-play-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.game-play-btn img {
  width: 36px;
  height: 36px;
}

.game-message {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}

.game-message--win {
  color: #1662ae;
  font-weight: 700;
}

.game-message--warn {
  color: #c05621;
  font-weight: 700;
}

.game-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #718096;
}

.game-disclaimer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: #718096;
}

@media (min-width: 768px) {
  .game-header {
    padding: 16px 32px;
  }

  .game-main {
    padding: 16px 32px 40px;
    max-width: 520px;
  }

  .game-title {
    font-size: 28px;
  }

  .game-bg {
    aspect-ratio: 3 / 4;
  }
}
