/* ==========================================================================
   NDB Core – components
   Dark is the default; [data-theme="light"] switches to the light set.
   ========================================================================== */

:root {
	color-scheme: dark;
	--c-bg: #0c0716;
	--c-bg-2: #110a1f;
	--c-surface: #1a1029;
	--c-surface-2: #221636;
	--c-surface-3: #2e1f47;
	--c-border: rgba(192, 132, 252, .16);
	--c-border-2: rgba(192, 132, 252, .3);
	--c-text: #f7f3ff;
	--c-text-2: #c9bde0;
	--c-text-3: #9a8bb6;
	--c-primary: #fbbf24;
	--c-primary-2: #f59e0b;
	--c-link: #fcd34d;
	--c-on-primary: #2b1700;
	--c-violet: #c084fc;
	--c-pink: #f472b6;
	--c-amber: #fbbf24;
	--c-blue: #818cf8;
	--c-lic: #4ade80;
	--c-good: #10b981;
	--c-warn: #f59e0b;
	--c-bad: #f43f5e;
	--c-primary-soft: rgba(251, 191, 36, .13);
	--c-violet-soft: rgba(192, 132, 252, .14);
	--c-lic-soft: rgba(34, 197, 94, .13);
	--c-good-soft: rgba(16, 185, 129, .14);
	--c-warn-soft: rgba(245, 158, 11, .13);
	--c-bad-soft: rgba(244, 63, 94, .13);
	--g-primary: linear-gradient(180deg, #ffdf70 0%, #fbbf24 45%, #f59e0b 100%);
	--g-text: linear-gradient(180deg, #ffe58a 0%, #fbbf24 50%, #f59e0b 100%);
	--g-hot: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
	--g-gold: linear-gradient(140deg, #fff1b8 0%, #fbbf24 45%, #d97706 100%);
	--g-silver: linear-gradient(140deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
	--g-bronze: linear-gradient(140deg, #fed7aa 0%, #fb923c 50%, #9a3412 100%);
	--g-border: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
	--g-neon: linear-gradient(135deg, rgba(236, 72, 153, .75), rgba(168, 85, 247, .55) 50%, rgba(99, 102, 241, .5));
	--shadow-card: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .8);
	--shadow-neon: 0 0 0 1px rgba(236, 72, 153, .08), 0 0 28px -6px rgba(168, 85, 247, .45);
	--shadow-glow: 0 10px 28px -8px rgba(251, 191, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 22px;
	--f-display: "Montserrat Variable", "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-body: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-mono: var(--f-body);
}

:root[data-theme="light"] {
	color-scheme: light;
	--c-bg: #faf7ff;
	--c-bg-2: #f3edfd;
	--c-surface: #ffffff;
	--c-surface-2: #f6f1ff;
	--c-surface-3: #ece3fb;
	--c-border: rgba(76, 29, 149, .1);
	--c-border-2: rgba(76, 29, 149, .2);
	--c-text: #1a0f2e;
	--c-text-2: #4b3d66;
	--c-text-3: #6e6188;
	--c-primary: #f59e0b;
	--c-primary-2: #d97706;
	--c-link: #7c3aed;
	--c-on-primary: #2b1700;
	--c-violet: #7c3aed;
	--c-pink: #db2777;
	--c-amber: #b45309;
	--c-blue: #4f46e5;
	--c-lic: #15803d;
	--c-good: #059669;
	--c-warn: #d97706;
	--c-bad: #e11d48;
	--c-primary-soft: rgba(245, 158, 11, .12);
	--c-violet-soft: rgba(124, 58, 237, .09);
	--c-lic-soft: rgba(22, 163, 74, .1);
	--c-good-soft: rgba(5, 150, 105, .1);
	--c-warn-soft: rgba(217, 119, 6, .1);
	--c-bad-soft: rgba(225, 29, 72, .09);
	--g-text: linear-gradient(180deg, #d97706 0%, #b45309 100%);
	--g-neon: linear-gradient(135deg, rgba(219, 39, 119, .55), rgba(124, 58, 237, .45) 50%, rgba(79, 70, 229, .4));
	--shadow-card: 0 1px 2px rgba(46, 16, 101, .05), 0 18px 40px -26px rgba(46, 16, 101, .3);
	--shadow-neon: 0 0 0 1px rgba(124, 58, 237, .05), 0 14px 34px -16px rgba(124, 58, 237, .35);
	--shadow-glow: 0 10px 24px -10px rgba(245, 158, 11, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   Basics
   ----------------------------------------------------------------------- */
.ndb-icon { display: inline-block; vertical-align: -3px; flex: none; }
.ndb-muted { color: var(--c-text-2); }
.ndb-fine { color: var(--c-text-3); font-size: .8125rem; line-height: 1.55; margin: .9rem 0 0; }
.ndb-fine a { color: var(--c-text-2); }
.ndb-empty { padding: 1.1rem 1.25rem; border: 1px dashed var(--c-border-2); border-radius: var(--r); color: var(--c-text-2); background: var(--c-surface); margin: 0; }
.ndb-num, .ndb-metric dd, .ndb-facts dd, .ndb-stats dd { font-variant-numeric: tabular-nums; }
.ndb-h { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); font-weight: 800; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.015em; color: var(--c-text); }
.ndb-h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; display: flex; gap: .45rem; align-items: center; color: var(--c-text); }
.ndb-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.ndb-gradient-text { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------
   Buttons & links
   ----------------------------------------------------------------------- */
.ndb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: 12px; border: 0; font-family: var(--f-body); font-weight: 700; font-size: .9375rem; line-height: 1.1; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.ndb-btn:hover { transform: translateY(-1px); }
.ndb-btn:active { transform: translateY(0); }
.ndb-btn--primary { background: var(--g-primary); color: var(--c-on-primary); box-shadow: var(--shadow-glow); }
.ndb-btn--primary { font-family: var(--f-display); font-weight: 700; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.ndb-btn--primary:hover, .ndb-btn--primary:focus-visible { color: var(--c-on-primary); filter: brightness(1.05) saturate(1.1); box-shadow: 0 14px 36px -8px rgba(251, 191, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ndb-btn--ghost-gold { background: transparent; color: var(--c-link); border: 1.5px solid color-mix(in srgb, var(--c-primary) 70%, transparent); font-family: var(--f-display); font-weight: 700; }
.ndb-btn--ghost-gold:hover { color: var(--c-on-primary); background: var(--g-primary); border-color: transparent; }
.ndb-btn--hot { background: var(--g-hot); color: #fff; box-shadow: 0 12px 30px -10px rgba(236, 72, 153, .55); }
.ndb-btn--hot:hover { color: #fff; filter: brightness(1.08); }
.ndb-btn:focus-visible, .ndb-seg input:focus-visible + span, .ndb-link:focus-visible, .ndb-tip:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-primary) 55%, transparent); outline-offset: 3px; }
.ndb-link { color: var(--c-link); font-weight: 650; font-size: .875rem; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--c-link) 40%, transparent); padding-bottom: 1px; }
.ndb-link:hover { color: var(--c-text); border-bottom-color: var(--c-text); }

/* --------------------------------------------------------------------------
   Badges, pills, stamps, fairness ring, meter
   ----------------------------------------------------------------------- */
.ndb-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 650; background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); white-space: nowrap; }
.ndb-badge--ok { background: var(--c-lic-soft); color: var(--c-lic); border-color: color-mix(in srgb, var(--c-lic) 40%, transparent); }
.ndb-badge--bad { background: var(--c-bad-soft); color: var(--c-bad); border-color: color-mix(in srgb, var(--c-bad) 30%, transparent); }
:root:not([data-theme="light"]) .ndb-badge--bad { color: #fda4af; }
.ndb-pill { display: inline-block; vertical-align: middle; padding: .14rem .5rem; border-radius: 6px; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.ndb-pill--active { background: var(--c-primary-soft); color: var(--c-link); border-color: transparent; }
.ndb-pill--ended { background: var(--c-surface-3); color: var(--c-text-2); }
.ndb-pill--upcoming { background: var(--c-warn-soft); color: var(--c-warn); border-color: transparent; }
.ndb-stamp { display: inline-flex; gap: .55rem; align-items: center; margin: .8rem 0 0; padding: .5rem .8rem; border-radius: 12px; background: var(--c-surface-2); border: 1px solid var(--c-border); font-family: var(--f-body); font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--c-text-2); }
.ndb-stamp .ndb-icon { width: 18px; height: 18px; }
.ndb-stamp--ok { color: var(--c-text); background: var(--c-lic-soft); border-color: color-mix(in srgb, var(--c-lic) 45%, transparent); }
.ndb-stamp--ok .ndb-icon { color: var(--c-lic); }
.ndb-stamp--bad { color: var(--c-bad); background: var(--c-bad-soft); border-color: color-mix(in srgb, var(--c-bad) 28%, transparent); }
:root:not([data-theme="light"]) .ndb-stamp--bad { color: #fda4af; }

.ndb-fair { display: inline-flex; align-items: center; gap: .5rem; }
.ndb-fair small { font-size: .78rem; color: var(--c-text-2); font-weight: 650; line-height: 1.2; }
.ndb-ring { --ring: var(--c-good); --v: 0; position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--v) * 1%), var(--c-surface-3) 0); flex: none; }
.ndb-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-surface); }
.ndb-offer__metrics .ndb-ring::before, .lab-buybox .ndb-ring::before { background: var(--c-surface-2); }
.ndb-ring b { position: relative; font-family: var(--f-display); font-size: .95rem; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }
.ndb-fair--a .ndb-ring, .ndb-fair--b .ndb-ring { --ring: var(--c-good); }
.ndb-fair--c .ndb-ring { --ring: var(--c-warn); }
.ndb-fair--d .ndb-ring { --ring: var(--c-bad); }

.ndb-meter { display: block; width: 100%; max-width: 110px; height: 5px; margin-top: .45rem; border-radius: 999px; background: var(--c-surface-3); overflow: hidden; }
.ndb-meter span { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Tooltip */
.ndb-tip { position: relative; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-left: .25rem; padding: 0; border-radius: 50%; border: 1px solid var(--c-border-2); background: transparent; color: var(--c-text-3); font-size: .65rem; font-weight: 800; cursor: help; vertical-align: 1px; font-family: var(--f-body); }
.ndb-tip::after { content: attr(data-tip); display: none; position: absolute; z-index: 30; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 250px; padding: .7rem .8rem; border-radius: 10px; background: #0b1222; border: 1px solid rgba(148, 163, 184, .25); color: #e2e8f0; font-size: .75rem; font-weight: 500; line-height: 1.5; text-align: left; text-transform: none; letter-spacing: 0; pointer-events: none; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.ndb-tip:hover::after, .ndb-tip:focus::after { display: block; }

/* Logos */
.ndb-logo { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 16px; background: var(--c-surface-2); border: 1px solid var(--c-border); flex: none; padding: 6px; }
.ndb-logo--initials { --hue: 160; display: grid; place-items: center; padding: 0; border: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: #fff; background: linear-gradient(140deg, hsl(var(--hue) 78% 58%), hsl(calc(var(--hue) + 45) 72% 40%)); box-shadow: 0 10px 24px -12px hsl(var(--hue) 80% 45% / .8), inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* --------------------------------------------------------------------------
   Offer cards
   ----------------------------------------------------------------------- */
.ndb-offers { display: grid; gap: 1.1rem; }
.ndb-offer { position: relative; display: grid; grid-template-columns: 205px minmax(0, 1fr) 360px 190px; gap: 1.5rem; align-items: center; padding: 1.5rem 1.6rem; background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface) 60%) padding-box, var(--g-neon) border-box; border: 1px solid transparent; border-radius: 24px; box-shadow: var(--shadow-card), var(--shadow-neon); transition: transform .2s ease, box-shadow .2s ease; }
.ndb-offer:hover { box-shadow: var(--shadow-card), 0 0 0 1px rgba(236, 72, 153, .2), 0 0 40px -6px rgba(236, 72, 153, .45); }
.ndb-offer:hover { border-color: var(--c-border-2); transform: translateY(-2px); }
.ndb-offer--rank-1 { background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface) 60%) padding-box, var(--g-border) border-box; border: 2px solid transparent; box-shadow: var(--shadow-card), 0 0 48px -8px rgba(236, 72, 153, .55); }
.ndb-offer--rank-1::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(600px 160px at 15% 0%, var(--c-primary-soft), transparent 70%); pointer-events: none; }
.ndb-offer--ended { opacity: .85; }
.ndb-offer--ended .ndb-logo { filter: grayscale(.8); }
.ndb-offer > * { position: relative; }
.ndb-offer > .ndb-offer__rank, .ndb-offer > .ndb-offer__ribbon { position: absolute; }
.ndb-offer__rank { left: -12px; top: -12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--c-surface-3); color: var(--c-text); font-family: var(--f-display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; border: 1px solid var(--c-border-2); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.ndb-offer--rank-1 .ndb-offer__rank { background: var(--g-gold); color: #3b2300; border: 0; }
.ndb-offer--rank-2 .ndb-offer__rank { background: var(--g-silver); color: #1e293b; border: 0; }
.ndb-offer--rank-3 .ndb-offer__rank { background: var(--g-bronze); color: #fff; border: 0; }
.ndb-offer__ribbon { right: 1.25rem; top: -11px; z-index: 2; padding: .22rem .65rem; border-radius: 999px; background: var(--g-primary); color: var(--c-on-primary); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-glow); }
.ndb-offer__brand { display: flex; gap: .85rem; align-items: center; min-width: 0; }
.ndb-offer__operator { margin: 0 0 .35rem; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.ndb-offer__operator a { color: var(--c-text); text-decoration: none; }
.ndb-offer__operator a:hover { color: var(--c-link); }
.ndb-offer__title { margin: 0; font-family: var(--f-display); font-size: 1.4rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.ndb-offer__title a { color: var(--c-text); text-decoration: none; }
.ndb-offer__title a:hover { color: var(--c-link); }
.ndb-offer__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 0; padding: 0; list-style: none; font-size: .8rem; }
.ndb-offer__facts li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .38rem .7rem; border-radius: 999px; background: var(--c-surface-3); border: 1px solid var(--c-border); color: var(--c-text-2); }
.ndb-offer__facts li .ndb-icon { width: 14px; height: 14px; color: var(--c-text-3); }
.ndb-offer__facts b { color: var(--c-text); font-weight: 650; }
.ndb-offer__facts code { font-family: var(--f-mono); font-size: .78rem; font-weight: 700; color: var(--c-violet); letter-spacing: .04em; }
.ndb-offer__facts .is-code { background: var(--c-violet-soft); border-color: color-mix(in srgb, var(--c-violet) 30%, transparent); }
.ndb-offer__facts .is-code .ndb-icon { color: var(--c-violet); }
.ndb-offer__metrics { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr; gap: 0; align-items: stretch; margin: 0; padding: .9rem .4rem; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid var(--c-border-2); text-align: center; }
:root[data-theme="light"] .ndb-offer__metrics { background: var(--c-surface-2); }
.ndb-offer__metrics > .ndb-metric { padding: 0 .6rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.ndb-offer__metrics > .ndb-metric + .ndb-metric { border-left: 1px solid var(--c-border-2); }
.ndb-offer__metrics .ndb-meter { margin-left: auto; margin-right: auto; }
.ndb-offer__metrics .ndb-fair { flex-direction: row; }
.ndb-offer__action { display: flex; flex-direction: column; gap: .55rem; align-items: stretch; text-align: center; }
.ndb-offer__action .ndb-link { align-self: center; }
.ndb-offer__ended { margin: 0; font-size: .875rem; color: var(--c-text-2); font-weight: 650; }
.ndb-cta { display: grid; gap: .4rem; }
.ndb-cta__legal { margin: 0; font-size: .66rem; line-height: 1.4; color: var(--c-text-3); }

/* Metrics */
.ndb-metric { margin: 0; min-width: 0; }
.ndb-metric dt { font-size: .72rem; line-height: 1.25; color: var(--c-text-3); font-weight: 650; hyphens: manual; }
.ndb-offer__metrics .ndb-metric dt { min-height: 2.5em; }
.ndb-offer__metrics .ndb-metric--ev dt { white-space: nowrap; }
.ndb-metric dd { margin: .2rem 0 0; font-family: var(--f-display); font-size: 1.2rem; font-weight: 750; color: var(--c-text); letter-spacing: -.01em; }
.ndb-metric--ev dd { font-size: 1.75rem; font-weight: 800; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ndb-metric--big dd { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.ndb-tool .ndb-metric--big dd { font-size: clamp(1.3rem, 1rem + .8vw, 1.6rem); }

/* --------------------------------------------------------------------------
   Fact grids
   ----------------------------------------------------------------------- */
.ndb-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 0; }
.ndb-facts > div { padding: .85rem 1rem; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-border); margin: 0; }
.ndb-facts dt { font-size: .7rem; color: var(--c-text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ndb-facts dd { margin: .3rem 0 0; font-weight: 700; font-size: .98rem; color: var(--c-text); }
.ndb-facts dd a { color: var(--c-link); }
.ndb-code { font-family: var(--f-mono); background: var(--c-violet-soft); color: var(--c-violet); padding: .12rem .45rem; border-radius: 6px; font-weight: 700; }

/* --------------------------------------------------------------------------
   EV box, tools
   ----------------------------------------------------------------------- */
.ndb-ev, .ndb-tool { position: relative; padding: clamp(1.25rem, 3vw, 1.85rem); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); margin: 0 0 1.5rem; box-shadow: var(--shadow-card); overflow: hidden; }
.ndb-ev::before, .ndb-tool::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.ndb-tool.ndb-lc::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.ndb-tool.ndb-wager::before { background: var(--g-hot); }
.ndb-tool.ndb-evcalc::before { background: linear-gradient(90deg, #fbbf24, #ec4899); }
.ndb-ev::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 85, 247, .18), transparent); pointer-events: none; }
.ndb-ev, .ndb-tool { background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface) 55%); }
.ndb-ev > *, .ndb-tool > * { position: relative; }
.ndb-ev.is-busy .ndb-ev__results, .ndb-tool.is-busy .ndb-ev__results { opacity: .4; }
.ndb-ev__head { margin-bottom: 1.1rem; }
.ndb-ev__head p { margin: 0; font-size: .9375rem; }
.ndb-ev__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.35rem; }
.ndb-label { font-size: .8125rem; font-weight: 650; color: var(--c-text-2); display: block; }
.ndb-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.ndb-seg label { margin: 0; }
.ndb-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ndb-seg span { display: block; padding: .5rem .85rem; min-width: 62px; text-align: center; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; border-radius: 9px; color: var(--c-text-2); transition: background-color .15s, color .15s; }
.ndb-seg span:hover { color: var(--c-text); }
.ndb-seg input:checked + span { background: var(--g-primary); color: var(--c-on-primary); box-shadow: 0 6px 16px -8px rgba(251, 191, 36, .8); }
.ndb-ev__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 0 0 1.35rem; padding: 0; transition: opacity .2s; }
.ndb-ev__results > .ndb-metric { padding: .9rem 1rem; border-radius: 14px; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.ndb-ev__results > .ndb-metric--big:first-child { background: linear-gradient(var(--c-surface-2), var(--c-surface-2)) padding-box, var(--g-border) border-box; border: 1px solid transparent; }
.ndb-ev__results > .ndb-metric--big:first-child dd { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ndb-hist { margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.ndb-hist figcaption { font-size: .8125rem; font-weight: 700; margin-bottom: .7rem; color: var(--c-text); }
.ndb-hist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ndb-hist li { display: grid; grid-template-columns: 96px 1fr 52px; gap: .7rem; align-items: center; font-size: .8125rem; margin: 0; }
.ndb-hist__label { color: var(--c-text-2); }
.ndb-hist__bar { height: 12px; background: var(--c-surface-3); border-radius: 4px; overflow: hidden; }
.ndb-hist__bar span { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 0 4px 4px 0; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.ndb-hist li:first-child .ndb-hist__bar span { background: var(--c-text-3); }
.ndb-hist li:hover .ndb-hist__bar span { filter: brightness(1.15); }
.ndb-hist__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c-text); }

/* Forms */
.ndb-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem 1rem; margin: 0 0 1.2rem; }
.ndb-field { display: grid; gap: .35rem; margin: 0; }
.ndb-field span { font-size: .78rem; font-weight: 650; color: var(--c-text-2); }
.ndb-field input, .ndb-field select, .ndb-inline input, .ndb-alert-form input[type="email"] { width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1px solid var(--c-border-2); border-radius: 12px; background: var(--c-surface-2); color: var(--c-text); font: inherit; font-family: var(--f-body); font-variant-numeric: tabular-nums; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.ndb-field select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
.ndb-field input:focus, .ndb-field select:focus, .ndb-inline input:focus, .ndb-alert-form input[type="email"]:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.ndb-field input::placeholder, .ndb-inline input::placeholder { color: var(--c-text-3); }
.ndb-inline { display: flex; gap: .5rem; margin: .5rem 0 .85rem; }
.ndb-inline input { flex: 1; min-width: 0; }
.ndb-search { position: relative; }
.ndb-search > .ndb-icon { position: absolute; left: .9rem; top: 15px; color: var(--c-text-3); pointer-events: none; }
.ndb-search input { padding-left: 2.5rem; }
.ndb-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; line-height: 1.5; margin: .55rem 0; color: var(--c-text-2); }
.ndb-check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--c-primary); flex: none; }
.ndb-check a { color: var(--c-link); }
.ndb-notice { padding: .8rem 1rem; border-radius: 12px; margin: 0 0 1rem; font-weight: 650; }
.ndb-notice--ok { background: var(--c-lic-soft); color: var(--c-lic); }
.ndb-notice--error { background: var(--c-bad-soft); color: var(--c-bad); }
.ndb-alert-box { padding: 1.5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); }

