@font-face{font-family:FrayvoHelm;src:url("assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");font-weight:100 900;font-display:swap}
#fray-helm,.fh-atlas{--cream:#fff0d5;--mint:#a5e2c7;--gold:#ebc583;--line:#b3a17c;--ink:#0d3039;--panel:linear-gradient(112deg,#0c2a34f5,#153b44f0);color:var(--cream);font:550 clamp(15px,1.04vw,31px)/1.27 FrayvoHelm,Arial,sans-serif;box-sizing:border-box}
#fray-helm{position:absolute;inset:0;z-index:14;pointer-events:none}
#fray-helm *,.fh-atlas *{box-sizing:border-box}
#fray-helm[hidden],#fray-helm [hidden],body:has(dialog[open]) #fray-helm,.fh-atlas [hidden]{display:none!important}
#fray-helm button,.fh-atlas button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;pointer-events:auto}
#fray-helm button:focus-visible,.fh-atlas button:focus-visible{outline:3px solid #ffdd99;outline-offset:2px}
#fray-helm .fh-panel,#fh-menu,.fh-member,.fh-fold{border:1px solid var(--line);border-radius:.56em;background:var(--panel);box-shadow:0 .16em .7em #09263145}
.fh-icon{display:inline-block;width:1.2em;height:1.2em;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.fh-left{position:absolute;left:max(1.45em,env(safe-area-inset-left));top:max(1.45em,env(safe-area-inset-top));width:15.4em;display:flex;align-items:flex-start;flex-direction:column}
.fh-visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
#fray-helm [data-hull-state="critical"] .fh-life b{background:linear-gradient(90deg,#cf5448,#ffa490)}
#fray-helm [data-hull-state="critical"] .fh-unit small,#fray-helm .fh-needs-heal{color:#ffb6a4}
#fray-helm [data-hull-state="critical"] .fh-face{outline:2px solid #ee8c77;outline-offset:1px}
@media(prefers-reduced-motion:no-preference){#fray-helm [data-hull-state="critical"] .fh-face{animation:fh-hull-warn 1.05s ease-out 2}@keyframes fh-hull-warn{50%{box-shadow:0 0 0 .35em #ee8c7755}}}
#fray-helm .fh-self,.fh-member{padding:.56em .68em;display:flex;align-items:center;gap:.68em;text-align:left;width:100%}.fh-face{width:3.35em;height:3.35em;display:inline-grid;place-items:center;flex:none;border:1px solid #dac496;box-shadow:0 0 0 2px #193a43,0 0 0 3px #8d8769;border-radius:50%;background:radial-gradient(ellipse at 50% 25%,#69847c,#213f49 73%);overflow:hidden}.fh-face img{width:100%;height:100%;object-fit:contain;transform:scale(1.08)}.fh-unit{min-width:0;flex:1}.fh-unit>small,.fh-nameline small{display:block;font-weight:690;font-size:.69em;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}.fh-unit strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fh-self strong{font:normal 1.56em/1.12 Georgia,serif}.fh-life{display:flex;align-items:center;gap:.4em;margin-top:.22em}.fh-life i{display:block;flex:1;height:.34em;min-width:.6em;background:#072830;border:1px solid #4d756e90;border-radius:2px}.fh-life b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#519e8c,#b2debd);transition:width .3s}.fh-life em{font:650 .72em/1.2 FrayvoHelm,Arial;color:#f4f3e1}.fh-fold{margin:.55em 0 .22em;padding:.24em .55em;font-size:.8em!important;border-radius:.35em}.fh-fold .fh-icon{color:var(--gold)}.fh-fold i,.fh-index button i{font-style:normal}.fh-member{width:12.25em;padding:.32em .5em;margin:.16em 0;border-color:#b9b49580;gap:.55em}.fh-member .fh-face{width:2.15em;height:2.15em;box-shadow:none}.fh-nameline{display:flex;justify-content:space-between;align-items:center;gap:.33em}.fh-nameline strong{font-size:.95em}.fh-nameline small{white-space:nowrap}.fh-picked{border-color:#a4dcc0!important;box-shadow:inset .18em 0 #b5e4c9!important}.fh-member:disabled{filter:grayscale(.85);opacity:.7}
.fh-tools{position:absolute;right:max(1.45em,env(safe-area-inset-right));top:max(1.45em,env(safe-area-inset-top));display:flex;gap:.43em;align-items:center}.fh-stores{display:flex;align-items:center;gap:.6em;padding:.62em .8em;min-height:2.55em}.fh-stores>span+span{border-left:1px solid #82988e69;padding-left:.64em}.fh-stores .fh-icon{color:var(--gold);margin-right:.3em}.fh-stores>span:first-child .fh-icon{color:#a6dec9}.fh-stores>span:nth-child(2) .fh-icon{color:#abe4ed}.fh-stores b{font-size:.94em;font-variant-numeric:tabular-nums}#fh-menu-button{width:2.55em;height:2.55em;display:grid;place-items:center;padding:0}.fh-offline #fh-menu-button{box-shadow:0 0 0 2px #faab78!important}
#fh-menu{pointer-events:auto;position:absolute;z-index:5;right:max(1.45em,env(safe-area-inset-right));top:4.45em;max-height:calc(100% - 5em);overflow-y:auto;width:15.8em;padding:.45em}
#fh-menu button{display:flex;background:transparent;align-items:center;gap:.65em;margin:0;width:100%;min-height:2.5em;text-align:left;border:0;border-radius:.3em;padding:.42em .65em}#fh-menu button:hover,.fh-index button:hover{background:#ffffff13}#fh-menu .fh-icon{color:var(--gold)}#fh-mobile-resources{display:none}
.fh-compass{position:absolute;top:1em;left:50%;transform:translateX(-50%);width:24em;text-align:center;filter:drop-shadow(0 1px 2px #17354288)}#fh-tape{display:block;width:100%;height:2.7em;background:linear-gradient(90deg,transparent,#0f3039db 15%,#102e37f2 50%,#0f3039db 85%,transparent);clip-path:polygon(0 7%,50% 0,100% 7%,100% 78%,50% 100%,0 78%)}#fh-bearing{display:inline-block;border:1px solid #beac7f;border-radius:1em;padding:.05em .78em;background:#10303ae8;letter-spacing:.08em;font-size:.8em;font-weight:720}
.fh-nav{position:absolute;right:max(1.45em,env(safe-area-inset-right));bottom:max(1.35em,env(safe-area-inset-bottom));width:13.8em;text-align:center}#fh-radar-button{width:100%;aspect-ratio:1;display:block;background:url("assets/helm/radar.svg?v=1.26.0") center/100% 100% no-repeat;border:none;filter:drop-shadow(0 3px 4px #15374275);border-radius:50%;padding:0}#fh-radar{display:block;width:100%;height:100%;border-radius:50%}#fh-map-button{display:inline-flex;align-items:center;justify-content:center;gap:.55em;background:#0c303af2;border:1px solid #b2a37e;border-radius:3em;padding:.36em .8em;margin-top:.15em;font-size:.91em;font-weight:720}#fh-map-button .fh-icon{color:var(--gold)}#fh-map-button kbd{font:700 .8em FrayvoHelm;border-radius:3px;border:1px solid #9ead9b;padding:.04em .33em}
#fh-receiver{position:absolute;left:max(1.45em,env(safe-area-inset-left));bottom:max(1.55em,env(safe-area-inset-bottom));width:20.75em;border-radius:.6em;border:1px solid #cca96f;background:linear-gradient(115deg,#fff4db,#e8dcc1);color:#0b343b;box-shadow:0 .25em .85em #0b303c50}
#fh-fold-receiver{display:flex;align-items:center;gap:.5em;width:100%;padding:.58em 1em;background:#133641;border:0;border-bottom:2px solid #b69b68;border-radius:.65em .65em 0 0;color:#f1dbb1!important;font-size:.76em!important;letter-spacing:.1em;text-transform:uppercase;font-weight:730!important;text-align:left}#fh-fold-receiver b,.fh-index button i{margin-left:auto}.fh-reading{display:grid;grid-template-columns:4em minmax(0,1fr);gap:.7em;align-items:center;padding:.7em .85em .5em}.fh-reading small{font-size:.79em;color:#3c5753;font-weight:650}.fh-reading strong{display:block;font:normal 1.43em/1.16 Georgia,serif}.fh-part-art{width:4em;height:4em;background-image:url("assets/lab/instrument-atlas.webp");background-size:300% 200%;border:1px solid #8c795a;border-radius:50%}#fh-meters{font-size:2.05em;line-height:1.1;letter-spacing:-.05em;font-weight:800}.fh-unit-m{font-weight:700}#fh-trend{color:#19634f;margin-left:.65em;font-size:.86em;font-weight:750}.fh-sector{margin:0 .85em;border-top:1px solid #ada081;padding:.45em 0 .55em;display:flex;justify-content:space-between;align-items:center;font-weight:680;font-size:.84em}.fh-sector i{width:3em;height:.8em;clip-path:polygon(0 79%,100% 0,100% 100%,0 100%);background:linear-gradient(90deg,#3a6756 var(--strength),#acb29d var(--strength));mask:repeating-linear-gradient(90deg,#000 0 7%,transparent 7% 10%)}
.fh-folded .fh-reading,.fh-folded .fh-sector{display:none}
#fh-keel{position:absolute;left:50%;bottom:max(1.35em,env(safe-area-inset-bottom));transform:translateX(-50%);width:18em;display:flex;align-items:stretch;flex-direction:column;gap:.4em;pointer-events:none}
#fh-keel #lc-ability,#fh-keel #crew-xp{position:relative;inset:auto;transform:none;margin:0;max-width:none;width:100%;box-sizing:border-box;background:var(--panel);border:1px solid #9ebba3;border-radius:.48em;color:var(--cream);font-family:FrayvoHelm,Arial;pointer-events:auto}
#fh-keel #lc-ability:not([hidden]){display:flex;align-items:center;gap:.58em;flex-wrap:nowrap;min-height:3em;padding:.37em .55em;width:100%}
#fh-keel #lc-cast{width:2.5em;height:2.5em;flex:none;border-radius:.4em}#fh-keel #lc-cast kbd{font-size:.64em}#fh-keel .lca-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;flex:1;cursor:pointer;text-align:left}#fh-keel .lca-copy strong{font:720 1.01em/1.12 FrayvoHelm}.fh-at-sea #fh-keel .lca-copy span{display:block;max-width:100%;color:#b2dbcc;font-size:.76em}
#fh-keel #fh-cast-target{width:2.2em;text-align:center;flex-shrink:0}#fh-cast-target img{width:1.8em;height:1.8em;object-fit:contain;background:#38595b;border-radius:50%;border:1px solid #99b2a4;display:block;margin:auto}#fh-cast-target small{display:block;font-size:.64em;color:#badcc7}
#fh-keel #lca-buffs:not(:empty){position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);width:max-content;max-width:100%;border-radius:.35em;background:#113740ee;padding:.28em .45em;pointer-events:none}
#fh-keel #crew-xp:not([hidden]){height:2em;gap:.5em;padding:.16em .48em;border-color:#a19572}.fh-at-sea #fh-keel .cx-level{width:2.45em;flex-basis:2.45em;padding-right:.3em}.fh-at-sea #fh-keel .cx-level>span{display:none}.fh-at-sea #fh-keel .cx-level>b{font-size:.83em}.fh-at-sea #fh-keel .cx-level>b::before{content:"Lv ";font-size:.8em}.fh-at-sea #fh-keel .cx-caption{margin:0 0 2px}.fh-at-sea #fh-keel .cx-caption strong{display:none}.fh-at-sea #fh-keel .cx-caption span{font-size:.68em}#fh-keel #cx-track{height:4px}#fh-keel #circuits-character-open{width:2em;height:1.65em;min-width:0;padding:0}#fh-keel #circuits-character-open svg{width:1em;height:1em}#fh-keel .lc-hud-label{display:none}
body.fh-at-sea #signal-ui :is(.sig-inventory,#compass-button,#crew-self-hull,#crew-party,#circuits-ally,#player-wallet),body.fh-at-sea #signal-ui #fray-hud-tools .sig-top{display:none!important}
body.fh-at-sea #fray-hud-dock{display:block;inset:0;z-index:13}body.fh-at-sea #fray-hud-units{position:absolute;top:clamp(85px,7.15vw,185px);left:50%;transform:translateX(-50%);width:min(280px,34vw);max-height:none;overflow:visible}body.fh-at-sea #fray-hud-company{display:none}body.fh-at-sea #fray-hud-guides{position:absolute;top:clamp(92px,8vw,175px);left:50%;transform:translateX(-50%);width:min(405px,47vw)}body.fh-at-sea:has(#reaver-combat-hud:not([hidden])) #fray-hud-guides{top:clamp(165px,13vw,275px)}
body.fh-at-sea #signal-ui .sig-context{bottom:clamp(124px,9vw,240px)}
body.fh-at-sea #fray-helm.fh-large{font-size:clamp(17px,1.2vw,37px)}
/* Chart surfaces use map coordinates. Artwork is loaded only on first opening. */
#signal-dialog[data-screen="fh-chart"]{width:min(95vw,1760px)!important;max-width:none!important;height:min(94dvh,1160px)!important;max-height:94dvh!important;padding:0;overflow:hidden;border-radius:12px;border:1px solid #afa078;background:#10323d;color:#fff1d6}
.fh-atlas{width:100%;height:100%;display:flex;flex-direction:column;font-size:clamp(15px,1.04vw,27px);line-height:1.2}.fh-atlas header,.fh-atlas footer{display:flex;align-items:center;gap:.7em;padding:.72em 1em;background:linear-gradient(115deg,#173d47,#0e2e39);border-bottom:1px solid #8d896a;flex-shrink:0}.fh-atlas header>.fh-icon{color:var(--gold);width:2.4em;height:2.4em}.fh-atlas header small{color:var(--gold);font-size:.65em;font-weight:730;text-transform:uppercase;letter-spacing:.13em}.fh-atlas #dialog-title{margin:.07em 0 0;color:var(--cream);font:normal 1.8em/1.16 Georgia,serif}.fh-atlas header button,.fh-atlas footer button{background:#163d46;border:1px solid #7e9790;border-radius:.35em;color:var(--cream);min-width:2.35em;height:2.35em;line-height:1}.fh-atlas header button{margin-left:auto;font-size:1.05em}.fh-atlas footer{border-top:1px solid #8d896a;border-bottom:0;padding:.46em 1em;font-size:.87em}.fh-atlas footer>div{margin-left:auto;display:flex;align-items:center;gap:.55em}.fh-atlas footer button:disabled{opacity:.45}.fh-atlas .fh-icon{color:#e6c589}.fh-index-button,.fh-index{display:none}
#fh-chart-window{position:relative;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background:#123540;scrollbar-color:#899e91 #143842}
#fh-chart-plane{position:relative}.fh-zoomed #fh-chart-window{cursor:grab}.fh-zoomed #fh-chart-window:active{cursor:grabbing}#fh-chart-art,#fh-chart-pins{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
#fh-expedition{font-size:.79em;color:#e5d4ac;line-height:1.25;max-width:38em;margin-left:auto;text-align:right}#fh-expedition:not(:empty)+button{margin-left:.4em}
@media(max-width:760px),(max-height:520px){
 #fray-helm,body.fh-at-sea #fray-helm.fh-large{font-size:14px}.fh-left{left:max(9px,env(safe-area-inset-left));top:max(9px,env(safe-area-inset-top));width:10.2em}#fray-helm .fh-self{gap:.4em;padding:.43em}.fh-self .fh-face{width:2.15em;height:2.15em}.fh-self strong{font-size:1.18em}.fh-self .fh-unit>small{font-size:.64em;letter-spacing:.03em}.fh-life em{font-size:.7em}.fh-fold{margin-top:.3em;padding:.43em .65em;min-height:2.5em}.fh-member{width:10.2em;gap:.4em}.fh-member .fh-face{width:1.85em;height:1.85em}
 .fh-tools{right:max(8px,env(safe-area-inset-right));top:max(9px,env(safe-area-inset-top))}.fh-stores{display:none}#fh-mobile-resources{display:block;padding:.55em .6em;color:var(--gold);font-size:.86em}#fh-menu-button{width:2.85em;height:2.85em}#fh-menu{right:8px;top:3.95em;width:15.6em}#fh-menu button{min-height:2.9em}
 .fh-compass{left:auto;right:4.15em;top:.63em;transform:none;width:clamp(8.2em,35vw,12.5em)}#fh-tape{height:2.2em}#fh-bearing{font-size:.75em}
 .fh-nav{right:max(8px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));width:min(31vw,9.4em)}#fh-map-button{min-height:2.65em;padding:.3em .65em;font-size:.82em}#fh-map-button kbd{display:none}
 #fray-helm{display:grid;grid-template-columns:minmax(0,min(54vw,15em)) 1fr;grid-template-rows:1fr auto auto;grid-template-areas:". ." "receiver ." "keel .";align-items:end;gap:.45em 0;padding:0 .68em max(.73em,env(safe-area-inset-bottom))}#fh-receiver,#fh-keel{position:static;width:100%;transform:none}#fh-receiver{grid-area:receiver}#fh-keel{grid-area:keel;gap:.23em}
 .fh-reading{grid-template-columns:2.55em 1fr;gap:.47em;padding:.47em .55em}.fh-part-art{width:2.55em;height:2.55em}.fh-reading small{font-size:.72em}.fh-reading strong{font-size:1.13em}#fh-meters{font-size:1.65em}#fh-trend{font-size:.72em;margin-left:.36em}.fh-sector{font-size:.72em}.fh-unit-m{font-size:.8em}
 #fh-keel #lc-ability:not([hidden]){gap:.4em;padding:.27em .44em}#fh-keel #lc-cast{width:2.25em;height:2.25em}#fh-keel #crew-xp:not([hidden]){height:1.75em}#fh-keel .lca-copy strong{font-size:.93em}#fh-keel .lca-copy span{font-size:.67em}#fh-keel #fh-cast-target{width:1.65em}#fh-cast-target img{width:1.48em;height:1.48em}
 body.fh-at-sea #fray-hud-units{left:auto;right:7px;transform:none;top:5.1em;width:min(44vw,180px)}body.fh-at-sea #fray-hud-guides{top:8.6em;width:min(80vw,360px)}body.fh-at-sea:has(#reaver-combat-hud:not([hidden])) #fray-hud-guides{top:14.4em}
 body.fh-at-sea #signal-ui .sig-context{bottom:clamp(120px,19vh,155px);max-width:64vw}body.fh-at-sea:has(#fh-receiver:not([hidden])) #signal-ui .sig-context{bottom:clamp(215px,28vh,245px)}
}
@media(max-width:760px) and (orientation:portrait){
 #signal-dialog[data-screen="fh-chart"]{width:calc(100vw - 8px)!important;height:calc(100dvh - 10px)!important;max-height:none!important}.fh-atlas{font-size:15px}.fh-atlas header{gap:.45em;padding:.55em}.fh-atlas header>.fh-icon{width:1.7em;height:1.7em}.fh-atlas header small{font-size:.58em}.fh-atlas #dialog-title{font-size:1.25em}.fh-atlas footer{padding:.38em}.fh-atlas footer button{min-height:42px;min-width:42px}.fh-legend{display:none}.fh-atlas .fh-index-button{display:block}.fh-atlas header #fh-expedition{max-width:43%;font-size:.7em}.fh-index{display:block;flex:1;min-height:0;overflow-y:auto;background:#12353e;border-top:1px solid #8b977e;padding:.6em .72em}.fh-index h2{color:var(--cream);margin:.1em 0 .4em;font:normal 1.19em Georgia,serif}.fh-index button{display:flex;align-items:center;gap:.6em;width:100%;padding:.6em .2em;min-height:44px;border:0;background:transparent;border-top:1px solid #87988c6b;text-align:left}.fh-index button i{color:var(--gold)}#fh-chart-window{flex:0 0 auto;aspect-ratio:1120/670;max-height:44vh}.fh-zoomed #fh-chart-window{flex:1;aspect-ratio:auto;max-height:none}.fh-zoomed .fh-index{display:none}
}
@media(max-height:520px) and (orientation:landscape){
 #fray-helm,body.fh-at-sea #fray-helm.fh-large{font-size:12px;display:block}.fh-compass{left:50%;right:auto;transform:translateX(-50%);width:16em}.fh-nav{width:8.6em}.fh-left{width:12em}#fh-receiver,#fh-keel{position:absolute;bottom:.65em;width:14.5em}#fh-receiver{left:.7em}#fh-keel{left:50%;transform:translateX(-50%)}body.fh-at-sea #fray-hud-units{right:4.7em;top:1.4em;width:14em}body.fh-at-sea #signal-ui .sig-context{bottom:6.6em}
}
@media(prefers-reduced-motion:reduce){.fh-life b{transition:none}}

#fh-keel #crew-xp{cursor:pointer}#fh-keel #crew-xp #circuits-character-open{display:none!important}#fh-keel #crew-xp[data-training]:not([data-training=""])::after{content:attr(data-training);font-size:.65em;color:#f6d08e;font-weight:750;white-space:nowrap}
body.fh-at-sea #signal-ui .sig-context.fh-ambient #context-note{visibility:hidden}
/* Keep transient text below the existing guide and loot rows, including when a
   reward arrives while its Inspect button has keyboard or pointer focus. */
#fray-hud-guides #sig-toast{
 order:1;position:absolute;inset:auto;align-self:center;flex:none;box-sizing:border-box;
 width:max-content;height:auto;max-width:min(100%,42ch);margin:0;
 padding:.52em .87em;font-size:clamp(1rem,.79rem + .42vw,1.38rem);
 line-height:1.28;font-weight:580;overflow-wrap:anywhere;text-wrap:pretty;
 pointer-events:none;transform:none;transition:none;
}
#fray-hud-guides #sig-toast.on{position:relative;transform:none;transition:opacity .16s}
#signal-ui #sig-toast[data-notice="tidecell"]{
 display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.72em;row-gap:.12em;
 width:max-content;max-width:100%;padding:.62em .95em .7em;
 text-align:left;align-items:center;line-height:1.3;font-size:clamp(1rem,.77rem + .43vw,1.38rem);
 color:#eef3e6;background:#133840;border:1px solid #abac87;border-radius:.7em;
 box-shadow:0 .18em .7em #052b3845;
}
#sig-toast[data-notice="tidecell"]::before{
 content:"";grid-row:1/3;width:.78em;height:.78em;margin:0 .18em;
 transform:rotate(45deg);background:#f7d48c;border:2px solid #244850;
 outline:1px solid #e8c37a;border-radius:2px;
}
#sig-toast[data-notice="tidecell"] strong{grid-column:2;font-size:1.18em;line-height:1.14;font-weight:750;color:#fff0cb}
#sig-toast[data-notice="tidecell"] span{grid-column:2;font-weight:530;color:#e0ece4}
#signal-dialog[data-screen="fh-chart"] #dialog-title:focus{outline:none}

/* The engraved landmark badges stay sharp independently of the 3D render scale. */
.fh-nav{width:15.6em}
.fh-scope{position:relative;width:100%;aspect-ratio:1}
#fh-landmarks{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.fh-cell-pin{pointer-events:all;cursor:pointer}.fh-cell-pin:focus-visible circle{stroke:#fff;stroke-width:3px}.fh-land-badge{pointer-events:auto;cursor:pointer;outline:none;touch-action:manipulation}
.fh-land-badge use{pointer-events:none}
.fh-land-badge:is(:focus-visible,:hover,.fh-course-on) .outer{stroke:#ffdc82;stroke-width:2.5}
.fh-land-guide{opacity:.84}
#fray-helm #fh-course{position:absolute;right:0;bottom:calc(100% + .28em);width:max-content;max-width:100%;display:flex;align-items:center;gap:.6em;padding:.38em .52em .38em .7em;background:#113742f2;color:#ffe5ac;border:1px solid #c3a773;border-radius:.35em;font:700 .82em/1.2 FrayvoHelm,Arial}
#fh-course b{color:#fff1db;font-size:1.3em;font-weight:550}
.fh-index .fh-site-symbol,.fh-index .fh-icon{width:1.55em;height:1.55em}
.fh-index-picture{display:grid;place-items:center;flex:none;width:1.95em;height:1.95em;border-radius:50%;background:#203e46;border:1px solid #8d997f}
.fh-atlas .fh-index-button{display:inline-flex;align-items:center;padding:0 .75em;white-space:nowrap}
.fh-atlas .fh-index button[hidden]{display:none}
@media(min-width:761px),(orientation:landscape){
 .fh-atlas{position:relative}
 .fh-index-open .fh-index{position:absolute;z-index:1;display:block;left:.7em;bottom:3em;width:min(21em,49%);max-height:70%;overflow:auto;padding:.65em;background:#153741fa;border:1px solid #b5a478;border-radius:.45em;box-shadow:0 .3em .9em #06242a66}
 .fh-index-open .fh-index h2{font:normal 1.25em Georgia,serif;margin:.05em .3em .35em;color:#fff0d5}
 .fh-index-open .fh-index button{display:flex;align-items:center;gap:.6em;width:100%;border:0;border-top:1px solid #82988c52;background:transparent;color:#fff0d5;text-align:left;padding:.34em .2em;min-height:42px}
}
@media(max-width:760px),(max-height:520px){
 .fh-nav{width:clamp(132px,37vw,155px)}
 #fray-helm #fh-course{font-size:.78em;min-height:2.65em}
}
@media(max-height:520px) and (orientation:landscape){.fh-nav{width:clamp(114px,30vh,141px)}}

.fh-stores .fh-bag-label{display:inline-flex;align-items:center;gap:.28em;color:#f6e6c4}
.fh-stores .fh-bag-label strong{font-size:.94em;font-weight:700}
.fh-stores .fh-bag-label .fh-icon{color:var(--gold);margin:0}
.fh-stores>span:nth-child(2) .fh-icon{color:#a6dec9}
.fh-stores>span:nth-child(3) .fh-icon{color:#abe4ed}
@media(min-width:761px) and (max-width:1350px) and (min-height:521px){
 .fh-compass{width:clamp(200px,27vw,320px)}
}
@media(min-width:961px) and (max-width:1490px) and (min-height:521px){
 .fh-stores{display:grid;grid-template-areas:"bag gold" "fish charge";grid-template-columns:auto auto;gap:.15em .5em;padding:.35em .65em .48em;text-align:left}
 .fh-stores .fh-bag-label{grid-area:bag}
 .fh-stores>span:nth-child(2){grid-area:fish;border:0;padding:0}
 .fh-stores>span:nth-child(3){grid-area:charge}
 .fh-stores>span:nth-child(4){grid-area:gold}
}
@media(min-width:761px) and (max-width:960px) and (min-height:521px){
 .fh-left{width:min(27vw,15.4em)}
 #fh-inventory>span:not(.fh-bag-label){display:none}
 #fh-mobile-resources{display:block;padding:.55em .6em;color:var(--gold);font-size:.86em}
}

#fh-range-compact{display:none}
@media(max-width:760px),(max-height:520px){
 #signal-ui{
  --fh-top:calc(env(safe-area-inset-top,0px) + 7px);--fh-right:calc(env(safe-area-inset-right,0px) + 8px);
  --fh-bottom:calc(env(safe-area-inset-bottom,0px) + 8px);--fh-left:calc(env(safe-area-inset-left,0px) + 8px);
  --fh-radar:clamp(109px,32vw,141px);--fh-player:clamp(105px,33vw,152px);--fh-thumb:clamp(126px,40vw,155px);
 }
 #fray-helm,body.fh-at-sea #fray-helm.fh-large{display:block;padding:0}
 .fh-left{top:var(--fh-top);left:var(--fh-left);width:var(--fh-player)}
 #fray-helm .fh-self{min-height:45px}.fh-self .fh-face{width:27px;height:27px}.fh-self .fh-life em{white-space:nowrap}.fh-self .fh-unit>small{font-size:9px}
 #fh-members{width:100%;max-height:min(150px,25dvh);overflow:auto;scrollbar-width:thin;pointer-events:auto;overscroll-behavior:contain}
 .fh-member{width:100%;min-height:44px;margin:2px 0;font-size:12px}.fh-fold{min-height:36px;padding:.3em .6em}
 .fh-compass{left:calc(var(--fh-left) + var(--fh-player) + 5px);right:calc(var(--fh-right) + var(--fh-radar) + 5px);top:var(--fh-top);width:auto;transform:none}
 #fh-tape{height:24px}#fh-bearing{white-space:nowrap;font-size:10px;letter-spacing:0;padding:.05em .43em}
 .fh-nav{top:var(--fh-top);right:var(--fh-right);bottom:auto;width:var(--fh-radar)}
 #fh-map-button,.fh-tools #fh-inventory,.fh-tools #fh-menu-button{position:relative;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:12px;font-size:17px;background:#102f38f4;border:1px solid #a99d80}
 #fh-map-button{position:absolute;top:calc(100% + 4px);right:94px}#fh-map-button :is(span,kbd),#fh-inventory .fh-bag-label strong,#fh-inventory>span:not(.fh-bag-label){display:none}
 .fh-tools{top:calc(var(--fh-top) + var(--fh-radar) + 4px);right:var(--fh-right);gap:3px}#fh-inventory .fh-bag-label{border:0;padding:0}
 #fray-helm #fh-course{top:calc(100% + 51px);bottom:auto;right:0;min-height:36px;width:max-content;max-width:calc(var(--fh-radar) + 10px);font-size:11px;text-align:left}
 body.fh-at-sea #fray-hud-units{display:flex;left:var(--fh-left);right:auto;top:var(--fh-enemy-top,64px);transform:none;width:var(--fh-player);margin:0}
 body.fh-at-sea #fray-hud-guides,body.fh-at-sea:has(#reaver-combat-hud:not([hidden])) #fray-hud-guides{
  left:var(--fh-left);right:var(--fh-right);top:var(--fh-messages-top,185px);bottom:var(--fh-messages-bottom,126px);
  width:auto;max-height:none;overflow:auto;scrollbar-width:thin;transform:none;align-items:center;justify-content:flex-start;margin:0;
 }
 #fray-hud-guides>*{max-width:min(100%,320px)}
 #fh-keel{position:absolute;inset:auto var(--fh-right) var(--fh-bottom) var(--fh-left);width:auto;transform:none;display:grid;grid-template-columns:minmax(0,1fr) var(--fh-thumb);grid-template-areas:"experience cast";align-items:end;gap:12px}
 #fh-keel #lc-ability:not([hidden]){grid-area:cast;display:grid;grid-template-columns:45px minmax(0,1fr);position:relative;min-height:54px;height:auto;margin:0;gap:0 5px;padding:3px 5px 3px 3px}
 #fh-keel #lc-cast{grid-area:1/1;justify-self:start;width:45px;height:45px;min-height:45px}#fh-keel #lc-cast kbd{display:none}
 #fh-keel #fh-cast-target{display:none}#fh-keel #lc-ability .lca-copy{grid-area:1/2;justify-self:stretch;align-self:center;max-width:100%;margin:0;padding:0;text-align:left;background:none}#fh-keel #lc-ability .lca-copy strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}#fh-keel .lca-copy span{font-size:10px}
 #fh-keel #lca-cancel:not([hidden]){grid-area:1/2;min-width:39px;min-height:44px;font-size:11px}
 #fh-keel #lc-ability:has(#lca-cancel:not([hidden])) .lca-copy{display:none}
 #fh-keel #lca-buffs:empty{display:none}
 #fh-keel #lca-buffs:not(:empty){grid-row:2;grid-column:1/-1;position:static;transform:none;margin-top:3px;border-top:1px solid #62958b70;width:100%;max-width:100%;padding:3px 2px 0;background:transparent;font-size:11px;line-height:1.2;text-align:center}
 #fh-keel #crew-xp:not([hidden]){grid-area:experience;align-self:end;min-height:37px;height:37px;width:100%;padding:.2em .38em;align-items:center}
 #fh-receiver{position:absolute;left:var(--fh-left);bottom:calc(var(--fh-bottom) + 60px);width:min(205px,calc(100% - var(--fh-left) - var(--fh-right) - var(--fh-thumb) - 12px))}
 #fh-fold-receiver{min-height:40px;padding:5px 7px;gap:4px;display:flex}#fh-receiver.fh-folded #fh-fold-receiver{border-radius:inherit;border-bottom:0}
 #fh-receiver.fh-folded #fh-range-compact{display:inline;color:#f9dfa3;font-weight:770;font-size:14px;letter-spacing:0;white-space:nowrap;margin-left:auto}
 #fh-receiver.fh-folded #fh-fold-receiver span{font-size:0}#fh-receiver.fh-folded #fh-fold-receiver span::after{content:"Survey";font-size:11px}
 #fh-receiver.fh-folded #fh-fold-receiver b{margin-left:2px}#fh-receiver .fh-reading{grid-template-columns:29px minmax(0,1fr)}
 #fh-receiver .fh-part-art{width:28px;height:28px}
 body.fh-at-sea #signal-ui .sig-context,body.fh-at-sea:has(#fh-receiver:not([hidden])) #signal-ui .sig-context,
 body.fh-at-sea #signal-ui .sig-context:has(#context-action .fish-action-label){
  left:auto;right:var(--fh-right);bottom:calc(var(--fh-bottom) + max(54px,var(--fh-cast-height,54px)) + 8px);
  width:var(--fh-thumb);max-width:var(--fh-thumb);margin:0;transform:none;
 }
 body.fh-at-sea #signal-ui #context-action{min-height:46px;padding:5px 8px}
 body.fh-at-sea #signal-ui #context-title{font-size:14px}body.fh-at-sea #signal-ui #context-sub{font-size:11px}
 body.fh-at-sea #fray-hud-guides #sig-toast{font-size:14px}
 #fh-menu{inset:auto var(--fh-right) var(--fh-bottom) var(--fh-left);max-height:calc(100dvh - var(--fh-top) - var(--fh-bottom) - 55px);overflow:auto;width:min(100% - var(--fh-left) - var(--fh-right),340px);margin-left:auto;z-index:6}
 #fh-menu button{min-height:44px}
 #fray-helm.fh-menu-open :is(.fh-left,.fh-nav,.fh-compass,#fh-keel,#fh-receiver),body:has(.fh-menu-open) #fray-hud-dock,body:has(.fh-menu-open) #signal-ui .sig-context{visibility:hidden}
 #fray-helm.fh-menu-open .fh-tools{top:var(--fh-top)}
}
@media(max-height:520px) and (orientation:landscape){
 #signal-ui{--fh-radar:clamp(99px,26dvh,123px);--fh-player:clamp(120px,17vw,150px);--fh-thumb:145px}
 .fh-compass{left:50%;right:auto;transform:translateX(-50%);width:clamp(140px,25vw,240px)}
 body.fh-at-sea #fray-hud-units{left:50%;right:auto;transform:translateX(-50%);width:clamp(145px,24vw,205px)}
 #fh-members{max-height:calc(100dvh - 189px)}
 #fh-receiver{width:var(--fh-player)}
 #fh-keel{grid-template-columns:var(--fh-player) 1fr var(--fh-thumb);grid-template-areas:"experience . cast"}
 body.fh-at-sea #signal-ui .sig-context,body.fh-at-sea:has(#fh-receiver:not([hidden])) #signal-ui .sig-context,
 body.fh-at-sea #signal-ui .sig-context:has(#context-action .fish-action-label){right:calc(var(--fh-right) + var(--fh-thumb) + 9px);bottom:var(--fh-bottom);width:min(28vw,188px);max-width:28vw}
 body.fh-at-sea #fray-hud-guides,body.fh-at-sea:has(#reaver-combat-hud:not([hidden])) #fray-hud-guides{
  left:calc(var(--fh-left) + var(--fh-player) + 12px);right:calc(var(--fh-right) + max(var(--fh-thumb),145px) + 12px);
 }
}

.fh-compact-role{display:none}
@media(max-width:760px),(max-height:520px){
 #fh-self .fh-unit>small{display:none}
 #fh-self .fh-compact-role{display:block;white-space:nowrap;font:730 9px/1.18 FrayvoHelm,Arial,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:#ebc583}
 #fh-self[data-hull-state="critical"] .fh-compact-role{color:#ffb6a4}
}
@media(max-width:760px) and (orientation:portrait){
 body.fh-at-sea:has(#fh-receiver[hidden]) #signal-ui .sig-context:has(#context-action .fish-action-label){
  left:50%;right:auto;transform:translateX(-50%);width:min(174px,55vw);max-width:55vw;
 }
}
@media(max-height:520px) and (orientation:landscape){
 #fh-receiver{left:calc(var(--fh-left) + var(--fh-player) + 6px);bottom:var(--fh-bottom);
  width:clamp(86px,calc(100% - var(--fh-left) - var(--fh-right) - var(--fh-player) - var(--fh-thumb) - min(28vw,188px) - 31px),178px)}
}
@media(max-width:650px) and (max-height:520px) and (orientation:landscape){
 #fh-receiver .fh-part-art{display:none}#fh-receiver .fh-reading{grid-template-columns:minmax(0,1fr)}
 #fh-receiver #fh-fold-receiver{padding:4px}#fh-receiver #fh-fold-receiver>.fh-icon{display:none}
}
@media(max-width:760px) and (orientation:portrait){
 body.fh-at-sea #fray-hud-units{width:clamp(150px,calc(100% - var(--fh-left) - var(--fh-right) - max(140px,var(--fh-radar)) - 8px),236px)}
 body.fh-at-sea #reaver-combat-hud .rc-target-heading{display:grid;grid-template-columns:minmax(0,1fr) 40px;grid-template-areas:"name stop" "level stop";gap:1px 4px;align-items:center}
 body.fh-at-sea #rc-target-name{grid-area:name;font-size:13px;line-height:1.18}
 body.fh-at-sea #rc-target-level{grid-area:level;justify-self:start;font-size:10px}
 body.fh-at-sea #rc-stop{grid-area:stop;align-self:center;width:40px;min-height:40px}
}

#fh-keel #lc-cast{--fh-icon-size:clamp(44px,2.5em,68px);width:var(--fh-icon-size);height:var(--fh-icon-size);min-width:var(--fh-icon-size);min-height:var(--fh-icon-size);padding:0;box-sizing:border-box}
#fh-keel #lc-cast .lca-icon{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
#fh-keel #lc-cast .lca-icon svg{position:static;inset:auto;display:block;width:74%;height:74%;margin:0}
#fh-keel #lc-cast #lca-time{inset:0;margin:0;padding:0;border-radius:inherit;pointer-events:none}
#fh-keel #lc-cast kbd{display:none}
@media(min-width:761px) and (min-height:521px){
 #fh-keel .lca-copy strong::after{content:"Q";display:inline-block;vertical-align:middle;margin-left:.45em;padding:.12em .3em;border:1px solid #88a293;border-radius:3px;font:700 .63em/1 FrayvoHelm,Arial,sans-serif;color:#ebd8ae}
}
@media(max-width:760px),(max-height:520px){#fh-keel #lc-cast{--fh-icon-size:45px}}

#fh-keel #cx-gain{pointer-events:none}
