* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e14;
  --bg-2: #0f151f;
  --bg-3: #141c28;
  --fg: #e8f0fa;
  --muted: #8395ab;
  --lime: #c6ff2e;
  --lime-dim: #8fbd12;
  --cyan: #22d3ee;
  --orange: #ff9538;
  --violet: #a78bfa;
  --red: #ff4d5e;
  --line: #1e2a3a;
  --line-2: #2a3a4f;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at top right, rgba(198, 255, 46, 0.07), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(34, 211, 238, 0.06), transparent 50%),
    var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ========== STATUSBAR ========== */
.statusbar {
  background: radial-gradient(ellipse at center top, rgba(198, 255, 46, 0.14), transparent 70%), #06090e;
  border-bottom: 1px solid rgba(198, 255, 46, 0.3);
  padding: 1rem 1rem 1.1rem;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  position: relative;
  overflow: hidden;
}
.statusbar::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(198, 255, 46, 0.04) 80px 81px);
  pointer-events: none;
}
.status-label {
  font-size: 0.66rem; letter-spacing: 0.28em; color: var(--lime);
  margin-bottom: 0.7rem; font-weight: 800; position: relative;
  text-shadow: 0 0 12px rgba(198, 255, 46, 0.5);
}
.status-label::before, .status-label::after { content: "▸"; margin: 0 0.5rem; color: rgba(198,255,46,0.5); }
.status-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem;
  max-width: 460px; margin: 0 auto; position: relative;
}
.st-cell {
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(20,28,40,0.6));
  border: 1px solid rgba(198, 255, 46, 0.28);
  border-radius: 7px; padding: 0.55rem 0.3rem 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.st-num {
  display: block; font-size: 1.05rem; font-weight: 900; color: var(--lime);
  letter-spacing: -0.01em; line-height: 1.25; text-shadow: 0 0 12px rgba(198,255,46,0.35);
}
.st-lbl { display: block; font-size: 0.55rem; letter-spacing: 0.2em; color: var(--muted); margin-top: 0.3rem; }
.status-bar-track {
  max-width: 460px; margin: 0.8rem auto 0; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.07); overflow: hidden; position: relative;
}
.status-bar-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.5s ease;
}

/* ========== TICKER ========== */
.ticker {
  background: #06090e; border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 0.5rem 0; white-space: nowrap;
}
.ticker-track {
  display: inline-block; animation: scroll-x 52s linear infinite;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.7rem;
  letter-spacing: 0.1em; color: var(--muted);
}
.ticker-track span { padding: 0 1.6rem; }
.ticker-track span::after { content: "·"; margin-left: 1.6rem; color: rgba(198,255,46,0.4); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== HERO ========== */
.hero-inner { max-width: 900px; margin: 0 auto; padding: 3rem 1.25rem 2.5rem; text-align: center; }
.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem; letter-spacing: 0.3em; color: var(--cyan); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 13vw, 6rem); line-height: 0.88; font-weight: 900;
  letter-spacing: -0.04em; margin-bottom: 1.3rem;
  background: linear-gradient(180deg, #ffffff, #93a7bd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--lime), var(--lime-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--muted); max-width: 620px; margin: 0 auto 0.9rem; font-size: 1.02rem; }
.tagline-sub { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 0.95rem; }
.tagline-sub strong { color: var(--lime); }

.navchips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.navchips a {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.4rem 0.85rem;
  text-decoration: none; transition: 0.15s;
}
.navchips a:hover { color: var(--lime); border-color: rgba(198,255,46,0.5); background: rgba(198,255,46,0.06); }

/* ========== SEKTIONER ========== */
.sec { max-width: 1080px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.sec-alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018) 12%, rgba(255,255,255,0.018) 88%, transparent); }
.sec-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: 1.8rem; line-height: 1.15;
}
.h2-sub {
  display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-top: 0.6rem;
}
.sec-intro { color: var(--muted); max-width: 680px; margin-bottom: 1.8rem; }
.sub-h3 {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 2.6rem 0 1rem; color: var(--orange);
}

