:root {
  color-scheme: dark;
  --forest: #1f3a2e;
  --forest-deep: #14261f;
  --night: #0e1b24;
  --night-2: #122330;
  --cream: #f4ecd8;
  --cream-soft: #fbf7ec;
  --gold: #c9a227;
  --gold-soft: #e6cf7a;
  --ink: #171a16;
  --muted: #a9b7ae;
  --line: rgba(230, 207, 122, 0.24);
  --line-strong: rgba(230, 207, 122, 0.5);
  --danger: #d97b7b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(201, 162, 39, 0.10), transparent 62%),
    radial-gradient(900px 520px at -10% 108%, rgba(47, 74, 58, 0.45), transparent 60%),
    linear-gradient(160deg, var(--night), #0a141b 55%, var(--forest-deep));
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(244, 236, 216, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
}

body.theme-halloween {
  --gold: #e8843c;
  --gold-soft: #ffb066;
  --forest: #2a1230;
  --forest-deep: #170a1e;
  --night: #120a18;
  --night-2: #1d1026;
  --cream: #f6ead8;
  --muted: #c3aebe;
  --line: rgba(255, 176, 102, 0.28);
  --line-strong: rgba(255, 176, 102, 0.55);
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(232, 132, 60, 0.18), transparent 62%),
    radial-gradient(900px 520px at -10% 108%, rgba(96, 32, 118, 0.5), transparent 60%),
    linear-gradient(160deg, #120a18, #1b0f24 55%, #2a1230);
}

body.theme-vinter {
  --gold: #9fc6e8;
  --gold-soft: #cfe6ff;
  --forest: #16324b;
  --forest-deep: #0b1d2e;
  --night: #071521;
  --night-2: #0d2133;
  --cream: #eef6ff;
  --muted: #acc4d8;
  --line: rgba(207, 230, 255, 0.26);
  --line-strong: rgba(207, 230, 255, 0.5);
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(159, 198, 232, 0.16), transparent 62%),
    radial-gradient(900px 520px at -10% 108%, rgba(30, 80, 120, 0.5), transparent 60%),
    linear-gradient(160deg, #071521, #0d2133 55%, #16324b);
}

::selection { background: var(--gold); color: var(--ink); }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

img, audio { max-width: 100%; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.brand-mark { color: var(--gold); font-size: 22px; }

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--cream); background: rgba(244, 236, 216, 0.06); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); }

.nav-more { position: relative; }
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover,
.nav-more[open] > summary { color: var(--cream); background: rgba(244, 236, 216, 0.06); }
.nav-more-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 200px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: var(--forest-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.nav-more-list a { display: block; padding: 7px 10px; border-radius: 8px; }
.nav-group {
  padding: 8px 10px 2px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px 70px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 34px 0 10px; }
h3 { font-size: 1.1rem; margin: 0 0 4px; }

p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: #d9d2bf; max-width: 62ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--gold-soft);
  margin: 0 0 8px;
}
.muted { color: var(--muted); font-size: 0.95rem; }
.error { color: var(--danger); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
  padding: 30px 0 26px;
}
.hero h1 {
  background: linear-gradient(100deg, var(--cream) 20%, var(--gold-soft) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-card {
  justify-self: center;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(31, 58, 46, 0.55), rgba(14, 27, 36, 0.85));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}
.card-name { font-family: var(--serif); font-size: 1.25rem; margin: 14px 0 2px; }

.actions, .draw-actions, .link-row, .filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-soft); color: var(--ink); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold-soft); background: rgba(244, 236, 216, 0.05); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  background: rgba(244, 236, 216, 0.03);
  cursor: pointer;
  font-family: inherit;
}
.pill:hover { color: var(--cream); border-color: var(--line-strong); }
.pill--active { background: var(--gold-soft); color: var(--ink); border-color: transparent; }
.pill--gold { background: var(--gold); color: var(--ink); border-color: transparent; }
.pill--danger { color: var(--danger); border-color: rgba(217, 123, 123, 0.4); }

.text-link { color: var(--gold-soft); font-weight: 600; font-size: 14px; }
.text-link:hover { color: var(--cream); }

