/* 06e-features.css: anden halvdel af 06d (delt 2026-11-12, da filen blev over 120 KB). Samme lag: nye regler lægges sidst her. */
/* tegningen */
.arShip .arMark { cursor: pointer; }
.arShip .arMark:not(.has) { cursor: default; }
.arShip .arHit { fill: transparent; stroke: transparent; stroke-width: 1.5; }
.arShip .arMark:hover .arHit, .arShip .arMark.hot .arHit, .arShip .arMark.over .arHit { fill: rgba(255, 240, 192, 0.16); stroke: rgba(255, 240, 192, 0.85); }
.arShip .arMark.sel .arHit { fill: rgba(255, 214, 110, 0.26); stroke: #fff0c0; stroke-width: 2.2; filter: drop-shadow(0 0 5px rgba(255, 220, 130, 0.9)); }
.arShip .arEmpty { fill: rgba(8, 5, 2, 0.35); stroke: #f0dca8; stroke-width: 1.2; stroke-dasharray: 4 3; }
.arShip .arPlus { fill: none; stroke: #f0dca8; stroke-width: 1.7; stroke-linecap: round; }
#armory.moving .arShip .arMark:not(.sel) { cursor: copy; }
#armory.moving .arShip .arMark:not(.sel) .arHit { stroke: #ffe08a; stroke-dasharray: 5 3; animation: arPort 1.1s ease-in-out infinite; }
@keyframes arPort { 50% { fill: rgba(255, 224, 138, 0.2); } }
html.calm #armory.moving .arShip .arMark:not(.sel) .arHit { animation: none; fill: rgba(255, 224, 138, 0.14); }
.arShip .arLead { pointer-events: none; }
.arShip .arLead path { fill: none; stroke: rgba(240, 205, 120, 0.6); stroke-width: 1.2; stroke-dasharray: 2 3; }
.arShip .arLead rect { fill: #1c1109; stroke: #f0cd78; stroke-width: 1.2; }
.arShip .arLead text { font: 800 10.5px var(--body); fill: #fbf3df; letter-spacing: 0.04em; }
.arShip .arLead.hot path { stroke: #fff0c0; stroke-width: 1.9; stroke-dasharray: none; }
.arShip .arLead.hot rect { fill: #f0cd78; }
.arShip .arLead.hot text { fill: #1c1109; }
.arShip .arCap { font: 700 11.5px var(--body); letter-spacing: 0.13em; text-transform: uppercase; fill: #d5e8f2; paint-order: stroke; stroke: #0a1c2c; stroke-width: 3px; pointer-events: none; }
.arShip .arCap.dim { fill: #a9c4d2; }
.arShip .arCap.cls { fill: #f0cd78; }
/* boksen til højre: den valgte kanon */
html body #armory .arInfo { gap: 10px; padding: 16px; font-size: 0.95rem; line-height: 1.45; color: #e6d8ba; border-radius: 7px; clip-path: none !important; background: linear-gradient(180deg, rgba(22, 13, 6, 0.95), rgba(28, 17, 9, 0.92)); border: 1px solid rgba(240, 205, 120, 0.4); }
html body #armory .arInfo h4 { font: 400 1.5rem "IM Fell English", "Iowan Old Style", Georgia, serif; color: #fff0c0; }
html body #armory .arInfo p { color: #e6d8ba; }
html body #armory .arInfo .big .px { width: 56px; height: 56px; }
html body #armory .arInfo .wear { display: inline-block; margin: 4px 0 0; padding: 1px 8px; font-size: 0.8rem; border-radius: 4px; }
html body #armory .arWhere { font-size: 0.82rem; font-weight: 700; color: #f0cd78; }
html body #armory .arInfo .stat { grid-template-columns: 96px 1fr 48px; gap: 8px; font-size: 0.9rem; color: #fbf3df; }
html body #armory .arInfo .stat .bar { height: 10px; border-radius: 5px; }
html body #armory .arInfo .traits { gap: 5px; }
html body #armory .arInfo .traits span { font-size: 0.82rem; padding: 2px 9px; color: #fbf3df; background: rgba(240, 205, 120, 0.16); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.35); }
.arHelp { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.arHelp li { padding-left: 12px; border-left: 3px solid #b98a3c; }
.arHelp b { color: #fff0c0; }
.arTip { margin: 0; padding: 8px 10px; border-radius: 5px; font-size: 0.88rem; background: rgba(240, 205, 120, 0.1); }
html body #armory .arMoveHint { padding: 8px 10px; border-radius: 5px; background: rgba(255, 224, 138, 0.14); box-shadow: inset 0 0 0 1px #ffe08a; }
html body #armory .arBtns { margin-top: 4px; gap: 8px; }
html body #armory .arBtns button { flex: 1 1 46%; min-height: 44px; font-size: 0.95rem; font-weight: 700; }

/* ---------- inventaret: færre afsnit, større tal og tekst ---------- */
html body #inventory .invGrid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-content: start; }
html body #inventory .invWrap { align-items: stretch; }
html body #inventory .invSec.wide { grid-column: 1 / -1; }
html body #inventory .invSec.wide .invList { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
html body #inventory .invItem { grid-template-columns: 38px 1fr auto; gap: 12px; padding: 9px 12px; }
html body #inventory .invItem .px { width: 36px; height: 36px; }
html body #inventory .invItem b { font-size: 1.02rem; color: #fbf3df; }
html body #inventory .invItem small { font-size: 0.86rem; line-height: 1.35; color: #e6d8ba; }
html body #inventory .invItem .n { font-size: 1.35rem; color: #fff0c0; }
html body #inventory .invItem.art .n { font-size: 0.8rem; }
html body #inventory .invItem.none { opacity: 0.6; }
html body #inventory .invItem.none .n { color: #c6b48e; }

/* ---------- værkstedet: tippet om materialer er en lille seddel, der kun vises ved mangel ---------- */
html body #workshop .wsCards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
html body #workshop .wsHow { margin-top: 12px; padding: 9px 12px; border-left: 3px solid #b98a3c; border-radius: 0 5px 5px 0; background: rgba(240, 205, 120, 0.1); }
html body #workshop .wsNote.bad { padding: 8px 12px; border-radius: 5px; font-weight: 700; background: rgba(120, 30, 16, 0.5); box-shadow: inset 0 0 0 1px #ff9a7a; }

/* loggen åbnes nu fra Esc-menuen */
#escMenu #btnEscLog { grid-column: 1 / -1; }

/* =====================================================================
   2026-11-10 (f) · MENUKNAPPERNE SOM IKONER ØVERST I MIDTEN · FJENDEPANELET HELT TIL TOPPEN · MØRKERØDT REB
   Gælder begge udseender. --hbX (knapperækkens midte) sættes af placeHudBtns i 10-hud, så rækken ikke dækker
   skrogtavlen eller fjendepanelet på smalle skærme; ellers står den midt på skærmen.
   ===================================================================== */
html body #hudTop #hudBtns.hudBtns {
  position: fixed !important; top: 8px !important; left: var(--hbX, 50vw) !important; right: auto !important; transform: translateX(-50%);
  display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; width: auto !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; z-index: 9; order: 0; flex: none !important;
}
html body #hudTop #hudBtns.hudBtns button.mbtn:not([hidden]) {
  position: relative; width: 48px !important; height: 48px !important; min-height: 0 !important; min-width: 0 !important;
  padding: 0 !important; gap: 0 !important; justify-content: center !important; align-items: center !important;
  overflow: visible !important; font-size: 0.86rem !important;
}
html body #hudTop #hudBtns.hudBtns button.mbtn .mi { width: 34px !important; height: 34px !important; margin: 0 !important; }
/* navnet kommer frem under ikonet, når musen er over (eller knappen har fokus fra tastaturet) */
html body #hudTop #hudBtns.hudBtns button.mbtn .ml {
  position: absolute; top: calc(100% + 7px); left: 50%; transform: translate(-50%, -3px);
  padding: 3px 9px 2px; border-radius: 3px; white-space: nowrap; overflow: visible; text-overflow: clip;
  font: 400 0.9rem "IM Fell English SC", var(--display, serif); letter-spacing: 0.04em; color: #f6e7c4;
  text-shadow: 0 1px 0 #000; background: rgba(22, 12, 5, 0.92); box-shadow: 0 0 0 1px #1a0e05, 0 0 0 2px #b98a3c, 0 3px 8px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s ease-out, transform 0.12s ease-out, visibility 0s 0.12s;
}
html body #hudTop #hudBtns.hudBtns button.mbtn:is(:hover, :focus-visible) .ml { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.12s ease-out, transform 0.12s ease-out; }
@media (prefers-reduced-motion: reduce) { html body #hudTop #hudBtns.hudBtns button.mbtn .ml { transition: none; transform: translate(-50%, 0); } }

/* fjendepanelet går helt op til skærmens top (menuknapperne står nu i midten) */
@media (min-width: 1181px) {
  html body.in-combat #enemyPanel.panel { top: 0 !important; }
}
/* fjendepanelets kant: mørkerød i stedet for guld (rebet i Cabin-udseendet står i 07) */
html body #enemyPanel.panel {
  box-shadow: 0 0 0 1.5px #160403, 0 0 0 2.5px #5e140c, inset 0 0 26px rgba(0, 0, 0, 0.45), 0 10px 16px rgba(0, 0, 0, 0.55) !important;
}

/* =====================================================================
   2026-11-10 (g) · IKONKNAPPERNE: GENVEJSTASTEN I MÆRKET · UDBRUD NÅR EN MENU ÅBNER · PAUSEMENUEN SVÆVER
   (menuPopOpen i 12f; tovet der løber rundt om pausemenuen står i 07, da tovet kun findes i Cabin-udseendet)
   ===================================================================== */
html body #hudTop #hudBtns.hudBtns button.mbtn .ml { display: inline-flex; align-items: center; gap: 7px; }
html body #hudTop #hudBtns.hudBtns button.mbtn .ml .mk {
  display: inline-block !important; position: static; margin: 0; padding: 0 5px; min-width: 0.9em; text-align: center;
  font: 800 0.68rem/1.55 var(--body, sans-serif) !important; letter-spacing: 0.02em; color: #2a1606 !important; text-shadow: none;
  border-radius: 3px; background: linear-gradient(180deg, #f6dc98, #c99a44); box-shadow: inset 0 0 0 1px #5a3a0c, 0 1px 0 rgba(0, 0, 0, 0.5);
}
/* udbruddet: knappen lyser op og en guldring breder sig ud fra den */
html body #hudTop #hudBtns.hudBtns button.mbtn::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px #ffe7a8, 0 0 14px 4px rgba(255, 210, 120, 0.75);
}
html body #hudTop #hudBtns.hudBtns button.mbtn.mpop { animation: mpopBtn 0.55s ease-out; }
html body #hudTop #hudBtns.hudBtns button.mbtn.mpop::after { animation: mpopRing 0.65s ease-out; }
@keyframes mpopBtn { 0% { filter: brightness(1); } 18% { filter: brightness(1.7); transform: scale(0.9); } 45% { transform: scale(1.08); } 100% { filter: brightness(1); transform: none; } }
@keyframes mpopRing { 0% { opacity: 1; transform: scale(0.7); } 100% { opacity: 0; transform: scale(2.3); } }
/* sporet fra knappen hen til vinduet */
.mpopTrail {
  position: fixed; z-index: 40; height: 3px; margin-top: -1.5px; transform-origin: 0 50%; pointer-events: none; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 236, 180, 0), #ffe7a8 35%, #fff6d8 70%, rgba(255, 220, 140, 0));
  box-shadow: 0 0 10px 2px rgba(255, 205, 110, 0.55);
}

/* pausemenuen (Esc) svæver roligt og gløder svagt, mens spillet står stille */
html body #escMenu > .panel { animation: popIn 0.25s ease-out, escFloat 6s ease-in-out 0.3s infinite, escGlow 4s ease-in-out infinite; }
@keyframes escFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes escGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 210, 120, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(255, 210, 120, 0.32)); } }
@media (prefers-reduced-motion: reduce) { html body #escMenu > .panel { animation: none; } .mpopTrail { display: none; } }

/* ---------- 2026-11-10: posternes ankerspil, moral over 90, skrog repareret, bolværk ladet ---------- */
/* posternes ankerspil (crewWindlass i 10-hud): små træspil i panelets øverste hjørner, drejer ved op-/udfoldning */
html body #crewPanel .cphead { padding-left: 26px; padding-right: 26px; }
#crewPanel .wlass { position: absolute; top: 5px; width: 22px; height: 22px; z-index: 3; pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.75)); }
#crewPanel .wlass.L { left: 6px; }
#crewPanel .wlass.R { right: 6px; }
#crewPanel .wlass svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
#crewPanel .wlass .wlRot { position: absolute; left: 0; top: -2px; width: 22px; height: 22px; transform-origin: 50% 50%; will-change: transform; }
#crewPanel .wlass.turning .wlRot { filter: brightness(1.15); }

/* moral over 90: et lys løber gennem felterne (updateMoraleGauge i 14-battle giver --i og .radiant) */
#moraleGauge.radiant #mgBar i.on { animation: mgRadiant 2.4s linear infinite; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes mgRadiant {
  0%, 100% { filter: none; }
  4% { filter: brightness(1.9) drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px rgba(160, 220, 255, 0.9)); }
  12% { filter: none; }
}

/* skroget repareret (hullHealFx i 14-battle): et rødt lys løber gennem bjælken, de helede felter lyser kraftigt op */
html body #hgBar { position: relative; }
#hgBar .hgSweep { position: absolute; top: -3px; bottom: -3px; left: 0; width: 22px; z-index: 3; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 230, 0.95), rgba(255, 70, 45, 0.85) 45%, rgba(255, 40, 20, 0) 100%); mix-blend-mode: screen; }
#hgBar i.healed { position: relative; z-index: 2; animation: hgHealed 1.9s ease-out both; }
@keyframes hgHealed {
  0% { filter: brightness(2.6) saturate(1.5) drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px rgba(255, 90, 60, 0.95)); }
  35% { filter: brightness(2) saturate(1.3) drop-shadow(0 0 4px #ffe8e0) drop-shadow(0 0 6px rgba(255, 110, 80, 0.8)); }
  100% { filter: none; }
}

/* bolværk ladet til fuldt (updateBulwarkShields i 10b): skjoldet blinker, og en lille stjerne glimter i hjørnet */
.bulwarkShield .shieldGlow { fill: #fff3c4; opacity: 0; pointer-events: none; }
.bulwarkShield .shieldGlint { fill: #fffbe8; stroke: #ffd36a; stroke-width: 0.6; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.bulwarkShield.charged { animation: bwCharged 1.4s ease-out; }
.bulwarkShield.charged .shieldGlow { animation: bwGlow 1.2s ease-out; }
.bulwarkShield.charged .shieldGlint { animation: bwGlint 1.1s ease-out; }
@keyframes bwCharged { 25% { filter: drop-shadow(0 0 3px #fff3c4) drop-shadow(0 0 8px rgba(255, 210, 110, 0.9)) brightness(1.25); } }
@keyframes bwGlow { 0% { opacity: 0; } 18% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes bwGlint {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.25) rotate(30deg); }
  100% { opacity: 0; transform: scale(0.6) rotate(80deg); }
}

html.calm #moraleGauge.radiant #mgBar i.on { animation: none; filter: brightness(1.3); }
html.calm .bulwarkShield.charged .shieldGlint { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #moraleGauge.radiant #mgBar i.on { animation: none; filter: brightness(1.3); }
  .bulwarkShield.charged .shieldGlint, #hgBar .hgSweep { animation: none; display: none; }
}
/* to pengekister (200+ guld) er bredere end mønten: ikonet får plads i bredden */
#icoGold .px.chestIco.two { width: 36px !important; }
html body #inventory .invItem .px.chestIco.two { width: 50px; }
/* 2026-11-10 (j): pauseskiltet (Space) gynger roligt som et skilt i en snor, mens spillet står stille.
   Gyngen ligger på egenskaben rotate (ikke transform), så translateX(-50%) og indgangen ikke slås ud.
   Omdrejningspunktet: transform-origin 0 svarer til skiltets synlige midte (feltet er flyttet -50%), 40px over kanten.
   Negativ forsinkelse: gyngen starter i midten (0°), så skiltet ikke hopper. Esc-menuen gynger en anelse med. */
html body #pauseBanner { transform-origin: 0 -40px; animation: pauseSway 3.6s ease-in-out -0.9s infinite, pauseIn 0.3s ease-out; }
@keyframes pauseSway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
@keyframes pauseIn { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } }
html body #escMenu > .panel { animation: popIn 0.25s ease-out, escFloat 6s ease-in-out 0.3s infinite, escGlow 4s ease-in-out infinite, escSway 7s ease-in-out -1.75s infinite; }
@keyframes escSway { 0%, 100% { rotate: -0.6deg; } 50% { rotate: 0.6deg; } }
@media (prefers-reduced-motion: reduce) { html body #pauseBanner, html body #escMenu > .panel { animation: none; } }

/* Startskiven (2026-11-10): ingen rullebjælker i #eventBox. Glimtet drejede hele sin firkantede boks, så hjørnerne stak ud
   over dialogen; nu drejer kun forløbets vinkel (--sgA), og boksen står stille. Indgangen uden rotate af samme grund. */
@property --sgA { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
#eventBox .sgGlint { --sgA: 0deg; animation: sgGlintTurn 16s linear infinite;
  background: conic-gradient(from var(--sgA), transparent 0 18deg, rgba(255, 250, 225, 0.85) 34deg, transparent 52deg 190deg, rgba(255, 250, 225, 0.4) 212deg, transparent 232deg); }
@keyframes sgGlintTurn { to { --sgA: 360deg; } }
@keyframes sgDialIn { from { opacity: 0; scale: 0.92; } }
html body #eventBox.startGifts { overflow-x: hidden; }

/* =====================================================================
   2026-11-11: ARTEFAKTER V3 — synlig udløsning (js/16-feedback-nameless.js, artProc)
   .artSlot.proc: blinket ved udløsning · .artSlot.live: virker lige nu (rolig puls) · #artPops .artPop: lille skilt under pladsen
   .floater.artf: skiltet over modellen på dækket i sjældenhedens farve · #artTip .artStat: tæller / "virker nu"
   ===================================================================== */
html body #artifactBar .artSlot.r-uncommon { --r: #5fbf5a; }
html body #artifactBar .artSlot.proc { animation: artProc 1.1s cubic-bezier(.2, 1.6, .4, 1) !important; z-index: 2; }
@keyframes artProc {
  0% { transform: scale(1); box-shadow: 0 0 0 2px #fff, 0 0 0 0 var(--r); filter: brightness(2.2); }
  18% { transform: scale(1.32) translateY(2px); box-shadow: 0 0 0 2px #fff, 0 0 22px 8px var(--r); filter: brightness(1.9); }
  55% { transform: scale(1.08); box-shadow: 0 0 0 2px var(--r), 0 0 14px 4px var(--r); filter: brightness(1.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 1px #0e0804, 0 0 6px var(--r); filter: none; }
}
html body #artifactBar .artSlot.live:not(.proc) { animation: artLive 1.8s ease-in-out infinite; }
@keyframes artLive { 0%, 100% { box-shadow: 0 0 0 1.5px var(--r), 0 0 6px var(--r); } 50% { box-shadow: 0 0 0 2px var(--r), 0 0 14px 3px var(--r); } }
#artPops { position: fixed; inset: 0; pointer-events: none; z-index: 41; }
#artPops .artPop { position: absolute; transform: translateX(-50%); padding: 2px 8px 3px; border-radius: 9px; white-space: nowrap;
  font: 700 0.8rem/1.2 var(--body, Georgia, serif); letter-spacing: 0.02em; color: #fff7e6; background: rgba(18, 10, 4, 0.92);
  border: 1.5px solid var(--r); box-shadow: 0 0 10px var(--r), 0 2px 6px rgba(0, 0, 0, 0.6); animation: artPopUp 1.7s ease-out forwards; }
#artPops .artPop.bad { color: #ffd2c0; }
@keyframes artPopUp { 0% { opacity: 0; transform: translate(-50%, -6px) scale(0.7); } 12% { opacity: 1; transform: translate(-50%, 2px) scale(1.06); } 70% { opacity: 1; transform: translate(-50%, 8px) scale(1); } 100% { opacity: 0; transform: translate(-50%, 18px) scale(0.96); } }
html body #floaters .floater.big.artf { --r: #ffd27a; color: var(--r); border-color: var(--r); background: rgba(14, 8, 4, 0.86); box-shadow: 0 0 12px var(--r), 0 2px 8px rgba(0, 0, 0, 0.6); }
html body #floaters .floater.big.artf b { font-size: 0.95rem; letter-spacing: 0.04em; }
html body #floaters .floater.big.artf span { color: #fff7e6; font-weight: 700; }
html body #floaters .floater.artf.r-common { --r: #d8d0bc; } html body #floaters .floater.artf.r-uncommon { --r: #7ad874; }
html body #floaters .floater.artf.r-rare { --r: #6fb4ff; } html body #floaters .floater.artf.r-exceptional { --r: #c78cff; } html body #floaters .floater.artf.r-unique { --r: #ffc24a; }
html body #floaters .floater.artf.bad span { color: #ffb8a0; }
#artTip .artStat { margin: 6px 0 0; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, 0.15); font: 700 0.72rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
#artTip .artStat.live { color: #9fffb0; opacity: 1; }
@keyframes artPopStill { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body #artifactBar .artSlot.proc, html body #artifactBar .artSlot.live { animation: none !important; } #artPops .artPop { animation: artPopStill 1.7s linear forwards; transform: translateX(-50%); } }
html.calm #artPops .artPop { animation: artPopStill 1.7s linear forwards; transform: translateX(-50%); }
html.calm body #artifactBar .artSlot.live { animation: none; }
/* 2026-11-11: fare-kanten (js/16 tickDanger): rødt under 25 % skrog, blåt over 70 % vand */
#dangerVig { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.6s; }
#dangerVig.hull { opacity: 1; background: radial-gradient(ellipse at center, transparent 55%, rgba(170, 14, 10, 0.42) 100%); animation: dangerPulse 1.1s ease-in-out infinite; }
#dangerVig.water { opacity: 1; background: radial-gradient(ellipse at center, transparent 58%, rgba(14, 60, 140, 0.4) 100%); animation: dangerPulse 2.2s ease-in-out infinite; }
@keyframes dangerPulse { 0%, 100% { filter: brightness(0.75); } 50% { filter: brightness(1.35); } }
html.calm #dangerVig { animation: none !important; }
/* 2026-11-11: artefaktbjælken under menuknapperne, når der ikke er plads ved siden af dem (placeHudBtns i 10-hud) */
html body #artifactBar { box-sizing: border-box; }
html body #artifactBar.stack { position: fixed !important; top: 64px !important; margin: 0 !important; z-index: 8; max-height: 140px; }

/* 2026-11-11 (k): moral-mærket kan holdes over (eller trykkes på): #mgTip forklarer tilstanden (moraleTipHtml sidst i 14-battle) */
html body #hullFrame > #mgNote { pointer-events: auto; cursor: help; }
html body #hullFrame > #mgNote:focus-visible { outline: 2px solid #f0c060; outline-offset: 2px; }
#mgTip { position: fixed; z-index: 40; width: 280px; box-sizing: border-box; padding: 9px 12px 8px; pointer-events: none;
  border: 2px solid #c99a44; border-radius: 6px; color: #f6e7c4; font: 500 0.8rem/1.38 "Alegreya Sans", var(--body);
  background: linear-gradient(180deg, #4a2c14, #24140a); box-shadow: 0 0 0 1px #1a0e05, inset 0 1px 0 rgba(255, 228, 178, 0.12), 0 6px 16px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 0 #000; animation: mgNoteIn 0.18s ease-out; }
#mgTip[hidden] { display: none; }
#mgTip .mgT { display: block; font: 400 1.15rem "Pirata One", var(--display, serif); letter-spacing: 0.02em; color: #f0c060; margin-bottom: 3px; }
#mgTip p { margin: 0 0 5px; }
#mgTip p b { color: #fff3d0; }
#mgTip .mgNext { opacity: 0.85; font-style: italic; }
#mgTip .mgNow { margin: 6px 0 0; padding-top: 5px; border-top: 1px solid rgba(255, 228, 178, 0.18); font: 700 0.68rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
#mgTip.good { border-color: #8fd0ff; }
#mgTip.good .mgT, #mgTip.good p b { color: #bfe6ff; }
#mgTip.bad { border-color: #ff5a3c; background: linear-gradient(180deg, #5a1a0e, #2a0a04); }
#mgTip.bad .mgT, #mgTip.bad p b { color: #ffb4a2; }
html.txl #mgTip { width: 320px; }
@media (prefers-reduced-motion: reduce) { #mgTip { animation: none; } }

/* 2026-11-11: artefakternes lore-linje (a.lore) under den korte virkning: tooltip, skibslog, havn, vragvalg */
.artLore { display: block; margin-top: 3px; font-style: italic; font-weight: 400; font-size: 0.86em; line-height: 1.3; opacity: 0.68; letter-spacing: 0.01em; }
.artLore::before { content: "\201C"; }
.artLore::after { content: "\201D"; }
#artTip .artLore { margin: 4px 0 0; }

/* 2026-11-11 (u): artefakter i promptmenuen (#eventBox) i sjældenhedens farve: mærket på et valg (.evc.artc), navne (.artName) og gevinst-chips (#evFx .art) */
#eventBox .r-common { --rar: #c9c2b0; } #eventBox .r-uncommon { --rar: #5fbf5a; } #eventBox .r-rare { --rar: #4f9be8; }
#eventBox .r-exceptional { --rar: #c48af0; } #eventBox .r-unique { --rar: #ffb52e; }
html body #eventBox .choices button.evc.artc .evTag { color: var(--rar) !important; text-shadow: 0 0 6px color-mix(in srgb, var(--rar) 45%, transparent); }
#eventBox .artName { color: var(--rar); font-weight: 700; }
html body #eventBox #evFx span.art { color: var(--rar) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rar) 70%, transparent) !important; }
/* tooltippen over en artefakt: centreret tekst */
#artTip, #artTip b, #artTip em, #artTip p, #artTip .artLore { text-align: center; }
#artTip b, #artTip em { display: block; }

/* 2026-11-11 (u): stakbare småting (id "s:…") i artefaktbjælken: blågrå tovværks-baggrund i stedet for brunt træ, og "stackable" svagt i tooltippen */
html body #artifactBar .artSlot.stk { background: radial-gradient(circle at 50% 38%, rgba(200, 235, 255, 0.16), rgba(0, 0, 0, 0.3)), repeating-linear-gradient(135deg, #1b2a30 0 4px, #203238 4px 8px) !important; border-style: dashed !important; }
#artTip .artStk { display: block; margin: -3px 0 4px; font: 600 0.62rem var(--body); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; text-align: center; }

/* 2026-11-11 (u): menuknappen for det åbne vindue lyser i midten (syncMenuBtns i 12f): medaljonen bliver lys messing med en glød,
   og ikonet skifter til mørkt blæk, så det stadig står skarpt */
html body #hudTop #hudBtns.hudBtns button.mbtn.mopen .mi {
  color: #2a1606 !important;
  background: radial-gradient(circle at 50% 42%, #fff6d2 0%, #ffd97a 45%, #d79a35 100%) !important;
  box-shadow: 0 0 0 1.5px #5a3a0c, 0 0 10px 3px rgba(255, 214, 120, 0.85), inset 0 0 4px rgba(120, 70, 10, 0.5) !important;
  border-radius: 50%; padding: 3px; box-sizing: border-box;
  filter: drop-shadow(0 0 0.5px rgba(255, 245, 210, 0.9));
}
html body #hudTop #hudBtns.hudBtns button.mbtn.mopen { filter: brightness(1.08); }
/* genvejen på Focus-knappen i Guns-panelet */
html body .focusBtn kbd.fk { border: 0 !important; display: inline-block; flex: none !important; box-sizing: border-box; height: 14px; min-width: 14px !important; width: auto !important; overflow: visible; margin: 0 0 0 6px; padding: 0 3px; border-radius: 3px; font: 800 11px/14px Arial, Helvetica, sans-serif !important; letter-spacing: 0; text-transform: none; text-align: center; color: #2a1606; background: linear-gradient(180deg, #f6dc98, #c99a44); box-shadow: inset 0 0 0 1px #5a3a0c; vertical-align: 1px; }
/* 2026-11-11 (u): krydsede sværd foran et valg, der fører til et slag (EV_SWORDS i 12-voyage-events) */
#eventBox .evc .evFight { display: inline-block; width: 1.25em; height: 1.25em; margin: -0.2em 0.4em 0 0; vertical-align: middle; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6)); }
#eventBox .evc .evFight svg { display: block; width: 100%; height: 100%; }
#eventBox .evc:hover:not(:disabled) .evFight { transform: rotate(-8deg) scale(1.12); transition: transform 0.15s ease-out; }

/* =====================================================================
   2026-11-11 (u) · POSTERNE ARBEJDER: postlistens portrætter viser, hvad manden laver lige nu (stationAct i 10-hud sætter
   .sc[data-act]). Kun med CSS: ::before/::after på hvert portræt. Står stille på pause og i rolig tilstand.
   pump = vanddråber ud af tuden · douse = vandsprøjt mod ilden · carp = spåner · guns/powder = krudtrøg · sails = vindstreger
   helm = rattet drejer · sick = grønne kors · look = et glimt i kikkerten · rally = guldgnister
   ===================================================================== */
#stationList .sc[data-act] .cc:not(.moving)::before, #stationList .sc[data-act] .cc:not(.moving)::after {
  content: ""; position: absolute; pointer-events: none; z-index: 3; opacity: 0;
  animation-duration: 1.1s; animation-iteration-count: infinite; animation-timing-function: ease-in;
}
#stationList .sc[data-act] .cc:not(.moving)::after { animation-delay: 0.55s; }
#stationList .sc[data-act] .cc { overflow: visible !important; }
#stationList .sc[data-act] .cc img { border-radius: 3px; }
body.paused #stationList .sc[data-act] .cc::before, body.paused #stationList .sc[data-act] .cc::after { animation-play-state: paused; }
html.calm #stationList .sc[data-act] .cc::before, html.calm #stationList .sc[data-act] .cc::after { animation: none !important; opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) { #stationList .sc[data-act] .cc::before, #stationList .sc[data-act] .cc::after { animation: none !important; opacity: 0 !important; } }

/* pumpen: en stråle af dråber ud af tuden ved portrættets højre side, og et lille plask nedenfor */
#stationList .sc[data-act="pump"] .cc::before, #stationList .sc[data-act="pump"] .cc::after {
  right: -9px; top: 10px; width: 8px; height: 8px; border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: radial-gradient(circle at 35% 35%, #f2fdff, #6fd0f6 50%, #1f78b8); box-shadow: 0 0 0 1px #0d2c44, 0 0 5px rgba(120, 210, 255, 0.8);
  animation-name: actDrop; animation-duration: 0.7s;
}
#stationList .sc[data-act="pump"] .cc::after { right: -5px; width: 6px; height: 6px; animation-delay: 0.35s; }
@keyframes actDrop { 0% { opacity: 0; translate: -4px -2px; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: 3px 22px; } }
/* brand: vand slynges op mod flammerne */
#stationList .sc[data-act="douse"] .cc::before, #stationList .sc[data-act="douse"] .cc::after {
  left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: #8fdcff; box-shadow: 4px 2px 0 -1px #5fc6f2, -4px 3px 0 -1px #bfeeff;
  animation-name: actSplash; animation-duration: 0.7s;
}
@keyframes actSplash { 0% { opacity: 0; translate: -50% 6px; scale: 0.5; } 25% { opacity: 1; } 100% { opacity: 0; translate: -50% -12px; scale: 1.4; } }
/* tømreren: spåner flyver op og drejer */
#stationList .sc[data-act="carp"] .cc::before, #stationList .sc[data-act="carp"] .cc::after {
  left: 4px; top: 4px; width: 7px; height: 4px; border-radius: 1px; background: #f0c98a; box-shadow: 0 0 0 1px #3a2208, 10px 4px 0 -0.5px #d9a560, 10px 4px 0 0.5px #3a2208;
  animation-name: actChip; animation-duration: 0.9s; animation-timing-function: ease-out;
}
#stationList .sc[data-act="carp"] .cc::after { left: auto; right: 1px; animation-name: actChip2; }
@keyframes actChip { 0% { opacity: 0; translate: 6px 8px; rotate: 0deg; } 15% { opacity: 1; } 100% { opacity: 0; translate: -12px -18px; rotate: -240deg; } }
@keyframes actChip2 { 0% { opacity: 0; translate: -6px 8px; rotate: 0deg; } 15% { opacity: 1; } 100% { opacity: 0; translate: 12px -19px; rotate: 260deg; } }
/* kanoner, krudtkammer, mastestationen: krudtrøg stiger op og breder sig */
#stationList .sc:is([data-act="guns"], [data-act="powder"]) .cc::before, #stationList .sc:is([data-act="guns"], [data-act="powder"]) .cc::after {
  left: 50%; top: -4px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 232, 224, 0.98), rgba(170, 164, 152, 0.6) 60%, transparent 72%);
  animation-name: actSmoke; animation-duration: 1.4s; animation-timing-function: ease-out;
}
#stationList .sc:is([data-act="guns"], [data-act="powder"]) .cc::after { animation-delay: 0.7s; left: 30%; }
#stationList .sc[data-act="powder"] .cc::before { background: radial-gradient(circle, #ffe6a0 0 18%, rgba(60, 50, 40, 0.9) 22% 55%, transparent 60%); animation-name: actKeg; }
@keyframes actSmoke { 0% { opacity: 0; translate: -50% 6px; scale: 0.4; } 20% { opacity: 1; } 100% { opacity: 0; translate: -20% -20px; scale: 2.1; } }
@keyframes actKeg { 0% { opacity: 0; translate: -120% 6px; } 25% { opacity: 1; } 100% { opacity: 0; translate: 80% 6px; } }
/* seglene: vindstreger blæser forbi */
#stationList .sc[data-act="sails"] .cc::before, #stationList .sc[data-act="sails"] .cc::after {
  left: -8px; top: 7px; width: 14px; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f4efe2, transparent);
  animation-name: actWind; animation-duration: 0.9s; animation-timing-function: linear;
}
#stationList .sc[data-act="sails"] .cc::after { top: 18px; width: 8px; }
@keyframes actWind { 0% { opacity: 0; translate: 0 0; } 20% { opacity: 1; } 100% { opacity: 0; translate: 36px -2px; } }
/* roret: et lille rat i hjørnet drejer frem og tilbage */
#stationList .sc[data-act="helm"] .cc::before {
  right: -9px; bottom: -7px; width: 18px; height: 18px; border-radius: 50%; opacity: 1;
  background: radial-gradient(circle, #ffd27a 0 18%, transparent 20% 52%, #8a5a26 54% 66%, transparent 68%),
    conic-gradient(from 0deg, #c99a44 0 6deg, transparent 6deg 60deg, #c99a44 60deg 66deg, transparent 66deg 120deg, #c99a44 120deg 126deg, transparent 126deg 180deg, #c99a44 180deg 186deg, transparent 186deg 240deg, #c99a44 240deg 246deg, transparent 246deg 300deg, #c99a44 300deg 306deg, transparent 306deg);
  filter: drop-shadow(0 0 1px #000); animation-name: actWheel; animation-duration: 1.6s; animation-timing-function: ease-in-out;
}
#stationList .sc[data-act="helm"] .cc::after { display: none; }
@keyframes actWheel { 0%, 100% { rotate: -70deg; opacity: 1; } 50% { rotate: 70deg; opacity: 1; } }
/* sygebugten: grønne kors stiger op */
#stationList .sc[data-act="sick"] .cc::before, #stationList .sc[data-act="sick"] .cc::after {
  left: 50%; top: 0; width: 10px; height: 10px;
  background: linear-gradient(#8ff09a, #8ff09a) center / 10px 3.4px no-repeat, linear-gradient(#8ff09a, #8ff09a) center / 3.4px 10px no-repeat;
  filter: drop-shadow(0 0 1px #0b2a10) drop-shadow(0 0 3px rgba(127, 224, 138, 0.7));
  animation-name: actHeal; animation-duration: 1.3s; animation-timing-function: ease-out;
}
#stationList .sc[data-act="sick"] .cc::after { left: 20%; }
@keyframes actHeal { 0% { opacity: 0; translate: -50% 10px; } 25% { opacity: 1; } 100% { opacity: 0; translate: -50% -10px; } }
/* udkiggen: et glimt i kikkerten */
#stationList .sc[data-act="look"] .cc::before {
  right: -6px; top: -6px; width: 14px; height: 14px;
  background: conic-gradient(from 45deg, transparent 0 20deg, #fff 20deg 25deg, transparent 25deg 110deg, #fff 110deg 115deg, transparent 115deg 200deg, #fff 200deg 205deg, transparent 205deg 290deg, #fff 290deg 295deg, transparent 295deg);
  border-radius: 50%; filter: drop-shadow(0 0 2px #fff6c8); animation-name: actGlint; animation-duration: 2.6s; animation-timing-function: ease-in-out;
}
#stationList .sc[data-act="look"] .cc::after { display: none; }
@keyframes actGlint { 0%, 70%, 100% { opacity: 0; scale: 0.3; } 80% { opacity: 1; scale: 1.2; } 90% { opacity: 0.6; scale: 0.8; } }
/* kaptajnens Rally!: guldgnister */
#stationList .sc[data-act="rally"] .cc::before, #stationList .sc[data-act="rally"] .cc::after {
  left: 50%; top: 0; width: 4px; height: 4px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 4px #ffc84a, 6px 4px 0 -1px #ffd36a, -6px 3px 0 -1px #ffd36a;
  animation-name: actHeal; animation-duration: 0.9s;
}
/* manden selv arbejder: portrættet pumper op og ned, hamrer, tager rattet, haler i tovet */
#stationList .sc[data-act] .cc:not(.moving) img { animation: 0.7s ease-in-out infinite; transform-origin: 50% 90%; }
#stationList .sc[data-act="pump"] .cc:not(.moving) img { animation-name: actPump; }
#stationList .sc[data-act="carp"] .cc:not(.moving) img { animation-name: actHammer; animation-duration: 0.45s; }
#stationList .sc[data-act="helm"] .cc:not(.moving) img { animation-name: actSway; animation-duration: 1.6s; }
#stationList .sc:is([data-act="sails"], [data-act="douse"]) .cc:not(.moving) img { animation-name: actHaul; animation-duration: 0.6s; }
#stationList .sc:is([data-act="guns"], [data-act="powder"]) .cc:not(.moving) img { animation-name: actHaul; animation-duration: 0.9s; }
@keyframes actPump { 0%, 100% { translate: 0 0; } 50% { translate: 0 2.5px; } }
@keyframes actHammer { 0%, 100% { rotate: 0deg; } 30% { rotate: -7deg; } 55% { rotate: 4deg; } }
@keyframes actSway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes actHaul { 0%, 100% { translate: 0 0; } 50% { translate: -1.5px 1.5px; } }
body.paused #stationList .sc[data-act] .cc img { animation-play-state: paused; }
html.calm #stationList .sc[data-act] .cc img { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #stationList .sc[data-act] .cc img { animation: none !important; } }
/* sværdene i medaljonen: mørk rund plade med rød-brun glød, så et slag skiller sig ud fra de rolige valg */
html body #eventBox .evc .evIco.evSw { border-radius: 50%; background: radial-gradient(circle at 50% 40%, #5a1e12, #24100a 70%); box-shadow: 0 0 0 1.5px #c99a44, 0 0 8px rgba(220, 90, 50, 0.45); }
html body #eventBox .evc .evIco.evSw svg { width: 24px; height: 24px; display: block; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7)); }
html body #eventBox .evc:hover:not(:disabled) .evIco.evSw svg { transform: rotate(-10deg) scale(1.1); transition: transform 0.15s ease-out; }
html body #eventBox .choices button.evc.artc .evTxt { color: color-mix(in srgb, var(--rar) 45%, #fff6e4); }
/* den lysende kopi over menuens baggrund (menuBeacon i 12f): samme medaljon som .mopen */
#mbtnBeacon { position: fixed; z-index: 45; margin: 0 !important; padding: 0 !important; min-width: 0 !important; min-height: 0 !important; border: 0 !important; border-radius: 50% !important; clip-path: none !important; cursor: pointer;
  background: none !important; box-shadow: 0 0 0 3px rgba(26, 14, 5, 0.85), 0 0 16px 6px rgba(255, 214, 120, 0.55) !important; animation: beaconIn 0.25s ease-out both; }
#mbtnBeacon[hidden] { display: none !important; }
#mbtnBeacon .mi { display: block; width: 100% !important; height: 100% !important; box-sizing: border-box; padding: 3px; border-radius: 50%; color: #2a1606;
  background: radial-gradient(circle at 50% 42%, #fff6d2 0%, #ffd97a 45%, #d79a35 100%); box-shadow: 0 0 0 1.5px #5a3a0c, inset 0 0 4px rgba(120, 70, 10, 0.5); }
#mbtnBeacon:hover .mi { filter: brightness(1.08); }
@keyframes beaconIn { from { opacity: 0; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { #mbtnBeacon { animation: none; } }

/* Fjorden (biom, 2026-11-11): farver på søkortet */
.biomeTag.fjord { background: #5a4a36; color: #f6e2c0; }
#chartSvg .bioFill.fjord { color: #d9b98a; }
#chartSvg .bioLbl.fjord { fill: #f6e2c0; stroke: rgba(48, 36, 22, 0.85); }
#chartSvg .node.nb-fjord:not(.reach):not(.cur):not(.sel) circle { stroke: #d9b98a; }

/* =====================================================================
   BUILDS v2 (2026-11-12, js/16b-builds.js): knapperne Sea cocks / Jettison / Flog i postlisten, Horizon i afstandspanelet,
   og statuslinjen #bxAux (Chase guns, Bomb bed, pressede mænd, langrage)
   ===================================================================== */
.srow .bxBtn:not(:disabled) { background: linear-gradient(#5a6a78, #2f3c48); color: #f2ead2; }
.srow .bxBtn.bxFlog:not(:disabled) { background: linear-gradient(#8a2a24, #55120e); color: #ffe9c8; }
.srow .bxBtn.bxOn, .srow .bxBtn.bxOn:disabled { background: linear-gradient(#fff1c4, #c99a44); color: #2a1606; opacity: 1; box-shadow: 0 0 8px rgba(255, 220, 140, 0.7); }
.srow .bxBtn[data-bx="cocks"].bxOn { background: linear-gradient(#bfe6f2, #3f8fb0); color: #06202c; box-shadow: 0 0 8px rgba(120, 200, 240, 0.8); }
html body #combatBoard #rangePanel .rbtns:has(.bxHz:not([hidden])) { grid-template-columns: repeat(4, 1fr) !important; }
html body #combatBoard #rangePanel .rbtns button.bxHz:not([aria-pressed="true"]) { background: linear-gradient(180deg, #3b4c7a, #1f2a4a) !important; color: #dfe8ff !important; }
#bxAux { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 5px; font: 600 0.7rem var(--body, sans-serif); color: #f2ead2; }
#bxAux[hidden] { display: none; }
#bxAux span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#bxAux span.dim { opacity: 0.6; }
#bxAux .px { width: 1.15em; height: 1.15em; flex: none; }
#bxAux .bxBar { display: inline-block; width: 2.6rem; height: 0.38rem; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(0, 0, 0, 0.7); overflow: hidden; }
#bxAux .bxBar > i { display: block; height: 100%; background: linear-gradient(#fff1c4, #c99a44); }
/* Ship's log · Builds: buildets artefakter som mærker (dem vi har lyser) */
.docArtRow { display: flex; flex-wrap: wrap; gap: 3px; margin: 2px 0 6px; }
.docArt { position: relative; width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); opacity: 0.45; filter: grayscale(0.7); cursor: help; }
.docArt .px { width: 1.35rem; height: 1.35rem; }
.docArt.have { opacity: 1; filter: none; border-color: var(--dc, #e2b85a); box-shadow: 0 0 6px color-mix(in srgb, var(--dc, #e2b85a) 60%, transparent); }
.docArt.r-unique { border-style: double; border-width: 3px; }
.docArt.stack { border-radius: 50%; }
.docArt b { position: absolute; right: -2px; bottom: -3px; font: 700 0.6rem var(--body, sans-serif); color: #fff1c4; text-shadow: 0 1px 0 #000; }

/* =====================================================================
   2026-11-12 (b) · MENUKNAPPERNE SOM SØJLE I HØJRE HJØRNE · FUNDSKILTET · FÆRDIGT ARBEJDE I POSTLISTEN · EQUIPMENT-FANEN
   Chart/Ship/Menu stod øverst lige foran artefaktbjælken; nu står de lodret i øverste højre hjørne (i kamp lige til venstre
   for fjendepanelet; placeHudBtns i 10-hud sætter --hbX), og navnet springer ud til VENSTRE for ikonet.
   #artNotes (artNote i 12d): hvad en ny artefakt gør, i nogle sekunder, under artefaktbjælken.
   ===================================================================== */
html body #hudTop #hudBtns.hudBtns { flex-direction: column !important; gap: 8px !important; left: var(--hbX, calc(100vw - 32px)) !important; }
html body #hudTop #hudBtns.hudBtns button.mbtn .ml { top: 50%; left: auto; right: calc(100% + 9px); transform: translate(3px, -50%); }
html body #hudTop #hudBtns.hudBtns button.mbtn:is(:hover, :focus-visible) .ml { transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { html body #hudTop #hudBtns.hudBtns button.mbtn .ml { transform: translate(0, -50%); } }

#artTip.r-plain { --r: #e8c27a; }
#artTip.wide { width: 300px; }

#artNotes { position: fixed; z-index: 41; right: 70px; top: 74px; width: min(400px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
#artNotes .artNote { --r: #c9c2b0; position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 14px 11px 10px; overflow: hidden; pointer-events: auto; cursor: pointer;
  border-radius: 8px; border: 2px solid var(--r); background: linear-gradient(180deg, rgba(38, 23, 10, 0.97), rgba(18, 10, 4, 0.97)); color: #f4ead2;
  box-shadow: 0 0 0 1px #0e0804, 0 10px 22px rgba(0, 0, 0, 0.6), 0 0 18px -4px var(--r); animation: anIn 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
#artNotes .artNote.r-uncommon { --r: #5fbf5a; } #artNotes .artNote.r-rare { --r: #4f9be8; } #artNotes .artNote.r-exceptional { --r: #b26ae8; } #artNotes .artNote.r-unique { --r: #ffb52e; }
#artNotes .artNote.stk { border-style: dashed; }
#artNotes .artNote.out { animation: anOut 0.36s ease-in forwards; }
#artNotes .anIco { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 7px; background: #2a1a0c; box-shadow: 0 0 0 1.5px var(--r), inset 0 0 8px rgba(0, 0, 0, 0.6); }
#artNotes .anIco svg, #artNotes .anIco img, #artNotes .anIco .px { width: 34px !important; height: 34px !important; display: block; }
#artNotes .anTx { min-width: 0; display: block; text-align: left; }
#artNotes .anTx em { display: block; font: 700 0.64rem/1.3 var(--body, sans-serif); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--r); opacity: 0.9; }
#artNotes .anTx b { display: block; font: 400 1.2rem/1.15 "Pirata One", var(--display, serif); letter-spacing: 0.02em; color: var(--r); }
#artNotes .anTx p { margin: 2px 0 0; font: 400 0.86rem/1.35 var(--body, sans-serif); color: #f4ead2; }
#artNotes .anBar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--r); opacity: 0.7; transform-origin: 0 50%; animation: anBar var(--ms, 7000ms) linear forwards; }
@keyframes anIn { from { opacity: 0; transform: translateY(-14px) scale(0.94); } }
@keyframes anOut { to { opacity: 0; transform: translateX(16px) scale(0.97); } }
@keyframes anBar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { #artNotes .artNote, #artNotes .artNote.out { animation-duration: 0.01s; } #artNotes .anBar { animation: none; opacity: 0; } }

/* færdigt arbejde: grønt flueben på portrætterne, skiltet til højre i rækken og et grønt strøg (stationDone i 10-hud) */
#stationList .sc[data-done] .cc { overflow: visible !important; }
#stationList .sc[data-done] .cc:not(.moving)::after {
  content: "\2713" !important; display: grid !important; place-items: center; position: absolute; left: auto !important; right: -5px !important; top: -5px !important; width: 15px !important; height: 15px !important; z-index: 4;
  border-radius: 50% !important; background: #3fae4c !important; color: #fff; font: 800 10px/1 Arial, Helvetica, sans-serif; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1.5px #0d2a10, 0 0 8px rgba(110, 230, 120, 0.9) !important; transform: none !important; translate: none !important; rotate: none !important;
  opacity: 1 !important; animation: stDonePop 2.6s ease-out forwards !important;
}
#stationList .sc[data-done] .cc:not(.moving)::before { animation: none !important; opacity: 0 !important; }
#stationList .sc[data-done] .cc:not(.moving) img { animation: none !important; }
@keyframes stDonePop { 0% { scale: 0; opacity: 0; } 9% { scale: 1.5; opacity: 1; } 16% { scale: 1; } 85% { scale: 1; opacity: 1; } 100% { scale: 0.6; opacity: 0; } }
#stationList .srow .sdn { position: absolute; right: 8px; top: 7px; z-index: 3; padding: 2px 8px 2px 7px; border-radius: 10px; white-space: nowrap; pointer-events: none;
  font: 700 0.7rem/1.4 var(--body, sans-serif); letter-spacing: 0.06em; text-transform: uppercase; color: #eaffea; background: rgba(22, 70, 30, 0.94);
  box-shadow: 0 0 0 1px #0d2a10, 0 0 0 2px rgba(120, 220, 130, 0.55), 0 2px 6px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; }
#stationList .srow .sdn::before { content: "\2713\00a0"; color: #8dff9a; }
#stationList .srow .sdn.on { visibility: visible; animation: stDoneTag 2.6s ease-out forwards; }
@keyframes stDoneTag { 0% { opacity: 0; translate: 10px 0; } 8% { opacity: 1; translate: 0 0; } 85% { opacity: 1; } 100% { opacity: 0; } }
#stationList .srow.didit { animation: stDoneRow 1.3s ease-out; }
@keyframes stDoneRow { 0% { box-shadow: inset 0 0 0 2px #7dff8c, inset 0 0 26px rgba(110, 230, 120, 0.55); } 100% { box-shadow: inset 0 0 0 2px rgba(125, 255, 140, 0), inset 0 0 26px rgba(110, 230, 120, 0); } }
html.calm #stationList .srow.didit { animation: none; }
@media (prefers-reduced-motion: reduce) { #stationList .srow.didit { animation: none; } #stationList .sc[data-done] .cc:not(.moving)::after { animation: none !important; } #stationList .srow .sdn.on { animation: none; opacity: 1; } }

/* Equipment-fanen: skibets opgraderinger som brikker (eqFittings i 11-armory); hvad hver gør står i tooltippen (#artTip) */
.invSec.eqSec .eqCat { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; align-items: start; padding: 5px 0; border-top: 1px solid rgba(232, 194, 122, 0.14); }
.invSec.eqSec .eqCat:first-of-type { border-top: 0; }
.invSec.eqSec .eqCat h4 { margin: 7px 0 0; font: 700 0.68rem/1.3 var(--body, sans-serif); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; color: inherit; }
.invSec.eqSec .eqUps { display: flex; flex-wrap: wrap; gap: 6px; }
.invSec.eqSec .eqUp { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 10px 4px 5px !important; min-height: 0 !important; cursor: help; clip-path: none !important;
  border: 0 !important; border-radius: 6px !important; color: #f4ead2 !important; font: inherit; text-align: left; background: rgba(20, 11, 4, 0.55) !important; box-shadow: inset 0 0 0 1px rgba(232, 194, 122, 0.35) !important; }
.invSec.eqSec .eqUp:is(:hover, :focus-visible) { outline: none; background: rgba(60, 36, 12, 0.9) !important; box-shadow: inset 0 0 0 1.5px #ffe3a0, 0 0 10px rgba(255, 214, 120, 0.35) !important; }
.invSec.eqSec .eqUp svg, .invSec.eqSec .eqUp img, .invSec.eqSec .eqUp .px { width: 24px !important; height: 24px !important; flex: none; display: block; }
.invSec.eqSec .eqUp b { display: block; font: 600 0.84rem/1.2 var(--body, sans-serif); white-space: nowrap; }
.invSec.eqSec .eqUp small { display: block; font-size: 0.66rem; line-height: 1; letter-spacing: 0.08em; color: #e8c27a; }
@media (max-width: 700px) { .invSec.eqSec .eqCat { grid-template-columns: 1fr; } .invSec.eqSec .eqCat h4 { margin: 0; } }

/* ---------- 2026-11-12 (c): ny mand i postlisten, kanonernes rækkevidde i våbenkammeret, helgenens mærke ---------- */
/* ny mand: portrættet falder ned på pladsen med en gylden ring og et "+1"; rækken får et gyldent strøg og et skilt (10-hud) */
#stationList .sc .cc.nh { overflow: visible !important; z-index: 3; animation: nhDrop 0.75s cubic-bezier(0.2, 1.4, 0.4, 1) both, nhRing 0.9s ease-out 3 both; animation-delay: var(--nhd, 0ms), calc(var(--nhd, 0ms) + 0.6s); }
#stationList .sc .cc.nh img { animation: none !important; }
#stationList .sc .cc.nh::before, #stationList .sc .cc.nh::after { display: none !important; }
#stationList .sc .cc .nhp { position: absolute; right: -9px; top: -9px; z-index: 5; min-width: 20px; padding: 2px 4px; border-radius: 9px; pointer-events: none;
  font: 800 11px/1.2 Arial, Helvetica, sans-serif; text-align: center; color: #2a1804; background: #ffd772; box-shadow: 0 0 0 1.5px #3a2408, 0 0 10px rgba(255, 215, 114, 0.95);
  animation: nhPlus 3.4s ease-out both; animation-delay: var(--nhd, 0ms); }
@keyframes nhDrop { 0% { opacity: 0; transform: translateY(-26px) scale(0.4) rotate(-10deg); } 60% { opacity: 1; transform: translateY(2px) scale(1.22) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes nhRing { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 114, 0.95), 0 0 14px rgba(255, 215, 114, 0.9); } 100% { box-shadow: 0 0 0 9px rgba(255, 215, 114, 0), 0 0 0 rgba(255, 215, 114, 0); } }
@keyframes nhPlus { 0% { opacity: 0; scale: 0; } 12% { opacity: 1; scale: 1.5; } 20% { scale: 1; } 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -10px; } }
#stationList .srow.newman { animation: nhRow 1.8s ease-out; }
@keyframes nhRow { 0% { box-shadow: inset 0 0 0 2px #ffd772, inset 0 0 30px rgba(255, 215, 114, 0.6); } 100% { box-shadow: inset 0 0 0 2px rgba(255, 215, 114, 0), inset 0 0 30px rgba(255, 215, 114, 0); } }
#stationList .srow .sdn.nh { color: #2a1804; background: #ffd772; box-shadow: 0 0 0 1px #3a2408, 0 0 0 2px rgba(255, 235, 170, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5); }
#stationList .srow .sdn.nh::before { content: none; }
#stationList .srow .sdn.nh.on { animation-duration: 3.4s; }
html.calm #stationList .srow.newman { animation: none; box-shadow: inset 0 0 0 2px #ffd772; }
html.calm #stationList .sc .cc.nh { box-shadow: 0 0 0 2px #ffd772 !important; }
@media (prefers-reduced-motion: reduce) { #stationList .sc .cc.nh, #stationList .sc .cc .nhp, #stationList .srow.newman { animation: none !important; } #stationList .sc .cc.nh { box-shadow: 0 0 0 2px #ffd772 !important; } }

/* våbenkammeret: C · M · L på hvert kanonkort (foretrukken afstand i guld), og de tre afstande med tal i infoboksen (11-armory) */
#armory .wc .rp { grid-column: 2; display: flex; align-items: center; gap: 3px; margin-top: 2px; min-width: 0; }
#armory .wc .rp .rb { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 4px; font: 800 0.68rem/1 var(--body, sans-serif); font-style: normal; letter-spacing: 0;
  color: #d9ccb0; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.3); }
#armory .wc .rp .rb.best { color: #201405; background: #f0cd78; box-shadow: 0 0 0 1px #100803, 0 0 7px rgba(255, 220, 130, 0.65); }
#armory .wc .rp .rb.poor { color: #e0a070; box-shadow: inset 0 0 0 1px rgba(224, 140, 80, 0.5); }
#armory .wc .rp .rb.out { color: rgba(217, 204, 176, 0.4); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.12); text-decoration: line-through; }
#armory .wc .rp em { margin-left: 4px; font: 600 0.76rem/1.2 var(--body, sans-serif); font-style: normal; color: #f0cd78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#arInfo .arRange { margin: 8px 0 4px; }
#arInfo .arRange h5 { margin: 0 0 4px; font: 700 0.7rem/1.3 var(--body, sans-serif); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
#arInfo .arBands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
#arInfo .arBand { display: flex; flex-direction: column; gap: 1px; padding: 5px 6px 6px; border-radius: 6px; text-align: center; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.25); }
#arInfo .arBand b { font: 700 0.84rem/1.2 var(--body, sans-serif); }
#arInfo .arBand em { font: 700 0.66rem/1.3 var(--body, sans-serif); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: #d9ccb0; }
#arInfo .arBand small { font-size: 0.72rem; line-height: 1.3; opacity: 0.85; }
#arInfo .arBand.best { background: rgba(240, 205, 120, 0.16); box-shadow: inset 0 0 0 1.5px #f0cd78, 0 0 8px rgba(255, 220, 130, 0.25); }
#arInfo .arBand.best em { color: #ffe08a; }
#arInfo .arBand.poor em { color: #e0a070; }
#arInfo .arBand.out { opacity: 0.55; }
#arInfo .arBand.out b { text-decoration: line-through; }

/* Bronze Saint: mærket på artefakten viser, hvem lynet rammer (US / HER); klik vender ham (turnSaint i 16) */
#artifactBar .artSlot[data-art="saintFigure"] { cursor: pointer; }
#artifactBar .artSlot .artMode { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; padding: 1px 4px; border-radius: 6px; pointer-events: none; white-space: nowrap;
  font: 800 8.5px/1.2 Arial, Helvetica, sans-serif; letter-spacing: 0.06em; color: #06281c; background: #8affd0; box-shadow: 0 0 0 1px #06281c; }
#artifactBar .artSlot .artMode.her { color: #2a0d05; background: #ffb07a; box-shadow: 0 0 0 1px #2a0d05; }
/* småting: samlet virkning i Ship's log */
.logArt .artTot { opacity: 0.8; font-style: normal; white-space: nowrap; }
/* 2026-11-12: G-mærket på Focus target er en del af planken: en mørkere udgave af knappens rødbejdsede træ (nedfældet),
   og når knappen er trykket (holdt nede, "Pick a spot…" eller et fokus er sat) lyser det op i en lysere udgave af samme røde træ */
html body .focusBtn kbd.fk {
  height: 14px; min-width: 15px !important; margin: 0 0 0 7px; padding: 0 4px; border-radius: 2px; vertical-align: 1px;
  font: 400 11px/14px "IM Fell English SC", var(--display) !important; letter-spacing: 0.02em; color: #e9bf9c; text-shadow: 0 1px 0 #120302;
  background:
    repeating-linear-gradient(178deg, rgba(255, 190, 150, 0.05) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.14) 3px 4px),
    linear-gradient(180deg, #32100a, #240a06) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.75), inset 0 0 0 1px #140503, 0 1px 0 rgba(255, 190, 150, 0.16) !important;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
html body .focusBtn:active:not(:disabled) kbd.fk, html body .focusBtn.arm kbd.fk, html body .focusBtn.on kbd.fk {
  color: #fff4e6; text-shadow: 0 1px 0 #4a1208;
  background:
    repeating-linear-gradient(178deg, rgba(255, 220, 190, 0.1) 0 1px, transparent 1px 3px, rgba(60, 10, 4, 0.14) 3px 4px),
    linear-gradient(180deg, #b55a40, #8c3624) !important;
  box-shadow: inset 0 1px 0 rgba(255, 225, 200, 0.4), inset 0 0 0 1px #5c1e12, 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}
/* 2026-11-12: SPILLEBORDET i havnen (fanen "Gaming table", 12-voyage-port gambleHTML): mønten midt på et grønt klæde,
   hvad der blev sagt, hvilken side vi kalder, og nederst indsatserne */
.gbTable { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 12px; box-sizing: border-box; border-radius: 6px;
  background: radial-gradient(ellipse at 50% 34%, #2f5a3c 0, #1f4029 46%, #132a1b 100%); box-shadow: inset 0 0 0 2px #0c1a10, inset 0 0 0 5px #6a4520, inset 0 0 0 6px #1a0e05, inset 0 6px 22px rgba(0, 0, 0, 0.6); }
.gbStage { position: relative; flex: none; height: 196px; width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; box-sizing: border-box; perspective: 620px; }
.gbShadow { position: absolute; left: 50%; bottom: 10px; width: 92px; height: 16px; margin-left: -46px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7), transparent 70%); opacity: 0.55; }
.gbCoin { position: relative; width: 88px; height: 88px; transform-style: preserve-3d; transform: rotateX(0deg); will-change: transform; }
.gbCoin[data-side="tails"] { transform: rotateX(180deg); }
.gbFace { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 36% 30%, #fff1b8 0, #f2cf6a 30%, #d09c34 68%, #9a6a18 100%);
  box-shadow: inset 0 0 0 3px #b07e22, inset 0 0 0 5px #f6dc8e, inset 0 0 0 6px #8a5c12, 0 0 0 1.5px #5a3a0c; }
.gbFace svg { width: 56px; height: 56px; filter: drop-shadow(0 1px 0 rgba(255, 240, 190, 0.7)); }
.gbFace.gbT { transform: rotateX(180deg); }
.gbSay { margin: 0; min-height: 2.6em; max-width: 46ch; text-align: center; font: italic 1rem/1.3 "IM Fell English", Georgia, serif; color: #e9dfc2; text-shadow: 0 1px 0 #08120b; }
.gbSay.win { color: #ffe08a; font-style: normal; }
.gbSay.lose { color: #f0a898; font-style: normal; }
.gbCall, .gbBets { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.gbCall > span, .gbBets > span { flex: none; font: 400 0.82rem "IM Fell English SC", Georgia, serif; letter-spacing: 0.06em; color: #cfc39e; margin-right: 4px; }
html body #pGamble .gbCall button { min-width: 84px; padding: 5px 12px; font-size: 0.95rem; opacity: 0.72; }
html body #pGamble .gbCall button[aria-pressed="true"] { opacity: 1; color: #fff3c8 !important; box-shadow: 0 0 0 1.5px #1a0e05, 0 0 0 3px #f0cd78, inset 0 2px 5px rgba(0, 0, 0, 0.5) !important; }
.gbBets { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(240, 205, 120, 0.28); }
html body #pGamble .gbBet { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; min-height: 50px; padding: 5px 12px; font-size: 1.25rem; line-height: 1.05; }
html body #pGamble .gbBet small { font-size: 0.68rem; letter-spacing: 0.05em; opacity: 0.85; text-transform: none; }
html body #pGamble .gbBet.allin { min-width: 104px; color: #fff0d0 !important; background: linear-gradient(180deg, #8c3624, #5a1a10) !important; box-shadow: 0 0 0 1.5px #1a0e05, 0 0 0 2.5px #d9a84a, inset 0 1px 0 rgba(255, 210, 180, 0.3), 0 2px 0 #1a0e05 !important; }
html body #pGamble .gbBet.allin:hover:not(:disabled) { filter: brightness(1.15); }
html body #pGamble button:disabled { opacity: 0.42; cursor: default; filter: saturate(0.6); }
.gbTable.busy .gbBets, .gbTable.busy .gbCall { pointer-events: none; }
@media (max-width: 700px), (max-height: 700px) { .gbStage { height: 168px; } html body #pGamble .gbBet { min-width: 60px; } }

/* ================= 2026-11-12 (c) ================= */
/* krakens poster i fjendepanelet: egne mærker (krIcon i 10b) i dyrets farve */
.sti.kr { color: #f0a3b6; }
body #enemyPanel .eBadges .vb .sti.kr { color: #f4aabd; }

/* mødet med en bande: forholdet som et mærke øverst i dialogen (factionChips i 12b) */
html body #eventBox .fx span.evFac { padding: 5px 14px 5px 6px !important; border-radius: 24px !important; border-color: var(--fcb, #c99a44) !important; }
#eventBox .evFac i { font-style: normal; }
#eventBox .evFac .facMed { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 2px solid var(--fc); background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--fs) 85%, white 15%), #0b141e 80%); }
#eventBox .evFac .facTxt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
#eventBox .evFac .facTxt b { font: 400 1.12rem "Pirata One", Georgia, serif; letter-spacing: 0.02em; color: #fbf0d4; }
#eventBox .evFac .facTxt small { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: #d9cdb0; }
#eventBox .evFac .facRep { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#eventBox .evFac .facBar { position: relative; display: block; width: 96px; height: 7px; border-radius: 3px; background: linear-gradient(90deg, #b8402e, #5a5246 45% 55%, #3e9a52); box-shadow: 0 0 0 1px #1a0e05; }
#eventBox .evFac .facBar u { position: absolute; top: -3px; width: 4px; height: 13px; margin-left: -2px; background: #fff3d0; border-radius: 1px; box-shadow: 0 0 0 1px #1a0e05; text-decoration: none; }
#eventBox .evFac .facRep em { font-style: normal; font-size: 0.74rem; color: #e8dcc0; }
#eventBox .evFac.st-hostile { --fcb: #ff6a40; }
#eventBox .evFac.st-hostile .facTxt small, #eventBox .evFac.st-hostile .facRep em { color: #ff9a7a; }
#eventBox .evFac.st-wary { --fcb: #e0a040; }
#eventBox .evFac.st-wary .facTxt small { color: #f0c070; }
#eventBox .evFac.st-friendly, #eventBox .evFac.st-ally { --fcb: #6cc47a; }
#eventBox .evFac.st-friendly .facTxt small, #eventBox .evFac.st-ally .facTxt small, #eventBox .evFac.st-friendly .facRep em, #eventBox .evFac.st-ally .facRep em { color: #a8e6a8; }

/* kraken-æren: fangarme snor sig om moralbjælken (updateMoraleGauge i 14 sætter .krGlory); hold over for forklaring (#mgTip.kr) */
html body #hullPlank #moraleGauge.krGlory { pointer-events: auto; cursor: help; }
html body #hullPlank #moraleGauge.krGlory #mgBar { position: relative; overflow: visible !important; box-shadow: 0 0 0 1px #5a1626, 0 0 8px rgba(190, 60, 90, 0.55) !important; }
html body #hullPlank #moraleGauge.krGlory #mgBar::before, html body #hullPlank #moraleGauge.krGlory #mgBar::after {
  content: ""; position: absolute; top: -10.5px; bottom: -10.5px; width: 44px; pointer-events: none; z-index: 6;
  background: var(--kr-arm) center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}
/* 2026-11-14: én arm om hver ende; den kommer op nedefra og snor sig to gange om bjælken (forreste bånd skråt hen over, bageste skjult bag den), spidsen krøller sig over */
html body #hullPlank #moraleGauge.krGlory #mgBar::before { left: -14px; }
html body #hullPlank #moraleGauge.krGlory #mgBar::after { right: -14px; transform: scaleX(-1); }
html body #hullPlank #moraleGauge.krGlory {
  --kr-arm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 36' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 35.5C3 30.8 7 28.2 12 27.7C14.6 27.4 15.6 26 16.9 23.2L21.9 12.4C22.8 10.2 24 8.6 25.9 8.7' stroke='%232c0812' stroke-width='6.1'/%3E%3Cpath d='M27.4 27.4C29.4 27.5 30.5 26.1 31.5 23.6L35.6 13.2C36.4 10.8 37.7 8.6 39.6 8.6' stroke='%232c0812' stroke-width='5.3'/%3E%3Cpath d='M39.6 8.6C41.7 8.5 42.8 7 42.3 5.6C41.8 4.3 39.9 4.3 39.6 5.7' stroke='%232c0812' stroke-width='4.1'/%3E%3Cpath d='M3 35.5C3 30.8 7 28.2 12 27.7C14.6 27.4 15.6 26 16.9 23.2L21.9 12.4C22.8 10.2 24 8.6 25.9 8.7' stroke='%2386283a' stroke-width='4.3'/%3E%3Cpath d='M27.4 27.4C29.4 27.5 30.5 26.1 31.5 23.6L35.6 13.2C36.4 10.8 37.7 8.6 39.6 8.6' stroke='%2386283a' stroke-width='3.5'/%3E%3Cpath d='M39.6 8.6C41.7 8.5 42.8 7 42.3 5.6C41.8 4.3 39.9 4.3 39.6 5.7' stroke='%2386283a' stroke-width='2.3'/%3E%3Cpath d='M4.4 33.5C4.8 30.6 7.6 29 11.6 28.6' stroke='%23b04058' stroke-width='.9'/%3E%3Cpath d='M17.9 20.6L22.3 11.2' stroke='%23b04058' stroke-width='.8'/%3E%3Cpath d='M32.4 21.6L36.3 11.9' stroke='%23b04058' stroke-width='.7'/%3E%3C/g%3E%3Cg fill='%23e8b4b0' stroke='%235a1626' stroke-width='.35'%3E%3Ccircle cx='5.6' cy='31.6' r='.9'/%3E%3Ccircle cx='8.9' cy='29.6' r='.85'/%3E%3Ccircle cx='18.6' cy='22.4' r='.7'/%3E%3Ccircle cx='20.5' cy='18.3' r='.65'/%3E%3Ccircle cx='33.3' cy='22' r='.6'/%3E%3Ccircle cx='34.9' cy='17.9' r='.55'/%3E%3C/g%3E%3C/svg%3E");
}
#mgTip.kr { border-color: #c9607a; }
#mgTip.kr .mgT { color: #ffb3c4; }

/* skrogtavlen: en mørk kontur om alle mærkerne (skrog, moral, vand, guld, proviant ...); var lys før 2026-11-12.
   2026-11-13 (k): lidt mere diffus (1.2 px sløring, svagere farve; før hård kant med 0 px og 0.9) */
html body #hullPlank .hgHead small,
html body #hullPlank > .chips .chip2 :is(.px, svg, img, canvas) {
  filter: drop-shadow(1px 0 1.2px rgba(22, 11, 4, 0.6)) drop-shadow(-1px 0 1.2px rgba(22, 11, 4, 0.6)) drop-shadow(0 1px 1.2px rgba(22, 11, 4, 0.6)) drop-shadow(0 -1px 1.2px rgba(22, 11, 4, 0.6));
}

/* de tre oprindelige: uniformsblå ramme; kaptajn Hvid har guldramme */
.cc.fnd:not(.sel):not(.ill) { border-color: #5f7fc0 !important; }
.cc.fnd.capt:not(.sel):not(.ill) { border-color: #f0c860 !important; box-shadow: 0 0 0 1px #1a0e05, 0 0 6px rgba(240, 200, 96, 0.75) !important; }

/* Equipment-fanen kunne ikke rulles ordentligt: panelet rullede, men indholdet var krympet til vinduets højde, så ramme og
   bundlinje gled med ud. Nu står ramme, faner og bundlinje fast, og selve listen (#invGrid) ruller */
html body #inventory > .panel { overflow: hidden !important; }
html body #inventory .invWrap { flex: 1 1 auto; min-height: 0; overflow: hidden; }
html body #inventory .invGrid { min-height: 0; max-height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #c99a44 #1a0e05; scrollbar-width: thin; }
html body #inventory .sellZone { overflow-y: auto; max-height: 100%; }

/* 2026-11-12 (f): skrogtavlen. Moralbjælken begynder samme sted som skrogbjælken (samme afstand mellem mærke og bjælke;
   søjlen er 4 px bredere, så bjælken beholder sin længde). Infamy-mærket med stjernerne er væk fra tavlen: ryet ses stadig
   på navnebrættet, tavlens glød (.inf0-5), agterflaget og i havne/hændelser (#infamyBox bliver i DOM, updateHUD bruger den) */
html body #hullPlank #moraleGauge { gap: 8px !important; }
html body #hullFrame #gauges { grid-template-columns: 154px minmax(0, 1fr) !important; }
html body #hullPlank > .chips #infamyBox, html body #hudTop #infamyBox { display: none !important; }

/* 2026-11-12 (f): dødningeklippen (js/16, afsnit G). Sløret ligger over 3D-billedet og under HUD, dialoger og søkort;
   styrken (opacity) sættes af skullShade efter hvor langt inde i klippen skibet er */
#skullVeil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.9) 100%); }   /* 2026-11-13 c: klar midte, så de tre ting og skibet ses; mørket ligger i kanten */
#skullVeil[hidden] { display: none; }
/* punktet på søkortet: benhvidt mærke på sort bund */
#chartSvg .node[aria-label="Skull Rock"] circle { fill: #120c10; stroke: #cfc4ae; }
#chartSvg .node[aria-label="Skull Rock"] .gl path { stroke: #e7ddc6; }
#chartSvg .node[aria-label="Skull Rock"] .gl path.f { fill: #e7ddc6; stroke: none; }
#chartSvg .node[aria-label="Skull Rock"] .nlbl { fill: #e7ddc6; }

/* 2026-11-13: bandens mærke i promptmenuen er kun omdømme-slideren, i højre side på linje med overskriften (top = polstring + halv linjehøjde - halv bjælke) */
html body #eventBox .fx span.evFac { position: absolute !important; top: calc(22px + clamp(1.6rem, 2.8vw, 2.1rem) * 0.525 - 4px); right: 32px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; line-height: 0; }
html body #eventBox .fx span.evFac .facBar { width: 112px; height: 8px; }
html body #eventBox .fx span.evFac .facBar u { top: -4px; height: 16px; }
@media (max-width: 560px) { html body #eventBox .fx span.evFac { top: 8px; right: 10px; } html body #eventBox .fx span.evFac .facBar { width: 84px; } }

/* 2026-11-13: åbne læk i postlisten (syncLeakHoles, 10-hud): et splintret hul pr. læk med en vandstråle, spredt i rækkernes frie højre side; flade farver og mørk kontur som ikonerne */
#stationList .srow > .slk { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#stationList .slk .lk { position: absolute; display: block; width: 17px; height: 24px; font-style: normal; animation: lkIn 0.35s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
#stationList .slk .lk svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)); }
#stationList .slk .lkR { fill: #d2a565; stroke: #1a0e05; stroke-width: 0.9; stroke-linejoin: round; }
#stationList .slk .lkO { fill: #0b0604; stroke: #1a0e05; stroke-width: 0.8; }
#stationList .slk .lkW { transform-box: view-box; transform-origin: 10px 9.4px; transform: scaleX(calc(1 - 0.6 * var(--plug, 0))); transition: transform 0.3s linear; }
#stationList .slk .lkS { fill: #4f9fdc; stroke: #10202e; stroke-width: 0.9; stroke-linejoin: round; }
#stationList .slk .lkH { fill: none; stroke: #d8f0ff; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 3.2 4.2; animation: lkFlow 0.45s linear infinite; }
#stationList .slk .lkH.b { stroke-width: 1; stroke-dasharray: 2.2 5.2; animation-duration: 0.36s; }
#stationList .slk .lkD { fill: #cfeaff; stroke: #10202e; stroke-width: 0.6; transform-box: fill-box; transform-origin: center; animation: lkDrop 0.6s ease-out infinite; --dx: -3px; }
#stationList .slk .lkD.b { --dx: 3px; animation-delay: -0.3s; }
#stationList .slk .lkP { fill: #b98a4e; stroke: #1a0e05; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
#stationList .slk .lkP.x { fill: none; stroke: #6b4a22; stroke-width: 0.8; stroke-linecap: round; }
#stationList .slk .lk.plugged { animation: lkOut 1s ease-in forwards; }
#stationList .slk .lk.plugged .lkW { transform-origin: 10px 26px; transform: scale(0.3, 0); opacity: 0; transition: transform 0.3s ease-in, opacity 0.3s ease-in; }
#stationList .slk .lk.plugged .lkP { opacity: 1; animation: lkPlug 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes lkIn { from { transform: scale(0.2); opacity: 0; } }
@keyframes lkFlow { to { stroke-dashoffset: -7.4; } }
@keyframes lkDrop { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), -5px) scale(0.4); opacity: 0; } }
@keyframes lkPlug { from { transform: scale(2); opacity: 0; } }
@keyframes lkOut { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
html.calm #stationList .slk .lkH, html.calm #stationList .slk .lkD, html.calm #stationList .slk .lk { animation: none; }
html.calm #stationList .slk .lk.plugged { animation: lkOut 1s ease-in forwards; }
@media (prefers-reduced-motion: reduce) { #stationList .slk .lkH, #stationList .slk .lkD { animation: none; } }

/* 2026-11-14: MORALBJÆLKEN V2 (updateMoraleGauge/mgFeedback i 14-battle). Én glat bjælke i stedet for 20 felter; hak ved 30 og 70.
   .mgFill = moralen (farve efter humør), .mgGhost = det tabte (rødt, drænes), .mgGain = det vundne (blusser op), .mgSheen = blink over
   hele bjælken; måleren får .mgUp/.mgDown (+.mgBig) i et øjeblik efter en ændring og .mgTier når humøret skifter. #mgNum.up/.down */
html body #hullPlank #mgBar { position: relative; display: block !important; gap: 0 !important; padding: 2px !important; height: 12px !important; }
#mgBar .mgTrack { position: relative; display: block; width: 100%; height: 100%; border-radius: 2px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 230, 180, 0.04), rgba(255, 230, 180, 0.09)); }
#mgBar .mgTrack > span { position: absolute; top: 0; bottom: 0; left: 0; display: block; }
#mgBar .mgFill { z-index: 2; width: 0; border-radius: 2px 1px 1px 2px; transition: width 0.6s cubic-bezier(0.2, 0.85, 0.25, 1), filter 0.4s;
  --c1: #fff1c4; --c2: #e4b456; --c3: #a8731f; --glow: rgba(240, 190, 90, 0.55);
  background: linear-gradient(180deg, var(--c1) 0 22%, var(--c2) 22% 68%, var(--c3) 68%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 0 5px var(--glow); }
/* den lyse kant ved fyldets ende og et løbelys (bruges ved stigning og over 90) */
#mgBar .mgFill::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: rgba(255, 252, 235, 0.9); box-shadow: 0 0 4px rgba(255, 245, 210, 0.9); }
#mgBar .mgFill::before { content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62% 100%) no-repeat; background-size: 60px 100%; background-position: -60px 0; }
#moraleGauge.eager #mgBar .mgFill { --c1: #e6f6ff; --c2: #74bdec; --c3: #3a78ab; --glow: rgba(110, 190, 245, 0.55); }
#moraleGauge.full #mgBar .mgFill { --c1: #ffffff; --c2: #a9e0ff; --c3: #5aa2d8; --glow: rgba(170, 225, 255, 0.85); }
#moraleGauge.sour #mgBar .mgFill { --c1: #f8cf98; --c2: #d4883a; --c3: #8e4f18; --glow: rgba(220, 140, 60, 0.45); }
#moraleGauge.mutiny #mgBar .mgFill { --c1: #ffc0b2; --c2: #e2442f; --c3: #8e1d12; --glow: rgba(240, 70, 45, 0.75); animation: mgMutiny 1.1s ease-in-out infinite; }
@keyframes mgMutiny { 50% { filter: brightness(1.35); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 0 9px var(--glow); } }
#mgBar .mgGhost { z-index: 1; width: 0; background: linear-gradient(180deg, #ffd2c6 0 22%, #f0553a 22% 70%, #a52c1a 70%); opacity: 0.9;
  transition: width 0.7s cubic-bezier(0.5, 0, 0.6, 1); }
#mgBar .mgGain { z-index: 3; width: 0; opacity: 0; background: linear-gradient(180deg, #ffffff, #fff4cc); mix-blend-mode: screen; }
#mgBar .mgSheen { z-index: 4; right: 0; opacity: 0; pointer-events: none; }
#mgBar .mgTick { z-index: 5; top: 1px !important; bottom: 1px !important; width: 1px; margin-left: -0.5px; background: rgba(18, 9, 3, 0.8); box-shadow: 1px 0 0 rgba(255, 225, 170, 0.16); }

/* stigning: det nye blusser op, løbelyset farer hen over fyldet, måleren lyser varmt */
#moraleGauge.mgUp #mgBar .mgGain { animation: mgGainFlash 1.05s ease-out both; }
#moraleGauge.mgUp #mgBar .mgFill::before { animation: mgSweep 0.9s ease-out 0.15s both; }
#moraleGauge.mgUp #mgBar { animation: mgGlowUp 1.1s ease-out; }
#moraleGauge.mgUp.mgBig #mgBar .mgFill { animation: mgBigUp 1.1s ease-out; }
@keyframes mgGainFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mgSweep { 0% { opacity: 1; background-position: -60px 0; } 100% { opacity: 1; background-position: calc(100% + 60px) 0; } }
@keyframes mgGlowUp { 20% { box-shadow: inset 0 0 0 1px rgba(255, 230, 160, 0.9), inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 215, 120, 0.7); } }
@keyframes mgBigUp { 25% { filter: brightness(1.5) saturate(1.2); } }
/* fald: fyldet falder straks, bjælken blinker rødt og ryster */
#moraleGauge.mgDown #mgBar .mgFill { transition-duration: 0.16s; }
#moraleGauge.mgDown #mgBar .mgSheen { animation: mgRedFlash 0.6s ease-out both; background: rgba(255, 70, 40, 0.55); mix-blend-mode: screen; }
#moraleGauge.mgDown #mgBar { animation: mgShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
#moraleGauge.mgDown.mgBig #mgBar { animation: mgShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97), mgGlowDown 1s ease-out; }
@keyframes mgRedFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mgShake { 15% { translate: -2px 0; } 35% { translate: 2px 0; } 55% { translate: -1.5px 0; } 75% { translate: 1px 0; } 100% { translate: 0 0; } }
@keyframes mgGlowDown { 20% { box-shadow: inset 0 0 0 1px rgba(255, 120, 90, 0.9), inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 70, 40, 0.65); } }
/* humøret skifter: hele bjælken blusser op i den nye farve */
#moraleGauge.mgTier #mgBar .mgFill { animation: mgTierPulse 1.3s ease-out; }
@keyframes mgTierPulse { 0% { filter: brightness(2.2); box-shadow: 0 0 12px var(--glow), 0 0 4px #fff; } 100% { filter: none; } }
/* over 90: løbelyset går igen med jævne mellemrum (afløser de gamle felters mgRadiant) */
#moraleGauge.radiant:not(.mgUp) #mgBar .mgFill::before { animation: mgSweepLoop 3.2s ease-in-out 0.4s infinite; }
@keyframes mgSweepLoop { 0% { opacity: 1; background-position: -60px 0; } 35%, 100% { opacity: 1; background-position: calc(100% + 60px) 0; } }
/* tallet hopper */
html body #hullPlank #moraleGauge .hgHead b { display: inline-block; transition: color 0.3s; }
#mgNum.up { animation: mgNumUp 0.65s cubic-bezier(0.2, 1.6, 0.4, 1); color: #fff4c8 !important; text-shadow: 0 0 6px rgba(255, 220, 120, 0.9); }
#mgNum.down { animation: mgNumDown 0.5s ease-out; color: #ff9a84 !important; text-shadow: 0 0 6px rgba(255, 80, 50, 0.8); }
@keyframes mgNumUp { 0% { transform: scale(1); } 35% { transform: scale(1.38) translateY(-1px); } 100% { transform: scale(1); } }
@keyframes mgNumDown { 0% { transform: scale(1.25); } 30% { transform: translateX(-2px) scale(1.1); } 60% { transform: translateX(2px); } 100% { transform: none; } }
/* +n / −n ved fyldets ende */
.mgPop { position: fixed; z-index: 12; pointer-events: none; transform: translate(-50%, -100%); font: 800 0.95rem var(--body); line-height: 1; letter-spacing: 0.02em;
  padding: 2px 6px 3px; border-radius: 9px; white-space: nowrap; }
.mgPop.up { color: #fff2c0; background: rgba(60, 38, 8, 0.82); box-shadow: 0 0 0 1px rgba(240, 196, 100, 0.85), 0 0 10px rgba(255, 210, 110, 0.55); text-shadow: 0 1px 2px #000; animation: mgPopUp 1.45s ease-out forwards; }
.mgPop.down { transform: translate(-50%, 0); color: #ffd0c4; background: rgba(60, 12, 6, 0.85); box-shadow: 0 0 0 1px rgba(240, 90, 60, 0.85), 0 0 10px rgba(255, 70, 40, 0.5); text-shadow: 0 1px 2px #000; animation: mgPopDown 1.45s ease-in forwards; }
.mgPop.big { font-size: 1.15rem; }
@keyframes mgPopUp { 0% { opacity: 0; translate: 0 6px; scale: 0.6; } 14% { opacity: 1; translate: 0 -2px; scale: 1.15; } 30% { scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; translate: 0 -20px; } }
@keyframes mgPopDown { 0% { opacity: 0; scale: 1.4; } 12% { opacity: 1; scale: 1; } 70% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }
html.calm #moraleGauge #mgBar, html.calm #mgNum.down, html.calm #moraleGauge.radiant #mgBar .mgFill::before, html.calm #moraleGauge.mutiny #mgBar .mgFill { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  #moraleGauge #mgBar, #mgNum.down, #moraleGauge.radiant #mgBar .mgFill::before, #moraleGauge.mutiny #mgBar .mgFill { animation: none !important; }
}
/* ro-tilstanden (07: alt står stille) må ikke sluge tallet: det bærer information, som skadetallene */
html.calm body div.mgPop:not(#_) { animation-duration: 1.45s !important; animation-iteration-count: 1 !important; }

/* 2026-11-14: gunstmærkerne (#flagBar, FLAG_TOK sidst i 12d) hænger under artefaktbjælken; runde, med mærkets farve (--fc) */
html body #flagBar { position: fixed; z-index: 8; display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 7px; pointer-events: auto; box-sizing: border-box;
  background: rgba(24, 14, 6, 0.72); border: 1px solid #6a4a22; border-radius: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 220, 150, 0.06); }
html body #flagBar.off, body.menu #flagBar { display: none !important; }
body.hudIn #flagBar { animation: hudFade 0.6s ease-out 1.3s both; }
html body #flagBar .flagTok { --fc: #e8c27a; position: relative; width: 34px; height: 34px; padding: 4px; margin: 0; border-radius: 50% !important; cursor: help; box-sizing: border-box;
  background: radial-gradient(circle at 50% 38%, rgba(255, 240, 200, 0.14), rgba(0, 0, 0, 0.3)), #1d150d; border: 1.5px solid var(--fc);
  box-shadow: 0 0 0 1px #0e0804, 0 0 7px color-mix(in srgb, var(--fc) 45%, transparent), inset 0 0 6px rgba(0, 0, 0, 0.6); transition: transform 0.12s; }
html body #flagBar .flagTok:hover, html body #flagBar .flagTok:focus-visible { transform: translateY(-2px) scale(1.07); outline: none; }
html body #flagBar .flagTok .px { width: 100%; height: 100%; display: block; }
html body #flagBar .flagTok .ftName { position: absolute; left: calc(100% + 8px); top: 50%; translate: 0 -50%; white-space: nowrap; pointer-events: none; opacity: 0;
  padding: 3px 9px; border-radius: 10px; font: 600 0.78rem var(--body); color: #1a1006; background: var(--fc); box-shadow: 0 0 0 1px #0e0804, 0 2px 8px rgba(0, 0, 0, 0.5); }
html body #flagBar .flagTok.wait { opacity: 0; transform: scale(0.4); }
html body #flagBar .flagTok.fresh { z-index: 2; animation: ftokLand 0.7s cubic-bezier(.2, 1.7, .4, 1), ftokGlow 1.1s ease-in-out 0.7s 3; }
html body #flagBar .flagTok.fresh::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--fc); pointer-events: none; animation: ftokRing 0.9s ease-out 2; }
html body #flagBar .flagTok.fresh .ftName { animation: ftokName 4.4s ease-out both; }
html body #flagBar .flagTok.gone { animation: ftokGone 0.65s ease-in both; pointer-events: none; }
@keyframes ftokLand { 0% { transform: scale(1.7); filter: brightness(2.2); } 100% { transform: none; filter: none; } }
@keyframes ftokGlow { 0%, 100% { box-shadow: 0 0 0 1px #0e0804, 0 0 7px color-mix(in srgb, var(--fc) 45%, transparent); } 50% { box-shadow: 0 0 0 2px var(--fc), 0 0 18px var(--fc); } }
@keyframes ftokRing { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes ftokName { 0% { opacity: 0; translate: -6px -50%; } 8%, 85% { opacity: 1; translate: 0 -50%; } 100% { opacity: 0; translate: 0 -50%; } }
@keyframes ftokGone { 0% { transform: none; opacity: 1; filter: brightness(1.8); } 100% { transform: scale(0.3) translateY(-10px); opacity: 0; } }
/* ikonet, der flyver fra resultatets chip ned til sin plads */
.flagFly { --fc: #e8c27a; position: fixed; z-index: 60; width: 56px; height: 56px; padding: 8px; box-sizing: border-box; border-radius: 50%; pointer-events: none;
  background: #1d150d; border: 2px solid var(--fc); box-shadow: 0 0 0 1px #0e0804, 0 0 22px var(--fc); animation: ftokFly 1.05s cubic-bezier(.5, 0, .3, 1) both; }
.flagFly .px { width: 100%; height: 100%; display: block; }
@keyframes ftokFly { 0% { transform: scale(0.5); opacity: 0; } 18% { transform: scale(1.25); opacity: 1; } 32% { transform: scale(1.1); }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.62); opacity: 0.95; } }
#artTip.r-favour { --r: #7fd88a; }
#artTip .ftUse { margin-top: 6px; padding-top: 5px; border-top: 1px solid rgba(255, 230, 180, 0.18); font-size: 0.78rem; font-style: italic; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { html body #flagBar .flagTok, html body #flagBar .flagTok::after, html body #flagBar .flagTok .ftName { animation: none !important; } html body #flagBar .flagTok.fresh .ftName { opacity: 1; } }
html.calm body #flagBar .flagTok.fresh { animation: none; box-shadow: 0 0 0 2px var(--fc), 0 0 14px var(--fc); }
html.calm body #flagBar .flagTok.fresh::after { display: none; }
html.calm body #flagBar .flagTok.fresh .ftName { animation: none; opacity: 1; }
/* havnen: refit-kortet, når vennen betaler. Bånd over kortet, kortet lyser; fanen Chandler lyser også */
html body #port .card.favour { position: relative; overflow: visible; border-color: var(--fc) !important;
  box-shadow: inset 0 0 0 1px var(--fc), 0 0 12px color-mix(in srgb, var(--fc) 40%, transparent) !important; }
html body #port .card.favour.can { animation: favCard 1.8s ease-in-out infinite; }
html body #port .card.favour .favRib { position: absolute; left: 10px; top: -13px; display: flex; align-items: center; gap: 5px; padding: 2px 10px 2px 3px; border-radius: 12px; z-index: 1;
  background: var(--fc); color: #102008; font: 700 0.74rem var(--body); letter-spacing: 0.02em; box-shadow: 0 0 0 1px #0e0804, 0 2px 6px rgba(0, 0, 0, 0.5); white-space: nowrap; }
html body #port .card.favour .favRib .px { width: 20px; height: 20px; display: block; background: #1d150d; border-radius: 50%; padding: 1px; box-sizing: border-box; }
html body #port .card.favour.can button:not(:disabled) { background: var(--fc) !important; color: #102008 !important; border-color: #0e0804 !important; font-weight: 700; }
@keyframes favCard { 0%, 100% { box-shadow: inset 0 0 0 1px var(--fc), 0 0 8px color-mix(in srgb, var(--fc) 30%, transparent); } 50% { box-shadow: inset 0 0 0 2px var(--fc), 0 0 22px color-mix(in srgb, var(--fc) 70%, transparent); } }
html body #portNav button.favour { position: relative; box-shadow: inset 0 0 0 1.5px #7fd88a, 0 0 12px rgba(127, 216, 138, 0.45) !important; }
html body #portNav button.favour small { color: #9fe8a8 !important; }
html body #portNav button .pnFav { position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; padding: 2px; box-sizing: border-box; border-radius: 50%; background: #1d150d; border: 1.5px solid #7fd88a; box-shadow: 0 0 8px #7fd88a; }
html body #portNav button .pnFav .px { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) { html body #port .card.favour.can { animation: none; } }
html.calm body #port .card.favour.can { animation: none; }
/* 2026-11-14 (k): et mærke indløses (flagTokSpend i 12d): ikonet flyver fra bjælken ud til havnens besked, som blusser op; beskeden bærer mærkernes ikoner */
.flagFly.spend { animation: ftokSpend 1.05s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes ftokSpend { 0% { transform: scale(0.62); opacity: 1; } 75% { transform: translate(var(--dx), var(--dy)) scale(1.25); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.6); opacity: 0; } }
html body #pMsg .pmTok { --fc: #e8c27a; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: 16px; color: #fff3d8;
  background: color-mix(in srgb, var(--fc) 16%, rgba(20, 12, 5, 0.75)); box-shadow: inset 0 0 0 1.5px var(--fc), 0 0 10px color-mix(in srgb, var(--fc) 35%, transparent); }
html body #pMsg .pmTok i { flex: none; width: 24px; height: 24px; padding: 2px; box-sizing: border-box; border-radius: 50%; background: #1d150d; box-shadow: 0 0 0 1px #0e0804; }
html body #pMsg .pmTok i + i { margin-left: -4px; }
html body #pMsg .pmTok i .px { width: 100%; height: 100%; display: block; }
html body #pMsg.ftokHit .pmTok { animation: ftokHit 0.85s ease-out 2; }
@keyframes ftokHit { 0% { box-shadow: inset 0 0 0 1.5px var(--fc), 0 0 0 0 var(--fc); filter: brightness(1.7); } 100% { box-shadow: inset 0 0 0 1.5px var(--fc), 0 0 0 12px transparent; filter: none; } }
@media (prefers-reduced-motion: reduce) { html body #pMsg.ftokHit .pmTok { animation: none; } }
html.calm body #pMsg.ftokHit .pmTok { animation: none; }
/* 2026-11-14 (l): mærkerne står frit under artefaktbjælken, uden kasse om; en skygge holder dem læselige mod havet */
html body #flagBar { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 7px; }
html body #flagBar .flagTok { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65)); }
/* dusørens rabat på købeknapperne i havnen (card i 12-voyage-port) */
html body #port .card.rdisc button { position: relative; }
html body #port .card .rdTag { position: absolute; right: -7px; top: -9px; padding: 1px 5px; border-radius: 8px; font: 700 0.66rem var(--body); font-style: normal; line-height: 1.3;
  color: #2a1a04; background: #f5c84a; box-shadow: 0 0 0 1px #0e0804, 0 0 8px rgba(245, 200, 74, 0.6); pointer-events: none; }
html body #port .card button:disabled .rdTag { opacity: 0.55; box-shadow: 0 0 0 1px #0e0804; }
/* 2026-11-14 (m): mærkerne 25 % større (34 → 42.5 px), og så 10 % til (46.75 px) */
html body #flagBar .flagTok { width: 46.75px; height: 46.75px; padding: 5.5px; }

/* 2026-11-14: infamy stiger og falder synligt (infamyShift, sidst i 10-hud).
   #infShift = brændemærke-skiltet under skrogtavlen (venstre side; moral-noten hænger til højre); .up rødglødende, .down lyst og roligt.
   Stjernerne (.st) er altid ★: tomme er mørke med kontur, .on lyser; .new brændes ind (forsinkelse --d), .lost flager af og falder.
   #infFlash = glimtet over tavlen; #hullFrame.infUp rykker. Samme stjerner i dialogens mærke (span.infCh). */
html body #hullFrame > #infShift {
  position: absolute; top: calc(100% + 8px); left: 16px; z-index: 9; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px; min-width: 210px; max-width: min(340px, 80vw);
  padding: 7px 12px 8px; border-radius: 4px; border: 1px solid #c99a44;
  background: linear-gradient(180deg, #4a2c14, #2a170a);
  box-shadow: 0 0 0 1px #1a0e05, inset 0 1px 0 rgba(255, 228, 178, 0.14), 0 6px 14px rgba(0, 0, 0, 0.6);
  color: #f6e7c4; text-shadow: 0 1px 0 #000; transform-origin: 30px 0;
  animation: isIn 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
html body #hullFrame > #infShift.up {
  border-color: #ff6a40; background: linear-gradient(180deg, #6a1a0e, #34090a 70%, #240604);
  box-shadow: 0 0 0 1px #1a0e05, inset 0 1px 0 rgba(255, 190, 150, 0.18), 0 0 18px rgba(255, 70, 20, 0.55), 0 6px 14px rgba(0, 0, 0, 0.6);
}
html body #hullFrame > #infShift.down {
  border-color: #e8d29a; background: linear-gradient(180deg, #4e3a22, #2a1f12);
  box-shadow: 0 0 0 1px #1a0e05, inset 0 1px 0 rgba(255, 244, 210, 0.2), 0 0 14px rgba(255, 236, 180, 0.35), 0 6px 14px rgba(0, 0, 0, 0.6);
}
html body #hullFrame > #infShift.out { animation: isOut 0.55s ease-in both; }
html body #hullFrame > #infShift.gone { display: none; }
#infShift .isTop { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
#infShift .isTop b { font: 400 1.08rem/1.1 "IM Fell English SC", var(--display); letter-spacing: 0.04em; white-space: nowrap; }
#infShift .isTop b em { font-style: normal; font-size: 0.9em; margin-left: 2px; }
#infShift.up .isTop b { color: #ffc29a; }
#infShift.up .isTop b::before { content: "▲ "; font-size: 0.62em; vertical-align: 0.18em; color: #ff5a3c; }
#infShift.down .isTop b { color: #fff0cc; }
#infShift.down .isTop b::before { content: "▼ "; font-size: 0.62em; vertical-align: 0.18em; color: #bfe6ff; }
#infShift .isStars { font-size: 1.12rem; letter-spacing: 0.06em; white-space: nowrap; }
#infShift .isSub { display: flex; flex-direction: column; gap: 1px; }
#infShift .isTitle { font: 400 0.86rem/1.15 "IM Fell English SC", var(--display); letter-spacing: 0.08em; color: #e8c890; }
#infShift.up .isTitle { color: #ffd2a0; }
#infShift .isSub small { font: 600 0.74rem/1.25 "Alegreya Sans", var(--body); color: #e9d6b0; opacity: 0.92; }
@keyframes isIn { from { opacity: 0; transform: translateY(-8px) scaleY(0.6); } to { opacity: 1; transform: none; } }
@keyframes isOut { to { opacity: 0; transform: translateY(-6px); } }

/* stjernerne: i skiltet og i dialogens mærke */
#infShift .st, span.infCh .st { position: relative; display: inline-block; font-style: normal; color: #2a160c; -webkit-text-stroke: 1px rgba(255, 200, 150, 0.45); text-shadow: none; }
#infShift .st.on, span.infCh .st.on { color: #ff8a50; -webkit-text-stroke: 0; text-shadow: 0 0 6px rgba(255, 90, 40, 0.85), 0 1px 0 #000; }
#infShift.down .st.on { color: #f0cf8e; text-shadow: 0 0 5px rgba(255, 220, 150, 0.6), 0 1px 0 #000; }
#infShift .st.new, span.infCh .st.new { animation: stBrand 0.95s cubic-bezier(0.2, 0.9, 0.3, 1.2) calc(0.3s + var(--d, 0) * 0.32s) both; }
#infShift .st.new::after, span.infCh .st.new::after {
  content: ""; position: absolute; left: 50%; top: 52%; width: 1.6em; height: 1.6em; margin: -0.8em 0 0 -0.8em; border-radius: 50%;
  border: 2px solid rgba(255, 170, 90, 0.95); box-shadow: 0 0 10px rgba(255, 90, 30, 0.9); opacity: 0; pointer-events: none;
  animation: stRing 0.8s ease-out calc(0.42s + var(--d, 0) * 0.32s) both;
}
#infShift .st.lost::after, span.infCh .st.lost::after {
  content: "★"; position: absolute; left: 0; top: 0; color: #ffe8b8; -webkit-text-stroke: 0; text-shadow: 0 0 8px rgba(255, 240, 200, 0.95);
  animation: stLose 1.15s cubic-bezier(0.5, 0, 0.75, 0) calc(0.35s + var(--d, 0) * 0.3s) both;
}
@keyframes stBrand {
  0% { opacity: 0; transform: scale(2.9) rotate(-25deg); color: #fff8e0; text-shadow: 0 0 18px #fff0c0, 0 0 30px #ff7a20; }
  45% { opacity: 1; transform: scale(0.82) rotate(4deg); color: #ffe08a; text-shadow: 0 0 14px #ff9a30, 0 0 24px #ff4a10; }
  70% { transform: scale(1.18); }
  100% { opacity: 1; transform: none; }
}
@keyframes stRing { 0% { opacity: 0; transform: scale(0.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes stLose {
  0% { opacity: 1; transform: none; }
  25% { opacity: 1; transform: scale(1.25) rotate(-10deg); filter: brightness(1.6); }
  100% { opacity: 0; transform: translateY(22px) rotate(40deg) scale(0.45); filter: blur(1px); }
}

/* dialogens mærke: "Infamy +1" og stjernerækken (+ grunden fra kampen) */
html body #eventBox .fx span.infCh { display: inline-flex !important; align-items: center; gap: 8px; }
html body #eventBox .fx span.infCh .icStars { font-style: normal; font-size: 1.02rem; letter-spacing: 0.05em; white-space: nowrap; }
html body #eventBox .fx span.infCh .icWhy { font-size: 0.82em; opacity: 0.85; font-style: italic; }
html body #eventBox .fx span.infCh.up { color: #ffd0b8 !important; border-color: #ff6a40 !important; background: linear-gradient(180deg, rgba(106, 26, 14, 0.85), rgba(52, 9, 6, 0.85)) !important; box-shadow: 0 0 10px rgba(255, 70, 20, 0.4) !important; }
html body #eventBox .fx span.infCh.down { color: #fff0cc !important; border-color: #e8d29a !important; }
html body #eventBox .fx span.infCh.down .st.on { color: #f0cf8e; text-shadow: 0 0 5px rgba(255, 220, 150, 0.6), 0 1px 0 #000; }

/* glimtet over tavlen og rykket */
html body #hullFrame > #infFlash { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; opacity: 0; }
html body #hullFrame > #infFlash.up {
  background: radial-gradient(ellipse 60% 120% at 22% 50%, rgba(255, 150, 60, 0.85), rgba(220, 40, 0, 0.45) 45%, transparent 78%);
  mix-blend-mode: screen; animation: infFlashUp 1.35s ease-out both;
}
html body #hullFrame > #infFlash.down {
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 248, 225, 0.7) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; mix-blend-mode: screen; animation: infWash 1.5s ease-in-out both;
}
@keyframes infFlashUp { 0% { opacity: 0; } 10% { opacity: 1; } 30% { opacity: 0.55; } 42% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes infWash { 0% { opacity: 0; background-position: 100% 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
html body #hullFrame.infUp { animation: infJolt 0.5s ease-out; }
html body #hullFrame.infDown { animation: infEase 1s ease-in-out; }
@keyframes infJolt { 0%, 100% { translate: 0 0; } 15% { translate: -4px 1px; } 30% { translate: 4px -1px; } 45% { translate: -3px 0; } 62% { translate: 2px 0; } 80% { translate: -1px 0; } }
@keyframes infEase { 0%, 100% { translate: 0 0; } 40% { translate: 0 -2px; } }

/* ro (html.calm) og reduceret bevægelse: intet ryk eller glimt, stjernerne står bare; skiltet toner kun ind */
html.calm body #hullFrame.infUp, html.calm body #hullFrame.infDown, html.calm body #hullFrame > #infFlash { animation: none !important; opacity: 0; }
html.calm #infShift .st, html.calm span.infCh .st, html.calm #infShift .st::after, html.calm span.infCh .st::after { animation: none !important; }
html.calm #infShift .st.lost::after, html.calm span.infCh .st.lost::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  html body #hullFrame.infUp, html body #hullFrame.infDown, html body #hullFrame > #infFlash { animation: none !important; opacity: 0; }
  #infShift .st, span.infCh .st, #infShift .st::after, span.infCh .st::after { animation: none !important; }
  #infShift .st.lost::after, span.infCh .st.lost::after { display: none; }
  html body #hullFrame > #infShift { animation-name: isFade !important; }
  html body #hullFrame > #infShift.out { animation-name: isFadeOut !important; }
}
@keyframes isFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes isFadeOut { to { opacity: 0; } }

/* 2026-11-14 (HUD-skriveriet): synke-vandets 18 bobler kørte deres animation hele tiden, også når #floodFx var usynlig
   (opacity 0): en ny stilberegning af dem i hvert billede. Uden .on står de stille. */
#floodFx:not(.on) .fbub span { animation-play-state: paused; }
/* 2026-11-28: det samme for vandlinjens bølgekant (floodWave): den eneste animation, der stadig kørte usynligt hele rejsen */
#floodFx:not(.on) .fline b { animation-play-state: paused; }

/* 2026-11-14: legendernes farver på fjendepanelet (legendPanel i 14b sætter data-legend og --lgS sejl, --lgG skær, --lgP vimpel) */
body #enemyPanel[data-legend] header h2.np5 {
  text-shadow: 0 1px 0 #fffbe6, 0 -1px 0 #3a2406, 0 2px 0 #1a0f02, 0 0 14px var(--lgG, #ffd36a) !important;
  box-shadow: inset 0 0 0 2px #2a1a08, inset 0 0 0 5px var(--lgS, #ffd36a), inset 0 0 0 6px #120b05, inset 0 0 0 8px var(--lgP, #e9b850), 0 0 0 1px #3a2406, 0 5px 14px rgba(0,0,0,0.7), 0 0 26px var(--lgG, rgba(255,200,90,0.45)); }
body #enemyPanel[data-legend] header h2.np5::before { color: var(--lgG, #ffd36a); text-shadow: 0 1px 0 #2a1a08, 0 0 9px var(--lgG, #ffd36a); }
body #enemyPanel[data-legend] header h2.np5::after { color: var(--lgP, #e9b850); text-shadow: 0 0 6px var(--lgG, #ffd36a); }
/* 2026-12-04: hele fjendepanelet får legendens farve (--lgT fra legendPanel): farven lægges over som kulør (mix-blend-mode: color), så lys og mørke bliver, og et skær foroven og en ramme i skærets farve */
body #enemyPanel[data-legend]::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; background: var(--lgT, #ffd36a); mix-blend-mode: color; opacity: 0.5; }
body #enemyPanel[data-legend]::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--lgG, #ffd36a) 22%, transparent), transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lgG, #ffd36a) 55%, transparent), inset 0 0 30px color-mix(in srgb, var(--lgT, #ffd36a) 28%, transparent); }
html body #enemyPanel.panel[data-legend] { box-shadow: 0 0 0 1.5px #160403, 0 0 0 2.5px color-mix(in srgb, var(--lgG, #5e140c) 60%, #2a0a06), inset 0 0 26px rgba(0, 0, 0, 0.45), 0 10px 16px rgba(0, 0, 0, 0.55), 0 0 22px color-mix(in srgb, var(--lgG, #ffd36a) 35%, transparent) !important; }

/* 2026-11-14: havnens overskrift viser tømrerens lager (tømmer, jern, sejldug) som små ikoner med tal (renderPort, 12) */
#port .res .pMats { display: inline-flex; align-items: center; gap: 10px; }
#port .res .pMat { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
#port .res .pMat .px { width: 18px; height: 18px; flex: none; }

/* ---------- Flagskibets fasekort i fjendepanelet (14b bossBar/bossCard, 2026-11-14; afløser bjælken øverst) ----------
   Fasestreger på hendes skrogbjælke, tre medaljoner (I-III) på en guldlinje, hvad hun gør nu (lunte + hvor langt vi er med
   at bryde det) og tre små mærker: admiralen, tømrerne og ovnen. Rød = truslen står endnu, grøn = brudt. */
#bossCard { position: relative; margin: 8px 0 4px; padding: 9px 11px 10px; border-radius: 4px; color: #ffe8d8;
  background: radial-gradient(130% 80% at 50% -10%, rgba(150, 30, 16, 0.55), rgba(26, 7, 4, 0.92) 68%), #170604;
  border: 1px solid #9a6a26; box-shadow: inset 0 0 0 1px rgba(255, 217, 138, 0.14), inset 0 -14px 22px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(0, 0, 0, 0.45); }
#bossCard::before, #bossCard::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid #ffd98a; opacity: 0.75; pointer-events: none; }
#bossCard::before { top: 3px; left: 3px; border-right: 0; border-bottom: 0; }
#bossCard::after { bottom: 3px; right: 3px; border-left: 0; border-top: 0; }
#bossCard .bcHead { display: flex; align-items: center; gap: 6px; font: 400 1.08rem/1.1 "Pirata One", var(--display); color: #ffd98a; letter-spacing: 0.04em; text-shadow: 0 1px 0 #2a0a04; padding-left: 6px; }
#bossCard .bcCrown { width: 17px; height: 17px; color: #ffd98a; filter: drop-shadow(0 1px 0 #2a0a04); }
#bossCard .bcPh { margin-left: auto; font: 700 0.62rem var(--body); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: #f0b898; padding: 2px 7px; border-radius: 9px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, 0.25); }
/* faserne: tre medaljoner på en linje, der fyldes med guld efterhånden */
#bossCard .bcTrack { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 9px 0 8px; padding: 0; --p: 0%; }
#bossCard[data-ph="1"] .bcTrack { --p: 50%; }
#bossCard[data-ph="2"] .bcTrack { --p: 100%; }
#bossCard .bcTrack::before { content: ""; position: absolute; top: 15px; left: 16.67%; right: 16.67%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #ffd98a 0 var(--p), rgba(255, 217, 138, 0.16) var(--p) 100%); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); transition: background 0.6s; }
#bossCard .bcTrack li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
#bossCard .bcTrack i { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-sizing: border-box;
  font: 400 0.98rem/1 "IM Fell English SC", var(--display); font-style: normal; color: #8f7058; background: #1c0b06; border: 2px solid rgba(255, 217, 138, 0.3);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); transition: all 0.4s; }
#bossCard .bcTrack span { font: 700 0.7rem/1.15 var(--body); color: #b89a84; }
#bossCard .bcTrack small { font: 500 0.58rem var(--body); color: #8e7262; letter-spacing: 0.04em; }
#bossCard .bcTrack li.past i { color: #2a1406; background: linear-gradient(180deg, #e6c070, #a87a2a); border-color: #ffd98a; }
#bossCard .bcTrack li.past span { color: #d8bc96; text-decoration: line-through; text-decoration-color: rgba(255, 217, 138, 0.55); }
#bossCard .bcTrack li.now i { width: 34px; height: 34px; margin-top: -2px; color: #fff4d8; border-color: #ffd98a; text-shadow: 0 1px 0 #4a0a04;
  background: radial-gradient(circle at 38% 32%, #ff9a6a, #c0281a 55%, #6a0c06); box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.16), 0 0 16px rgba(255, 80, 40, 0.75); animation: bcPulse 2.4s ease-in-out infinite; }
#bossCard .bcTrack li.now span { color: #fff0dc; }
#bossCard .bcTrack li.now small { color: #f0b898; }
@keyframes bcPulse { 50% { box-shadow: 0 0 0 5px rgba(255, 217, 138, 0.1), 0 0 24px rgba(255, 80, 40, 0.95); } }
/* hvad hun gør nu */
#bossCard .bcTac { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 2px 9px; padding: 7px 9px 7px 8px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.36); border-left: 3px solid #9a7a4a; transition: background 0.3s, border-color 0.3s; }
#bossCard .bcIco { display: grid; place-items: center; color: #ffd98a; }
#bossCard .bcIco .bci { width: 26px; height: 26px; filter: drop-shadow(0 1px 0 #1a0604); }
#bossCard .bcTxt { min-width: 0; }
#bossCard .bcName { display: block; font: 700 0.86rem/1.2 var(--body); color: #ffe8d8; }
#bossCard .bcHow { display: block; font: 500 0.74rem/1.25 var(--body); color: #e2bca6; }
#bossCard .bcTime { font: 800 1.45rem/1 var(--body); color: #fff; text-shadow: 0 2px 0 #3a0804, 0 0 10px rgba(255, 90, 40, 0.6); font-variant-numeric: tabular-nums; }
#bossCard .bcBars { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
#bossCard .bcFuse { display: block; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
#bossCard .bcFuse i { display: block; height: 100%; background: linear-gradient(90deg, #ff4a1a, #ffb84a); box-shadow: 0 0 8px #ff7a2a; transition: width 0.15s linear; }
#bossCard .bcBreak { position: relative; display: block; height: 16px; border-radius: 2px; background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px rgba(150, 220, 130, 0.35); overflow: hidden; }
#bossCard .bcBreak i { display: block; height: 100%; background: linear-gradient(180deg, #a8e892, #3e8a36); transition: width 0.25s; }
#bossCard .bcBreak em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 0.64rem var(--body); font-style: normal; letter-spacing: 0.04em; color: #fff; text-shadow: 0 1px 1px #000; }
#bossCard .bcBreak.nobar { background: none; box-shadow: none; height: auto; }
#bossCard .bcBreak.nobar i { display: none; }
#bossCard .bcBreak.nobar em { position: static; place-items: start; color: #f0c8b0; }
#bossCard .bcTac[data-m="warn"] { border-left-color: #ff5a3a; background: linear-gradient(90deg, rgba(170, 26, 12, 0.6), rgba(46, 8, 4, 0.45)); animation: bcWarn 1s ease-in-out infinite; }
#bossCard .bcTac[data-m="warn"] .bcName { color: #ffcf6a; text-transform: uppercase; letter-spacing: 0.05em; }
#bossCard .bcTac[data-m="warn"] .bcIco { color: #ffb08a; }
#bossCard .bcTac[data-m="dead"] { border-left-color: #6abf6a; background: rgba(20, 50, 18, 0.4); }
#bossCard .bcTac[data-m="dead"] .bcIco, #bossCard .bcTac[data-m="dead"] .bcName { color: #b8f0a8; }
@keyframes bcWarn { 50% { box-shadow: inset 0 0 0 1px rgba(255, 120, 70, 0.6), 0 0 12px rgba(255, 60, 30, 0.35); } }
/* admiralen, tømrerne, ovnen */
#bossCard .bcChips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#bossCard .bcChips > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 10px; font: 600 0.68rem/1.4 var(--body);
  background: rgba(0, 0, 0, 0.42); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, 0.18); color: #ecd2be; cursor: help; }
#bossCard .bcChips .bci { width: 15px; height: 15px; }
#bossCard .bcChips .bad .bci { color: #ff8a6a; }
#bossCard .bcChips .good { color: #c4f2b4; box-shadow: inset 0 0 0 1px rgba(150, 220, 130, 0.45); background: rgba(16, 40, 14, 0.5); }
#bossCard .bcChips .good .bci { color: #9fe08a; }
/* fasestregerne på hendes skrogbjælke */
body #enemyPanel .emeters > .big .bar.bossHull { overflow: visible !important; }
body #enemyPanel #epHullWrap .bcTick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; z-index: 3; background: #ffd98a; box-shadow: 0 0 0 1px rgba(40, 10, 4, 0.8), 0 0 6px rgba(255, 217, 138, 0.8); text-decoration: none; }
body #enemyPanel #epHullWrap .bcTick::after { content: attr(data-n); position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); font: 400 0.62rem/1 "IM Fell English SC", var(--display); color: #ffd98a; text-shadow: 0 1px 0 #1a0604; }
html.calm #bossCard *, html.calm #bossCard { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #bossCard *, #bossCard { animation: none !important; } }
/* testbuild (16b H): skjult menu (F9 / §) og mærket */
#bxTest { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  padding: 14px; border-radius: 10px; background: linear-gradient(180deg, rgba(30, 19, 10, 0.97), rgba(18, 11, 6, 0.97)); box-shadow: 0 0 0 1.5px #0c0703, 0 0 0 3px #8a6a32, 0 18px 40px rgba(0, 0, 0, 0.6); color: #efe3c6; font: 0.86rem/1.35 var(--body); }
#bxTest[hidden], #bxTestTag[hidden] { display: none; }
#bxTest header { position: relative; padding: 0 30px 10px 2px; }
#bxTest header b { display: block; font: 400 1.25rem/1.1 "IM Fell English SC", var(--display); color: #ffd98a; }
#bxTest header small { color: #cdb98f; font-size: 0.74rem; }
#bxTest .x { position: absolute; right: 0; top: -2px; width: 26px; height: 26px; min-width: 0; padding: 0; display: grid; place-items: center; line-height: 1; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #efe3c6; font-size: 1.1rem; cursor: pointer; }
#bxTest .bxtList { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; padding: 2px; }
#bxTest [data-bxt] { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left; padding: 6px 9px 6px 13px; border: 0;
  border-radius: 6px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 4px 0 0 var(--dc), inset 0 0 0 1px rgba(255, 217, 138, 0.12); color: inherit; font: inherit; cursor: pointer; }
#bxTest [data-bxt]:hover { background: rgba(255, 217, 138, 0.08); }
#bxTest [data-bxt].on { background: rgba(255, 217, 138, 0.16); box-shadow: inset 4px 0 0 var(--dc), inset 0 0 0 1.5px #ffd98a; }
#bxTest [data-bxt] i { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; }
#bxTest [data-bxt] i > * { width: 28px; height: 28px; }
#bxTest [data-bxt] b { font-weight: 700; }
#bxTest [data-bxt] small { color: #cdb98f; font-size: 0.72rem; }
#bxTestTag { position: fixed; z-index: 45; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 2px 10px 2px 4px;
  border-radius: 10px; background: rgba(12, 7, 3, 0.82); box-shadow: inset 0 0 0 1px var(--dc, #ffd98a); color: #ffd98a; font: 700 0.66rem/1.6 var(--body); letter-spacing: 0.06em; cursor: pointer; pointer-events: auto; }
#bxTestTag i { width: 16px; height: 16px; display: grid; place-items: center; }
#bxTestTag i > * { width: 16px; height: 16px; }
/* Hell Ship v2 (16c I): hvor meget hendes brande tager i minuttet, i hendes skrogbjælke; brandtallene over hende */
body #enemyPanel #epHullWrap .burnRate { position: absolute; right: 5px; top: 2px; bottom: 2px; z-index: 4; display: flex; align-items: center; gap: 3px; padding: 0 7px 0 4px; border-radius: 8px; pointer-events: auto; cursor: help;
  background: rgba(22, 7, 2, 0.84); box-shadow: inset 0 0 0 1px rgba(255, 140, 60, 0.55);
  font: 800 0.7rem/1 var(--body); color: #ffd2a0; letter-spacing: 0.02em; text-shadow: 0 1px 0 #1a0604, 0 0 6px rgba(255, 100, 30, 0.85); animation: burnGlow 1.6s ease-in-out infinite; }
body #enemyPanel #epHullWrap .burnRate[hidden] { display: none; }
body #enemyPanel #epHullWrap .burnRate .px { width: 13px; height: 13px; flex: none; }
@keyframes burnGlow { 50% { color: #ffefc8; text-shadow: 0 1px 0 #1a0604, 0 0 10px rgba(255, 130, 40, 1); } }
.floater.burnF { color: #ffb070; text-shadow: 0 1px 0 #2a0a02, 0 0 8px rgba(255, 90, 20, 0.8); font-size: 0.82rem; }
html.calm #epHullWrap .burnRate { animation: none; }
@media (prefers-reduced-motion: reduce) { #epHullWrap .burnRate { animation: none; } }
/* Helvedesskibets effekter (16c J): glødekanten efter trin (t1 ulmer, t2 i brand, t3 HELLFIRE; devil = the Devil's Ensign), og hendes brændende skrogbjælke */
#hellVig { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.9s; }
#hellVig.t1 { opacity: 0.55; background: radial-gradient(ellipse at 50% 60%, transparent 62%, rgba(255, 110, 30, 0.22) 100%); }
#hellVig.t2 { opacity: 0.8; background: radial-gradient(ellipse at 50% 60%, transparent 55%, rgba(255, 90, 20, 0.3) 88%, rgba(150, 20, 6, 0.42) 100%); animation: hellFlick 2.4s ease-in-out infinite; }
#hellVig.t3 { opacity: 1; background: radial-gradient(ellipse at 50% 55%, transparent 46%, rgba(255, 110, 20, 0.32) 78%, rgba(160, 16, 4, 0.55) 100%); animation: hellFlick 1.3s ease-in-out infinite; }
#hellVig.t3.devil { background: radial-gradient(ellipse at 50% 55%, transparent 46%, rgba(255, 70, 40, 0.3) 76%, rgba(110, 20, 120, 0.5) 100%); }
#hellVig.t3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; background: linear-gradient(0deg, rgba(255, 120, 30, 0.22), transparent); animation: hellRise 2.2s ease-in-out infinite; }
@keyframes hellFlick { 0%, 100% { filter: brightness(1); } 30% { filter: brightness(1.25); } 55% { filter: brightness(0.9); } 75% { filter: brightness(1.15); } }
@keyframes hellRise { 50% { opacity: 0.55; transform: translateY(-2vh); } }
body #enemyPanel #epHullWrap.burnGlow { box-shadow: 0 0 10px rgba(255, 100, 20, 0.55), inset 0 0 8px rgba(255, 120, 30, 0.5) !important; animation: hullBurn 1.4s ease-in-out infinite; }
@keyframes hullBurn { 50% { box-shadow: 0 0 16px rgba(255, 120, 30, 0.8), inset 0 0 12px rgba(255, 150, 40, 0.7); } }
.floater.big.burnF b { color: #ffcf7a; text-shadow: 0 2px 0 #3a0804, 0 0 14px rgba(255, 90, 20, 0.95); letter-spacing: 0.08em; }
.floater.big.burnF span { color: #ffd8b0; }
html.calm #hellVig, html.calm #hellVig::after, html.calm #epHullWrap.burnGlow { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #hellVig, #hellVig::after, #epHullWrap.burnGlow { animation: none !important; } }
/* testbuild: "Give all" ved siden af hvert build */
#bxTest .bxtRow { display: grid; grid-template-columns: 1fr auto; gap: 5px; align-items: stretch; }
#bxTest .bxtGive { min-width: 0; padding: 0 10px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #8a6a32, #5e4420); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, 0.4);
  color: #ffe9b8; font: 700 0.72rem var(--body); letter-spacing: 0.03em; cursor: pointer; white-space: nowrap; }
#bxTest .bxtGive:hover:not(:disabled) { background: linear-gradient(180deg, #a8823e, #6e5226); }
#bxTest .bxtGive:disabled { opacity: 0.4; cursor: not-allowed; }

/* YDELSESLOG (2026-11-15): F7 eller Esc-menuen; js/17 perfPanel. Et værktøj, ikke en del af kahytten: mørk, smal skrift, kan markeres */
#perfLog { position: fixed; z-index: 45; left: 12px; top: calc(66px + env(safe-area-inset-top, 0px)); width: min(760px, calc(100vw - 24px)); max-height: 62vh; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #e8dcc0; background: rgba(14, 11, 8, 0.93); border: 1px solid #8a6a2a; border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); }
#perfLog[hidden] { display: none; }
#perfLog .pfHead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#perfLog .pfHead b { color: #f0c96a; font-size: 12px; letter-spacing: 0.04em; }
#perfLog #pfLive { flex: 1 1 260px; color: #b9d8b0; font-variant-numeric: tabular-nums; }
#perfLog button { font: inherit; color: #1c1408; background: #d9ad4c; border: 1px solid #6e531c; border-radius: 5px; padding: 3px 9px; cursor: pointer; }
#perfLog button:hover { background: #f0c96a; }
#perfLog button:focus-visible { outline: 2px solid #fff3c0; outline-offset: 1px; }
#perfLog #pfClear, #perfLog #pfClose { color: #e8dcc0; background: transparent; border-color: #6a5a3a; }
#perfLog #pfBody { margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; min-height: 3em; color: #d8cfb8; }
#perfLog #pfText { width: 100%; height: 140px; font: inherit; color: #e8dcc0; background: #1a1510; border: 1px solid #6a5a3a; border-radius: 5px; resize: vertical; }

/* 2026-11-15 (lagspikes): sløringen bag spillets træ- og pergamentpaneler kostede grafikkortet hvert billede (det levende
   3D-billede bag dem skulle sløres igen og igen; søkortet alene er ca. 1000×740 px), men panelerne er 98-100 % dækkende,
   så den kunne ikke ses. Menuens mørke paneler (94 %) beholder den. */
.panel:not(#menuDisplay):not(#sailsMenu):not(#howTo) { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- 2026-11-15: Ship's log "Latest" (12f lbEntry), ukendte ting i Builds, udkiggens "KILLED" ---------- */
#shipLog .lbList { display: flex; flex-direction: column; gap: 5px; }
#shipLog .lbItem { border: 1px solid rgba(201, 194, 176, 0.35); border-left: 3px solid var(--lbc, #c9a85a); border-radius: 6px; background: rgba(10, 18, 28, 0.5); }
#shipLog .lbItem.k-upg { --lbc: #7ab8e0; } #shipLog .lbItem.k-gun { --lbc: #d8d0bc; } #shipLog .lbItem.k-crew { --lbc: #7ad874; } #shipLog .lbItem.k-trinket { --lbc: #e0a05a; }
/* 2026-12-02: artefakter og småting får kanten i deres sjældenheds farve (--r fra .r-*), så den stemmer med teksten */
#shipLog .lbItem:is(.k-art, .k-trinket):is(.r-common, .r-uncommon, .r-rare, .r-exceptional, .r-unique, .r-mystic) { --lbc: var(--r); }
#shipLog .lbItem > summary { display: flex; align-items: center; gap: 10px; padding: 5px 9px; cursor: pointer; list-style: none; }
#shipLog .lbItem > summary::-webkit-details-marker { display: none; }
#shipLog .lbItem > summary:hover { background: rgba(255, 230, 180, 0.06); }
#shipLog .lbItem[open] > summary { border-bottom: 1px solid rgba(201, 194, 176, 0.2); }
#shipLog .lbIco { flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
#shipLog .lbIco :is(svg, img, .px) { max-width: 34px; max-height: 34px; width: auto; height: auto; }
#shipLog .lbIco img { object-fit: contain; border-radius: 4px; }
#shipLog .lbName { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#shipLog .lbName b { font-size: 0.95rem; }
#shipLog .lbName small { color: #c9bfa8; font-size: 0.78rem; }
#shipLog .lbWhen { flex: 0 0 auto; color: #c9bfa8; font-size: 0.75rem; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
#shipLog .lbWhen em { font-style: normal; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #1a0f05; background: #ffd27a; border-radius: 3px; padding: 1px 5px; }
#shipLog .lbBody { padding: 6px 10px 8px 53px; }
#shipLog .lbBody p { margin: 0 0 4px; font-size: 0.84rem; color: #d6c6a3; line-height: 1.4; }
#shipLog .lbBody .lbDim { color: #a89c84; font-size: 0.78rem; }
#shipLog .lbBody .artLore { display: block; margin: 0 0 6px; font-size: 0.8rem; color: #bfb29a; }
#shipLog .lbBody button { margin-top: 2px; }
.docArt.unk { font: 700 0.85rem var(--body, sans-serif); color: #a89c84; cursor: default; }
html body #floaters .floater.big.kill { color: #fff1e0; background: rgba(64, 10, 6, 0.86); border: 1px solid #e0543a; box-shadow: 0 0 10px rgba(224, 84, 58, 0.65), 0 2px 8px rgba(0, 0, 0, 0.6); }
html body #floaters .floater.big.kill b { letter-spacing: 0.06em; }

/* skibsvinduet (2026-11-15): overskrift og fanerne (Armory/Workshop/Equipment) står fast øverst; kun indholdet ruller (som inventaret) */
html body :is(#workshop, #armory) > .panel { overflow: hidden !important; }
html body #workshop > .panel > .wsGrid, html body #armory > .panel > .arGrid {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 2px 4px 14px; margin: 0 -4px; scrollbar-gutter: stable;
}
html body :is(#workshop, #armory) > .panel > :is(.chartHead, .wsNote, .portFoot) { flex: 0 0 auto; }

/* 2026-11-15: de forseglede depecher, sjældenheden Mystical (over unique; kun ordren, 11 renderInventory): skiftende kant i havgrønt, violet
   og guld, et lysskær der glider hen over rækken, seglet gløder, og navnet skinner. html.calm og reduceret bevægelse: stille */
.r-mystic { --r: #6ff3dc; }
html body #inventory .invItem.art.r-mystic { position: relative; overflow: hidden; isolation: isolate; border-left: 3px solid #6ff3dc !important;
  background: linear-gradient(100deg, rgba(46, 20, 72, 0.62), rgba(12, 54, 60, 0.55) 55%, rgba(70, 46, 12, 0.5)) !important;
  box-shadow: inset 0 0 16px rgba(111, 243, 220, 0.22), 0 0 10px rgba(111, 243, 220, 0.3); animation: mysticEdge 6s linear infinite; }
@keyframes mysticEdge {
  0%, 100% { border-left-color: #6ff3dc; box-shadow: inset 0 0 16px rgba(111, 243, 220, 0.22), 0 0 10px rgba(111, 243, 220, 0.3); }
  33% { border-left-color: #b98cff; box-shadow: inset 0 0 16px rgba(185, 140, 255, 0.24), 0 0 12px rgba(185, 140, 255, 0.35); }
  66% { border-left-color: #ffcf6a; box-shadow: inset 0 0 16px rgba(255, 207, 106, 0.2), 0 0 10px rgba(255, 207, 106, 0.3); } }
html body #inventory .invItem.art.r-mystic::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(200, 255, 245, 0.16) 47%, rgba(220, 190, 255, 0.13) 53%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0; animation: mysticSheen 5s ease-in-out infinite; }
@keyframes mysticSheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -120% 0; } }
html body #inventory .invItem.art.r-mystic .px { outline-color: #6ff3dc; background: #10262a; animation: mysticSeal 3s ease-in-out infinite; }
@keyframes mysticSeal { 50% { filter: drop-shadow(0 0 6px rgba(111, 243, 220, 0.9)) brightness(1.18); } }
html body #inventory .invItem.art.r-mystic b { width: fit-content; font: 400 1.2rem "Pirata One", var(--display, serif); letter-spacing: 0.03em;
  background: linear-gradient(90deg, #a8fff0, #d8c2ff, #ffe39a, #a8fff0); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: mysticName 7s linear infinite; }
@keyframes mysticName { to { background-position: 200% 0; } }
html body #inventory .invItem.art.r-mystic .n { color: #9ff8e8; text-shadow: 0 0 8px rgba(111, 243, 220, 0.8); letter-spacing: 0.14em; }
html body #inventory .invItem.art.r-mystic .artLore { color: #bfe9e2; }
html.calm body #inventory .invItem.art.r-mystic, html.calm body #inventory .invItem.art.r-mystic *, html.calm body #inventory .invItem.art.r-mystic::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html body #inventory .invItem.art.r-mystic, html body #inventory .invItem.art.r-mystic *, html body #inventory .invItem.art.r-mystic::after { animation: none !important; } }

/* 2026-11-15: hendes mandskab som en række mænd (#epRoster, 11b foeRosterUI): med udkig i stedet for Crew-boksen, samme række */
body #enemyPanel .emeters > div[hidden] { display: none !important; }
body #enemyPanel .emeters > #epRoster { grid-column: span 3; flex-direction: row; align-items: center; gap: 8px; padding: 4px 8px 5px 7px; }
#epRoster .erHead { flex: none; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 5px; row-gap: 1px; }
#epRoster .erHead[hidden], #epRoster .erMen[hidden], #epRoster .erVeil[hidden] { display: none !important; }
#epRoster .erHead .eliW { display: inline-flex; align-items: center; }
#epRoster .erHead .eli { width: 18px; height: 18px; color: #ff9a7a; filter: drop-shadow(0 1px 0 #1a0604); }
#epRoster .erN { font: 800 0.95rem/18px var(--body); color: #ffe8d8; }
#epRoster .erN small { font-size: 0.7rem; color: #c88c78; margin-left: 1px; }
#epRoster .erCmp { grid-column: 1 / -1; font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: #e0a890; white-space: nowrap; }
#epRoster .erMen { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-content: center; gap: 3px; }
/* hver mand som vores folk i postlisten (.cc): et lille pixelportræt i en ramme, i hendes besætnings farver (foePortrait, 14b) */
#epRoster .erM { position: relative; width: 22px; height: 22px; flex: none; box-sizing: border-box; border: 2px solid #8a5a44; border-radius: 4px; background: #120c08; line-height: 0; }
#epRoster .erM img { width: 100%; height: 100%; display: block; border-radius: 2px; image-rendering: pixelated; }
#epRoster.many .erM { width: 18px; height: 18px; border-width: 1.5px; }
#epRoster.lots .erM { width: 15px; height: 15px; border-width: 1px; border-radius: 3px; }
#epRoster.ghosts .erM { border-color: #4a9a78; box-shadow: 0 0 5px rgba(125, 255, 192, 0.5); }
#epRoster .erM.dead { border-color: #3a302a; box-shadow: none; }
#epRoster .erM.dead img { filter: grayscale(1) brightness(0.55) contrast(0.9); }
#epRoster .erM.dead::after { content: ""; position: absolute; inset: -3px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.2 2.2l7.6 7.6M9.8 2.2l-7.6 7.6' stroke='%231a0604' stroke-width='4' stroke-linecap='round'/><path d='M2.2 2.2l7.6 7.6M9.8 2.2l-7.6 7.6' stroke='%23ff2a1a' stroke-width='2.2' stroke-linecap='round'/></svg>") center / contain no-repeat; }
#epRoster .erM.dead.fell { animation: erFell 0.9s ease-out; }
#epRoster .erM.dead.fell::after { animation: erX 0.45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes erFell { 0% { box-shadow: 0 0 10px 2px #ff3020; border-color: #ff5030; transform: translateY(-2px) scale(1.2); } 100% { transform: none; } }
@keyframes erFellImg { 0% { filter: brightness(1.6) sepia(1) hue-rotate(-30deg) saturate(4); } 100% { filter: grayscale(1) brightness(0.55) contrast(0.9); } }
#epRoster .erM.dead.fell img { animation: erFellImg 0.9s ease-out; }
@keyframes erX { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* spøgelset rejser sig: grønt skyller op over portrættet (--p 0..1), krydset blegner, og rammen lyser */
#epRoster .erM.rising::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: rgba(110, 255, 185, 0.55); mix-blend-mode: screen; clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); }
#epRoster .erM.rising { border-color: #4a9a78; box-shadow: 0 0 calc(2px + var(--p, 0) * 7px) rgba(125, 255, 192, 0.85); animation: erRise 1.6s ease-in-out infinite; }
#epRoster .erM.rising::after { opacity: calc(1 - var(--p, 0)); }
@keyframes erRise { 50% { transform: translateY(-1px); } }
#epRoster .erM.up { animation: erUp 1.1s ease-out; }
#epRoster .erM.up img { animation: erUpImg 1.1s ease-out; }
@keyframes erUp { 0% { transform: translateY(5px) scale(0.6); box-shadow: 0 0 14px 4px #7dffc0; } 45% { transform: translateY(-3px) scale(1.2); } 100% { transform: none; } }
@keyframes erUpImg { 0% { filter: brightness(2.2) saturate(0.4); } 100% { filter: none; } }
/* de navnløse: slør med røde øjne i stedet for tal */
body #enemyPanel .emeters > #epRoster.veiled { background: #07050a; box-shadow: inset 0 0 0 1px #6a1020, inset 0 0 14px rgba(176, 32, 60, 0.35); padding: 2px 8px 0; overflow: hidden; }
#epRoster .erVeil { flex: 1; display: flex; align-items: flex-end; gap: 8px; min-width: 0; height: 36px; }
#epRoster .erVeilSvg { flex: 1; min-width: 0; height: 34px; }
#epRoster .erVeilSvg .vf { fill: #0d0a10; stroke: #3a0a16; stroke-width: 0.6; }
#epRoster .erVeilSvg .vm { fill: #2a1024; opacity: 0.55; animation: erMist 7s ease-in-out infinite alternate; }
#epRoster .erVeilSvg .vm2 { fill: #1a0a14; opacity: 0.85; animation: erMist 5s ease-in-out infinite alternate-reverse; }
#epRoster .erVeilSvg .ve { fill: #ff3020; filter: drop-shadow(0 0 1.5px #ff3020); animation: erEyes 3.1s steps(1) infinite; }
#epRoster .erVeil > span { flex: none; align-self: center; font: 400 0.95rem "Pirata One", var(--display); letter-spacing: 0.08em; color: #d8203c; text-shadow: 0 0 8px rgba(216, 32, 60, 0.7), 0 1px 0 #000; }
@keyframes erEyes { 0%, 88% { opacity: 1; } 90% { opacity: 0.1; } 94% { opacity: 1; } }
@keyframes erMist { to { transform: translateX(-6px); } }
html.calm #epRoster .erM, html.calm #epRoster .erVeilSvg * { animation: none !important; }
html body #floaters .floater.big.ghostUp { color: #d8ffe8; background: rgba(6, 30, 22, 0.86); border: 1px solid #7dffc0; box-shadow: 0 0 12px rgba(125, 255, 192, 0.6), 0 2px 8px rgba(0, 0, 0, 0.6); }
html body #floaters .floater.big.ghostUp b { color: #9affd0; letter-spacing: 0.06em; text-shadow: 0 0 8px rgba(125, 255, 192, 0.8); }

/* 2026-12-03: ambolt-mærket på valg, der med sikkerhed fører til skrothandleren (evScrap, 12-voyage-events) */
#eventBox .evc .evScrap { display: inline-flex; align-items: center; gap: 0.3em; align-self: flex-start; padding: 0.05em 0.5em 0.05em 0.3em; border-radius: 3px; font: 700 0.68rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #d6dde3; background: rgba(120, 135, 148, 0.18); box-shadow: inset 0 0 0 1px rgba(170, 185, 196, 0.55); }
#eventBox .evc .evScrap svg { width: 1.35em; height: 1.35em; display: block; }

/* 2026-12-03: slangernes fjendemenu: intet vand eller mandskab; undvigelsen som en lille linje under "Health" (11b, .monster/#epEvMini) */
html body #enemyPanel .emeters.monster > div:not(.big), html body #enemyPanel .emeters.monster > #epRoster { display: none !important; }
html body #enemyPanel .emeters label .evMini { display: inline-flex; align-items: center; gap: 3px; margin-top: 1px; font: 600 0.6rem var(--body); letter-spacing: 0.04em; text-transform: none; color: #e0a890; opacity: 0.85; white-space: nowrap; }
html body #enemyPanel .emeters label .evMini[hidden] { display: none !important; }
html body #enemyPanel .emeters label .evMini .eli { width: 12px; height: 12px; vertical-align: 0; filter: none; }
