/* ------------------------------------------------------------------------
   Reel games (Outback Gold, Reef Riches) — page chrome around the vendored
   slots-js canvas. Colours/fonts come from the --gm-* tokens like every
   other game; the canvas itself is painted by the engine.
   ------------------------------------------------------------------------ */

.rl-stage-wrap { display: flex; flex-direction: column; gap: 14px; }

.rl-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--gm-line, #DDD8CC);
  border: 1px solid var(--gm-line, #DDD8CC);
  border-radius: var(--gm-radius, 10px);
  overflow: hidden;
}
.rl-stat {
  background: var(--gm-surface, #fff);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rl-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm-muted, #6B675E);
}
.rl-stat strong {
  font-family: var(--gm-display, Georgia, serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--gm-text, #1B1A17);
  font-variant-numeric: tabular-nums;
}
.rl-stepper { display: inline-flex; align-items: center; gap: 8px; }
.rl-stepper button {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--gm-line-2, #B9B3A5);
  background: var(--gm-surface-2, #F4F1EA);
  color: var(--gm-text, #1B1A17);
  font-size: 1rem; line-height: 1; cursor: pointer; font-family: inherit;
}
.rl-stepper button:hover { border-color: var(--gm-accent, #2F5D46); color: var(--gm-accent, #2F5D46); }

.rl-stage {
  position: relative;
  background: var(--gm-text, #1B1A17);
  border-radius: var(--gm-radius, 10px);
  padding: clamp(10px, 2vw, 18px);
  display: flex;
  justify-content: center;
}
.rl-stage canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  aspect-ratio: 3 / 2;
}
.rl-extra {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(27, 26, 23, 0.9);
  color: #F4F1EA;
  border: 1px solid var(--gm-accent-bright, #9FC4AF);
  border-radius: 8px;
  padding: 10px 18px;
  text-align: center;
  font-weight: 600;
  pointer-events: none;
}
.rl-note { margin: 0; font-size: 0.85rem; color: var(--gm-muted, #6B675E); }

/* symbol values */
.rl-values-hint { margin: 0 0 12px; font-size: 0.85rem; color: var(--gm-muted, #6B675E); }
.rl-values { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rl-values li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--gm-line, #DDD8CC);
  font-size: 0.9rem;
}
.rl-values li:first-child { border-top: 0; }
.rl-values img { width: 40px; height: 40px; background: var(--gm-text, #1B1A17); border-radius: 6px; padding: 4px; }
.rl-values-name { color: var(--gm-text, #1B1A17); }
.rl-values-nums { font-variant-numeric: tabular-nums; color: var(--gm-text, #1B1A17); white-space: nowrap; }
.rl-values-nums b { color: var(--gm-muted, #6B675E); font-weight: 600; font-size: 0.75rem; margin-left: 6px; }
.rl-values-nums b:first-child { margin-left: 0; }
.rl-values-special .rl-values-nums { white-space: normal; font-size: 0.82rem; color: var(--gm-muted, #6B675E); }

.gm-btn.is-on { border-color: var(--gm-accent, #2F5D46); color: var(--gm-accent, #2F5D46); }

/* toasts (engine writes into #toastContainer) */
.rl-toasts { position: fixed; top: 20px; right: 20px; z-index: 1000; max-width: 320px; pointer-events: none; }
.rl-toasts .toast {
  background: var(--gm-surface, #fff);
  color: var(--gm-text, #1B1A17);
  border: 1px solid var(--gm-line-2, #B9B3A5);
  border-left: 4px solid var(--gm-accent, #2F5D46);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.35;
}
.rl-toasts .toast.show { transform: translateX(0); opacity: 1; }
.rl-toasts .toast.hide { transform: translateX(40px); opacity: 0; }
.rl-toasts .toast.win { border-left-color: #D9A441; }
.rl-toasts .toast.error { border-left-color: #B3261E; }
.rl-toasts .toast.warning { border-left-color: #E07A5F; }
.rl-toasts .toast strong { font-weight: 600; }

@media (max-width: 640px) {
  .rl-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-toasts { left: 12px; right: 12px; top: auto; bottom: 12px; max-width: none; }
  .rl-toasts .toast { transform: translateY(20px); }
  .rl-toasts .toast.show { transform: translateY(0); }
}
