/* ==========================================================================
   UI v15 "Joinery" (2026-11-23): rent mørkt træ.
   Samme funktioner og samme layout som v14 "Cabin"; kun udseendet er nyt:
   ingen tov, ingen søm, ingen affasede hjørner. Rolige valnøddeplanker,
   en tynd messingindlægning 6 px inde i hver ramme, flade fordybede felter,
   og EB Garamond som skrift i stedet for Pirata One / IM Fell.
   Hele laget ligger i denne ene fil (indlæst sidst): fjern <link>'et, og v14 er tilbage.
   Afsnit 5 (skrifterne) er en liste over alle ældre regler med Pirata One / IM Fell; får en ny regel en af dem, skal den med i listen.
   ========================================================================== */
html.cab {
  /* layout: mørk valnød som flade, tjære som fordybning, messing kun som 1 px linjer og som den ene vigtige knap */
  --jn-wood-hi: #643f1e;
  --jn-wood: #4e2f17;
  --jn-wood-lo: #37200f;
  --jn-tar: #120a04;
  --jn-well: rgba(16, 9, 4, 0.6);
  --jn-inlay: #e2bb68;
  --jn-inlay-2: rgba(226, 187, 104, 0.5);
  --jn-inlay-3: rgba(226, 187, 104, 0.24);
  --jn-cream: #f8efdc;
  --jn-sheet: #f1e6cd;
  --jn-ink: #2a180a;
  --jn-red: #8a2414;
  --jn-title: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --jn-r: 3px;

  --display: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* brede, rolige planker: én fuge pr. 64 px, fine årer, ingen stød og ingen knaster */
  --planks:
    repeating-linear-gradient(180deg, transparent 0 63px, rgba(8, 4, 1, 0.3) 63px 64px, rgba(255, 214, 150, 0.04) 64px 65px),
    repeating-linear-gradient(178.9deg, rgba(255, 226, 172, 0.026) 0 1px, transparent 1px 4px, rgba(0, 0, 0, 0.045) 4px 5px, transparent 5px 11px),
    linear-gradient(176deg, rgba(98, 63, 33, 0.975) 0%, rgba(78, 47, 23, 0.98) 55%, rgba(60, 36, 17, 0.985) 100%);
  --wood-edge: 0 0 0 1px var(--jn-tar), 0 14px 30px rgba(0, 0, 0, 0.5);
  --hull-edge: 0 0 0 1px var(--jn-tar), 0 10px 24px rgba(0, 0, 0, 0.45);
  --slot-bg: linear-gradient(180deg, rgba(16, 9, 4, 0.62), rgba(16, 9, 4, 0.62));
  --cb-line: rgba(226, 187, 104, 0.24);
  --cb-line-2: rgba(226, 187, 104, 0.5);
}
/* rammen: tov og søm er væk; i stedet én messinglinje 6 px inde. Sat på hvert element, fordi de gamle regler regner rammen ud lokalt */
/* 2026-11-28 (ydelse): før stod her "html.cab body *": de fem variable blev sat på HVERT element (3.000 elementer × 5), og hvert
   element fik dermed sin egen kopi af alle sidens variable: en fuld omregning af sidens stil tog en fjerdedel længere. Nu sættes de
   kun dér, hvor et ældre ark sætter dem (07-cabin: panelerne, fjendepanelet, pausemenuen, pauseskiltet), dér hvor --jn-inlay-2
   skifter (fjendepanelet), og på børnene af de vinduer, der selv bestemmer --rope-frame (07c/08/08b, !important); alle andre arver
   præcis den samme værdi. :where() holder vægten på (0,1,2) som før, så rækkefølgen mod alle andre regler er uændret. */
html.cab, html.cab body,
html.cab body :where(.panel, #enemyPanel, #escMenu > .panel, #pauseBanner, :is(#shipLog, #gameover) > .panel > *, #menu .mmDeck > :is(#howTo, #sailsMenu, :is(#voyLog, #newsLog)) > *, #escMenu > #escPanel > *) {
  --cb-nail: linear-gradient(transparent, transparent) !important;
  --cb-rope-x: linear-gradient(180deg, transparent calc(50% - 0.5px), var(--jn-inlay-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)) !important;
  --cb-rope-y: linear-gradient(90deg, transparent calc(50% - 0.5px), var(--jn-inlay-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)) !important;
  --cb-frame-plain:
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) 6px 6px / calc(100% - 12px) 1px no-repeat,
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) 6px calc(100% - 6px) / calc(100% - 12px) 1px no-repeat,
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) 6px 6px / 1px calc(100% - 12px) no-repeat,
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) calc(100% - 6px) 6px / 1px calc(100% - 12px) no-repeat !important;
  --rope-frame: var(--cb-frame-plain) !important;
}
/* fjendens panel: samme snedkerarbejde, men indlægningen er kobberrød */
html.cab body #enemyPanel { --jn-inlay-2: rgba(255, 138, 106, 0.55); --jn-inlay-3: rgba(255, 138, 106, 0.26); }   /* (2026-11-28: uden "#enemyPanel *"; børnene arver samme værdi) */

/* tal med fuld højde overalt (Alegreyas gamle tal ligner bogstaver i små størrelser: 60 blev til 6o) */
html.cab body { font-feature-settings: "lnum" 1; }

/* ---------- 1. Flader ---------- */
html.cab body .panel { border-radius: var(--jn-r); }
/* skrogplanken øverst: ingen messingskinne med hakker, ingen søm nedenunder */
html.cab body #hullFrame #hullPlank {
  background: var(--cb-frame-plain), var(--planks) !important;
  box-shadow: var(--hull-edge) !important;
  border-radius: var(--jn-r);
}
html.cab body #hullFrame::before, html.cab body #hullFrame:not(.infFire)::after,
html.cab body #combatBoard::before, html.cab body #combatBoard::after { display: none !important; }
/* overskrifternes dobbelte messingstreg bliver én tynd linje */
html.cab body .cphead::after, html.cab body :is(#battery, #crewPanel) h2:not(.cbHead)::after, html.cab body .chartHead::after, html.cab body h4.psub::after {
  background: linear-gradient(90deg, var(--jn-inlay-2), var(--jn-inlay-3) 60%, transparent) !important;
  height: 1px !important; border-radius: 0 !important;
}

/* fordybede felter: flad tjære med en svag linje, ingen indvendig skygge */
html.cab body :is(.srow, .gcard, .card, .invItem, .pnone, #logBody, .arShipWrap, .arInfo, .invGrid, .escStatus, .wsGrid > section, .portGrid > section, .chartHead .res, #eGuns .eg, #arHold .wc) {
  background-image: none !important;
  background-color: var(--jn-well) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3) !important;
  border-radius: var(--jn-r) !important;
}
html.cab body :is(.card, .invItem) { border-color: transparent !important; }
html.cab body #enemyPanel #eGuns .eg { background-color: rgba(20, 6, 3, 0.6) !important; }
html.cab body :is(#hgBar, #mgBar, #wgBar, #epHullWrap) {
  background-image: none !important; background-color: rgba(10, 5, 2, 0.8) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3) !important; border-radius: 2px !important;
}
html.cab body #chart .chartWrap { border-radius: var(--jn-r) !important; box-shadow: inset 0 0 0 1px var(--jn-inlay-2) !important; }
html.cab body #chartFactions { background: var(--jn-well) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--jn-inlay-3); border-radius: var(--jn-r) !important; }
/* vinduernes fod: rammens linje fortsætter rundt om den (venstre, højre, bund), og én svag linje skiller den fra indholdet */
html.cab body :is(#port, #inventory, #workshop, #armory) > .panel > .portFoot, html.cab body #shipLog .logFoot {
  background:
    linear-gradient(var(--jn-inlay-3), var(--jn-inlay-3)) 6px 0 / calc(100% - 12px) 1px no-repeat,
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) 6px calc(100% - 6px) / calc(100% - 12px) 1px no-repeat,
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) 6px 0 / 1px calc(100% - 6px) no-repeat,
    linear-gradient(var(--jn-inlay-2), var(--jn-inlay-2)) calc(100% - 6px) 0 / 1px calc(100% - 6px) no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
    var(--planks) !important;
  border: 0 !important; box-shadow: none !important;
  border-radius: 0 0 var(--jn-r) var(--jn-r);
}

