—/* =========================================================
   PARACA.IO — STYLE.CSS — PARTE 1/3
   BASE + LOGIN + HUB
========================================================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}

html,body {
  font-family: 'Arial Narrow', 'Impact', 'Arial Black', sans-serif;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#111;
}

button,input{
}

button{
  cursor:pointer;
  border:none;
}

#loginScreen,
#hubScreen,
#gameScreen{
  position:fixed;
  inset:0;
}

/* =========================
   LOGIN
========================= */

#loginScreen{
  z-index:3000;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#111;
}

#loginBg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.6)),
    url("https://raw.githubusercontent.com/Francescogaronfolo/PARACA/main/9EC8D5AF-471D-4568-B1EC-6571335CA2EE.png");
  background-size:cover;
  background-position:center;
}

#loginTitle{
  position:absolute;
  top:7%;
  left:0;
  right:0;
  text-align:center;
  font-family:'Black Han Sans',sans-serif;
  font-size:clamp(48px,13vw,108px);
  color:#FFE033;
  -webkit-text-stroke:2px #3d000a;
  letter-spacing:4px;
}

#loginBox{
  position:relative;
  z-index:2;
  width:min(310px,84vw);
  padding:18px 20px 20px;
  border-radius: 2px;
  background:rgba(235,226,206,.94);
  border:2px solid rgba(123,16,32,.45);
}

.loginRank{
  text-align:center;
  font-family:'Bebas Neue',sans-serif;
  color:#7B1020;
  font-size:22px;
  letter-spacing:5px;
  padding-bottom:10px;
  margin-bottom:12px;
  border-bottom:1px solid rgba(123,16,32,.22);
}

.loginInput{
  width:100%;
  height:42px;
  margin-bottom:9px;
  border-radius:6px;
  border:1px solid rgba(123,16,32,.28);
  background:rgba(255,255,255,.72);
  color:#2a0a0a;
  padding:0 12px;
  font-size:15px;
  font-weight:800;
  letter-spacing:2px;
  outline:none;
}

.loginInput:focus{
  border-color:#7B1020;
  background:white;
}

#loginError{
  height:14px;
  text-align:center;
  font-size:10px;
  color:#7B1020;
  opacity:0;
  margin:2px 0 8px;
}

#loginError.show{
  opacity:1;
}

#loginBtn{
  width:100%;
  height:46px;
  border-radius:7px;
  background:#7B1020;
  color:white;
  font-family:'Bebas Neue',sans-serif;
  font-size:18px;
  letter-spacing:6px;
}

/* =========================
   HUB
========================= */

#hubScreen{
  z-index:1000;
  display:none;
  flex-direction:column;
  background:linear-gradient(180deg,#e8a020,#c97a10);
}

#hubTopBar{
  height:56px;
  flex-shrink:0;
  background:#7B1020;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 8px;
}

.topBtn{
  height:38px;
  padding:0 10px;
  border-radius: 2px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-family:'Bebas Neue',sans-serif;
  font-size:13px;
  letter-spacing:2px;
  white-space:nowrap;
}

.topStat{
  height:38px;
  min-width:70px;
  padding:0 10px;
  border-radius: 2px;
  background:rgba(0,0,0,.25);
  color:#FFE033;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-weight:900;
}

#hubContent{
  flex:1;
  min-height:0;
  position:relative;
  overflow:hidden;
}

.hubPanel{
  position:absolute;
  inset:0;
  display:none;
  overflow-y:auto;
  padding:12px;
}

.hubPanel.active{
  display:block;
}

.panelTitle{
  font-family:'Bebas Neue',sans-serif;
  font-size:24px;
  letter-spacing:4px;
  color:#7B1020;
  margin-bottom:10px;
}

/* =========================
   WAR CARD
========================= */

