/* Shared PvE zone window v470 - layout follows the supplied Cave reference. */

:root{
  --pve-gold:#c89a54;
  --pve-gold-bright:#efca82;
  --pve-ink:#050706;
  --pve-panel:rgba(7,10,9,.90);
  --pve-line:rgba(185,137,68,.42);
  --pve-stage-left:calc(50% - (var(--stageW, 100vw) / 2) + var(--menuStageW, 340px));
}

body .cavePanel.pveZonePanel,
body .templePanel.pveZonePanel,
body #worldBossInfoPanel.pveZonePanel{
  position:fixed !important;
  inset:auto !important;
  left:var(--pve-stage-left) !important;
  top:var(--stagePad, 4px) !important;
  width:var(--cityStageW, calc(100vw - 340px)) !important;
  max-width:none !important;
  height:var(--cityStageH, calc(100vh - 8px)) !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
  border:1px solid rgba(194,145,69,.64) !important;
  border-radius:10px !important;
  background:#030504 !important;
  background-image:
    radial-gradient(circle at 50% -15%, rgba(175,123,49,.09), transparent 38%),
    linear-gradient(180deg, #050807, #020403) !important;
  box-shadow:0 22px 70px rgba(0,0,0,.78), inset 0 0 0 1px rgba(58,35,14,.86), inset 0 0 38px rgba(0,0,0,.55) !important;
  overflow:hidden !important;
  z-index:250000 !important;
}

body .cavePanel.pveZonePanel,
body .templePanel.pveZonePanel,
body #worldBossInfoPanel.pveZonePanel{
  display:none !important;
}

body .cavePanel.pveZonePanel.show,
body .templePanel.pveZonePanel.show,
body #worldBossInfoPanel.pveZonePanel.show{
  display:block !important;
}

body .cavePanel.pveZonePanel::before,
body .templePanel.pveZonePanel::before,
body #worldBossInfoPanel.pveZonePanel::before{
  content:"";
  position:absolute;
  inset:6px;
  z-index:4;
  border:1px solid rgba(194,145,69,.18);
  border-radius:5px;
  box-shadow:inset 0 0 24px rgba(211,151,63,.025);
  pointer-events:none;
}

body .pveZonePanel[data-pve-location] .pveZoneMount,
body .pveZonePanel .pveZoneMount,
body #worldBossInfoPanel.pveZonePanel[data-pve-location] .pveZoneMount{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

#dungeonScreen.pveZoneScreen .bgWrap{
  background:#030504 !important;
}

#dungeonScreen.pveZoneScreen .bg{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  border-radius:10px !important;
  background:#030504 !important;
}

#dungeonScreen.pveZoneScreen .bg > img{
  display:none !important;
}

#dungeonScreen.pveZoneScreen .dunWrap{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  background:#030504 !important;
  overflow:hidden !important;
}

.pveZoneView,
.pveZoneView *{
  box-sizing:border-box;
}

.pveZoneView{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr) clamp(142px, 18vh, 190px);
  gap:11px;
  padding:13px 15px 14px;
  overflow:hidden;
  color:#dcc292;
  font-family:Georgia, "Times New Roman", serif;
  background:
    linear-gradient(90deg, rgba(186,130,54,.035), transparent 12%, transparent 88%, rgba(186,130,54,.035)),
    radial-gradient(ellipse at 50% 0%, rgba(211,159,76,.045), transparent 35%);
}

.pveZoneHeader{
  position:relative;
  min-height:104px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:8px 72px 4px;
  text-align:center;
}

.pveZoneHeading{
  width:min(860px, 88%);
}

.pveZoneTitle,
.cavePanel .pveZoneTitle,
.templePanel .pveZoneTitle,
#worldBossInfoPanel .pveZoneTitle{
  position:relative;
  margin:0 0 12px !important;
  padding:0 0 9px;
  color:#d8bd88 !important;
  font-family:"Cinzel", "Trajan Pro", Georgia, serif !important;
  font-size:clamp(30px, 3.1vw, 48px) !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:.035em;
  text-transform:uppercase;
  text-shadow:0 2px 0 #160d05, 0 0 18px rgba(222,173,91,.15) !important;
}

.pveZoneTitle::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:min(520px, 82%);
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg, transparent, rgba(189,139,67,.55) 24%, rgba(229,187,111,.78) 50%, rgba(189,139,67,.55) 76%, transparent);
  box-shadow:0 0 7px rgba(207,157,79,.12);
}