/* ---------- 2. Knapper ---------- */
/* almindelig knap: en flad valnøddeklods med en messinglinje; ingen kant forneden, ingen årer */
html.cab body button:not(.primary):not(.evc):not(.mbtn):not(.logTab):not(.shipTab):not(.artSlot):not(.sgGift):not(.grip):not(.cc):not(.vb):not(.wc):not(.bxBtn):not(.focusBtn) {
  border-radius: var(--jn-r);
}
html.cab body :is(#btnFold, #btnCbFold, .foldBtn, .grip, #btnCloseMap, #btnPortSell, #btnPortWorkshop, #btnPortArmory, .escBtns button, #btnEscAbout, .card button, button.mini, .wbtn, .gam .mv) {
  background-image: linear-gradient(180deg, var(--jn-wood-hi), var(--jn-wood)) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-2) !important;
  border-radius: var(--jn-r) !important;
}
html.cab body :is(#btnCloseMap, #btnPortSell, #btnPortWorkshop, #btnPortArmory, .escBtns button, #btnEscAbout, .card button, button.mini):hover:not(:disabled) {
  background-image: linear-gradient(180deg, #74492a, var(--jn-wood-hi)) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay) !important;
}
/* den ene vigtige knap: massiv messing, uden skruer i enderne og uden glans */
html.cab body button.primary.primary:not(:disabled) {
  background-image: linear-gradient(180deg, #edc874, #d9ae58) !important;
  background-color: #e2bb68 !important;
  box-shadow: 0 0 0 1px var(--jn-tar), 0 6px 14px rgba(0, 0, 0, 0.35) !important;
  border-radius: var(--jn-r) !important;
  color: #1c1206 !important;
  letter-spacing: 0.04em;
}
html.cab body button.primary.primary:hover:not(:disabled) { background-image: linear-gradient(180deg, #f6d68a, #e2bb68) !important; }
/* de runde HUD-knapper: tovflisen er væk, tilbage står en lille valnøddeplade */
html.cab body #hudBtns .mbtn {
  background: linear-gradient(180deg, var(--jn-wood-hi), var(--jn-wood)) !important;
  box-shadow: 0 0 0 1px var(--jn-tar), inset 0 0 0 1px var(--jn-inlay-3), 0 4px 10px rgba(0, 0, 0, 0.45) !important;
  border-radius: var(--jn-r) !important;
}
html.cab body #hudBtns .mbtn svg { box-shadow: 0 0 0 1px var(--jn-inlay-2) !important; }
/* faner (Ship's log, skibsvinduet): den valgte er en messingplade, resten er valnød */
html.cab body :is(.logTabs, .shipTabs) :is(.logTab, .shipTab) { border-radius: var(--jn-r) var(--jn-r) 0 0 !important; }
html.cab body :is(.logTabs, .shipTabs) :is(.logTab, .shipTab)[aria-selected="true"] {
  background-image: linear-gradient(180deg, #edc874, #d9ae58) !important;
  box-shadow: none !important;
}
html.cab body :is(.logTabs, .shipTabs) :is(.logTab, .shipTab):not([aria-selected="true"]) {
  background-image: linear-gradient(180deg, var(--jn-wood-hi), var(--jn-wood)) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3) !important;
}
/* havnens og menuens sidefaner */
html.cab body :is(#portNav, .escNav) button { border-radius: var(--jn-r) !important; }
html.cab body :is(#portNav, .escNav) button:not(.primary):not(.escCam) {
  background-image: none !important; background-color: var(--jn-well) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3) !important;
}
html.cab body :is(#portNav, .escNav) button:not(.primary):not(.escCam):is([aria-selected="true"], [aria-current="true"], [aria-pressed="true"], .on, .cur, .sel, .active) {
  background-image: linear-gradient(90deg, rgba(226, 187, 104, 0.2), rgba(226, 187, 104, 0.04)) !important;
  background-color: var(--jn-wood-hi) !important;
  box-shadow: inset 3px 0 0 var(--jn-inlay), inset 0 0 0 1px var(--jn-inlay-2) !important;
}
html.cab body .pnBadge, html.cab body .wsFilter button[aria-pressed="true"] { background-image: none !important; background-color: var(--jn-inlay) !important; }
/* havnens afsnitsoverskrift: ikke en strimmel sejldug, men en indlagt linje med teksten oven på træet */
html.cab body h4.psub {
  background: none !important; box-shadow: none !important; color: var(--jn-inlay) !important;
  border-bottom: 1px solid var(--jn-inlay-3); border-radius: 0 !important; padding-left: 2px !important; letter-spacing: 0.14em;
}
html.cab body h4.psub * { color: inherit !important; }

/* ---------- 3. Dialogen (hændelser, sejr, breve) ---------- */
/* et rent ark sejldug i en smal valnødderamme: ingen brændte kanter, ingen pletter */
html.cab body #eventBox.panel:not(.hexLetter) {
  background: linear-gradient(180deg, #f5ebd5, #ecdfc2) !important;
  box-shadow: inset 0 0 0 5px var(--jn-wood), inset 0 0 0 6px var(--jn-inlay-2), 0 0 0 1px var(--jn-tar), 0 18px 40px rgba(0, 0, 0, 0.55) !important;
  border-radius: var(--jn-r) !important;
}
html.cab body #eventBox > h2 { letter-spacing: 0.01em !important; text-shadow: none !important; font-weight: 500 !important; }
html.cab body #eventBox > h2::after { content: "" !important; left: 0; right: auto; width: 56px !important; height: 2px !important; background: var(--jn-red) !important; opacity: 0.75; }
/* valgene: flade valnødderækker uden affasning, glød og glansstribe */
html.cab body #eventBox .evc { clip-path: none !important; border-radius: var(--jn-r) !important; }
/* 2026-11-23: særlige valg (.special) beholder deres farve (--spc, 06d); kun de almindelige bliver valnød */
html.cab body #eventBox .evc:not(.special) {
  background-image: linear-gradient(180deg, var(--jn-wood-hi), var(--jn-wood)) !important;
  background-color: var(--jn-wood) !important;
  box-shadow: 0 0 0 1px var(--jn-tar) !important;
}
html.cab body #eventBox .evc:not(.special)::before { background: var(--jn-inlay) !important; box-shadow: none !important; width: 3px !important; border-radius: var(--jn-r) 0 0 var(--jn-r); }
html.cab body #eventBox .evc::after { display: none !important; }
html.cab body #eventBox .evc:not(.special):is(:hover, :focus-visible):not(:disabled) { background-image: linear-gradient(180deg, #6a4322, var(--jn-wood-hi)) !important; box-shadow: 0 0 0 1px var(--jn-tar), 0 0 0 2px var(--jn-inlay) !important; }
html.cab body #eventBox .evc .evIco::before { box-shadow: none !important; }

/* ---------- 4. Småting ---------- */
html.cab body #mgNote { background-image: none !important; background-color: var(--jn-wood) !important; border-color: var(--jn-inlay-2) !important; box-shadow: 0 0 0 1px var(--jn-tar) !important; border-radius: var(--jn-r) !important; }
html.cab body #artNotes .artNote { background-image: none !important; background-color: rgba(34, 20, 9, 0.97) !important; border-radius: var(--jn-r) !important; }
html.cab body .brand, html.cab body #chartTitle #chartName, html.cab body .chartHead h2, html.cab body #escMenu h2, html.cab body #enemyPanel header h2 { text-shadow: none !important; }
html.cab body .kbd, html.cab body kbd { border-radius: 2px; }
/* dialogens brødtekst og valg: samme skrift som overskrifterne, ikke den slidte antikva */
html.cab:root body #eventBox#eventBox :is(p, .evc, .evTxt) { font-family: var(--jn-title) !important; }
html.cab body #eventBox .evc { font-weight: 500; }
/* posternes navne: almindelige bogstaver (kapitælerne er for brede til de 94 px, som Pirata One passede i) */
html.cab:root body #crewPanel .srow .sn { font-family: var(--jn-title) !important; font-weight: 500; font-size: 1.08rem !important; letter-spacing: 0 !important; font-variant-caps: normal !important; }

/* ---------- 6. Skroginstrumentet (v15b): et koøje og en planke ----------
   Skrogtallet står i et koøje af messing til venstre, og vandet i lasten stiger bag glasset: de to ting, der sænker os,
   på ét sted. Til højre: navneplade, skrogbjælken (uændret, ét felt pr. point), en lang moralbjælke og forrådet som
   en linje nederst. Samme elementer og id'er som før (14-battle skriver i dem); kun placering og udseende er nyt.
   Vandstanden (--wg) læses af de 20 felter i #wgBar med :has, så der er ingen ny kode. */
html.cab:root body #hullFrame #hullPlank {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "name" "gauges" "chips" "combat" !important;
  padding: 12px 20px 11px 118px !important;
  gap: 6px 0 !important; align-items: stretch !important;
  min-height: 120px; box-sizing: border-box;
}
/* navnepladen: navn, en indlagt linje, skibstypen */
html.cab:root body #hullFrame .brand {
  grid-area: name; display: flex !important; align-items: center; gap: 10px !important;
  font-size: 1.42rem !important; font-weight: 500 !important; line-height: 1 !important; padding: 0 !important; min-width: 0; color: var(--jn-cream) !important;
}
html.cab:root body #hullFrame .brand #shipName { order: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.cab:root body #hullFrame .brand::before { content: ""; order: 2; flex: 1; min-width: 14px; height: 1px; background: linear-gradient(90deg, var(--jn-inlay-2), var(--jn-inlay-3)); }
html.cab:root body #hullFrame .brand small {
  order: 3; flex: none; font: 500 0.6rem/1 var(--body) !important; letter-spacing: 0.24em !important; text-transform: uppercase;
  color: var(--jn-inlay) !important; opacity: 1 !important; margin-right: -0.24em;
}
html.cab:root body #hullFrame #gauges {
  grid-area: gauges; position: relative; display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important; gap: 6px 0 !important; margin: 0 !important;
}
html.cab:root body #hullFrame #gauges[hidden] { display: none !important; }
html.cab:root body #hullPlank #hullGauge { grid-column: 1 !important; display: block !important; }
/* instrumentet: en lille skive som på et skibsur. #waterGauge er skiven (mørk emalje, smal messingkant);
   vandet i lasten står som et roligt, dæmpet niveau i bunden med en lige overflade. Ingen bølger, ingen glød. */
