:root{
  --green:#00e66d;
  --green2:#0ab75a;
  --dark:#06101a;
  --panel:rgba(4,14,23,.86);
  --panel2:rgba(7,18,30,.92);
  --line:rgba(255,255,255,.13);
  --text:#f4f7fb;
  --muted:#aeb9c8;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{max-width:100%;overflow-x:hidden}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Arial,Helvetica,sans-serif;
  background:#07111d;
  color:var(--text);
  padding-bottom:calc(76px + var(--safe-bottom));
}
button,a{-webkit-tap-highlight-color:transparent}
.app-bg{
  position:fixed;inset:0;
  background:
    linear-gradient(180deg,rgba(4,10,17,.82),rgba(4,14,27,.76)),
    url('../img/bg-loterias.png') center/cover no-repeat;
  filter:saturate(1.06);
  z-index:-2;
}
.app-bg:after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 78% 22%,rgba(0,117,255,.18),transparent 28%),
    radial-gradient(circle at 20% 60%,rgba(0,230,109,.11),transparent 28%);
  backdrop-filter:blur(1.5px);
  z-index:-1;
}
.app-header{
  min-height:74px;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px clamp(12px,4vw,80px);
  background:rgba(5,11,18,.9);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px);
  position:sticky;top:0;z-index:30;
  gap:12px;
}
.brand-mobile{display:flex;align-items:center;gap:12px;min-width:0}
.brand-logo{height:38px;object-fit:contain;max-width:190px;display:block}
.brand-text{display:grid;gap:3px;min-width:0}
.brand-text strong{font-size:15px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-text span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-area{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.user-area a{
  color:#fff;text-decoration:none;border:1px solid var(--line);padding:9px 12px;border-radius:12px;
  white-space:nowrap;background:rgba(255,255,255,.04)
}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#2ce884,#08743d);font-weight:900}
.user-name{max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell{width:min(980px,calc(100% - 24px));margin:14px auto 22px}
.welcome-card{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:linear-gradient(135deg,rgba(0,230,109,.14),rgba(0,87,255,.10)),rgba(4,14,23,.72);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 46px rgba(0,0,0,.34);
  backdrop-filter:blur(12px);
}
.eyebrow,.section-label{display:block;color:#7bffb2;font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;margin-bottom:6px}
.welcome-card h1{font-size:24px;margin:0 0 6px;line-height:1.05}
.welcome-card p{margin:0;color:#d7e0ec;font-size:14px;line-height:1.45}
.create-account{
  flex:0 0 auto;text-decoration:none;color:#04130a;background:linear-gradient(180deg,#22f276,#00bd56);
  font-weight:900;padding:13px 16px;border-radius:14px;box-shadow:0 10px 28px rgba(0,230,109,.22)
}
.game-tabs{
  display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:14px 2px 12px;
  scrollbar-width:none;-ms-overflow-style:none;align-items:center;scroll-snap-type:x mandatory;
}
.game-tabs::-webkit-scrollbar{display:none}
.game-tab{
  flex:0 0 auto;
  width:150px;height:30px;padding:0;border:0;background:transparent;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:.2s;overflow:visible;box-shadow:none;border-radius:0;scroll-snap-align:start;
}
.game-tab img{width:100%;height:100%;display:block;object-fit:fill;object-position:center;filter:drop-shadow(0 5px 14px rgba(0,0,0,.28))}
.game-tab.active{transform:translateY(-1px)}
.game-tab.active img{filter:drop-shadow(0 0 12px rgba(0,230,109,.55))}
.hero-panel,.glass-card{
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:0 18px 48px rgba(0,0,0,.38);
  backdrop-filter:blur(12px);
  border-radius:22px;
}
.latest-result-card{padding:18px;margin-bottom:14px}
.result-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.result-top h2{margin:0;font-size:20px;line-height:1.15}
.icon-btn{
  width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);color:#fff;font-size:20px;cursor:pointer
}
.real-balls{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}
.real-ball{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(180deg,#23f37d,#05a94e);color:#04130a;font-weight:900;
  box-shadow:0 0 18px rgba(0,230,109,.24)
}
.result-meta{display:grid;gap:6px;color:#d8e4ef;font-size:13px;line-height:1.35}
.result-meta b{color:#7bffb2}
.hero-panel{padding:22px;margin-top:0}
.game-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.game-title-logo{
  width:64px;height:64px;object-fit:contain;border-radius:18px;
  background:linear-gradient(180deg,rgba(0,230,109,.12),rgba(0,230,109,.04));
  border:1px solid rgba(255,255,255,.12);
  padding:9px;flex:0 0 64px
}
.game-head h1{margin:0;font-size:27px;letter-spacing:.04em;line-height:1.05}
.game-head p{margin:6px 0 0;color:#dbe4ee;line-height:1.35;font-size:14px}
.prize{color:var(--green);font-weight:900}
.main-grid-wrap{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;align-items:center}
.number-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;min-width:0}
.num-btn{
  height:44px;border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,rgba(23,35,48,.94),rgba(8,16,25,.94));
  border-radius:9px;color:#f8fbff;font-size:18px;font-weight:900;cursor:pointer;text-shadow:0 1px 0 #000;min-width:0
}
.num-btn.active{background:linear-gradient(180deg,#21f37d,#00843d);border-color:#3aff94;box-shadow:0 0 18px rgba(0,230,109,.45);color:#04130a}
.actions{display:flex;flex-direction:column;gap:12px;align-items:stretch;min-width:0}
.btn-main,.btn-outline,.share-row button,.history-head button{
  min-height:52px;border-radius:14px;border:0;background:linear-gradient(180deg,#22f276,#00bd56);
  color:#04130a;font-weight:900;letter-spacing:.02em;cursor:pointer;box-shadow:0 10px 28px rgba(0,230,109,.2);
  padding:0 14px
}
.btn-outline,.share-row button,.history-head button{background:rgba(0,0,0,.16);border:1px solid var(--green2);color:#fff;box-shadow:none}
.actions small{text-align:center;color:#d2dae5;line-height:1.4}
.cards-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px;align-items:stretch}
.glass-card{padding:18px;overflow:hidden}
.glass-card h2{margin:0 0 14px;text-align:center;font-size:16px;letter-spacing:.06em}
.result-card{text-align:center}
.chips{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;min-height:44px}
.chip{min-width:44px;height:40px;border:1px solid var(--green2);border-radius:10px;display:grid;place-items:center;font-weight:900;background:rgba(5,22,17,.75);color:#dbffe8}
.check-btn{width:min(320px,100%);margin:18px auto}
.small-info{color:#e7edf5;line-height:1.6;font-size:14px}
.small-info span b{color:var(--green)}
.share-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.share-row button{min-height:40px;padding:0 14px}
.stats-card{display:flex;flex-direction:column}
.stats-card p{text-align:center;color:#e5edf6;margin:0 0 12px;font-size:14px}
.chart{height:210px;display:flex;align-items:flex-end;gap:7px;padding:14px 8px 0;border-left:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18);margin-bottom:14px;min-width:0}
.bar-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;height:100%}
.bar-wrap{width:100%;height:158px;display:flex;align-items:flex-end}
.bar{width:100%;min-width:8px;background:linear-gradient(180deg,#13ee72,#00a94b);border-radius:5px 5px 0 0;transition:height .25s ease}
.bar.is-selected{background:linear-gradient(180deg,#4effa1,#12c864);box-shadow:0 0 14px rgba(0,230,109,.35)}
.bar-label{font-size:11px;color:#d9e2ec;line-height:1;text-align:center;white-space:nowrap}
.history-card{margin-top:14px}
.history-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.history-head h2{text-align:left;margin:0;font-size:18px}
.history-head button{min-height:38px;padding:0 14px}
.history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.history-item{background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px;overflow-wrap:anywhere}
.history-item strong{display:block;margin-bottom:8px}
.history-item small{color:var(--muted)}
.hint,.disclaimer-card{color:var(--muted);font-size:13px;line-height:1.5}
.disclaimer-card{margin-top:14px}
.auth-body{display:grid;place-items:center;background:#06101a url('../img/bg-loterias.png') center/cover no-repeat;min-height:100vh}
.auth-card{width:min(430px,calc(100% - 24px));background:rgba(5,12,21,.88);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:0 20px 70px rgba(0,0,0,.5);backdrop-filter:blur(14px)}
.brand-mini{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none}.brand-mini img{height:44px}.auth-card h1{margin:24px 0 14px}
.auth-form{display:grid;gap:12px}.auth-form label{display:grid;gap:7px;color:#dbe4ef}.auth-form input{height:48px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.08);color:#fff;padding:0 14px}
.alert-error{background:rgba(255,54,74,.16);border:1px solid rgba(255,54,74,.4);padding:12px;border-radius:12px;margin-bottom:14px}.auth-switch a{color:var(--green)}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  min-height:64px;padding:8px 10px calc(8px + var(--safe-bottom));
  background:rgba(5,11,18,.94);border-top:1px solid var(--line);backdrop-filter:blur(18px);
  display:grid;grid-template-columns:repeat(4,1fr);gap:7px
}
.bottom-nav a{
  color:#dfe9f5;text-decoration:none;display:grid;place-items:center;gap:2px;font-size:19px;
  border-radius:16px;padding:7px 4px
}
.bottom-nav a span{font-size:11px;font-weight:800}
.bottom-nav a:hover,.bottom-nav a:focus{background:rgba(255,255,255,.06)}

@media(max-width:980px){
  .app-shell{width:min(540px,calc(100% - 18px))}
  .welcome-card{align-items:flex-start}
  .welcome-card h1{font-size:22px}
  .create-account{padding:11px 14px}
  .main-grid-wrap,.cards-row{grid-template-columns:1fr}
  .actions{max-width:none;width:100%;justify-self:center}
  .number-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .num-btn{height:42px;font-size:17px}
  .history-list{grid-template-columns:1fr}
  .chart{height:200px}
  .bar-wrap{height:145px}
}
@media(max-width:560px){
  body{padding-bottom:calc(74px + var(--safe-bottom))}
  .app-header{min-height:64px;padding:10px 12px}
  .brand-logo{height:30px;max-width:150px}
  .brand-text strong{font-size:12px}
  .brand-text span{display:none}
  .user-name{display:none}
  .user-area a{padding:8px 10px;font-size:12px}
  .user-area .auth-entry{
    font-size:0;
  }
  .user-area .auth-entry:after{
    content:"Criar / Entrar";
    font-size:12px;
  }
  .avatar{width:32px;height:32px}
  .app-shell{width:calc(100% - 14px);margin-top:10px}
  .welcome-card{border-radius:18px;padding:14px}
  .welcome-card h1{font-size:19px}
  .welcome-card p{font-size:13px}
  .create-account{display:none}
  .game-tabs{padding:12px 2px 10px}
  .game-tab{width:132px;height:26px}
  .latest-result-card,.hero-panel,.glass-card{border-radius:18px;padding:15px}
  .result-top h2{font-size:17px}
  .real-ball{width:38px;height:38px}
  .game-head{gap:12px;margin-bottom:16px}
  .game-title-logo{width:58px;height:58px;flex-basis:58px;padding:8px}
  .game-head h1{font-size:18px}
  .game-head p{font-size:13px}
  .number-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
  .num-btn{height:39px;font-size:14px;border-radius:8px}
  .btn-main,.btn-outline{min-height:50px;font-size:13px}
  .cards-row{gap:10px;margin-top:10px}
  .glass-card h2{font-size:14px}
  .chart{height:184px;gap:4px}
  .bar-wrap{height:128px}
  .bar-label{font-size:9px}
}


/* ===== Ajustes v5 ===== */
.app-shell{
  width:min(1420px,calc(100% - 32px));
}
.game-tabs{
  flex-wrap:wrap;
  overflow:visible;
  scroll-snap-type:none;
}
.game-tab{
  width:150px;
  height:30px;
}
.history-head h2,
.glass-card h2,
.result-top h2,
.game-head h1{
  word-break:normal;
  overflow-wrap:normal;
}
.history-head h2{
  white-space:nowrap;
}
.section-label{
  white-space:nowrap;
}
.bottom-nav{
  grid-template-columns:repeat(4,1fr);
}
@media(max-width:980px){
  .app-shell{
    width:min(720px,calc(100% - 18px));
  }
  .game-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
  }
}
@media(max-width:560px){
  .app-shell{
    width:calc(100% - 14px);
  }
  .welcome-card h1{
    font-size:18px;
  }
  .result-top h2{
    font-size:15px;
    line-height:1.25;
  }
  .history-head h2{
    font-size:14px;
    letter-spacing:.02em;
  }
  .glass-card h2{
    font-size:13px;
    letter-spacing:.04em;
  }
  .section-label{
    font-size:10px;
    letter-spacing:.09em;
  }
  .game-head h1{
    font-size:17px;
    letter-spacing:.02em;
  }
  .game-head{
    align-items:center;
  }
  .user-area a[href="logout.php"]{
    display:none;
  }
}


/* ===== Ajustes v9 solicitados ===== */
.result-top{
  align-items:center;
}
.icon-btn{
  width:auto;
  height:auto;
  min-width:34px;
  min-height:34px;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#dce8f4;
  font-size:20px;
  padding:0 4px;
  display:grid;
  place-items:center;
}
.icon-btn:hover,
.icon-btn:focus{
  color:var(--green);
  background:transparent !important;
}
.game-title-logo{
  width:78px !important;
  height:78px !important;
  flex-basis:78px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.btn-main{
  text-transform:uppercase;
}
@media(max-width:560px){
  .game-title-logo{
    width:68px !important;
    height:68px !important;
    flex-basis:68px !important;
  }
  .icon-btn{
    min-width:30px;
    min-height:30px;
    font-size:18px;
  }
}


/* ===== Ajustes v10 ===== */
.brand-mobile{
  display:flex;
  align-items:center;
}
.brand-logo.pro-logo{
  height:48px;
  width:auto;
  max-width:min(62vw,420px);
  display:block;
}
.brand-text{
  display:none !important;
}
.brand-mini img{
  height:56px;
  width:auto;
  max-width:100%;
}
.brand-mini span{
  display:none !important;
}
.compact-probability{
  margin-top:14px;
  text-align:left;
}
.action-row-simulated{
  margin-top:18px;
}
.action-row-simulated button{
  min-width:112px;
}
@media(max-width:560px){
  .brand-logo.pro-logo{
    height:34px;
    max-width:72vw;
  }
  .brand-mini img{
    height:46px;
  }
  .action-row-simulated button{
    min-width:92px;
    font-size:13px;
  }
}


/* ===== Ajustes v11: menos espaços no PC + histórico no lugar do card ===== */
.main-grid-wrap{
  grid-template-columns:minmax(0,1fr) 260px;
}
.actions{
  gap:10px;
}
.side-selected{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
}
.side-selected .section-label{
  margin-bottom:10px;
}
.side-selected .chips{
  justify-content:flex-start;
  min-height:auto;
}
.quick-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.quick-actions .btn-outline{
  min-height:44px;
}
.cards-row{
  align-items:stretch;
}
.history-card{
  margin-top:14px;
}
.cards-row .history-card{
  margin-top:0;
}
.cards-row .history-list{
  grid-template-columns:1fr;
  max-height:245px;
  overflow:auto;
  padding-right:4px;
}
.cards-row .history-item{
  padding:12px;
}
.stats-card .small-info{
  display:none;
}
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
@media(min-width:981px){
  .hero-panel{
    padding-bottom:18px;
  }
  .cards-row{
    grid-template-columns:.95fr 1fr;
  }
}
@media(max-width:980px){
  .main-grid-wrap{
    grid-template-columns:1fr;
  }
  .side-selected .chips{
    justify-content:center;
  }
  .quick-actions{
    grid-template-columns:1fr 1fr;
  }
}


/* ===== Ajustes v12 ===== */
.actions{
  justify-content:center;
}
.side-selected{
  display:none !important;
}
@media(min-width:981px){
  .actions{
    padding-top:4px;
  }
}


/* ===== v14: página Minha Conta ===== */
.account-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px 0;
}
.account-card{
  width:min(460px,100%);
  text-align:center;
}
.account-logo{
  justify-content:center;
  margin-bottom:18px;
}
.account-avatar{
  width:76px;
  height:76px;
  margin:0 auto 14px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:900;
  color:#04130a;
  background:linear-gradient(180deg,#22f276,#00bd56);
  box-shadow:0 0 24px rgba(0,230,109,.25);
}
.account-card h1{
  margin:0 0 6px;
  font-size:26px;
}
.account-muted{
  margin:0 0 20px;
  color:var(--muted);
}
.account-info{
  display:grid;
  gap:10px;
  margin:18px 0;
  text-align:left;
}
.account-info div{
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}
.account-info span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}
.account-info strong{
  overflow-wrap:anywhere;
}
.account-actions{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.account-link{
  display:grid;
  place-items:center;
  text-decoration:none;
}


/* ===== v15: página Conta corrigida ===== */
.account-body{
  min-height:100vh;
}
.account-header{
  justify-content:center;
}
.account-header-logo{
  display:block;
  text-decoration:none;
}
.account-header-logo img{
  height:46px;
  width:auto;
  max-width:min(78vw,420px);
  display:block;
}
.account-page{
  width:min(520px,calc(100% - 20px));
  margin-top:12px;
  padding-bottom:18px;
}
.account-panel{
  padding:22px;
  border-radius:24px;
}
.account-profile{
  display:flex;
  align-items:center;
  gap:18px;
  margin:18px 0 22px;
}
.account-avatar{
  width:82px;
  height:82px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 82px;
  font-size:30px;
  font-weight:900;
  color:#04130a;
  background:linear-gradient(180deg,#22f276,#00bd56);
  box-shadow:0 0 28px rgba(0,230,109,.28);
}
.account-profile-text{
  min-width:0;
  text-align:left;
}
.account-profile-text h1{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.05;
  color:#f4f7fb;
  overflow-wrap:anywhere;
}
.account-profile-text p{
  margin:0;
  color:#dbe4ee;
  font-size:15px;
  overflow-wrap:anywhere;
}
.account-menu{
  display:grid;
  gap:10px;
}
.account-menu-item{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid var(--green2);
  background:rgba(0,0,0,.16);
  color:#fff !important;
  text-decoration:none !important;
  font-weight:900;
  letter-spacing:.02em;
}
.account-menu-item.primary{
  color:#04130a !important;
  background:linear-gradient(180deg,#22f276,#00bd56);
  border:0;
}
.account-menu-item.danger{
  border-color:rgba(255,255,255,.18);
}
.account-menu-item b{
  font-size:22px;
  line-height:1;
}
.account-menu-item:hover,
.account-menu-item:focus{
  transform:translateY(-1px);
}
@media(max-width:560px){
  .account-header{
    min-height:66px;
    align-items:center;
  }
  .account-header-logo img{
    height:34px;
    max-width:76vw;
  }
  .account-page{
    width:calc(100% - 18px);
    margin-top:10px;
  }
  .account-panel{
    padding:18px;
  }
  .account-profile{
    flex-direction:column;
    text-align:center;
    gap:12px;
  }
  .account-profile-text{
    text-align:center;
  }
  .account-profile-text h1{
    font-size:26px;
  }
  .account-avatar{
    width:76px;
    height:76px;
    flex-basis:76px;
  }
}

/* ===== v16: +MILIONÁRIA com trevos no resultado e no gerador ===== */
.numbers-area{
  display:grid;
  gap:14px;
  min-width:0;
}
.generated-preview{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
}
.generated-preview .section-label{
  margin-bottom:10px;
}
.generated-preview .chips{
  justify-content:flex-start;
  min-height:40px;
}
.chip-separator{
  width:100%;
  color:#7bffb2;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-top:2px;
}
.chip-trevo,
.real-trevo{
  border-color:#cfff5c !important;
  background:linear-gradient(180deg,#dbff65,#75d50c) !important;
  color:#173000 !important;
}
.trevo-selector{
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px;
}
.trevo-selector[hidden]{
  display:none !important;
}
.trevo-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.trevo-title span{
  color:#7bffb2;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.10em;
  font-weight:900;
}
.trevo-title small{
  color:#d2dae5;
  font-size:12px;
}
.trevo-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}
.trevo-btn{
  min-height:44px;
  border:1px solid rgba(207,255,92,.40);
  background:linear-gradient(180deg,rgba(23,35,48,.94),rgba(8,16,25,.94));
  border-radius:10px;
  color:#f8fbff;
  font-weight:900;
  cursor:pointer;
}
.trevo-btn.active{
  background:linear-gradient(180deg,#dbff65,#75d50c);
  border-color:#eaff92;
  color:#173000;
  box-shadow:0 0 18px rgba(207,255,92,.32);
}
.real-trevos{
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:4px;
}
.real-extra-label{
  color:#7bffb2;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-right:2px;
}
.history-extra{
  margin-top:4px;
  color:#dfff8a;
  font-size:13px;
  font-weight:800;
}
@media(max-width:980px){
  .generated-preview .chips{
    justify-content:center;
  }
}
@media(max-width:560px){
  .trevo-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .trevo-title{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }
  .generated-preview{
    padding:10px;
  }
}

/* ===== v17: no mobile ocultar apenas o ícone do trevo e manter o número ===== */
.trevo-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.trevo-number{
  display:inline-block;
}
.chip-trevo,
.real-trevo,
.trevo-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
@media(max-width:560px){
  .generated-preview .chip-trevo,
  .real-trevo{
    gap:0;
  }
  .generated-preview .chip-trevo .trevo-icon,
  .real-trevo .trevo-icon{
    display:none !important;
  }
}
