/* ==========================================================================
   layout.css — Responsive Layout & Flex/Grid Architecture
   Optimized for Mobile Portrait, Mobile Landscape, Tablet, and Desktop
   ========================================================================== */

#casino-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Main Content Grid */
.main-viewport {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Play Area (3D Viewport + Betting Table) */
.play-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 24px;
}

/* Enforce Zero-Scroll on Desktop & Laptop Viewports */
@media (min-width: 861px) {
  .play-area {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
  }
}

/* Game Viewport Panes */
.game-view-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.game-view-pane.hidden {
  display: none !important;
}

/* Blackjack Table Viewport Layout */
#blackjack-view {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bj-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 16px;
  gap: 16px;
}

.bj-felt-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: radial-gradient(ellipse at 50% 20%, #0d3b2e 0%, #062b1e 65%, #03140e 100%);
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 24px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

/* Semicircular 6-Seat Arc Layout */
.bj-seats-arc {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 1140px;
  margin: 30px auto 10px;
  padding: 0 10px;
  box-sizing: border-box;
}

.bj-seat {
  flex: 1;
  max-width: 175px;
  min-width: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s ease;
}

/* Graceful Desktop Semicircle Curve */
@media (min-width: 1025px) {
  #bj-seat-0 { transform: translateY(32px) rotate(-10deg); }
  #bj-seat-1 { transform: translateY(10px) rotate(-5deg); }
  #bj-seat-2 { transform: translateY(0px) rotate(-1deg); }
  #bj-seat-3 { transform: translateY(0px) rotate(1deg); }
  #bj-seat-4 { transform: translateY(10px) rotate(5deg); }
  #bj-seat-5 { transform: translateY(32px) rotate(10deg); }

  #bj-seat-0:hover, #bj-seat-0.is-active-turn { transform: translateY(24px) rotate(-10deg) scale(1.04); }
  #bj-seat-1:hover, #bj-seat-1.is-active-turn { transform: translateY(2px) rotate(-5deg) scale(1.04); }
  #bj-seat-2:hover, #bj-seat-2.is-active-turn { transform: translateY(-8px) rotate(-1deg) scale(1.04); }
  #bj-seat-3:hover, #bj-seat-3.is-active-turn { transform: translateY(-8px) rotate(1deg) scale(1.04); }
  #bj-seat-4:hover, #bj-seat-4.is-active-turn { transform: translateY(2px) rotate(5deg) scale(1.04); }
  #bj-seat-5:hover, #bj-seat-5.is-active-turn { transform: translateY(24px) rotate(10deg) scale(1.04); }
}

@media (max-width: 1024px) and (min-width: 681px) {
  .bj-seats-arc {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px auto 10px;
  }
  .bj-seat {
    max-width: 100%;
    transform: none !important;
  }
}

@media (max-width: 680px) {
  .bj-seats-arc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px auto 10px;
  }
  .bj-seat {
    max-width: 100%;
    transform: none !important;
  }
  .bj-felt-stage {
    min-height: auto;
    padding: 16px 10px;
  }
}

