* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #111111;
  color: #fff;
  /* app ocupa a tela e rola com o dedo — sem fonte da internet */
}

.app {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40, 120, 220, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(20, 80, 160, 0.2) 0%, transparent 45%),
    repeating-linear-gradient(
      45deg,
      #071018 0 8px,
      #0a1520 8px 16px
    );
}

@media (min-width: 500px) {
  body { display: flex; justify-content: center; align-items: center; padding: 12px; }
  .app {
    height: min(900px, 100dvh);
    border-radius: 12px;
    border: 1px solid #4a8fd4;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(90, 176, 255, 0.25);
  }
}

/* —— Header como o amigo —— */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar .brand {
  font-size: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.wallet-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 2px 0 0;
}

.wallet-menu.wallet-solo {
  grid-template-columns: 1fr;
}

.wallet-btn {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
  text-align: center;
}

.wallet-pix {
  background: #1b5e20;
  border: 2px solid #4caf50;
  color: #fff;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.35);
}

.wallet-machine {
  background: #3d2a00;
  border: 2px solid #ffcc00;
  color: #ffe082;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.25);
}

.wallet-hint {
  margin: 2px 2px 0;
  font-size: 11px;
  line-height: 1.3;
  color: #8eb6e8;
  font-weight: 600;
  text-align: center;
}

.btn-install {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 2px solid #5ab0ff;
  border-radius: 12px;
  font-weight: 900;
  font-size: 15px;
  font-family: inherit;
  background: #0a2040;
  color: #cfe4ff;
  cursor: pointer;
}
.install-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: #8eb6e8;
  font-size: 13px;
  font-weight: 600;
}