.pveZoneDescription,
.cavePanel .pveZoneDescription,
.templePanel .pveZoneDescription,
#worldBossInfoPanel .pveZoneDescription{
  min-height:0 !important;
  margin:0 !important;
  color:#d3b57e !important;
  font-size:clamp(12px, 1.08vw, 16px) !important;
  font-weight:400 !important;
  line-height:1.45 !important;
  text-shadow:0 2px 5px rgba(0,0,0,.85);
}

.pveZoneClose,
.cavePanel .pveZoneClose,
.templePanel .pveZoneClose,
#worldBossInfoPanel .pveZoneClose{
  position:absolute !important;
  z-index:8;
  top:4px !important;
  right:2px !important;
  width:50px !important;
  height:50px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  border:1px solid rgba(196,137,54,.76) !important;
  border-radius:6px !important;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,193,96,.15), transparent 40%),
    linear-gradient(180deg, #5b170d, #240906) !important;
  color:#e9c17c !important;
  box-shadow:inset 0 0 0 2px rgba(34,12,5,.88), inset 0 1px 0 rgba(255,216,147,.17), 0 4px 12px rgba(0,0,0,.56) !important;
  font:400 42px/1 Georgia, serif !important;
  cursor:pointer;
}

.pveZoneClose:hover{
  filter:brightness(1.18);
  color:#ffe1a3 !important;
}

.pveZoneMain{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(310px, .94fr) minmax(490px, 1.08fr);
  gap:12px;
}

.pveZoneHero{
  position:relative;
  min-width:0;
  min-height:0;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(180,130,63,.63);
  background:#020403;
  box-shadow:inset 0 0 0 3px rgba(3,5,4,.86), inset 0 0 0 4px rgba(178,128,61,.18), 0 8px 22px rgba(0,0,0,.45);
}

.pveZoneHero::before,
.pveZoneHero::after{
  content:"◆";
  position:absolute;
  z-index:3;
  top:3px;
  color:rgba(214,160,78,.55);
  font-size:10px;
  text-shadow:0 0 5px #000;
}

.pveZoneHero::before{ left:5px; }
.pveZoneHero::after{ right:5px; }

.pveZoneHero img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(.92) contrast(1.04) brightness(.88);
}

.pveZoneHeroShade{
  position:absolute;
  inset:0;
  box-shadow:inset 0 0 28px rgba(0,0,0,.78), inset 0 -28px 50px rgba(0,0,0,.34);
  pointer-events:none;
}

.pveZoneRight{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0, 1fr) auto;
  gap:11px;
}

.pveZoneTopGrid{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(210px, .82fr) minmax(280px, 1.38fr);
  gap:11px;
}

.pveZoneSection{
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border:1px solid rgba(161,116,56,.47);
  background:
    linear-gradient(90deg, rgba(213,164,87,.025), transparent 16%, transparent 84%, rgba(213,164,87,.025)),
    linear-gradient(180deg, rgba(10,14,12,.92), rgba(4,7,6,.92));
  box-shadow:inset 0 0 0 1px rgba(10,7,3,.72), inset 0 0 22px rgba(0,0,0,.44);
}

.pveZoneSectionTitle{
  position:relative;
  height:50px;
  margin:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  color:#d7b678;
  font-family:"Cinzel", "Trajan Pro", Georgia, serif;
  font-size:clamp(13px, 1.3vw, 18px);
  font-weight:700;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  text-shadow:0 2px 5px #000;
  border-bottom:1px solid rgba(143,99,46,.24);
}

.pveZoneSectionTitle::before,
.pveZoneSectionTitle::after{
  content:"";
  flex:1;
  height:1px;
  margin:0 9px;
  background:linear-gradient(90deg, transparent, rgba(182,130,61,.55));
}

.pveZoneSectionTitle::after{
  background:linear-gradient(90deg, rgba(182,130,61,.55), transparent);
}

.pveZoneInfoList{
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:5px 11px 9px;
}

.pveZoneInfoRow{
  min-height:30px;
  display:grid;
  grid-template-columns:24px minmax(86px, 1fr) auto;
  align-items:center;
  gap:5px;
  padding:4px 0;
  color:#d9c49b;
  border-bottom:1px solid rgba(169,122,58,.11);
  font-size:clamp(11px, .94vw, 14px);
}

.pveZoneInfoRow:last-child{ border-bottom:0; }

.pveZoneInfoIcon{
  color:#b99459;
  font-family:Georgia, serif;
  font-size:16px;
  text-align:center;
  filter:sepia(.6) saturate(.75);
}

