/* ============================================================
   67420 – stil. Mørkt tema med neonfarver, store knapper.
   ============================================================ */
:root {
  --bg: #0b0b14;
  --bg2: #151526;
  --panel: #1b1b30;
  --line: #2c2c4a;
  --text: #f4f4ff;
  --muted: #9a9ac0;
  --pink: #ff2d95;
  --cyan: #19e3ff;
  --lime: #b6ff3b;
  --yellow: #ffd23f;
  --purple: #9d5cff;
  --orange: #ff8a2b;
  --red: #ff4d5e;
  --radius: 18px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)); /* (📱 v0.74.29: appen giver --safe-area-inset-* på Android) */
  --safe-t: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #25154a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }

#app { min-height: 100%; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: var(--safe-t) 16px 0; } /* (📱 v0.74.29: logoet ligger ikke under statusbaren i appen) */

/* ---------- Topbar ---------- */
.brand { display: flex; align-items: baseline; gap: 8px; }
.byline { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.logo {
  font-weight: 900; font-size: 26px; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-right { font-size: 14px; color: var(--muted); }

/* ---------- Skærme ---------- */
.screen { flex: 1; display: flex; flex-direction: column; padding: 8px 0 24px; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.center-stack { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.big-title { font-size: 34px; font-weight: 900; margin: 0 0 8px; text-align: center; }
.muted { color: var(--muted); text-align: center; }

/* ---------- Knapper ---------- */
.btn {
  appearance: none; border: 0; border-radius: var(--radius); padding: 16px 20px;
  font-size: 19px; font-weight: 800; color: var(--text); cursor: pointer; width: 100%;
  transition: transform .08s ease, opacity .2s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn-huge { padding: 24px 20px; font-size: 22px; }
.btn-small { padding: 10px 14px; font-size: 15px; width: auto; }
.btn-primary { background: linear-gradient(135deg, var(--pink), #c3129f); box-shadow: 0 6px 24px rgba(255, 45, 149, .35); }
.btn-secondary { background: linear-gradient(135deg, #1e8bff, var(--cyan)); color: #04121a; box-shadow: 0 6px 24px rgba(25, 227, 255, .3); }
.btn-go { background: linear-gradient(135deg, #52d600, var(--lime)); color: #0b1a00; box-shadow: 0 6px 24px rgba(182, 255, 59, .3); }
.btn-ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); }
.btn-ready-on { background: linear-gradient(135deg, #52d600, var(--lime)); color: #0b1a00; }

.hello {
  background: none; border: 0; color: var(--text); font-size: 26px; font-weight: 800;
  text-align: center; margin-bottom: 12px; cursor: pointer;
}
.hello .pencil { font-size: 20px; opacity: .7; }

/* ---------- Inputs ---------- */
.text-input {
  width: 100%; font-size: 24px; font-weight: 700; padding: 18px; text-align: center;
  background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: var(--radius);
  outline: none;
}
.text-input:focus { border-color: var(--pink); }
.code-inputs { display: flex; gap: 10px; justify-content: center; }
.code-inputs input {
  width: 64px; height: 80px; font-size: 40px; font-weight: 900; text-align: center; text-transform: uppercase;
  background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 16px; outline: none;
}
.code-inputs input:focus { border-color: var(--cyan); }

/* ---------- Lobby ---------- */
.lobby { display: flex; flex-direction: column; gap: 16px; }
.room-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.room-label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }
.room-code { font-size: 56px; font-weight: 900; letter-spacing: 10px; color: var(--yellow); line-height: 1; }
.qr { background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.qr img, .qr svg { width: 170px; height: 170px; display: block; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.panel h2 { margin: 0; font-size: 19px; }
.panel h3 { margin: 16px 0 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.count { color: var(--muted); font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; }

.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.player {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg2);
  border-radius: 12px; border: 1px solid transparent;
}
.player.me { border-color: var(--pink); }
.player .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }
.player .dot.away { background: var(--red); }
.player .pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.player .pname { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .you { color: var(--muted); font-weight: 600; }
.player .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.player .tag.away { background: rgba(255, 77, 94, .15); color: var(--red); }
.player .tag { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--line); color: var(--muted); }
.player .tag.ready { background: rgba(182, 255, 59, .15); color: var(--lime); }
.player .tag.host { background: rgba(255, 210, 63, .15); color: var(--yellow); }
.player .ctrl { display: flex; gap: 4px; }
.player .ctrl button {
  background: var(--line); border: 0; color: var(--text); border-radius: 8px; width: 34px; height: 34px;
  font-size: 16px; cursor: pointer;
}
.player .ctrl button:active { transform: scale(.92); }

/* ---------- Indstillinger ---------- */
.level-name { text-align: center; font-size: 22px; font-weight: 900; margin: 6px 0; }
.slider { width: 100%; accent-color: var(--pink); height: 32px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 70px; padding: 10px 8px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg2); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer;
}
.seg button.on { border-color: var(--pink); background: rgba(255, 45, 149, .15); }
.toggles { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6px; }
.toggle {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg2);
  border: 2px solid var(--line); font-size: 14px; font-weight: 700; cursor: pointer; user-select: none; min-width: 0; overflow-wrap: break-word;
}
.toggle.on { border-color: var(--cyan); }
.toggle .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--muted); flex: none; }
.toggle.on .box { background: var(--cyan); border-color: var(--cyan); }
.summary { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.summary b { color: var(--text); }
details summary { cursor: pointer; font-weight: 800; padding: 6px 0; }

.lobby-actions { display: flex; flex-direction: column; gap: 10px; padding-bottom: var(--safe-b); }

/* ---------- Spillet ---------- */
#screen-game { padding-bottom: var(--gbh, 90px); } /* (v0.41.19: målt ud fra knapperne nederst – de kan være højere på telefoner med stor skrift) */
.game-top { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: 14px; padding: 2px 2px 10px; }
.game-banner { background: rgba(255, 210, 63, .12); border: 1px solid rgba(255, 210, 63, .4); color: var(--yellow); padding: 8px 12px; border-radius: 12px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.game-main { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.game-main .card67 { min-height: 46vh; animation: cardIn .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes cardIn { from { transform: rotateY(90deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.others-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.others-box .who { font-size: 24px; font-weight: 900; }
.others-box .sub { color: var(--muted); margin-top: 6px; }
.game-actions { display: flex; flex-direction: column; gap: 8px; }
.game-bottom { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 10px 16px calc(12px + var(--safe-b)); pointer-events: none; }
.hold-btn {
  pointer-events: auto; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 99px;
  padding: 12px 20px; font-weight: 800; font-size: 15px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.hold-btn:active { background: var(--line); }
.game-bottom { gap: 10px; }
.mission-btn { background: #16161f; border: 2px dashed rgba(255, 255, 255, .35); }
.verdict-row { display: flex; gap: 8px; flex-wrap: wrap; } /* (v0.78.8: smalle skærme – knapperne lægger sig under hinanden i stedet for at ryge ud over kanten, fx "Ikke overbevisende") */
.verdict-row .btn { flex: 1 1 0; min-width: min-content; padding-left: 12px; padding-right: 12px; } /* (ord deles aldrig – er der ikke plads til det længste ord, kommer knappen på en ny linje) */
.btn-no { background: linear-gradient(135deg, #b3122b, var(--red)); }
.verdict-result { border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 900; font-size: 20px; }
.verdict-result.yes { background: rgba(182, 255, 59, .15); color: var(--lime); border: 2px solid var(--lime); }
.verdict-result.no { background: rgba(255, 77, 94, .15); color: var(--red); border: 2px solid var(--red); }
.verdict-why { color: var(--muted); text-align: center; font-weight: 700; }
.card67-verdict { border: 2px solid rgba(255, 255, 255, .25); }
.wait-dots { text-align: center; font-size: 42px; color: var(--muted); letter-spacing: 6px; animation: pulse 1.2s infinite; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-tile { background: var(--bg2); border-radius: 14px; padding: 12px; text-align: center; }
.stat-tile b { display: block; font-size: 26px; }
.stat-tile span { color: var(--muted); font-size: 13px; }
.awards { display: flex; flex-direction: column; gap: 6px; }
.award-row { background: var(--bg2); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.award-row { align-items: center; }
.award-row .aw { color: var(--yellow); white-space: nowrap; }
.award-row .aw-who { text-align: right; display: flex; flex-direction: column; }
.award-row .aw-who .muted { font-size: 12px; font-weight: 600; text-align: right; }
.stats li .sub { color: var(--muted); font-size: 12px; font-weight: 600; }
.rules-overlay { position: fixed; inset: 0; background: rgba(5, 5, 12, .92); z-index: 45; display: flex; align-items: center; justify-content: center; padding: 20px; pointer-events: none; }
.rules-box { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 12px; }
.rules-box h2 { margin: 0; text-align: center; }
.rule-item { background: #b6ff3b; color: #0d1a00; border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: 18px; }
.rule-item.mission { background: #16161f; color: #fff; border: 2px dashed rgba(255, 255, 255, .35); }
.rule-item small { display: block; font-size: 12px; opacity: .7; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.pause-overlay { position: fixed; inset: 0; background: rgba(5, 5, 12, .9); z-index: 44; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pause-box { text-align: center; width: 100%; max-width: 400px; }
.pause-emoji { font-size: 80px; }
.flash { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: #fff; animation: flash .6s ease-out forwards; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.ended { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stats li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg2); border-radius: 12px; font-weight: 700; }
.stats li .award { color: var(--yellow); font-size: 13px; }
.level-row { display: flex; gap: 6px; }
.level-row button { flex: 1; padding: 12px 0; border-radius: 12px; border: 2px solid var(--line); background: var(--bg2); color: var(--text); font-weight: 800; font-size: 18px; }
.level-row button.on { border-color: var(--pink); background: rgba(255, 45, 149, .15); }

/* ---------- Spil-pladsholder ---------- */
.waiting-orb {
  width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cyan), var(--purple) 55%, var(--pink));
  animation: pulse 2.4s ease-in-out infinite; box-shadow: 0 0 60px rgba(157, 92, 255, .5);
}
@keyframes pulse { 50% { transform: scale(1.08); } }
.host-fab {
  position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); font-size: 22px; cursor: pointer; z-index: 20;
}

/* 🐞 v0.57.15: midlertidig fejl-knap for spillere (værten har den i værtsmenuen) */
.bug-fab { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 19px; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 0; opacity: .75; }

.hm-bug { display: block; margin: 8px auto 0; background: none; border: 0; color: #5aa9ff; font-size: 13px; font-weight: 700; padding: 4px 10px; cursor: pointer; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 10px 0 calc(10px + var(--safe-b)); color: #55557a; font-size: 12px; user-select: none; }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: flex; align-items: flex-end;
  justify-content: center; z-index: 50; padding: 16px; animation: fadeIn .15s ease;
}
.modal {
  width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--safe-b);
}
.modal-body { font-size: 18px; }
.modal-body h3 { margin: 0 0 8px; font-size: 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; }
/* v0.78.6: lange vinduer (fx 👁 Regler med mange regler) kan scrolles – knapperne bliver i bunden */
.modal { max-height: calc(100vh - 32px - var(--safe-b) - var(--safe-t)); max-height: calc(100dvh - 32px - var(--safe-b) - var(--safe-t)); min-height: 0; }
.modal-body { overflow-y: auto; min-height: 0; flex: 0 1 auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.modal-actions { flex-shrink: 0; max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translateX(-50%); background: var(--panel); /* (📱 v0.74.56: under statusbaren og kameraet i appen) */
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; z-index: 60; max-width: 90vw;
  font-weight: 700; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: fadeIn .2s ease; text-align: center;
}
.toast.error { border-color: var(--red); }

.conn-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--red); color: #fff; text-align: center;
  padding: 10px 10px calc(10px + var(--safe-b)); font-weight: 800; z-index: 40;
}

/* ---------- Debug ---------- */
.debug {
  position: fixed; inset: 0; background: rgba(5, 5, 10, .97); z-index: 100; display: flex; flex-direction: column;
  padding: 12px; font-size: 12px;
}
.debug-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.debug-head button { background: var(--line); color: var(--text); border: 0; padding: 8px 12px; border-radius: 8px; margin-left: 6px; }
.debug pre { flex: 1; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-word; color: #c8c8e8; }

/* ---------- Interaktive spil ---------- */
.snail-timer { text-align: center; font-weight: 900; font-size: 20px; color: var(--yellow); }
.snail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.snail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px;
  background: var(--bg2); color: var(--text); border: 2px solid var(--line); cursor: pointer; font-size: 16px;
}
.snail-btn .snail-emoji { font-size: 28px; filter: drop-shadow(0 0 6px var(--c)); }
.snail-btn b { color: var(--c); }
.snail-btn small { color: var(--muted); font-size: 11px; text-align: center; }
.snail-btn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--bg2)); }
.bet-row { display: flex; align-items: center; gap: 10px; }
.bet-row .btn { width: 64px; font-size: 26px; padding: 10px; }
.bet-val { flex: 1; text-align: center; }
.bet-val b { display: block; font-size: 34px; }
.bet-val span { color: var(--muted); font-size: 13px; }
.race { position: relative; background: #101022; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.lane { position: relative; height: 44px; border-bottom: 2px dashed rgba(255, 255, 255, .08); }
.lane-name { position: absolute; left: 4px; top: 0; font-size: 11px; font-weight: 800; color: var(--c); white-space: nowrap; overflow: hidden; max-width: 90%; }
.lane-snail { position: absolute; left: 0; bottom: 2px; font-size: 30px; transform: scaleX(-1); filter: drop-shadow(0 0 8px var(--c)); }
.finish-line { position: absolute; right: 8px; top: 8px; bottom: 8px; width: 6px; background: repeating-linear-gradient(0deg, #fff 0 6px, #000 6px 12px); opacity: .8; }
.race-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 90px; font-weight: 900; color: var(--yellow); background: rgba(10, 10, 20, .55); z-index: 2; }
.stats li .ok { color: var(--lime); }
.stats li .bad { color: var(--red); }
.rule-input { min-height: 90px; font-size: 18px; text-align: left; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; font-size: 13px; cursor: pointer; }

/* ---------- Interaktive spil v2 (kompakt, så alt kan ses uden at scrolle) ---------- */
#app { min-height: 100dvh; min-height: var(--apph, 100dvh); }
.game-main { gap: 10px; }
.g-head { text-align: center; font-weight: 900; font-size: 24px; letter-spacing: .5px; }
.g-sub { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.gcard { min-height: 0 !important; padding: 18px 16px; gap: 10px; }
.gcard .card67-title { font-size: 26px; }
.gcard .card67-text { font-size: 18px; }
.snail-grid { gap: 6px; }
.snail-grid.n3, .snail-grid.n5, .snail-grid.n6 { grid-template-columns: 1fr 1fr 1fr; }
.snail-grid.n4 { grid-template-columns: 1fr 1fr; }
.snail-btn { padding: 8px 4px; font-size: 14px; }
.snail-btn .snail-emoji { font-size: 22px; }
.bet-row .btn { width: 56px; padding: 8px; font-size: 22px; }
.bet-val b { font-size: 28px; }
.race.n3 .lane, .race.n4 .lane { height: 54px; }
.race .lane { height: 40px; }
.verdict-result.compact { padding: 10px; font-size: 18px; }
.stats.compact li { padding: 7px 10px; font-size: 14px; }
.stats.rate-list { max-height: min(26vh, 176px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex-shrink: 0; } /* ⭐ v0.75.26: alles karakterer – scroller i stedet for at skubbe knapperne */
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.choose-grid .btn { padding: 12px 8px; font-size: 16px; }
.btn.small, .text-input.small { padding: 10px 12px; font-size: 15px; width: auto; }
.text-input.small { flex: 1; text-align: left; }
.file-btn { display: block; text-align: center; }
.sensor-note { background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .4); color: var(--yellow); border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 700; text-align: center; }
.big-timer { text-align: center; font-size: 34px; font-weight: 900; color: var(--yellow); }
.big-timer.huge { font-size: 80px; }
.shake-count { text-align: center; font-size: 96px; font-weight: 900; line-height: 1; color: var(--lime); }
.tap-pad { width: 100%; min-height: 34vh; border-radius: 22px; border: 0; background: linear-gradient(135deg, #9d5cff, #ff2d95); color: #fff; font-size: 24px; font-weight: 900; touch-action: manipulation; user-select: none; }
.tap-pad:active { transform: scale(.98); }
.react-pad { min-height: 52vh; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; user-select: none; touch-action: manipulation; transition: background .05s; }
.react-pad.wait { background: #22223a; color: var(--muted); }
.react-pad.red { background: #c21a33; color: #fff; }
.react-pad.green { background: #2fd14a; color: #062b0d; }
.shout-who { text-align: center; font-size: 26px; font-weight: 900; min-height: 34px; }
.meter { height: 22px; border-radius: 99px; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); }
.meter-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--yellow), var(--red)); transition: width .06s; }
.level-bubble { width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line); position: relative; background: radial-gradient(circle, rgba(182,255,59,.12) 0 22%, transparent 23%); display: flex; align-items: center; justify-content: center; }
.bubble { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px var(--lime); transition: transform .08s; }
.roulette-pad { min-height: 58vh; border-radius: 24px; background: #111122; border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 16px; transition: background .04s; }
.roulette-pad .r-name { font-size: 34px; font-weight: 900; }
.roulette-pad .r-info { color: var(--muted); font-size: 15px; }
.roulette-pad.lit { background: #fff; color: #0b0b14; box-shadow: 0 0 80px #fff; }
.roulette-pad.win, .roulette-pad.res { min-height: 22vh; }
.roulette-pad.win { background: var(--pink); color: #fff; animation: pulse 1s infinite; }
.potato-cat { text-align: center; font-size: 28px; font-weight: 900; color: var(--orange); }
.bomb-btn { width: 100%; min-height: 40vh; border-radius: 26px; border: 0; background: radial-gradient(circle, #ff6a2b, #b3122b); color: #fff; font-size: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: pulse .6s infinite; touch-action: manipulation; }
.bomb-btn span { font-size: 24px; font-weight: 900; }
.team-pad { border-radius: 24px; padding: 24px 16px; text-align: center; color: #fff; display: flex; flex-direction: column; gap: 10px; min-height: 46vh; justify-content: center; }
.team-name { font-size: 40px; font-weight: 900; }
.team-mates { font-size: 16px; font-weight: 700; opacity: .9; }
.team-task { font-size: 20px; font-weight: 700; }
.team-timer { font-size: 30px; font-weight: 900; }
.vote-q { text-align: center; font-size: 21px; font-weight: 800; }
.buddy-q { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.buddy-q small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.buddy-row { display: flex; gap: 6px; }
.buddy-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.buddy-cmp span { background: var(--bg2); border-radius: 10px; padding: 8px; font-weight: 800; display: flex; flex-direction: column; gap: 2px; }
.ok-line { color: var(--lime); font-weight: 800; }
.bad-line { color: var(--red); font-weight: 800; }
.photo-overlay { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; align-items: center; justify-content: center; }
.photo-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-overlay.peek { z-index: 90; }
.photo-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 30px; font-weight: 900; color: #fff; }
.photo-timer { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 40px; font-weight: 900; color: #fff; text-shadow: 0 0 10px #000; }
.photo-peek { align-self: center; }

.music-off { text-align: center; font-size: 24px; font-weight: 900; color: #0b0b14; background: var(--yellow); border-radius: 14px; padding: 10px; animation: pulse 1.2s infinite; }

/* Kortpakke-fordeling (flere delepunkter på én slider) */
.share-slider { margin: 4px 0 6px; user-select: none; -webkit-user-select: none; }
.share-track { position: relative; height: 44px; border-radius: 12px; background: #1b1b2b; touch-action: none; cursor: pointer; margin: 0 12px; }
.share-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #0b0b14; font-weight: 900; font-size: 14px; opacity: .9; }
.share-seg.first { border-radius: 12px 0 0 12px; }
.share-seg.last { border-radius: 0 12px 12px 0; }
.share-seg.tiny .share-pct { display: none; }
.share-handle { position: absolute; top: -5px; bottom: -5px; width: 7px; margin-left: -3.5px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 2px #0b0b14, 0 2px 8px rgba(0,0,0,.5); pointer-events: none; transition: transform .1s; } /* v0.39.4: aflang streg i stedet for cirkel */
.share-handle.active { transform: scaleX(1.5); }
.share-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; }
.share-summary i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.share-hint { margin-top: 4px; font-size: 12px; }
#packToggles .toggle { font-size: 13px; padding: 8px; gap: 6px; }
#packToggles .toggle .box { width: 16px; height: 16px; }
.toggle .tname { flex: 1; min-width: 0; line-height: 1.2; }
.toggle .tname small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }

/* v0.9 */
.beta { align-self: center; padding: 2px 7px 1px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: 1px; line-height: 1.3; border: 1.5px solid var(--yellow); color: var(--yellow); }
/* v0.26.51: kortet dæmpes ikke længere, når man trykker Næste – alle ser det samme kortskift */
.btn.pressed { opacity: 1 !important; filter: saturate(.6); animation: pressGlow 1.2s ease-in-out infinite; } /* (v0.41.24: blinker blødt i stedet for at skrumpe – den så ud til at sidde længere nede) */
@keyframes pressGlow { 50% { filter: saturate(.6) brightness(.82); } }
@keyframes pressPulse { 50% { transform: scale(.97); } }
.ready-ok { text-align: center; font-weight: 900; font-size: 20px; color: #b6ff3b; padding: 12px; }
.howto-box { background: var(--bg2); border-radius: 14px; padding: 10px 12px; }
.howto { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.35; display: flex; flex-direction: column; gap: 5px; }
.photo-preview { display: block; max-width: 100%; max-height: 32vh; margin: 0 auto; border-radius: 12px; object-fit: contain; }
.duel-list { margin: 0; padding-left: 22px; text-align: left; font-size: 17px; }
.duel-list li { padding: 2px 0; }
.duel-list li span { margin-right: 8px; }
.duel-list li.lose { color: #ff8aa0; }
.r-first { text-align: center; font-size: 22px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.num-btn { background: var(--bg2); color: var(--text); border: 2px solid var(--line); border-radius: 12px; padding: 8px 4px; font-size: 22px; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-height: 58px; }
.num-btn small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-btn.on { border-color: var(--cyan); background: #0c3b4a; }
.num-btn:disabled { opacity: .45; }
.bomb-timer { display: block; font-size: 44px; font-weight: 900; line-height: 1; }
.bomb-timer.big { text-align: center; font-size: 64px; margin-top: 8px; }
.bomb-timer.hot { color: #ff3b5c; animation: pressPulse .4s infinite; }
.boom-flash { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: boom 1.9s ease-out forwards; }
.boom-flash span { font-size: 72px; font-weight: 900; text-align: center; color: #fff; text-shadow: 0 0 30px #ff2d00; line-height: 1.1; animation: boomText 1.9s ease-out forwards; }
@keyframes boom { 0% { background: #fff; } 8% { background: #ffe14d; } 20% { background: #ff3b00; } 45% { background: #ff0033; } 100% { background: rgba(255,0,51,0); } }
@keyframes boomText { 0% { transform: scale(.3); opacity: 1; } 25% { transform: scale(1.3); } 70% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.mole-start { text-align: center; font-size: 18px; background: var(--bg2); border-radius: 12px; padding: 10px; }

/* Draft */
.draft { display: flex; flex-direction: column; gap: 14px; }
#draftMain { display: flex; flex-direction: column; gap: 10px; }
.draft-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.draft-head .big-title { font-size: 24px; margin: 0; }
.draft-count { color: var(--muted); font-weight: 700; white-space: nowrap; }
.draft-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.ddot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg2); font-size: 18px; cursor: pointer; padding: 0; position: relative; }
.ddot.done { border-color: #3ddc5a; }
.ddot.done::after { content: '✓'; position: absolute; right: -4px; bottom: -4px; background: #3ddc5a; color: #0b0b14; border-radius: 50%; width: 16px; height: 16px; font-size: 11px; font-weight: 900; line-height: 16px; }
.ddot.cur { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,227,255,.25); }
.draft-card { border-radius: 20px; padding: 16px; min-height: 150px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dc-type { font-weight: 900; letter-spacing: 2px; font-size: 14px; opacity: .9; }
.dc-text { font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dc-foot { font-size: 12px; opacity: .8; }
.pv-name { background: rgba(255,255,255,.22); border-radius: 6px; padding: 0 5px; }
.pv-sip { text-decoration: underline; text-decoration-thickness: 2px; }
.pv-empty { opacity: .55; font-weight: 600; }
.draft-tip { font-size: 14px; color: var(--muted); line-height: 1.35; }
.draft-input { min-height: 84px; resize: vertical; font-size: 17px; text-align: left; font-family: inherit; letter-spacing: normal; text-transform: none; font-weight: 600; line-height: 1.35; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 14px; cursor: pointer; }
.chip:active { transform: scale(.96); border-color: var(--cyan); }
.small-note { font-size: 12px; }
.draft-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.draft-actions .btn { font-size: 14px; padding: 12px 8px; }
.draft-list { display: flex; flex-direction: column; gap: 8px; }
.draft-mini { text-align: left; border: 0; border-radius: 14px; padding: 10px 12px; font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.draft-mini small { font-size: 11px; font-weight: 800; letter-spacing: 1px; opacity: .85; text-transform: uppercase; }
.draft-prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.draft-prog li { display: grid; grid-template-columns: minmax(0,1.3fr) 1fr auto; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.draft-prog li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-bar { height: 8px; border-radius: 4px; background: var(--bg2); overflow: hidden; }
.dp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #3ddc5a); }
.toggle.wide { grid-column: 1 / -1; }
.draft-set { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 14px; border: 1px dashed var(--line); }
.ds-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.count-list { display: flex; flex-direction: column; gap: 4px; }
.count-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--bg2); font-weight: 700; font-size: 14px; opacity: .7; }
.count-row.on { opacity: 1; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--line); color: var(--text); font-size: 20px; font-weight: 900; cursor: pointer; }
.stepper b { min-width: 18px; text-align: center; }
[hidden] { display: none !important; }

/* Bombe: baggrund der skifter farve hvert sekund */
body.bomb-bg { background: var(--bomb, #0b0b14) !important; transition: background .08s; }
/* Hemmelig mission: notifikation i toppen */
.secret-note { position: fixed; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; z-index: 9000; background: #16161f; color: #fff; border: 2px solid #9d5cff; border-radius: 18px; padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 4px rgba(157,92,255,.2); animation: snIn .4s ease-out; max-width: 520px; margin: 0 auto; }
.secret-note.gone { animation: snOut .35s ease-in forwards; pointer-events: none; }
@keyframes snIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes snOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px) scale(.98); } }
.sn-head { font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #c9a8ff; }
.sn-text { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 8px 0; }
.sn-foot { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.slide-track { --p: 0; position: relative; height: 54px; border-radius: 999px; background: linear-gradient(90deg, rgba(157,92,255,calc(.25 + var(--p) * .6)), #24243a); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.slide-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #d9c6ff; padding-left: 40px; opacity: calc(1 - var(--p)); }
.slide-knob { position: absolute; top: 4px; left: 4px; width: 46px; height: 46px; border-radius: 50%; background: #9d5cff; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: grab; touch-action: none; transition: transform .2s; }
.slide-knob.drag { transition: none; cursor: grabbing; }

/* v0.12 */
.bomb-btn { transition: background .06s; }
.bomb-btn.yellow { background: radial-gradient(circle at 50% 40%, #fff6a8, #ffd23f 60%, #e0a800) !important; color: #1a1400; }
.duel-list li.r-ok, .duel-list li.r-ok b { color: #5dff7a; }
.duel-list li.r-early, .duel-list li.r-early b { color: #ff5c73; }
.duel-list li.r-none, .duel-list li.r-none b { color: #9a9ab0; }
.buddy-about { text-align: center; font-size: 17px; }
.buddy-row { display: flex; gap: 8px; }
.buddy-row .text-input { flex: 1; text-align: left; font-size: 17px; }
.buddy-truth { background: #0c3b4a; border: 2px solid var(--cyan); border-radius: 14px; padding: 10px 12px; font-size: 20px; font-weight: 900; text-align: center; }
.buddy-truth small, .buddy-ans small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.buddy-list { display: flex; flex-direction: column; gap: 6px; }
.buddy-ans { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg2); border-radius: 12px; padding: 8px 10px; font-weight: 700; border: 2px solid transparent; }
.buddy-ans.ok { border-color: #3ddc5a; }
.buddy-ans.bad { border-color: #ff3b5c; }
.buddy-ans .bj { display: flex; gap: 6px; flex: none; }
.buddy-ans .bj .btn { padding: 8px 12px; min-width: 0; }
.buddy-row .btn { width: auto; flex: none; padding-left: 18px; padding-right: 18px; }
.buddy-row .text-input { min-width: 0; }

/* Kortpakke-vælger */
.pack-chosen { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pack-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: var(--bg2); border: 2px solid var(--cyan); color: var(--text); border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 15px; cursor: pointer; }
.pack-chip small { color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; }
.sheet-back { position: fixed; inset: 0; z-index: 8000; background: rgba(5,5,12,.75); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; background: #12121d; border-radius: 22px 22px 0 0; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0,0,0,.6); animation: sheetIn .25s ease-out; }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; }
.sheet-x { background: var(--bg2); border: 0; color: var(--text); width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.sheet-back-btn { background: none; border: 0; color: var(--cyan); font-weight: 800; font-size: 16px; cursor: pointer; padding: 6px 0; }
.sheet-search { text-align: left; font-size: 16px; padding: 10px 12px; }
.ps-title { margin: 0; font-size: 22px; }
.pack-list { display: flex; flex-direction: column; gap: 8px; }
.pack-row { display: flex; align-items: stretch; gap: 0; background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.pack-row.on { border-color: var(--cyan); }
.pr-toggle { background: none; border: 0; padding: 0 6px 0 12px; cursor: pointer; display: flex; align-items: center; }
.pack-row .box, .card-row .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--muted); flex: none; display: inline-block; }
.pack-row.on .box, .card-row.on .box { background: var(--cyan); border-color: var(--cyan); }
.pr-main { flex: 1; min-width: 0; padding: 10px 6px; cursor: pointer; }
.pr-name { font-weight: 900; font-size: 16px; }
.pr-desc { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; } /* hele beskrivelsen vises */
.pr-desc.big { -webkit-line-clamp: unset; display: block; font-size: 14px; }
.pr-meta { font-size: 12px; color: var(--cyan); font-weight: 700; margin-top: 4px; }
.pr-edit { background: rgba(255,255,255,.04); border: 0; border-left: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: 13px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.ps-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.btn-mini { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12px; margin-left: 6px; cursor: pointer; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { border: 2px solid var(--line); background: var(--bg2); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 12px; cursor: pointer; }
.tchip.on { border-color: var(--cyan); color: var(--text); }
.tchip.part { border-color: var(--cyan); border-style: dashed; color: var(--text); }
.tchip small { opacity: .7; }
.card-list { display: flex; flex-direction: column; gap: 4px; }
.card-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--bg2); cursor: pointer; font-size: 14px; line-height: 1.35; opacity: .5; }
.card-row.on { opacity: 1; }
.cr-text i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
#openPacks .hint { color: inherit; opacity: .75; }

/* Mission klaret */
.mission-done { background: linear-gradient(135deg, #2bb24c, #7cff5a); color: #0b1a00; border: 0; touch-action: manipulation; }
.mission-done.urgent { animation: missionPulse 1s ease-in-out infinite; }
@keyframes missionPulse { 50% { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(124,255,90,.25); } }
.game-bottom { flex-wrap: wrap; }
.coach { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: #fff; color: #111; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.5); pointer-events: auto; animation: coachIn .3s ease-out, coachBob 1.2s ease-in-out .3s infinite; }
.coach::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
@keyframes coachIn { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes coachBob { 50% { transform: translate(-50%, -4px); } }
/* Plads til værtens ⚙️-knap i hjørnet */
.game-bottom { padding-left: 64px; padding-right: 64px; row-gap: 8px; }
.game-bottom .hold-btn { padding: 11px 16px; font-size: 14px; }
#missionDone { order: -1; }
.game-bottom { padding-left: 16px; padding-right: 72px; }
.mission-done small { font-weight: 700; opacity: .75; margin-left: 4px; }

/* v0.13.3 */
.apple .lane-snail { transform: none; }
.verdict-owner { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 2px; }
.vo-name { font-size: 30px; font-weight: 900; color: var(--yellow); line-height: 1.1; text-align: center; }
.vo-sub { color: var(--text); font-weight: 700; font-size: 16px; }
.epi-warn { background: rgba(255,210,63,.12); border: 1px solid var(--yellow); color: #ffe7a1; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
.hold-btn.urgent { animation: missionPulse 1s ease-in-out infinite; border-color: #7cff5a; }

/* v0.14 */
.race-count { background: none !important; pointer-events: none; text-shadow: 0 0 20px #000, 0 0 6px #000; }
.lane.mine::before { content: ''; position: absolute; top: -5px; bottom: -6px; left: -10px; right: -10px; background: color-mix(in srgb, var(--c) 16%, transparent); pointer-events: none; }
.lane-name, .lane-snail { z-index: 1; }
.lane-mine { position: absolute; right: 6px; top: 4px; background: #fff; color: #0b0b14; font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 1px 6px; border-radius: 6px; z-index: 1; }
.lane { position: relative; }
.card67-top { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.card67-top .vo-name { font-size: 30px; font-weight: 900; color: var(--yellow); line-height: 1.1; text-align: center; }
.card67-top .vo-sub { font-size: 16px; font-weight: 700; }
.btn.voted { outline: 4px solid #fff; outline-offset: 2px; }
.mnum { color: var(--yellow); }
.bomb-btn, .bomb-btn.yellow { color: #111 !important; }
.hold-btn.urgent { animation: none !important; }
/* Regler-knappen helt i midten; versionsnummer nede i venstre hjørne */
.game-bottom { padding-left: 72px !important; padding-right: 72px !important; }
.footer { position: fixed; left: 68px; bottom: calc(6px + var(--safe-b)); padding: 0; text-align: left; z-index: 1; pointer-events: auto; font-size: 10px; } /* (v0.41.4: til højre for lyd-knappen – ikke under den) */
/* Epilepsivenlig: ingen blink/puls */
.no-flash .roulette-pad.lit, .no-flash .roulette-pad { transition: none !important; }
.no-flash .bomb-btn, .no-flash .bomb-timer.hot, .no-flash .boom-flash, .no-flash .pulse { animation: none !important; }
.no-flash #flash { display: none !important; }
.lobby-actions.top { display: flex; flex-direction: column; gap: 8px; }
.ended-actions { display: flex; flex-direction: column; gap: 8px; }
.sips-line { font-size: 13px; color: var(--yellow); font-weight: 800; }

.time-pick { display: flex; gap: 10px; margin-top: 8px; }
.time-pick label { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; font-weight: 700; color: var(--muted); }
.time-pick input { width: 100%; min-width: 0; background: none; border: 0; color: var(--text); font-size: 22px; font-weight: 900; text-align: right; outline: none; }
.epi-warn.bottom { position: fixed; left: 12px; right: 12px; bottom: calc(64px + var(--safe-b)); z-index: 5; max-width: 520px; margin: 0 auto; }

/* Boblen skal ligge over epilepsi-advarslen */
.coach.above-warn { bottom: auto; }
.right-q { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; text-align: center; margin: 4px 0; }
.right-arrow { font-size: 40px; line-height: 1; }

/* Sneglen strækker sig, når den skubber sig frem (vender stadig rigtigt på Apple/Android) */
.lane-snail { transform: scaleX(calc(-1 * var(--sx, 1))) scaleY(var(--sy, 1)) !important; transform-origin: 50% 100%; }
.apple .lane-snail { transform: scaleX(var(--sx, 1)) scaleY(var(--sy, 1)) !important; }
.lane-snail { font-size: 29px; }
.lane.boost .lane-name::after { content: '  🔥 COMEBACK!'; color: #ffd23f; }
.race .lane { z-index: 1; }
#raceResult .verdict-result[style*="--wc"] { color: var(--wc); border-color: var(--wc); background: color-mix(in srgb, var(--wc) 14%, #0b0b14); }
.confetti { position: absolute; left: 0; top: 0; width: 7px; height: 11px; border-radius: 2px; z-index: 3; pointer-events: none; }

/* Fører, placeringer og overhalinger */
.lane-rank { color: #fff; margin-right: 2px; }
.lane-crown { position: absolute; bottom: 30px; left: 0; font-size: 15px; line-height: 1; opacity: 0; z-index: 2; pointer-events: none; }
.lane.leading .lane-crown { opacity: 1; }
.overtake-slot { height: 30px; display: flex; justify-content: center; align-items: center; margin-bottom: -4px; }
.overtake { position: relative; z-index: 4; background: rgba(10,10,20,.85); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; font-weight: 900; font-size: 13px; white-space: nowrap; pointer-events: none; }
.overtake.pop { animation: otPop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes otPop { from { transform: scale(.6); opacity: 0; } }

/* Glid (slide) */
.lane-dust { position: absolute; bottom: 4px; left: 0; font-size: 16px; opacity: 0; z-index: 1; pointer-events: none; transform: scaleX(-1); transition: opacity .15s; }
.lane.sliding .lane-snail { filter: drop-shadow(0 0 12px var(--c)) drop-shadow(0 0 4px #fff); }

/* Kortpakke-mærkat (interaktive spil) */
.game-pack { font-size: 12px; opacity: .8; }
/* Kort med interaktion */
.cp-box { display: flex; flex-direction: column; gap: 10px; }
/* Plat eller krone – mønt med to sider, der kastes op, snurrer og lander */
.coin3d { perspective: 800px; display: flex; justify-content: center; align-items: flex-end; height: 120px; position: relative; z-index: 3; }
.coin-toss { position: relative; }
.coin-toss.flipping { animation-name: coinToss; animation-fill-mode: forwards; }
/* Kast som en parabel: op med easeOutQuad, ned med easeInQuad (ingen pause i toppen), til sidst små hop */
@keyframes coinToss {
  0%   { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
  40%  { transform: translateY(-190px) scale(1.15); animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  80%  { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
  87%  { transform: translateY(-18px); animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  93%  { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
  96.5% { transform: translateY(-4px); animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  100% { transform: translateY(0); }
}
.coin-inner { position: relative; width: 104px; height: 104px; transform-style: preserve-3d; }
/* Snurrer med jævn fart hele vejen gennem luften og stopper, når den lander */
.coin-inner.flipping { animation-name: coinSpin; animation-fill-mode: forwards; animation-timing-function: linear; }
@keyframes coinSpin {
  0%   { transform: rotateX(0); }
  80%  { transform: rotateX(var(--end)); }
  87%  { transform: rotateX(calc(var(--end) + 12deg)); }
  93%  { transform: rotateX(var(--end)); }
  100% { transform: rotateX(var(--end)); }
}
.coin-shadow { position: absolute; bottom: -8px; left: 50%; width: 96px; height: 14px; margin-left: -48px; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(3px); }
.coin-shadow.flipping { animation-name: coinShadow; animation-fill-mode: forwards; }
@keyframes coinShadow {
  0% { transform: scale(1); opacity: .5; animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
  40% { transform: scale(.35); opacity: .15; animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  80%, 100% { transform: scale(1); opacity: .5; }
}
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; font-weight: 900; color: #5a3b00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #c99400 100%); box-shadow: inset 0 0 0 6px #e0a800, inset 0 0 0 9px #fff0a0, 0 6px 18px rgba(0,0,0,.45); }
.coin-face b { font-size: 46px; line-height: 1; }
.coin-face small { font-size: 13px; letter-spacing: 2px; margin-top: 2px; }
.coin-face { container-type: size; } /* (v0.78.9: tal, krone og PLAT/KRONE følger møntens størrelse – gik ud over mønten på små skærme) */
@supports (font-size: 1cqw) { .coin-face b { font-size: 40cqw; } .coin-face small { font-size: 11cqw; letter-spacing: .1em; } }
.coin-face.krone { transform: rotateX(180deg); }
.stats.compact li.me { outline: 2px solid var(--yellow); border-radius: 10px; }

.race-cd { font-size: 72px; font-weight: 900; text-align: center; line-height: 1.1; }
.race-btn { min-height: 110px; font-size: 26px; }

.game-main.top { justify-content: flex-start; }
.game-main .card67.compact { min-height: 0; }

/* Alle knapper, kun værten har, er blå (ensartet) */
.btn-host { background: linear-gradient(135deg, #1e6bff, #19b8ff); color: #fff; box-shadow: 0 6px 24px rgba(30, 107, 255, .35); }
.host-fab { background: linear-gradient(135deg, #1e6bff, #19b8ff) !important; }

.pack-warn { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 45, 80, .14); border: 2px solid #ff3b5c; color: #ff8fa3; font-size: 13px; font-weight: 800; line-height: 1.35; }

/* Mobbeofferet */
.victim-tag { font-size: 12px; color: #ff8fb1; font-weight: 800; }
.mode-howto { margin: 4px 0 0; padding-left: 20px; line-height: 1.45; font-size: 14px; }
.gb-box { display: flex; flex-direction: column; gap: 8px; }
.gb-btn { background: linear-gradient(135deg, #7a0f3a, #c2185b); color: #fff; display: flex; flex-direction: column; gap: 3px; font-weight: 900; }
.gb-btn small { font-size: 12px; font-weight: 700; opacity: .85; }
.gb-title { text-align: center; font-weight: 900; font-size: 18px; }
.gb-cards { display: flex; justify-content: center; gap: 18px; perspective: 800px; }
.gb-card { position: relative; width: 104px; height: 144px; border-radius: 14px; border: 0; padding: 0; background: none; transform-style: preserve-3d; cursor: pointer; }
.gb-card .gb-back, .gb-card .gb-face { position: absolute; inset: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gb-back { font-size: 48px; font-weight: 900; color: #ffd6e6; background: repeating-linear-gradient(45deg, #5b0f2e 0 10px, #7a1640 10px 20px); border: 3px solid #ff8fb1; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.gb-face { transform: rotateY(180deg); font-size: 40px; border: 3px solid #fff; }
.gb-face b { font-size: 14px; margin-top: 4px; }
.gb-face.win { background: linear-gradient(160deg, #2e7d00, #6fd400); color: #fff; }
.gb-face.lose { background: linear-gradient(160deg, #7a0000, #e8364f); color: #fff; }
.gb-card.flip { transform: rotateY(180deg); cursor: default; }
.gb-card.flip.anim { animation: gbFlip .8s cubic-bezier(.3, 1.4, .5, 1) both; }
.gb-card.flip.other { opacity: .45; transform: rotateY(180deg) scale(.88); }
.gb-card.flip.other.anim { animation: gbFlipOther 1.4s ease both; }
@keyframes gbFlip { from { transform: rotateY(0) scale(1.08); } to { transform: rotateY(180deg) scale(1); } }
@keyframes gbFlipOther { 0%, 50% { transform: rotateY(0); opacity: 1; } 100% { transform: rotateY(180deg) scale(.88); opacity: .45; } }
/* De to kort bytter plads nogle gange, før man vælger */
.gb-cards.shuffling .gb-card:first-child { animation: gbSwapL 1.2s ease-in-out 2; }
.gb-cards.shuffling .gb-card:last-child { animation: gbSwapR 1.2s ease-in-out 2; }
@keyframes gbSwapL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(122px) translateY(-10px) rotate(6deg); } }
@keyframes gbSwapR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-122px) translateY(10px) rotate(-6deg); } }

.coin-call { text-align: center; font-size: 18px; font-weight: 800; }

/* ---------- Tilpas til skærmen (fitScreen i app.js lægger fit1 … fit6 på, indtil intet skal scrolles) ---------- */
#screen-game.fit1 .game-main { gap: 10px; }
#screen-game.fit1 .game-main .card67 { min-height: 34vh; padding: 20px 18px; gap: 12px; }
#screen-game.fit1 .btn-huge { padding: 18px 16px; font-size: 20px; }
#screen-game.fit2 { padding-bottom: calc(var(--gbh, 90px) - 4px); }
#screen-game.fit2 .game-main .card67 { min-height: 24vh; }
#screen-game.fit2 .card67-title { font-size: 30px; }
#screen-game.fit2 .card67-text { font-size: 19px; }
#screen-game.fit2 .game-main { gap: 8px; }
#screen-game.fit3 .game-main .card67 { min-height: 0; padding: 14px 14px 10px; gap: 8px; }
#screen-game.fit3 .card67-title { font-size: 24px; }
#screen-game.fit3 .card67-text { font-size: 17px; }
#screen-game.fit3 .btn-huge { padding: 14px 12px; font-size: 18px; }
#screen-game.fit3 .vote-q, #screen-game.fit3 .g-head { font-size: 18px; }
#screen-game.fit3 .coin3d { height: 96px; } #screen-game.fit3 .coin-inner { width: 84px; height: 84px; }
#screen-game.fit3 .gb-card { width: 86px; height: 118px; }
#screen-game.fit3 .verdict-result { padding: 10px; font-size: 17px; }
#screen-game.fit4 { padding-bottom: calc(var(--gbh, 90px) - 6px); }
#screen-game.fit4 .card67-title { font-size: 20px; }
#screen-game.fit4 .card67-text { font-size: 15px; }
#screen-game.fit4 .btn { padding-top: 10px; padding-bottom: 10px; }
#screen-game.fit4 .stats.compact li { padding-top: 4px; padding-bottom: 4px; }
#screen-game.fit4 .game-top { padding-bottom: 4px; }
#screen-game.fit4 .race-cd { font-size: 52px; }
#screen-game.fit5 .card67-text { font-size: 14px; line-height: 1.25; }
#screen-game.fit5 .card67-title { font-size: 17px; }
#screen-game.fit5 .btn-huge { padding: 10px; font-size: 16px; }
#screen-game.fit5 .game-main { gap: 6px; }
#screen-game.fit5 .g-sub, #screen-game.fit5 .verdict-why { font-size: 12px; }
#screen-game.fit5 .coin3d { height: 76px; } #screen-game.fit5 .coin-inner { width: 66px; height: 66px; }
#screen-game.fit5 .coin-face b { font-size: 30px; }
#screen-game.fit5 .gb-card { width: 70px; height: 96px; }
#screen-game.fit6 { padding-top: 2px; padding-bottom: calc(var(--gbh, 90px) - 8px); } /* (v0.41.20: aldrig mindre end bundknapperne) */
#screen-game.fit6 .card67-text { font-size: 13px; }
#screen-game.fit6 .btn { font-size: 14px; }
#screen-game.fit6 .choose-grid .btn { padding: 8px; }
#screen-game.fit6 .stats.compact li { font-size: 12px; }
/* Top-linjen: pakke og mobbeoffer fylder ikke to linjer */
.game-top { gap: 8px; align-items: baseline; }
.game-top .game-pack, .game-top .victim-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#screen-game.fit2 .game-pack { display: none; }
/* Farvehold og andre spil-kort skrumper også */
#screen-game.fit2 .team-pad { padding: 16px; gap: 8px; }
#screen-game.fit2 .team-name { font-size: 32px; }
#screen-game.fit2 .team-task { font-size: 17px; }
#screen-game.fit3 .team-name { font-size: 26px; }
#screen-game.fit3 .team-task, #screen-game.fit3 .team-mates { font-size: 15px; }
#screen-game.fit3 .gcard .card67-title { font-size: 20px; }
#screen-game.fit3 .gcard .card67-text { font-size: 15px; }
#screen-game.fit4 .team-name { font-size: 22px; }

/* ---------- v0.22: flere slags knapper på kortene ---------- */
.gender-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.gender-pick .btn { padding: 12px 4px; font-size: 14px; }
.tag.gender { cursor: pointer; }
.tag.gender.need { border-color: var(--yellow); color: var(--yellow); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip-grid .btn.chip { width: auto; padding: 7px 11px; font-size: 13px; border-radius: 999px; }
.chip-grid .btn.chip.on { outline: 2px solid var(--yellow); }
.host-pick summary { list-style: none; cursor: pointer; font-size: 14px; padding: 8px 12px; text-align: center; }
.host-pick summary::-webkit-details-marker { display: none; }
.host-pick[open] summary { margin-bottom: 6px; }
.role-held { text-align: center; font-size: 15px; }
.cp-range { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-range .slider { width: 100%; }
.rate-num { font-size: 40px; font-weight: 900; line-height: 1; }
.rate-who { text-align: center; font-size: 22px; font-weight: 900; }
.rate-who small { font-size: 13px; color: var(--muted); font-weight: 700; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 10px; }
.rank-row.me { outline: 2px solid var(--yellow); }
.rank-n { font-weight: 900; width: 22px; color: var(--cyan); }
.rank-name { flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 3px 0 3px 3px; } /* (v0.42.5: plads til billedets ring – den blev skåret af) */
.rank-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.rank-btn { width: 40px !important; padding: 6px 0 !important; font-size: 14px; flex: none; }
.rank-lock { width: 84px; text-align: center; flex: none; font-size: 18px; opacity: .8; }
.race-cd.small { font-size: 44px; }
.deal-box { display: flex; flex-direction: column; gap: 4px; }
.deal-row { display: flex; align-items: center; gap: 8px; }
.deal-row span { flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.deal-row b { width: 24px; text-align: center; font-size: 18px; }
.deal-row .step { width: 42px !important; padding: 6px 0 !important; font-size: 18px; flex: none; }
.emoji-big { font-size: 64px; text-align: center; line-height: 1.1; }
.emoji-row { display: flex; gap: 6px; }
.emoji-row .emoji-input { flex: 1; font-size: 28px; text-align: center; text-transform: none; letter-spacing: normal; }
.emoji-row .btn { width: auto; }
.emoji-opts .emoji-opt { font-size: 30px; padding: 6px; line-height: 1.2; text-transform: none; }
.emoji-opt-show { font-size: 30px; text-align: center; padding: 4px; }
.emoji-inline { font-size: 22px; }
.wf-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wf-item { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 14px; }
.wf-item.me { border-color: var(--yellow); }
.immune-note { background: #0c3b4a; border: 2px solid var(--cyan); border-radius: 12px; padding: 8px 10px; font-weight: 800; text-align: center; font-size: 14px; }
.cp-photo { max-height: 40vh; }
#screen-game.fit3 .rate-num, #screen-game.fit3 .emoji-big { font-size: 30px; }
#screen-game.fit3 .cp-photo { max-height: 28vh; }
#screen-game.fit4 .rank-row { padding-top: 1px; padding-bottom: 1px; }
#screen-game.fit4 .rank-btn, #screen-game.fit4 .deal-row .step { padding: 3px 0 !important; }
#screen-game.fit5 .race-cd.small { font-size: 30px; }
#screen-game.fit5 .role-held { font-size: 13px; }
#screen-game.fit5 .cp-photo { max-height: 20vh; }
#screen-game.fit6 .rank-name small { display: none; }

.deal-grid { display: flex; flex-direction: column; gap: 4px; }
.deal-box.two .deal-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.deal-box.two .deal-row { gap: 4px; }
.deal-box.two .deal-row .step { width: 34px !important; }
.deal-box.two .deal-row span { font-size: 13px; }

/* ---------- v0.22.1: ens placering af Næste (altid nederst, lige over Regler) ---------- */
#cpArea { display: contents; }
.btn-host.on { outline: 3px solid var(--yellow); outline-offset: -3px; }
/* Mobbeofferet: popup oven på spillet */
.gb-pop { position: fixed; inset: 0; z-index: 80; background: rgba(5, 3, 15, .72); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease; }
.gb-pop .gb-box { background: var(--panel); border: 2px solid #ff8fb1; border-radius: 20px; padding: 16px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.gb-card.unflip { animation: gbUnflip .45s ease both; }
@keyframes gbUnflip { from { transform: rotateY(180deg); } to { transform: rotateY(0); } }
.gb-cards.shuffling.fast .gb-card:first-child { animation: gbSwapL .14s linear 10; }
.gb-cards.shuffling.fast .gb-card:last-child { animation: gbSwapR .14s linear 10; }
html.no-flash .gb-cards.shuffling.fast .gb-card:first-child { animation: gbSwapL .28s linear 5; }
html.no-flash .gb-cards.shuffling.fast .gb-card:last-child { animation: gbSwapR .28s linear 5; }
.toggle.locked { opacity: .7; cursor: default; }

/* v0.22.3: kortet står så centreret som muligt – det skubbes kun op, når der skal bruges plads under det */

/* v0.22.4: faste zoner (oppefra): info · kort · knapzone · (luft) · specialzone · Næste-zone
   Kortet ligger altid lige under infolinjen. Luften (::after) står mellem knapzonen og specialzonen. */
.game-main, .game-main.top { justify-content: flex-start; }
.game-main::after { content: ''; order: 4; flex: 1 1 0; min-height: 0; }
.game-main #gambleArea:not(:empty), .game-main .z-special { order: 5; display: flex; flex-direction: column; gap: 8px; }
.game-main .game-actions { order: 10; }
.game-main #gambleArea:empty { display: none; }
.stack-col { display: flex; flex-direction: column; gap: 8px; }

/* v0.24: 🎯-knappen ved siden af Regler og chancen som popup */
.victim-btn { background: linear-gradient(135deg, #7a0f3a, #c2185b); border-color: #ff8fb1; }
#victimSheet[hidden] { display: none; }
.game-bottom .hold-btn.victim-btn { padding: 10px 14px; font-size: 18px; line-height: 1; }
.game-bottom .hold-btn.victim-btn { padding: 11px 14px; font-size: 14px; }
.game-bottom:has(#victimBtn:not([hidden])) { flex-wrap: nowrap; }
.game-bottom:has(#victimBtn:not([hidden])) .hold-btn { padding-left: 12px; padding-right: 12px; white-space: nowrap; }

/* Forklaringen af Mobbeofferet: nederst, lige over 🎯-knappen */
.secret-note.victim-hint { top: auto; border-color: #ff8fb1; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 4px rgba(255,45,149,.2); }
.victim-hint .sn-head { color: #ff8fb1; }
.vh-arrow { position: absolute; top: 100%; width: 0; height: 0; margin-left: -10px; border: 10px solid transparent; border-top-color: #ff8fb1; }
.game-bottom .hold-btn.victim-btn.used { opacity: .45; filter: grayscale(.6); }

/* Statistik-tilstand: værtens indrapportering (knapzonen) */
#reportArea { order: 3; }
.rep-bar { width: 100%; font-size: 14px; padding: 10px 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-bar small { opacity: .8; font-weight: 700; }
.rep-box { background: #0d2742; border: 2px solid #1e7bff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.rep-head { display: flex; gap: 6px; align-items: center; }
.rep-head b { flex: 1; white-space: nowrap; }
.rep-head .mini-b { width: auto; padding: 6px 9px; font-size: 12px; }
.rep-row { display: flex; align-items: center; gap: 5px; }
.rep-name { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-row .step { width: 32px !important; padding: 5px 0 !important; font-size: 16px; flex: none; }
.rep-row .tog { width: auto; padding: 5px 7px; font-size: 14px; opacity: .45; flex: none; }
.rep-row .tog.on { opacity: 1; outline: 2px solid var(--yellow); }
.rep-n { width: 20px; text-align: center; }
.rep-d { display: flex; align-items: center; gap: 3px; }

.rep-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.rep-quick .btn { flex: 1 1 40%; padding: 10px 8px; font-size: 14px; }
.rep-quick .btn.on { outline: 3px solid var(--yellow); outline-offset: -3px; }
.rep-quick .rep-edit { flex: 0 0 auto; width: auto; padding: 10px 12px; }
.rep-sum { text-align: left; font-size: 12px; }

/* v0.25.3: kortstørrelse valgt i kortbyggeren (vinder over fit1-6, så kun knapper m.m. skrumper) */
#screen-game.screen.cs-big .game-main .card67 { min-height: 46vh; padding: 28px 22px; gap: 18px; }
#screen-game.screen.cs-big .game-main .card67 .card67-title { font-size: 40px; }
#screen-game.screen.cs-big .game-main .card67 .card67-text { font-size: 22px; line-height: 1.35; }
#screen-game.screen.cs-mid .game-main .card67 { min-height: 26vh; padding: 20px 18px; gap: 12px; }
#screen-game.screen.cs-mid .game-main .card67 .card67-title { font-size: 30px; }
#screen-game.screen.cs-mid .game-main .card67 .card67-text { font-size: 19px; line-height: 1.3; }
#screen-game.screen.cs-small .game-main .card67 { min-height: 0; padding: 14px 14px 10px; gap: 8px; }
#screen-game.screen.cs-small .game-main .card67 .card67-title { font-size: 20px; }
#screen-game.screen.cs-small .game-main .card67 .card67-text { font-size: 15px; line-height: 1.25; }

/* v0.25.5: billedet (fx "vis dit seneste billede") fylder det meste af skærmen, når det er vist */
#screen-game.screen.photo-on .game-main .card67 { min-height: 0; padding: 14px 14px 10px; gap: 8px; }
#screen-game.screen.photo-on .game-main .card67 .card67-title { font-size: 20px; }
#screen-game.screen.photo-on .game-main .card67 .card67-text { font-size: 15px; line-height: 1.25; }
#screen-game.photo-on .game-main .cp-photo { flex: 5 1 0; min-height: 140px; max-height: none; width: 100%; object-fit: contain; border-radius: 16px; }
#screen-game.photo-on .game-main .cp-box { flex: 5 1 0; min-height: 0; }
#screen-game.photo-on .game-main .cp-box .cp-photo { flex: 1 1 0; min-height: 120px; }
#screen-game.photo-on .game-main::after { flex: 0 0 0; }

/* v0.26: slutskærm – priser med forklaring og "Alle spillere" som kort */
.award-row .aw-l { display: flex; flex-direction: column; min-width: 0; }
.award-row .aw-why { font-size: 12px; font-weight: 600; color: var(--muted); white-space: normal; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-card { background: var(--bg2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pl-card.me { box-shadow: inset 0 0 0 2px rgba(255,210,63,.5); }
.pl-head { display: flex; align-items: center; gap: 10px; }
.pl-rank { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; flex: none; }
.pl-list li:first-child .pl-rank { background: var(--yellow); color: #1a1400; }
.pl-name { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-big { font-size: 24px; font-weight: 900; color: var(--yellow); display: flex; align-items: baseline; gap: 4px; }
.pl-big small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pl-chips span { background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.pl-sub { font-size: 12px; color: var(--muted); }

.drunk-total { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(255,210,63,.16), rgba(255,45,149,.12)); border: 1px solid rgba(255,210,63,.35); border-radius: 16px; padding: 12px; text-align: center; }
.dt-head { font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.dt-nums { display: flex; justify-content: space-around; gap: 6px; }
.dt-nums b { display: block; font-size: 30px; color: var(--yellow); line-height: 1.1; }
.dt-nums span { font-size: 13px; color: var(--muted); font-weight: 700; }
.dt-unk { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pl-drunk { display: flex; gap: 6px; }
.pl-drunk span { flex: 1; background: rgba(255,210,63,.1); border-radius: 10px; padding: 6px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.pl-drunk b { display: block; font-size: 20px; color: var(--yellow); }
.race-timer { font-size: 44px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; color: var(--yellow); }
.cp-timer { font-size: 40px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; color: var(--cyan); }
.cp-timer.done { color: var(--pink); font-size: 26px; }

.immune-note.small { font-size: 12px; padding: 4px 8px; border-width: 1px; opacity: .85; }
.immune-note.hit { font-size: 16px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.immune-note.hit .shield { font-size: 34px; display: inline-block; animation: shieldIn .9s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes shieldIn { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.no-flash .immune-note.hit .shield { animation: none; }
.word-big { font-size: 38px; font-weight: 900; text-align: center; color: var(--yellow); word-break: break-word; }
.rule-word { margin-top: 8px; display: inline-block; background: #0d1a00; color: #fff; font-size: 15px; padding: 4px 10px; border-radius: 10px; }
.rule-word b { color: #ffd84a; }
.emoji-row .word-input { flex: 1; min-width: 0; font-size: 17px; text-transform: none; letter-spacing: normal; padding: 10px 12px; }

.pv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.pv-item { background: var(--bg2); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 13px; }
.pv-item img { width: 100%; max-height: 22vh; object-fit: contain; border-radius: 8px; }
.pv-item.top { box-shadow: 0 0 0 3px var(--pink); }
.pv-item .btn { padding: 6px 8px; font-size: 13px; width: 100%; }
.pv-wait { height: 60px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.cp-box.claim-first { margin-top: auto; margin-bottom: auto; }
.cp-box.claim-first .vote-q { font-size: 24px; }

.pr-desc, .pr-name, .pack-warn { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.sheet > *, .pack-list > * { flex-shrink: 0; }

/* v0.26.45: animationer */
.anim-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.btn { transition: transform .15s cubic-bezier(.3,1.6,.5,1), opacity .2s ease, box-shadow .2s ease, filter .15s ease; }
.btn:active { transform: scale(.95); filter: brightness(.9); transition-duration: .06s; }
.no-flash .btn:active { transform: none; }

/* v0.28.3: ingen synlige rullebjælker (Windows/Testlab): en rullebjælke, der kom og gik, gjorde siden 17 px smallere,
   så teksten brød om, kortet skiftede størrelse – og så forsvandt bjælken igen (blinken). Man kan stadig scrolle, hvor det er nødvendigt. */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* v0.28.4: hold fingeren på et billede for at se det stort (G22) */
.pv-item img, .cp-photo img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.photo-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 12px; pointer-events: none; }
.photo-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }

/* v0.29.4 sneglevæddeløb: nedtælling over banen (ikke oven på den) + foldet bane hos værten efter løbet */
.race-top { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: var(--yellow); line-height: 1; }
.race-top.big { font-size: 32px; }
.race.folded { display: none; }

/* ---------- v0.30.0 🎰 Kasinoet ---------- */
.cs-rows li { padding: 6px 10px; font-size: 14px; }
.cs-rows li small.m { color: var(--muted); font-weight: 600; font-size: 12px; }
.cs-card { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 62px; padding: 0 6px; margin: 0 3px; background: #fff; color: #111; border-radius: 8px; font-weight: 900; font-size: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cs-card.red { color: #d7263d; }
.cs-card.sm { min-width: 34px; height: 46px; font-size: 16px; }
.cs-card.back { background: repeating-linear-gradient(45deg, #2d3cff 0 6px, #1a238f 6px 12px); color: transparent; }
.cs-card.slot { background: transparent; border: 2px dashed var(--line); color: var(--muted); box-shadow: none; }
.cs-card.slot.now { border-color: var(--yellow); color: var(--yellow); }
.cs-hand { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; }
.cs-hand.big .cs-card { min-width: 52px; height: 74px; font-size: 24px; }
.cs-hand.bus .cs-card { min-width: 58px; }
.cs-lbl { text-align: center; color: var(--muted); font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.cs-lbl b { color: var(--text); }
.cs-dealer { background: #0d3b24; border-radius: var(--radius); padding: 8px; }
.cs-mine { text-align: center; }
.cs-total { font-size: 26px; font-weight: 900; margin-top: 4px; }
.cs-total.bad { color: var(--red); } .cs-total.ok { color: var(--lime); }
.cs-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-btns.four { grid-template-columns: repeat(4, 1fr); }
.cs-btns .btn { margin: 0; }
.cs-choice { font-size: 20px; }
.cs-choice.red { color: #ff4d6d; }
.cs-others { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.cs-others span { background: var(--bg2); border-radius: 99px; padding: 4px 10px; }
.cs-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cs-pick { padding: 8px 2px; font-size: 14px; background: var(--bg2); color: var(--text); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 0; }
.cs-pick small { color: var(--muted); font-size: 11px; }
.cs-pick.on { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 16%, var(--bg2)); }
.cs-nums { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.cs-num { border: 0; border-radius: 6px; padding: 5px 0; font-weight: 800; font-size: 12px; color: #fff; }
.cs-num.red { background: #b01e33; } .cs-num.black { background: #25252f; } .cs-num.green { background: #1f9d55; grid-column: span 2; }
.cs-num.on { outline: 3px solid var(--yellow); }
.cs-wheel-wrap { position: relative; width: min(64vw, 250px); aspect-ratio: 1; margin: 4px auto; }
.cs-wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #6b4a1a; box-shadow: 0 0 0 3px #d4a64a, 0 6px 20px rgba(0,0,0,.5); will-change: transform; }
.cs-wheel i { position: absolute; left: 50%; top: 0; height: 50%; width: 20px; margin-left: -10px; transform-origin: 50% 100%; font-style: normal; font-size: 9px; font-weight: 800; color: #fff; text-align: center; padding-top: 3px; }
.cs-wheel.fort i { width: 40px; margin-left: -20px; padding-top: 10px; }
.cs-wheel.fort i em { font-style: normal; font-size: 24px; }
.cs-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--yellow); font-size: 24px; text-shadow: 0 2px 4px #000; }
.cs-hub { position: absolute; inset: 34%; border-radius: 50%; background: #111; border: 3px solid #d4a64a; display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 1; }
.cs-hub b { font-size: 34px; font-weight: 900; }
.cs-hub b.red { color: #ff4d6d; } .cs-hub b.green { color: #3ddc5a; } .cs-hub b.black { color: #fff; }
.cs-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.cs-slot { display: flex; justify-content: center; gap: 8px; background: linear-gradient(#2b0a3d, #12051c); border: 4px solid #d4a64a; border-radius: 18px; padding: 14px 10px; }
.cs-slot span { width: 76px; height: 86px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: inset 0 -8px 12px rgba(0,0,0,.25); }
.cs-slot span.spin { filter: blur(1px); }
.cs-pay { font-size: 12px; color: var(--muted); text-align: center; font-weight: 700; line-height: 1.5; }
.cs-lever { font-size: 22px; }
.cs-crash { position: relative; height: 150px; background: radial-gradient(circle at 20% 90%, #1c2a4a, #0b0b16); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-crash.boom { background: radial-gradient(circle, #5a1020, #0b0b16); }
.cs-rocket { position: absolute; left: 6%; bottom: 8%; font-size: 40px; transition: none; }
.cs-crash.boom .cs-rocket { left: 50%; bottom: 40%; transform: translateX(-50%); font-size: 54px; }
.cs-mult { font-size: 54px; font-weight: 900; font-variant-numeric: tabular-nums; position: relative; z-index: 1; text-shadow: 0 2px 10px #000; }
.cs-crash.boom .cs-mult { color: var(--red); font-size: 30px; align-self: flex-end; margin-bottom: 8px; }
.cs-cd { position: absolute; top: 8px; right: 12px; font-size: 30px; font-weight: 900; color: var(--yellow); }
.cs-cash { font-size: 26px; }
.cs-prize { text-align: center; font-size: 22px; font-weight: 900; background: linear-gradient(135deg, #3b2a00, #1a1200); border: 2px solid var(--yellow); color: var(--yellow); border-radius: var(--radius); padding: 12px; }
.cs-bids { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cs-bids span { background: var(--bg2); border-radius: 99px; padding: 5px 12px; font-weight: 700; }
.cs-bids span.top { background: color-mix(in srgb, var(--yellow) 25%, var(--bg2)); color: var(--yellow); }
.cs-keno { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cs-kn { border: 2px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 10px; padding: 10px 0; font-weight: 900; font-size: 18px; text-align: center; }
.cs-kn.on { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 22%, var(--bg2)); }
.cs-keno.small { gap: 4px; }
.cs-keno.small .cs-kn { padding: 5px 0; font-size: 14px; }
.cs-kn.mine { border-color: var(--yellow); }
.cs-kn.drawn { background: #2d8cff; color: #fff; }
.cs-kn.mine.drawn { background: var(--lime); color: #0d1a00; }
.cs-balls { display: flex; justify-content: center; gap: 6px; min-height: 40px; }
.cs-balls b { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-weight: 900; box-shadow: inset -4px -4px 8px rgba(0,0,0,.2); }
.cs-balls b.hit { background: var(--lime); }
.cs-ticket { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: linear-gradient(135deg, #ffd23f, #ff8a2b); padding: 10px; border-radius: 14px; touch-action: none; user-select: none; }
.cs-ticket span { aspect-ratio: 1.3; border-radius: 8px; background: repeating-linear-gradient(45deg, #b8b8c8 0 4px, #9a9aac 4px 8px); display: flex; align-items: center; justify-content: center; font-size: 34px; cursor: pointer; }
.cs-ticket span.open { background: #fff8e6; }
.cs-plinko { position: relative; background: #101022; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 4px 0; height: 300px; display: flex; flex-direction: column; justify-content: space-between; }
.pl-drops { position: absolute; top: 2px; left: 0; right: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 4px; z-index: 2; }
.pl-drops button { border: 0; border-radius: 8px; background: var(--lime); color: #0d1a00; font-weight: 900; padding: 3px 0; }
.pl-drops button.host { background: #2d8cff; color: #fff; }
.pl-row { display: flex; justify-content: space-around; padding: 0 calc(100% / 14); }
.pl-row:nth-child(odd) { padding: 0; }
.pl-row i { width: 7px; height: 7px; border-radius: 50%; background: #8a8aa8; }
.pl-slots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 4px; }
.pl-slots span { text-align: center; font-size: 11px; font-weight: 900; padding: 6px 0; border-radius: 6px 6px 0 0; background: #2a2a3a; }
.pl-slots span.all { background: #6b4a00; color: var(--yellow); }
.pl-slots span.deal { background: #1d4a1d; color: var(--lime); }
.pl-slots span.sips { background: #4a1d2a; color: #ff8aa0; }
.pl-slots span.hit { outline: 3px solid #fff; }
.pl-ball { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #ff2d95); box-shadow: 0 0 10px #ff2d95; z-index: 3; left: 50%; top: 2%; }
.cs-deal .btn-go { margin-top: 6px; }
.rep-dealbtn { padding: 8px 10px !important; font-size: 14px !important; min-height: 0 !important; }
.cs-total.sm { font-size: 18px; margin-top: 0; }
/* Kasinoet: resultatet skal kunne være der (mange spillere) */
.cs-wheel-wrap.done { width: 120px; }
.cs-wheel-wrap.done .cs-wheel i { display: none; }
.cs-wheel-wrap.fort.done .cs-wheel i { display: block; }
.cs-wheel-wrap.fort.done .cs-wheel i em { font-size: 12px; }
.cs-wheel-wrap.done .cs-hub b { font-size: 22px; }
.cs-plinko.done { height: 170px; padding-top: 6px; }
.cs-plinko.done .pl-row i { width: 4px; height: 4px; }
.cs-crash.done { height: 80px; }
.cs-crash.done .cs-rocket { font-size: 34px; bottom: 20%; }
#screen-game.fit2 .cs-wheel-wrap:not(.done) { width: min(54vw, 210px); }
#screen-game.fit3 .cs-rows li { padding: 4px 8px; font-size: 13px; }
#screen-game.fit3 .cs-slot span { width: 60px; height: 68px; font-size: 36px; }
#screen-game.fit3 .cs-plinko:not(.done) { height: 240px; }
#screen-game.fit3 .cs-hand.big .cs-card { min-width: 44px; height: 62px; font-size: 20px; }
#screen-game.fit4 .cs-wheel-wrap:not(.done) { width: min(46vw, 170px); }
#screen-game.fit4 .cs-rows li { padding: 3px 8px; font-size: 12px; }
#screen-game.fit4 .cs-keno .cs-kn { padding: 6px 0; font-size: 15px; }
#screen-game.fit4 .cs-crash:not(.done) { height: 110px; }
#screen-game.fit4 .cs-ticket span { aspect-ratio: 1.6; font-size: 28px; }
#screen-game.fit5 .cs-wheel-wrap.done { width: 90px; }
#screen-game.fit5 .cs-rows li { padding: 2px 8px; }
#screen-game.fit5 .cs-picks .cs-pick { padding: 5px 2px; font-size: 13px; }
#screen-game.fit1 .cs-ticket span { aspect-ratio: 1.45; }
#screen-game.fit2 .cs-ticket span { aspect-ratio: 1.6; font-size: 30px; }
#screen-game.fit3 .cs-ticket { padding: 6px; gap: 4px; }

/* ---------- v0.30.1 Kasinoet ---------- */
.cs-who { text-align: center; font-weight: 900; font-size: 18px; color: var(--yellow); }
.cs-give .choose-grid .btn { margin: 0; }
/* Roulettebord */
.cs-rtable { display: grid; grid-template-columns: repeat(3, 1fr) 46px 56px; grid-template-rows: repeat(14, 20px); gap: 2px; background: #0d5c2e; border: 3px solid #6b4a1a; border-radius: 10px; padding: 4px; }
.rt { position: relative; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; color: #fff; font-weight: 900; font-size: 12px; padding: 0; background: transparent; line-height: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.rt.red { background: #c8102e; } .rt.black { background: #15151f; } .rt.green { background: #1f9d55; }
.rt.out { font-size: 10px; background: rgba(0,0,0,.15); }
.rt.out.red, .rt.out.black { font-size: 20px; color: #fff; }
.rt.on { outline: 3px solid var(--yellow); z-index: 2; }
.rt .chips { position: absolute; right: -3px; top: -4px; display: flex; gap: 0; z-index: 3; }
.rt .chip { width: 15px; height: 15px; border-radius: 50%; border: 2px dashed #fff; font-style: normal; font-size: 8px; line-height: 11px; color: #111; font-weight: 900; margin-left: -6px; padding: 0; box-shadow: 0 1px 3px #000; }
/* Rouletteskål med kugle */
.cs-rw { position: relative; width: min(66vw, 250px); aspect-ratio: 1; margin: 4px auto; }
.cs-rw-rim { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, #3b2508 60%, #6b4a1a 61%, #2a1a05 100%); box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.cs-wheel.rw { inset: 8%; border: 4px solid #d4a64a; }
.cs-wheel.rw i { font-size: 8px; }
.rw-cone { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f3d27a, #8a6420); box-shadow: 0 0 0 3px #3b2508; }
.rw-ball { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bbb); box-shadow: 0 1px 3px #000; z-index: 3; }
.rw-res { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; border: 3px solid #fff; z-index: 4; }
.rw-res.red { background: #c8102e; } .rw-res.black { background: #15151f; } .rw-res.green { background: #1f9d55; }
.cs-rw.done { width: 120px; }
.cs-rw.done .cs-wheel i { display: none; }
.cs-rw.done .rw-res { width: 40px; height: 40px; font-size: 20px; }
/* Tyveknægt: snurrende hjul */
.cs-slot { display: flex; justify-content: center; gap: 8px; background: linear-gradient(#2b0a3d, #12051c); border: 4px solid #d4a64a; border-radius: 18px; padding: 12px 10px; }
.cs-slot .reel { width: 76px; height: 86px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: inset 0 10px 12px -6px rgba(0,0,0,.45), inset 0 -10px 12px -6px rgba(0,0,0,.45); }
.cs-slot .strip { will-change: transform; }
.cs-slot .strip span { height: 86px; display: flex; align-items: center; justify-content: center; font-size: 46px; }
#screen-game.fit3 .cs-slot .reel, #screen-game.fit3 .cs-slot .strip span { height: 68px; }
#screen-game.fit3 .cs-slot .reel { width: 62px; } #screen-game.fit3 .cs-slot .strip span { font-size: 36px; }
/* Bustur */
.cs-riders { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cs-riders span { background: var(--bg2); border-radius: 99px; padding: 4px 12px; font-weight: 800; }
.cs-riders span.now { background: var(--yellow); color: #111; }
.bet-row #csPlus5 { width: 56px; font-size: 16px; }
/* Skrabelod */
.cs-scr-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 12px; font-weight: 800; color: var(--lime); }
.cs-scr-legend .bad { color: #ff8aa0; }
.cs-lot { background: linear-gradient(135deg, #ffd23f, #ff8a2b 60%, #ff2d95); border-radius: 16px; padding: 8px 10px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.lot-top { text-align: center; font-weight: 900; color: #3b1200; letter-spacing: 1px; margin-bottom: 6px; }
.cs-ticket2 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; touch-action: none; user-select: none; }
.cs-ticket2 span { aspect-ratio: 1.35; border-radius: 8px; background: #fff8e6; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.cs-ticket2 span.win { background: #d9ffb0; box-shadow: 0 0 0 3px var(--lime); }
.cs-ticket2 canvas { position: absolute; left: 0; top: 0; border-radius: 8px; cursor: pointer; touch-action: none; }
#screen-game.fit2 .cs-ticket2 span { aspect-ratio: 1.6; font-size: 30px; }
/* Plinko for alle */
.cs-plinko2 { position: relative; background: #101022; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: 100%; max-height: 52vh; margin: 0 auto; } /* v0.42.18: højden følger bredden (aspect-ratio) */
.pl-drop { position: absolute; top: 0; border: 2px dashed var(--lime); border-top: 0; border-radius: 0 0 10px 10px; background: rgba(182,255,59,.08); color: var(--lime); font-size: 9px; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1px; box-sizing: border-box; z-index: 2; }
.pl-zone { position: absolute; inset: 0; background: transparent; border: 0; padding: 0; cursor: crosshair; z-index: 4; }
.pl-peg { position: absolute; width: var(--ps); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #8a8aa8; min-width: 4px; }
.pl-slots2 { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; }
.pl-ball2 { letter-spacing: -.5px; position: absolute; width: var(--bs); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--bc); color: #111; font-size: 8px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px var(--bc); z-index: 3; }
.pl-ball2.demo { z-index: 2; box-shadow: 0 0 4px var(--bc); }
.pl-ball2.mine { box-shadow: 0 0 0 2px #fff, 0 0 10px var(--bc); }
.pl-slots2 span { text-align: center; font-size: 10px; font-weight: 900; padding: 5px 0 0; border-radius: 6px 6px 0 0; background: #2a2a3a; white-space: nowrap; overflow: hidden; }
.pl-slots2 span.all { background: #6b4a00; color: var(--yellow); }
.pl-slots2 span.crown { background: #6b4a00; color: var(--yellow); }
.pl-slots2 span.deal { background: #1d4a1d; color: var(--lime); }
.pl-slots2 span.sips { background: #4a1d2a; color: #ff8aa0; }
.pl-slots2 span.hit { outline: 2px solid #fff; }
.rt.out.red { background: #c8102e; } .rt.out.black { background: #15151f; }
#screen-game.fit1 .cs-rtable { grid-template-rows: repeat(14, 19px); }
#screen-game.fit2 .cs-rtable { grid-template-rows: repeat(14, 17px); }
#screen-game.fit3 .cs-rtable { grid-template-rows: repeat(14, 15px); }
#screen-game.fit3 .rt { font-size: 10px; }
#screen-game.fit2 .cs-rw:not(.done) { width: min(56vw, 210px); }
#screen-game.fit2 .cs-plinko2 { transform-origin: top center; }
#screen-game.fit4 .cs-rtable { grid-template-rows: repeat(14, 14px); padding: 3px; }
#screen-game.fit4 .rt { font-size: 9px; }
#screen-game.fit4 .rt.out.red, #screen-game.fit4 .rt.out.black { font-size: 13px; }
#screen-game.fit4 .cs-rtable + .bet-row .bet-val span { display: none; }
#screen-game.fit5 .cs-rtable { grid-template-rows: repeat(14, 12px); }
#screen-game.fit4 .cs-riders + .g-sub { display: none; }
#screen-game.fit4 .cs-hand.bus .cs-card { height: 54px; min-width: 44px; font-size: 18px; }
#screen-game.fit5 .cs-rows li { font-size: 11px; padding: 2px 6px; }
#screen-game.fit5 .cs-give .choose-grid .btn { padding: 6px; font-size: 14px; }
/* v0.30.2 blackjack: kort deles ud / dealeren trækker */
@keyframes csDealIn { 0% { opacity: 0; transform: translate(70px, -90px) rotate(28deg) scale(.7); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes csFlipIn { 0% { transform: rotateY(90deg) scale(1.1); } 100% { transform: none; } }
.cs-card.deal-in { animation: csDealIn .5s cubic-bezier(.2,.8,.2,1) both; }
.cs-card.flip-in { animation: csFlipIn .45s ease-out both; }
.cs-cnt { background: var(--yellow); color: #111; border-radius: 99px; padding: 0 7px; margin-left: 4px; } .cs-undo { padding: 6px !important; font-size: 13px !important; }
.cs-pulls { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 800; } .cs-pulls div { background: var(--bg2); border-radius: 10px; padding: 5px 10px; } .cs-pulls .ok { color: var(--lime); } .cs-pulls .bad { color: #ff8aa0; }
/* v0.30.2 auktion: hammerslag */
.cs-hammer { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.hm-cd { font-size: 64px; font-weight: 900; color: var(--yellow); text-shadow: 0 2px 12px #000; }
.hm-ham { position: absolute; right: 18%; top: 4px; font-size: 64px; transform-origin: 80% 80%; transform: rotate(35deg); }
.hm-ham.slam { animation: csSlam .35s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes csSlam { 0% { transform: rotate(35deg); } 60% { transform: rotate(-35deg) translateY(10px); } 80% { transform: rotate(-28deg) translateY(4px); } 100% { transform: rotate(-32deg) translateY(8px); } }
/* v0.30.3 tombola: tromle med kugler, der tumler, sliske og stativ */
.tb-wrap { position: relative; width: 190px; height: 170px; margin: 0 auto; }
.tb-drum2 { position: absolute; left: 10px; top: 0; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.12), rgba(10,10,30,.55) 70%); box-shadow: inset 0 0 0 4px #d4a64a, inset 0 0 18px rgba(0,0,0,.6), 0 8px 18px rgba(0,0,0,.5); overflow: hidden; }
.tb-wire { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(212,166,74,.55) 0 2deg, transparent 2deg 30deg); -webkit-mask: radial-gradient(circle, transparent 0 18%, #000 19%); mask: radial-gradient(circle, transparent 0 18%, #000 19%); }
.tb-ball { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c) 40%, color-mix(in srgb, var(--c) 60%, #000)); color: #111; font-style: normal; font-size: 9px; font-weight: 900; display: flex; align-items: center; justify-content: center; will-change: transform; }
.tb-crank { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: radial-gradient(circle, #f3d27a 0 30%, #8a6420 31% 60%, transparent 61%); z-index: 2; }
.tb-crank::after { content: ''; position: absolute; left: 11px; top: -30px; width: 4px; height: 30px; background: #d4a64a; border-radius: 2px; }
.tb-chute { position: absolute; right: 2px; top: 92px; width: 50px; height: 14px; background: linear-gradient(#d4a64a, #8a6420); border-radius: 0 0 8px 8px; transform: rotate(28deg); transform-origin: 0 0; }
.tb-legs { position: absolute; left: 30px; bottom: 0; width: 110px; height: 22px; border: 6px solid #6b4a1a; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.cs-balls b.pop { animation: tbPop .9s cubic-bezier(.3,.7,.3,1) both; }
@keyframes tbPop { 0% { transform: translate(40px, -70px) scale(.6); opacity: 0; } 25% { opacity: 1; transform: translate(40px, -60px) scale(.8); } 60% { transform: translate(10px, -6px) rotate(-200deg) scale(1.05); } 80% { transform: translateY(-6px) rotate(-320deg); } 100% { transform: none; } }

/* v0.30.3 auktion: dommerhammer */
.cs-gavel { position: relative; height: 190px; }
.gv-txt { position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 26px; font-weight: 900; color: var(--text); }
.gv-txt.sold { font-size: 48px; color: var(--yellow); text-shadow: 0 0 16px rgba(255,210,63,.6); animation: gvSold .4s cubic-bezier(.2,.8,.2,1); }
@keyframes gvSold { from { transform: scale(1.8); opacity: 0; } to { transform: none; opacity: 1; } }
.gv-block { position: absolute; left: 50%; top: 150px; width: 120px; height: 26px; margin-left: -60px; border-radius: 50% / 40%; background: linear-gradient(#8a5a26, #4a2a0c); box-shadow: inset 0 4px 0 #b57b3c, 0 6px 10px rgba(0,0,0,.5); }
.gv-ham { position: absolute; left: calc(50% - 22px); top: 114px; width: 150px; height: 12px; transform-origin: 140px 6px; transform: rotate(30deg); z-index: 2; }
.gv-head { position: absolute; left: 0; top: -24px; width: 44px; height: 60px; border-radius: 10px; background: linear-gradient(90deg, #5a3510, #a8692d 50%, #5a3510); box-shadow: inset 0 9px 0 -4px #d8b26b, inset 0 -9px 0 -4px #d8b26b; }
.gv-handle { position: absolute; left: 40px; top: 0; width: 110px; height: 12px; border-radius: 6px; background: linear-gradient(#b57b3c, #6b3f14); }
.gv-ham.hit { animation: gvHit .34s cubic-bezier(.6,0,.9,.4); }
@keyframes gvHit { 0% { transform: rotate(30deg); } 45% { transform: rotate(0deg); } 58% { transform: rotate(4deg); } 100% { transform: rotate(30deg); } }
.gv-shock { position: absolute; left: 50%; top: 138px; width: 160px; height: 40px; margin-left: -80px; border-radius: 50%; border: 3px solid rgba(255,210,63,.0); }
.gv-shock.go { animation: gvShock .45s ease-out; }
@keyframes gvShock { 0% { transform: scale(.4); border-color: rgba(255,210,63,.9); } 100% { transform: scale(1.4); border-color: rgba(255,210,63,0); } }
/* v0.30.4 auktion: dramatisk slag */
.cs-gavel { height: 200px; overflow: visible; }
.gv-txt.s0 { font-size: 24px; opacity: .8; } .gv-txt.s1 { font-size: 28px; } .gv-txt.s2 { font-size: 32px; color: #ffb86b; }
.gv-txt.s0, .gv-txt.s1, .gv-txt.s2 { animation: gvIn .35s ease-out; }
@keyframes gvIn { from { transform: scale(.7); opacity: 0; } to { transform: none; } }
.gv-txt.sold { font-size: 58px; animation: gvSold2 .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes gvSold2 { 0% { transform: scale(3) rotate(-8deg); opacity: 0; } 60% { transform: scale(.92) rotate(2deg); opacity: 1; } 100% { transform: none; } }
.gv-ham.slam { animation: gvSlam .5s cubic-bezier(.9,0,1,.6) forwards; }
@keyframes gvSlam { 0% { transform: rotate(84deg); } 18% { transform: rotate(-1deg); } 30% { transform: rotate(6deg); } 45% { transform: rotate(0deg); } 100% { transform: rotate(0deg); } }
.gv-block.hit { animation: gvBlock .35s ease-out .09s; }
@keyframes gvBlock { 0% { transform: none; } 30% { transform: scaleY(.8) translateY(4px); } 100% { transform: none; } }
.gv-flash { position: absolute; left: 50%; top: 140px; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255,210,63,.8) 40%, transparent 70%); opacity: 0; pointer-events: none; }
.gv-flash.go { animation: gvFlash .4s ease-out .09s; }
@keyframes gvFlash { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(26); } }
.gv-dust { position: absolute; left: 50%; top: 150px; width: 0; height: 0; pointer-events: none; }
.gv-dust i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(220,200,170,.9), rgba(160,130,100,.5) 60%, transparent 72%); opacity: 0; }
.gv-dust.go i { animation: gvDust 1s ease-out forwards; animation-delay: .09s; }
@keyframes gvDust { 0% { opacity: .95; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(calc(var(--s) * 3.2)); } }
#screen-game.cs-shake { animation: csShake .5s cubic-bezier(.36,.07,.19,.97) .09s; }
@keyframes csShake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -2px); } 30%, 50%, 70% { transform: translate(-8px, 3px); } 40%, 60% { transform: translate(8px, -3px); } }
html.no-flash .gv-flash.go { animation: none; }
/* v0.30.4 tombola: låge og sliske */
.tb-hatch { position: absolute; left: 132px; top: 104px; width: 26px; height: 22px; background: linear-gradient(#e9c46a, #a27a2c); border: 2px solid #6b4a1a; border-radius: 4px; transform-origin: 100% 0; transform: rotate(-38deg); transition: transform .25s ease; z-index: 3; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.tb-hatch.open { transform: rotate(-38deg) rotateX(0) translate(10px, 6px) rotate(70deg); }
.tb-chute { right: -4px; top: 116px; width: 56px; }
.cs-balls b.pop { animation: tbPop2 1s cubic-bezier(.3,.7,.3,1) both; }
@keyframes tbPop2 { 0% { transform: translate(60px, -80px) scale(.7); opacity: 0; } 15% { opacity: 1; } 45% { transform: translate(70px, -40px) rotate(-120deg) scale(.85); } 75% { transform: translate(8px, -4px) rotate(-340deg); } 88% { transform: translateY(-5px) rotate(-360deg); } 100% { transform: none; } }
/* (teksten under klodsen, så den løftede hammer ikke dækker den) */
.cs-gavel { height: 236px; }
.gv-txt { top: 184px; z-index: 4; }
.gv-txt.sold { top: 176px; }

/* v0.30.7 */
.cs-card { padding: 0; letter-spacing: -1px; } /* (alle kort lige brede – også 10) */
.cs-card.sm { width: 34px; } .cs-hand.big .cs-card { width: 52px; } .cs-hand.bus .cs-card { width: 58px; }
#screen-game.fit3 .cs-hand.big .cs-card { width: 44px; } #screen-game.fit4 .cs-hand.bus .cs-card { width: 44px; }
.cs-balls b { background: radial-gradient(circle at 35% 30%, #fff 0 14%, var(--c, #fff) 45%, color-mix(in srgb, var(--c, #fff) 60%, #000)); }
.cs-balls b.hit { background: radial-gradient(circle at 35% 30%, #fff 0 14%, var(--c, #fff) 45%, color-mix(in srgb, var(--c, #fff) 60%, #000)); box-shadow: 0 0 0 3px var(--lime), 0 0 12px var(--lime); }
.tb-drum2 { width: 164px; height: 164px; left: 4px; } .tb-wrap { width: 200px; height: 182px; } .tb-ball { width: 20px; height: 20px; margin: -10px; font-size: 9px; }
.tb-hatch { left: 144px; top: 114px; } .tb-chute { top: 126px; }
/* v0.30.8 crash: rejsen op */
.cs-crash.cr-scene { height: 190px; display: block; overflow: hidden; }
.cs-crash.cr-scene.done { height: 120px; }
.cr-sky { position: absolute; inset: 0; --alt: 0; background: linear-gradient(color-mix(in srgb, #0a0a2a calc(var(--alt) * 100%), #3d8bff), color-mix(in srgb, #05050f calc(var(--alt) * 100%), #a9d6ff)); }
.cr-stars { position: absolute; inset: 0; opacity: 0; }
.cr-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; animation: crTw 1.6s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes crTw { to { opacity: .3; } }
.cr-far { position: absolute; inset: 0; }
.cr-far span { position: absolute; }
.cr-moon { left: 12%; top: 20px; font-size: 30px; } .cr-planet { right: 10%; top: -60px; font-size: 44px; } .cr-planet2 { left: 40%; top: -130px; font-size: 28px; }
.cr-clouds { position: absolute; inset: 0; }
.cr-clouds span { position: absolute; top: calc(var(--y) - 300px); font-size: 34px; opacity: .9; }
.cr-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(#3aa64a, #1f6b2a); }
.cr-ground .cr-pad { position: absolute; left: 50%; top: -6px; width: 54px; height: 8px; margin-left: -27px; background: #888; border-radius: 3px; }
.cr-ground .cr-tree { position: absolute; top: -22px; font-size: 24px; }
.cs-crash.cr-scene .cs-rocket { left: 50%; bottom: 30px; margin-left: -20px; width: 40px; text-align: center; font-size: 36px; z-index: 3; }
.cr-ship { display: inline-block; transform: rotate(-45deg); }
.cr-flame { position: absolute; left: 50%; top: 100%; width: 12px; height: 0; margin-left: -6px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: linear-gradient(#fff6a0, #ff8a2b 50%, transparent); transition: height .2s; }
.cs-rocket.on .cr-flame { height: 26px; animation: crFl .08s linear infinite alternate; }
@keyframes crFl { to { transform: scaleY(1.25) scaleX(.85); } }
.cs-crash.cr-scene .cs-mult { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font-size: 40px; z-index: 4; }
.cs-crash.cr-scene .cs-cd { z-index: 4; }
.cs-crash.cr-scene.boom .cs-rocket { display: none; }
.cs-crash.cr-scene.boom .cs-mult { top: auto; bottom: 6px; font-size: 26px; color: var(--red); }
.cr-chutes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cr-chute { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; }
.cr-canopy { width: 34px; height: 17px; border-radius: 34px 34px 4px 4px; background: var(--pc); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); position: relative; }
.cr-canopy::after { content: ''; position: absolute; left: 4px; right: 4px; top: 16px; height: 10px; border-left: 1px solid #ddd; border-right: 1px solid #ddd; }
.cr-astro { font-size: 18px; margin-top: 6px; line-height: 1; }
.cr-chute small { font-size: 9px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.cr-boom { position: absolute; left: 50%; top: 50%; z-index: 3; }
.cr-boom b { position: absolute; left: -30px; top: -34px; font-size: 56px; animation: crBoom .5s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes crBoom { 0% { transform: scale(.2); opacity: 0; } 50% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(1); } }
.cr-boom i { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: #ffb347; animation: crDeb .9s ease-out forwards; }
.cr-boom i:nth-child(3n) { background: #ccc; } .cr-boom i:nth-child(4n) { background: #ff3b5c; }
@keyframes crDeb { 0% { transform: none; opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 30px)) rotate(400deg); opacity: 0; } }
.btn-go.cs-choice.red { color: #b00020; }
/* v0.30.9 crash: stor nedtælling */
.cs-crash.cr-scene .cs-cd { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 72px; color: #fff; text-shadow: 0 0 18px rgba(0,0,0,.7), 0 0 4px #000; pointer-events: none; z-index: 5; }
.cs-crash.cr-scene .cs-cd.lo { font-size: 34px; color: var(--yellow); }
.cs-crash.cr-scene .cs-cd.pulse { animation: crCd .7s cubic-bezier(.2,.8,.2,1); }
@keyframes crCd { 0% { opacity: 0; transform: translateY(-50%) scale(1.8); } 40% { opacity: 1; transform: translateY(-50%) scale(1); } }
/* v0.30.10 crash: større vindue */
.cs-crash.cr-scene { height: min(340px, 46vh); }
.cs-crash.cr-scene .cs-rocket { font-size: 44px; }
.cs-crash.cr-scene .cs-mult { font-size: 48px; }
#screen-game.fit3 .cs-crash.cr-scene:not(.done) { height: min(280px, 40vh); }
#screen-game.fit5 .cs-crash.cr-scene:not(.done) { height: 220px; }
/* v0.30.10 astronaut */
.cr-chute { position: absolute; left: 0; top: 0; width: 48px; display: flex; flex-direction: column; align-items: center; transform-origin: 24px 56px; }
.cr-chute .cr-can { transform-origin: 24px 46px; transform: scale(var(--open, 0)); opacity: var(--open, 0); }
.cr-chute small { margin-top: -2px; }
.cr-svg { overflow: visible; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
/* v0.30.11 raket (SVG) + astronaut */
.cs-crash.cr-scene .cs-rocket { width: 40px; height: 84px; margin-left: -20px; bottom: 22px; line-height: 0; font-size: 0; }
.cr-rk { filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.cr-rk .cr-fl { transform-origin: 20px 62px; transform: scaleY(0); }
.cs-rocket.on .cr-rk .cr-fl { animation: crFl2 .07s linear infinite alternate; }
@keyframes crFl2 { from { transform: scaleY(.85) scaleX(1); } to { transform: scaleY(1.2) scaleX(.86); } }
.cr-chute { transform-origin: 24px 56px; }
.cr-chute .cr-can { transform-origin: 24px 50px; transform: scale(calc(var(--open, 0) * var(--pop, 1))); opacity: var(--open, 0); }
.cr-chute { width: 62px; transform-origin: 31px 72px; }
.cr-chute { width: 36px; transform-origin: 18px 42px; } .cr-chute small { font-size: 8px; }
/* v0.30.12 crash: uendelig rejse + UFO */
.cr-stars { top: -100%; bottom: 0; height: auto; }
.cr-ufo { position: absolute; left: 0; top: 0; opacity: 0; z-index: 2; pointer-events: none; }
.cr-ufo .uf-beam { opacity: 0; transition: opacity .3s; }
.cr-ufo.beam .uf-beam { opacity: 1; }
.cr-ufo .uf-l { animation: ufL .6s steps(2) infinite; }
.cr-ufo .uf-l:nth-of-type(2n) { animation-delay: .3s; }
@keyframes ufL { 50% { opacity: .3; } }
html.no-flash .cr-ufo .uf-l { animation: none; }

/* 🛡️ Immunitetskort (v0.30.18) */
.game-top .imm-tag { color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.immune-note .imm-sub { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
.rule-item.imm-item { background: #0c3b4a; color: #fff; border: 2px solid var(--cyan); }
.imm-fly { position: fixed; left: 50%; top: 42%; z-index: 9000; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(86vw, 340px);
  transform: translate(-50%, -50%); animation: immFlyIn .9s cubic-bezier(.2,1.3,.4,1) both; transition: opacity .5s, transform .5s; }
.imm-fly .imm-shield { font-size: 96px; line-height: 1; filter: drop-shadow(0 0 22px rgba(0,229,255,.75)); animation: immShield 1.2s ease-out both; }
.imm-fly .imm-txt { background: #0c3b4af2; border: 2px solid var(--cyan); border-radius: 14px; padding: 10px 14px; text-align: center; font-weight: 800; font-size: 17px; box-shadow: 0 10px 30px #0009; }
.imm-fly .imm-txt small { display: block; font-size: 13px; font-weight: 600; opacity: .9; margin-top: 2px; }
.imm-fly.out { animation: immFlyOut .55s ease-in forwards; } /* (v0.42.0: tones ud og glider op – før forsvandt den bare) */
@keyframes immFlyOut { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -95%) scale(.85); opacity: 0; } }
.no-flash .imm-fly.out { animation: none; opacity: 0; transition: opacity .5s; }
/* (v0.42.2: immunitets-boblen har samme design som mobbeoffer-boblen) */
@keyframes immFlyIn { 0% { transform: translate(-50%, 80vh) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes immShield { 0% { transform: rotate(-20deg) scale(.6); } 55% { transform: rotate(8deg) scale(1.15); } 100% { transform: rotate(0) scale(1); } }
.no-flash .imm-fly .imm-shield { filter: none; }

/* v0.30.20 crash: eksplosionen spiller kun én gang */
.cr-boom.still b { animation: none; }
/* v0.30.20: mange spillere – resultatet i to kolonner, så intet scroller */
.cs-rows.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cs-rows.two li { padding: 3px 6px !important; font-size: 11.5px !important; flex-wrap: wrap; gap: 0 4px; margin: 0; }
.cs-rows.two li > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ============ 📸 Kamerarullen (v0.31.0) ============ */
.cam-grid { display: flex; gap: 10px; justify-content: center; }
.cam-slot { position: relative; flex: 1 1 0; max-width: 34%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg2); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cam-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-slot.empty { border-style: dashed; border-color: var(--cyan); cursor: pointer; color: var(--cyan); }
.cam-slot.empty span { font-size: 40px; font-weight: 300; line-height: 1; }
.cam-slot small { font-size: 12px; font-weight: 800; color: var(--muted); }
.cam-slot.busy .cam-spin { font-size: 28px; animation: pulseS 1s ease-in-out infinite alternate; }
@keyframes pulseS { to { transform: scale(1.2); opacity: .6; } }
.cam-swap { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(5,3,15,.75); color: #fff; font-size: 12px; font-weight: 800; text-align: center; border-radius: 10px; padding: 6px 4px; cursor: pointer; }
.cam-tag { position: absolute; left: 6px; top: 6px; background: rgba(5,3,15,.75); color: #b6ff3b; font-size: 11px; font-weight: 800; border-radius: 8px; padding: 3px 6px; }
.cam-who { display: flex; flex-wrap: wrap; gap: 6px; }
.cam-who span { background: var(--bg2); border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cam-who span.ok { color: #b6ff3b; }
.cam-btn { border-color: var(--cyan) !important; color: var(--cyan) !important; }
.cam-pop .gb-box { border-color: var(--cyan); }
.cam-photo { display: flex; justify-content: center; }
.cam-photo img { max-width: 100%; max-height: 42vh; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.45); object-fit: contain; display: block; animation: camIn .5s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes camIn { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.cam-guess { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cam-guess.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cam-guess .btn { padding: 10px 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-guess.many .btn { padding: 8px 4px; font-size: 13px; }
.cam-guess .btn.picked { background: #fff; color: #0d1a00; box-shadow: 0 0 0 3px #b6ff3b, 0 0 18px rgba(182,255,59,.6); }
.cam-drum { text-align: center; font-size: 22px; font-weight: 900; animation: camDrum .25s ease-in-out infinite alternate; }
@keyframes camDrum { to { transform: translateX(3px) rotate(1deg); } }
.cam-owner { text-align: center; font-size: 24px; font-weight: 900; color: #b6ff3b; animation: camPop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes camPop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
.no-flash .cam-drum { animation: none; }
.cam-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cam-gitem { border: 0; padding: 0; background: var(--bg2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; color: var(--text); }
.cam-gitem img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cam-gitem span { font-size: 12px; font-weight: 800; padding: 5px 6px; text-align: left; }
.cam-gitem small { display: block; font-weight: 600; color: var(--muted); font-size: 10.5px; }
.cam-big img { max-width: 100%; max-height: 70vh; border-radius: 12px; display: block; margin: 0 auto; }
.cam-screen { gap: 10px; }
.cam-screen .draft-tip { font-size: 13px; }
.cam-screen .cam-slot { max-width: 29%; }
.cam-screen .panel h2 { font-size: 17px; }

/* ---------- Lobby v0.33 (faner, kodebjælke, fast top/bund) ---------- */
.lobby2 { gap: 10px; }
.join-bar { background: linear-gradient(135deg, rgba(255,45,149,.16), rgba(25,227,255,.12)); border: 1.5px solid rgba(255,45,149,.45); border-radius: var(--radius); padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.join-bar .jb-l { font-size: 12px; color: var(--muted); font-weight: 700; }
.join-bar .jb-l b { color: var(--text); } .join-bar .jb-l b span { color: var(--pink); }
.join-bar .room-code { font-size: 44px; letter-spacing: 12px; padding-left: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.lobby-picks { display: flex; flex-direction: column; gap: 8px; }
.lobby-picks:empty { display: none; }
.lpick { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.lpick > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.lpick .k { color: var(--muted); font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.lpick .v { font-weight: 800; font-size: 16px; white-space: nowrap; }
.lpick .v small { color: var(--muted); font-weight: 700; font-size: 12px; }
.lpick .chev { color: var(--muted); transition: transform .2s; }
.lpick.open .chev { transform: rotate(90deg); }
.lpick.ro > button { cursor: default; }
.lpick.ro .chev { display: none; }
.lp-body { padding: 0 12px 12px; }
.lp-chips { display: flex; gap: 6px; }
.lp-chip { flex: 1 1 0; min-width: 0; background: var(--bg2); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 2px; font: inherit; font-size: 12px; font-weight: 800; color: var(--text); cursor: pointer; text-align: center; line-height: 1.2; }
.lp-chip small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.lp-chip.on { border-color: var(--pink); background: rgba(255,45,149,.16); }
.lp-body .seg button { flex: 1; }
.ltabs { display: flex; gap: 4px; background: var(--bg2); border-radius: 14px; padding: 4px; }
.ltabs button { flex: 1; border: 0; background: none; border-radius: 11px; padding: 10px 2px; font: inherit; font-size: 14px; white-space: nowrap; font-weight: 800; color: var(--muted); cursor: pointer; }
.ltabs button.on { background: var(--panel); color: var(--text); box-shadow: 0 2px 10px #0007; }
.ltabs .n { font-size: 12px; color: var(--muted); font-weight: 700; }
.ltab { display: flex; flex-direction: column; gap: 8px; }
.ltab[hidden] { display: none; }
.ltab h3 { margin: 4px 0 8px; }
.lpack { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 7px 8px 7px 12px; }
.lpack .ic { font-size: 22px; width: 28px; text-align: center; flex: none; }
.lpack .t { flex: 1; min-width: 0; }
.lpack .t b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpack .t small { color: var(--muted); font-size: 13px; font-weight: 600; }
.lp-tp { background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; padding: 6px 2px; }
.lp-x { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; width: 34px; height: 34px; flex: none; color: var(--muted); font-weight: 900; cursor: pointer; }
.lp-x:active { color: #ff7a88; border-color: #ff7a88; }
.lp-add { background: transparent; border: 2px dashed var(--line); color: var(--muted); border-radius: 14px; padding: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.lp-add .hint { font-weight: 600; }
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
.lobby-foot { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + var(--safe-b, 0px)); background: linear-gradient(180deg, rgba(11,11,20,0), var(--bg) 30%); display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.lobby-foot .g-sub { text-align: center; font-size: 13px; }
.lf-row { display: flex; gap: 8px; }
.lf-row .btn { flex: 1; min-width: 0; }
.lf-row .btn[hidden] { display: none; }
#btnReady.half { flex: 0 0 38%; }
.top-more { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; width: 40px; height: 34px; font-size: 18px; color: var(--text); cursor: pointer; }
.lf-row .btn-huge { padding: 20px 12px; font-size: 20px; }

/* v0.33.1: drukniveau-slider + "slutter efter"-linje */
.lvl2 { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 14px; min-height: 46px; }
.lvl2 .k, .oneline .k { color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lvl2 .sp { flex: 1; }
.lvl2 .v { font-weight: 800; font-size: 16px; white-space: nowrap; min-width: 104px; text-align: right; line-height: 1.15; }
.lvl2 .v small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.1; }
.lslider { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.lslider:focus { outline: none; }
.lslider::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pink) var(--p), var(--bg2) var(--p)); }
.lslider::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pink) var(--p), var(--bg2) var(--p)); }
.lslider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 0 0 3px rgba(255,45,149,.45), 0 4px 10px #0008; }
.lslider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(255,45,149,.45); }
.oneline { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.oneline .v { flex: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oneline .e { color: var(--cyan); font-weight: 800; font-size: 14px; }
.oneline.ro { cursor: default; } .oneline.ro .e { display: none; }
#endSheet .seg button { flex: 1; }
.lobby-foot[hidden] { display: none; }
.lobby-go { display: flex; flex-direction: column; gap: 4px; }
.lobby-go .btn { padding: 16px 20px; font-size: 20px; }
.lobby-go .btn[hidden] { display: none; }
.lobby-go .g-sub { text-align: center; font-size: 12px; }
/* "Alle er klar – starter nu" (v0.33.5) */
.go-fx { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(11,11,20,.94); animation: fadeIn .25s ease; }
.go-fx .gf-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: fadeIn .3s ease; }
.go-fx .gf-ok { font-size: 48px; line-height: 1; }
.go-fx .gf-t { font-size: 32px; font-weight: 900; color: var(--lime); }
.go-fx .gf-s { font-size: 18px; font-weight: 800; color: var(--muted); }
.go-fx .gf-n { font-size: 96px; font-weight: 900; color: var(--yellow); line-height: 1.1; min-height: 106px; font-variant-numeric: tabular-nums; }
.go-fx .gf-n.pop { animation: gfPop .45s cubic-bezier(.2,1.6,.4,1); }
.go-fx.calm .gf-t { text-shadow: none; }
@keyframes gfPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .go-fx, .go-fx * { animation: none !important; } }

/* ===== v0.38: kortpakker og ekspansioner ===== */
.lp-h { margin: 6px 2px 0; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.lp-h small { text-transform: none; letter-spacing: 0; font-weight: 600; color: #6c6c90; font-size: 12px; }
.exprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.expc { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(157,92,255,.18), rgba(25,227,255,.08)); border: 1.5px solid rgba(157,92,255,.5); border-radius: 999px; padding: 4px 5px 4px 11px; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.expc i { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }
.expc .lp-x { width: 24px; height: 24px; border-radius: 99px; font-size: 11px; }
.lp-add.small { border-radius: 999px; padding: 5px 11px; font-size: 13px; width: auto; }
.pk-seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 3px; gap: 3px; }
.pk-seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 4px; font-size: 14px; font-weight: 800; color: var(--muted); cursor: pointer; }
.pk-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px #0006; }
.pk-seg button span { font-size: 11px; color: #6c6c90; }
.pk-note { color: var(--muted); font-size: 13px; line-height: 1.35; }
.pk-warn { color: var(--yellow); font-size: 13px; font-weight: 700; text-align: center; }
.pkw { position: relative; }
.pk2, .xp2 { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; color: var(--text); cursor: pointer; padding: 12px 12px 30px; }
.pk2 { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; }
.pk2.on { border-color: var(--cyan); background: linear-gradient(160deg, rgba(25,227,255,.1), var(--panel) 60%); }
.pk2 .ic { font-size: 28px; width: 38px; text-align: center; flex: none; } .xp2 .ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.pk2 .t, .xp2 .t { flex: 1; min-width: 0; } .pk2 b { display: block; font-size: 16px; } .xp2 b { display: block; font-size: 15px; }
.pk2 small, .xp2 small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.pk2 .n { display: block; font-size: 12px; font-weight: 800; color: var(--cyan); margin-top: 3px; }
.box2 { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #6c6c90; flex: none; display: grid; place-items: center; font-weight: 900; color: #04121a; font-size: 14px; }
.pk2.on .box2 { background: var(--cyan); border-color: var(--cyan); }
.xp2 { background: var(--bg2); border: 1.5px solid var(--line); border-radius: 14px; }
.xp2.on { border-color: rgba(157,92,255,.75); background: linear-gradient(135deg, rgba(157,92,255,.16), var(--bg2) 70%); } .xp2.dis { opacity: .4; }
.xtag { font-size: 10.5px; font-weight: 900; border-radius: 6px; padding: 1px 6px; background: rgba(157,92,255,.2); color: #c4a6ff; margin-left: 6px; vertical-align: 1px; }
.sw3 { width: 44px; height: 26px; border-radius: 99px; background: #0e0e18; border: 1.5px solid var(--line); position: relative; flex: none; }
.sw3::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #6c6c90; transition: transform .2s; }
.xp2.on .sw3 { background: rgba(157,92,255,.35); border-color: var(--purple); } .xp2.on .sw3::after { transform: translateX(18px); background: #c4a6ff; }
.tpb { position: absolute; right: 12px; bottom: 7px; background: none; border: 0; color: var(--cyan); font-weight: 800; font-size: 13px; cursor: pointer; padding: 2px 0; }
.xg { font-size: 12px; font-weight: 800; color: #c4a6ff; letter-spacing: .6px; text-transform: uppercase; margin: 8px 2px 0; }
.xg span { text-transform: none; letter-spacing: 0; color: #6c6c90; font-weight: 600; }
.pk-own summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; font-size: 14px; padding: 6px 4px; }
.pk-own summary::-webkit-details-marker { display: none; }
.pk-own .chev { transition: transform .2s; } .pk-own[open] .chev { transform: rotate(90deg); }
.pk-own .pkw { margin-top: 7px; } .pk-own .pk2 { padding-top: 9px; } .pk-own .pk2 .ic { font-size: 22px; width: 30px; }
.pk-foot { display: flex; gap: 8px; margin-top: 4px; position: sticky; bottom: -18px; background: #12121d; padding: 8px 0 4px; }
.pk-foot .btn { padding: 14px; font-size: 17px; } .pk-foot #psDone { flex: 1; } .pk-std { width: auto; flex: none; padding: 14px 16px !important; }

.pk2w { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 8px; background: rgba(255,45,80,.14); color: #ff8fa3; font-size: 12px; font-weight: 800; }
/* v0.38: kompakt fordeling i lobbyen (procenterne står allerede på pakkerne) – intet må scrolle */
.lp-share { padding: 10px 12px 8px; }
.lp-share h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.lp-share .share-summary, .lp-share .share-hint { display: none; }
.lp-share .share-track { height: 36px; }
.lp-add { padding: 8px; }
.lp-hr { display: flex; align-items: center; gap: 8px; margin-top: 6px; } .lp-hr .lp-h { flex: 1; margin: 0 2px; } .lp-hr .lp-add.small { padding: 4px 10px; flex: none; }
.lpack { padding: 4px 6px 4px 10px; } .lpack .t b { font-size: 16px; }
/* Flere kortpakker: én linje pr. pakke, så lobbyen ikke skal scrolle */
.lp-cmp .lpack .t { display: flex; align-items: baseline; gap: 8px; } .lp-cmp .lpack .t b { flex: 0 1 auto; min-width: 0; }
.lp-cmp .lpack .t small { flex: none; } .lp-cmp .lpack .t .mt { display: none; } .lp-cmp .lpack { padding-top: 2px; padding-bottom: 2px; }
.lp-share { margin-top: 2px; }
.lp-cmp .lpack .ic { display: none; } .lp-cmp .lpack { padding-left: 12px; }
.lp-cmp .lp-share h3 { display: none; } .lp-cmp .lp-share { padding: 8px 10px; }
.lp-cmp .expc { padding-top: 3px; padding-bottom: 3px; }
.ltab.lp-cmp { gap: 6px; } .lp-cmp .lp-hr { margin-top: 2px; }
.lp-cmp .lp-share { padding: 6px 10px; } .lp-cmp .lp-share .share-slider { margin: 0; }
/* v0.39.3: kortpakker som bobler (som ekspansionerne), med farveprik fra fordelingen */
.expc .cdot2 { width: 10px; height: 10px; border-radius: 99px; flex: none; margin-right: -1px; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.expc.deckc { background: linear-gradient(135deg, rgba(255,45,149,.18), rgba(255,210,63,.07)); border-color: rgba(255,45,149,.5); }
.exprow { margin-bottom: 2px; }
.exprow .expc { font-size: 13px; gap: 5px; padding: 4px 4px 4px 9px; }
.exprow .expc .lp-x { width: 22px; height: 22px; }
.exprow .lp-add.small { padding: 4px 10px; font-size: 12.5px; }
#tabPacks .lp-h { margin-top: 2px; } #tabPacks .exprow { gap: 5px; }
/* Draft: kort pr. spiller som skyder (1–10) */
.dper { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 14px; }
.dper b { min-width: 58px; text-align: right; font-size: 16px; }

/* ---------- v0.40: 🌙 Efter midnat – nye kortmekanikker ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; color: #fff; font-weight: 800; }
.av-sm { width: 24px; height: 24px; font-size: 12px; margin-right: 6px; }
.av-md { width: 40px; height: 40px; font-size: 18px; }
.av-lg { width: 96px; height: 96px; font-size: 40px; }
.av-ini { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.pick-av { display: inline-flex; align-items: center; justify-content: center; }
.gauge-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: -4px; }
/* Kill, Marry, Fuck */
.kmf-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kmf-slot { min-height: 92px; border: 2px dashed var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; text-align: center; transition: border-color .15s, background .15s; }
.kmf-slot.full { border-style: solid; border-color: var(--pink); background: rgba(255,45,149,.10); }
.kmf-slot.armed, .kmf-slot.over { border-color: var(--cyan); background: rgba(25,227,255,.10); }
.kmf-lab { font-weight: 900; font-size: 16px; }
.kmf-empty { color: var(--muted); font-size: 12px; line-height: 1.2; }
.kmf-pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 44px; }
.kmf-chip { display: inline-flex; align-items: center; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); font-weight: 800; font-size: 15px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; max-width: 100%; }
.kmf-slot .kmf-chip { padding: 5px 8px 5px 5px; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kmf-chip.sel { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,227,255,.25); }
.kmf-chip.ghost { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -60%) scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
/* Kærlighedsbrevet */
.lt-prompt { text-align: center; font-weight: 900; font-size: 19px; line-height: 1.25; padding: 4px 6px; }
.lt-write { display: flex; flex-direction: column; gap: 8px; }
.lt-input { width: 100%; box-sizing: border-box; font-size: 16px; text-align: left; resize: none; line-height: 1.35; padding: 10px 12px; }
.lt-list { display: flex; flex-direction: column; gap: 6px; }
.lt-ans { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 12px; }
.lt-ans.win { border-color: var(--pink); background: rgba(255,45,149,.12); }
.lt-ans.lose { border-color: var(--red, #ff4d6d); opacity: .85; }
/* ✍️ v0.58.0: 😂 på sjove svar (gemmes til crewets "Citatet") – animeres kun ved tryk */
.laugh-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; border: 1.5px solid var(--line); background: transparent; color: var(--text, #fff); border-radius: 999px; padding: 4px 9px; font-size: 16px; line-height: 1; cursor: pointer; }
.laugh-btn b { font-size: 12px; }
.laugh-btn.on { border-color: var(--yellow, #ffd23f); background: rgba(255, 210, 63, .16); }
.laugh-btn.tapped { animation: laughPop .25s ease; }
@keyframes laughPop { 50% { transform: scale(1.18); } }
.no-flash .laugh-btn.tapped { animation: none; }
.lt-n { font-weight: 900; color: var(--muted); min-width: 18px; }
.lt-t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.lt-pick { padding: 8px 12px; font-size: 14px; flex: none; }
/* Knust hjerte */
.hearts-grid { display: grid; gap: 6px; }
.heart-cell { aspect-ratio: 1; max-height: 70px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; color: var(--text); font: inherit; min-width: 0; }
.heart-cell .hc-i { font-size: 24px; line-height: 1; }
.heart-cell small { font-size: 10px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.heart-cell { cursor: pointer; }
button.heart-cell:disabled { opacity: .55; cursor: default; }
.heart-cell.go { border-color: var(--pink); animation: hcPulse 1.4s ease-in-out infinite; }
.heart-cell.host { border-color: #3d7cff; }
.heart-cell.ok { border-color: rgba(182,255,59,.5); }
.heart-cell.bad { border-color: var(--red); background: rgba(255,77,94,.15); }
.heart-cell.rest { opacity: .6; }
@keyframes hcPulse { 50% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .heart-cell.go { animation: none; } }
.lt-ans .lt-pick { width: auto; flex: none; min-height: 0; padding: 8px 14px; }
/* Profilbillede: navneskærmen, forsiden og lobbyen */
.av-pick { display: flex; align-items: center; gap: 14px; justify-content: center; }
.av-btn { width: 76px; height: 76px; border-radius: 50%; border: 2px dashed var(--line); background: var(--panel); padding: 0; overflow: hidden; cursor: pointer; flex: none; font-size: 28px; color: var(--text); }
.av-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-prev { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.av-txt { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.av-txt small { color: var(--muted); font-size: 13px; }
.av-del { background: none; border: 0; padding: 0; color: var(--pink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
#helloAv:empty { display: none; }
#helloAv .av { margin-right: 10px; }
.player .pav { flex: none; display: inline-flex; margin-right: 10px; }
.player .pav[data-myav] { cursor: pointer; }
.player .pav .av-md { width: 30px; height: 30px; font-size: 14px; }
.rank-name .av { margin-right: 6px; }
/* Swipe-kortet (Tinder-stil) */
.av-xl { width: 100%; height: 100%; border-radius: 0; font-size: 96px; }
.sw-stack { display: flex; justify-content: center; }
.sw-card { position: relative; width: min(240px, 62vw); aspect-ratio: 3 / 4; max-height: 36vh; border-radius: 20px; overflow: hidden; background: var(--panel); border: 2px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.45); touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .25s ease, opacity .25s ease; cursor: grab; }
.sw-card .av-xl { display: flex; }
.sw-card img.av-xl { object-fit: cover; }
.sw-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-weight: 900; font-size: 22px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.sw-stamp { position: absolute; top: 14px; padding: 4px 10px; border: 3px solid; border-radius: 8px; font-weight: 900; font-size: 20px; opacity: 0; transition: opacity .1s; }
.sw-stamp.like { left: 12px; color: var(--lime); border-color: var(--lime); transform: rotate(-14deg); }
.sw-stamp.nope { right: 12px; color: var(--red); border-color: var(--red); transform: rotate(14deg); }
.sw-card.to-like .sw-stamp.like, .sw-card.to-nope .sw-stamp.nope { opacity: 1; }
.sw-card.back { display: flex; align-items: center; justify-content: center; font-size: 56px; cursor: default; width: min(160px, 40vw); }
.sw-btns { display: flex; align-items: center; justify-content: center; gap: 22px; }
.sw-b { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); font-size: 28px; font-weight: 900; cursor: pointer; }
.sw-b.nope { color: var(--red); border-color: rgba(255,77,94,.6); }
.sw-b.like { color: var(--lime); border-color: rgba(182,255,59,.6); }
.sw-count { color: var(--muted); font-weight: 800; min-width: 40px; text-align: center; }
.sw-match { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sw-m { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .sw-card { transition: none; } }
.av-btn .av-prev { position: relative; }
.av-cam { position: absolute; right: -2px; bottom: -2px; font-size: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
img.av { background: var(--panel); }
.av-btn { overflow: visible; position: relative; }
.av-btn img { border-radius: 50%; }
.av-cam { right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; }
/* v0.40.2: ramme om profilbilledet */
.av:not(.av-xl) { box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pink), 0 2px 8px rgba(0,0,0,.45); }
.av-sm:not(.av-xl) { border-width: 1.5px; box-shadow: 0 0 0 1.5px var(--pink); }
.av-btn img { box-sizing: border-box; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--pink); }
.av-btn { border: 0; }
/* v0.40.3: alle har en lydknap nederst til venstre (kun din egen telefon) */
.mute-fab { position: fixed; left: 16px; bottom: calc(16px + var(--safe-b)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 19px; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 0; }
.leave-fab { left: 68px; font-size: 18px; } /* 🚪 v0.75.26: forlad spillet – ved siden af lyden */
/* v0.40.4 */
.kmf-sub { font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.15; }
#gameMain { position: relative; }
.kmf-chip.ghost.live { position: absolute; z-index: 30; transform: translate(-50%, -60%) scale(1.05); opacity: .92; transition: left .15s linear, top .15s linear; }
.sw-name small { display: block; font-size: 13px; font-weight: 600; opacity: .9; margin-top: 2px; line-height: 1.25; }
.kmf-chip.dim { opacity: .3; }
/* v0.40.5 */
.sw-card.watch { cursor: default; max-height: 30vh; }
.sw-hist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sw-h { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); }
.sw-h.like { color: var(--lime); border-color: rgba(182,255,59,.5); }
.sw-h.nope { color: var(--red); border-color: rgba(255,77,94,.5); }
.lt-by { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 2px; }
.hearts-grid { --hc: min(64px, calc((100vw - 60px) / 6)); justify-content: center; gap: 8px; }
.hearts-grid .heart-cell { width: var(--hc); height: var(--hc); max-height: none; aspect-ratio: auto; }
/* v0.40.6 */
.lt-by { display: flex; align-items: center; gap: 0; }
.lt-win { display: inline-flex; vertical-align: middle; margin-right: 8px; }
/* v0.40.7: de andre ser swipet */
.sw-stack { position: relative; }
.sw-card.fly { position: absolute; left: 50%; top: 0; z-index: 3; pointer-events: none; max-height: 30vh; transform: translateX(-50%); }
.sw-card.fly-like { animation: swFlyR .55s ease-in forwards; }
.sw-card.fly-nope { animation: swFlyL .55s ease-in forwards; }
.sw-stack.fly-only { height: 0; overflow: visible; }
@keyframes swFlyR { from { transform: translateX(-50%); opacity: 1; } to { transform: translateX(90%) rotate(18deg); opacity: 0; } }
@keyframes swFlyL { from { transform: translateX(-50%); opacity: 1; } to { transform: translateX(-190%) rotate(-18deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sw-card.fly { animation-duration: .01s; } }

/* v0.40.10: værten skal registrere uddelte tåre – lange resultatlister trækkes sammen, så intet scroller */
#screen-game.rep-deal .lt-ans:not(.win) { display: none; }
.rep-dist .rep-who { margin: -2px 0 2px; font-size: 12px; }
.game-bottom .hold-btn.victim-btn.wait { opacity: .45; filter: grayscale(.6); }
.sw-card.enter { animation: swIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes swIn { from { transform: translateY(26px) scale(.86) rotate(-3deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sw-card.enter { animation: none; } }

/* v0.41.2: Vælg selv – hele listen af aktive spil (her må man scrolle i listen) */
.choose-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 10px; border-radius: 14px; mask-image: linear-gradient(#000 92%, transparent); }
.choose-list .btn { padding: 12px 8px; font-size: 15px; }
.choose-pk { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-top: 6px; }
/* 🎲 v0.41.3: Vælg selv – rullemenu pr. pakke */
.chz { display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.chz-pk { border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; flex: none; }
.chz-pk.open { border-color: rgba(255, 45, 149, .55); box-shadow: 0 0 18px rgba(255, 45, 149, .15); }
.chz-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 13px 14px; background: none; border: 0; color: var(--text); font: inherit; font-weight: 900; font-size: 16px; text-align: left; cursor: pointer; }
.chz-h span { flex: 1; }
.chz-h small { color: var(--muted); font-weight: 700; font-size: 12px; }
.chz-h i { font-style: normal; color: var(--pink); transition: transform .2s; }
.chz-pk:not(.open) .chz-h i { transform: rotate(-90deg); }
.chz-items { display: flex; flex-direction: column; padding: 0 8px 8px; gap: 4px; animation: chzIn .2s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; overflow-anchor: none; mask-image: linear-gradient(#000 90%, transparent); }
@keyframes chzIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.chz-it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.chz-it b { flex: 1; font-weight: 800; font-size: 15px; }
.chz-it i { font-style: normal; color: var(--muted); font-weight: 900; }
.chz-e { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: rgba(255,255,255,.07); flex: none; }
.chz-it.sel { border-color: var(--lime); background: rgba(182, 255, 59, .1); }
.chz-it.sel i { color: var(--lime); }

/* 🧪 v0.41.19: Testlab-korttest-runden */
#labCyc { position: fixed; top: calc(4px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 4px;
  max-width: calc(100vw - 16px); padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(20, 20, 40, .92); border: 1px solid #3a3a6a; color: #c8c8ee; font-size: 11px; white-space: nowrap; pointer-events: none; }
#labCyc span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#labCyc button { pointer-events: auto; flex: none; border: 0; border-radius: 999px; padding: 5px 10px; background: #2f6fed; color: #fff; font: inherit; font-weight: 700; }
#labCyc .lc-p { background: #34345a; padding: 5px 9px; }

/* v0.41.23: knapper, der skifter tekst (nedtælling, "venter på 1 mere" …), må ikke skifte størrelse – én linje, tal med fast bredde */
#gameMain .game-actions .btn, #gameMain .btn-timed, #gameMain [data-act="done"], #gameMain [data-act="skip"] { line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.no-flash .btn.pressed { animation: none; }
#labCyc .lc-b { background: #34345a; padding: 5px 8px; }
#labCyc .lc-b.on { background: #8a4b00; }
#labCycNote { position: fixed; top: calc(84px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 91; width: min(380px, calc(100vw - 16px)); box-sizing: border-box;
  background: #14142a; border: 1px solid #3a3a6a; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
#labCycNote .lcn-h { font-size: 13px; font-weight: 700; color: #c8c8ee; }
#labCycNote textarea { width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid #3a3a6a; background: #0b0b18; color: #fff; font: inherit; font-size: 16px; padding: 8px; resize: none; }
#labCycNote .lcn-row { display: flex; gap: 6px; justify-content: flex-end; }
#labCycNote button { border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; background: #34345a; color: #fff; }
#labCycNote .lcn-s { background: #2f6fed; }
#labCyc { border-radius: 16px; }
#labCyc .lc-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
#labCyc .lc-sl { pointer-events: auto; padding: 0 4px 2px; }
#labCyc .lc-sl input { width: 100%; margin: 2px 0 0; accent-color: #2f6fed; height: 22px; }
#labCyc .lc-tk { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 10px; color: #8a8ab8; }
#labCyc .lc-tk span { padding: 2px 0; }
#labCyc .lc-tk span.on { color: #fff; font-weight: 700; }
#labCyc .lc-row2 { display: flex; align-items: center; gap: 5px; pointer-events: auto; }
#labCyc .lc-row2 .lc-sl { flex: 1; min-width: 0; }
#labCyc button:disabled { opacity: .35; }
body.lab-cyc .toast { top: calc(104px + var(--safe-t)); z-index: 95; } /* (🧪 beskeder under korttest-skiltet, ikke bag det) */
.btn.tapped { box-shadow: 0 0 0 3px rgba(255,255,255,.55) inset; filter: brightness(1.15); } /* v0.42.0: trykket – venter på serveren */
.cp-stepper { display: flex; align-items: center; gap: 10px; }
.cp-stepper .cp-range { flex: 1; text-align: center; }
.cp-stepper .step-btn { width: 64px; flex: none; font-size: 30px; padding: 10px 0; }
.pair-list { display: flex; flex-direction: column; gap: 6px; }
.pair-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.pair-row > span { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-row .btn { width: auto; padding: 9px 12px; font-size: 15px; }
.cv-by { display: block; font-size: 12px; font-weight: 600; opacity: .85; margin-top: 2px; white-space: normal; }
#labCycMenu { position: fixed; top: calc(84px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 92; width: min(400px, calc(100vw - 16px)); max-height: calc(100dvh - 100px); box-sizing: border-box;
  background: #14142a; border: 1px solid #3a3a6a; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: 14px; }
#labCycMenu .lcm-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: #c8c8ee; }
#labCycMenu .lcm-x { border: 0; background: #34345a; color: #fff; border-radius: 999px; width: 30px; height: 30px; }
#labCycMenu .lcm-packs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
#labCycMenu .lcm-packs label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
#labCycMenu .lcm-row { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
#labCycMenu select, #labCycMenu .lcm-q { flex: 1; min-width: 0; background: #0b0b18; color: #fff; border: 1px solid #3a3a6a; border-radius: 10px; padding: 7px 8px; font: inherit; font-size: 16px; }
#labCycMenu .lcm-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 80px; flex: 1; }
#labCycMenu .lcm-list > * { flex: none; } /* (v0.42.1: rækkerne blev klemt sammen) */
#labCycMenu .lcm-pk { font-size: 12px; font-weight: 800; color: #8a8ab8; text-transform: uppercase; letter-spacing: .04em; padding: 6px 2px 0; }
#labCycMenu .lcm-card { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid #2a2a4a; border-left: 4px solid #3a3a6a; background: #1b1b34; color: #ddd; border-radius: 10px; padding: 7px 9px; font: inherit; font-size: 13px; line-height: 1.3; }
#labCycMenu .lcm-card.ok { border-left-color: #52d600; }
#labCycMenu .lcm-card.down { border-left-color: #ff8a00; }
#labCycMenu .lcm-card.on { border-color: #2f6fed; background: #1d2b55; }
#labCycMenu .lcm-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
#labCycMenu .lcm-top b { font-size: 14px; color: #fff; }
#labCycMenu .lcm-st { display: flex; gap: 4px; }
#labCycMenu .lcm-st i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #2a2a4a; }
#labCycMenu .lcm-st i.y { background: #1f3d12; color: #b6ff3b; }
#labCycMenu .lcm-st i.d { background: #4a2a00; color: #ffb35c; }
#labCycMenu .lcm-txt { opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#labCycMenu .lcm-go { width: auto; padding: 9px 14px; font-size: 15px; }
.pair-row > span { padding: 3px 0 3px 3px; }
.rank-list.done .rank-row { opacity: .92; }
.snd-meter { position: relative; height: 34px; border-radius: 17px; background: #15152a; border: 1px solid var(--line); overflow: hidden; }
.snd-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #52d600, #ffd23f); transition: width .08s linear; }
.snd-fill.hot { background: linear-gradient(90deg, #ffd23f, #ff3b5c); }
.snd-line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #ff3b5c; }
.snd-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; text-shadow: 0 1px 3px #000; }
.cs-give-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cs-give-grid .cs-gv { position: relative; padding: 10px 6px; font-size: 15px; background: #1d1d36; border: 2px solid var(--line); color: #fff; display: flex; justify-content: center; align-items: center; gap: 6px; }
.cs-give-grid .cs-gv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-give-grid .cs-gv.on { border-color: var(--lime); background: #1f3d12; }
.cs-give-grid .cs-gv b { background: var(--lime); color: #0b1a00; border-radius: 999px; min-width: 24px; padding: 1px 7px; font-size: 14px; }
.cs-split .verdict-row .btn { flex: 1; }
/* 🚌 v0.42.9: bunken og kortet, der flyver */
.cs-hand.bus { align-items: center; flex-wrap: nowrap; } /* (v0.79.20: kortene skrumper hellere end at hoppe ned på en ny linje på en smal skærm) */
.cs-hand.bus > .cs-card { flex: 0 1 auto; min-width: 0 !important; }
.bus-deck { position: relative; display: inline-block; width: 46px; height: 64px; margin-right: 8px; flex: none; }
.bus-deck .cs-card { position: absolute; left: 0; top: 0; width: 44px !important; min-width: 44px !important; height: 62px !important; margin: 0; }
.bus-deck .cs-card:nth-child(2) { left: 2px; top: -2px; } .bus-deck .cs-card:nth-child(3) { left: 4px; top: -4px; }
.bus-hid { visibility: hidden; }
.bus-fly { position: fixed; z-index: 70; pointer-events: none; perspective: 600px; }
.bus-fly .cs-card { width: 100% !important; min-width: 0 !important; height: 100% !important; margin: 0; font-size: 24px; }
.cs-card.bus-bad { box-shadow: 0 0 0 3px #ff3b5c, 0 2px 8px rgba(0,0,0,.4); }

/* ⭐ v0.43: spillernes egne pakker i lobbyen */
.upk-add { display: flex; gap: 8px; margin-top: 8px; }
.upk-add .text-input { flex: 1; min-width: 0; margin: 0; font-size: 15px; padding: 10px 12px; }
.upk-add .btn { width: auto; padding: 10px 16px; margin: 0; }
.upk-links { display: flex; gap: 14px; justify-content: center; margin: 8px 0 4px; font-size: 14px; font-weight: 700; }
.upk-links a { color: #c4a6ff; text-decoration: none; }
.home-upk { margin-top: 6px; color: #c4a6ff; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; display: block; }
.home-upk-pend { background: rgba(255, 45, 149, .12); border: 1px solid rgba(255, 45, 149, .4); border-radius: 14px; padding: 10px 12px; font-size: 14px; text-align: center; }
/* 🃏 v0.44: tredje knap på forsiden */
.btn-lb { display: block; text-align: center; text-decoration: none; background: linear-gradient(135deg, #ffcf3f, #ff8a1f); box-shadow: 0 6px 24px rgba(255, 170, 40, .3); color: #2a1600; } /* 🏆 v0.59.4 */
.btn-packs { display: block; text-align: center; text-decoration: none; background: linear-gradient(135deg, #9d5cff, #6a3df0); box-shadow: 0 6px 24px rgba(157, 92, 255, .35); color: #fff; }
/* ✨ v0.44.3/v0.44.7: animationer på forsiden, navn, kode og lobby */
@keyframes homeIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fxPop { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } } /* v0.44.13: trykkes ind – hopper aldrig ud mod en */
@keyframes fxShake { 0%, 100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes fxDrop { 0% { opacity: 0; transform: translateY(-30px) rotate(-8deg) scale(.6); } 60% { opacity: 1; transform: translateY(4px) rotate(2deg) scale(1.08); } 100% { transform: none; } }
@keyframes fxNew { 0% { opacity: 0; transform: translateX(-24px) scale(.95); box-shadow: 0 0 0 0 rgba(182, 255, 59, .7); } 60% { opacity: 1; transform: none; box-shadow: 0 0 0 6px rgba(182, 255, 59, .25); } 100% { box-shadow: 0 0 0 12px rgba(182, 255, 59, 0); } }
@keyframes fxTab { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#screen-home:not([hidden]) .center-stack > *, #screen-name:not([hidden]) .center-stack > *, #screen-join:not([hidden]) .center-stack > * { animation: homeIn .38s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) * .6) both; } /* (⚡ v0.74.34: lidt hurtigere – før .5s og fuld forsinkelse) */
.center-stack > :nth-child(2) { --d: .07s; } .center-stack > :nth-child(3) { --d: .14s; } .center-stack > :nth-child(4) { --d: .21s; } .center-stack > :nth-child(5) { --d: .28s; } .center-stack > :nth-child(6) { --d: .35s; }
.center-stack > :nth-child(7) { --d: .42s; } .center-stack > :nth-child(8) { --d: .49s; } .center-stack > :nth-child(9) { --d: .56s; } .center-stack > :nth-child(n+10) { --d: .63s; } /* (v0.74.33: Kortpakker, Leaderboards/profil og app-banneret toner også frem – før kom de med det samme) */
#screen-join .code-inputs input:nth-child(2) { --d2: .2s; } #screen-join .code-inputs input:nth-child(3) { --d2: .27s; } #screen-join .code-inputs input:nth-child(4) { --d2: .34s; }
.code-inputs input { transition: border-color .2s, transform .15s; }
#app .fx-pop, #app .center-stack > .fx-pop, #screen-join .code-inputs input.fx-pop { animation: fxPop .36s cubic-bezier(.2, .8, .2, 1) 0s; }
#app .fx-shake, #screen-join:not([hidden]) .center-stack > .fx-shake { animation: fxShake .42s ease 0s; }
.gender-pick .btn, .btn { transition: transform .08s ease, opacity .2s ease, box-shadow .2s ease, background .25s ease, color .25s ease; }
/* Lobbyen */
.lobby2.fx-intro > * { animation: homeIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.lobby2.fx-intro > :nth-child(2) { animation-delay: .05s; } .lobby2.fx-intro > :nth-child(3) { animation-delay: .1s; } .lobby2.fx-intro > :nth-child(4) { animation-delay: .15s; }
.lobby2.fx-intro > :nth-child(5) { animation-delay: .2s; } .lobby2.fx-intro > :nth-child(6) { animation-delay: .25s; } .lobby2.fx-intro > :nth-child(n+7) { animation-delay: .3s; }
.room-code span { display: inline-block; }
.player.fx-in { animation: homeIn .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.2s + var(--k, 0) * .06s); }
.player.fx-new { animation: fxNew .9s cubic-bezier(.2, .8, .2, 1) both; }
.player .tag { transition: background .3s, color .3s; }
.ltabs { position: relative; }
.ltabs .ltab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n, 3) - 1) * 4px) / var(--n, 3)); border-radius: 11px; background: var(--panel); box-shadow: 0 2px 10px #0007;
  transform: translateX(calc(var(--i, 0) * (100% + 4px))); transition: transform .38s cubic-bezier(.3, 1.15, .5, 1); pointer-events: none; }
.ltabs button { position: relative; z-index: 1; transition: color .25s; }
.ltabs button.on { background: none; box-shadow: none; }
.fx-tabin { animation: fxTab .3s cubic-bezier(.2, .8, .2, 1); }
#btnReady, #btnStart { transition: transform .08s ease, background .3s ease, box-shadow .3s ease; }
/* Diskrete tilbage-knapper (som på kortpakke-siderne) */
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); padding: 4px 6px 4px 0; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: color .2s, transform .15s; }
.back-link span { font-size: 20px; line-height: 1; margin-top: -2px; transition: transform .2s; }
.back-link:hover { color: var(--text); } .back-link:hover span { transform: translateX(-3px); } .back-link:active { transform: scale(.95); }
.lobby2 > .back-link { margin-bottom: -6px; }
@media (prefers-reduced-motion: reduce) {
  .center-stack > *, .code-inputs input, .lobby2 > *, .room-code span, .player, .fx-pop, .fx-shake, .fx-tabin { animation: none !important; }
  .ltabs .ltab-pill { transition: none; }
}
/* v0.44.8: dit profilbillede er større på forsiden (over navnet) */
.hello { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 8px; }
#helloAv { flex-basis: 100%; display: flex; justify-content: center; }
#helloAv .av { width: 104px; height: 104px; margin: 0 0 10px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pink); box-shadow: 0 0 0 5px rgba(255, 45, 149, .15), 0 10px 30px rgba(255, 45, 149, .3); }
.hello:active #helloAv .av { transform: scale(.96); }
/* ✨ v0.44.11: pakkevælgeren (og andre ark) i samme animationssprog som resten */
@keyframes fxSlideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fxSlideBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes fxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxFadeOut { to { opacity: 0; } }
@keyframes fxSheetOut { to { transform: translateY(100%); } }
@keyframes fxTick { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.sheet-back { animation: fxFadeIn .22s ease; }
.sheet-back.fx-closing { animation: fxFadeOut .23s ease forwards; pointer-events: none; }
.sheet-back.fx-closing .sheet { animation: fxSheetOut .23s cubic-bezier(.4, 0, 1, 1) forwards; }
.fx-st { animation: homeIn .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * var(--ks, 40ms)); }
.fx-out { opacity: 0; transform: translateY(6px); transition: opacity .14s, transform .14s; }
#psList { transition: opacity .2s, transform .2s; display: flex; flex-direction: column; gap: 10px; }
.fx-slidein { animation: fxSlideIn .3s cubic-bezier(.2, .8, .2, 1); }
.fx-slideback { animation: fxSlideBack .3s cubic-bezier(.2, .8, .2, 1); }
.pk-seg { position: relative; }
.pk-seg .pk-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px - (var(--n, 2) - 1) * 3px) / var(--n, 2)); border-radius: 9px; background: var(--panel); box-shadow: 0 2px 8px #0006;
  transform: translateX(calc(var(--i, 0) * (100% + 3px))); transition: transform .38s cubic-bezier(.3, 1.15, .5, 1); pointer-events: none; }
.pk-seg button { position: relative; z-index: 1; transition: color .25s; }
.pk-seg button.on { background: none; box-shadow: none; }
.pk-seg button:active { transform: scale(.96); }
.pk2, .xp2 { transition: border-color .3s, background .3s, transform .15s, opacity .3s; }
.pk2:active, .xp2:active { transform: scale(.98); }
.box2 { transition: background .25s, border-color .25s; }
.sw3 { transition: background .3s, border-color .3s; }
.sw3::after { transition: transform .38s cubic-bezier(.34, 1.4, .5, 1), background .3s !important; }
.xp2 .ic, .pk2 .ic { transition: transform .3s cubic-bezier(.34, 1.4, .5, 1), filter .3s, opacity .3s; }
.xp2:not(.on) .ic { filter: grayscale(.6); opacity: .75; transform: scale(.92); }
.tpb { transition: transform .15s, opacity .2s; } .tpb:active { transform: scale(.94); }
.card-row { transition: opacity .25s, background .25s, transform .15s; } .card-row:active { transform: scale(.98); }
.card-row .box { transition: background .2s, border-color .2s; }
.pk-own .chev { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .sheet-back, .sheet-back .sheet, .fx-st, .fx-slidein, .fx-slideback, .pk2.on .box2 { animation: none !important; }
  .pk-seg .pk-pill, .sw3::after { transition: none !important; }
}

/* v0.48.8: kædede kort – hvem trin 2 handler om */
.chain-step { text-align: center; font-weight: 900; font-size: 15px; color: var(--cyan); margin-bottom: 4px; }
/* 👯 v0.52.0: jeres crew (lobby + slutskærm) */
.crew-card { background: linear-gradient(135deg, rgba(255,45,149,.14), rgba(25,227,255,.10)); border: 1.5px solid rgba(255,45,149,.45); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.crew-head { display: flex; align-items: center; gap: 10px; }
.crew-ic { font-size: 30px; line-height: 1; }
.crew-head b { display: block; font-size: 17px; font-weight: 900; }
.crew-head small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.crew-line { margin-top: 8px; font-size: 14px; }
.crew-recs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.crew-recs li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; background: rgba(0,0,0,.18); border-radius: 10px; padding: 6px 10px; }
.crew-recs li span { color: var(--muted); font-weight: 700; }
.crew-recs li b small { color: var(--muted); font-weight: 700; }
.crew-card.end { margin: 0 0 14px; }
/* 🥊 v0.53.0: crew-rivalisering + navn */
.crew-rival { margin-top: 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: rgba(0,0,0,.22); border-radius: 12px; padding: 8px 10px; text-align: center; }
.crew-rival span { font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-rival b { font-size: 20px; font-weight: 900; color: var(--yellow, #ffd23f); }
.crew-rival small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.crew-name { margin-top: 10px; width: 100%; }

/* v0.53.1: forsiden – skriv koden direkte */
.home-join { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-join { gap: 14px; }
.home-join .hj-t { font-size: 30px; margin: 0; }
.home-join #homeJoinGo { width: 100%; }
.home-or { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.home-or::before, .home-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#app .home-code input.fx-pop { animation: fxPop .36s cubic-bezier(.2, .8, .2, 1) 0s; }

/* 📤 v0.55.0: recap-knappen på slutskærmen */
.recap-row { display: flex; gap: 8px; margin: 0 0 12px; }
.recap-row .recap-open { flex: 1; text-decoration: none; text-align: center; }
.recap-row .recap-share { flex: none; width: 58px; font-size: 20px; }

/* 📸 v0.56.0: værten vælger billeder til recap'en */
.cam-gw { position: relative; }
.cam-gw .cam-gitem { width: 100%; }
.cam-pin { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 999px; padding: 6px 10px; font-weight: 900; font-size: 13px; color: #fff; cursor: pointer; background: rgba(0,0,0,.55); }
.cam-pin.on { background: linear-gradient(90deg, #1f8bff, #19c3ff); }
.photo-reveal { max-height: 26vh; margin-top: 10px; }
/* v0.57.2: profilbilleder på knapper og slutskærmen */
.btn.has-av { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.has-av .av { margin: 0; flex: none; width: 22px; height: 22px; }
.aw-avs { display: inline-flex; margin-right: 4px; vertical-align: middle; }
.aw-avs .av { width: 20px; height: 20px; margin: 0 0 0 -6px; border: 1.5px solid var(--panel); }
.aw-avs .av:first-child { margin-left: 0; }
.pl-head .av { width: 26px; height: 26px; margin: 0 2px 0 0; flex: none; }
.crew-rival span { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.crew-rival .av { margin: 0; width: 34px; height: 34px; }
.crew-line .av, .crew-recs .av { width: 18px; height: 18px; margin: 0 4px 0 0; vertical-align: -4px; }
/* ---------- 👑 Værtsmenu (v0.57.4) ---------- */
.hm { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.hm-crown { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #1e6bff, #19b8ff); box-shadow: 0 6px 18px rgba(30, 107, 255, .35); }
.hm-head b { display: block; font-size: 20px; }
.hm-head small { color: var(--muted); font-weight: 700; font-size: 13px; }
.hm-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hm-grid.two { grid-template-columns: 1fr 1fr; }
.hm-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 6px; min-height: 68px; border-radius: 16px;
  border: 1.5px solid rgba(30, 107, 255, .45); background: rgba(30, 107, 255, .12); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; text-align: center; line-height: 1.15; }
.hm-tile .hm-ic { font-size: 22px; line-height: 1; }
.hm-tile .hm-l { font-size: 13.5px; }
.hm-tile small { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hm-tile.hm-go { background: linear-gradient(135deg, #1e6bff, #19b8ff); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(30, 107, 255, .35); }
.hm-tile.hm-go .hm-l { font-size: 15px; }
.hm-tile.hm-tg { background: var(--bg2); border-color: var(--line); }
.hm-tile.hm-tg.on { background: rgba(30, 107, 255, .16); border-color: #19b8ff; }
.hm-tile.hm-tg.on small { color: #19b8ff; }
.hm-tile.hm-press { animation: hmPress .22s ease; }
@keyframes hmPress { 50% { transform: scale(.94); } }
.hm-sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hm-sec b { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13px; }
.hm-level button { padding: 9px 0; font-size: 16px; }
.hm-level button.on { border-color: #19b8ff; background: rgba(30, 107, 255, .18); }
.hm-end { margin-top: 4px; background: rgba(255, 77, 94, .12); border: 1.5px solid rgba(255, 77, 94, .55); color: #ff6b7a; font-weight: 900; }
.hm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.hm-person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid rgba(30, 107, 255, .45); background: rgba(30, 107, 255, .12); color: var(--text); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.hm-person .av { margin: 0; }

/* 🤫 v0.57.4: den hemmelige mission kommer nederst (dækker ikke kortet) */
#secretNote.secret-note, .secret-note.sn-b { top: auto; bottom: calc(12px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px))); animation: snInB .4s ease-out; box-shadow: 0 -12px 40px rgba(0,0,0,.6), 0 0 0 4px rgba(157,92,255,.2); }
#secretNote.secret-note.gone, .secret-note.sn-b.gone { animation: snOutB .35s ease-in forwards; }
@keyframes snInB { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes snOutB { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.98); } }

/* 🐞 v0.57.5: Meld en fejl */
.bug-link { display: block; margin: 6px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 12px; cursor: pointer; opacity: .85; }
.rep-text { width: 100%; min-height: 96px; margin-top: 10px; resize: vertical; font-size: 16px; }
.rep-shot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.rep-shot img { width: 70px; max-height: 130px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.rep-shot input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

/* 📜 v0.57.10: "Hjælp mig" ved egne regler */
.rule-help { display: block; margin: 6px auto 8px; padding: 7px 14px; font-size: 14px; }

/* 📝 v0.57.13: valg mellem kort (draft-comeback) – i kortets farve med typen øverst */
.btn.cp-cardopt { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.25; border: 2px solid transparent; text-align: center; }
.btn.cp-cardopt b { font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.btn.cp-cardopt.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

/* 🎆 v0.58.0: årsrecap-banneret på forsiden (december/januar) */
.home-year { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.home-year-a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text, #fff); border-radius: 16px; padding: 10px 14px; font-size: 22px;
  background: linear-gradient(90deg, rgba(255, 210, 63, .16), rgba(255, 45, 149, .16)); border: 1.5px solid rgba(255, 210, 63, .5); }
.home-year-a span { display: flex; flex-direction: column; font-size: 15px; line-height: 1.25; min-width: 0; }
.home-year-a small { color: var(--muted, #9b97b8); font-weight: 700; font-size: 12.5px; }

/* 🏆 v0.59.0: link til toplisterne (forside og slutskærm) */
.home-top { white-space: nowrap; display: inline-block; align-self: center; margin: 2px auto 0; padding: 7px 16px; border: 1.5px solid rgba(255, 210, 63, .45); border-radius: 999px; color: var(--yellow, #ffd23f); font-weight: 800; font-size: 14px; text-decoration: none; background: rgba(255, 210, 63, .07); }


/* 👤 v0.59.9: Leaderboards + Din profil under Kortpakker */
.home-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.home-links .home-top { margin: 2px 0 0; display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; font-size: 14px; padding: 7px 16px; }
.home-prof { font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--cyan, #19e3ff); border-color: rgba(25, 227, 255, .45); background: rgba(25, 227, 255, .07); }
.prof { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.prof-head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.prof-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid var(--pink, #ff2d95); flex-shrink: 0; background: var(--panel); }
.prof-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-id { min-width: 0; }
.prof-id h1 { margin: 0; font-size: 28px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-g { color: var(--muted); font-weight: 700; font-size: 14px; margin-top: 2px; }
.prof-edit { width: 100%; }
.prof-sec { margin-top: 14px; font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.prof-sec small { text-transform: none; letter-spacing: 0; font-weight: 700; margin-left: 4px; }
.prof-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.prof-tiles.main { grid-template-columns: repeat(3, 1fr); }
.prof-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; min-width: 0; }
.prof-tile b { display: block; font-size: 22px; font-weight: 900; color: var(--c, var(--text)); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-tiles.main .prof-tile b { font-size: 20px; }
.prof-tile small { color: var(--muted); font-weight: 700; font-size: 12px; }
.prof-streak { background: rgba(255, 90, 54, .12); border: 1.5px solid rgba(255, 90, 54, .5); border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.prof-list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.prof-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; padding: 11px 14px; color: var(--text); text-decoration: none; font-weight: 700; }
.prof-row + .prof-row { border-top: 1px solid var(--line); }
.prof-row > b { font-size: 18px; font-weight: 900; color: var(--yellow, #ffd23f); font-variant-numeric: tabular-nums; }
.prof-row > small { color: var(--muted); font-weight: 700; font-size: 12px; }
.prof-row span { min-width: 0; } .prof-row span small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-load, .prof-empty { color: var(--muted); font-weight: 700; text-align: center; padding: 22px 10px; }
.prof-empty b { display: block; font-size: 34px; margin-bottom: 6px; }
.prof-foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 8px; }
body[data-screen="profile"] .footer { display: none; } /* (lå oven på tallene, når man scrollede) */
.prof-demo { margin-top: 4px; background: rgba(255, 210, 63, .12); border: 1.5px dashed rgba(255, 210, 63, .6); color: var(--yellow, #ffd23f); border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 14px; }

/* 🔥 v0.60.6: streak-påmindelse */
.home-streak { margin-top: -6px; background: rgba(255, 90, 54, .12); border: 1.5px solid rgba(255, 90, 54, .5); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13.5px; text-align: center; align-self: center; }
.prof-streak.safe { background: rgba(182, 255, 59, .1); border-color: rgba(182, 255, 59, .45); }

/* 🏅 v0.61.0: badges og titler */
.tag.ptitle { background: rgba(255, 210, 63, .14); color: var(--yellow, #ffd23f); border-color: rgba(255, 210, 63, .45); }
.pl-title { margin-left: 6px; font-size: 11.5px; font-weight: 800; color: var(--yellow, #ffd23f); background: rgba(255, 210, 63, .12); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.nb-box { background: linear-gradient(135deg, rgba(255, 210, 63, .18), rgba(255, 45, 149, .14)); border: 1.5px solid rgba(255, 210, 63, .55); border-radius: 18px; padding: 12px 14px; margin: 0 0 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.nb-h { font-weight: 900; font-size: 18px; }
.nb-b { font-weight: 800; font-size: 16px; } .nb-b small { color: var(--muted); font-weight: 700; }
.prof-title { font-weight: 700; font-size: 14px; color: var(--muted); } .prof-title b { color: var(--yellow, #ffd23f); } .prof-title small { font-weight: 700; }
.bdg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bdg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 8px 10px; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.bdg:disabled { cursor: default; opacity: .5; filter: grayscale(1); }
.bdg.got { border-color: rgba(255, 210, 63, .45); }
.bdg.on { border-color: var(--yellow, #ffd23f); box-shadow: 0 0 0 2px rgba(255, 210, 63, .35); }
.bdg-e { font-size: 30px; line-height: 1; }
.bdg b { font-size: 14px; font-weight: 900; }
.bdg small { color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.bdg-bar { width: 80%; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 3px; } .bdg-bar i { display: block; height: 100%; background: var(--yellow, #ffd23f); }
.bdg-rare { font-size: 10.5px; font-weight: 800; color: var(--cyan, #19e3ff); }
.bdg-pick { position: absolute; top: 6px; right: 8px; font-size: 10.5px; font-weight: 900; color: #12101c; background: var(--yellow, #ffd23f); border-radius: 99px; padding: 1px 6px; }

/* 📺 v0.74.19: Vis på TV / følg med – et lille link nederst i kode-boksen (før et stort blåt ikon øverst) */
.tv-link { margin-top: 6px; background: none; border: 0; padding: 4px 8px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tv-link[hidden] { display: none; }
.tv-box { text-align: center; }
.tv-box .tv-url { font-size: clamp(16px, 6vw, 24px); font-weight: 900; margin: 10px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-box .tv-url b { color: var(--pink); }
.tv-box .tv-steps { text-align: left; font-size: 15px; color: var(--muted); margin: 10px 0 0; padding-left: 20px; }
.tv-box .tv-steps li { margin: 4px 0; }
.tv-box .tv-steps b { color: var(--text); }

/* v0.64.19: ældre browsere (fx Chromecast/TV'ets browser) kender ikke color-mix() – så blev baggrunden helt væk: tombolaens kugler var usynlige, og Crash manglede den blå himmel */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .tb-ball, .cs-balls b, .cs-balls b.hit { background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c, #fff) 40%, var(--c, #fff)); }
  .cr-sky { background: linear-gradient(#3d8bff, #a9d6ff); }
  .cr-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0a0a2a, #05050f); opacity: var(--alt); }
  .snail-btn.on, .cs-pick.on, .cs-kn.on { background: var(--bg2); }
  .cs-bids span.top { background: rgba(255, 210, 63, .25); }
  .lane.mine::before { background: rgba(255, 255, 255, .08); }
  #raceResult .verdict-result[style*="--wc"] { background: #0b0b14; }
}

/* 🎡 v0.64.23: rouletten – vindertallet lander i midten: drejer ind fra lille, en ring breder sig ud fra hjulets midte, og tallet gløder et øjeblik i sin farve */
.rw-res.pop { animation: rwIn .7s cubic-bezier(.2,.8,.2,1) both, rwGlow 1.6s ease-out .55s both; }
.rw-res.pop::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #ffd23f; animation: rwRing 1.1s ease-out .45s both; pointer-events: none; }
@keyframes rwIn { 0% { transform: translate(-50%, -50%) scale(.15) rotate(-200deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; } }
@keyframes rwRing { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes rwGlow { 0% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } 25% { box-shadow: 0 0 22px 8px rgba(255,210,63,.75); } 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } }
html.no-flash .rw-res.pop { animation: rwIn .7s cubic-bezier(.2,.8,.2,1) both; } html.no-flash .rw-res.pop::after { display: none; }

/* 🦸 v0.74.22: superbruger – 🧪 testkort-kontakten i lobbyen og "hvad skal testes" i spillet */
.su-test { margin-top: 10px; border: 1.5px dashed rgba(255, 196, 0, .55); border-radius: var(--radius); padding: 10px 12px; background: rgba(255, 196, 0, .07); }
.su-test[hidden] { display: none; }
.su-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; }
.su-row small { color: var(--muted); font-size: 12px; }
.su-row input { width: 26px; height: 26px; flex: none; accent-color: #ffc400; }
.secret-note.su-note { top: calc(8px + var(--safe-t)); border-color: #ffc400; box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 4px rgba(255,196,0,.2); padding-right: 40px; }
.su-note .su-h { font-weight: 900; color: #ffc400; margin-bottom: 4px; }
.su-note .su-w { font-size: 15px; line-height: 1.35; white-space: pre-wrap; }
.su-note .su-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.su-num { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.su-num b { min-width: 22px; text-align: center; font-size: 18px; }
.su-num small { color: var(--muted); font-size: 12px; }
.su-step { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid rgba(255, 196, 0, .55); background: transparent; color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer; }
.su-step:disabled { opacity: .35; cursor: default; }
.su-pick { margin-top: 10px; font-size: 14px; }
.su-pick summary { cursor: pointer; font-weight: 700; color: #ffc400; }
.su-pick label { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); cursor: pointer; }
.su-pick label input { width: 20px; height: 20px; flex: none; accent-color: #ffc400; margin-top: 1px; }
.su-pick label span { color: var(--muted); font-size: 13px; line-height: 1.3; }

/* 📱 v0.74.28: banneret "Download appen" nederst på forsiden */
.app-banner { display: flex; align-items: center; gap: 12px; margin: 18px 0 30px; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; color: var(--text); cursor: pointer;
  background: linear-gradient(135deg, rgba(255,45,149,.16), rgba(25,227,255,.12)); border: 1.5px solid rgba(25,227,255,.45); }
.app-banner[hidden] { display: none; }
.app-banner .ab-ic { font-size: 26px; flex: none; }
.app-banner .ab-t { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.app-banner .ab-t b { font-size: 15px; }
.app-banner .ab-t small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.app-banner .ab-go { flex: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 99px; color: #111; background: linear-gradient(90deg, var(--pink), var(--cyan)); }

/* ============================================================
   🎨 v0.74.46: slutskærmen i recap'ens designsprog
   ============================================================ */
#screen-ended .ended { gap: 0; padding-top: 4px; }
.end-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 20px 16px 16px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(150deg, #ff2d95 0%, #b0179f 38%, #5b2bd8 72%, #1aa8d8 115%); box-shadow: 0 18px 50px -18px rgba(255,45,149,.55); animation: endPop .6s cubic-bezier(.2,.8,.2,1) both; }
.end-hero::before { content: "67420"; position: absolute; right: -14px; bottom: -28px; font-size: 120px; font-weight: 900; letter-spacing: -2px; color: rgba(255,255,255,.08); line-height: 1; pointer-events: none; }
.end-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); pointer-events: none; }
.end-hero > * { position: relative; z-index: 1; }
.eh-date { display: inline-block; background: rgba(0,0,0,.22); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; }
.eh-title { font-size: 36px; font-weight: 900; margin: 12px 0 2px; line-height: 1.05; letter-spacing: -.5px; }
.eh-sub { font-weight: 800; opacity: .88; font-size: 15px; }
.eh-ppl { display: flex; align-items: center; margin-top: 14px; }
.eh-avs { display: inline-flex; flex: none; }
.eh-avs .av { width: 38px; height: 38px; margin: 0 0 0 -9px; border: 3px solid rgba(255,255,255,.9); background: #2a1d4a; }
.eh-avs .av:first-child { margin-left: 0; }
.eh-names { margin-left: 10px; font-weight: 800; font-size: 14px; line-height: 1.25; min-width: 0; }
.eh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.eh-stats.four { grid-template-columns: repeat(2, 1fr); }
.eh-stats div { background: rgba(0,0,0,.2); border-radius: 18px; padding: 12px 6px 10px; text-align: center; }
.eh-stats b { display: block; font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.5px; }
.eh-stats small { font-weight: 800; font-size: 12px; opacity: .82; }
.eh-drunk { margin-top: 8px; background: rgba(255,255,255,.95); color: #1a0f2b; border-radius: 16px; padding: 10px 12px; font-weight: 900; font-size: 14.5px; display: flex; gap: 8px; align-items: center; line-height: 1.3; }
.eh-drunk > span { font-size: 22px; }
.eh-drunk small { display: block; font-weight: 700; font-size: 11.5px; opacity: .65; margin-top: 2px; }

.end-sec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 26px 2px 12px; }
.end-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.end-note { margin: -4px 2px 10px; font-size: 12.5px; }

/* recap-knappen */
#screen-ended .recap-row { margin: 0; }
#screen-ended .recap-open { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 20px; padding: 14px; background: linear-gradient(120deg, #19e3ff, #8b5cff); color: #0b0b14; font-weight: 900; box-shadow: 0 10px 30px -12px rgba(25,227,255,.7); }
#screen-ended .recap-open small { font-size: 12px; font-weight: 800; opacity: .7; }
#screen-ended .recap-share { border-radius: 20px; }

/* podiet */
.end-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.ep { text-align: center; min-width: 0; animation: endUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--k) * 120ms + 150ms); }
.ep .av { display: flex; margin: 0 auto 6px; width: 50px; height: 50px; border: 3px solid var(--bg); }
.ep-nm { font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-v { color: var(--muted); font-size: 11.5px; font-weight: 800; margin: 2px 0 8px; line-height: 1.3; }
.ep-blk { border-radius: 16px 16px 6px 6px; display: grid; place-items: start center; padding-top: 8px; font-size: 34px; font-weight: 900; color: rgba(11,11,20,.55); }
.ep.p1 .ep-blk { height: 110px; background: linear-gradient(180deg, #ffd23f, #ff8a00); box-shadow: 0 0 40px -8px rgba(255,210,63,.6); }
.ep.p2 .ep-blk { height: 80px; background: linear-gradient(180deg, #e3e1f0, #8f8ca8); }
.ep.p3 .ep-blk { height: 60px; background: linear-gradient(180deg, #ffb07a, #b8592a); }
.ep.p1 .ep-nm { font-size: 17px; }
.ep-crown { font-size: 22px; display: block; margin-bottom: -2px; }

/* crewet */
#screen-ended .crew-card.end { margin: 26px 0 0; border-radius: 22px; padding: 16px; background: linear-gradient(160deg, rgba(139,92,255,.22), var(--bg2) 60%); border: 1px solid rgba(139,92,255,.45); }
#screen-ended .crew-rival { border-radius: 16px; padding: 10px; }
#screen-ended .crew-rival b { font-size: 24px; }
#screen-ended #endedCam { margin-top: 26px; border-radius: 22px; }

/* priserne */
.end-awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ea { --a: var(--pink); min-width: 0; border-radius: 20px; padding: 14px 12px; border: 1px solid var(--line); background: var(--bg2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--a) 20%, var(--bg2)), var(--bg2) 70%); border-color: color-mix(in srgb, var(--a) 38%, var(--line));
  animation: endIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--k) * 50ms); display: flex; flex-direction: column; }
.ea-k { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; font-weight: 900; color: var(--a); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ea-k i { font-style: normal; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--a) 22%, transparent); }
.ea-who { display: flex; align-items: center; font-size: 18px; line-height: 1.15; min-width: 0; }
.ea-who b { font-weight: 900; overflow-wrap: anywhere; }
.ea-who .aw-avs .av { width: 24px; height: 24px; }
.ea-v { font-weight: 900; font-size: 14px; color: var(--a); margin-top: 4px; }
.ea:last-child:nth-child(odd) { grid-column: span 2; }
.ea-why { color: var(--muted); font-size: 11.5px; font-weight: 700; margin-top: auto; padding-top: 6px; line-height: 1.3; }

/* alle spillere */
#screen-ended .pl-list { display: flex; flex-direction: column; gap: 8px; }
#screen-ended .pl-card { border-radius: 20px; padding: 12px 14px; border: 1px solid var(--line); }
#screen-ended .pl-list li:first-child { background: linear-gradient(160deg, rgba(255,210,63,.16), var(--bg2) 60%); border-color: rgba(255,210,63,.45); }
#screen-ended .pl-card.me { box-shadow: inset 0 0 0 2px rgba(25,227,255,.55); }
#screen-ended .pl-drunk span { border-radius: 12px; }
#screen-ended #endedCards { margin-top: 26px; border-radius: 22px; }

/* links nederst + den faste knap */
.end-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.end-links .btn { width: 100%; }
.end-bar { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px 0; padding: 14px 16px calc(14px + var(--safe-b)); background: linear-gradient(180deg, transparent, rgba(11,11,20,.94) 30%); }
.end-bar { display: flex; gap: 8px; align-items: stretch; }
.end-bar > * { flex: 1; min-width: 0; }
.end-bar .btn { width: 100%; margin: 0; }
.end-bar #btnToLobby { box-shadow: 0 10px 30px -10px rgba(182,255,59,.6); }
.end-bar .end-leave { flex: none; width: auto; padding: 0 16px; font-size: 15px; background: var(--bg2); border: 1px solid var(--line); } /* (🚪 v0.74.49: altid til at nå) */
.end-bar #btnToLobby[hidden] { display: none; }
.end-wait { margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.end-bar .end-wait[hidden] { display: none; }

@keyframes endIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes endUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes endPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .end-hero, .ep, .ea { animation: none; } }
@media (max-width: 340px) { .end-awards { grid-template-columns: 1fr; } .eh-title { font-size: 30px; } }
.end-demo { text-align: center; font-weight: 900; font-size: 13px; color: #0b0b14; background: var(--yellow); border-radius: 999px; padding: 6px 12px; margin: 0 auto 12px; }

/* 🎞️ v0.74.55: sideskift – den fulde indtoning kun første gang på forsiden; ellers toner den gamle side blødt over i den nye */
.fx-quiet #screen-home:not([hidden]) .center-stack > *, .fx-quiet #screen-name:not([hidden]) .center-stack > *, .fx-quiet #screen-join:not([hidden]) .center-stack > *, .fx-quiet .lobby2.fx-intro > * { animation: none; }
.screen { animation: screenIn .2s ease; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }
/* 📷 v0.74.61: appens egen billedmenu lige under profilbilledet */
.pic-menu { position: fixed; z-index: 95; display: flex; flex-direction: column; min-width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: picIn .16s ease both; }
.pic-menu::before { content: ""; position: absolute; top: -7px; left: calc(var(--ax, 50%) - 7px); width: 12px; height: 12px; background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.pic-menu button { position: relative; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: 17px; font-weight: 700; padding: 12px 14px; border-radius: 11px; cursor: pointer; }
.pic-menu button + button { border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; }
.pic-menu button:active { background: rgba(255,255,255,.08); }
@keyframes picIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 📸 v0.74.63: appens eget kamera */
.cam-shot { position: fixed; inset: 0; z-index: 120; background: #000; }
.cs-frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cam-shot video { width: 100%; height: 100%; object-fit: contain; } /* (v0.74.64: hele billedet – intet skæres væk) */
.cam-shot.round .cs-frame { inset: auto; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(88vw, 62vh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 100vmax rgba(0,0,0,.72); }
.cam-shot.round video { object-fit: cover; } /* (rammen viser det midterste kvadrat – det bliver profilbilledet) */
.cam-shot video.mirror { transform: scaleX(-1); }
.cs-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-shot.flash .cs-flash { animation: csFlash .25s ease-out; }
@keyframes csFlash { from { opacity: .85; } to { opacity: 0; } }
.cs-x { position: absolute; top: calc(12px + var(--safe-t)); left: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; cursor: pointer; }
.cs-bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 28px calc(22px + var(--safe-b)); background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.cs-shut { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; }
.cs-shut i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .1s; }
.cs-shut:active i { transform: scale(.88); }
.cs-flip { justify-self: end; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; cursor: pointer; }
/* ============================================================
   🎨 v0.74.77: profilen i recap'ens designsprog
   ============================================================ */
#profBody { display: flex; flex-direction: column; }
.pf-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 16px 16px; margin-top: 8px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #ff2d95 0%, #b0179f 38%, #5b2bd8 72%, #1aa8d8 115%); box-shadow: 0 18px 50px -18px rgba(255,45,149,.55); }
.pf-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); pointer-events: none; }
.pf-hero > * { position: relative; z-index: 1; }
.pf-edit { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.22); color: #fff; font-size: 17px; cursor: pointer; z-index: 2; }
.pf-av { display: block; width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.92); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); background: #2a1d4a; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-hero h1 { margin: 12px 0 4px; font-size: 30px; font-weight: 900; line-height: 1.05; letter-spacing: -.4px; overflow-wrap: anywhere; }
.pf-sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 800; }
.pf-sub span { background: rgba(0,0,0,.22); border-radius: 999px; padding: 5px 11px; }
.pf-sub .pf-title { background: rgba(255,210,63,.95); color: #2a1a00; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pf-stats div { background: rgba(0,0,0,.2); border-radius: 18px; padding: 12px 4px 10px; min-width: 0; }
.pf-stats b { display: block; font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pf-stats small { font-weight: 800; font-size: 11.5px; opacity: .82; }
.pf-skel div { height: 58px; animation: pfPulse 1.2s ease-in-out infinite; }
@keyframes pfPulse { 50% { opacity: .5; } }
.pf-streak { margin-top: 8px; background: rgba(255,255,255,.95); color: #1a0f2b; border-radius: 16px; padding: 10px 12px; font-weight: 800; font-size: 14px; display: flex; gap: 10px; align-items: center; text-align: left; }
.pf-streak > span { font-size: 24px; }
.pf-streak small { display: block; font-weight: 700; font-size: 12px; opacity: .65; margin-top: 2px; }
.pf-streak.safe > span { filter: hue-rotate(60deg); }
.pf-sec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 26px 2px 12px; }
.pf-sec small { text-transform: none; letter-spacing: 0; font-weight: 700; }
.pf-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pf-month { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-month div { background: linear-gradient(160deg, rgba(139,92,255,.22), var(--bg2) 70%); border: 1px solid rgba(139,92,255,.4); border-radius: 18px; padding: 12px 6px; text-align: center; }
.pf-month b { display: block; font-size: 24px; font-weight: 900; }
.pf-month small { color: var(--muted); font-weight: 800; font-size: 12px; }
.pf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-tile { --a: var(--pink); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border-radius: 18px; padding: 11px 12px; border: 1px solid var(--line);
  background: var(--bg2); background: linear-gradient(160deg, color-mix(in srgb, var(--a) 16%, var(--bg2)), var(--bg2) 70%); border-color: color-mix(in srgb, var(--a) 32%, var(--line)); min-width: 0; }
.pf-tile i { grid-row: span 2; font-style: normal; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--a) 22%, transparent); }
.pf-tile b { font-size: 20px; font-weight: 900; line-height: 1.1; color: var(--a); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tile small { color: var(--muted); font-weight: 700; font-size: 12px; line-height: 1.2; }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-rank, .pf-crew { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; color: var(--text); text-decoration: none; }
.pf-pos { flex: none; min-width: 48px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 17px; background: rgba(255,255,255,.08); color: var(--text); font-variant-numeric: tabular-nums; }
.pf-rank.top1 .pf-pos { background: linear-gradient(180deg, #ffd23f, #ff8a00); color: #2a1a00; }
.pf-rank.top2 .pf-pos { background: linear-gradient(180deg, #e3e1f0, #8f8ca8); color: #1a1a24; }
.pf-rank.top3 .pf-pos { background: linear-gradient(180deg, #ffb07a, #b8592a); color: #2a1200; }
.pf-rk { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; }
.pf-rk small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-chev { color: var(--muted); font-size: 22px; }
.pf-cic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: rgba(139,92,255,.22); }
.pf-cn { text-align: right; } .pf-cn b { display: block; font-size: 18px; font-weight: 900; color: var(--yellow); } .pf-cn small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
#profBody .prof-demo { margin-top: 12px; }
#profBody .bdg-grid { gap: 10px; }
#profBody .bdg { border-radius: 18px; padding: 14px 10px 12px; }
#profBody .bdg.got { background: linear-gradient(160deg, rgba(255,210,63,.16), var(--bg2) 70%); }
#profBody .bdg-e { font-size: 34px; }

/* 🎞️ v0.74.80: profilens tal toner frem, når de er hentet (selve sideskiftet: show() i app.js, v0.74.82) */
@keyframes profIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
#profBody .pf-rest { display: flex; flex-direction: column; animation: profIn .3s ease both; }
@media (prefers-reduced-motion: reduce) { #profBody .pf-rest { animation: none; } }
/* ‹ v0.74.83: tilbage-knappen er tydelig overalt – en lille pille med pil (v0.74.84: pilen i tekstens farve – cyan passede ikke ind) (samme i Kortpakker og Leaderboards) */
.back-link, .sheet-back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--text); font-size: 14px; font-weight: 800; box-shadow: 0 4px 14px -6px rgba(0,0,0,.6); -webkit-tap-highlight-color: transparent; }
.back-link span, .sheet-back-btn span { font-size: 22px; line-height: 1; margin-top: -3px; color: inherit; opacity: .75; }
.back-link:hover, .sheet-back-btn:hover { background: rgba(255,255,255,.13); color: var(--text); }
.lobby2 > .back-link { margin-bottom: 2px; }

/* 📣 v0.74.85: nyhedsfeltet på forsiden + velkomsten på navnesiden (forside og navneside er ellers som før – Malthe kunne bedre lide dem) */

/* navnesiden: velkomsten første gang (v0.74.89: resten af navnesiden er tilbage som før) */
.nm-head .big-title { margin-bottom: 4px; font-size: clamp(22px, 7vw, 30px); white-space: nowrap; }
.nm-sub { margin: 0 auto; max-width: 300px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.35; }
.nm-sub[hidden] { display: none; }
/* 🎨 v0.74.90: knapperne på forsiden og navnesiden i samme designsprog som profilen og tilbage-knappen – mørkt glas med lys kant, pink = valgt (layoutet er det samme) */
.home-links .home-top, .home-links .home-prof { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 4px 14px -6px rgba(0,0,0,.6); }
.home-links .home-top:active { transform: scale(.96); }
#genderPick .btn-ghost { color: var(--text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
#genderPick .btn-go { color: #fff; background: linear-gradient(135deg, var(--pink), #c3129f); border: 1px solid transparent; box-shadow: 0 4px 16px -4px rgba(255,45,149,.6); }
/* 🔤 v0.74.91: bogstaverne i kodefelterne blev skåret af på iPhone – ingen standard-luft i feltet, fast linjehøjde, lidt mindre bogstaver */
.code-inputs input { box-sizing: border-box; padding: 0; margin: 0; line-height: 1; font-size: 34px; min-width: 0; -webkit-appearance: none; appearance: none; text-indent: 0; letter-spacing: 0; }
/* v0.74.92: "Hvad hedder du?" lige over navnefeltet */
.nm-ask { margin: 6px 0 -8px; font-size: 20px; font-weight: 900; text-align: center; }
.nm-head[hidden] { display: none; }

/* 📣 v0.74.94: nyheden – ét design i begge tilstande: mørkt glas med lys kant og en pink prik. Foldet ud som standard;
   ✕ folder den glidende sammen til en lille pille "● Nyhed" i højre side, og et tryk folder den ud igen. Ligger i toppen, så resten af forsiden aldrig rykker. */
#screen-home { position: relative; }
#screen-home .center-stack > .home-news { position: absolute; top: 4px; right: 0; left: auto; width: 100%; z-index: 2; box-sizing: border-box; height: 48px; overflow: hidden;
  display: flex; align-items: center; gap: 10px; padding: 0 36px 0 14px; border-radius: 16px; text-decoration: none; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 4px 14px -6px rgba(0,0,0,.6);
  transition: width .38s cubic-bezier(.2,.8,.2,1), height .38s cubic-bezier(.2,.8,.2,1), border-radius .38s cubic-bezier(.2,.8,.2,1), padding .38s cubic-bezier(.2,.8,.2,1); }
.home-news[hidden] { display: none !important; }
.home-news .hn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,149,.25); flex: none; }
.home-news .hn-t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13.5px; line-height: 1.2; transition: opacity .22s ease .12s; }
.home-news .hn-t b, .home-news .hn-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-news .hn-t small { color: var(--muted); font-weight: 600; font-size: 12px; }
.home-news .hn-go { font-size: 20px; opacity: .6; flex: none; transition: opacity .22s ease .12s; }
.home-news .hn-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--text); font-size: 10px; cursor: pointer; transition: opacity .22s ease .12s; }
.home-news .hn-lbl { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 800; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
/* sammenfoldet */
#screen-home .center-stack > .home-news.mini { width: 86px; height: 32px; padding: 0 0 0 12px; border-radius: 999px; }
.home-news.mini .hn-t, .home-news.mini .hn-go, .home-news.mini .hn-x { opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.home-news.mini .hn-lbl { opacity: 1; transition: opacity .2s ease .2s; }
.home-news:active { filter: brightness(1.12); }
@media (max-height: 720px) { #screen-home:has(.home-news:not([hidden])) .center-stack { padding-top: 52px; } } /* (små telefoner: plads, så den ikke dækker "Hej …") */
@media (prefers-reduced-motion: reduce) { #screen-home .center-stack > .home-news, .home-news * { transition: none !important; } }

/* 🎨 v0.74.95: lobbyen i samme designsprog som profilen og recap'en – spilkoden som plakat, valgene samlet i ét glas-kort,
   faner i glas, lette spiller-rækker uden kasse-i-kasse, pink afkrydsning */
#screen-lobby .join-bar { position: relative; overflow: hidden; gap: 2px; padding: 16px 14px 12px; border: 0; border-radius: 26px; color: #fff;
  background: linear-gradient(150deg, #ff2d95 0%, #b0179f 38%, #5b2bd8 72%, #1aa8d8 115%); box-shadow: 0 18px 50px -18px rgba(255,45,149,.55); }
#screen-lobby .join-bar::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); pointer-events: none; }
#screen-lobby .join-bar > * { position: relative; z-index: 1; }
#screen-lobby .join-bar .jb-l { color: rgba(255,255,255,.8); }
#screen-lobby .join-bar .jb-l b { color: #fff; } #screen-lobby .join-bar .jb-l b span { color: #fff; opacity: .75; }
#screen-lobby .join-bar .room-code { color: #fff; font-size: 52px; text-shadow: 0 6px 24px rgba(0,0,0,.25); margin: 2px 0; }
#screen-lobby .tv-link { align-self: center; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 800; }
/* drukniveau + slutter efter: ét kort */
#screen-lobby .lobby-picks { gap: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; }
#screen-lobby .lobby-picks > * { background: none; border: 0; border-radius: 0; }
#screen-lobby .lobby-picks > * + * { border-top: 1px solid rgba(255,255,255,.08); }
#screen-lobby .lslider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--pink) var(--p), rgba(255,255,255,.12) var(--p)); }
#screen-lobby .lslider::-moz-range-track { background: linear-gradient(90deg, var(--pink) var(--p), rgba(255,255,255,.12) var(--p)); }
#screen-lobby .oneline .e { color: var(--text); opacity: .7; }
/* faner */
#screen-lobby .ltabs { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
#screen-lobby .ltabs .ltab-pill { background: rgba(255,255,255,.14); box-shadow: 0 4px 14px -6px rgba(0,0,0,.6); border-radius: 12px; } /* (lyst glas – pink er forbeholdt "Jeg er klar") */
#screen-lobby .ltabs button.on, #screen-lobby .ltabs button.on .n { color: #fff; }
/* spillere: ingen kasse om listen */
#tabPlayers > .panel { background: none; border: 0; padding: 4px 0 0; }
#tabPlayers .panel-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#tabPlayers .panel-head h2 .count { color: var(--muted); }
#screen-lobby .player { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; }
#screen-lobby .player.me { border-color: rgba(255,45,149,.65); background: linear-gradient(135deg, rgba(255,45,149,.14), rgba(91,43,216,.1)); box-shadow: 0 8px 24px -14px rgba(255,45,149,.7); }
#screen-lobby .player .tag { background: rgba(255,255,255,.08); border: 0; color: var(--muted); }
#screen-lobby .player .ctrl button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--text); font-size: 12px; box-shadow: none; }
/* indstillinger og pakker: glas og pink afkrydsning */
#screen-lobby .ltab > .panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; }
#screen-lobby .toggle.on .box { background: var(--pink); border-color: var(--pink); }
#screen-lobby .toggle.wide.on { border-color: rgba(255,45,149,.6); }
#screen-lobby .toggle { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
#screen-lobby .toggle.on { background: rgba(255,45,149,.08); border-color: rgba(255,45,149,.6); }
/* v0.74.96: luft mellem knapperne i lobbyens indstillinger */
#tabSettings > .panel { display: flex; flex-direction: column; gap: 8px; }
#tabSettings > .panel > h3 { margin: 8px 0 0; }
#tabSettings > .panel > h3:first-child { margin-top: 0; }
/* 🃏 v0.74.96: "Hvad skal I spille?" ligner Kortpakker → Installerede – hver pakke er et kort med kontakt til højre og "Tilpas ›" som fod */
#packSheetBody .pkw { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
#packSheetBody .pkw:has(.on) { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(25,227,255,.15), 0 6px 20px rgba(25,227,255,.08); }
#packSheetBody .pk2, #packSheetBody .xp2 { background: none !important; border: 0 !important; border-radius: 0; padding: 12px; gap: 12px; }
#packSheetBody .pk2 .ic, #packSheetBody .xp2 .ic { font-size: 28px; width: auto; }
#packSheetBody .xp2 b { font-size: 16px; }
#packSheetBody .pk2 .n { color: var(--cyan); }
#packSheetBody .pkw:not(:has(.on)) .ic { filter: grayscale(.7); opacity: .7; transform: scale(.92); }
/* kontakten (samme som Installerede) */
#packSheetBody .box2, #packSheetBody .sw3 { width: 46px; height: 28px; border-radius: 999px; border: 0; background: #2c2c4a; position: relative; font-size: 0; color: transparent; flex: none; transition: background .3s, box-shadow .3s; }
#packSheetBody .box2::after, #packSheetBody .sw3::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .38s cubic-bezier(.34, 1.4, .5, 1) !important; }
#packSheetBody .on .box2, #packSheetBody .on .sw3 { background: var(--cyan); border: 0; box-shadow: 0 0 14px rgba(25,227,255,.45); }
#packSheetBody .on .box2::after, #packSheetBody .on .sw3::after { transform: translateX(18px); background: #fff; }
/* "Tilpas ›" som kortets fod */
#packSheetBody .tpb { position: static; display: block; width: 100%; border-top: 1px solid var(--line); padding: 8px; text-align: center; color: var(--cyan); font-size: 13px; font-weight: 800; }
#packSheetBody #psList { display: flex; flex-direction: column; gap: 8px; }
#packSheetBody .pk2w { margin-top: 5px; padding: 2px 8px; border-radius: 8px; border: 1px solid rgba(255,77,109,.5); background: rgba(255,45,80,.12); color: #ff8fa3; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
#packSheetBody:has(#psSeg) { min-height: min(78dvh, 640px); display: flex; flex-direction: column; } #packSheetBody:has(#psSeg) .pk-foot { margin-top: auto; } /* (v0.74.97: arket hopper ikke i højden, når man skifter fane) */
/* 🎚️ v0.75.0: små felter i fordelingen – tallet står over bjælken (i pakkens farve, med en lille streg ned); to små ved siden af hinanden: det næste under */
.share-seg.tiny { overflow: visible; }
.share-seg.tiny .share-pct { display: block; position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); color: var(--c, #fff); font-size: 12px; font-weight: 900; white-space: nowrap; pointer-events: none; }
.share-seg.tiny .share-pct::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 6px; margin-left: -.75px; background: var(--c, #fff); opacity: .7; }
.share-seg.tiny.below .share-pct { bottom: auto; top: calc(100% + 9px); }
.share-seg.tiny.below .share-pct::after { top: auto; bottom: 100%; }
.share-track:has(.share-seg.tiny:not(.below)) { margin-top: 24px; }
.share-track:has(.share-seg.below) { margin-bottom: 24px; }
.share-track { transition: margin .2s; }
/* v0.75.1: lidt luft mellem overskrift og tekst på knapperne i lobbyens indstillinger */
#screen-lobby .toggle .tname small { display: block; margin-top: 4px; line-height: 1.35; }
/* 👥 v0.75.2: spillervinduet gentænkt – store billeder (60 px) med prikken for forbindelse på billedet, grøn ring = klar, ude af forbindelse = gråt billede,
   pilene stablet lodret, så navnet får plads, og mærkerne har deres farver igen (vært gul, klar grøn, ikke forbundet rød) */
#screen-lobby .players { gap: 8px; }
#screen-lobby .player { gap: 14px; padding: 10px 10px 10px 12px; min-height: 80px; }
#screen-lobby .player .pav { position: relative; margin: 0; }
#screen-lobby .player .pav .av-md { width: 60px; height: 60px; font-size: 26px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.16); transition: box-shadow .3s, filter .3s, opacity .3s; }
#screen-lobby .player.ready .pav .av-md { box-shadow: 0 0 0 3px var(--lime), 0 0 18px -4px rgba(182,255,59,.55); }
#screen-lobby .player.away .pav .av-md { filter: grayscale(1); opacity: .5; }
#screen-lobby .player .pav .dot { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border: 3px solid #17172a; box-sizing: content-box; }
#screen-lobby .player .pname { font-size: 17px; }
#screen-lobby .player .tags { gap: 5px; margin-top: 2px; }
#screen-lobby .player .tag { font-size: 11.5px; padding: 3px 8px; }
#screen-lobby .player .tag.host { background: rgba(255,210,63,.14); color: var(--yellow); }
#screen-lobby .player .tag.ready { background: rgba(182,255,59,.14); color: var(--lime); }
#screen-lobby .player .tag.away { background: rgba(255,77,94,.14); color: var(--red); }
#screen-lobby .player .ctrl { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 4px; align-items: center; }
#screen-lobby .player .ctrl [data-act="up"] { grid-column: 1; grid-row: 1; }
#screen-lobby .player .ctrl [data-act="down"] { grid-column: 1; grid-row: 2; }
#screen-lobby .player .ctrl [data-act="more"] { grid-column: 2; grid-row: 1 / span 2; height: 100%; min-height: 60px; width: 34px; border-radius: 12px; font-size: 16px; }
#screen-lobby .player .ctrl [data-act="up"], #screen-lobby .player .ctrl [data-act="down"] { width: 34px; height: 28px; border-radius: 9px; font-size: 11px; }
#screen-lobby .player .ctrl button:disabled { opacity: .3; }
/* 👥 v0.75.4: gitteret (v0.75.3) er taget af igen – listen fra v0.75.2 er tilbage (køn vises stadig kun, når det mangler).
   Spillerpanelet uden glas-kant, så "Spillere (4/20) · 0 klar" ikke går ud over kanten */
#screen-lobby #tabPlayers > .panel { background: none; border: 0; border-radius: 0; padding: 4px 0 0; }
#screen-lobby #tabPlayers .panel-head { padding: 0 4px; }
/* v0.75.5: versionsnummeret står oppe i højre hjørne (over topbaren – rører ikke "Rum ABCD") */
.footer { left: auto; right: max(16px, calc((100vw - 560px) / 2 + 16px)); bottom: auto; top: calc(2px + var(--safe-t)); font-size: 10px; text-align: right; opacity: .8; pointer-events: none; }
/* v0.75.8: beskeder (fx fejl) ligger altid foran ark og pop-ups – før lå de bag det slørede (arket har z-index 8000) */
.toast { z-index: 10050; }
body.lab-cyc .toast { z-index: 10050; }
/* v0.75.10: beskeden toner frem på midten – før overskrev fade-animationen centreringen, så den startede ude til højre og hoppede ind */
.toast { animation: toastIn .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
/* 💬 v0.75.11: besked lige under en knap, der nægter (fx en pakke med under 5 kort) */
.near-msg { margin: 6px 4px 2px; padding: 8px 12px; border-radius: 12px; background: rgba(255,77,94,.12); border: 1px solid rgba(255,77,94,.35); color: #ff8fa3; font-size: 13px; font-weight: 700; text-align: center; animation: nearIn .22s cubic-bezier(.2,.8,.2,1) both; transition: opacity .25s, transform .25s; }
.near-msg.out { opacity: 0; transform: translateY(-4px); }
@keyframes nearIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sheet .fx-shake { animation: fxShake .42s ease 0s; } /* (arket ligger uden for #app – så rystede den ikke før) */
/* 🔒 v0.75.14: pakker under 5 kort skal kunne ses med det samme – hele kortet gråt og svagt, kontakten bliver til en lås */
#packSheetBody .pkw:has(.dis) { filter: grayscale(1); border-style: dashed; }
#packSheetBody .pkw:has(.dis) > * { opacity: .4; } /* (på indholdet – listens indtonings-animation holder kortets egen opacity på 1) */
#packSheetBody .dis .box2, #packSheetBody .dis .sw3 { background: none !important; box-shadow: none !important; width: 28px; }
#packSheetBody .dis .box2::after, #packSheetBody .dis .sw3::after { content: "🔒"; color: #fff; background: none; box-shadow: none; width: auto; height: auto; top: 2px; left: 4px; font-size: 16px; transform: none !important; }

/* 👑 v0.75.17: værtsmenuen i spillet – samme designsprog som lobbyen og profilen (pink = handling, glas = resten), kompakt så den kan være på skærmen */
.modal:has(.hm) { padding: 14px 14px 12px; max-height: calc(100dvh - 24px - var(--safe-t) - var(--safe-b)); overflow-y: auto; }
.modal:has(.hm) .modal-actions:empty { display: none; }
.hm { gap: 10px; }
.hm-head { position: relative; overflow: hidden; padding: 12px 12px; margin: 0 0 2px; border-radius: 20px; color: #fff;
  background: linear-gradient(150deg, #ff2d95 0%, #b0179f 38%, #5b2bd8 72%, #1aa8d8 115%); box-shadow: 0 12px 34px -16px rgba(255,45,149,.6); }
.hm-head::after { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); pointer-events: none; }
.hm-head > * { position: relative; z-index: 1; }
.hm-head .hm-crown { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); box-shadow: none; font-size: 22px; }
.hm-head b { font-size: 18px; } .hm-head small { color: rgba(255,255,255,.8); }
.hm-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.22); color: #fff; font-size: 14px; cursor: pointer; flex: none; }
.hm-main { gap: 6px; }
.hm-tile { min-height: 58px; padding: 8px 6px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text); font-weight: 800; }
.hm-tile .hm-ic { font-size: 20px; }
.hm-tile.hm-go { background: linear-gradient(135deg, var(--pink), #c3129f); border-color: transparent; color: #fff; box-shadow: 0 6px 20px -6px rgba(255,45,149,.7); }
.hm-sec { margin-top: 2px; font-size: 11.5px; }
.hm-level { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 4px; gap: 4px; }
.hm-level button { border: 0; background: none; border-radius: 10px; padding: 8px 0; color: var(--muted); font-weight: 800; }
.hm-level button.on { background: linear-gradient(135deg, var(--pink), #c3129f); color: #fff; border: 0; box-shadow: 0 4px 12px -4px rgba(255,45,149,.6); }
.hm-list { display: flex; flex-direction: column; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; }
.hm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hm-row + .hm-row { border-top: 1px solid rgba(255,255,255,.07); }
.hm-row:active { background: rgba(255,255,255,.05); }
.hm-row .hm-ic { width: 24px; text-align: center; font-size: 18px; flex: none; }
.hm-row .hm-l { flex: 1; min-width: 0; }
.hm-row small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* (Til/Fra – kontakten viser det) */
.hm-row .hm-chev { color: var(--muted); font-size: 20px; font-weight: 400; }
.hm-sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #2c2c4a; flex: none; transition: background .25s; }
.hm-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .3s cubic-bezier(.34, 1.4, .5, 1); }
.hm-row.on .hm-sw { background: var(--pink); }
.hm-row.on .hm-sw::after { transform: translateX(18px); }
.hm-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.hm-end { width: 100%; padding: 12px; border-radius: 16px; background: rgba(255,77,94,.1); border: 1px solid rgba(255,77,94,.45); color: #ff6b7a; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.hm-bug { margin: 0 auto; color: var(--muted); }
.hm-row.hm-press, .hm-tile.hm-press { animation: hmPress .22s ease; }
.hm-person { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); } /* (v0.75.17: "Giv værtsrollen videre" / "Smid ud" i glas – ikke blå) */
.hm-person:active { border-color: var(--pink); background: rgba(255,45,149,.1); }

/* 💎 v0.75.20: abonnement – låste pakker (kræver abonnement) og betalingsskærmen */
#packSheetBody .pkw:has(.prem) > * { opacity: .55; }
#packSheetBody .prem .box2, #packSheetBody .prem .sw3 { background: none !important; box-shadow: none !important; width: 28px; }
#packSheetBody .prem .box2::after, #packSheetBody .prem .sw3::after { content: "💎"; color: #fff; background: none; box-shadow: none; width: auto; height: auto; top: 2px; left: 4px; font-size: 16px; transform: none !important; }
.modal:has(.pw) { padding: 14px 14px 12px; }
.pw { display: flex; flex-direction: column; gap: 12px; }
.pw-top { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 14px 16px; border-radius: 22px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #ff2d95 0%, #b0179f 38%, #5b2bd8 72%, #1aa8d8 115%); box-shadow: 0 14px 40px -16px rgba(255,45,149,.6); }
.pw-top::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); pointer-events: none; }
.pw-top > * { position: relative; z-index: 1; }
.pw-ic { font-size: 40px; line-height: 1.1; }
.pw-top b { font-size: 22px; font-weight: 900; } .pw-top small { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; }
.pw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.pw-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.pw-list i { font-style: normal; width: 22px; flex: none; text-align: center; }
.pw-go { width: 100%; }
.pw-price { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.pw-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 🌐 v0.75.20: hjemmesiden kun til at hoppe ind */
.web-apponly { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 15px; }
.web-apponly small { color: var(--muted); font-size: 13px; font-weight: 600; }
.web-apponly[hidden] { display: none; }
#btnCreate[hidden], #btnPacks[hidden] { display: none !important; }
#modal:has(.pw) { z-index: 9500; } /* (betalingsskærmen åbnes også fra pakke-arket – den skal ligge foran det) */
/* 💎 v0.75.21: "Hvornår slutter spillet?" uden abonnement – valgene kan ses, men ikke ændres */
.es-locked #endMode button:not(.on), .es-locked #endCards button:not(.on), .es-locked #endTime input { opacity: .5; }
.es-prem { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255,45,149,.1); border: 1px solid rgba(255,45,149,.4); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.es-prem b { display: block; font-size: 15px; } .es-prem small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.es-prem i { font-style: normal; font-size: 22px; flex: none; }
.es-prem .t { flex: 1; min-width: 0; }
.es-prem .c { color: var(--muted); font-size: 20px; }
.sheet .fx-shake { animation: fxShake .42s ease 0s; }
/* 💬 v0.75.22: beskeden svæver oven på indholdet lige under knappen (rykker ikke noget) */
.near-msg.float { position: fixed; z-index: 10040; margin: 0; box-sizing: border-box; background: #2a1420; box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); pointer-events: none; }
.near-msg.float.prem-msg { background: #2a1430; }
.near-msg.float.has-btn { pointer-events: auto; display: flex; align-items: center; gap: 10px; text-align: left; }
.near-msg.float .nm-btn { margin-left: auto; flex: none; padding: 7px 12px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff2d95, #c3129f); color: #fff; font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; white-space: nowrap; }
#upkPaywall .pw .btn-ghost { width: 100%; }
/* 🆔 v0.77.4: telefonens id nederst på profilen (kun i appen) */
.prof-id{margin:18px auto 6px;text-align:center;color:var(--muted,#9a9ac0);font-size:13px}.prof-id b{font:800 15px ui-monospace,monospace;color:#19e3ff;letter-spacing:1px;margin-left:4px;user-select:all;-webkit-user-select:all}.prof-id small{display:block;margin-top:3px;font-size:11.5px;opacity:.8}
/* 🎴 v0.78.1: Spilpakke 2 – farvejagt, terning, "det er dig" */
.color-hunt{display:flex;align-items:center;justify-content:center;gap:12px;margin:6px auto 12px;padding:14px 18px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.color-hunt span{width:44px;height:44px;border-radius:12px;background:var(--hc);box-shadow:0 0 0 2px rgba(255,255,255,.35),0 0 24px var(--hc)}
.color-hunt b{font-size:26px;letter-spacing:2px}
.dice-show{font-size:84px;line-height:1;text-align:center;margin:6px 0;animation:diceIn .5s ease-out}
@keyframes diceIn{from{transform:rotate(-200deg) scale(.4);opacity:0}to{transform:none;opacity:1}}
.whosaid-me{text-align:center;font-size:24px;font-weight:900;margin:8px 0 12px;color:#ffd23f}.whosaid-me small{display:block;font-size:14px;font-weight:600;color:var(--muted,#9a9ac0);margin-top:6px}


/* 🎴 👻 Spøgelseskortet: gennemsigtigt og svævende */
.ghost-on .card67:not(.mini):not(.ghost-old) { opacity: .9; animation: ghostFloat 3.2s ease-in-out infinite; box-shadow: 0 0 34px rgba(220,230,255,.45); }
@keyframes ghostFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ghost-fly { position: fixed; left: -60px; top: 30%; font-size: 64px; opacity: .8; pointer-events: none; z-index: 60; animation: ghostFly 5.5s ease-in-out forwards; }
@keyframes ghostFly { 0% { left: -60px; transform: translateY(0) rotate(-8deg); opacity: 0; } 15% { opacity: .85; } 50% { transform: translateY(-50px) rotate(8deg); } 85% { opacity: .85; } 100% { left: 110%; transform: translateY(10px) rotate(-6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ghost-on .card67:not(.mini), .ghost-fly { animation: none; } .ghost-fly { display: none; } }

/* 🎴 Effekter, der gælder lige nu (🔗 lænket, 🛡️ livvagt, ↪️ tag mine tåre, 🃏 gem-kort) – står på kortet hele turen */
.sp2-fx { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 16px 0; }
.sp2-fx span { background: rgba(255,233,166,.14); color: #ffe9a6; border: 1px solid rgba(255,233,166,.35); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
/* 🎴 v0.78.6: 🎨 farvejagt-nedtælling og {X}s farvevalg */
.color-count { font-size: 96px; font-weight: 900; text-align: center; line-height: 1.1; animation: diceIn .4s ease; }
.color-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.color-pick .btn { display: flex; align-items: center; gap: 8px; justify-content: flex-start; padding: 10px; }
.color-pick .btn span { width: 22px; height: 22px; border-radius: 50%; background: var(--hc); border: 1px solid rgba(255,255,255,.4); flex-shrink: 0; }

/* 👻 v0.78.6: det gamle kort over spøgelseskortet */
/* 👻 v0.78.9: spøgelseskortet – hvid/grå, med det gamle kort inde i kortet over teksten */
.card67.ghost-card { background: linear-gradient(160deg, #fbfbfd 0%, #e4e6ec 55%, #c9ccd6 100%) !important; color: #23252e !important; }
.card67.ghost-card .card67-title { color: #5b5f6e; }
.ghost-old-wrap { margin: 4px 6% 10px; opacity: 1; transform: rotate(-2.5deg); filter: grayscale(.35); }
.ghost-old-wrap .card67 { box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.ghost-old-lab { font-size: 12px; font-weight: 800; text-align: center; margin-bottom: 4px; color: #5b5f6e; }

/* 🎲 v0.78.7: 3D-terningen */
.dice3d { width: 100%; height: 220px; border-radius: 16px; background: radial-gradient(ellipse at center, #1c6b3c 0%, #0f4024 70%, #0a2b18 100%); box-shadow: inset 0 0 30px rgba(0,0,0,.5); overflow: hidden; }
.dice3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* ✏️ v0.78.7: tegneblok */
.draw-pad { width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.draw-pad canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.draw-row { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 8px; }
.draw-clock { font-weight: 800; min-width: 70px; }

/* 🎬 v0.78.7: videoen fra "vis den sidste video" */
.cp-video { display: block; width: 100%; max-height: 55vh; border-radius: 14px; background: #000; }

/* v0.78.9 (ZS15): felterne "Bedste / Værste drink" i midten */
.kmf-slots { justify-content: center; margin-left: auto; margin-right: auto; }

/* 🃏 v0.78.9: dine gem-kort er knapper under 👁 Regler */
.save-mine { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.save-mine .btn { flex: 1 1 auto; }

/* ✏️ v0.78.9: tegneværktøjer */
.draw-tools { max-width: 360px; margin: 0 auto 6px; display: flex; flex-direction: column; gap: 6px; }
.dt-cols { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.dt-col { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); padding: 0; cursor: pointer; }
.dt-col.on { border-color: var(--yellow); transform: scale(1.18); }
.dt-row { display: flex; gap: 5px; justify-content: center; }
.dt-row .btn { min-width: 40px; padding: 6px 8px; }

/* 🎨 v0.78.9: farvehjul (ZU08) – farven følger vinklen, mætningen afstanden fra midten */
.cwheel { position: relative; width: 220px; height: 220px; margin: 6px auto; border-radius: 50%; touch-action: none;
  background: radial-gradient(circle, #808080 0%, rgba(128,128,128,0) 72%), conic-gradient(from 90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.cwheel i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #000; pointer-events: none; }
.cw-prev { display: flex; justify-content: center; margin: 6px 0; }
.cw-prev span { width: 64px; height: 32px; border-radius: 10px; border: 2px solid rgba(255,255,255,.4); }

/* 🎬 v0.78.9: lyd-markør på videoen */
#vidStage { position: relative; }
.vid-snd { position: absolute; top: 8px; left: 8px; z-index: 2; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; background: rgba(0,0,0,.65); color: #fff; }
.vid-snd.off { background: rgba(255,77,94,.85); }
/* v0.78.11 (ZS15): to felter (bedste/værste) står i midten i stedet for i 2 af 3 kolonner */
.kmf-slots:has(> .kmf-slot:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: center; }
.kmf-slots:has(> .kmf-slot:only-child) { grid-template-columns: minmax(0, 200px); justify-content: center; }
/* v0.78.11 (ZU08): grundfarverne i en oversigt */
.cswatch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.cs-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--panel); border: 2px solid var(--line); color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer; }
.cs-btn i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.cs-btn:active { transform: scale(.95); border-color: var(--cyan); }
/* 🃏 v0.78.11 (ZN08): gem-kortet vendes op midt på skærmen – og bliver til et mærke på kortet */
.save-pop { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(5,5,12,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: spFade .25s ease-out; perspective: 900px; }
.save-pop.out { animation: spOut .6s ease-in forwards; }
.save-pop .sp-card { position: relative; width: min(64vw, 250px); aspect-ratio: 5 / 7; transform-style: preserve-3d; animation: spFlip 1.1s cubic-bezier(.2, .9, .25, 1.15) forwards; }
.save-pop.out .sp-card { animation: spAway .6s ease-in forwards; }
.save-pop .sp-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.save-pop .sp-back { background: repeating-linear-gradient(45deg, #2a1f4d 0 10px, #33265e 10px 20px); border: 3px solid #ffe9a6; font-size: 72px; }
.save-pop .sp-front { transform: rotateY(180deg); background: linear-gradient(160deg, #fff6d6, #ffd36b); color: #2a1a00; border: 3px solid #fff; }
.save-pop.save-double .sp-front { background: linear-gradient(160deg, #ffd9d9, #ff6b6b); }
.save-pop.save-swap .sp-front { background: linear-gradient(160deg, #d9f3ff, #5cc8ff); }
.save-pop .sp-emo { font-size: 76px; line-height: 1; animation: spPulse 1s ease-in-out .9s infinite; }
.save-pop .sp-title { font-weight: 900; font-size: 24px; letter-spacing: .5px; text-transform: uppercase; }
.save-pop .sp-txt { font-size: 17px; line-height: 1.3; }
@keyframes spFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spFlip { 0% { transform: translateY(70vh) rotateY(0) rotateZ(-14deg) scale(.6); } 45% { transform: translateY(0) rotateY(0) rotateZ(4deg) scale(1.05); } 100% { transform: translateY(0) rotateY(180deg) rotateZ(0) scale(1); } }
@keyframes spPulse { 50% { transform: scale(1.15); } }
/* v0.78.14: når kortet flyver væk, er der ingen 3D længere – kun forsiden (telefonerne viste bagsiden igen) */
.save-pop.out .sp-back { display: none; }
.save-pop.out .sp-front { transform: none; }
@keyframes spAway { from { transform: none; } to { transform: translateY(-30vh) scale(.25); opacity: 0; } }
@keyframes spOut { to { background: rgba(5,5,12,0); backdrop-filter: none; } }
.save-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.save-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(0,0,0,.28); color: #fff; font-weight: 800; font-size: 14px; animation: tagIn .5s cubic-bezier(.2, .9, .3, 1.4); }
.save-tag b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #ffe9a6; font-size: 15px; }
.save-tag.save-double b { background: #ff8a8a; } .save-tag.save-swap b { background: #8ad8ff; }
@keyframes tagIn { from { transform: scale(0); opacity: 0; } }
/* v0.78.13: ⚙️ står samme sted og i samme størrelse for vært og spillere (højre hjørne) – og uden rød kant */
.mute-fab.set-fab { left: auto; right: 16px; width: 52px; height: 52px; font-size: 22px; }
/* 🎴 v0.78.13 (ZD07/ZA21): resultatet af to valg – to kort side om side */
.pair-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.pr-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: rgba(255,255,255,.06); border: 2px solid var(--line); text-align: center; animation: tagIn .45s cubic-bezier(.2, .9, .3, 1.3); }
.pr-tile:nth-child(2) { animation-delay: .12s; animation-fill-mode: backwards; }
.pr-lab { font-weight: 900; font-size: 16px; }
.pr-who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; }
.pr-drink { font-size: 13px; font-weight: 700; color: var(--muted); }
.es-locked #endMode button:not(.on)::after, .es-locked #endCards button:not(.on)::after { content: " 💎"; font-size: .8em; } /* v0.79.4: låst – et tryk åbner betalingsskærmen */
/* 🎬 v0.79.6: optag demo – rød REC-prik · demo-tilstand (index.html?demo=…): kun selve spillet, intet kan trykkes */
#demoRecDot { position: fixed; top: calc(8px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); z-index: 9500; padding: 4px 12px; border-radius: 999px; background: #e0182d; color: #fff; font: 900 12px system-ui, sans-serif; letter-spacing: 1px; animation: recBlink 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes recBlink { 50% { opacity: .45; } }
html.demo-mode, html.demo-mode body { overflow: hidden !important; background: #0b0b14 !important; }
html.demo-mode #app > header, html.demo-mode #app > section:not(#screen-game), html.demo-mode .footer, html.demo-mode .game-top, html.demo-mode .game-bottom, html.demo-mode .game-btns, html.demo-mode .game-actions,
html.demo-mode #hostFab, html.demo-mode #setFab, html.demo-mode #muteFab, html.demo-mode .hold-btn, html.demo-mode #connBar, html.demo-mode #debug, html.demo-mode #rulesOverlay, html.demo-mode #pauseOverlay,
html.demo-mode #gameBanner, html.demo-mode .toast, html.demo-mode #toast, html.demo-mode .modal, html.demo-mode #victimTag, html.demo-mode #immTag, html.demo-mode #premBanner, html.demo-mode #appBanner { display: none !important; }
html.demo-mode #screen-game { display: flex !important; padding: 8px 10px !important; min-height: 0 !important; margin: 0 !important; }
html.demo-mode #gameMain, html.demo-mode #gameMain * { pointer-events: none !important; }
html.demo-mode #gameMain::after { display: none !important; }
/* 🎬 v0.79.9: rouletten i demoen – kun hjulet (ikke brættet med satserne) */
html.demo-mode[data-game=wheel] .cs-rtable { display: none !important; }
html.demo-mode .g2-tower.myturn { outline: none !important; box-shadow: none !important; }
/* 🎬 v0.79.20: Busturen i demoen – kun kortene og det under */
html.demo-mode[data-game=bus] #gameMain > :is(.g-head, .cs-riders), html.demo-mode[data-game=bus] #gameMain > .cs-riders + .g-sub { display: none !important; }
html.demo-mode[data-game=bus] #gameMain :is(.cs-rows, .vote-q) { display: none !important; }
/* 🎬 v0.79.26: demoen står i midten af rammen (rammen husker den største højde, så der kan være luft) */
html.demo-mode #screen-game { justify-content: center !important; }
html.demo-mode #gameMain { flex: 0 0 auto !important; }
html.demo-mode #gameMain .g-head { display: none !important; } /* (v0.80.2: karrusel-kortet viser selv spillets navn ovenpå – ellers stod de oven i hinanden) */ /* (v0.79.23: listen over hvem der drikker gjorde demoen dobbelt så høj – og alt andet lillebitte) */
/* 🎬 v0.79.16: Tårnet i karrusellen – fast størrelse og kun kranen + toppen af tårnet (før blev lærredet mindre og mindre med rammen) */
html.demo-mode[data-game=g2taarn] #screen-game { padding: 0 !important; }
html.demo-mode[data-game=g2taarn] #gameMain { --demo-fixed: 1; flex: none !important; height: 180px !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; }
html.demo-mode[data-game=g2taarn] #gameMain .g2-tower { width: 210px !important; height: 294px !important; max-height: none !important; margin: 0 auto !important; border-radius: 0 !important; }
html.demo-mode[data-game=wheel] .tv-wrow { grid-template-columns: 1fr !important; display: block !important; }
html.demo-mode[data-game=wheel] .cs-rw { margin: 10px auto !important; }

/* 📱 v0.80.3: "Hent appen for at starte et spil" */
.getapp { text-align: center; }
.getapp-ic { font-size: 54px; line-height: 1; margin-bottom: 6px; }
.getapp h3 { margin: 4px 0 8px; }
.getapp .getapp-small { font-size: 13px; margin-top: 6px; }
.getapp-qr { width: 200px; height: 200px; margin: 14px auto 6px; background: #fff; border-radius: 16px; padding: 10px; }
.getapp-qr svg { width: 100%; height: 100%; display: block; }

/* 🎁 v1.0.4: weekendens gratis pakke på forsiden */
.home-free { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 20px; color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,255,255,.18); position: relative; overflow: hidden; animation: hfIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
.home-free[hidden] { display: none !important; }
.home-free::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); animation: hfShine 3.5s ease-in-out 1s infinite; pointer-events: none; }
.home-free .hf-ic { font-size: 38px; line-height: 1; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.home-free .hf-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.home-free .hf-t em { font-style: normal; font-size: 11.5px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; opacity: .9; }
.home-free .hf-t b { font-size: 21px; font-weight: 900; margin: 2px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-free .hf-t small { font-size: 12.5px; font-weight: 700; opacity: .88; }
.home-free .hf-go { flex: none; background: rgba(255,255,255,.95); color: #1a1030; font-weight: 900; font-size: 14px; padding: 9px 13px; border-radius: 999px; }
@keyframes hfIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes hfShine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .home-free, .home-free::after { animation: none; } }

/* 🎁 v1.0.6: "Gratis denne weekend" på pakken i lobbyens pakkevælger og i Kortpakker */
.fw-tag { display: inline-block; align-self: flex-start; font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: #1a1030; background: linear-gradient(90deg, #ffe066, #ffb347); padding: 2px 8px; border-radius: 999px; margin: 0 0 3px; box-shadow: 0 2px 8px rgba(255,180,70,.35); white-space: nowrap; }

/* 🎁 v1.0.7: gratis-weekenden som lille bjælke i toppen – samme plads og højde som nyheden, så forsiden aldrig rykker */
#screen-home .center-stack > .home-free { position: absolute; top: 4px; left: 0; right: 0; width: 100%; height: 48px; margin: 0; padding: 0 8px 0 10px; gap: 10px; border-radius: 16px; z-index: 3; box-sizing: border-box; box-shadow: 0 4px 14px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.2); }
#screen-home .center-stack > .home-free .hf-ic { font-size: 24px; }
#screen-home .center-stack > .home-free .hf-t b { font-size: 14.5px; margin: 0 0 1px; }
#screen-home .center-stack > .home-free .hf-t small { font-size: 11.5px; }
#screen-home .center-stack > .home-free .hf-go { font-size: 12.5px; padding: 6px 11px; }

/* 💎 v1.0.7: Premium-bjælken i toppen – samme plads og størrelse som nyheden og gratis-weekenden */
#screen-home .center-stack > #premBanner { position: absolute; top: 4px; left: 0; right: 0; z-index: 3; }
#premBanner .prem-banner { margin: 0 !important; width: 100%; height: 48px !important; min-height: 48px; box-sizing: border-box; padding: 0 40px 0 12px; gap: 10px; border-radius: 16px; text-align: left; }
#premBanner .prem-banner .pb-ic { font-size: 22px; flex: none; }
#premBanner .prem-banner > span:not(.pb-ic) { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
#premBanner .prem-banner b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#premBanner .prem-banner small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#premBanner .pb-x { top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }

/* 🌊 v1.0.8: vandfaldets rækkefølge – overskrift, pile og "du må stoppe efter …" */
.wf-box { margin: 6px 0 4px; padding: 10px 10px 12px; border-radius: 16px; background: rgba(25,227,255,.08); border: 1px solid rgba(25,227,255,.3); text-align: center; }
.wf-head { font-size: 13px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.wf-box .wf-list { gap: 4px 2px; align-items: center; }
.wf-box .wf-item { font-size: 15px; padding: 6px 12px 6px 6px; display: inline-flex; align-items: center; gap: 6px; }
.wf-box .wf-item i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 12px; }
.wf-box .wf-item.me { background: rgba(255,214,10,.15); border-color: var(--yellow); }
.wf-box .wf-item.me i { background: var(--yellow); color: #1a1030; }
.wf-arr { color: var(--cyan); font-weight: 900; opacity: .8; }
.wf-me { margin-top: 9px; font-size: 14px; color: var(--muted); }
.wf-me b { color: var(--text); }
#screen-home .center-stack > .home-free .hf-t b { font-size: clamp(11px, 3.2vw, 13px); letter-spacing: -.1px; } /* (v1.0.10: den længere tekst) */
#screen-home .center-stack > .home-free .hf-go { font-size: 20px; padding: 0 4px 2px; background: none; color: #fff; opacity: .85; }
#screen-home .center-stack > .home-free .hf-ic { font-size: 22px; }

/* 🎨 v1.0.11: forside version 4 – logo og bjælke øverst, dig i midten, alt man trykker på samlet nederst */
#screen-home .center-stack { justify-content: flex-start; gap: 14px; padding-top: 60px; padding-bottom: 6px; }
#screen-home .home-me { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; }
#screen-home .home-me > * { margin: 0; }
#screen-home .hello { font-size: 34px; font-weight: 900; margin: 0; line-height: 1.15; }
#screen-home #helloAv .av { width: 120px; height: 120px; margin: 0 0 12px; }
#screen-home .home-streak { margin: 0; background: none; border: 0; padding: 0; font-size: 15.5px; font-weight: 800; color: #ffb35c; }
#screen-home .home-streak b { color: #ff8a5c; }
#screen-home .home-join { background: #12121f; border: 1px solid #23233a; border-radius: 22px; padding: 16px 16px 14px; gap: 12px; box-sizing: border-box; }
#screen-home .home-join .hj-t { font-size: 24px; }
#screen-home .home-code input { width: 70px; height: 72px; font-size: 32px; }
#screen-home #homeJoinGo { min-height: 0; height: 58px; padding: 0; font-size: 20px; }
#screen-home #btnCreate { min-height: 0; height: 66px; padding: 0; font-size: 23px; }
#screen-home .home-row { display: flex; gap: 10px; }
#screen-home .home-row .btn { flex: 1; min-width: 0; min-height: 0; height: 56px; padding: 0 6px; font-size: 16px; font-weight: 900; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border-radius: 18px; }
#screen-home .home-row .btn[hidden] { display: none; }
#screen-home .btn-top { background: linear-gradient(135deg, #ff6a3d, #ff2d95); color: #fff; box-shadow: 0 6px 24px rgba(255, 90, 90, .35); } /* (v1.0.28: orange → pink – Malthes valg C) */
#screen-home .center-stack > .home-free { border: 1.5px solid transparent; }
#screen-home .center-stack > .home-free .hf-t small { opacity: .75; }
@media (max-height: 700px) { /* (iPhone SE og andre lave skærme: lidt mindre) */
  #screen-home .center-stack { gap: 10px; }
  #screen-home #helloAv .av { width: 84px; height: 84px; margin-bottom: 8px; }
  #screen-home .hello { font-size: 28px; }
  #screen-home .home-join { padding: 12px 12px 10px; gap: 9px; }
  #screen-home .home-join .hj-t { font-size: 20px; }
  #screen-home .home-code input { width: 58px; height: 58px; font-size: 26px; }
  #screen-home #homeJoinGo { height: 50px; }
  #screen-home #btnCreate { height: 56px; font-size: 20px; }
  #screen-home .home-row .btn { height: 48px; font-size: 15px; }
}
#screen-home .center-stack > .home-free { padding: 0 6px 0 9px; gap: 8px; }
#screen-home .center-stack > .home-free .hf-t b { font-size: clamp(10.5px, 3.08vw, 13px); }
@media (max-height: 600px) { /* (de allermindste telefoner: ingen scroll) */
  #screen-home .center-stack { gap: 8px; padding-top: 56px; }
  #screen-home #helloAv .av { width: 64px; height: 64px; margin-bottom: 4px; }
  #screen-home .hello { font-size: 24px; }
  #screen-home .home-code input { height: 50px; }
  #screen-home #homeJoinGo { height: 46px; }
  #screen-home #btnCreate { height: 52px; }
  #screen-home .home-row .btn { height: 46px; }
}
#screen-home .home-row[hidden] { display: none; }

/* 🌐 v1.0.13: hjemmesidens forside (Web B) – dig og koden samlet i midten, app-kortet i bunden */
#screen-home.web-only .center-stack { padding-top: 12px; }
#screen-home.web-only .home-me { flex: none; margin-top: auto; }
#screen-home.web-only .home-join { margin-top: 10px; }
#screen-home.web-only .home-join .hj-t { font-size: 18px; font-weight: 800; color: var(--muted, #9d98bb); }
#screen-home.web-only #btnCreate { display: none; }
.home-appcard { display: none; }
#screen-home.web-only .home-appcard:not([hidden]) { display: flex; align-items: center; gap: 12px; margin-top: auto; width: 100%; box-sizing: border-box; background: #12121f; border: 1px solid #23233a; border-radius: 20px; padding: 12px 14px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.home-appcard img { width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: cover; }
.home-appcard b { display: block; font-size: 15px; font-weight: 900; }
.home-appcard small { display: block; color: var(--muted, #9d98bb); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.home-appcard .hac-go { margin-left: auto; background: #fff; color: #1a1030; border-radius: 999px; padding: 8px 16px; font-weight: 900; font-size: 13px; flex: none; }
.home-appcard:active { transform: scale(.98); }

/* 👯 v1.0.14: crew-siden (fra profilen) */
button.pf-crew { width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.pf-crew:active { transform: scale(.98); }
.pf-crew .pf-rk { flex: 1; min-width: 0; }
.pf-crew .pf-rk small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-crew .pf-chev { color: var(--muted); font-size: 22px; font-weight: 700; margin-left: 2px; }
.cw-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 16px 16px; margin-top: 8px; color: #fff; text-align: center; background: linear-gradient(150deg, #6a3df0, #c3129f 60%, #ff2d95); box-shadow: 0 14px 40px -12px rgba(195, 18, 159, .55); }
.cw-hero h1 { margin: 8px 0 8px; font-size: 30px; font-weight: 900; line-height: 1.05; letter-spacing: -.4px; overflow-wrap: anywhere; }
.cw-emo { font-size: 64px; line-height: 1.1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.cw-last { margin-top: 12px; font-size: 12.5px; font-weight: 700; opacity: .85; }
.cw-undo { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(25, 227, 255, .08); border: 1px solid rgba(25, 227, 255, .35); font-size: 13.5px; }
.cw-undo span { flex: 1; min-width: 0; }
.cw-undo .btn { flex: none; width: auto; }
.cw-cap { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 6px; }
.cw-mem, .cw-night, .cw-other { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.cw-mem.me { border-color: rgba(255, 45, 149, .5); }
.cw-mem .pf-rk, .cw-night .pf-rk, .cw-other .pf-rk { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-mem .pf-rk small, .cw-night .pf-rk small, .cw-other .pf-rk small { color: var(--muted); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-mem em { font-style: normal; font-size: 11px; font-weight: 900; color: var(--pink, #ff2d95); background: rgba(255, 45, 149, .14); border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: 2px; }
.cw-ini { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; color: #fff; background: linear-gradient(135deg, #ff9a3c, #ff2d95); }
.cw-top { flex: none; font-size: 13px; font-weight: 800; color: var(--yellow, #ffd23f); }
.cw-other .btn { flex: none; width: auto; white-space: nowrap; }
.cw-other i { font-style: normal; color: var(--cyan, #19e3ff); }
.cw-help { color: var(--muted); font-size: 13px; line-height: 1.4; margin: -4px 2px 10px; }
.cw-load { text-align: center; color: var(--muted); padding: 60px 0; font-weight: 800; }
.cw-ed-emo { font-size: 56px; text-align: center; line-height: 1.1; margin: 4px 0 10px; }
.cw-emos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 10px; }
.cw-emos button { border: 0; background: rgba(255,255,255,.06); border-radius: 10px; font-size: 22px; padding: 6px 0; cursor: pointer; }
.cw-emos button.on { background: rgba(255, 45, 149, .3); box-shadow: inset 0 0 0 2px var(--pink, #ff2d95); }
.cw-emo-in { font-size: 16px !important; padding: 12px !important; margin-bottom: 8px; }

/* 📱 v1.0.15: ny "Hent appen"-pop-up */
.getapp2 { text-align: center; }
.ga-ic { width: 84px; height: 84px; border-radius: 20px; display: block; margin: 2px auto 12px; box-shadow: 0 10px 30px -6px rgba(255, 45, 149, .55), 0 0 0 1px rgba(255,255,255,.12); }
.getapp2 h3 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.ga-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 700; }
.ga-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ga-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 12px; }
.ga-list li > span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(139, 92, 255, .22); }
.ga-list b { display: block; font-size: 15px; font-weight: 900; }
.ga-list small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.ga-store { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.85); background: #000; color: #fff; font: inherit; cursor: pointer; text-align: left; box-shadow: 0 8px 26px -8px rgba(255, 255, 255, .25); }
.ga-store:active { transform: scale(.98); }
.ga-store .ga-logo { font-size: 30px; line-height: 1; margin-top: -3px; }
.ga-store small { display: block; font-size: 11.5px; font-weight: 600; opacity: .9; }
.ga-store b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.05; }
.ga-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 10px 4px 0; }
.ga-qr { width: 190px; height: 190px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 10px 30px -8px rgba(25, 227, 255, .45); }
.ga-qr svg { width: 100%; height: 100%; display: block; }
.ga-store .ga-logo svg { display: block; } /* (Apple-logoet i getAppPopup: Font Awesome Free, CC BY 4.0 – fontawesome.com) */
/* 👤 v1.0.16: samme person i crewet */
.cw-same { display: block; margin: 10px auto 0; width: auto; }
.cw-lab { display: block; text-align: left; font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 10px 2px 4px; }
.cw-sel { font-size: 16px !important; padding: 12px !important; text-align: left; appearance: auto; }
.cw-small { font-size: 12.5px; margin-top: 10px; }

/* 📏 v1.0.17: forsiden skalerer med skærmhøjden (som skitsen ved 812 px) – høje telefoner får ikke et tomt felt i midten */
#screen-home .center-stack { gap: clamp(8px, 1.7vh, 18px); }
#screen-home #helloAv .av { width: clamp(64px, 15.5vh, 170px); height: clamp(64px, 15.5vh, 170px); margin-bottom: clamp(4px, 1.4vh, 16px); }
#screen-home .hello { font-size: clamp(24px, 4.4vh, 46px); }
#screen-home .home-streak { font-size: clamp(13px, 2vh, 19px); }
#screen-home .home-join { padding: clamp(10px, 2vh, 22px) 16px clamp(10px, 1.7vh, 18px); gap: clamp(8px, 1.5vh, 16px); }
#screen-home .home-join .hj-t { font-size: clamp(19px, 3vh, 30px); }
#screen-home .home-code input { width: clamp(56px, 18vw, 78px); height: clamp(48px, 8.9vh, 92px); font-size: clamp(24px, 4vh, 38px); }
#screen-home #homeJoinGo { height: clamp(44px, 7.1vh, 72px); font-size: clamp(17px, 2.5vh, 23px); }
#screen-home #btnCreate { height: clamp(50px, 8.1vh, 82px); font-size: clamp(19px, 2.9vh, 27px); }
#screen-home .home-row .btn { height: clamp(44px, 6.9vh, 70px); font-size: clamp(14px, 2vh, 18px); }
.prof-restore { display: block; margin: 14px auto 4px; width: auto; }
/* 💎 v1.1.0: værtens gemte opsætning */
.hp-reset p { margin: 0 0 10px; text-align: left; }
.hp-reset .btn { width: 100%; }
