/* Ruletka — palety.mebloszyk.pl/gra */

.gra-page #app.gra-app {
  padding-bottom: 32px;
}

.gra-hello {
  font-size: 0.95rem;
}

.gra-back {
  text-decoration: none;
  color: var(--ink);
}

.gra-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px 18px;
  background: var(--card);
}

.gra-roulette-outer {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 6px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #2a2118 0%, #1a140e 55%, #0d0a07 100%);
  box-shadow:
    0 0 0 10px #c9a227,
    0 0 0 14px #8a7018,
    0 16px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.gra-roulette-outer canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

.gra-diamond {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: #f8fafc;
  box-shadow: 0 0 0 2px #c9a227, 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gra-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d4d4d8 55%, #71717a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translate(0, -132px);
  opacity: 0;
  pointer-events: none;
}

.gra-ball.is-on {
  opacity: 1;
}

.gra-spin {
  width: 100%;
  max-width: 280px;
  font-size: 1.15rem;
  padding: 14px 18px;
}

.gra-spin:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gra-hint,
.gra-last {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.gra-last {
  min-height: 1.2em;
  font-weight: 650;
  color: var(--ink);
}

.gra-modal-card {
  text-align: center;
  max-width: 360px;
}

.gra-modal-pocket {
  display: inline-block;
  min-width: 48px;
  padding: 6px 14px;
  margin: 0 0 6px;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: #1a5c2e;
  letter-spacing: 0.02em;
}

.gra-modal-pocket.is-red { background: #b91c1c; }
.gra-modal-pocket.is-black { background: #171717; }
.gra-modal-pocket.is-green { background: #15803d; }

.gra-modal-emoji {
  font-size: 2.6rem;
  margin: 4px 0;
  line-height: 1;
}

.gra-modal-prize {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 18px;
  line-height: 1.35;
}

#graModal.gra-win .modal-card {
  animation: gra-pop 0.45s ease-out;
}

@keyframes gra-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

.gra-fab {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(72px, calc(56px + env(safe-area-inset-bottom)));
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.gra-fab:active {
  transform: scale(0.94);
}

.gra-fab svg {
  width: 56px;
  height: 56px;
  display: block;
}

html[data-theme="dark"] .gra-fab {
  box-shadow: none;
  filter: none;
}

.gra-fab:hover {
  filter: none;
  transform: scale(1.04);
}

/* Drugi FAB — kółko i krzyżyk (nad ruletką) */
.gra-fab.kik-fab {
  bottom: max(140px, calc(124px + env(safe-area-inset-bottom)));
}

.gra-fab.kik-fab svg {
  width: 52px;
  height: 52px;
}