.pveZoneInfoLabel{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pveZoneInfoValue{
  color:#e9cc94;
  font-weight:400;
  text-align:right;
  white-space:nowrap;
}

.pveZoneInfoValue [data-pve-field="recommended"]{
  color:#55d98d;
}

.pveZoneEnemies{
  display:flex;
  flex-direction:column;
}

.pveZoneEnemyList{
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(58px, 1fr));
  align-items:center;
  gap:8px;
  padding:12px 11px 8px;
}

.pveZoneEnemyCard{
  position:relative;
  min-width:0;
  aspect-ratio:.75;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(187,137,66,.55);
  background:radial-gradient(circle at 50% 30%, rgba(168,111,38,.16), transparent 64%), #070a08;
  box-shadow:inset 0 0 0 2px rgba(3,5,4,.86), 0 5px 12px rgba(0,0,0,.45);
}

.pveZoneEnemyCard img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 16%;
  filter:saturate(.9) contrast(1.06) brightness(.84);
  transition:filter .16s ease, transform .16s ease;
}

.pveZoneEnemyCard:hover img{
  transform:scale(1.025);
  filter:saturate(1) contrast(1.06) brightness(.98);
}

.pveZoneEnemyCard figcaption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:13px 3px 4px;
  overflow:hidden;
  color:#ead4a9;
  background:linear-gradient(transparent, rgba(0,0,0,.92));
  font-size:9px;
  line-height:1.05;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pveZoneEnemyNote{
  flex:0 0 auto;
  margin:0;
  padding:6px 9px 11px;
  color:#c5a56b;
  font-size:clamp(10px, .88vw, 13px);
  line-height:1.2;
  text-align:center;
}

.pveZoneRewards{
  min-height:150px;
}

.pveZoneRewardColumns{
  display:grid;
  grid-template-columns:minmax(290px, 1.25fr) minmax(230px, 1fr);
  gap:18px;
  padding:5px 12px 9px;
}

.pveZoneRewardGroup{
  min-width:0;
}

.pveZoneRewardGroup h3{
  margin:0 0 6px;
  color:#d7bd88;
  font:400 clamp(11px, .98vw, 14px)/1.2 Georgia, serif;
}

.pveZoneRewardList{
  display:grid;
  grid-template-columns:repeat(5, minmax(43px, 1fr));
  gap:7px;
}

.pveZoneMaterialGroup .pveZoneRewardList{
  grid-template-columns:repeat(4, minmax(43px, 1fr));
}

.pveZoneRewardSlot{
  position:relative;
  min-width:0;
  height:64px;
  display:grid;
  place-items:center;
  padding:5px;
  overflow:hidden;
  border:1px solid rgba(149,110,58,.55);
  background:radial-gradient(circle at 50% 40%, rgba(126,86,34,.18), transparent 66%), #070907;
  box-shadow:inset 0 0 0 2px rgba(2,4,3,.84), inset 0 0 16px rgba(0,0,0,.45);
}

.pveZoneRewardSlot::before{
  content:"";
  position:absolute;
  inset:2px;
  border:1px solid rgba(255,255,255,.025);
  pointer-events:none;
}

.pveZoneRewardSlot.is-rare{ border-color:rgba(65,112,204,.78); box-shadow:inset 0 0 16px rgba(36,85,178,.22); }
.pveZoneRewardSlot.is-epic{ border-color:rgba(143,54,175,.78); box-shadow:inset 0 0 16px rgba(128,36,164,.24); }
.pveZoneRewardSlot.is-legendary,
.pveZoneRewardSlot.is-gold{ border-color:rgba(199,141,45,.85); box-shadow:inset 0 0 18px rgba(190,124,23,.24); }
.pveZoneRewardSlot.is-essence{ border-color:rgba(53,130,201,.68); }
.pveZoneRewardSlot.is-shard{ border-color:rgba(126,55,176,.70); }
.pveZoneRewardSlot.is-xp{ border-color:rgba(79,154,83,.68); }

.pveZoneRewardSlot img{
  width:88%;
  height:88%;
  display:block;
  object-fit:contain;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.72));
}

.pveZoneRewardSlot > span:not(.pveZoneRewardUnknown){
  position:absolute;
  left:2px;
  right:2px;
  bottom:2px;
  overflow:hidden;
  color:#d8c49d;
  font-size:8px;
  line-height:1;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
  opacity:0;
  transition:opacity .14s ease;
}

.pveZoneRewardSlot:hover > span{ opacity:1; }