#warCard{
  position:relative;
  width:100%;
  height:calc(100vh - 150px);
  min-height:420px;
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at center,rgba(255,224,51,.18),transparent 45%),
    linear-gradient(135deg,#090914,#21072d);
  border:2px solid rgba(255,224,51,.22);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.warGlow{
  position:absolute;
  width:360px;
  height:360px;
  border-radius: 50%;
  background:rgba(255,224,51,.08);
  filter:blur(20px);
}

.warTitle{
  position:relative;
  font-family:'Black Han Sans',sans-serif;
  color:#FFE033;
  -webkit-text-stroke:2px #3d000a;
  font-size:clamp(44px,12vw,90px);
  letter-spacing:4px;
}

.warSub{
  position:relative;
  margin-top:10px;
  color:rgba(255,255,255,.78);
  font-family:'Bebas Neue',sans-serif;
  font-size:20px;
  letter-spacing:5px;
}

/* =========================
   BOTTOM BAR
========================= */

#hubBottomBar{
  height:66px;
  flex-shrink:0;
  background:white;
  display:flex;
  align-items:center;
  justify-content:space-around;
  gap:6px;
  padding:6px 8px;
}

#hubBottomBar button{
  flex:1;
  height:100%;
  border-radius: 3px;
  background:transparent;
  color:rgba(120,90,30,.45);
  font-size:22px;
  font-weight:900;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

#hubBottomBar button span{
  font-family:'Bebas Neue',sans-serif;
  font-size:10px;
  letter-spacing:3px;
  margin-top:2px;
}

#hubBottomBar button.active{
  background:#7B1020;
  color:white;
}
/* =========================================================
   PARACA.IO — STYLE.CSS — PARTE 2/3
   PROFILO + SHOP + MAPPA + MODALI
========================================================= */

/* =========================
   PROFILO
========================= */

#profileCard{
  width:100%;
  min-height:90px;
  border-radius: 3px;
  background:rgba(255,255,255,.92);
  padding:14px;
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:12px;
}

.profileAvatar{
  width:64px;
  height:64px;
  border-radius: 50%;
  background:linear-gradient(135deg,#7B1020,#a81828);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  flex-shrink:0;
}

#profileName{
  font-family:'Bebas Neue',sans-serif;
  font-size:24px;
  letter-spacing:3px;
  color:#7B1020;
}

.profileSub{
  font-size:11px;
  letter-spacing:1px;
  color:rgba(120,90,30,.58);
}

.wideBtn{
  width:100%;
  height:52px;
  border-radius: 3px;
  margin-bottom:12px;
  background:#7B1020;
  color:white;
  font-family:'Bebas Neue',sans-serif;
  font-size:18px;
  letter-spacing:4px;
}

#selectedCardBox{
  width:100%;
  border-radius: 3px;
  padding:14px;
  background:rgba(255,255,255,.92);
  margin-bottom:12px;
}

.smallLabel{
  font-size:10px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:rgba(120,90,30,.55);
  margin-bottom:6px;
}

#selectedCardName{
  font-family:'Bebas Neue',sans-serif;
  font-size:24px;
  color:#7B1020;
  letter-spacing:3px;
}

#cardCollection{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding-bottom:16px;
}

.cardUnit{
  border-radius: 2px;
  overflow:hidden;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(180,130,30,.25);
}

.cardImg{
  width:100%;
  aspect-ratio:1;
  background:#e8e0cc;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.cardImg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cardName{
  padding:6px 4px;
  text-align:center;
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
  color:#7B1020;
  text-transform:uppercase;
}

/* =========================
   SHOP / ZAINO
========================= */

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

#adRewardBtn{
  margin-left:auto;
  min-width:105px;
  height:62px;
  border-radius: 2px;
  background:linear-gradient(135deg,#7B1020,#a81828);
  color:white;
  font-family:'Bebas Neue',sans-serif;
  font-size:13px;
  letter-spacing:2px;
  line-height:1.1;
}

#adRewardBtn span{
  color:#FFE033;
  font-size:11px;
}

#shopSearch{
  width:100%;
  height:46px;
  border:none;
  outline:none;
  border-radius: 2px;
  padding:0 14px;
  margin-bottom:12px;
  background:rgba(255,255,255,.9);
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
}

#shopGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  padding-bottom:18px;
}

.shopItem{
  border-radius: 3px;
  overflow:hidden;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(180,130,30,.2);
}

.shopImg{
  width:100%;
  aspect-ratio:1;
  background:#ece3cf;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:44px;
}

.shopInfo{
  padding:10px;
}

.shopName{
  font-family:'Bebas Neue',sans-serif;
  color:#7B1020;
  font-size:16px;
  letter-spacing:2px;
  margin-bottom:8px;
}

.shopPrices{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.priceEuro,
.priceCoin{
  border-radius:8px;
  padding:5px 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
}

.priceEuro{
  background:rgba(0,0,0,.06);
  color:#444;
}

.priceCoin{
  background:#7B1020;
  color:#FFE033;
}

/* =========================
   CASERMA
========================= */

#mapBox{
  width:100%;
  border-radius:22px;
  overflow:hidden;
  background:black;
}

#casermaMapImg{
  width:100%;
  display:block;
}

/* =========================
   MODALI
========================= */

.modalScreen{
  position:fixed;
  inset:0;
  z-index:5000;
  display:none;
  flex-direction:column;
  background:#111;
}

.modalScreen.show{
  display:flex;
}

.modalHeader{
  height:58px;
  flex-shrink:0;
  background:#7B1020;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
}

.modalHeader span{
  font-family:'Bebas Neue',sans-serif;
  color:#FFE033;
  font-size:22px;
  letter-spacing:4px;
}

.modalHeader button{
  width:40px;
  height:40px;
  border-radius: 2px;
  background:rgba(255,255,255,.12);
  color:white;
  font-size:20px;
}

#modalMapWrap{
  flex:1;
  overflow:auto;
  position:relative;
  background:
    linear-gradient(180deg,#e8a020,#c97a10);
}

#modalMapImg{
  width:100%;
  display:block;
}

#doorLayer{
  position:absolute;
  inset:0;
  pointer-events:none;
}

/* =========================
   GERARCHIA
========================= */

#gerarchiaList{
  flex:1;
  overflow-y:auto;
  padding:12px;
  background:#f4efe2;
}

.rankCard{
  width:100%;
  min-height:78px;
  border-radius: 3px;
  margin-bottom:10px;
  background:white;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
}

.rankIcon{
  width:54px;
  height:54px;
  border-radius: 2px;
  background:#7B1020;
  color:#FFE033;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  flex-shrink:0;
}

.rankName{
  font-family:'Bebas Neue',sans-serif;
  font-size:18px;
  letter-spacing:2px;
  color:#7B1020;
}

.rankRole{
  font-size:10px;
  letter-spacing:2px;
  color:rgba(120,90,30,.5);
  margin-top:2px;
}

/* =========================
   TOAST
========================= */

#toast{
  position:fixed;
  left:50%;
  bottom:86px;
  transform:translateX(-50%);
  z-index:9999;
  max-width:82vw;
  padding:10px 16px;
  border-radius: 2px;
  background:rgba(10,10,10,.92);
  color:#FFE033;
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
}
/* =========================================================
   PARACA.IO — STYLE.CSS — PARTE 3/3
   GAME SCREEN + HUD + JOYSTICK + RESPONSIVE
========================================================= */

/* =========================
   GAME SCREEN
========================= */

#gameScreen{
  z-index:2000;
  display:none;
  background:#000;
  overflow:hidden;
  touch-action:none;
}

#gameScreen.active{
  display:block;
}

#gameCanvas {
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  display:block;
  background:#111;
}

/* =========================
   HUD GAME
========================= */

#hudTopLeft{
  position:fixed;
  top:16px;
  left:16px;
  z-index:40;
  color:white;
  pointer-events:none;
}

#logo{
  font-size:30px;
  font-weight:900;
  letter-spacing:1px;
  margin-bottom:6px;
}

#playerInfo{
  font-size:17px;
  font-weight:900;
  line-height:1.35;
}

