/* ===========================================================
   TuinhoBet — shell de cassino: sidebar + topbar + conteúdo
   =========================================================== */

:root {
  --bg: #0a0912;
  --bg-2: #0e0c18;
  --panel: #15131f;
  --panel-2: #1c1930;
  --panel-3: #262138;
  --line: rgba(255, 255, 255, .07);
  --txt: #eceaf5;
  --muted: #8a86a3;

  --accent: #00e676;
  --accent-2: #2bffa3;
  --accent-glow: rgba(0, 230, 118, .35);

  --violeta: #7c4dff;
  --magenta: #ff3d9a;
  --cta: linear-gradient(120deg, var(--violeta), var(--magenta));
  --cta-glow: rgba(150, 70, 255, .4);

  --gold: #ffc531;
  --danger: #ff3355;
  --danger-glow: rgba(255, 51, 85, .35);

  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .5);
  --barra: 248px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--txt);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ------------------- SHELL ------------------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--barra);
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 40;
}

.area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(760px 420px at 12% -8%, rgba(124, 77, 255, .16), transparent 60%),
    radial-gradient(700px 420px at 92% 0%, rgba(255, 61, 154, .1), transparent 55%);
}

/* ------------------- LOGO ------------------- */

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  font-weight: 900; font-size: 20px;
  color: #04140b;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 22px var(--accent-glow);
}

.logo-txt { font-weight: 900; font-size: 20px; letter-spacing: .01em; }
.logo-txt span { color: var(--accent); }
.logo-mobile { display: none; }

/* ------------------- NAV ------------------- */

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14.5px;
  transition: background .2s, color .2s;
}
.nav-item:hover { background: var(--panel-2); color: var(--txt); }

.nav-item.ativo {
  color: #fff;
  background: var(--cta);
  box-shadow: 0 8px 24px var(--cta-glow);
}

.nav-ico { font-size: 17px; line-height: 1; }

.sidebar-aviso {
  margin: auto 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  opacity: .6;
}

/* ------------------- TOPBAR ------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(10, 9, 18, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.carteira { display: flex; align-items: center; gap: 9px; margin-left: auto; }

.saldo {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .25s, box-shadow .25s, transform .25s;
}
.saldo.subiu { color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); transform: scale(1.06); }
.saldo.desceu { color: var(--danger); box-shadow: 0 0 20px var(--danger-glow); transform: scale(.96); }

.btn-add {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--cta-glow);
  transition: filter .2s, transform .12s;
}
.btn-add:hover { filter: brightness(1.1); }
.btn-add:active { transform: scale(.94); }

/* ------------------- CONTEÚDO ------------------- */

.conteudo {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px 56px;
}

.secao { margin-top: 34px; }

.secao-titulo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.secao-titulo span { font-size: 16px; }

.rodape {
  border-top: 1px solid var(--line);
  padding: 22px 28px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.rodape p { margin: 0 auto; max-width: 620px; }

/* ------------------- BANNER ------------------- */

.banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 260px;
  padding: 34px 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 88% 50%, rgba(255, 61, 154, .35), transparent 65%),
    linear-gradient(115deg, #2a1055 0%, #1a0e3d 45%, #120c26 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}

.banner-txt { position: relative; z-index: 2; max-width: 560px; }

.banner-selo {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 230, 118, .12);
  border: 1px solid rgba(0, 230, 118, .3);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
}

.banner-titulo {
  margin: 14px 0 8px;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}
.banner-titulo span {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-slogan {
  margin: 0 0 20px;
  color: #c6c0dd;
  font-size: clamp(13.5px, 2vw, 16px);
  max-width: 420px;
}

.banner-arte {
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  width: 42%;
  z-index: 1;
  opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.banner-arte img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

/* ------------------- TILES DE JOGO ------------------- */

.grid-jogos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), border-color .28s, box-shadow .28s;
}
.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 77, 255, .5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(124, 77, 255, .2);
}

.tile-arte {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-2);
}
.tile-arte img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.tile:hover .tile-arte img { transform: scale(1.06); }

