.mg-shell {
  position: relative;
  color: #e8eef4;
  min-height: 520px;
  border-radius: 1.1rem;
  overflow: hidden;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(255, 77, 26, 0.28), transparent 55%),
    radial-gradient(600px 260px at 90% 100%, rgba(74, 125, 154, 0.35), transparent 50%),
    linear-gradient(160deg, #141b22 0%, #0b1016 100%);
  padding: 1.25rem;
}

.mg-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/hero.png");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.mg-ui {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.mg-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.mg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}

.mg-pill span {
  color: #ff8a65;
}

.mg-status {
  min-height: 1.4rem;
  color: #9bb0bf;
  font-size: 0.95rem;
  text-align: center;
}

.mg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.mg-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.mg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mg-btn-primary {
  background: linear-gradient(135deg, #ff4d1a, #ff7a45);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 77, 26, 0.45);
}

.mg-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
}

.mg-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mg-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.fr-machine {
  margin: 0.4rem auto;
  width: min(100%, 520px);
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 122, 69, 0.35);
  box-shadow: inset 0 0 40px rgba(255, 77, 26, 0.12), 0 0 40px rgba(255, 77, 26, 0.18);
}

.fr-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #070b10;
  overflow: hidden;
  position: relative;
}

.fr-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 54px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(255, 77, 26, 0.45);
  border-bottom: 1px solid rgba(255, 77, 26, 0.45);
  box-shadow: 0 0 24px rgba(255, 77, 26, 0.25);
  pointer-events: none;
}

.fr-reel {
  height: 180px;
  overflow: hidden;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #121820, #0c1218);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fr-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.fr-symbol {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 122, 69, 0.8);
}

.fr-symbol i {
  filter: drop-shadow(0 0 10px rgba(46, 230, 214, 0.35));
}

.vt-table {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 1.2rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(74, 125, 154, 0.25), transparent 55%),
    linear-gradient(160deg, #163024, #0f1f18 60%, #0b1511);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(74, 125, 154, 0.2);
}

.vt-row {
  min-height: 120px;
  margin-bottom: 1rem;
}

.vt-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bb0bf;
  margin-bottom: 0.55rem;
}

.vt-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 88px;
}

.vt-card {
  width: 62px;
  height: 88px;
  border-radius: 0.55rem;
  background: linear-gradient(160deg, #fff, #e8eef4);
  color: #141b22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  animation: cardIn 0.35s ease both;
}

.vt-card.red {
  color: #d63a0d;
}

.vt-card.back {
  background: linear-gradient(145deg, #ff4d1a, #4a7d9a);
  color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.vt-score {
  color: #ffb39a;
  font-weight: 700;
  margin-top: 0.35rem;
}

.or-board {
  width: min(100%, 560px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.or-wheel-wrap {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.or-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid rgba(255, 122, 69, 0.65);
  box-shadow:
    0 0 0 8px rgba(20, 27, 34, 0.9),
    0 0 40px rgba(255, 77, 26, 0.45),
    inset 0 0 40px rgba(0, 0, 0, 0.45);
  background: conic-gradient(
    #ff4d1a 0 30deg,
    #1b2732 30deg 60deg,
    #4a7d9a 60deg 90deg,
    #1b2732 90deg 120deg,
    #ff7a45 120deg 150deg,
    #1b2732 150deg 180deg,
    #2a9d8f 180deg 210deg,
    #1b2732 210deg 240deg,
    #ff4d1a 240deg 270deg,
    #1b2732 270deg 300deg,
    #4a7d9a 300deg 330deg,
    #1b2732 330deg 360deg
  );
  transition: transform 4s cubic-bezier(0.12, 0.75, 0.12, 1);
}

.or-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ff4d1a;
  filter: drop-shadow(0 0 10px rgba(255, 77, 26, 0.8));
  z-index: 2;
}

.or-hub {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ff4d1a 55%, #141b22 100%);
  box-shadow: 0 0 20px rgba(255, 77, 26, 0.7);
}

.or-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.or-pick {
  min-width: 64px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.or-pick.active {
  background: #ff4d1a;
  border-color: #ff4d1a;
  box-shadow: 0 0 18px rgba(255, 77, 26, 0.45);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .fr-reel {
    height: 150px;
  }

  .fr-symbol {
    height: 50px;
    font-size: 1.4rem;
  }

  .fr-window::after {
    height: 50px;
  }
}