/* =========================
   TOP ACTION BAR
========================= */

#topActionBar{
  position:fixed;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  z-index:90;
  display:flex;
  gap:10px;
  padding:6px 10px;
  border-radius:20px;
  background:rgba(0,0,0,.28);
}

.topGameButton{
  width:58px;
  height:58px;
  border-radius: 3px;
  background:rgba(0,0,0,.64);
  color:white;
  font-size:26px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  padding:0;
  border:none;
  cursor:pointer;
}

#evoButton{
  color:#9cff57;
  font-size:30px;
}

/* =========================
   UPGRADE BAR
========================= */

#upgradeBar{
  position:fixed;
  top:86px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  z-index:70;
}

.upgrade{
  width:105px;
  height:68px;
  border-radius: 2px;
  background:rgba(25,30,24,.84);
  border:2px solid rgba(160,255,130,.22);
  color:white;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.upLabel{
  font-size:14px;
  margin-bottom:6px;
}

.upTrack{
  width:78%;
  height:7px;
  border-radius:99px;
  background:rgba(0,0,0,.45);
  overflow:hidden;
}

.upFill{
  height:100%;
  width:0%;
  background:#9cff57;
}

.upCount{
  margin-top:4px;
  font-size:10px;
}

.upgrade.maxed{
  opacity:.45;
}

/* =========================
   XP BAR
========================= */

#xpContainer{
  position:fixed;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  width:420px;
  max-width:55vw;
  z-index:99999;
}

#xpText{
  text-align:center;
  color:white;
  font-weight:900;
  font-size:18px;
  margin-bottom:5px;
}

#xpBar{
  width:100%;
  height:16px;
  border-radius:999px;
  overflow:hidden;
  background:#1f1f1f;
  border:3px solid rgba(0,0,0,.5);
}

#xpFill{
  width:0%;
  height:100%;
  background:#9cff57;
}

/* =========================
   BUILD BAR
========================= */

#buildBar{
  position:fixed;
  top:86px;
  right:18px;
  display:none;
  flex-direction:column;
  gap:10px;
  z-index:85;
}

.buildSlot{
  width:62px;
  height:62px;
  border-radius:17px;
  background:rgba(0,0,0,.62);
  border:2px solid rgba(255,255,255,.14);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}

.buildSlot.selected{
  outline:3px solid #FFE033;
}

/* =========================
   LEADERBOARD
========================= */

#leaderboard{
  position:fixed;
  top:86px;
  right:18px;
  width:220px;
  background:rgba(0,0,0,.45);
  border-radius:20px;
  padding:14px;
  color:white;
  z-index:80;
}

.leaderTitle{
  font-size:22px;
  font-weight:900;
  margin-bottom:10px;
  text-align:center;
}

.leaderItem,
.lb-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px;
  align-items:center;
  background:rgba(255,255,255,.12);
  border-radius: 2px;
  padding:8px;
  margin-bottom:7px;
  font-weight:900;
  font-size:14px;
}

.leaderItem.me,
.lb-row.me,
.lb-row.self{
  outline:2px solid #9cff57;
}

/* =========================
   JOYSTICK
========================= */

#mobileUI{
  position:fixed;
  inset:0;
  z-index:50;
  pointer-events:none;
}

.joystick{
  position:fixed;
  width:155px;
  height:155px;
  bottom:74px;
  border-radius: 50%;
  background:rgba(0,0,0,.13);
  border:4px solid rgba(0,0,0,.13);
  pointer-events:auto;
  z-index:99999;
}

#moveJoystick{
  left:28px;
}

#aimJoystick{
  right:28px;
}

.stick{
  position:absolute;
  width:64px;
  height:64px;
  border-radius: 50%;
  background:rgba(0,0,0,.28);
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

/* =========================
   EVOLUTION MENU
========================= */

#evoMenu{
  position:fixed;
  inset:0;
  display:none;
  z-index:500;
  background:rgba(0,0,0,.55);
}

