/* A single close-up surface for stories, quest people and island visits. */
.pq-story281__bubble[data-story284-advance]{cursor:pointer;touch-action:manipulation}
.pq-story281__bubble[data-story284-advance]:focus-visible{outline:3px solid var(--gr-control-focus,#6cb6ff);outline-offset:3px}
.pq-story281__bubble[aria-disabled="true"]{cursor:default}
.pq-story281{position:absolute;inset:0;z-index:35;overflow:hidden;isolation:isolate;background:#102f3a;color:#fff0cc;border-radius:inherit;min-width:0;min-height:0;font-family:inherit}
.pq-story281[hidden],.pq-story281 [hidden]{display:none!important}
.pq-story281__art,.pq-story281__shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pq-story281__shade{background:linear-gradient(180deg,rgba(3,19,30,.17),transparent 38%,transparent 68%,rgba(3,19,30,.76))}
.pq-story281__heading{position:absolute;top:16px;left:18px;right:190px;font-size:clamp(14px,1.2vw,17px);font-weight:700;letter-spacing:.07em;text-shadow:0 2px 4px #001922}
.pq-story281__bubble{font-family:Arial,Helvetica,sans-serif;position:absolute;left:48%;right:4%;top:13%;margin:0;padding:clamp(17px,2.3vw,30px);background:linear-gradient(135deg,#fff3d8,#e9d8af);color:#173c43;border:2px solid #ab8650;border-radius:24px;box-shadow:0 12px 34px #00192650;max-height:57%;box-sizing:border-box;overflow:visible;display:flex;flex-direction:column}
.pq-story281__bubble strong{display:block;font-size:clamp(14px,1.2vw,16px);margin-bottom:9px;color:#724722;letter-spacing:.025em}
.pq-story281__bubble p{margin:0;font-size:clamp(18px,1.6vw,21px);line-height:1.4;font-family:Arial,Helvetica,sans-serif;max-height:40vh;min-height:0;flex:1 1 auto;overflow:auto;scrollbar-width:thin}
/* Generic modal copy uses light ink; speech keeps dark ink on its pale paper. */
.pq-app .pq-story281 .pq-story281__bubble p.pq-story281__text{color:#173c43}
.pq-story281__tail{position:absolute;left:-23px;bottom:25px;width:30px;height:25px;background:#f6e9cc;clip-path:polygon(100% 0,100% 100%,0 100%);border-bottom:2px solid #ab8650;transform:rotate(-12deg)}
.pq-story281__choices{position:absolute;left:5%;right:5%;bottom:86px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;max-height:35%;overflow:auto;padding:10px;box-sizing:border-box}
.pq-story281__choices .pq-button{flex:0 1 auto;white-space:normal;font-size:var(--pq-font-button);min-height:48px;padding:11px 20px}
.pq-story281__leave.pq-button{position:absolute!important;bottom:18px!important;right:20px!important;left:auto!important;top:auto!important;min-height:46px!important;font-size:var(--pq-font-button)!important;background:#153b43ed!important;color:#ffefc6!important;border:1px solid #d7ba79!important;border-radius:14px!important;padding:10px 19px!important;max-width:calc(100% - 40px);white-space:normal;z-index:4}
.pq-story281__meta{position:absolute;bottom:21px;left:20px;right:240px;font-size:var(--pq-font-meta);line-height:1.35;text-shadow:0 2px 4px #001922;max-height:55px;overflow:auto}
.pq-story281__meta p{margin:0}
/* A fixed quest owns the usable browser viewport. Embedded NPCs keep their
   existing playfield and use the same container-based scene layout. */
.pq-app dialog.pq-story281-dialog[open] {
 position:fixed; inset:0; width:100%; width:100dvw; height:100%; height:100dvh;
 max-width:none; max-height:none; margin:0; padding:0; overflow:hidden; background:#103540;
}
.pq-app dialog.pq-story281-dialog[open] > .gr-dialog__body {
 display:flex; flex:1 1 0; flex-direction:column; justify-content:flex-start;
 width:100%; max-width:none; min-height:0; min-width:0; margin:0;
 padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
 overflow:hidden; scrollbar-gutter:auto;
}
.pq-story281-mount { position:relative; flex:1 1 0; width:100%; min-width:0; min-height:0; overflow:hidden; }
@media(max-width:650px){.pq-story281__heading{top:13px;left:14px;right:14px;font-size:14px}.pq-story281__bubble{left:5%;right:5%;top:8%;max-height:43%;padding:17px;border-radius:19px}.pq-story281__bubble p{font-size:18px;line-height:1.35;max-height:30dvh}.pq-story281__bubble strong{font-size:14px;margin-bottom:7px}.pq-story281__tail{left:25px;bottom:-22px;transform:rotate(-85deg)}.pq-story281__choices{left:3%;right:3%;bottom:77px;max-height:30%;padding:5px}.pq-story281__choices .pq-button{font-size:15px;padding:9px 12px;min-height:44px}.pq-story281__leave.pq-button{bottom:14px!important;right:14px!important}.pq-story281__meta{left:14px;right:14px;bottom:72px;max-height:49px;font-size:14px}}
@media(max-height:430px)and(min-width:651px){.pq-story281__bubble{top:8%;max-height:61%;padding:13px 17px}.pq-story281__bubble p{font-size:18px;line-height:1.3;max-height:39vh}.pq-story281__bubble strong{font-size:14px;margin-bottom:4px}.pq-story281__choices{bottom:65px;max-height:45%}.pq-story281__leave.pq-button{bottom:11px!important;min-height:44px!important;padding:7px 13px!important}}

.pq-island281-receipts{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:45;width:min(80%,620px);pointer-events:none}.pq-island281-receipts:empty{display:none}

.pq-app .pq-tavern.pq-tavern--island-story281{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important}
.pq-tavern--island-story281>.pq-tavern__head,.pq-tavern--island-story281>.pq-tavern__body{visibility:hidden;pointer-events:none}
.pq-tavern--island-story281 .pq-tavern__conversation{display:none!important}

/* Exact container measurements, shared by first show and every resize, own
   these bounds. Viewport media rules never turn replies into clipped rows. */
.pq-story281__choices{border:1px solid #b5a67766;border-radius:14px;background:linear-gradient(145deg,#183d47f7,#092c38f5);overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:8px}
.pq-story281__choices .pq-button{box-sizing:border-box;overflow-wrap:normal;word-break:normal;align-items:center}
.pq-story283-choice-label{min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal}
.pq-story281__choices .pq-button > svg,
.pq-story281__choices .pq-story316-delta > svg,
.pq-story281__choices .pq-action-icon180 > svg{width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px!important}
.pq-story281__choices .pq-button.pq-story316-repair,.pq-story281__choices .pq-button.pq-story317-supplies{flex-wrap:wrap;column-gap:8px;row-gap:4px}
.pq-story316-repair .pq-story283-choice-label,.pq-story317-supplies .pq-story283-choice-label{flex:0 0 auto;white-space:nowrap!important}
.pq-story316-delta{display:inline-flex;align-items:center;gap:4px;white-space:nowrap!important;flex:0 0 auto;font-variant-numeric:tabular-nums}
.pq-story281__leave svg{width:22px!important;height:22px!important;flex:0 0 22px!important}

.pq-story281__bubble p,.pq-story282-word{animation:none;transition:none!important}.pq-story281__leave{animation:none!important;transition:none!important;opacity:1!important;transform:none!important}.pq-story282-word{display:inline}

@keyframes pq-story282-word{from{opacity:0}to{opacity:1}}@keyframes pq-story282-block{from{opacity:1}to{opacity:0}}

.pq-story334-log{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9f895d transparent;touch-action:pan-y;text-align:left}
.pq-story334-log:focus-visible{outline:2px solid var(--gr-control-focus,#6cb6ff);outline-offset:-2px}
.pq-story334-entry{padding:3px 3px 4px;overflow-wrap:anywhere}
.pq-story334-entry.pq-story334-new-turn{border-top:1px solid #a1834b55;padding-top:7px}
.pq-story281__bubble .pq-story334-entry strong{font:700 14px/1.3 Arial,sans-serif;margin:0 0 2px}
.pq-story281 .pq-story281__bubble .pq-story334-entry p{font:16px/1.4 Arial,sans-serif;max-height:none;overflow:visible;margin:0}
.pq-story334-log [data-story334-history]:not(:empty) + [data-story334-current]{padding-top:6px}
.pq-story281__bubble.pq-story334-archive{border-radius:14px;cursor:auto}
.pq-story334-archive .pq-story281__tail{display:none}
