/* Full-window dark game – starfield background, reference-style layout */
.game-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050508;
  overflow: auto;
  font-family: 'Black Ops One', 'Plus Jakarta Sans', sans-serif;
}

.game-fullscreen .game-starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #0f0f18 0%, transparent 50%),
              radial-gradient(ellipse 100% 100% at 50% 100%, #08080c 0%, transparent 50%),
              linear-gradient(180deg, #0a0a12 0%, #050508 50%, #000 100%);
}

.game-fullscreen .game-starfield .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.4;
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.3);
}

.game-fullscreen .game-starfield .star.star--m {
  width: 1.5px;
  height: 1.5px;
  opacity: 0.6;
}

.game-fullscreen .game-starfield .star.star--s {
  width: 1px;
  height: 1px;
  opacity: 0.35;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

.game-fullscreen .game-starfield .star {
  animation: star-twinkle 4s ease-in-out infinite;
}

.game-fullscreen .game-starfield .star.star--m {
  animation-duration: 3s;
}

.game-fullscreen .game-starfield .star.star--s {
  animation-duration: 5s;
}

.game-fullscreen .game-ui {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.game-fullscreen .game-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  color: #f5deb3;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.game-fullscreen .game-close:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.game-fullscreen .game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.game-fullscreen .game-title {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.game-fullscreen .winner-display {
  color: #FFD700;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  padding: 8px 20px;
  border-radius: 16px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-fullscreen .win-type-display {
  min-height: 1.5em;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.game-fullscreen .win-type-display.win-type-visible {
  color: #b8860b;
  opacity: 1;
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
  animation: win-type-pop 0.4s ease-out;
}

@keyframes win-type-pop {
  0% { transform: scale(0.92); opacity: 0; }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}

.game-fullscreen .game-canvas-wrap {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid #2a2a32;
  background: #0d0d10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), inset 0 2px 8px rgba(0,0,0,0.4);
}

.game-fullscreen #game-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 440px;
  margin: 0 auto;
  background: #1a1a1f;
}

.game-fullscreen .controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 440px;
}

.game-fullscreen .controls .left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

.game-fullscreen .controls .left .credit,
.game-fullscreen .controls .left .bet { color: #fff; font-weight: 700; }

.game-fullscreen .controls .middle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-fullscreen .bet-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #343a40;
  background: #313030;
  color: #f5deb3;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, opacity 0.2s;
}

.game-fullscreen .bet-action-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.game-fullscreen .bet-action-btn:active {
  transform: scale(0.98);
}

.game-fullscreen #spin-btn {
  background: #9a0102;
  color: #f5deb3;
  border: 4px solid #dc3545;
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.1s;
}

.game-fullscreen #spin-btn:hover:not(:disabled) {
  opacity: 0.95;
  box-shadow: 0 0 20px rgba(220,53,69,0.4);
}

.game-fullscreen #spin-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.game-fullscreen #spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-fullscreen #spin-btn.spinning {
  animation: game-spin-pulse 0.4s ease-in-out infinite;
}

@keyframes game-spin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.4); }
  50% { box-shadow: 0 0 18px 4px rgba(220,53,69,0.3); }
}

.game-fullscreen .controls .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.game-fullscreen .game-auto-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid #343a40;
  background: #313030;
  color: #f5deb3;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.game-fullscreen .game-auto-btn:hover {
  background: #3d3d3d;
  border-color: #444;
}

.game-fullscreen .game-auto-btn.game-auto-on {
  background: #0d5c0d;
  border-color: #1a7a1a;
  color: #fff;
}

.game-fullscreen .game-auto-btn.game-auto-on:hover {
  background: #0f6b0f;
  border-color: #1e8e1e;
}

.game-fullscreen .pay-hint {
  margin: 0;
}