.tile-arte::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 18, .15) 0%, rgba(10, 9, 18, .72) 58%, rgba(10, 9, 18, .96) 100%);
}

.tile-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 9, 18, .7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #ded9f0;
}

.tile-sobre {
  position: absolute;
  z-index: 2;
  left: 18px; right: 18px; bottom: 14px;
}

.tile-nome {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}
.tile-nome span { font-size: 18px; }

.tile-desc {
  margin: 7px 0 0;
  color: #b6b0cd;
  font-size: 12px;
  line-height: 1.45;
}

.tile-btn { margin: 13px 14px 15px; padding: 12px 12px; font-size: 12.5px; }

/* ------------------- BOTÕES ------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .12s, box-shadow .25s, filter .25s, background .25s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .38; cursor: not-allowed; }

.btn-cta {
  color: #fff;
  background: var(--cta);
  box-shadow: 0 8px 24px var(--cta-glow);
}
.btn-cta:hover:not(:disabled) { filter: brightness(1.1); }

.btn-primario {
  color: #04140b;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 24px rgba(0, 230, 118, .26);
}
.btn-primario:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ouro {
  color: #251a00;
  background: linear-gradient(140deg, #ffdc73, var(--gold));
  box-shadow: 0 8px 24px rgba(255, 197, 49, .26);
}
.btn-ouro:hover:not(:disabled) { filter: brightness(1.08); }

.btn-bloco { width: 100%; }

/* ------------------- PÁGINA DE JOGO ------------------- */

.jogo-topo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.voltar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s, border-color .2s;
}
.voltar:hover { color: var(--txt); border-color: rgba(124, 77, 255, .45); }

.jogo-nome { font-size: clamp(21px, 4vw, 28px); font-weight: 900; }