/* Betting Board Section */
.board-section {
  padding: 16px 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Side Social / Chat Panel */
.social-sidebar {
  width: 320px;
  border-left: 1px solid var(--border-gold);
  background: rgba(8, 18, 14, 0.95);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* Exactly matching master-header height */
  position: sticky;
  top: 60px;
  flex-shrink: 0;
}

/* Mobile Toggle for Chat */
.mobile-chat-toggle {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Smaller Desktops (< 1100px) */
@media (max-width: 1100px) {
  .social-sidebar {
    width: 280px;
  }

  .roulette-board, .outside-row {
    max-width: 100%;
  }

  .cell-zero {
    width: 48px;
    min-height: 132px;
    height: 132px;
  }

  .number-row {
    height: 44px;
  }

  .columns-container {
    width: 52px;
  }

  .column-cell {
    height: 44px;
    width: 52px;
    font-size: 0.75rem;
  }

  .outside-row {
    margin-left: 48px;
    margin-right: 52px;
  }

  .grid-cell {
    font-size: 1rem;
  }
}

/* Mobile Devices (< 860px) */
@media (max-width: 860px) {
  #casino-app {
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow-y: auto;
  }

  .main-viewport {
    flex-direction: column;
  }

  .social-sidebar {
    width: 100%;
    height: auto;
    max-height: 320px;
    position: static;
    border-left: none;
    border-top: 1px solid var(--border-gold);
  }

  .master-header {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    order: 2;
  }

  .header-center {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hud-header {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .player-badge {
    order: 1;
  }

  .phase-badge {
    order: 2;
    padding: 6px 14px;
  }

  .history-strip {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  #roulette-canvas-container {
    height: 280px;
  }

  .board-section {
    padding: 12px 10px;
  }

  /* Enable smooth horizontal scrolling for touch betting */
  .board-container {
    padding: 12px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .roulette-board, .outside-row {
    min-width: 600px;
  }

  .cell-zero {
    width: 44px;
    min-height: 126px;
    height: 126px;
  }

  .number-row {
    height: 42px;
  }

  .columns-container {
    width: 48px;
  }

  .column-cell {
    height: 42px;
    width: 48px;
    font-size: 0.72rem;
  }

  .outside-row {
    margin-left: 44px;
    margin-right: 48px;
  }

  .controls-bar {
    justify-content: center;
  }

  .chip-btn {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
  .player-name {
    font-size: 0.85rem;
  }

  .player-chips {
    font-size: 0.78rem;
  }

  .phase-title {
    font-size: 0.82rem;
  }

  .phase-timer {
    font-size: 0.85rem;
    padding: 2px 8px;
  }

  #roulette-canvas-container {
    height: 240px;
  }

  .modal-content {
    padding: 24px 18px;
  }

  .color-swatch {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   Height-Based Responsive Architecture ("Fit-to-Screen" for Laptops & Displays)
   Guarantees zero-scroll visibility for bottom chips and action buttons
   ========================================================================== */

/* Standard Laptops & 1080p @ 125% Display Scaling (Viewport Height <= 900px) */
@media (max-height: 900px) {
  .master-header {
    height: 52px;
  }

  .social-sidebar {
    height: calc(100vh - 52px);
    top: 52px;
  }

  .play-area {
    padding-bottom: 8px;
  }

  /* Blackjack Viewport Fit */
  #blackjack-view {
    padding: 10px 18px;
  }

  .bj-table-header {
    padding: 6px 14px;
    margin-bottom: 8px;
  }

  .bj-felt-stage {
    min-height: 390px;
    padding: 14px 16px 16px;
  }

  .bj-seats-arc {
    margin: 14px auto 6px;
    gap: 10px;
  }

  .bj-seat {
    max-width: 155px;
    min-width: 125px;
  }

  #bj-seat-0 { transform: translateY(22px) rotate(-8deg); }
  #bj-seat-1 { transform: translateY(6px) rotate(-4deg); }
  #bj-seat-2 { transform: translateY(0px) rotate(-1deg); }
  #bj-seat-3 { transform: translateY(0px) rotate(1deg); }
  #bj-seat-4 { transform: translateY(6px) rotate(4deg); }
  #bj-seat-5 { transform: translateY(22px) rotate(8deg); }

  .betting-spot {
    width: 56px;
    height: 56px;
  }

  .seat-betting-area {
    margin: 6px 0 4px;
  }

  .bj-card {
    width: 60px;
    height: 86px;
    margin-right: -20px;
  }

  .card-rank {
    font-size: 0.92rem;
  }

  .card-suit-svg {
    width: 11px;
    height: 11px;
  }

  .card-center-suit {
    width: 22px;
    height: 22px;
  }

  .seat-cards-container {
    min-height: 88px;
    gap: 4px;
  }

  .avatar-badge.avatar-md {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .bj-controls-panel {
    padding: 8px 16px;
    margin-top: 10px;
    gap: 8px;
  }

  .chip-selector .chip-btn {
    width: 36px;
    height: 36px;
    font-size: 0.74rem;
  }

  .btn-action {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .bj-quick-bet-actions .btn {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* Roulette Viewport Fit */
  #roulette-canvas-container {
    height: clamp(290px, 39vh, 360px);
  }

  .board-section {
    padding: 18px 16px 10px;
  }

  .number-row {
    height: 46px;
  }

  .column-cell {
    height: 46px;
  }

  .cell-zero {
    min-height: 138px;
    height: 138px;
  }

  .grid-cell {
    font-size: 1rem;
  }

  .chip-dock {
    padding: 6px 12px;
    margin-top: 8px;
  }

  .controls-bar {
    margin-top: 8px;
  }

  .chip-btn {
    width: 42px;
    height: 42px;
    font-size: 0.8rem;
  }
}

/* Compact Laptop Screens & Constrained Viewports (Viewport Height <= 760px) */
@media (max-height: 760px) {
  .master-header {
    height: 46px;
    padding: 4px 12px;
  }

  .social-sidebar {
    height: calc(100vh - 46px);
    top: 46px;
  }

  .play-area {
    padding-bottom: 4px;
  }

  /* Compact Blackjack */
  #blackjack-view {
    padding: 6px 12px;
  }

  .bj-table-header {
    padding: 4px 10px;
    margin-bottom: 6px;
  }

  .bj-felt-stage {
    min-height: 340px;
    padding: 10px 12px 12px;
  }

  .bj-seats-arc {
    margin: 8px auto 4px;
    gap: 8px;
  }

  #bj-seat-0 { transform: translateY(16px) rotate(-6deg); }
  #bj-seat-1 { transform: translateY(4px) rotate(-3deg); }
  #bj-seat-2 { transform: translateY(0px); }
  #bj-seat-3 { transform: translateY(0px); }
  #bj-seat-4 { transform: translateY(4px) rotate(3deg); }
  #bj-seat-5 { transform: translateY(16px) rotate(6deg); }

  .bj-seat {
    max-width: 140px;
    min-width: 115px;
  }

  .betting-spot {
    width: 48px;
    height: 48px;
  }

  .seat-betting-area {
    margin: 4px 0 2px;
  }

  .bj-card {
    width: 54px;
    height: 78px;
    margin-right: -18px;
  }

  .card-rank {
    font-size: 0.82rem;
  }

  .card-suit-svg {
    width: 9px;
    height: 9px;
  }

  .card-center-suit {
    width: 18px;
    height: 18px;
  }

  .seat-cards-container {
    min-height: 76px;
    gap: 2px;
  }

  .avatar-badge.avatar-md {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .seat-username {
    font-size: 0.72rem;
  }

  .seat-chips-count {
    font-size: 0.65rem;
  }

  .bj-controls-panel {
    padding: 6px 12px;
    margin-top: 6px;
    gap: 6px;
  }

  .chip-selector .chip-btn {
    width: 34px;
    height: 34px;
    font-size: 0.70rem;
  }

  .btn-action {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .bj-quick-bet-actions .btn {
    padding: 4px 8px;
    font-size: 0.70rem;
  }

  /* Compact Roulette */
  #roulette-canvas-container {
    height: clamp(245px, 34vh, 290px);
  }

  .board-section {
    padding: 14px 12px 6px;
  }

  .number-row {
    height: 42px;
  }

  .column-cell {
    height: 42px;
  }

  .cell-zero {
    min-height: 126px;
    height: 126px;
  }

  .grid-cell {
    font-size: 0.92rem;
  }

  .chip-dock {
    padding: 4px 8px;
    margin-top: 6px;
  }

  .controls-bar {
    margin-top: 6px;
  }

  .chip-btn {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }
}

/* =========================================================================
 * 6-SEAT NO-LIMIT TEXAS HOLD'EM POKER TABLE & CONTROLS (Milestone PK-M3)
 * Monte Carlo Luxury Elliptical Felt (1080x540px), 6 Radial Seats,
 * Center Community Area, Dynamic Pot Badges, Sizing Slider & Action Controls
 * ========================================================================= */

#poker-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 10px 20px;
}

.poker-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 14px;
  gap: 16px;
  border-radius: 12px;
}

.poker-table-switcher {
  display: flex;
  gap: 8px;
}

.poker-table-pill {
  background: rgba(14, 28, 22, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #c5a059;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: var(--font-serif, 'Cinzel', serif);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.poker-table-pill:hover {
  border-color: #f9e79f;
  color: #fff;
  background: rgba(212, 175, 55, 0.15);
}

.poker-table-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(13, 92, 58, 0.45) 100%);
  border-color: var(--gold-primary, #d4af37);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.poker-table-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.poker-table-name {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary, #d4af37);
  letter-spacing: 0.05em;
}

.poker-table-limits {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.poker-hand-counter-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.8rem;
  font-family: var(--font-serif, 'Cinzel', serif);
}

.hand-counter-label {
  color: #94a3b8;
}

.hand-counter-val {
  color: #f9e79f;
  font-weight: 700;
}

/* Stadium-Capsule Felt Stage */
.poker-felt-stage {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 540px;
  margin: 8px auto;
  background: radial-gradient(ellipse at 50% 50%, #0d3b2e 0%, #082d20 58%, #03140e 100%);
  border: 14px solid #141b17;
  border-radius: 9999px;
  box-shadow: 
    inset 0 0 0 2px var(--gold-primary, #d4af37),
    inset 0 0 60px rgba(0, 0, 0, 0.85),
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: visible;
}

.poker-felt-stage::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  bottom: 28px;
  border: 1.5px solid rgba(212, 175, 55, 0.22);
  border-radius: 9999px;
  pointer-events: none;
}

/* 8 Radial Seats Arrangement */
.poker-seat {
  position: absolute;
  width: 142px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s ease;
}

.poker-seat.is-hero {
  z-index: 30;
}

.poker-seat.is-hero .poker-player-box {
  border-color: rgba(249, 231, 159, 0.72);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

/* Coordinate Mapping: 8 seats clockwise around the stadium perimeter */
#poker-seat-0 {
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

#poker-seat-1 {
  bottom: 4px;
  left: 16%;
}

#poker-seat-2 {
  top: 50%;
  left: -22px;
  transform: translateY(-50%);
}

#poker-seat-3 {
  top: 4px;
  left: 16%;
}

#poker-seat-4 {
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

#poker-seat-5 {
  top: 4px;
  right: 16%;
}

#poker-seat-6 {
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
}

#poker-seat-7 {
  bottom: 4px;
  right: 16%;
}

/* Bottom row seats (0, 1, 7) project hole cards upward inside the felt */
#poker-seat-0 .poker-seat-occupied-wrap,
#poker-seat-1 .poker-seat-occupied-wrap,
#poker-seat-7 .poker-seat-occupied-wrap {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

#poker-seat-0 .poker-hole-cards-dock,
#poker-seat-1 .poker-hole-cards-dock,
#poker-seat-7 .poker-hole-cards-dock {
  margin-top: 0;
  margin-bottom: 6px;
}

#poker-seat-0 .poker-dealer-button,
#poker-seat-1 .poker-dealer-button,
#poker-seat-7 .poker-dealer-button {
  top: auto;
  bottom: 24px;
  left: -8px;
}

#poker-seat-0 .poker-blind-badge,
#poker-seat-1 .poker-blind-badge,
#poker-seat-7 .poker-blind-badge {
  top: auto;
  bottom: 26px;
  right: -8px;
}

#poker-seat-0 .poker-action-pill,
#poker-seat-1 .poker-action-pill,
#poker-seat-7 .poker-action-pill {
  bottom: -10px;
  top: auto;
}

