/* Stjerneliv — natt-himmel-tema: gull-hårstriper, glassflater og stjernehimmel på midnattsgrunn. */
:root {
  --bg-0: #0B0811;
  --bg-1: #120E1C;
  --bg-2: #171221;
  --surface: rgba(30, 23, 46, .55);
  --surface-2: rgba(38, 30, 58, .65);
  --surface-solid: #1F1830;
  --surface-dark: #2B2140;
  --text: #EDE4D3;
  --text-strong: #FBF3E4;
  --muted: #A2947E;
  --gold: #C9A25E;
  --gold-soft: #E6D2A6;
  --gold-bright: #F3E2B8;
  --violet: #8B6BB8;
  --violet-dark: #3B2A55;
  --border: rgba(230, 210, 166, .14);
  --border-strong: rgba(230, 210, 166, .3);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --radius: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

html { color-scheme: dark; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:
    radial-gradient(1100px 640px at 88% -12%, rgba(139, 107, 184, .16), transparent 62%),
    radial-gradient(900px 560px at -12% 12%, rgba(201, 162, 94, .1), transparent 58%),
    radial-gradient(1200px 700px at 50% 118%, rgba(139, 107, 184, .09), transparent 60%),
    radial-gradient(140% 140% at 50% 40%, transparent 55%, rgba(4, 3, 7, .65) 100%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  color: var(--text);
  line-height: 1.65;
}

/* ---------- stjernehimmel ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.sky-stars, .sky-stars-2 {
  position: absolute; inset: -16% -16%;
  background-repeat: repeat;
  animation: twinkle 9s ease-in-out infinite alternate;
}
.sky-stars {
  background-image:
    radial-gradient(1.5px 1.5px at 17% 21%, rgba(243, 226, 184, .9), transparent 55%),
    radial-gradient(1px 1px at 68% 12%, rgba(243, 226, 184, .7), transparent 55%),
    radial-gradient(1px 1px at 39% 64%, rgba(230, 210, 166, .65), transparent 55%),
    radial-gradient(1.5px 1.5px at 84% 47%, rgba(243, 226, 184, .8), transparent 55%),
    radial-gradient(1px 1px at 8% 76%, rgba(230, 210, 166, .6), transparent 55%),
    radial-gradient(1px 1px at 55% 88%, rgba(243, 226, 184, .75), transparent 55%),
    radial-gradient(1.5px 1.5px at 92% 73%, rgba(230, 210, 166, .7), transparent 55%),
    radial-gradient(1px 1px at 30% 39%, rgba(243, 226, 184, .55), transparent 55%);
  background-size: 340px 340px;
  opacity: .7;
}
.sky-stars-2 {
  background-image:
    radial-gradient(1px 1px at 24% 72%, rgba(230, 210, 166, .45), transparent 55%),
    radial-gradient(1.5px 1.5px at 71% 35%, rgba(243, 226, 184, .5), transparent 55%),
    radial-gradient(1px 1px at 47% 15%, rgba(230, 210, 166, .4), transparent 55%),
    radial-gradient(1px 1px at 88% 61%, rgba(243, 226, 184, .45), transparent 55%),
    radial-gradient(1px 1px at 11% 47%, rgba(243, 226, 184, .35), transparent 55%),
    radial-gradient(1.5px 1.5px at 62% 95%, rgba(230, 210, 166, .5), transparent 55%),
    radial-gradient(1px 1px at 5% 9%, rgba(243, 226, 184, .4), transparent 55%),
    radial-gradient(1px 1px at 96% 18%, rgba(230, 210, 166, .45), transparent 55%);
  background-size: 520px 520px;
  opacity: .45;
  animation-delay: -4s;
}
@keyframes twinkle { from { opacity: .22; } to { opacity: .62; } }
@media (prefers-reduced-motion: reduce) {
  .sky-stars, .sky-stars-2 { animation: none; opacity: .4; }
}

::selection { background: var(--gold); color: #24180F; }
a { color: var(--gold-soft); }
a:hover { color: var(--gold-bright); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #342A48; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #463A5E; }

a, button, input, select, textarea { transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-soft); outline-offset: 2px; border-radius: 4px;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  flex-direction: column;
  background: rgba(11, 8, 17, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner {
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-strong); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(243, 226, 184, .5), transparent 42%),
    radial-gradient(circle at 62% 70%, rgba(139, 107, 184, .5), transparent 52%),
    #191225;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 18px rgba(201, 162, 94, .35), inset 0 1px 0 rgba(243, 226, 184, .35);
  color: var(--gold-soft);
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong {
  font-size: 18px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-bright);
}
.brand-copy small { color: var(--muted); font-size: 10px; margin-top: 2px; letter-spacing: .2em; text-transform: uppercase; }
.main-nav {
  border-top: 1px solid var(--border);
  background: rgba(18, 14, 28, .6);
}
.main-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  border: 0; padding: 8px 13px; border-radius: 999px;
  color: var(--muted); font-size: 14px;
}
.main-nav a.active, .main-nav a:hover {
  background: rgba(201, 162, 94, .13);
  color: var(--gold-bright);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(230, 210, 166, .18);
}
.main-nav a.active { border: 1px solid rgba(230, 210, 166, .28); padding: 7px 12px; }
.topbar-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.lang-pill {
  display: flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: rgba(28, 22, 44, .6);
}
.lang-pill a {
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 7px 11px; text-decoration: none;
}
.lang-pill a + a { border-left: 1px solid var(--border); }
.lang-pill a.on {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #24180F;
}

/* ---------- mobilmeny ---------- */
.nav-toggle {
  display: none;
  width: 42px; height: 40px; padding: 0;
  background: rgba(30, 23, 46, .7); border: 1px solid var(--border); border-radius: 11px;
  cursor: pointer; place-items: center; align-content: center; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--gold-soft); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 6px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 11px 14px; border-radius: 11px;
  color: var(--muted); font-size: 16px; text-decoration: none;
}
.mobile-nav a.active, .mobile-nav a:hover {
  background: rgba(201, 162, 94, .13); color: var(--gold-bright);
}
.mobile-nav-about { border-top: 1px solid var(--border); margin-top: 4px; }

/* ---------- layout ---------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { padding: 44px 0 90px; flex: 1 0 auto; }

h1 {
  font-size: clamp(36px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.025em;
  font-weight: 500; margin: 14px 0 18px; color: var(--text-strong);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
h1 em {
  font-style: italic;
  background: linear-gradient(115deg, var(--gold-bright) 10%, var(--gold) 55%, #8B6BB8 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: 23px; font-weight: 500; color: var(--gold-soft); margin: 24px 0 10px; letter-spacing: -.005em; }
.intro { color: var(--muted); max-width: 62ch; font-size: 17.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .24em;
  color: var(--gold); font-size: 11px; font-weight: 700;
}
.eyebrow::before, .eyebrow::after { content: "✦"; font-size: 9px; color: rgba(230, 210, 166, .65); }
.dates { color: var(--muted); margin: 0 0 18px; }
.moon { color: var(--gold-soft); }
ul { color: var(--text); line-height: 1.85; }

/* ---------- kort ---------- */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; margin-top: 28px; }
.sign-card, .tool-card {
  position: relative;
  background:
    radial-gradient(420px 240px at 88% -20%, rgba(139, 107, 184, .16), transparent 62%),
    linear-gradient(165deg, rgba(34, 26, 52, .78), rgba(21, 16, 33, .62));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .07);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--text);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.sign-card::after, .tool-card::after {
  content: ""; position: absolute; inset: 8px; border-radius: calc(var(--radius) - 9px);
  border: 1px solid rgba(230, 210, 166, .07); pointer-events: none;
}
.sign-card:hover, .tool-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 40px -14px rgba(201, 162, 94, .28), inset 0 1px 0 rgba(243, 226, 184, .1);
}
.sign-symbol {
  font-size: 34px; line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(201, 162, 94, .45), 0 1px 2px rgba(0, 0, 0, .55);
}
.sign-cardstrong, .sign-card strong { font-size: 17px; color: var(--text-strong); }
.sign-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.sign-card small { color: var(--muted); font-size: 12px; }
.pill { text-transform: capitalize; }
.moon { color: var(--gold-soft); font-size: 12px; }