#evoMenu.active{
  display:block;
}

.evoWheel{
  position:absolute;
  left:50%;
  top:50%;
  width:520px;
  height:520px;
  transform:translate(-50%,-50%);
  border-radius: 50%;
  border:4px solid rgba(255,255,255,.65);
}

.evoCenterNew{
  position:absolute;
  left:50%;
  top:50%;
  width:120px;
  height:120px;
  transform:translate(-50%,-50%);
  border-radius: 50%;
  background:#1f1f1f;
  border:4px solid #d8d8d8;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.evoChoice{
  position:absolute;
  width:98px;
  height:98px;
  border-radius: 50%;
  background:#222;
  border:3px solid rgba(255,255,255,.65);
  color:white;
  font-size:11px;
  font-weight:900;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

.evoChoice.locked{
  opacity:.3;
}

.evoChoice.selected{
  outline:4px solid #FFE033;
}

/* =========================
   HINT / WARNING
========================= */

.buildHint{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:rgba(0,0,0,.72);
  color:white;
  padding:12px 18px;
  border-radius: 2px;
  font-weight:900;
  z-index:900;
  display:none;
  pointer-events:none;
}

#portraitWarning{
  display:none;
}

/* =========================
   MINIMAP
========================= */

#miniMap{
  position:fixed;
  left:18px;
  bottom:190px;
  width:150px;
  height:150px;
  z-index:120;
  background:rgba(0,0,0,.35);
  border:3px solid rgba(255,255,255,.25);
  border-radius: 2px;
  pointer-events:none;
}

/* =========================
   MOBILE LANDSCAPE
========================= */

@media(max-width:900px) and (orientation:landscape){

  #topActionBar{
    top:calc(env(safe-area-inset-top) + 3px);
    gap:6px;
    padding:4px 7px;
    border-radius:15px;
  }

  .topGameButton{
    width:44px;
    height:44px;
    border-radius:13px;
    font-size:20px;
  }

  #evoButton{
    font-size:24px;
  }

  #upgradeBar{
    top:calc(env(safe-area-inset-top) + 56px);
    transform:translateX(-50%) scale(.52);
    transform-origin:top center;
    gap:6px;
  }

  .upgrade{
    width:90px;
    height:58px;
  }

  #hudTopLeft{
    top:calc(env(safe-area-inset-top) + 6px);
    left:7px;
    transform:scale(.68);
    transform-origin:top left;
  }

  #logo{
    font-size:15px;
    margin-bottom:1px;
  }

  #playerInfo{
    font-size:11px;
    line-height:1.18;
  }

  #leaderboard{
    display:none;
    top:calc(env(safe-area-inset-top) + 56px);
    right:7px;
    width:158px;
    padding:9px;
    border-radius:15px;
  }

  #buildBar{
    top:calc(env(safe-area-inset-top) + 3px);
    right:58px;
    gap:5px;
    z-index:120;
  }

  .buildSlot{
    width:44px;
    height:44px;
    border-radius:13px;
    font-size:20px;
  }

  #cardsPanel{
    top:calc(env(safe-area-inset-top) + 56px);
    right:7px;
    width:164px;
    padding:9px;
    border-radius:15px;
  }

  #xpContainer{
    width:45vw;
    bottom:34px;
  }

  #xpText{
    font-size:12px;
    margin-bottom:2px;
  }

  #xpBar{
    height:10px;
    border-width:2px;
  }

  .joystick{
    width:108px;
    height:108px;
    bottom:74px;
    border-width:3px;
  }

  .stick{
    width:45px;
    height:45px;
  }

  #moveJoystick{
    left:32px;
  }

  #aimJoystick{
    right:32px;
  }

  #miniMap{
    width:110px;
    height:110px;
    bottom:190px;
    left:14px;
  }

  .evoWheel{
    width:340px;
    height:340px;
  }

  .evoCenterNew{
    width:78px;
    height:78px;
    font-size:10px;
  }

  .evoChoice{
    width:65px;
    height:65px;
    font-size:7.5px;
  }

  .shopHeader{ margin-bottom:6px; }
  #shopSearch{ height:34px; margin-bottom:6px; font-size:12px; }
  #shopGrid{ gap:6px; padding-bottom:8px; }
  #hubBottomBar{ height:52px; padding:4px 6px; }
  #hubBottomBar button{ font-size:18px; }
  #hubBottomBar button span{ font-size:9px; }

  /* ── Bottoni verticali a sinistra ── */
  #topActionBar{
    left:8px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    flex-direction:column;
    gap:8px;
    padding:8px 6px;
  }
  .topGameButton{
    width:46px;
    height:46px;
    font-size:20px;
    border-radius:10px;
  }
  /* ── Nascondi HUD info ── */
  #hudTopLeft{ display:none !important; }
  /* ── Timer in alto a destra ── */
  #timer{
    top:8px !important;
    left:auto !important;
    right:12px !important;
    transform:none !important;
    font-size:15px !important;
    padding:4px 10px !important;
  }
  /* ── Joystick più centrati ── */
  #moveJoystick{ left:72px !important; }
  #aimJoystick{ right:72px !important; }
}