html.cab:root body #hullPlank #waterGauge {
  position: absolute !important; grid-column: auto !important; grid-row: auto !important; left: -100px; top: -22px; width: 84px; height: 84px; box-sizing: border-box;
  display: block !important; border-radius: 50%; overflow: hidden; z-index: 1;
  background: radial-gradient(circle at 50% 40%, #1d130a 0%, #140c06 60%, #0c0703 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8), inset 0 5px 12px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--jn-tar), 0 0 0 2px #e6c988, 0 0 0 4px #a8843c, 0 0 0 5px #5a4016, 0 0 0 6px var(--jn-tar), 0 5px 12px 5px rgba(0, 0, 0, 0.35);
}
html.cab:root body #hullPlank #waterGauge::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--wg, 0) * 100%);
  background: linear-gradient(180deg, rgba(92, 138, 152, 0.62) 0, rgba(48, 92, 110, 0.58) 10px, rgba(24, 58, 74, 0.62) 100%);
  border-top: 1px solid rgba(190, 220, 228, 0.55); box-sizing: border-box;
  transition: height 0.9s cubic-bezier(0.3, 0.7, 0.3, 1);
}
html.cab:root body #hullPlank #waterGauge:not(:has(#wgBar > i.on))::before { border-top-color: transparent; }
html.cab:root body #hullPlank #waterGauge #wgBar { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; visibility: hidden; padding: 0 !important; }
html.cab:root body #hullPlank #waterGauge .hgHead {
  position: absolute; left: 0; right: 0; bottom: 9px; width: auto !important; z-index: 2;
  display: flex !important; justify-content: center !important; gap: 0 !important; opacity: 0; transition: opacity 0.3s;
}
html.cab:root body #hullPlank #waterGauge:has(#wgBar > i.on) .hgHead { opacity: 1; }
html.cab:root body #hullPlank #waterGauge .hgHead small { display: none !important; }
html.cab:root body #hullPlank #waterGauge .hgHead b { font: 500 0.6rem/1 var(--body) !important; letter-spacing: 0.06em; color: #cfe2e8 !important; text-shadow: 0 1px 2px #000; }
/* vandalarm: kun overfladen lyser op, roligt */
html.cab:root body #hullPlank #waterGauge.alarm::before { animation: jnWaterAlarm 1.4s ease-in-out infinite; }
@keyframes jnWaterAlarm { 50% { border-top-color: #fff; filter: brightness(1.35); } }
html.cab body #waterGauge:has(#wgBar > i:nth-child(1).on) { --wg: 0.05; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(2).on) { --wg: 0.10; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(3).on) { --wg: 0.15; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(4).on) { --wg: 0.20; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(5).on) { --wg: 0.25; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(6).on) { --wg: 0.30; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(7).on) { --wg: 0.35; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(8).on) { --wg: 0.40; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(9).on) { --wg: 0.45; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(10).on) { --wg: 0.50; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(11).on) { --wg: 0.55; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(12).on) { --wg: 0.60; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(13).on) { --wg: 0.65; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(14).on) { --wg: 0.70; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(15).on) { --wg: 0.75; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(16).on) { --wg: 0.80; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(17).on) { --wg: 0.85; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(18).on) { --wg: 0.90; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(19).on) { --wg: 0.95; }
html.cab body #waterGauge:has(#wgBar > i:nth-child(20).on) { --wg: 1.00; }
/* skrogets tal midt på skiven, og viseren: en tynd bue (270 grader) der følger skroget (--hp sættes af 14-battle) */
html.cab:root body #hullPlank #hullGauge .hgHead {
  position: absolute !important; left: -100px; top: -22px; width: 84px !important; height: 84px; z-index: 2; pointer-events: none;
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 4px !important;
  padding-bottom: 2px; box-sizing: border-box; --arc: #e6c988;
}
html.cab:root body #hullPlank #hullGauge.mid .hgHead { --arc: #d9a04a; }
html.cab:root body #hullPlank #hullGauge.low .hgHead { --arc: #cf5a44; }
html.cab:root body #hullPlank #hullGauge .hgHead::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(from 225deg, var(--arc) 0 calc(var(--hp, 1) * 270deg), rgba(230, 201, 136, 0.14) 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 0 34.2px, #000 34.7px 36.6px, transparent 37px);
  mask: radial-gradient(circle, transparent 0 34.2px, #000 34.7px 36.6px, transparent 37px);
}
html.cab:root body #hullPlank #hullGauge .hgHead b {
  font: 500 2.1rem/0.86 var(--jn-title) !important; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0;
  color: var(--jn-cream) !important; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7) !important; transition: color 0.3s;
}
html.cab:root body #hullPlank #hullGauge.mid .hgHead b { color: #f0d6a4 !important; }
html.cab:root body #hullPlank #hullGauge.low .hgHead b { color: #f0b6a8 !important; }
html.cab:root body #hullPlank #hullGauge .hgHead small {
  width: auto !important; height: auto !important; background: none !important;
  font: 500 0.5rem/1 var(--body) !important; letter-spacing: 0.32em !important; margin-right: -0.32em; text-transform: uppercase;
  color: var(--jn-inlay) !important; opacity: 0.8;
}
/* skrogbjælken: smalle, matte felter; farven er dæmpet (hel, halv, lav), tabte og helede felter lyser som før */
html.cab:root body #hullPlank #hgBar { height: 18px !important; padding: 3px !important; gap: 1px; }
html.cab:root body #hullPlank #hgBar i.on {
  --c: #7fb05e; --cl: #c8e8a6; --cd: #4c7434;
  background: linear-gradient(180deg, var(--cl) 0%, var(--c) 34%, var(--c) 58%, var(--cd) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.3) !important; border-radius: 0 !important;
}
html.cab:root body #hullPlank #hullGauge.mid #hgBar i.on { --c: #d29e4a; --cl: #f6d896; --cd: #8e6420; }
html.cab:root body #hullPlank #hullGauge.low #hgBar i.on { --c: #c4553f; --cl: #f0a08c; --cd: #7e2c1e; }
/* en glansstribe, der glider langs bjælken med jævne mellemrum */
html.cab:root body #hullPlank #hgBar { position: relative; overflow: hidden; }
html.cab:root body #hullPlank #hgBar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 250, 230, 0.32) 50%, rgba(255, 255, 255, 0) 70%, transparent 100%);
  transform: translateX(-120%); animation: jnHpSheen 5.5s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}
@keyframes jnHpSheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(560%); } }
html.calm #hullPlank #hgBar::after { animation: none !important; display: none; }
@media (prefers-reduced-motion: reduce) { #hullPlank #hgBar::after { animation: none !important; display: none; } }
html.cab:root body #hullPlank #hgBar i.ghost { box-shadow: none !important; }
/* moralen: mærke, tal og en smal, mat bjælke i hele bredden, så hakkene ved 30 og 70 kan ses */
html.cab:root body #hullPlank #moraleGauge { grid-column: 1 !important; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; min-width: 0; }
html.cab:root body #hullPlank #moraleGauge .hgHead { width: auto !important; flex: none; flex-direction: row-reverse !important; align-items: baseline !important; gap: 7px !important; }
html.cab:root body #hullPlank #moraleGauge .hgHead small {
  width: auto !important; height: auto !important; background: none !important;
  font: 500 0.64rem/1 var(--body) !important; letter-spacing: 0.22em !important; text-transform: uppercase; color: var(--jn-inlay) !important; opacity: 0.9;
}
html.cab:root body #hullPlank #moraleGauge .hgHead b { font: 500 1.1rem/1 var(--body) !important; font-variant-numeric: lining-nums tabular-nums; min-width: 1.5em; }
html.cab:root body #hullPlank #mgBar { flex: 1 !important; height: 8px !important; padding: 2px !important; }
html.cab:root body #hullPlank #mgBar .mgFill { filter: saturate(0.55) brightness(0.95); }
html.cab:root body #hullPlank #mgBar .mgSheen, html.cab:root body #hullPlank #mgBar .mgFill::before { display: none !important; }
/* forrådet: en linje for sig under en indlagt streg */
html.cab:root body #hullPlank > .chips {
  grid-area: chips; justify-content: flex-start !important; gap: 3px 16px !important;
  margin: 0 !important; padding: 6px 0 0 !important; border: 0 !important; border-top: 1px solid var(--jn-inlay-3) !important;
}
html.cab:root body #hullPlank > .chips .chip2 b { font-variant-numeric: lining-nums tabular-nums; }
html.cab:root body #hullPlank > .chips #conds { margin-left: auto; }
html.calm #hullPlank #waterGauge::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #hullPlank #waterGauge::before { animation: none !important; } }

/* ---------- 7. Menuerne frem og tilbage (v15b; koden står i 12f, MENU_BACK) ----------
   Frem: vinduet springer stadig ud fra sin knap, men uden lysfilter; baggrunden toner ind, og indholdet følger efter i tre trin.
   Tilbage: vinduet bliver stående et kvart sekund (.mOut holder det synligt, selv om det er hidden) og trækkes ned i knappen. */