.jogo-layout {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.painel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.campo { margin-bottom: 16px; }
.campo-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.input-grana { display: flex; gap: 8px; }

.input-grana input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--txt);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-grana input:focus { border-color: var(--violeta); box-shadow: 0 0 0 3px rgba(124, 77, 255, .18); }
.input-grana input::-webkit-outer-spin-button,
.input-grana input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-grana input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.chip {
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.chip:hover { color: var(--txt); background: #322b47; }

.opcoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.opcao {
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}
.opcao:hover:not(:disabled) { color: var(--txt); border-color: var(--panel-3); }
.opcao.ativo {
  background: rgba(124, 77, 255, .2);
  border-color: var(--violeta);
  color: #c9b3ff;
  box-shadow: 0 0 16px rgba(124, 77, 255, .22);
}
.opcao:disabled { opacity: .45; cursor: not-allowed; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-label {
  font-size: 9.5px;
  letter-spacing: .11em;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}
.stat-valor {
  font-size: 17px;
  font-weight: 900;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-valor.destaque { color: var(--accent); }
.stat-valor.ouro { color: var(--gold); }

.dica {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  min-height: 32px;
}

.mesa {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* ------------------- MINES ------------------- */

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.casa {
  position: relative;
  aspect-ratio: 1;
  border: none;
  padding: 0;
  background: transparent;
  perspective: 700px;
  cursor: pointer;
}
.casa:disabled { cursor: default; }

.casa-inner {
  display: block;             /* é um <span>: sem isto, width/height não valem */
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.4, .1, .2, 1);
}
.casa.revelada .casa-inner { transform: rotateY(180deg); }

.casa-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.casa-frente {
  background: linear-gradient(160deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: 22px;
  color: rgba(255, 255, 255, .16);
  font-weight: 900;
  transition: transform .16s, box-shadow .2s, border-color .2s;
}
.casa:not(:disabled):hover .casa-frente {
  transform: translateY(-3px);
  border-color: rgba(124, 77, 255, .5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 16px rgba(124, 77, 255, .2);
}

.casa-verso {
  transform: rotateY(180deg);
  background: var(--bg);
  border: 1px solid rgba(0, 230, 118, .45);
  box-shadow: inset 0 0 22px rgba(0, 230, 118, .18);
}
.casa-verso img { width: 100%; height: 100%; object-fit: cover; }

.casa.bomba .casa-verso {
  border-color: rgba(255, 51, 85, .6);
  box-shadow: inset 0 0 22px rgba(255, 51, 85, .3);
}
.casa.bomba .casa-verso::after {
  content: "💥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(20px, 4vw, 32px);
  background: rgba(255, 51, 85, .22);
}
.casa.estourou .casa-verso { animation: bum .45s ease-out; }
.casa.apagada { opacity: .4; }

@keyframes bum {
  0% { transform: rotateY(180deg) scale(1); filter: brightness(3); }
  40% { transform: rotateY(180deg) scale(1.22); filter: brightness(1.8); }
  100% { transform: rotateY(180deg) scale(1); filter: brightness(1); }
}

body.tremendo { animation: tremor .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes tremor {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 2px); }
  40%, 60% { transform: translate(7px, -1px); }
}

/* ------------------- OVERLAY ------------------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(10, 9, 18, .9);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.overlay.aberto { opacity: 1; pointer-events: auto; }

.overlay-emoji { font-size: clamp(50px, 12vw, 76px); line-height: 1; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }

.overlay-titulo {
  font-size: clamp(25px, 5.5vw, 40px);
  font-weight: 900;
  margin: 10px 0 6px;
  letter-spacing: -.02em;
}
.overlay-titulo.perdeu { color: var(--danger); text-shadow: 0 0 40px var(--danger-glow); }
.overlay-titulo.ganhou { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }
.overlay-titulo.ouro { color: var(--gold); text-shadow: 0 0 44px rgba(255, 197, 49, .45); }

.overlay-sub { color: var(--txt); font-weight: 800; font-size: clamp(15px, 3vw, 18px); }
.overlay-frase { color: var(--muted); margin: 10px 0 22px; font-size: 13.5px; font-style: italic; }
.overlay-valor {
  font-size: clamp(23px, 5vw, 32px);
  font-weight: 900;
  color: var(--accent);
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}

@keyframes pop {
  0% { transform: scale(0) rotate(-25deg); }
  70% { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: radial-gradient(circle at center, rgba(255, 240, 200, .95), rgba(255, 90, 40, .5) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
}
.flash.ligado { animation: clarao .5s ease-out; }
@keyframes clarao {
  0% { opacity: 0; transform: scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5); }
}

.foto-grande {
  width: clamp(105px, 24vw, 160px);
  height: clamp(105px, 24vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 50px rgba(255, 197, 49, .5);
  margin: 0 auto 14px;
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
}

/* ------------------- CRASH ------------------- */

.crash-tela {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 440px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(124, 77, 255, .07), transparent 60%), var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.crash-tela canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.crash-mult {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(36px, 8vw, 66px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 44px rgba(0, 0, 0, .8);
  pointer-events: none;
  z-index: 3;
  transition: color .2s;
}
.crash-mult.caiu { color: var(--danger); text-shadow: 0 0 44px var(--danger-glow); }
.crash-mult.pagou { color: var(--accent); text-shadow: 0 0 44px var(--accent-glow); }

.crash-status {
  position: absolute;
  top: 14px; left: 0; right: 0;
  text-align: center;
  z-index: 3;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

.foguete {
  position: absolute;
  width: clamp(44px, 9%, 66px);
  height: clamp(44px, 9%, 66px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 26px var(--accent-glow);
  z-index: 4;
  transform: translate(-50%, -50%);
  left: 8%; top: 88%;
}
.foguete.caindo {
  animation: despencar 1.3s cubic-bezier(.5, 0, .9, .6) forwards;
  border-color: var(--danger);
  box-shadow: 0 0 26px var(--danger-glow);
}
@keyframes despencar {
  0% { transform: translate(-50%, -50%) rotate(0); }
  100% { transform: translate(-30%, 420px) rotate(540deg); opacity: .15; }
}

.historico { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.historico-item {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 51, 85, .13);
  color: #ff7d95;
  border: 1px solid rgba(255, 51, 85, .22);
}
.historico-item.alto {
  background: rgba(0, 230, 118, .13);
  color: var(--accent);
  border-color: rgba(0, 230, 118, .25);
}

/* ------------------- SLOTS ------------------- */

.slots-maquina {
  max-width: 600px;
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, #241c3d, #0f0c1c);
  border: 1px solid rgba(124, 77, 255, .25);
  box-shadow: inset 0 0 60px rgba(124, 77, 255, .07), var(--shadow);
}

.rolos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }

.rolo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: inset 0 12px 24px rgba(0, 0, 0, .65), inset 0 -12px 24px rgba(0, 0, 0, .65);
  overflow: hidden;
}

.fita { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }

.simbolo {
  display: grid;
  place-items: center;
  font-size: clamp(34px, 7vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.simbolo img {
  width: 76%;
  height: 76%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(0, 230, 118, .5);
}

.rolo.premiado { border-color: var(--gold); box-shadow: 0 0 30px rgba(255, 197, 49, .35); }

.slots-linha {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 197, 49, .45), transparent);
  pointer-events: none;
  z-index: 5;
}

.paytable {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.paytable-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 800;
}
.paytable-item span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }

.confete {
  position: fixed;
  top: -14px;
  width: 9px;
  height: 15px;
  z-index: 999;
  pointer-events: none;
  animation: cair linear forwards;
}
@keyframes cair { to { transform: translateY(104vh) rotate(760deg); opacity: .85; } }

/* ------------------- ROLETA ------------------- */

.roleta-area {
  position: relative;
  width: min(440px, 86vw);
  margin: 6px auto 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.roleta-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--panel-2), 0 0 0 10px rgba(255, 255, 255, .08), 0 22px 50px rgba(0, 0, 0, .6);
  transition: transform 5.4s cubic-bezier(.12, .72, .12, 1);
}

.roleta-pino {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--gold);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .6));
}

.roleta-centro {
  position: absolute;
  width: 21%; height: 21%;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--panel-3), var(--bg));
  border: 3px solid var(--gold);
  box-shadow: 0 0 26px rgba(255, 197, 49, .28);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 5;
}
.roleta-centro img { width: 100%; height: 100%; object-fit: cover; }