/* ========== DIAGNOSE ========== */
.grid-diagnose { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.dcard {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 1.4rem;
}
.dcard-head { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.9rem; }
.dcard-ikon { font-size: 1.6rem; line-height: 1; }
.dcard h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.dcard-sub {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.66rem;
  letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-top: 0.2rem;
}
.dcard p { font-size: 0.92rem; color: #c3d2e3; margin-bottom: 0.9rem; }
.dcard-note {
  border-top: 1px dashed var(--line-2); padding-top: 0.8rem; margin-top: 0.4rem;
  font-size: 0.86rem; color: var(--muted);
}
.dcard-note b { color: var(--orange); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; display: block; margin-bottom: 0.25rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.dcard-fix b { color: var(--lime); }

/* ========== PRINCIPPER ========== */
.grid-principper { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pcard {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem;
  position: relative; overflow: hidden;
}
.pcard-n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 2.4rem; font-weight: 900;
  color: rgba(198,255,46,0.12); position: absolute; top: 0.3rem; right: 0.8rem; line-height: 1;
}
.pcard h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--lime); position: relative; }
.pcard p { font-size: 0.88rem; color: var(--muted); position: relative; }

/* ========== MUSKELKORT ========== */
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-bottom: 1.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-styrk { background: var(--lime); box-shadow: 0 0 10px rgba(198,255,46,0.5); }
.sw-loesn { background: var(--orange); box-shadow: 0 0 10px rgba(255,149,56,0.5); }
.legend-hint { margin-left: auto; color: var(--cyan); }

.map-wrap { display: grid; gap: 1.6rem; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr); align-items: start; }
.map-figs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line);
  border-radius: 14px; padding: 1rem 0.5rem 0.5rem;
}
.fig { text-align: center; }
.fig-label {
  display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.6rem; letter-spacing: 0.24em; color: var(--muted); margin-bottom: 0.4rem;
}
.body-svg { width: 100%; height: auto; max-height: 460px; display: block; }
.body-base > * { fill: #1b2534; stroke: #2b3a4e; stroke-width: 1; }

.m { cursor: pointer; }
.m > * {
  stroke-width: 1.2; transition: opacity 0.18s, filter 0.18s;
  opacity: 0.42;
}
.m-styrk > * { fill: rgba(198,255,46,0.55); stroke: var(--lime); }
.m-loesn > * { fill: rgba(255,149,56,0.55); stroke: var(--orange); }
.m:hover > *, .m:focus > * { opacity: 0.95; outline: none; }
.m.is-active > * { opacity: 1; }
.m-styrk.is-active > * { filter: drop-shadow(0 0 7px rgba(198,255,46,0.85)); }
.m-loesn.is-active > * { filter: drop-shadow(0 0 7px rgba(255,149,56,0.85)); }
.muscles.has-active .m:not(.is-active) > * { opacity: 0.16; }
.m:focus-visible > * { opacity: 1; }

.muscle-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.66rem; letter-spacing: 0.06em;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted);
  border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer; transition: 0.15s;
}
.chip[data-type="styrk"]:hover, .chip[data-type="styrk"].is-active { color: var(--lime); border-color: var(--lime); background: rgba(198,255,46,0.1); }
.chip[data-type="loesn"]:hover, .chip[data-type="loesn"].is-active { color: var(--orange); border-color: var(--orange); background: rgba(255,149,56,0.1); }
.chip .prio { opacity: 0.6; margin-left: 0.35rem; }

.muscle-info {
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.4rem; min-height: 260px;
}
.mi-placeholder { color: var(--muted); font-size: 0.92rem; }
.mi-tag {
  display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 4px; margin-bottom: 0.7rem;
}
.mi-tag.styrk { background: rgba(198,255,46,0.15); color: var(--lime); border: 1px solid rgba(198,255,46,0.4); }
.mi-tag.loesn { background: rgba(255,149,56,0.15); color: var(--orange); border: 1px solid rgba(255,149,56,0.4); }
.mi-prio { float: right; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-top: 0.3rem; }
.muscle-info h3 { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.mi-latin { font-style: italic; color: var(--muted); font-size: 0.82rem; margin-bottom: 1rem; }
.mi-block { margin-top: 1rem; }
.mi-block b {
  display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.3rem;
}
.mi-block p { font-size: 0.9rem; color: #c3d2e3; }

/* ========== UGEPLAN ========== */
.week { display: grid; gap: 0.8rem; }
.day {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
}
.day.is-open { border-color: rgba(34,211,238,0.45); }
.day.is-today { border-color: rgba(198,255,46,0.55); box-shadow: 0 0 22px rgba(198,255,46,0.09); }
.day-head {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  padding: 1.05rem 1.2rem; background: none; border: none; color: inherit;
  cursor: pointer; text-align: left; font: inherit;
}
.day-day {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); min-width: 74px;
}
.day-day b { display: block; color: var(--fg); font-size: 0.9rem; letter-spacing: 0.06em; }
.day-titel { flex: 1; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.day-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.pill {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.22rem 0.5rem;
  border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.pill.styrke { color: var(--lime); border-color: rgba(198,255,46,0.4); background: rgba(198,255,46,0.08); }
.pill.kondi { color: var(--cyan); border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.08); }
.pill.let { color: var(--violet); border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.08); }
.pill.today { color: #06090e; background: var(--lime); border-color: var(--lime); font-weight: 800; }
.day-chev { color: var(--muted); font-size: 0.8rem; transition: transform 0.2s; }
.day.is-open .day-chev { transform: rotate(90deg); }
.day-prog {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.66rem;
  color: var(--lime); min-width: 34px; text-align: right;
}

.day-body { display: none; padding: 0 1.2rem 1.3rem; }
.day.is-open .day-body { display: block; }
.day-intro {
  font-size: 0.9rem; color: var(--muted); border-left: 2px solid var(--cyan);
  padding-left: 0.85rem; margin-bottom: 1.2rem;
}
.day-fokus { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.2rem; }
.fokus-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.6rem;
  letter-spacing: 0.1em; padding: 0.22rem 0.55rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--muted);
  cursor: pointer;
}
.fokus-tag:hover { color: var(--lime); border-color: rgba(198,255,46,0.45); }

