body.dungeon-lobby-q40 #v-dungeon{background:linear-gradient(#e3f3e7e3,#fff5dce8),var(--dg41-lobby-bg,url('/assets/dungeon/realms-v41/zh.webp')) center/cover fixed}
/* Give every HUD row a real place; the canvas starts below its full height. */
body #v-dungeon .dg-exp.dg-expedition{--dg41-hud:112px;display:flex;flex-direction:column;min-height:0}
body #v-dungeon .dg-exp.dg-expedition>.dg-run-hud{flex:0 0 var(--dg41-hud);height:var(--dg41-hud);min-height:var(--dg41-hud);box-sizing:border-box;display:grid;grid-template-columns:145px minmax(160px,1fr) 138px 58px 112px 44px;grid-template-rows:1fr;align-items:center;gap:14px;padding:10px 18px;overflow:visible}
body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-health{grid-column:1;grid-row:1;width:auto;max-width:none;min-width:0}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-health>b{white-space:nowrap;line-height:18px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-health>b small{display:inline;white-space:nowrap;margin-left:5px}body #v-dungeon .dg-exp.dg-expedition .dg-vital-heading{line-height:16px;min-height:16px}body #v-dungeon .dg-exp.dg-expedition .dg-vital-track{margin:4px 0;height:9px}body #v-dungeon .dg-exp.dg-expedition #dgMp{display:block;line-height:16px;font-size:11px}
body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress{display:flex;flex-direction:column;grid-column:2;grid-row:1;min-width:0;align-items:flex-start;gap:4px;line-height:17px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>b{font-size:14px;line-height:19px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>span{font-size:11px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>small{white-space:normal;font-size:10px;line-height:14px;margin:0;padding:0;width:auto;text-align:left;align-self:flex-start;position:static}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress .dg-save-status{display:inline;margin:0}
body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>.dg-resources{display:flex;flex-wrap:wrap;gap:3px 12px;color:#604e34;font-size:11px;line-height:16px}body #v-dungeon .dg-exp.dg-expedition .dg-resources b{color:#2b1d14}body #v-dungeon .dg-exp.dg-expedition .dg-countdown{grid-column:3;grid-row:1;margin:0;width:auto;min-width:0}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-hud-hero{grid-column:4;grid-row:1}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-button[data-dg=pause]{grid-column:5;grid-row:1;white-space:nowrap}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud #sceneMusic{grid-column:6;grid-row:1}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-button{position:static;min-height:44px;max-width:none;font-size:12px!important;padding:7px 10px}
body #v-dungeon .dg-exp.dg-expedition #dgWorld{flex:1 1 0;min-height:0;height:calc(100% - var(--dg41-hud));width:100%}body #v-dungeon .dg-exp.dg-expedition .dg-map-label{top:calc(var(--dg41-hud) + 14px)}body #v-dungeon .dg-exp.dg-expedition .dg-compass{top:calc(var(--dg41-hud) + 14px)}
.dg41-hunt{padding:14px;margin:12px 0;border:3px solid #8f6734;border-radius:18px;background:#fff0bc;color:#2b1d14}.dg41-hunt h3{margin:0 0 8px;font-size:20px}.dg41-hunt p{line-height:1.7}.dg41-hunt small{display:block;line-height:1.7;color:#6b5a3f}.dg41-hunt button{margin-top:10px}.dg41-hunt .dg-gear-art{width:72px;height:72px;float:right;margin-left:15px}
.dg41-scene-entry>img{animation:dg41-scene-drift 5s ease-out both}.dg41-scene-entry::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,transparent 40%,#1b382f3b);box-shadow:inset 0 0 80px #fff1c233}.dg41-scene-entry .dg-cine-title p{color:#fffbe5!important;font-size:15px;line-height:1.6;max-width:75vw;margin:8px auto;text-shadow:0 2px 4px #20372e}
@keyframes dg41-scene-drift{from{transform:scale(1.02)}to{transform:scale(1.09)}}
@media(max-width:900px){body #v-dungeon .dg-exp.dg-expedition>.dg-run-hud{grid-template-columns:130px minmax(110px,1fr) 112px 48px 92px 44px;gap:8px;padding:8px 12px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>b{font-size:12px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>.dg-resources{font-size:10px;gap:2px 8px}body #v-dungeon .dg-exp.dg-expedition .dg-countdown strong{font-size:28px}}
@media(max-width:600px){body #v-dungeon .dg-exp.dg-expedition{--dg41-hud:184px}body #v-dungeon .dg-exp.dg-expedition>.dg-run-hud{grid-template-columns:112px minmax(80px,1fr) 46px 44px;grid-template-rows:94px 54px;gap:7px 10px;padding:9px 10px 11px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-health{grid-column:1;grid-row:1}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress{grid-column:2/5;grid-row:1;gap:2px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>b{line-height:16px;font-size:12px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-run-progress>small{font-size:9px;line-height:12px}body #v-dungeon .dg-exp.dg-expedition .dg-countdown{grid-column:1;grid-row:2;height:50px;padding:3px 8px}body #v-dungeon .dg-exp.dg-expedition .dg-countdown strong{font-size:25px;line-height:27px}body #v-dungeon .dg-exp.dg-expedition .dg-countdown small{font-size:9px}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-button[data-dg=pause]{grid-column:2;grid-row:2;font-size:10px!important}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-hud-hero{grid-column:3;grid-row:2}body #v-dungeon .dg-exp.dg-expedition .dg-run-hud #sceneMusic{grid-column:4;grid-row:2}body #v-dungeon .dg-exp.dg-expedition .dg-map-label{top:calc(var(--dg41-hud) + 9px)}body #v-dungeon .dg-exp.dg-expedition .dg-compass{top:calc(var(--dg41-hud) + 9px)}}
@media(prefers-reduced-motion:reduce){.dg41-scene-entry>img{animation:none}}

.dg-encounter-summary .dg41-hunt p{display:flex;align-items:center;gap:12px}.dg-encounter-summary .dg41-hunt .dg-gear-art{float:none;flex:0 0 56px;width:56px;height:64px;margin:0}
body #v-dungeon .dg-exp.dg-expedition .dg-run-hud>.dg-hud-hero{padding:7px 4px;white-space:nowrap;font-size:11px!important}

/* Keep the full rush visible on phones; the matching map fills the surrounding frame. */
#dgEntryCine.dg41-scene-entry{background:var(--bg);transition:opacity .32s ease,transform .32s ease}
#dgEntryCine.dg41-scene-entry>video{object-fit:contain;z-index:1;transition:opacity .25s ease}
#dgEntryCine.dg41-scene-entry.video-playing>video{opacity:1}
#dgEntryCine.dg41-scene-entry.video-playing>img{filter:blur(16px) brightness(.45);transform:scale(1.12);animation:none}
#dgEntryCine.dg41-scene-entry::before{z-index:2;box-shadow:none;background:linear-gradient(transparent 70%,#0c1d3570)}
#dgEntryCine.dg41-scene-entry::after{display:none}
#dgEntryCine.dg41-scene-entry .dg-cine-title{position:absolute;left:4vw;bottom:66px;margin:0;padding:12px 18px;max-width:min(600px,85vw);text-align:left;transition:opacity .4s ease,transform .4s ease;background:#19312b94;border:2px solid #fff6;border-radius:20px}
#dgEntryCine.dg41-scene-entry .dg-cine-title h2{font-size:clamp(28px,4.5vw,54px);margin:8px 0}
#dgEntryCine.dg41-scene-entry .dg-cine-title p{margin:0;max-width:100%;font-size:13px}
#dgEntryCine.dg41-scene-entry.battle-action .dg-cine-title{opacity:0;transform:translateY(12px)}
.dg41-cine-progress{position:absolute;z-index:3;left:4vw;right:4vw;bottom:10px;height:4px;border-radius:8px;background:#fff3;overflow:hidden}
.dg41-cine-progress i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:#ffd879;border-radius:8px}
.dg41-speed-lines{position:absolute;inset:0;z-index:2;opacity:0;pointer-events:none;background:repeating-conic-gradient(from 10deg at 50% 48%,transparent 0deg 15deg,#ffec9b77 15.3deg 15.6deg,transparent 16deg 30deg);mask-image:radial-gradient(ellipse,transparent 38%,#000 100%);transition:opacity .18s}
.rushing .dg41-speed-lines{opacity:.65}
#dgEntryCine.dg41-scene-entry.out{opacity:0;transform:scale(1.045);pointer-events:none}
@media(max-width:600px){#dgEntryCine.dg41-scene-entry .dg-cine-title{left:5vw;bottom:calc(50% + 16vw);max-width:90vw;padding:8px 12px}#dgEntryCine.dg41-scene-entry .dg-cine-title h2{font-size:28px}#dgEntryCine.dg41-scene-entry .dg-cine-title small{font-size:11px;padding:3px 8px}#dgEntryCine.dg41-scene-entry .dg-cine-skip{bottom:24px;right:5vw;font-size:12px}}
@media(prefers-reduced-motion:reduce){#dgEntryCine.dg41-scene-entry{transition:opacity .18s;transform:none}#dgEntryCine.dg41-scene-entry .dg-cine-title{transition:none}.dg41-cine-progress,.dg41-speed-lines{display:none}}
