.process-quest [hidden] { display:none !important; }
.process-quest.is-map-ready { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(0,1fr); gap:clamp(.8rem,2vw,1.45rem); align-items:stretch; }
.quest-board { position:relative; aspect-ratio:2; align-self:stretch; border:1px solid #385e75; border-radius:15px; isolation:isolate; overflow:hidden; background:#102b40; min-width:0; }
.quest-terrain { display:block; width:100%; height:100%; }
.quest-path-base { stroke:#16293c; stroke-width:10; stroke-linecap:round; }
.quest-path-dots { stroke:#d2d6a4; stroke-width:3; stroke-dasharray:3 8; stroke-linecap:round; }
.quest-nodes { position:absolute; inset:0; pointer-events:none; }
.quest-nodes button { pointer-events:auto; position:absolute; left:var(--x); top:var(--y); transform:translate(-50%,-50%); display:grid; place-items:center; width:44px; height:44px; padding:0; background:none; border:none; color:#eaf8ff; cursor:pointer; }
.quest-nodes b { display:grid; place-items:center; width:30px; height:30px; border:2px solid #b9dfe1; box-shadow:0 0 0 3px #112636; background:#1c465a; border-radius:7px; font-size:.85rem; line-height:1; }
.quest-nodes button[aria-pressed=true] b,.quest-nodes button:hover b { color:#102334; background:#f2d58c; border-color:#fff0bc; }
.quest-nodes span { position:absolute; z-index:2; top:calc(50% + 18px); white-space:nowrap; background:#0f2638ee; border:1px solid #77abbf55; border-radius:4px; padding:.12rem .36rem; font-size:clamp(.59rem,.92vw,.83rem); line-height:1.2; pointer-events:none; }
.quest-nodes button:focus-visible, .quest-actions button:focus-visible { outline:2px solid #fbde9c; outline-offset:2px; }
.quest-cat { position:absolute; width:clamp(25px,3.7vw,44px); height:auto; left:var(--x); top:var(--y); transform:translate(-50%,calc(-100% - 10px)); pointer-events:none; z-index:3; filter:drop-shadow(0 2px 0 #0b202caa); }
.quest-info { min-width:0; }
.is-map-ready .quest-info { display:flex; flex-direction:column; justify-content:center; padding:clamp(.82rem,2vw,1.45rem); background:#101f30; border:1px solid #385e75; border-radius:15px; }
.is-map-ready .quest-stages { display:block; }
.is-map-ready .quest-stages .process-card { padding:0; background:none; border:0; min-height:0; }
.is-map-ready .quest-stages .process-card::before { content:none; }
.quest-index { display:none; }
.is-map-ready .quest-index { display:block; margin:.2rem 0 .36rem; color:#9bd5ec; font-size:.72rem; font-weight:750; letter-spacing:.065em; text-transform:uppercase; }
.quest-hint { color:#b9c8d8; font-size:.78rem; margin:0 0 .72rem; }
.quest-actions { display:flex; justify-content:space-between; gap:.4rem; margin-top:.85rem; }
.quest-actions button { color:#e7f3ff; background:#1b3650; border:1px solid #477697; border-radius:6px; padding:.34rem .47rem; min-height:42px; font-size:.8rem; cursor:pointer; }
.quest-actions button:hover:not(:disabled) { background:#2d5474; }
.quest-actions button:disabled { opacity:.44; cursor:default; }
@media(max-width:780px) { .process-quest.is-map-ready { grid-template-columns:1fr; } }
@media(max-width:520px) { .quest-nodes b { width:25px; height:25px; } .quest-nodes span { display:none; } .quest-cat { width:26px; transform:translate(-50%,calc(-100% - 8px)); } .quest-info { min-height:185px; } }
