/* Copyright (c) 2026 Legacy Technology N.V. All rights reserved. See LICENSE. */
/* The leaderboard (ranglijst.js) in Waka style (owner 25-10-2026: "maak het waka stijl"): kasaba paper, forest green
   and gold, the top 3 as the gold, silver and bronze of the collector cards, gold footsteps by the points and the faya
   lobi diamond by your own place. Colours from waka-style.css (--wk-*), so the night look follows. */
.lb { color: var(--wk-ink-1, #123f39); }
.lb-busy { text-align: center; padding: 30px 0; color: var(--wk-ink-2, #58736f); }
.lb-head { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; margin: -4px 0 12px; }
.lb-head img { width: 112px; height: auto; filter: drop-shadow(0 8px 14px #7a4d0026); }
.lb-head h2 { margin: 2px 0 4px; font-size: 1.55rem; line-height: 1.1; }
.lb-sub { margin: 0; font-size: .92rem; color: var(--wk-ink-2, #58736f); line-height: 1.35; }
.lb-why { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 .72rem/1.2 inherit; letter-spacing: .14em; text-transform: uppercase; color: var(--wk-gold-deep, #c98a12); }
.lb-faya { flex: none; display: inline-block; width: 9px; height: 9px; background: var(--wk-faya, #b40a2d); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--wk-gold, #f1b748); }

.lb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 999px; background: var(--wk-tile-warm, #fdf3dc); box-shadow: inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); }
.lb-tabs button { margin: 0; padding: 9px 6px; border: 0; border-radius: 999px; background: none; font: 800 .92rem/1 inherit; color: var(--wk-ink-2, #58736f); cursor: pointer; width: auto; box-shadow: none; }
.lb-tabs button.on { background: var(--wk-forest, #123f39); color: var(--wk-kasaba, #fffaf0); box-shadow: 0 4px 10px #05271c33; }

/* the podium: second, first, third; the first highest */
.lb-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; align-items: end; margin: 4px 0 12px; }
.lb-step { position: relative; display: grid; justify-items: center; gap: 3px; padding: 12px 6px 0; border-radius: 16px 16px 6px 6px; text-align: center; min-width: 0;
  background: var(--wk-tile, #fff); box-shadow: var(--wk-shadow), inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); }
.lb-step .lb-nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.lb-step .lb-pts { font-size: .86rem; }
.lb-medal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 900 1rem/1 inherit; color: #fff; text-shadow: 0 1px 0 #0004; box-shadow: 0 3px 8px #0003, inset 0 0 0 2px #fff8; }
.lb-block { display: block; width: calc(100% + 12px); margin: 8px -6px 0; border-radius: 0 0 6px 6px; }
.lb-gold .lb-medal, .lb-gold .lb-block { background: linear-gradient(160deg, #fdeeb5, #f1b748 45%, #c98a12); }
.lb-silver .lb-medal, .lb-silver .lb-block { background: linear-gradient(160deg, #f7f9fb, #c9d1d8 50%, #8e99a3); }
.lb-bronze .lb-medal, .lb-bronze .lb-block { background: linear-gradient(160deg, #f6d2b0, #c98552 50%, #8a5530); }
.lb-gold .lb-block { height: 58px; } .lb-silver .lb-block { height: 40px; } .lb-bronze .lb-block { height: 28px; }
.lb-gold { box-shadow: var(--wk-shadow-up), inset 0 0 0 2px var(--wk-gold, #f1b748); }
.lb-gold .lb-medal { width: 40px; height: 40px; font-size: 1.15rem; }
.lb-step.mine { box-shadow: var(--wk-shadow), inset 0 0 0 3px var(--wk-faya, #b40a2d); }

/* places 4 to 20 */
.lb-list { list-style: none; margin: 0 0 12px; padding: 0; border-radius: 14px; overflow: hidden; background: var(--wk-tile, #fff); box-shadow: var(--wk-shadow), inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); }
.lb-row { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; font-size: .94rem; }
.lb-row:nth-child(even) { background: var(--wk-tile-soft, #fffaf0); }
.lb-row + .lb-row { border-top: 1px solid #f1e3bf; }
.lb-row.mine { background: #fff1d6 !important; box-shadow: inset 4px 0 0 var(--wk-faya, #b40a2d); }
.lb-rank { font-weight: 900; color: var(--wk-gold-deep, #c98a12); text-align: right; font-variant-numeric: tabular-nums; }
.lb-row .lb-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lb-pts { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-foot { display: inline-block; width: 12px; height: 15px; background: var(--wk-step) center / contain no-repeat; }

/* your own place, or joining */
.lb-me { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--wk-forest, #123f39); color: var(--wk-kasaba, #fffaf0); box-shadow: 0 8px 18px #05271c33; }
.lb-me-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-me-name small { font-weight: 600; opacity: .8; }
.lb-me-rank { font-size: .86rem; color: var(--wk-gold, #f1b748); font-weight: 800; white-space: nowrap; }
.lb-me .lb-foot { filter: brightness(1.6); }
.lb-actions { display: flex; justify-content: center; gap: 18px; margin: 6px 0 0; }
.lb-join { padding: 14px; border-radius: 14px; background: var(--wk-tile-warm, #fdf3dc); box-shadow: inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); text-align: center; }
.lb-join p { margin: 0 0 10px; }
.lb-empty { margin: 6px 0 14px; padding: 18px 14px; border-radius: 14px; text-align: center; background: var(--wk-tile-warm, #fdf3dc); color: var(--wk-ink-2, #58736f); }
.lb-rule { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .82rem; line-height: 1.4; color: var(--wk-ink-2, #58736f); }
.lb-rule svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--wk-gold-deep, #c98a12); }

/* the button in the passport */
.lb-open { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; margin: 12px 0; padding: 12px 14px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, #fff6dd, var(--wk-sun, #fbe7c0)); color: var(--wk-ink-1, #123f39); box-shadow: var(--wk-shadow), inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); }
.lb-open img { width: 46px; height: auto; } .lb-open b { display: block; font-size: 1rem; } .lb-open small { color: var(--wk-ink-2, #58736f); }
.lb-open svg { width: 18px; height: 18px; color: var(--wk-gold-deep, #c98a12); }
@media (max-width: 360px) { .lb-head { grid-template-columns: 84px 1fr; } .lb-head img { width: 84px; } .lb-me { grid-template-columns: auto 1fr auto; } .lb-me-rank { grid-column: 2 / 4; } }
#lb-nick-in { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--wk-tile-ring, #ecd49a); border-radius: 12px; font: inherit; background: var(--wk-tile, #fff); color: inherit; }
.lb-open-place { opacity: .45; box-shadow: inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); } .lb-open-place .lb-nick { color: var(--wk-ink-2, #58736f); }
/* ---------- The prizes (owner 25-10-2026): star cards for the week, trophy cards for the month (ranglijst.js) ---------- */
.lbp-week .lbp-photo { position: absolute; inset: 0 0 38% 0; background-size: cover; background-position: center; opacity: .5; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.lbp-week .lbp-band { top: 15cqw; right: 5cqw; display: block; font-size: 3.8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-week .lbp-star { position: absolute; left: 50%; top: 22%; width: 64%; transform: translateX(-50%); z-index: 1; border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.lbp-week .lbp-mon { position: absolute; left: 4cqw; top: 22cqw; z-index: 2; max-width: 60%; display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 3cqw 1.2cqw 2cqw; border-radius: 99px; background: #07171ad9; font-size: 3.6cqw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-week .lbp-mon svg { flex: none; width: 3.8cqw; height: 3.8cqw; color: #ffe08a; }
.lbp-week .tc-prize { top: 63%; }
.lbp-week .lbp-nick { font: 900 6.4cqw/1.1 Manrope, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the month: a trophy card in the gift card's size (63 x 88), gold, silver or bronze rim, holo shine */
.lbp-m { position: relative; width: 100%; height: 100%; box-sizing: border-box; container-type: inline-size; border-radius: 6cqw; padding: 2.2cqw; color: #1a1205;
  background: linear-gradient(135deg, #8a5a12, #ffe08a 30%, #fff3c4 48%, #c98f1e 72%, #ffe08a 90%); }
.lbp-m.lbp-silver { background: linear-gradient(135deg, #7d8a8c, #ffffff 32%, #dfe6e7 50%, #9aa7a9 74%, #f4f7f7 90%); }
.lbp-m.lbp-bronze { background: linear-gradient(135deg, #6e3a18, #f0bd86 32%, #ffd9b0 48%, #a86a36 74%, #f0bd86 90%); }
.lbp-m .in { position: relative; height: 100%; border-radius: 4cqw; overflow: hidden; color: #fff; background: radial-gradient(110% 70% at 50% 38%, #2d6b5f, #123f39 55%, #0b2a25); }
.lbp-m .in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, #ff7ad933 40%, #7ae0ff44 47%, #fff6 50%, #ffe08a44 55%, transparent 68%); }
.lbp-m .m-top { position: absolute; top: 5cqw; left: 0; right: 0; text-align: center; font: 800 5cqw Manrope, sans-serif; letter-spacing: .12em; color: #ffe08a; text-transform: uppercase; }
.lbp-silver .m-top { color: #eef3f4; } .lbp-bronze .m-top { color: #f3c79a; }
.lbp-m .m-no { position: absolute; top: 12.5cqw; left: 0; right: 0; text-align: center; font-size: 4cqw; letter-spacing: .1em; opacity: .85; text-transform: uppercase; }
.lbp-m .m-art { position: absolute; left: 50%; top: 18cqw; width: 70cqw; transform: translateX(-50%); border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.lbp-m .m-name { position: absolute; left: 6cqw; right: 6cqw; top: 86cqw; text-align: center; }
.lbp-m .m-name b { display: block; font: 900 9cqw/1 Manrope, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbp-m .m-name span { display: block; margin-top: 1.6cqw; font-size: 4.6cqw; color: #ffe08a; font-weight: 700; } .lbp-m .m-name small { display: block; margin-top: 1cqw; font-size: 4cqw; opacity: .75; }
.lbp-m .m-foot { position: absolute; left: 5cqw; right: 5cqw; bottom: 5cqw; display: flex; align-items: end; justify-content: space-between; }
.lbp-m .m-score { position: absolute; left: 7cqw; right: 7cqw; top: 28cqw; display: grid; justify-items: center; gap: 1.6cqw; }
.lbp-m .m-score b { font: 900 24cqw/1 Manrope, sans-serif; color: #ffe08a; } .lbp-m .m-score small { font-size: 6cqw; opacity: .7; margin-top: -3cqw; } .lbp-m .m-score span { font-size: 5cqw; font-weight: 700; }
.lbp-m .m-pass { position: absolute; left: 7cqw; right: 7cqw; top: 82cqw; padding: 4cqw; border-radius: 4cqw; background: #f1b748; color: #1a1205; text-align: center; transform: rotate(-2deg); }
.lbp-m .m-pass b { display: block; font: 900 6.4cqw Manrope, sans-serif; } .lbp-m .m-pass span { font-size: 4cqw; font-weight: 700; }
.lbp-thumb { aspect-ratio: 63 / 88; }
.g3-face .lbp-m { border-radius: 0; }
/* a pass that moved on: a ticket, no card */
.lbp-moved { aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; border-radius: 14px; text-align: center; color: #1a1205; background: linear-gradient(135deg, #f1b748, #ffe08a 50%, #e2a83a); }
.lbp-moved svg { width: 34px; height: 34px; } .lbp-moved b { font: 900 1rem Manrope, sans-serif; } .lbp-moved span { font-size: .78rem; line-height: 1.3; }
/* the code under the card */
.lbp-box { display: grid; gap: 8px; margin: 12px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--wk-tile, #fff); box-shadow: inset 0 0 0 1px var(--wk-tile-ring, #ecd49a); }
.lbp-box p { margin: 0; }
.lbp-code { font: 800 1.3rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; color: var(--wk-gold-deep, #c98a12); user-select: all; }
.lbp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lbp-btns button { margin: 0; }
/* in the turning stage the gift card's rule (.g3-face img: the whole face) must not stretch the logo, QR and trophy */
.g3-face .lbp-m .cc-site img { width: 4.8cqw; height: 4.8cqw; } .g3-face .lbp-m .cc-qr img { width: 15cqw; height: 15cqw; } .g3-face .lbp-m .m-art { height: auto; }
