.pq-enc150{position:absolute;inset:0;z-index:19;overflow:hidden;background:#06192a;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:clamp(12px,2.8vh,28px);color:#fff3cf;text-align:center;box-shadow:inset 0 0 80px #0008;isolation:isolate}.pq-enc150 canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}.pq-enc150__shade{position:absolute;inset:0;background:linear-gradient(#021526bb,transparent 34%,transparent 57%,#021526dc);z-index:-1;pointer-events:none}.pq-enc150 header{position:absolute;top:clamp(12px,3vh,30px);left:6%;right:6%;pointer-events:none}.pq-enc150 h2{font-size:clamp(22px,3.6vh,36px);margin:.15em 0;text-shadow:0 3px 16px #000}.pq-enc150 header p{font-size:clamp(13px,1.9vh,17px);max-width:680px;margin:.35em auto;line-height:1.4}.pq-enc150__eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:10px;color:#a5edf1;font-weight:800}.pq-enc150__controls{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;max-width:880px}.pq-enc150 button{appearance:none;border:1px solid #f8e2aa8f;border-radius:10px;background:linear-gradient(#497789,#16374d 55%,#0c233b);box-shadow:inset 0 1px 0 #fff6,0 5px 14px #0007;color:#fff1ca;padding:11px 19px;font:700 14px/1.2 system-ui;cursor:pointer;min-height:44px;touch-action:none}.pq-enc150 button:hover{filter:brightness(1.2)}.pq-enc150 button:focus-visible{outline:3px solid #a1ffff;outline-offset:3px}.pq-enc150 button:active{transform:translateY(1px);filter:brightness(1.3)}.pq-enc150 button:disabled{opacity:.5;cursor:default}.pq-enc150__hint{display:flex;flex-direction:column;gap:4px;margin:12px auto 0;max-width:720px;font:12px/1.4 system-ui;color:#c9e5e9}.pq-enc150 kbd{display:inline-block;min-width:21px;padding:2px 5px;margin:0 2px;border:1px solid #a2c7d1;border-bottom-width:3px;border-radius:5px;background:#173a50;color:#fff5d6;font:700 11px system-ui}.pq-enc150__feedback{min-height:16px;margin:8px 0 0;color:#ffd092;font:13px system-ui}.pq-enc150__health{position:absolute;top:165px;left:9%;right:9%;display:flex;justify-content:space-between;gap:30px;pointer-events:none}.pq-enc150__health>div{width:min(39%,300px);display:flex;flex-wrap:wrap;align-items:center;gap:7px;font:700 12px system-ui;text-align:left}.pq-enc150__health span{flex:1;color:#e1f6f5}.pq-enc150__health strong{width:28px;text-align:right}.pq-enc150__health i{order:3;display:block;width:100%;height:12px;border:1px solid #cdf6ed8c;border-radius:10px;overflow:hidden;background:#031726;box-shadow:0 2px 8px #0008}.pq-enc150__health b{display:block;height:100%;background:linear-gradient(#eaffc1,#6ed4b2 45%,#238f9b);box-shadow:inset 0 1px 0 #fff7}.pq-enc150__health>div+div b{background:linear-gradient(#ffd29b,#e67481 45%,#944b86)}.pq-enc150__touch{display:flex;gap:6px;align-items:center}.pq-enc150__touch button{min-width:50px;padding:12px 13px}.pq-enc150--waiting{background:none;pointer-events:none;box-shadow:none;align-items:flex-end;justify-content:flex-end;padding:12px}.pq-enc150--waiting header{position:static;width:270px;text-align:left;border-radius:12px 12px 0 0;background:#071f37e8;padding:13px 16px 3px;pointer-events:auto;border:1px solid #9edbdb66;border-bottom:0}.pq-enc150--waiting header h2{font-size:18px}.pq-enc150--waiting header p{font-size:12px}.pq-enc150--waiting .pq-enc150__shade{display:none}.pq-enc150--waiting .pq-enc150__controls,.pq-enc150--waiting .pq-enc150__hint{pointer-events:auto;width:270px;background:#071f37e8;padding:9px 12px;margin:0}.pq-enc150--waiting .pq-enc150__controls{border:1px solid #9edbdb66;border-top:0;border-bottom:0}.pq-enc150--waiting .pq-enc150__hint{border:1px solid #9edbdb66;border-top:0;border-radius:0 0 12px 12px;text-align:left}.pq-enc150--waiting .pq-enc150__feedback{display:none}.pq-enc150--waiting button{padding:9px 12px;font-size:12px}.pq-enc150--duel canvas{pointer-events:auto;touch-action:none}.pq-enc150--duel .pq-enc150__controls{position:relative}.pq-enc150--duel .pq-enc150__touch button:nth-child(4){background:linear-gradient(#c18b48,#775234 60%,#493d37)}@media(max-height:500px){.pq-enc150{padding:9px}.pq-enc150 header{top:8px}.pq-enc150 h2{font-size:22px}.pq-enc150 header p{font-size:12px;max-width:590px}.pq-enc150__health{top:110px;left:5%;right:5%}.pq-enc150__hint{font-size:10px;margin-top:6px}.pq-enc150__hint span+span{display:none}.pq-enc150 button{padding:9px 13px;font-size:12px}.pq-enc150__feedback{margin:2px 0 0;min-height:12px}}@media(max-width:500px){.pq-enc150 header{left:4%;right:4%}.pq-enc150__health{top:156px;left:5%;right:5%;gap:12px}.pq-enc150__health>div{width:46%}.pq-enc150__controls{gap:6px}.pq-enc150 button{padding:10px 13px}.pq-enc150__touch{gap:4px}.pq-enc150__touch button{min-width:42px;font-size:11px;padding:11px 8px}.pq-enc150__hint{font-size:10px}.pq-enc150--waiting header,.pq-enc150--waiting .pq-enc150__controls,.pq-enc150--waiting .pq-enc150__hint{width:230px}.pq-enc150--waiting .pq-enc150__health{display:none}}@media(prefers-reduced-motion:reduce){.pq-enc150 button{transition:none}.pq-enc150 button:active{transform:none}}
/* Shore combat152: the arena stays clear; the handbook owns the full guide. */
.pq-enc150--duel header,.pq-enc150--duel .pq-enc150__hint,.pq-enc150--duel-result header,.pq-enc150--duel-result .pq-enc150__hint{display:none}
.pq-enc150--duel .pq-enc150__health{top:26px;left:6%;right:6%;gap:32px}
.pq-enc150--duel .pq-enc150__health>div{width:min(40%,300px);filter:drop-shadow(0 3px 9px #031827)}
.pq-enc150__guard{order:4;display:block;width:75%;height:4px;margin-top:-2px;border-radius:5px;background:#061d36bd;overflow:hidden}
.pq-enc150__guard b{display:block;height:100%;background:linear-gradient(90deg,#5dbddc,#c5ffff);box-shadow:none}
.pq-enc150--duel .pq-enc150__controls{width:100%;max-width:none;justify-content:space-between;gap:16px}
.pq-enc150--duel .pq-enc150__touch{flex:1;display:grid;grid-template-columns:52px 52px 1fr 72px 80px 72px;gap:8px}
.pq-enc150--duel .pq-enc150__touch button:nth-child(3){grid-column:4}
.pq-enc150--duel .pq-enc150__touch button{height:54px;border-radius:14px;background:linear-gradient(#536f88,#243f5a 55%,#132c46);box-shadow:inset 0 1px 0 #f6f4d780,inset 0 -2px 0 #05192999,0 5px 12px #0006}
.pq-enc150--duel .pq-enc150__touch button:nth-child(4){background:linear-gradient(#e2b568,#9b653e 56%,#5b3e38);border-color:#ffdf92}
.pq-enc150--duel .pq-enc150__touch button:nth-child(5){background:linear-gradient(#5e9cad,#35657e 56%,#1d3e5e)}
.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);min-height:32px;padding:6px 14px;font-size:11px;background:#082539b8;box-shadow:none;border-color:#a3cad15c}
.pq-enc150--duel .pq-enc150__feedback{position:absolute;left:20%;right:20%;bottom:85px;pointer-events:none}
.pq-enc150--confirming .pq-enc150__touch{opacity:.35;pointer-events:none}
.pq-enc150__quickhelp{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);width:min(660px,88%);max-height:88%;overflow:auto;padding:28px 32px;border:1px solid #b8f7f6a3;border-radius:24px;background:linear-gradient(135deg,#214c65f5,#0b263ff5);box-shadow:inset 0 1px 0 #d6ffff70,0 22px 70px #00101bc9;backdrop-filter:blur(14px);text-align:left}
.pq-enc150__quickhelp[hidden],.pq-enc150__result[hidden]{display:none}
.pq-enc150__quickhelp h3{font-size:clamp(20px,3vh,30px);margin:8px 0 18px;color:#ffedb2}
.pq-enc150__quickhelp>.pq-enc150__guidekeys{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;padding-bottom:14px;border-bottom:1px solid #bef0ed3b}
.pq-enc150__quickhelp p{font:13px/1.6 system-ui;color:#ddf0ee;margin:3px 0 12px}
.pq-enc150__quickhelp small{font:11px system-ui;color:#a8d1da}
.pq-enc150--paused .pq-enc150__controls,.pq-enc150--paused .pq-enc150__health{opacity:.2;pointer-events:none}
.pq-enc150--paused .pq-enc150__shade{background:#001526a6}
.pq-enc150__result{position:absolute;right:6%;top:50%;transform:translateY(-50%);width:48%;max-height:83%;overflow:auto;padding:26px;border-radius:25px;border:1px solid #ffe8a5b3;background:linear-gradient(145deg,#26495cf2,#0d2945f5 60%,#10213df5);box-shadow:inset 0 1px 0 #fff3c870,inset 0 -2px 0 #02152c,0 20px 65px #001625b0;text-align:left;backdrop-filter:blur(10px)}
.pq-enc150__result h2{font:800 clamp(23px,3.5vh,35px)/1.1 system-ui;color:#fff1b8;margin:9px 0 22px;letter-spacing:-.025em}
.pq-enc150__reward-seal{float:right;width:56px;height:56px;margin-left:8px;color:#ffe4a1;border:1px solid #f4dba979;border-radius:50%;padding:9px;background:radial-gradient(circle at 35% 20%,#c2a35c80,#5d55492b);box-shadow:inset 0 1px 0 #fff3bb80,0 3px 12px #00172c}
.pq-enc150__reward-seal svg{width:100%;height:100%}
.pq-enc150__rewards{display:grid;gap:10px}
.pq-enc150__reward{display:flex;align-items:center;gap:13px;padding:13px 14px;border:1px solid #bed8db3b;border-radius:14px;background:linear-gradient(110deg,#d5f0ef11,#00203944);box-shadow:inset 0 1px 0 #d7ffff12}
.pq-enc150__reward>svg{width:38px;height:38px;flex-shrink:0;color:#c6f2e9}
.pq-enc150__reward--gold{border-color:#e8c97b77;background:linear-gradient(110deg,#c6a15733,#886f3b0a)}
.pq-enc150__reward--gold>svg{color:#ffdf8d}
.pq-enc150__reward strong{display:block;font:700 14px/1.3 system-ui;color:#eaf9ed}
.pq-enc150__reward strong b{font-size:21px;color:#ffe6a0;margin-right:4px}
.pq-enc150__reward p,.pq-enc150__reward-story{margin:5px 0 0;font:12px/1.5 system-ui;color:#bbd8df}
.pq-enc150__reward--lore{align-items:flex-start}
.pq-enc150--duel-result .pq-enc150__controls{position:absolute;right:6%;bottom:4%;width:48%;max-width:none}
.pq-enc150--duel-result .pq-enc150__controls button{min-width:180px;background:linear-gradient(#d9ad61,#92633b 55%,#594033);border-color:#ffdf9c}
.pq-enc150--duel-result .pq-enc150__feedback{position:absolute;right:6%;bottom:0;width:48%;font-size:11px}
@media(max-height:500px){.pq-enc150--duel .pq-enc150__health{top:13px}.pq-enc150--duel .pq-enc150__touch button{height:44px;min-height:44px}.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{bottom:1px}.pq-enc150__result{padding:16px 20px;max-height:78%;top:45%}.pq-enc150__result h2{font-size:25px;margin-bottom:12px}.pq-enc150__reward{padding:8px 10px;gap:9px}.pq-enc150__reward p{font-size:11px}.pq-enc150__reward-seal{width:44px;height:44px;padding:7px}.pq-enc150__reward strong b{font-size:18px}.pq-enc150--duel-result .pq-enc150__controls{bottom:3%}.pq-enc150__quickhelp{padding:16px 22px}.pq-enc150__quickhelp h3{margin:5px 0 10px}.pq-enc150__quickhelp p{font-size:12px;line-height:1.45;margin-bottom:7px}}
@media(max-width:600px){.pq-enc150--duel .pq-enc150__health{top:20px;left:5%;right:5%;gap:18px}.pq-enc150--duel .pq-enc150__health>div{width:45%}.pq-enc150--duel .pq-enc150__touch{grid-template-columns:42px 42px 1fr 53px 58px 53px;gap:5px}.pq-enc150--duel .pq-enc150__touch button{font-size:11px;padding:8px 4px;height:50px}.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{bottom:65px}.pq-enc150--duel .pq-enc150__feedback{left:6%;right:6%;bottom:108px}.pq-enc150__result{right:5%;width:90%;top:46%;max-height:70%;padding:22px;background:linear-gradient(145deg,#26495cf7,#0d2945fa 60%,#10213dfa)}.pq-enc150__result h2{font-size:27px}.pq-enc150--duel-result .pq-enc150__controls{right:5%;width:90%;bottom:6%}.pq-enc150--duel-result .pq-enc150__feedback{right:5%;width:90%;bottom:1%}.pq-enc150__quickhelp{padding:20px}.pq-enc150__quickhelp>.pq-enc150__guidekeys{grid-template-columns:1fr;gap:2px}.pq-enc150__quickhelp h3{margin-bottom:12px}}
/* The same shared scroll surface used by the handbook and voyage outcomes. */
.pq-enc150__quickhelp{display:flex;flex-direction:column;overflow:hidden}
.pq-enc150__quickbody{min-height:0;overflow:auto;flex:1;text-align:left}
.pq-enc150__quickhelp .pq-enc150__guidekeys{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;padding-bottom:14px;border-bottom:1px solid #bef0ed3b}
.pq-enc150__quickhelp .pq-enc150__quickactions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:15px;border-top:1px solid #bef0ed3b}
.pq-enc150__quickhelp p,.pq-enc150__quickhelp small{font:16px/1.55 system-ui}
.pq-enc150__quickhelp kbd{font-size:16px;min-width:26px;padding:3px 6px}
.pq-enc150__reward strong{font-size:16px}
.pq-enc150__reward p,.pq-enc150__reward-story{font-size:16px;line-height:1.5}
.pq-enc150 button,.pq-enc150--duel .pq-enc150__touch button,.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{font-size:16px}
.pq-enc150__quickhelp .gr-scrollbar{z-index:4}
.pq-enc150--duel-result>.gr-scrollbar{z-index:4}
@media(max-height:500px){.pq-enc150__quickhelp{padding:16px 22px}.pq-enc150__quickhelp .pq-enc150__quickactions{margin-top:10px;padding-top:10px}.pq-enc150__result{max-height:76%;top:43%}}
@media(max-width:600px){.pq-enc150__quickhelp .pq-enc150__guidekeys{grid-template-columns:1fr}.pq-enc150--duel .pq-enc150__touch button{font-size:16px}.pq-enc150__result{max-height:70%;top:43%}}
.pq-enc150__reward--loss153{border-color:#edb29b66;background:linear-gradient(110deg,#b14a3e26,#08263e33)}
.pq-enc150__reward--loss153 strong b{color:#ffc3ab}
.pq-enc150__result>.pq-enc150__rewards+.pq-enc150__rewards,.pq-enc150__reward-story+.pq-enc150__rewards{margin-top:16px}
/* Summary157 uses the width of each reward card, including narrow sidebars. */
.pq-enc150__reward>div{flex:1;min-width:0}
.pq-enc150__reward strong:has(>.pq-summary-amount157){display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0}
.pq-enc150__reward .pq-summary-label157{flex:1 1 10ch;min-width:0;overflow-wrap:anywhere}
.pq-enc150__reward strong>.pq-summary-amount157{flex:0 1 auto;min-width:0;max-width:100%;margin:0 0 0 auto;text-align:right;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
/* A failed final confirmation is a recoverable screen, not another live duel.
   Its actions must flow side by side rather than sharing the arena's one
   absolutely positioned Back to boat slot. */
.pq-enc150--confirming .pq-enc150__controls{position:relative;width:100%;max-width:880px;justify-content:center;gap:10px}
.pq-enc150--confirming .pq-enc150__controls>[data-enc150-command]{position:static;left:auto;bottom:auto;transform:none;min-height:44px;padding:10px 14px;font-size:16px}
.pq-enc150--confirming .pq-enc150__feedback{position:static;max-width:720px;margin:12px auto 0;font:16px/1.45 system-ui}
/* Sea encounters155 reserve independent rows for their title, health and
   orders. The scene can be much shorter than the browser's viewport. */
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"]),
.pq-enc150:not(.pq-enc150--waiting):has(.pq-enc150__controls>[data-enc150-command="fire"]){container-type:size;container-name:pq-sea-encounter155;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto auto auto;align-items:start;justify-items:center;gap:6px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>header,
.pq-enc150:not(.pq-enc150--waiting):has(.pq-enc150__controls>[data-enc150-command="fire"])>header{position:static;grid-column:1;grid-row:1;width:100%;min-width:0;pointer-events:auto}
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>.pq-enc150__health,
.pq-enc150:not(.pq-enc150--waiting):has(.pq-enc150__controls>[data-enc150-command="fire"])>.pq-enc150__health{position:static;grid-column:1;grid-row:2;width:min(90%,740px);gap:20px}
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>.pq-enc150__controls,
.pq-enc150:not(.pq-enc150--waiting):has(.pq-enc150__controls>[data-enc150-command="fire"])>.pq-enc150__controls{grid-column:1;grid-row:4;position:sticky;bottom:0;z-index:2;max-width:100%;margin:0;padding:4px;border-radius:12px;background:#062335d9}
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>.pq-enc150__hint,
.pq-enc150:not(.pq-enc150--waiting):has(.pq-enc150__controls>[data-enc150-command="fire"])>.pq-enc150__hint{grid-column:1;grid-row:5;margin:0;max-width:100%;font-size:16px}
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>.pq-enc150__feedback,
.pq-enc150:not(.pq-enc150--waiting):has(.pq-enc150__controls>[data-enc150-command="fire"])>.pq-enc150__feedback{grid-column:1;grid-row:6;min-height:0;margin:0;max-width:100%;font:16px/1.35 system-ui}
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>.pq-enc150__health:empty,
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="fire"])>.pq-enc150__health:empty,
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="ghost-fire"])>.pq-enc150__feedback:empty,
.pq-enc150:has(.pq-enc150__controls>[data-enc150-command="fire"])>.pq-enc150__feedback:empty{display:none}
@container pq-sea-encounter155 (max-height:320px){
 .pq-enc150>header{max-height:72px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .pq-enc150>header>.pq-enc150__eyebrow{display:none}
 .pq-enc150>header h2{margin:0 0 3px;font:700 20px/1.15 system-ui}
 .pq-enc150>header p{margin:0 auto;font:16px/1.3 system-ui}
 .pq-enc150>.pq-enc150__health{gap:16px}
 .pq-enc150>.pq-enc150__health>div{width:min(46%,300px);gap:3px 7px;font-size:16px}
 .pq-enc150>.pq-enc150__health i{height:8px}
 .pq-enc150>.pq-enc150__controls{gap:6px}
 .pq-enc150>.pq-enc150__controls>button{min-height:44px;padding:8px 12px;font-size:16px}
 .pq-enc150>.pq-enc150__hint{display:none}
 .pq-enc150>.pq-enc150__feedback{max-height:44px;overflow-y:auto;scrollbar-width:thin}
}
/* The optional waiting card must fit its scene while ocean navigation remains
   available. Its text already explains Engage and Let it pass. */
.pq-enc150--waiting{container-type:size;container-name:pq-waiting-encounter155;overflow-y:auto;overscroll-behavior:contain}
.pq-enc150--waiting>header,.pq-enc150--waiting>.pq-enc150__controls,.pq-enc150--waiting>.pq-enc150__hint{width:min(300px,100%);box-sizing:border-box}
@container pq-waiting-encounter155 (max-height:320px){
 .pq-enc150--waiting>header{max-height:90px;overflow-y:auto;padding:8px 12px 4px;scrollbar-width:thin}
 .pq-enc150--waiting>header>.pq-enc150__eyebrow{display:none}
 .pq-enc150--waiting>header h2{font-size:18px;margin:0 0 3px}
 .pq-enc150--waiting>header p{font-size:16px;line-height:1.3;margin:0}
 .pq-enc150--waiting>.pq-enc150__controls{position:sticky;bottom:0;gap:6px;padding:6px 10px;border-bottom:1px solid #9edbdb66;border-radius:0 0 12px 12px}
 .pq-enc150--waiting>.pq-enc150__controls>button{font-size:16px;min-height:44px;padding:8px 10px}
 .pq-enc150--waiting>.pq-enc150__hint{display:none}
}
/* Shore duels158: readable glass panels leave the animated arena unobstructed. */
.pq-enc150--duel{background:#071d2b;box-shadow:inset 0 0 45px #00132166}
.pq-enc150--duel .pq-enc150__shade{background:linear-gradient(#03162859,transparent 23%,transparent 74%,#051b3059)}
.pq-enc150--duel .pq-enc150__health{top:16px;left:4%;right:4%;gap:24px}
.pq-enc150--duel .pq-enc150__health>div{box-sizing:border-box;width:min(40%,320px);padding:9px 12px 10px;gap:5px 8px;border:1px solid #b6e7dc73;border-radius:13px;background:linear-gradient(140deg,#183f50e8,#092c3edc);box-shadow:inset 0 1px #f3ffe84d,0 4px 14px #00101f40;filter:none;font:600 16px/1.2 system-ui}
.pq-enc150--duel .pq-enc150__health>div+div{border-color:#edc4a879;background:linear-gradient(140deg,#563e48e8,#2d2a40e0)}
.pq-enc150--duel .pq-enc150__health strong{width:38px;font-size:18px;font-variant-numeric:tabular-nums;color:#f4edce}
.pq-enc150--duel .pq-enc150__health i{height:11px;border-color:#b8dfbd8c;box-shadow:inset 0 2px 5px #001b2b,0 1px #092436}
.pq-enc150--duel .pq-enc150__health i b{background:linear-gradient(#e7f7b4,#8fdbbc 35%,#4da4a5 84%,#2e7b8f);box-shadow:inset 0 1px #f7ffe8c4}
.pq-enc150--duel .pq-enc150__health>div+div i b{background:linear-gradient(#fbd3a1,#e7967c 35%,#b25e71 84%,#7d465f)}
.pq-enc150--duel .pq-enc150__guard{width:88%;height:3px;margin-top:1px;background:#041b2dc9}
.pq-enc150--duel .pq-enc150__guard b{background:linear-gradient(90deg,#4c9fb7,#b1e8dc);box-shadow:none}
.pq-enc150--duel .pq-enc150__touch button{min-height:48px;height:54px;border:1px solid #b4d8d8a6;border-radius:12px;background:linear-gradient(145deg,#527789,#29495e 55%,#122d43);box-shadow:inset 0 1px #efffe67a,inset 0 -2px #001526a6,0 4px 10px #00111f70;font:600 16px/1.15 system-ui;letter-spacing:.01em}
.pq-enc150--duel .pq-enc150__touch button:nth-child(3){border-color:#b7dec594;background:linear-gradient(145deg,#669789,#356a6c 55%,#214451)}
.pq-enc150--duel .pq-enc150__touch button:nth-child(4){border-color:#ffe5a4;background:linear-gradient(145deg,#e5bc77,#a77848 52%,#634631);color:#fff5d6}
.pq-enc150--duel .pq-enc150__touch button:nth-child(5){border-color:#b7e9ecb3;background:linear-gradient(145deg,#70a7b3,#3d728b 55%,#254b68)}
.pq-enc150--duel .pq-enc150__touch button:active{transform:translateY(2px);filter:brightness(1.12);box-shadow:inset 0 2px 6px #00172580,0 1px 3px #00111f70}
.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{min-height:44px;border-radius:10px;padding:9px 14px;font:500 16px/1.2 system-ui;background:#092a3ce8;border-color:#b4cfca66;color:#e6dfc8}
.pq-enc150--duel .pq-enc150__feedback{padding:8px 12px;border-radius:10px;color:#f7dcad;background:#082637d9;min-height:0;font:16px/1.3 system-ui}
.pq-enc150--duel .pq-enc150__feedback:empty{display:none}
.pq-enc150--duel .pq-enc150__quickhelp{border-color:#d1d6b59c;background:linear-gradient(145deg,#254e63fa,#102e43fa);box-shadow:inset 0 1px #f0f4d359,0 20px 70px #00121bd9}
.pq-enc150--duel.pq-enc150--paused .pq-enc150__shade{background:#0013219c}
@media(max-width:600px){.pq-enc150--duel .pq-enc150__health{top:12px;left:3%;right:3%;gap:12px}.pq-enc150--duel .pq-enc150__health>div{width:46%;padding:7px 9px;gap:4px 6px}.pq-enc150--duel .pq-enc150__health strong{width:32px;font-size:17px}.pq-enc150--duel .pq-enc150__health span{overflow-wrap:anywhere}.pq-enc150--duel .pq-enc150__touch button{padding:7px 4px;min-height:46px;height:50px;font-size:16px}.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{bottom:65px;min-height:44px;padding:9px 12px}}
@media(max-height:500px){.pq-enc150--duel .pq-enc150__health{top:9px}.pq-enc150--duel .pq-enc150__health>div{padding:6px 10px;gap:4px 7px}.pq-enc150--duel .pq-enc150__touch button{min-height:44px;height:44px}.pq-enc150--duel .pq-enc150__controls>[data-enc150-command]{bottom:0;min-height:44px}}
@media(prefers-reduced-motion:reduce){.pq-enc150--duel .pq-enc150__touch button:active{transform:none}}

/* Portrait shore controls have their own footer, below the painted arena.
   Keep the canvas at its native scene aspect: translating its centre and
   clipping equal top/bottom space reserves116px without stretching fighters. */
@media (max-width:600px) and (orientation:portrait) {
 .pq-app .pq-enc150--duel:has(.pq-enc150__touch) { padding:8px; align-items:stretch; }
 .pq-app .pq-enc150--duel:has(.pq-enc150__touch)>canvas { transform:translateY(-58px); clip-path:inset(0 0 58px 0); }
 .pq-app .pq-enc150--duel:has(.pq-enc150__touch)>.pq-enc150__controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; width:100%; max-width:none; padding:8px 0 0; border-top:1px solid #9ac5c84a; background:#071d2bf5; }
 .pq-app .pq-enc150--duel .pq-enc150__touch { grid-column:1/-1; display:grid; grid-template-columns:repeat(5,minmax(44px,1fr)); gap:4px; width:100%; min-width:0; flex:none; }
 .pq-app .pq-enc150--duel .pq-enc150__touch button { min-width:44px; min-height:48px; height:48px; padding:6px 2px; font-size:14px; border-radius:10px; }
 .pq-app .pq-enc150--duel .pq-enc150__touch button:nth-child(3) { grid-column:auto; }
 .pq-app .pq-enc150--duel:has(.pq-enc150__touch)>.pq-enc150__controls>[data-enc150-command] { position:static; inset:auto; grid-row:2; min-width:44px; min-height:44px; padding:8px 12px; margin:0; transform:none; justify-self:start; font-size:14px; }
 .pq-app .pq-enc150--duel:has(.pq-enc150__touch)>.pq-enc150__controls>[data-enc150-command="reconnect"] { grid-column:2; justify-self:end; }
 .pq-app .pq-enc150--duel:has(.pq-enc150__touch)>.pq-enc150__feedback { bottom:123px; }
}

/* Active sea cinematics fill their real scene; text/actions reserve the space
   used by the subject fit. These rules deliberately exclude duels and results. */
.pq-app .pq-enc150.pq-enc150--cinematic{container-type:size;container-name:pq-cinematic;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(24px,1fr) auto auto auto;align-items:start;justify-items:center;gap:8px;padding:clamp(16px,3vw,28px);overflow:hidden;background:#071d2e;box-shadow:inset 0 0 70px #00101b55}
.pq-app .pq-enc150.pq-enc150--cinematic>canvas{inset:0;width:100%;height:100%;transform:none;clip-path:none}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__shade{background:linear-gradient(180deg,#031322a8 0%,#04192970 22%,transparent 43%,transparent 65%,#021b2b87 100%)}
.pq-app .pq-enc150.pq-enc150--cinematic>header{position:static;grid-column:1;grid-row:1;width:100%;max-width:700px;min-width:0;max-height:none;margin:0;padding:0;pointer-events:auto;overflow:visible}
.pq-app .pq-enc150.pq-enc150--cinematic>header>.pq-enc150__eyebrow{display:block;margin:0 0 12px;color:#9fd6d3;font:700 11px/1.2 system-ui;letter-spacing:.23em;text-shadow:0 2px 8px #00121f}
.pq-app .pq-enc150.pq-enc150--cinematic>header h2{margin:0;color:#fff1d1;font:700 clamp(25px,5.2vw,40px)/1.08 Georgia,serif;letter-spacing:-.025em;text-wrap:balance;text-shadow:0 2px 3px #001422,0 4px 22px #001422}
.pq-app .pq-enc150.pq-enc150--cinematic>header p{max-width:620px;margin:12px auto 0;color:#dce9e6;font:400 16px/1.45 system-ui;letter-spacing:0;text-wrap:pretty;text-shadow:0 2px 5px #001622,0 2px 14px #001622}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__health{position:static;grid-column:1;grid-row:2;width:min(92%,700px);gap:20px;margin:5px 0 0;color:#f5eacd}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__controls{position:static;grid-column:1;grid-row:4;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;width:100%;max-width:760px;min-width:0;inset:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__controls>button{min-width:44px;min-height:48px;padding:12px 18px;border:1px solid #b7cec5;border-radius:13px;color:#fff2cf;background:linear-gradient(150deg,#355e70,#183d51 56%,#0c283d);box-shadow:inset 0 1px 0 #eef8df6b,inset 0 -1px 0 #031625,0 4px 13px #00111d70;font:650 16px/1.15 system-ui;letter-spacing:.005em;text-shadow:0 1px 3px #001a29}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__controls>button:first-child{color:#fff5da;border-color:#e4c68b;background:linear-gradient(150deg,#8b704c,#695338 56%,#433d33)}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__controls>button:disabled{opacity:.55}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__hint{grid-column:1;grid-row:5;max-width:600px;margin:2px 0 0;color:#c7dedb;font:400 14px/1.4 system-ui}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__feedback{grid-column:1;grid-row:6;min-height:0;max-width:620px;margin:0;color:#ffe0aa;font:500 15px/1.4 system-ui;text-shadow:0 2px 6px #001a29}
.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__health:empty,.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__hint:empty,.pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__feedback:empty{display:none}
@container pq-cinematic (max-height:340px){
 .pq-app .pq-enc150.pq-enc150--cinematic{gap:5px}
 .pq-app .pq-enc150.pq-enc150--cinematic>header{max-height:88px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .pq-app .pq-enc150.pq-enc150--cinematic>header>.pq-enc150__eyebrow{display:none}
 .pq-app .pq-enc150.pq-enc150--cinematic>header h2{font-size:25px;line-height:1.1}
 .pq-app .pq-enc150.pq-enc150--cinematic>header p{margin-top:7px;font-size:16px;line-height:1.3}
 .pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__controls{gap:8px}
 .pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__controls>button{min-height:44px;padding:10px 16px}
 .pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__hint{display:none}
 .pq-app .pq-enc150.pq-enc150--cinematic>.pq-enc150__feedback{max-height:36px;overflow-y:auto;font-size:14px}
}