html.cab body :is(#chart, #armory, #workshop, #inventory, #port, #escMenu, #shipLog).mOut[hidden] { display: flex !important; pointer-events: none !important; }
html.cab body :is(#chart, #armory, #workshop, #inventory, #port, #escMenu, #shipLog).mOut[hidden] * { pointer-events: none !important; }
html.cab body :is(#chart, #armory, #workshop, #inventory, #port, #shipLog).mIn > .panel > * { animation: jnRise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: 0.16s; }
html.cab body :is(#chart, #armory, #workshop, #inventory, #port, #shipLog).mIn > .panel > :nth-child(2) { animation-delay: 0.22s; }
html.cab body :is(#chart, #armory, #workshop, #inventory, #port, #shipLog).mIn > .panel > :nth-child(n + 3) { animation-delay: 0.28s; }
@keyframes jnRise { from { opacity: 0; transform: translateY(10px); } }
html.cab body #shipLog > .panel, html.cab body #chart > .panel, html.cab body #port > .panel { animation: none; }
html.cab body #hudTop #hudBtns.hudBtns button.mbtn.mcatch { animation: jnCatch 0.34s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes jnCatch { 0% { transform: scale(1); } 35% { transform: scale(0.9); filter: brightness(1.35); } 100% { transform: scale(1); } }
html.calm :is(#chart, #armory, #workshop, #inventory, #port, #shipLog).mIn > .panel > * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { :is(#chart, #armory, #workshop, #inventory, #port, #shipLog).mIn > .panel > * { animation: none !important; } }
html.cab:root body #hullPlank #hgBar i.ghost { background: #cf6450 !important; }

/* ---------- 8. Kvalitet (v15e): årer i træet, fasede kanter, tydelig fokus, rolige overgange ----------
   Træet får fine, lange årer (lille SVG-støj, flises; tegnes én gang pr. størrelse) og en lys kant øverst på hver plade,
   så panelerne ligner høvlede brædder i stedet for flade farveflader. */
html.cab {
  --jn-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='160'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.38' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.05 0 0 0 0 0.02 0 0 0 1.3 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --jn-grain-hi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='160'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.55' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.86 0 0 0 0 0.62 0 0 0 1.0 -0.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --planks:
    var(--jn-grain) 0 0 / 420px 160px repeat,
    var(--jn-grain-hi) 37px 11px / 420px 160px repeat,
    repeating-linear-gradient(180deg, transparent 0 63px, rgba(8, 4, 1, 0.34) 63px 64px, rgba(255, 214, 150, 0.06) 64px 65px),
    linear-gradient(176deg, rgba(98, 63, 33, 0.975) 0%, rgba(78, 47, 23, 0.98) 55%, rgba(60, 36, 17, 0.985) 100%);
  --wood-edge: 0 0 0 1px var(--jn-tar), inset 0 1px 0 rgba(255, 222, 160, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.5);
  --hull-edge: 0 0 0 1px var(--jn-tar), inset 0 1px 0 rgba(255, 222, 160, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45);
}
/* skrift: jævn kantudglatning og ordentlig knibning i overskrifterne */
html.cab body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.cab body :is(h1, h2, h3, h4, .brand, .cphead) { text-rendering: optimizeLegibility; font-kerning: normal; }

/* knapper: korte, ens overgange og et lille tryk; ingen hop */
html.cab body button { transition: background-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease, filter 0.14s ease, translate 0.08s ease; }
html.cab body button:active:not(:disabled):not(.grip) { translate: 0 1px; }
html.cab body button.primary.primary:not(:disabled) { box-shadow: 0 0 0 1px var(--jn-tar), inset 0 1px 0 rgba(255, 248, 220, 0.7), inset 0 -2px 0 rgba(120, 80, 20, 0.35), 0 6px 14px rgba(0, 0, 0, 0.35) !important; }
html.cab body button:disabled { filter: saturate(0.5); }
/* tastaturfokus: én tydelig messingring overalt */
html.cab body :is(button, [tabindex], input, select, a):focus-visible { outline: 2px solid var(--jn-inlay) !important; outline-offset: 2px !important; }

/* rullebjælker i valnød og messing */
html.cab body * { scrollbar-width: thin; scrollbar-color: rgba(226, 187, 104, 0.55) rgba(16, 9, 4, 0.45); }
html.cab body ::-webkit-scrollbar { width: 9px; height: 9px; }
html.cab body ::-webkit-scrollbar-track { background: rgba(16, 9, 4, 0.45); border-radius: 9px; }
html.cab body ::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #b8924a, #e2bb68 50%, #b8924a); border-radius: 9px; border: 2px solid rgba(16, 9, 4, 0.6); }
html.cab body ::-webkit-scrollbar-thumb:hover { background: #f0cd78; }
html.cab body ::-webkit-scrollbar-corner { background: transparent; }

/* fordybningerne: en lys kant forneden, som en fræset not i brættet */
html.cab body :is(.srow, .gcard, .card, .invItem, .wsGrid > section, .portGrid > section, #eGuns .eg) {
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3), inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 222, 160, 0.07) !important;
}
html.cab body :is(.card, .invItem):hover { box-shadow: inset 0 0 0 1px var(--jn-inlay-2), inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 222, 160, 0.07) !important; }
html.cab body .pnone { padding: 10px 12px !important; margin: 0 !important; line-height: 1.4; color: rgba(248, 239, 220, 0.62) !important; font-style: italic; }

/* fjendens laveste navnebræt: en jævn, grålig planke i stedet for den flossede (de højere niveauer er uændrede) */
html.cab body #enemyPanel header h2.np0 {
  clip-path: none !important; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%), linear-gradient(180deg, #6e6050, #54483a 60%, #463b30) !important;
  box-shadow: 0 0 0 1px #1d140c, inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(230, 210, 180, 0.22), 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}
/* startmenuens overlinje kunne ikke læses mod den lyse himmel */

/* ---------- 9. Rettelser fundet ved gennemgangen (v15f) ---------- */
/* Ship's log, Artifacts: reglen for ikonet (.logArt i: 30 × 30 px) ramte også citatet (i.artLore), som blev en smal søjle */
html.cab body #shipLog .logArt i.artLore { display: block; width: auto; height: auto; flex: none; margin-top: 3px; font-size: 0.76rem; color: rgba(248, 239, 220, 0.6); }
html.cab body #shipLog .logArt { background: var(--jn-well) !important; border-radius: var(--jn-r); }
/* Infamy 5: det åndende skær om tavlen (07c, .infFire::after) blev slukket af en ældre regel i 06c (box-shadow: none !important).
   Fejlen findes også i v14; her får skæret sin skygge tilbage */
html.cab body #hullFrame.infFire::after { box-shadow: 0 0 14px 3px rgba(255, 110, 24, 0.5), 0 0 40px 10px rgba(255, 60, 10, 0.22), 0 18px 34px 6px rgba(255, 70, 10, 0.18) !important; }

/* ---------- 10. Fjendepanelet (v15g): et opslag om målet ----------
   Samme indhold; overskriften står over en indlagt linje, skroget har en blank bjælke og et stort tal som vores egen tavle,
   de små felter fylder hele bredden, og skibsvisningen er et søkort (net, dybt vand, ramme af træ med indlægning). */
html.cab body #enemyPanel header {
  border-bottom: 0 !important; padding-bottom: 11px !important;
  background: linear-gradient(90deg, transparent, var(--jn-inlay-2) 12%, var(--jn-inlay-2) 88%, transparent) 0 100% / 100% 1px no-repeat !important;
}
html.cab body #enemyPanel header::before { font: 600 0.58rem/1 var(--body) !important; letter-spacing: 0.32em; color: #ffa688; opacity: 0.85; top: 7px; }
html.cab body #enemyPanel .epdist {
  font: 600 0.8rem/1.2 var(--body) !important; font-variant-numeric: lining-nums tabular-nums; padding: 3px 9px !important;
  background: rgba(10, 4, 2, 0.75) !important; box-shadow: inset 0 0 0 1px var(--jn-inlay-2) !important; border-radius: var(--jn-r);
}
/* skroget */
html.cab body #enemyPanel .emeters > .big { gap: 12px !important; padding: 2px 0 4px; }
html.cab body #enemyPanel .emeters > .big label {
  width: auto !important; min-width: 88px; flex-direction: row !important; align-items: baseline !important; justify-content: flex-start !important; gap: 8px; font: 600 0.58rem/1 var(--body) !important; letter-spacing: 0.28em !important; text-transform: uppercase; color: #ffa688 !important;
}
html.cab body #enemyPanel .emeters > .big label b {
  font: 500 2rem/0.88 var(--jn-title) !important; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; color: var(--jn-cream) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7) !important;
}
html.cab body #enemyPanel .emeters > .big .bar {
  height: 22px !important; background: rgba(10, 4, 2, 0.85) !important; border-radius: 2px !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3), inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}
html.cab body #enemyPanel .emeters > .big .bar > i {
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(10, 4, 2, 0.85) 9px 11px),
    linear-gradient(180deg, #ffc2aa 0%, #e2583c 34%, #c63e26 60%, #7c1c10 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 235, 220, 0.4) !important;
}
/* de små felter: tre lige brede (fire, når mandskabslisten står fremme) */
html.cab body #enemyPanel .emeters:has(> #epRoster[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html.cab body #enemyPanel .emeters > div:not(.big) {
  background: var(--jn-well) !important; border-radius: var(--jn-r);
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3), inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}
html.cab body #enemyPanel .emeters > div:not(.big) label b, html.cab body #enemyPanel .emeters .val { font-variant-numeric: lining-nums tabular-nums; }
html.cab body #enemyPanel .emeters > div:not(.big) label b { font-size: 0.92rem !important; }
/* skibsvisningen som søkort */
html.cab body #enemyPanel #ePlan.v3d {
  border-radius: var(--jn-r);
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(170, 210, 230, 0.07) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(170, 210, 230, 0.07) 47px 48px),
    radial-gradient(ellipse at 50% 42%, #24465c 0%, #15304a 50%, #0b1a28 100%) !important;
  box-shadow: inset 0 0 0 1px var(--jn-tar), inset 0 0 0 5px var(--jn-wood-lo), inset 0 0 0 6px var(--jn-inlay-2), inset 0 0 0 7px var(--jn-tar), inset 0 0 46px rgba(0, 0, 0, 0.55) !important;
}
html.cab body #enemyPanel #eCorner {
  padding: 3px 8px !important; border-radius: var(--jn-r); background: rgba(10, 6, 3, 0.72) !important;
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3) !important; letter-spacing: 0.12em;
}
/* felterne nederst */
html.cab body #enemyPanel #eInfo {
  background: var(--jn-well) !important; border-radius: var(--jn-r);
  box-shadow: inset 0 0 0 1px var(--jn-inlay-3), inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}
html.cab body #enemyPanel #eGuns .eg:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--jn-inlay-2), inset 0 2px 4px rgba(0, 0, 0, 0.35) !important; }

