/* UI v14 "Cabin", del 2 (delt fra 07-cabin.css 2026-11-17 ved 120 KB; indlæses lige efter den og er nu det sidste lag: nye regler står sidst her) */
/* små mærker i toppen (Chase guns, Bomb bed, pressede mænd, langrage) */
html body #combatBoard > .cbHead #bxAux { order: 1; margin: 0 0 0 auto; display: flex; flex-wrap: nowrap; gap: 4px; font: 700 11px/1 var(--body); }
html body #combatBoard > .cbHead #bxAux[hidden] { display: none; }
html body #combatBoard > .cbHead #bxAux span { height: 18px; padding: 0 6px; gap: 4px; border-radius: 9px; background: #1a0f07; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75); letter-spacing: 0; text-transform: none; }
html body #combatBoard > .cbHead #bxAux .bxBar { width: 22px; height: 4px; border: 0; border-radius: 2px; background: #3a2410; }
html body #combatBoard > .cbHead #bxAux:not([hidden]) ~ #btnCbFold { margin-left: 6px !important; }

/* ---------- ny nedkomst: brættet glider ud under skrogtavlen, sætter sig med et lille hop, og så kommer delene på plads ---------- */
html body.in-combat #combatBoard#combatBoard { transform-origin: 50% 0; animation: cbDropA2 1s linear both; }
@keyframes cbDropA2 {
  0%   { transform: translateY(-46px); opacity: 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 0%; mask-size: 100% 0%; animation-timing-function: cubic-bezier(0.22, 0.9, 0.3, 1); }
  15%  { opacity: 1; }
  60%  { transform: translateY(0); -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 200%; mask-size: 100% 200%; animation-timing-function: ease-out; }
  72%  { transform: translateY(3px) scaleY(0.985); animation-timing-function: ease-in-out; }
  86%  { transform: translateY(-1px); }
  99%  { transform: none; opacity: 1; -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 200%; mask-size: 100% 200%; }
  100% { transform: none; opacity: 1; -webkit-mask-image: none; mask-image: none; }
}
html body.in-combat #combatBoard > .cbHead { animation: cbHeadGlint 0.9s ease-out 0.95s both; }
html body.in-combat #combatBoard #aboutPanel .sideSwitch button { transform-origin: 50% 0; animation: flagDropA2 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 0.42s both; }
html body.in-combat #combatBoard #aboutPanel .sideSwitch button[data-s="1"] { animation-delay: 0.5s; }
@keyframes flagDropA2 { 0% { transform: translateY(-10px) rotateX(80deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }
html body.in-combat #combatBoard #btnBreak .baFlag { animation: pennantA2 0.7s cubic-bezier(0.25, 0.9, 0.3, 1) 0.5s both; }
@keyframes pennantA2 {
  0%   { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); }
  70%  { clip-path: polygon(0 0, 100% 3%, 86% 52%, 100% 97%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 89% 50%, 100% 100%, 0 100%); }
}
html body.in-combat #combatBoard #rangePanel .rTrack .rLine { animation: lineA2 0.5s ease-out 0.62s both; }
@keyframes lineA2 { from { transform: scaleX(0); } }
html body.in-combat #combatBoard #rangePanel #rngBtns button { animation: pegA2 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) 0.72s both; }
html body.in-combat #combatBoard #rangePanel #rngBtns button:nth-child(2) { animation-delay: 0.8s; }
html body.in-combat #combatBoard #rangePanel #rngBtns button:nth-child(3) { animation-delay: 0.88s; }
html body.in-combat #combatBoard #rangePanel #rngBtns button:nth-child(4) { animation-delay: 0.96s; }
@keyframes pegA2 { from { transform: translateY(6px) scale(0.5); opacity: 0; } }
html body.in-combat #combatBoard #rangePanel .rTrack .rLbl { animation: pegA2 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) 1s both; }
@media (prefers-reduced-motion: reduce) {
  html body.in-combat #combatBoard#combatBoard { animation: cbFadeIn 0.3s ease-out both !important; }
  html body.in-combat #combatBoard #aboutPanel .sideSwitch button, html body.in-combat #combatBoard #btnBreak .baFlag, html body.in-combat #combatBoard #rangePanel .rTrack .rLine,
  html body.in-combat #combatBoard #rangePanel #rngBtns button, html body.in-combat #combatBoard #rangePanel .rTrack .rNow, html body.in-combat #combatBoard #rangePanel .rTrack .rLbl, html body.in-combat #combatBoard #rangePanel .rTrack #rngTHer.rHer,
  html body #combatBoard #breakPanel #btnBreak.bigBtn:not(:disabled) { animation: none !important; }
}
html.calm body.in-combat #combatBoard#combatBoard { animation: cbFadeIn 0.3s ease-out both !important; }
html.calm body #combatBoard #aboutPanel .sideSwitch button, html.calm body #combatBoard #btnBreak .baFlag, html.calm body #combatBoard #rangePanel .rTrack .rLine, html.calm body #combatBoard #rangePanel #rngBtns button,
html.calm body #combatBoard #rangePanel .rTrack .rNow, html.calm body #combatBoard #rangePanel .rTrack .rLbl, html.calm body #combatBoard #rangePanel .rTrack #rngTHer.rHer, html.calm html body #combatBoard #breakPanel #btnBreak.bigBtn:not(:disabled) { animation: none !important; }

/* Hold fire og Dønningen (2026-11-15, 16b afsnit K): knappen i Guns-panelet holder alle kanoner. Med Sea cocks viser en tynd bar i bunden
   dønningen (to halvdele med Dead Men's Pumps); når en ladning er klar, pulserer knappen havgrønt. Holdt: ravfarvet "Fire!" */
html body #battery > h2 .holdBtn { position: relative; flex: 0 0 auto; min-width: 92px; height: 20px; padding: 0 12px 2px !important; color: #e8f6f2 !important;
  background: linear-gradient(180deg, #2c4a52, #1d3238) !important; border: 1px solid #5f8f8a !important; letter-spacing: 0.08em; overflow: hidden; }
html body #battery > h2 .holdBtn:hover { background: linear-gradient(180deg, #375c64, #24404a) !important; }
html body #battery > h2 .holdBtn .hbT { position: relative; z-index: 1; }
html body #battery > h2 .holdBtn .swb { display: none; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 3px; gap: 2px; background: rgba(0, 0, 0, 0.45); border-radius: 2px; }
html body #battery > h2 .holdBtn.swOn .swb { display: flex; }
html body #battery > h2 .holdBtn .swb b { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, #3f9f94, #9ff0dc); transition: width 0.18s linear; }
html body #battery > h2 .holdBtn .swb b + b { display: none; }
html body #battery > h2 .holdBtn.swDual .swb b { flex: 0 0 auto; max-width: calc(50% - 1px); }
html body #battery > h2 .holdBtn.swDual .swb b + b { display: block; }
html body #battery > h2 .holdBtn.held { color: #2a1606 !important; background: linear-gradient(180deg, #f2c66a, #c9913a) !important; border-color: #ffe2a0 !important; }
html body #battery > h2 .holdBtn.swUp { border-color: #9ff0dc !important; animation: swellPulse 1.25s ease-in-out infinite; }
html body #battery > h2 .holdBtn.swUp:not(.held) { background: linear-gradient(180deg, #2f6f6a, #1d4a48) !important; }
html body #battery > h2 .holdBtn.swUp .swb b { background: linear-gradient(90deg, #9ff0dc, #ffffff); box-shadow: 0 0 6px #9ff0dc; }
html body #battery > h2 .holdBtn.swTwo { animation-duration: 0.8s; }
/* en bølge, der løber hen over knappen, når dønningen er oppe */
html body #battery > h2 .holdBtn.swUp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(159, 240, 220, 0.45) 48%, rgba(255, 255, 255, 0.6) 52%, transparent 70%);
  background-size: 250% 100%; animation: swellSheen 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes swellPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(10, 30, 30, 0.7), 0 0 0 0 rgba(95, 232, 208, 0); filter: brightness(1); }
  50% { box-shadow: inset 0 0 0 1px rgba(10, 30, 30, 0.7), 0 0 12px 3px rgba(95, 232, 208, 0.75); filter: brightness(1.18); }
}
@keyframes swellSheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
html.calm body #battery > h2 .holdBtn.swUp, html.calm body #battery > h2 .holdBtn.swUp::after { animation: none; }
html.calm body #battery > h2 .holdBtn.swUp { box-shadow: 0 0 8px rgba(95, 232, 208, 0.7); }
@media (prefers-reduced-motion: reduce) { html body #battery > h2 .holdBtn.swUp, html body #battery > h2 .holdBtn.swUp::after { animation: none; } html body #battery > h2 .holdBtn.swUp { box-shadow: 0 0 8px rgba(95, 232, 208, 0.7); } }

/* =====================================================================
   AKT II: DET SØNDERBRUDTE HAV (2026-11-16) — brevet fra Admiralen, titelkortet, søkortets farver, slangens kampkort (18, 18b, 18c)
   ===================================================================== */
/* brevet: dialogen bliver et brev på gulnet papir med sort lak */
html body #eventBox.panel.hexLetter { width: min(680px, calc(100vw - 32px)); max-width: min(680px, calc(100vw - 32px)) !important; background: radial-gradient(120% 90% at 50% 40%, #f4e8c8 0%, #e8d6a8 62%, #cdb27a 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(90, 60, 20, 0.35), inset 0 0 60px rgba(120, 80, 20, 0.45), 0 0 0 1px #2a170a, 0 22px 60px rgba(0, 0, 0, 0.7) !important; padding: 26px 40px 26px !important; }
html body #eventBox.hexLetter > h2 { font-family: "IM Fell English SC", var(--display) !important; letter-spacing: 0.08em; color: #3a1a0a !important; }
html body #eventBox.hexLetter > h2::after { content: "\2014\2003\2766\2003\2014"; }
html body #eventBox.hexLetter p { white-space: pre-line; font-style: italic; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.5; color: #2c1a0c !important; max-height: 52vh; overflow: auto; }
html body #eventBox.hexLetter p::first-letter { font-family: "IM Fell English", Georgia, serif; font-style: normal; font-size: 1em; color: inherit; }
html body #eventBox.hexLetter::after { content: ""; position: absolute; right: 26px; bottom: 74px; width: 58px; height: 58px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 38% 34%, #4a4048 0 10%, #1a1418 42%, #08060a 70%); box-shadow: 0 0 0 4px rgba(10, 6, 10, 0.55), 2px 3px 6px rgba(0, 0, 0, 0.45); transform: rotate(-12deg); opacity: 0.92; }

/* titelkortet: akt II */
#actCard { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  background: radial-gradient(ellipse at 50% 50%, rgba(30, 10, 40, 0.55) 0%, rgba(6, 2, 10, 0.92) 70%); }
#actCard.on { opacity: 1; pointer-events: auto; cursor: pointer; }
#actCard .acIn { text-align: center; color: #e8d8ff; transform: translateY(10px) scale(0.98); transition: transform 2.4s ease; }
#actCard.on .acIn { transform: none; }
#actCard small { display: block; font: 400 1.05rem "IM Fell English SC", var(--display); letter-spacing: 0.6em; padding-left: 0.6em; color: #b89aff; opacity: 0.85; }
#actCard b { display: block; margin-top: 10px; font: 400 clamp(2.4rem, 6vw, 4.6rem)/1 "IM Fell English SC", var(--display); letter-spacing: 0.12em; color: #f4ecff;
  text-shadow: 0 0 18px rgba(160, 96, 255, 0.75), 0 0 46px rgba(120, 40, 220, 0.5); }
