/* ==========================================================================
   SPRIBE HI-LO TURBO - 1:1 AUTHENTIC CASINO INTERFACE
   Druk Fortune Games Platform
   ========================================================================== */

:root {
  --hilo-bg-dark: #0e0f11;
  --hilo-panel-bg: #141518;
  --hilo-card-bg: #1b1c20;
  --hilo-border: rgba(255, 255, 255, 0.08);
  --hilo-border-glow: rgba(255, 255, 255, 0.18);
  --hilo-green: #28a909;
  --hilo-green-glow: rgba(40, 169, 9, 0.45);
  --hilo-yellow: #f59e0b;
  --hilo-yellow-glow: rgba(245, 158, 11, 0.4);
  --hilo-red: #ef4444;
  --hilo-cyan: #06b6d4;
  --hilo-text-main: #ffffff;
  --hilo-text-dim: #9ca3af;
}

#viewHilo {
  display: none;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, #1c1e24 0%, #0d0e11 65%, #08080a 100%);
  color: var(--hilo-text-main);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

#viewHilo.active {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   SPRIBE HEADER BAR
   -------------------------------------------------------------------------- */
.hilo-header {
  height: 48px;
  background: #141517;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hilo-hdr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hilo-icon-btn {
  background: #202226;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.hilo-icon-btn:hover {
  background: #2a2d33;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hilo-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
}

.hilo-brand-suits {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
}

.hilo-suits-red {
  color: #ef4444;
}

.hilo-suits-black {
  color: #e5e7eb;
}

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

.hilo-balance-pill {
  background: #1e2024;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hilo-tool-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, transform 0.15s;
}

.hilo-tool-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   HISTORY STRIP (SPRIBE TOP RIBBON)
   -------------------------------------------------------------------------- */
.hilo-history-strip {
  background: #111214;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.hilo-history-strip::-webkit-scrollbar {
  height: 4px;
}

.hilo-history-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.hilo-history-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.hilo-history-card {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #1c1d21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
  transition: transform 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.hilo-history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.hilo-history-card.card-red {
  color: #ef4444;
}

.hilo-history-card.card-black {
  color: #f3f4f6;
}

/* --------------------------------------------------------------------------
   MAIN ARENA CONTAINER (SPLIT DESK & ARENA)
   -------------------------------------------------------------------------- */
.hilo-main-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  box-sizing: border-box;
}

/* Mobile-First Ordering: Arena (Cards) on TOP, Controls on BOTTOM! */
@media (max-width: 900px) {
  .hilo-main-container {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 12px;
  }

  .hilo-arena-panel {
    order: 1; /* CARDS ON TOP! */
    padding: 16px 12px !important;
    min-height: auto !important;
  }

  .hilo-control-panel {
    order: 2; /* BET CONTROLS AT BOTTOM! */
    padding: 14px 12px !important;
  }
}

/* --------------------------------------------------------------------------
   BETTING CONTROL DESK
   -------------------------------------------------------------------------- */
.hilo-control-panel {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hilo-bet-tabs {
  display: flex;
  background: #0d0e10;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.hilo-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.hilo-tab-btn.active {
  background: #23252a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hilo-input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hilo-input-wrapper {
  display: flex;
  align-items: center;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hilo-input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.hilo-amount-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  padding: 8px 12px;
  outline: none;
  width: 100%;
}

.hilo-mod-btn {
  background: #202226;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
}

.hilo-mod-btn:hover {
  background: #2b2e35;
  color: #fff;
}

.hilo-chips-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.hilo-chip-pill {
  background: #1c1d22;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9ca3af;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  user-select: none;
}

.hilo-chip-pill:hover,
.hilo-chip-pill.active {
  background: #282a31;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Primary Action Buttons */
.hilo-action-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hilo-btn-primary {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, filter 0.2s, box-shadow 0.2s;
  font-family: inherit;
  user-select: none;
}

.hilo-btn-primary:active {
  transform: scale(0.98);
}

.hilo-btn-start {
  background: linear-gradient(135deg, #28a909 0%, #1e8705 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(40, 169, 9, 0.35);
}

.hilo-btn-start:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(40, 169, 9, 0.5);
}

.hilo-btn-cashout {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  animation: pulseCashoutGlow 1.8s infinite;
}

.hilo-btn-cashout.btn-waiting-pick {
  background: linear-gradient(135deg, #1f242e 0%, #151820 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  animation: none !important;
  cursor: default !important;
}

.hilo-btn-cashout.btn-waiting-pick .hilo-btn-sub-txt {
  color: #9ca3af !important;
  font-weight: 700 !important;
}

.hilo-btn-cashout.btn-cashout-ready {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5) !important;
  animation: pulseCashoutGlow 1.8s infinite !important;
  cursor: pointer !important;
}

#btnHiloStart[style*="display: none"],
#btnHiloCashout[style*="display: none"],
#hiloStreakBox[style*="display: none"] {
  display: none !important;
}

@keyframes pulseCashoutGlow {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.75); }
  100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
}

