
.ak-monster-game-box {
  max-width: 900px;
  margin: 28px auto;
  background: #ffffff;
  border-radius: 30px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(50,35,90,.14);
}


.ak-monster-game-box h2 {
  margin: 0 0 6px;
  color: #20205f;
  font-size: 34px;
  font-weight: 950;
}

.ak-monster-game-box p {
  margin: 0 0 14px;
  color: #5f5878;
  font-weight: 800;
}

.ak-monster-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 950;
  color: #20205f;
}

.ak-monster-info span {
  background: #f4f0ff;
  border-radius: 999px;
  padding: 8px 12px;
}

.ak-monster-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

#akMonsterCanvas {
  width: 100%;
  height: auto;
  display: block;
  background: #b9f1ff;
  border: 4px solid #eadfff;
  border-radius: 24px;
  touch-action: none;
}

.ak-monster-start {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  background: linear-gradient(135deg, #ff5c8a, #ff8a3d);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255,92,138,.35);
  z-index: 10;
}

.ak-monster-start.ak-hide {
  display: none;
}

.ak-monster-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ak-monster-actions button,
.ak-monster-controls button {
  border: 0;
  border-radius: 18px;
  background: #7c5cff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  padding: 13px 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124,92,255,.25);
}

.ak-monster-controls {
  display: none;
  margin-top: 14px;
}

.ak-monster-controls button {
  width: 68px;
  height: 54px;
  font-size: 25px;
  margin: 4px;
}

.ak-monster-message {
  margin-top: 14px !important;
  color: #20a864 !important;
  font-size: 20px;
  font-weight: 950 !important;
  min-height: 28px;
}

.ak-monster-canvas-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ak-monster-canvas-wrap:fullscreen #akMonsterCanvas {
  width: 100vw;
  max-width: none;
  border: 0;
  border-radius: 0;
}

@media (max-width: 760px) {
  .ak-monster-game-box {
    padding: 18px 10px;
    border-radius: 24px;
  }

  .ak-monster-game-box h2 {
    font-size: 29px;
  }

  .ak-monster-actions button {
    font-size: 14px;
    padding: 12px 13px;
  }

  .ak-monster-controls {
    display: block;
  }
}
	
	.ak-monster-game-box {
  max-width: 900px;
  margin: 28px auto;
  background: #ffffff;
  border-radius: 30px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(50,35,90,.14);
}

.ak-monster-game-box h2 {
  margin: 0 0 6px;
  color: #20205f;
  font-size: 34px;
  font-weight: 950;
}

.ak-monster-game-box p {
  margin: 0 0 14px;
  color: #5f5878;
  font-weight: 800;
}

.ak-monster-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 950;
  color: #20205f;
}

.ak-monster-info span {
  background: #f4f0ff;
  border-radius: 999px;
  padding: 8px 12px;
}

.ak-monster-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

#akMonsterCanvas {
  width: 100%;
  height: auto;
  display: block;
  background: #b9f1ff;
  border: 4px solid #eadfff;
  border-radius: 24px;
  touch-action: none;
}