/* ---------- 5. Skrifter (lavet af build08.py) ---------- */
html.cab .brand,
html.cab #chartTitle #chartName,
html.cab #battery > h2,
html.cab #crewPanel .cphead h2,
html.cab #aboutPanel > h2,
html.cab #rangePanel > h2,
html.cab body #hullPlank .hgHead small,
html.cab #crewPanel .sn,
html.cab body #helmDock #aboutPanel .bigBtn,
html.cab body #helmDock #rangePanel .rbtns button b,
html.cab body #breakPanel .bigBtn,
html.cab #chart .chartHead h2,
html.cab #port .chartHead h2,
html.cab #inventory .chartHead h2,
html.cab #workshop .chartHead h2,
html.cab #armory .chartHead h2,
html.cab #eventBox > h2,
html.cab #gameover h2,
html.cab #port h3,
html.cab #workshop h3,
html.cab #pauseBanner,
html.cab body #enemyPanel header::before,
html.cab body #enemyPanel header h2,
html.cab body #enemyPanel .emeters > .big label,
html.cab body #enemyPanel .eGunsHead,
html.cab body #helmDock > #aboutPanel .bigBtn,
html.cab #sailsMenu h2,
html.cab #escMenu h2,
html.cab #floodFx .ftxt b,
html.cab #artTip b,
html.cab #breakAsk b,
html.cab #chartFactions .facChip .facTxt b,
html.cab #wreckStamp b,
html.cab .pnTx b,
html.cab .wcName,
html.cab #haulBoard .hbHead b,
html.cab #rankBoard .rbTi b,
html.cab #rankCeremony .rcTitle,
html.cab body #hullFrame .brand #shipName,
html.cab body #eventBox p::first-letter,
html.cab body #banner b,
html.cab #chaseTag b,
html.cab #shipLog .docHero b,
html.cab #shipLog .docCard header b,
html.cab #shipLog .bhList .bhHead,
html.cab #mgTip .mgT,
html.cab #artNotes .anTx b,
html.cab #eventBox .evFac .facTxt b,
html.cab #bossCard .bcHead,
html.cab body #inventory .invItem.art.r-mystic b,
html.cab #epRoster .erVeil > span,
html.cab #serpCard .bcHead,
html.cab #escPanel .esHead b,
html.cab #intro .trBan b,
html.cab #intro .trBoss i {
  font-family: var(--jn-title) !important; font-weight: 500; letter-spacing: 0.01em;
}
html.cab #eventBox p,
html.cab #eventBox .choices button,
html.cab #floodFx .ftxt small,
html.cab #wreckStamp small,
html.cab body #eventBox > h2::after,
html.cab body #toast .t,
html.cab body #combatBoard #breakPanel > small,
html.cab body #combatBoard #rangePanel .rnote,
html.cab body #floaters .floater.shout,
html.cab #eventBox .sgPHint,
html.cab .shipTab .stTx b,
html.cab body #armory .arInfo h4,
html.cab .gbSay,
html.cab body :is(#port, #inventory, #workshop, #armory) :is(h3, .arH),
html.cab body .wsCat :is(h4, summary),
html.cab body #portNav button b,
html.cab body #menu #shipNameIn,
html.cab body #menu #sailsMenu h2,
html.cab body #eventBox.hexLetter p::first-letter,
html.cab #actCard span,
html.cab #escPanel .enTx b,
html.cab #escPanel .esWhere,
html.cab #eventBox .choices .sideBar .sbTx b,
html.cab #fcHint b,
html.cab .sailGrid .sgHead,
html.cab #sailInfo b,
html.cab #achPop b,
html.cab #intro .inSub span,
html.cab #intro .trCard span,
html.cab #intro .trBoss small,
html.cab #intro .trLetter div,
html.cab #intro .trAct span,
html.cab #intro .trSay span,
html.cab body #menu #howTo h2,
html.cab body #menu #howTo .htLead,
html.cab #sinkCard .skTx b,
html.cab #sinkCard .skTx span,
html.cab body :is(.logTabs .logTab, #menu #howTo .htTabs button),
html.cab body #gameover h2,
html.cab body #gameover #goReason,
html.cab body #gameover .goStat b,
html.cab body #shipLog h2,
html.cab body #shipLog .logGroup h3,
html.cab #a3Note p {
  font-family: var(--jn-title) !important;
}
html.cab :root,
html.cab #title h1,
html.cab #battery h2,
html.cab #help h2,
html.cab #enemyTag .name,
html.cab #toast .t,
html.cab #fadeTo,
html.cab #touch .fire,
html.cab #enemyPanel h2,
html.cab .eGunsHead,
html.cab #armory h2,
html.cab .arH,
html.cab .arInfo h4,
html.cab #workshop h3,
html.cab .panel.min::before,
html.cab #enemyPanel.sinking #ePlan::after,
html.cab #banner b,
html.cab #crewPanel h2,
html.cab .chartHead h2,
html.cab #chartSector b,
html.cab #nodeInfo b,
html.cab #eventBox h2,
html.cab #port h3,
html.cab .viewLabel,
html.cab .floater.big::first-line,
html.cab .gcard .gn,
html.cab .invSec h3,
html.cab .cpanel h2,
html.cab .bigBtn,
html.cab #rangePanel .rbtns button b,
html.cab #gameover h2,
html.cab .floater.big b,
html.cab .szDrop b,
html.cab #showcaseCard b,
html.cab #chartQuest b,
html.cab #shipLog h2,
html.cab #shipLog h3,
html.cab body #crewPanel .srow .sn,
html.cab body #hudTop .hudBtns button.mbtn:not([hidden]),
html.cab body #combatBoard > .cbHead,
html.cab body #combatBoard #breakPanel .bigBtn,
html.cab body #combatBoard #aboutPanel > h2,
html.cab body #combatBoard #rangePanel > h2,
html.cab body .sideSwitch button b,
html.cab body #battery .gcard .gname b,
html.cab #actSkip,
html.cab #eventBox .sgCards text,
html.cab #eventBox .sgPName,
html.cab body #battery > h2 .focusBtn,
html.cab body #hudTop #hudBtns.hudBtns button.mbtn .ml,
html.cab body .focusBtn kbd.fk,
html.cab .gbCall > span,
html.cab .gbBets > span,
html.cab #infShift .isTop b,
html.cab #infShift .isTitle,
html.cab #bossCard .bcTrack i,
html.cab body #enemyPanel #epHullWrap .bcTick::after,
html.cab #bxTest header b,
html.cab body #menu .mmBtns button,
html.cab body #eventBox.hexLetter > h2,
html.cab #actCard small,
html.cab #actCard b,
html.cab #serpCard .bcTrack i,
html.cab .goStat b,
html.cab #shipTest header b,
html.cab #eventBox .choices .sideBar .sbHead,
html.cab body #floaters .floater.fx2.big .ft,
html.cab body #floaters .floater.fx2.artf .ft,
html.cab #a3Note b {
  font-family: var(--display) !important; font-variant-caps: small-caps; letter-spacing: 0.04em;
}

/* ---------- Rang og erfaring (2026-11-23, 08b/07c): mønstringsrullen i snedkerarbejde ---------- */
html.cab #rankBoard { border-radius: var(--jn-r); background: var(--cb-frame-plain), var(--planks); box-shadow: var(--wood-edge); }
html.cab #rankBoard .rbTi b { font-size: 1.36rem; color: var(--jn-cream); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
html.cab #rankBoard .rbHead { border-bottom-color: var(--jn-inlay-3); box-shadow: none; }
html.cab #rankBoard .rbRow { background: var(--jn-well); box-shadow: inset 0 0 0 1px var(--jn-inlay-3); border-radius: var(--jn-r); }
html.cab #rankBoard .rbPor { border-radius: var(--jn-r); }
html.cab #rankBoard .rbX { box-shadow: 0 0 0 1px var(--jn-inlay-2) !important; background: var(--jn-well) !important; }
html.cab #rankBoard .rbFoot { border-top-color: var(--jn-inlay-3); }
html.cab #rankBoard .rbBar { box-shadow: inset 0 0 0 1px var(--jn-inlay-3); background: rgba(0, 0, 0, 0.5); }

/* mesterceremonien (07c) beholder sine egne kort, overgange og dæmpning under Joinery-knapreglerne */
html.cab body #rankCeremony .rcOpt { border-radius: 8px; transition: transform 0.22s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.22s ease, background-color 0.22s ease, opacity 0.35s ease, filter 0.35s ease; }
html.cab body #rankCeremony .rcOpt.dim { filter: grayscale(0.7); }
html.cab body #rankCeremony .rcOpt:active, html.cab body #rankBadge:active, html.cab body .rbOpenC:active { translate: none; }

/* =====================================================================
   §M2. STARTSKÆRMEN v4b (2026-11-24b, brugerens ønske, inspireret af Ghost of Tsushima): logoet øverst til venstre og under det en
   ren tekstliste (små spatierede versaler). Det valgte punkt (:focus; musen og piletasterne flytter det, menuNav i 17) har et
   lyst penselstrøg bag sig og mørk tekst. Bag menuen: skibet fra siden i høj sø (MENU_CAM, 17). Markup: #menu.mm2 > .mm
   (.mmHead, .mmDeck > .mmBtns > .mmItem, .mmName). Panelerne (How to play, Sails) er uændrede.
   ===================================================================== */
html.cab body #menu.mm2 {
  background:
    radial-gradient(ellipse 85% 80% at 62% 48%, rgba(5, 8, 14, 0) 55%, rgba(5, 8, 14, 0.5) 100%),
    linear-gradient(90deg, rgba(5, 9, 16, 0.66) 0, rgba(5, 9, 16, 0.4) 24%, rgba(5, 9, 16, 0.1) 42%, rgba(5, 9, 16, 0) 54%),
    linear-gradient(0deg, rgba(5, 9, 16, 0.32) 0, rgba(5, 9, 16, 0) 16%);
}
html.cab body #menu.mm2 #menuCut { display: none !important; }
html.cab body #menu.mm2 .mm { display: block; padding: clamp(24px, 6vh, 64px) clamp(40px, 7.5vw, 150px); }
html.cab body #menu.mm2 .mmHead { text-align: left; }
html.cab body #menu.mm2 h1 { align-items: flex-start; }
html.cab body #menu.mm2 .mmLogo { width: clamp(230px, 21vw, 360px); max-width: 36vh; min-width: 0; }
html.cab body #menu.mm2 .mmDeck { position: static; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 5vh, 54px); width: auto; margin-top: clamp(18px, 5vh, 56px); }
/* listen */
html.cab body #menu.mm2 .mmDeck > .mmBtns { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(2px, 0.6vh, 8px); padding: 0; }
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem {
  position: relative; isolation: isolate; display: block; min-width: 0; min-height: 0; padding: 10px 78px 10px 14px; cursor: pointer; text-align: left;
  font: 500 clamp(1.12rem, 0.55vw + 0.85rem, 1.42rem)/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: rgba(246, 240, 226, 0.92) !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.5) !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; clip-path: none !important; filter: none !important;
  transform: none !important; outline: none !important; transition: color 0.2s ease;
}
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem[hidden] { display: none; }
/* penselstrøget: malet ind fra venstre */
html.cab body #menu.mm2 .mmItem::before {
  content: ""; position: absolute; z-index: -1; left: -10px; right: 0; top: -1px; bottom: -1px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1'%3E%3Cstop offset='0' stop-color='%23f4ecdb'/%3E%3Cstop offset='.55' stop-color='%23f4ecdb'/%3E%3Cstop offset='1' stop-color='%23f4ecdb' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Cpath d='M6 17C40 9 120 12 200 10c60-1 110 2 150 5l48 3-46 4 44 5-50 3 40 6-60 5c-80 6-190 9-300 5C14 50 4 45 7 38 2 32 2 24 6 17z'/%3E%3Cpath d='M210 6c60-2 120 0 175 3-50 1-120 1-175-3zM220 53c50 2 110 1 160-3-50 6-110 7-160 3z' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); opacity: 0; transition: clip-path 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.15s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem:focus { color: #14100a !important; text-shadow: none !important; }
