/* Min profil (udkast 19/10). Bygger på styles.css (farver, skrifter) og nav.css. Intet inline (streng CSP). */
.profil-side {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(242, 166, 60, 0.14), transparent 70%),
    var(--bg-dark, #12280f);
}

.profil {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6.5rem 1.1rem 3.5rem;
  color: var(--text-primary, #f3e9d0);
}

/* ---------- fælles ---------- */
.kort {
  position: relative;
  background: linear-gradient(160deg, rgba(47, 90, 52, 0.55), rgba(29, 64, 35, 0.92) 55%, rgba(18, 40, 15, 0.95));
  border: 1px solid var(--border-color, rgba(243, 217, 166, 0.22));
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}

.p-sektionshoved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.p-sektionshoved h2,
.p-afsnit,
.p-pung h2 {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-primary, #f3e9d0);
  letter-spacing: 0.01em;
}

.p-afsnit { margin: 0 0 1rem; }

.p-sektionshoved__ekstra {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--text-muted, #a9c2a0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.p-maerkat {
  flex: none;
  padding: 0.2rem 0.6rem;
  border: 1px dashed rgba(246, 197, 111, 0.6);
  border-radius: 999px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright, #f6c56f);
}

.p-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted, #a9c2a0);
}

.p-note a,
.p-links a { color: var(--green-bright, #f6c56f); }

.p-lille-titel {
  margin: 1.4rem 0 0.6rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #a9c2a0);
}

.p-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.p-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--bakke-progress, linear-gradient(90deg, #e34f2b, #f2a63c, #7fae5e));
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.p-bar--guld > span { background: linear-gradient(90deg, #c8891f, #f6c56f, #fff0bd); }
.p-bar--klaret > span { background: linear-gradient(90deg, #5f8f45, #7ed982); }

.p-udkast {
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem;
  border: 1px dashed rgba(246, 197, 111, 0.45);
  border-radius: 12px;
  background: rgba(242, 166, 60, 0.07);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary, #d7e6cf);
}

.p-udkast strong {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.5rem;
  border-radius: 6px;
  background: #f2a63c;
  color: #12280f;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-indlaeser {
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted, #a9c2a0);
}

.p-indhold {
  display: grid;
  gap: 1.5rem;
}

.p-indhold[hidden] { display: none; }   /* ellers står det tomme skelet fremme under «Henter din profil …» (Fable 21/10) */

/* ---------- hero ---------- */
.p-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.75rem;
  overflow: hidden;
}

.p-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 166, 60, 0.18), transparent 70%);
  pointer-events: none;
}

.p-avatar {
  position: relative;
  width: 120px;
  height: 120px;
}

.p-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.p-ring circle {
  fill: none;
  stroke-width: 8;
}

.p-ring__spor { stroke: rgba(0, 0, 0, 0.35); }

.p-ring__fyld {
  stroke: #f2a63c;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(242, 166, 60, 0.6));
}

.p-avatar__bogstav {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6c56f, #ec6b34 60%, #b8431e);
  color: #12280f;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 2.6rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.25);
}

.p-avatar__level {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #12280f;
  border: 2px solid #f2a63c;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f6c56f;
  white-space: nowrap;
}

.p-rang {
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ed982;
}

.p-navn {
  margin: 0.15rem 0 0.25rem;
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.1;
  color: var(--text-primary, #f3e9d0);
  overflow-wrap: anywhere;
}

.p-meta {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted, #a9c2a0);
}

.p-xp__tekst {
  margin: 0.45rem 0 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-secondary, #d7e6cf);
}

.p-xp__tekst b { color: #f6c56f; }

/* Næste level-belønning (Emil 20/10: point for at nå bestemte levels) */
.p-xp__beloen {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #f6c56f;
}

.p-hurtig {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.p-hurtig li {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(243, 217, 166, 0.12);
}

.p-hurtig__tal {
  display: block;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.45rem;
  color: #f6c56f;
}

.p-hurtig__tekst {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted, #a9c2a0);
}

/* ---------- række: pung + quests ---------- */
.p-raekke {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem;
  align-items: start;
}

/* ---------- 420 point-pung ---------- */
.p-pung {
  background:
    radial-gradient(420px 220px at 85% -40px, rgba(246, 197, 111, 0.28), transparent 70%),
    linear-gradient(160deg, #3a2c0f, #22361a 60%, #12280f);
  border-color: rgba(246, 197, 111, 0.45);
}

.p-pung__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.p-pung__under {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #a9c2a0);
}

.p-mont {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff4cf, #f6c56f 35%, #c8891f 75%, #8f5f12);
  box-shadow: 0 0 0 3px rgba(143, 95, 18, 0.6), 0 6px 18px rgba(246, 197, 111, 0.35), inset 0 -4px 8px rgba(0, 0, 0, 0.25);
}

.p-mont::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px dashed rgba(90, 58, 8, 0.5);
}

.p-mont span {
  position: relative;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 0.95rem;
  color: #5a3a08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.p-mont--stor {
  width: 104px;
  height: 104px;
  margin: 0 auto;
}

.p-mont--stor::before { inset: 10px; border-width: 3px; }
.p-mont--stor span { font-size: 1.8rem; }

.p-pung__saldo {
  margin: 1.1rem 0 0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(3rem, 9vw, 4.2rem);
  line-height: 1;
  color: #f6c56f;
  text-shadow: 0 4px 24px rgba(246, 197, 111, 0.35);
}

.p-pung__saldo small {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--text-secondary, #d7e6cf);
  text-shadow: none;
}

.p-pung__vaerdi {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #d7e6cf);
}

.p-pung__fragt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.p-pung__fragt p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  color: var(--text-secondary, #d7e6cf);
}

.p-pung__fragt-ikon { font-size: 1.5rem; }

.p-poster,
.p-optjen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.p-poster li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.86rem;
}

.p-poster small { display: block; color: var(--text-muted, #a9c2a0); font-size: 0.75rem; }
.p-poster b { color: #7ed982; font-family: "Space Mono", ui-monospace, monospace; white-space: nowrap; }

.p-optjen li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.p-optjen__ikon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(246, 197, 111, 0.12);
}

.p-optjen b { display: block; font-size: 0.9rem; }
.p-optjen small { display: block; font-size: 0.78rem; color: var(--text-muted, #a9c2a0); }

/* ---------- quests (kun ugens – Emil 21/10) ---------- */
.p-nedtaelling {
  margin: 0.8rem 0 0.9rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--text-muted, #a9c2a0);
}

.p-questliste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.p-quest {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(243, 217, 166, 0.1);
  transition: transform 0.2s, border-color 0.2s;
}

.p-quest:hover { transform: translateY(-1px); border-color: rgba(243, 217, 166, 0.25); }

.p-quest__ikon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  background: rgba(246, 197, 111, 0.12);
  font-size: 1.35rem;
}

.p-quest__titel { margin: 0; font-weight: 700; font-size: 0.95rem; }
.p-quest__tekst { margin: 0.1rem 0 0.5rem; font-size: 0.78rem; color: var(--text-muted, #a9c2a0); }

.p-quest__fremgang {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-secondary, #d7e6cf);
}

.p-beloenning {
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background: rgba(127, 174, 94, 0.18);
  color: #b8f569;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.p-frosset {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid #e34f2b;
  background: rgba(227, 79, 43, 0.12);
  font-size: 0.85rem;
  line-height: 1.5;
}

.p-frosset a { color: #f6c56f; }

.p-beloenning--point {
  background: rgba(246, 197, 111, 0.16);
  color: #f6c56f;
}

.p-quest--klaret {
  border-color: rgba(126, 217, 130, 0.45);
  background: rgba(126, 217, 130, 0.08);
}

.p-quest--klaret .p-quest__ikon { background: rgba(126, 217, 130, 0.2); }
.p-quest--klaret .p-quest__titel::after { content: " ✔"; color: #7ed982; }

.p-bonus {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px dashed rgba(246, 197, 111, 0.5);
  background: rgba(246, 197, 111, 0.06);
}

.p-bonus__ikon { font-size: 1.6rem; text-align: center; }
.p-bonus p { margin: 0; font-size: 0.86rem; }
.p-bonus small { display: block; color: var(--text-muted, #a9c2a0); font-size: 0.76rem; }
.p-bonus--klaret { border-style: solid; border-color: rgba(126, 217, 130, 0.6); background: rgba(126, 217, 130, 0.1); }

/* ---------- månedens tavler ---------- */
.p-maaned__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.p-tavlekort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(243, 217, 166, 0.12);
}

.p-placering {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(243, 217, 166, 0.25);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.5rem;
  color: var(--text-primary, #f3e9d0);
}

.p-placering small { display: block; font-family: "Space Mono", ui-monospace, monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted, #a9c2a0); }
.p-placering--1 { border-color: #f2c53d; box-shadow: 0 0 18px rgba(242, 197, 61, 0.35); }
.p-placering--2 { border-color: #c9d1c4; }
.p-placering--3 { border-color: #d98b4a; }
.p-placering--ingen { font-size: 1.2rem; color: var(--text-muted, #a9c2a0); }

.p-tavlekort h3 { margin: 0; font-size: 1rem; }
.p-tavlekort p { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--text-muted, #a9c2a0); }
.p-tavlekort .p-tavlekort__score { color: #f6c56f; font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; }
.p-tavlekort .p-tavlekort__praemie { color: #f6c56f; }

/* ---------- spil ---------- */
.p-spil__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.p-spilkort {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem;
}

.p-spilkort__hoved { display: flex; align-items: center; gap: 0.75rem; }

.p-spilkort__ikon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 14px;
  background: rgba(242, 166, 60, 0.15);
  font-size: 1.4rem;
}

.p-spilkort h3 { margin: 0; font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 1.05rem; }
.p-spilkort__under { margin: 0; font-size: 0.75rem; color: var(--text-muted, #a9c2a0); }

.p-spilkort dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.p-spilkort dl div { padding: 0.6rem; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.p-spilkort dt { font-size: 0.7rem; color: var(--text-muted, #a9c2a0); text-transform: uppercase; letter-spacing: 0.06em; }
.p-spilkort dd { margin: 0.15rem 0 0; font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; color: #f6c56f; font-size: 1rem; }

.p-spilkort__knap {
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: #ec6b34;
  color: #12280f;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}

.p-spilkort__knap:hover,
.p-spilkort__knap:focus-visible { background: #f2a63c; }

/* ---------- mærker ---------- */
.p-maerker__kategorier {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.p-maerker__kategorihoved {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(243, 217, 166, 0.14);
  padding-bottom: 0.4rem;
}

.p-maerker__kategorihoved h3 {
  margin: 0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--green-bright, #f6c56f);
}

.p-maerker__kategorihoved span {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted, #a9c2a0);
}

.p-maerker__kategoritekst {
  margin: 0.45rem 0 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted, #a9c2a0);
}

.p-maerke[hidden] { display: none; }

.p-vis-alle {
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(243, 217, 166, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--green-bright, #f6c56f);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.p-vis-alle:hover,
.p-vis-alle:focus-visible { background: rgba(246, 197, 111, 0.1); outline: none; border-color: #f6c56f; }

.p-maerke__loen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.5rem 0 0;
}

.p-maerke__xp,
.p-maerke__point {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.p-maerke__xp { background: rgba(127, 174, 94, 0.18); color: #b8f569; }
.p-maerke__point { background: rgba(246, 197, 111, 0.18); color: #f6c56f; box-shadow: 0 0 0 1px rgba(246, 197, 111, 0.35); }

.p-maerker__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}

.p-maerke {
  --rar: #a9c2a0;
  position: relative;
  padding: 1rem 0.85rem 0.85rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(243, 217, 166, 0.12);
  text-align: center;
}

.p-maerke--common { --rar: #c9d1c4; }
.p-maerke--uncommon { --rar: #7ed982; }
.p-maerke--rare { --rar: #59b7ff; }
.p-maerke--epic { --rar: #c58bff; }
.p-maerke--legendary { --rar: #f6c56f; }
.p-maerke--mythic { --rar: #ff7a59; }

.p-maerke__emoji {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  font-size: 1.7rem;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 2px var(--rar), 0 0 18px color-mix(in srgb, var(--rar) 45%, transparent);
}

.p-maerke__navn { margin: 0; font-weight: 700; font-size: 0.86rem; }
.p-maerke__besk { margin: 0.2rem 0 0.45rem; font-size: 0.72rem; line-height: 1.4; color: var(--text-muted, #a9c2a0); }

.p-maerke__fod {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--rar);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.p-maerke--laast { opacity: 0.72; }
.p-maerke--laast .p-maerke__emoji { filter: grayscale(1); box-shadow: 0 0 0 2px rgba(243, 217, 166, 0.18); }
.p-maerke .p-bar { height: 6px; margin: 0.4rem 0 0.35rem; }

/* ---------- stempler ---------- */
.p-stempler__tekst { margin: 0 0 1rem; font-size: 0.88rem; color: var(--text-secondary, #d7e6cf); line-height: 1.55; }

.p-stempler__raekke {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.p-stempel {
  display: grid;
  place-items: center;
  align-content: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 3px dashed rgba(243, 217, 166, 0.25);
  color: var(--text-muted, #a9c2a0);
  text-align: center;
  transform: rotate(-8deg);
}

.p-stempel:nth-child(2) { transform: rotate(6deg); }
.p-stempel__dato { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.4rem; }
.p-stempel__navn { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 0.6rem; }
.p-stempel--naeste { border-color: rgba(227, 79, 43, 0.6); color: #f0977e; }

.p-links { margin: 0; text-align: center; font-size: 0.86rem; color: var(--text-muted, #a9c2a0); }

.p-fod__tekst { color: var(--text-muted, #a9c2a0); margin: 0 0 0.75rem; }

/* ---------- velkomst ---------- */
.velkomst {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 14, 5, 0.78);
  backdrop-filter: blur(6px);
  animation: velkomst-ind 0.35s ease-out;
}

.velkomst[hidden] { display: none; }

.velkomst__kort {
  position: relative;
  width: min(420px, 100%);
  padding: 2rem 1.5rem 1.6rem;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(360px 200px at 50% -40px, rgba(246, 197, 111, 0.35), transparent 70%),
    linear-gradient(170deg, #2a3b18, #12280f);
  border: 1px solid rgba(246, 197, 111, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: velkomst-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.velkomst__kort .p-mont--stor { animation: mont-snurr 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }

.velkomst__hej {
  margin: 1rem 0 0.25rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ed982;
}

.velkomst__titel {
  margin: 0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  line-height: 1.2;
  color: var(--text-primary, #f3e9d0);
}

.velkomst__titel span { color: #f6c56f; }

.velkomst__tekst {
  margin: 0.8rem 0 1.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary, #d7e6cf);
}

.velkomst__knap {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #ec6b34, #f2a63c);
  color: #12280f;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(236, 107, 52, 0.35);
}

.velkomst__knap:focus-visible { outline: 3px solid #f6c56f; outline-offset: 3px; }

/* «Spil videre» – kun når kontoen blev oprettet fra et spil (?tilbage=) */
.velkomst__videre {
  display: block;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  border: 2px solid #f2a63c;
  border-radius: 12px;
  color: #f6c56f;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
}
.velkomst__videre[hidden] { display: none; }
.velkomst__videre:focus-visible { outline: 3px solid #f6c56f; outline-offset: 3px; }

.velkomst__konfetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.velkomst__konfetti i {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation: konfetti-fald 2.8s linear forwards;
}

@keyframes velkomst-ind { from { opacity: 0; } to { opacity: 1; } }
@keyframes velkomst-pop { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mont-snurr { from { transform: rotateY(540deg) scale(0.6); } to { transform: none; } }
@keyframes konfetti-fald { to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; } }

/* ---------- små skærme ---------- */
@media (max-width: 900px) {
  .p-raekke { grid-template-columns: minmax(0, 1fr); }
  .p-spil__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .profil { padding: 5.5rem 0.85rem 3rem; }
  .kort { padding: 1.15rem; border-radius: 18px; }
  .p-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 1.4rem 1.1rem; }
  .p-hero__tekst { width: 100%; }
  .p-hurtig { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; justify-self: stretch; }
  .p-maaned__grid { grid-template-columns: minmax(0, 1fr); }
  .p-quest { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .p-quest .p-beloenning { grid-column: 2; justify-self: start; }
  .p-quest__ikon { width: 2.4rem; height: 2.4rem; font-size: 1.15rem; }
  .p-bonus { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .p-bonus .p-beloenning { grid-column: 2; justify-self: start; }
  .p-maerker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-stempel { width: 5.6rem; height: 5.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .p-bar > span, .p-ring__fyld, .p-quest { transition: none; }
  .velkomst, .velkomst__kort, .velkomst__kort .p-mont--stor { animation: none; }
  .velkomst__konfetti { display: none; }
}