.pveZoneRewardUnknown{
  color:#9d8b6c;
  font:700 35px/1 Georgia, serif;
  text-shadow:0 3px 8px #000;
}

.pveZoneRewardHint{
  position:absolute;
  right:12px;
  top:9px;
  max-width:48%;
  overflow:hidden;
  color:rgba(211,185,137,.68);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pveZoneBottom{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(160px, .9fr) minmax(210px, 1.25fr) minmax(210px, 1.18fr) minmax(180px, .92fr);
  gap:11px;
}

.pveZoneBottomCard{
  position:relative;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:12px;
  overflow:hidden;
  border:1px solid rgba(160,115,54,.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(197,146,68,.055), transparent 48%),
    linear-gradient(180deg, rgba(9,13,11,.94), rgba(4,7,6,.96));
  box-shadow:inset 0 0 0 1px rgba(9,6,3,.82), inset 0 0 22px rgba(0,0,0,.42);
}

.pveZoneBottomKicker{
  margin-bottom:6px;
  color:#d0aa68;
  font:700 clamp(11px, 1vw, 14px)/1 "Cinzel", Georgia, serif;
  letter-spacing:.025em;
}

.pveZoneCooldownMain{
  color:#dabe86;
  font:400 clamp(22px, 2.1vw, 34px)/1 Georgia, serif;
  text-shadow:0 2px 6px #000;
}

.pveZoneCooldownCard small{
  margin-top:10px;
  color:#c3a977;
  font-size:11px;
  text-align:center;
}

.pveZoneAttackCard,
.pveZoneSkipCard{
  padding:5px;
}

.pveZoneAttackCard{
  background:linear-gradient(180deg, rgba(62,12,7,.94), rgba(24,6,4,.98));
  border-color:rgba(184,82,49,.72);
}

.pveZoneAttackCard > span{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#c39a59;
  font-size:35px;
  pointer-events:none;
  opacity:.82;
}

.pveZoneBigButton,
.cavePanel .pveZoneBigButton,
.templePanel .pveZoneBigButton,
#worldBossInfoPanel .pveZoneBigButton,
#dungeonScreen .pveZoneBigButton{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:12px 12px 12px 54px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(216,123,75,.58) !important;
  border-radius:3px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,166,95,.09), transparent 48%),
    linear-gradient(180deg, rgba(91,21,12,.98), rgba(38,8,5,.99)) !important;
  color:#e7c590 !important;
  box-shadow:inset 0 0 0 2px rgba(35,8,4,.82), inset 0 1px 0 rgba(255,200,143,.12), 0 4px 12px rgba(0,0,0,.4) !important;
  font:700 clamp(15px, 1.65vw, 24px)/1.14 "Cinzel", "Trajan Pro", Georgia, serif !important;
  letter-spacing:.015em;
  text-align:center;
  text-transform:uppercase;
  text-shadow:0 2px 4px #1d0804;
  cursor:pointer;
}

.pveZoneBigButton:hover:not(:disabled){
  filter:brightness(1.14);
}

.pveZoneBigButton:disabled{
  filter:grayscale(.55) brightness(.62);
  cursor:not-allowed;
  opacity:.76 !important;
}

.pveZoneSkipCard{
  background:linear-gradient(180deg, rgba(68,35,5,.94), rgba(26,14,3,.98));
  border-color:rgba(177,116,36,.72);
}

.pveZoneSkipCard .pveZoneSkipButton,
.cavePanel .pveZoneSkipButton,
.templePanel .pveZoneSkipButton,
#worldBossInfoPanel .pveZoneSkipButton,
#dungeonScreen .pveZoneSkipButton{
  display:flex !important;
  padding:12px 12px 38px !important;
  border-color:rgba(196,133,47,.60) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(245,181,91,.08), transparent 48%),
    linear-gradient(180deg, rgba(91,49,8,.98), rgba(39,20,3,.99)) !important;
  color:#e5c589 !important;
}

.pveZoneActionPrice{
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#dfc18c;
  font:400 24px/1 Georgia, serif;
  pointer-events:none;
}

.pveZoneActionPrice img{
  width:24px;
  height:24px;
  object-fit:contain;
  filter:drop-shadow(0 0 5px rgba(143,76,255,.35));
}

.pveZoneActionPrice.is-muted{
  color:#87785e;
}

.pveZoneStatusCard{
  align-items:stretch;
  justify-content:center;
  text-align:center;
}