.hilo-btn-main-txt {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hilo-btn-sub-txt {
  font-size: 12.5px;
  font-weight: 800;
  opacity: 0.95;
}

/* Streak and Accumulator Stat */
.hilo-streak-stat-box {
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hilo-stat-item {
  display: flex;
  flex-direction: column;
}

.hilo-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}

.hilo-stat-val {
  font-size: 17px;
  font-weight: 900;
  color: #34d399;
}

/* --------------------------------------------------------------------------
   RIGHT PANEL: THE SPRIBE CARDS ARENA
   -------------------------------------------------------------------------- */
.hilo-arena-panel {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-height: 460px;
}

/* Top Arena Strip (Round info & Skip Button) */
.hilo-arena-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hilo-round-badge {
  font-size: 12px;
  font-weight: 800;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hilo-skip-btn {
  background: #202226;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  user-select: none;
}

.hilo-skip-btn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.hilo-skip-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #6b7280;
}

/* CARDS STAGE: BASE CARD + 3-CARD PICK AREA */
.hilo-cards-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 12px 0 24px 0;
  position: relative;
}

@media (max-width: 600px) {
  .hilo-cards-stage {
    gap: 16px;
    margin: 8px 0 16px 0;
  }
}

/* Base Card Zone */
.hilo-base-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hilo-zone-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
}

/* 3-Card Next Zone */
.hilo-deck-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hilo-deck-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 600px) {
  .hilo-deck-row {
    gap: 8px;
  }
}

/* CARD SPECIFICATIONS (AUTHENTIC CASINO STYLE) */
.hilo-card-container {
  width: 105px;
  height: 150px;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  position: relative;
  user-select: none;
}

@media (max-width: 600px) {
  .hilo-card-container {
    width: 78px;
    height: 114px;
  }
}

@media (max-width: 420px) {
  .hilo-cards-stage {
    gap: 10px !important;
  }
  .hilo-deck-row {
    gap: 6px !important;
  }
  .hilo-card-container {
    width: 68px !important;
    height: 100px !important;
  }
  .hilo-card-rank { font-size: 13px !important; }
  .hilo-card-suit-small { font-size: 10px !important; }
  .hilo-card-center-suit { font-size: 28px !important; }
}

@media (max-width: 360px) {
  .hilo-cards-stage {
    gap: 6px !important;
  }
  .hilo-deck-row {
    gap: 4px !important;
  }
  .hilo-card-container {
    width: 62px !important;
    height: 92px !important;
  }
  .hilo-card-rank { font-size: 11.5px !important; }
  .hilo-card-center-suit { font-size: 24px !important; }
}

.hilo-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 12px;
}

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

.hilo-card-front,
.hilo-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Card Front (Face Up White Style) - NEVER white text! */
.hilo-card-front {
  background: #ffffff;
  color: #111827; /* CRITICAL: High-contrast dark text by default */
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
  transform: rotateY(180deg);
  user-select: none;
}

/* Base Card is ALWAYS face up (transform: none) */
.hilo-card-front.is-base-card {
  transform: none !important;
}

