.ofer-game-stage {
  position: absolute;
  inset: 0;
  line-height: 0;
  opacity: 0;
  animation: ofer-stage-in 0.35s ease forwards;
  -webkit-user-select: none;
  user-select: none;
}
@keyframes ofer-stage-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ofer-game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

.ofer-game-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.ofer-game-btn {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1.7;
  min-width: 32px;
  min-height: 32px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ofer-game-btn:hover { border-color: var(--accent); color: var(--accent); }

.ofer-game-hud {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 8px;
  border-radius: 20px;
  pointer-events: none;
}
.ofer-hud-coins b { color: #111; background: #fff; border-radius: 50%; padding: 0 5px; margin-left: 2px; }

.ofer-game-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.ofer-game-hint.is-hidden { opacity: 0; }

.ofer-touch { position: absolute; bottom: 8px; display: none; gap: 10px; }
.ofer-touch-left { left: 8px; }
.ofer-touch-right { right: 8px; }
.ofer-touch button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.ofer-touch button:active { background: rgba(0, 0, 0, 0.5); }
@media (hover: none) and (pointer: coarse) {
  .ofer-touch { display: flex; }
}

.ofer-game-winbar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 8px 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: ofer-winbar-in 0.3s ease both;
}
@keyframes ofer-winbar-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.ofer-game-winbar span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ofer-game-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  flex-shrink: 0;
}
.ofer-game-cta:hover { opacity: 0.9; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ofer-game-stage { animation: none; opacity: 1; }
  .ofer-game-hint { transition: none; }
}
