*{
  box-sizing:border-box;
}

.ak-coelho-gigante-box{
  max-width:940px;
  margin:20px auto;
  background:#fff;
  border-radius:32px;
  padding:15px;
  text-align:center;
  box-shadow:0 20px 50px rgba(50,35,90,.15);
  font-family:'Segoe UI',Arial,sans-serif;
}

.ak-coelho-gigante-wrap{
  position:relative;
  width:100%;
  max-width:900px;
  margin:0 auto;
  border-radius:22px;
  overflow:hidden;
}

#akCoelhoGiganteCanvas{
  width:100%;
  max-width:760px;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:20px;
  border:3px solid #5b3b22;
  background:#6fbf68;
  touch-action:none;
  user-select:none;
}

/* HUD */
#akCoelhoGiganteHud{
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  z-index:40;
  pointer-events:auto !important;
}

.ak-gigante-icon-pill{
  min-width:34px;
  height:30px;
  padding:0 9px;
  border-radius:999px;
  background:rgba(22,15,7,.55);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-size:14px;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  pointer-events:auto !important;
  position:relative !important;
}

/* Tooltip dos ícones */
.ak-gigante-icon-pill::after,
#akGiganteHelpBtn::after,
#akGiganteFullscreenBtn::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  top:34px;
  transform:translateX(-50%);
  background:#ffe36a;
  color:#3b2800;
  font-size:11px;
  font-weight:950;
  padding:5px 9px;
  border-radius:999px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:.18s;
  box-shadow:0 6px 14px rgba(0,0,0,.22);
  z-index:9999;
}

.ak-gigante-icon-pill:hover::after,
#akGiganteHelpBtn:hover::after,
#akGiganteFullscreenBtn:hover::after{
  opacity:1;
  top:31px;
}

/* Não mostrar balão vazio */
#akGiganteHelpBtn[data-tip=""]::after,
#akGiganteFullscreenBtn[data-tip=""]::after{
  display:none !important;
}

/* Botão objetivos */
#akGiganteHelpBtn{
  height:30px;
  min-width:76px;
  padding:0 12px;
  border:none;
  border-radius:999px;
  background:rgba(255,227,106,.95);
  color:#3b2800;
  font-size:12px;
  font-weight:950;
  line-height:1;
  z-index:85;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
  position:relative;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  white-space:nowrap;
}

/* Botão tela cheia */
#akGiganteFullscreenBtn{
  width:34px;
  height:30px;
  padding:0;
  border:none;
  border-radius:999px;
  background:rgba(255,227,106,.95);
  color:#3b2800;
  font-size:18px;
  font-weight:950;
  z-index:85;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
  position:relative;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}

/* Painel objetivos */
#akGiganteHelpPanel{
  position:absolute;
  top:44px;
  left:10px;
  width:210px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(20,14,8,.82);
  color:#fff;
  z-index:86;
  display:none;
  text-align:left;
  box-shadow:0 10px 26px rgba(0,0,0,.35);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  pointer-events:auto;
}

#akGiganteHelpPanel.ak-open{
  display:block;
}

#akGiganteHelpPanel strong{
  display:block;
  font-size:12px;
  margin-bottom:6px;
}

#akGiganteHelpPanel p{
  margin:5px 0;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
}

/* Mensagem */
#akCoelhoGiganteMessage{
  position:absolute;
  left:50%;
  bottom:9px;
  transform:translateX(-50%);
  background:rgba(20,14,8,.58);
  color:#fff7c7;
  border-radius:999px;
  padding:5px 12px;
  font-size:10px;
  font-weight:850;
  max-width:82%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  z-index:60;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s;
}

/* Overlay início/fim */
#akCoelhoGiganteOverlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:22px;
  background:rgba(28,18,8,.66);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:90;
  border-radius:20px;
}

#akCoelhoGiganteOverlay.ak-hide{
  display:none;
}

#akCoelhoGiganteOverlay h1{
  color:#fff;
  font-size:28px;
  font-weight:950;
  margin:0 0 10px;
  text-shadow:0 4px 18px rgba(0,0,0,.45);
}

#akCoelhoGiganteOverlay p{
  color:#ffeec4;
  max-width:430px;
  margin:0 0 24px;
  font-size:14px;
  line-height:1.55;
  font-weight:750;
}