.roleta-premios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.premio {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cor, var(--accent));
  font-size: 12px;
  font-weight: 800;
}
.premio small { display: block; color: var(--muted); font-weight: 700; margin-top: 3px; }

/* ------------------- TOASTS ------------------- */

.toaster {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  padding: 12px 17px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 13px;
  animation: entra .3s cubic-bezier(.2, 1.3, .4, 1), sai .3s ease-in forwards 2.4s;
}
.toast.bom { border-color: rgba(0, 230, 118, .4); color: var(--accent); }
.toast.ruim { border-color: rgba(255, 51, 85, .4); color: #ff7d95; }

@keyframes entra { from { opacity: 0; transform: translateX(40px) scale(.9); } }
@keyframes sai { to { opacity: 0; transform: translateX(40px) scale(.9); } }

/* ------------------- RESPONSIVO ------------------- */

@media (max-width: 1000px) {
  .jogo-layout { grid-template-columns: 1fr; }
  .grid-jogos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* a sidebar sai do fluxo e vira barra de navegação fixa embaixo */
  .app { display: block; }

  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 12, 24, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: none;
    border-top: 1px solid var(--line);
    z-index: 60;
  }
  .sidebar > .logo, .sidebar-aviso { display: none; }

  .nav { flex-direction: row; flex: 1; gap: 4px; }
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 8px 3px;
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: .02em;
  }
  .nav-ico { font-size: 18px; }

  .logo-mobile { display: flex; }
  .topbar { padding: 12px 16px; }
  .conteudo { padding: 20px 16px 40px; }
  .rodape { padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }

  .banner { padding: 26px 22px; min-height: 0; }
  .banner-arte { width: 55%; opacity: .35; }

  /* no celular os cards ficam um abaixo do outro, com capa panorâmica */
  .grid-jogos { grid-template-columns: 1fr; }
  .tile-arte { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .logo-txt { font-size: 17px; }
  .saldo { padding: 9px 14px; font-size: 14px; }
  .btn-add { padding: 9px 13px; font-size: 13px; }
  .mesa, .painel { padding: 14px; }
  .mines-grid { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