/* Licence check */
.ndb-lc__db { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--c-border-2); }
.ndb-lc__count { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.ndb-lc__count b { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ndb-lc__count span { font-size: .875rem; color: var(--c-text-2); max-width: 22ch; line-height: 1.35; }
.ndb-lc__quick, .entry-content .ndb-lc__quick { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ndb-lc__quick li { margin: 0; }
.ndb-lc__quick a { display: inline-block; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--c-border-2); background: var(--c-surface-2); color: var(--c-text-2); font-size: .8rem; font-weight: 650; text-decoration: none; }
.ndb-lc__quick a:hover { border-color: var(--c-primary-2); color: var(--c-text); }
.ndb-lc__out { display: grid; gap: .5rem; }
.ndb-lc__item { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text); }
.ndb-lc__item p { margin: 0; line-height: 1.5; font-size: .92rem; }
.ndb-lc__item a { color: var(--c-link); }
.ndb-lc__item .ndb-icon { margin-top: .2rem; }
.ndb-lc__item--ok { background: var(--c-good-soft); border-color: color-mix(in srgb, var(--c-good) 30%, transparent); }
.ndb-lc__item--ok .ndb-icon { color: var(--c-good); }
.ndb-lc__item--bad { background: var(--c-bad-soft); border-color: color-mix(in srgb, var(--c-bad) 30%, transparent); }
.ndb-lc__item--bad .ndb-icon { color: var(--c-bad); }
.ndb-lc__item--unknown .ndb-icon { color: var(--c-warn); }
.ndb-licence { position: relative; padding: 1.2rem 1.3rem; border-radius: var(--r-lg); border: 1px solid var(--c-border); background: var(--c-surface); overflow: hidden; }
.ndb-licence--ok { background: linear-gradient(160deg, var(--c-lic-soft), transparent 60%), var(--c-surface); border-color: color-mix(in srgb, var(--c-lic) 35%, transparent); }
.ndb-licence--bad { background: linear-gradient(160deg, var(--c-bad-soft), transparent 60%), var(--c-surface); border-color: color-mix(in srgb, var(--c-bad) 30%, transparent); }
.ndb-licence__status { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 .9rem; font-weight: 750; font-size: .98rem; color: var(--c-text); }
.ndb-licence--ok .ndb-licence__status .ndb-icon { color: var(--c-good); }
.ndb-licence--bad .ndb-licence__status .ndb-icon { color: var(--c-bad); }
.ndb-licence dl { margin: 0 0 .9rem; display: grid; gap: .45rem; }
.ndb-licence dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; border-bottom: 1px dashed var(--c-border-2); padding-bottom: .4rem; }
.ndb-licence dt { color: var(--c-text-3); }
.ndb-licence dd { margin: 0; font-weight: 650; text-align: right; color: var(--c-text); }