/* Seat Components */
.poker-seat-empty-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-poker-sit {
  padding: 8px 16px;
  border: 1.5px dashed rgba(212, 175, 55, 0.5);
  background: rgba(14, 28, 22, 0.75);
  color: #c5a059;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-poker-sit:hover {
  border-color: #f9e79f;
  color: #ffffff;
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.btn-poker-sit.btn-seat-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dotted;
}

.btn-poker-sit.btn-seat-disabled:hover {
  background: rgba(14, 28, 22, 0.75);
  border-color: rgba(212, 175, 55, 0.3);
  color: #c5a059;
  box-shadow: none;
}

.poker-seat-occupied-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poker-player-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(14, 28, 22, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.poker-player-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.poker-seat-username {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poker-seat-stack {
  font-size: 0.74rem;
  font-weight: 600;
  color: #f9e79f;
  letter-spacing: 0.02em;
}

.poker-dealer-button {
  position: absolute;
  top: -12px;
  left: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9e79f 0%, #d4af37 60%, #997a15 100%);
  border: 1.5px solid #ffffff;
  color: #111514;
  font-weight: 900;
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  z-index: 12;
}

.poker-blind-badge {
  position: absolute;
  top: -10px;
  right: -6px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(180, 130, 20, 0.95);
  border: 1px solid #fef08a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  z-index: 12;
}

.poker-action-pill {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  background: rgba(30, 58, 138, 0.9);
  color: #93c5fd;
  border: 1px solid #3b82f6;
}

.poker-action-pill.pill-fold {
  background: rgba(30, 41, 59, 0.9);
  color: #94a3b8;
  border: 1px solid #475569;
}

.poker-action-pill.pill-check {
  background: rgba(30, 58, 138, 0.9);
  color: #93c5fd;
  border: 1px solid #3b82f6;
}

.poker-action-pill.pill-call {
  background: rgba(13, 92, 58, 0.9);
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.poker-action-pill.pill-raise {
  background: rgba(180, 130, 20, 0.9);
  color: #fef08a;
  border: 1px solid #eab308;
}

.poker-action-pill.pill-allin {
  background: rgba(153, 27, 27, 0.95);
  color: #fecaca;
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.poker-street-bet-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #f9e79f;
  font-size: 0.74rem;
  font-weight: 700;
  z-index: 11;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#poker-seat-0 .poker-street-bet-badge,
#poker-seat-1 .poker-street-bet-badge,
#poker-seat-7 .poker-street-bet-badge {
  top: -28px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
}

#poker-seat-2 .poker-street-bet-badge {
  right: -46px;
  top: 16px;
  left: auto;
  bottom: auto;
}

#poker-seat-3 .poker-street-bet-badge,
#poker-seat-4 .poker-street-bet-badge,
#poker-seat-5 .poker-street-bet-badge {
  bottom: -28px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
}

#poker-seat-6 .poker-street-bet-badge {
  left: -46px;
  top: 16px;
  right: auto;
  bottom: auto;
}

.poker-chip-glyph {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4af37;
  border: 1px dashed #ffffff;
}

.poker-hole-cards-dock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  position: relative;
  min-height: 72px;
}

