/* MT Grand Casino — Extended App Styles: Mobile Polish, Sound Toggle & Slot Art */

/* ============================================================
   1. SOUND TOGGLE BUTTON (TOP NAV)
   ============================================================ */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(61, 169, 252, 0.1);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.sound-toggle-btn:hover {
  background: rgba(61, 169, 252, 0.2);
  color: var(--text);
  border-color: var(--cyan);
}
.sound-toggle-btn.muted {
  opacity: 0.65;
  color: var(--text-faint);
  border-color: rgba(255, 77, 94, 0.3);
}

/* ============================================================
   2. MOBILE & PS5 POLISH: BOTTOM NAVIGATION BAR
   ============================================================ */
.bottom-nav {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(6, 13, 34, 0.96);
  border-top: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  z-index: 120;
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  padding: 6px 0;
  border-radius: 10px;
  transition: all 0.15s ease;
  min-height: 48px; /* PS5 & mobile finger touch target */
}
.bottom-nav-item .icon {
  font-size: 20px;
  line-height: 1;
}
.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--gold);
  background: rgba(255, 201, 74, 0.08);
}
.bottom-nav-item.active .icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 201, 74, 0.6));
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 74px; }
  .sound-toggle-btn .sound-label { display: none; }
}

/* ============================================================
   3. TOUCH-FRIENDLY BET SLIDER & STEPPERS
   ============================================================ */
.bet-slider-wrap {
  margin: 14px 0 18px;
  background: rgba(6, 13, 34, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.bet-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.bet-slider-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
}
.bet-slider-value {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255, 201, 74, 0.35);
}
.bet-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sapphire) 0%, #1E4FD8 100%);
  outline: none;
  cursor: pointer;
  margin: 10px 0;
  border: 1px solid rgba(61, 169, 252, 0.4);
}
.bet-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF0B3, var(--gold) 60%, var(--gold-2));
  border: 2px solid #241A00;
  box-shadow: 0 0 16px rgba(242, 169, 0, 0.8), 0 2px 6px rgba(0,0,0,0.5);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
}
.bet-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  cursor: grabbing;
}
.bet-steppers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.btn-stepper {
  background: rgba(20, 44, 107, 0.4);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}
.btn-stepper:hover {
  background: rgba(61, 169, 252, 0.2);
  color: var(--cyan-2);
  border-color: var(--cyan);
}
.btn-stepper:active {
  transform: scale(0.96);
}

/* ============================================================
   4. SLOT ART UPGRADE: 3D CASINO BEVELS, POPPING FIGURES & FREE SPINS
   ============================================================ */
.slot-machine-cabinet {
  background: linear-gradient(180deg, #1C233D 0%, #0D1326 100%);
  border: 3px solid rgba(255, 201, 74, 0.6);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), inset 0 2px 10px rgba(255, 201, 74, 0.3);
  position: relative;
  overflow: hidden;
}
.slot-cabinet-header {
  text-align: center;
  margin-bottom: 18px;
}
.slot-cabinet-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 201, 74, 0.6), 0 2px 4px #000;
}
.slot-free-spins-banner {
  display: none;
  background: linear-gradient(90deg, #FF4D5E, #F2A900, #10D8A4);
  color: #000;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 auto 14px;
  max-width: 340px;
  animation: bannerPulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 24px rgba(255, 201, 74, 0.8);
}
.slot-free-spins-active .slot-free-spins-banner {
  display: block;
}
.slot-free-spins-active .slot-machine-cabinet {
  border-color: #00E5FF;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), inset 0 0 20px rgba(255, 201, 74, 0.3);
}

@keyframes bannerPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.25); }
}

/* 3x3 Reel Matrix */
.slot-grid-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(4, 8, 20, 0.9);
  padding: 16px;
  border-radius: 18px;
  border: 2px solid rgba(61, 169, 252, 0.3);
  position: relative;
}
.slot-cell {
  height: 94px;
  background: linear-gradient(180deg, rgba(20, 44, 107, 0.5) 0%, rgba(6, 13, 34, 0.9) 100%);
  border: 1px solid rgba(61, 169, 252, 0.25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.slot-cell .sym-icon {
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.slot-cell .sym-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Popping Figure Animation when winning */
.slot-cell.win-pop {
  border-color: var(--gold);
  background: radial-gradient(circle, rgba(255, 201, 74, 0.25) 0%, rgba(10, 24, 60, 0.9) 100%);
  box-shadow: 0 0 24px rgba(255, 201, 74, 0.6), inset 0 0 14px rgba(255, 201, 74, 0.3);
  z-index: 10;
  animation: cellPop 0.65s ease-in-out infinite alternate;
}
.slot-cell.win-pop .sym-icon {
  transform: scale(1.22);
  filter: drop-shadow(0 0 14px rgba(255, 201, 74, 0.85));
}
@keyframes cellPop {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Payline SVG Layer overlay */
.slot-paylines-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}
.payline-beam {
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 201, 74, 0.9));
  stroke-dasharray: 8 4;
  animation: beamDash 0.8s linear infinite;
}
@keyframes beamDash {
  to { stroke-dashoffset: -24; }
}

/* Spin Reel Blur Animation */
.slot-cell.spinning .sym-icon {
  filter: blur(4px);
  transform: translateY(12px);
  opacity: 0.6;
}

/* Big Win Celebration Banner */
.big-win-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 34, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.big-win-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 201, 74, 0.8), 0 4px 10px #000;
  letter-spacing: 3px;
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.big-win-amount {
  font-size: 46px;
  font-weight: 800;
  color: var(--emerald);
  margin-top: 10px;
  text-shadow: 0 0 24px rgba(16, 216, 164, 0.8);
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* ============================================================
   5. AUTH MODAL (SIGN IN / CREATE ACCOUNT)
   ============================================================ */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.auth-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(255, 201, 74, 0.05);
}
.admin-tip-box {
  background: rgba(255, 201, 74, 0.1);
  border: 1px dashed var(--border-gold);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.4;
}
