/* 💎 v0.79.0: den nye betalingsskærm (paywall.js) */
html.pw2-lock, html.pw2-lock body { overflow: hidden; }
.pw2 { position: fixed; inset: 0; z-index: 8000; background: radial-gradient(ellipse at 50% 0%, #2a1650 0%, #0b0b14 60%); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: pw2In .3s ease-out; color: #fff; }
.pw2.out { animation: pw2Out .3s ease-in forwards; }
@keyframes pw2In { from { opacity: 0; transform: translateY(24px); } }
@keyframes pw2Out { to { opacity: 0; transform: translateY(24px); } }
.pw2-in { max-width: 440px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; position: relative; min-height: 100%; box-sizing: border-box; }
.pw2-wait { margin: auto; font-size: 56px; animation: spPulse 1s ease-in-out infinite; }
.pw2-x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; }
.pw2-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 44px 12px; border-radius: 22px; background: linear-gradient(135deg, #7b2ff7, #f107a3); box-shadow: 0 14px 40px rgba(123,47,247,.35); animation: pw2Pop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.pw2-ic { font-size: 34px; line-height: 1.1; }
.pw2-top b { font-size: 22px; font-weight: 900; line-height: 1.15; }
.pw2-top small { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.88); }
@keyframes pw2Pop { from { transform: scale(.85); opacity: 0; } }
/* Karrusellen */
.pw2-deck { position: relative; height: 170px; perspective: 1000px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pw2-card { position: absolute; left: 50%; top: 0; width: 62%; max-width: 240px; height: 165px; margin-left: calc(min(62%, 240px) / -2); transition: transform .55s cubic-bezier(.2,.8,.25,1), opacity .4s; transform-style: preserve-3d; }
.pw2-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.25,1); transform: rotateY(180deg); }
.pw2-card.up .pw2-flip { transform: rotateY(0); }
.pw2-back, .pw2-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; overflow: hidden; }
.pw2-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #2a1f4d 0 10px, #33265e 10px 20px); border: 3px solid #ffe9a6; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.pw2-front .card67 { height: 100%; min-height: 0 !important; margin: 0; box-sizing: border-box; box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.pw2-front .card67-text { font-size: 16px; line-height: 1.28; }
.pw2-front .card67 { padding: 14px 12px !important; gap: 8px !important; }
.pw2-card[data-d="0"] { transform: translateX(0) scale(1); z-index: 5; }
.pw2-card[data-d="1"] { transform: translateX(46%) rotate(8deg) scale(.82); z-index: 4; opacity: .75; }
.pw2-card[data-d="-1"] { transform: translateX(-46%) rotate(-8deg) scale(.82); z-index: 4; opacity: .75; }
.pw2-card[data-d="2"], .pw2-card[data-d="3"] { transform: translateX(70%) rotate(14deg) scale(.66); z-index: 3; opacity: 0; }
.pw2-card[data-d="-2"], .pw2-card[data-d="-3"] { transform: translateX(-70%) rotate(-14deg) scale(.66); z-index: 3; opacity: 0; }
.pw2-deck.fan .pw2-card { transform: translateY(60px) scale(.5); opacity: 0; }
.pw2-deck.fan .pw2-card:nth-child(1) { transition-delay: 0s; }
.pw2-dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.pw2-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, width .3s; }
.pw2-dots i.on { background: #fff; width: 18px; border-radius: 4px; }
/* Tallet og 👑 */
.pw2-num { display: flex; justify-content: center; gap: 28px; text-align: center; line-height: 1.05; }
.pw2-num b { display: block; font-size: 38px; font-weight: 900; background: linear-gradient(90deg, #ffe9a6, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.pw2-num span { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); }
.pw2-crown { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 18px; background: rgba(255,233,166,.1); border: 2px solid rgba(255,233,166,.45); }
.pw2-crown > span { font-size: 30px; }
.pw2-crown b { display: block; font-size: 15px; line-height: 1.25; }
.pw2-crown small { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; }
/* År / måned */
.pw2-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pw2-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 12px 8px 8px; border-radius: 18px; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.pw2-plan.on { border-color: #ffd36b; background: rgba(255,211,107,.12); transform: scale(1.03); }
.pw2-plan b { font-size: 15px; font-weight: 800; opacity: .85; }
.pw2-plan span { font-size: 24px; font-weight: 900; }
.pw2-plan small { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 700; }
.pw2-plan em { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #ffd36b, #ff9f43); color: #2a1a00; }
/* Prøveperioden */
.pw2-tl { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; text-align: center; }
.pw2-tl::before { content: ""; position: absolute; top: 7px; left: 16.6%; right: 16.6%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #38ef7d, rgba(255,255,255,.2)); }
.pw2-tl div { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.pw2-tl i { width: 16px; height: 16px; border-radius: 50%; background: #3a3a55; border: 3px solid #0b0b14; }
.pw2-tl i.on { background: #38ef7d; box-shadow: 0 0 0 4px rgba(56,239,125,.25); }
.pw2-tl b { font-size: 13px; margin-top: 4px; }
.pw2-tl small { font-size: 11px; color: rgba(255,255,255,.65); font-weight: 600; line-height: 1.2; padding: 0 2px; }
/* Knappen og bunden */
.pw2-go { width: 100%; font-size: 19px; animation: pw2Glow 2.4s ease-in-out infinite; }
@keyframes pw2Glow { 50% { box-shadow: 0 0 0 6px rgba(255,45,149,.18), 0 10px 30px rgba(255,45,149,.35); } }
.pw2-noapp { text-align: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.08); font-weight: 800; animation: none; }
.pw2-fine { text-align: center; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; margin-top: -8px; }
.pw2-skip { align-self: center; background: none; border: 0; color: rgba(255,255,255,.6); font-size: 14px; font-weight: 700; text-decoration: underline; padding: 6px 12px; cursor: pointer; }
.pw2-legal { text-align: center; font-size: 11px; color: rgba(255,255,255,.45); margin-top: -8px; }
.pw2-legal button { background: none; border: 0; color: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
/* Banneret på forsiden */
.prem-banner { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 40px 12px 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(123,47,247,.25), rgba(241,7,163,.18)); border: 1px solid rgba(241,7,163,.35); color: #fff; text-align: left; cursor: pointer; width: 100%; box-sizing: border-box; font: inherit; animation: pw2Pop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.prem-banner .pb-ic { font-size: 28px; }
.prem-banner b { display: block; font-size: 15px; }
.prem-banner small { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; }
#premBanner { position: relative; }
#premBanner .pb-x { position: absolute; top: 22px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; cursor: pointer; }
/* v0.79.1: pris og knap står altid nederst på skærmen – uden at scrolle */
.pw2-in { padding-bottom: 0; }
.pw2-buy { position: sticky; bottom: 0; margin: auto -16px 0; padding: 12px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(11,11,20,0) 0%, rgba(11,11,20,.94) 14%, #0b0b14 100%); z-index: 6; }
.pw2-buy .pw2-plans { margin-top: 8px; }
.pw2-buy .pw2-fine { margin-top: -6px; }
.pw2-buy .pw2-skip { padding: 2px 12px; }
.pw2-buy .pw2-legal { margin-top: -6px; }
.pw2-tl { margin-top: 2px; }
.pw2-card { touch-action: pan-y; }
/* v0.79.1: kompakt top, 👑 på én linje og tidslinjen kortere – så det hele kan ses uden at scrolle */
.pw2-top .pw2-ic { font-size: 24px; vertical-align: -2px; }
.pw2-top small { font-size: 13px; }
.pw2-crown { padding: 8px 12px; }
.pw2-crown > span { font-size: 22px; }
.pw2-crown b { font-size: 14px; }
.pw2-tl b { margin-top: 2px; font-size: 12px; }
.pw2-tl small { font-size: 11px; }
/* 🎮 v0.79.2: interaktive spil i karrusellen */
.pw2-gamecard { height: 100%; box-sizing: border-box; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.45); position: relative; overflow: hidden; }
.pw2-gamecard::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 65%); }
.pw2-gamecard .pg-head { font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.pw2-gamecard .pg-emo { font-size: 46px; line-height: 1.1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); animation: spPulse 2s ease-in-out infinite; }
.pw2-gamecard b { font-size: 19px; font-weight: 900; }
.pw2-gamecard small { font-size: 13px; font-weight: 600; line-height: 1.25; opacity: .92; }
.pw2-gamecard em { font-style: normal; font-size: 11px; font-weight: 800; opacity: .7; margin-top: 2px; }
.pw2-num { gap: 14px; }
.pw2-num > div { flex: 1 1 0; min-width: 0; }
.pw2-num b { font-size: 30px; }
.pw2-num span { font-size: 12px; line-height: 1.15; display: block; }
.pw2-all { text-align: center; line-height: 1; margin-bottom: -4px; }
.pw2-all b { display: block; font-size: 54px; font-weight: 900; background: linear-gradient(90deg, #ff2d95, #ffd36b 50%, #19e3ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; filter: drop-shadow(0 4px 18px rgba(255,45,149,.35)); }
.pw2-all span { font-size: 15px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.pw2-num b { font-size: 24px; }
/* (v0.79.2: skærmen ser ens ud uden spillets CSS – fx på 🎠 admin-siden) */
@keyframes spPulse { 50% { transform: scale(1.15); } }
.pw2 .pw2-go { display: block; border: 0; border-radius: 18px; padding: 16px; font-weight: 900; color: #fff; cursor: pointer; background: linear-gradient(90deg, #ff2d95, #b620e0); font-family: inherit; }
.pw2 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.pw2-front .card67.mini .card67-text { font-size: 16px; line-height: 1.28; } /* (v0.79.2: vandt ikke over .card67.mini før) */
.pw2-front .card67.mini .card67-title { font-size: 18px; }
/* v0.79.2: plads til det store tal */
.pw2-deck { height: 150px; }
.pw2-card { height: 146px; }
.pw2-all b { font-size: 48px; }
/* v0.79.3: roligere skift i karrusellen – blødere og langsommere, mindre drejning, og kortet toner op i stedet for at vende hurtigt */
.pw2-card { transition: transform 1s cubic-bezier(.45,0,.25,1), opacity .9s ease; }
.pw2-flip { transition: transform 1s cubic-bezier(.45,0,.25,1); }
.pw2-card[data-d="1"] { transform: translateX(40%) rotate(4deg) scale(.86); opacity: .6; }
.pw2-card[data-d="-1"] { transform: translateX(-40%) rotate(-4deg) scale(.86); opacity: .6; }
.pw2-card[data-d="2"], .pw2-card[data-d="3"] { transform: translateX(55%) rotate(6deg) scale(.75); opacity: 0; }
.pw2-card[data-d="-2"], .pw2-card[data-d="-3"] { transform: translateX(-55%) rotate(-6deg) scale(.75); opacity: 0; }
/* v0.79.3: kortene vendes kun én gang – når skærmen åbner – derefter glider de bare (forsiden ses også på kortene ved siden af) */
.pw2-deck .pw2-card .pw2-flip { transform: rotateY(0); }
.pw2-deck.fan .pw2-card .pw2-flip { transform: rotateY(180deg); }
/* 🎬 v0.79.6: spil med demo – spillet kører i rammen */
.pw2-gamecard.has-demo { padding: 0; justify-content: flex-start; gap: 0; }
.pw2-gamecard .pg-bar { width: 100%; padding: 6px 10px; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.25); z-index: 1; }
.pw2-gamecard .pg-bar b { font-size: 13px; } .pw2-gamecard .pg-bar small { font-size: 11px; opacity: .85; }
.pg-demo { position: relative; flex: 1; width: 100%; overflow: hidden; background: #0b0b14; display: flex; align-items: center; justify-content: center; }
.pg-demo iframe { position: absolute; left: 0; top: 0; width: 330px; height: 560px; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.pg-demo.live iframe { opacity: 1; }
.pg-demo.live .pg-emo { display: none; }
.pw2-front .card67.mini.pw2-mid .card67-text { font-size: 14px; }
.pw2-front .card67.mini.pw2-long .card67-text { font-size: 12.5px; line-height: 1.22; }
.pw2-front .card67.mini { justify-content: center; overflow: hidden; }

/* v0.79.24: spil-demoerne fylder hele kortet – navnet ligger oven på demoen */
.pw2-gamecard.has-demo { position: relative; }
.pw2-gamecard.has-demo .pg-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,0)); padding-bottom: 12px; }
.pw2-gamecard.has-demo .pg-demo { height: 100%; }

/* 💳 v0.80.0: køb i appen */
.pw2 .pw2-go.busy { opacity: .7; pointer-events: none; }
.pw2-welcome { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 8px; animation: pw2Pop .45s cubic-bezier(.2,.9,.3,1.3); }
.pw2-wel-ic { font-size: 84px; line-height: 1; animation: spPulse 1.6s ease-in-out infinite; }
.pw2-welcome b { font-size: 30px; font-weight: 900; background: linear-gradient(90deg, #ffe9a6, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw2-welcome p { margin: 0; font-size: 17px; line-height: 1.4; color: rgba(255,255,255,.88); max-width: 320px; }
.pw2-welcome .pw2-wel-m { font-size: 13px; color: rgba(255,255,255,.6); }
.pw2-welcome .pw2-go { width: 100%; max-width: 340px; font-size: 19px; margin-top: 10px; }

/* 📜 v0.80.1: betingelser og privatliv oven på købsskærmen */
.pw2-legal { margin-top: -4px; font-size: 12px; }
.pw2-doc { position: fixed; inset: 0; z-index: 8100; background: #0b0b14; display: flex; flex-direction: column; animation: pw2In .25s ease-out; }
.pw2-doc iframe { flex: 1; width: 100%; border: 0; background: #0b0b14; }
.pw2-doc-x { align-self: flex-end; margin: calc(8px + env(safe-area-inset-top, 0px)) 12px 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.14); color: #fff; font: 700 14px system-ui, sans-serif; cursor: pointer; }
/* v1.0.3: kortene er altid dækkende – sidekortene mørklægges i stedet for at blive gennemsigtige (før skinnede de igennem hinanden under skiftet) */
.pw2-card[data-d="1"], .pw2-card[data-d="-1"], .pw2-card[data-d="0"] { opacity: 1; }
.pw2-card { transition: transform 1s cubic-bezier(.45,0,.25,1), opacity .45s ease; }
.pw2-front::after { content: ''; position: absolute; inset: 0; background: #0b0b14; opacity: 0; transition: opacity 1s ease; pointer-events: none; z-index: 3; border-radius: inherit; }
.pw2-card[data-d="1"] .pw2-front::after, .pw2-card[data-d="-1"] .pw2-front::after { opacity: .5; }
.pw2-card[data-d="2"] .pw2-front::after, .pw2-card[data-d="-2"] .pw2-front::after, .pw2-card[data-d="3"] .pw2-front::after, .pw2-card[data-d="-3"] .pw2-front::after { opacity: .8; }

/* 🪟 v1.0.21: pris-knapperne er uigennemsigtige – tidslinjen bag dem skinner ikke igennem, når skærmen er lav */
.pw2-plan { background: #17171f; }
.pw2-plan.on { background: #28231e; }
