/* ============================================================
   67420 – 🎮 Interaktive spil 2 (v0.41.0)
   ============================================================ */
.g2-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.g2-game { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.g2-count { font-size: 64px; font-weight: 900; text-align: center; color: var(--yellow); line-height: 1; padding: 6px 0; }
.g2-mine { text-align: center; font-weight: 900; font-size: 19px; padding: 6px 4px; }
.g2-msg { text-align: center; font-weight: 800; font-size: 17px; min-height: 24px; }
.g2-tip { color: var(--muted); font-size: 13px; text-align: center; }
.g2-cv { display: block; border-radius: 14px; background: #0d0d16; touch-action: none; user-select: none; -webkit-user-select: none; max-height: 44vh; width: auto !important; max-width: 100%; margin: 0 auto; }
.g2-cv.small { max-height: 26vh; }
.g2-pad { border: 2px dashed var(--line); }

/* Resultatlisten */
.g2-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; counter-reset: rk; }
.g2-rank li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel); border-radius: 10px; padding: 5px 10px; font-weight: 800; font-size: 15px; counter-increment: rk; }
.g2-rank li span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.g2-rank li span::before { content: counter(rk) "."; color: var(--muted); width: 18px; }
.g2-rank li.best { box-shadow: inset 0 0 0 2px var(--lime); }
.g2-rank li.worst { box-shadow: inset 0 0 0 2px var(--pink); }
.g2-rank li b { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ⏱️ Stop uret / 🧭 */
.g2-clock { font: 900 72px/1 ui-monospace, Menlo, monospace; text-align: center; color: var(--cyan); padding: 10px 0; font-variant-numeric: tabular-nums; }
.g2-clock.hid { color: var(--muted); }
.g2-stop { width: 100%; font-size: 30px !important; padding: 26px !important; }
.g2-arrow { display: inline-block; font-size: 30px; }

/* ☝️ Hold fingeren */
.g2-fpad { width: min(240px, 60vw, 34vh); aspect-ratio: 1; border-radius: 50%; margin: 6px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle, #2a2a48, #15152a); border: 4px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; transition: transform .15s, border-color .15s; }
.g2-fpad span { font-size: 56px; }
.g2-fpad small { color: var(--muted); font-weight: 800; }
.g2-fpad.on { border-color: var(--lime); transform: scale(.96); box-shadow: 0 0 40px rgba(182, 255, 59, .35); }
.g2-task { text-align: center; font-size: 24px; font-weight: 900; color: var(--yellow); min-height: 34px; animation: g2pop .35s ease; }
@keyframes g2pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* 🧮 Hovedregning */
.g2-bar { width: 100%; height: 10px; border-radius: 99px; background: var(--panel); overflow: hidden; }
.g2-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--lime), var(--yellow)); transition: width .05s linear; }
.g2-bar.tens i { background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.g2-sum { font-size: 44px; font-weight: 900; text-align: center; padding: 8px 0; }
.g2-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.g2-opts button { font-size: 28px !important; padding: 18px 0 !important; }
.g2-opts button.wrong { background: var(--red) !important; }

/* 🟩 Husk rækkefølgen */
.g2-simon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(300px, 78vw, 42vh); }
.g2-simon button { aspect-ratio: 1; border-radius: 22px; border: 0; background: var(--c); opacity: .35; transition: opacity .08s, transform .08s; touch-action: manipulation; }
.g2-simon button.lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 30px var(--c); }

