/* Rocket preview */
.preview-rocket {
  background: radial-gradient(circle at 50% 85%, #0f3d2e, #071018 70%);
}
.rocket-3d {
  width: 34px; height: 52px;
  background: linear-gradient(180deg, #e2e8f0, #64748b);
  border-radius: 50% 50% 16% 16%;
  position: relative;
  transform-style: preserve-3d;
  animation: rocket-float 2.2s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.4);
}
.rocket-3d::after {
  content: '';
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 13px; height: 20px;
  background: linear-gradient(to bottom, #fbbf24, #ef4444, transparent);
  border-radius: 40%;
  animation: flame-flicker 0.12s infinite alternate;
}
.rocket-mx {
  position: absolute; left: 16px; top: 16px;
  font-size: 24px; font-weight: 800; color: var(--green2);
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.65);
}

/* Mines preview */
.preview-mines { background: linear-gradient(135deg, #2e1065, #1e1b4b); }
.mines-mini {
  display: grid; grid-template-columns: repeat(4, 24px); gap: 4px; font-size: 14px;
}

/* Hokm preview */
.preview-hokm { background: linear-gradient(135deg, #4c1d95, #1e1b4b); }
.card-fan { position: relative; width: 88px; height: 64px; perspective: 400px; }
.card-fan i {
  position: absolute; width: 40px; height: 54px; border-radius: 5px;
  background: #f8fafc; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-style: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
}
.card-fan .c1 { left: 0; top: 6px; transform: rotateY(-18deg) rotateZ(-12deg); color: #0f172a; }
.card-fan .c2 { left: 15px; top: 0; transform: rotateY(-6deg) rotateZ(-4deg); color: #dc2626; }
.card-fan .c3 { left: 30px; top: 0; transform: rotateY(6deg) rotateZ(4deg); color: #dc2626; }
.card-fan .c4 { left: 45px; top: 6px; transform: rotateY(18deg) rotateZ(12deg); color: #0f172a; }

/* PVP preview */
.preview-pvp {
  background: linear-gradient(135deg, #3b0764, #1a0533);
  flex-direction: column; gap: 4px;
}
.swords-ico {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(232, 121, 249, 0.5));
  animation: swords-pulse 2s ease-in-out infinite;
}

/* Crash stage */
.crash-stage {
  flex: 1; position: relative; margin: 8px; border-radius: 14px;
  overflow: hidden; background: #071018;
}
.crash-stage canvas { width: 100%; height: 100%; display: block; }
.crash-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.crash-mult {
  font-size: 48px; font-weight: 900; color: var(--green2);
  text-shadow: 0 0 28px rgba(74, 222, 128, 0.6);
  transition: color 0.15s;
}
.crash-mult.hot { color: var(--gold2); text-shadow: 0 0 28px rgba(251, 191, 36, 0.55); }
.crash-mult.boom { color: var(--red); text-shadow: 0 0 28px rgba(239, 68, 68, 0.6); }
.crash-status { font-size: 12px; color: var(--muted); margin-top: 4px; }
.crash-hist {
  display: flex; gap: 5px; overflow-x: auto; padding: 6px 0; scrollbar-width: none;
}
.crash-hist::-webkit-scrollbar { display: none; }
.crash-hist span {
  font-size: 11px; padding: 3px 7px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.07); white-space: nowrap; font-weight: 600;
}
.bet-row { display: flex; gap: 7px; padding: 0 12px 12px; }
.bet-row input {
  flex: 1; padding: 11px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4); color: var(--text); text-align: center; font-size: 14px;
}

/* Mines board */
.mines-info {
  display: flex; justify-content: space-around; padding: 10px; font-size: 13px;
}
.mines-board {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px;
  padding: 0 14px; max-width: 320px; margin: 0 auto;
}
.mine-cell {
  aspect-ratio: 1; border-radius: 9px;
  background: linear-gradient(145deg, #2e1065, #1e1b4b);
  border: 1px solid rgba(168, 85, 247, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  transition: transform 0.12s, background 0.2s;
  transform-style: preserve-3d;
}
.mine-cell:active { transform: scale(0.9) rotateX(8deg); }
.mine-cell.open { background: linear-gradient(145deg, #166534, #14532d); }
.mine-cell.boom {
  background: linear-gradient(145deg, #7f1d1d, #450a0a);
  animation: cell-shake 0.35s;
}
.mines-controls { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mines-opts {
  display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 12px;
}
.mines-opts select, .mines-opts input {
  padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4); color: var(--text);
}

/* Hokm */
.hokm-home {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 18px; gap: 10px;
}
.hokm-crown {
  font-size: 40px;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
  animation: crown-bob 2.5s ease-in-out infinite;
}
.hokm-title {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hokm-suits { font-size: 18px; letter-spacing: 8px; color: var(--muted); }
.hokm-nav {
  display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; justify-content: center;
}
.hokm-nav button {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text); padding: 7px 10px; border-radius: 10px;
  font-size: 11px; cursor: pointer;
}
.hokm-create {
  position: absolute; inset: 0; background: var(--bg);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.chip-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid #64748b;
  background: #1e293b; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chip-btn.active {
  border-color: var(--gold2); box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

/* PVP */
.pvp-wait {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 18px; gap: 12px;
}
.pvp-ring {
  width: 200px; height: 200px; border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.3);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  place-items: center;
  animation: ring-spin 20s linear infinite;
}
.pvp-slot {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(30, 20, 55, 0.55); border: 1px solid rgba(168, 85, 247, 0.18);
}
.pvp-mid {
  width: auto; height: auto; padding: 4px 10px; font-size: 11px;
  color: var(--muted); background: rgba(0, 0, 0, 0.35); border-radius: 16px;
}
.pvp-swords {
  font-size: 42px;
  filter: drop-shadow(0 0 14px rgba(232, 121, 249, 0.45));
  animation: swords-pulse 2s ease-in-out infinite;
}