/* Terms, flags, lists */
.ndb-terms, .ndb-test, .ndb-changelog { margin: 0 0 1.75rem; }
.ndb-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.ndb-list li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; line-height: 1.55; color: var(--c-text); }
.ndb-list .ndb-icon { margin-top: .25rem; color: var(--c-primary); }
.ndb-flags { padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--c-warn-soft); border: 1px solid color-mix(in srgb, var(--c-warn) 32%, transparent); }
.ndb-flags .ndb-h3 { color: var(--c-warn); }
.ndb-flags .ndb-list { margin: 0; }
.ndb-flags .ndb-list li::before { content: ""; width: 7px; height: 7px; margin-top: .55rem; border-radius: 50%; background: var(--c-warn); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-warn) 22%, transparent); }
.ndb-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.5rem; }
.ndb-pros, .ndb-cons { padding: 1.15rem 1.25rem; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-border); }
.ndb-pros { background: linear-gradient(160deg, var(--c-good-soft), transparent 55%), var(--c-surface); }
.ndb-cons { background: linear-gradient(160deg, var(--c-bad-soft), transparent 55%), var(--c-surface); }
.ndb-pros .ndb-icon { color: var(--c-good); }
.ndb-cons .ndb-icon { color: var(--c-bad); }

/* Test protocol */
.ndb-facts--test { margin-bottom: 1.25rem; }
.ndb-timeline { list-style: none; margin: 0 0 1.25rem; padding: .25rem 0 .25rem 1.4rem; position: relative; display: grid; gap: .7rem; }
.ndb-timeline::before { content: ""; position: absolute; left: 5px; top: .9rem; bottom: .9rem; width: 2px; border-radius: 2px; background: linear-gradient(#fbbf24, #ec4899, #a855f7); }
.ndb-timeline li { position: relative; margin: 0; display: grid; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-border); }
.ndb-timeline li::before { content: ""; position: absolute; left: calc(-1.4rem + 1px); top: 1.05rem; width: 10px; height: 10px; border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-primary); }
.ndb-timeline li:last-child::before { background: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.ndb-timeline time { font-family: var(--f-mono); font-size: .72rem; color: var(--c-text-3); }
.ndb-timeline span { color: var(--c-text); }
.ndb-notes { padding: 1.1rem 1.25rem; background: var(--c-surface); border-radius: var(--r); border: 1px solid var(--c-border); }
.ndb-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin-top: 1rem; }
.ndb-gallery-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--c-border); display: block; }