.poker-hole-cards-dock:empty {
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Blackjack negative stacking and force true 3D preserve-3d flip for Poker hole cards */
.poker-hole-cards-dock .bj-card {
  width: 48px;
  height: 68px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  perspective: 900px;
  transform-style: preserve-3d;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.poker-hole-cards-dock .bj-card .bj-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.poker-hole-cards-dock .bj-card.face-down .bj-card-inner {
  transform: rotateY(0deg);
}

.poker-hole-cards-dock .bj-card.face-up .bj-card-inner {
  transform: rotateY(180deg);
}

.poker-hole-cards-dock .bj-card .bj-card-back,
.poker-hole-cards-dock .bj-card .bj-card-front {
  display: flex !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.poker-hole-cards-dock .bj-card .bj-card-back {
  transform: rotateY(0deg);
}

.poker-hole-cards-dock .bj-card .bj-card-front {
  transform: rotateY(180deg);
}

.poker-hole-cards-dock .bj-card:nth-child(2) .bj-card-inner {
  transition-delay: 0.05s;
}

/* Hero hole cards: both cards clearly separated side by side on ANY seat (0..7) */
.poker-seat.is-hero .poker-hole-cards-dock {
  gap: 8px;
  min-height: 92px;
}

.poker-seat.is-hero .poker-hole-cards-dock .bj-card {
  width: 64px;
  height: 92px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.75);
}

.poker-seat.is-hero .poker-hole-cards-dock .bj-card .card-rank {
  font-size: 1rem;
}

.poker-seat.is-hero .poker-hole-cards-dock .bj-card .card-suit-svg {
  width: 12px;
  height: 12px;
}

.poker-seat.is-folded .poker-player-box {
  opacity: 0.5;
}

.poker-seat.is-folded .poker-hole-cards-dock {
  opacity: 0.35;
  transform: translateY(6px);
}

.poker-seat.is-active-turn {
  animation: none;
}

.poker-seat.is-active-turn .poker-player-box {
  animation: activeTurnPulse 1.8s infinite;
}

/* Center Community Area */
.poker-community-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-align: center;
  transform: translateY(-10px);
}

.poker-pot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.poker-main-pot-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid var(--gold-primary, #d4af37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
  font-family: var(--font-serif, 'Cinzel', serif);
}

.pot-crest-label {
  color: #c5a059;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pot-amount-val {
  color: #f9e79f;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.pot-currency {
  color: #c5a059;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.poker-side-pots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.side-pot-pill {
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(13, 92, 58, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-size: 0.72rem;
  color: #f9e79f;
  font-family: var(--font-serif, 'Cinzel', serif);
  display: flex;
  gap: 4px;
}

.poker-community-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  min-height: 86px;
  margin-bottom: 8px;
}

.poker-card-slot {
  width: 58px;
  height: 82px;
  border-radius: 6px;
  border: 1.5px dashed rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.poker-card-slot .bj-card {
  width: 58px;
  height: 82px;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

.poker-card-slot.winning-highlight .bj-card {
  box-shadow: 0 0 16px 4px rgba(212, 175, 55, 0.95), 0 0 30px rgba(249, 231, 159, 0.8);
  border: 1.5px solid #ffffff;
  transform: scale(1.06);
  z-index: 20;
}

.poker-phase-indicator {
  padding: 4px 14px;
  border-radius: 12px;
  background: rgba(14, 28, 22, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.75rem;
  color: #c5a059;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Controls Panel */
.poker-controls-panel {
  margin-top: 14px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 16px;
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.poker-turn-timer-bar-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  overflow: visible;
  display: flex;
  align-items: center;
}

.poker-turn-timer-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.9s linear, background-color 0.3s ease;
  border-radius: 4px;
}

.poker-turn-timer-bar-fill.timer-warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.poker-turn-timer-bar-fill.timer-urgent {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.poker-turn-timer-text {
  position: absolute;
  right: 0;
  top: -16px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f9e79f;
  font-family: var(--font-serif, 'Cinzel', serif);
}

.poker-raise-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.raise-slider-container {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
}

.poker-range-slider {
  width: 100%;
  accent-color: var(--gold-primary, #d4af37);
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.raise-input-container {
  width: 90px;
}

.poker-num-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  color: #f9e79f;
  padding: 6px 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.poker-preset-buttons-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-poker-preset {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(14, 28, 22, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #c5a059;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-poker-preset:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.2);
  border-color: #f9e79f;
  color: #ffffff;
}

.btn-poker-preset:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-preset-allin {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.btn-preset-allin:hover:not(:disabled) {
  background: rgba(153, 27, 27, 0.45);
  border-color: #ef4444;
  color: #ffffff;
}

.poker-action-buttons-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-poker-peek {
  flex: 0 0 auto;
  min-width: 105px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.7) 0%, rgba(13, 92, 58, 0.7) 100%);
  border: 1px solid #10b981;
  color: #d1fae5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-poker-peek:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(13, 92, 58, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-poker-peek[aria-pressed="false"] {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #64748b;
  color: #94a3b8;
}

.btn-poker-peek:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-poker-peek .poker-peek-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.poker-hand-strength-badge {
  flex: 0 0 auto;
  min-width: 165px;
  max-width: 240px;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 36, 26, 0.92) 0%, rgba(13, 58, 41, 0.92) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2), inset 0 0 8px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.poker-hand-strength-badge.is-hidden-cards {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(100, 116, 139, 0.55);
  box-shadow: none;
}

.poker-hand-strength-badge .hand-strength-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c5a059;
  text-transform: uppercase;
  line-height: 1.1;
}

.poker-hand-strength-badge.is-hidden-cards .hand-strength-label {
  color: #94a3b8;
}

.poker-hand-strength-badge .hand-strength-value {
  font-family: var(--font-serif, 'Cinzel', serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: #f9e79f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
  margin-top: 2px;
}

.poker-hand-strength-badge.is-hidden-cards .hand-strength-value {
  color: #cbd5e1;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.76rem;
}

.btn-poker-fold {
  flex: 1;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  border: 1px solid #ef4444;
  color: #fee2e2;
}

.btn-poker-fold:hover:not(:disabled) {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.btn-poker-check-call {
  flex: 1;
  background: linear-gradient(135deg, #064e3b 0%, #0d5c3a 100%);
  border: 1px solid #10b981;
  color: #d1fae5;
}

.btn-poker-check-call:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d5c3a 0%, #059669 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.btn-poker-raise {
  flex: 1;
  background: linear-gradient(135deg, #854d0e 0%, #c5a059 100%);
  border: 1px solid #facc15;
  color: #fef9c3;
}

.btn-poker-raise:hover:not(:disabled) {
  background: linear-gradient(135deg, #a16207 0%, #d4af37 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

/* Buy-In Modal */
.poker-buyin-content {
  max-width: 480px;
  width: 90%;
  padding: 24px;
}

.buyin-balance-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin: 14px 0 10px;
}

.buyin-balance-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.buyin-balance-val {
  font-size: 1.1rem;
  font-weight: 700;
}

.buyin-stakes-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.buyin-input-group {
  margin-bottom: 12px;
}

.buyin-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.buyin-input-row .input-suffix {
  font-size: 0.85rem;
  color: #c5a059;
}

.buyin-presets-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.buyin-highlight-default {
  color: #f9e79f;
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-quick-chip.is-default-preset {
  border-color: rgba(212, 175, 55, 0.75);
  color: #f9e79f;
  background: rgba(212, 175, 55, 0.12);
  font-weight: 600;
}

.btn-quick-chip.active-preset {
  border-color: #d4af37 !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(161, 98, 7, 0.45) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.poker-buyin-error-msg {
  color: #ef4444;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* Height-based responsive scaling for Poker */
@media (max-height: 900px) {
  .poker-felt-stage {
    max-width: 980px;
    height: 475px;
    border-radius: 9999px;
  }
  .poker-felt-stage::before {
    border-radius: 9999px;
  }
  .poker-seat {
    width: 138px;
  }
  .poker-controls-panel {
    padding: 10px 16px;
    margin-top: 8px;
    gap: 8px;
  }
}

@media (max-height: 640px) {
  .poker-felt-stage {
    max-width: 860px;
    height: 380px;
    border-radius: 9999px;
  }
  .poker-felt-stage::before {
    border-radius: 9999px;
  }
  .poker-seat {
    width: 128px;
  }
  #poker-seat-0 {
    bottom: -20px;
  }
  #poker-seat-4 {
    top: -20px;
  }
  #poker-seat-1 {
    bottom: 4px;
    left: 15%;
  }
  #poker-seat-3 {
    top: 4px;
    left: 15%;
  }
  #poker-seat-5 {
    top: 4px;
    right: 15%;
  }
  #poker-seat-7 {
    bottom: 4px;
    right: 15%;
  }
  #poker-seat-2 {
    top: 50%;
    left: -16px;
  }
  #poker-seat-6 {
    top: 50%;
    right: -16px;
  }
  .poker-controls-panel {
    padding: 6px 12px;
    margin-top: 6px;
  }
}

@media (max-width: 1024px) {
  .poker-felt-stage {
    max-width: 920px;
    height: 440px;
    border-radius: 9999px;
  }
  #poker-seat-1, #poker-seat-3 { left: 13%; }
  #poker-seat-5, #poker-seat-7 { right: 13%; }
  #poker-seat-2 { left: -12px; }
  #poker-seat-6 { right: -12px; }
}

@media (max-width: 768px) {
  #poker-view {
    overflow-y: auto;
    padding-bottom: 78px;
  }
  .poker-felt-stage {
    height: 420px;
    margin: 14px auto;
    border-width: 10px;
    border-radius: 160px;
  }
  .poker-felt-stage::before {
    top: 16px; left: 16px; right: 16px; bottom: 16px;
    border-radius: 140px;
  }
  .poker-seat {
    width: 92px;
  }
  #poker-seat-0 { bottom: -18px; left: 50%; }
  #poker-seat-4 { top: -18px; left: 50%; }
  #poker-seat-1 { bottom: 6px; left: 4%; }
  #poker-seat-7 { bottom: 6px; right: 4%; }
  #poker-seat-2 { top: 50%; left: -4px; }
  #poker-seat-6 { top: 50%; right: -4px; }
  #poker-seat-3 { top: 6px; left: 4%; }
  #poker-seat-5 { top: 6px; right: 4%; }
  .poker-player-box {
    padding: 4px 6px;
    gap: 5px;
  }
  .poker-player-box .avatar-md {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .poker-seat-username {
    font-size: 0.68rem;
  }
  .poker-seat-stack {
    font-size: 0.64rem;
  }
  .poker-hole-cards-dock {
    min-height: 52px;
    gap: 3px;
  }
  .poker-hole-cards-dock .bj-card {
    width: 34px;
    height: 48px;
  }
  .poker-hole-cards-dock .bj-card-back::after {
    content: 'LG';
    font-size: 0.44rem;
    padding: 1px 4px;
    letter-spacing: 0.06em;
  }
  .poker-seat.is-hero .poker-hole-cards-dock {
    min-height: 66px;
    gap: 5px;
  }
  .poker-seat.is-hero .poker-hole-cards-dock .bj-card {
    width: 44px;
    height: 64px;
  }
  .poker-street-bet-badge {
    padding: 1px 6px;
    font-size: 0.62rem;
  }
  #poker-seat-2 .poker-street-bet-badge { right: -38px; top: 8px; }
  #poker-seat-6 .poker-street-bet-badge { left: -38px; top: 8px; }
  #poker-seat-3 .poker-street-bet-badge { bottom: -22px; left: 68%; }
  #poker-seat-5 .poker-street-bet-badge { bottom: -22px; left: 32%; }
  .btn-poker-sit {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   4. MULTIPLAYER VELOCITY CRASH VIEWPORT (HIGH-STAKES LUXURY)
   ========================================================================== */

#crash-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px 14px;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

#crash-view.hidden {
  display: none !important;
}

.crash-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, rgba(6, 28, 19, 0.92), rgba(4, 18, 12, 0.95));
  flex-shrink: 0;
  gap: 14px;
}

.crash-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.crash-table-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f9e79f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crash-table-limits {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.65);
  font-weight: 500;
}

.crash-history-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.crash-history-strip::-webkit-scrollbar {
  display: none;
}

.crash-history-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crash-history-pill.is-latest {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.crash-pill-bust {
  background: rgba(153, 27, 27, 0.45);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.crash-pill-low {
  background: rgba(30, 41, 59, 0.65);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.crash-pill-mid {
  background: rgba(6, 95, 70, 0.65);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.5);
}

.crash-pill-jackpot {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(161, 98, 7, 0.45));
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

/* Main Split Arena */
.crash-main-arena {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.crash-stage-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: radial-gradient(circle at 50% 42%, rgba(13, 62, 42, 0.55) 0%, rgba(3, 15, 10, 0.96) 75%);
  overflow: hidden;
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.crash-stage-container.is-flying {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: inset 0 0 55px rgba(16, 185, 129, 0.14), 0 0 22px rgba(16, 185, 129, 0.12);
}

.crash-stage-container.is-crashed {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: inset 0 0 65px rgba(239, 68, 68, 0.24), 0 0 24px rgba(239, 68, 68, 0.22);
}

.crash-flight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crash-center-hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
  padding: 16px;
}

.crash-status-badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(4, 18, 12, 0.82);
  color: #f9e79f;
}

.crash-status-badge.status-running {
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.crash-status-badge.status-crashed {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(127, 29, 29, 0.65);
  color: #fecaca;
}

.crash-multiplier-value {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  transition: color 0.15s ease, text-shadow 0.15s ease, transform 0.12s ease;
}

.crash-multiplier-value.tier-1x {
  color: #f8fafc;
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

.crash-multiplier-value.tier-2x {
  color: #6ee7b7;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.75);
}

.crash-multiplier-value.tier-3x {
  color: #f9e79f;
  text-shadow: 0 0 34px rgba(212, 175, 55, 0.85);
}

.crash-multiplier-value.tier-10x {
  color: #fde047;
  text-shadow: 0 0 42px rgba(250, 204, 21, 0.95), 0 0 16px #ffffff;
  transform: scale(1.05);
}

.crash-multiplier-value.tier-crashed {
  color: #f87171;
  text-shadow: 0 0 32px rgba(239, 68, 68, 0.85);
}

.crash-live-payout-pill {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.8);
}

.crash-live-payout-pill.in-flight {
  background: rgba(6, 78, 59, 0.88);
  border-color: rgba(16, 185, 129, 0.65);
  color: #ecfdf5;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}

.crash-live-payout-pill.cashed-win {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(6, 95, 70, 0.88));
  border-color: #d4af37;
  color: #fef08a;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
}

.crash-live-payout-pill.crashed-loss {
  background: rgba(127, 29, 29, 0.75);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

/* Right Roster Panel */
.crash-roster-panel {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(4, 18, 12, 0.92);
  overflow: hidden;
  min-height: 0;
}

.crash-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(8, 32, 22, 0.75);
}

.roster-header-title {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f9e79f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roster-header-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.75);
  font-weight: 600;
}

.crash-players-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crash-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(11, 42, 29, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.crash-roster-row.is-me {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.11);
}

.crash-roster-row.status-cashed {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(6, 78, 59, 0.45);
}

.crash-roster-row.status-crashed {
  opacity: 0.68;
  border-color: rgba(239, 68, 68, 0.3);
}

.roster-player-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.roster-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.roster-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.roster-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-bet {
  font-size: 0.68rem;
  color: rgba(248, 250, 252, 0.65);
}

.roster-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.roster-mult-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.roster-mult-badge.cashed {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.55);
}

.roster-mult-badge.flying {
  background: rgba(212, 175, 55, 0.18);
  color: #f9e79f;
}

.roster-mult-badge.crashed {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.roster-mult-badge.auto-tag,
.roster-mult-badge.ready-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.roster-payout-val {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
}

/* Bottom Controls Panel */
.crash-controls-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, rgba(8, 34, 23, 0.94), rgba(4, 18, 12, 0.97));
  flex-shrink: 0;
}

