/* PUDDLE icon system - Lucide-style line icons (see icons.js). Loaded last so it wins over legacy icon rules. */
svg.ic, .ic-wrap > svg {
    display: inline-block; flex: none; vertical-align: -0.125em;
    fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
    transition: color .15s ease, transform .15s ease, opacity .15s ease, filter .15s ease;
}
:where(svg.ic:not([width])) { width: 1.1em; height: 1.1em; }
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; }
.ic-wrap > svg { width: 1em; height: 1em; }

/* sizes */
svg.ic-16, .ic-16 > svg { width: 16px; height: 16px; }
svg.ic-18, .ic-18 > svg { width: 18px; height: 18px; }
svg.ic-20, .ic-20 > svg { width: 20px; height: 20px; }
svg.ic-22, .ic-22 > svg { width: 22px; height: 22px; }
svg.ic-24, .ic-24 > svg { width: 24px; height: 24px; }

/* ---- sidebar navigation ---- */
svg.nav-ico { width: 19px; height: 19px; stroke-width: 1.75; opacity: .72; transition: color .15s ease, opacity .15s ease, transform .15s ease, filter .15s ease; }
.nav-item:hover svg.nav-ico { opacity: 1; color: var(--ice, #64d2ff); transform: translateX(1px) scale(1.05); }
.nav-item.active svg.nav-ico { opacity: 1; color: var(--ice, #64d2ff); filter: drop-shadow(0 0 6px rgba(100, 210, 255, .55)); }
.nav-item.active { background: linear-gradient(90deg, rgba(100, 210, 255, .12), rgba(100, 210, 255, .02) 85%), var(--bg-2, #1c1c21); }
.nav-item.active::before { box-shadow: 0 0 10px rgba(100, 210, 255, .7); }
.nav-item svg.btn-ico, .sidebar-footer svg.btn-ico { width: 17px; height: 17px; stroke-width: 1.75; }
html.nav-collapsed .nav-item svg.nav-ico { width: 20px; height: 20px; }

/* ---- top bar ---- */
.topbar .icon-btn svg.ic { width: 20px; height: 20px; opacity: .8; }
.topbar .icon-btn:hover svg.ic, .topbar .icon-btn.active svg.ic { opacity: 1; color: var(--ice, #64d2ff); }
.topbar .icon-btn { transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.topbar .icon-btn:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tb-bell.active svg.ic, .tb-bell:hover svg.ic { animation: icRing .5s ease; transform-origin: 50% 0; }
@keyframes icRing { 0%,100% { transform: rotate(0) } 20% { transform: rotate(14deg) } 40% { transform: rotate(-12deg) } 60% { transform: rotate(8deg) } 80% { transform: rotate(-4deg) } }
.wallet-pill svg.wp-chev { width: 14px; height: 14px; opacity: .7; }
.wallet-pill:hover svg.wp-chev { opacity: 1; }

/* ---- wallet popup ---- */
.wallet-tabs svg.wt-ico { width: 18px; height: 18px; stroke-width: 1.75; opacity: .75; transition: color .15s ease, opacity .15s ease; }
.wtab:hover svg.wt-ico { opacity: 1; }
.wtab.active svg.wt-ico { opacity: 1; color: var(--ice, #64d2ff); }
svg.dd-chev { width: 18px; height: 18px; stroke-width: 1.75; }

/* ---- mobile bottom nav ---- */
.m-tabbar svg { width: 22px; height: 22px; stroke-width: 1.75; opacity: .75; transition: opacity .15s ease, transform .15s ease, filter .15s ease; }
.m-tabbar .on svg { opacity: 1; filter: drop-shadow(0 0 6px rgba(100, 210, 255, .55)); transform: translateY(-1px); }

/* ---- icon chips (feature / section icons) ---- */
.ic-chip, .st-hero-ico, .sf-lic-ico, .orig-glyph:not(.has-img) {
    --chip: 100, 210, 255;
}
.ic-chip {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 12px; color: var(--ice, #64d2ff);
    background: linear-gradient(145deg, rgba(var(--chip), .16), rgba(var(--chip), .05));
    box-shadow: inset 0 0 0 1px rgba(var(--chip), .22), inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ic-chip svg.ic { width: 20px; height: 20px; }
.ic-chip.sm { width: 32px; height: 32px; border-radius: 10px; } .ic-chip.sm svg.ic { width: 16px; height: 16px; }
.ic-chip.lg { width: 48px; height: 48px; border-radius: 14px; } .ic-chip.lg svg.ic { width: 24px; height: 24px; }
.ic-chip.win { --chip: 48, 209, 88; color: var(--win, #30d158); }
.ic-chip.loss { --chip: 255, 24, 65; color: var(--loss, #ff1841); }
.ic-chip.gold { --chip: 255, 200, 87; color: #ffc857; }
a:hover > .ic-chip, .card:hover .ic-chip, .ic-chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(var(--chip), .4), inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(var(--chip), .18); }

.st-hero-ico, .sf-lic-ico { color: var(--ice, #64d2ff); }
.st-hero-ico svg.ic { stroke-width: 1.75; }
.sf-lic-ico svg.ic { width: 18px; height: 18px; }
.orig-glyph svg.ic { stroke-width: 1.6; }
.st-link svg.ic { transition: transform .15s ease; }
.st-link:hover svg.ic { transform: translateX(3px); }
.home-search svg.ic { width: 18px; height: 18px; opacity: .6; }
.fg svg.ic { opacity: .8; width: 16px; height: 16px; }
.search-pop .input-box svg.ic { width: 18px; height: 18px; opacity: .65; }
.support-send svg.ic { width: 18px; height: 18px; stroke-width: 1.75; }

/* inline icon next to text */
.ic-inline { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.btn svg.ic { width: 16px; height: 16px; }
.btn:hover svg.ic { transform: translateX(0); }
a.btn:hover svg.ic-go { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
    svg.ic, .ic-chip { transition: none !important; }
    .tb-bell:hover svg.ic, .tb-bell.active svg.ic { animation: none; }
}

/* ---- stat cards: icon chip beside the label ---- */
.stat-card .sc-label svg.sc-ic {
    width: 26px; height: 26px; padding: 5px; margin: -3px 9px -3px 0; border-radius: 8px; color: var(--ice, #64d2ff);
    background: linear-gradient(145deg, rgba(100, 210, 255, .16), rgba(100, 210, 255, .04));
    box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.stat-card { transition: border-color .15s ease, transform .15s ease; }
.stat-card:hover svg.sc-ic { color: #fff; box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .4), 0 0 14px rgba(100, 210, 255, .2); }

/* ---- account tabs ---- */
.acc-tab svg.tab-ic { width: 16px; height: 16px; opacity: .7; }
.acc-tab:hover svg.tab-ic { opacity: 1; }
.acc-tab.active svg.tab-ic { opacity: 1; color: var(--ice, #64d2ff); }

/* ---- promo cards ---- */
.promo .pk svg.ic { width: 16px; height: 16px; color: var(--ice, #64d2ff); }
.promo .pk:has(svg.ic)::before { display: none; }
.promo .pk { align-items: center; }

/* ---- footer ---- */
.sf-col h5 { display: flex; align-items: center; gap: 8px; }
.sf-col h5 svg.ic { width: 14px; height: 14px; color: var(--ice, #64d2ff); opacity: .85; }
.sf-col a svg.sf-ic, .sf-col button svg.sf-ic { width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; opacity: .45; transition: opacity .15s ease, color .15s ease; }
.sf-col a:hover svg.sf-ic, .sf-col button:hover svg.sf-ic { opacity: 1; color: var(--ice, #64d2ff); }

/* ---- lobby / original game glyph chips ---- */
.orig-glyph:not(.has-img) {
    color: var(--ice, #64d2ff);
    background: linear-gradient(145deg, rgba(100, 210, 255, .18), rgba(100, 210, 255, .05)), var(--bg-2, #1c1c21);
    box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.orig:hover .orig-glyph:not(.has-img) { color: #fff; transform: translateY(-1px) scale(1.04); box-shadow: inset 0 0 0 1px rgba(100, 210, 255, .45), 0 6px 18px rgba(100, 210, 255, .18); }