.hilo-card-corner-top,
.hilo-card-corner-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.hilo-card-corner-top {
  align-self: flex-start;
}

.hilo-card-corner-bottom {
  align-self: flex-end;
  transform: rotate(180deg);
}

.hilo-card-rank {
  font-size: 17px;
  font-weight: 900;
  font-family: inherit;
}

.hilo-card-suit-small {
  font-size: 13px;
  margin-top: 1px;
}

.hilo-card-center-suit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 46px;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .hilo-card-front { padding: 6px 7px; }
  .hilo-card-rank { font-size: 14px; }
  .hilo-card-suit-small { font-size: 11px; }
  .hilo-card-center-suit { font-size: 34px; }
}

/* Card Suit Colors */
.card-suit-red,
.card-suit-red .hilo-card-rank,
.card-suit-red .hilo-card-suit-small,
.card-suit-red .hilo-card-center-suit {
  color: #dc2626 !important;
}

.card-suit-black,
.card-suit-black .hilo-card-rank,
.card-suit-black .hilo-card-suit-small,
.card-suit-black .hilo-card-center-suit {
  color: #111827 !important;
}

/* Card Back (Spribe Dark Geometric Deck) */
.hilo-card-back {
  background: linear-gradient(135deg, #1b1d22 0%, #121316 100%);
  border: 2px solid #2e3138;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.hilo-card-back::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

.hilo-card-back-pattern {
  font-size: 28px;
  opacity: 0.5;
  color: #9ca3af;
  transition: transform 0.3s;
}

/* Selected Card Target Ring (Default center card or clicked card) */
.hilo-pick-card.is-selected .hilo-card-back {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.hilo-pick-card.is-selected .hilo-card-back-pattern {
  color: #f59e0b;
  opacity: 0.85;
}

/* Card Back Pickable Hover States */
.hilo-pick-card.can-pick:hover .hilo-card-back {
  border-color: #f59e0b;
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}

.hilo-pick-card.can-pick:hover .hilo-card-back-pattern {
  transform: scale(1.18);
  opacity: 1;
  color: #f59e0b;
}

.hilo-pick-card.winner .hilo-card-front {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.85), 0 0 4px #10b981;
  border-color: #10b981;
}

.hilo-pick-card.loser .hilo-card-front {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.85), 0 0 4px #ef4444;
  border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   PREDICTION BUTTONS (HIGH OR SAME / LOW OR SAME)
   -------------------------------------------------------------------------- */
.hilo-predict-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hilo-predict-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .hilo-predict-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.hilo-predict-btn {
  background: #1c1d22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: #fff;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  user-select: none;
}

@media (max-width: 600px) {
  .hilo-predict-btn {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hilo-pred-mult-badge {
    align-self: flex-end;
  }
}

.hilo-predict-btn:hover:not(:disabled) {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hilo-predict-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.hilo-predict-btn.active-choice {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

.hilo-predict-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.hilo-pred-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 600px) {
  .hilo-pred-left {
    gap: 8px;
  }
}

.hilo-pred-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.icon-high {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-low {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hilo-pred-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hilo-pred-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hilo-pred-desc {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}

.hilo-pred-mult-badge {
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 900;
  color: #fbbf24;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .hilo-pred-mult-badge {
    padding: 4px 10px;
    font-size: 14px;
  }
}

/* Prompt Banner: "Select High/Low, then tap a card" */
.hilo-prompt-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Footer Provably Fair & Rules */
.hilo-arena-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #6b7280;
}

.hilo-footer-link {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.hilo-footer-link:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   HOW TO PLAY MODAL (SPRIBE HI-LO TURBO RULES)
   -------------------------------------------------------------------------- */
.hilo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hilo-modal-card {
  background: #16171b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  color: #e5e7eb;
}

.hilo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.hilo-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hilo-modal-close {
  background: #252830;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.hilo-modal-close:hover {
  color: #fff;
}

.hilo-rule-step {
  margin-bottom: 14px;
}

.hilo-step-title {
  font-weight: 800;
  font-size: 14px;
  color: #f59e0b;
  margin-bottom: 4px;
}

.hilo-step-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}