.crash-bet-controls-group,
.crash-auto-controls-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crash-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crash-field-label,
.crash-auto-toggle-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(249, 231, 159, 0.88);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.crash-auto-checkbox {
  accent-color: #d4af37;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.crash-quick-mod-group,
.crash-auto-presets {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-crash-mod,
.crash-auto-preset {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crash-mod:hover,
.crash-auto-preset:hover,
.crash-auto-preset.active {
  background: rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
  color: #fef08a;
}

.crash-bet-input-row,
.crash-auto-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crash-num-input {
  width: 92px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(2, 12, 8, 0.85);
  color: #fef08a;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  outline: none;
}

.crash-num-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.crash-auto-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.crash-input-suffix {
  position: absolute;
  right: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(249, 231, 159, 0.7);
  pointer-events: none;
}

.crash-chip-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.crash-chip-selector .crash-chip-btn {
  width: 34px;
  height: 34px;
  font-size: 0.66rem;
}

/* Primary Action CTA (Bet / Cash Out) */
.crash-action-cta-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.btn-crash-action {
  flex: 1;
  min-height: 54px;
  border-radius: 12px;
  border: 1.5px solid #d4af37;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 14px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.btn-crash-action * {
  pointer-events: none;
  user-select: none;
}

.btn-crash-action:active:not(:disabled) {
  filter: brightness(1.08);
}

.btn-crash-action .action-main-label {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-crash-action .action-sub-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.9;
}

.btn-crash-action.state-bet,
.btn-crash-action.state-add-bet {
  background: linear-gradient(135deg, #d4af37 0%, #b48a28 100%);
  color: #04140d;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-crash-action.state-cashout {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #d4af37 100%);
  border-color: #fef08a;
  color: #ffffff;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.65), 0 0 12px rgba(212, 175, 55, 0.5);
  animation: crashCashoutPulse 0.9s infinite alternate ease-in-out;
}

@keyframes crashCashoutPulse {
  0% {
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
  }
  100% {
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.85), 0 0 18px rgba(16, 185, 129, 0.8);
  }
}

.btn-crash-action.state-cashed-done {
  background: rgba(6, 95, 70, 0.65);
  border-color: rgba(16, 185, 129, 0.6);
  color: #a7f3d0;
  cursor: default;
}

.btn-crash-action.state-waiting,
.btn-crash-action.state-crashed {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-crash-cancel {
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.55);
  color: #fecaca;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-crash-cancel:hover {
  background: rgba(185, 28, 28, 0.75);
}

.presence-badge.badge-crash {
  background: rgba(212, 175, 55, 0.18);
  color: #fde047;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

@media (max-width: 1100px) {
  .crash-main-arena {
    grid-template-columns: 1fr 230px;
  }
  .crash-controls-panel {
    grid-template-columns: 1fr 1fr;
  }
  .crash-action-cta-group {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   BACKLOG FEATURE VIEWPORT PANES (100vh ZERO-SCROLL FIT)
   ========================================================================== */
.backlog-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  margin-bottom: 10px;
  border-radius: 12px;
}

.backlog-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.backlog-header-icon {
  fill: currentColor;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.backlog-game-title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.backlog-game-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* 5. Gokkasten / Slots View */
#slots-view {
  padding: 10px 20px;
  box-sizing: border-box;
}

.slots-main-stage {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.slots-reels-frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-luxury);
  border-radius: 12px;
  padding: 12px;
}

.slots-reel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}

.slots-symbol {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 10px 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.slots-symbol.active {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 12px var(--border-glow);
}

.slots-controls-dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.slots-bet-setting {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slots-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.slots-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* 6. Plinko View */
#plinko-view {
  padding: 10px 20px;
  box-sizing: border-box;
}

.plinko-main-stage {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.plinko-peg-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
}

.peg-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.plinko-peg {
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
}

.plinko-multiplier-bins {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.bin {
  flex: 1;
  max-width: 70px;
  padding: 6px 0;
  text-align: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}

.bin-hi { background: rgba(220, 38, 38, 0.3); color: #f87171; border: 1px solid #dc2626; }
.bin-med { background: rgba(234, 179, 8, 0.25); color: #facc15; border: 1px solid #eab308; }
.bin-low { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid #3b82f6; }
.bin-center { background: rgba(107, 114, 128, 0.25); color: #9ca3af; border: 1px solid #6b7280; }

.plinko-controls-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.plinko-bet-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plinko-input {
  width: 90px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--gold-bright);
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
}

/* 7. Monte Carlo Hi-Lo Prive View (Zero-Scroll 100vh) */
#hilo-view {
  height: 100%;
  min-height: 0;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.hilo-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.hilo-header-left,
.hilo-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hilo-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hilo-main-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.hilo-sub-title {
  font-size: 11px;
  color: var(--text-secondary);
}

.hilo-tier-pill,
.hilo-shoe-pill,
.hilo-pot-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hilo-tier-pill.tier-warm {
  border-color: rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
}

.hilo-tier-pill.tier-on-fire {
  border-color: rgba(245, 158, 11, 0.75);
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.28);
}

.hilo-tier-pill.tier-royale {
  border-color: rgba(212, 175, 55, 0.95);
  color: #fde68a;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.42);
}

.hilo-tier-label {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hilo-pot-pill strong {
  color: var(--gold-bright);
  font-size: 13px;
}

.hilo-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hilo-arena-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.hilo-top-strip {
  padding: 6px 12px;
  border-radius: 10px;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.hilo-card-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.hilo-trail-empty {
  font-size: 11px;
  color: var(--text-secondary);
}

.hilo-trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.hilo-trail-chip.is-red {
  color: #dc2626;
}

.hilo-trail-chip.is-current {
  box-shadow: 0 0 0 2px var(--gold-bright);
}

.hilo-trail-chip.is-skip {
  opacity: 0.72;
  background: #e2e8f0;
}

.hilo-trail-chip svg {
  width: 12px;
  height: 12px;
}

.hilo-felt-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(16, 46, 36, 0.72), rgba(8, 14, 22, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.26);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.hilo-felt-stage.tier-on-fire {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: inset 0 0 38px rgba(245, 158, 11, 0.16);
}

.hilo-felt-stage.tier-royale {
  border-color: rgba(212, 175, 55, 0.95);
  box-shadow: inset 0 0 54px rgba(212, 175, 55, 0.24);
}

.hilo-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.hilo-cards-arena {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
  min-height: 0;
}

.hilo-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.card-slot-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.hilo-card {
  width: 124px;
  height: 172px;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
}

.hilo-card.is-red {
  color: #dc2626;
}

.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 800;
  font-size: 14px;
}

.card-corner.top-left { top: 8px; left: 9px; }
.card-corner.bottom-right { bottom: 8px; right: 9px; transform: rotate(180deg); }
.card-corner svg { width: 12px; height: 12px; margin-top: 2px; }

.hilo-card .card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hilo-card .card-rank {
  font-size: 40px;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}

.hilo-card .card-suit {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* 3D Flip Deck */
.hilo-flip-card {
  width: 124px;
  height: 172px;
  perspective: 950px;
}

.hilo-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 0.85, 0.36, 1);
}

.hilo-flip-card.is-instant .hilo-flip-inner {
  transition: none !important;
}

.hilo-flip-card.is-slowmo .hilo-flip-inner {
  transition: transform 1.35s cubic-bezier(0.16, 0.88, 0.28, 1);
}

.hilo-flip-card.is-suspense .hilo-card-back {
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.85);
  animation: hiloSuspenseShake 0.24s infinite alternate;
}

.hilo-flip-card.flipped .hilo-flip-inner {
  transform: rotateY(180deg);
}

.hilo-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hilo-card-back {
  background: linear-gradient(145deg, #161d2b 0%, #090d14 100%);
  border: 2px solid var(--border-luxury);
}

.card-back-pattern {
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.crest-watermark {
  width: 38px;
  height: 38px;
  color: var(--gold-bright);
}

.card-back-brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
}

.hilo-card-front {
  transform: rotateY(180deg);
}

.hilo-card.flash-win {
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.85);
}

.hilo-card.flash-loss {
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.85);
}

.hilo-card.card-promote {
  animation: hiloCardPromote 0.22s cubic-bezier(0.22, 0.85, 0.36, 1) both;
}

@keyframes hiloCardPromote {
  0% {
    transform: translateX(28px) scale(0.95);
    opacity: 0.72;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.hilo-center-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  gap: 8px;
}

.hilo-versus-marker {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 12px var(--gold-glow);
}

.hilo-result-banner {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hilo-result-banner.win {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.hilo-result-banner.loss {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.hilo-prob-strip {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.prob-lbl.higher strong { color: #6ee7b7; }
.prob-lbl.equal strong { color: #fbbf24; }
.prob-lbl.lower strong { color: #fca5a5; }

.prob-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
}

.prob-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.prob-seg.higher { background: #10b981; }
.prob-seg.equal { background: #f59e0b; }
.prob-seg.lower { background: #ef4444; }

.hilo-controls-deck {
  padding: 10px 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.hilo-entry-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hilo-bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hilo-bet-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.hilo-bet-input {
  width: 92px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-luxury);
  background: rgba(5, 8, 13, 0.85);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 13px;
}

.hilo-chip-presets {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.hilo-chip-btn {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hilo-chip-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.btn-hilo-primary {
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4af37, #b48a1e);
  color: #0b0f17;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}

.hilo-active-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hilo-action-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.btn-hilo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-luxury);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-hilo:hover:not(:disabled) {
  background: var(--bg-card-hover);
  box-shadow: 0 0 14px var(--border-glow);
  transform: translateY(-2px);
}

.btn-hilo:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-hilo.is-selected {
  box-shadow: 0 0 0 2px var(--gold-bright), 0 0 18px rgba(212, 175, 55, 0.45);
}

.btn-hilo.btn-higher { border-color: rgba(16, 185, 129, 0.48); }
.btn-hilo.btn-equal { border-color: rgba(245, 158, 11, 0.55); }
.btn-hilo.btn-lower { border-color: rgba(239, 68, 68, 0.48); }

.hilo-btn-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13px;
}

.hilo-odds {
  font-size: 13px;
  font-weight: 900;
  color: var(--gold-bright);
}

.hilo-payout-preview {
  font-size: 10px;
  color: var(--text-secondary);
}

.hilo-utility-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.btn-hilo-util,
.btn-hilo-cashout {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.btn-hilo-cashout {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.btn-hilo-cashout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hilo-hotkey-hint {
  font-size: 10px;
  text-align: center;
  color: var(--text-secondary);
}

/* Right Salon Panel */
.hilo-salon-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.hilo-salon-panel,
.hilo-feed-panel {
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.hilo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.hilo-count-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
}

.hilo-salon-list,
.hilo-feed-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hilo-salon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.hilo-salon-player {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hilo-avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #0b0f17;
  flex-shrink: 0;
}

.hilo-salon-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hilo-salon-name {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hilo-salon-stats {
  font-size: 10px;
  color: var(--text-secondary);
}

.hilo-salon-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hilo-mini-card {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  font-size: 11px;
}

.hilo-mini-card.is-red { color: #dc2626; }
.hilo-mini-card svg { width: 10px; height: 10px; }

.hilo-feed-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.hilo-feed-tab {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.hilo-feed-tab.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.hilo-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
}

.hilo-feed-pos { color: #6ee7b7; font-weight: 800; }
.hilo-feed-neg { color: #fca5a5; font-weight: 800; }
.hilo-empty-note { font-size: 11px; color: var(--text-secondary); padding: 8px 2px; }

@keyframes hiloPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes hiloSuspenseShake {
  0% { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(2px) rotate(1deg); }
}

/* 8. Horse Racing View */
#racing-view {
  padding: 10px 20px;
  box-sizing: border-box;
}

.racing-main-stage {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.racing-track-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-luxury);
  border-radius: 12px;
  padding: 12px;
}

.track-lane {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
}

.horse-runner {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.racing-betting-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
}

.racing-select {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--gold-bright);
  font-weight: 600;
  padding: 6px 10px;
}

.racing-input {
  width: 80px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--gold-bright);
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
}

/* Service Buttons in Header */
.btn-service-hud {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(14, 28, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-service-hud:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-luxury);
  color: var(--gold-bright);
}

.btn-service-hud svg {
  fill: currentColor;
  color: var(--gold-primary);
}

/* ==========================================================================
   STRICT 100vh ZERO-SCROLL VIEWPORT ENFORCEMENT & RESPONSIVE SCALING
   ========================================================================== */
@media (max-height: 768px) {
  .poker-felt-stage {
    max-width: 920px;
    height: 430px !important;
    margin: 6px auto;
  }
  .poker-community-center {
    transform: translateY(-14px);
  }
  .poker-community-cards {
    min-height: 76px;
    margin-bottom: 4px;
  }
  .poker-card-slot {
    width: 56px;
    height: 78px;
  }
  .poker-controls-panel {
    padding: 6px 12px;
    margin-top: 4px;
    gap: 6px;
  }
  .poker-turn-timer-bar-track {
    height: 4px;
  }
  .slots-main-stage,
  .plinko-main-stage,
  .racing-main-stage {
    max-height: 480px;
    padding: 10px 14px;
  }
  #hilo-view {
    padding: 6px 12px;
    gap: 6px;
  }
  .hilo-header-bar {
    padding: 6px 10px;
  }
  .hilo-felt-stage {
    padding: 8px 14px;
    gap: 6px;
  }
  .hilo-card,
  .hilo-flip-card {
    width: 98px;
    height: 136px;
  }
  .hilo-card .card-rank {
    font-size: 30px;
  }
  .hilo-card .card-suit {
    width: 24px;
    height: 24px;
  }
  .hilo-controls-deck {
    padding: 7px 10px;
  }
  .btn-hilo {
    padding: 6px 10px;
  }
}

/* Modal Content Boundaries */
.modal-content,
.luxury-modal-container,
.bank-modal-content,
.poker-buyin-content {
  max-height: 88vh;
  overflow-y: auto;
}

/* 9. Royal Mines Vault View (Zero-Scroll 100vh Responsive Arena) */
#mines-view {
  height: 100%;
  min-height: 0;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.mines-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  flex-shrink: 0;
}

.mines-header-left,
.mines-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mines-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mines-main-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.mines-sub-title {
  font-size: 11px;
  color: var(--text-secondary);
}

.mines-mode-tabs {
  display: inline-flex;
  background: rgba(5, 8, 13, 0.72);
  border: 1px solid var(--border-luxury);
  border-radius: 9px;
  padding: 2px;
  gap: 3px;
}

.mines-mode-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mines-mode-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.45);
}

.mines-shared-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
}

.mines-shared-dot.live {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mines-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.mines-mult-pill strong {
  color: #34d399;
  font-size: 13px;
}

.mines-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mines-arena-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.mines-top-strip {
  padding: 6px 12px;
  border-radius: 10px;
  flex-shrink: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.mines-status-banner,
.mines-shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.mines-status-pill {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.mines-status-pill.is-live {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.mines-status-detail,
.mines-status-mult,
.shared-action-note {
  font-size: 11px;
  color: var(--text-secondary);
}

.mines-status-mult strong {
  color: #fde68a;
}

.mines-shared-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}

.shared-round-tag { color: var(--gold-bright); }

.shared-phase-tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.shared-timer-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.shared-timer-badge.is-urgent {
  background: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.shared-turn-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.shared-turn-tag.is-my-turn {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.mines-vault-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(16, 46, 36, 0.72), rgba(8, 14, 22, 0.94));
  border: 1px solid rgba(212, 175, 55, 0.26);
}

.mines-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.mines-board {
  display: grid;
  grid-template-columns: repeat(var(--mines-cols, 5), minmax(0, 1fr));
  grid-template-rows: repeat(var(--mines-cols, 5), minmax(0, 1fr));
  gap: 6px;
  width: min(350px, 100%, calc(100vh - 340px));
  height: min(350px, 100%, calc(100vh - 340px));
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 3;
}

.mines-board[data-grid-side="7"] {
  gap: 4px;
  width: min(356px, 100%, calc(100vh - 335px));
  height: min(356px, 100%, calc(100vh - 335px));
}

.mines-board.is-my-turn {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.28));
}

.mines-tile {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: linear-gradient(145deg, rgba(25, 34, 48, 0.95), rgba(13, 19, 28, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.2s ease;
  user-select: none;
}

.mines-tile.tile-hidden-interactive:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(253, 230, 138, 0.72);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
}

.mines-tile.tile-hidden-idle {
  cursor: default;
  opacity: 0.85;
}

.tile-rivet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.26);
}

.mines-tile.tile-diamond {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.92), rgba(4, 47, 46, 0.96));
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
  cursor: default;
}

.mines-tile.tile-mine {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.95), rgba(69, 10, 10, 0.98));
  border-color: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.52);
  cursor: default;
}

.mines-tile.tile-mine-reveal {
  background: linear-gradient(145deg, rgba(82, 22, 22, 0.72), rgba(45, 12, 12, 0.78));
  border-color: rgba(248, 113, 113, 0.45);
  opacity: 0.78;
  cursor: default;
}

.mines-tile-svg {
  width: 50%;
  height: 50%;
  flex-shrink: 1;
  min-height: 0;
  pointer-events: none;
}

.tile-step-mult {
  font-size: 9px;
  font-weight: 800;
  color: #a7f3d0;
  line-height: 1;
  margin-top: 1px;
}

.mines-board[data-grid-side="7"] .tile-step-mult {
  font-size: 8px;
}

.tile-actor-chip {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 14px;
  padding: 0 3px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #0b0f14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.mines-result-banner {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.mines-result-banner.is-win {
  background: rgba(6, 78, 59, 0.94);
  border: 1px solid #34d399;
  color: #ecfdf5;
}

.mines-result-banner.is-bust {
  background: rgba(127, 29, 29, 0.94);
  border: 1px solid #f87171;
  color: #fef2f2;
}

.mines-controls-deck {
  padding: 8px 12px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mines-config-row,
.mines-bet-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mines-cfg-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mines-cfg-label,
.mines-bet-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.mines-size-pills,
.mines-bomben-picker,
.mines-shared-mine-pills,
.mines-chip-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mines-size-btn,
.mines-preset-mine-btn,
.mines-shared-mine-btn,
.mines-step-btn,
.mines-chip-btn {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 28, 0.85);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mines-size-btn.active,
.mines-preset-mine-btn.active,
.mines-shared-mine-btn.active {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.mines-size-btn.is-leading:not(.active) {
  border-color: rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
}

.mines-count-input,
.mines-bet-input {
  width: 58px;
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid var(--border-luxury);
  background: rgba(6, 10, 16, 0.88);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mines-bet-input { width: 82px; }

.mines-bet-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mines-start-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-mines-primary {
  background: linear-gradient(135deg, #d4af37, #b58d1e);
  color: #0b0f14;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-mines-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mines-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mines-stat-chip {
  flex: 1;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mines-stat-chip .stat-lbl {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.mines-stat-chip strong {
  font-size: 12px;
  color: var(--gold-bright);
}

.btn-mines-cashout {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #041d15;
  font-weight: 900;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-mines-cashout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mines-active-hint {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

.mines-salon-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.mines-salon-panel,
.mines-feed-panel {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.mines-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.mines-count-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
}

.mines-salon-list,
.mines-feed-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mines-empty-note {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 4px;
}

.mines-salon-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mines-salon-row.is-turn {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(6, 78, 59, 0.28);
}

.mines-salon-row .salon-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #0b0f14;
  flex-shrink: 0;
}

.mines-salon-row .salon-meta {
  flex: 1;
  min-width: 0;
}

.mines-salon-row .salon-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mines-salon-row .salon-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.salon-mode-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.salon-mode-badge.turn-hot {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.mines-feed-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mines-feed-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 18, 0.7);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  padding: 5px;
  border-radius: 7px;
  cursor: pointer;
}

.mines-feed-tab.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.16);
}

.mines-feed-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.feed-badge-mode {
  font-size: 9px;
  font-weight: 800;
  color: var(--gold-bright);
}

.feed-amount.win-txt { color: #6ee7b7; font-weight: 700; }
.feed-amount.bust-txt { color: #fca5a5; }

@media (max-height: 768px) {
  .mines-board {
    width: min(322px, 100%, calc(100vh - 332px));
    gap: 5px;
  }
  .mines-board[data-grid-side="7"] {
    width: min(330px, 100%, calc(100vh - 325px));
    gap: 4px;
  }
  .mines-controls-deck { padding: 6px 10px; gap: 5px; }
}

/* ==========================================================================
   CASINO STAATSLOTERIJ (100% SPELERSPOT, 0% HUISVOORDEEL, 10-MIN CYCLUS)
   ========================================================================== */
.btn-lottery-hud {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #f9e79f;
}

.btn-lottery-hud.lottery-hud-hot {
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  color: #fde047;
}

.lottery-hud-timer {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fde68a;
}

.lottery-hud-pot {
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
}

.lottery-modal-shell {
  width: min(880px, 95vw);
}

.lottery-round-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.lottery-phase-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}

.lottery-phase-pill.is-open {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.lottery-phase-pill.is-drawing {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde047;
}

.lottery-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lottery-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, rgba(16, 40, 30, 0.78), rgba(10, 18, 15, 0.9));
}

.lottery-hero-pot-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lottery-hero-pot-block .jackpot-caption {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #6ee7b7;
}

.lottery-hero-pot-block .jackpot-counter-val {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #f9e79f;
  line-height: 1.1;
}

.lottery-hero-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.lottery-hero-timer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.lottery-timer-caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lottery-timer-val {
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
}

.lottery-timer-val.is-urgent {
  color: #fca5a5;
}

@keyframes lotteryStageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px) translateY(1px); }
  40% { transform: translateX(2px) translateY(-1px); }
  60% { transform: translateX(-2px) translateY(0); }
  80% { transform: translateX(2px) translateY(1px); }
}

@keyframes lotteryCardWinPulse {
  0%, 100% { transform: scale(1.06); box-shadow: 0 0 22px rgba(250, 204, 21, 0.72); }
  50% { transform: scale(1.12); box-shadow: 0 0 36px rgba(250, 204, 21, 0.96), 0 0 18px rgba(16, 185, 129, 0.65); }
}

.lottery-draw-status {
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(250, 204, 21, 0.22), rgba(212, 175, 55, 0.12));
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.25s ease;
}

.lottery-draw-status.is-near-miss {
  border-color: rgba(245, 158, 11, 0.85);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.18));
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.lottery-draw-status.is-winner {
  border-color: rgba(16, 185, 129, 0.8);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(212, 175, 55, 0.28), rgba(16, 185, 129, 0.2));
  color: #ecfdf5;
}

.lottery-reel-stage {
  position: relative;
  width: 100%;
  height: 108px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12), rgba(5, 10, 14, 0.94));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
}

.lottery-reel-stage.is-spinning-up {
  animation: lotteryStageShake 0.16s infinite;
  border-color: rgba(250, 204, 21, 0.78);
}

.lottery-reel-stage.is-near-miss {
  border-color: #f59e0b;
  box-shadow: inset 0 0 28px rgba(245, 158, 11, 0.26), 0 0 22px rgba(245, 158, 11, 0.38);
}

.lottery-reel-stage.is-celebrating {
  border-color: #fde047;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.35), 0 0 28px rgba(250, 204, 21, 0.5);
}

.lottery-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.lottery-reel-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fef08a, #facc15, #fef08a);
  box-shadow: 0 0 16px rgba(253, 224, 71, 0.95);
  z-index: 5;
}

.lottery-reel-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  will-change: transform;
}

.lottery-reel-card {
  flex: 0 0 106px;
  width: 106px;
  height: 76px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 24, 30, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 6px;
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lottery-reel-card.landed-highlight {
  border-color: #fde047;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.34), rgba(16, 185, 129, 0.22));
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.72);
  animation: lotteryCardWinPulse 1.2s ease-in-out infinite;
  z-index: 4;
}

.lottery-reel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #08120e;
}

.lottery-reel-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-reel-ticket {
  font-size: 10px;
  color: #fde68a;
  font-variant-numeric: tabular-nums;
}

.lottery-draw-banner {
  padding: 12px 16px;
  border-radius: 11px;
  border: 1px solid rgba(250, 204, 21, 0.65);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(212, 175, 55, 0.18));
  color: #ecfdf5;
  font-size: 13.5px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.18);
}