.card {
  background:
    radial-gradient(520px 280px at 100% -10%, rgba(139, 107, 184, .12), transparent 60%),
    linear-gradient(168deg, rgba(32, 25, 50, .72), rgba(20, 15, 31, .6));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .06);
  padding: 26px 28px;
  margin-top: 18px;
  max-width: 780px;
}
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; }
.facts dt { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; color: var(--text-strong); }
.tone { color: var(--gold-soft); font-style: italic; }

.journal-rule {
  height: 1px; margin: 30px auto 0; max-width: 320px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  position: relative;
}
.journal-rule::after {
  content: "✦"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 11px; background: var(--bg-1); padding: 0 10px;
}

/* ---------- skjema ---------- */
.calc-form { display: grid; gap: 14px; max-width: 440px; }
.place-results {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  margin-top: 4px;
  overflow: hidden;
  position: absolute;
  z-index: 40;
  min-width: 260px;
}
.place-item { padding: 9px 14px; cursor: pointer; font-size: 15px; color: var(--text); }
.place-item:hover { background: rgba(201, 162, 94, .12); color: var(--gold-bright); }
.place-item small { color: var(--muted); font-size: 12px; }
.place-no { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.calc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--gold); }
input, select, textarea {
  background: rgba(11, 8, 17, .55); color: var(--text-strong);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; outline: none; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: rgba(162, 148, 126, .75); }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 94, .18);
}
.btn {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #24180F;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 11px 20px; font-weight: 700; font-size: 15px;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 22px rgba(201, 162, 94, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn:hover {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-soft));
  border-color: var(--gold-soft);
  box-shadow: 0 10px 28px rgba(201, 162, 94, .32), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-ghost {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--gold-soft); box-shadow: none;
}
.btn-ghost:hover { background: rgba(201, 162, 94, .1); border-color: var(--gold); box-shadow: none; color: var(--gold-bright); }

