html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(28,82,96,.22), transparent 38%),
    #02070c;
}
body {
  position: relative;
  touch-action: manipulation;
}
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform: translate(-50%, -50%) scale(.36);
  transform-origin: center center;
}

.camera-zone,
.connection,
#connection,
.charge-feed {
  display: none !important;
}
.collective-panel {
  left: 36px;
  width: 1008px;
  height: 286px;
}
.collective-summary {
  grid-template-columns: 1fr 170px;
  min-height: 96px;
}
.topbar {
  top: 320px;
}
.boss-card {
  top: 465px;
}

.web-welcome {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 54px 56px 46px;
  background:
    radial-gradient(circle at 50% 6%, rgba(226,186,98,.18), transparent 27%),
    radial-gradient(circle at 50% 75%, rgba(36,124,136,.22), transparent 38%),
    linear-gradient(180deg, rgba(2,9,15,.995), rgba(4,19,29,.995));
  transition: opacity .52s ease, transform .52s ease;
}
.web-welcome::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(226,186,98,.26);
  border-radius: 42px;
  pointer-events: none;
}
.web-welcome.leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.web-welcome.hidden { display: none; }
.web-welcome-header {
  position: relative;
  z-index: 1;
  text-align: center;
}
.web-welcome-logo {
  width: 168px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(226,186,98,.28));
}
.web-welcome-kicker {
  margin: 8px 0 0;
  color: #f8dda0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .18em;
}
.web-welcome h1 {
  margin: 16px 0 0;
  font-size: 64px;
  line-height: .98;
  letter-spacing: -.035em;
}
.web-welcome-subtitle {
  margin: 18px auto 0;
  max-width: 790px;
  color: rgba(248,251,255,.72);
  font-size: 25px;
  line-height: 1.38;
}
.web-character-title {
  margin: 35px 0 18px;
  text-align: center;
  color: #6ee2d3;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .12em;
}
.web-character-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  height: 680px;
}
.web-character-card {
  position: relative;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20,49,65,.7), rgba(3,13,21,.95));
  cursor: pointer;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.web-character-card img {
  position: absolute;
  left: 50%;
  bottom: -6px;
  height: 615px;
  width: 100%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 28px 36px rgba(0,0,0,.55));
}
.web-character-card span {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  padding: 15px;
  border-radius: 18px;
  text-align: center;
  color: #f8dda0;
  background: rgba(3,13,21,.88);
  border: 1px solid rgba(226,186,98,.3);
  font-size: 22px;
  font-weight: 900;
}
.web-character-card.selected {
  transform: translateY(-8px) scale(1.018);
  border-color: #f8dda0;
  box-shadow: 0 0 0 6px rgba(226,186,98,.09), 0 25px 65px rgba(0,0,0,.55), 0 0 55px rgba(110,226,211,.15);
  filter: brightness(1.08);
}
.web-character-card.dimmed {
  opacity: .28;
  filter: grayscale(.45) brightness(.65) blur(.35px);
  transform: scale(.97);
}
.web-profile-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 26px;
  margin-top: 26px;
}
.web-avatar-preview {
  position: relative;
  width: 178px;
  height: 178px;
  margin: 0 auto;
}
.web-avatar-preview::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #5c6c73, #f8dda0, #87999e, #6ee2d3, #5c6c73);
  clip-path: polygon(50% 0,58% 12%,69% 4%,73% 19%,87% 15%,84% 30%,100% 34%,88% 45%,98% 56%,82% 61%,85% 77%,69% 75%,62% 92%,50% 81%,38% 92%,31% 75%,15% 77%,18% 61%,2% 56%,12% 45%,0 34%,16% 30%,13% 15%,27% 19%,31% 4%,42% 12%);
  animation: webPreviewSpin 5s linear infinite;
}
.web-avatar-preview img {
  position: absolute;
  inset: 12px;
  width: 154px;
  height: 154px;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #071722;
  background: #071722;
}
@keyframes webPreviewSpin { to { transform: rotate(360deg); } }
.web-name-panel label {
  display: block;
  color: #f8dda0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
}
.web-name-panel input {
  width: 100%;
  margin-top: 11px;
  padding: 20px 22px;
  border-radius: 19px;
  border: 2px solid rgba(110,226,211,.36);
  outline: none;
  background: rgba(0,7,12,.7);
  color: #fff;
  font: 800 29px/1 'Segoe UI', sans-serif;
}
.web-name-panel input:focus {
  border-color: #6ee2d3;
  box-shadow: 0 0 0 5px rgba(110,226,211,.08);
}
.web-avatar-preview-name {
  margin-top: 13px;
  color: #6ee2d3;
  font-size: 19px;
  font-weight: 900;
}
.web-form-error {
  min-height: 28px;
  margin: 8px 0 0;
  color: #ff8f9b;
  font-size: 17px;
  font-weight: 750;
}
.web-start-button {
  width: 100%;
  margin-top: 14px;
  padding: 24px 28px;
  border: 0;
  border-radius: 22px;
  color: #07131c;
  background: linear-gradient(135deg, #f8dda0, #e2ba62 58%, #6ee2d3);
  box-shadow: 0 20px 55px rgba(0,0,0,.45), 0 0 30px rgba(226,186,98,.15);
  font-size: 26px;
  font-weight: 1000;
  letter-spacing: .07em;
  cursor: pointer;
}
.web-privacy-note {
  margin: 19px 0 0;
  text-align: center;
  color: rgba(248,251,255,.55);
  font-size: 17px;
}

.web-game-hud {
  position: absolute;
  z-index: 30;
  left: 30px;
  right: 30px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  gap: 16px;
  align-items: end;
  pointer-events: none;
}
.web-player-card,
.web-charge-panel,
.web-power-panel {
  pointer-events: auto;
  border: 1px solid rgba(226,186,98,.35);
  background: linear-gradient(180deg, rgba(4,18,28,.96), rgba(2,8,14,.98));
  box-shadow: 0 22px 55px rgba(0,0,0,.52);
}
.web-player-card {
  min-height: 205px;
  padding: 18px;
  border-radius: 28px;
  text-align: center;
}
.web-player-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f8dda0;
}
.web-player-card b,
.web-player-card small {
  display: block;
}
.web-player-card b {
  margin-top: 7px;
  color: #fff;
  font-size: 21px;
}
.web-player-card small {
  color: #6ee2d3;
  font-weight: 900;
}
.web-energy-label {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(248,251,255,.7);
  font-size: 14px;
  font-weight: 800;
}
.web-meter {
  height: 13px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.09);
}
.web-meter > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #43c98b, #aef1b7);
  transition: width .2s ease;
}
.web-charge-panel {
  padding: 17px 18px 18px;
  border-radius: 30px;
}
.web-charge-header {
  display: flex;
  justify-content: space-between;
  color: #f8dda0;
  font-size: 18px;
  font-weight: 950;
}
.web-charge-meter {
  height: 22px;
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(110,226,211,.18);
}
.web-charge-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2aa8bb, #6ee2d3 52%, #f8dda0);
  box-shadow: 0 0 25px rgba(110,226,211,.42);
  transition: width .08s linear;
}
.web-tap-button {
  position: relative;
  width: 100%;
  min-height: 126px;
  border: 0;
  border-radius: 27px;
  overflow: hidden;
  color: #05131a;
  background: radial-gradient(circle at 50% 15%, #fff5c9, #f0c96d 46%, #4fc4c4 100%);
  box-shadow: inset 0 -12px 22px rgba(0,0,0,.16), 0 0 40px rgba(226,186,98,.18);
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: .045em;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}
.web-tap-button small {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  letter-spacing: .02em;
}
.web-tap-button.pressed { transform: scale(.985); filter: brightness(1.08); }
.web-power-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 28px;
}
.web-power-button {
  min-height: 91px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.46);
  background: rgba(255,255,255,.055);
  font-size: 15px;
  font-weight: 900;
  cursor: not-allowed;
}
.web-power-button b { display: block; color: inherit; font-size: 18px; }
.web-power-button.ready {
  color: #07131c;
  cursor: pointer;
  animation: webPowerPulse 1.1s ease-in-out infinite;
}
#webIntermediatePower.ready { background: linear-gradient(135deg, #9de5ff, #6ee2d3); }
#webSupportPower.ready { background: linear-gradient(135deg, #fff1a8, #e2ba62); }
@keyframes webPowerPulse { 50% { transform: scale(1.035); box-shadow: 0 0 30px rgba(248,221,160,.42); } }

