/* V257 — isolated Dungeon scene foundation. */
#dungeonFoundationHudV257{
  position:absolute;
  inset:12px 14px auto 310px;
  z-index:34;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  pointer-events:none;
  color:#d9e5ef;
  font-family:var(--pixel-font,monospace);
  text-shadow:2px 2px 0 #000;
}
body.dungeonFoundationModeV257 #dungeonFoundationHudV257{display:flex}
/* V548: faixa discreta centralizada no topo da cena, longe das caixas de HP. */
.dungeonFoundationReadoutV257{
  position:fixed;
  left:50%;
  top:calc(var(--thk-topbar-h,66px) + 8px);
  transform:translateX(-50%);
  max-width:calc(100vw - 24px);
  padding:4px 12px;
  border-radius:999px;
  background:rgba(6,9,14,.46);
  box-shadow:inset 0 0 0 1px rgba(240,207,115,.16);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:1px 1px 0 #000;
}
.dungeonFoundationReadoutV257 strong,
.dungeonFoundationReadoutV257 span{display:block}
.dungeonFoundationReadoutV257 strong{color:#f0cf73;font-size:13px;letter-spacing:1px}
.dungeonFoundationReadoutV257 span{color:rgba(223,208,168,.82);font-size:11px;letter-spacing:.8px}
.dungeonFoundationActionsV257{display:flex;gap:8px;pointer-events:auto}
.dungeonEncounterActionsV274{display:none;gap:6px;pointer-events:auto}.dungeonEncounterActionsV274.visible{display:flex}.dungeonEncounterActionsV274 button{min-height:38px;padding:8px 11px;border:1px solid #b17b1e;background:#382408;color:#f4d37b;font:900 11px var(--pixel-font,monospace);letter-spacing:.6px}.dungeonEncounterActionsV274 button:last-child{border-color:#a34135;background:#421611;color:#ffaaa0}.dungeonEncounterActionsV274 button:disabled{opacity:.32;cursor:not-allowed}
.dungeonFoundationActionsV257 button{
  min-height:42px;
  padding:8px 14px;
  border:1px solid #60788a;
  background:#0c1720;
  color:#d9e5ef;
  font:700 11px var(--pixel-font,monospace);
  letter-spacing:.7px;
  cursor:pointer;
}
.dungeonFoundationActionsV257 button:hover{filter:brightness(1.28)}
.dungeonRouteControlsV258{position:absolute;z-index:36;display:none;align-items:center;gap:12px;transform:translate(-50%,-50%);pointer-events:auto}
.dungeonRouteControlsV258.visible{display:flex}
.dungeonRouteControlsV258.floor-0{left:50%;top:72%}
.dungeonRouteControlsV258.floor-1{left:50%;top:23%}
.dungeonRouteControlsV258.loot-ready{left:62%;top:61%}
.dungeonRouteArrowV258{position:relative;width:58px;height:58px;border:2px solid #e9bd55;outline:3px solid rgba(4,7,11,.85);border-radius:50%;background:radial-gradient(circle,#34240d 0 46%,#111a21 48% 100%);color:#ffe68b;box-shadow:0 0 0 2px #71501d,0 0 18px rgba(255,187,57,.58),inset 0 0 10px #000;font:900 34px/1 Arial,sans-serif;text-shadow:2px 2px 0 #000;cursor:pointer;animation:dungeonRoutePulseV258 1.05s steps(2,end) infinite}
.dungeonRouteArrowV258:hover,.dungeonRouteArrowV258:focus-visible{filter:brightness(1.35);transform:scale(1.08)}
.dungeonRouteArrowV258 small{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);color:#f3d984;font:800 11px var(--pixel-font,monospace);letter-spacing:.7px;white-space:nowrap}
@keyframes dungeonRoutePulseV258{50%{box-shadow:0 0 0 2px #b67c20,0 0 28px rgba(255,195,61,.78),inset 0 0 10px #000}}
#dungeonChoiceTimerV288{
  --choice-accent:#e5bd57;--choice-progress:100%;position:absolute;right:clamp(18px,4vw,76px);top:48%;z-index:37;
  display:none;width:clamp(154px,14vw,220px);box-sizing:border-box;padding:13px 17px 14px;
  border:2px solid var(--choice-accent);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  background:linear-gradient(105deg,rgba(7,8,9,.96),rgba(30,21,8,.93));color:#f7d983;text-align:center;
  box-shadow:inset 0 0 0 3px #070707,0 0 0 1px #2d210d,0 9px 28px #000,0 0 24px color-mix(in srgb,var(--choice-accent) 30%,transparent);
  font-family:var(--pixel-font,monospace);text-shadow:3px 3px 0 #000;pointer-events:none;transform:translateY(-50%) skewY(-1deg);
}
#dungeonChoiceTimerV288.visible{display:block;animation:dungeonChoiceTimerEnterV288 .38s cubic-bezier(.16,.84,.24,1.18) both}
.dungeonChoiceTimerKickerV288{padding-bottom:7px;border-bottom:1px solid #73591f;color:#e0ba59;font-size:11px;letter-spacing:.23em;white-space:nowrap}
.dungeonChoiceTimerNumberV288{margin:6px 0 2px;color:#ffe287;font:900 clamp(48px,5vw,76px)/.92 var(--pixel-font,monospace);letter-spacing:-.08em;text-shadow:4px 5px 0 #4a2704,0 0 20px #d79221}
.dungeonChoiceTimerUnitV288{color:#aa9360;font-size:11px;letter-spacing:.18em}
.dungeonChoiceTimerRailV288{height:4px;margin-top:9px;background:#221d15;box-shadow:inset 0 0 0 1px #050505;text-align:left;overflow:hidden}
.dungeonChoiceTimerRailV288 i{display:block;width:var(--choice-progress);height:100%;background:var(--choice-accent);box-shadow:0 0 8px var(--choice-accent);transition:width .18s linear}
#dungeonChoiceTimerV288.tick .dungeonChoiceTimerNumberV288{animation:dungeonChoiceTimerTickV288 .32s steps(3,end)}
#dungeonChoiceTimerV288.urgent{--choice-accent:#ff4037;background:linear-gradient(105deg,rgba(10,4,4,.97),rgba(61,5,4,.95));animation:dungeonChoiceTimerUrgentV288 .46s steps(2,end) infinite}
#dungeonChoiceTimerV288.urgent .dungeonChoiceTimerKickerV288{color:#ff756c;border-color:#85211c}
#dungeonChoiceTimerV288.urgent .dungeonChoiceTimerNumberV288{color:#ff5a50;text-shadow:4px 5px 0 #4e0503,0 0 24px #ff1d13}
@keyframes dungeonChoiceTimerEnterV288{from{opacity:0;transform:translate(70px,-50%) skewY(-1deg) scaleX(.65)}to{opacity:1;transform:translate(0,-50%) skewY(-1deg) scaleX(1)}}
@keyframes dungeonChoiceTimerTickV288{0%{transform:scale(1.35);filter:brightness(1.8)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes dungeonChoiceTimerUrgentV288{50%{filter:brightness(1.35);box-shadow:inset 0 0 0 3px #070707,0 0 0 1px #6d100d,0 9px 28px #000,0 0 34px #ff211a99}}
body.dungeonFoundationModeV257 #mobileTouchControlsV249,
body.dungeonFoundationModeV257 #npcInteractHint,
body.dungeonFoundationModeV257 #portalSurvivalTimer,
body.dungeonFoundationModeV257 #tavernNarratorOverlay,
body.dungeonFoundationModeV257 #tavernTutorialObjective{display:none!important}
body.dungeonResultOpenV275 #sixSkillBar{display:none!important}

#dungeonAccessOverlayV276{position:absolute;inset:0;z-index:92;display:none;place-items:center;background:rgba(0,0,0,.78);pointer-events:auto;font-family:var(--pixel-font,monospace)}
#dungeonAccessOverlayV276.visible{display:grid}
#dungeonAccessOverlayV276 section{width:min(500px,calc(100% - 34px));box-sizing:border-box;padding:28px;border:3px solid #755624;background:linear-gradient(180deg,#111820,#080b0f);box-shadow:inset 0 0 0 3px #030507,inset 0 0 0 5px #38280f,0 22px 55px #000;text-align:center;color:#d8e1e8}
#dungeonAccessOverlayV276 small{color:#9a7a3b;font-size:11px;letter-spacing:.22em}#dungeonAccessOverlayV276 h2{margin:12px 0;color:#efc967;font-size:24px;letter-spacing:.08em}#dungeonAccessOverlayV276 p{margin:0 auto 22px;color:#9cabb5;font-size:11px;line-height:1.8;max-width:410px}
#dungeonAccessOverlayV276 section>div{display:flex;justify-content:center;gap:9px}#dungeonAccessOverlayV276 button{min-width:145px;min-height:43px;padding:9px 14px;border:2px solid #526777;background:#101b24;color:#dce8ef;font:900 11px var(--pixel-font,monospace);cursor:pointer}#dungeonAccessOverlayV276 button:last-child{border-color:#a47724;background:#3c2709;color:#f2d57c}#dungeonAccessOverlayV276 button:hover{filter:brightness(1.25)}

#dungeonEntryConfirmV311{position:absolute;inset:0;z-index:93;display:none;place-items:center;background:radial-gradient(circle at 50% 47%,rgba(69,31,8,.22),rgba(0,0,0,.88) 58%);backdrop-filter:blur(2px) brightness(.55);pointer-events:auto;font-family:var(--pixel-font,monospace)}
#dungeonEntryConfirmV311.visible{display:grid}
#dungeonEntryConfirmV311 section{position:relative;width:min(560px,calc(100% - 34px));box-sizing:border-box;padding:31px 32px 28px;border:4px double #92651d;background:linear-gradient(180deg,#15110b,#080a0d 46%,#050709);box-shadow:inset 0 0 0 3px #030405,inset 0 0 36px #7b3a0e24,0 24px 75px #000;text-align:center;color:#d8e1e8;animation:dungeonEntryRevealV311 .24s steps(3,end) both}
#dungeonEntryConfirmV311 section::before,#dungeonEntryConfirmV311 section::after{content:"";position:absolute;top:13px;width:42px;height:3px;background:#9a6b20;box-shadow:0 8px 0 #49300d}
#dungeonEntryConfirmV311 section::before{left:15px}#dungeonEntryConfirmV311 section::after{right:15px}
#dungeonEntryConfirmV311 small{color:#a77c3b;font-size:11px;letter-spacing:.25em}#dungeonEntryConfirmV311 h2{margin:14px 0 10px;color:#f0cb70;font-size:29px;letter-spacing:.08em;text-shadow:3px 3px 0 #3c2208,0 0 17px #a45c1d66}#dungeonEntryConfirmV311 p{max-width:450px;margin:0 auto 18px;color:#aeb9c0;font-size:11px;line-height:1.8}
.dungeonEntryCostV311{margin:0 auto 22px;padding:11px 14px;border:1px solid #60471f;background:#090c0f;box-shadow:inset 0 0 0 2px #020304}.dungeonEntryCostV311 span,.dungeonEntryCostV311 b{display:block}.dungeonEntryCostV311 span{margin-bottom:7px;color:#746b5a;font-size:11px;letter-spacing:.18em}.dungeonEntryCostV311 b{color:#e9bd5d;font-size:11px;letter-spacing:.08em}
.dungeonEntryActionsV311{display:flex;justify-content:center;gap:10px}.dungeonEntryActionsV311 button{min-width:175px;min-height:45px;padding:9px 15px;border:2px solid #52616b;background:#0d151b;color:#bdcbd3;font:900 11px var(--pixel-font,monospace);letter-spacing:.05em;cursor:pointer}.dungeonEntryActionsV311 button:last-child{border:3px solid #b36a26;background:#4b210e;color:#ffd184;box-shadow:inset 0 0 0 2px #120704}.dungeonEntryActionsV311 button:hover,.dungeonEntryActionsV311 button:focus-visible{filter:brightness(1.28)}
@keyframes dungeonEntryRevealV311{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}

#dungeonThreatWarningV275{position:absolute;inset:0;z-index:82;display:none;overflow:hidden;pointer-events:none;font-family:var(--pixel-font,monospace);text-shadow:2px 2px 0 #000}
#dungeonThreatWarningV275.visible{display:block}
.dungeonLaneThreatV277{--threat:#78a7c0;position:absolute;left:50%;top:72%;width:min(610px,64vw);box-sizing:border-box;padding:10px 24px 9px;border-top:2px solid var(--threat);border-bottom:2px solid var(--threat);background:linear-gradient(90deg,transparent,rgba(8,12,16,.94) 12% 88%,transparent);filter:drop-shadow(0 8px 14px #000);color:#dce8ee;text-align:center;transform:translate(-50%,-50%);animation:dungeonLaneThreatInV277 .4s cubic-bezier(.17,.84,.25,1.15) both,dungeonLaneThreatOutV277 .35s ease 3.65s forwards}
.dungeonLaneThreatV277.floor-1{top:26%}.dungeonLaneThreatV277.chosen::after{content:"SELECTED";position:absolute;right:13%;top:-8px;padding:3px 6px;border:1px solid var(--threat);background:#070b0e;color:var(--threat);font-size:11px;letter-spacing:.12em}.dungeonLaneThreatV277.rejected{filter:drop-shadow(0 8px 14px #000) saturate(.78);opacity:.84}
.dungeonThreatRouteV277{position:absolute;left:13%;top:-8px;padding:3px 6px;border:1px solid #56646d;background:#070b0e;color:#9aa7ae;font-size:11px;letter-spacing:.14em}.dungeonLaneThreatV277.chosen .dungeonThreatRouteV277{border-color:var(--threat);color:var(--threat)}
.dungeonThreatEyebrowV275{margin-bottom:5px;color:var(--threat);font-size:11px;letter-spacing:.38em}.dungeonLaneThreatV277 h2{margin:0;color:var(--threat);font-size:clamp(17px,2vw,28px);line-height:1.05;letter-spacing:.08em;text-transform:uppercase;text-shadow:3px 3px 0 #000,0 0 14px color-mix(in srgb,var(--threat) 55%,transparent)}
.dungeonLaneThreatV277 p{margin:6px 0 0;color:#aeb3af;font-size:11px;letter-spacing:.14em;white-space:nowrap}.dungeonThreatMeterV275{display:flex;justify-content:center;gap:5px;margin-top:7px}.dungeonThreatMeterV275 i{width:31px;height:3px;background:#26303a}.dungeonThreatMeterV275 i.active{background:var(--threat);box-shadow:0 0 7px var(--threat)}
.dungeonLaneThreatV277[data-level="0"]{--threat:#64d982}.dungeonLaneThreatV277[data-level="1"]{--threat:#68b8df}.dungeonLaneThreatV277[data-level="2"]{--threat:#d7c14d}.dungeonLaneThreatV277[data-level="3"]{--threat:#ec9339}.dungeonLaneThreatV277[data-level="4"]{--threat:#ef4b3f;background:linear-gradient(90deg,transparent,rgba(38,4,4,.95) 12% 88%,transparent)}.dungeonLaneThreatV277[data-level="5"]{--threat:#ff2920;background:linear-gradient(90deg,transparent,rgba(48,2,2,.97) 12% 88%,transparent);animation:dungeonLaneThreatBossInV277 .45s steps(2,end) both,dungeonThreatBossPulseV275 .42s steps(2,end) .5s 4,dungeonLaneThreatOutV277 .35s ease 4.05s forwards}
body.dungeonThreatLevel5V275 #gameWrap{animation:dungeonThreatScreenShakeV275 .14s steps(2,end) 5}
@keyframes dungeonLaneThreatInV277{from{opacity:0;transform:translate(-50%,-50%) scaleX(.45)}to{opacity:1;transform:translate(-50%,-50%) scaleX(1)}}
@keyframes dungeonLaneThreatOutV277{to{opacity:0;transform:translate(-50%,-50%) scaleX(.72)}}
@keyframes dungeonLaneThreatBossInV277{0%{opacity:0;transform:translate(-50%,-50%) scale(1.35)}65%{opacity:1;transform:translate(-50%,-50%) scale(.96)}100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes dungeonThreatBossPulseV275{50%{filter:brightness(1.7)}}
@keyframes dungeonThreatScreenShakeV275{0%,100%{transform:translate(0)}25%{transform:translate(-3px,2px)}75%{transform:translate(3px,-1px)}}
@media (prefers-reduced-motion:reduce){.dungeonLaneThreatV277,body.dungeonThreatLevel5V275 #gameWrap,#dungeonChoiceTimerV288,#dungeonChoiceTimerV288 .dungeonChoiceTimerNumberV288,#dungeonEntryConfirmV311 section{animation:none!important}}
#dungeonResultOverlayV268{position:absolute;inset:0;z-index:90;display:none;place-items:center;background:rgba(0,0,0,.76);backdrop-filter:brightness(.38) saturate(.65);pointer-events:auto}
#dungeonResultOverlayV268.visible{display:grid}
.dungeonResultCardV268{position:relative;width:min(680px,calc(100% - 34px));box-sizing:border-box;padding:31px 30px 27px;border:4px solid #4b2020;background:linear-gradient(#100b0b,#07090c);box-shadow:inset 0 0 0 3px #0a0505,inset 0 0 0 6px #741f1f,0 24px 70px #000;color:#d9e5ef;text-align:center;font-family:var(--pixel-font,monospace);image-rendering:pixelated}
.dungeonResultCardV268::before,.dungeonResultCardV268::after{content:"";position:absolute;top:12px;width:34px;height:3px;background:#8e2925;box-shadow:0 8px 0 #3c1717}
.dungeonResultCardV268::before{left:14px}.dungeonResultCardV268::after{right:14px}
.dungeonResultKickerV268{color:#856f6a;font-size:11px;letter-spacing:1.7px}
.dungeonResultCardV268 h2{margin:13px 0 8px;color:#d54c43;font-size:43px;letter-spacing:.10em;line-height:1;text-shadow:4px 4px 0 #3a0909,0 0 15px #b91f1f88}
.dungeonResultCardV268 p{margin:0 0 17px;color:#c2aaa2;font-size:11px;letter-spacing:.07em}
.dungeonResultDividerV268{display:flex;align-items:center;gap:10px;margin:0 auto 11px;color:#997f77;font-size:11px;letter-spacing:1.3px}.dungeonResultDividerV268 i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#6d332f)}.dungeonResultDividerV268 i:last-child{background:linear-gradient(90deg,#6d332f,transparent)}
.dungeonResultStatsV268{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:21px}
.dungeonResultStatsV268 div{position:relative;padding:12px 8px 11px;border:1px solid #49302d;background:linear-gradient(180deg,#100d0d,#08090b);box-shadow:inset 0 0 0 2px #050505}
.dungeonResultStatsV268 span,.dungeonResultStatsV268 b{display:block}
.dungeonResultStatsV268 span{margin-bottom:7px;color:#806e69;font-size:11px;letter-spacing:1px}
.dungeonResultStatsV268 b{color:#f2c777;font-size:15px}
.dungeonResultActionsV268{display:flex;justify-content:center}
#dungeonResultReturnV268{min-width:210px;height:46px;padding:9px 22px;border:3px solid #a64c2e;background:#4b1b14;color:#ffd08a;box-shadow:inset 0 0 0 2px #090604;font:900 11px var(--pixel-font,monospace);letter-spacing:.8px;cursor:pointer}
#dungeonResultReturnV268:hover,#dungeonResultReturnV268:focus-visible{filter:brightness(1.28)}
#dungeonResultOverlayV268.completed .dungeonResultCardV268{border-color:#665024;box-shadow:inset 0 0 0 3px #080704,inset 0 0 0 6px #9d7021,0 24px 70px #000}
#dungeonResultOverlayV268.completed .dungeonResultCardV268 h2{color:#e3b84d;text-shadow:4px 4px 0 #4a2c06,0 0 17px #d89d2888}
#dungeonResultOverlayV268.completed .dungeonResultCardV268::before,#dungeonResultOverlayV268.completed .dungeonResultCardV268::after{background:#ad7e28;box-shadow:0 8px 0 #4a3514}
@media (max-width:760px){
  #dungeonFoundationHudV257{inset:7px 8px auto 8px;gap:6px}
  .dungeonFoundationReadoutV257{top:calc(var(--thk-topbar-h,52px) + 4px);padding:3px 10px}
  #dungeonFoundationHudV257{justify-content:flex-end}
  .dungeonFoundationActionsV257 button{min-height:34px;padding:6px 8px;font-size:11px}
  .dungeonRouteArrowV258{width:48px;height:48px;font-size:28px}
  .dungeonRouteControlsV258.floor-0{top:69%}
  #dungeonChoiceTimerV288{right:10px;top:50%;width:132px;padding:9px 10px 10px}.dungeonChoiceTimerKickerV288{font-size:11px}.dungeonChoiceTimerNumberV288{font-size:42px}.dungeonChoiceTimerUnitV288{font-size:11px}
  .dungeonLaneThreatV277{width:min(500px,78vw);padding:7px 12px 6px}.dungeonLaneThreatV277 h2{font-size:14px}.dungeonThreatEyebrowV275,.dungeonLaneThreatV277 p{font-size:11px}.dungeonThreatMeterV275{margin-top:5px}.dungeonThreatMeterV275 i{width:20px}
  #dungeonAccessOverlayV276 section{padding:20px 14px}#dungeonAccessOverlayV276 h2{font-size:18px}#dungeonAccessOverlayV276 section>div{flex-direction:column}#dungeonAccessOverlayV276 button{width:100%}
  #dungeonEntryConfirmV311 section{padding:24px 14px 18px}#dungeonEntryConfirmV311 h2{font-size:20px}.dungeonEntryActionsV311{flex-direction:column}.dungeonEntryActionsV311 button{width:100%;min-width:0}
  .dungeonResultCardV268{padding:20px 15px 17px}.dungeonResultCardV268 h2{font-size:25px;margin:11px 0 7px}.dungeonResultCardV268 p{font-size:11px;margin-bottom:12px}.dungeonResultStatsV268 div{padding:8px 4px}.dungeonResultStatsV268 span{font-size:11px}.dungeonResultStatsV268 b{font-size:12px}#dungeonResultReturnV268{height:42px;min-width:190px}
}

/* V449 — Selo do Offering no relatorio final: linha inteira, cor pelo nivel. */
.dungeonResultStatsV268 .dungeonResultSealV449{grid-column:1/-1}
.dungeonResultStatsV268 .dungeonResultSealV449 b[data-tier="cracked"]{color:#e0a45a}
.dungeonResultStatsV268 .dungeonResultSealV449 b[data-tier="rift"]{color:#5fd4f5}
.dungeonResultStatsV268 .dungeonResultSealV449 b[data-tier="abyssal"]{color:#c77dff}
.dungeonResultStatsV268 .dungeonResultSealV449 b[data-tier=""]{color:#806e69}