.compat-row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.compat-row label { display: flex; flex-direction: column; gap: 5px; }
.compat-row span { font-size: 11px; color: var(--gold); letter-spacing: .16em; }
.compat-x { color: var(--gold); padding-bottom: 12px; font-size: 18px; }
.compat-picker form { align-items: flex-start; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 24px 0 8px; }
.tool-cardsmall, .tool-card small { color: var(--muted); font-size: 13px; }
.tool-card strong { font-size: 18px; font-weight: 600; color: var(--text-strong); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(6, 4, 10, .65));
  padding: 24px 28px 36px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { color: var(--gold-soft); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.footer-links a {
  color: var(--gold-soft); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(230, 210, 166, .35);
}
.footer-links .madeby { color: var(--muted); }
.footer-links .madeby-link { text-decoration-color: var(--gold); }
.footer-linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}

/* ---------- lastesignal ---------- */
.sl-busy {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 4, 10, .78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.sl-busy[hidden] { display: none; }
.sl-busy-box {
  background: linear-gradient(168deg, #231B38, #171028);
  border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 26px 32px; text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6); max-width: 340px;
}
.sl-spinner {
  display: inline-block; width: 36px; height: 36px;
  border: 3px solid rgba(230, 210, 166, .25); border-top-color: var(--gold);
  border-radius: 50%; animation: sl-spin .9s linear infinite;
}
@keyframes sl-spin { to { transform: rotate(360deg); } }
.sl-busy p { margin: 14px 0 0; color: var(--gold-soft); font-weight: 600; }
.sl-busy small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; font-size: 12px; }