.section { padding: 26px 0; border-top: 1px solid rgba(230, 207, 122, 0.12); }
.section.narrow { max-width: 560px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2, .section-head h1 { margin: 0 0 8px; }

.spread-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 20px; }
.spread-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(31, 58, 46, 0.5), rgba(14, 27, 36, 0.7));
  color: var(--cream);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.spread-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.spread-symbol { color: var(--gold-soft); font-size: 18px; letter-spacing: 4px; }
.spread-tile strong { font-family: var(--serif); font-size: 1.1rem; }
.spread-tile .muted { font-size: 13px; }

.playing-card {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.85), transparent 55%),
    linear-gradient(155deg, var(--cream-soft), var(--cream));
  border: 1px solid rgba(201, 162, 39, 0.7);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38), inset 0 0 0 5px rgba(201, 162, 39, 0.12);
  color: var(--ink);
  padding: 7px;
  position: relative;
  overflow: hidden;
}
.playing-card--large { max-width: 240px; }
.pc-frame {
  height: 100%;
  border: 1px solid rgba(31, 58, 46, 0.35);
  border-radius: 9px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(31, 58, 46, 0.025) 0 6px, transparent 6px 12px);
}
.pc-rank { font-family: var(--serif); font-size: 1.05rem; color: var(--suit); font-weight: 700; line-height: 1; }
.pc-rank--bottom { align-self: flex-end; transform: rotate(180deg); }
.pc-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.1rem;
  color: var(--suit);
  opacity: 0.92;
}
.playing-card--large .pc-symbol { font-size: 5rem; }
.pc-name {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(23, 26, 22, 0.6);
}

.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 18px; margin-top: 22px; }
.deck-item { display: flex; flex-direction: column; gap: 8px; color: var(--cream); }
.deck-item:hover .playing-card { transform: translateY(-4px) rotate(-0.6deg); border-color: var(--gold-soft); }
.deck-item .playing-card { transition: transform 0.2s ease, border-color 0.2s ease; }
.deck-meta { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.deck-meta strong { font-family: var(--serif); font-size: 0.98rem; }
.deck-meta .muted { font-size: 12px; }

.card-page, .daily-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: start;
  padding: 24px 0;
}
.card-visual { position: sticky; top: 20px; text-align: center; }
.card-visual .eyebrow { margin-top: 18px; }
.card-text .lead { font-size: 1.16rem; color: #e6dfcd; }
.card-text h2 { margin-top: 26px; font-size: 1.2rem; color: var(--gold-soft); }
.reflection {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(244, 236, 216, 0.09), rgba(244, 236, 216, 0.03));
}
.reflection h2 { margin-top: 0; }
.reflection p:last-child { margin-bottom: 0; }
.advice { color: var(--gold-soft); }
.source { font-size: 12px; margin-top: 26px; }

.draw-form, .admin-form { display: grid; gap: 8px; max-width: 640px; margin: 18px 0 26px; }
.draw-form label, .admin-form label { font-size: 13px; color: var(--gold-soft); letter-spacing: 0.04em; }
.draw-form input, .draw-form textarea, .draw-form select,
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 17, 23, 0.65);
  color: var(--cream);
  font: inherit;
}
.draw-form button, .admin-form button { justify-self: start; margin-top: 8px; }
.admin-form input[type="file"] { color: var(--cream); font-size: 13px; }
.admin-image-preview {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.admin-delete { margin-top: 26px; }
.ai-panel {
  margin: 18px 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244, 236, 216, 0.04);
}
.ai-panel h2 { margin-top: 0; }
.ai-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}
.ai-row label { display: grid; gap: 6px; font-size: 13px; color: var(--gold-soft); }
.ai-row textarea, .ai-row select { width: 100%; }
.ai-status { min-height: 1.4em; margin: 10px 0 0; color: var(--gold-soft); font-size: 13px; }
@media (max-width: 700px) { .ai-row { grid-template-columns: 1fr; } }
.position-list ol { padding-left: 22px; color: var(--muted); }
.position-list li { margin: 4px 0; }