.pveZoneStatusCard h3{
  margin:0 0 8px !important;
  color:#d2af71 !important;
  font:700 clamp(11px, 1.05vw, 15px)/1.15 "Cinzel", Georgia, serif !important;
  text-transform:uppercase;
}

.pveZoneStatusCard p{
  min-height:0 !important;
  margin:0 !important;
  color:#d4bc8d !important;
  font-size:clamp(10px, .86vw, 13px) !important;
  font-weight:400 !important;
  line-height:1.35 !important;
}

.pveZoneStatusCard small{
  margin-top:7px;
  color:#97856a;
  font-size:9px;
  line-height:1.25;
}

.pveZoneMinorButton,
#worldBossInfoPanel .pveZoneMinorButton{
  min-height:30px;
  padding:6px 11px !important;
  border:1px solid rgba(185,134,60,.45) !important;
  border-radius:3px !important;
  background:linear-gradient(180deg, rgba(88,48,13,.92), rgba(35,17,5,.96)) !important;
  color:#ddc08d !important;
  font:700 10px/1 "Cinzel", Georgia, serif !important;
  cursor:pointer;
}

.pveZoneMinorActions{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:9px;
}

.pveZoneDungeonInfo{
  margin-top:5px;
  padding:9px;
  color:#d8bd8a;
  border:1px solid rgba(161,115,54,.23);
  background:rgba(0,0,0,.25);
  font-size:11px;
  line-height:1.4;
}

#dungeonScreen .pveZoneDungeonEnemies .pveZoneSectionTitle{
  flex:0 0 50px;
}

#dungeonScreen .pveZoneBossGrid,
#dungeonScreen .bossGrid{
  min-height:0;
  flex:1;
  display:grid !important;
  grid-template-columns:repeat(4, minmax(58px, 1fr)) !important;
  align-items:stretch !important;
  gap:6px !important;
  padding:8px !important;
  overflow:auto;
}

#dungeonScreen .bossTile{
  min-height:84px !important;
  padding:5px !important;
  gap:3px !important;
  border-radius:2px !important;
  border-color:rgba(178,130,64,.45) !important;
  background:rgba(7,10,8,.85) !important;
}

#dungeonScreen .bossTile img{
  width:42px !important;
  height:42px !important;
}

#dungeonScreen .bossTile b,
#dungeonScreen .bossTile .tag,
#dungeonScreen .bossTile .smallTxt{
  font-size:8px !important;
}

#dungeonScreen .bossTile.done::before,
#dungeonScreen .bossTile.done::after{
  width:48px;
  top:27px;
}

.pveZoneWorldLead{
  margin:0;
  padding:9px 12px 2px;
  color:#d4bc8f;
  font-size:12px;
  line-height:1.4;
}

#worldBossInfoPanel .pveZoneWorldRotation{
  min-height:0;
  flex:1;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:6px !important;
  padding:10px !important;
  overflow:auto;
}

#worldBossInfoPanel .oaiWorldBossRotationItem{
  padding:7px 4px !important;
  border-radius:2px !important;
  background:rgba(7,9,8,.80) !important;
}

#worldBossInfoPanel .pveZoneWorldRewards{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:8px !important;
  padding:10px 12px !important;
}

#worldBossInfoPanel .oaiWorldBossRewardCard{
  border-radius:2px !important;
  background:rgba(7,9,8,.82) !important;
}

#worldBossInfoPanel.oaiLabyrinthMode .pveZoneBossHero,
#worldBossInfoPanel.oaiLabyrinthMode .pveZoneEnemies,
#worldBossInfoPanel.oaiLabyrinthMode .pveZoneRewards,
#worldBossInfoPanel.oaiLabyrinthMode .pveZoneAttackCard,
#worldBossInfoPanel.oaiLabyrinthMode .pveZoneSkipCard{
  opacity:.18;
  pointer-events:none;
}