.ak-monster-start {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  background: linear-gradient(135deg, #ff5c8a, #ff8a3d);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255,92,138,.35);
  z-index: 10;
}

.ak-hide {
  display: none !important;
}

.ak-monster-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ak-monster-actions button,
.ak-monster-controls button {
  border: 0;
  border-radius: 18px;
  background: #7c5cff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  padding: 13px 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124,92,255,.25);
}

.ak-monster-controls {
  display: none;
  margin-top: 14px;
}

.ak-monster-controls button {
  width: 68px;
  height: 54px;
  font-size: 25px;
  margin: 4px;
}

.ak-monster-message {
  margin-top: 14px !important;
  color: #20a864 !important;
  font-size: 20px;
  font-weight: 950 !important;
  min-height: 28px;
}

.ak-monster-battle {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: radial-gradient(circle at top, rgba(255,255,255,.94), rgba(219,240,255,.96));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ak-battle-card {
  width: min(620px, 96%);
  background: #ffffff;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(50,35,90,.22);
  border: 4px solid #eadfff;
}

.ak-battle-card h3 {
  margin: 0 0 14px;
  color: #20205f;
  font-size: 34px;
  font-weight: 950;
}

.ak-battle-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.ak-battle-emoji {
  font-size: 76px;
  line-height: 1;
  margin-bottom: 8px;
}

.ak-life-bar {
  height: 18px;
  background: #eee8ff;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.ak-life-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #20c768, #9bea63);
  border-radius: 999px;
  transition: width .2s ease;
}

.ak-battle-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ak-battle-actions button {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c5cff, #9b7cff);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  padding: 12px 14px;
  cursor: pointer;
}

.ak-monster-canvas-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ak-monster-canvas-wrap:fullscreen #akMonsterCanvas {
  width: 100vw;
  max-width: none;
  border: 0;
  border-radius: 0;
}

@media (max-width: 760px) {
  .ak-monster-game-box {
    padding: 18px 10px;
    border-radius: 24px;
  }

  .ak-monster-game-box h2 {
    font-size: 29px;
  }

  .ak-monster-actions button {
    font-size: 14px;
    padding: 12px 13px;
  }

  .ak-monster-controls {
    display: block;
  }

  .ak-battle-emoji {
    font-size: 58px;
  }

  .ak-battle-card h3 {
    font-size: 28px;
  }
}

/* ===== MONSTRINHOS — LAYOUT DENTRO DO JOGO ===== */

.ak-monster-game-box {
  max-width: 940px !important;
  margin: 20px auto !important;
  padding: 15px !important;
  background: #ffffff !important;
  border-radius: 32px !important;
  box-shadow: 0 20px 50px rgba(50,35,90,0.15) !important;
  text-align: center !important;
}

.ak-monster-game-box > h2,
.ak-monster-game-box > p,
.ak-monster-controls,
.ak-monster-message {
  display: none !important;
}

.ak-monster-canvas-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

#akMonsterCanvas {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  background: #081018 !important;
  border: 3px solid #4a2d8a !important;
  border-radius: 18px !important;
  touch-action: none !important;
}

/* tela preta inicial */
.ak-monster-start-screen {
  position: absolute !important;
  inset: 0 !important;
  z-index: 90 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: rgba(8,4,24,0.72) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.ak-monster-start-screen h1 {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  margin: 0 0 14px !important;
  text-shadow: 0 0 20px #9b6dff !important;
}

.ak-monster-start-screen p {
  color: #c8b0ff !important;
  font-size: 14px !important;
  margin: 0 0 28px !important;
  max-width: 420px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
}

.ak-monster-start-screen button {
  background: linear-gradient(135deg,#7c3dff,#c03dff) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 36px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 28px rgba(160,80,255,0.5) !important;
}

.ak-monster-game-box{
  max-width:940px !important;
  margin:20px auto !important;
  padding:15px !important;
  background:#fff !important;
  border-radius:32px !important;
  box-shadow:0 20px 50px rgba(50,35,90,.15) !important;
  text-align:center !important;
}

.ak-monster-canvas-wrap{
  position:relative !important;
  width:100% !important;
  max-width:900px !important;
  margin:0 auto !important;
  border-radius:20px !important;
  overflow:hidden !important;
}

#akMonsterCanvas{
  width:100% !important;
  height:auto !important;
  display:block !important;
  background:#081018 !important;
  border:3px solid #4a2d8a !important;
  border-radius:18px !important;
  touch-action:none !important;
}

.ak-monster-hud{
  position:absolute;
  top:10px;
  left:10px;
  right:52px;
  z-index:40;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  pointer-events:none;
}

.ak-monster-hud span{
  background:rgba(10,5,30,.78);
  color:#fff;
  border:1.5px solid rgba(180,140,255,.4);
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(4px);
}

.ak-monster-menu-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:70;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:rgba(124,92,255,.92);
  color:#fff;
  font-size:22px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(124,92,255,.35);
}

.ak-monster-side-menu{
  position:absolute;
  top:56px;
  right:10px;
  z-index:75;
  width:180px;
  padding:12px;
  background:rgba(10,5,30,.9);
  border:1.5px solid rgba(180,140,255,.45);
  border-radius:20px;
  display:none;
  flex-direction:column;
  gap:8px;
  backdrop-filter:blur(6px);
}

.ak-monster-side-menu.ak-open{
  display:flex;
}

.ak-monster-side-menu h3{
  margin:0 0 4px;
  color:#fff;
  font-size:17px;
  font-weight:950;
}