html.cab body #menu.mm2 .mmItem:focus::before { clip-path: inset(0 0 0 0); opacity: 1; }
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem:not(:focus):hover { color: #fff !important; }
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem[aria-expanded="true"]:not(:focus) { color: var(--cb-brass-hi) !important; }
/* navnefeltet: lille, under listen */
html.cab body #menu.mm2 .mmName { flex-direction: row; align-items: baseline; gap: 12px; padding-left: 12px; }
html.cab body #menu.mm2 .mmName > span { font: 600 0.8rem var(--body); letter-spacing: 0.24em; color: rgba(246, 240, 226, 0.6); text-transform: uppercase; }
html.cab body #menu.mm2 #shipNameIn {
  width: min(250px, 60vw); min-height: 36px; padding: 0; text-align: left; font: italic 400 1.4rem var(--jn-title, "IM Fell English"), Georgia, serif;
  color: rgba(246, 240, 226, 0.92); border-bottom: 1px solid rgba(246, 240, 226, 0.22);
}
html.cab body #menu.mm2 #shipNameIn:hover { border-bottom-color: rgba(246, 240, 226, 0.55); }
html.cab body #menu.mm2 #shipNameIn:focus-visible { border-bottom: 1px solid var(--cb-brass); }
/* smalle/høje skærme: samme liste, midt for, skibet bag */
@media not ((min-width: 900px) and (min-aspect-ratio: 23/20)) {
  html.cab body #menu.mm2 .mmHead { text-align: center; }
  html.cab body #menu.mm2 h1 { align-items: center; }
  html.cab body #menu.mm2 .mmDeck { align-items: center; }
  html.cab body #menu.mm2 .mmDeck > .mmBtns { align-items: center; }
  html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem { padding: 9px 40px; }
  html.cab body #menu.mm2 { background: linear-gradient(0deg, rgba(5, 9, 16, 0.75) 0, rgba(5, 9, 16, 0.25) 50%, rgba(5, 9, 16, 0.4) 100%); }
}
/* indgangen: logoet som før (07c); punkterne toner ind ét ad gangen fra venstre; afgang (menuLeave, 17): listen glider ud til venstre */
@keyframes mm2In { from { opacity: 0; translate: -18px 0; } }
html.cab body #menu.mm2.mmIn .mmBtns > .mmItem, html.cab body #menu.mm2.mmIn .mmName { animation: mm2In 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
html.cab body #menu.mm2.mmIn .mmBtns > .mmItem:nth-child(1) { animation-delay: 0.8s; }
html.cab body #menu.mm2.mmIn .mmBtns > .mmItem:nth-child(2) { animation-delay: 0.87s; }
html.cab body #menu.mm2.mmIn .mmBtns > .mmItem:nth-child(3) { animation-delay: 0.94s; }
html.cab body #menu.mm2.mmIn .mmBtns > .mmItem:nth-child(4) { animation-delay: 1.01s; }
html.cab body #menu.mm2.mmIn .mmBtns > .mmItem:nth-child(5) { animation-delay: 1.08s; }
html.cab body #menu.mm2.mmIn .mmName { animation-delay: 1.2s; }
html.cab body #menu.mm2.fromIntro .mmBtns > .mmItem:nth-child(n) { animation-delay: calc(1.1s + 0.07s * var(--i, 0)); }
html.cab body #menu.mm2.out .mmDeck { translate: -40px 0; }
html.calm body #menu.mm2 :is(.mmName, .mmItem) { animation: none !important; }
html.calm body #menu.mm2 .mmItem::before { transition: none; }
@media (prefers-reduced-motion: reduce) { html.cab body #menu.mm2 :is(.mmName, .mmItem) { animation: none !important; } html.cab body #menu.mm2 .mmItem::before { transition: none; } }
/* Continue voyage (11-24c/d, brugerens ønske: en knap man virkelig har lyst til at trykke på, "rigtig premium"):
   et malet rødt penselstrøg i havørnens farve (børstestriber, lys foroven, skygge forneden), tynde guldstrøg over og under,
   havørnens segl i en guldring til venstre, guldkantet tekst (11-24x: pilen fjernet), og under: skib · akt · region.
   Et glimt løber hen over; kun ved hover (eller fokus med piletasterne, .mmBtns.kbd) løftes det hele og lyser blødt op (11-24y: den røde glød var en tydelig firkant). */
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmCont {
  --mmRed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1'%3E%3Cstop offset='0' stop-color='%238e1219'/%3E%3Cstop offset='.35' stop-color='%23b81d25'/%3E%3Cstop offset='.7' stop-color='%23c9262e'/%3E%3Cstop offset='.9' stop-color='%23c9262e' stop-opacity='.96'/%3E%3Cstop offset='1' stop-color='%23c9262e' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v' y2='1' x2='0'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.16'/%3E%3Cstop offset='.45' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.22'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.9' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='400' height='60' fill='url(%23f)'/%3E%3C/mask%3E%3CclipPath id='c'%3E%3Cpath d='M6 15C40 7 120 10 200 8c60-1 110 2 150 5l48 4-46 4 44 6-50 3 40 7-60 5c-80 6-190 9-300 5C14 52 4 47 7 39 1 32 1 23 6 15z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg mask='url(%23m)'%3E%3Cpath d='M6 15C40 7 120 10 200 8c60-1 110 2 150 5l48 4-46 4 44 6-50 3 40 7-60 5c-80 6-190 9-300 5C14 52 4 47 7 39 1 32 1 23 6 15z' fill='url(%23g)'/%3E%3Cg clip-path='url(%23c)'%3E%3Cpath d='M9.1 22.9Q164.5 23.0 320.0 23.0' stroke='%23e4434a' stroke-width='0.50' stroke-opacity='0.28' fill='none'/%3E%3Cpath d='M12.9 48.1Q105.7 47.3 198.5 47.7' stroke='%236a0a10' stroke-width='0.99' stroke-opacity='0.24' fill='none'/%3E%3Cpath d='M7.4 44.6Q117.7 45.9 228.0 45.2' stroke='%236a0a10' stroke-width='1.28' stroke-opacity='0.28' fill='none'/%3E%3Cpath d='M13.3 11.1Q156.5 10.9 299.7 11.0' stroke='%236a0a10' stroke-width='0.59' stroke-opacity='0.15' fill='none'/%3E%3Cpath d='M49.0 22.3Q133.9 22.7 218.9 22.5' stroke='%23e4434a' stroke-width='1.21' stroke-opacity='0.15' fill='none'/%3E%3Cpath d='M33.9 39.6Q173.5 39.7 313.1 39.7' stroke='%23e4434a' stroke-width='1.09' stroke-opacity='0.25' fill='none'/%3E%3Cpath d='M21.7 48.7Q127.6 49.5 233.4 49.1' stroke='%237d0d13' stroke-width='0.65' stroke-opacity='0.28' fill='none'/%3E%3Cpath d='M52.5 31.6Q194.7 33.0 336.8 32.3' stroke='%237d0d13' stroke-width='0.80' stroke-opacity='0.26' fill='none'/%3E%3Cpath d='M20.5 16.1Q200.6 17.5 380.7 16.8' stroke='%237d0d13' stroke-width='0.99' stroke-opacity='0.33' fill='none'/%3E%3Cpath d='M52.5 33.6Q150.0 33.9 247.5 33.8' stroke='%236a0a10' stroke-width='1.37' stroke-opacity='0.34' fill='none'/%3E%3Cpath d='M5.6 12.0Q121.8 10.7 238.0 11.3' stroke='%23e4434a' stroke-width='1.38' stroke-opacity='0.30' fill='none'/%3E%3Cpath d='M49.3 51.7Q145.3 52.2 241.2 52.0' stroke='%237d0d13' stroke-width='0.94' stroke-opacity='0.38' fill='none'/%3E%3Cpath d='M36.7 24.3Q161.4 23.6 286.1 24.0' stroke='%238f1219' stroke-width='0.71' stroke-opacity='0.23' fill='none'/%3E%3Cpath d='M29.8 48.4Q122.8 47.8 215.8 48.1' stroke='%238f1219' stroke-width='0.96' stroke-opacity='0.35' fill='none'/%3E%3Cpath d='M16.7 46.2Q143.0 47.3 269.3 46.7' stroke='%238f1219' stroke-width='0.90' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M13.9 16.6Q122.0 16.8 230.2 16.7' stroke='%23e4434a' stroke-width='1.08' stroke-opacity='0.20' fill='none'/%3E%3Cpath d='M32.1 15.3Q171.6 14.1 311.1 14.7' stroke='%236a0a10' stroke-width='0.85' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M44.4 37.2Q161.3 38.5 278.2 37.8' stroke='%236a0a10' stroke-width='1.62' stroke-opacity='0.23' fill='none'/%3E%3Cpath d='M6.2 26.2Q161.3 24.9 316.4 25.5' stroke='%238f1219' stroke-width='0.49' stroke-opacity='0.24' fill='none'/%3E%3Cpath d='M36.0 13.7Q119.0 13.8 202.0 13.8' stroke='%23e4434a' stroke-width='1.19' stroke-opacity='0.29' fill='none'/%3E%3Cpath d='M12.5 12.0Q136.7 13.4 260.9 12.7' stroke='%236a0a10' stroke-width='1.29' stroke-opacity='0.22' fill='none'/%3E%3Cpath d='M50.9 14.3Q222.2 14.2 393.5 14.3' stroke='%237d0d13' stroke-width='1.05' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M44.4 41.2Q163.7 41.3 282.9 41.3' stroke='%238f1219' stroke-width='1.37' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M8.8 31.7Q152.8 31.8 296.8 31.8' stroke='%237d0d13' stroke-width='0.44' stroke-opacity='0.31' fill='none'/%3E%3Cpath d='M22.0 20.2Q119.0 20.3 215.9 20.3' stroke='%236a0a10' stroke-width='1.48' stroke-opacity='0.21' fill='none'/%3E%3Cpath d='M48.7 18.6Q220.2 19.5 391.8 19.0' stroke='%23f0626a' stroke-width='1.59' stroke-opacity='0.33' fill='none'/%3E%3Cpath d='M31.1 18.7Q143.8 17.3 256.4 18.0' stroke='%23e4434a' stroke-width='0.44' stroke-opacity='0.25' fill='none'/%3E%3Cpath d='M36.3 17.3Q145.2 18.0 254.0 17.7' stroke='%23e4434a' stroke-width='1.53' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M13.2 24.7Q121.0 23.8 228.8 24.2' stroke='%236a0a10' stroke-width='0.68' stroke-opacity='0.40' fill='none'/%3E%3Cpath d='M0.1 35.2Q187.8 35.7 375.5 35.5' stroke='%237d0d13' stroke-width='0.88' stroke-opacity='0.37' fill='none'/%3E%3Cpath d='M45.0 42.6Q163.9 43.5 282.8 43.1' stroke='%23e4434a' stroke-width='0.65' stroke-opacity='0.14' fill='none'/%3E%3Cpath d='M43.3 49.7Q161.4 48.4 279.6 49.1' stroke='%238f1219' stroke-width='1.44' stroke-opacity='0.17' fill='none'/%3E%3Cpath d='M9.1 14.5Q191.8 13.4 374.5 13.9' stroke='%236a0a10' stroke-width='1.53' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M21.0 37.3Q159.5 35.8 298.0 36.5' stroke='%237d0d13' stroke-width='0.58' stroke-opacity='0.27' fill='none'/%3E%3Cpath d='M26.0 49.1Q196.7 48.3 367.4 48.7' stroke='%23e4434a' stroke-width='1.56' stroke-opacity='0.18' fill='none'/%3E%3Cpath d='M45.8 30.5Q148.0 31.6 250.1 31.1' stroke='%237d0d13' stroke-width='1.16' stroke-opacity='0.37' fill='none'/%3E%3Cpath d='M27.5 24.2Q166.5 24.0 305.4 24.1' stroke='%236a0a10' stroke-width='1.67' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M30.6 15.5Q199.1 15.9 367.7 15.7' stroke='%238f1219' stroke-width='1.49' stroke-opacity='0.17' fill='none'/%3E%3Cpath d='M43.5 29.4Q171.6 29.4 299.6 29.4' stroke='%236a0a10' stroke-width='0.86' stroke-opacity='0.26' fill='none'/%3E%3Cpath d='M53.0 42.4Q122.6 41.0 192.2 41.7' stroke='%237d0d13' stroke-width='0.67' stroke-opacity='0.26' fill='none'/%3E%3Cpath d='M45.6 33.2Q210.9 33.5 376.2 33.3' stroke='%236a0a10' stroke-width='1.02' stroke-opacity='0.29' fill='none'/%3E%3Cpath d='M16.6 17.6Q152.9 17.6 289.3 17.6' stroke='%238f1219' stroke-width='1.53' stroke-opacity='0.32' fill='none'/%3E%3Cpath d='M56.5 46.7Q146.2 48.0 235.8 47.4' stroke='%23f0626a' stroke-width='1.18' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M26.5 14.2Q111.1 12.9 195.6 13.6' stroke='%23e4434a' stroke-width='0.74' stroke-opacity='0.34' fill='none'/%3E%3Cpath d='M9.3 47.6Q171.6 46.5 334.0 47.0' stroke='%238f1219' stroke-width='1.32' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M57.2 18.4Q161.4 19.9 265.6 19.2' stroke='%238f1219' stroke-width='1.08' stroke-opacity='0.17' fill='none'/%3E%3Crect width='400' height='60' fill='url(%23v)'/%3E%3C/g%3E%3Cpath d='M210 4c60-2 120 0 175 3-50 1-120 1-175-3zM220 55c50 2 110 1 160-3-50 6-110 7-160 3z' fill='%23c9262e' opacity='.6'/%3E%3C/g%3E%3C/svg%3E"); --mmGoldS: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 12' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1'%3E%3Cstop offset='0' stop-color='%23f6dc8e' stop-opacity='0'/%3E%3Cstop offset='.08' stop-color='%23f6dc8e'/%3E%3Cstop offset='.4' stop-color='%23fff3c4'/%3E%3Cstop offset='.65' stop-color='%23d4a443'/%3E%3Cstop offset='1' stop-color='%23d4a443' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 7C80 3 200 4 398 6 220 8 90 9 2 7z' fill='url(%23g)'/%3E%3Cpath d='M60 9c90-1 180-1 300 0-110 2-200 2-300 0z' fill='url(%23g)' opacity='.55'/%3E%3C/svg%3E");
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 18px; row-gap: 7px; align-items: center; justify-content: start;
  margin: 4px 0 clamp(12px, 2.2vh, 24px) -6px; padding: 18px 110px 18px 14px;
  font: 700 clamp(1.55rem, 0.9vw + 1.1rem, 2.15rem)/1 var(--body); letter-spacing: 0.11em; color: #fff6e2 !important;
  text-shadow: 0 1px 0 rgba(90, 10, 14, 0.9), 0 2px 6px rgba(60, 4, 8, 0.6) !important;
  transition: translate 0.35s cubic-bezier(0.3, 0.7, 0.2, 1.3), color 0.2s ease;
}
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem.mmCont:focus { color: #fff6e2 !important; text-shadow: 0 1px 0 rgba(90, 10, 14, 0.9), 0 2px 6px rgba(60, 4, 8, 0.6) !important; }
html.cab body #menu.mm2 .mmDeck > .mmBtns > button.mmItem.mmCont:is(:hover, .mmBtns.kbd > :focus) { color: #fffaf0 !important; translate: 4px 0; text-shadow: 0 1px 0 rgba(90, 10, 14, 0.9), 0 0 22px rgba(255, 214, 150, 0.45) !important; }
/* strøget */
html.cab body #menu.mm2 .mmCont::before {
  left: -16px; right: 0; top: 0; bottom: 0; clip-path: inset(0 0 0 0) !important; opacity: 1 !important;
  background-image: var(--mmRed) !important;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transition: right 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), filter 0.3s ease;
}
html.cab body #menu.mm2 .mmCont:is(:hover, .mmBtns.kbd > :focus)::before { right: -34px; filter: drop-shadow(0 0 34px rgba(225, 70, 55, 0.22)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) brightness(1.08); }
/* glimtet: kun inden for strøget */
html.cab body #menu.mm2 .mmCont::after {
  content: ""; position: absolute; z-index: -1; left: -16px; right: 0; top: 0; bottom: 0; pointer-events: none;
  -webkit-mask: var(--mmRed) 0 0 / 100% 100% no-repeat; mask: var(--mmRed) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255, 228, 190, 0.5) 47%, rgba(255, 255, 255, 0.7) 49%, rgba(255, 228, 190, 0.5) 51%, transparent 58% 100%) -120% 0 / 230% 100% no-repeat;
  mix-blend-mode: soft-light; animation: mmContSheen 5s ease-in-out 1.6s infinite; transition: right 0.4s cubic-bezier(0.3, 0.7, 0.2, 1);
}
html.cab body #menu.mm2 .mmCont:is(:hover, .mmBtns.kbd > :focus)::after { right: -34px; mix-blend-mode: screen; opacity: 0.55; }
/* guldstrøgene over og under */
html.cab body #menu.mm2 .mmGold {
  position: absolute; z-index: 0; left: 4px; height: 5px; pointer-events: none; background: var(--mmGoldS) 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 0 3px rgba(255, 210, 120, 0.45)); transition: right 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s ease;
}
html.cab body #menu.mm2 .mmGold.g1 { top: -3px; right: 22%; opacity: 0.9; }
html.cab body #menu.mm2 .mmGold.g2 { bottom: -4px; left: 30px; right: 6%; height: 6px; transform: scaleX(-1); opacity: 0.75; }
html.cab body #menu.mm2 .mmCont:is(:hover, .mmBtns.kbd > :focus) .mmGold.g1 { right: 2%; opacity: 1; }
html.cab body #menu.mm2 .mmCont:is(:hover, .mmBtns.kbd > :focus) .mmGold.g2 { right: -20px; opacity: 1; }
/* seglet: havørnen i en guldring */
html.cab body #menu.mm2 .mmSeal {
  grid-row: 1 / span 2; position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2c6, #e2b456 40%, #9a6a1e 75%, #5a3a0c);
  box-shadow: 0 3px 10px rgba(40, 2, 4, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -2px 3px rgba(60, 30, 0, 0.5);
  transition: rotate 0.6s cubic-bezier(0.3, 0.7, 0.2, 1.3), scale 0.3s ease;
}
html.cab body #menu.mm2 .mmSeal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fbf3e0, #e9dcc0); box-shadow: inset 0 1px 3px rgba(80, 40, 0, 0.5); }
html.cab body #menu.mm2 .mmSeal img { position: relative; width: 36px; height: 36px; filter: drop-shadow(0 1px 1px rgba(60, 10, 10, 0.4)); }
html.cab body #menu.mm2 .mmCont:is(:hover, .mmBtns.kbd > :focus) .mmSeal { rotate: -12deg; scale: 1.06; }
/* teksten og undertitlen */
html.cab body #menu.mm2 .mmCont > span { display: inline-flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
html.cab body #menu.mm2 .mmCont > small {
  grid-column: 2; position: relative; z-index: 1; display: block; margin: 0; font: 700 0.74rem/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase;
  color: #f3d58c; text-shadow: 0 1px 0 rgba(70, 6, 10, 0.9);
}
html.cab body #menu.mm2 .mmCont > small:empty { display: none; }
@keyframes mmContSheen { 0% { background-position: -120% 0; } 45%, 100% { background-position: 230% 0; } }
html.calm body #menu.mm2 .mmCont::before, html.calm body #menu.mm2 .mmCont::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html.cab body #menu.mm2 .mmCont::before, html.cab body #menu.mm2 .mmCont::after { animation: none !important; } }