/* =========================
   SMALL LANDSCAPE
========================= */

@media(max-width:760px) and (orientation:landscape){

  #topActionBar{
    left:55%;
  }

  .topGameButton{
    width:40px;
    height:40px;
    font-size:18px;
  }

  #hudTopLeft{
    transform:scale(.6);
  }

  #upgradeBar{
    transform:translateX(-50%) scale(.47);
  }

  .joystick{
    width:100px;
    height:100px;
    bottom:70px;
  }

  .stick{
    width:42px;
    height:42px;
  }

  #moveJoystick{
    left:28px;
  }

  #aimJoystick{
    right:28px;
  }

  #xpContainer{
    width:42vw;
    bottom:32px;
  }
}

/* =========================
   PORTRAIT BLOCK
========================= */

@media(max-width:900px) and (orientation:portrait){

  #portraitWarning{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:#111;
    color:white;
    text-align:center;
    font-weight:900;
    font-size:28px;
  }

  #portraitWarning small{
    margin-top:10px;
    font-size:15px;
    opacity:.75;
  }

  #gameCanvas,
  #hudTopLeft,
  #upgradeBar,
  #leaderboard,
  #buildBar,
  #cardsPanel,
  #mobileUI,
  #topActionBar,
  #evoMenu{
    display:none !important;
  }

  /* ── Market / Shop portrait mobile ── */
  .hubPanel{ padding:8px; }
  .shopHeader{ margin-bottom:4px; gap:6px; }
  .shopHeader button{ padding:5px 10px; font-size:11px; letter-spacing:1px; }
  #shopSearch{ height:34px; margin-bottom:6px; font-size:13px; padding:0 10px; }
  #shopGrid{ gap:6px; padding-bottom:10px; }
  .shopImg{ aspect-ratio:3/2; }
  .panelTitle{ font-size:18px; margin-bottom:4px; }
}

/* =========================
   DESKTOP
========================= */

@media(hover:hover) and (pointer:fine){
  #mobileUI{
    display:none !important;
  }
}

.fireActive{
  border:3px solid #ff2d2d !important;
  color:#ff4b4b !important;
}


/* =========================================================
   ROOM MODAL — Sistema Multigiocatore
   z-index 9999999 → sopra la schermata selezione carte
========================================================= */

/* Overlay full-screen */
.roomModal{
  position:fixed;
  inset:0;
  z-index:9999999;      /* SOPRA #paCardScreen (z-index 999999) */
  display:none;
  background:rgba(0,0,0,.92);
  overflow-y:auto;
  font-family:'Bebas Neue',Rajdhani,Arial,sans-serif;
}

