/* =====================================================================
   Packs & Pinten — gedeelde stijl
   ===================================================================== */
:root {
  --bg: #15100d;
  --bg2: #221913;
  --panel: #2b2019;
  --panel2: #362820;
  --line: #4d3a2c;
  --text: #f3e9dc;
  --muted: #b8a58f;
  --gold: #f0c75e;
  --gold2: #c9962b;
  --red: #e5533d;
  --green: #4cc38a;
  --blue: #4ea1ff;
  --c-common: #d9d9d9;
  --c-rare: #3d8bff;
  --c-epic: #b042ff;
  --c-legendary: #ff9a1a;
  --radius: 14px;
  --head: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head-color: inherit;
  --body-bg:
    radial-gradient(1200px 600px at 50% -200px, rgba(240, 199, 94, .12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 90px),
    var(--bg);
  --panel-bg: linear-gradient(180deg, var(--panel), var(--bg2));
  --panel-border: 1px solid var(--line);
  --panel-shadow: none;
  --input-bg: #1a130f;
  --bar-bg: rgba(21,16,13,.95);
  --btn-bg: linear-gradient(180deg, #f5d27a, #c9962b);
  --btn-text: #2a1c08;
  --btn-shadow: 0 2px 0 #7a5a17, inset 0 1px 0 rgba(255,255,255,.5);
  --btn-radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
body { background: var(--body-bg); background-attachment: fixed; min-height: 100vh; }
h1, h2, h3, .title { font-family: var(--head); letter-spacing: .02em; color: var(--head-color); }
a { color: var(--gold); }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: var(--btn-radius); padding: .6em 1em;
  background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-shadow);
  transition: transform .08s, filter .15s;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); box-shadow: 0 1px 0 #7a5a17; }
button:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
button.danger { background: linear-gradient(180deg, #f07a63, #c0392b); color: #fff; box-shadow: 0 2px 0 #7b2318; }
button.green { background: linear-gradient(180deg, #6fe0a8, #2e9e68); color: #082315; box-shadow: 0 2px 0 #1b6141; }
button.small { padding: .35em .7em; font-size: .85em; border-radius: 8px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--btn-radius); padding: .6em .75em; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold2); outline-offset: 0; }
label { display: block; font-size: .85em; color: var(--muted); margin: .6em 0 .25em; }
.panel { background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); padding: 14px; box-shadow: var(--panel-shadow); }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: .3em; padding: .15em .55em; border-radius: 99px; background: var(--input-bg); border: 1px solid var(--line); font-size: .85em; white-space: nowrap; }
.pts { color: var(--gold); font-weight: 700; }
.hidden { display: none !important; }
.center { text-align: center; }
.err { color: #ff8b78; }

/* ---------------------------------------------------------------- avatar */
.avatar { display: inline-block; border-radius: 50%; vertical-align: middle; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }

/* ---------------------------------------------------------------- kaart */
.hs-card {
  --w: 200px; --tc: #555; --rc: var(--c-common);
  width: var(--w); height: calc(var(--w) * 1.42); font-size: calc(var(--w) / 20);
  position: relative; border-radius: 1em; flex-shrink: 0;
  /* kaartkleur = rarity, collectie = lint bovenaan + kleur van de prent */
  background: linear-gradient(170deg, color-mix(in srgb, var(--rc) 62%, #1a120c), color-mix(in srgb, var(--rc) 22%, #120c08) 80%);
  border: .38em solid var(--rc);
  box-shadow: 0 .4em 1.2em rgba(0,0,0,.55), inset 0 0 0 .14em rgba(0,0,0,.45), inset 0 0 0 .3em color-mix(in srgb, var(--rc) 55%, #fff);
  color: #fff; overflow: hidden; display: flex; flex-direction: column; user-select: none;
}
.hs-card.r-common { --rc: #9aa3ad; }
.hs-card.r-rare { --rc: var(--c-rare); }
.hs-card.r-epic { --rc: var(--c-epic); box-shadow: 0 0 1em color-mix(in srgb, var(--rc) 70%, transparent), 0 .4em 1.2em rgba(0,0,0,.55), inset 0 0 0 .14em rgba(0,0,0,.45), inset 0 0 0 .3em color-mix(in srgb, var(--rc) 55%, #fff); }
.hs-card.r-legendary { --rc: var(--c-legendary); box-shadow: 0 0 1.4em var(--rc), 0 .4em 1.2em rgba(0,0,0,.55), inset 0 0 0 .14em rgba(0,0,0,.45), inset 0 0 0 .3em #ffe6a8; }
.hs-gem {
  position: absolute; top: .35em; left: .35em; width: 2.3em; height: 2.3em; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #e0a127 55%, #8a5a0e); border: .14em solid #fff3c4;
  display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 1.15em; color: #fff; text-shadow: 0 .08em .15em #000;
}
.hs-coll {
  position: absolute; top: .35em; left: 2.75em; right: .35em; z-index: 4; height: 1.55em; line-height: 1.55em;
  padding: 0 .45em; border-radius: .45em; text-align: center; font-size: .78em; font-weight: 800; letter-spacing: .01em;
  background: var(--tc); color: #fff; text-shadow: 0 .08em .12em rgba(0,0,0,.7);
  border: .1em solid rgba(255,255,255,.55); box-shadow: 0 .1em .3em rgba(0,0,0,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-art {
  margin: 2.1em .9em 0; height: 45%; border-radius: 50% 50% 40% 40% / 55% 55% 35% 35%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tc) 70%, #fff), var(--tc) 60%, #000 140%);
  display: grid; place-items: center; box-shadow: inset 0 0 1em rgba(0,0,0,.6); border: .12em solid rgba(0,0,0,.45);
}
.hs-art { position: relative; }
.hs-art img { width: 100%; height: 100%; object-fit: cover; }
.hs-credit { position: absolute; left: 0; right: 0; bottom: .9em; font-size: .38em; line-height: 1.2; color: rgba(255,255,255,.85); text-shadow: 0 0 .3em #000, 0 0 .3em #000; text-align: center; padding: 0 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-art.photo { display: block; margin: 2.2em .45em 0; height: 55%; border-radius: .35em; background: #000; box-shadow: none; border: .12em solid rgba(0,0,0,.6); }
/* absoluut gepositioneerd: de foto past altijd volledig in het kader, ook als het kader op kleine kaarten krimpt */
.hs-art.photo img.fg { position: absolute; top: .15em; left: .15em; width: calc(100% - .3em); height: calc(100% - .3em); object-fit: contain; display: block; }
.hs-card:has(.hs-art.photo) .hs-banner { margin-top: .2em; }
.hs-card:has(.hs-art.photo) .hs-gem { width: 1.75em; height: 1.75em; font-size: .95em; top: .3em; left: .3em; }
.hs-card:has(.hs-art.photo) .hs-coll { left: 2.25em; }
.hs-card:has(.hs-art.photo) .hs-flavor { font-size: .88em; }
.hs-art .emoji { font-size: 4.6em; filter: drop-shadow(0 .1em .15em rgba(0,0,0,.5)); line-height: 1; }
.hs-banner {
  position: relative; margin: -.9em .3em 0; padding: .35em .6em; text-align: center; z-index: 2;
  background: linear-gradient(180deg, #6d5136, #3d2b1c); border: .1em solid #a5844f; border-radius: .4em;
  font-family: var(--head); font-weight: 700; font-size: 1.02em; line-height: 1.15; text-shadow: 0 .08em .12em #000;
  min-height: 2.1em; display: grid; place-items: center;
}
.hs-rarity {
  align-self: center; margin: -.3em auto 0; position: relative; z-index: 3; padding: .12em .8em; border-radius: 99em;
  background: var(--rc); color: #fff; font-size: .7em; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  text-shadow: 0 .08em .15em rgba(0,0,0,.7); border: .12em solid rgba(255,255,255,.75); box-shadow: 0 0 .6em var(--rc), 0 .1em .3em rgba(0,0,0,.6);
}
.hs-card.r-common .hs-rarity { color: #1d232a; text-shadow: none; }
.hs-body {
  flex: 1; margin: .15em .55em .3em; padding: .45em .55em; border-radius: .5em; text-align: center;
  background: linear-gradient(180deg, #efe3c8, #d7c5a0); color: #2a1c0e; display: flex; flex-direction: column; gap: .3em;
}
.hs-flavor { flex: 1; display: grid; place-items: center; font-size: .95em; line-height: 1.22; color: #3a2a18; font-weight: 600; }
.hs-effect { font-size: .62em; line-height: 1.2; color: #6b5536; border-top: .08em dashed rgba(90,70,40,.45); padding-top: .35em; }
.hs-effect .steal { display: block; color: #8a5a00; font-weight: 700; }
.hs-duel { display: flex; justify-content: center; gap: .35em; margin: -.05em .55em .4em; }
.hs-duel span { flex: 1; display: flex; align-items: center; justify-content: center; gap: .2em; padding: .12em 0; border-radius: .45em; background: rgba(0,0,0,.45); border: .08em solid rgba(255,255,255,.25); font-size: .82em; line-height: 1.2; }
.hs-duel span b { font-family: var(--head); font-weight: 900; font-size: 1.15em; color: #fff; text-shadow: 0 .08em .12em #000; }
.hs-duel span.ab { flex: 0 0 auto; padding: .12em .35em; }
.hs-card:has(.hs-duel) .hs-body { margin-bottom: .25em; }
.hs-theme { text-align: center; font-size: .72em; padding: 0 .4em .45em; color: #e6d3b4; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-card.golden { outline: .2em solid #ffd76a; outline-offset: -.1em; box-shadow: 0 0 1.4em rgba(255, 210, 90, .8), 0 .4em 1.2em rgba(0,0,0,.55); }
.hs-card.golden::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255,240,170,.85) 45%, rgba(255,255,255,.95) 50%, rgba(255,215,90,.8) 55%, transparent 70%);
  background-size: 300% 100%; animation: shimmer 2.6s linear infinite;
}
.hs-card.golden .hs-banner { background: linear-gradient(180deg, #e9bf4d, #8f6512); border-color: #fff0b0; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.hs-card.missing { box-shadow: 0 .4em 1.2em rgba(0,0,0,.55); background: linear-gradient(170deg, #3b3b3b, #1c1c1c); border-color: color-mix(in srgb, var(--rc) 55%, #333); }
.hs-card.missing .hs-art, .hs-card.missing .hs-banner, .hs-card.missing .hs-body, .hs-card.missing .hs-coll, .hs-card.missing .hs-gem { filter: grayscale(1) brightness(.6); }
.hs-card.missing .hs-rarity { opacity: .7; }
.hs-card.missing .hs-art .emoji { opacity: .35; }
.hs-card.missing .hs-flavor { font-style: italic; color: #777; }
.count-badge { position: absolute; bottom: -.4em; right: -.4em; background: var(--gold); color: #2a1c08; font-weight: 800; border-radius: 99px; padding: .1em .5em; font-size: .9em; z-index: 6; }

/* kaartrug */
.hs-back {
  --w: 200px; width: var(--w); height: calc(var(--w) * 1.42); font-size: calc(var(--w) / 20); border-radius: 1em; position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(240,199,94,.35), transparent 45%),
    repeating-conic-gradient(from 0deg at 50% 50%, #3b2416 0 10deg, #2a180e 10deg 20deg);
  border: .35em solid #b98a35; box-shadow: 0 .4em 1.2em rgba(0,0,0,.6), inset 0 0 0 .3em #4a2d18, inset 0 0 0 .45em #c99a3f;
  display: grid; place-items: center; transition: box-shadow .25s, transform .25s;
}
.hs-back .logo { width: 5.5em; height: 5.5em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe8a8, #c9962b 60%, #6b4a10); display: grid; place-items: center; font-size: 1.9em; box-shadow: 0 0 1em rgba(0,0,0,.6); border: .15em solid #fff2c6; }
.hs-back .logo span { font-size: 1.8em; }

/* ---------------------------------------------------------------- pack */
.pack {
  --w: 140px; --tc: #8e44ad; width: var(--w); height: calc(var(--w) * 1.38); font-size: calc(var(--w) / 12);
  border-radius: .8em; position: relative; overflow: hidden; flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc) 60%, #fff 25%), var(--tc) 45%, color-mix(in srgb, var(--tc) 35%, #000) 100%);
  border: .28em solid #d4af37; box-shadow: 0 .5em 1.2em rgba(0,0,0,.55), inset 0 0 0 .18em rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; text-align: center; color: #fff;
}
.pack::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.3em; background: repeating-linear-gradient(90deg, #d4af37 0 .5em, #a07f22 .5em 1em); opacity: .9; }
.pack::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.3em; background: repeating-linear-gradient(90deg, #d4af37 0 .5em, #a07f22 .5em 1em); opacity: .9; }
.pack .emoji { font-size: 3.6em; line-height: 1; filter: drop-shadow(0 .1em .2em rgba(0,0,0,.6)); }
.pack .name { font-family: var(--head); font-weight: 800; font-size: 1.05em; padding: 0 .5em; text-shadow: 0 .1em .2em #000; line-height: 1.1; }
.pack .sub { font-size: .7em; opacity: .85; }

/* ---------------------------------------------------------------- bandbreedte */
.bw { --v: 100; position: relative; }
.bw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bw-title { font-family: var(--head); font-weight: 800; }
.bw-label { font-weight: 700; }
.bw-pipe {
  position: relative; height: 46px; border-radius: 23px; overflow: hidden;
  background: linear-gradient(180deg, #0d0a08, #241a13); border: 3px solid #6b6b6b; box-shadow: inset 0 4px 10px rgba(0,0,0,.8), 0 2px 0 #999 inset;
}
.bw-fill { position: absolute; inset: 0 auto 0 0; background: hsl(calc(var(--v) * 1.2) 75% 45%); opacity: .4; transition: width 1s; box-shadow: 0 0 20px hsl(calc(var(--v) * 1.2) 75% 45%); }
.bw-stream { position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap; font-size: 22px; }
.bw-stream span { position: absolute; left: -40px; animation: packet linear infinite; }
@keyframes packet { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 80px)); } }
.bw-dead { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #ff8b78; letter-spacing: .05em; }
.bw-stats { display: flex; gap: 14px; align-items: baseline; margin-top: 8px; flex-wrap: wrap; }
.bw-pct { font-family: var(--head); font-size: 2em; font-weight: 900; color: var(--gold); line-height: 1; }
.bw-load { margin-top: 8px; font-size: .85em; color: var(--muted); }
.bw-load .bar { height: 6px; border-radius: 3px; background: #1a130f; overflow: hidden; margin-top: 4px; }
.bw-load .bar i { display: block; height: 100%; width: 30%; background: var(--gold); animation: loadbar linear infinite; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.bw.locked .bw-pipe { border-color: var(--red); }

/* ---------------------------------------------------------------- toasts */
#toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(94vw, 460px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: var(--panel-bg); border: 1px solid var(--gold2); box-shadow: 0 8px 24px rgba(0,0,0,.5); color: var(--text);
  animation: toastIn .35s cubic-bezier(.2,1.4,.4,1);
}
.toast .em { font-size: 1.8em; }
.toast .t { font-weight: 700; }
.toast .s { font-size: .85em; color: var(--muted); }
.toast.err { border-color: var(--red); }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }

/* ---------------------------------------------------------------- modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; }
@keyframes fade { from { opacity: 0; } }

/* =====================================================================
   SPELERSAPP
   ===================================================================== */
.app { max-width: 760px; margin: 0 auto; padding: 12px 12px 96px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bar-bg); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .name { font-family: var(--head); font-weight: 800; font-size: 1.1em; }
.topbar .stats { margin-left: auto; display: flex; gap: 6px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; background: var(--bar-bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; max-width: 130px; background: none; box-shadow: none; color: var(--muted); border-radius: 0; padding: 8px 2px 10px; font-size: .72em; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.tabs button .i { font-size: 1.7em; }
.tabs button.on { color: var(--gold); }
.tabs button.on::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.tabs .dot { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
.section-title { font-family: var(--head); font-size: 1.25em; margin: 22px 4px 10px; display: flex; align-items: center; gap: 8px; }
.section-title small { font-family: var(--body); font-size: .65em; color: var(--muted); font-weight: 400; }
.stack > * + * { margin-top: 10px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.list-item .main { flex: 1; min-width: 0; }
.list-item .t { font-weight: 700; }
.list-item .d { font-size: .85em; color: var(--muted); margin-top: 2px; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.cat-chips button { white-space: nowrap; }
.cat-chips button.on { outline: 2px solid var(--gold); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; justify-items: center; }
.grid-cards .slot { position: relative; cursor: pointer; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.store-item { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.store-item .em { font-size: 2em; }
.store-item .t { font-weight: 700; }
.store-item .d { font-size: .8em; color: var(--muted); flex: 1; }
.store-pack { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.banner { padding: 12px 14px; border-radius: 12px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.banner.hh { background: linear-gradient(90deg, #8a5a00, #c9962b); color: #fff; }
.banner.live { background: linear-gradient(90deg, #7b1d12, #c0392b); color: #fff; animation: pulse 1.4s infinite; }
.banner.flash { background: linear-gradient(90deg, #233a8a, #4e7bff); color: #fff; }
@keyframes pulse { 50% { filter: brightness(1.25); } }
.hero { display: flex; gap: 14px; align-items: center; }
.hero .big { font-family: var(--head); font-size: 2.2em; font-weight: 900; color: var(--gold); line-height: 1; }
.progress { height: 8px; background: #1a130f; border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.ach { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: .9em; }
.ach.off { opacity: .35; filter: grayscale(1); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.avatar-opt { padding: 8px 4px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line); text-align: center; cursor: pointer; font-size: .78em; }
.avatar-opt.on { border-color: var(--gold); }
.avatar-opt .pr { color: var(--gold); font-weight: 700; }
.avatar-opt.locked { opacity: .8; }
.swatch { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 4px; border: 2px solid rgba(255,255,255,.3); }
.slot-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.slot-tabs button.on { outline: 2px solid var(--gold); }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.lb-row .rank { width: 28px; text-align: center; font-family: var(--head); font-weight: 900; color: var(--muted); }
.lb-row.me { border-color: var(--gold2); }
.feed-item { font-size: .88em; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.feed-item .tm { color: var(--muted); font-size: .85em; margin-right: 6px; }
.feed-item.rev { text-decoration: line-through; opacity: .5; }
.login { max-width: 420px; margin: 8vh auto; padding: 16px; }
.logo-big { font-family: var(--head); font-size: 2.4em; font-weight: 900; text-align: center; color: var(--gold); text-shadow: 0 3px 0 #6b4a10, 0 6px 20px rgba(0,0,0,.6); line-height: 1.05; }

/* =====================================================================
   BEAMER
   ===================================================================== */
body.beamer { overflow: hidden; height: 100vh; }
.bm-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; z-index: 5; }
.bm-logo { font-family: var(--head); font-weight: 900; font-size: 42px; color: var(--gold); text-shadow: 0 3px 0 #6b4a10, 0 6px 24px rgba(0,0,0,.7); }
.bm-idle { position: absolute; inset: 90px 32px 70px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.bm-idle .panel { padding: 22px; }
.bm-idle h2 { margin: 0 0 14px; font-size: 30px; }
.bm-bw .bw { font-size: 22px; }
.bm-bw .bw-pipe { height: 90px; border-radius: 45px; }
.bm-bw .bw-stream { font-size: 44px; }
.bm-bw .bw-pct { font-size: 3.4em; }
.bm-lb { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.bm-lb .lb-row { font-size: 22px; padding: 8px 14px; cursor: default; }
.bm-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--bar-bg); border-top: 2px solid var(--gold2); overflow: hidden; display: flex; align-items: center; z-index: 6; }
.bm-ticker .track { display: flex; gap: 60px; white-space: nowrap; font-size: 22px; animation: ticker 60s linear infinite; padding-left: 100%; }
@keyframes ticker { to { transform: translateX(-100%); } }
.bm-stage { position: absolute; inset: 0; display: none; }
.bm-stage.on { display: block; }
.bm-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(80,50,25,.35), rgba(0,0,0,.85) 75%); }
.bm-owner { position: absolute; top: 90px; left: 0; right: 0; text-align: center; font-family: var(--head); font-size: 34px; z-index: 4; }
.bm-owner b { color: var(--gold); }
.bm-pack-wrap { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 4; cursor: pointer; text-align: center; }
.bm-pack-wrap .pack { --w: 300px; animation: bob 2.4s ease-in-out infinite; }
.bm-pack-wrap .hint { margin-top: 26px; font-size: 26px; color: var(--muted); animation: pulse 1.4s infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1deg); } }
.bm-pack-wrap.rip .pack { animation: rip .7s forwards; }
@keyframes rip { 30% { transform: scale(1.1) rotate(4deg); } 60% { transform: scale(1.15) rotate(-6deg); filter: brightness(2); } 100% { transform: scale(2.2); opacity: 0; filter: brightness(4); } }
.bm-slots { position: absolute; inset: 0; z-index: 4; }
.bm-slot { position: absolute; width: 230px; height: 327px; transform-style: preserve-3d; transition: left .6s cubic-bezier(.3,1.3,.5,1), top .6s cubic-bezier(.3,1.3,.5,1), transform .6s; perspective: 1200px; }
.bm-slot .flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.4,.4,1); }
.bm-slot.flipped .flipper { transform: rotateY(180deg); }
.bm-slot .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bm-slot .face.front { transform: rotateY(180deg); }
.bm-slot .hs-back, .bm-slot .hs-card { --w: 230px; }
.bm-slot.can-pick { cursor: pointer; }
.bm-slot.can-pick:hover { transform: translateY(-18px) scale(1.04); }
.bm-slot.can-pick:hover .hs-back { box-shadow: 0 0 40px 14px var(--glow), 0 0 90px 24px var(--glow), inset 0 0 0 .3em #4a2d18, inset 0 0 0 .45em #c99a3f; }
.bm-slot[data-r="common"] { --glow: rgba(255,255,255,.35); }
.bm-slot[data-r="rare"] { --glow: rgba(61,139,255,.95); }
.bm-slot[data-r="epic"] { --glow: rgba(176,66,255,.95); }
.bm-slot[data-r="legendary"] { --glow: rgba(255,154,26,1); }
.bm-slot.featured { z-index: 10; }
.bm-slot.featured .hs-card { box-shadow: 0 0 60px 10px var(--glow); }
.bm-slot.dim { filter: brightness(.45); }
.bm-stage.featuring .bm-slot.dim { opacity: 0; pointer-events: none; transition: left .6s, top .6s, transform .6s, opacity .3s; }
.bm-stage.featuring .bm-panel { transform: none; width: auto; top: 50%; bottom: auto; translate: 0 -50%; }
.bm-stage.featuring .bm-panel .q { font-size: 40px; line-height: 1.25; }
.bm-stage.featuring .bm-result { font-size: 58px; }
.bm-roll { min-height: 80px; }
.bm-burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; z-index: 3; pointer-events: none; }
.bm-burst::before { content: ''; position: absolute; left: -700px; top: -700px; width: 1400px; height: 1400px; border-radius: 50%; background: repeating-conic-gradient(var(--glow) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(circle, #000 0, transparent 65%); -webkit-mask: radial-gradient(circle, #000 0, transparent 65%); animation: spin 8s linear infinite, burstIn .6s ease-out; opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes burstIn { from { transform: scale(.1); opacity: 0; } }
.shake { animation: shake .6s; }
@keyframes shake { 10%, 90% { transform: translate(-3px, 2px); } 20%, 80% { transform: translate(6px, -4px); } 30%, 50%, 70% { transform: translate(-10px, 6px); } 40%, 60% { transform: translate(10px, -6px); } }
.bm-stage.featuring .bm-owner { opacity: 0; transition: opacity .3s; }
.bm-idle > * { min-height: 0; overflow: hidden; }
.bm-panel { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 20; width: min(1500px, 94vw); text-align: center; }
.bm-panel .q { font-family: var(--head); font-size: 34px; margin-bottom: 14px; text-shadow: 0 2px 10px #000; }
.bm-panel .q b { color: var(--gold); }
.bm-players { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bm-player { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; width: 108px; border-radius: 14px; background: var(--panel-bg); color: var(--text); border: 2px solid var(--line); cursor: pointer; font-weight: 700; font-size: 16px; transition: transform .1s; }
.bm-player:hover { transform: translateY(-4px); border-color: var(--gold); }
.bm-player.disabled { opacity: .3; pointer-events: none; }
.bm-player .tag { font-size: 12px; color: var(--muted); font-weight: 400; }
.bm-result { font-family: var(--head); font-size: 64px; font-weight: 900; text-shadow: 0 4px 20px #000; animation: toastIn .5s cubic-bezier(.2,1.5,.4,1); }
.bm-result .sub { font-size: 32px; color: var(--gold); margin-top: 8px; }
.bm-btn { font-size: 24px; padding: 14px 30px; margin-top: 18px; }
.bm-controls { position: absolute; right: 18px; bottom: 76px; z-index: 30; display: flex; gap: 8px; opacity: .25; transition: opacity .2s; }
.bm-controls:hover { opacity: 1; }
.bm-big-toast { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0,0,0,.6); animation: fade .3s; pointer-events: none; }
.bm-big-toast .box { max-width: 80vw; text-align: center; padding: 40px 60px; border-radius: 30px; background: var(--panel-bg); color: var(--text); border: 3px solid var(--gold); box-shadow: 0 0 80px rgba(240,199,94,.4); animation: toastIn .5s cubic-bezier(.2,1.5,.4,1); }
.bm-big-toast .em { font-size: 110px; line-height: 1; }
.bm-big-toast .t { font-family: var(--head); font-size: 54px; font-weight: 900; margin-top: 12px; }
.bm-big-toast .s { font-size: 30px; color: var(--muted); margin-top: 10px; }
.beamer #toasts { top: auto; bottom: 76px; left: 24px; transform: none; width: 520px; font-size: 20px; }
.bm-summary { position: absolute; inset: 110px 30px 130px; display: flex; gap: 22px; justify-content: center; align-items: center; z-index: 4; flex-wrap: wrap; }
.bm-summary .hs-card { --w: 230px; animation: toastIn .5s backwards; }
.bm-flash { margin-top: 18px; font-size: 22px; }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin nav { background: var(--bg2); border-right: 1px solid var(--line); padding: 16px 10px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin nav .logo { font-family: var(--head); font-weight: 900; color: var(--gold); font-size: 1.3em; padding: 0 8px 14px; }
.admin nav button { display: flex; width: 100%; gap: 8px; align-items: center; background: none; box-shadow: none; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 10px; font-weight: 500; }
.admin nav button.on { background: var(--panel2); color: var(--gold); }
.admin nav .badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .8em; }
.admin main { padding: 20px 26px 60px; min-width: 0; }
.admin h1 { margin: 0 0 16px; }
.admin h3 { margin: 0 0 10px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .85em; position: sticky; top: 0; background: var(--bg); }
td input { padding: .35em .5em; }
tr.rev td { opacity: .45; text-decoration: line-through; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.chip-r { display: inline-block; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); margin-right: 6px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mini-cards .wrapc { display: flex; flex-direction: column; align-items: center; gap: 6px; }

@media (max-width: 800px) {
  .admin { grid-template-columns: 1fr; }
  .admin nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin nav button { width: auto; }
}

/* drankmeter */
.drink-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.drink-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; font-size: .8em; line-height: 1.2; }
.drink-btn .e { font-size: 2em; }
.drink-btn b { font-size: 1.3em; }
.drink-btn small { opacity: .8; font-weight: 600; }
@media (max-width: 380px) { .drink-grid { grid-template-columns: repeat(2, 1fr); } }

/* QR-codes voor de frigo */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 14px; }
.qr-card { background: #fff; color: #111; border-radius: 14px; padding: 14px; text-align: center; border: 3px dashed #999; }
.qr-card svg { width: 100%; height: auto; max-width: 220px; }
.qr-title { font-family: var(--head); font-size: 1.6em; font-weight: 900; color: #111; }
.qr-sub { font-weight: 700; margin-top: 4px; }
.qr-url { font-size: .7em; color: #555; word-break: break-all; margin-top: 4px; }
@media print {
  .admin nav, #toasts, .admin main > *:not(.qr-panel), .qr-panel > h3, .qr-panel > p, .qr-ctrl { display: none !important; }
  body, .admin, .admin main, .qr-panel { background: #fff !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; display: block !important; }
  .qr-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-card { break-inside: avoid; }
}

/* tabs onderaan: 5 vaste + 'Meer' */
.tabs button { font-size: .64em; min-width: 0; padding-left: 0; padding-right: 0; }
.tabs .dots { display: inline-block; font-size: .62em; letter-spacing: .05em; line-height: 1.85; }
.tabs button .i { font-size: 1.8em; line-height: 1.15; }
.tabs button .l { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.more-back { position: fixed; inset: 0; z-index: 28; background: rgba(0,0,0,.5); display: none; }
.more-sheet { position: fixed; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 29; display: none;
  grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; max-width: 520px; margin: 0 auto;
  background: var(--bar-bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -6px 24px rgba(0,0,0,.5); }
.more-back.open { display: block; }
.more-sheet.open { display: grid; animation: moreUp .15s ease-out; }
@keyframes moreUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.more-sheet button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; font-size: .85em; color: var(--muted); background: rgba(255,255,255,.05); box-shadow: none; border-radius: 12px; }
.more-sheet button .i { font-size: 1.9em; }
.more-sheet button.on { color: var(--gold); background: rgba(255,200,60,.12); }
.more-sheet .dot { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }

/* groepsspel-aankondiging: smalle balk onder de bovenbalk, blokkeert niets */
.top-bars { position: sticky; top: 59px; z-index: 19; }
.top-bars:empty { display: none; }
.ev-bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0;
  background: linear-gradient(90deg, #233a8a, #4e7bff); color: #fff; border-bottom: 2px solid rgba(0,0,0,.4); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.ev-bar .ev-main { flex: 1; min-width: 0; cursor: pointer; }
.ev-bar .ev-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bar .ev-title .pill { font-size: .7em; color: var(--text); }
.ev-bar .ev-sub { font-size: .8em; opacity: .95; }
.ev-bar .ev-min { padding: .35em .5em; color: #fff; border-color: rgba(255,255,255,.4); }
.ev-chip { position: fixed; right: 10px; bottom: 76px; z-index: 31; border-radius: 99px; padding: 8px 14px; font-size: .95em;
  background: linear-gradient(90deg, #233a8a, #4e7bff); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.6); }

.bm-event { background: linear-gradient(90deg, #233a8a, #4e7bff) !important; color: #fff; border-color: #fff !important; animation: pulse 2s infinite; }
.bm-cd { font-family: var(--head); font-size: 60px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,.5); }

/* butler */
.bt-bar { background: linear-gradient(90deg, #3a2a10, #8a6420); }
.bt-bar.bt-alert { background: linear-gradient(90deg, #8a1f1f, #e0503a); animation: btpulse 1.2s infinite; }
@keyframes btpulse { 50% { filter: brightness(1.25); } }
.drink-btn.on { outline: 3px solid var(--gold); outline-offset: 1px; }

/* ruilen */
.tr-card { display: inline-block; border: 2px solid var(--muted); border-radius: 8px; padding: 1px 7px; margin: 2px 2px; font-size: .85em; background: rgba(0,0,0,.25); }
.tr-offer { border-top: 1px solid rgba(255,255,255,.12); padding: 8px 0; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tr-cols { grid-template-columns: 1fr; } }
.tr-list { max-height: 34vh; overflow: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 4px; }
.tr-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-left: 4px solid; margin: 3px 0; cursor: pointer; font-size: .9em; }
.tr-row span { flex: 1; min-width: 0; }
.tr-row small { opacity: .7; white-space: nowrap; }
.tr-row input { width: auto; margin: 0; }
.avatar-opt.on { outline: 3px solid var(--gold); border-radius: 10px; }
.gala-bar { background: linear-gradient(90deg, #6b4a00, #d9a400); }

/* beamer: fiscus, toeter, gala */
.bm-big-toast.fiscus .box { background: linear-gradient(160deg, #5a0000, #c21b1b) !important; border-color: #fff !important; animation: fshake .5s 3; }
.bm-big-toast.fiscus .t { font-size: 1.3em; color: #fff !important; text-shadow: 0 3px 0 #000; }
.bm-big-toast.fiscus .s { color: #ffe0e0 !important; }
@keyframes fshake { 25% { transform: translateX(-12px) rotate(-1deg); } 75% { transform: translateX(12px) rotate(1deg); } }
.bm-toeter { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 90; text-align: center; pointer-events: none; animation: toet 3.2s ease-out forwards; }
.bm-toeter .em { font-size: 220px; line-height: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.bm-toeter .who { display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 3px 10px #000; }
@keyframes toet { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-20deg); opacity: 0; } 12% { transform: translate(-50%, -50%) scale(1.15) rotate(6deg); opacity: 1; } 22% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1.05); opacity: 0; } }
#gala { position: fixed; inset: 0; z-index: 80; background: radial-gradient(ellipse at center, #3a2a00 0%, #120c00 70%); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#gala::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,215,90,.07) 0 10deg, transparent 10deg 20deg); animation: spin 40s linear infinite; }
.gala-in { position: relative; text-align: center; width: 100%; }
.gala-em { font-size: 160px; line-height: 1; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.gala-em.sm { font-size: 100px; }
.gala-title { font-family: var(--head); font-size: 84px; margin: 10px 0 0; color: #ffd76a; text-shadow: 0 4px 0 #000, 0 0 40px rgba(255,200,60,.6); }
.gala-sub { font-size: 30px; opacity: .85; margin: 6px 0 30px; }
.gala-podium { display: flex; justify-content: center; align-items: flex-end; gap: 30px; }
.gala-slot { width: 300px; opacity: 0; transform: translateY(60px) scale(.8); transition: all .6s cubic-bezier(.2,1.4,.4,1); }
.gala-slot.on { opacity: 1; transform: none; }
.gala-name { font-size: 34px; font-weight: 900; margin-top: 8px; }
.gala-val { font-size: 22px; opacity: .85; margin-bottom: 8px; }
.gala-block { background: linear-gradient(#ffd76a, #b07a00); color: #3a2500; font-family: var(--head); font-size: 60px; font-weight: 900; border-radius: 10px 10px 0 0; box-shadow: 0 0 30px rgba(255,200,60,.4); }
.gala-slot.p0 .gala-block { height: 200px; } .gala-slot.p1 .gala-block { height: 140px; background: linear-gradient(#eee, #999); } .gala-slot.p2 .gala-block { height: 100px; background: linear-gradient(#e8a060, #8a4a10); }
.gala-slot.p0 .gala-name { font-size: 46px; color: #ffd76a; }
.gala-ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; align-items: center; opacity: .35; }
.gala-ctrl:hover { opacity: 1; }
.gala-conf { position: fixed; top: -60px; z-index: 85; pointer-events: none; animation: fall 3.5s linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(720deg); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.topbar .stats { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.topbar .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dj-bar { background: linear-gradient(90deg, #0b3d1f, #1db954); }
.bm-music { display: flex; align-items: center; gap: 16px; padding: 14px 18px !important; }
.bm-music img { width: 72px; height: 72px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.bm-music .t { font-size: 26px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-music .a { font-size: 18px; opacity: .8; }
.bm-eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; margin-right: 6px; vertical-align: middle; }
.bm-eq i { width: 4px; background: #1db954; animation: eq .8s ease-in-out infinite alternate; }
.bm-eq i:nth-child(2) { animation-delay: .2s; } .bm-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { from { height: 4px; } to { height: 18px; } }

/* ---------------------------------------------------------------- Pintenduel */
.duel-bar { background: linear-gradient(90deg, rgba(229,83,61,.35), rgba(240,199,94,.18)); cursor: pointer; }
.du-hero { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.du-live { cursor: pointer; }
.du-inc { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.du-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--panel-bg); border: var(--panel-border); }
.du-p { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.du-p small { color: var(--muted); font-size: .75em; }
.du-p.champ .du-pn { color: var(--gold); }
.du-pn { font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-score { text-align: center; }
.du-sc { font-size: 2.2em; font-weight: 900; line-height: 1; letter-spacing: 1px; }
.du-sc span { opacity: .5; margin: 0 4px; }
.du-cd { font-size: .9em; margin-top: 4px; }
.du-round { margin-top: 10px; text-align: center; }
.du-cat { font-size: 1.05em; margin-bottom: 6px; }
.du-cat b { color: var(--gold); font-size: 1.15em; }
.du-ev { padding: 8px 10px; border-radius: 10px; margin: 6px 0; font-weight: 700; }
.du-ev.pre { background: rgba(240,199,94,.16); border: 1px dashed var(--gold); }
.du-ev.post { background: rgba(229,83,61,.18); border: 1px dashed var(--red); }
.du-round.fresh .du-ev.post { animation: du-pop .5s .7s both; }
.du-note { font-size: .88em; color: var(--muted); margin: 4px 0; }
.du-res { font-size: 1.1em; margin: 8px 0 4px; }
.du-round.fresh .du-res { animation: du-pop .5s 1s both; }
.du-table { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 8px; margin: 8px 0; }
.du-vs { font-weight: 900; font-size: 1.3em; color: var(--red); text-shadow: 0 2px 0 #000; }
.du-hand { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.du-hand .dcard { cursor: pointer; }
.du-hand .dcard.used { cursor: default; }
.du-hist { padding: 6px 10px; }
.du-hrow { display: grid; grid-template-columns: 54px 1fr 1fr auto; gap: 6px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: .88em; }
.du-hrow span:nth-child(2) { text-align: right; } .du-hrow .w { color: var(--gold); font-weight: 800; }
.du-end h2 { color: var(--gold); }
.du-cardinfo { margin: 8px 0; text-align: center; }
.dcard { --rc: #888; position: relative; width: 116px; min-height: 150px; padding: 6px; border-radius: 10px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--rc); box-shadow: 0 3px 10px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 4px; text-align: center; color: var(--text); user-select: none; transition: transform .15s, box-shadow .15s, opacity .15s; }
.dcard.small { width: 92px; min-height: 124px; padding: 5px; font-size: .9em; }
.dcard.golden { background: linear-gradient(160deg, #6b4c12, #3a2a10 55%, #7d5a17); border-color: #ffd447; }
.dcard.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0,0,0,.5); }
.dcard.used { opacity: .3; filter: grayscale(1); }
.dcard.win { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(240,199,94,.7); }
.dcard.lose { opacity: .65; }
.dc-top { display: flex; justify-content: center; gap: 3px; font-size: .9em; min-height: 1.2em; }
.dc-e { font-size: 1.9em; line-height: 1; }
.dcard.small .dc-e { font-size: 1.6em; }
.dc-n { font-weight: 800; font-size: .78em; line-height: 1.15; height: 2.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dc-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: auto; }
.dc-st span { background: rgba(0,0,0,.28); border-radius: 6px; padding: 2px 0; font-size: .8em; display: flex; flex-direction: column; }
.dc-st span b { font-size: 1.25em; }
.dc-st span.hi { background: var(--gold); color: #1a1208; }
.dc-val { position: absolute; top: -12px; right: -10px; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: 1.25em; display: grid; place-items: center; border: 2px solid #000; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.dcard.win .dc-val { background: var(--gold); color: #1a1208; }
.dcard.back { align-items: center; justify-content: center; font-size: 2.4em; background: repeating-linear-gradient(45deg, var(--panel2) 0 8px, var(--panel) 8px 16px); border-color: var(--line); color: var(--muted); }
.dcard.back small { font-size: .32em; }
.dcard.back.ready { border-color: var(--gold); color: var(--gold); animation: du-wobble 1.2s infinite; }
.du-round.fresh .du-table .dcard { animation: du-flip .6s both; }
.du-round.fresh .du-table > div:last-child .dcard { animation-delay: .15s; }
@keyframes du-flip { from { transform: rotateY(90deg) scale(.8); } to { transform: none; } }
@keyframes du-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes du-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@media (max-width: 420px) {
  .dcard.small { width: calc((100vw - 64px) / 5); min-height: 112px; padding: 3px; font-size: .78em; }
  .du-pick .dcard.small { width: calc((100vw - 56px) / 3); font-size: .85em; }
  .dc-st span { font-size: .72em; }
}

/* tab Games */
.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; margin-top: 10px; }
.game-card .gimg { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; display: block; background: #000; }
.game-card .gemoji { font-size: 2.2em; padding: 12px 14px 0; }
.game-card .gbody { padding: 10px 14px 14px; }
.game-card .gpitch { font-size: .88em; margin-top: 4px; line-height: 1.35; }
a.btn { display: inline-flex; align-items: center; gap: .3em; text-decoration: none; }
a.btn.small { padding: .35em .7em; font-size: .85em; border-radius: 8px; }
a.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
a.btn.disabled { pointer-events: none; filter: grayscale(.8) brightness(.7); }
.lan-file { gap: 8px; font-size: .82em; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.gbadge { display: inline-block; font-size: .78em; font-weight: 800; padding: .15em .55em; border-radius: 99px; }
.gbadge.paid { background: rgba(255,170,40,.18); color: #ffc15e; border: 1px solid rgba(255,170,40,.5); }
.gbadge.free { background: rgba(80,220,140,.16); color: #6fe0a8; border: 1px solid rgba(80,220,140,.45); }
.banner.paid-note { background: rgba(255,170,40,.14); border: 1px solid rgba(255,170,40,.45); color: #ffd28a; font-weight: 600; }
.banner.free-note { background: rgba(80,220,140,.12); border: 1px solid rgba(80,220,140,.4); color: #a8f0c8; font-weight: 600; }
.glist { padding: 4px 10px; margin-top: 10px; }
.glist-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; font-size: .9em; }
.glist-row:last-child { border-bottom: 0; }
.glist-row img { width: 92px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #000; }
.glist-row .gl-emo { width: 92px; text-align: center; font-size: 1.5em; flex-shrink: 0; }
.plats { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.plat { font-size: .72em; font-weight: 800; padding: .1em .45em; border-radius: 5px; line-height: 1.4; color: #fff; }
.plat.p-pc { background: #4b5563; }
.plat.p-mac { background: #e5e7eb; color: #111; }
.plat.p-ps { background: #0070d1; }
.plat.p-switch { background: #e60012; }
.glist-row .plats { margin-top: 3px; }
.gfilter { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.gfilter select { flex: 1; min-width: 0; padding: .45em .4em; font-size: .85em; }
.game-card { cursor: pointer; }
.game-card .gemoji .gemo-big { font-size: 1em; }
.glist-row { cursor: pointer; }
.glist-row .gl-img { width: 92px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #000; }
.glist-row .gl-img.gemo { display: grid; place-items: center; font-size: 1.5em; background: rgba(0,0,0,.25); }
.gbadge.sm { font-size: .68em; padding: .05em .45em; }
.gd-img { width: 100%; border-radius: 10px; display: block; }
.gd-emoji { font-size: 3.4em; text-align: center; }
.gd-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .92em; }
.gd-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: start; }
.gd-row .pill { font-size: .8em; margin: 0 2px 3px 0; }
.g-cats button { white-space: nowrap; flex-shrink: 0; }
.gact { display: inline-block; font-size: .72em; font-weight: 900; letter-spacing: .02em; padding: .2em .55em; border-radius: 6px; text-transform: uppercase; }
.gact.sm { font-size: .62em; padding: .1em .45em; }
.gact.a-pre { background: #1f6f45; color: #fff; } .gact.a-own { background: #7a5410; color: #ffe2a8; } .gact.a-none { background: #24476e; color: #dbeaff; }
.gact.a-lan { background: #4a3a28; color: #f3e9da; } .gact.a-must { background: #ffc94a; color: #2a1c0e; }
.must-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; }
.must-opt { display: flex; gap: 6px; align-items: center; font-size: .88em; margin: 3px 0; color: var(--text); }
.must-opt input { width: auto; }

/* beamer: chat/nieuws vult de ruimte; nieuwste berichten blijven altijd in beeld */
.bm-chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.bm-chat > h2 { flex-shrink: 0; }
.bm-chat-lines { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.bm-chat-lines.top { justify-content: flex-start; }
.bm-chat-lines > * { flex-shrink: 0; }

/* boete-melding in de spelersapp */
.fine-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(60,0,0,.72); animation: fineIn .25s ease-out; }
.fine-box { width: min(420px, 100%); text-align: center; padding: 22px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(180deg, #d63a2a, #7b1610); border: 3px solid #ffd2c8; box-shadow: 0 0 60px rgba(255,60,40,.7); }
.fine-siren { font-size: 3.4em; animation: fineSiren .5s infinite alternate; }
.fine-title { font-family: var(--head); font-size: 1.9em; font-weight: 900; letter-spacing: .03em; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.fine-av { margin-top: 10px; } .fine-name { font-weight: 900; font-size: 1.3em; margin-top: 4px; }
.fine-amt { font-family: var(--head); font-size: 2.6em; font-weight: 900; color: #ffe36e; text-shadow: 0 3px 0 rgba(0,0,0,.45); margin-top: 6px; }
.fine-reason { font-size: 1.15em; font-weight: 700; margin-top: 6px; }
@keyframes fineIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes fineSiren { from { transform: rotate(-12deg) scale(1); } to { transform: rotate(12deg) scale(1.15); } }
.push-card { margin-top: 10px; border-color: rgba(255,200,60,.5); }
.push-card.on { border-color: rgba(80,220,140,.45); }
.push-steps { padding-left: 20px; margin: 8px 0; } .push-steps li { margin: 6px 0; }

/* beamer: instellingen van een pack-opening */
.bm-pack-wrap.setup { top: calc(33% + 40px); }
.bm-pack-wrap.setup .pack { --w: min(230px, 19vh) !important; }
@media (max-height: 820px) { .bm-pack-wrap.setup .hint { display: none; } }
.bm-pack-wrap.setup .hint { margin-top: 14px; font-size: 22px; }
.bm-setup { background: rgba(10,7,4,.78); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; }
.bm-setup.in-modal { background: none; border: 0; padding: 0; }
.bm-setup .q { font-size: 28px !important; }
.bm-players.sm { gap: 8px; max-height: 34vh; overflow: auto; }
.bm-player.sm { width: 94px; padding: 6px 6px; font-size: 14px; }
.bm-player.out { opacity: .35; filter: grayscale(1); border-style: dashed; }
.bm-player.out:hover { opacity: .7; }
.bm-toggle { font-size: 18px; padding: 8px 14px; border-radius: 10px; background: var(--panel-bg); color: var(--text); border: 2px solid var(--line); box-shadow: none; }
.bm-toggle.on { border-color: #4fd18b; background: rgba(79,209,139,.15); }
