/* Rewards-siden for besøkende uten konto. Bygger på uttrykket fra forsidens hero
 * (site-shell.css): mørk flate, blå aksent, gull for rewards. */

.rp { --gold: #f3c969; --gold-soft: rgba(243, 201, 105, .16); padding-bottom: 20px; }
.rp h2 { margin: 0; font-size: 28px; font-weight: 780; letter-spacing: -.022em; }
.rp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.rp-head p { margin: 6px 0 0; max-width: 560px; color: #8e9aa4; font-size: 14.5px; line-height: 1.55; }
.rp section { margin-top: 44px; }
.rp section.rp-hero { margin-top: 10px; }

/* Inntoning ved scrolling, forskjøvet per element (--d). */
.rp .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.rp .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ hero */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: center; min-height: 440px; }
.rp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(243, 201, 105, .28);
}
.rp-eyebrow::before { content: '✦'; animation: rp-twinkle 2.4s ease-in-out infinite; }
@keyframes rp-twinkle { 50% { opacity: .35; transform: scale(.8) rotate(20deg); } }
.rp-hero h1 {
  margin: 18px 0 16px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1; font-weight: 820; letter-spacing: -.035em; text-wrap: balance;
}
.rp-hero h1 span {
  background: linear-gradient(95deg, #ffe39a, #f3c969 40%, #e89a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-copy > p { margin: 0 0 24px; max-width: 520px; color: #9ba7b1; font-size: 16px; line-height: 1.6; }
.rp-copy .hero-actions { justify-content: flex-start; }
.rp-facts { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.rp-facts li {
  display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.rp-facts b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rp-facts span { color: #7f8b95; font-size: 12.5px; }

.rp-visual { position: relative; height: 440px; }
.rp-halo {
  position: absolute; left: 50%; top: 44%; width: 460px; height: 460px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(243, 201, 105, .0), rgba(243, 201, 105, .28), rgba(71, 159, 235, .22), rgba(157, 123, 255, .2), rgba(243, 201, 105, .0));
  filter: blur(40px); animation: rp-spin 18s linear infinite;
}
@keyframes rp-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.rp-fan { position: absolute; left: 50%; top: 44%; width: 0; height: 0; }
.rp-fan-card {
  position: absolute; left: 0; top: 0; width: 150px;
  transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * 118px)) rotate(calc((var(--i) - 1) * 13deg)) translateY(calc(var(--i) * 0px));
  z-index: calc(3 - (var(--i) - 1) * (var(--i) - 1));
  animation: rp-float 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.8s);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6));
}
.rp-fan-card:nth-child(2) { width: 176px; }
@keyframes rp-float { 50% { translate: 0 -12px; } }
.rp-fan-card .reward-pack-art { max-width: none; height: auto; aspect-ratio: 11 / 15; position: relative; overflow: hidden; }
/* Glansstripe over pakkene, som i forsidens hjul. */
.rp .reward-pack-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%);
  transform: translateX(-130%); animation: hero-shine 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -2.1s);
}
.rp .reward-pack-art { position: relative; overflow: hidden; }