#actCard i { display: block; width: min(420px, 60vw); height: 2px; margin: 18px auto; background: linear-gradient(90deg, transparent, #a070ff, #fff0ff, #a070ff, transparent); box-shadow: 0 0 12px #a070ff; }
#actCard span { display: block; max-width: 34em; margin: 0 auto; font: italic 400 clamp(1rem, 1.6vw, 1.2rem) "IM Fell English", Georgia, serif; color: #d6c8ee; }
html.calm #actCard, html.calm #actCard .acIn { transition-duration: 0.3s; }

/* søkortet i akt II: papiret får regionens stik, og de forheksede farvande har deres farver */
/* filtret sættes af chartGrade (18d) og tones langsomt ind over akt II og III */
#chart.act2 .chartWrap { transition: filter 2.5s ease; }
#chart.act2 > .panel { box-shadow: inset 0 0 0 1.6px rgba(160, 110, 255, calc(0.55 * var(--chk, 1))), inset 0 0 90px rgba(40, 10, 60, calc(0.4 * var(--chk, 1))) !important; }
#chartSector .actTag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 3px; background: #2a1440; color: #e0c8ff; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.biomeTag.ashen { background: #4a3a30; color: #f0c8a0; } .biomeTag.blight { background: #2e4418; color: #d8f0a0; } .biomeTag.shatter { background: #3a2a5a; color: #e6d4ff; }
.biomeTag.bone { background: #6a665a; color: #fbf6e8; } .biomeTag.dusk { background: #5a1414; color: #ffd0c8; }
#chartSvg .bioFill.ashen { color: #c97a4a; } #chartSvg .bioFill.blight { color: #a6d84a; } #chartSvg .bioFill.shatter { color: #b98aff; } #chartSvg .bioFill.bone { color: #e8e0c8; } #chartSvg .bioFill.dusk { color: #ff5a48; }
#chartSvg .bioLbl.ashen { fill: #f0c8a0; stroke: rgba(40, 24, 14, 0.85); } #chartSvg .bioLbl.blight { fill: #d8f0a0; stroke: rgba(30, 44, 14, 0.85); } #chartSvg .bioLbl.shatter { fill: #e6d4ff; stroke: rgba(40, 20, 70, 0.85); }
#chartSvg .bioLbl.bone { fill: #fbf6e8; stroke: rgba(60, 56, 46, 0.85); } #chartSvg .bioLbl.dusk { fill: #ffd0c8; stroke: rgba(70, 10, 10, 0.85); }
#serpCard { 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); }
#serpCard::before, #serpCard::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid #ffd98a; opacity: 0.75; pointer-events: none; }
#serpCard::before { top: 3px; left: 3px; border-right: 0; border-bottom: 0; }
#serpCard::after { bottom: 3px; right: 3px; border-left: 0; border-top: 0; }
#serpCard .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; }
#serpCard .bcCrown { width: 17px; height: 17px; color: #ffd98a; filter: drop-shadow(0 1px 0 #2a0a04); }
#serpCard .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); }
#serpCard .bcTrack { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 9px 0 8px; padding: 0; --p: 0%; }
#serpCard[data-ph="1"] .bcTrack { --p: 50%; }
#serpCard[data-ph="2"] .bcTrack { --p: 100%; }
#serpCard .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; }
#serpCard .bcTrack li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
#serpCard .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; }
#serpCard .bcTrack span { font: 700 0.7rem/1.15 var(--body); color: #b89a84; }
#serpCard .bcTrack small { font: 500 0.58rem var(--body); color: #8e7262; letter-spacing: 0.04em; }
#serpCard .bcTrack li.past i { color: #2a1406; background: linear-gradient(180deg, #e6c070, #a87a2a); border-color: #ffd98a; }
#serpCard .bcTrack li.past span { color: #d8bc96; text-decoration: line-through; text-decoration-color: rgba(255, 217, 138, 0.55); }
#serpCard .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; }
#serpCard .bcTrack li.now span { color: #fff0dc; }
#serpCard .bcTrack li.now small { color: #f0b898; }
#serpCard .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; }
#serpCard .bcIco { display: grid; place-items: center; color: #ffd98a; }
#serpCard .bcIco .bci { width: 26px; height: 26px; filter: drop-shadow(0 1px 0 #1a0604); }
#serpCard .bcTxt { min-width: 0; }
#serpCard .bcName { display: block; font: 700 0.86rem/1.2 var(--body); color: #ffe8d8; }
#serpCard .bcHow { display: block; font: 500 0.74rem/1.25 var(--body); color: #e2bca6; }
#serpCard .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; }
#serpCard .bcBars { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
#serpCard .bcFuse { display: block; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
#serpCard .bcFuse i { display: block; height: 100%; background: linear-gradient(90deg, #ff4a1a, #ffb84a); box-shadow: 0 0 8px #ff7a2a; transition: width 0.15s linear; }
#serpCard .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; }
#serpCard .bcBreak i { display: block; height: 100%; background: linear-gradient(180deg, #a8e892, #3e8a36); transition: width 0.25s; }
#serpCard .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; }
#serpCard .bcBreak.nobar { background: none; box-shadow: none; height: auto; }
#serpCard .bcBreak.nobar i { display: none; }
#serpCard .bcBreak.nobar em { position: static; place-items: start; color: #f0c8b0; }
#serpCard .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; }
#serpCard .bcTac[data-m="warn"] .bcName { color: #ffcf6a; text-transform: uppercase; letter-spacing: 0.05em; }
#serpCard .bcTac[data-m="warn"] .bcIco { color: #ffb08a; }
#serpCard .bcTac[data-m="dead"] { border-left-color: #6abf6a; background: rgba(20, 50, 18, 0.4); }
#serpCard .bcTac[data-m="dead"] .bcIco, #serpCard .bcTac[data-m="dead"] .bcName { color: #b8f0a8; }
#serpCard .bcChips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#serpCard .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; }
#serpCard .bcChips .bci { width: 15px; height: 15px; }
#serpCard .bcChips .bad .bci { color: #ff8a6a; }
#serpCard .bcChips .good { color: #c4f2b4; box-shadow: inset 0 0 0 1px rgba(150, 220, 130, 0.45); background: rgba(16, 40, 14, 0.5); }
#serpCard .bcChips .good .bci { color: #9fe08a; }
html.calm #serpCard *, html.calm #serpCard { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #serpCard *, #serpCard { animation: none !important; } }

/* slangens kort: samme opbygning som flagskibets (14b), men i heksens farver: violet, grønt og sort */
#serpCard { color: #eadcff; background: radial-gradient(130% 80% at 50% -10%, rgba(90, 30, 150, 0.55), rgba(10, 6, 18, 0.94) 68%), #0a0610 !important; box-shadow: inset 0 0 0 1.5px rgba(176, 130, 255, 0.55), 0 4px 14px rgba(0, 0, 0, 0.5) !important; }
#serpCard::before, #serpCard::after { border-color: #b98aff; }
#serpCard .bcHead { color: #d8c0ff; text-shadow: 0 1px 0 #10061e; }
/* Sovereigns bytte (18c D): Grand broadside-knappen ved siden af sideknapperne i kampbrættet (samme form, guld, lyser når den er klar) */
html body #combatBoard #cbFold:has(#btnGrand:not([hidden])) { grid-template-columns: 135px minmax(0, 1fr); }
html body #combatBoard #aboutPanel:has(#btnGrand:not([hidden])) { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px; align-items: start; width: auto !important; }
html body #combatBoard #aboutPanel #btnGrand { --sc: #e2b45a; position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 41px; height: 38px; margin: 0; padding: 0 0 1px; box-sizing: border-box;
  border: 0; border-bottom: 4px solid var(--sc); border-radius: 3px 3px 0 0; color: var(--sc); background: linear-gradient(180deg, #0c0603, #24150a); cursor: pointer;
  box-shadow: 0 0 0 1.5px #100803, inset 0 0 0 1px rgba(201, 154, 68, 0.5), 0 3px 5px rgba(0, 0, 0, 0.4); }
html body #combatBoard #aboutPanel #btnGrand[hidden] { display: none !important; }
html body #combatBoard #aboutPanel #btnGrand .ssIco { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html body #combatBoard #aboutPanel #btnGrand small { font: 800 11px/1 var(--body); color: #e6d8ba; white-space: nowrap; font-variant-numeric: tabular-nums; }
html body #combatBoard #aboutPanel #btnGrand b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html body #combatBoard #aboutPanel #btnGrand:disabled { cursor: default; opacity: 0.55; }
html body #combatBoard #aboutPanel #btnGrand.ready { color: #2a1606; background: linear-gradient(180deg, #fff1c4 0%, #f0cd78 30%, #d5a54a 52%, #b6852f 75%, #8f6420 100%); animation: grandGlow 1.8s ease-in-out infinite; }
html body #combatBoard #aboutPanel #btnGrand.ready small { color: #4a2c0a; }
html body #combatBoard #aboutPanel #btnGrand:not(:disabled):hover { filter: brightness(1.18); }
@keyframes grandGlow { 0%, 100% { box-shadow: 0 0 0 1.5px #100803, 0 3px 5px rgba(0, 0, 0, 0.4); } 50% { box-shadow: 0 0 0 1.5px #100803, 0 0 12px rgba(255, 200, 80, 0.7); } }
@media (prefers-reduced-motion: reduce) { html body #combatBoard #aboutPanel #btnGrand.ready { animation: none; } }
html.calm body #combatBoard #aboutPanel #btnGrand.ready { animation: none; }

/* =============================== Tilgængelighed og taster (2026-11-16) ===============================
   Esc-menuen > Accessibility / Controls er undersider som Graphics: .subOn skjuler resten af menuen. */
.subNote { color: var(--cb-cream, #d8bf86); font-size: 0.82rem; line-height: 1.35; text-shadow: 0 1px 0 var(--cb-ink, #1a0e05); }
.accSet .uiRow { grid-template-columns: minmax(140px, auto) 1fr; }
/* tastelisten */
.keysList { display: grid; gap: 4px; max-height: min(52vh, 460px); overflow-y: auto; padding-right: 4px; }
.keysGrp { margin: 6px 0 1px; font: 700 0.7rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-l, #e8c27a); }
.keyRow { grid-template-columns: 1fr 112px; }
.keyRow > span { font-size: 0.86rem !important; }
.keyBtn { min-height: 32px; padding: 2px 10px; font: 700 0.86rem var(--body); letter-spacing: 0.04em; }
.keyBtn.moved { color: var(--cb-brass, #f0cd78) !important; }
.keyBtn.wait { color: #1a1206 !important; background: #e8c27a !important; animation: keyWait 1s ease-in-out infinite; }
@keyframes keyWait { 50% { filter: brightness(1.25); } }
html.calm .keyBtn.wait { animation: none; }
.keysFoot { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.padList { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 3px; font: 500 0.82rem var(--body); color: var(--paper, #f3e6c8); }
.padList b { display: inline-block; min-width: 128px; color: var(--cb-brass, #f0cd78); }
/* gamepad: markøren og fokusrammen */
#padCursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  border: 2px solid #fff1c4; box-shadow: 0 0 0 2px #1a0e05, 0 0 10px rgba(255, 220, 140, 0.7); background: radial-gradient(circle, #fff1c4 0 3px, transparent 4px); opacity: 0; transition: opacity 0.25s; }
#padCursor.on { opacity: 1; }
.padFocus { outline: 3px solid #fff1c4 !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px rgba(26, 14, 5, 0.85), 0 0 14px rgba(255, 220, 140, 0.8) !important; }
/* sidefarver for farveblinde: orange bagbord, blå styrbord (Okabe–Ito). Rød/grøn er standard. */
html.cbSides { --side-p: #ffb347; --side-s: #7cc4ff; }
html.cbSides .sideNow.port { border-color: #e69f00; } html.cbSides .sideNow.port b { color: #ffb347; }
html.cbSides .sideNow.stbd { border-color: #3a8fd8; } html.cbSides .sideNow.stbd b { color: #7cc4ff; }
html.cbSides #crewPanel .srow[data-id="port"] .sn b, html.cbSides #crewPanel .srow[data-id="port"] .sn, html.cbSides #crewPanel .srow[data-id="port"] .sti { color: #ffb347 !important; }
html.cbSides #crewPanel .srow[data-id="stbd"] .sn, html.cbSides #crewPanel .srow[data-id="stbd"] .sti { color: #7cc4ff !important; }
html.cbSides .gcard.pside .gn { color: #ffb347 !important; } html.cbSides .gcard.sside .gn { color: #7cc4ff !important; }
html.cbSides .gcard.pside .mv { color: #7cc4ff !important; } html.cbSides .gcard.sside .mv { color: #ffb347 !important; }
html.cbSides body #battery .glist .gcard::before { background: #e69f00 !important; box-shadow: 0 0 4px rgba(230, 159, 0, 0.8) !important; }
html.cbSides body #battery .glist .gcard.sside::before { background: #3a8fd8 !important; box-shadow: 0 0 4px rgba(58, 143, 216, 0.8) !important; }
html.cbSides .lant.p, html.cbSides body #battery .gcard > .lant.p { color: #ff9f1a !important; filter: drop-shadow(0 0 0.6px #1a0f06) drop-shadow(0 0 3px rgba(255, 159, 26, 0.85)) !important; }
html.cbSides .lant.s, html.cbSides body #battery .gcard > .lant.s { color: #4aa8ff !important; filter: drop-shadow(0 0 0.6px #1a0f06) drop-shadow(0 0 3px rgba(74, 168, 255, 0.85)) !important; }

/* =============================== Togtets regnskab på slutskærmen (2026-11-16, #goSummary fra 17) =============================== */
html body #gameover .panel { max-width: min(760px, calc(100vw - 32px)) !important; max-height: calc(100dvh - 40px); overflow-y: auto; }
#goSummary { width: 100%; }
.goSum { display: grid; gap: 8px; width: 100%; }
.goSum h3 { margin: 6px 0 0; font: 700 0.72rem var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-l, #e8c27a); }
.goShip { font: 600 0.92rem var(--body); color: var(--paper, #f3e6c8); }
.goBuild { color: var(--cb-brass, #f0cd78); }
.goRouteBox { overflow-x: auto; padding: 4px 0 2px; border-radius: 5px; background: rgba(10, 8, 6, 0.35); box-shadow: inset 0 0 0 1px var(--cb-line, rgba(240, 205, 120, 0.25)); }
.goRoute { display: block; }
.goRoute .rline { fill: none; stroke: #e8d3a0; stroke-width: 1.6; stroke-dasharray: 3 3; opacity: 0.7; }
.goRoute .rdot { stroke: #1a0e05; stroke-width: 1.2; }
.goRoute .rsep { stroke: rgba(240, 205, 120, 0.35); stroke-width: 1; }
.goRoute .rname { font: 600 9px var(--body); fill: #e8c27a; }
.goStats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.goStat { display: grid; padding: 6px 8px; border-radius: 5px; background: rgba(10, 8, 6, 0.35); box-shadow: inset 0 0 0 1px var(--cb-line, rgba(240, 205, 120, 0.2)); }
.goStat b { font: 700 1.15rem var(--display, serif); color: var(--paper, #f3e6c8); }
.goStat span { font: 500 0.74rem var(--body); color: var(--cb-cream, #d8bf86); }
.goArts { display: flex; flex-wrap: wrap; gap: 5px; }
.goArt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 12px; background: rgba(10, 8, 6, 0.4); font: 600 0.76rem var(--body); color: var(--paper, #f3e6c8); }
.goArt .px { width: 20px; height: 20px; }
.goArt i { font-style: normal; }
.goArt.r-rare { box-shadow: inset 0 0 0 1px #6fa8ff; } .goArt.r-legendary { box-shadow: inset 0 0 0 1px #f0b040; } .goArt.r-uncommon { box-shadow: inset 0 0 0 1px #7cc47a; }
.goFallen { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font: 500 0.82rem var(--body); color: var(--paper, #f3e6c8); }
.goFallen span { color: var(--cb-cream, #d8bf86); font-size: 0.74rem; }
.goFallen em { color: var(--muted, #b9a77f); font-size: 0.74rem; }
.goCrew { font: 500 0.82rem var(--body) !important; color: var(--paper, #f3e6c8) !important; }
/* slutskærmen ligger over HUD'et (den er bredere nu, og HUD-panelerne har egne lag) */
html body #gameover { z-index: 45; }

/* =============================== Pausemenuen v2 (2026-11-16): faner til venstre, én side ad gangen =============================== */
html.cab body #escMenu > .panel { width: min(900px, calc(100vw - 32px)); padding: 24px 26px 26px; gap: 14px; }
#escPanel .escBody { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; min-height: 0; }
/* fanerne: skilte af tjæret eg, som havnens (#portNav) */
#escPanel .escNav { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
html.cab body #escPanel .escNav [data-esc] {
  display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 12px; text-align: left; border-radius: 5px !important; clip-path: none !important;
  background: linear-gradient(180deg, rgba(34, 20, 9, 0.9), rgba(24, 14, 6, 0.9)) !important;
  box-shadow: inset 0 0 0 1px var(--cb-line), 0 2px 0 var(--cb-ink) !important; color: var(--cb-cream);
  transition: background 0.15s var(--cb-ease), box-shadow 0.15s var(--cb-ease), transform 0.15s var(--cb-ease);
}
html.cab body #escPanel .escNav [data-esc]:hover { background: linear-gradient(180deg, rgba(74, 47, 23, 0.95), rgba(52, 32, 14, 0.95)) !important; transform: translateX(2px); }
html.cab body #escPanel .escNav [data-esc][aria-selected="true"] {
  background: linear-gradient(90deg, rgba(240, 205, 120, 0.3), rgba(96, 62, 30, 0.95) 55%) !important;
  box-shadow: inset 6px 0 0 var(--cb-brass), inset 0 0 0 1.5px var(--cb-brass), 0 2px 0 var(--cb-ink) !important; transform: none;
}
#escPanel .enIco { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cb-ink, #100803); box-shadow: 0 0 0 1.5px var(--cb-brass-d, #b98a3c); }
#escPanel [aria-selected="true"] .enIco { box-shadow: 0 0 0 1.5px var(--cb-brass, #f0cd78), 0 0 10px rgba(240, 205, 120, 0.45); }
#escPanel .enIco .px { width: 22px; height: 22px; }
#escPanel .enTx { display: grid; gap: 1px; min-width: 0; }
#escPanel .enTx b { font: 400 1.14rem/1.1 "IM Fell English", Georgia, serif; letter-spacing: 0.01em; color: var(--cb-cream, #fbf3df); }
#escPanel .enTx small { font: 500 0.76rem/1.25 var(--body); color: var(--cb-soft, #e6d8ba); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.cab body #escMenu #btnEscClose.escGo { margin-top: auto; min-height: 54px; font-size: 1.12rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
#escPanel .escGo small { font: 700 0.7rem var(--body); letter-spacing: 0.08em; padding: 1px 6px; border-radius: 3px; background: rgba(26, 14, 5, 0.22); box-shadow: inset 0 0 0 1px rgba(26, 14, 5, 0.4); }
/* siderne: fast højde, så menuen ikke hopper mellem fanerne */
#escPanel .escPages { height: min(440px, calc(100dvh - 180px)); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--cb-brass-d, #b98a3c) transparent; }
#escPanel .escPage { display: grid; gap: 10px; align-content: start; animation: escPageIn 0.22s var(--cb-ease, ease-out); }
#escPanel .escPage[hidden] { display: none !important; }
@keyframes escPageIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
html.calm #escPanel .escPage { animation: none; }
@media (prefers-reduced-motion: reduce) { #escPanel .escPage { animation: none; } html.cab body #escPanel .escNav [data-esc]:hover { transform: none; } }
#escPanel .escPage .uiSet { margin: 0; }
#escPanel .escPage .volRow { background: rgba(0, 0, 0, 0.18); }
/* Voyage: togtet i ét blik */
#escPanel .escStatus { display: grid; gap: 6px; padding: 12px 14px; border-radius: 5px; background: var(--slot-bg); box-shadow: inset 0 0 0 1px var(--cb-line); }
#escPanel .esHead { display: flex; align-items: baseline; gap: 10px; }
#escPanel .esHead b { font: 400 1.5rem/1 "Pirata One", var(--display); letter-spacing: 0.03em; color: var(--cb-brass-hi, #fff0c0); text-shadow: 0 2px 0 var(--cb-ink); }
#escPanel .esHead small { font: 600 0.72rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cb-dim, #c6b48e); }
#escPanel .esWhere { font: italic 400 1rem "IM Fell English", Georgia, serif; color: var(--cb-soft, #e6d8ba); }
#escPanel .esWhere em { color: #ffb08a; }
#escPanel .esItems { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
#escPanel .esItem { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 14px; background: rgba(16, 8, 3, 0.55); box-shadow: inset 0 0 0 1px var(--cb-line); }
#escPanel .esItem .px { width: 18px; height: 18px; }
#escPanel .esItem b { font: 700 0.92rem var(--body); font-variant-numeric: tabular-nums; color: var(--cb-cream, #fbf3df); }
#escPanel .esItem small { font: 500 0.74rem var(--body); color: var(--cb-dim, #c6b48e); }
html.cab body #escPanel #btnEscAbout { min-height: 44px; }
html.cab body #escPanel .escBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.cab body #escPanel .escBtns button { grid-column: auto !important; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; }
html.cab body #escPanel .escBtns #btnEscLog { grid-column: 1 / -1 !important; }
#escPanel kbd { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; font: 700 0.7rem var(--body); letter-spacing: 0.04em; color: var(--cb-brass-hi, #fff0c0); background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--cb-line-2, rgba(240, 205, 120, 0.55)), 0 1px 0 rgba(0, 0, 0, 0.5); }
#escPanel .escSave { display: grid; gap: 4px; margin-top: 4px; padding-top: 12px; border-top: 1.5px solid var(--cb-line); }
html.cab body #escPanel #btnSaveMenu { min-height: 44px; }
#escPanel .keysList { max-height: none; }
/* smal skærm: fanerne som en vandret række over siden */
@media (max-width: 720px) {
  #escPanel .escBody { grid-template-columns: minmax(0, 1fr); }
  #escPanel .escNav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  html.cab body #escPanel .escNav [data-esc] { flex: none; min-height: 46px; padding: 6px 10px; }
  #escPanel .enTx small { display: none; }
  #escPanel .enIco { width: 28px; height: 28px; }
  html.cab body #escMenu #btnEscClose.escGo { order: -1; flex: none; min-height: 46px; margin: 0; padding: 0 14px; }
  #escPanel .escPages { height: auto; max-height: calc(100dvh - 230px); }
}

/* ---------- Tegnene ☠ ✦ ⚠ som små mærker (ikonvalg 2026-11-17) ----------
   Samme tegninger som ST_SVG u_skull/u_art/u_warn i 10b, her som masker, så de beholder tekstens farve.
   I teksten tegner glyphHTML/setGlyphText (10b) dem som <svg class="ug">. */
:root {
  --g-skull: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cmask%20id%3D%22m%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cg%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-width%3D%220%22%3E%3Cpath%20d%3D%22M1.88%2014.08L1.88%209.24A10.12%2010.12%200%200%201%2022.12%209.24L22.12%2014.08L18.6%2016.72L18.6%2021.56L5.4%2021.56L5.4%2016.72Z%22%2F%3E%3Ccircle%20cx%3D%227.9%22%20cy%3D%229.6%22%20r%3D%222.6%22%20fill%3D%22%23000%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2216.1%22%20cy%3D%229.6%22%20r%3D%222.6%22%20fill%3D%22%23000%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M12%2012.6l-1.6%203h3.2z%22%20fill%3D%22%23000%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M9.8%2018.4v3M12%2018.4v3M14.2%2018.4v3%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20mask%3D%22url%28%23m%29%22%2F%3E%3C%2Fsvg%3E");
  --g-art: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cmask%20id%3D%22m%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cg%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-width%3D%220%22%3E%3Cpath%20d%3D%22M12%201.6L14.55%209.45L22.4%2012L14.55%2014.55L12%2022.4L9.45%2014.55L1.6%2012L9.45%209.45Z%22%2F%3E%3Cpath%20d%3D%22M16.95%207.05L14.6%2012L16.95%2016.95L12%2014.6L7.05%2016.95L9.4%2012L7.05%207.05L12%209.4Z%22%20fill-opacity%3D%220.7%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20mask%3D%22url%28%23m%29%22%2F%3E%3C%2Fsvg%3E");
  --g-warn: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cmask%20id%3D%22m%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cg%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-width%3D%220%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M12%202.4l10.4%2018.4H1.6zM10.9%209v6h2.2V9zM10.9%2016.4v2.2h2.2v-2.2z%22%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20mask%3D%22url%28%23m%29%22%2F%3E%3C%2Fsvg%3E");
}
.ug { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; overflow: visible; }
.chip .ug { margin-right: 0.15em; }
body #plankCombat #rangePanel .rPull span:last-child::before,
body #enemyPanel header h2.np3::before, body #enemyPanel header h2.np3::after,
html body #hullFrame.inf4 .brand #shipName::before, html body #hullFrame.inf5 .brand #shipName::before,
#eventBox .evc .evTag::before,
html body #eventBox .choices button.evc.infamy .evTag::before,
html body #eventBox .evc.special .evIco::after,
html body .srow.incoming .sn::after {
  content: ""; display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor;
  -webkit-mask: var(--g-art) center / contain no-repeat; mask: var(--g-art) center / contain no-repeat;
}
body #plankCombat #rangePanel .rPull span:last-child::before,
html body #hullFrame.inf4 .brand #shipName::before, html body #hullFrame.inf5 .brand #shipName::before,
html body #eventBox .choices button.evc.infamy .evTag::before { -webkit-mask-image: var(--g-skull); mask-image: var(--g-skull); }
html body #hullFrame.inf4 .brand #shipName::before, html body #hullFrame.inf5 .brand #shipName::before { margin-right: 0.3em; }
html body .srow.incoming .sn::after { -webkit-mask-image: var(--g-warn); mask-image: var(--g-warn); margin-left: 0.3em; }
body #enemyPanel header h2.np3::before, body #enemyPanel header h2.np3::after { text-shadow: none; filter: drop-shadow(0 0 3px rgba(255, 210, 120, 0.8)); }
html body #eventBox .evc.special .evIco::after { text-shadow: none; filter: drop-shadow(0 0 4px var(--spc, #8fd0ff)); }

/* 11-17: den hvide kant om kanonerne i Guns-bjælken er blød og diffus (før fire skarpe 0,6 px-skygger, 06d) */
html body #battery .gcard .gname .gmodel { filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 3.5px rgba(255, 248, 230, 0.4)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
html body #battery .gcard.broken .gname .gmodel { filter: grayscale(0.9) brightness(0.55) sepia(0.4) hue-rotate(-30deg) drop-shadow(0 0 1.2px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 3.5px rgba(255, 248, 230, 0.3)); }

/* 11-17: en artefakt der er slået fra (run.artOff: Devil's Ensign, kappet drivanker) står gråt med et OFF-mærke */
html body #artifactBar .artSlot.off { --r: #6a6258; }
html body #artifactBar .artSlot.off > :not(.artN) { filter: grayscale(1) brightness(0.55); opacity: 0.7; }
html body #artifactBar .artSlot.off::after { content: "OFF"; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; padding: 1px 4px; border-radius: 6px; pointer-events: none;
  font: 800 8.5px/1.2 Arial, Helvetica, sans-serif; letter-spacing: 0.06em; color: #f2e6d0; background: #3a332c; box-shadow: 0 0 0 1px #120c06; }

/* 11-17: udkiggens melding om hendes faldne (lookoutKillFx, 14-battle): stort ☠-skilt over træffet, gyldent-rødt blink på Lookout-rækken */
html body #floaters .floater.big.lookKill { padding: 6px 18px 7px; color: #ffe9b8; border: 2px solid #e8b84a; background: linear-gradient(180deg, rgba(110, 16, 8, 0.92), rgba(36, 6, 3, 0.92));
  box-shadow: 0 0 0 1px #3a0a04, 0 0 16px rgba(255, 120, 50, 0.65), 0 3px 10px rgba(0, 0, 0, 0.55); }
html body #floaters .floater.big.lookKill b { font-size: 1.9rem; color: #fff4d6; text-shadow: 0 0 8px rgba(255, 150, 60, 0.9), 0 2px 3px #000; }
html body #floaters .floater.big.lookKill span { font-size: 0.95rem; color: #ffe0a8; }
html body .srow.lookKill { animation: srowShake 0.45s cubic-bezier(.36,.07,.19,.97); }
html body .srow.lookKill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: srowFlash 0.9s ease-out forwards;
  box-shadow: inset 0 0 0 2px #ffcf5a, inset 0 0 18px rgba(255, 190, 70, 0.6); background: rgba(255, 190, 60, 0.2); }
html body .srowDmg.lookKill { color: #ffd76a; text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 170, 40, 0.9); }

/* 2026-11-17 (brugerens ønske): Battle orders halvt så bred, 384 → 192 px, og siden en smule større igen: 224 px. Samme opbygning
   (flag | vimpel, rille under), men tættere: mindre luft, mindre ikon i Break away, afstandsknapperne uden pil. Overtrumfer 06-ftl (--cbW, max(300px …)). */
:root { --cbW: 224px; }
html body #combatBoard#combatBoard { width: max(200px, min(var(--cbW), calc(100vw - var(--epW) - var(--hangL) - 18px))) !important; padding: 11px 11px 13px !important; }
html body #combatBoard#combatBoard > .cbHead { height: auto !important; min-height: 20px; flex-wrap: wrap; row-gap: 4px; gap: 6px; padding: 0 28px 0 0 !important; font-size: 0.97rem !important; letter-spacing: 0.03em; }
html body #combatBoard#combatBoard > .cbHead #bxAux { flex-wrap: wrap; }
html body #combatBoard#combatBoard #cbFold { grid-template-columns: 102px minmax(0, 1fr); column-gap: 7px; }
html body #combatBoard#combatBoard #btnBreak .baFlag { gap: 4px; padding-left: 7px; clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%); }
html body #combatBoard#combatBoard #btnBreak .baIco { width: 25px; height: 20px; }
html body #combatBoard#combatBoard #btnBreak .baPct { font-size: 14px; }
html body #combatBoard#combatBoard #rangePanel #rngBtns button { width: 46px; gap: 0; padding: 0 !important; }
html body #combatBoard#combatBoard #rangePanel #rngBtns .ri { display: none; }
html body #combatBoard#combatBoard #rangePanel #rngBtns button b { font-size: 13px !important; }

/* 2026-11-17: artefaktbjælken scroller aldrig: en ny artefakt pulserer op (artFresh/artProc, scale 1.5) og gav en scrollbar. Bjælken vokser i stedet med en række */
html body #artifactBar, html body #artifactBar.stack { overflow: visible !important; max-height: none !important; }

/* 2026-11-17: testskibet (hammeren i HUD'en, 16c "J"): i højre side ved knapperne, så skibet ses */
#shipTest { position: fixed; z-index: 90; right: 78px; top: 10px; width: min(360px, calc(100vw - 100px)); max-height: calc(100vh - 20px); display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(30, 19, 10, 0.95), rgba(18, 11, 6, 0.95)); 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.84rem/1.3 var(--body); }
#shipTest[hidden] { display: none; }
#shipTest header { position: relative; padding: 0 30px 4px 2px; }
#shipTest header b { display: block; font: 400 1.2rem/1.1 "IM Fell English SC", var(--display); color: #ffd98a; }
#shipTest header small { color: #cdb98f; font-size: 0.72rem; }
#shipTest .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; }
#shipTest .shtTop { display: flex; align-items: center; gap: 4px; }
#shipTest .shtTop > span { width: 38px; color: #cdb98f; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
#shipTest .shtS { flex: 1; min-width: 0; padding: 4px 6px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, 0.2); color: inherit; font: 700 0.76rem var(--body); cursor: pointer; }
#shipTest .shtS:hover:not(:disabled) { background: rgba(255, 217, 138, 0.12); }
#shipTest .shtS.on { background: rgba(255, 217, 138, 0.2); box-shadow: inset 0 0 0 1.5px #ffd98a; }
#shipTest .shtList { overflow-y: auto; padding: 2px 4px 2px 2px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
#shipTest h3 { margin: 6px 0 1px; font: 700 0.68rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #d8b56a; }
#shipTest .shtRow { display: grid; grid-template-columns: 24px 1fr auto 26px 26px 26px; gap: 5px; align-items: center; padding: 3px 4px 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.3); }
#shipTest .shtRow.on { background: rgba(255, 217, 138, 0.1); box-shadow: inset 3px 0 0 #ffd98a; }
#shipTest .shtRow > i { width: 22px; height: 22px; display: grid; place-items: center; }
#shipTest .shtRow > i > * { width: 22px; height: 22px; }
#shipTest .shtName { display: flex; flex-direction: column; min-width: 0; }
#shipTest .shtName b { font-weight: 700; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shipTest .shtName small { color: #a8977a; font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shipTest .shtPips { color: #ffd98a; font-size: 0.62rem; letter-spacing: 1px; }
#shipTest .shtB { width: 26px; height: 24px; min-width: 0; padding: 0; border: 0; border-radius: 5px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 217, 138, 0.25); color: #ffe7b0; font: 700 1rem/1 var(--body); cursor: pointer; }
#shipTest .shtB.look { font-size: 0.8rem; }
#shipTest .shtB:hover:not(:disabled) { background: rgba(255, 217, 138, 0.18); }
#shipTest .shtB.on { background: #8a6a32; box-shadow: inset 0 0 0 1.5px #ffd98a; }
#shipTest button:disabled { opacity: 0.32; cursor: default; }
/* 2026-11-17: Test ship åbnes fra testmenuen (F9 / §) */
#bxTest .bxtTools { display: flex; margin: 0 0 6px; }
#bxTest .bxtTools .bxtShip { flex: 1; min-height: 34px; padding: 6px 10px; font-size: 0.92rem; }

/* 2026-11-17: Afmasterens stempel (16b afsnit T): buildets grønne og cremehvide farver; et helt afmastet skib slår hårdere, med en ring */
#wreckStamp.dm .wsIcon { background: radial-gradient(circle at 35% 30%, #4fa36f, #173f27 72%); border-color: #f1ead6;
  box-shadow: 0 0 0 3px rgba(8, 24, 14, 0.85), 0 0 26px rgba(120, 230, 160, 0.55), inset 0 -4px 8px rgba(0, 0, 0, 0.45); }
#wreckStamp.dm .wsIcon .px { filter: drop-shadow(0 1px 0 #0c2414); }
#wreckStamp.dm .wsIcon .px * { fill: #f1ead6; stroke: #f1ead6; }
#wreckStamp.dm b { color: #f1ead6; text-shadow: 0 3px 0 #173f27, 0 0 16px rgba(120, 230, 160, 0.55), 0 4px 18px rgba(0, 0, 0, 0.85); }
#wreckStamp.dm.all .wsIcon { width: 76px; height: 76px; }
#wreckStamp.dm.all .wsIcon .px { width: 46px; height: 46px; }
#wreckStamp.dm.all b { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: 0.06em; }
#wreckStamp.dm.all.show { animation: wreckStampIn 3s cubic-bezier(.2, .9, .3, 1) forwards, dmStampShake 0.5s 0.12s linear; }
#wreckStamp.dm.all::after { content: ""; position: absolute; left: 50%; top: 38px; width: 40px; height: 40px; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(241, 234, 214, 0.9), 0 0 18px rgba(120, 230, 160, 0.7); opacity: 0; pointer-events: none; }
#wreckStamp.dm.all.show::after { animation: dmRing 0.9s 0.1s ease-out; }
@keyframes dmRing { 0% { opacity: 1; width: 40px; height: 40px; } 100% { opacity: 0; width: 380px; height: 380px; } }
@keyframes dmStampShake { 0%, 100% { margin-left: 0; } 20% { margin-left: -7px; } 40% { margin-left: 6px; } 60% { margin-left: -3px; } 80% { margin-left: 2px; } }
@media (prefers-reduced-motion: reduce) { #wreckStamp.dm.all.show { animation-duration: 0.01s; } #wreckStamp.dm.all.show::after { animation: none; } }

/* 2026-11-17 (brugerens ønske): infamy-skiltet (#infShift, infamyShift i 10-hud) øverst midt på skærmen i stedet for under
   skrogtavlen til venstre. Det ligger nu direkte i body (tavlens rystelse ville ellers flytte et fixed element med) */
html body > #infShift {
  position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 14; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px; min-width: 240px; max-width: min(380px, 86vw);
  padding: 8px 14px 9px; border-radius: 4px; border: 1px solid #c99a44; text-align: center;
  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: 50% 0;
  animation: isIn 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
html body > #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 > #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 > #infShift.out { animation: isOut 0.55s ease-in both; }
html body > #infShift.gone { display: none; }
html body > #infShift .isSub { align-items: center; }
body.menu > #infShift { display: none !important; }
html.txl body > #infShift { zoom: min(var(--uiz, 1), 1.15); }

/* 2026-11-17 (brugerens ønske): salg i havn: tingen hænger i markøren ved toppen af sit ikon og svinger (11-armory swingTick).
   Det ydre element står i markøren; .sgBody er centreret under den og drejer om sin øverste midte */
html body .dragGhost.sellGhost { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; width: 0; height: 0; z-index: 60; }
html body .dragGhost.sellGhost .sgBody {
  position: absolute; left: 0; top: -6px; width: max-content; transform: translateX(-50%); transform-origin: 50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; will-change: transform;
}
html body .dragGhost.sellGhost .sgBody > .px {
  width: 52px; height: 52px; padding: 7px; box-sizing: border-box; border-radius: 8px;
  background: radial-gradient(circle at 50% 35%, #4a3218, #22140a 75%); border: 2px solid #d9aa52;
  box-shadow: 0 0 0 1px #1a0e05, 0 10px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(255, 210, 120, 0.25);
}
html body .dragGhost.sellGhost .sgPin {
  position: absolute; left: 50%; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #fff4c0, #d9aa52 55%, #7a5418); box-shadow: 0 0 0 1px #1a0e05, 0 1px 3px rgba(0, 0, 0, 0.6);
}
html body .dragGhost.sellGhost .sgBody > span {
  padding: 2px 9px 3px; border-radius: 10px; background: rgba(26, 14, 5, 0.92); border: 1px solid #c99a44;
  font: 700 0.84rem/1.15 var(--body); color: #fbf3df; text-align: center; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
html body .dragGhost.sellGhost .sgBody > span small { color: #f2cf7a; font-size: 0.72rem; }

/* 2026-11-17: sidebaren før kampen (sideBarEl/sideBarShip i 12-voyage-events): bagbord | skibet oppefra | styrbord, i sidefarverne */
#eventBox .choices .sideBar {
  --sp: var(--side-p, #ff8a7a); --ss: var(--side-s, #8fe6a8);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(124px, 14vw, 156px) minmax(0, 1fr); align-items: stretch; gap: 3px;
  padding: 3px; border-radius: 9px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sp) 30%, #26150a), #26150a 40%, #26150a 60%, color-mix(in srgb, var(--ss) 30%, #26150a));
  box-shadow: inset 0 0 0 1px rgba(201, 160, 74, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.45);
  animation: evcIn 0.32s ease-out backwards 0.08s;
}
#eventBox .choices .sideBar .sbSide {
  --c: var(--sp);
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 12px; min-height: 96px; margin: 0;
  padding: 12px 16px; border: 0; border-radius: 7px; cursor: pointer; color: #f6ead0; text-align: left; font: inherit;
  background: linear-gradient(180deg, rgba(255, 222, 170, 0.09), rgba(0, 0, 0, 0.2)),
    linear-gradient(90deg, color-mix(in srgb, var(--c) 34%, #3d2310), #3d2310 80%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(20, 10, 4, 0.6);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
#eventBox .choices .sideBar .sbSide.s { --c: var(--ss); flex-direction: row-reverse; text-align: right;
  background: linear-gradient(180deg, rgba(255, 222, 170, 0.09), rgba(0, 0, 0, 0.2)),
    linear-gradient(270deg, color-mix(in srgb, var(--c) 34%, #3d2310), #3d2310 80%); }
/* lyset fra lanternen fejer ind fra yderkanten, når man peger på siden */
#eventBox .choices .sideBar .sbSide::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.25s ease;
  background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%);
}
#eventBox .choices .sideBar .sbSide.s::before { background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%); }
#eventBox .choices .sideBar .sbSide:hover, #eventBox .choices .sideBar .sbSide:focus-visible {
  transform: translateY(-2px); filter: brightness(1.08);
  box-shadow: inset 0 0 0 1px var(--c), inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 16px color-mix(in srgb, var(--c) 55%, transparent), 0 3px 0 rgba(20, 10, 4, 0.6);
}
#eventBox .choices .sideBar .sbSide:hover::before, #eventBox .choices .sideBar .sbSide:focus-visible::before { opacity: 1; }
#eventBox .choices .sideBar .sbSide:active { transform: translateY(0) scale(0.985); }
#eventBox .choices .sideBar .sbSide:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
#eventBox .choices .sideBar .sbLant { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
#eventBox .choices .sideBar .sbLant .lant { width: 34px; height: 34px; color: var(--c) !important;
  filter: drop-shadow(0 0 0.6px #1a0f06) drop-shadow(0 0 5px color-mix(in srgb, var(--c) 75%, transparent)) !important; }
#eventBox .choices .sideBar .sbSide:hover .sbLant .lant { animation: sbFlicker 1.1s ease-in-out infinite alternate; }
#eventBox .choices .sideBar .sbTx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#eventBox .choices .sideBar .sbTx b { font: 400 1.45rem/1 "IM Fell English SC", "IM Fell English", Georgia, serif; letter-spacing: 0.06em; color: var(--c);
  text-shadow: 0 1px 0 #1a0e05, 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); }
#eventBox .choices .sideBar .sbTx small { font: 400 0.8rem/1.25 var(--body); color: #d9c7a0; }
#eventBox .choices .sideBar .sbTx em { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 9px; font: 700 0.74rem/1.4 var(--body); font-style: normal;
  color: #f6e2b0; background: rgba(20, 10, 4, 0.55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
#eventBox .choices .sideBar .sbSide.s .sbTx em { align-self: flex-end; }
#eventBox .choices .sideBar .sbTx em.none { color: #ff9a7a; box-shadow: inset 0 0 0 1px rgba(255, 120, 90, 0.5); }
/* midten: "To battle!", skibet oppefra (boven op), og spørgsmålet */
#eventBox .choices .sideBar .sbMid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; min-width: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(60, 110, 140, 0.35), rgba(10, 22, 34, 0.15) 70%, transparent); border-radius: 6px; }
#eventBox .choices .sideBar .sbHead { display: flex; align-items: center; gap: 4px; font: 400 0.92rem/1 "IM Fell English SC", Georgia, serif; color: #f2cf7a;
  letter-spacing: 0.05em; text-shadow: 0 1px 0 #1a0e05; white-space: nowrap; }
#eventBox .choices .sideBar .sbHead svg { width: 15px; height: 15px; }
#eventBox .choices .sideBar .sbFoot { font: italic 400 0.66rem/1.1 var(--body); color: #bfa97e; text-align: center; }
#eventBox .choices .sideBar .sbShip { width: 100%; height: 104px; overflow: visible; }
.sideBar .sbShip .sbHull { fill: #8f5f2e; stroke: #1a0e05; stroke-width: 1.3; }
.sideBar .sbShip .sbDeck { fill: none; stroke: rgba(26, 14, 5, 0.45); stroke-width: 0.8; }
.sideBar .sbShip .sbMast { fill: #ecdcae; stroke: #1a0e05; stroke-width: 0.8; }
.sideBar .sbShip .sbWake path { fill: none; stroke: rgba(220, 238, 255, 0.4); stroke-width: 1.1; stroke-linecap: round; }
.sideBar .sbShip .sbPip { stroke: #1a0e05; stroke-width: 0.7; transition: opacity 0.2s ease, filter 0.2s ease; }
.sideBar .sbShip .sbPip.p { fill: var(--sp); } .sideBar .sbShip .sbPip.s { fill: var(--ss); }
.sideBar .sbShip .sbPip.empty { fill: rgba(26, 14, 5, 0.65); stroke: rgba(240, 205, 120, 0.5); stroke-dasharray: 1.4 1; }
.sideBar .sbShip .sbFoe { fill: rgba(18, 8, 4, 0.6); stroke-width: 1; stroke-dasharray: 2.2 1.4; opacity: 0; transition: opacity 0.25s ease, transform 0.3s ease; }
.sideBar .sbShip .sbFoe.p { stroke: var(--sp); transform: translateX(-7px); } .sideBar .sbShip .sbFoe.s { stroke: var(--ss); transform: translateX(7px); }
.sideBar[data-hov="p"] .sbShip .sbFoe.p, .sideBar[data-hov="s"] .sbShip .sbFoe.s { opacity: 1; transform: none; }
.sideBar[data-hov="p"] .sbShip .sbPip.s, .sideBar[data-hov="s"] .sbShip .sbPip.p { opacity: 0.3; }
.sideBar[data-hov="p"] .sbShip .sbPip.p:not(.empty) { filter: drop-shadow(0 0 2px var(--sp)); animation: sbPulse 0.9s ease-in-out infinite alternate; }
.sideBar[data-hov="s"] .sbShip .sbPip.s:not(.empty) { filter: drop-shadow(0 0 2px var(--ss)); animation: sbPulse 0.9s ease-in-out infinite alternate; }
@keyframes sbPulse { to { filter: drop-shadow(0 0 4px #fff3c4); } }
@keyframes sbFlicker { 0% { transform: none; } 50% { transform: scale(1.06) rotate(-2deg); } 100% { transform: scale(0.98) rotate(1.5deg); } }
@media (max-width: 640px) {
  #eventBox .choices .sideBar { grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); }
  #eventBox .choices .sideBar .sbSide { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; min-height: 0; }
  #eventBox .choices .sideBar .sbSide.s { flex-direction: column; text-align: center; }
  #eventBox .choices .sideBar .sbTx em, #eventBox .choices .sideBar .sbSide.s .sbTx em { align-self: center; }
  #eventBox .choices .sideBar .sbTx small, #eventBox .choices .sideBar .sbFoot { display: none; }
  #eventBox .choices .sideBar .sbTx b { font-size: 1.15rem; }
  #eventBox .choices .sideBar .sbShip { height: 80px; }
}
html.calm #eventBox .choices .sideBar, html.calm .sideBar .sbShip *, html.calm #eventBox .choices .sideBar .sbLant .lant { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #eventBox .choices .sideBar, .sideBar .sbShip *, #eventBox .choices .sideBar .sbLant .lant { animation: none !important; } }
/* 2026-11-17: Krudttønden v2 (16b2 afsnit U): kanonen er for slidt til Double Charge (overstreget ×2 ved slidmåleren);
   hjørnestenen på buildets kort i Ship's log */
#battery .glist .gcard.dcOut .gwear { outline: 1px dashed rgba(217, 164, 65, 0.85); outline-offset: 1px; }
#battery .glist .gcard.dcOut .gwear::after { content: "×2"; margin-left: 3px; font: 700 0.55rem/1 var(--body, sans-serif); color: #d9a441; text-decoration: line-through; opacity: 0.9; }
.docArts .docKey { color: #e2b85a; font-weight: 700; }
.docArts .docKey.have { color: #a6d98a; }
/* =============================== Pausen og det frie kamera (2026-11-18) ===============================
   body.hudOff (12f hudFade): alt HUD toner ud, mens pausemenuen er åben; hudFade bærer overgangen begge veje.
   #topleft er display: contents (06): dens børn tones selv. Undtaget: scenen, pausemenuen, kameraets hjælpelinje, lyn/dagskifte/kranie-slør (en del af billedet) og gamepad-markøren.
   body.fcOn: det frie kamera; pausemenuen toner også ud og tager ikke imod klik. */
body.hudFade > :not(#scene):not(#escMenu):not(#fcHint):not(#flash):not(#fade):not(#menu):not(#gameover):not(#skullVeil):not(#padCursor), body.hudFade > #topleft > * { transition: opacity 0.35s var(--cb-ease, ease) !important; }
body.hudOff > :not(#scene):not(#escMenu):not(#fcHint):not(#flash):not(#fade):not(#menu):not(#gameover):not(#skullVeil):not(#padCursor), body.hudOff > #topleft > * { opacity: 0 !important; pointer-events: none !important; }
html body #escMenu { transition: opacity 0.3s var(--cb-ease, ease); }
html body.fcOn #escMenu { opacity: 0 !important; pointer-events: none !important; }
body.fcOn, body.fcOn #scene { cursor: grab; }   /* låst mus er usynlig; kan siden ikke låse den, trækker man */
body.fcOn:active, body.fcOn #scene:active { cursor: grabbing; }
html.calm body.hudFade > *, html.calm body #escMenu { transition-duration: 0.2s !important; }
/* Free camera i pausemenuens venstre søjle, lige over "Back to sea" */
html.cab body #escPanel .escNav #btnFreeCam {
  display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 12px; margin-top: auto; text-align: left; border-radius: 5px !important; clip-path: none !important;
  background: linear-gradient(180deg, rgba(30, 44, 52, 0.92), rgba(18, 28, 34, 0.92)) !important;
  box-shadow: inset 0 0 0 1px var(--cb-line), 0 2px 0 var(--cb-ink) !important; color: var(--cb-cream);
  transition: background 0.15s var(--cb-ease), transform 0.15s var(--cb-ease);
}
html.cab body #escPanel .escNav #btnFreeCam:hover, html.cab body #escPanel .escNav #btnFreeCam:focus-visible { background: linear-gradient(180deg, rgba(48, 70, 80, 0.95), rgba(30, 46, 54, 0.95)) !important; transform: translateX(2px); }
html.cab body #escMenu #btnFreeCam + #btnEscClose.escGo { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { html.cab body #escPanel .escNav #btnFreeCam:hover { transform: none; } }
@media (max-width: 720px) {
  html.cab body #escPanel .escNav #btnFreeCam { flex: none; min-height: 46px; padding: 6px 10px; margin-top: 0; }
}
/* hjælpelinjen nederst i det frie kamera: kort, og den toner selv ud (12f fcHint) */
#fcHint {
  position: fixed; left: 50%; bottom: 26px; z-index: 40; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; max-width: calc(100vw - 32px); padding: 9px 18px;
  border-radius: 6px; background: rgba(12, 8, 4, 0.62); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.35);
  font: 500 0.82rem/1.3 var(--body, sans-serif); color: var(--cb-cream, #fbf3df); text-shadow: 0 1px 0 #000;
  transition: opacity 0.5s var(--cb-ease, ease), transform 0.5s var(--cb-ease, ease);
}
#fcHint.on { opacity: 1; transform: translate(-50%, 0); transition-duration: 0.3s; }
#fcHint b { font: 400 1rem/1 "IM Fell English", Georgia, serif; color: var(--cb-brass-hi, #f0cd78); }
#fcHint kbd { display: inline-block; min-width: 1.4em; margin-right: 2px; padding: 1px 5px; border-radius: 3px; text-align: center; font: 700 0.72rem/1.3 var(--body, sans-serif); color: #1a0f06; background: #e9d6a8; box-shadow: 0 1px 0 #6b4a22; }
html.calm #fcHint { transform: translate(-50%, 0); }

/* ===== OPTJENTE SEJL (2026-11-19, 17c): sejlvalgets afsnit, niveauer, låste sejl, feltet #sailInfo og kortet #achPop ===== */
#sailsMenu { --t1: #cdb98e; --t2: #9cc6dc; --t3: #f0cd78; --t4: #ee9a5c; --t5: #d6a8ff; }
#sailLockNote { margin: -2px 0 10px; font: 500 0.82rem/1.4 var(--body); color: var(--cb-dim, #c6b48e); }
.sailGrid .sgHead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 -2px; padding-bottom: 4px;
  font: 400 1.08rem "IM Fell English", Georgia, serif; color: var(--cb-cream, #fbf3df); border-bottom: 1px solid var(--cb-line, rgba(240, 205, 120, 0.3)); }
.sailGrid .sgHead small { font: 500 0.78rem var(--body); color: var(--cb-dim, #c6b48e); }
html.cab body #menu .sailOpt em { font: 700 0.62rem/1 var(--body); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
html.cab body #menu .sailOpt.ach img { width: 60px; height: 69px; }
html.cab body #menu .sailOpt.t1 em { color: var(--t1); } html.cab body #menu .sailOpt.t2 em { color: var(--t2); } html.cab body #menu .sailOpt.t3 em { color: var(--t3); }
html.cab body #menu .sailOpt.t4 em { color: var(--t4); } html.cab body #menu .sailOpt.t5 em { color: var(--t5); }
/* de sværeste sejl skiller sig også ud i menuen */
html.cab body #menu .sailOpt.t3:not(.locked) { box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.45); }
html.cab body #menu .sailOpt.t4:not(.locked) { background: linear-gradient(180deg, rgba(238, 154, 92, 0.14), rgba(251, 243, 223, 0.04)); box-shadow: inset 0 0 0 1px rgba(238, 154, 92, 0.6); }
html.cab body #menu .sailOpt.t5:not(.locked) { background: linear-gradient(180deg, rgba(214, 168, 255, 0.18), rgba(240, 205, 120, 0.08)); box-shadow: inset 0 0 0 1px rgba(214, 168, 255, 0.7), 0 0 14px rgba(214, 168, 255, 0.25); }
html.cab body #menu .sailOpt.t5:not(.locked) img { box-shadow: 0 0 12px rgba(255, 230, 160, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
html.cab body #menu .sailOpt.on.t4, html.cab body #menu .sailOpt.on.t5 { box-shadow: inset 0 0 0 2px var(--cb-brass) !important; }
/* låst: mørkt billede og en hængelås; et klik viser kun, hvordan det optjenes */
html.cab body #menu .sailOpt.locked { cursor: help; color: var(--cb-dim, #c6b48e); }
html.cab body #menu .sailOpt.locked img { filter: grayscale(1) brightness(0.32) contrast(0.9); }
html.cab body #menu .sailOpt.locked::before {
  content: ""; position: absolute; z-index: 1; top: 34px; left: 50%; width: 18px; height: 22px; transform: translateX(-50%); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M4.5 10V6.5a4.5 4.5 0 0 1 9 0V10' fill='none' stroke='%23f0cd78' stroke-width='2.2'/%3E%3Crect x='1.5' y='9.5' width='15' height='11' rx='2' fill='%23f0cd78' stroke='%23100803' stroke-width='1.2'/%3E%3Ccircle cx='9' cy='14.4' r='1.7' fill='%23100803'/%3E%3C/svg%3E");
}
html.cab body #menu .sailOpt.locked.nope { animation: sgNope 0.35s ease; }
@keyframes sgNope { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
#sailInfo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 54px; margin-top: 12px; padding: 10px 12px; border-radius: 3px;
  background: rgba(251, 243, 223, 0.05); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.25); font: 500 0.88rem/1.4 var(--body); color: var(--cb-soft, #e6d8ba); }
#sailInfo b { font: 400 1.06rem "IM Fell English", Georgia, serif; color: var(--cb-cream, #fbf3df); }
#sailInfo .siHow { flex-basis: 100%; }
#sailInfo .siHow em { font-style: normal; font-weight: 700; color: var(--cb-cream, #fbf3df); }
#sailInfo small { flex-basis: 100%; font-size: 0.78rem; color: var(--cb-dim, #c6b48e); }
#sailInfo small.got { color: #a9d98a; }
.sgTier { font: 700 0.64rem/1 var(--body, sans-serif); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 6px; border-radius: 2px; color: #14100a; }
.sgTier.t1 { background: #cdb98e; } .sgTier.t2 { background: #9cc6dc; } .sgTier.t3 { background: #f0cd78; } .sgTier.t4 { background: #ee9a5c; }
.sgTier.t5 { background: linear-gradient(90deg, #d6a8ff, #f0cd78, #8ff0c8); }
#achTest { display: flex; gap: 8px; margin-top: 10px; }
#achTest button { font: 600 0.74rem var(--body); opacity: 0.75; }
/* kortet, når et sejl er optjent: kommer ned øverst i midten og går selv igen */
#achPop {
  position: fixed; left: 50%; top: 84px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: min(440px, calc(100vw - 24px)); padding: 10px 18px 10px 10px;
  transform: translate(-50%, -14px); opacity: 0; pointer-events: none; border-radius: 4px;
  background: linear-gradient(180deg, rgba(26, 17, 9, 0.95), rgba(14, 9, 4, 0.95)); box-shadow: inset 0 0 0 1px rgba(240, 205, 120, 0.55), 0 14px 34px rgba(0, 0, 0, 0.55);
  font: 500 0.84rem/1.35 var(--body, sans-serif); color: var(--cb-soft, #e6d8ba); transition: opacity 0.4s var(--cb-ease, ease), transform 0.4s var(--cb-ease, ease);
}
#achPop.on { opacity: 1; transform: translate(-50%, 0); }
#achPop img { width: 58px; height: 66px; flex: none; border-radius: 0 0 40% 40% / 0 0 14% 14%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
#achPop div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#achPop small { font: 700 0.66rem var(--body, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cb-brass, #f0cd78); }
#achPop b { font: 400 1.22rem/1.1 "IM Fell English", Georgia, serif; color: var(--cb-cream, #fbf3df); }
#achPop span { display: flex; align-items: center; gap: 8px; color: var(--cb-cream, #fbf3df); }
#achPop em { font-size: 0.74rem; color: var(--cb-dim, #c6b48e); }
#achPop.t4 { box-shadow: inset 0 0 0 1px rgba(238, 154, 92, 0.8), 0 0 26px rgba(238, 154, 92, 0.3), 0 14px 34px rgba(0, 0, 0, 0.55); }
#achPop.t5 { box-shadow: inset 0 0 0 1px rgba(214, 168, 255, 0.85), 0 0 34px rgba(214, 168, 255, 0.4), 0 14px 34px rgba(0, 0, 0, 0.55); }
html.calm #achPop { transition: opacity 0.3s linear; transform: translate(-50%, 0); }

/* =====================================================================
   INTRO (2026-11-19, js/17d-intro.js): sort fra første billede, filmbjælker, replikker, logoet og "spring over".
   Under filmen er alt andet end billedet skjult (body.intro).
   ===================================================================== */
body.intro > :not(#scene):not(#intro):not(script):not(style) { visibility: hidden !important; }
#intro { position: fixed; inset: 0; z-index: 9000; overflow: hidden; cursor: default; user-select: none; -webkit-user-select: none; --inBar: min(10.5vh, 7.2vw); }
#intro[hidden] { display: none; }
#intro .inBlack { position: absolute; inset: 0; background: #000; opacity: 1; }
#intro .inBar { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 1.1s cubic-bezier(.2, .7, .2, 1); }
#intro .inTop { top: 0; } #intro .inBot { bottom: 0; }
#intro.bars .inBar { height: var(--inBar); }
#intro .inSub { position: absolute; left: 6vw; right: 6vw; bottom: calc(var(--inBar) + 3.2vh); text-align: center; opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
#intro .inSub span { font-family: "IM Fell English", Georgia, serif; font-style: italic; font-size: clamp(19px, 2.3vw, 36px); letter-spacing: .02em; color: #f3ead6;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .9), 0 0 22px rgba(0, 0, 0, .7); }
#intro .inSub.on { opacity: 1; transform: none; }
#intro .inSkip { position: absolute; right: 2.6vw; bottom: calc(var(--inBar) * .5 - 15px); height: 30px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  font: 500 13px/1 "Alegreya Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 234, 214, .78);
  background: transparent; border: 1px solid rgba(243, 234, 214, .28); border-radius: 3px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s ease, border-color .2s, color .2s; }
#intro .inSkip.on { opacity: 1; pointer-events: auto; }
#intro .inSkip:hover, #intro .inSkip:focus-visible { color: #fff4d6; border-color: rgba(243, 234, 214, .7); outline: none; }
#intro .inSkip kbd { font: inherit; font-size: 10px; letter-spacing: .08em; padding: 2px 5px; border: 1px solid rgba(243, 234, 214, .3); border-radius: 2px; }
#intro .inSound { position: absolute; left: 2.6vw; bottom: calc(var(--inBar) * .5 - 8px); font: 500 13px/1 "Alegreya Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243, 234, 214, .7); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
#intro .inSound.on { opacity: 1; animation: inPulse 2.4s ease-in-out infinite; }
@keyframes inPulse { 50% { color: rgba(255, 226, 160, .95); } }
/* logoet v2 (2026-11-21, assets/logo/*.webp): samme opbygning i introen (#intro .inLogo) og på startskærmen (#menu .mmLogo), begge .lgBox.
   Introen: havørnen i den røde sol (lgEmb) toner frem midt i billedet med en ring og rød glød, glider op, og navnet glider ud under den:
   FLIGHT ned fra bag solen, bjælkerne "OF THE" ud fra midten, SEA EAGLE op nedefra. Til sidst en glans (lgSheen: maskeret med billedet
   selv) og et glimt (lgStar). Tiderne er fra #intro.logo. Ved filmens slut glider logoet op på startskærmens plads (introFly, 17d). */
.lgBox { --lgE: cubic-bezier(.16, 1, .3, 1); --lgIO: cubic-bezier(.65, 0, .35, 1); display: flex; flex-direction: column; align-items: center; }
.lgBox img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
.lgBox .lgEmb { position: relative; display: block; width: 42%; aspect-ratio: 1; }
.lgBox .lgEmbImg { position: relative; height: 100%; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .7)); }
.lgBox .lgText { position: relative; display: block; width: 100%; margin-top: 3.6%; filter: drop-shadow(0 3px 2px rgba(20, 8, 4, .75)) drop-shadow(0 8px 20px rgba(0, 0, 0, .7)); }
.lgBox .lgLine { position: relative; display: block; overflow: hidden; }
.lgBox .lgLine.l2 { margin-top: 2.49%; overflow: visible; }
.lgBox .lgLine.l3 { margin-top: 1.84%; }
.lgBox .lgIn { position: relative; display: block; }
/* glansen: et lyst bånd, der kun ses på billedets egne pixels */
.lgBox .lgSheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 0 41%, rgba(255, 246, 226, .95) 50%, rgba(255, 255, 255, 0) 59% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: var(--lgM) 0 0 / 100% 100% no-repeat; mask: var(--lgM) 0 0 / 100% 100% no-repeat; }
.lgBox .lgEmb > .lgSheen { --lgM: url(../assets/logo/emblem.webp); opacity: .6; }
.lgBox .l1 .lgSheen { --lgM: url(../assets/logo/flight.webp); }
.lgBox .l2 .lgSheen { --lgM: url(../assets/logo/ofthe.webp); }
.lgBox .l3 .lgSheen { --lgM: url(../assets/logo/seaeagle.webp); }
.lgBox .lgStar { position: absolute; left: 86%; top: 19%; width: 19%; height: auto; overflow: visible; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0);
  fill: #fffaf0; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px rgba(255, 220, 170, .9)) drop-shadow(0 0 26px rgba(255, 160, 120, .55)); }
.lgBox .lgStar.s2 { left: 80.6%; top: 4%; width: 7.5%; }
/* introen */
#intro .inLogo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(62vw, 600px, 76vh); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
#intro.logo .inLogo { opacity: 1; }
#intro.leaving .inLogo { opacity: 0; transition: opacity .55s ease; }
#intro .lgEmbImg, #intro .lgIn { opacity: 0; }
#intro .lgHalo { position: absolute; inset: -38%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(214, 44, 52, .42) 0%, rgba(150, 20, 28, .18) 38%, rgba(0, 0, 0, 0) 68%); }
#intro .lgRing { position: absolute; inset: 7%; border-radius: 50%; border: 1.5px solid rgba(252, 236, 206, .85); opacity: 0; pointer-events: none;
  box-shadow: 0 0 18px rgba(255, 214, 160, .45), inset 0 0 18px rgba(255, 214, 160, .3); }
#intro.logo .lgEmb { animation: lgRise 1.15s var(--lgIO) 1.05s both; }
#intro.logo .lgEmbImg { animation: lgEmbIn 1.5s var(--lgE) .05s both; }
#intro.logo .lgHalo { animation: lgHalo 2.2s ease-out .1s both; }
#intro.logo .lgRing { animation: lgRing 1.5s var(--lgE) .4s both; }
#intro.logo .l1 .lgIn { animation: lgDown 1.05s var(--lgE) 1.5s both; }
#intro.logo .l2 .lgIn { animation: lgSpread 1.15s var(--lgIO) 1.72s both; }
#intro.logo .l3 .lgIn { animation: lgUp 1.15s var(--lgE) 1.82s both; }
#intro.logo .lgEmb > .lgSheen { animation: lgSheen 1.35s ease-in-out 2.95s both; }
#intro.logo .l1 .lgSheen { animation: lgSheen 1.3s ease-in-out 3.08s both; }
#intro.logo .l2 .lgSheen { animation: lgSheen 1.3s ease-in-out 3.16s both; }
#intro.logo .l3 .lgSheen { animation: lgSheen 1.3s ease-in-out 3.22s both; }
#intro.logo .lgStar { animation: lgStar 1.15s ease-out 3.5s both; }
#intro.logo .lgStar.s2 { animation: lgStar .95s ease-out 3.95s both; }
/* overgangen til startskærmen: logoet glider op (17d introFly sætter transform), gløden og vignetten toner ud */
#intro.fly .lgHalo { animation: lgHaloOut .8s ease both; }
#intro.fly::before, #intro.leaving::before { opacity: 0; transition: opacity 1.1s ease; }
@keyframes lgEmbIn { 0% { opacity: 0; transform: scale(.7) rotate(-14deg); filter: blur(14px) brightness(2.4) drop-shadow(0 8px 22px rgba(0, 0, 0, 0)); }
  55% { opacity: 1; filter: blur(0) brightness(1.22) drop-shadow(0 8px 22px rgba(0, 0, 0, .7)); }
  100% { opacity: 1; transform: none; filter: blur(0) brightness(1) drop-shadow(0 8px 22px rgba(0, 0, 0, .7)); } }
@keyframes lgRise { from { transform: translateY(42%); } to { transform: none; } }
@keyframes lgHalo { 0% { opacity: 0; transform: scale(.55); } 45% { opacity: 1; } 100% { opacity: .55; transform: none; } }
@keyframes lgHaloOut { from { opacity: .55; } to { opacity: 0; } }
@keyframes lgRing { 0% { opacity: 0; transform: scale(.72); } 18% { opacity: .95; } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes lgDown { from { opacity: 0; transform: translateY(-104%); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lgUp { from { opacity: 0; transform: translateY(104%); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lgSpread { from { opacity: 0; clip-path: inset(0 50% 0 50%); } 20% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes lgSheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes lgStar { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); } 32% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(50deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(140deg); } }
/* rolig visning: ingen bevægelse, kun udtoningen */
html.calm #intro.logo .lgEmb, html.calm #intro.logo .lgEmbImg, html.calm #intro.logo .lgHalo, html.calm #intro.logo .lgIn { animation: none; opacity: 1; transform: none; filter: none; clip-path: none; }
html.calm #intro .lgHalo { opacity: .55; }
html.calm #intro .lgRing, html.calm .lgBox .lgSheen, html.calm .lgBox .lgStar { display: none; }
/* INTRO v3 (2026-11-19): titlen over det sidste billede (filmen kører videre under den) med en blød mørk vignet bag;
   havvandet, der skyller hen over kameraet (17d inWash: --k lagets styrke, --y hvor det er, --d dråberne, --dy deres fald) */
#intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 48%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 100%);
  opacity: 0; transition: opacity 1.8s ease; pointer-events: none; }
#intro.over::before { opacity: 1; }
#intro.over .inLogo { transition: opacity 1.2s ease; }
#intro .inWash { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#intro .inWash i { position: absolute; left: -15%; right: -15%; top: -12%; height: 124%; opacity: var(--k, 0); transform: translateY(var(--y, -110%)) rotate(-7deg);
  background: linear-gradient(172deg, rgba(205, 232, 236, .5) 0%, rgba(84, 132, 140, .62) 34%, rgba(226, 242, 244, .55) 52%, rgba(52, 96, 104, .66) 74%, rgba(190, 220, 226, .45) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.35) brightness(.92); backdrop-filter: blur(16px) saturate(1.35) brightness(.92); }
#intro .inWash b { position: absolute; border-radius: 48% 52% 50% 50% / 44% 46% 56% 56%; opacity: var(--d, 0); transform: translateY(var(--dy, 0));
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06) 55%, rgba(10, 30, 36, .16) 100%);
  -webkit-backdrop-filter: blur(5px) brightness(1.08); backdrop-filter: blur(5px) brightness(1.08); }
#intro .inWash b:nth-of-type(1) { left: 14%; top: 18%; width: 6.5vw; height: 7.4vw; }
#intro .inWash b:nth-of-type(2) { left: 63%; top: 9%; width: 3.6vw; height: 4.2vw; }
#intro .inWash b:nth-of-type(3) { left: 78%; top: 44%; width: 8vw; height: 8.8vw; }
#intro .inWash b:nth-of-type(4) { left: 31%; top: 61%; width: 2.8vw; height: 3.3vw; }
#intro .inWash b:nth-of-type(5) { left: 49%; top: 30%; width: 4.4vw; height: 5vw; }
html.calm #intro .inWash { display: none; }
/* kaptajnens udsyn gennem kikkerten: rund maske med en blank kant (17d: #intro.glass under klippet capView) */
#intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) min(34vh, 27vw), rgba(20, 16, 10, .7) calc(min(34vh, 27vw) + 3px), #000 calc(min(34vh, 27vw) + 2.4vh)); }
#intro.glass::after { opacity: 1; }

/* 2026-11-19: tal i hjørnet af et gunstmærke (#flagBar, FLAG_TOK.count i 12d), fx kampe tilbage med Mare Ophis' gunst */
html body #flagBar .flagTok .ftCnt { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; background: #1a120b; border: 1.5px solid var(--fc); color: #f4ead2; font: 700 11px/15px Georgia, serif; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); pointer-events: none; }

/* 2026-11-19 (brugerens valg, "E2"): kampens skilte er symbol + tal direkte på scenen, uden plade og kant; mørk kontur for
   læsbarhed. Objekt-skiltene (floater({ ic, n, t, … }), 15) har .fx2; tekst-skiltene mister også pladen. shout (hændelser) urørt */
html body #floaters .floater:not(.shout) { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
  text-shadow: 0 0 2px #050b10, 0 1px 2px #050b10, 0 0 10px rgba(5, 11, 16, 0.75) !important; }
html body #floaters .floater.fx2 { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font: 700 0.95rem/1 var(--body); letter-spacing: 0.01em; }
html body #floaters .floater.fx2 .fr { display: flex; align-items: center; gap: 0.3em; }
html body #floaters .floater.fx2 em { font-style: normal; }
html body #floaters .floater.fx2 .fi { flex: none; width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px #050b10) drop-shadow(0 1px 1px #050b10); }
html body #floaters .floater.fx2 .fi.fs { fill: currentColor; stroke: none; }
html body #floaters .floater.fx2 .fn { font-weight: 800; font-variant-numeric: tabular-nums; }
html body #floaters .floater.fx2 .f2 { color: #ffc9a8; }
html body #floaters .floater.fx2 svg.f2 { margin-left: 0.2em; }
/* udfald (MISS, BLOCKED, RAKED …): symbolet alene, evt. med et lille tal */
html body #floaters .floater.fx2.big { font-size: 1.5rem; }
html body #floaters .floater.fx2.big .fi { width: 1.25em; height: 1.25em; }
html body #floaters .floater.fx2.big .fn { font-size: 0.8em; }
html body #floaters .floater.fx2.big .ft { font: 400 0.8em var(--display); letter-spacing: 0.06em; }
/* vores træf: kun tallet; trinnet er størrelse og farve, 25+ får eksplosionen, kædeskud masten */
html body #floaters .floater.fx2.dmg .fi { width: 0.68em; height: 0.68em; }
html body #floaters .floater.fx2.dmg-0 { font-size: 0.875rem; color: #9c9484; }
html body #floaters .floater.fx2.dmg-s { font-size: 1.125rem; color: #f3e6c8; }
html body #floaters .floater.fx2.dmg-m { font-size: 1.56rem; color: #ffd27a; }
html body #floaters .floater.fx2.dmg-l { font-size: 2.125rem; color: #ff9a4a; }
html body #floaters .floater.fx2.dmg-x { font-size: 2.875rem; color: #ffe36b; }
html body #floaters .floater.fx2.dmg-x .fi { width: 0.66em; height: 0.66em; }
/* hendes træf på os: pil ned og tal, følgen som et lille symbol (posten blinker i postlisten) */
html body #floaters .floater.fx2.hurt { font-size: 1.6rem; }
html body #floaters .floater.fx2.hurt .fi { width: 0.75em; height: 0.75em; }
html body #floaters .floater.fx2.hurt .fn { font-size: 1em; }
html body #floaters .floater.fx2.hurt .fn.f2 { font-size: 0.55em; }
/* udkiggens drab */
html body #floaters .floater.fx2.kill { font-size: 2rem; color: #ffe9b8; }
html body #floaters .floater.fx2.kill .fn { font-size: 0.7em; }
/* artefakter (som A): udfyldt ✦, navnet i sjældenhedens farve, effekten under */
html body #floaters .floater.fx2.artf { font-size: 1.06rem; color: var(--r); }
html body #floaters .floater.fx2.artf .fi { width: 0.95em; height: 0.95em; }
html body #floaters .floater.fx2.artf .ft { font: 400 1em var(--display); letter-spacing: 0.06em; }
html body #floaters .floater.fx2.artf .fsub { margin-top: 0.4em; padding-left: 1.35rem; font: 700 0.84rem/1.15 var(--body); color: #fff4e0; }
html body #floaters .floater.fx2.artf.bad .fsub { color: #ffb8a0; }
/* småbeskeder: symbol, tal hvis der er et */
html body #floaters .floater.fx2:not(.big):not(.dmg) .ft { font-weight: 700; }
html body #floaters .floater.fx2.burnF { color: #ffb070; }