.web-tutorial {
  position: absolute;
  z-index: 190;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 60px;
  background: rgba(0,7,12,.76);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: .32s ease;
}
.web-tutorial.show { opacity: 1; visibility: visible; }
.web-tutorial-card {
  width: 880px;
  padding: 45px;
  border-radius: 38px;
  border: 2px solid rgba(226,186,98,.5);
  background: linear-gradient(180deg, rgba(5,24,36,.98), rgba(2,10,17,.99));
  box-shadow: 0 35px 110px rgba(0,0,0,.72);
  text-align: center;
}
.web-tutorial-card h2 { margin: 0; color: #f8dda0; font-size: 42px; }
.web-tutorial-steps {
  display: grid;
  gap: 18px;
  margin: 32px 0;
  text-align: left;
}
.web-tutorial-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 19px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.web-tutorial-step span { font-size: 39px; text-align: center; }
.web-tutorial-step b { color: #6ee2d3; font-size: 22px; }
.web-tutorial-step p { margin: 4px 0 0; color: rgba(255,255,255,.67); font-size: 18px; }
.web-tutorial-card button {
  padding: 21px 55px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8dda0, #6ee2d3);
  color: #07131c;
  font-size: 23px;
  font-weight: 1000;
  cursor: pointer;
}

/* ================================================================
   ETAPA 03 — PAINEL SUPERIOR DE COMBATE PARA A EXPERIÊNCIA WEB
   Substitui câmera e TOP 3 da versão das lives.
   ================================================================ */
.web-combat-hud {
  position: absolute;
  z-index: 31;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 350px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  pointer-events: none;
}
.combat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,.12);
  padding: 18px 20px 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(110,226,211,.14), transparent 42%),
    linear-gradient(180deg, rgba(5,22,33,.97), rgba(2,9,15,.98));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.025), 0 22px 62px rgba(0,0,0,.45);
}
.combat-player-card { border-color: rgba(110,226,211,.35); }
.combat-boss-card {
  border-color: rgba(226,186,98,.38);
  background:
    radial-gradient(circle at 92% 0%, rgba(226,186,98,.16), transparent 42%),
    linear-gradient(180deg, rgba(22,15,13,.97), rgba(5,9,13,.98));
}
.combat-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.055);
  pointer-events: none;
}
.combat-card-header {
  position: relative;
  z-index: 1;
  height: 82px;
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.combat-card-header > img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8dda0;
  background: #0b2430;
  box-shadow: 0 0 23px rgba(110,226,211,.2);
}
.combat-title-block { min-width: 0; }
.combat-title-block small,
.combat-score-box small,
.combat-last-action small {
  display: block;
  color: rgba(248,251,255,.6);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
}
.combat-title-block strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #fff;
  font-size: 28px;
  line-height: 1.04;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.combat-title-block span {
  display: block;
  margin-top: 5px;
  color: #6ee2d3;
  font-size: 18px;
  font-weight: 900;
}
.combat-score-box {
  min-width: 112px;
  padding: 9px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(110,226,211,.08);
  border: 1px solid rgba(110,226,211,.2);
}
.combat-score-box b {
  display: block;
  margin-top: 4px;
  color: #f8dda0;
  font-size: 30px;
  line-height: 1;
}
.combat-boss-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #f8dda0;
  font-size: 38px;
  background: rgba(226,186,98,.09);
  border: 1px solid rgba(226,186,98,.25);
  text-shadow: 0 0 20px rgba(226,186,98,.55);
}
.boss-header .combat-title-block span { color: #f8dda0; }
.boss-score-box {
  min-width: 105px;
  background: rgba(226,186,98,.09);
  border-color: rgba(226,186,98,.24);
}
.boss-score-box b { color: #6ee2d3; }
.combat-meter-row {
  position: relative;
  z-index: 1;
  margin-top: 11px;
}
.combat-meter-row.compact { margin-top: 9px; }
.combat-meter-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(248,251,255,.72);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.combat-meter-label strong { color: #fff; font-size: 20px; }
.combat-meter {
  height: 17px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.09);
}
.combat-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width .12s linear;
}
.combat-meter.life i {
  width: 100%;
  background: linear-gradient(90deg,#2baa72,#57d895 55%,#c9f6b6);
  box-shadow: 0 0 18px rgba(75,215,143,.32);
}
.combat-meter.charge i {
  background: linear-gradient(90deg,#278fa7,#6ee2d3 58%,#f8dda0);
  box-shadow: 0 0 18px rgba(110,226,211,.34);
}
.combat-meter.speed { height: 12px; }
.combat-meter.speed i {
  background: linear-gradient(90deg,#55727e,#6ee2d3 62%,#fff0a9);
  box-shadow: 0 0 16px rgba(110,226,211,.3);
}
.combat-last-action {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 16px;
  min-height: 45px;
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
}
.combat-last-action strong {
  min-width: 0;
  overflow: hidden;
  color: #f8dda0;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.boss-blade-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.boss-blade-row {
  display: grid;
  grid-template-columns: 128px 1fr 78px;
  gap: 9px;
  align-items: center;
  min-height: 31px;
  opacity: .58;
  transition: opacity .2s ease, transform .2s ease;
}
.boss-blade-row.active { opacity: 1; transform: translateX(-2px); }
.boss-blade-row.destroyed { opacity: .3; }
.boss-blade-label {
  overflow: hidden;
  color: rgba(248,251,255,.78);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.boss-blade-row.active .boss-blade-label { color: #f8dda0; }
.boss-blade-meter {
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}
.boss-blade-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#9b2828,#ef5c49 52%,#f8c16f);
  box-shadow: 0 0 16px rgba(239,92,73,.28);
  transition: width .18s ease;
}
.boss-blade-value {
  text-align: right;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}
.boss-blade-row.destroyed .boss-blade-value { color: rgba(248,251,255,.42); }
.combat-last-action.boss-action {
  grid-template-columns: 106px minmax(0,1fr) auto;
}
.combat-last-action.boss-action strong { color: #ffb099; }
.combat-last-action.boss-action span {
  max-width: 126px;
  overflow: hidden;
  color: rgba(248,251,255,.68);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.web-phase-strip {
  position: absolute;
  z-index: 30;
  top: 392px;
  left: 30px;
  right: 30px;
  height: 126px;
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) 270px;
  align-items: center;
  gap: 17px;
  padding: 13px 20px;
  border-radius: 26px;
  border: 1px solid rgba(226,186,98,.3);
  background: linear-gradient(90deg,rgba(8,27,38,.95),rgba(3,12,20,.96),rgba(35,23,12,.94));
  box-shadow: 0 20px 54px rgba(0,0,0,.4);
  pointer-events: none;
}
.web-phase-strip > img {
  width: 88px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(226,186,98,.25));
}
.phase-main { min-width: 0; }
.phase-main small {
  display: block;
  overflow: hidden;
  color: #f8dda0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.phase-main strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.phase-main > span {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(248,251,255,.68);
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.phase-team-summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}
.phase-team-summary > div {
  min-width: 0;
  padding: 10px;
  border-radius: 17px;
  text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.phase-team-summary b {
  display: block;
  overflow: hidden;
  color: #6ee2d3;
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.phase-team-summary small {
  display: block;
  margin-top: 5px;
  color: rgba(248,251,255,.6);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}
.web-hidden-ranking { display: none !important; }

/* O rodapé passa a ser apenas o console de ação; a ficha do jogador foi para o topo. */
.web-game-hud {
  grid-template-columns: minmax(0,1fr) 250px;
  left: 30px;
  right: 30px;
  bottom: 22px;
  gap: 15px;
}
.web-player-card { display: none !important; }
.web-charge-panel { padding: 15px 17px 16px; }
.web-charge-header { font-size: 17px; }
.web-charge-meter { height: 17px; margin: 7px 0 9px; }
.web-tap-button { min-height: 110px; font-size: 25px; }
.web-power-panel { grid-template-columns: 1fr; }
.web-power-button { min-height: 80px; }

.stage.ending-mode .web-combat-hud,
.stage.ending-mode .web-phase-strip,
.stage.ending-mode .web-game-hud { display: none !important; }

/* Ajuste de legibilidade para telas de celular (escala 1080 → largura do aparelho). */
.web-combat-hud { height: 380px; }
.web-phase-strip { top: 422px; }
.combat-title-block small,
.combat-score-box small,
.combat-last-action small { font-size: 21px; }
.combat-title-block strong { font-size: 31px; }
.combat-title-block span { font-size: 21px; }
.combat-score-box b { font-size: 33px; }
.combat-meter-label { font-size: 21px; }
.combat-meter-label strong { font-size: 23px; }
.combat-last-action { min-height: 54px; }
.combat-last-action strong { font-size: 21px; }
.boss-blade-row { grid-template-columns: 148px 1fr 78px; min-height: 34px; }
.boss-blade-label,
.boss-blade-value { font-size: 20px; }
.combat-last-action.boss-action {
  min-height: 62px;
  grid-template-columns: 112px minmax(0,1fr);
  grid-template-rows: auto auto;
  row-gap: 3px;
}
.combat-last-action.boss-action > small { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.combat-last-action.boss-action > strong { grid-column: 2; grid-row: 1; }
.combat-last-action.boss-action > span {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  font-size: 19px;
}
.phase-main small { font-size: 20px; }
.phase-main > span { font-size: 20px; }
.phase-team-summary small { font-size: 16px; }

/* Refinamento final de espaçamento do cabeçalho dos cartões. */
.web-combat-hud { height: 400px; }
.web-phase-strip { top: 442px; }
.combat-card-header {
  height: 100px;
  grid-template-columns: 70px minmax(0,1fr) 96px;
  gap: 11px;
  padding-bottom: 14px;
}
.combat-card-header > img { width: 66px; height: 66px; }
.combat-boss-icon { width: 64px; height: 64px; }
.combat-score-box { min-width: 92px; padding-left: 7px; padding-right: 7px; }
.combat-title-block small,
.combat-score-box small { white-space: nowrap; }
.combat-last-action.player-action { min-height: 62px; }
.combat-last-action.player-action strong {
  white-space: normal;
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.boss-blade-row { grid-template-columns: 102px 1fr 78px; }


/* ================================================================
   ETAPA 04 — ÁUDIO SEPARADO, PAUSA SEGURA E RETORNO AO JOGO
   ================================================================ */
.web-control-bar {
  position: absolute;
  z-index: 34;
  top: 578px;
  left: 30px;
  right: 30px;
  height: 86px;
  display: grid;
  grid-template-columns: 135px minmax(0,1fr) minmax(0,1fr) 135px 185px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(110,226,211,.26);
  background: linear-gradient(90deg,rgba(5,21,31,.96),rgba(3,12,19,.97),rgba(31,22,12,.94));
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
  pointer-events: auto;
}
.web-control-button {
  height: 62px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  place-items: center;
  padding: 7px 9px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  color: #f8fbff;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  touch-action: manipulation;
}
.web-control-button span { font-size: 25px; }
.web-control-button b { font-size: 15px; line-height: 1.05; }
.web-control-button.pause { border-color: rgba(248,221,160,.3); }
.web-control-button.mute { border-color: rgba(110,226,211,.28); }
.web-control-button.active { color: #07131c; background: linear-gradient(135deg,#f8dda0,#6ee2d3); }
.web-volume-control {
  min-width: 0;
  height: 62px;
  display: grid;
  grid-template-columns: 100px minmax(0,1fr) 48px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
}
.web-volume-control > span { color: rgba(248,251,255,.78); font-size: 15px; font-weight: 900; white-space: nowrap; }
.web-volume-control > b { color: #f8dda0; font-size: 15px; text-align: right; }
.web-volume-control input { width: 100%; accent-color: #6ee2d3; cursor: pointer; }
.web-track-status {
  min-width: 0;
  height: 62px;
  display: grid;
  align-content: center;
  padding: 7px 11px;
  border-radius: 16px;
  border: 1px solid rgba(226,186,98,.17);
  background: rgba(226,186,98,.05);
}
.web-track-status small { color: rgba(248,251,255,.52); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.web-track-status strong { overflow: hidden; margin-top: 4px; color: #f8dda0; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.web-track-status.available strong { color: #6ee2d3; }
.web-track-status.missing strong { color: #ffbc8f; }

.web-pause-overlay {
  position: absolute;
  z-index: 260;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px;
  background: rgba(0,7,12,.78);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.web-pause-overlay.show { opacity: 1; visibility: visible; }
.web-pause-card {
  width: 820px;
  padding: 50px;
  border-radius: 38px;
  border: 2px solid rgba(226,186,98,.48);
  text-align: center;
  background: radial-gradient(circle at 50% 0%,rgba(110,226,211,.12),transparent 48%),linear-gradient(180deg,rgba(5,25,37,.99),rgba(2,9,15,.99));
  box-shadow: 0 38px 120px rgba(0,0,0,.72);
}
.web-pause-card > span { color: #f8dda0; font-size: 20px; font-weight: 950; letter-spacing: .12em; }
.web-pause-card h2 { margin: 18px 0 12px; color: #fff; font-size: 43px; }
.web-pause-card p { max-width: 690px; margin: 0 auto 28px; color: rgba(248,251,255,.72); font-size: 22px; line-height: 1.45; }
.web-pause-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.web-pause-card button {
  min-width: 330px;
  padding: 21px 28px;
  border-radius: 19px;
  font-size: 21px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.web-pause-card button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.web-pause-resume {
  border: 0;
  color: #07131c;
  background: linear-gradient(135deg,#f8dda0,#6ee2d3);
}
.web-pause-new {
  border: 1px solid rgba(255,255,255,.24);
  color: #f8fbff;
  background: rgba(255,255,255,.075);
}
@media (max-width: 800px) {
  .web-pause-actions { flex-direction: column; align-items: stretch; }
  .web-pause-card button { width: 100%; min-width: 0; }
}
.stage.ending-mode .web-control-bar { display: none !important; }


/* ETAPA 07 — SOMBRAS EMOCIONAIS EM TODAS AS FASES */
.shadow-summary-row {
  display: grid;
  grid-template-columns: 128px 1fr 78px;
  gap: 9px;
  align-items: center;
  min-height: 31px;
  color: rgba(248,251,255,.78);
  font-size: 17px;
  font-weight: 900;
}
.shadow-summary-row > span { color: #f8dda0; }
.shadow-summary-row > strong { text-align: right; color: #fff1a8; }
.shadow-pips { display: flex; align-items: center; gap: 8px; }
.shadow-pips i {
  width: 22px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
}
.shadow-pips i.alive {
  background: linear-gradient(90deg,#9b2828,#f4b323);
  box-shadow: 0 0 11px rgba(244,179,35,.35);
}
.shadow-pips i.down { opacity: .28; }
@media (max-width: 800px) {
  .shadow-summary-row { grid-template-columns: 102px 1fr 78px; }
  .shadow-pips { gap: 5px; }
  .shadow-pips i { width: 17px; }
}