.draw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin: 28px 0; }
.draw-item {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.6s ease forwards;
  animation-delay: var(--delay, 0ms);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(31, 58, 46, 0.52), rgba(14, 27, 36, 0.72));
}
.position { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--gold-soft); margin-bottom: 12px; }
.draw-item h2 { font-size: 1.15rem; margin: 14px 0 8px; }
.reflection-q { color: var(--muted); font-style: italic; }
@keyframes rise { to { opacity: 1; transform: none; } }

.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.song-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(244, 236, 216, 0.035);
}
.song-card audio { width: 100%; margin: 10px 0; }
.song-card p { font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); }
.stat span { color: var(--muted); font-size: 13px; }

.admin-table { display: grid; gap: 6px; margin-top: 16px; }
.admin-row {
  display: grid;
  grid-template-columns: 32px 1fr 1.4fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--cream);
}
.admin-row:hover { border-color: var(--line); background: rgba(244, 236, 216, 0.04); }
.admin-suit { font-size: 20px; text-align: center; }
.admin-row strong { font-family: var(--serif); font-weight: 600; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px 50px;
  border-top: 1px solid rgba(230, 207, 122, 0.14);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.site-footer p { max-width: 64ch; margin: 0 auto 10px; }
.ornament { color: var(--gold-soft); letter-spacing: 0.5em; margin-bottom: 12px; }

.share-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin: 24px 0 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 38, 31, 0.45);
}
.qr { background: var(--cream); padding: 14px; border-radius: 14px; line-height: 0; }
.qr svg { display: block; width: 200px; height: auto; }
.share-copy .link-row { flex-wrap: wrap; }

.dash-list { display: grid; gap: 6px; margin: 12px 0 16px; }
.dash-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 38, 31, 0.45);
  color: var(--cream);
}
.dash-row:hover { border-color: var(--line-strong); color: var(--cream); }
.dash-row .muted { text-align: right; white-space: nowrap; }
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 12px 0 16px;
}
.admin-gallery figure { margin: 0; }
.admin-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.admin-gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

.stars { color: var(--gold-soft); letter-spacing: 0.14em; }
.review-list { display: grid; gap: 14px; margin: 12px 0 0; }
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0 0 14px;
}

.copy-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
  background: rgba(20, 38, 31, 0.45);
}
.copy-text {
  white-space: pre-line;
  margin: 0 0 12px;
  color: var(--cream);
}