/* 🔴 Mindretallet */
.g2-hist { display: flex; justify-content: center; gap: 6px; }
.g2-hist span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; background: var(--panel); }
.g2-hist span.r { background: #e0204a; } .g2-hist span.g { background: #1f9e4f; }
.g2-rg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.g2-rg button { border: 0; border-radius: 22px; padding: 46px 0; font-size: 26px; font-weight: 900; color: #fff; opacity: .55; }
.g2-rg.small button { padding: 16px 0; font-size: 16px; }
.g2-red { background: #e0204a; } .g2-green { background: #1f9e4f; }
.g2-rg button.on { opacity: 1; box-shadow: 0 0 0 4px #fff inset; }
.g2-rgres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.g2-rgcol { border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 4px; opacity: .8; }
.g2-rgcol.r { background: rgba(224, 32, 74, .25); } .g2-rgcol.g { background: rgba(31, 158, 79, .25); }
.g2-rgcol.min { opacity: 1; box-shadow: inset 0 0 0 3px var(--yellow); }
.g2-rgcol b { text-align: center; } .g2-rgcol span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; } .g2-rgcol em { font-style: normal; font-weight: 900; text-align: center; color: var(--yellow); }

/* ✏️ Tegn og gæt */
.g2-word { text-align: center; font-size: 18px; font-weight: 800; } .g2-word b { color: var(--yellow); font-size: 24px; } .g2-word.ok b { color: var(--lime); }
.g2-tools { display: flex; gap: 8px; justify-content: center; align-items: center; }
.g2-col { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; } .g2-col.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.g2-clr { padding: 4px 10px !important; }
.g2-guess { display: flex; gap: 8px; width: 100%; } .g2-guess input { flex: 1; min-width: 0; } .g2-guess .btn { width: auto !important; flex: none; padding-left: 22px; padding-right: 22px; }
.g2-guesses { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 13px; color: var(--muted); }

/* 🍾 Flasken */
.g2-ring { position: relative; width: min(330px, 86vw, 44vh); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #1d3a24 0%, #0f1f14 70%); }
.g2-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; transition: transform .3s; }
.g2-seat.hit { transform: translate(-50%, -50%) scale(1.3); color: var(--yellow); } .g2-seat.hit .av { box-shadow: 0 0 0 3px var(--yellow); }
.g2-bwrap { position: absolute; left: 50%; top: 50%; width: 16%; transform: translate(-50%, -50%); touch-action: none; cursor: grab; }
.g2-bottle { width: 100%; display: block; }

/* 🎈 Ballonen */
.g2-balloon { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.g2-bl { width: calc(var(--s) * 2px); height: calc(var(--s) * 2.3px); border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 35% 30%, #ff8fc7, #ff2d95 60%, #b0105e); position: absolute; bottom: 10px; transition: width .05s, height .05s; }
.g2-bl::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 8px; height: 8px; background: #b0105e; transform: translateX(-50%) rotate(45deg); }
.g2-bl.pop { animation: g2burst .3s forwards; }
@keyframes g2burst { to { transform: scale(1.6); opacity: 0; } }
.g2-bl-target { position: absolute; bottom: 10px; width: calc(var(--s) * 2px); height: calc(var(--s) * 2.3px); border-radius: 50% 50% 48% 48%; border: 2px dashed rgba(255, 255, 255, .55); }
.g2-blow, .g2-thrust, .g2-fbtn { width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* 😜 Grimassen */
.g2-face { position: relative; width: min(260px, 70vw, 36vh); aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #000; }
.g2-face video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
/* v0.64.5: Grimassen – kameraet er stort under legen (uafhængigt af, hvor meget resultatskærmen fylder) */
#screen-game .g2-face.big { width: min(360px, 90vw, 46vh); } #screen-game.fit5 .g2-face.big, #screen-game.fit6 .g2-face.big { width: min(320px, 86vw, 40vh); }
.g2-emo { position: absolute; top: 6px; right: 8px; font-size: 52px; filter: drop-shadow(0 2px 6px #000); }
.g2-fbar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.g2-fbar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .1s; }

/* 🔮 Tankelæseren */
.g2-orb { font-size: 84px; text-align: center; line-height: 1.1; }
.g2-orb.spin:not(.done) { animation: g2orb 1s ease-in-out infinite alternate; }
.g2-orb b { display: inline-grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9a6ff, #6a2bd8); font-size: 64px; box-shadow: 0 0 60px #9d5cff; animation: g2pop .5s ease; }
@keyframes g2orb { from { transform: scale(1) rotate(-6deg); filter: hue-rotate(0); } to { transform: scale(1.15) rotate(6deg); filter: hue-rotate(90deg); } }
.g2-ncard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; background: var(--panel); border-radius: 16px; padding: 10px; }
.g2-ncard span { text-align: center; font-weight: 900; font-size: 20px; padding: 4px 0; background: var(--bg2); border-radius: 8px; }
.g2-ans { text-align: center; font-size: 20px; letter-spacing: 4px; }

/* 🚀 Månelandingen */
.g2-hud { display: flex; justify-content: space-between; gap: 8px; width: 100%; font-size: 13px; color: var(--muted); }
.g2-hud b { color: var(--text); } .g2-hud .bad b { color: var(--pink); } .g2-hud .warn b { color: var(--yellow); } .g2-hud .ok b { color: var(--lime); }

/* 🎣 Fisketuren */
.g2-pond { position: relative; width: 100%; height: 110px; border-radius: 16px; background: linear-gradient(#1b4f7a, #0b2840); overflow: hidden; }
.g2-float { position: absolute; left: 50%; top: -40px; width: 16px; height: 22px; border-radius: 8px 8px 50% 50%; background: linear-gradient(#ff2d95 50%, #fff 50%); transition: top .5s ease-out; }
.g2-float.in { top: 40px; }
.g2-float.bite { animation: g2bob .18s infinite alternate; }
@keyframes g2bob { to { margin-top: 12px; } }
.g2-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; font-size: 12px; color: var(--muted); font-weight: 800; }

/* 🕹️ Grabberen */
.g2-claw-box { position: relative; width: 100%; height: 200px; border-radius: 16px; background: linear-gradient(#1b1b36, #12121f); border: 2px solid var(--line); overflow: hidden; touch-action: none; }
.g2-claw { position: absolute; top: 0; transform: translateX(-50%); width: 40px; height: calc(30px + var(--d) * 120px); display: flex; flex-direction: column; align-items: center; transition: left .2s linear; }
.g2-claw .arm { width: 4px; flex: 1; background: #aaa; }
.g2-claw .hand { width: 40px; height: 26px; border: 4px solid #ddd; border-top: 0; border-radius: 0 0 14px 14px; display: grid; place-items: center; font-size: 22px; }
.g2-claw .hand.closed { width: 30px; }
.g2-cap { position: absolute; bottom: 8px; transform: translateX(-50%); font-size: 26px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.g2-cap.gone { visibility: hidden; }
.g2-chute { position: absolute; left: 4px; top: 4px; font-size: 16px; color: var(--muted); }
.g2-caps { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: 12px; color: var(--muted); font-weight: 700; }

/* 🙈 Tegn blindt */
.g2-blindpad { border: 2px solid var(--line); }
.g2-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.g2-gitem { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel); border: 3px solid transparent; border-radius: 12px; padding: 4px; color: var(--text); font-weight: 800; font-size: 13px; }
.g2-gitem.on { border-color: var(--pink); } .g2-gitem.worst { border-color: var(--pink); } .g2-gitem.mine { opacity: .6; }
.g2-mini { border-radius: 8px; max-height: none; width: min(120px, 15vh) !important; }
#screen-game.fit3 .g2-mini, #screen-game.fit3 .g2-cv.small { max-height: 18vh; }
#screen-game.fit3 .g2-cv { max-height: 38vh; }
@media (prefers-reduced-motion: reduce) { .g2-orb.spin, .g2-float.bite, .g2-task { animation: none !important; } }

/* Skrump, når der mangler plads (fitScreen) – intet må scrolle */
#screen-game.fit2 .g2-cv { max-height: 38vh; } #screen-game.fit2 .g2-ring, #screen-game.fit2 .g2-simon { width: min(300px, 80vw, 38vh); }
#screen-game.fit3 .g2-cv { max-height: 33vh; } #screen-game.fit3 .g2-ring, #screen-game.fit3 .g2-simon { width: min(280px, 76vw, 33vh); } #screen-game.fit3 .g2-fpad, #screen-game.fit3 .g2-face { width: min(200px, 28vh); }
#screen-game.fit3 .g2-balloon { transform: scale(.8); margin: -22px 0; } #screen-game.fit3 .g2-clock { font-size: 56px; } #screen-game.fit3 .g2-count { font-size: 48px; }
#screen-game.fit4 .g2-cv { max-height: 28vh; } #screen-game.fit4 .g2-ring, #screen-game.fit4 .g2-simon { width: min(260px, 70vw, 28vh); } #screen-game.fit4 .g2-mini { width: min(100px, 12vh) !important; }
#screen-game.fit4 .g2-claw-box { height: 150px; } #screen-game.fit4 .g2-rg button { padding: 30px 0; } #screen-game.fit4 .g2-orb b { width: 100px; height: 100px; font-size: 48px; }
#screen-game.fit5 .g2-cv { max-height: 24vh; } #screen-game.fit5 .g2-ring, #screen-game.fit5 .g2-simon { width: min(230px, 24vh); } #screen-game.fit5 .g2-balloon { transform: scale(.65); margin: -40px 0; }
#screen-game.fit5 .g2-rank li { padding: 3px 8px; font-size: 13px; } #screen-game.fit5 .g2-sum { font-size: 34px; } #screen-game.fit5 .g2-opts button { padding: 10px 0 !important; font-size: 22px !important; }
#screen-game.fit6 .g2-cv { max-height: 20vh; } #screen-game.fit6 .g2-ring, #screen-game.fit6 .g2-simon, #screen-game.fit6 .g2-fpad, #screen-game.fit6 .g2-face { width: min(200px, 20vh); } #screen-game.fit6 .g2-mini { width: min(80px, 10vh) !important; }

/* ---------- v0.41.1 ---------- */
.g2-cv.big, .g2-blindpad { max-height: 54vh; }
#screen-game.fit3 .g2-cv.big, #screen-game.fit3 .g2-blindpad { max-height: 46vh; }
#screen-game.fit5 .g2-cv.big, #screen-game.fit5 .g2-blindpad { max-height: 38vh; }
.g2-bigmsg { text-align: center; font-size: 20px; font-weight: 900; padding: 8px 4px; }

/* ✏️ værktøjer */
.g2-tools { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; }
.g2-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; width: 100%; max-width: 340px; }
.g2-cols .g2-col { width: 100%; aspect-ratio: 1; height: auto; }
.g2-tbar { display: flex; gap: 6px; justify-content: center; align-items: center; }
.g2-size, .g2-tool { width: 40px; height: 36px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; font-size: 17px; color: var(--text); }
.g2-size i { display: block; border-radius: 50%; background: #fff; }
.g2-size.on, .g2-tool.on { border-color: var(--cyan); background: #1d2f45; }
.g2-word small { font-size: 13px; color: var(--muted); font-weight: 700; }

/* 🍾 flasken på bordet */
.g2-table { width: min(330px, 88vw, 58vh); aspect-ratio: 1; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; touch-action: none; cursor: grab;
  background: radial-gradient(circle at 50% 45%, #2f8a4a, #165a2c 60%, #0b3318); box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.5); }
.g2-bwrap2 { width: 26%; will-change: transform; transform-origin: 50% 50%; }
.g2-bwrap2 .g2-bottle { width: 100%; display: block; filter: drop-shadow(4px 8px 6px rgba(0,0,0,.5)); }

/* 🎈 mikrofon-måler */
.g2-mic-lv { width: 70%; height: 8px; border-radius: 99px; background: var(--panel); overflow: hidden; }
.g2-mic-lv i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--pink)); }
.g2-giveup { width: auto !important; }

/* 😜 grimasse-billeder */
.g2-grims { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; }
.g2-grims figure, .g2-grall figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.g2-grims img { width: min(78px, 12vh); aspect-ratio: 1; border-radius: 12px; object-fit: cover; border: 2px solid var(--line); }
.g2-grims span, .g2-grall span { position: absolute; top: -4px; right: -4px; font-size: 20px; }
.g2-grims figcaption { font-size: 11px; font-weight: 800; color: var(--muted); }
.g2-grall { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.g2-grow b { display: block; margin-bottom: 2px; } .g2-grow > div { display: flex; gap: 4px; }
.g2-grall img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.g2-grall figure.none { width: 52px; height: 52px; border-radius: 8px; background: var(--panel); display: grid; place-items: center; font-size: 22px; opacity: .4; }

/* 🎩 Den Store Zappo */
.g2-zappo { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.g2-zappo span { font-size: 42px; animation: g2hat 2.4s ease-in-out infinite; }
.g2-zappo b { font-size: 20px; letter-spacing: 2px; background: linear-gradient(90deg, #ffd23f, #ff8fc7, #c9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g2-zappo small { color: var(--muted); font-weight: 700; }
@keyframes g2hat { 50% { transform: translateY(-4px) rotate(-6deg); } }
.g2-zsay { text-align: center; font-size: 15px; font-weight: 600; background: rgba(157,92,255,.15); border-radius: 14px; padding: 8px 10px; }
.g2-pc { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 42px; border-radius: 5px; background: #fff; color: #111; font-weight: 900; line-height: 1; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.g2-pc b { font-size: 13px; } .g2-pc i { font-style: normal; font-size: 13px; } .g2-pc.red { color: #d0103a; }
.g2-pc.big { width: 110px; height: 154px; border-radius: 12px; } .g2-pc.big b { font-size: 46px; } .g2-pc.big i { font-size: 46px; }
.g2-deck { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; }
.g2-piles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.g2-pile { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(157,92,255,.12); border: 2px solid var(--line); border-radius: 14px; padding: 6px 2px; color: var(--text); }
.g2-pile:not([disabled]):active { border-color: var(--yellow); }
.g2-pile .g2-pc { margin-top: -14px; } .g2-pile .g2-pc:first-child { margin-top: 0; }
.g2-pile em { font-style: normal; font-weight: 800; font-size: 12px; margin-top: 4px; }
.g2-reveal { position: relative; display: grid; place-items: center; padding: 10px 0; perspective: 800px; }
.g2-flip { position: relative; width: 110px; height: 154px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.4,.5,1); }
.g2-reveal:not(.open) .g2-flip { animation: g2shake .25s infinite alternate; }
.g2-reveal.open .g2-flip { transform: rotateY(180deg); }
.g2-flip .back, .g2-flip .front { position: absolute; inset: 0; backface-visibility: hidden; display: grid; place-items: center; border-radius: 12px; }
.g2-flip .back { background: repeating-linear-gradient(45deg, #6a2bd8 0 8px, #9d5cff 8px 16px); font-size: 48px; border: 3px solid #fff; }
.g2-flip .front { transform: rotateY(180deg); }
.g2-reveal.open .g2-flip .front { box-shadow: 0 0 50px #ffd23f; }
@keyframes g2shake { to { transform: rotate(3deg) scale(1.03); } }

/* 🧭 */
.g2-npoint { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.g2-npoint svg { width: min(120px, 18vh); filter: drop-shadow(0 0 16px rgba(25,227,255,.6)); animation: g2nb 1.4s ease-in-out infinite; }
.g2-npoint span { font-weight: 900; color: var(--cyan); }
@keyframes g2nb { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .g2-zappo span, .g2-npoint svg, .g2-reveal:not(.open) .g2-flip { animation: none !important; } }

.g2-clawcv { max-height: 50vh; }
.g2-caps { font-size: 11px; gap: 0 8px; }
#screen-game.fit4 .g2-clawcv { max-height: 40vh; }

/* ---------- v0.41.2 ---------- */
.g2-stop { opacity: 1 !important; background: linear-gradient(135deg, #ff2d95, #c3129f) !important; color: #fff !important; }
.g2-ftop { height: 104px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; flex: none; }
.game-main:has(.g2-table) { justify-content: flex-start; } /* (v0.41.3: flasken står stille, når teksten skifter) */
.g2-moon, .g2-lake, .g2-clawcv, .g2-space { max-height: 58vh; }
#screen-game.fit3 .g2-moon, #screen-game.fit3 .g2-lake, #screen-game.fit3 .g2-clawcv, #screen-game.fit3 .g2-space { max-height: 50vh; }
#screen-game.fit5 .g2-moon, #screen-game.fit5 .g2-lake, #screen-game.fit5 .g2-clawcv, #screen-game.fit5 .g2-space { max-height: 42vh; }
.g2-mine small { font-size: 13px; color: var(--muted); font-weight: 700; }
.g2-mic-lv { position: relative; } .g2-mic-lv::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: var(--thr, 60%); width: 2px; background: #fff; }
/* 😜 fotohjul */
.g2-car { position: relative; width: min(280px, 72vw, 36vh); overflow: hidden; border-radius: 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none; margin: 0 auto; }
.g2-track { display: flex; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.g2-track figure { flex: 0 0 100%; margin: 0; position: relative; }
.g2-track img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; pointer-events: none; }
.g2-track span { position: absolute; top: 8px; right: 10px; font-size: 40px; filter: drop-shadow(0 2px 6px #000); }
.g2-track figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 900; text-align: center; }
.g2-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.g2-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); } .g2-dots i.on { background: #fff; }
.g2-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: grid; place-items: center; pointer-events: none; }
.g2-zoom img { width: min(92vw, 80vh); aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.g2-grall img { -webkit-touch-callout: none; user-select: none; }
/* 🎣 */
.g2-stage { position: relative; }
.g2-fover { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); background: rgba(10,10,25,.82); border: 2px solid var(--yellow); border-radius: 18px; padding: 12px 18px; text-align: center; display: flex; flex-direction: column; gap: 2px; animation: g2fpop .4s ease; min-width: 60%; }
@keyframes g2fpop { from { transform: translate(-50%, -50%) scale(.7); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } } /* (v0.64.5: før hoppede boblen, fordi animationen glemte at centrere den) */
.g2-fover b { font-size: 30px; color: var(--yellow); } .g2-fover small { color: var(--muted); font-weight: 700; } .g2-fbig { font-size: 20px; font-weight: 900; }
/* 🕹️ præmien åbnes */
.g2-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(8,4,24,.7); border-radius: 14px; animation: g2fade .3s ease; }
@keyframes g2fade { from { opacity: 0; } }
.g2-ball { position: relative; width: 120px; height: 120px; display: grid; place-items: center; animation: g2ballin .6s cubic-bezier(.2,1.4,.4,1); }
.g2-ball i { position: absolute; left: 0; width: 120px; height: 60px; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 40%, rgba(0,0,0,.6)); }
.g2-ball .top { top: 0; border-radius: 60px 60px 0 0; animation: g2top 1.4s ease forwards .4s; }
.g2-ball .bot { bottom: 0; border-radius: 0 0 60px 60px; animation: g2bot 1.4s ease forwards .4s; }
.g2-ball b { font-size: 70px; transform: scale(0); animation: g2prize .7s cubic-bezier(.2,1.6,.4,1) forwards .9s; filter: drop-shadow(0 0 20px #ffd23f); }
.g2-plabel { font-size: 22px; font-weight: 900; color: var(--yellow); opacity: 0; animation: g2fade .4s ease reverse forwards 1.2s; animation-direction: normal; }
@keyframes g2ballin { from { transform: translateY(120px) scale(.3); } }
@keyframes g2top { 0% { transform: none; } 25% { transform: rotate(-8deg); } 35% { transform: rotate(8deg); } 100% { transform: translate(-40px, -90px) rotate(-60deg); opacity: 0; } }
@keyframes g2bot { 0% { transform: none; } 25% { transform: rotate(8deg); } 35% { transform: rotate(-8deg); } 100% { transform: translate(40px, 90px) rotate(50deg); opacity: 0; } }
@keyframes g2prize { to { transform: scale(1); } }
.g2-plabel { animation: g2show .4s ease forwards 1.3s; } @keyframes g2show { to { opacity: 1; } }
/* De store spil-vinduer (måne, sø, grabber, rummet, tårnet) skrumper mindre end resten */
#screen-game.fit1 :is(.g2-moon, .g2-lake, .g2-clawcv, .g2-space, .g2-tower), #screen-game.fit2 :is(.g2-moon, .g2-lake, .g2-clawcv, .g2-space, .g2-tower) { max-height: 58vh; }
#screen-game.fit3 :is(.g2-moon, .g2-lake, .g2-clawcv, .g2-space, .g2-tower), #screen-game.fit4 :is(.g2-moon, .g2-lake, .g2-clawcv, .g2-space, .g2-tower) { max-height: 52vh; }
#screen-game.fit5 :is(.g2-moon, .g2-lake, .g2-clawcv, .g2-space, .g2-tower), #screen-game.fit6 :is(.g2-moon, .g2-lake, .g2-clawcv, .g2-space, .g2-tower) { max-height: 44vh; }
.g2-tower { max-height: 58vh; }
/* ☝️ v0.41.3: cirklen, der skrumper */
.g2-fpad2 { position: relative; border-radius: 22px; width: min(300px, 82vw, 44vh); background: radial-gradient(circle, #1f1f3a, #101022); border-width: 3px; overflow: hidden; transform: none !important; }
.g2-fpad2.on { border-color: var(--line); box-shadow: none; }
.g2-fpad2 .g2-fring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid var(--lime); background: radial-gradient(circle, rgba(182, 255, 59, .18), rgba(182, 255, 59, .04) 70%); box-shadow: 0 0 30px rgba(182, 255, 59, .35), inset 0 0 20px rgba(182, 255, 59, .2); pointer-events: none; }
.g2-fpad2 .g2-fring i { position: absolute; inset: 42%; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.g2-fpad2 .g2-fring.tight { border-color: var(--pink); box-shadow: 0 0 34px rgba(255, 45, 149, .55); animation: g2pulse .5s ease-in-out infinite alternate; }
.g2-fpad2 .g2-fdot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 16px #fff; pointer-events: none; }
.g2-fpad2 small { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; pointer-events: none; }
.g2-fpad2.miss { border-color: var(--pink); }
.g2-fpad2.gone .g2-fring { opacity: .35; filter: grayscale(1); }
@keyframes g2pulse { to { box-shadow: 0 0 8px rgba(255, 45, 149, .3); } }
#screen-game.fit3 .g2-fpad2 { width: min(260px, 36vh); } #screen-game.fit6 .g2-fpad2 { width: min(220px, 26vh); }
/* 🕹️ v0.41.3: styrepind til Grabberen */
.g2-gctl { display: flex; gap: 10px; align-items: center; width: min(330px, 92vw); margin: 8px auto 0; }
.g2-stick { flex: 1; position: relative; height: 58px; border-radius: 29px; background: linear-gradient(180deg, #15102e, #241a44); border: 2px solid #3a2a6a; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; touch-action: none; user-select: none; -webkit-user-select: none; color: #6a5aa0; font-size: 18px; }
.g2-stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9ccc, #ff2d95 55%, #8a0f4f); box-shadow: 0 4px 10px rgba(0,0,0,.5), 0 0 16px rgba(255, 45, 149, .45); transition: transform .12s ease-out; pointer-events: none; }
.g2-stick.on i { transition: none; }
.g2-gbtn { flex: none; width: auto; min-width: 112px; height: 58px; padding: 0 14px; border-radius: 29px; font-weight: 900; font-size: 17px; white-space: nowrap; overflow: visible; } /* (v0.57.5: teksten blev skåret af) */
#screen-game.fit4 .g2-stick, #screen-game.fit5 .g2-stick, #screen-game.fit6 .g2-stick, #screen-game.fit4 .g2-gbtn, #screen-game.fit5 .g2-gbtn, #screen-game.fit6 .g2-gbtn { height: 46px; }
/* 🏃 v0.41.3: Løb væk – kort med alles positioner */
.g2-runtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(340px, 92vw); margin: 0 auto 6px; }
.g2-meter { display: flex; flex-direction: column; line-height: 1; }
.g2-meter b { font-size: 46px; font-weight: 900; color: var(--lime); text-shadow: 0 0 18px rgba(182, 255, 59, .45); font-variant-numeric: tabular-nums; }
.g2-meter small { color: var(--muted); font-weight: 800; font-size: 12px; margin-top: 2px; }
.g2-rcount { font-weight: 900; font-size: 20px; color: var(--yellow); text-align: right; }
.g2-rcount.big { font-size: 54px; color: #fff; animation: g2pop .4s ease; }
.g2-rcount.go { color: var(--lime); }
.g2-rcount.stop { color: var(--pink); }
.g2-map { position: relative; width: min(340px, 92vw); height: min(340px, 44vh); margin: 0 auto; border-radius: 18px; overflow: hidden; background: #0e0e18; border: 2px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.45); touch-action: none; }
.g2-tiles, .g2-mk { position: absolute; inset: 0; }
.g2-tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; transform-origin: 0 0; opacity: 0; transition: opacity .25s; pointer-events: none; user-select: none; }
.g2-tile.on { opacity: 1; }
.g2-mk { z-index: 3; pointer-events: none; }
.g2-pin { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; will-change: transform; }
.g2-pin { margin: -14px 0 0 -14px; }
.g2-pin .av, .g2-pin img { width: 28px !important; height: 28px !important; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.g2-pin b { position: absolute; top: 31px; left: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 900; background: rgba(10, 10, 20, .8); padding: 1px 6px; border-radius: 8px; }
.g2-pin.me .av, .g2-pin.me img { border-color: var(--lime); box-shadow: 0 0 14px var(--lime); }
.g2-pin.table { margin: -15px 0 0 -15px; z-index: -1; }
.g2-pin.table span { font-size: 22px; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255, 210, 63, .2); border: 2px solid var(--yellow); border-radius: 50%; }
.g2-attr { position: absolute; right: 6px; bottom: 4px; z-index: 4; font-size: 9px; color: rgba(255,255,255,.55); background: rgba(0,0,0,.4); padding: 0 4px; border-radius: 4px; }
.g2-stage.small .g2-map { height: min(220px, 28vh); }
.g2-stage.small .g2-runtop { display: none; }
.g2-lazy { text-align: center; font-weight: 900; color: var(--yellow); font-size: 17px; }
#screen-game.fit3 .g2-map { height: min(300px, 38vh); } #screen-game.fit5 .g2-map, #screen-game.fit6 .g2-map { height: min(240px, 30vh); }
#screen-game.fit5 .g2-meter b, #screen-game.fit6 .g2-meter b { font-size: 34px; }
/* 🗺️ v0.41.4: Google-kortet (CARTO-fliserne og -markørerne skjules, når det er hentet) */
.g2-gmap { position: absolute; inset: 0; z-index: 1; }
.g2-map.gm .g2-tiles, .g2-map.gm .g2-mk { display: none; }
.g2-gmk { position: absolute; left: 0; top: 0; }
.g2-gmk .g2-pin { position: absolute; }
.g2-prize.still, .g2-prize.still * { animation: none !important; }
.g2-prize.still .g2-ball i { opacity: 0; }
.g2-prize.still .g2-ball b { transform: scale(1); }
.g2-prize.still .g2-plabel { opacity: 1; }
/* 🚀 v0.41.6: Månelandingen – fast layout (intet flytter sig, når tekst/knapper skifter) og større vindue */
.game-main:has(.g2-moonst), .game-main:has(.g2-mprev) { justify-content: flex-start; }
.g2-moonst { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.g2-mtop { height: 54px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--muted); font-weight: 700; line-height: 1.3; padding: 0 6px; flex: none; }
.g2-mbox { position: relative; flex: none; line-height: 0; }
#screen-game .g2-cv.g2-moon2 { max-height: none !important; border-radius: 16px; }
.g2-mres { position: absolute; left: 8%; right: 8%; top: 14%; line-height: 1.2; text-align: center; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 10px #000; background: rgba(8, 6, 24, .55); border-radius: 14px; padding: 10px; animation: g2pop .35s ease; }
.g2-mres small { display: block; font-size: 15px; color: var(--yellow); margin-top: 4px; }
.g2-mres i { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.g2-mhud { height: 22px; width: min(360px, 92vw); flex: none; display: flex; align-items: center; justify-content: center; }
.g2-mhud .g2-count { font-size: 20px; }
.g2-mbtn { height: 62px; width: min(360px, 92vw); flex: none; display: flex; align-items: center; justify-content: center; }
.g2-mbtn .btn { margin: 0; width: 100%; }
.g2-moonst.done .g2-mbtn { visibility: hidden; } /* (v0.41.14: pladsen bevares – intet flytter sig) */
.g2-mdbg { position: absolute; left: 6px; right: 6px; bottom: 4px; font: 600 10px/1.2 ui-monospace, monospace; color: #b6ff3b; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 5px; text-align: left; pointer-events: none; }
#screen-game .g2-cv.g2-moon2 { transition: width .45s ease, height .45s ease; }
/* 🚀 v0.41.11 */
.g2-mprev { display: block; margin: 1px auto 4px; border-radius: 16px; max-width: none; flex: none; }
.g2-mbox .g2-count:not([hidden]) { position: absolute; inset: 0; display: grid; place-items: center; font-size: 76px; line-height: 1; color: #fff; text-shadow: 0 4px 20px #000; pointer-events: none; }
.g2-moonst.mini .g2-mhud, .g2-moonst.mini .g2-mbtn, .g2-moonst.mini .g2-mres { display: none; }
#screen-game .g2-moonst.mini .g2-cv.g2-moon2 { height: min(170px, 21vh) !important; width: auto !important; aspect-ratio: 320 / 400; }
/* ☝️ v0.41.14: fladen har fast størrelse (sat fra skærmen), så værten har samme vindue som de andre */
#screen-game .g2-fpad2 { width: var(--fps, 280px) !important; }

.g2-steps { text-align: left; margin: 8px auto 0; padding-left: 20px; max-width: 34em; font-size: 13px; line-height: 1.35; } .g2-steps li { margin: 3px 0; } /* v0.42.31: Fisketuren forklaret trin for trin */

/* 🧱 v0.42.36: Tårnet – hvis tur er det? */
.g2-turn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 4px auto 6px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.06); font-weight: 900; font-size: 17px; text-align: center; }
.g2-turn small { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--muted); }
.g2-turn.me { background: var(--yellow); color: #1a1200; font-size: 26px; letter-spacing: .5px; box-shadow: 0 0 22px rgba(255,210,63,.55); animation: g2turn 1.1s ease-in-out infinite; }
.g2-turn.me small { color: #3a2a00; }
@keyframes g2turn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.g2-tower.myturn { outline: 3px solid var(--yellow); box-shadow: 0 0 24px rgba(255,210,63,.6); }
@media (prefers-reduced-motion: reduce) { .g2-turn.me { animation: none; } }
.no-flash .g2-turn.me { animation: none; }

/* 🧭 v0.63.8: kompasset med alles gæt */
.g2-ncomp { display: block; width: min(400px, 96vw, 46vh); height: auto; margin: 4px auto 2px; }
#screen-game.fit1 .g2-ncomp { width: min(380px, 94vw, 42vh); } #screen-game.fit2 .g2-ncomp { width: min(360px, 92vw, 38vh); }
#screen-game.fit3 .g2-ncomp, #screen-game.fit4 .g2-ncomp { width: min(330px, 34vh); }
#screen-game.fit5 .g2-ncomp, #screen-game.fit6 .g2-ncomp { width: min(280px, 27vh); }
/* v0.64.3: opgørelsen – kompassets størrelse efter antal spillere (ikke efter hvor meget pilen fyldte, mens man spillede) */
#screen-game .g2-ncomp.nc-l { width: min(390px, 94vw, 44vh); } #screen-game .g2-ncomp.nc-m { width: min(340px, 90vw, 36vh); } #screen-game .g2-ncomp.nc-s { width: min(290px, 84vw, 28vh); }

.g2-nrank li b { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; color: var(--text); font-size: 15px; }
.g2-nrank li b em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--yellow); }
.g2-nrank li span small { color: var(--muted); font-weight: 600; }
.g2-pdot { width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block; }

/* 💡 v0.64.1: Tegn og gæt – ordet som felter, der fyldes ud undervejs */
.g2-mask { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0 2px; }
.g2-mask span { width: 22px; height: 28px; border-bottom: 3px solid var(--muted); display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--yellow); }
.g2-mask span.on { border-color: var(--yellow); }
.g2-mask i.sp { width: 12px; }

/* 🎩 v0.64.3: Tankelæseren – kortene deles ud ved hvert skift (telefon + TV) */
@keyframes g2deal { from { opacity: 0; transform: translateY(-26px) rotate(-10deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes g2say { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes g2rise { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.g2-pc.g2-deal { animation: g2deal .38s ease-out both; }
.g2-say { animation: g2say .35s ease-out both; }
.g2-rise { animation: g2rise .45s ease-out both; }
@media (prefers-reduced-motion: reduce) { .g2-pc.g2-deal, .g2-say, .g2-rise { animation: none; } }
.no-flash .g2-pc.g2-deal, .no-flash .g2-say, .no-flash .g2-rise { animation: none; }

/* 🎬 v0.79.18: ⭕ demoen – hvem tegnede hvilken cirkel */
.g2-demo-row { display: flex; align-items: center; gap: 12px; }
.g2-demo-row > :first-child { flex: none; width: auto !important; margin: 0 !important; }
.g2-demo-row { gap: 10px; }
.g2-demo-row .g2-cv { flex: none; width: 170px !important; height: 170px !important; max-height: none !important; margin: 0; }
.g2-demo-leg { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.g2-demo-leg span { display: flex; align-items: center; white-space: nowrap; min-width: 0; }
.g2-demo-leg em { font-style: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g2-demo-leg b { flex: none; margin-left: auto; padding-left: 6px; font-weight: 900; }
.g2-demo-leg i { flex: none; }
.g2-demo-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
/* 🎡 v1.1.0: Tivoli – Kærlighedsmåleren */
.tv-love { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.tv-lrow { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); overflow: hidden; font-weight: 800; }
.tv-lrow span, .tv-lrow b { position: relative; z-index: 1; }
.tv-lrow span { min-width: 0; } .tv-lrow b { flex-shrink: 0; }
.tv-lrow span small { display: block; font-weight: 600; font-size: 12px; opacity: .75; }
.tv-lrow i { position: absolute; left: 0; bottom: 0; height: 4px; opacity: .8; }
/* 🎡 v1.1.2: Tivoli-spillene fylder så meget af skærmen som muligt */
#screen-game .g2-cv.tv-cv { max-height: min(68vh, 640px) !important; }
#screen-game.fit2 .g2-cv.tv-cv, #screen-game.fit3 .g2-cv.tv-cv, #screen-game.fit4 .g2-cv.tv-cv, #screen-game.fit5 .g2-cv.tv-cv { max-height: 60vh !important; }
.tv-brake { display: block; width: min(340px, 100%) !important; max-width: 100%; margin: 8px auto 0 !important; box-sizing: border-box; }
/* 🦆 v1.1.8: ens egen and afsløres */
.tv-myrv { margin: 4px auto 10px; display: block; }
.tv-rv-after { animation: tvRvIn .4s ease both; }
@keyframes tvRvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