.ak-monster-side-menu button{
  border:0;
  border-radius:14px;
  padding:10px 9px;
  background:linear-gradient(135deg,#7c5cff,#9b7cff);
  color:#fff;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
}

.ak-monster-message{
  position:absolute !important;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:50;
  max-width:92%;
  min-height:auto !important;
  margin:0 !important;
  padding:7px 18px;
  background:rgba(10,5,30,.82);
  color:#a0f0c0 !important;
  border:1.5px solid rgba(180,140,255,.35);
  border-radius:999px;
  font-size:13px !important;
  font-weight:900 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
}

.ak-monster-start-screen{
  position:absolute;
  inset:0;
  z-index:90;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(8,4,24,.72);
  border-radius:16px;
  backdrop-filter:blur(6px);
}

.ak-monster-start-screen.ak-hide{
  display:none !important;
}

.ak-monster-start-screen h1{
  color:#fff;
  font-size:28px;
  font-weight:950;
  margin:0 0 12px;
  text-shadow:0 0 20px #9b6dff;
}

.ak-monster-start-screen p{
  color:#c8b0ff;
  font-size:14px;
  max-width:430px;
  line-height:1.6;
  font-weight:800;
  margin:0 0 24px;
}

.ak-monster-start-screen button{
  border:0;
  border-radius:999px;
  padding:14px 34px;
  background:linear-gradient(135deg,#7c3dff,#c03dff);
  color:#fff;
  font-size:18px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 8px 28px rgba(160,80,255,.5);
}

.ak-monster-joystick,
.ak-monster-action-mobile{
  display:none;
}

.ak-monster-joystick{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:80;
  width:58px;
  height:58px;
  border-radius:50%;
  background:rgba(120,80,220,.28);
  border:2px solid rgba(180,140,255,.75);
  touch-action:none;
}

.ak-monster-joystick-knob{
  position:absolute;
  top:50%;
  left:50%;
  width:25px;
  height:25px;
  border-radius:50%;
  background:#fff;
  border:2px solid #7040c0;
  transform:translate(-50%,-50%);
}

.ak-monster-action-mobile{
  position:absolute;
  right:12px;
  bottom:14px;
  z-index:80;
  width:48px;
  height:48px;
  border-radius:50%;
  border:2px solid rgba(255,220,90,.9);
  background:rgba(255,150,40,.92);
  color:#fff;
  font-size:22px;
  font-weight:950;
  touch-action:none;
}

.ak-monster-started .ak-monster-joystick,
.ak-monster-started .ak-monster-action-mobile{
  display:block;
}

@media(max-width:760px){
  .ak-monster-game-box{
    padding:10px !important;
    border-radius:24px !important;
  }

  .ak-monster-hud{
    top:7px;
    left:7px;
    right:48px;
    gap:5px;
  }

  .ak-monster-hud span{
    font-size:10px;
    padding:4px 7px;
  }

  .ak-monster-side-menu{
    width:160px;
  }

  .ak-monster-start-screen h1{
    font-size:24px;
  }

  .ak-monster-start-screen p{
    font-size:13px;
  }
}


/* ===== AJUSTE FINAL — BATALHA E MENU MENOR ===== */

.ak-monster-battle{
  padding:8px !important;
  align-items:center !important;
}

.ak-battle-card{
  width:min(520px, 92%) !important;
  max-height:86% !important;
  padding:14px !important;
  border-radius:20px !important;
  border-width:3px !important;
  overflow:auto !important;
}

.ak-battle-card h3{
  font-size:26px !important;
  margin:0 0 8px !important;
}

.ak-battle-arena{
  gap:8px !important;
}

.ak-battle-emoji{
  font-size:52px !important;
  margin-bottom:4px !important;
}

.ak-battle-card strong{
  font-size:12px !important;
}

.ak-life-bar{
  height:14px !important;
  margin-top:5px !important;
}

#akBattleText{
  margin:7px 0 !important;
  font-size:13px !important;
  font-weight:900 !important;
}

.ak-battle-actions{
  gap:7px !important;
  margin-top:8px !important;
}

.ak-battle-actions button{
  font-size:12px !important;
  padding:9px 11px !important;
  border-radius:14px !important;
}

/* menu menor no desktop */
.ak-monster-side-menu{
  width:158px !important;
  padding:9px !important;
  gap:6px !important;
  border-radius:17px !important;
}

.ak-monster-side-menu h3{
  font-size:15px !important;
}

.ak-monster-side-menu button{
  font-size:11px !important;
  padding:8px 7px !important;
  border-radius:12px !important;
}

/* celular */
@media(max-width:760px){
  .ak-battle-card{
    width:94% !important;
    max-height:82% !important;
    padding:10px !important;
    border-radius:16px !important;
  }

  .ak-battle-card h3{
    font-size:22px !important;
    margin-bottom:6px !important;
  }

  .ak-battle-emoji{
    font-size:40px !important;
  }

  .ak-life-bar{
    height:11px !important;
  }

  #akBattleText{
    font-size:11px !important;
    margin:5px 0 !important;
  }

  .ak-battle-actions button{
    font-size:10px !important;
    padding:7px 8px !important;
    border-radius:11px !important;
  }

  .ak-monster-side-menu{
    top:48px !important;
    right:7px !important;
    width:132px !important;
    padding:7px !important;
    gap:5px !important;
    border-radius:15px !important;
  }

  .ak-monster-side-menu h3{
    font-size:13px !important;
    margin-bottom:2px !important;
  }

  .ak-monster-side-menu button{
    font-size:9px !important;
    padding:6px 5px !important;
    border-radius:10px !important;
    white-space:nowrap !important;
  }
}