.ak-gigante-start-btn{
  border:none;
  border-radius:999px;
  padding:14px 34px;
  cursor:pointer;
  color:#fff;
  font-size:18px;
  font-weight:950;
  background:linear-gradient(135deg,#ff8a22,#ffcf3b);
  box-shadow:0 10px 28px rgba(255,138,34,.45);
}

.ak-gigante-start-btn:hover{
  transform:scale(1.04);
}

.ak-gigante-start-btn.green{
  background:linear-gradient(135deg,#20c768,#10a855);
}

.ak-gigante-start-btn.red{
  background:linear-gradient(135deg,#ff305d,#ff7a2f);
}

/* Botão poder */
#akGigantePowerBtn{
  position:absolute;
  right:14px;
  bottom:14px;
  width:78px;
  height:78px;
  padding:0;
  border:none;
  border-radius:50%;
  background:transparent;
  z-index:80;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

#akGigantePowerBtn img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  pointer-events:none;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.35));
}

#akGigantePowerBtn:active{
  transform:scale(.92);
}

/* Desktop: esconde botão de poder */
@media(min-width:1025px){
  #akGigantePowerBtn{
    display:none !important;
  }
}

/* Celular/tablet: mostra botão de poder */
@media(max-width:1024px){
  #akGigantePowerBtn{
    display:flex !important;
  }
}

/* Mobile normal */
@media(max-width:768px){
  .ak-coelho-gigante-box{
    padding:12px 8px;
    border-radius:24px;
  }

  #akCoelhoGiganteCanvas{
    width:100% !important;
    max-height:68vh;
  }

  #akCoelhoGiganteHud{
    top:8px;
    left:8px;
    gap:5px;
  }

  .ak-gigante-icon-pill{
    height:26px;
    min-width:28px;
    padding:0 7px;
    font-size:12px;
    background:rgba(20,14,8,.48);
  }

  #akGiganteHelpBtn{
    height:26px;
    min-width:66px;
    padding:0 9px;
    font-size:10px;
  }

  #akGiganteFullscreenBtn{
    width:30px;
    height:26px;
    font-size:15px;
  }

  #akGigantePowerBtn{
    width:62px;
    height:62px;
    right:10px;
    bottom:10px;
  }

  #akCoelhoGiganteMessage{
    display:none !important;
  }

  #akCoelhoGiganteOverlay h1{
    font-size:22px;
  }
}

/* Modo expandido fake */
.ak-coelho-gigante-wrap.ak-fullscreen-mode{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  background:#101018 !important;
  z-index:999999 !important;
  overflow:hidden !important;
}

.ak-coelho-gigante-wrap.ak-fullscreen-mode #akCoelhoGiganteCanvas{
  width:100vw !important;
  height:100dvh !important;
  max-width:none !important;
  max-height:none !important;
  border:none !important;
  border-radius:0 !important;
  display:block !important;
  margin:0 !important;
}

.ak-coelho-gigante-wrap.ak-fullscreen-mode #akCoelhoGiganteOverlay{
  border-radius:0 !important;
}

.ak-coelho-gigante-wrap.ak-fullscreen-mode #akCoelhoGiganteHud{
  top:8px !important;
  left:8px !important;
  right:8px !important;
}

.ak-coelho-gigante-wrap.ak-fullscreen-mode #akGigantePowerBtn{
  right:12px !important;
  bottom:12px !important;
}

/* Retrato/vertical em tela cheia */
@media(orientation:portrait){
  .ak-coelho-gigante-wrap.ak-fullscreen-mode #akCoelhoGiganteHud{
    top:8px !important;
    left:8px !important;
    right:8px !important;
    gap:5px !important;
    flex-wrap:nowrap !important;
    transform:scale(.92);
    transform-origin:top left;
  }

  .ak-coelho-gigante-wrap.ak-fullscreen-mode .ak-gigante-icon-pill,
  .ak-coelho-gigante-wrap.ak-fullscreen-mode #akGiganteFullscreenBtn{
    height:25px !important;
    min-width:28px !important;
    padding:0 7px !important;
    font-size:11px !important;
  }

  .ak-coelho-gigante-wrap.ak-fullscreen-mode #akGiganteHelpBtn{
    height:25px !important;
    min-width:72px !important;
    width:auto !important;
    padding:0 10px !important;
    font-size:10px !important;
    white-space:nowrap !important;
  }

  .ak-coelho-gigante-wrap.ak-fullscreen-mode #akGigantePowerBtn{
    width:58px !important;
    height:58px !important;
    right:10px !important;
    bottom:14px !important;
  }
}