@media (max-width:1280px){
  .pveZoneView{
    grid-template-rows:auto minmax(0, 1fr) clamp(132px, 17vh, 166px);
    gap:8px;
    padding:9px 10px 10px;
  }
  .pveZoneHeader{ min-height:90px; padding-top:3px; }
  .pveZoneTitle{ margin-bottom:7px !important; }
  .pveZoneMain,
  .pveZoneTopGrid,
  .pveZoneRight{ gap:8px; }
  .pveZoneMain{ grid-template-columns:minmax(280px, .86fr) minmax(440px, 1.14fr); }
  .pveZoneTopGrid{ grid-template-columns:minmax(198px, .9fr) minmax(235px, 1.1fr); }
  .pveZoneSectionTitle{ height:42px; }
  .pveZoneInfoList{ padding:3px 8px 5px; }
  .pveZoneInfoRow{ min-height:26px; grid-template-columns:20px minmax(75px, 1fr) auto; }
  .pveZoneEnemyList{ gap:5px; padding:8px 7px 5px; }
  .pveZoneEnemyCard figcaption{ display:none; }
  .pveZoneEnemyNote{ padding-bottom:7px; }
  .pveZoneRewards{ min-height:132px; }
  .pveZoneRewardColumns{ gap:10px; padding:4px 8px 7px; }
  .pveZoneRewardSlot{ height:51px; }
  .pveZoneBottom{ gap:8px; grid-template-columns:minmax(140px,.85fr) minmax(190px,1.2fr) minmax(190px,1.12fr) minmax(160px,.9fr); }
  .pveZoneBottomCard{ padding:8px; }
}

@media (max-width:1120px){
  body .cavePanel.pveZonePanel,
  body .templePanel.pveZonePanel,
  body #worldBossInfoPanel.pveZonePanel{
    overflow:auto !important;
  }
  body .pveZonePanel .pveZoneMount,
  body #worldBossInfoPanel.pveZonePanel .pveZoneMount,
  #dungeonScreen.pveZoneScreen .dunWrap{
    overflow:auto !important;
  }
  .pveZoneView{
    height:auto;
    min-height:100%;
    display:flex;
    flex-direction:column;
    overflow:visible;
  }
  .pveZoneHeader{ flex:0 0 auto; }
  .pveZoneMain{
    flex:0 0 auto;
    grid-template-columns:1fr;
  }
  .pveZoneHero{ min-height:360px; }
  .pveZoneRight{ min-height:470px; }
  .pveZoneBottom{
    flex:0 0 auto;
    min-height:300px;
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .pveZoneBottomCard{ min-height:142px; }
}

@media (max-width:900px){
  :root{ --pve-stage-left:0px; }
  body .cavePanel.pveZonePanel,
  body .templePanel.pveZonePanel,
  body #worldBossInfoPanel.pveZonePanel{
    left:0 !important;
    top:0 !important;
    width:100vw !important;
    height:100dvh !important;
    border-radius:0 !important;
  }
  .pveZoneView{ padding-top:max(8px, env(safe-area-inset-top)); }
  .pveZoneHeader{ padding-left:58px; padding-right:58px; }
  .pveZoneClose{ top:5px !important; right:5px !important; }
}

@media (max-width:680px){
  .pveZoneHeader{ min-height:112px; }
  .pveZoneHeading{ width:100%; }
  .pveZoneTitle{ font-size:28px !important; }
  .pveZoneDescription{ font-size:12px !important; }
  .pveZoneHero{ min-height:290px; }
  .pveZoneRight{ min-height:0; }
  .pveZoneTopGrid{ grid-template-columns:1fr; }
  .pveZoneInformation{ min-height:260px; }
  .pveZoneEnemies{ min-height:290px; }
  .pveZoneRewards{ min-height:0; }
  .pveZoneRewardColumns{ grid-template-columns:1fr; }
  .pveZoneRewardSlot{ height:62px; }
  .pveZoneBottom{ grid-template-columns:1fr; min-height:0; }
  .pveZoneBottomCard{ min-height:150px; }
  #worldBossInfoPanel .pveZoneWorldRotation{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
  #worldBossInfoPanel .pveZoneWorldRewards{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-height:720px) and (min-width:1121px){
  .pveZoneView{
    grid-template-rows:auto minmax(0, 1fr) 126px;
    padding-top:7px;
  }
  .pveZoneHeader{ min-height:74px; }
  .pveZoneTitle{ font-size:30px !important; margin-bottom:5px !important; }
  .pveZoneDescription{ font-size:11px !important; line-height:1.25 !important; }
  .pveZoneSectionTitle{ height:35px; font-size:12px; }
  .pveZoneInfoRow{ min-height:22px; padding:2px 0; font-size:10px; }
  .pveZoneRewards{ min-height:106px; }
  .pveZoneRewardGroup h3{ margin-bottom:3px; font-size:10px; }
  .pveZoneRewardSlot{ height:41px; }
  .pveZoneEnemyNote{ font-size:9px; padding:3px 6px 5px; }
  .pveZoneBigButton{ font-size:14px !important; }
  .pveZoneStatusCard p{ font-size:9px !important; }
}
