.dungeon-guide { line-height:1.6; }
.dungeon-guide h1 { font-size:clamp(30px,3vw,42px); margin:8px 0 12px; }
.dungeon-guide .dg-intro { color:#c8c0b3; max-width:75ch; margin:0 0 20px; }
.dg-nav { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 24px; }
.dg-nav a { display:inline-flex; align-items:center; min-height:44px; padding:9px 13px; border:1px solid #67553a; color:#e9ca99; }
.dg-nav a:hover { border-color:#bf9965; background:#211f19; }
.dg-section { padding:20px 22px; margin:16px 0; border:1px solid #554731; background:#101814; scroll-margin-top:18px; }
.dg-section h2 { font-size:26px; line-height:1.2; margin:0 0 14px; }
.dg-section h3 { font-size:20px; margin:18px 0 8px; }
.dg-section p:last-child, .dg-section ul:last-child, .dg-section ol:last-child { margin-bottom:0; }
.dg-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px; }
.dg-card { display:block; min-width:0; padding:16px; border:1px solid #574a34; background:#101814; }
.dg-card strong { display:block; color:#f0dfc1; font:600 21px/1.2 var(--serif); }
.dg-card p { margin:7px 0; color:#c8c0b3; }
.dg-card span { color:#e3c18c; }
.dg-steps { display:grid; gap:12px; margin:0; padding-left:24px; }
.dg-steps li { padding-left:4px; }
.dg-steps strong { color:#eed8b2; }
.dg-map-form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:14px; }
.dg-map-form label { flex:1 1 210px; max-width:420px; }
.dg-map-form label span { display:block; margin-bottom:6px; color:#dfc59a; font-weight:600; }
.dg-map-form select { min-height:44px; }
.dg-map-form button { min-height:44px; padding:9px 16px; border:1px solid #987849; background:#2a241a; color:#f0d7ac; }
.dg-map-help { color:#c9bcaa; font-size:14px; margin:0 0 12px; }
.dg-map-legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin:0 0 12px; color:#d5c8b5; font-size:13px; }
.dg-map-layout { display:flex; gap:16px; align-items:flex-start; }
.dg-map-scroll { flex:0 1 auto; min-width:0; max-width:calc(100% - 276px); max-height:650px; overflow:auto; padding:10px; border:1px solid #5d4c36; background:#080f0d; overscroll-behavior:contain; }
.dg-map-scroll:focus-visible { outline:2px solid #e5c38b; outline-offset:3px; }
.dg-map-grid { --dg-cell-size:34px; display:block; width:max-content; min-height:40px; }
.dg-map-row { display:flex; }
.dg-map-space { flex:none; width:var(--dg-cell-size); height:var(--dg-cell-size); }
.dg-cell { box-sizing:border-box; position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:0; width:var(--dg-cell-size); height:var(--dg-cell-size); padding:0; border:1px dotted #8a7656; background:#dac497; color:#272016; font:inherit; line-height:1; cursor:pointer; }
.dg-cell:hover, .dg-cell[aria-pressed=true] { background:#f5dc9d; outline:2px solid #e4b857; outline-offset:-2px; z-index:2; }
.dg-cell:focus-visible { outline:3px solid #df6b5f; outline-offset:-3px; z-index:3; }
.dg-cell-coord { font-size:9px; font-weight:600; }
.dg-cell-symbol { font-size:13px; font-weight:700; }
.dg-cell--monster .dg-cell-symbol, .dg-cell--danger .dg-cell-symbol { color:#a21d25; }
.dg-cell--npc .dg-cell-symbol { color:#294998; }
.dg-cell--portal .dg-cell-symbol, .dg-cell--enter .dg-cell-symbol { color:#247342; }
.dg-cell--start { background:#b4d8a0; }
.dg-wall-n { border-top:2px solid #55412d; }.dg-wall-e { border-right:2px solid #55412d; }.dg-wall-s { border-bottom:2px solid #55412d; }.dg-wall-w { border-left:2px solid #55412d; }
.dg-map-info { flex:1 1 250px; max-width:400px; padding:16px; border:1px solid #554731; background:#0c1411; min-width:0; scroll-margin-bottom:90px; }
.dg-map-info h3 { margin:0 0 6px; }.dg-map-info h4 { margin:14px 0 6px; color:#e9d1a5; }
.dg-map-info p, .dg-map-info ul { margin:0; }.dg-map-info ul { padding-left:20px; }.dg-map-info li { overflow-wrap:anywhere; }
.dg-map-type { color:#c7b899; }
.dg-static-map { --dg-cell-size:26px; display:block; width:max-content; }
.dg-static-map .dg-cell { cursor:default; }
.dg-objects { margin-top:14px; }.dg-objects summary { min-height:44px; cursor:pointer; color:#e9c894; }
.dg-objects li { margin:6px 0; }
@media(max-width:760px) {
  .dg-section { padding:16px; margin:14px 0; }
  .dg-section h2 { font-size:23px; }
  .dg-map-layout { flex-direction:column; }
  .dg-map-scroll { width:100%; max-width:100%; max-height:55vh; }
  .dg-map-info { flex:auto; width:100%; max-width:none; }
  .dg-map-grid { --dg-cell-size:44px; }
}
.dg-static-images details{border:1px solid #55452d;margin-top:.75rem;background:#0d1713}
.dg-static-images summary{cursor:pointer;padding:.8rem 1rem;color:#f1ca82;font-weight:700}
.dg-static-images .dg-map-caption{margin:0;padding:0 1rem .8rem;color:#c8c0b3}
.dg-static-images details a{display:block;padding:0 1rem 1rem}
.dg-static-images img{display:block;max-width:100%;height:auto}
.dg-rank-steps{margin:.3rem 0 1rem;padding-left:1.35rem}
.dg-rank-steps li+li{margin-top:.45rem}
.dg-rank-reward{display:flex;align-items:flex-start;gap:12px}
.dg-rank-reward img{width:48px;height:48px;object-fit:contain;flex:none}
.dg-rank-reward p{margin:0}
.dg-loot-group{margin-top:12px;border:1px solid #55452d;background:#0d1713}
.dg-loot-group summary{cursor:pointer;padding:14px 16px;color:#f1ca82;font-weight:700}
.dg-loot-group .dg-cards{padding:0 14px 14px}