/* =====================================================================
   §M3. MENUENS FELTER I SAMME STIL (2026-11-24x, brugerens ønske): How to play og Sails som startskærmen (Ghost of Tsushima):
   mørkt, næsten sort glas uden træ og søm, tynde guldlinjer foroven og forneden, overskrifter i spatierede versaler,
   fanerne og Done-knapperne med det lyse penselstrøg (som menulisten), sejlfliserne med tynde lyse kanter.
   Kun på startskærmen (#menu.mm2); Ship's log og de andre vinduer er uændrede.
   ===================================================================== */
html.cab body #menu.mm2 { --mmRedS: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1'%3E%3Cstop offset='0' stop-color='%238e1219'/%3E%3Cstop offset='.35' stop-color='%23b81d25'/%3E%3Cstop offset='.7' stop-color='%23c9262e'/%3E%3Cstop offset='.9' stop-color='%23c9262e' stop-opacity='.96'/%3E%3Cstop offset='1' stop-color='%23c9262e' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v' y2='1' x2='0'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.16'/%3E%3Cstop offset='.45' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.22'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.9' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='400' height='60' fill='url(%23f)'/%3E%3C/mask%3E%3CclipPath id='c'%3E%3Cpath d='M6 15C40 7 120 10 200 8c60-1 110 2 150 5l48 4-46 4 44 6-50 3 40 7-60 5c-80 6-190 9-300 5C14 52 4 47 7 39 1 32 1 23 6 15z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg mask='url(%23m)'%3E%3Cpath d='M6 15C40 7 120 10 200 8c60-1 110 2 150 5l48 4-46 4 44 6-50 3 40 7-60 5c-80 6-190 9-300 5C14 52 4 47 7 39 1 32 1 23 6 15z' fill='url(%23g)'/%3E%3Cg clip-path='url(%23c)'%3E%3Cpath d='M9.1 22.9Q164.5 23.0 320.0 23.0' stroke='%23e4434a' stroke-width='0.50' stroke-opacity='0.28' fill='none'/%3E%3Cpath d='M12.9 48.1Q105.7 47.3 198.5 47.7' stroke='%236a0a10' stroke-width='0.99' stroke-opacity='0.24' fill='none'/%3E%3Cpath d='M7.4 44.6Q117.7 45.9 228.0 45.2' stroke='%236a0a10' stroke-width='1.28' stroke-opacity='0.28' fill='none'/%3E%3Cpath d='M13.3 11.1Q156.5 10.9 299.7 11.0' stroke='%236a0a10' stroke-width='0.59' stroke-opacity='0.15' fill='none'/%3E%3Cpath d='M49.0 22.3Q133.9 22.7 218.9 22.5' stroke='%23e4434a' stroke-width='1.21' stroke-opacity='0.15' fill='none'/%3E%3Cpath d='M33.9 39.6Q173.5 39.7 313.1 39.7' stroke='%23e4434a' stroke-width='1.09' stroke-opacity='0.25' fill='none'/%3E%3Cpath d='M21.7 48.7Q127.6 49.5 233.4 49.1' stroke='%237d0d13' stroke-width='0.65' stroke-opacity='0.28' fill='none'/%3E%3Cpath d='M52.5 31.6Q194.7 33.0 336.8 32.3' stroke='%237d0d13' stroke-width='0.80' stroke-opacity='0.26' fill='none'/%3E%3Cpath d='M20.5 16.1Q200.6 17.5 380.7 16.8' stroke='%237d0d13' stroke-width='0.99' stroke-opacity='0.33' fill='none'/%3E%3Cpath d='M52.5 33.6Q150.0 33.9 247.5 33.8' stroke='%236a0a10' stroke-width='1.37' stroke-opacity='0.34' fill='none'/%3E%3Cpath d='M5.6 12.0Q121.8 10.7 238.0 11.3' stroke='%23e4434a' stroke-width='1.38' stroke-opacity='0.30' fill='none'/%3E%3Cpath d='M49.3 51.7Q145.3 52.2 241.2 52.0' stroke='%237d0d13' stroke-width='0.94' stroke-opacity='0.38' fill='none'/%3E%3Cpath d='M36.7 24.3Q161.4 23.6 286.1 24.0' stroke='%238f1219' stroke-width='0.71' stroke-opacity='0.23' fill='none'/%3E%3Cpath d='M29.8 48.4Q122.8 47.8 215.8 48.1' stroke='%238f1219' stroke-width='0.96' stroke-opacity='0.35' fill='none'/%3E%3Cpath d='M16.7 46.2Q143.0 47.3 269.3 46.7' stroke='%238f1219' stroke-width='0.90' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M13.9 16.6Q122.0 16.8 230.2 16.7' stroke='%23e4434a' stroke-width='1.08' stroke-opacity='0.20' fill='none'/%3E%3Cpath d='M32.1 15.3Q171.6 14.1 311.1 14.7' stroke='%236a0a10' stroke-width='0.85' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M44.4 37.2Q161.3 38.5 278.2 37.8' stroke='%236a0a10' stroke-width='1.62' stroke-opacity='0.23' fill='none'/%3E%3Cpath d='M6.2 26.2Q161.3 24.9 316.4 25.5' stroke='%238f1219' stroke-width='0.49' stroke-opacity='0.24' fill='none'/%3E%3Cpath d='M36.0 13.7Q119.0 13.8 202.0 13.8' stroke='%23e4434a' stroke-width='1.19' stroke-opacity='0.29' fill='none'/%3E%3Cpath d='M12.5 12.0Q136.7 13.4 260.9 12.7' stroke='%236a0a10' stroke-width='1.29' stroke-opacity='0.22' fill='none'/%3E%3Cpath d='M50.9 14.3Q222.2 14.2 393.5 14.3' stroke='%237d0d13' stroke-width='1.05' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M44.4 41.2Q163.7 41.3 282.9 41.3' stroke='%238f1219' stroke-width='1.37' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M8.8 31.7Q152.8 31.8 296.8 31.8' stroke='%237d0d13' stroke-width='0.44' stroke-opacity='0.31' fill='none'/%3E%3Cpath d='M22.0 20.2Q119.0 20.3 215.9 20.3' stroke='%236a0a10' stroke-width='1.48' stroke-opacity='0.21' fill='none'/%3E%3Cpath d='M48.7 18.6Q220.2 19.5 391.8 19.0' stroke='%23f0626a' stroke-width='1.59' stroke-opacity='0.33' fill='none'/%3E%3Cpath d='M31.1 18.7Q143.8 17.3 256.4 18.0' stroke='%23e4434a' stroke-width='0.44' stroke-opacity='0.25' fill='none'/%3E%3Cpath d='M36.3 17.3Q145.2 18.0 254.0 17.7' stroke='%23e4434a' stroke-width='1.53' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M13.2 24.7Q121.0 23.8 228.8 24.2' stroke='%236a0a10' stroke-width='0.68' stroke-opacity='0.40' fill='none'/%3E%3Cpath d='M0.1 35.2Q187.8 35.7 375.5 35.5' stroke='%237d0d13' stroke-width='0.88' stroke-opacity='0.37' fill='none'/%3E%3Cpath d='M45.0 42.6Q163.9 43.5 282.8 43.1' stroke='%23e4434a' stroke-width='0.65' stroke-opacity='0.14' fill='none'/%3E%3Cpath d='M43.3 49.7Q161.4 48.4 279.6 49.1' stroke='%238f1219' stroke-width='1.44' stroke-opacity='0.17' fill='none'/%3E%3Cpath d='M9.1 14.5Q191.8 13.4 374.5 13.9' stroke='%236a0a10' stroke-width='1.53' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M21.0 37.3Q159.5 35.8 298.0 36.5' stroke='%237d0d13' stroke-width='0.58' stroke-opacity='0.27' fill='none'/%3E%3Cpath d='M26.0 49.1Q196.7 48.3 367.4 48.7' stroke='%23e4434a' stroke-width='1.56' stroke-opacity='0.18' fill='none'/%3E%3Cpath d='M45.8 30.5Q148.0 31.6 250.1 31.1' stroke='%237d0d13' stroke-width='1.16' stroke-opacity='0.37' fill='none'/%3E%3Cpath d='M27.5 24.2Q166.5 24.0 305.4 24.1' stroke='%236a0a10' stroke-width='1.67' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M30.6 15.5Q199.1 15.9 367.7 15.7' stroke='%238f1219' stroke-width='1.49' stroke-opacity='0.17' fill='none'/%3E%3Cpath d='M43.5 29.4Q171.6 29.4 299.6 29.4' stroke='%236a0a10' stroke-width='0.86' stroke-opacity='0.26' fill='none'/%3E%3Cpath d='M53.0 42.4Q122.6 41.0 192.2 41.7' stroke='%237d0d13' stroke-width='0.67' stroke-opacity='0.26' fill='none'/%3E%3Cpath d='M45.6 33.2Q210.9 33.5 376.2 33.3' stroke='%236a0a10' stroke-width='1.02' stroke-opacity='0.29' fill='none'/%3E%3Cpath d='M16.6 17.6Q152.9 17.6 289.3 17.6' stroke='%238f1219' stroke-width='1.53' stroke-opacity='0.32' fill='none'/%3E%3Cpath d='M56.5 46.7Q146.2 48.0 235.8 47.4' stroke='%23f0626a' stroke-width='1.18' stroke-opacity='0.16' fill='none'/%3E%3Cpath d='M26.5 14.2Q111.1 12.9 195.6 13.6' stroke='%23e4434a' stroke-width='0.74' stroke-opacity='0.34' fill='none'/%3E%3Cpath d='M9.3 47.6Q171.6 46.5 334.0 47.0' stroke='%238f1219' stroke-width='1.32' stroke-opacity='0.39' fill='none'/%3E%3Cpath d='M57.2 18.4Q161.4 19.9 265.6 19.2' stroke='%238f1219' stroke-width='1.08' stroke-opacity='0.17' fill='none'/%3E%3Crect width='400' height='60' fill='url(%23v)'/%3E%3C/g%3E%3Cpath d='M210 4c60-2 120 0 175 3-50 1-120 1-175-3zM220 55c50 2 110 1 160-3-50 6-110 7-160 3z' fill='%23c9262e' opacity='.6'/%3E%3C/g%3E%3C/svg%3E"); --mmBrush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1'%3E%3Cstop offset='0' stop-color='%23f4ecdb'/%3E%3Cstop offset='.55' stop-color='%23f4ecdb'/%3E%3Cstop offset='1' stop-color='%23f4ecdb' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Cpath d='M6 17C40 9 120 12 200 10c60-1 110 2 150 5l48 3-46 4 44 5-50 3 40 6-60 5c-80 6-190 9-300 5C14 50 4 45 7 38 2 32 2 24 6 17z'/%3E%3Cpath d='M210 6c60-2 120 0 175 3-50 1-120 1-175-3zM220 53c50 2 110 1 160-3-50 6-110 7-160 3z' opacity='.7'/%3E%3C/g%3E%3C/svg%3E"); }
html.cab body #menu.mm2 .mmDeck > :is(#howTo, #sailsMenu) {
  --wood-bg: none !important; --rope-frame: none !important;
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.95), rgba(6, 9, 15, 0.97)) !important;
  border: 0 !important; border-radius: 3px !important; color: rgba(246, 240, 226, 0.78);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 226, 0.07), 0 30px 80px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px);
}
html.cab body #menu.mm2 .mmDeck > #howTo { box-shadow: inset 0 0 0 1px rgba(246, 240, 226, 0.07), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 100vmax rgba(3, 5, 10, 0.6) !important; }
/* fortsætter i 08b-joinery.css (delt 2026-11-25 ved 110 KB) */