.blok { margin-bottom: 1.1rem; }
.blok-navn {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem;
}
.oev { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.oev:last-child { border-bottom: none; }
.oev-check {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 2px; border-radius: 5px;
  border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; position: relative;
  transition: 0.15s;
}
.oev-check:hover { border-color: var(--lime); }
.oev-check:checked { background: var(--lime); border-color: var(--lime); }
.oev-check:checked::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #06090e; font-size: 0.8rem; font-weight: 900;
}
.oev-body { flex: 1; }
.oev-top { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.oev-navn { font-weight: 700; font-size: 0.95rem; }
.oev-saet {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.7rem;
  color: var(--lime); background: rgba(198,255,46,0.09);
  border: 1px solid rgba(198,255,46,0.25); border-radius: 4px; padding: 0.1rem 0.45rem;
  white-space: nowrap;
}
.oev-note { font-size: 0.84rem; color: var(--muted); margin-top: 0.25rem; }
.oev.is-done .oev-navn { text-decoration: line-through; color: var(--muted); }

.reset-row { margin-top: 1.5rem; text-align: center; }
.btn-reset {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; background: none;
  border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px;
  padding: 0.5rem 1.1rem; cursor: pointer; transition: 0.15s;
}
.btn-reset:hover { color: var(--red); border-color: var(--red); }

/* ========== DAGLIGT ========== */
.grid-dagligt { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.vcard {
  background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--cyan);
  border-radius: 12px; padding: 1.3rem;
}
.vcard-ikon { font-size: 1.5rem; }
.vcard h3 { font-size: 1.05rem; font-weight: 800; margin: 0.4rem 0 0.2rem; }
.vcard-naar {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem;
}
.vcard ul { list-style: none; }
.vcard li {
  font-size: 0.88rem; color: #c3d2e3; padding: 0.3rem 0 0.3rem 1.1rem; position: relative;
}
.vcard li::before { content: "▸"; position: absolute; left: 0; color: var(--lime); }

/* ========== MASKINER ========== */
.machines { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mcard {
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line);
  border-left: 3px solid var(--lime); border-radius: 12px; padding: 1.2rem;
}
.mcard-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.mcard h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.mcard-alt { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.7rem; }
.mcard-dosis {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.68rem;
  color: var(--lime); white-space: nowrap;
}
.mcard-mus { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.mcard p { font-size: 0.88rem; color: var(--muted); }

.skip-list { display: grid; gap: 0.6rem; }
.scard {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: rgba(255,77,94,0.05); border: 1px solid rgba(255,77,94,0.22);
  border-radius: 10px; padding: 0.9rem 1.1rem;
}
.scard-x { color: var(--red); font-weight: 900; flex: 0 0 auto; }
.scard b { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.scard span { font-size: 0.86rem; color: var(--muted); }

/* ========== RØDE FLAG ========== */
.sec-flag { border-top: 1px solid rgba(255,77,94,0.2); }
.sec-flag h2 { color: var(--red); }
.sec-flag .h2-sub { color: rgba(255,77,94,0.75); }
.flag-list { list-style: none; display: grid; gap: 0.5rem; }
.flag-list li {
  font-size: 0.92rem; color: #c3d2e3; padding: 0.75rem 1rem 0.75rem 2.4rem; position: relative;
  background: rgba(255,77,94,0.05); border: 1px solid rgba(255,77,94,0.18); border-radius: 9px;
}
.flag-list li::before { content: "⚠"; position: absolute; left: 0.9rem; color: var(--red); }

/* ========== FOOTER ========== */
.foot {
  text-align: center; padding: 3rem 1.25rem 4rem; border-top: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.68rem;
  letter-spacing: 0.12em; color: var(--muted); margin-top: 2rem;
}
.foot-sub { margin-top: 0.5rem; opacity: 0.6; letter-spacing: 0.06em; }

/* ========== RESPONSIVT ========== */
@media (max-width: 860px) {
  .map-wrap { grid-template-columns: 1fr; }
  .body-svg { max-height: 380px; }
}
@media (max-width: 560px) {
  .sec { padding: 2.5rem 1rem; }
  .day-head { flex-wrap: wrap; gap: 0.5rem 0.7rem; padding: 0.9rem 1rem; }
  .day-titel { flex-basis: 100%; order: 3; }
  .day-body { padding: 0 1rem 1.1rem; }
  .status-grid { gap: 0.35rem; }
  .st-num { font-size: 0.9rem; }
  .legend-hint { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ========== FIGURER ========== */
.fx { width: 100%; height: auto; display: block; }
.fx-torso, .fx-lem { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fx-fjern { stroke: #55677d; stroke-width: 3.5; }
.fx-hoved { fill: none; stroke: var(--fg); stroke-width: 3.5; }
.fx-gulv { stroke: var(--line-2); stroke-width: 2; }
.fx-maatte { fill: var(--line); }
.fx-boks { fill: none; stroke: var(--line-2); stroke-width: 2; }
.fx-udstyr { stroke: var(--cyan); stroke-width: 3; fill: var(--cyan); stroke-linecap: round; }
.fx-pil { stroke: var(--orange); stroke-width: 2.5; fill: none; }
.fx-pilhoved { fill: var(--orange); }
.fx-maerke {
  fill: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
}
.fx-maerke.ok { fill: var(--lime); }
.fx-maerke.nej { fill: var(--red); }
.fx-tekst { fill: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 10px; }

/* ========== ØVELSESGUIDE — GRID ========== */
.guide-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gcard {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.15s, transform 0.15s;
}
.gcard:hover, .gcard:focus-visible {
  border-color: rgba(198, 255, 46, 0.5); transform: translateY(-2px); outline: none;
}
.gcard-fig { background: rgba(255, 255, 255, 0.025); border-radius: 8px; padding: 0.2rem; }
.gcard h3 { font-size: 0.92rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.gcard-udstyr {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.6rem;
  letter-spacing: 0.08em; color: var(--muted); margin-top: auto;
}

/* ========== ØVELSESNAVN SOM KNAP ========== */
.oev-navn.har-guide {
  background: none; border: none; padding: 0; font: inherit; font-weight: 700;
  color: var(--fg); cursor: pointer; text-align: left;
  border-bottom: 1px dashed var(--line-2);
}
.oev-navn.har-guide:hover { color: var(--lime); border-bottom-color: var(--lime); }
.oev-navn.har-guide::after {
  content: "◳"; font-size: 0.7em; color: var(--cyan); margin-left: 0.35rem; vertical-align: 1px;
}
.oev.is-done .oev-navn.har-guide { color: var(--muted); text-decoration: line-through; }

/* ========== MODAL ========== */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(4, 7, 11, 0.82); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: min(760px, 100%); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 16px; padding: 1.6rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}
.modal-luk {
  position: absolute; top: 0.8rem; right: 0.9rem; width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--muted); cursor: pointer; font-size: 0.85rem; line-height: 1;
}
.modal-luk:hover { color: var(--red); border-color: var(--red); }

.mg-kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.4rem;
}
.modal-card h3 { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 900; letter-spacing: -0.025em; padding-right: 2.5rem; }
.mg-kort { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 1.1rem; }

.mg-figurer { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; margin-bottom: 1.2rem; }
.mg-figurer > div {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.3rem;
  max-width: 380px; width: 100%; margin: 0 auto; /* loft, så en enkelt figur ikke fylder hele modalen */
}

.mg-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.3rem; align-items: center; }
.mg-udstyr {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08); border-radius: 999px; padding: 0.28rem 0.7rem;
}

.mg-blok { margin-bottom: 1.3rem; }
.mg-blok > b {
  display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--lime);
}
.mg-blok.fejl > b { color: var(--red); }
.mg-blok.cues > b { color: var(--orange); }
.mg-blok ol, .mg-blok ul { padding-left: 1.2rem; }
.mg-blok li { font-size: 0.91rem; color: #c3d2e3; padding: 0.22rem 0; }
.mg-blok ul { list-style: none; padding-left: 0; }
.mg-blok ul li { padding-left: 1.2rem; position: relative; }
.mg-blok.cues ul li::before { content: "▸"; position: absolute; left: 0; color: var(--orange); }
.mg-blok.fejl ul li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-size: 0.85em; }

.mg-hvor {
  border-top: 1px solid var(--line); padding-top: 0.9rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.68rem;
  letter-spacing: 0.06em; color: var(--muted);
}
.mg-hvor b { color: var(--fg); }

@media (max-width: 560px) {
  .modal { padding: 0.5rem; }
  .modal-card { padding: 1.2rem 1rem; max-height: 94vh; }
  .guide-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