.rp-xp {
  position: absolute; left: 50%; bottom: 6px; width: min(320px, 90%); transform: translateX(-50%);
  padding: 14px 16px 16px; border-radius: 14px;
  background: rgba(22, 27, 31, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
.rp-xp-head { display: flex; justify-content: space-between; color: #9aa6b0; font-size: 13px; margin-bottom: 9px; }
.rp-xp-head b { color: #fff; font-size: 15px; }
.rp-xp-num { font-variant-numeric: tabular-nums; }
.rp-xp-bar { height: 8px; border-radius: 999px; background: #2a3238; overflow: hidden; }
.rp-xp-bar i { display: block; height: 100%; width: 8%; border-radius: inherit; background: linear-gradient(90deg, #479feb, #8ccaff); box-shadow: 0 0 14px rgba(71, 159, 235, .7); transition: background .4s ease, box-shadow .4s ease; }  /* bredden settes per bilde av JS */
.rp-xp.levelled .rp-xp-bar i { background: linear-gradient(90deg, #e8a33c, #ffe39a); box-shadow: 0 0 16px rgba(243, 201, 105, .8); }
.rp-xp-unlock {
  position: absolute; left: 50%; top: -14px; transform: translate(-50%, 6px) scale(.9); opacity: 0;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, #ffe39a, #f0b64a); color: #2a1a02; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 8px 22px -6px rgba(243, 180, 60, .9);
  transition: opacity .3s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.rp-xp.levelled .rp-xp-unlock { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ------------------------------------------------------ rullende premier */
.rp-strip { display: grid; gap: 10px; margin-inline: -36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rp-marquee { overflow: hidden; }
.rp-marquee > div { display: flex; gap: 10px; width: max-content; animation: rp-marquee 70s linear infinite; }
.rp-marquee.reverse > div { animation-direction: reverse; animation-duration: 84s; }
.rp-marquee:hover > div { animation-play-state: paused; }
@keyframes rp-marquee { to { transform: translateX(-50%); } }
.rp-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.rp-chip img {
  width: 38px; height: 38px; object-fit: contain; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
}
.rp-chip b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: #e3e9ee; }

/* ------------------------------------------------------------ nivåstigen */
.rp-filter { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #13171a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); flex-wrap: wrap; }
.rp-filter button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  color: #97a3ad; font: inherit; font-size: 13.5px; font-weight: 650; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.rp-filter button small { color: #66727c; font-size: 11.5px; font-weight: 600; margin-left: 3px; }
.rp-filter button:hover { color: #fff; }
.rp-filter button[aria-pressed=true] {
  color: #fff; background: linear-gradient(180deg, rgba(120, 190, 255, .2), rgba(71, 159, 235, .08));
  box-shadow: inset 0 0 0 1px rgba(140, 200, 255, .45), 0 0 16px -4px rgba(71, 159, 235, .6);
}
.rp-filter button[aria-pressed=true] small { color: #9fcaf2; }

.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rp-tier {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 12px; border-radius: 16px;
  background: linear-gradient(180deg, #1f252a, #191e22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: box-shadow .3s ease, translate .3s ease;
}
.rp-tier[hidden] { display: none; }
.rp-tier:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(243, 201, 105, .3), 0 22px 44px -26px rgba(243, 180, 60, .7); }
.rp-tier-top { display: flex; justify-content: space-between; align-items: center; }
.rp-lvl { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #eef2f5; }
.rp-group { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.rp-group-starter { background: rgba(71, 159, 235, .14); color: #8ccaff; }
.rp-group-elite { background: rgba(157, 123, 255, .16); color: #c3b1ff; }
.rp-group-legend { background: var(--gold-soft); color: var(--gold); }
.rp-tier-pack { display: block; width: 100%; padding: 4px 18px 0; border: 0; background: none; cursor: pointer; }
.rp-link { padding: 0; border: 0; background: none; cursor: pointer; color: #8ccaff; font: inherit; font-weight: 650; }
.rp-link:hover { text-decoration: underline; }
.rp-tier-pack .reward-pack-art { height: 190px; max-width: 138px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.rp-tier:hover .rp-tier-pack .reward-pack-art { transform: rotate(-3deg) scale(1.04); }

.rp-rotator { position: relative; height: 58px; }
.rp-rotator figure {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.rp-rotator figure.on { opacity: 1; transform: none; }
.rp-rotator figure > span {
  flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 72%), rgba(255, 255, 255, .03);
}
.rp-rotator img { width: 44px; height: 44px; object-fit: contain; }
.rp-rotator figcaption { min-width: 0; display: flex; flex-direction: column; }
.rp-rotator b { font-size: 12.5px; font-weight: 650; color: #d7dee4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-rotator em { font-style: normal; font-size: 13px; font-weight: 750; color: var(--gold); font-variant-numeric: tabular-nums; }
.rp-tier-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); color: #87939d; font-size: 12.5px; }
.rp-tier-foot b { color: #fff; font-weight: 750; }
.rp-tier-foot a { color: #8ccaff; font-weight: 650; }
.rp-tier-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ bonusdropp */
.rp-period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rp-period {
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: center;
  padding: 18px; border-radius: 16px; background: linear-gradient(180deg, #1f252a, #191e22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.rp-period h3 { margin: 0; font-size: 17px; font-weight: 720; }
.rp-period p { grid-column: 2; margin: 4px 0 0; color: #8e9aa4; font-size: 13.5px; }
.rp-ring { grid-row: 1 / span 2; position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.rp-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rp-ring circle { fill: none; stroke: #2a3238; stroke-width: 5; }
/* Ringene fylles fra 0 til 100 % én gang, alle tre samtidig, når seksjonen kommer til syne
   (.rp-period-grid.in settes av JS). Omkretsen er 2π·27 ≈ 170. */
.rp-ring .rp-ring-fill {
  stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170;
  filter: drop-shadow(0 0 5px rgba(243, 201, 105, .6));
  transition: stroke-dashoffset 1.8s cubic-bezier(.3, .8, .2, 1) .15s;
}
.rp-period-grid.in .rp-ring-fill { stroke-dashoffset: 0; }
.rp-period[data-period=weekly] .rp-ring-fill { stroke: #8ccaff; filter: drop-shadow(0 0 5px rgba(71, 159, 235, .7)); }
.rp-period[data-period=monthly] .rp-ring-fill { stroke: #c3b1ff; filter: drop-shadow(0 0 5px rgba(157, 123, 255, .7)); }
.rp-ring b { font-size: 13px; font-weight: 800; }

/* ---------------------------------------------------------- avslutning */
.rp-final {
  position: relative; overflow: hidden; padding: 30px 0 34px; border-radius: 20px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(243, 201, 105, .12), transparent 55%), linear-gradient(180deg, #1f252a, #171b1f);
  box-shadow: inset 0 0 0 1px rgba(243, 201, 105, .18);
}
.rp-final .rp-marquee { opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.rp-final-copy { text-align: center; padding: 22px 20px 0; }
.rp-final-copy p { margin: 8px auto 20px; max-width: 460px; color: #9ba7b1; }

/* ---------------------------------------------------------------- mobil */
/* Båndet går ut i sidemargen; må følge polstringen til main (style.css: 36/24/16px). */
@media (max-width: 1100px) { .rp-strip { margin-inline: -24px; } }
@media (max-width: 980px) {
  .rp-hero { grid-template-columns: 1fr; }
  .rp-visual { height: 380px; order: -1; }
  .rp-period-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .rp-strip { margin-inline: -16px; }
  .rp-fan-card { width: 112px; transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * 88px)) rotate(calc((var(--i) - 1) * 13deg)); }
  .rp-fan-card:nth-child(2) { width: 132px; }
  .rp-visual { height: 330px; }
  .rp-filter { width: 100%; }
  .rp-filter button { flex: 1; padding: 0 8px; }
  .rp-filter button small { display: none; }
  .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-tier-pack { padding: 0 6px; }
  .rp-tier-pack .reward-pack-art { height: 150px; }
}

/* Filteret: kortene glir på plass (View Transitions). */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .rp .reveal { opacity: 1; transform: none; transition: none; }
  .rp-halo, .rp-fan-card, .rp-marquee > div, .rp .reward-pack-art::after, .rp-eyebrow::before { animation: none; }
  .rp-ring .rp-ring-fill { transition: none; stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------ oddsvindu */
/* Samme flate som innloggingsvinduet; innholdet bruker pakkevinduets odds-grid. */
/* Vinduet selv scroller ikke; det gjør .odds-body. Da står krysset fast i hjørnet
   og rullefeltet ligger under det, i stedet for rett inntil. */
dialog.odds-modal {
  width: min(1000px, calc(100vw - 32px)); height: auto; max-height: calc(100dvh - 40px);
  padding: 0; margin: auto; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
  background: linear-gradient(180deg, #21272c, #191e22); color: #eef2f5;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .35);
}
dialog.odds-modal[open] { animation: auth-in .32s cubic-bezier(.2, .9, .3, 1.08); }
dialog.odds-modal::backdrop { background: rgba(7, 9, 11, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: auth-fade .25s ease; }
dialog.odds-modal[open] { display: flex; flex-direction: column; }
/* Litt lenger inn enn i innloggingsvinduet: rullefeltet i .odds-body går helt til topp. */
dialog.odds-modal .auth-close { top: 16px; right: 24px; }
.odds-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 26px 26px 28px; scrollbar-gutter: stable; }
.odds-head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; padding-right: 48px; }
/* Pakken tegnes i full størrelse (165×225) og skaleres ned, så symbol og tekst
   beholder proporsjonene i stedet for å bli klemt. */
.odds-art { flex: 0 0 124px; height: 169px; }
.odds-art .reward-pack-art { width: 165px; max-width: none; height: 225px; margin: 0; transform: scale(.75); transform-origin: top left; }
.odds-intro h2 { margin: 8px 0 4px; font-size: 26px; font-weight: 780; letter-spacing: -.02em; }
.odds-intro p { margin: 0; color: #9ba7b1; font-size: 14px; }
.odds-intro .odds-unlock { margin-top: 2px; color: #f3c969; font-weight: 650; }
.odds-intro .hero-cta { margin-top: 14px; }
.odds-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.odds-title .muted { color: #7f8b95; font-weight: 600; }
@media (max-width: 650px) {
  .odds-body { padding: 20px 16px 22px; }
  .odds-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 44px; }
  .odds-art { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) { dialog.odds-modal[open], dialog.odds-modal::backdrop { animation: none; } }
