/* ==========================================================
   Rjukan LAN – hovedstil
   ========================================================== */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #05070a;
  --bg-2: #0a0f0c;
  --panel: #0b1410;
  --line: #133a20;
  --line-2: #1d5a31;
  --text: #e6f2ea;
  --muted: #8fa89a;
  --green: #00ff66;
  --green-2: #00cc52;
  --green-dim: #0a3d1d;
  --red: #ff4d5e;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --glow: 0 0 6px rgba(0,255,102,.55), 0 0 22px rgba(0,255,102,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: #7dffb0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Topp ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
}
.page-sub .site-header {
  position: sticky; top: 0;
  background: rgba(5,7,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { flex: none; display: block; transition: transform .2s ease, opacity .2s; }
.brand-logo:hover { transform: translateY(-1px); opacity: .9; }
.brand-logo img { height: 46px; width: auto; max-width: 160px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; color: var(--text); min-width: 0; }
.brand-presents { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.brand-event { font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text:hover .brand-event { color: var(--green); }

/* Nedtrekksmeny */
.menu { position: relative; flex: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .95rem var(--sans); color: var(--text);
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { border-color: var(--green); background: rgba(0,0,0,.7); }
.menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: rgba(8,12,10,.97); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.menu.open .menu-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-list a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.menu-list a:hover, .menu-list a:focus-visible { background: var(--green-dim); color: var(--green); }
.menu-list a[aria-current="page"] { color: var(--green); }
.menu-list a[aria-current="page"]::before { content: "> "; font-family: var(--mono); }

/* ---------- Forside ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; text-align: center;
  padding: 110px var(--gutter) 80px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-color: #000; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.04); animation: heroZoom 30s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,calc(var(--overlay) * .55)) 0%, rgba(0,0,0,var(--overlay)) 70%),
    linear-gradient(to bottom, rgba(5,7,10,.55) 0%, transparent 25%, transparent 70%, rgba(5,7,10,.9) 100%);
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-inner { max-width: 960px; width: 100%; }

.countdown-label {
  margin: 0 0 14px; font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-transform: uppercase; letter-spacing: .3em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: clamp(6px, 2vw, 22px); }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(62px, 15vw, 150px); }
.cd-num {
  font-family: var(--mono); font-weight: 700; line-height: 1;
  font-size: clamp(2.6rem, 11vw, 7.5rem); color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 2px #fff, 0 0 18px rgba(0,255,102,.55), 0 4px 30px rgba(0,0,0,.6);
}
.cd-lbl { margin-top: 10px; font-size: clamp(.7rem, 1.6vw, .9rem); color: var(--green); text-transform: uppercase; letter-spacing: .25em; font-family: var(--mono); }
.cd-sep { font-family: var(--mono); font-size: clamp(2rem, 8vw, 5.5rem); line-height: 1.05; color: var(--green); opacity: .7; }
.countdown.done .cd-unit, .countdown.done .cd-sep { display: none; }
.countdown-done-text { font-family: var(--mono); font-size: clamp(2rem, 7vw, 4.5rem); color: var(--green); text-shadow: var(--glow); }
.countdown-date { margin: 18px 0 0; color: rgba(255,255,255,.8); font-size: clamp(.9rem, 2vw, 1.05rem); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
@keyframes blink { to { visibility: hidden; } }

.booking-cta { display: flex; flex-direction: column; align-items: center; }
.el-date { margin-top: clamp(30px, 6vh, 56px); display: flex; justify-content: center; }
.date-box {
  display: inline-block; margin: 0 0 16px; padding: .5em 1.1em;
  font-family: var(--mono); font-weight: 700; font-size: clamp(1rem, 3vw, 1.4rem);
  text-transform: uppercase; letter-spacing: .12em; color: #fff;
  border: 2px solid var(--green); border-radius: 6px; background: rgba(0,20,8,.55);
  box-shadow: inset 0 0 18px rgba(0,255,102,.12); text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.matrix-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  color: var(--green); text-decoration: none; text-transform: uppercase; letter-spacing: .12em;
  padding: .45em 1.1em; border: 2px solid var(--green); border-radius: 6px;
  background: rgba(0,20,8,.55); text-shadow: var(--glow);
  box-shadow: inset 0 0 18px rgba(0,255,102,.12), 0 0 24px rgba(0,255,102,.2);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
a.matrix-link:hover, a.matrix-link:focus-visible {
  background: var(--green); color: #001a09; text-shadow: none; transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,255,102,.55);
}
.ml-bracket { opacity: .75; }
.ml-cursor { animation: blink 1s steps(2, start) infinite; }
.matrix-link.is-soldout { color: var(--red); border-color: var(--red); text-shadow: 0 0 12px rgba(255,77,94,.6); box-shadow: 0 0 24px rgba(255,77,94,.2); cursor: default; }
.matrix-link.is-disabled { color: var(--muted); border-color: var(--muted); text-shadow: none; box-shadow: none; font-size: clamp(1rem, 3vw, 1.4rem); cursor: default; }
.tickets-left { margin: 14px 0 0; font-family: var(--mono); color: rgba(255,255,255,.85); font-size: .95rem; text-shadow: 0 2px 8px #000; }

.page-home:not(.has-news) .site-footer { position: absolute; bottom: 0; left: 0; right: 0; background: none; border: 0; }
.page-home main { position: relative; }

/* Nyheter på forsiden: nedtellingen blir liggende og forsvinner bak nyhetene */
.has-news .hero { position: sticky; top: 0; z-index: 0; --p: 0; }
.has-news .hero-inner {
  opacity: calc(1 - var(--p) * 1.4);
  transform: translateY(calc(var(--p) * -70px)) scale(calc(1 - var(--p) * .22));
  filter: blur(calc(var(--p) * 6px));
  will-change: transform, opacity;
}
.has-news .hero::after { opacity: calc(1 + var(--p)); }
.scroll-hint {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--green); text-decoration: none; font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .25em; text-shadow: 0 2px 8px #000;
  opacity: calc(1 - var(--p) * 5); transition: color .2s;
}
.scroll-hint span { padding-left: .25em; }
.scroll-hint svg { animation: hintBounce 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(0,255,102,.6)); }
.scroll-hint:hover { color: #fff; }
@keyframes hintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.home-news {
  position: relative; z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -30px 60px rgba(0,0,0,.6), 0 -1px 0 rgba(0,255,102,.25);
  padding: clamp(48px, 8vw, 90px) var(--gutter) clamp(56px, 8vw, 96px);
  scroll-margin-top: 0;
}
.home-news::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(420px, 60%); height: 2px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--green), transparent); box-shadow: 0 0 18px var(--green);
}
.home-news-inner { max-width: 1100px; margin: 0 auto; }
.home-news-title { margin: 0 0 clamp(22px, 4vw, 36px); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; }
.home-news-title::before { content: "> "; color: var(--green); font-family: var(--mono); font-weight: 400; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.news-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.news-card.is-latest { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.news-card.is-latest:not(:has(.news-img)) { grid-template-columns: 1fr; }
.news-img { display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.news-card.is-latest .news-img { aspect-ratio: auto; min-height: 260px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card.is-latest .news-body { padding: clamp(20px, 3vw, 32px); justify-content: center; }
.news-date { font-family: var(--mono); font-size: .8rem; color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
.news-body h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.news-card.is-latest h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.news-body h3 a { color: var(--text); text-decoration: none; }
.news-body h3 a:hover { color: var(--green); }
.news-body p { margin: 0; color: var(--muted); flex: 1; }
.news-more { margin-top: 6px; font-weight: 500; text-decoration: none; align-self: flex-start; }
.news-all { margin: 28px 0 0; text-align: center; }

/* Nyhetssiden */
.narrow-news { max-width: 800px; }
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-post { padding: clamp(20px, 4vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 100px; }
.news-post:target { border-color: var(--green); box-shadow: 0 0 0 1px rgba(0,255,102,.25), 0 0 30px rgba(0,255,102,.12); }
.news-post h2 { margin: 4px 0 14px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.2; }
.news-post-img { width: 100%; border-radius: 12px; margin: 0 0 16px; }
.news-text { color: #cfe2d6; }
.news-text p { margin: 0 0 .9em; }
.news-text p:last-child { margin-bottom: 0; }

/* ---------- Bestillingsskjema ---------- */
dialog.booking {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--panel); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,255,102,.08);
}
dialog.booking[open] { display: flex; animation: popIn .22s ease-out; }
dialog.booking::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.booking-form { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 24px); }
.booking-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.booking-head h2 { margin: 0; font-size: 1.3rem; }
.booking-head h2::before { content: "> "; color: var(--green); font-family: var(--mono); }
.booking-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.booking-close:hover { border-color: var(--green); color: var(--green); }
.booking-body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.booking-intro { margin: 0 0 16px; color: var(--muted); }
.booking-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25);
}
.total { font-size: 1rem; color: var(--muted); }
.total strong { color: #fff; font-size: 1.25rem; margin-left: 6px; }
.pay-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.qty-row > label { font-weight: 500; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty input { width: 56px; text-align: center; border: 0; border-radius: 0; background: var(--bg); font-family: var(--mono); font-size: 1.1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 42px; border: 0; background: var(--green-dim); color: var(--green); font-size: 1.3rem; cursor: pointer; }
.qty-btn:hover { background: var(--line-2); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-left { font-family: var(--mono); color: var(--green); font-size: .9rem; }

fieldset.ticket {
  margin: 0 0 14px; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0,0,0,.22); animation: popIn .2s ease-out;
}
fieldset.ticket legend { padding: 0 8px; font-weight: 700; }
.t-num { font-family: var(--mono); color: var(--green); }
.t-note { color: var(--muted); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.span2 { grid-column: 1 / -1; }
.booking label, .form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: #cfe2d6; margin-bottom: 8px; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,255,102,.15); }
input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,77,94,.15); }
.guardian { margin-top: 4px; padding: 12px 14px 4px; border-radius: 10px; background: rgba(0,255,102,.05); border: 1px dashed var(--line-2); }
.guardian-title { margin: 0 0 10px; font-weight: 500; color: var(--green); font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.link-btn:hover { color: var(--green); }
label.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin: 8px 0 4px; cursor: pointer; }
label.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--green); }
.form-errors { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,77,94,.1); border: 1px solid rgba(255,77,94,.4); color: #ffc2c8; font-size: .92rem; }
.form-errors ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 0; cursor: pointer;
  font: 700 1rem var(--sans); transition: transform .15s, filter .15s, opacity .15s;
}
.btn-pay:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-pay:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-vipps { background: #ff5b24; color: #fff; }
.btn-card { background: #fff; color: #111; }
.btn-confirm { background: var(--green); color: #001a09; }

/* ---------- Undersider ---------- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter); }
.page-wrap.narrow { max-width: 640px; }
.page-head { margin-bottom: clamp(26px, 5vw, 48px); max-width: 760px; }
.page-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.page-title { margin: 0 0 10px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; font-weight: 700; }
.page-title::before { content: "> "; color: var(--green); font-family: var(--mono); font-weight: 400; }
.page-intro { color: var(--muted); font-size: 1.05rem; }
.page-intro p { margin: 0 0 .6em; }
.page-intro.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: #d3e6da; }
.empty { padding: 30px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* FAQ */
.page-faq { background: #000; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #000; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: var(--line-2); }
.faq-item.open { border-color: var(--green); box-shadow: 0 0 0 1px rgba(0,255,102,.2), 0 0 30px rgba(0,255,102,.12); }
.faq-q { margin: 0; font-size: 1rem; }
.faq-q button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 18px 20px; background: none; border: 0; cursor: pointer;
  font: 500 clamp(1rem, 2.2vw, 1.12rem) var(--mono); color: var(--green);
}
.faq-prompt { opacity: .6; }
.faq-text { flex: 1; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--green); transition: transform .25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; padding: 0 20px 0 46px; font-family: var(--mono); color: #41ff8a; font-size: .97rem; line-height: 1.7; }
.faq-item.open .faq-a-inner { padding-bottom: 18px; }
.faq-a-inner p { margin: 0 0 .7em; }
.faq-a-inner a { color: #b4ffd0; }

/* Sponsorer */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sponsor-card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sponsor-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.sponsor-logo { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; background: #fff; }
.sponsor-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sponsor-initials { font: 700 2.4rem var(--mono); color: #0b1410; opacity: .4; }
.sponsor-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sponsor-body h2 { margin: 0 0 6px; font-size: 1.2rem; }
.sponsor-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.sponsor-desc p { margin: 0 0 .6em; }
.sponsor-link { margin-top: 8px; font-weight: 500; text-decoration: none; }

/* Kontakt / CREW */
.crew-title {
  margin: 0 0 12px; font-size: clamp(3.2rem, 13vw, 7rem); font-weight: 700; line-height: 1;
  letter-spacing: .08em; color: #fff; text-shadow: 0 0 30px rgba(0,255,102,.35);
}
.crew-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.crew-grid > .crew-card { flex: 0 1 190px; }
.page-contact .page-wrap { max-width: 1180px; }
.crew-card { text-align: center; padding: 22px 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform .2s, border-color .2s; }
.crew-card:hover { transform: translateY(-3px); border-color: var(--green); }
.crew-photo { width: min(160px, 70%); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 3px solid var(--green); box-shadow: 0 0 24px rgba(0,255,102,.25); background: var(--bg); }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-name { margin: 0; font-size: 1.15rem; }
.crew-role { margin: 2px 0 8px; font-family: var(--mono); color: var(--green); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.crew-desc { color: var(--muted); font-size: .92rem; }
.crew-desc p { margin: 0 0 .5em; }
.contact-box { margin: clamp(40px, 7vw, 70px) auto 0; max-width: 680px; text-align: center; padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, rgba(0,255,102,.06), transparent); }
.contact-box h2 { margin: 0 0 8px; }
.contact-box p { margin: 0 0 .6em; color: var(--muted); }
.contact-lines { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 1.1rem; font-weight: 500; }

/* Resultat etter bestilling */
.result-card { text-align: center; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.result-card .page-title::before { content: none; }
.result-icon { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; }
.result-icon.ok { background: var(--green); color: #001a09; box-shadow: 0 0 40px rgba(0,255,102,.45); }
.result-icon.bad { background: var(--red); color: #fff; }
.result-icon.spin { border: 4px solid var(--line-2); border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ticket-list { list-style: none; padding: 0; margin: 20px 0; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ticket-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.ticket-list li:last-child { border-bottom: 0; }
.ticket-list code { font-weight: 700; font-size: 1.05rem; }
.btn-outline { display: inline-block; margin-top: 8px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 10px; text-decoration: none; font-weight: 500; }
.btn-outline:hover { background: var(--green); color: #001a09; }

/* ---------- Bunn ---------- */
.site-footer { padding: 22px var(--gutter); text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }
.page-home .site-footer { color: rgba(255,255,255,.55); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .news-card.is-latest { grid-template-columns: 1fr; }
  .news-card.is-latest .news-img { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
  .quick-links { gap: 8px; }
  .quick-links a { font-size: .7rem; letter-spacing: .03em; padding: 13px 4px; gap: 4px; white-space: nowrap; }
  .quick-links a span { display: none; }
  .date-box { font-size: .88rem; letter-spacing: .05em; padding: .55em .9em; }
  .crew-grid > .crew-card { flex: 1 1 150px; max-width: 220px; }
  .brand-logo img { height: 36px; max-width: 110px; }
  .brand { gap: 10px; }
  .brand-event { font-size: .98rem; }
  .menu-label { display: none; }
  .menu-toggle { padding: 11px; }
  .cd-sep { display: none; }
  .countdown { gap: 4px; }
  .cd-unit { min-width: 0; flex: 1; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .booking-head, .booking-body, .booking-foot { padding-left: 16px; padding-right: 16px; }
  .pay-buttons, .btn-pay { width: 100%; }
  .booking-foot { flex-direction: column; align-items: stretch; }
  dialog.booking { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .booking-form { max-height: 100dvh; height: 100%; }
  .booking-body { flex: 1; }
}
@media (max-width: 380px) {
  .brand-presents { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .has-news .hero-inner { transform: none !important; filter: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Salgsvilkår og firmainfo ---------- */
.price-line { margin: 6px 0 0; font-family: var(--mono); color: var(--green); font-size: .95rem; text-shadow: 0 2px 8px #000; }
.booking-terms-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.5; color: var(--muted); }
.booking-terms-note a, label.check a { white-space: nowrap; }
.terms { display: flex; flex-direction: column; gap: 4px; }
.terms-section { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.terms-section h2 { margin: 0 0 8px; font-size: 1.15rem; }
.terms-section p { margin: 0 0 .7em; color: #cfe2d6; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-company { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.terms-company h2 { margin: 0 0 10px; font-size: 1.1rem; }
.terms-company dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.terms-company dt { color: var(--muted); }
.terms-company dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.site-footer { display: flex; flex-direction: column; gap: 6px; }
.company-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.site-footer a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--green); }

/* ---------- Nyhet som popup på forsiden ---------- */
.news-card[data-news] { cursor: pointer; }
dialog.news-modal {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--panel); color: var(--text); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,255,102,.08);
}
dialog.news-modal[open] { animation: popIn .22s ease-out; }
dialog.news-modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.news-modal-box { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.news-modal-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2; background: rgba(5,7,10,.85); }
.news-modal-content { padding: clamp(22px, 4vw, 36px); }
.news-modal-content > h2 { margin: 6px 0 16px; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; padding-right: 40px; }
.news-modal-img { width: 100%; border-radius: 12px; margin: 0 0 18px; }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) {
  dialog.news-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .news-modal-box { max-height: 100dvh; height: 100%; }
}

/* ---------- Snarveier på forsiden ---------- */
.quick-links {
  margin: clamp(32px, 6vh, 52px) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 210px)); gap: 14px; justify-content: center;
  max-width: 100%;
}
.quick-links a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0;
  padding: 14px 16px; border: 1px solid rgba(0,255,102,.45); border-radius: 6px;
  background: rgba(0,20,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-family: var(--mono); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em;
  color: #fff; text-decoration: none; text-shadow: 0 2px 8px rgba(0,0,0,.8);
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.quick-links a span { color: var(--green); transition: transform .2s; }
.quick-links a:hover, .quick-links a:focus-visible {
  border-color: var(--green); background: rgba(0,255,102,.12); color: var(--green);
  transform: translateY(-2px); box-shadow: 0 0 24px rgba(0,255,102,.2);
}
.quick-links a:hover span { transform: translateX(3px); }
@media (max-width: 430px) {
  .quick-links a { font-size: .64rem; letter-spacing: 0; }
}

/* ---------- Fri plassering (lagres i admin → Forside-oppsett) ---------- */
@media (min-width: 761px) {
  .hero.free-desktop .hero-inner { position: absolute; inset: 0; max-width: none; }
  .hero.free-desktop [data-el] { position: absolute; margin: 0; transform: translate(-50%, -50%) scale(var(--s, 1)); width: max-content; max-width: 96%; }
  .hero.free-desktop [data-el="countdown"] { width: min(96%, 1100px); }
  .hero.free-desktop [data-el="links"] { grid-template-columns: repeat(3, 210px); }
  .hero.free-desktop .date-box { margin: 0; }
}
@media (max-width: 760px) {
  .hero.free-mobile .hero-inner { position: absolute; inset: 0; max-width: none; }
  .hero.free-mobile [data-el] { position: absolute; margin: 0; transform: translate(-50%, -50%) scale(var(--s, 1)); width: max-content; max-width: 96%; }
  .hero.free-mobile [data-el="countdown"], .hero.free-mobile [data-el="links"] { width: 96%; }
  .hero.free-mobile .date-box { margin: 0; }
}
.layout-editing [data-el] { outline: 2px dashed rgba(0,255,102,.65); outline-offset: 6px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.layout-editing [data-el]:hover { outline-color: #fff; }
.layout-editing [data-el].dragging { cursor: grabbing; outline-style: solid; outline-color: #fff; z-index: 5; }
.layout-editing [data-el] * { pointer-events: none; }
.layout-editing .hero-inner { opacity: 1 !important; filter: none !important; transform: none !important; }
.layout-guide { position: absolute; z-index: 4; background: #ff3df0; pointer-events: none; display: none; }
.layout-guide.v { top: 0; bottom: 0; width: 1px; left: 50%; }
.layout-guide.h { left: 0; right: 0; height: 1px; top: 50%; }
.layout-tag { display: none; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); background: #00ff66; color: #001a09; font: 700 11px/1 var(--sans); padding: 4px 7px; border-radius: 4px; white-space: nowrap; letter-spacing: 0; text-transform: none; text-shadow: none; }
.layout-editing [data-el]:hover .layout-tag, .layout-editing [data-el].dragging .layout-tag { display: block; }

/* Popup for FAQ, Sponsorer og Kontakt oss */
dialog.news-modal.is-wide { width: min(1080px, calc(100vw - 24px)); }
.modal-page .page-head { margin-bottom: 24px; padding-right: 40px; }
.modal-page .page-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.modal-page .crew-title { font-size: clamp(2.6rem, 9vw, 4.5rem); }
.modal-page .faq-list { max-width: none; }
.modal-page .contact-box { margin-top: 32px; }
.modal-page .sponsor-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.layout-handle { display: none; }
.layout-editing .layout-handle {
  display: block; position: absolute; right: -14px; bottom: -14px; width: 18px; height: 18px; z-index: 6;
  border-radius: 50%; background: #00ff66; border: 3px solid #001a09; box-shadow: 0 0 0 1px #00ff66;
  cursor: nwse-resize; pointer-events: auto !important; touch-action: none; transform: scale(calc(1 / var(--s, 1)));
}
.layout-editing .layout-handle:hover { background: #fff; }
.modal-page .crew-grid > .crew-card { flex-basis: 172px; }
.modal-page .crew-photo { width: min(130px, 70%); }
@media (max-width: 640px) {
  .modal-page .crew-grid > .crew-card { flex: 1 1 130px; padding: 16px 10px; }
}

/* ---------- Discord-knapp nede i høyre hjørne ---------- */
.discord-fab {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(5,7,10,.88); border: 1px solid var(--line-2);
  box-shadow: 0 8px 26px rgba(0,0,0,.55), 0 0 0 0 rgba(0,255,102,.0);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.discord-fab img { width: 60%; height: 60%; object-fit: contain; }
.discord-fab:hover, .discord-fab:focus-visible { transform: translateY(-3px) scale(1.05); border-color: var(--green); box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 22px rgba(0,255,102,.35); }
.discord-fab-label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; padding: 7px 12px; border-radius: 8px;
  background: rgba(5,7,10,.95); border: 1px solid var(--line-2); color: var(--text);
  font: 500 .85rem var(--sans); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.discord-fab:hover .discord-fab-label, .discord-fab:focus-visible .discord-fab-label { opacity: 1; transform: translate(0, -50%); }
.layout-editing .discord-fab.global { display: none; }
@media (max-width: 640px) {
  .discord-fab { width: 50px; height: 50px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .discord-fab-label { display: none; }
}

/* ---------- Live-stripe (rullende oppdateringer) ---------- */
@keyframes tickerMove { to { transform: translateX(-50%); } }
.ticker {
  position: absolute; top: 0; left: 0; right: 0; z-index: 25; height: 36px;
  display: flex; align-items: stretch;
  background: rgba(0, 10, 4, .86); border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: .86rem;
}
.ticker[hidden] { display: none; }
body.page-home.has-ticker .site-header { top: 36px; }
.has-ticker .hero { padding-top: 146px; }
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: var(--green); color: #001a09; border: 0; cursor: pointer;
  font: 700 .78rem var(--mono); letter-spacing: .18em; text-transform: uppercase;
}
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: #001a09; animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .25; } }
.ticker-viewport {
  flex: 1; min-width: 0; overflow: hidden; cursor: pointer; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}
.ticker-track { display: flex; width: max-content; height: 100%; animation: tickerMove var(--dur, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-run { display: flex; align-items: center; flex: none; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 30px 0 0; white-space: nowrap; color: #e6f2ea; }
.ticker-item::after { content: "///"; color: var(--green-2); opacity: .45; margin-left: 30px; letter-spacing: -.1em; }
.ticker-item b, .upd-meta b { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; padding: 2px 6px; border-radius: 3px; border: 1px solid currentColor; }
.ticker-item time { color: var(--muted); }
.cat-info b { color: var(--green); }
.cat-konkurranse b { color: #ffd23f; }
.cat-viktig b { color: #ff5b6b; }

.updates-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.updates-list li {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: baseline;
  padding: 14px 16px; border-radius: 10px; background: rgba(0,0,0,.3);
  border: 1px solid var(--line); border-left: 3px solid var(--green);
}
.updates-list li.cat-konkurranse { border-left-color: #ffd23f; }
.updates-list li.cat-viktig { border-left-color: #ff5b6b; }
.upd-meta { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.upd-msg { color: var(--text); }
.upd-msg a { white-space: nowrap; }

/* ---------- Sponsorbanner over nyhetene ---------- */
.sponsor-strip {
  max-width: 1100px; margin: 0 auto clamp(40px, 6vw, 64px);
  display: flex; align-items: center; gap: 22px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.home-news > .sponsor-strip:last-child { margin-bottom: 0; }
.sponsor-strip-title {
  flex: none; margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green); white-space: nowrap;
}
.sponsor-strip-title::before { content: "> "; opacity: .6; }
.sponsor-strip-viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.sponsor-strip-track { display: flex; width: max-content; animation: tickerMove var(--dur, 40s) linear infinite; }
.sponsor-strip:hover .sponsor-strip-track, .sponsor-strip:focus-within .sponsor-strip-track { animation-play-state: paused; }
.sponsor-strip-run { display: flex; align-items: center; gap: 16px; padding: 4px 16px 4px 0; margin: 0; list-style: none; flex: none; }
.sponsor-chip {
  display: flex; align-items: center; justify-content: center; height: 62px; min-width: 128px; padding: 10px 18px;
  border-radius: 10px; text-decoration: none; transition: opacity .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.sponsor-chip img { max-height: 42px; max-width: 150px; width: auto; object-fit: contain; }
.sponsor-chip-name { font: 700 .95rem var(--sans); white-space: nowrap; }
.style-chips .sponsor-chip { background: rgba(255,255,255,.92); opacity: .8; }
.style-chips .sponsor-chip-name { color: #0b1410; }
.style-mono .sponsor-chip { background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.style-mono .sponsor-chip img { filter: brightness(0) invert(1); opacity: .72; }
.style-mono .sponsor-chip-name { color: #fff; opacity: .8; }
a.sponsor-chip:hover, a.sponsor-chip:focus-visible { opacity: 1; transform: translateY(-2px); box-shadow: 0 0 0 1px var(--green), 0 0 22px rgba(0,255,102,.3); }
.style-mono a.sponsor-chip:hover img { opacity: 1; }
.sponsor-strip.is-static .sponsor-strip-track { animation: none; width: 100%; }
.sponsor-strip.is-static .sponsor-strip-run[aria-hidden] { display: none; }
.sponsor-strip.is-static .sponsor-strip-run { flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; }

@media (max-width: 640px) {
  .ticker { height: 32px; font-size: .78rem; }
  body.page-home.has-ticker .site-header { top: 32px; }
  .has-ticker .hero { padding-top: 130px; }
  .ticker-label { padding: 0 10px; letter-spacing: .1em; }
  .updates-list li { grid-template-columns: 1fr; gap: 6px; }
  .sponsor-strip { flex-direction: column; align-items: stretch; gap: 10px; }
  .sponsor-strip-title { text-align: center; }
  .sponsor-chip { height: 52px; min-width: 104px; padding: 8px 14px; }
  .sponsor-chip img { max-height: 34px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .sponsor-strip-track { animation: none !important; }
}

/* Like store sponsorbrikker – logoen skaleres til å fylle firkanten */
.sponsor-chip { width: 168px; min-width: 0; height: 76px; padding: 12px 16px; flex: none; }
.sponsor-chip img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.sponsor-chip-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: center; white-space: normal; line-height: 1.2; }
@media (max-width: 640px) {
  .sponsor-chip { width: 128px; height: 60px; padding: 9px 12px; }
  .sponsor-chip img { max-height: none; max-width: none; }
}

/* Hva billetten inneholder (forsiden og bestillingsskjemaet) */
.ticket-includes { margin: 14px auto 0; max-width: 460px; text-align: left; font-family: var(--mono); font-size: .9rem; color: rgba(255,255,255,.9); text-shadow: 0 2px 8px #000; }
.ticket-includes .ti-title, .booking-includes .ti-title { margin: 0 0 6px; font-weight: 700; color: var(--green); text-align: center; }
.ticket-includes ul, .booking-includes ul { margin: 0; padding: 0; list-style: none; }
.ticket-includes li, .booking-includes li { position: relative; padding-left: 1.4em; margin: 3px 0; line-height: 1.45; }
.ticket-includes li::before, .booking-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.booking-includes { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: .92rem; }
.booking-includes .ti-title { text-align: left; }
.form-notice { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(0,255,102,.08); border: 1px solid rgba(0,255,102,.4); font-size: .92rem; }
@media (max-width: 640px) { .ticket-includes { font-size: .82rem; } }

/* ---------- Kiosk-knappen på forsiden ---------- */
.el-kiosk { margin-top: clamp(18px, 3vh, 28px); display: flex; justify-content: center; }
.kiosk-link {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .7em 1.5em; border: 2px solid var(--green); border-radius: 6px;
  background: rgba(0,20,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-family: var(--mono); font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.25rem);
  text-transform: uppercase; letter-spacing: .14em; color: #fff; text-decoration: none;
  text-shadow: 0 2px 8px rgba(0,0,0,.8); box-shadow: inset 0 0 14px rgba(0,255,102,.1);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.kiosk-link svg { color: var(--green); flex: none; transition: color .2s; }
.kiosk-link:hover, .kiosk-link:focus-visible {
  background: var(--green); color: #001a09; text-shadow: none; transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0,255,102,.45);
}
.kiosk-link:hover svg, .kiosk-link:focus-visible svg { color: #001a09; }
.hero.free-desktop .el-kiosk, .hero.free-mobile .el-kiosk { margin: 0; }

/* ---------- Kiosksiden ---------- */
.kiosk-wrap { padding-bottom: 120px; }
.kiosk-closed { margin: 0 0 24px; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,181,71,.4); background: rgba(255,181,71,.08); color: #ffe0ae; }
.kiosk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product:hover { border-color: var(--line-2); }
.product.in-cart { border-color: var(--green); box-shadow: 0 0 0 1px rgba(0,255,102,.25), 0 0 26px rgba(0,255,102,.12); }
.product-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 40%, #13241a, #070b09 75%); }
.product-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.product-initials { font: 700 2.4rem var(--mono); color: var(--line-2); }
.product.is-out .product-img img, .product.is-out .product-initials { opacity: .35; filter: grayscale(1); }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; background: var(--red); color: #fff; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.product-name { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.product-desc { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.product-meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-price { font: 700 1.2rem var(--mono); color: #fff; }
.product-stock { font-family: var(--mono); font-size: .8rem; color: var(--green); }
.product.is-out .product-stock { color: var(--red); }
.product-buy { min-height: 44px; display: flex; }
.btn-add {
  flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--green); cursor: pointer;
  background: transparent; color: var(--green); font: 700 .95rem var(--sans); transition: background .15s, color .15s;
}
.btn-add:hover:not(:disabled), .btn-add:focus-visible { background: var(--green); color: #001a09; }
.btn-add:disabled { border-color: var(--line-2); color: var(--muted); cursor: not-allowed; }
.product-qty { flex: 1; justify-content: space-between; }
.product-qty[hidden], .btn-add[hidden], .cart-bar[hidden] { display: none; }
.product-qty .qty-btn { width: 52px; }
.qty-val { display: grid; place-items: center; flex: 1; min-width: 40px; font: 700 1.1rem var(--mono); background: var(--bg); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }

.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(5,7,10,.94); border-top: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: popIn .2s ease-out;
}
.cart-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cart-sum { color: var(--muted); }
.cart-sum strong { color: #fff; font-size: 1.15rem; }
body.has-cartbar .discord-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

.cart-lines { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto 90px; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.22); }
.cart-lines li:last-child { border-bottom: 0; }
.cl-name { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.cl-qty .qty-btn { width: 34px; height: 34px; font-size: 1.1rem; }
.cl-qty .qty-val { min-width: 34px; font-size: 1rem; }
.cl-sum { text-align: right; font-family: var(--mono); }

.pickup-code { margin: 20px auto; padding: 18px; max-width: 320px; border: 2px dashed var(--green); border-radius: 14px; background: rgba(0,255,102,.06); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pickup-lbl { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
.pickup-code strong { font: 700 clamp(2.6rem, 12vw, 3.6rem)/1.1 var(--mono); color: var(--green); text-shadow: var(--glow); letter-spacing: .06em; }
.pickup-done { margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: var(--green-dim); color: var(--green); font-size: .85rem; font-weight: 500; }
.pickup-code.is-delivered { border-style: solid; border-color: var(--line-2); }
.pickup-code.is-delivered strong { color: var(--muted); text-shadow: none; }
.receipt-list .receipt-total { font-weight: 700; background: rgba(0,255,102,.06); }

@media (max-width: 640px) {
  .kiosk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 12px; gap: 6px; }
  .product-name { font-size: .95rem; }
  .product-desc { display: none; }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 0; }
  .product-price { font-size: 1.05rem; }
  .product-qty .qty-btn { width: 40px; }
  .btn-add { font-size: .85rem; }
  .cart-bar-inner .btn-pay { width: auto; }
  .cart-lines li { grid-template-columns: 1fr auto; }
  .cl-sum { grid-column: 1 / -1; text-align: left; margin-top: -4px; color: var(--muted); font-size: .9rem; }
}

.receipt-seat { margin: 0 0 10px; font-size: 1.05rem; }
.receipt-seat span { color: var(--muted); }
.receipt-seat strong { color: #fff; }

/* ---------- Discord-knappen kan flyttes på forsiden (Forside-oppsett) ---------- */
.discord-fab.in-hero { display: none; }
.layout-editing .discord-fab.in-hero { display: flex; }
@media (min-width: 761px) {
  .hero.free-desktop .discord-fab.in-hero { display: flex; position: absolute; right: auto; bottom: auto; width: 58px; max-width: none; z-index: 3; }
  .hero.free-desktop .discord-fab.in-hero:hover, .hero.free-desktop .discord-fab.in-hero:focus-visible { transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.06)); }
  body.discord-free-desktop .discord-fab.global { display: none; }
}
@media (max-width: 760px) {
  .hero.free-mobile .discord-fab.in-hero { display: flex; position: absolute; right: auto; bottom: auto; width: 50px; max-width: none; z-index: 3; }
  .hero.free-mobile .discord-fab.in-hero:hover { transform: translate(-50%, -50%) scale(var(--s, 1)); }
  body.discord-free-mobile .discord-fab.global { display: none; }
}

/* ---------- Logo-størrelse på forsiden (Forside-oppsett) ---------- */
.page-home .brand-logo img { height: calc(46px * var(--logo-s, 1)); max-width: calc(160px * var(--logo-s, 1)); }
@media (max-width: 640px) {
  .page-home .brand-logo img { height: calc(36px * var(--logo-s, 1)); max-width: calc(110px * var(--logo-s, 1)); }
}
.layout-editing [data-scale-el] { position: relative; outline: 2px dashed rgba(0,255,102,.65); outline-offset: 6px; }
.layout-editing [data-scale-el]:hover { outline-color: #fff; }
.layout-editing [data-scale-el] .layout-tag { top: auto; bottom: -32px; }
.layout-editing [data-scale-el]:hover .layout-tag, .layout-editing [data-scale-el].dragging .layout-tag { display: block; }
.layout-editing [data-scale-el] .layout-handle { transform: none; }
