/* Forsiden for besøkende uten konto (home-guest.js). Klassene har gh-prefiks.
 * Farger: blå aksent fra resten av siden, fiolett og gull for sjeldne treff. */
@property --gh-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --gh-p { syntax: '<number>'; inherits: false; initial-value: .12; }

#home .gh-sr, .gh-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scenen og bunnteksten går i full bredde med 100vw, som også teller med rullefeltet.
   Uten dette kunne forsiden rulles noen piksler sidelengs. */
html:has(#home:not([hidden])) { overflow-x: clip; }

/* ---------------------------------------------------------------- hero */
.gh-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 12px 28px;
  min-height: 640px; padding: 8px 0 28px;
}
/* Bakgrunnen går i hele vindusbredden. html{zoom:.9} skalerer vw, derfor delt på --page-zoom. */
.gh-stage {
  position: absolute; top: -28px; bottom: -20px; left: 50%; z-index: 0;
  width: calc(100vw / var(--page-zoom, 1)); transform: translateX(-50%);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.gh-aurora {
  position: absolute; left: 50%; top: 45%; width: 1500px; height: 1000px; translate: -50% -50%;
  background:
    radial-gradient(closest-side at 62% 46%, rgba(71, 159, 235, .22), transparent 70%),
    radial-gradient(closest-side at 78% 62%, rgba(157, 123, 255, .16), transparent 70%),
    radial-gradient(closest-side at 30% 40%, rgba(61, 220, 151, .06), transparent 70%);
  animation: gh-aurora 26s ease-in-out infinite alternate;
}
@keyframes gh-aurora { to { transform: rotate(14deg) scale(1.12); } }
.gh-hero.ripping .gh-aurora {
  background:
    radial-gradient(closest-side at 64% 46%, color-mix(in srgb, var(--tier, #479feb) 34%, transparent), transparent 70%),
    radial-gradient(closest-side at 78% 62%, rgba(157, 123, 255, .16), transparent 70%);
  transition: background .6s;
}
.gh-drift { position: absolute; inset: 0; }

/* Premier som driver forbi (fra den gamle heroen), i tre dybder. */
.drift-item { position: absolute; left: 0; top: 0; width: var(--size); }
.drift-bob {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: calc(.22 + var(--depth) * .55);
  filter: blur(calc((1 - var(--depth)) * 3px)) saturate(calc(.5 + var(--depth) * .4));
  animation: drift-bob var(--bob) ease-in-out infinite alternate;
}
@keyframes drift-bob { from { transform: translateY(-7px) rotate(-4deg); } to { transform: translateY(7px) rotate(4deg); } }
.drift-orb {
  width: var(--size); height: var(--size); display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent) 0%, transparent 66%);
}
.drift-orb img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.drift-bob b {
  padding: 2px 8px; border-radius: 999px; background: rgba(10, 13, 16, .62); color: #e8eef2;
  font-size: calc(9px + var(--depth) * 3px); font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}
.drift-item.gold .drift-orb { background: radial-gradient(circle, rgba(255, 205, 90, .45) 0%, transparent 68%); }
.drift-item.gold b { color: #ffd66e; box-shadow: 0 0 0 1px rgba(255, 205, 90, .35); }
.gh-hero.paused *, .gh-hero.paused *::before, .gh-hero.paused *::after { animation-play-state: paused !important; }

/* Tekst til venstre */
.gh-copy { position: relative; z-index: 3; max-width: 600px; }
/* Mørk halo bak teksten, så den er lesbar over premiene som driver forbi. */
.gh-copy::before {
  content: ''; position: absolute; inset: -50px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(21, 25, 28, .88), rgba(21, 25, 28, .5) 60%, transparent);
}
.gh-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 6px 13px 6px 10px;
  border-radius: 999px; background: rgba(61, 220, 151, .1); color: #8ff0c4;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .28);
}
.gh-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: gh-ping 2s ease-out infinite; }
@keyframes gh-ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
.gh-copy h1 {
  margin: 0 0 20px; color: #fff; text-wrap: balance;
  font-size: clamp(44px, 5.4vw, 84px); line-height: .98; font-weight: 840; letter-spacing: -.04em;
}
.gh-copy h1 span {
  display: inline-block;
  background: linear-gradient(100deg, #8ccaff 0%, #479feb 25%, #b58cff 50%, #ffd66e 70%, #8ccaff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gh-holo-text 8s ease-in-out infinite alternate;
}
@keyframes gh-holo-text { to { background-position: 100% 0; } }
.gh-copy > p { margin: 0 0 26px; max-width: 480px; color: #a3afb9; font-size: 16.5px; line-height: 1.6; }
.gh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gh-copy .hero-trust { justify-content: flex-start; }

/* Scenen med vifta til høyre */
.gh-play { position: relative; z-index: 2; height: 560px; }
/* Stikker ut over og til venstre for vifta, men ikke forbi høyre kant (ga sidescroll). */
.gh-fx { position: absolute; left: -40%; top: -30%; width: 144%; height: 160%; z-index: 30; pointer-events: none; }
.gh-fan { position: absolute; inset: 0; --cw: 212px; --spread: 124px; }
.gh-card {
  position: absolute; left: 50%; top: 50%;
  width: var(--cw); aspect-ratio: 480 / 729; padding: 0; border: 0; background: none; color: inherit;
  z-index: calc(10 - var(--ak));
  transform:
    translate(-50%, -52%)
    translateX(calc(var(--k) * var(--spread)))
    translateY(calc(var(--ak) * var(--ak) * 10px + var(--ak) * 8px + var(--drop, 0) * 90px))
    rotate(calc(var(--k) * 9deg))
    scale(calc(1 - var(--ak) * .09 - var(--drop, 0) * .15));
  transition: transform .7s var(--spring), filter .4s ease, opacity .5s ease;
  filter: brightness(calc(1 - var(--ak) * .14)) saturate(calc(1 - var(--ak) * .08));
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: gh-float 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.1s);
}
@keyframes gh-float { 50% { translate: 0 -9px; } }
.gh-card:hover { filter: brightness(1.04); }
.gh-card.center { cursor: grab; touch-action: pan-y; }   /* sideveis dra river, loddrett ruller siden */
.gh-card.center:active { cursor: grabbing; }
.gh-card:focus-visible { outline: none; }
.gh-card:focus-visible .gh-card-in { box-shadow: 0 0 0 3px #83c8ff, 0 30px 60px -20px rgba(0, 0, 0, .9); }
.gh-card-in {
  position: absolute; inset: 0; display: block; border-radius: 14px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--spring), box-shadow .3s;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .6));
}
.gh-card.tilting .gh-card-in { transition: transform .12s linear; }
.gh-body, .gh-top { position: absolute; inset: 0; display: block; }
.gh-body img, .gh-top img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; }
/* Stripa over perforeringen (13,5 % ned på pakken) rives av mot den siden man drar. */
.gh-body { clip-path: inset(13.5% 0 0 0); }
.gh-top {
  clip-path: inset(0 0 86.5% 0);
  transform-origin: calc(50% + 50% * var(--dir, 1)) 13.5%;
  transform: translateY(calc(var(--tear, 0) * -12px)) rotate(calc(var(--tear, 0) * -11deg * var(--dir, 1)));
}
.gh-card.torn .gh-top { animation: gh-strip .6s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes gh-strip {
  from { transform: translateY(-12px) rotate(calc(-11deg * var(--dir, 1))); opacity: 1; }
  to { transform: translate(calc(var(--dir, 1) * 190px), -230px) rotate(calc(var(--dir, 1) * 62deg)); opacity: 0; }
}
.gh-perf {
  position: absolute; left: 7%; right: 7%; top: 13.5%; height: 0;
  border-top: 2px dashed rgba(255, 255, 255, .7); opacity: 0;
  filter: drop-shadow(0 0 4px rgba(140, 200, 255, .9));
  transition: opacity .3s;
}
.gh-card.center .gh-perf { opacity: 1; animation: gh-perf 1.8s ease-in-out infinite; }
.gh-card.tearing .gh-perf, .gh-card.torn .gh-perf { opacity: 0; animation: none; }
@keyframes gh-perf { 50% { opacity: .35; } }
/* Folie: lyset følger pekeren. Maskert til pakkens form så hjørnene forblir gjennomsiktige. */
.gh-foil {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat;
  background:
    radial-gradient(farthest-corner circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .5), transparent 42%),
    linear-gradient(115deg, transparent 20%, rgba(120, 220, 255, .35) 36%, rgba(200, 140, 255, .3) 46%, rgba(255, 220, 120, .3) 56%, transparent 72%);
  background-size: 100% 100%, 240% 240%;
  background-position: 0 0, var(--mx, 30%) var(--my, 30%);
  mix-blend-mode: color-dodge; opacity: 0; transition: opacity .35s;
}
.gh-card.center .gh-foil { opacity: .32; animation: gh-sheen 7s ease-in-out infinite alternate; }
.gh-card.tilting .gh-foil, .gh-holo.tilting .gh-foil { opacity: .85; animation: none; }
@keyframes gh-sheen { from { background-position: 0 0, 0% 0%; } to { background-position: 0 0, 100% 100%; } }
/* Lyset fra åpningen mens premien «lades». */
.gh-beam {
  position: absolute; left: 9%; right: 9%; top: calc(13.5% - 2px); height: 4px; border-radius: 50%;
  background: #fff; opacity: 0; pointer-events: none;
  box-shadow: 0 0 14px 4px var(--tier, #bfe0ff);
}
.gh-beam::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 2px; height: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--tier, #bfe0ff) 70%, transparent), transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.gh-card.charging .gh-beam { opacity: 1; animation: gh-charge 1.15s ease-in forwards; }
.gh-card.charging .gh-beam::after { animation: gh-column 1.15s ease-in forwards; }
.gh-card.charging .gh-card-in { animation: gh-shake .09s linear infinite alternate; }
.gh-card.flare .gh-beam { animation: gh-flare .45s ease-out forwards; }
@keyframes gh-charge { from { box-shadow: 0 0 10px 2px var(--tier, #bfe0ff); } to { box-shadow: 0 0 40px 16px var(--tier, #bfe0ff), 0 0 90px 30px color-mix(in srgb, var(--tier, #8cc8ff) 50%, transparent); } }
@keyframes gh-column { to { height: 180px; } }
@keyframes gh-flare { to { box-shadow: 0 0 80px 60px var(--tier, #fff), 0 0 200px 120px color-mix(in srgb, var(--tier, #fff) 60%, transparent); } }
@keyframes gh-shake { from { translate: -1.5px .5px; } to { translate: 1.5px -.5px; } }
.gh-card.gone { --drop: 1; opacity: 0; pointer-events: none; }
.gh-card.dealt .gh-card-in { animation: gh-deal .7s var(--spring) both; }
@keyframes gh-deal { from { transform: translateY(-140px) rotate(-18deg) scale(.7); opacity: 0; } }
.gh-fan.dim .gh-card:not(.gone) { filter: brightness(.38) blur(1.5px); }
/* Navn og pris under midtkortet */
.gh-tag {
  position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  background: rgba(12, 16, 19, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: 12.5px; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.gh-tag b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: #e8eef2; }
.gh-tag em { font-style: normal; font-weight: 800; color: #0c1115; background: #8ff0a0; padding: 2px 8px; border-radius: 999px; }
.gh-card.center:not(.tearing):not(.gone) .gh-tag { opacity: 1; }

.gh-hint {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 12;
  display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap;
  padding: 8px 15px 8px 12px; border-radius: 999px;
  background: rgba(71, 159, 235, .14); color: #cfe6ff; font-size: 13px; font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(120, 190, 255, .32), 0 10px 30px -12px rgba(71, 159, 235, .8);
  transition: opacity .4s, translate .4s;
}
.gh-hint.gone { opacity: 0; translate: -50% 10px; }
.gh-hint-hand { position: relative; width: 34px; height: 14px; }
.gh-hint-hand::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(207, 230, 255, .5); }
.gh-hint-hand::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #8cc8ff; animation: gh-hand 1.6s ease-in-out infinite;
}
@keyframes gh-hand { 0%, 15% { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateX(24px); opacity: 1; } 100% { transform: translateX(24px); opacity: 0; } }

/* Premien som stiger opp av pakken */
.gh-prize { position: absolute; left: 50%; top: 41%; z-index: 20; width: 236px; translate: -50% -50%; --tier-c: var(--tier, #9fb3c2); }
.gh-prize::before, .gh-prize::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.gh-prize::before { width: 520px; height: 520px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tier-c) 38%, transparent), transparent); z-index: -2; }
.gh-prize::after {
  width: 720px; height: 720px; z-index: -1;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tier-c) 26%, transparent) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 70%); mask: radial-gradient(closest-side, #000 18%, transparent 70%);
  animation: gh-rays 18s linear infinite;
}
@keyframes gh-rays { to { rotate: 360deg; } }
.gh-prize.show::before { opacity: 1; }
.gh-prize.show.gold::after, .gh-prize.show.epic::after { opacity: 1; }
.gh-prize-card {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transform: perspective(1100px) translateY(90px) rotateY(180deg) scale(.45);
  opacity: 0;
  transition: transform 1s var(--spring), opacity .25s ease;
}
.gh-prize.show .gh-prize-card { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); opacity: 1; }
.gh-prize.show .gh-prize-card.tilting { transition: transform .12s linear; }
.gh-prize-back, .gh-prize-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gh-prize-back {
  transform: rotateY(180deg);
  background: repeating-linear-gradient(45deg, #1d2a35 0 10px, #17222b 10px 20px);
  box-shadow: inset 0 0 0 2px rgba(140, 200, 255, .35);
}
.gh-prize-face {
  isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 16px 14px 18px;
  background:
    radial-gradient(90% 60% at 50% 34%, color-mix(in srgb, var(--tier-c) 30%, transparent), transparent 70%),
    linear-gradient(180deg, #1c252c, #11171b);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tier-c) 70%, transparent), 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -10px color-mix(in srgb, var(--tier-c) 60%, transparent);
  text-align: center;
}
.gh-prize.gold .gh-prize-face::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--gh-ang), #ffd66e, #fff6d0, #ff9d4d, #ffd66e 40%, #fff6d0 60%, #ffd66e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gh-spin 3s linear infinite;
}
@keyframes gh-spin { to { --gh-ang: 360deg; } }
.gh-demo {
  position: absolute; left: 12px; top: 12px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: #cfd9e0; font-size: 10px; font-weight: 800; letter-spacing: .08em;
}
.gh-prize-art { flex: 1; width: 100%; display: grid; place-items: center; min-height: 0; }
.gh-prize-art .product-art { max-width: 170px; max-height: 150px; width: auto; height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .6)); }
.gh-prize-art .product-emoji, .gh-prize-art > span { font-size: 84px; }
.gh-prize-face .gh-foil { -webkit-mask: none; mask: none; mix-blend-mode: overlay; }
.gh-prize-face b { max-width: 100%; font-size: 14px; font-weight: 700; color: #eef4f7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-prize-face strong { font-size: 28px; font-weight: 850; letter-spacing: -.02em; color: var(--tier-c); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px color-mix(in srgb, var(--tier-c) 60%, transparent); }
.gh-prize.common strong { color: #e8eef2; }

/* Resultatet under premien */
.gh-result {
  position: absolute; left: 50%; bottom: -8px; z-index: 25; width: min(460px, 100%); translate: -50% 16px;
  padding: 16px 18px; border-radius: 18px; text-align: center;
  background: rgba(14, 19, 23, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px -24px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .45s ease, translate .6s var(--spring);
}
.gh-result.show { opacity: 1; translate: -50% 0; }
.gh-result > p { margin: 0 0 12px; color: #c9d4db; font-size: 14px; line-height: 1.5; }
.gh-result > p strong { color: #fff; }
.gh-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gh-result-actions .hero-cta, .gh-result-actions .hero-ghost { height: 42px; font-size: 14px; }
.gh-result button.hero-ghost { border: 0; cursor: pointer; font-family: inherit; }
.gh-out { align-self: center; color: #8a96a0; font-size: 13px; }
.gh-verify {
  margin-top: 10px; padding: 2px 4px; border: 0; background: none; font: inherit; font-size: 12.5px;
  color: #7fb8ec; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.gh-proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; margin: 12px 0 0; text-align: left; font-size: 13.5px; }
.gh-proof[hidden] { display: none; }
.gh-proof dt { color: #8a96a0; }
.gh-proof dd { margin: 0; min-width: 0; }
.gh-proof code { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: #dfe8ee; font-size: 13.5px; }
.gh-proof-check.ok { color: #3ddc97; font-weight: 700; }
.gh-proof-check.bad { color: #ff8a8e; font-weight: 700; }

/* ---------------------------------------------------------------- felles for seksjonene */
.gh-block { position: relative; margin: 84px 0 0; }
.gh-head { max-width: 640px; margin-bottom: 26px; }
.gh-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: #7fbfff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.gh-head h2, .gh-fair-copy h2, .gh-final h2 { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.06; font-weight: 820; letter-spacing: -.03em; text-wrap: balance; }
.gh-head p, .gh-fair-copy p { margin: 0; color: #93a0aa; font-size: 15.5px; line-height: 1.6; }
.gh-link { display: inline-flex; align-items: center; gap: 6px; color: #8cc8ff; font-weight: 700; font-size: 14.5px; }
.gh-link:hover { color: #fff; }
.gh-link span { transition: transform .25s var(--spring); }
.gh-link:hover span { transform: translateX(4px); }
.gh-live { width: 8px; height: 8px; border-radius: 50%; background: #ff5b61; box-shadow: 0 0 0 0 rgba(255, 91, 97, .6); animation: gh-ping-red 1.8s ease-out infinite; }
@keyframes gh-ping-red { 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 91, 97, 0); } }
.gh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s var(--spring); transition-delay: calc(var(--d, 0) * 90ms); }
.gh-reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- ekte treff */
/* Fast antall kolonner (maks 8), så en rad aldri ender med ett kort alene. */
.gh-hits-row { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 14px; }
.gh-hit {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 16px;
  background: radial-gradient(100% 70% at 50% 20%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), linear-gradient(180deg, #1d252b, #151b1f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--spring), box-shadow .3s;
  animation: gh-rise .7s var(--spring) both; animation-delay: calc(var(--i) * 70ms);
}
@keyframes gh-rise { from { opacity: 0; translate: 0 24px; } }
.gh-hit.tilting { transition: transform .12s linear; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 24px 50px -24px color-mix(in srgb, var(--c) 80%, transparent); }
.gh-hit.gold { box-shadow: inset 0 0 0 1px rgba(255, 214, 110, .4); }
.gh-hit .gh-foil { -webkit-mask: none; mask: none; mix-blend-mode: overlay; }
.gh-hit-art { height: 104px; width: 100%; display: grid; place-items: center; }
.gh-hit-art .product-art { max-width: 120px; max-height: 100px; }
.gh-hit b { width: 100%; text-align: center; font-size: 12.5px; font-weight: 650; color: #dfe7ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-hit strong { font-size: 18px; font-weight: 820; color: #8ff0a0; font-variant-numeric: tabular-nums; }
.gh-hit.gold strong { color: #ffd66e; }
.gh-hit-who { display: flex; align-items: center; gap: 6px; max-width: 100%; color: #8a96a0; font-size: 11.5px; }
.gh-hit-who i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }

/* ---------------------------------------------------------------- måter å spille på */
.gh-ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gh-way {
  position: relative; display: flex; flex-direction: column; padding: 18px 18px 20px; border-radius: 20px; color: inherit;
  background: linear-gradient(180deg, #1e252a, #171c20); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.gh-way.in { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.gh-way.in.tilting { transition: transform .12s linear, box-shadow .3s; transition-delay: 0s; box-shadow: inset 0 0 0 1px rgba(120, 190, 255, .3), 0 24px 50px -26px rgba(71, 159, 235, .8); }
.gh-way h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 760; color: #fff; }
.gh-way p { margin: 0 0 16px; color: #8f9ba5; font-size: 14px; line-height: 1.55; flex: 1; }
.gh-way-go { color: #8cc8ff; font-size: 13.5px; font-weight: 700; }
.gh-way-go span { display: inline-block; transition: transform .25s var(--spring); }
.gh-way:hover .gh-way-go span { transform: translateX(4px); }
.gh-way-art {
  position: relative; height: 128px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(80% 90% at 50% 100%, rgba(71, 159, 235, .18), transparent 70%), #12171b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.gh-way-art i, .gh-way-art b { display: block; font-style: normal; }
/* Packs: en pakke som rives opp om og om igjen */
.gh-v-pack { position: relative; width: 62px; height: 92px; border-radius: 8px; background: linear-gradient(160deg, #5aaaf0, #3a6fd6 55%, #9d7bff); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .8); }
.gh-v-pack::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); background-size: 250% 100%; animation: gh-shine 3.2s ease-in-out infinite; }
.gh-v-pack b { position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 8px 8px 2px 2px; background: #7cbcf5; transform-origin: right bottom; animation: gh-v-rip 3.2s ease-in-out infinite; }
@keyframes gh-v-rip { 0%, 35% { transform: none; opacity: 1; } 55% { transform: translate(24px, -26px) rotate(38deg); opacity: 0; } 100% { opacity: 0; transform: translate(24px, -26px) rotate(38deg); } }
@keyframes gh-shine { 0%, 40% { background-position: 120% 0; } 70%, 100% { background-position: -40% 0; } }
/* Battles: to hjul som går hver sin vei */
.gh-v-reel { width: 46px; height: 104px; border-radius: 10px; overflow: hidden; background: #0d1114; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.gh-v-reel b {
  height: 300%;
  background: repeating-linear-gradient(180deg, transparent 0 6px, #479feb 6px 30px, transparent 30px 36px, #b58cff 36px 60px, transparent 60px 66px, #ffd66e 66px 90px, transparent 90px 96px, #3ddc97 96px 120px);
  background-size: 100% 120px; -webkit-mask: linear-gradient(90deg, transparent 8px, #000 8px calc(100% - 8px), transparent calc(100% - 8px)); mask: linear-gradient(90deg, transparent 8px, #000 8px calc(100% - 8px), transparent calc(100% - 8px));
  animation: gh-reel 1.4s linear infinite;
}
.gh-v-reel.down b { animation-direction: reverse; animation-duration: 1.1s; }
@keyframes gh-reel { from { transform: translateY(-120px); } to { transform: translateY(0); } }
.gh-way-battles em { font-style: normal; font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 0 14px rgba(255, 91, 97, .9); }
/* Deals: sjansemåler som justeres */
.gh-v-dial {
  --gh-p: .12; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#3ddc97 calc(var(--gh-p) * 360deg), rgba(255, 255, 255, .08) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 71%); mask: radial-gradient(closest-side, transparent 70%, #000 71%);
  animation: gh-dial 4s ease-in-out infinite;
}
@keyframes gh-dial { 0%, 10% { --gh-p: .12; } 50%, 60% { --gh-p: .74; } 100% { --gh-p: .12; } }
.gh-way-deals::after { content: '%'; position: absolute; color: #8ff0c4; font-size: 22px; font-weight: 850; }
/* Rewards: XP-linje som fylles og et nivåmerke som spretter */
.gh-v-xp { width: 58%; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gh-v-xp b { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd66e, #ff9d4d); transform-origin: left; animation: gh-xp 3s ease-in-out infinite; }
@keyframes gh-xp { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
.gh-v-lvl { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(160deg, #ffe39a, #d99a2b); box-shadow: 0 0 20px -2px rgba(255, 190, 60, .8); animation: gh-lvl 3s ease-in-out infinite; }
.gh-v-lvl::after { content: '★'; display: grid; place-items: center; height: 100%; color: #4a3208; font-size: 18px; }
@keyframes gh-lvl { 0%, 66% { transform: scale(.85); } 76% { transform: scale(1.22) rotate(-8deg); } 88%, 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- provably fair */
.gh-fair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.gh-fair-copy p { margin-bottom: 14px; }
.gh-fair-beacon { font-size: 14px !important; color: #7f8b95 !important; }
.gh-chain { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gh-chain::before {
  content: ''; position: absolute; left: 33px; top: 34px; bottom: 34px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(120, 190, 255, .6) 0 6px, transparent 6px 12px);
  background-size: 2px 24px; animation: gh-flow 1.2s linear infinite;
}
@keyframes gh-flow { to { background-position: 0 24px; } }
.gh-chain li {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px;
  padding: 18px 20px 18px 10px; border-radius: 14px; background: linear-gradient(180deg, #1c2328, #171c20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.gh-chain-n { grid-row: 1 / span 2; align-self: center; justify-self: center; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #12324d; color: #9fd0ff; font-weight: 800; font-size: 16px; box-shadow: 0 0 0 4px #171c20; position: relative; z-index: 1; }
.gh-chain b { font-size: 17px; font-weight: 750; color: #e8eef2; }
.gh-chain code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #93a0aa; font-size: 15px; line-height: 1.4; }
.gh-chain code.real { color: #8ff0c4; animation: gh-type .6s steps(12) both; }
@keyframes gh-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.gh-chain.mine li { box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .25); }

/* ---------------------------------------------------------------- belønninger */
.gh-ladder { position: relative; display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.gh-ladder-line { position: absolute; left: 4%; right: 4%; top: 72px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.gh-ladder-line i { display: block; height: 100%; background: linear-gradient(90deg, #479feb, #b58cff, #ffd66e); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.3, .7, .2, 1) .3s; }
.gh-ladder.in .gh-ladder-line i { transform: scaleX(1); }
.gh-rung { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-align: center; }
.gh-rung-art { width: 96px; height: 131px; margin-bottom: 6px; transition: transform .35s var(--spring); }
.gh-rung-art .reward-pack-art { width: 165px; max-width: none; height: 225px; transform: scale(.582); transform-origin: top left; margin: 0; }
.gh-rung:hover .gh-rung-art { transform: translateY(-8px) rotate(-3deg); }
.gh-rung b { font-size: 13px; color: #e8eef2; }
.gh-rung small { font-size: 11.5px; color: #ffd66e; font-weight: 700; }
.gh-ladder .gh-rung { opacity: 0; translate: 0 18px; transition: opacity .5s ease, translate .7s var(--spring); transition-delay: calc(.3s + var(--i) * 190ms); }
.gh-ladder.in .gh-rung { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- avsluttende CTA */
.gh-final {
  position: relative; isolation: isolate; overflow: hidden; margin: 96px 0 0; padding: 64px 28px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, #19232b, #131a1f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.gh-final-glow {
  position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from var(--gh-ang), rgba(71, 159, 235, .0), rgba(71, 159, 235, .25), rgba(181, 140, 255, .22), rgba(255, 214, 110, .16), rgba(71, 159, 235, .0));
  filter: blur(40px); animation: gh-spin 14s linear infinite;
}
.gh-final p { margin: 0 auto 24px; max-width: 520px; color: #a3afb9; font-size: 16px; line-height: 1.6; }
.gh-final .gh-actions { justify-content: center; }

/* ---------------------------------------------------------------- mindre skjermer */
@media (max-width: 1100px) {
  .gh-hits-row { grid-template-columns: repeat(min(var(--n, 8), 4), minmax(0, 1fr)); }
  .gh-ways-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 26px; }
  .gh-ladder-line { display: none; }
}
@media (max-width: 900px) {
  .gh-hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 4px; }
  .gh-copy { max-width: none; justify-self: center; }
  .gh-copy > p { margin-left: auto; margin-right: auto; }
  .gh-actions, .gh-copy .hero-trust { justify-content: center; }
  .gh-play { height: 480px; }
  .gh-fan { --cw: 170px; --spread: 78px; }
  .gh-fair { grid-template-columns: 1fr; gap: 24px; }
  .gh-block { margin-top: 64px; }
}
@media (max-width: 560px) {
  .gh-play { height: 420px; }
  .gh-copy::before { inset: -30px -16px; }
  .gh-fan { --cw: 150px; --spread: 58px; }
  .gh-prize { width: 200px; }
  .gh-ways-grid { grid-template-columns: 1fr; }
  .gh-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-hits-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-hit:nth-child(n + 5) { display: none; }   /* fire treff holder på mobil */
  .gh-final { padding: 44px 18px; }
  .gh-actions .hero-cta, .gh-actions .hero-ghost { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-aurora, .gh-eyebrow i, .gh-copy h1 span, .gh-card, .gh-card-in, .gh-perf, .gh-foil, .gh-hint-hand::after,
  .gh-prize::after, .gh-prize-face::before, .gh-final-glow, .gh-hit, .gh-live, .gh-chain::before, .gh-chain code.real,
  .gh-way-art *, .gh-way-art::after, .drift-bob { animation: none !important; }
  .gh-card, .gh-prize-card, .gh-result, .gh-reveal, .gh-ladder .gh-rung, .gh-ladder-line i { transition-duration: .01s !important; }
  .gh-card.torn .gh-top { opacity: 0; }
}
