:root{
  --radius:18px;
  --border:rgba(106,123,180,.22);
  --card:rgba(16,23,48,.88);
  --card2:rgba(22,31,63,.88);
}

body{
  background:
    radial-gradient(900px 520px at 16% -120px,rgba(47,83,196,.16),transparent 64%),
    radial-gradient(760px 440px at 82% -100px,rgba(240,180,41,.08),transparent 68%),
    #070b1c;
}

header{
  background:rgba(7,11,28,.72);
  border-bottom-color:rgba(116,132,188,.16);
  box-shadow:0 10px 38px rgba(0,0,0,.2);
}

.brand .klogo{border-radius:14px}
.brand .klogo-fallback{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 48px;
  color:#111522;
  background:linear-gradient(145deg,#fff06a,#f0b429);
  border:1px solid rgba(255,245,148,.8);
  box-shadow:0 8px 24px rgba(240,180,41,.25),inset 0 1px 0 rgba(255,255,255,.65);
  font-family:'Lilita One',sans-serif;
  font-size:32px;
  line-height:1;
  text-decoration:none;
}
.home-nav,.socials{gap:7px}
.hn-btn,.social-btn{
  border-radius:999px;
  border-color:rgba(106,123,180,.22);
  background:rgba(18,25,52,.68);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.hn-btn:hover,.social-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(150,166,218,.38);
}
.hn-btn.active{
  box-shadow:inset 0 0 0 1px rgba(240,180,41,.08),0 7px 22px rgba(240,180,41,.08);
}
.social-btn img{width:17px;height:17px;display:block;object-fit:contain}
.social-btn.youtube{
  color:#fff;
  background:#ff0033;
  border-color:#ff335c;
  box-shadow:0 8px 22px rgba(255,0,51,.22);
}
.social-btn.youtube:hover{color:#fff;background:#e9002f;border-color:#ff5574}
.social-btn.twitch{
  color:#fff;
  background:#9146ff;
  border-color:#a56cff;
  box-shadow:0 8px 22px rgba(145,70,255,.24);
}
.social-btn.twitch:hover{color:#fff;background:#7d35e8;border-color:#b083ff}

.home-section{margin-top:32px}
.carousel{
  min-height:420px;
  border-radius:24px;
  border-color:rgba(131,148,203,.22);
  background:#080d20;
  box-shadow:0 28px 70px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.035);
  isolation:isolate;
}
.carousel::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-2;
  background:url('/assets/carousel-keke.png?v=3') center 47%/cover no-repeat;
  opacity:.34;
  transform:scale(1.015);
}
.carousel::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(6,10,25,.64),rgba(6,10,25,.78));
}
.car-track{position:relative;z-index:1}
.car-slide{
  min-height:420px;
  padding:72px 84px 76px;
  align-items:center;
  text-align:center;
  gap:16px;
}
.car-slide h2{
  font-size:clamp(2.1rem,4.4vw,3.45rem);
  letter-spacing:.6px;
  filter:drop-shadow(0 5px 20px rgba(0,0,0,.6));
}
.car-slide p{
  max-width:570px;
  color:#d6dcef;
  font-size:1rem;
  line-height:1.7;
  text-shadow:0 2px 12px rgba(0,0,0,.85);
}
.car-note{color:#aeb8d3}
.car-actions{justify-content:center}
.car-btn,.car-action{
  border-radius:999px;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.car-action{background:rgba(13,20,43,.74);backdrop-filter:blur(9px)}
.car-arrow{
  z-index:4;
  pointer-events:auto;
  opacity:.58;
  border-color:rgba(180,192,231,.25);
  backdrop-filter:blur(8px);
}
.carousel:hover .car-arrow{opacity:1}
.car-dots{
  position:absolute;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  z-index:3;
  padding:0;
}
.car-dot{height:5px;background:rgba(143,157,204,.35)}

.latest-video{
  gap:24px;
  margin-top:20px;
  padding:18px;
  border-radius:20px;
  border-color:rgba(112,130,188,.2);
  background:linear-gradient(135deg,rgba(19,27,57,.9),rgba(11,17,38,.9));
  box-shadow:0 18px 46px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.latest-video:hover{
  transform:translateY(-2px);
  border-color:rgba(142,158,211,.3);
  box-shadow:0 24px 54px rgba(0,0,0,.32);
}
.lv-thumb{flex-basis:250px;border-radius:14px}
.lv-label{color:#aab4d1}
.lv-title{font-size:1.04rem}
.lv-btn{border-radius:999px;box-shadow:0 10px 25px rgba(255,59,59,.2)}

/* Guias: navegação e cartões de hunts */
.tabs{
  width:max-content;
  max-width:calc(100% - 40px);
  margin-top:28px;
  padding:0;
  gap:8px;
  flex-wrap:nowrap;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.tab{
  min-height:42px;
  padding:10px 18px;
  border:1px solid rgba(106,124,183,.2);
  border-radius:999px;
  background:rgba(16,23,49,.68);
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.tab:hover{background:rgba(24,33,68,.82);border-color:rgba(143,159,212,.3)}
.tab.active{
  background:linear-gradient(135deg,rgba(240,180,41,.2),rgba(240,180,41,.08));
  border-color:rgba(240,180,41,.22);
  box-shadow:0 8px 24px rgba(240,180,41,.08),inset 0 1px 0 rgba(255,255,255,.04);
}
.tab .beta{border-radius:999px;padding:2px 7px}

.subnav{
  margin-top:12px;
  gap:6px;
  flex-wrap:nowrap;
}
.sub-btn{
  min-height:38px;
  padding:8px 16px;
  border-radius:999px;
  border-color:rgba(105,123,181,.18);
  background:rgba(15,22,47,.68);
}
.sub-btn:hover{background:rgba(24,33,67,.82);border-color:rgba(142,158,211,.28)}
.sub-btn.active{
  background:rgba(240,180,41,.12);
  border-color:rgba(240,180,41,.3);
  box-shadow:inset 0 0 0 1px rgba(240,180,41,.035);
}

.toolbar{margin-top:14px;gap:7px}
.toolbar>button{
  border-radius:999px;
  border-color:rgba(104,122,180,.18);
  background:rgba(13,20,43,.58);
  padding:7px 13px;
}
.toolbar>button:hover{background:rgba(240,180,41,.08)}
.hint{margin-top:16px;color:#8f99b6}
.hint-main{font-size:1.04rem;margin-top:28px}

.warning{
  margin-bottom:26px;
  padding:15px 20px;
  border-radius:16px;
  border-color:rgba(240,180,41,.2);
  background:linear-gradient(135deg,rgba(240,180,41,.09),rgba(240,180,41,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.warning-text{animation:none;background:none;color:#e2c77c}
.warning-text strong{color:#ffd86d}

.section-title{
  margin-top:34px;
  margin-bottom:18px;
  font-size:1.32rem;
  letter-spacing:.35px;
}
.section-title::after{background:linear-gradient(90deg,rgba(240,180,41,.25),rgba(106,123,180,.12),transparent)}
.grid{gap:16px}
.bracket-card{
  border-radius:18px;
  border-color:rgba(106,124,183,.18);
  background:linear-gradient(180deg,rgba(17,24,51,.94),rgba(10,16,36,.96));
  box-shadow:0 15px 38px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.025);
}
.bracket-card:hover{
  transform:translateY(-3px);
  border-color:rgba(240,180,41,.24);
  box-shadow:0 22px 48px rgba(0,0,0,.3);
}
.bracket-head{
  padding:15px 17px;
  border-bottom-color:rgba(110,128,187,.14);
  background:linear-gradient(90deg,rgba(240,180,41,.105),rgba(240,180,41,.025));
}
.bracket-head .lvl{font-size:1.1rem;letter-spacing:.25px}
.bracket-head .count{
  padding:4px 9px;
  border-color:rgba(111,129,188,.16);
  background:rgba(8,13,31,.5);
}
.hunt-list{padding:7px 0}
.hunt-list li{
  min-height:46px;
  padding:9px 16px;
  gap:9px;
  border-bottom:1px solid rgba(104,122,180,.095);
}
.hunt-list li:hover{background:rgba(255,255,255,.018)}
.hunt-name{font-weight:600;color:#e8ebf6}
.hunt-tag{margin-left:8px;border-radius:999px;padding:3px 8px;letter-spacing:.15px}
.map-link{
  border-radius:999px;
  padding:5px 10px;
  border-color:rgba(240,180,41,.2);
  background:rgba(240,180,41,.075);
}
.map-link:hover{background:rgba(240,180,41,.17);transform:translateY(-1px)}

@media(max-width:760px){
  .carousel{min-height:390px;border-radius:20px}
  .carousel::before{background-position:54% center;opacity:.27}
  .carousel::after{
    background:linear-gradient(180deg,rgba(6,10,25,.68),rgba(6,10,25,.94) 72%,rgba(6,10,25,.98));
  }
  .car-slide{
    min-height:390px;
    padding:58px 28px 72px;
    align-items:center;
    text-align:center;
  }
  .car-slide p{font-size:.92rem;line-height:1.6}
  .car-actions{justify-content:center}
  .car-dots{left:50%;bottom:24px;transform:translateX(-50%)}
  .car-arrow{opacity:.72}
  .latest-video{padding:14px;border-radius:18px}
  .tabs{
    width:auto;
    max-width:none;
    margin-left:12px;
    margin-right:12px;
    padding:5px;
    overflow-x:auto;
    justify-content:flex-start;
    scrollbar-width:none;
  }
  .tabs::-webkit-scrollbar,.subnav::-webkit-scrollbar,.toolbar::-webkit-scrollbar{display:none}
  .tab{padding:9px 14px;font-size:.82rem}
  .subnav,.toolbar{
    padding-left:12px;
    padding-right:12px;
    overflow-x:auto;
    justify-content:flex-start;
    flex-wrap:nowrap;
    scrollbar-width:none;
  }
  .sub-btn,.toolbar>button{flex:0 0 auto;white-space:nowrap}
  .warning{margin-left:0;margin-right:0;padding:14px 15px;text-align:left;align-items:flex-start}
  .section-title{font-size:1.16rem;margin-top:30px}
  .grid{grid-template-columns:1fr;gap:14px}
  .bracket-card{border-radius:16px}
  .hunt-list li{padding:10px 14px}
}

@media(prefers-reduced-motion:reduce){
  .hn-btn,.social-btn,.latest-video{transition:none}
}

@media(min-width:761px){
  .header-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    padding:10px 16px 12px;
  }
  .brand{grid-column:1;grid-row:1;justify-self:start}
  .socials{grid-column:2;grid-row:1;margin-left:0;justify-self:end}
  .home-nav{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    margin-left:0;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:7px;
  }
  .home-nav .hn-btn{
    flex:0 0 auto;
    width:auto;
    min-width:max-content;
    padding:8px 14px;
    white-space:nowrap;
    text-align:center;
    line-height:1.25;
  }
  .home-nav .store-menu{flex:0 0 auto}
}

@media(max-width:980px){
  .home-nav{justify-content:center}
}

@media(max-width:760px){
  .header-inner{align-items:center}
  .brand{min-width:0}
  .brand h1{font-size:.92rem}
  .brand h1 small{font-size:.58rem;letter-spacing:.9px}
  .socials{order:2;margin-left:auto;width:auto;justify-content:flex-end}
  .header-inner .social-btn{padding:8px 10px;font-size:.74rem}
  .home-nav{order:3;display:flex;justify-content:center;flex-wrap:wrap;width:100%}
  .home-nav .store-menu{width:auto}
  .home-nav .store-trigger{width:auto}
  .home-nav .hn-btn{padding:8px 11px;white-space:nowrap}
}

@media(max-width:430px){
  .brand h1 small{display:none}
  .header-inner .social-btn{font-size:0;gap:0;padding:9px}
  .header-inner .social-btn img{width:20px;height:20px}
}

/* Charms, configurações e vídeos */
.table-wrap{
  border-radius:18px;
  border-color:rgba(106,124,183,.18);
  background:linear-gradient(180deg,rgba(17,24,51,.94),rgba(10,16,36,.96));
  box-shadow:0 18px 44px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
}
table{font-size:.87rem}
th{
  padding:14px 16px;
  color:#f3c858;
  border-bottom-color:rgba(240,180,41,.16);
  background:rgba(240,180,41,.075);
}
td{padding:13px 16px;border-bottom-color:rgba(105,123,181,.1)}
tr:hover td{background:rgba(255,255,255,.018)}
.ord{font-size:1rem}
.charm-name{color:#f2f4fb}
.obs{color:#9fa9c5;line-height:1.55}

.config-grid{gap:16px}
.config-card{
  position:relative;
  overflow:hidden;
  padding:20px;
  border-radius:18px;
  border-color:rgba(106,124,183,.18);
  background:linear-gradient(155deg,rgba(18,26,55,.96),rgba(9,15,35,.96));
  box-shadow:0 18px 44px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.config-card::before{
  content:'';
  position:absolute;
  left:0;right:0;top:0;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(240,180,41,.55),transparent);
  opacity:.72;
}
.config-card:hover{
  transform:translateY(-3px);
  border-color:rgba(240,180,41,.24);
  box-shadow:0 24px 52px rgba(0,0,0,.3);
}
.config-card h4{
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(106,124,183,.12);
  font-size:1.08rem;
  letter-spacing:.25px;
}
.config-card li{
  min-height:48px;
  padding:10px 0;
  gap:8px;
  border-bottom:1px solid rgba(106,124,183,.095);
}
.config-card li>span:first-child{font-weight:600;color:#dfe4f3}
.copy-preset-btn{color:#b9c7ff;border-color:rgba(113,139,255,.24);background:rgba(82,107,224,.1)}
.copy-preset-btn:hover{color:#dbe2ff;background:rgba(82,107,224,.18);border-color:rgba(113,139,255,.38)}
.copy-preset-btn.copied{color:#72e6ad;background:rgba(61,214,140,.12);border-color:rgba(61,214,140,.28)}

.video-grid{gap:16px}
.video-card{
  border-radius:17px;
  border-color:rgba(106,124,183,.18);
  background:linear-gradient(145deg,rgba(18,26,55,.94),rgba(9,15,35,.96));
  box-shadow:0 14px 34px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.02);
}
.video-card:hover{border-color:rgba(255,66,66,.35);box-shadow:0 21px 44px rgba(0,0,0,.28)}
.video-card .play{border-radius:50%;background:rgba(255,0,51,.15);border-color:rgba(255,0,51,.3)}

/* Estados de carregamento */
.guide-load-status{
  width:max-content;
  max-width:calc(100% - 32px);
  margin:14px auto 0;
  padding:8px 13px;
  border:1px solid rgba(106,124,183,.2);
  border-radius:999px;
  background:rgba(13,20,43,.78);
  color:#aeb8d3;
  font-size:.75rem;
  font-weight:700;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.guide-load-status[hidden]{display:none}
.guide-load-status.loading::before{content:'';display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#f0b429;box-shadow:0 0 10px rgba(240,180,41,.65);animation:betaPulse 1s infinite}
.guide-load-status.success{color:#79e3ad;border-color:rgba(61,214,140,.24);background:rgba(61,214,140,.075)}
.guide-load-status.success::before{content:'✓';margin-right:7px}
.guide-load-status.fallback{color:#e5c66e;border-color:rgba(240,180,41,.22);background:rgba(240,180,41,.065)}
.guide-load-status.fallback::before{content:'•';margin-right:7px}
.latest-video.is-loading .lv-thumb::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(105deg,transparent 25%,rgba(255,255,255,.13) 46%,transparent 68%);
  transform:translateX(-100%);
  animation:betaShimmer 1.35s infinite;
}
@keyframes betaPulse{50%{opacity:.35;transform:scale(.85)}}
@keyframes betaShimmer{to{transform:translateX(100%)}}

/* Rodapé, patrocinadores e janela da live */
footer{
  margin-top:34px;
  border-top-color:rgba(106,124,183,.14);
  background:linear-gradient(180deg,rgba(10,15,34,.88),rgba(6,10,24,.98));
}
.footer-inner{padding:26px 20px;font-size:.8rem}
.footer-inner .flinks{margin-top:10px;gap:9px}
.footer-inner .flinks a{
  padding:7px 12px;
  border:1px solid rgba(106,124,183,.16);
  border-radius:999px;
  background:rgba(17,24,50,.56);
}
.note{margin-top:11px;color:#707b99}
.corner-sponsor .cs-card{border-color:rgba(106,124,183,.16);box-shadow:0 18px 46px rgba(0,0,0,.36)}

#twitchFloat{
  border-color:rgba(145,70,255,.32);
  border-radius:18px;
  background:linear-gradient(150deg,rgba(22,28,57,.97),rgba(10,15,34,.98));
  box-shadow:0 22px 64px rgba(0,0,0,.5),0 0 30px rgba(145,70,255,.08);
}
#twitchFloat .tfHead{padding:10px 13px;background:rgba(145,70,255,.14);border-bottom:1px solid rgba(145,70,255,.18)}
#twitchFloat .tfFoot{background:#9146ff}
#twitchFloat .tfFoot:hover{background:#7d35e8}
#twitchFloat .tfOffBtn{padding:12px 15px}
#twitchFloat .tfOffBtn:hover{background:rgba(145,70,255,.1)}

button:focus-visible,a:focus-visible{
  outline:2px solid #f0b429;
  outline-offset:3px;
}

@media(max-width:760px){
  main{padding-left:12px;padding-right:12px}
  .table-wrap,.config-card{border-radius:16px}
  .config-grid{gap:14px}
  .config-card{padding:16px}
  .config-card li{align-items:flex-start;flex-wrap:wrap}
  .config-card li>span:first-child{flex:1 1 100%}
  .video-grid{gap:13px}
  .footer-inner{padding:24px 14px}
}

@media(max-width:520px){
  #twitchFloat{border-radius:16px}
  #twitchFloat.off{width:min(220px,calc(100vw - 24px))}
  .guide-load-status{font-size:.7rem;text-align:center}
}

@media(prefers-reduced-motion:reduce){
  .guide-load-status.loading::before,.latest-video.is-loading .lv-thumb::after{animation:none}
  .config-card,.video-card,.map-link{transition:none}
}