/* ===== MOBILE: BATALHA BEM MENOR + ÍCONE DO BOTÃO ===== */

@media(max-width:760px){
  .ak-monster-battle{
    padding:4px !important;
  }

  .ak-battle-card{
    width:88% !important;
    max-height:72% !important;
    padding:7px !important;
    border-radius:14px !important;
    transform:scale(.88) !important;
    transform-origin:center center !important;
  }

  .ak-battle-card h3{
    font-size:18px !important;
    margin:0 0 3px !important;
    line-height:1 !important;
  }

  .ak-battle-arena{
    gap:4px !important;
  }

  .ak-battle-emoji{
    font-size:30px !important;
    margin-bottom:0 !important;
  }

  .ak-battle-card strong{
    font-size:9px !important;
    line-height:1 !important;
  }

  .ak-life-bar{
    height:8px !important;
    margin-top:3px !important;
  }

  #akBattleText{
    font-size:9px !important;
    margin:3px 0 !important;
    line-height:1.1 !important;
  }

  .ak-battle-actions{
    gap:4px !important;
    margin-top:4px !important;
  }

  .ak-battle-actions button{
    font-size:8px !important;
    padding:5px 6px !important;
    border-radius:9px !important;
    line-height:1 !important;
  }

  .ak-monster-action-mobile{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#fff !important;
    font-size:24px !important;
    line-height:1 !important;
    font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",Arial,sans-serif !important;
  }

  .ak-monster-action-mobile::before{
    content:"☰";
    display:block;
  }

  .ak-monster-action-mobile{
    font-size:0 !important;
  }

  .ak-monster-action-mobile::before{
    font-size:24px !important;
  }
}/* tirar botão laranja no celular e tablet */
/* remover botão laranja em tudo: desktop, tablet e celular */
#akMonsterActionMobile,
.ak-monster-action-mobile,
.ak-monster-started #akMonsterActionMobile,
.ak-monster-started .ak-monster-action-mobile{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}



/* aumentar a tela do jogo no celular */
@media(max-width:760px){
  .ak-monster-game-box{
    max-width:100% !important;
    width:100% !important;
    padding:8px !important;
  }

  .ak-monster-canvas-wrap{
    width:100% !important;
    max-width:none !important;
  }

  #akMonsterCanvas{
    width:100% !important;
    min-height:250px !important;
    object-fit:cover !important;
  }

  .ak-monster-start-screen{
    min-height:250px !important;
  }
}


/* imagem de fundo na tela inicial dos monstrinhos */
.ak-monster-start-screen{
  background:
    linear-gradient(rgba(8,4,24,.62), rgba(8,4,24,.62)),
    url("http://atividadekids.com/wp-content/uploads/2026/06/JogoDosMonstinhos.jpg") center/cover no-repeat !important;
}