.wifi-warn {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #ffcc00;
  background: rgba(61, 42, 0, 0.92);
  color: #ffe082;
  text-align: left;
}
.wifi-warn strong { color: #ffd54a; }
.wifi-warn p { margin: 8px 0 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
.wifi-warn-sub { color: #cfe4ff !important; font-weight: 500 !important; font-size: 13px !important; }

.btn-game {
  background: #1a2744;
  border: 2px solid #5b8cff;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.prize-line {
  font-size: 12px;
  color: #ffd54a;
  text-align: center;
  margin: -2px 0 2px;
}

.game-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 9999;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(180, 130, 40, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 80%, rgba(90, 20, 40, 0.35) 0%, transparent 42%),
    linear-gradient(180deg, #0c0a08 0%, #050403 55%, #120a0c 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.game-overlay.open,
.game-overlay:not(.hidden) { display: flex !important; }
.game-overlay.hidden { display: none !important; }

.game-box {
  position: relative;
  width: min(440px, 100%);
  max-height: 92dvh;
  overflow: auto;
  padding: 18px 14px 20px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    linear-gradient(165deg, #1c1610 0%, #0e0c0a 42%, #140c10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 220, 150, 0.06) inset,
    0 28px 64px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(160, 100, 20, 0.12);
}

.game-neon {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(110deg, transparent 35%, rgba(212, 175, 55, 0.1) 50%, transparent 65%);
  opacity: 0.7;
  animation: gameSweep 5.5s ease-in-out infinite;
}
@keyframes gameSweep {
  0% { transform: translateX(-40%); opacity: 0.15; }
  50% { opacity: 0.45; }
  100% { transform: translateX(40%); opacity: 0.15; }
}
.cab-chrome {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 28%, transparent 72%, rgba(255,255,255,0.06) 100%);
  z-index: 0;
}

.game-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1px;
  color: #1a1208;
  background: radial-gradient(circle at 35% 30%, #f0d78a, #b8860b 55%, #5c3d08);
  border: 2px solid #e8c76a;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}
.game-brand-name {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 2.5px;
  color: #f5e6c8;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  line-height: 1;
}
.game-brand-sub {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #c4a35a;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.btn-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

.game-pick {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 380px) {
  .game-pick { grid-template-columns: 1fr 1fr; }
  .game-card[data-game="halloween"] { grid-column: 1 / -1; }
}

.game-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  color: #f5e6c8;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(160deg, rgba(48, 36, 22, 0.98), rgba(14, 10, 8, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.game-card-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 65%);
  pointer-events: none;
}
.game-card:active { transform: scale(0.98); }
.game-card.selected {
  border-color: #e8c76a !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  outline: 1px solid rgba(232, 199, 106, 0.5);
  transform: translateY(-1px);
}
.game-card[data-game="roleta"] {
  border-color: rgba(160, 40, 60, 0.55);
  background: linear-gradient(160deg, rgba(72, 18, 28, 0.98), rgba(14, 6, 8, 0.98));
}
.game-card[data-game="halloween"] {
  border-color: rgba(90, 90, 100, 0.55);
  background:
    linear-gradient(160deg, rgba(28, 28, 34, 0.98), rgba(10, 8, 12, 0.98));
}
.game-card[data-game="halloween"].selected {
  border-color: #d4af37 !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  outline: 1px solid rgba(212, 175, 55, 0.4);
}
.game-card[data-game="slot"].selected {
  border-color: #e8c76a !important;
}
.btn-jogar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 17px 12px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
  color: #1a1208;
  cursor: pointer;
  background: linear-gradient(180deg, #f0d78a 0%, #d4af37 48%, #9a6b12 100%);
  box-shadow:
    0 0 0 1px rgba(255, 240, 200, 0.25) inset,
    0 7px 0 #6b4a0a,
    0 12px 26px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-jogar:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 1px rgba(255, 240, 200, 0.2) inset,
    0 4px 0 #6b4a0a,
    0 8px 16px rgba(0, 0, 0, 0.4);
}
.btn-jogar:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 4px 0 #4a3408;
}
.game-bet-hint {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #b89a5a;
  margin: 8px 0 0;
  letter-spacing: 0.3px;
}
.game-card-ico {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.game-ico-noir {
  font-size: 26px;
  color: #e8c76a;
  font-weight: 900;
}
.game-ico-slot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #1a1208;
  background: linear-gradient(180deg, #f0d78a, #b8860b);
  border: 1px solid #e8c76a;
}
.game-ico-roleta {
  font-size: 22px;
  color: #e07080;
  font-weight: 900;
}
.game-card-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.game-card-sub {
  font-size: 10px;
  color: #9a8a70;
  font-weight: 600;
}

.game-stage {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 6px;
}

/* —— Slot VIP —— */
.slot-stage { width: 100%; }
.slot-cabinet {
  position: relative;
  margin: 0 auto;
  width: min(360px, 100%);
  padding: 16px 14px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #2a2218 0%, #14100c 40%, #0a0806 100%);
  border: 2px solid #d4af37;
  box-shadow:
    0 0 28px rgba(212, 175, 55, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 230, 180, 0.18),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
}
.slot-lights {
  position: relative;
  z-index: 1;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    #8b1e2d 0 14px,
    #d4af37 14px 28px,
    #1a1208 28px 42px,
    #c9a227 42px 56px
  );
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  animation: slotLights 1.4s ease-in-out infinite;
}
@keyframes slotLights {
  0%, 100% { filter: brightness(0.95); }
  50% { filter: brightness(1.25); }
}
.slot-window {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  padding: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180, 140, 60, 0.12), transparent 50%),
    #060504;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.slot-payline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #d4af37, #fff3c4, #d4af37, transparent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}
.slot-reels {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.slot-stage .col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, #241c14, #0c0a08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}
.slot-stage .cell {
  width: 68px;
  height: 62px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,230,180,0.08), transparent 40%),
    radial-gradient(circle at 50% 30%, #2e2418, #100e0c 72%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow:
    inset 0 -8px 14px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255,230,180,0.05);
}
.slot-stage .cell.spin {
  animation: cellBlur 0.12s linear infinite;
  opacity: 0.9;
}
@keyframes cellBlur {
  0% { transform: translateY(-2px); filter: brightness(1.15); }
  100% { transform: translateY(2px); filter: brightness(0.9); }
}
.slot-stage .cell.win {
  border-color: #e8c76a;
  box-shadow:
    0 0 0 1px rgba(232, 199, 106, 0.5),
    0 0 20px rgba(212, 175, 55, 0.55),
    inset 0 0 12px rgba(212, 175, 55, 0.2);
  animation: winPulse 0.55s ease-in-out 3;
}
@keyframes winPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.slot-foot {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #d4af37;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

/* —— Noir Lounge (id halloween) —— */
.halloween-stage { width: 100%; }
.halloween-cabinet {
  margin: 0 auto;
  width: min(340px, 100%);
  padding: 14px 12px 10px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(180deg, #1a1a1e 0%, #0c0c0e 50%, #080608 100%);
  border: 2px solid #8a7a4a;
  box-shadow:
    0 0 24px rgba(0, 0, 0, 0.55),
    inset 0 0 36px rgba(0, 0, 0, 0.4);
}
.halloween-banner {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #d4af37;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}
.halloween-window {
  position: relative;
  border-radius: 12px;
  padding: 10px;
  background: #060506;
  border: 1px solid rgba(212, 175, 55, 0.25);
  overflow: hidden;
}
.halloween-payline {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}
.halloween-reels {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.halloween-stage .col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, #18161a, #0a080a);
  border: 1px solid rgba(140, 120, 70, 0.35);
}
.halloween-stage .cell {
  width: 64px;
  height: 58px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 35%, #2a2428, #100e10 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.45);
}
.halloween-stage .cell.spin {
  animation: cellBlur 0.12s linear infinite;
  opacity: 0.88;
}
.halloween-stage .cell.win {
  border-color: #d4af37;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.45),
    0 0 16px rgba(212, 175, 55, 0.4),
    inset 0 0 10px rgba(212, 175, 55, 0.15);
  animation: winPulse 0.55s ease-in-out 3;
}
.halloween-foot {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #b89a5a;
}

/* —— Roleta VIP —— */
.wheel-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 10px 6px 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1214, #0a0808);
  border: 1px solid rgba(160, 40, 60, 0.4);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.roleta-title {
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 2px;
  color: #f5e6c8;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(160, 40, 60, 0.35);
}
.roleta-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.roleta-cell {
  aspect-ratio: 0.85;
  min-height: 64px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #141010;
  border: 2px solid rgba(212, 175, 55, 0.28);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.06s linear, background 0.06s linear, box-shadow 0.06s linear;
}
.roleta-cell .n {
  font-size: 22px;
  font-weight: 900;
  color: #f5e6c8;
  line-height: 1;
}
.roleta-cell .u {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #c4a35a;
}
.roleta-cell.active {
  background: #2a181c;
  border-color: #d4af37;
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.4),
    inset 0 0 10px rgba(160, 40, 60, 0.2);
}
.roleta-cell.winner {
  background: #3a1c22;
  border-color: #e8c76a;
  border-width: 3px;
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.55),
    inset 0 0 14px rgba(212, 175, 55, 0.15);
  animation: roletaWinPulse 0.55s ease-in-out 3;
}
@keyframes roletaWinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.roleta-win-card {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  padding: 18px 12px;
  border-radius: 14px;
  text-align: center;
  background: #0c0a08;
  border: 2px solid #d4af37;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
}
.roleta-win-card .t1 {
  font-weight: 900;
  font-size: 13px;
  color: #e8c76a;
  letter-spacing: 0.6px;
}
.roleta-win-card .t2 {
  margin-top: 6px;
  font-weight: 900;
  font-size: 40px;
  color: #f5e6c8;
  line-height: 1;
}
.roleta-win-card .t3 {
  margin-top: 4px;
  font-weight: 800;
  font-size: 12px;
  color: #c4a35a;
}

.game-result {
  position: relative;
  z-index: 1;
  text-align: center;
  min-height: 1.6em;
  margin: 10px 0 6px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.game-actions { position: relative; z-index: 1; text-align: center; }
.btn-game-send {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 12px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #041018;
  cursor: pointer;
  background: linear-gradient(90deg, #5ce1ff, #3dffb0 55%, #ffd54a);
  box-shadow: 0 0 22px rgba(92, 225, 255, 0.35);
}
.game-hint {
  font-size: 11px;
  color: #8fa0b4;
  margin-top: 8px;
}

.brand, .brand-big {
  font-family: system-ui, -apple-system, "Segoe UI", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  color: #5ab0ff;
  text-shadow: 0 0 16px rgba(90, 176, 255, 0.45);
  line-height: 1;
}

.brand { font-size: 36px; }
.brand-big { font-size: 56px; text-align: center; margin-bottom: 8px; }

.credits-block {
  min-width: 48px;
  text-align: center;
  padding: 2px 8px;
}

.credits-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8eb6e8;
  line-height: 1;
  margin-bottom: 1px;
}

.credits-num {
  font-size: 34px;
  font-weight: 800;
  color: #5b8cff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(91, 140, 255, 0.35);
}

/* .btn-pix / .btn-to-machine → estilos em .wallet-pix / .wallet-machine */

.machine-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: #a8c4e8;
}
.machine-select {
  flex: 1;
  background: #061428;
  color: #fff;
  border: 1px solid #4a8fd4;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: inherit;
}

.btn-help {
  background: #0a2040;
  border: 1px solid #5ab0ff;
  color: #cfe4ff;
  font-weight: 800;
  font-size: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.stripe-bar {
  height: 8px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    #1a8cff 0 8px,
    #e8f4ff 8px 16px
  );
  margin: 2px 0 4px;
  box-shadow: 0 0 10px rgba(26, 140, 255, 0.35);
}

.main-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  touch-action: pan-y;
}

.stage-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.now-card, .queue-card, .search-card, .card {
  background: linear-gradient(165deg, #0d2240 0%, #071830 100%);
  border: 1px solid #4a8fd4;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(90, 176, 255, 0.12);
}

/* Tocando agora compacto — libera tela pra lista de busca */
.now-card {
  padding: 8px 10px;
}

.now-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8eb6e8;
  font-weight: 800;
  margin-bottom: 6px;
}

.now-stage {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #050a12;
  border: 1px solid #3a6a9a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-playing-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.now-playing-info {
  flex: 1;
  min-width: 0;
}

.now-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.now-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #5ab0ff 0 6px, transparent 7px),
    conic-gradient(from 0deg, #0a2a5c, #1a6ad4, #0a2a5c, #5ab0ff, #0a2a5c);
  box-shadow: 0 0 0 2px #071830, 0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0.9;
  animation: spin 8s linear infinite;
  animation-play-state: paused;
}

.now-stage.has-track .now-disc {
  animation-play-state: running;
  opacity: 0.2;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.now-empty {
  display: none;
}

.now-stage:not(.has-track) + .now-playing-info .now-title {
  color: #999;
  font-weight: 600;
  font-size: 13px;
}

.now-title {
  margin-top: 0;
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.now-cost {
  margin-top: 4px;
  font-size: 11px;
  color: #aaa;
}
.now-cost strong { color: #ffe082; }

.queue-card {
  padding: 8px 10px;
  max-height: 88px;
  overflow: hidden;
}

.queue-list { min-height: 0; max-height: 64px; overflow: hidden; }

.queue-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #2a4a6a;
  font-size: 13px;
}
.queue-item:last-child { border-bottom: none; }
.queue-item .pos {
  color: #5ab0ff;
  font-weight: 800;
  min-width: 2em;
}

.search-card input[type="search"],
input, textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #4a8fd4;
  background: #061428;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
}

.action-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.key-btn {
  flex: 1;
  padding: 14px 10px;
  border-radius: 10px;
  border: 2px solid #5ab0ff;
  background: linear-gradient(180deg, #1a4a8a, #0a2040);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 12px rgba(90, 176, 255, 0.35);
}

.key-enter {
  flex: 1.4;
  border-color: #00dcff;
  background: linear-gradient(180deg, #2a7ad4, #0a3058);
  box-shadow: 0 0 14px rgba(0, 220, 255, 0.4);
}

.key-btn:active { transform: scale(0.98); }
.key-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.search-card {
  flex: 0 0 auto;
}

.search-results {
  margin-top: 8px;
  overflow: visible;
  max-height: none;
  touch-action: pan-y;
}

.song-hit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  border-bottom: 1px solid #1a3048;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid transparent;
  min-height: 76px;
  touch-action: pan-y;
  background: rgba(8, 24, 48, 0.35);
}

.song-hit-main {
  display: grid;
  grid-template-columns: 40px 88px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.song-hit:active { transform: scale(0.99); }

.song-hit.selected {
  border-color: #00dcff;
  background: rgba(20, 80, 160, 0.45);
  box-shadow:
    0 0 0 2px rgba(0, 220, 255, 0.35),
    0 0 18px rgba(90, 176, 255, 0.35);
}

.song-hit .code {
  font-weight: 800;
  color: #5ab0ff;
  font-size: 16px;
  text-align: center;
}

.song-hit img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  background: #061428;
  border: 1px solid #3a6a9a;
}

.song-hit .meta { min-width: 0; }
.song-hit .title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.song-hit .sub {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-hit .dur {
  font-size: 13px;
  color: #ffe082;
  font-weight: 800;
  white-space: nowrap;
  padding-right: 4px;
}

.song-hit .cost-note {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  color: #c8e6c9;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #2e5a32;
}
.song-hit .cost-note.cost-extra {
  color: #ffe082;
  border-color: #8a6d00;
  background: rgba(40, 28, 0, 0.55);
}
.song-hit .cost-note.cost-mini {
  font-size: 11px;
  padding: 4px 8px;
  color: #ffcc80;
  border-color: #5a4010;
  background: rgba(30, 20, 0, 0.4);
  align-self: flex-start;
  margin-left: 50px;
}

.search-empty {
  padding: 14px 8px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.result-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  min-height: 1.2em;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.result-row.has-preview {
  border-color: #5ab0ff;
  background: rgba(40, 100, 180, 0.2);
}

.preview-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #3a6a9a;
  flex-shrink: 0;
}

.result-code {
  font-size: 12px;
  font-weight: 800;
  color: #5ab0ff;
  margin-bottom: 2px;
}

.preview-text { flex: 1; font-size: 13px; }

.footer-line {
  text-align: center;
  font-size: 11px;
  color: #777;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.btn {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  color: #fff;
  background: #120606;
  width: 100%;
  font-family: inherit;
  margin-top: 12px;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-blue {
  border-color: #3d6dff;
  box-shadow: 0 0 12px rgba(61, 109, 255, 0.35);
}

.btn-red {
  border-color: #5ab0ff;
  background: linear-gradient(180deg, #1a4a8a, #0a2040);
}

.btn-green {
  border-color: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.35);
}

.btn-ghost {
  border-color: #444;
  color: #aaa;
  background: transparent;
  margin-top: 4px;
  font-size: 12px;
  padding: 10px;
}

.msg {
  font-size: 13px;
  min-height: 1.2em;
  margin-top: 8px;
}
.msg.ok { color: #7dffa0; }
.msg.err { color: #ff7b7b; }
.msg.warn { color: #ffe446; }

.hint {
  font-size: 12px;
  color: #999;
  line-height: 1.45;
}

/* Nao esconder botoes no boot — tela preta em outro Wi‑Fi / nuvem lenta */
.connect.entering #connectMsg {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffe446;
}

.label {
  font-size: 11px;
  color: #8eb6e8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 800;
}

.hidden { display: none !important; }

.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  transform: translateY(-120%);
  transition: transform 0.25s ease;
}
.banner.show { transform: translateY(0); }
.banner.ok { background: #1a7a3c; color: #fff; }
.banner.err { background: #a61b1b; color: #fff; }
.banner.warn { background: #8a6d00; color: #fff; }

.dlg {
  border: 1px solid #4a8fd4;
  border-radius: 14px;
  padding: 18px;
  background: #0a2040;
  color: #fff;
  max-width: 360px;
  width: calc(100% - 32px);
}
.dlg::backdrop { background: rgba(0, 0, 0, 0.7); }
.dlg h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  color: #5ab0ff;
  margin-bottom: 10px;
}
.dlg ol {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #ddd;
  margin-bottom: 8px;
}
.dlg li { margin-bottom: 8px; }

.dlg-pix { max-width: 360px; }
.pix-hint {
  font-size: 13px;
  color: #a8c4e8;
  margin: 0 0 12px;
  line-height: 1.35;
}
.wallet-have {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #5ab0ff;
  margin: 0 0 10px;
}
.pix-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.pix-qr {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 10px;
  max-height: 80px;
  overflow: auto;
  background: #061428;
  padding: 8px;
  border-radius: 8px;
  color: #cfe4ff;
  margin: 8px 0;
}
.btn-pay-bank {
  display: block;
  width: 100%;
  margin: 10px 0 8px;
  padding: 16px 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  color: #06240a;
  background: linear-gradient(180deg, #7CF29A 0%, #2EBF59 100%);
  box-shadow: 0 6px 18px rgba(46, 191, 89, 0.35);
}
.btn-pay-bank:active { transform: scale(0.98); }
.btn-pix-copy {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  font-size: 13px;
}

/* Aviso de confirmar toque — no tema JPBOX (sem confirm nativo do browser) */
.dlg-confirm {
  text-align: center;
  padding: 20px 18px 16px;
  border: 2px solid #00dcff;
  box-shadow: 0 0 0 1px #0a2040, 0 24px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 220, 255, 0.25);
  background:
    radial-gradient(ellipse at 50% 0%, #1a4a8a 0%, transparent 60%),
    #061428;
}
.dlg-confirm::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
.confirm-brand {
  font-weight: 800;
  letter-spacing: 3px;
  color: #5ab0ff;
  font-size: 22px;
  text-shadow: 0 0 14px rgba(90, 176, 255, 0.5);
  margin-bottom: 6px;
}
.dlg-confirm h3 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}
.confirm-song {
  font-size: 14px;
  color: #ccc;
  line-height: 1.35;
  margin: 0 0 14px;
  max-height: 3.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.confirm-cost {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: #ffe446;
  background: #1a1200;
  border: 1px solid #8a6d00;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 6px;
}
.confirm-hint {
  font-size: 12px;
  color: #888;
  margin: 0 0 14px;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  align-items: stretch;
}
.confirm-actions .btn {
  margin-top: 0;
  padding: 14px 10px;
  font-size: 13px;
}
.confirm-ok {
  border-color: #00dcff;
  background: linear-gradient(180deg, #2a7ad4, #0a3058);
  box-shadow: 0 0 14px rgba(0, 220, 255, 0.35);
}
.confirm-cancel {
  border-color: #555;
  color: #bbb;
}