/* Change log */
.ndb-log { list-style: none; margin: 0; padding: .35rem; display: grid; gap: .25rem; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.ndb-log li { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: baseline; padding: .65rem .85rem; margin: 0; border-radius: 12px; font-size: .875rem; color: var(--c-text-2); }
.ndb-log li:hover { background: var(--c-surface-2); }
.ndb-log time { font-family: var(--f-mono); font-size: .72rem; color: var(--c-text-3); }
.ndb-log a { color: var(--c-text); font-weight: 700; text-decoration: none; }
.ndb-log a:hover { color: var(--c-link); }

/* Stats */
.ndb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 0; }
.ndb-stats > div { position: relative; padding: 1rem 1.05rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; }
.ndb-stats dt { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; font-size: .75rem; color: var(--c-text-2); font-weight: 650; line-height: 1.3; }
.ndb-stats dd { margin: .3rem 0 0; font-family: var(--f-display); font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; color: var(--c-text); }
.ndb-stat__icon { --tone: var(--c-primary); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.ndb-stat--violet .ndb-stat__icon { --tone: var(--c-violet); }
.ndb-stat--cyan .ndb-stat__icon { --tone: var(--c-primary-2); }
.ndb-stat--pink .ndb-stat__icon { --tone: var(--c-pink); }
.ndb-stat--amber .ndb-stat__icon { --tone: var(--c-amber); }
.ndb-stat--blue .ndb-stat__icon { --tone: var(--c-blue); }

/* Tables */
.ndb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.ndb-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 0; color: var(--c-text); }
.ndb-table caption { text-align: left; padding: .9rem 1rem 0; font-weight: 700; font-size: .8125rem; color: var(--c-text-2); }
.ndb-table th, .ndb-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.ndb-table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-text-3); font-weight: 700; }
.ndb-table tbody tr:last-child > * { border-bottom: 0; }
.ndb-table tbody tr:hover > * { background: var(--c-surface-2); }
.ndb-table .ndb-num { text-align: right; }
.ndb-table th a { color: var(--c-text); text-decoration: none; }
.ndb-table th a:hover { color: var(--c-link); }
.ndb-table tbody th[scope="row"] { min-width: 150px; }

