/* Inkslinger Slots: the lobby (/slots/) and the machines (/slots/<machine>/). Builds on /site.css. */

.slots-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #1b2a6b url("/slots/img/lobby_back.webp") center / cover no-repeat;
  box-shadow: 0 6px 0 rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
}

/* The daily wheel: the disc (and its labels) turns under the kit's rim and pointer. */
.wheel-area { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wheel { position: relative; width: min(calc(100% - 98px), 380px); aspect-ratio: 1; flex: none; }
.wheel > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel .disc { transform: rotate(0deg); will-change: transform; }
.wheel .disc img, .wheel .disc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel .disc text {
  font: 400 34px "Lilita One", sans-serif;
  fill: #fff;
  stroke: rgba(30, 10, 40, .85);
  stroke-width: 6px;
  paint-order: stroke;
  letter-spacing: .5px;
}
.wheel .disc text.big { fill: var(--gold); font-size: 40px; }
.wheel .top { pointer-events: none; }
.wheel-btn {
  position: absolute; left: 50%; top: 50%;
  width: 26%; height: 26%;
  transform: translate(-50%, -50%);
  border: 0; padding: 0; border-radius: 50%;
  background: url("/slots/img/wheel_btn.webp") center / contain no-repeat;
  cursor: pointer;
  font-size: 0; color: transparent;  /* the kit's button has SPIN painted on */
}
.wheel-btn:hover { background-image: url("/slots/img/wheel_btn_hover.webp"); }
.wheel-btn:active { transform: translate(-50%, -47%); }
.wheel-btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.wheel-btn[disabled] { background-image: url("/slots/img/wheel_btn_off.webp"); cursor: default; }
.streak { position: relative; width: 92px; flex: none; text-align: center; }
.streak img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.streak .day { display: block; margin-top: 4px; font: 400 20px/1 "Lilita One", sans-serif; color: var(--gold); text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.streak .day small { display: block; margin-top: 3px; font: 500 12px/1.2 "Fredoka", sans-serif; color: var(--cream-dim); text-shadow: none; }

.bank {
  background: rgba(16, 12, 30, .72);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(2px);
}
.bank h2 { margin: 0 0 6px; font: 600 13px/1 "Fredoka", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--glow); }
.tips-line { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.tips-line img { width: 44px; height: auto; }
.tips-line b { font: 400 52px/1 "Lilita One", sans-serif; color: var(--gold); text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.tips-line span { font-size: 18px; color: var(--cream-dim); }
.bank ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.bank li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(246,234,210,.06); }
.bank li b { color: var(--cream); font-weight: 600; }
.bank .muted { margin: 12px 0 0; font-size: 13px; }

.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.machine {
  display: flex; flex-direction: column;
  background: #241b19;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,.45);
}
.machine img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.machine .info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.machine h3 { margin: 0; font: 400 26px/1.05 "Lilita One", sans-serif; }
.machine p { margin: 0; color: var(--cream-dim); font-size: 15px; }
.machine .play { align-self: flex-start; margin-top: auto; padding: 10px 24px 9px; font-size: 21px; }
.machine.soon { align-items: center; justify-content: center; min-height: 180px; border-style: dashed; border-color: rgba(201,167,124,.45); background: transparent; box-shadow: none; color: var(--cream-dim); text-align: center; padding: 20px; }
.machine.soon strong { display: block; font: 400 22px/1.2 "Lilita One", sans-serif; color: var(--cardboard); }

.fineprint { margin: 26px 0 0; color: var(--cream-dim); font-size: 14px; max-width: 760px; }

/* A win popup (lobby wheel; the machines have their own). */
.popup {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 8, 20, .62);
  padding: 16px;
}
.popup[hidden] { display: none; }
.popup .card {
  min-width: min(340px, 100%);
  padding: 26px 28px 24px;
  text-align: center;
  background: linear-gradient(#3a2a6a, #22163f);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 0 0 3px var(--gold) inset, 0 18px 40px rgba(0,0,0,.5);
  animation: pop .35s cubic-bezier(.2, 1.6, .4, 1);
}
.popup h2 { margin: 0; font: 400 30px/1.1 "Lilita One", sans-serif; color: var(--cream); }
.popup .amount { margin: 10px 0 4px; font: 400 64px/1 "Lilita One", sans-serif; color: var(--gold); text-shadow: 0 4px 0 rgba(0,0,0,.4); }
.popup p { margin: 0 0 18px; color: var(--cream-dim); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #241b19; border: 2px solid var(--cardboard-dark);
  color: var(--cream); font-size: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.toast[hidden] { display: none; }

@media (max-width: 760px) {
  .slots-hero { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .streak { width: 72px; }
  .wheel { width: min(calc(100% - 78px), 380px); }
  .tips-line b { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .popup .card { animation: none; } }