/* ── View 1: selezione stanza ─────────────────────────── */
.roomViewSelect{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

/* ── View 2: lobby privata ───────────────────────────── */
.roomViewLobby{
  display:none;
  flex-direction:column;
  min-height:100%;
}

/* Header comune */
.roomModalHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  background:#7B1020;
  flex-shrink:0;
}
.roomModalHeader span{
  color:#FFE033;
  font-size:20px;
  letter-spacing:4px;
}
.roomCloseBtn{
  background:rgba(255,255,255,.15);
  border:none;
  border-radius:8px;
  color:#fff;
  font-size:16px;
  padding:6px 14px;
  cursor:pointer;
  font-family:inherit;
  letter-spacing:1px;
}
.roomCloseBtn:hover{ background:rgba(255,255,255,.28); }

/* Body: sidebar + griglia */
.roomModalBody{
  display:flex;
  flex:1;
  gap:0;
  overflow:hidden;
}

/* Sidebar sinistra */
.roomSidebar{
  width:220px;
  flex-shrink:0;
  background:#0e0e0e;
  border-right:1px solid #222;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 14px;
  overflow-y:auto;
}

/* Bottone SOLO */
.roomSoloBtn{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:14px 10px;
  background:#1a2a10;
  border:2px solid #57e83b;
  border-radius: 2px;
  color:#aae880;
  cursor:pointer;
  font-family:'Bebas Neue',sans-serif;
  font-size:20px;
  letter-spacing:3px;
  transition:background .15s;
}
.roomSoloBtn small{ font-size:11px; opacity:.6; letter-spacing:1px; }
.roomSoloBtn:hover{ background:#253518; }

.roomSidebarSep{
  text-align:center;
  font-size:11px;
  color:#444;
  letter-spacing:2px;
  padding:4px 0;
  border-top:1px solid #222;
  border-bottom:1px solid #222;
}

/* Bottone crea stanza privata */
.roomPrivateCreateBtn{
  width:100%;
  padding:12px 10px;
  background:#2a1a40;
  border:1.5px solid #5030a0;
  border-radius: 2px;
  color:#c090ff;
  cursor:pointer;
  font-family:'Bebas Neue',sans-serif;
  font-size:15px;
  letter-spacing:2px;
  transition:background .15s;
}
.roomPrivateCreateBtn:hover{ background:#3a2258; }

/* Cerca per codice */
.roomJoinGroup{
  display:flex;
  gap:6px;
}
.roomJoinInput{
  flex:1;
  min-width:0;
  padding:10px 8px;
  background:#111;
  border:1.5px solid #333;
  border-radius:8px;
  color:#fff;
  font-family:'Bebas Neue',sans-serif;
  font-size:16px;
  letter-spacing:3px;
  text-align:center;
  text-transform:uppercase;
}
.roomJoinInput::placeholder{ color:#444; font-size:11px; letter-spacing:1px; }
.roomJoinInput:focus{ outline:none; border-color:#7B1020; }
.roomJoinBtn{
  padding:10px 12px;
  background:#7B1020;
  border:none;
  border-radius:8px;
  color:#FFE033;
  font-family:'Bebas Neue',sans-serif;
  font-size:14px;
  letter-spacing:2px;
  cursor:pointer;
}
.roomJoinBtn:hover{ background:#9b1828; }

.roomStatusMsg{
  font-size:12px;
  color:#ff9090;
  text-align:center;
  min-height:16px;
  letter-spacing:1px;
}

/* Area stanze pubbliche (destra) */
.roomPublicArea{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:16px 18px;
  overflow-y:auto;
  background:#080808;
}
.roomPublicTitle{
  color:#FFE033;
  font-size:14px;
  letter-spacing:3px;
  margin-bottom:14px;
  flex-shrink:0;
}

/* Griglia 5×2 stanze */
.roomGrid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  flex:1;
}

/* Card singola stanza */
.roomCard{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:12px 8px;
  background:#141414;
  border:1.5px solid #2a2a2a;
  border-radius: 2px;
  cursor:pointer;
  transition:background .15s, border-color .15s, transform .1s;
  text-align:center;
}
.roomCard:hover{
  background:#1e1e1e;
  border-color:#FFE033;
  transform:scale(1.04);
}
.roomCard.roomCardFull{
  opacity:.45;
  cursor:not-allowed;
  border-color:#333;
}
.roomCard.roomCardFull:hover{ transform:none; border-color:#333; background:#141414; }
.roomCardEmoji{
  font-size:28px;
  line-height:1;
}
.roomCardName{
  color:#eee;
  font-size:13px;
  letter-spacing:2px;
  line-height:1.2;
}
.roomCardCount{
  color:#aaa;
  font-size:11px;
  letter-spacing:1px;
  background:#0a0a0a;
  padding:2px 8px;
  border-radius:6px;
}

/* ── Lobby stanza privata (View 2) ──────────────────── */
.roomLobbyInner{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px 20px;
  flex:1;
  overflow-y:auto;
}
.roomCodeRow{
  display:flex;
  align-items:center;
  gap:10px;
  background:#0d0d0d;
  border:1px solid #333;
  border-radius: 2px;
  padding:12px 14px;
  color:#aaa;
  font-size:13px;
  flex-wrap:wrap;
}
.roomCode{
  font-size:28px;
  letter-spacing:8px;
  color:#FFE033;
  flex:1;
}
.roomCopyBtn{
  padding:8px 14px;
  background:#222;
  border:1px solid #444;
  border-radius:8px;
  color:#ccc;
  font-size:12px;
  cursor:pointer;
  letter-spacing:1px;
}
.roomCopyBtn:hover{ background:#333; }
.roomPlayerCount{
  font-size:14px;
  color:#888;
  letter-spacing:1px;
}
.roomPlayerList{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:50px;
}
.roomPlayer{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  background:#141414;
  border:1px solid #252525;
  border-radius:8px;
  font-size:14px;
}
.roomPlayerSelf{ border-color:#57e83b; background:#0e1a0e; }
.roomPlayerName{
  flex:1;
  font-size:16px;
  letter-spacing:1px;
  color:#eee;
}
.roomPlayerCard{
  font-size:11px;
  color:#888;
  background:#222;
  padding:2px 8px;
  border-radius:4px;
  letter-spacing:0;
  font-family:Arial,sans-serif;
}
.roomHostBadge{
  font-size:11px;
  background:#7B1020;
  color:#FFE033;
  padding:2px 8px;
  border-radius:4px;
  letter-spacing:1px;
}
.roomReadyBadge{ font-size:14px; color:#57e83b; font-weight:bold; }
.roomWaitMsg{ text-align:center; font-size:12px; color:#555; letter-spacing:1px; }

/* Bottone WAR nella lobby */
.roomWarBtn{
  width:100%;
  padding:20px;
  background:#7B1020;
  border:2px solid #a02030;
  border-radius: 2px;
  color:#FFE033;
  font-family:'Bebas Neue',sans-serif;
  font-size:26px;
  letter-spacing:6px;
  cursor:pointer;
  transition:background .15s;
  text-align:center;
}
.roomWarBtn:hover{ background:#9b1828; }

/* Pannello impostazioni host */
.roomSettingsPanel{
  background:#0d0d0d;
  border:1px solid #2a2a2a;
  border-radius: 2px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.roomSettingsTitle{
  color:#FFE033;
  font-size:14px;
  letter-spacing:2px;
}
.roomSettingRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  color:#aaa;
  font-family:Arial,sans-serif;
}
.roomSelect{
  background:#1a1a2a;
  border:1px solid #333;
  border-radius:6px;
  color:#eee;
  padding:6px 10px;
  font-size:12px;
  flex:1;
  max-width:200px;
}

/* Responsive: mobile verticale (non dovrebbe capitare, il gioco gira landscape) */
@media(max-width:700px){
  .roomModalBody{ flex-direction:column; }
  .roomSidebar{ width:100%; border-right:none; border-bottom:1px solid #222; }
  .roomGrid{ grid-template-columns:repeat(3,1fr); }
}