/* Responsible gambling */
.ndb-rg { padding: 1.15rem 1.3rem; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); font-size: .875rem; line-height: 1.6; color: var(--c-text-2); }
.ndb-rg p { margin: 0 0 .45rem; }
.ndb-rg p:last-child { margin: 0; }
.ndb-rg a { color: var(--c-link); }
.ndb-rg strong { color: var(--c-text); }
.ndb-rg__title { display: flex; gap: .65rem; align-items: center; font-weight: 750; font-size: .95rem; color: var(--c-text); }
.ndb-18 { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--c-bad); color: var(--c-bad); font-size: .72rem; font-weight: 800; flex: none; }
:root:not([data-theme="light"]) .ndb-18 { border-color: #fb7185; color: #fda4af; }
.ndb-rg--compact { padding: .55rem .8rem; font-size: .75rem; }

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1140px) {
	.ndb-offer { grid-template-columns: 210px minmax(0, 1fr) 220px; }
	.ndb-offer__metrics { grid-column: 1 / 3; grid-row: 2; }
	.ndb-offer__action { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
	.ndb-offer { grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem 1.1rem 1.15rem; }
	.ndb-offer__metrics, .ndb-offer__action { grid-column: auto; grid-row: auto; }
	.ndb-offer__metrics { grid-template-columns: 1.15fr 1fr 1.2fr; padding: .85rem .2rem; }
	.ndb-offer__metrics .ndb-metric--ev dt { white-space: normal; }
	.ndb-offer__rank { left: -8px; top: -10px; }
	.ndb-offer__title { font-size: 1.2rem; }
	.ndb-logo { width: 54px; height: 54px; border-radius: 14px; }
	.ndb-proscons { grid-template-columns: 1fr; }
	.ndb-inline { flex-direction: column; }
	.ndb-hist li { grid-template-columns: 82px 1fr 44px; }
	.ndb-tip::after { left: auto; right: -8px; transform: none; width: 210px; }
	.ndb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ndb-facts > div { padding: .75rem .85rem; }
	.ndb-ev__results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ndb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ndb-stats dd { font-size: 1.35rem; }
	.ndb-metric--ev dd { font-size: 1.4rem; }
	.ndb-ring { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.ndb-offer, .ndb-btn, .ndb-hist__bar span { transition: none; }
	.ndb-offer:hover, .ndb-btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Casino skin additions
   ----------------------------------------------------------------------- */
.ndb-offer__status { position: absolute; right: 1.1rem; top: 1rem; z-index: 2; }
.ndb-offer__ended { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; font-size: .84rem; }
.ndb-offer__ended .ndb-icon { color: var(--c-primary); }
.ndb-offer__action .ndb-btn { padding: .7rem .9rem; font-size: .9rem; white-space: nowrap; }
.ndb-offer__action .ndb-btn--ghost-gold, .ndb-offer__action .ndb-btn--primary { width: 100%; }
.ndb-pill--ended { background: rgba(0, 0, 0, .35); color: var(--c-text-2); border-color: var(--c-border-2); }
:root[data-theme="light"] .ndb-pill--ended { background: var(--c-surface-3); }
.ndb-offer__facts li .ndb-icon { color: var(--c-primary); }
.ndb-fair--a small, .ndb-fair--b small { color: var(--c-text); }
.ndb-rg { position: relative; background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface) 60%) padding-box, var(--g-neon) border-box; border: 1px solid transparent; box-shadow: var(--shadow-neon); }
.ndb-rg__title { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.ndb-18 { border-width: 2.5px; font-family: var(--f-display); font-weight: 800; }
.ndb-rg a { color: var(--c-link); font-weight: 650; }
.ndb-stat__icon { --tone: var(--c-primary); }
.ndb-stats dd { font-weight: 800; }
@media (max-width: 760px) {
	.ndb-offer { padding: 1.4rem 1.1rem 1.2rem; }
	.ndb-offer__status { right: .9rem; top: .9rem; }
	.ndb-offer__brand { padding-right: 4.5rem; }
	.ndb-metric--ev dd { font-size: 1.55rem; }
}
