/* JumpuzzForge (JPF) - fælles stil. Farverne er taget fra baggrundsbillederne (varmt lys, træ og sandsten). */
:root {
  --bg: #1a100a;
  --bg-2: #24170f;
  --panel: rgba(30, 18, 11, .78);
  --panel-solid: #2a1b11;
  --line: rgba(255, 196, 120, .18);
  --text: #f6e7cc;
  --muted: #c9ae8a;
  --gold: #ffcf5a;
  --amber: #f29a2e;
  --ember: #d9622b;
  --green: #7fd36b;
  --red: #ff6b5b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --head: "Pixelify Sans", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--gold); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---------- top-menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 12, 7, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { font-family: var(--head); font-size: 1.45rem; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--gold); }
.logo .blok {
  width: 30px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 4px 4px 0 rgba(255,255,255,.25);
}
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); background: rgba(255, 207, 90, .1); text-decoration: none; }
.menu-knap { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }

/* ---------- knapper ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1rem var(--body);
  padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  color: #2b1600;
  box-shadow: 0 4px 0 #9a5a12, 0 10px 24px rgba(242, 154, 46, .3);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 0 #9a5a12, 0 14px 30px rgba(242, 154, 46, .35); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a5a12; }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.lille { padding: 8px 14px; font-size: .92rem; }
.btn.discord { background: #5865f2; color: #fff; box-shadow: 0 4px 0 #3640a8; }

/* ---------- hero med baggrundsbillede ---------- */
.hero {
  position: relative; min-height: 88vh; display: grid; align-items: center;
  background: var(--bg) center/cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(26,16,10,0), rgba(26,16,10,.6) 75%),
    linear-gradient(180deg, rgba(26,16,10,.2) 0%, rgba(26,16,10,.4) 65%, var(--bg) 100%);
}
.bg-1 { background-image: url("../img/baggrund-1.jpg"); background-image: image-set(url("../img/baggrund-1.webp") type("image/webp"), url("../img/baggrund-1.jpg") type("image/jpeg")); }
.bg-2 { background-image: url("../img/baggrund-2.jpg"); background-image: image-set(url("../img/baggrund-2.webp") type("image/webp"), url("../img/baggrund-2.jpg") type("image/jpeg")); }
.hero .wrap { text-align: center; padding: 80px 0; }
.hero h1 { text-shadow: 0 4px 0 #3b1f0b, 0 10px 40px rgba(0,0,0,.6); }
.hero h1 span { color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 720px; margin: 0 auto 28px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero .knapper { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.motto {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 99px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); color: var(--gold); font-weight: 800; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase;
}
.hero.lav { min-height: 46vh; }

/* ---------- sektioner ---------- */
section { padding: 84px 0; }
.sektion-bg { position: relative; background: var(--bg) center/cover fixed; isolation: isolate; }
.sektion-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), rgba(26,16,10,.82) 20%, rgba(26,16,10,.82) 80%, var(--bg)); }
.titel { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.to-kol { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kort-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.kort {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.kort .ikon { font-size: 1.9rem; margin-bottom: 8px; }
.kort p:last-child { margin-bottom: 0; }

/* tidslinje i historien */
.tidslinje { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--amber); }
.tidslinje li { position: relative; padding: 0 0 24px 26px; }
.tidslinje li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 16px; height: 16px; background: var(--gold); border: 3px solid var(--bg); border-radius: 4px; }
.tidslinje b { color: var(--gold); font-family: var(--head); font-size: 1.15rem; display: block; }

/* trin: høst -> coins -> VIP -> VIP+ */
.trin { counter-reset: t; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.trin .kort { position: relative; padding-top: 44px; }
.trin .kort::before {
  counter-increment: t; content: counter(t);
  position: absolute; top: -18px; left: 20px; width: 42px; height: 42px; display: grid; place-items: center;
  font: 1.3rem var(--head); color: #2b1600; background: linear-gradient(180deg, var(--gold), var(--amber)); border-radius: 10px;
  box-shadow: 0 4px 0 #9a5a12;
}
.fremhaev { border-color: rgba(255, 207, 90, .55); background: linear-gradient(160deg, rgba(255,207,90,.14), var(--panel)); }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: rgba(255,207,90,.15); color: var(--gold); margin-bottom: 8px; }

/* regler */
.regler { counter-reset: r; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.regler li { counter-increment: r; display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.regler li::before { content: "§" counter(r); font-family: var(--head); color: var(--gold); min-width: 34px; }
.advarsel { margin-top: 18px; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,107,91,.45); background: rgba(255,107,91,.1); }

/* CTA */
.cta { text-align: center; }
.cta .kort { padding: 44px 24px; }

/* om os - skins */
.team { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.spiller { width: 260px; text-align: center; }
.spiller .navn { font-family: var(--head); font-size: 1.6rem; color: var(--gold); margin-bottom: 10px; text-shadow: 0 3px 0 #3b1f0b; }
.spiller .skin {
  background: radial-gradient(ellipse at 50% 85%, rgba(242,154,46,.35), transparent 60%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 18px; box-shadow: var(--shadow);
}
.spiller .skin img { height: 300px; width: auto; margin: 0 auto; image-rendering: pixelated; filter: drop-shadow(0 12px 14px rgba(0,0,0,.55)); transition: transform .3s; }
.spiller:hover .skin img { transform: translateY(-6px) rotate(-2deg); }
.spiller .rolle { margin-top: 12px; color: var(--muted); font-weight: 700; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* fade-in når man scroller */
.vis { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.vis.inde { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .vis { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- mobil ---------- */
@media (max-width: 820px) {
  .to-kol { grid-template-columns: 1fr; }
  .menu-knap { display: block; }
  .nav ul { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--panel-solid); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav ul.aaben { display: flex; }
  .sektion-bg { background-attachment: scroll; }
  section { padding: 60px 0; }
}

/* logo */
.logo img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); transition: transform .2s; }
.logo:hover img { transform: scale(1.06) rotate(-2deg); }
.nav .wrap { min-height: 72px; }
@media (max-width: 820px) { .nav ul { top: 72px; } }
