:root {
  --red: #ffc107;
  --red-dark: #ffb300;
  --green: #18b95f;
  --green-dark: #009739;
  --blue: #5ca8ff;
  --purple: #b85cf6;
  --yellow: #ffc107;
  --page: #ffffff;
  --card: #ffffff;
  --card-soft: rgba(139, 92, 246, 0.06);
  --text: #241a3d;
  --muted: #756c8c;
  --line: rgba(184, 92, 246, 0.16);
  --shadow: 0 10px 28px rgba(36, 26, 61, 0.1);
  --gold-glow: rgba(255, 193, 7, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #fbfaff;
  font-family: 'Poppins', 'Segoe UI', Arial, Helvetica, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 26% at 50% 8%, rgba(255, 200, 60, 0.10), transparent 70%),
    radial-gradient(45% 35% at 15% 75%, rgba(184, 92, 246, 0.07), transparent 70%),
    radial-gradient(45% 35% at 85% 70%, rgba(92, 168, 255, 0.06), transparent 70%);
  animation: bgGlowShift 14s ease-in-out infinite alternate;
}

@keyframes bgGlowShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(3deg); }
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 14px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.app-header {
  height: 44px;
  margin: 0 -10px;
  padding: 0 12px;
  color: white;
  background: var(--red-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.app-header strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.8px;
  font-style: italic;
  background: linear-gradient(180deg, #fffef5, #fff 40%, #ffe9b0 75%, #fff6d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
  filter: drop-shadow(0 1px 0 rgba(140, 80, 0, 0.35));
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red-dark);
  background: white;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.65), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-icon {
  width: 30px;
  height: 30px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-icon:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.header-icon svg {
  width: 18px;
  height: 18px;
}

.header-icon.ghost {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.wallet-card {
  min-height: 94px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 193, 7, 0.16), transparent 8rem),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 24px var(--gold-glow);
  backdrop-filter: blur(6px);
  text-align: center;
}

.account-mode-switch {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.mode-tab {
  height: 34px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.mode-tab.active {
  color: white;
  background: var(--red-dark);
}

.demo-badge {
  display: block;
  margin: 0 auto 8px;
  width: fit-content;
  padding: 3px 12px;
  border-radius: 999px;
  color: white;
  background: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.wallet-card strong {
  display: block;
  font-size: 18px;
}

.wallet-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.wallet-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.wallet-actions button {
  height: 34px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  font-size: 13px;
}

.withdraw {
  background: #ff6165;
}

.deposit {
  background: #1abd6a;
}

.notice-bar {
  min-height: 30px;
  margin-top: 10px;
  padding: 5px 7px;
  border-radius: 4px;
  color: #c2600a;
  background: #fff4e6;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 20px 1fr 64px;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}

.notice-bar span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-weight: 900;
}

.notice-bar p {
  margin: 0;
  line-height: 1.25;
}

.notice-bar button {
  height: 20px;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.period-tabs {
  height: 88px;
  margin-top: 10px;
  padding: 0 6px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.period-tabs button {
  align-self: stretch;
  margin: 8px 0;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(36, 26, 61, 0.04);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
}

.period-tabs button.active {
  color: #172033;
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  font-weight: 800;
}

.period-tabs strong,
.period-tabs span {
  display: block;
}

.round-card {
  min-height: 88px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  color: #172033;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 0 26px var(--gold-glow);
  animation: roundCardGlow 3.5s ease-in-out infinite;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

@keyframes roundCardGlow {
  0%, 100% { box-shadow: 0 0 18px var(--gold-glow); }
  50% { box-shadow: 0 0 32px rgba(255, 193, 7, 0.55); }
}

.round-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed rgba(23, 32, 51, 0.35);
}

.round-info,
.round-timer {
  position: relative;
  z-index: 1;
}

.round-info span,
.round-timer span {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.round-info strong {
  display: block;
  margin-top: 10px;
  font-size: 12px;
}

.round-timer {
  text-align: right;
}

.timer-box {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}

.timer-box b {
  width: 21px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #111827;
  background: white;
  font-size: 18px;
  animation: timerTick 1s ease-in-out infinite;
}

@keyframes timerTick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.timer-box i {
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
}

.round-timer small {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  font-size: 11px;
}

.bet-card,
.login-panel,
.history-card,
.open-panel {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.choices {
  display: grid;
  gap: 10px;
}

.color-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.choice {
  min-height: 36px;
  border-radius: 6px;
  color: white;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.choice.active {
  transform: scale(1.04) translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.35), 0 0 0 4px #ffffff, 0 0 0 7px var(--yellow) !important;
  z-index: 5;
  position: relative;
}

.choice[data-color="green"] {
  background: var(--green);
}

.choice[data-color="red"] {
  background: #ff4a54;
}

.choice[data-color="violet"] {
  background: var(--purple);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 4px 2px;
}

.number-choice {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  font-weight: 900;
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 4px 9px rgba(34, 44, 78, 0.14);
}

.number-choice.active {
  transform: scale(1.16) !important;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.45), 0 0 0 3px #ffffff, 0 0 0 6px var(--yellow) !important;
  z-index: 5;
  position: relative;
  border-color: transparent !important;
  outline: none !important;
}

.green,
.number-choice[data-color="green"],
.number-chip.green {
  background: linear-gradient(145deg, #60e399, #009739);
}

.red,
.number-choice[data-color="red"],
.number-chip.red {
  background: linear-gradient(145deg, #ff7b7d, #ed3237);
}

.violet,
.number-choice[data-color="violet"],
.number-chip.violet {
  background: linear-gradient(145deg, #d36cff, #6f3ee8);
}

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

.multiplier-row button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(36, 26, 61, 0.04);
  font-size: 11px;
}

.multiplier-row button.active {
  color: white;
  background: var(--green);
}

.size-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  background: rgba(36, 26, 61, 0.04);
  padding: 4px;
  gap: 8px;
  overflow: visible;
}

.size-choices .choice {
  min-height: 38px;
  border-radius: 8px;
}

.choice[data-size="big"] {
  background: #ffa33f;
}

.choice[data-size="small"] {
  background: #6ba9f5;
}

/* Reduced opacity for non-selected items to make selection stand out */
.color-choices:has(.choice.active) .choice:not(.active),
.number-grid:has(.number-choice.active) .number-choice:not(.active),
.size-choices:has(.choice.active) .choice:not(.active) {
  opacity: 0.45;
  transform: scale(0.95);
  filter: grayscale(20%);
}

.stake-row {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.stake-row label {
  color: var(--muted);
  font-size: 12px;
}

.stake-control {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
}

.stake-control button,
.stake-control input {
  height: 38px;
  border-radius: 8px;
}

.stake-control button {
  color: white;
  background: var(--red);
  font-weight: 900;
}

.stake-control input {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(36, 26, 61, 0.04);
  text-align: center;
  font-weight: 800;
}

.place-bet {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(180deg, #21c56b, #009739);
  font-weight: 900;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(24, 185, 95, 0.4);
  animation: placeBetGlow 2.4s ease-in-out infinite;
}

@keyframes placeBetGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(24, 185, 95, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(24, 185, 95, 0.6); }
}

.status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.section-title,
.history-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.section-title span {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.login-form {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 72px;
  gap: 7px;
}

#loginButtons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.login-main-button,
.register-main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-main-button {
  background: linear-gradient(180deg, #ffc107, #ffb300);
  color: white;
  border: none;
}

.login-main-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.register-main-button {
  background: white;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.register-main-button:hover {
  background: #fff8e1;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-details {
  flex: 1;
}

.profile-details strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.profile-details small {
  font-size: 12px;
  color: var(--muted);
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 8px;
  background: rgba(36, 26, 61, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-action-btn:hover {
  background: rgba(255, 193, 7, 0.12);
  border-color: var(--blue);
}

.login-form input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  min-width: 0;
  background: rgba(36, 26, 61, 0.04);
  color: var(--text);
}

.login-form button,
.profile-card button {
  border-radius: 7px;
  color: white;
  background: var(--red);
  font-weight: 800;
}

.profile-card {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(36, 26, 61, 0.04);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}

.profile-card small {
  color: var(--muted);
}

.profile-card button {
  grid-row: 1 / 3;
  grid-column: 2;
  height: 30px;
  padding: 0 14px;
}

.hidden {
  display: none !important;
}

.history-tabs {
  margin-bottom: 10px;
}

.history-tabs button {
  flex: 1;
  height: 34px;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(36, 26, 61, 0.04);
  font-size: 12px;
}

.history-tabs button.active {
  color: white;
  background: var(--red);
  font-weight: 800;
}

.history-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--card-soft, var(--card));
}

.history-pagination button {
  background: var(--gold, #ffc107);
  color: #1f1430;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.history-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.history-pagination span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.table-head {
  min-height: 42px;
  padding: 0 14px;
  color: white;
  background: var(--red);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  font-size: 13px;
}

.stats-block {
  padding: 10px;
  background: #f4f1fb;
  font-size: 11px;
}

.stats-block p {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  color: var(--text);
}

.stats-block p span {
  color: var(--muted);
}

.winner-row,
.stat-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px;
  align-items: center;
  min-height: 24px;
}

.mini-digits,
.result-digits {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  align-items: center;
}

.mini-digits i {
  width: 18px;
  height: 18px;
  border: 1px solid #ff9ca1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ff4c55;
  font-style: normal;
  font-size: 10px;
}

.result-digits i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
  background: transparent;
}

.stat-line b {
  color: var(--muted);
  font-weight: 500;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  text-align: center;
}

.stat-line b span {
  display: inline-block;
}

.result-list {
  background: #f7f5fc;
  position: relative;
}

.period-row {
  min-height: 42px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 122px 1fr 22px;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}

.result-digits i.hit {
  color: white;
  border-color: transparent;
  font-weight: bold;
}

.result-digits i.hit.red {
  background: linear-gradient(145deg, #ff7b7d, #ed3237);
}

.result-digits i.hit.green {
  background: linear-gradient(145deg, #60e399, #009739);
}

.result-digits i.hit.violet-red {
  background: linear-gradient(90deg, #ed3237 50%, #b85cf6 50%);
}

.result-digits i.hit.violet-green {
  background: linear-gradient(90deg, #009739 50%, #b85cf6 50%);
}

.period-status {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

.period-status.size-big {
  background: #ffa33f;
}

.period-status.size-small {
  background: #6ba9f5;
}

/* Registro de jogo */
.record-row,
.table-head.record-head {
  display: grid;
  grid-template-columns: 122px 60px 1.2fr 1fr;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.record-row {
  min-height: 42px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text);
  background: #f7f5fc;
}

.record-number {
  font-weight: 900;
  font-size: 15px;
}

.win-num-green {
  color: #4ce08a;
}

.win-num-red {
  color: #ff7a83;
}

.record-size {
  color: var(--text);
  font-weight: 500;
}

.record-colors {
  display: flex;
  justify-content: center;
  gap: 4px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.red-dot {
  background: #ff4a54;
}

.green-dot {
  background: #18b95f;
}

.purple-dot {
  background: #b85cf6;
}

/* Minha historia */
.my-history-row,
.table-head.my-history-head {
  display: grid;
  grid-template-columns: 122px 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.my-history-row {
  min-height: 42px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text);
  background: #f7f5fc;
}

.open-bets,
.history {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.list-item {
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(36, 26, 61, 0.04);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.list-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.list-item small {
  color: var(--muted);
  font-size: 11px;
}

.win {
  color: #18b95f !important;
}

.loss {
  color: #ff4a54 !important;
}

@media (min-width: 760px) {
  body {
    padding: 24px 0;
  }

  .phone-app {
    min-height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(26, 31, 52, 0.28);
  }
}

@media (max-width: 360px) {
  .phone-app {
    padding-left: 8px;
    padding-right: 8px;
  }

  .wallet-actions {
    gap: 16px;
  }

  .number-grid {
    gap: 7px;
  }

  .number-choice {
    font-size: 18px;
  }

  .period-row {
    grid-template-columns: 112px 1fr 20px;
  }

  .mini-digits i,
  .result-digits i {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
}

/* ============ Win celebration burst (compartilhado: WinGo + Slots) ============ */

.win-fx {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.win-fx .spark {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: sparkFall linear forwards;
}

@keyframes sparkFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0;
  }
}

/* ============ Win celebration modal (compartilhado: WinGo + Slots) ============ */

.win-celebration {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 100% at 50% 40%, rgba(58, 33, 102, 0.55), rgba(4, 2, 10, 0.85));
  backdrop-filter: blur(4px);
  animation: winCelebrationFade 0.25s ease-out;
}

.win-celebration.hidden {
  display: none !important;
}

@keyframes winCelebrationFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.win-celebration-card {
  position: relative;
  width: min(100%, 340px);
  padding: 36px 24px 28px;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #3a2166 0%, #1a1030 55%, #0a0614 100%);
  border: 2px solid #ffc107;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.25), 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 193, 7, 0.35);
  animation: winCardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.win-celebration-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 35% at 50% 10%, rgba(255, 193, 7, 0.28), transparent 70%);
  pointer-events: none;
}

@keyframes winCardPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mini-orb {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.35), inset 3px 3px 6px rgba(255, 255, 255, 0.25), 0 0 12px rgba(255, 255, 255, 0.2);
  animation: orbFloat 6s ease-in-out infinite;
}

.mo-1 { top: 10px; left: 14px; background: radial-gradient(circle at 35% 30%, #c58bff, #6a2fc9 65%, #3d1a80); }
.mo-2 { top: 18px; right: 16px; background: radial-gradient(circle at 35% 30%, #8fe8a0, #1f9e4c 65%, #0f5c2c); animation-delay: 0.8s; }
.mo-3 { bottom: 14px; left: 10px; background: radial-gradient(circle at 35% 30%, #ffcf7a, #e08a1c 65%, #8a4c05); animation-delay: 1.4s; }
.mo-4.mo-w { bottom: 20px; right: 12px; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc107 60%, #a5710a); animation-delay: 0.4s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -18px) rotate(6deg); }
  66% { transform: translate(-12px, 10px) rotate(-5deg); }
}

.win-crown {
  font-size: 40px;
  filter: drop-shadow(0 0 14px rgba(255, 193, 7, 0.8));
  animation: crownBob 1.6s ease-in-out infinite;
}

@keyframes crownBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

.win-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
  margin-top: 4px;
}

.win-logo-wingo {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff, #cfd6ff 60%, #8b3fe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(139, 63, 232, 0.5);
}

.win-logo-sub {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #fff6d8, #ffc107 55%, #ff9d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 193, 7, 0.5);
}

.win-tagline {
  margin: 10px 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffe08a;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

.win-celebration-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #b9a9d9;
}

.win-celebration-amount {
  margin: 6px 0 24px;
  font-size: 34px;
  font-weight: 900;
  color: #6ee89a;
  text-shadow: 0 0 20px rgba(110, 232, 154, 0.6);
  animation: winAmountPulse 1s ease-in-out infinite;
}

@keyframes winAmountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.win-celebration-close {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffdd66, #ffc107 45%, #ff9d00);
  color: #2a1a00;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.45);
  transition: transform 0.15s ease;
}

.win-celebration-close:hover {
  transform: translateY(-1px);
}

/* Shared Bottom Navigation Bar (Estilo POPBRA) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -2px 20px rgba(255, 193, 7, 0.12);
  backdrop-filter: blur(8px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 20%;
  height: 100%;
  padding: 0;
  transition: color 0.2s;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}

.nav-item span {
  font-size: 9px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

/* Floating Center Button */
.nav-item-center {
  width: 20%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.floating-center-btn {
  position: absolute;
  top: -24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a2fd6 0%, #b463f0 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(122, 47, 214, 0.4);
  border: 4px solid white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1000;
}

.floating-center-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(122, 47, 214, 0.5);
}

.floating-center-btn svg {
  width: 24px;
  height: 24px;
}

.partners-diamond {
  font-size: 24px;
  line-height: 1;
}