/* ---------- samtykkebanner (GDPR) ---------- */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 960px; margin: 0 auto;
  background: rgba(23, 17, 34, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
}
.consent-bar[hidden] { display: none; }
.consent-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.consent-text a { color: var(--gold-soft); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn-ghost {
  background: transparent; border: 1px solid var(--border-strong); color: var(--gold-soft);
}
.consent-actions .btn { cursor: pointer; border-radius: 9px; padding: 9px 18px; font-size: 14px; }
@media (max-width: 640px) {
  .consent-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-actions { justify-content: center; }
}

/* ---------- tarotkort ---------- */
.tarot-cards-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
}
.tcard {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 12px; padding: 7px;
  background: linear-gradient(168deg, rgba(34, 26, 52, .7), rgba(20, 15, 31, .55));
  text-align: center; color: var(--gold-soft); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tcard img { width: 100%; border-radius: 8px; display: block; aspect-ratio: 5 / 9; object-fit: cover; }
.tcard:hover {
  transform: translateY(-3px); border-color: var(--border-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 24px -8px rgba(201, 162, 94, .3);
}
.tcard-name { font-size: 12px; font-weight: 600; }
.tarot-deck h2 { margin: 10px 0 10px; }
.tarot-suitkw { font-size: 12px; font-weight: 400; color: var(--muted); }
.tarot-deck { margin-bottom: 22px; }
.tarot-detail { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.tarot-face-img {
  width: 168px; border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .5), 0 0 30px -10px rgba(201, 162, 94, .25); flex: 0 0 auto;
}
.tarot-info { flex: 1 1 260px; min-width: 240px; }
.tarot-subline { color: var(--muted); font-size: 13px; margin-top: -4px; }
.tarot-chip {
  display: inline-block; padding: 4px 11px; margin: 3px 6px 3px 0;
  background: rgba(201, 162, 94, .12); border: 1px solid rgba(230, 210, 166, .25);
  border-radius: 999px; font-size: 12px; color: var(--gold-soft);
}
.chip-rev { background: rgba(139, 107, 184, .12); border-color: rgba(139, 107, 184, .35); color: #C8B4E4; }
.backlink { margin: 0 0 8px; font-size: 13px; }
.reading-img {
  width: 92px; border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}
.tarot-daily-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- kjærlighet FAQ ---------- */
.match-list { margin: 4px 0 10px; padding-left: 18px; font-size: 14.5px; }
.match-list li { margin: 3px 0; }
details { border-top: 1px solid var(--border); padding: 10px 0; }
details:first-of-type { border-top: 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--gold-soft); }
details p { margin: 8px 0 0; color: var(--text); }

/* ---------- månekalender ---------- */
.moon-now { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.moon-glyph {
  position: relative;
  width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 30%, rgba(243, 226, 184, .3), transparent 58%),
    conic-gradient(from 0deg, #F3E2B8 0%, #F3E2B8 var(--illum, 50%), #16121F var(--illum, 50%), #16121F 100%);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, .4),
    0 0 34px -6px rgba(243, 226, 184, .4),
    0 10px 30px rgba(0, 0, 0, .45);
}
.moon-illum {
  position: relative; z-index: 1;
  color: var(--gold-bright);
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 10px rgba(0, 0, 0, .6);
}
.moon-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 15px; }
.moon-facts dt { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding-top: 3px; }
.moon-facts dd { margin: 0; color: var(--text-strong); }
.phase-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.phase-table th, .phase-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.phase-table th { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.phase-table td { color: var(--text-strong); }
.phase-table td.utc { color: var(--muted); font-variant-numeric: tabular-nums; }
.zone-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.moon-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.moon-form label { display: flex; flex-direction: column; gap: 5px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #24180F; padding: 11px 20px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 26px rgba(201, 162, 94, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cta:hover { text-decoration: none; color: #24180F; background: linear-gradient(180deg, var(--gold-bright), var(--gold-soft)); }

/* ---------- KI-blokk ---------- */
.ai-cta { margin: 1.2rem 0 0; }
.btn-ai {
  background: linear-gradient(180deg, #6E52A8, #4D3773);
  color: #F3E8FF; border: 1px solid #8B6BB8; border-radius: 999px;
  padding: .7rem 1.3rem; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 42, 85, .5);
}
.btn-ai:hover { background: linear-gradient(180deg, #8B6BB8, #5E4687); box-shadow: 0 10px 28px rgba(88, 63, 130, .55); }
.btn-ai[disabled] { opacity: .6; cursor: progress; }
.ai-block {
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  border-left: 3px solid #8B6BB8;
  background: rgba(94, 70, 135, .14);
  border-radius: 0 8px 8px 0;
}
.ai-block h2 { margin-top: 0; font-size: 1.1rem; color: #C8B4E4; }
.ai-block p:last-child { margin-bottom: 0; }
.ai-note { opacity: .7; }

/* ---------- Fra redaksjonen (forside) ---------- */
.editorial-strip {
  margin: 34px 0 8px;
  padding: 28px 30px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(620px 300px at 8% -20%, rgba(139, 107, 184, .14), transparent 60%),
    linear-gradient(155deg, rgba(32, 25, 50, .72), rgba(20, 15, 31, .6));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .06);
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.editorial-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(11, 8, 17, .35);
  color: var(--text); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.editorial-card:hover {
  transform: translateY(-2px); border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 26px -10px rgba(201, 162, 94, .28);
  text-decoration: none;
}
.editorial-card strong { color: var(--text-strong); font-size: 16px; }
.editorial-card p { color: var(--muted); font-size: 13px; margin: 0; }
.editorial-card small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }

.minday-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.minday-chip { cursor: pointer; }
.minday-chip:hover { transform: translateY(-1px); border-color: var(--gold); }
.minday-or { color: var(--muted); font-size: 13px; margin: 8px 0; }
.minday-links a { margin-right: 4px; }
.now-strip .calc-form { max-width: 360px; }
.minday-tools-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.moon-week td pre { margin: 0; }

/* ---------- Akkurat nå-stripen ---------- */
.now-strip {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin: 0 0 30px;
  padding: 26px 30px;
  border-radius: 26px;
  border: 1px solid rgba(230, 210, 166, .35);
  background:
    radial-gradient(640px 300px at 12% -30%, rgba(243, 226, 184, .14), transparent 60%),
    radial-gradient(700px 380px at 105% 130%, rgba(139, 107, 184, .2), transparent 62%),
    linear-gradient(155deg, #241730 0%, #150E1C 58%, #1F1424 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(243, 226, 184, .06);
  overflow: hidden;
  position: relative;
}
.now-strip::before {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(230, 210, 166, .14);
  border-radius: 19px; pointer-events: none;
}
.now-strip .moon-glyph { width: 92px; height: 92px; }
.now-copy { flex: 1 1 280px; position: relative; z-index: 1; }
.now-copy .eyebrow { margin-bottom: 6px; }
.now-line { margin: 4px 0 6px; font-size: 19px; color: var(--muted); }
.now-line strong { color: var(--text-strong); font-size: 22px; letter-spacing: -.01em; }
.now-next { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.now-sun {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  color: var(--gold-soft); text-align: left;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(230, 210, 166, .25);
  background: rgba(201, 162, 94, .08);
  position: relative; z-index: 1;
}
.now-sun-glyph { font-size: 26px; color: var(--gold-bright); filter: drop-shadow(0 0 12px rgba(243, 226, 184, .55)); }
.now-sun small { font-size: 11.5px; line-height: 1.5; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.now-sun small b { color: var(--gold-soft); }

/* ---------- Tarot-rommet (hero-panel) ---------- */
.tarot-room {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
  margin-top: 8px;
  padding: 46px 44px;
  border-radius: 26px;
  overflow: hidden;
  color: #F6E9D2;
  background:
    radial-gradient(700px 380px at 88% 12%, rgba(201, 162, 94, .3), transparent 62%),
    radial-gradient(520px 320px at 4% 108%, rgba(59, 42, 85, .6), transparent 60%),
    linear-gradient(155deg, #241730 0%, #150E1C 55%, #241728 100%);
  border: 1px solid rgba(230, 210, 166, .35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(243, 226, 184, .05);
}
.tarot-room::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(230, 210, 166, .18);
  border-radius: 19px;
  pointer-events: none;
}
.tarot-room-copy { position: relative; z-index: 2; }
.tarot-room .eyebrow { color: var(--gold-soft); }
.tarot-room .eyebrow::before, .tarot-room .eyebrow::after { color: rgba(230, 210, 166, .6); }
.tarot-room h1 { color: #FBF0DC; margin: 10px 0 12px; }
.tarot-room h1 em { color: var(--gold-soft); }
.tarot-room-lead { color: rgba(246, 233, 210, .82); font-size: 17.5px; max-width: 46ch; }
.tarot-room-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.tarot-room-note { color: rgba(246, 233, 210, .55); font-size: 13px; margin: 0; max-width: 46ch; }
.btn-gold {
  background: linear-gradient(180deg, #E6D2A6, #C9A25E);
  border-color: #C9A25E; color: #24180F;
  box-shadow: 0 10px 26px rgba(201, 162, 94, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover { background: linear-gradient(180deg, #F3E2B8, #D8BC8C); border-color: #E6D2A6; box-shadow: 0 12px 30px rgba(201, 162, 94, .38); }
.btn-outline { background: transparent; border: 1px solid rgba(230, 210, 166, .5); color: #F0DDBB; box-shadow: none; }
.btn-outline:hover { background: rgba(230, 210, 166, .1); border-color: var(--gold-soft); box-shadow: none; }

.tarot-fan { position: relative; height: 280px; z-index: 1; }
.tarot-fan-card {
  position: absolute; top: 50%; left: 50%;
  width: 158px; border-radius: 12px;
  border: 1px solid rgba(230, 210, 166, .5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .6), 0 0 30px -8px rgba(201, 162, 94, .25);
  transform-origin: 50% 92%;
}
.tarot-fan-card.f1 { transform: translate(-50%, -46%) rotate(-14deg) translateX(-64px); }
.tarot-fan-card.f2 { transform: translate(-50%, -52%) rotate(-1deg); z-index: 2; }
.tarot-fan-card.f3 { transform: translate(-50%, -46%) rotate(14deg) translateX(64px); }
.tarot-fan-star { position: absolute; color: var(--gold-soft); opacity: .8; font-size: 15px; }
.tarot-fan-star.s1 { top: 6%; left: 4%; font-size: 12px; }
.tarot-fan-star.s2 { top: 16%; right: 2%; }
.tarot-fan-star.s3 { bottom: 6%; left: 46%; font-size: 11px; }

.tarot-table {
  position: relative;
  margin-top: 26px;
  background:
    radial-gradient(520px 280px at 90% -10%, rgba(139, 107, 184, .13), transparent 60%),
    linear-gradient(168deg, rgba(32, 25, 50, .72), rgba(20, 15, 31, .6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .06);
  padding: 30px 32px 34px;
}
.tarot-table::before, .tarot-table::after {
  content: "✦"; position: absolute; top: 12px; color: var(--gold); font-size: 12px;
}
.tarot-table::before { left: 16px; }
.tarot-table::after { right: 16px; }
.tarot-table-head { text-align: center; margin-bottom: 20px; }
.tarot-table-head h2 { margin: 6px 0 0; font-size: 26px; }
.tarot-form .calc-form { max-width: none; grid-template-columns: 1fr 1fr; display: grid; }
.tarot-form .span-2 { grid-column: 1 / -1; }
.tarot-form textarea { min-height: 92px; resize: vertical; }
.tarot-form .btn { justify-self: start; padding: 12px 26px; }

.tarot-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-top: 26px; }
.tarot-door {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(34, 26, 52, .75), rgba(20, 15, 31, .6));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .06);
  color: var(--text); text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.tarot-door:hover {
  transform: translateY(-3px); border-color: var(--border-strong); text-decoration: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 34px -10px rgba(201, 162, 94, .3);
}
.tarot-door-glyph {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(243, 226, 184, .45), transparent 45%),
    #191225;
  color: var(--gold-soft); font-size: 19px;
  border: 1px solid var(--gold);
  margin-bottom: 4px;
  box-shadow: 0 4px 16px rgba(201, 162, 94, .3);
}
.tarot-door strong { font-size: 18px; font-weight: 600; color: var(--text-strong); }
.tarot-door small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.tarot-today {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 26px; padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(201, 162, 94, .15), transparent 65%),
    linear-gradient(168deg, rgba(32, 25, 50, .72), rgba(20, 15, 31, .6));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .06);
}
.tarot-today-img {
  width: 112px; border-radius: 12px; border: 1px solid var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55), 0 0 26px -8px rgba(201, 162, 94, .3);
}
.tarot-today-copy { flex: 1 1 260px; }
.tarot-today-copy h2 { margin: 4px 0 6px; }
.tarot-today-copy p { margin: 0 0 8px; color: var(--muted); }
.tarot-today-copy .eyebrow { color: var(--gold); }
.text-link { color: var(--gold-soft); font-weight: 700; }
.text-link:hover { color: var(--gold-bright); }

/* ---------- Journal / historikk ---------- */
.journal-head { margin-bottom: 8px; }
.journal-cta { margin: 18px 0 26px; }
.panel {
  background: linear-gradient(168deg, rgba(32, 25, 50, .72), rgba(20, 15, 31, .6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 226, 184, .06);
  padding: 22px 24px;
}
.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.history-list { padding: 0; overflow: hidden; }
.history-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: 0; }
.history-date { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.history-main strong { font-size: 17px; font-weight: 600; color: var(--text-strong); }
.history-main p { color: var(--muted); font-size: 12.5px; margin: 4px 0 8px; }
.history-actions { align-self: start; }
.mini-cards { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-cards span {
  background: rgba(201, 162, 94, .12);
  border: 1px solid rgba(230, 210, 166, .28);
  border-radius: 999px; padding: 3px 9px;
  font-size: 11px; color: var(--gold-soft);
}
.text-btn {
  background: transparent; border: 0; padding: 4px 2px;
  color: var(--gold-soft); font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(230, 210, 166, .35);
}
.text-btn:hover { color: var(--gold-bright); }
.journal-detail {
  grid-column: 1 / -1;
  margin-top: 6px; padding-top: 16px;
  border-top: 1px dashed rgba(230, 210, 166, .25);
}
.journal-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.journal-card { display: flex; flex-direction: column; gap: 4px; width: 104px; }
.journal-card img {
  width: 84px; border-radius: 8px; border: 1px solid var(--border-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .5);
}
.journal-card strong { font-size: 12.5px; line-height: 1.35; color: var(--text-strong); }
.journal-card small { color: var(--muted); font-size: 11px; }
.journal-detail p { font-size: 14.5px; }
.journal-delete { color: var(--muted); margin-top: 6px; }
.recurring h3 { margin: 7px 0 14px; font-size: 21px; color: var(--text-strong); }
.recurring-card { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.recurring-card:last-child { border-bottom: 0; }
.recurring-card strong, .recurring-card span { display: block; }
.recurring-card strong { font-size: 14.5px; color: var(--text-strong); }
.recurring-card span { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.mini-deck-card {
  width: 34px; height: 52px; flex: 0 0 auto;
  border-radius: 5px;
  background: linear-gradient(160deg, #3B2A55, #150E1C);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: .02em;
}
.journal-empty { text-align: center; padding: 48px 24px; }
.journal-empty-glyph { display: block; font-size: 26px; color: var(--gold); margin-bottom: 10px; }
.journal-empty h2 { margin-top: 0; }
.journal-empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 18px; }
.journal-tools { margin-top: 16px; text-align: right; }
.journal-clear { color: var(--muted); }
.journal-note { margin: 10px 0 0; color: var(--gold-soft); font-size: 13.5px; }
.journal-note a { font-weight: 700; }

/* ---------- medaljer, taler og duetter ---------- */
.num-coin {
  width: 62px; height: 62px; flex: 0 0 auto;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(243, 226, 184, .5), transparent 45%),
    #171026;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 20px rgba(201, 162, 94, .3), inset 0 1px 0 rgba(243, 226, 184, .35);
  color: var(--gold-bright);
  font-size: 22px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.num-card { align-items: flex-start; }
.coin-hero { width: 96px; height: 96px; font-size: 40px; }
.hero-num h1 { margin: 6px 0 0; font-size: clamp(30px, 4.4vw, 50px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.pair-duet { justify-content: space-around; text-align: center; }
.duet-side {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.duet-side strong { font-size: 20px; color: var(--text-strong); }
.duet-side small {
  color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: .16em;
}
.duet-glyph { font-size: 56px; }
.duet-x {
  flex: 0 0 auto; color: var(--gold); font-size: 26px;
  text-shadow: 0 0 18px rgba(243, 226, 184, .6);
  position: relative; z-index: 1;
}
.dream-hero .dream-glyph { font-size: 52px; }
.dream-hero h1 { margin: 6px 0 0; }
.dream-cat h2 {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cat-count {
  min-width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(230, 210, 166, .3);
  background: rgba(201, 162, 94, .1);
  color: var(--gold-soft);
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.dream-cat .sign-card strong::before {
  content: "✦"; margin-right: 7px;
  color: var(--gold);
  font-size: 12px;
}

@media (max-width: 700px) {
  .topbar-inner { padding: 10px 14px; gap: 12px; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav:not([hidden]) { display: flex; }
  .page { padding: 0 14px; }
  main { padding: 30px 0 70px; }
  .card { padding: 20px; }
}
@media (max-width: 860px) {
  .tarot-room { grid-template-columns: 1fr; padding: 32px 26px 26px; }
  .tarot-fan { height: 200px; order: -1; }
  .tarot-fan-card { width: 112px; }
  .tarot-fan-card.f1 { transform: translate(-50%, -46%) rotate(-12deg) translateX(-46px); }
  .tarot-fan-card.f3 { transform: translate(-50%, -46%) rotate(12deg) translateX(46px); }
  .history-layout { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; gap: 10px; }
  .history-date { order: -1; }
  .history-actions { justify-self: start; }
  .tarot-form .calc-form { grid-template-columns: 1fr; }
  .tarot-today { gap: 16px; }
}
