/* ==========================================================================
   TIGRINHO - TIGROPLAY GOLDEN EDITION (STYLING PROFISSIONAL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Montserrat:wght@400;600;800;900&display=swap');

:root {
  --gold-light: #fff2a1;
  --gold-main: #f5ab17;
  --gold-dark: #a36300;
  --gold-gradient: linear-gradient(180deg, #ffe885 0%, #f7b733 50%, #c27b00 100%);
  --gold-text-grad: linear-gradient(180deg, #ffffff 0%, #ffe278 40%, #e69d00 100%);
  
  --red-main: #d32f2f;
  --red-dark: #7a0000;
  --red-gradient: linear-gradient(180deg, #ff4d4d 0%, #b30000 100%);

  --bg-dark: #09080f;
  --bg-card: #151221;
  --purple-accent: #2e1065;
  
  --radius-lg: 18px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 25px rgba(245, 171, 23, 0.4);
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.3), inset 0 -4px 6px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body[data-game="tigrinho"] {
  background: radial-gradient(circle at 50% 20%, #2a0845 0%, #09080f 70%);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* --- TOPBAR --- */
.topbar {
  width: 100%;
  max-width: 1200px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(245, 171, 23, 0.2);
  background: rgba(9, 8, 15, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.brand span {
  color: var(--gold-main);
}

.brand small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: #a0a0b0;
  font-family: 'Montserrat', sans-serif;
}

.demo {
  background: rgba(245, 171, 23, 0.15);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: var(--shadow-glow);
}

.back {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.back:hover {
  color: #fff;
}

/* --- MAIN CONTAINER --- */
.experience {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 25px;
  padding: 30px 20px;
  align-items: start;
}

/* --- SEÇÃO MACHINE (CENTRO) --- */
.machine {
  background: linear-gradient(180deg, #1f1233 0%, #0d0a14 100%);
  border: 3px solid #3d2856;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 50px rgba(123, 31, 162, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.machine-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-main);
  letter-spacing: 1.5px;
}

.machine-top .tools button {
  background: #2a1f3d;
  border: 1px solid #4a356b;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s;
}

.machine-top .tools button:hover {
  background: var(--gold-main);
  color: #000;
}

/* MASCOTE E CÚPULA HERO */
.hero {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.mascot {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.game-logo {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gold-text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin-top: -10px;
}

.game-logo small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.ribbon {
  background: var(--red-gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 12px;
  margin: 10px 0 15px 0;
  border: 1px solid #ff7373;
  box-shadow: 0 4px 10px rgba(179, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* GRELHA DO SLOT (REELS) */
.reel-frame {
  background: linear-gradient(180deg, #bf811d 0%, #fce074 50%, #8a5300 100%);
  padding: 8px;
  border-radius: 20px;
  box-shadow: inset 0 0 10px #000, 0 10px 25px rgba(0, 0, 0, 0.7);
  width: 100%;
  position: relative;
}

.slot-grid {
  background: #0b0712;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.slot-grid .cell {
  background: linear-gradient(180deg, #251a38 0%, #150f21 100%);
  border: 1px solid #3d2b59;
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: var(--shadow-inset);
  transition: transform 0.15s, border-color 0.15s;
}

.slot-grid .cell.win-cell {
  border-color: var(--gold-main);
  background: linear-gradient(180deg, #61420b 0%, #2e1d00 100%);
  animation: pulse-win 0.6s infinite alternate;
}

@keyframes pulse-win {
  0% { transform: scale(0.96); box-shadow: 0 0 5px var(--gold-main); }
  100% { transform: scale(1.04); box-shadow: 0 0 20px var(--gold-main); }
}

/* PAINEL DE STATUS */
.status {
  margin: 15px 0 10px 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-light);
  min-height: 20px;
  text-shadow: 0 2px 4px #000;
}

/* CARTEIRA E SALDOS */
.wallet {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #2d2145;
  margin-bottom: 15px;
  text-align: center;
}

.wallet div span {
  display: block;
  font-size: 0.55rem;
  color: #8f8ba3;
  font-weight: 700;
  margin-bottom: 2px;
}

.wallet div strong {
  font-size: 1rem;
  color: #fff;
}

.wallet div strong b {
  color: var(--gold-main);
}

/* PAINEL DE CONTROLE E BOTÃO PRINCIPAL */
.control-deck {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.stake {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #181124;
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid #362652;
}

.stake span {
  font-size: 0.65rem;
  font-weight: 800;
  color: #a098b5;
}

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

.stake button {
  background: #2c1d45;
  border: 1px solid #52387a;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
}

.spin {
  width: 100%;
  height: 55px;
  background: var(--gold-gradient);
  border: 2px solid #fff5c0;
  border-radius: 30px;
  color: #422200;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 171, 23, 0.5), inset 0 2px 4px #fff;
  transition: all 0.1s ease;
}

.spin:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.spin:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(245, 171, 23, 0.3);
}

.modes {
  display: flex;
  gap: 10px;
  width: 100%;
}

.modes button {
  flex: 1;
  background: #1c1529;
  border: 1px solid #3d2f57;
  color: #a49bb8;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.modes button[aria-pressed="true"] {
  background: #4a154b;
  border-color: #aa26b0;
  color: #fff;
  box-shadow: 0 0 10px rgba(170, 38, 176, 0.4);
}

.reset {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: #8f85a3;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}

.keyboard-hint {
  font-size: 0.6rem;
  color: #665c7a;
  margin-top: 8px;
}

/* --- PAINÉIS LATERAIS (INTRO & SIDE NOTE) --- */
.intro, .side-note {
  background: rgba(21, 18, 33, 0.6);
  border: 1px solid #2a223d;
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(5px);
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-main);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.intro h1, .side-note h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.intro h1 em {
  color: var(--gold-main);
  font-style: normal;
}

.intro p, .side-note p {
  font-size: 0.8rem;
  color: #b0a8c2;
  line-height: 1.5;
  margin-bottom: 15px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  border-top: 1px solid #2a223d;
  padding-top: 15px;
}

.facts div strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
}

.facts div span {
  font-size: 0.65rem;
  color: #7d7591;
  font-weight: 700;
}

.text-button {
  background: none;
  border: none;
  color: var(--gold-main);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

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

.mini-rule span {
  background: #2a1f3d;
  color: var(--gold-main);
  font-weight: 800;
  font-size: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- TABELA DE PAGAMENTOS / DIÁLOGOS --- */
dialog {
  background: #150f24;
  border: 2px solid var(--gold-main);
  border-radius: 20px;
  color: #fff;
  padding: 25px;
  max-width: 420px;
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

#close-help {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.paytable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}

.paytable div {
  background: #211738;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.paytable div strong {
  color: var(--gold-main);
  font-size: 0.85rem;
}

/* BIG WIN POPUP */
.big-win {
  text-align: center;
  background: radial-gradient(circle, #4a0000 0%, #1a0000 100%);
  border: 3px solid var(--gold-main);
}

.big-win h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold-main);
  text-shadow: 0 0 15px rgba(245, 171, 23, 0.8);
}

.win-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin: 10px 0;
}

#win-continue {
  background: var(--gold-gradient);
  border: none;
  padding: 12px 25px;
  border-radius: 20px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 15px;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 960px) {
  .experience {
    grid-template-columns: 1fr;
  }

  .intro, .side-note {
    display: none; /* Foco total no jogo no Mobile */
  }

  .machine {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}