.tiktok-card {
  width: min(340px, 78vw);
  aspect-ratio: 9 / 16;
  margin: 20px auto;
  padding: 26px 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 220px at 80% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(165deg, var(--night), var(--forest-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}
.tiktok-brand { font-family: var(--serif); font-size: clamp(24px, 7vw, 32px); color: var(--cream); }
.tiktok-tagline {
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tiktok-line { color: var(--muted); font-size: 13px; }
.tiktok-qr { width: 72%; background: var(--cream); padding: 10px; border-radius: 14px; }
.tiktok-qr svg { width: 100%; height: auto; display: block; }
.tiktok-url { color: var(--cream); font-size: 13px; word-break: break-all; }
.tiktok-cta { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); }

.post-card {
  width: min(340px, 82vw);
  margin: 20px auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(400px 220px at 80% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(165deg, var(--night), var(--forest-deep));
}
.post-9x16 { aspect-ratio: 9 / 16; }
.post-4x5 { aspect-ratio: 4 / 5; width: min(380px, 88vw); }
.post-1x1 { aspect-ratio: 1 / 1; width: min(400px, 90vw); }
.post-image { width: 100%; height: 42%; object-fit: cover; }
.post-copy {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow: hidden;
}
.post-kicker {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(20px, 5.2vw, 28px);
  line-height: 1.15;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-footer {
  padding: 10px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-qr {
  width: 82px;
  flex: none;
  background: var(--cream);
  padding: 6px;
  border-radius: 8px;
}
.post-qr svg { width: 100%; height: auto; display: block; }
.post-url { color: var(--cream); font-size: 12px; word-break: break-all; }

/* ----------------------------- effekter ----------------------------- */

.fx {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.fx span { position: absolute; top: -12vh; will-change: transform, opacity; }
.fx-snow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
  animation: fx-fall linear infinite;
}
.fx-stars span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-soft);
  top: 0;
  animation: fx-twinkle ease-in-out infinite;
}
.fx-ghosts span,
.fx-wander span {
  width: 40px;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2080'%3E%3Cpath%20d='M32%204C17%204%208%2015%208%2030v38l6-6%206%206%206-6%206%206%206-6%206%206%206-6%206%206V30C56%2015%2047%204%2032%204Z'%20fill='%23f4ecd8'%20fill-opacity='.85'/%3E%3Ccircle%20cx='23'%20cy='31'%20r='4'%20fill='%23120a18'/%3E%3Ccircle%20cx='41'%20cy='31'%20r='4'%20fill='%23120a18'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}
.fx-ghosts span { animation: fx-fall linear infinite; }
.fx-wander span {
  top: 20%;
  width: 48px;
  height: 60px;
  opacity: 0;
  animation: fx-wander linear infinite;
}
.fx-leaves span { font-size: 18px; animation: fx-fall linear infinite; }
.fx-sparks span {
  bottom: -10vh;
  top: auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: fx-rise linear infinite;
}
.fx-fog span {
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  top: auto;
  bottom: -12vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 65%);
  filter: blur(30px);
  animation: fx-drift ease-in-out infinite alternate;
}
.fx-wander span {
  top: 20%;
  opacity: 0;
  animation: fx-wander linear infinite;
}
.fx-words span {
  font-family: var(--serif);
  font-size: clamp(14px, 2.2vw, 22px);
  color: var(--gold-soft);
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 0 18px rgba(230, 207, 122, 0.35);
  animation: fx-word ease-in-out infinite;
}
.fx-fireflies span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9f7a8;
  box-shadow: 0 0 10px 3px rgba(217, 247, 168, 0.55);
  animation: fx-firefly ease-in-out infinite alternate;
}
.fx-rain span {
  width: 1px;
  height: 14vh;
  background: linear-gradient(to bottom, transparent, rgba(170, 205, 255, 0.55));
  animation: fx-rain linear infinite;
}
.fx-sun::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 80vh;
  background: radial-gradient(circle at 70% 0%, rgba(255, 214, 120, 0.28), transparent 60%);
}
.fx-sun span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8, rgba(255, 200, 80, 0));
  box-shadow: 0 0 18px 6px rgba(255, 210, 110, 0.35);
  animation: fx-sun ease-in-out infinite alternate;
}
.fx-snow_words span,
.fx-leaves_words span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--cream);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  animation: fx-fall-word linear infinite;
}
@keyframes fx-fall-word {
  from { transform: translate3d(0, -12vh, 0); }
  to { transform: translate3d(var(--sway, 2vw), 112vh, 0); }
}
.fx-snow_words span::before { content: "❄"; color: #eaf6ff; }
.fx-leaves_words span::before { content: "🍂"; }
@keyframes fx-rain {
  from { transform: translate3d(0, -20vh, 0); }
  to { transform: translate3d(-7vw, 120vh, 0); }
}
@keyframes fx-sun {
  from { transform: translate3d(0, 0, 0); opacity: 0.25; }
  to { transform: translate3d(var(--sway, 2vw), var(--rise, -6vh), 0); opacity: 0.9; }
}
@keyframes fx-wander {
  0% { transform: translate3d(-15vw, 0, 0) rotate(-6deg); opacity: 0; }
  8% { opacity: 0.85; }
  50% { transform: translate3d(50vw, var(--rise, -4vh), 0) rotate(6deg); opacity: 0.7; }
  92% { opacity: 0.5; }
  100% { transform: translate3d(115vw, var(--rise, 0), 0) rotate(-4deg); opacity: 0; }
}
@keyframes fx-word {
  0% { opacity: 0; transform: translateY(12px) scale(0.92); }
  18% { opacity: 0.95; }
  65% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.04); }
}
@keyframes fx-firefly {
  from { transform: translate3d(0, 0, 0); opacity: 0.2; }
  50% { opacity: 0.9; }
  to { transform: translate3d(var(--sway, 3vw), var(--rise, -8vh), 0); opacity: 0.5; }
}
@keyframes fx-fall {
  from { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--sway, 2vw), 112vh, 0) rotate(360deg); }
}
@keyframes fx-rise {
  from { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translate3d(var(--sway, 1vw), -115vh, 0); opacity: 0; }
}
@keyframes fx-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes fx-drift {
  from { transform: translate3d(-10vw, 0, 0); }
  to { transform: translate3d(10vw, -6vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fx { display: none; }
}

/* ----------------------------- evenemang ----------------------------- */

.event-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 38, 31, 0.35);
}
.event-hero { max-width: 780px; }
.event-countdown {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold-soft);
  margin: 10px 0 22px;
}
.event-embed { margin: 20px 0; }
.message-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0 0 18px;
}
.message-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.booking-slots {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.booking-slots legend {
  padding: 0 8px;
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.booking-day + .booking-day { margin-top: 18px; }
.booking-day h3 { font-size: 1rem; margin: 0 0 8px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.slot input:checked + span {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
}
.slot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 620px) {
  .share-card { grid-template-columns: 1fr; gap: 18px; }
  .qr { justify-self: center; }
  .qr svg { width: min(70vw, 240px); }
}

.share-row { display: flex; align-items: center; gap: 12px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-card { justify-self: start; width: 100%; max-width: 360px; }
  .card-page, .daily-page { grid-template-columns: 1fr; gap: 26px; }
  .card-visual { position: static; }
  .nav a { padding: 6px 10px; }
}

@media (max-width: 520px) {
  .site-header { padding: 20px 16px 6px; }
  main { padding: 12px 16px 50px; }
  .deck-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
  .admin-row { grid-template-columns: 26px 1fr; }
  .admin-row .muted { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .draw-item { opacity: 1; transform: none; }
}

/* ---------- astrologi ---------- */
.small { font-size: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); margin: 6px 0 12px; }
.checkbox input { width: auto; margin-top: 4px; }
.notice {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold-soft);
  background: rgba(230, 207, 122, 0.07);
  border-radius: 0 12px 12px 0;
  color: #e6dfcd;
}
.astro-layout { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.8fr); gap: 30px; align-items: center; margin: 24px 0 10px; }
.wheel-wrap { max-width: 620px; }
.wheel-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.badge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 20px; }
.badge { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(244,236,216,.04); }
.badge span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin: 4px 0 2px; }
.badge small { color: var(--muted); }
.blend-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.table-wrap { overflow-x: auto; margin: 12px 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(230,207,122,.12); vertical-align: top; }
.data-table th { color: var(--gold-soft); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.astro-interpretation h2 { color: var(--gold-soft); }
.astro-interpretation li { margin: 6px 0; color: var(--muted); }
@media (max-width: 820px) {
  .astro-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- budskap ---------- */
.message-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.message-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(31, 58, 46, 0.45), rgba(14, 27, 36, 0.7));
}
.message-card h2, .message-card h3 { margin: 0 0 8px; }
.message-card h2 a, .message-card h3 a { color: var(--cream); }
.message-body { white-space: pre-line; font-size: 1.05rem; color: #e6dfcd; }

/* ---------- min resa & media ---------- */
.timeline { position: relative; margin: 26px 0 10px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold-soft), transparent); opacity: .5; }
.timeline-item { position: relative; margin: 0 0 26px; }
.timeline-dot { position: absolute; left: -26px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(201,162,39,.14); }
.timeline-body h2 { margin: 2px 0 8px; }
.story-body { white-space: pre-line; font-size: 1.06rem; color: #e6dfcd; max-width: 70ch; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.media-item { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(244,236,216,.035); }
.media-item img { width: 100%; border-radius: 10px; display: block; }
.media-item figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.media-item audio { width: 100%; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.booking-frame { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 620px; }
.booking-frame iframe { width: 100%; height: 680px; border: 0; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-top: 3px; }

/* ---------- vikinga-orakel ---------- */
.viking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 22px; }
.viking-item { display: flex; flex-direction: column; gap: 8px; color: var(--cream); }
.viking-item:hover .viking-card { transform: translateY(-4px) rotate(-0.5deg); border-color: var(--gold-soft); }
.viking-meta { text-align: center; display: flex; flex-direction: column; }
.viking-meta strong { font-family: var(--serif); }
.viking-meta small { color: var(--muted); font-size: 11px; }

.viking-card {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rune-color) 55%, #c9a227);
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--rune-color) 20%, transparent), transparent 62%),
    linear-gradient(160deg, #1a2a24, #0a1319 70%);
  box-shadow: 0 14px 30px rgba(0,0,0,.4), inset 0 0 30px color-mix(in srgb, var(--rune-color) 10%, transparent);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  isolation: isolate;
}
.viking-card:hover { box-shadow: 0 20px 44px rgba(0,0,0,.5), 0 0 28px color-mix(in srgb, var(--rune-color) 28%, transparent); }
.viking-card--large { max-width: 280px; margin: 0 auto; }
.vc-sky {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 25%, rgba(244,236,216,.8), transparent),
    radial-gradient(1px 1px at 72% 18%, rgba(244,236,216,.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 68%, rgba(244,236,216,.5), transparent),
    radial-gradient(1px 1px at 82% 74%, rgba(244,236,216,.7), transparent),
    radial-gradient(1px 1px at 15% 82%, rgba(244,236,216,.5), transparent);
  animation: vc-drift 14s ease-in-out infinite alternate;
  opacity: .8;
}
.vc-ring {
  position: absolute; inset: 13%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--rune-color) 45%, transparent);
}
.vc-ring::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--rune-color) 55%, transparent);
  animation: vc-spin 26s linear infinite;
}
.vc-rune {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Sans Runic", "Segoe UI Historic", Georgia, serif;
  font-size: clamp(3rem, 8vw, 4.6rem);
  color: var(--rune-color);
  text-shadow: 0 0 18px color-mix(in srgb, var(--rune-color) 70%, transparent);
  animation: vc-breathe 4.5s ease-in-out infinite;
}
.vc-sparks {
  position: absolute; left: 0; right: 0; bottom: 34px;
  text-align: center; font-size: 10px; letter-spacing: .5em;
  color: color-mix(in srgb, var(--rune-color) 70%, #f4ecd8);
  animation: vc-float 6s ease-in-out infinite;
}
.vc-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 6px 7px;
  text-align: center;
  font-family: var(--serif); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(8,17,23,.85));
}
.vc-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-image-rune {
  position: absolute; right: 8px; top: 6px;
  font-family: "Noto Sans Runic", "Segoe UI Historic", Georgia, serif;
  color: var(--rune-color); font-size: 20px;
  text-shadow: 0 0 10px var(--rune-color);
}