.lottery-draw-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d4af37;
  color: #06110c;
  font-size: 10px;
  font-weight: 900;
}

.lottery-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
}

.lottery-buy-card,
.lottery-participants-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 14, 12, 0.68);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lottery-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.lottery-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lottery-step-btn {
  width: 38px;
  flex: 0 0 38px;
  font-weight: 900;
  font-size: 16px;
}

.lottery-qty-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lottery-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lottery-preview-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.lottery-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lottery-my-summary {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lottery-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
}

.lottery-summary-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.lottery-summary-stats span {
  font-size: 10px;
  color: var(--text-muted);
}

.lottery-my-ranges {
  font-size: 11px;
  color: var(--text-secondary);
}

.lottery-participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.lottery-participant-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lottery-participant-row.is-self {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.lottery-participant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.lottery-participant-ident {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lottery-color-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #06110c;
}

.lottery-participant-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-participant-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lottery-odds-chip {
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
}

.lottery-odds-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lottery-odds-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.lottery-history-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lottery-history-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lottery-history-chip {
  flex: 0 0 auto;
  min-width: 155px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 14, 18, 0.72);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}

.lottery-history-head {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.lottery-history-round { color: var(--text-muted); }
.lottery-history-pot { color: #6ee7b7; }

.lottery-history-winner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.lottery-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.lottery-history-meta {
  font-size: 10px;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  #hilo-view {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .hilo-header-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hilo-header-left,
  .hilo-header-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .hilo-main-grid {
    grid-template-columns: 1fr;
    flex: none;
    overflow: visible;
  }
  .hilo-arena-col {
    flex: none;
    overflow: visible;
  }
  .hilo-felt-stage {
    flex: none;
    min-height: 290px;
  }
  .hilo-salon-col {
    flex: none;
    overflow: visible;
  }
  .hilo-salon-panel,
  .hilo-feed-panel {
    flex: none;
    max-height: 240px;
  }
}

@media (max-width: 600px) {
  #hilo-view {
    padding: 6px 8px;
    gap: 6px;
  }
  .hilo-felt-stage {
    min-height: 240px;
    padding: 10px 10px;
    gap: 8px;
  }
  .hilo-cards-arena {
    gap: 10px;
  }
  .hilo-card,
  .hilo-flip-card {
    width: 92px;
    height: 128px;
  }
  .hilo-card .card-rank {
    font-size: 28px;
  }
  .hilo-card .card-suit {
    width: 24px;
    height: 24px;
  }
  .hilo-entry-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .hilo-start-actions {
    width: 100%;
  }
  .btn-hilo-primary {
    width: 100%;
    text-align: center;
  }
  .hilo-utility-controls {
    grid-template-columns: 1fr;
  }
}

.btn.is-unaffordable {
  opacity: 0.58;
  filter: grayscale(0.25);
}

@media (max-width: 760px) {
  .lottery-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .lottery-hero-timer-block {
    align-items: flex-start;
    width: 100%;
  }
  .lottery-columns-grid {
    grid-template-columns: 1fr;
  }
}




