.adventure-page{background:linear-gradient(#87ceeb 0%,#b8e0a0 38%,#6ba84f 100%);min-height:100dvh;position:relative;overflow:hidden}.adventure-page:has([data-biome=dungeon]){background:#050403}.adventure-map-shell{position:absolute;inset:0}.adventure-map-arrows{z-index:105;pointer-events:none;position:fixed;inset:0}.adventure-map-arrow{pointer-events:auto;color:#f6e7b2;cursor:pointer;background:#16130f;border:2px solid #6e5a32;border-radius:0;justify-content:center;align-items:center;width:3rem;height:3rem;font-size:1.25rem;line-height:1;transition:background .15s,border-color .15s,opacity .15s;display:flex;position:fixed;top:50%;transform:translateY(-50%);box-shadow:0 4px 24px #0006}.adventure-map-arrow--left{left:max(.75rem, env(safe-area-inset-left,0px))}.adventure-map-arrow--right{right:max(.75rem, env(safe-area-inset-right,0px))}.adventure-map-arrow:hover:not(:disabled){background:#241c12;border-color:#e6c35c}.adventure-map-arrow:active:not(:disabled){transform:translateY(-50%)scale(.94)}.adventure-map-arrow:disabled{opacity:.38;cursor:not-allowed;color:#ffffff59;border-color:#ffffff26}.adventure-canvas{cursor:pointer;width:100%;height:100%;display:block;position:absolute;inset:0}.adventure-canvas[data-status=loading],.adventure-canvas[data-status=error]{cursor:default}.adventure-canvas[data-status=loading]{cursor:wait}.adventure-canvas[data-status=loading]:after{content:"Loading sprites…";color:#f6e7b2;pointer-events:none;background:#16130f;border:1px solid #6e5a32;border-radius:0;padding:.65rem .85rem;font-size:.875rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.adventure-canvas[data-status=error]:after{content:"Failed to load sprites.";color:#fecaca;pointer-events:none;background:#16130f;border:1px solid #6e5a32;border-radius:0;padding:.65rem .85rem;font-size:.875rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.adventure-hud{z-index:2;pointer-events:none;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.65rem .75rem;display:flex;position:relative}.adventure-hud-zone{flex:1;min-width:0}.adventure-hud-zone h1{letter-spacing:.01em;color:#f6e7b2;text-shadow:0 1px 2px #000000d9;margin:0;font-size:.95rem;font-weight:700}.adventure-hud-room{text-overflow:ellipsis;white-space:nowrap;color:#e6c35c;text-shadow:0 1px 2px #000000d9;max-width:100%;margin:.12rem 0 0;font-size:.75rem;font-weight:700;line-height:1.3;overflow:hidden}.adventure-hud-back{pointer-events:auto;color:#f6e7b2;white-space:nowrap;background:#16130f;border:1px solid #6e5a32;border-radius:0;flex:none;padding:.4rem .65rem;font-size:.75rem;font-weight:700;text-decoration:none}.adventure-hud-back:hover{background:#241c12;border-color:#e6c35c}@media (max-width:640px){.adventure-hud{padding:.5rem}}.adventure-hud-npc-hint{color:#f6e7b2;background:#16130f;border:1px solid #6e5a32;border-radius:0;max-width:22rem;margin:.35rem 0 0;padding:.5rem .75rem;font-size:.8125rem;font-weight:600;animation:1.6s ease-in-out infinite adventure-npc-pulse}@keyframes adventure-npc-pulse{0%,to{box-shadow:0 0 #fbbf2433}50%{box-shadow:0 0 14px 2px #fbbf2440}}.adventure-quest-overlay{z-index:60;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#080c148c;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.adventure-quest-panel{color:#f6e7b2;background:linear-gradient(#1a1612 0%,#0e0c0a 100%);border:2px solid #6e5a32;border-radius:0;width:min(100%,32rem);max-height:min(90dvh,640px);overflow:auto;box-shadow:inset 0 0 0 1px #ffffff0a,0 24px 60px #00000073}.adventure-quest-panel__header{border-bottom:1px solid #ffffff14;grid-template-columns:auto 1fr auto;align-items:start;gap:.75rem;padding:1rem 1rem .75rem;display:grid}.adventure-quest-panel__portrait{background:#00000059;border:1px solid #ffffff14;border-radius:.75rem;place-items:center;width:3.5rem;height:3.5rem;display:grid}.adventure-quest-panel__portrait img{width:2.5rem;height:auto;image-rendering:pixelated}.adventure-quest-panel__kicker{letter-spacing:.08em;text-transform:uppercase;color:#e6c35c;margin:0;font-size:.6875rem;font-weight:600}.adventure-quest-panel__title{margin:.15rem 0 0;font-size:1.125rem;line-height:1.25}.adventure-quest-panel__close{color:#f6e7b2a6;cursor:pointer;background:0 0;border:none;padding:.15rem .35rem;font-size:1.5rem;line-height:1}.adventure-quest-panel__close:hover{color:#fff}.adventure-quest-panel__body{padding:1rem}.adventure-quest-panel__greeting{color:#f6e7b2d1;margin:0 0 .65rem;font-size:.875rem}.adventure-quest-panel__offer{color:#e2e8f0;margin:0 0 1rem;font-size:.9375rem;line-height:1.55}.adventure-quest-panel__btn{color:#f6e7b2;cursor:pointer;background:#1a1814;border:1px solid #6e5a32;border-radius:0;justify-content:center;align-items:center;width:100%;padding:.65rem 1rem;font-size:.875rem;font-weight:600;display:inline-flex}.adventure-quest-panel__btn:hover{background:#ffffff1a}.adventure-quest-panel__btn--primary{color:#f6e7b2;background:#3a2e14;border-color:#e6c35c}.adventure-quest-panel__btn--primary:hover{filter:brightness(1.08)}.adventure-quest-reward{background:#1428188c;border:1px solid #7ec85a59;border-radius:.75rem;margin:0 0 1rem;padding:.85rem .95rem}.adventure-quest-reward h3{color:#bbf7d0;margin:0 0 .45rem;font-size:.9375rem}.adventure-quest-reward p{color:#f6e7b2d9;margin:0 0 .65rem;font-size:.8125rem;line-height:1.5}.adventure-quest-reward__link{color:#e6c35c;font-size:.8125rem;font-weight:600;text-decoration:none;display:inline-flex}.adventure-quest-reward__link:hover{text-decoration:underline}.adventure-quest-log{border-top:1px solid #ffffff14;padding:.75rem 1rem 1rem}.adventure-quest-log__label{letter-spacing:.08em;text-transform:uppercase;color:#f6e7b28c;margin:0 0 .5rem;font-size:.6875rem;font-weight:600}.adventure-quest-log ul{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.adventure-quest-log li{color:#e2e8f073;align-items:center;gap:.45rem;font-size:.8125rem;display:flex}.adventure-quest-log li.is-active{color:#fde68a;font-weight:600}.adventure-quest-log li.is-complete{color:#bbf7d0e6}.adventure-quest-log__icon{text-align:center;flex-shrink:0;width:1rem}@media (prefers-reduced-motion:reduce){.adventure-hud-npc-hint{animation:none}}.adventure-pickup-toast{bottom:calc(5.5rem + env(safe-area-inset-bottom,0px));z-index:99;color:#fde68a;pointer-events:none;background:#16130f;border:1px solid #6e5a32;border-radius:0;padding:.65rem 1.1rem;font-size:.875rem;font-weight:600;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 12px 32px #00000059}.adventure-inventory-panel{color:#f6e7b2;background:linear-gradient(#1a1612 0%,#0e0c0a 100%);border:2px solid #6e5a32;border-radius:0;width:min(100%,28rem);max-height:min(85dvh,520px);overflow:auto;box-shadow:inset 0 0 0 1px #ffffff0a,0 24px 60px #00000073}.adventure-inventory-panel__header{border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem;display:flex}.adventure-inventory-panel__header h2{margin:0;font-size:1.125rem}.adventure-inventory-panel__empty{color:#f6e7b2a6;margin:0;padding:1.25rem 1rem 1.5rem;font-size:.875rem}.adventure-inventory-list{gap:.35rem;margin:0;padding:.5rem;list-style:none;display:grid}.adventure-inventory-item{width:100%;color:inherit;text-align:left;cursor:pointer;background:#1a1814;border:1px solid #6b5b3e;border-radius:0;grid-template-columns:auto 1fr auto;align-items:center;gap:.65rem;padding:.75rem;display:grid}.adventure-inventory-item:hover{background:#ffffff14;border-color:#fbbf2459}.adventure-inventory-item__icon{font-size:1.35rem;line-height:1}.adventure-inventory-item__copy{flex-direction:column;gap:.2rem;min-width:0;display:flex}.adventure-inventory-item__title{color:#fde68a;font-size:.875rem;font-weight:600}.adventure-inventory-item__excerpt{color:#f6e7b2a6;font-size:.75rem;line-height:1.4}.adventure-inventory-item__action{color:#e6c35c;white-space:nowrap;font-size:.75rem;font-weight:600}.adventure-scroll-reader{flex-direction:column;align-items:center;gap:1rem;width:min(100%,36rem);max-height:min(90dvh,640px);display:flex}.adventure-scroll-reader__paper{color:#2c1810;background:linear-gradient(#f4e4bcf7 0%,#ebd7aafa 100%);border:2px solid #8b6914;border-radius:.35rem;width:100%;max-height:min(75dvh,540px);padding:1.75rem 1.5rem;overflow:auto;box-shadow:inset 0 0 0 1px #8b691440,0 20px 50px #0006}.adventure-scroll-reader__paper h2{color:#5c3d1e;margin:0 0 1rem;font-size:1.25rem;line-height:1.3}.adventure-scroll-reader__paper p{margin:0 0 .85rem;font-size:.9375rem;line-height:1.6}.adventure-scroll-reader__link{color:#1d4ed8;margin-top:.5rem;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex}.adventure-scroll-reader__link:hover{text-decoration:underline}.adventure-combat{flex-direction:column;display:flex;position:absolute;inset:0}.adventure-combat__canvas{flex:1}.adventure-combat-overlay{z-index:3;pointer-events:none;position:absolute;inset:0}.adventure-combat-overlay__top{justify-content:space-between;align-items:flex-start;gap:1rem;padding:.65rem .85rem;display:flex}.adventure-combat-moves{color:#94a3b8;white-space:nowrap;background:#16130f;border:1px solid #6e5a32;border-radius:0;margin:0;padding:.35rem .65rem;font-size:.75rem}.adventure-combat-moves strong{color:#e6c35c;font-weight:700}.adventure-combat-hint{color:#fde68a;text-align:center;background:#16130f;border:1px solid #6e5a32;border-radius:0;max-width:min(22rem,90vw);margin:0;padding:.35rem .75rem;font-size:.75rem;position:absolute;top:3.25rem;left:50%;transform:translate(-50%)}.adventure-combat-log{color:#e2e8f0cc;background:#16130f;border:1px solid #6e5a32;border-radius:0;max-width:min(16rem,55vw);max-height:4.25rem;margin:0;padding:.35rem .55rem;font-size:.6875rem;list-style:none;overflow:hidden}.adventure-combat-log li{margin:.12rem 0;line-height:1.35}.adventure-spell-bar{z-index:100;width:100%;max-width:none;padding:.4rem .7rem calc(.4rem + env(safe-area-inset-bottom,0px));background:#0e0e0e;border:none;border-top:2px solid #6e5a32;border-radius:0;justify-content:center;align-items:center;gap:2px;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-x:auto;transform:none;box-shadow:0 -10px 28px #0000008c}.adventure-spell-bar:not(.adventure-spell-bar--embedded){padding-left:4.5rem}.adventure-spell-slot{color:#f6e7b2;cursor:pointer;background:#1a1814;border:1px solid #6b5b3e;border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:.15rem;width:3.15rem;height:3.15rem;padding:.2rem;transition:background .15s,box-shadow .15s;display:flex;position:relative}.adventure-spell-slot:hover:not(:disabled){background:#ffffff1a}.adventure-spell-slot.is-active{background:#2a2418;box-shadow:inset 0 0 0 2px #e6c35c}.adventure-spell-slot.is-locked{opacity:.45;cursor:not-allowed}.adventure-spell-slot:disabled:not(.is-locked):not(.is-preview){opacity:.55;cursor:not-allowed}.adventure-spell-slot.is-preview,.adventure-spell-slot.is-preview:disabled{opacity:1;color:#f6e7b2;cursor:default}.adventure-spell-slot:disabled{pointer-events:none}.adventure-spell-slot--attack.is-active,.adventure-spell-slot--heal.is-active,.adventure-spell-slot--defense.is-active{box-shadow:inset 0 0 0 2px #e6c35c}.adventure-spell-slot__img{object-fit:contain;pointer-events:none;width:2.25rem;height:2.25rem}.adventure-spell-slot__label{display:none}.adventure-spell-slot__key{color:#f6e7b2;font-size:.5625rem;font-weight:700;position:absolute;top:.2rem;right:.25rem}.adventure-spell-slot-wrap{flex:none;display:flex;position:relative}.adventure-spell-tip{z-index:140;pointer-events:none;background:#16130f;border:1px solid #6e5a32;width:max-content;max-width:13.5rem;padding:.45rem .6rem .5rem;position:fixed;transform:translate(-50%,-100%);box-shadow:0 8px 20px #00000073}.adventure-spell-tip__name,.adventure-spell-tip__effect,.adventure-spell-tip__hint{margin:0}.adventure-spell-tip__name{color:#e6c35c;font-size:.8125rem;font-weight:700}.adventure-spell-tip__effect{color:#f6e7b2;margin-top:.2rem;font-size:.75rem;line-height:1.35}.adventure-spell-tip__hint{color:#f6e7b29e;margin-top:.3rem;font-size:.6875rem}.adventure-end-turn{right:1rem;bottom:calc(4.35rem + env(safe-area-inset-bottom,0px));z-index:101;color:#fde68a;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;background:#141008f0;border:2px solid #fbbf2473;border-radius:0;padding:.65rem 1.1rem;font-size:.8125rem;font-weight:700;transition:background .15s,border-color .15s;position:fixed;box-shadow:0 4px 20px #00000059}.adventure-end-turn:hover:not(:disabled){background:#28200cf5;border-color:#fbbf24b3}.adventure-end-turn:disabled{opacity:.45;cursor:not-allowed}.adventure-action-bar{z-index:40;min-height:4.15rem;padding:.4rem .7rem calc(.4rem + env(safe-area-inset-bottom,0px));pointer-events:auto;background:#0e0e0e;border-top:2px solid #6e5a32;justify-content:center;align-items:center;gap:.55rem;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-x:auto;box-shadow:0 -10px 28px #0000008c}.adventure-action-bar>*{pointer-events:auto}.adventure-level{background:#1a1814;border:1px solid #6b5b3e;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:.12rem;min-width:2.75rem;height:3.15rem;margin:0;padding:0 .3rem;display:flex}.adventure-level__value{color:#e6c35c;font-variant-numeric:tabular-nums;font-size:1.15rem;font-weight:800;line-height:1}.adventure-level__label{letter-spacing:.08em;text-transform:uppercase;color:#f6e7b2;font-size:.5625rem;font-weight:700;line-height:1}.adventure-spell-bar>.adventure-level{position:absolute;left:.7rem}.adventure-sound-btn{left:2.55rem;bottom:calc(4.55rem + env(safe-area-inset-bottom,0px));z-index:110;color:#e6c35c;cursor:pointer;background:#1a1814;border:1px solid #6b5b3e;place-items:center;width:1.7rem;height:1.7rem;padding:0;font-size:1rem;line-height:1;display:grid;position:fixed}.adventure-sound-btn:hover{background:#241c12;border-color:#e6c35c}.adventure-sound-btn.is-muted{color:#f6e7b259}.adventure-sound-btn.is-muted:after{content:"";background:#e6c35c;width:1.15rem;height:1px;position:absolute;top:50%;left:.22rem;transform:rotate(-35deg)}.adventure-credits-btn{left:.65rem;bottom:calc(4.55rem + env(safe-area-inset-bottom,0px));z-index:110;color:#e6c35c;cursor:pointer;background:#1a1814;border:1px solid #6b5b3e;place-items:center;width:1.7rem;height:1.7rem;padding:0;font-family:Georgia,Times New Roman,serif;font-size:1.05rem;font-style:italic;font-weight:700;line-height:1;display:grid;position:fixed}.adventure-credits-btn:hover{background:#241c12;border-color:#e6c35c}.adventure-credits{z-index:130}.adventure-credits__panel{width:min(100%,28rem);padding:1.15rem 1.15rem 1rem}.adventure-credits__panel h2{color:#f6e7b2;margin:0 0 .85rem;font-size:1.35rem}.adventure-credits__list{gap:.75rem;margin:0 0 1rem;padding:0;list-style:none;display:grid}.adventure-credits__role,.adventure-credits__meta{margin:0}.adventure-credits__role{color:#f6e7b2;font-size:.9375rem;font-weight:700}.adventure-credits__meta{color:#e6c35c;margin-top:.15rem;font-size:.8125rem}.adventure-credits__list a{color:#f6e7b2cc;overflow-wrap:anywhere;margin-top:.2rem;font-size:.75rem;line-height:1.4;display:inline-block}.adventure-credits__list a:hover{color:#e6c35c}.adventure-hp{color:#fff;flex:none;align-items:center;gap:.4rem;display:flex}.adventure-hp__heart{filter:drop-shadow(0 1px #4a1010);flex:none;width:1.85rem;height:1.7rem}.adventure-hp__stack{flex-direction:column;gap:.2rem;display:flex}.adventure-hp__value,.adventure-hp__max{letter-spacing:-.03em;font-variant-numeric:tabular-nums;font-size:.95rem;font-weight:800;line-height:1}.adventure-hp__max{color:#ffffffb8}.adventure-action-bar__spells,.adventure-action-bar__menus{align-items:center;gap:2px;min-width:0;display:flex}.adventure-action-bar__menus{margin-left:.35rem}.adventure-slot{color:#f6e7b2;cursor:pointer;background:#1a1814;border:1px solid #6b5b3e;flex:none;place-items:center;width:3.15rem;height:3.15rem;padding:0;display:grid;position:relative}.adventure-slot:hover,.adventure-slot.is-open{background:#241c12;border-color:#e6c35c}.adventure-slot.is-open{box-shadow:inset 0 0 0 2px #e6c35c}.adventure-slot__icon{width:1.45rem;height:1.45rem}.adventure-slot__key{color:#f6e7b2;font-size:.62rem;font-weight:800;line-height:1;position:absolute;top:1px;right:3px}.adventure-slot__badge{color:#1a1208;text-align:center;background:#fbbf24;border-radius:0;min-width:.85rem;height:.85rem;padding:0 .12rem;font-size:.62rem;font-weight:800;line-height:.85rem;position:absolute;bottom:2px;left:2px}.adventure-slot__badge.is-muted{color:#1f2937;background:#9ca3af}.adventure-slot__fill{pointer-events:none;background:#e6c35c73;position:absolute;bottom:0;left:0;right:0}.adventure-slot__count{z-index:1;font-size:1.05rem;font-weight:800;position:relative}.adventure-slot.is-casting{border-color:#e6c35c}.adventure-quest-log__active{background:#ffffff0a;border:1px solid #fbbf2459;margin:.75rem;padding:.85rem}.adventure-quest-log__active--turnIn{border-color:#fbbf24b3}.adventure-quest-log__active--active{border-color:#9ca3af73}.adventure-quest-log__status{letter-spacing:.06em;text-transform:uppercase;color:#fbbf24;margin:0 0 .35rem;font-size:.6875rem;font-weight:700}.adventure-quest-log__active--active .adventure-quest-log__status{color:#9ca3af}.adventure-quest-log__title{color:#fde68a;margin:0 0 .4rem;font-size:.95rem}.adventure-quest-log__next{letter-spacing:.06em;text-transform:uppercase;color:#e6c35c;margin:0 0 .25rem;font-size:.6875rem;font-weight:700}.adventure-quest-log__objective{white-space:pre-line;color:#f6e7b2d1;margin:0;font-size:.8125rem;line-height:1.45}.adventure-scroll-found{z-index:120}.adventure-scroll-found__panel{width:min(100%,26rem);padding:1.15rem 1.15rem 1rem}.adventure-scroll-found__kicker{letter-spacing:.08em;text-transform:uppercase;color:#e6c35c;margin:0;font-size:.75rem;font-weight:700}.adventure-scroll-found__panel h2{color:#f6e7b2;margin:.2rem 0 .65rem;font-size:1.35rem}.adventure-scroll-found__scroll{color:#f6e7b2;margin:0 0 .75rem;font-size:1rem;font-weight:700}.adventure-scroll-found__body{color:#f6e7b2e6;margin:0 0 1rem;font-size:.9375rem;line-height:1.55}.adventure-quest-log__done{padding:0 .75rem .9rem}.adventure-quest-log__heading{letter-spacing:.06em;text-transform:uppercase;color:#f6e7b28c;margin:.25rem 0 .45rem;font-size:.6875rem;font-weight:700}.adventure-quest-log__list{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.adventure-quest-log__list li{background:#ffffff08;border:1px solid #ffffff14;grid-template-columns:auto 1fr auto;align-items:center;gap:.5rem;padding:.55rem .65rem;font-size:.8125rem;display:grid}.adventure-quest-log__done-mark{color:#e6c35c;font-weight:700}.adventure-quest-log__done-label{letter-spacing:.04em;text-transform:uppercase;color:#e6c35ccc;font-size:.6875rem;font-weight:700}.adventure-spell-bar--embedded{width:auto;max-width:min(34rem,48vw);box-shadow:none;background:0 0;border:none;gap:2px;padding:0;position:static;bottom:auto;left:auto;transform:none}@media (max-width:640px){.adventure-spell-slot__label{display:none}.adventure-spell-slot,.adventure-slot,.adventure-level{width:2.85rem;height:2.85rem}.adventure-end-turn{right:.5rem;bottom:calc(4.25rem + env(safe-area-inset-bottom,0px));padding:.5rem .75rem;font-size:.6875rem}}