.viking-detail { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start; padding: 24px 0; }
.viking-visual { position: sticky; top: 20px; text-align: center; }
.viking-visual .eyebrow { margin-top: 18px; }

@keyframes vc-breathe { 0%, 100% { opacity: .82; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes vc-spin { to { transform: rotate(360deg); } }
@keyframes vc-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(4px,-5px,0); } }
@keyframes vc-float { 0%, 100% { transform: translateY(0); opacity: .65; } 50% { transform: translateY(-4px); opacity: 1; } }
.visitor-count { font-size: 12px; }
@media (max-width: 820px) { .viking-detail { grid-template-columns: 1fr; gap: 26px; } .viking-visual { position: static; } }
@media (prefers-reduced-motion: reduce) {
  .vc-rune, .vc-ring::before, .vc-sky, .vc-sparks { animation: none !important; }
}

/* ---------- om mig ---------- */
.about-me { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.about-placeholder {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 5rem; color: var(--gold-soft);
  background: linear-gradient(160deg, rgba(31,58,46,.7), rgba(14,27,36,.9));
  border: 1px solid var(--line);
}
.about-copy h2 { margin-top: 0; }
.about-bio { white-space: pre-line; font-size: 1.05rem; color: #e6dfcd; max-width: 62ch; }
@media (max-width: 820px) {
  .about-me { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
}

/* ---------- egna sidor ---------- */
.page-body { white-space: pre-line; font-size: 1.06rem; color: #e6dfcd; max-width: 70ch; }

/* ---------- kontakt ---------- */
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-message { margin: 14px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(244,236,216,.03); }
.contact-message.unread { border-color: var(--line-strong); background: rgba(230,207,122,.06); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.contact-meta strong { font-family: var(--serif); font-size: 1.05rem; }
.contact-text { white-space: pre-line; color: #e6dfcd; }
