/* Kinetic theme for PayNow.gg — app.css
   Colours, fonts and corner style come from the theme settings as CSS variables (see partials/head.html). */

/* ---------- base ---------- */
:root {
    --surface-2: color-mix(in srgb, var(--surface) 82%, #fff 4%);
    --line: color-mix(in srgb, var(--text) 10%, transparent);
    --muted: color-mix(in srgb, var(--text) 60%, transparent);
    --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
    --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
    --accent-dark: color-mix(in srgb, var(--accent) 70%, #000);
    --green: #4ade80;
    --red: #f87171;
    --gold: #fbbf24;
    --shadow: 0 18px 44px -24px rgba(0, 0, 0, .8);
    --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        var(--bg-image, none) center top / cover no-repeat;
    opacity: 1;
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 0, var(--bg) 70vh); opacity: calc(1 - var(--bg-image-opacity)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.content { display: flex; flex-direction: column; gap: 20px; padding: 22px 0 60px; flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.accent { color: var(--accent); }
.err { color: var(--red); font-size: .85rem; }

/* ---------- surfaces & buttons ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 42px; padding: 0 18px;
    border-radius: calc(var(--radius) * .75); font: 700 .92rem var(--font-body); letter-spacing: .02em; color: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
    box-shadow: 0 4px 0 var(--accent-dark), 0 10px 24px -12px var(--accent); transition: transform .12s, box-shadow .12s, filter .15s;
    white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { height: 34px; padding: 0 12px; font-size: .82rem; box-shadow: 0 3px 0 var(--accent-dark); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent-line); filter: none; }
.btn-ghost:active { box-shadow: none; transform: translateY(1px); }
.btn-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 85%, #fff), var(--accent-2)); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent-2) 60%, #000); color: #100d0b; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.icon-btn:hover { border-color: var(--accent-line); }
.tag { display: inline-flex; align-items: center; gap: .35em; height: 24px; padding: 0 9px; border-radius: 6px; font: 800 .68rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-line); }
.tag-gold { background: linear-gradient(180deg, #fde68a, var(--gold)); color: #3b2600; border-color: #fde68a; }
.tag-green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.pill { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.pill-completed, .pill-active { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.pill-canceled { color: var(--red); }

/* ---------- sale bar ---------- */
.sale-bar {
    display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 12px; color: #fff; font-weight: 700;
    background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--accent-dark) 14px 28px); background-size: 39.6px 39.6px;
    animation: stripes 1.4s linear infinite;
}
.sale-bar[hidden] { display: none; }
@keyframes stripes { to { background-position: 39.6px 0; } }
.sale-bar-tag { background: #fff; color: var(--accent-dark); font-weight: 900; text-transform: uppercase; font-size: .72rem; padding: 2px 8px; border-radius: 5px; animation: wobble 1.8s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.08); } }
.sale-bar-text { font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.countdown { display: inline-flex; gap: 5px; }
.cd-box { display: inline-flex; align-items: baseline; gap: 2px; background: rgba(0, 0, 0, .35); border-radius: 6px; padding: 2px 7px; }
.cd-box b { font-weight: 900; min-width: 1.2em; text-align: center; }
.cd-box small { font-size: .65em; opacity: .85; font-weight: 700; }

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); position: relative; z-index: 30; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.topbar-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.topbar-links a:hover { color: var(--text); background: var(--surface); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.players { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.players b { color: var(--text); }
.players-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.players.is-online .players-dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.cur { position: relative; }
.cur-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.cur-btn .fa-coins { color: var(--accent); }
.cur-chev { font-size: .6rem; transition: transform .2s; }
.cur-chev.is-open { transform: rotate(180deg); }
.cur-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 220px; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 50; }
.cur-menu button { padding: 6px 0; border-radius: 7px; font-size: .78rem; font-weight: 700; background: var(--surface-2); }
.cur-menu button:hover, .cur-menu button.is-active { background: var(--accent); color: #fff; }
.cur-menu .cur-main { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; align-items: center; }
.cur-main span { font-size: .6rem; background: var(--green); color: #052e12; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; }
.cur-menu p { grid-column: 1 / -1; margin-top: 3px; font-size: .7rem; color: var(--muted); line-height: 1.35; }

/* ---------- header ---------- */
.header { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.logo { position: relative; z-index: 2; margin-bottom: -26px; transition: transform .25s; }
.logo:hover { transform: scale(1.03) rotate(-1deg); }
.logo img { height: var(--logo-h, 120px); width: auto; max-width: 70vw; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)); }
.logo-text { display: block; padding: 10px 0 34px; font: 400 clamp(2.4rem, 6vw, 4rem)/1 var(--font-head); text-transform: uppercase; color: var(--text); text-shadow: 0 4px 0 var(--accent-dark), 0 12px 30px rgba(0, 0, 0, .5); }
.header-card { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 40px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hc-side { display: flex; align-items: center; min-width: 0; }
.hc-right { justify-content: flex-end; }
.acc { position: relative; }
.acc-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 6px 10px 6px 6px; border-radius: 14px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface-2); border: 1px solid var(--accent-line); transition: border-color .15s, transform .15s; max-width: 100%; }
.acc-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.acc-avatar { width: 42px; height: 42px; border-radius: 10px; image-rendering: pixelated; background: rgba(0, 0, 0, .3); flex: none; }
.acc-avatar-empty { display: grid; place-items: center; color: var(--accent); }
.acc-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; min-width: 0; }
.acc-text small { display: flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.acc-text b { font-weight: 800; font-size: 1rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.acc-chev { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .25); font-size: .62rem; transition: transform .2s; }
.acc-chev.is-open { transform: rotate(180deg); }
.acc-menu { position: absolute; left: 0; top: calc(100% + 8px); width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; }
.acc-menu a, .acc-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: .88rem; font-weight: 600; text-align: left; }
.acc-menu a:hover, .acc-menu button:hover { background: var(--accent-soft); }
.acc-menu i { width: 16px; color: var(--accent); }
.ip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 8px; text-align: center; min-width: 0; }
.ip-text { font: 400 clamp(1.15rem, 2.4vw, 1.7rem)/1 var(--font-head); letter-spacing: .02em; white-space: nowrap; transition: color .15s; }
.ip-text i { font-size: .6em; color: var(--accent); vertical-align: middle; margin-left: 4px; }
.ip:hover .ip-text { color: var(--accent); }
.ip-sub { font-size: .74rem; color: var(--muted); }
.ip-name { font: 400 1.6rem var(--font-head); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 6px 8px 6px 6px; border-radius: 14px; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); box-shadow: 0 4px 0 var(--accent-dark), 0 12px 28px -12px var(--accent); transition: transform .12s; }
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.cart-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, .2); font-size: 1.1rem; }
.cart-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.cart-text b { font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.cart-text small { font-size: .75rem; font-weight: 700; opacity: .9; }
.cart-count { min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .25); font-weight: 900; font-size: .85rem; }
.cart-count.has-items { background: #fff; color: var(--accent-dark); }
.cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.cat-nav a { padding: 8px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; transition: all .15s; }
.cat-nav a:hover, .cat-nav a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.notice { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--red) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.notice span { flex: 1; }

/* ---------- home ---------- */
.sale-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: var(--radius); color: #fff; background: linear-gradient(115deg, var(--accent), color-mix(in srgb, var(--accent-2) 70%, var(--accent))); box-shadow: 0 20px 50px -24px var(--accent); }
.sale-card[hidden] { display: none; }
.sale-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0 20%, transparent 20% 26%, rgba(255, 255, 255, .08) 26% 32%, transparent 32%); }
.sale-card > * { position: relative; }
.sale-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 8px 20px rgba(0, 0, 0, .2); }
.sale-card p { font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.sale-card-img { max-height: 120px; width: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); animation: float 4s ease-in-out infinite; }
.sale-card-time { text-align: right; }
.sale-card-time > small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.countdown-lg { gap: 8px; margin-top: 6px; }
.countdown-lg .cd-box { flex-direction: column; align-items: center; width: 62px; padding: 8px 0; background: rgba(255, 255, 255, .18); border-radius: 10px; }
.countdown-lg .cd-box b { font: 400 1.7rem/1 var(--font-head); }
.countdown-lg .cd-box small { text-transform: uppercase; font-size: .6rem; letter-spacing: .08em; }
@keyframes float { 50% { transform: translateY(-8px); } }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { --tile: var(--accent); position: relative; overflow: hidden; min-height: 160px; display: flex; align-items: center; padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--tile), color-mix(in srgb, var(--tile) 55%, #000)); border: 1px solid color-mix(in srgb, var(--tile) 60%, #fff 10%); box-shadow: 0 18px 40px -22px var(--tile); transition: transform .2s, box-shadow .2s; color: #fff; }
.tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px var(--tile); }
.tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.tile-text b { font: 400 clamp(1.7rem, 3.4vw, 2.4rem)/1 var(--font-head); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.tile-text small { font-weight: 700; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.tile-text small i { transition: transform .2s; }
.tile:hover .tile-text small i { transform: translateX(4px); }
.tile-img { position: relative; z-index: 1; margin-left: auto; width: 130px; height: 130px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .4)); transition: transform .3s; }
.tile:hover .tile-img { transform: scale(1.1) rotate(-4deg); }
.tiles .tile:only-child { grid-column: 1 / -1; }

.featured { display: flex; align-items: center; gap: 26px; padding: 22px 28px; border-radius: var(--radius); background: radial-gradient(ellipse 40% 130% at 6% 50%, var(--accent-soft), transparent 70%), var(--surface); border: 2px solid var(--accent-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 6%, transparent), var(--shadow); }
.featured-img { flex: none; width: 120px; height: 120px; display: grid; place-items: center; font-size: 3rem; color: var(--accent); }
.featured-img img { max-height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); transition: transform .25s; }
.featured:hover .featured-img img { transform: scale(1.05) rotate(-3deg); }
.featured-body { flex: 1; min-width: 0; }
.featured-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: uppercase; margin: 10px 0 6px; }
.featured-body p { color: var(--muted); max-width: 34rem; }
.featured-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.featured-btns { display: flex; gap: 10px; }
.featured-buy small { color: var(--muted); font-size: .76rem; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info { padding: 22px; }
.info h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 8px; }
.info h3 i { color: var(--accent); font-size: .9em; }
.info p { color: var(--muted); }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; flex-wrap: wrap; }
.join h3 { font-size: 1.4rem; margin-bottom: 4px; }
.join p { color: var(--muted); }
.join-ips { display: flex; gap: 10px; flex-wrap: wrap; }
.join-ip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s; }
.join-ip:hover { border-color: var(--accent); }
.join-ip small { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.join-ip i { color: var(--muted); }

/* ---------- modules ---------- */
.module { padding: 20px; }
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.module-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.module-head h3 i { color: var(--accent); font-size: .85em; }
.goal-pct { font: 400 1.5rem var(--font-head); color: var(--accent); }
.goal-bar { height: 16px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.goal-bar span { display: block; height: 100%; min-width: 12px; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.goal-bar.is-striped span { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 10px, transparent 10px 20px), linear-gradient(90deg, var(--accent), var(--accent-2)); background-size: 28px 28px, auto; }
.goal-bar.is-animated span { animation: stripes 1s linear infinite; }
.goal-amount { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.goal-amount span { color: var(--text); font-weight: 700; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; }
.podium-spot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.podium-spot img, .podium-empty { width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; }
.podium-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.podium-spot b { font-size: .82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-spot small { font-size: .74rem; color: var(--accent); font-weight: 700; }
.podium-block { width: 100%; display: grid; place-items: center; border-radius: 10px 10px 4px 4px; font: 400 1.4rem var(--font-head); background: var(--surface-2); border: 1px solid var(--line); height: 46px; }
.place-1 .podium-block { height: 70px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #fff; border: 0; }
.place-2 .podium-block { height: 56px; }
.place-1 img { width: 58px; height: 58px; box-shadow: 0 0 0 2px var(--gold); }
.top-rest { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: rest 3; }
.top-rest li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: .85rem; counter-increment: rest; }
.top-rest li::before { content: counter(rest); color: var(--muted); font-weight: 800; width: 16px; }
.top-rest img { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--green); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.recent-item { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.recent-item img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; margin-bottom: 3px; }
.recent-item b { font-size: .78rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item small { font-size: .7rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-row { display: flex; gap: 8px; }
.gift-row input, .input-wrap input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); outline: none; }
.gift-row input:focus, .input-wrap input:focus { border-color: var(--accent); }
.gift-balance { margin-top: 10px; }

/* ---------- category ---------- */
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cat-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.cat-head p { color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs a { padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: .85rem; color: var(--muted); transition: all .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { background: var(--accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product { position: relative; display: flex; flex-direction: column; overflow: visible; transition: transform .2s, border-color .2s; }
.grid .product:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.product-label { position: absolute; top: -10px; right: 12px; z-index: 3; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 6px; font: 800 .66rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; background: linear-gradient(180deg, #fde68a, var(--gold)); color: #3b2600; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.product-img { position: relative; height: 170px; margin: 10px 10px 0; border-radius: calc(var(--radius) * .75); display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 70%), var(--surface-2); font-size: 3rem; color: var(--accent); }
.product-img img { max-width: 72%; max-height: 80%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); transition: transform .25s; }
.product:hover .product-img img { transform: scale(1.07) rotate(-3deg); }
.product-sale { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 900; padding: 2px 7px; border-radius: 6px; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.product-body h3 { font-size: 1.2rem; text-transform: uppercase; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price b { color: var(--accent); font-weight: 800; }
.price s { color: var(--muted); font-size: .85em; }
.price small { color: var(--muted); font-size: .8em; }
.price-lg b { font-size: 1.6rem; }
.product-btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-state i { font-size: 2.4rem; color: var(--accent); margin-bottom: 10px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 4px; }

/* rank table */
.rank-table-card { padding: 6px; }
.rank-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rank-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 5px; font-size: .88rem; }
.rank-table th, .rank-table td { padding: 10px 8px; text-align: center; border-radius: 9px; background: var(--surface-2); }
.rank-table th { vertical-align: bottom; font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; text-transform: uppercase; }
.rank-table th img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; margin: 0 auto 6px; }
.rank-table .rt-label { text-align: left; background: transparent; color: var(--muted); font-family: var(--font-body); font-size: .85rem; font-weight: 700; text-transform: none; }
.rank-table .is-top { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.rt-yes { color: var(--green); }
.rt-no { color: var(--muted); }
.rt-buy td b { display: block; color: var(--accent); margin-bottom: 6px; }
.rt-buy .btn { width: 100%; }
.rt-owned { color: var(--green); font-weight: 800; font-size: .8rem; text-transform: uppercase; }

/* coin slider */
.slider-card { padding: 22px; }
.slider-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.slider-img { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.slider-img img { max-height: 85%; object-fit: contain; image-rendering: pixelated; }
.slider-info { flex: 1; min-width: 200px; }
.slider-info small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.slider-info h2 { font-size: 2rem; text-transform: uppercase; margin: 4px 0; }
.slider-info p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slider-info p b { font-size: 1.3rem; color: var(--accent); }
.slider-rate { color: var(--muted); font-size: .85rem; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin: 22px 0 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }
.slider-marks { display: flex; justify-content: space-between; gap: 6px; }
.slider-marks button { flex: 1; padding: 6px 0; border-radius: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.slider-marks button.is-active { background: var(--accent); color: #fff; }

/* rank upgrades */
.upgrade { padding: 26px; }
.ladder { list-style: none; margin: 0 0 24px; padding: 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ladder li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; opacity: .45; }
.ladder li.is-owned, .ladder li.is-next { opacity: 1; }
.ladder-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); }
.ladder-icon img { width: 80%; height: 80%; object-fit: contain; image-rendering: pixelated; }
.is-owned .ladder-icon { border-color: var(--green); }
.is-next .ladder-icon { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 24px var(--accent-soft); }
.upgrade-msg { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.upgrade-msg h2 { font-size: 2rem; text-transform: uppercase; }
.upgrade-msg p { color: var(--muted); max-width: 30rem; }
.upgrade-offer { display: flex; gap: 26px; align-items: flex-start; }
.upgrade-img { flex: none; width: 140px; height: 140px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle, var(--accent-soft), var(--surface-2) 70%); }
.upgrade-img img { max-height: 80%; object-fit: contain; image-rendering: pixelated; }
.upgrade-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.upgrade-body > small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.upgrade-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); text-transform: uppercase; }
.upgrade-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.upgrade-price b { font-size: 1.5rem; color: var(--accent); }
.upgrade-price s { color: var(--muted); }
.upgrade-note { color: var(--muted); font-size: .76rem; }
.perks ul, .modal-desc ul, .pp-desc ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.perks li, .modal-desc li, .pp-desc li { position: relative; padding: 8px 10px 8px 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.perks li::before, .modal-desc li::before, .pp-desc li::before { content: "\f00c"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 900 .55rem/1 "Font Awesome 6 Free"; }
.perks p, .modal-desc p, .pp-desc p { margin: 6px 0; color: var(--muted); }
.perks strong, .modal-desc strong, .pp-desc strong { color: var(--text); }

/* ---------- product page ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.crumbs i { font-size: .6rem; }
.crumbs a:hover { color: var(--accent); }
.product-page { flex-direction: row; gap: 28px; padding: 26px; }
.pp-img { flex: none; width: 280px; height: 280px; display: grid; place-items: center; border-radius: var(--radius); background: radial-gradient(circle, var(--accent-soft), var(--surface-2) 70%); font-size: 4rem; color: var(--accent); }
.pp-img img { max-width: 80%; max-height: 80%; object-fit: contain; image-rendering: pixelated; }
.pp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
.pp-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pp-note { color: var(--muted); font-size: .85rem; }

/* ---------- cart ---------- */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.drawer-head h3 i { color: var(--accent); font-size: .85em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-link { align-self: center; color: var(--muted); font-size: .85rem; text-decoration: underline; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 10px; color: var(--muted); }
.empty i { font-size: 2.2rem; color: var(--accent); }
.line { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.line-img { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--accent); }
.line-img img { max-width: 80%; max-height: 80%; object-fit: contain; image-rendering: pixelated; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-info b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-info small { color: var(--muted); font-size: .8rem; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 26px; height: 26px; border-radius: 7px; background: rgba(0, 0, 0, .3); font-size: .65rem; }
.qty button:hover { background: var(--accent); color: #fff; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total b { font: 400 1.6rem var(--font-head); color: var(--accent); }
.upsell { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.upsell-title { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.upsell-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--accent-line); text-align: left; transition: background .15s; }
.upsell-item:hover { background: var(--accent-soft); }
.upsell-item img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.upsell-item span { flex: 1; font-weight: 600; font-size: .88rem; }
.upsell-item b { color: var(--accent); font-size: .85rem; }
.cart-page { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.cart-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.line-lg .line-total { min-width: 70px; text-align: right; }
.cart-summary { padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.cart-summary h3 { font-size: 1.3rem; }

/* ---------- modal ---------- */
.modal-overlay { display: grid; place-items: center; padding: 16px; z-index: 95; }
.modal { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-head { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.modal-img { flex: none; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle, var(--accent-soft), var(--surface-2) 70%); font-size: 2rem; color: var(--accent); }
.modal-img img { max-width: 80%; max-height: 80%; object-fit: contain; image-rendering: pixelated; }
.modal-head h3 { font-size: 1.7rem; text-transform: uppercase; margin-top: 6px; }
.modal-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.modal-price b { font-size: 1.3rem; color: var(--accent); }
.modal-price s, .modal-price small { color: var(--muted); }
.modal-desc { margin: 18px 0; }
.modal-gift { margin-bottom: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.modal-gift label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.modal-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-btns .btn { flex: 1; }

/* ---------- account, login, pages ---------- */
.table-card { padding: 8px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.row-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.row-main small { color: var(--muted); font-size: .8rem; }
.row-amount { font-weight: 800; }
.login { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; max-width: 900px; width: 100%; margin: 0 auto; }
.login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; background: radial-gradient(ellipse at 50% 30%, var(--accent-soft), transparent 70%), var(--surface-2); }
.login-skin { height: 150px; image-rendering: pixelated; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.login-side h2 { font-size: 1.6rem; text-transform: uppercase; }
.login-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; font-size: .9rem; color: var(--muted); }
.login-side li i { color: var(--accent); width: 20px; }
.login-form { display: flex; flex-direction: column; gap: 12px; padding: 34px; }
.login-form h1 { font-size: 2.2rem; text-transform: uppercase; }
.login-form label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.edition { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.edition button { height: 46px; border-radius: 10px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); }
.edition button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.input-wrap { display: flex; align-items: center; gap: 0; }
.input-prefix { height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px 0 0 10px; background: var(--accent); color: #fff; font-weight: 800; }
.input-prefix + input { border-radius: 0 10px 10px 0; }
.input-wrap input { height: 46px; }
.complete { padding: 46px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.complete-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #052e12; font-size: 2rem; box-shadow: 0 0 0 10px color-mix(in srgb, var(--green) 18%, transparent); }
.complete h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.complete-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.page-text { padding: 22px; line-height: 1.7; }
.page-text h2, .page-text h3 { margin: 18px 0 8px; }
.page-text a { color: var(--accent); text-decoration: underline; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; text-align: left; font-weight: 700; }
.faq-item button i { color: var(--accent); transition: transform .2s; }
.faq-item.is-open button i { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: var(--muted); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 14px; padding: 16px 18px; }
.rule-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font: 400 1.1rem var(--font-head); }
.rules h3 { font-size: 1.15rem; margin-bottom: 4px; }
.rules p { color: var(--muted); }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vote-site { display: flex; align-items: center; gap: 12px; padding: 16px; transition: border-color .15s, transform .15s; }
.vote-site:hover { border-color: var(--accent); transform: translateY(-2px); }
.vote-num { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font: 400 1.1rem var(--font-head); }
.vote-name { flex: 1; min-width: 0; font-weight: 800; display: flex; flex-direction: column; }
.vote-name small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.vote-go { color: var(--accent); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.staff { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; text-align: center; border-top: 3px solid var(--role); }
.staff img { width: 80px; height: 80px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); transition: transform .25s; }
.staff:hover img { transform: translateY(-4px) rotate(-4deg); }
.staff b { font-size: 1rem; }
.staff-role { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; color: var(--role); background: color-mix(in srgb, var(--role) 14%, transparent); }

/* ---------- footer & toast ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0 28px; }
.footer h4 { font-size: 1.15rem; margin-bottom: 12px; }
.footer-about p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); font-size: .9rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: all .15s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--accent-line); box-shadow: var(--shadow); font-weight: 600; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast .fa-circle-check { color: var(--green); }
.toast .fa-circle-exclamation { color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .header-card { grid-template-columns: 1fr 1fr; padding-top: 34px; }
    .ip { grid-column: 1 / -1; grid-row: 1; }
    .featured { flex-wrap: wrap; }
    .featured-buy { width: 100%; align-items: stretch; }
    .featured-btns .btn { flex: 1; }
    .cart-page { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .product-page { flex-direction: column; }
    .pp-img { width: 100%; height: 220px; }
}
@media (max-width: 640px) {
    .tiles, .info-grid { grid-template-columns: 1fr; }
    .tile { min-height: 130px; }
    .tile-img { width: 96px; height: 96px; }
    .sale-card { flex-direction: column; text-align: center; padding: 22px 18px; }
    .sale-card-time { text-align: center; }
    .sale-bar { gap: 7px; padding: 6px 8px; }
    .sale-bar-text { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .cd-box { padding: 1px 4px; font-size: .8rem; }
    .topbar-links span { display: none; }
    .acc-text, .cart-text { display: none; }
    .acc-btn, .cart-btn { height: 50px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-img { height: 120px; }
    .product-body h3 { font-size: 1rem; }
    .product-btns { grid-template-columns: 1fr; }
    .product-btns .btn-ghost span { display: none; }
    .upgrade-offer { flex-direction: column; align-items: center; text-align: center; }
    .upgrade-price { justify-content: center; }
    .login { grid-template-columns: 1fr; }
    .login-side { display: none; }
    .login-form { padding: 24px; }
    .modal { padding: 20px; }
    .modal-btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   RainbowGens look: flat navy, green buttons, chunky pixel titles,
   solid candy tiles. Overrides the base styles above.
   ===================================================================== */
:root {
    --wrap: 1000px;
    --surface-2: #4e3d2a;
    --line: rgba(255, 255, 255, .07);
    --muted: #c9b8a3;
    --green: #4ade80; --green-dark: #22a85a;
    --pink: #ffdc5f;
    --rainbow: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316);
    --shadow: none;
}
html, body { overflow-x: clip; }
body { font-size: 15px; }
body::before, body::after { display: none; }
h1, h2, h3, h4 { letter-spacing: .02em; }
.content { gap: 28px; padding: 26px 0 80px; }
.card { background: var(--surface); border: 0; box-shadow: none; }

/* buttons: green primary, dark ghost, black on light panels */
.btn {
    height: 40px; padding: 0 18px; border-radius: 8px; font: 700 .9rem var(--font-body); letter-spacing: 0;
    background: var(--green); color: #082414; box-shadow: none; transition: background .15s, transform .1s;
}
.btn:hover { background: #63eb93; transform: none; filter: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled, .btn.is-disabled { background: #664e33; color: #ad9b86; opacity: 1; }
.btn-sm { height: 34px; box-shadow: none; }
.btn-lg { height: 48px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-dark { background: #281f15; color: #fff; height: 44px; padding: 0 22px; }
.btn-dark:hover { background: #4c3c29; }

/* sale bar */
.sale-bar { display: flex; justify-content: center; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: #fbf3ee; color: #30261a; font-size: .78rem; font-weight: 500; box-shadow: none; }
.sale-bar > i { color: #f68e3b; font-size: .7rem; }
.sale-bar .dot { opacity: .5; }

/* header */
.header { padding: 0; display: block; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.header-left, .header-right { display: flex; align-items: center; gap: 22px; }
.header-right { gap: 10px; }
.logo { display: inline-flex; }
.logo img { height: var(--logo-h, 30px); width: auto; max-width: 220px; object-fit: contain; }
.wordmark { display: inline-flex; font: 400 34px/1 var(--font-head); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); white-space: nowrap; }
.wm-white { color: #fff; }
.ip { display: inline-flex; align-items: center; gap: 6px; color: #eaded0; font-size: .8rem; font-weight: 600; }
.ip i { font-size: .75rem; opacity: .8; }
.ip:hover { color: #fff; }
.head-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; font-size: .85rem; color: #fff; }
.head-btn b { font-weight: 700; }
.head-btn:hover { background: rgba(255, 255, 255, .06); }
.cart-btn { background: rgba(255, 255, 255, .05); }
.cart-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; position: static; box-shadow: none; transform: none; }
.acc { position: relative; }
.acc-avatar { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.acc-menu { right: 0; left: auto; top: calc(100% + 6px); }

/* page titles */
.page-title { font: 400 clamp(2.6rem, 6vw, 3.6rem)/.9 var(--font-head); text-transform: uppercase; color: #fff; letter-spacing: .02em; margin: 8px 0 -6px; }
.cat-head h1 { font: 400 clamp(2.6rem, 6vw, 3.6rem)/.9 var(--font-head); text-transform: uppercase; }
.cat-head p { color: var(--muted); }

/* featured: light panel */
.featured {
    display: block; padding: 0; border-radius: 16px; overflow: hidden; background: #faf0e9; color: #30261a; border: 0; box-shadow: none;
}
.featured-main { position: relative; display: grid; grid-template-columns: 1fr 320px; align-items: center; min-height: 330px; padding: 56px 46px 64px; }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.featured-kicker { color: #f68e3b; font-weight: 600; font-size: .85rem; }
.featured-body h2 { font: 400 clamp(3rem, 7vw, 4.6rem)/.85 var(--font-head); text-transform: uppercase; color: #30261a; max-width: 9ch; }
.featured-body p { color: #604d37; font-size: .95rem; }
.featured-buy { display: flex; align-items: center; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.featured-from { font-size: .9rem; color: #604d37; } .featured-from b { color: #30261a; font-size: 1rem; }
.featured-img { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 240px; background: none; border: 0; }
.featured-img img { max-height: 240px; width: auto; object-fit: contain; transition: transform .3s; }
.featured-img:hover img { transform: scale(1.04) rotate(-2deg); }
.featured-img > i { font-size: 7rem; color: #c9b44b; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .08)); }
.featured-ground {
    position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none;
    background:
        linear-gradient(#fff, #fff) 0 100% / 100% 22px no-repeat,
        repeating-linear-gradient(90deg, #fff 0 48px, transparent 48px 96px) 0 6px / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, transparent 0 24px, #fff 24px 72px, transparent 72px 96px) 0 12px / 100% 8px no-repeat;
    opacity: .85;
}
.featured-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 46px; background: #fff; font-size: .8rem; color: #604d37; }
.featured-timer b { color: #30261a; }
.featured-link { font-weight: 700; color: #30261a; font-size: .8rem; }
.featured-link:hover { text-decoration: underline; }

/* shop tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 168px; gap: 14px; }
.tiles .tile:first-child { grid-row: span 2; }
.tiles .tile:only-child { grid-row: auto; }
.tile {
    --tile: #ff4256; --ink: #fff;
    position: relative; overflow: hidden; display: flex; align-items: flex-start; min-height: 0; padding: 24px 26px;
    border-radius: 16px; background: var(--tile); color: var(--ink); border: 0; box-shadow: none; transition: transform .2s;
}
.tile::before { display: none; }
.tile:hover { transform: translateY(-3px); box-shadow: none; }
.tile:nth-child(8n+1) { --tile: #f23f5a; } .tile:nth-child(8n+2) { --tile: #fde74c; --ink: #30261a; }
.tile:nth-child(8n+3) { --tile: #5ef08a; --ink: #30261a; } .tile:nth-child(8n+4) { --tile: #f68546; --ink: #30261a; }
.tile:nth-child(8n+5) { --tile: #ffc05c; } .tile:nth-child(8n+6) { --tile: #ff9a2e; --ink: #30261a; }
.tile:nth-child(8n+7) { --tile: #ffa14f; } .tile:nth-child(8n+8) { --tile: #ffdc5f; }
.tile-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; max-width: 58%; }
.tile-text b { font: 400 clamp(2.2rem, 4.4vw, 2.9rem)/.85 var(--font-head); text-transform: uppercase; text-shadow: none; }
.tile-text small { font-size: .85rem; font-weight: 600; opacity: .9; }
.tile-text em { font-style: normal; font-size: .78rem; font-weight: 700; margin-top: 6px; }
.tile-img { position: absolute; z-index: 1; right: 4%; bottom: 50%; transform: translateY(50%); width: auto; height: 82%; max-width: 50%; object-fit: contain; transition: transform .3s; }
.tiles .tile:first-child .tile-img { height: 62%; bottom: 8%; transform: none; right: 6%; max-width: 70%; }
.tile:hover .tile-img { transform: translateY(50%) scale(1.05) rotate(-3deg); }
.tiles .tile:first-child:hover .tile-img { transform: scale(1.05) rotate(-3deg); }
@keyframes twinkle { 0%, 100% { transform: scale(.2); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.spark { position: absolute; z-index: 3; width: 26px; height: 26px; background: #fff; pointer-events: none;
    clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); animation: twinkle 3s ease-in-out infinite; }
.spark.s1 { top: 16%; left: 52%; } .spark.s2 { top: 54%; right: 6%; width: 18px; height: 18px; animation-delay: 1s; } .spark.s3 { bottom: 14%; left: 40%; width: 14px; height: 14px; animation-delay: 2s; }
@media (max-width: 700px) {
    .tiles { grid-template-columns: 1fr; grid-auto-rows: 150px; }
    .tiles .tile:first-child { grid-row: span 1; }
    .tiles .tile:first-child .tile-img { height: 82%; bottom: 50%; transform: translateY(50%); }
    .featured-main { grid-template-columns: 1fr; padding: 32px 24px 56px; }
    .featured-img { height: 160px; order: -1; }
    .featured-foot { padding: 14px 24px; flex-direction: column; align-items: flex-start; }
    .header-inner { height: 60px; } .ip { display: none; } .head-btn b { display: none; } .wordmark { font-size: 28px; }
}

/* category pages: product cards */
.grid .product { border-radius: 16px; background: var(--surface); border: 0; box-shadow: none; transition: transform .2s; }
.grid .product:hover { transform: translateY(-3px); box-shadow: none; }
.product-img { background: var(--surface-2); border-radius: 12px; }
.product-img > i { color: #a38766; }
.product-body h3 { font: 400 1.9rem/.9 var(--font-head); text-transform: uppercase; }
.price b { font-weight: 800; color: #fff; }
.price s { color: var(--muted); }
.product-label { background: var(--pink); color: #fff; border-radius: 6px; font-weight: 800; box-shadow: none; }
.product-sale { background: var(--pink); color: #fff; }
.tabs a { border-radius: 8px; }
.tabs a.is-active { background: var(--green); color: #082414; }

/* modules & misc */
.module { background: var(--surface); border: 0; box-shadow: none; border-radius: 16px; }
.goal-bar span { background: var(--green); }
.toast { background: #fff; color: #30261a; border: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border-radius: 10px; }
.toast i { color: var(--green-dark); }

/* cart drawer */
.drawer { background: #3e3121; border-left: 1px solid var(--line); box-shadow: none; }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3, .order-head h2 { font: 400 2rem/1 var(--font-head); text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; }
.drawer-head h3 small { font: 500 .8rem var(--font-body); color: var(--muted); text-transform: none; }
.drawer-body { padding: 16px 22px; }
.drawer-foot { padding: 18px 22px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-note { text-align: center; color: var(--muted); font-size: .75rem; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; display: grid; gap: 14px; justify-items: center; }
.line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-img { flex: none; width: 46px; height: 46px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #ffc05c; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.line-info b { font-size: .88rem; } .line-info small { color: var(--muted); font-size: .76rem; }
.line-end { display: grid; justify-items: end; gap: 6px; font-size: .85rem; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; height: 28px; }
.qty button { width: 28px; height: 26px; color: var(--muted); font-size: .75rem; } .qty button:hover { color: #fff; }
.qty span { min-width: 18px; text-align: center; font-size: .82rem; font-weight: 700; }
.big-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.big-total > span { display: grid; } .big-total > span b { font-size: .95rem; } .big-total > span small { color: var(--muted); font-size: .75rem; }
.big-total strong { display: flex; align-items: baseline; gap: 4px; color: var(--pink); font: 400 3rem/.8 var(--font-head); }
.big-total strong small { font-size: 1rem; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.steps { padding: 0; border-radius: 16px; }
.step { padding: 26px 28px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.step:last-child { border-bottom: 0; }
.step h3 { font: 700 1rem var(--font-body); display: flex; align-items: center; gap: 10px; letter-spacing: 0; }
.step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: .78rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #30261a; }
.seg button { height: 36px; border-radius: 7px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.seg button.is-on { background: #705433; color: #fff; }
.step-note { color: var(--muted); font-size: .8rem; }
.inline-form { display: inline; } .inline-form button { color: #fff; text-decoration: underline; font-size: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.order-card { padding: 24px; border-radius: 16px; display: grid; gap: 6px; position: sticky; top: 20px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.link { color: #fff; text-decoration: underline; font-size: .82rem; font-weight: 600; }
.line-sm { font-size: .85rem; } .order-card .big-total { margin-top: 12px; }
.empty-card { padding: 30px; text-align: center; display: grid; gap: 14px; justify-items: center; border-radius: 16px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .order { order: -1; } .order-card { position: static; } }

/* thank-you */
.complete { padding: 44px 24px 46px; gap: 14px; border-radius: 16px; }
.complete-icon { width: 78px; height: 78px; background: var(--green); color: #082414; font-size: 2rem; box-shadow: none; animation: icon-in .5s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes icon-in { from { transform: scale(0); } to { transform: none; } }
.delivered { display: flex; flex-wrap: wrap; justify-content: center; font: 400 clamp(3rem, 9vw, 4.4rem)/.9 var(--font-head); }
.delivered span { display: inline-block; animation: letter-in .45s cubic-bezier(.3, 1.7, .5, 1) calc(.45s + var(--i) * .06s) both; }
@keyframes letter-in { from { opacity: 0; transform: translateY(24px) scale(.4); } to { opacity: 1; transform: none; } }
.complete-lead { max-width: 400px; font-weight: 600; font-size: .92rem; }
.complete-btns { margin-top: 6px; }
.px-bit { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; will-change: transform, opacity; }

/* footer */
.footer { position: relative; margin-top: 40px; padding: 44px 0 30px; background: transparent; border: 0; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rainbow); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-about { display: grid; gap: 12px; align-content: start; font-size: .85rem; color: #eaded0; }
.footer-ip { font-weight: 700; color: #fff; } .footer-ip:hover { text-decoration: underline; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: .85rem; }
.footer-col h4 { font: 700 .9rem var(--font-body); letter-spacing: 0; margin-bottom: 4px; }
.footer-col a { color: #dfcfbd; } .footer-col a:hover { color: #fff; }
.footer-bottom { display: grid; gap: 4px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .72rem; color: #ad9b86; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.footer-grid { padding: 0; }
/* overrides of base rules */
.logo { margin: 0; z-index: auto; }
.logo:hover { transform: none; }
.logo img { filter: none; max-width: 220px; }
.ip { flex-direction: row; padding: 0; text-align: left; }
.cart-btn { height: 38px; padding: 0 14px; border-radius: 8px; gap: 8px; background: rgba(255, 255, 255, .05); box-shadow: none; }
.cart-btn:hover { transform: none; background: rgba(255, 255, 255, .09); } .cart-btn:active { transform: none; box-shadow: none; }
.featured-buy { flex-direction: row; align-items: center; }
.line { padding: 14px 0; border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--line); }
.qty { gap: 0; } .qty button { background: none; border-radius: 6px; } .qty button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tile { align-items: flex-start; }
.footer-logo { margin-bottom: 2px; }
.acc-btn { background: none; border: 0; box-shadow: none; height: 38px; padding: 0 12px; } .acc-btn:hover { background: rgba(255, 255, 255, .06); }

/* =====================================================================
   v3 layout: centred logo over the header card, event banner, big
   shadowed tiles, two-part footer. Overrides everything above.
   ===================================================================== */
:root {
    --wrap: 1280px;
    --bg: #16161b; --surface: #1f1f26; --surface-2: #2a2a33; --line: rgba(255, 255, 255, .08);
    --muted: #ababb1; --purple: #fb923c; --purple-dark: #e09832; --gold: #facc15; --cyan: #f07832;
}
body { background: var(--bg); position: relative; }
.wrap { width: min(var(--wrap), 100% - 40px); }
.content { gap: 16px; padding: 24px 0 70px; }

/* starry top */
.stars {
    position: absolute; left: 0; right: 0; top: 0; height: 320px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 40% 100% at 50% 0%, rgba(240, 120, 50, .12), transparent 70%),
        radial-gradient(3px 3px at 6% 30%, rgba(230, 142, 80, .5) 50%, transparent 52%),
        radial-gradient(4px 4px at 29% 13%, rgba(230, 142, 80, .6) 50%, transparent 52%),
        radial-gradient(3px 3px at 35% 44%, rgba(230, 142, 80, .35) 50%, transparent 52%),
        radial-gradient(4px 4px at 52% 5%, rgba(230, 142, 80, .6) 50%, transparent 52%),
        radial-gradient(3px 3px at 66% 22%, rgba(230, 142, 80, .4) 50%, transparent 52%),
        radial-gradient(4px 4px at 78% 1%, rgba(230, 142, 80, .55) 50%, transparent 52%),
        radial-gradient(3px 3px at 82% 9%, rgba(230, 142, 80, .45) 50%, transparent 52%),
        radial-gradient(4px 4px at 91% 25%, rgba(230, 142, 80, .5) 50%, transparent 52%),
        radial-gradient(3px 3px at 14% 70%, rgba(230, 142, 80, .3) 50%, transparent 52%),
        radial-gradient(3px 3px at 71% 60%, rgba(230, 142, 80, .3) 50%, transparent 52%);
    mask-image: linear-gradient(#000 40%, transparent);
    -webkit-mask-image: linear-gradient(#000 40%, transparent);
}

/* header */
.header { display: flex; flex-direction: column; align-items: center; padding-top: 28px; height: auto; }
.header .logo { position: relative; z-index: 2; margin: 0 0 calc(var(--logo-overlap, 66px) * -1); display: block; }
.header .logo img { height: var(--logo-h, 130px); width: auto; max-width: min(440px, 80vw); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.header .logo:hover img { transform: scale(1.02); }
.header .logo img { transition: transform .2s; }
.header-card {
    position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
    min-height: 128px; padding: 20px; border-radius: 16px; background: var(--surface); border: 2px solid #2a2a32; box-shadow: none; backdrop-filter: none;
}
.header-card::before { display: none; }
.acc { justify-self: start; position: relative; }
.acc-box { display: inline-flex; align-items: center; gap: 22px; height: 88px; padding: 0 22px 0 16px; border-radius: 12px; background: var(--surface-2); color: #fff; transition: background .15s; }
.acc-box:hover { background: #34343e; }
.header-card > .acc-box { justify-self: start; }
.acc-face { width: 64px; height: 64px; border-radius: 10px; image-rendering: pixelated; object-fit: cover; }
.acc-face-empty { display: grid; place-items: center; background: #bcc6cc; color: #f1ece8; font-size: 2rem; box-shadow: inset 0 -12px 0 #9aa5ab; }
.acc-lines { display: grid; text-align: left; line-height: 1; gap: 6px; }
.acc-lines small { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.acc-lines b { font: 400 2rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.ip { justify-self: center; align-self: end; padding: 0 0 6px; color: var(--cyan); font: 600 1.05rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: none; }
.ip:hover { color: #ffa56f; transform: none; }
.cart-sq { justify-self: end; position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; background: var(--purple); color: #fff; font-size: 1.7rem; transition: background .15s, transform .1s; }
.cart-sq:hover { background: #ffc166; } .cart-sq:active { transform: scale(.97); }
.cart-sq .cart-count { position: absolute; top: -8px; right: -8px; min-width: 26px; height: 26px; background: var(--gold); color: #1a1405; font-size: .8rem; border: 3px solid var(--surface); }

/* text logo fallback */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: .85; text-shadow: none; }
.wm-top { display: flex; font: 400 clamp(3rem, 9vw, 5.6rem)/1 'Luckiest Guy', var(--font-head); }
.wm-top span { color: var(--c); -webkit-text-stroke: 3px #100d09; paint-order: stroke fill; text-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000), 0 6px 0 color-mix(in srgb, var(--c) 45%, #000), 0 9px 0 #100d09; }
.wm-sub { margin-top: -.1em; font: 400 clamp(1.6rem, 4.5vw, 2.8rem)/1 'Luckiest Guy', var(--font-head); color: #fff; letter-spacing: .06em; -webkit-text-stroke: 2.5px #100d09; paint-order: stroke fill; text-shadow: 0 3px 0 #fb923c, 0 6px 0 #c0842f, 0 8px 0 #100d09; }
.footer .wordmark { display: none; }

/* event banner */
.banner {
    --tile: #ff7a1a;
    position: relative; display: flex; align-items: center; min-height: 268px; padding: 36px 40px; border-radius: 16px;
    background: var(--tile); color: #fff; overflow: visible; isolation: isolate; transition: transform .2s;
}
.banner:hover { transform: translateY(-3px); }
.banner-hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.banner-text { position: relative; z-index: 2; display: grid; gap: 14px; max-width: 60%; pointer-events: none; }
.banner-text h2 { font: 400 clamp(2.8rem, 5.2vw, 4.2rem)/.95 var(--font-head); text-transform: uppercase; text-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }
.banner-text p { font: 500 clamp(1rem, 1.6vw, 1.3rem)/1.4 var(--font-body); text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, .2); }
.banner-img { position: absolute; z-index: 1; right: 6%; bottom: 0; height: 92%; max-width: 40%; object-fit: contain; object-position: bottom; pointer-events: none; transition: transform .3s; }
.banner:hover .banner-img { transform: scale(1.04) rotate(-2deg); }
.banner-timer {
    position: absolute; z-index: 4; top: -14px; right: -10px; padding: 6px 12px; background: #fff; color: #111;
    font: 400 1.5rem/1 var(--font-head); transform: rotate(4deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); pointer-events: none;
}

/* tiles */
.tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 196px; gap: 16px; }
.tiles .tile:first-child { grid-row: span 2; }
.tile { padding: 36px 40px; border-radius: 16px; align-items: flex-start; --ink: #fff; color: #fff; box-shadow: none; }
.tile:nth-child(8n+1) { --tile: #f83a3a; } .tile:nth-child(8n+2) { --tile: #fbbf24; } .tile:nth-child(8n+3) { --tile: #ff7a1f; }
.tile:nth-child(8n+4) { --tile: #f7b755; } .tile:nth-child(8n+5) { --tile: #6be03a; } .tile:nth-child(8n+6) { --tile: #ff7a1a; }
.tile:nth-child(8n+7) { --tile: #ffda4f; } .tile:nth-child(8n+8) { --tile: #b84714; }
.tile-text { max-width: 62%; gap: 14px; }
.tile-text b { font: 400 clamp(2.4rem, 4.2vw, 3.4rem)/.95 var(--font-head); text-transform: uppercase; text-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }
.tile-text small { font: 500 clamp(.95rem, 1.4vw, 1.2rem)/1.4 var(--font-body); text-transform: uppercase; opacity: 1; text-shadow: 2px 2px 0 rgba(0, 0, 0, .2); max-width: 15ch; }
.tile-text em { color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .25); }
.tile-img { right: 4%; bottom: 0; top: auto; transform: none; height: 88%; max-width: 46%; object-position: bottom; }
.tiles .tile:first-child .tile-img { height: 72%; right: 4%; bottom: 0; max-width: 64%; }
.tile:hover .tile-img, .tiles .tile:first-child:hover .tile-img { transform: scale(1.05) rotate(-3deg); }
.tiles .tile:only-child { grid-row: auto; }

@media (max-width: 760px) {
    .header .logo { --logo-overlap: 34px; }
    .header .logo img { --logo-h: 96px; }
    .header-card { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding: 44px 16px 16px; }
    .header-card .acc, .header-card > .acc-box, .cart-sq { display: none; }
    .ip { font-size: .95rem; padding: 0; }
    .banner { min-height: 214px; padding: 30px 28px; }
    .banner-text { max-width: 100%; }
    .banner-img { max-width: 50%; height: 70%; right: 0; }
    .tiles { grid-template-columns: 1fr; grid-auto-rows: 172px; }
    .tiles .tile:first-child { grid-row: auto; }
    .tile { padding: 30px 28px; }
    .tiles .tile:first-child .tile-img { height: 88%; max-width: 46%; }
    .mobile-bar { display: flex; }
}
.mobile-bar { display: none; }

/* buttons & accents in purple/gold */
.btn { background: var(--purple); color: #fff; }
.btn:hover { background: #ffc166; }
.btn-ghost { background: transparent; color: #fff; }
.big-total strong { color: var(--gold); }
.product-label, .product-sale, .cart-count { background: var(--gold); color: #1a1405; }
.tabs a.is-active { background: var(--purple); color: #fff; }
.complete-icon { background: var(--purple); color: #fff; }
.seg button.is-on { background: #3a3a46; }
.drawer { background: var(--surface); }
.page-title, .cat-head h1 { font-family: var(--font-head); }
.check input { accent-color: var(--purple); }

/* footer */
.footer { margin-top: 30px; padding: 56px 0 36px; background: #111115; border-top: 1px solid #1d1d23; }
.footer::before { display: none; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-left: 24px; padding-right: 24px; }
.footer-brand h4 { display: flex; align-items: center; gap: 18px; font: 400 1.6rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 26px; }
.footer-brand h4 img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand h4 i { font-size: 1.8rem; background: linear-gradient(135deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand p, .footer-support p { font-size: .82rem; line-height: 2.5; color: var(--muted); }
.footer-support { text-align: right; }
.footer-support h4 { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font: 400 1.6rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 26px; }
.footer-support a:not(.sq) { color: #fff; text-decoration: underline; }
.sq { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #1d1d24; color: #fff; font-size: 1.15rem; transition: background .15s; }
.sq:hover { background: var(--purple); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 44px; padding: 30px 24px 0; border-top: 1px solid #23232a; font-size: .76rem; color: #8a8a92; }
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom .copy { font-size: .9rem; color: #c9c9cf; text-transform: uppercase; letter-spacing: .02em; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom .legal a { color: #c9c9cf; text-decoration: underline; }
.socials { display: flex; gap: 12px; }
@media (max-width: 760px) {
    .footer-top { grid-template-columns: 1fr; text-align: center; padding: 0; }
    .footer-brand h4, .footer-support h4 { justify-content: center; }
    .footer-support { text-align: center; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; padding: 24px 0 0; }
    .footer-bottom .legal { justify-content: center; }
}
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(31, 31, 38, .95); border: 2px solid #2a2a32; backdrop-filter: blur(8px); }
.mobile-bar a, .mobile-bar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; background: var(--surface-2); color: #fff; font-weight: 700; font-size: .95rem; }
.mobile-bar button { background: var(--purple); }
.mobile-bar .cart-count { position: static; border: 0; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 99px; font-size: .75rem; }
@media (max-width: 760px) { body { padding-bottom: 76px; } }
.banner { flex-direction: row; justify-content: flex-start; text-align: left; gap: 0; }
/* pixel font for the small text, like the reference */
:root { --font-pixel: 'Minecraftia', 'Figtree', monospace; }
.banner-text p, .tile-text small, .ip, .acc-lines small, .banner-timer { font-family: var(--font-pixel); font-weight: 400; letter-spacing: .02em; }
.banner-text p, .tile-text small { font-size: clamp(.95rem, 1.5vw, 1.25rem); line-height: 1.25; padding-top: .2em; }
.ip { font-size: 1.05rem; letter-spacing: .04em; color: #f5b67f; padding-bottom: 2px; }
.ip::after { content: "\f0c5"; font: 900 .7rem "Font Awesome 6 Free"; margin-left: 8px; vertical-align: 3px; }
.acc-lines small { font-size: .8rem; color: #c9c9cf; }
.banner-timer { font-size: 1.35rem; padding: 8px 12px 4px; }
.banner-text h2, .tile-text b, .acc-lines b { letter-spacing: .01em; }
@media (max-width: 760px) {
    .header-card .ip { display: inline-block; }
    .mobile-bar { display: flex; }
}

/* ---------- footer, pixel style ---------- */
.footer { margin-top: 30px; padding: 64px 0 44px; background: #0c0c11; border-top: 1px solid #1a1a21; font-family: var(--font-pixel); }
.footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 30px; }
.footer-brand h4 { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; font: 400 1.65rem/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; color: #f5a524; }
.footer-brand h4 img { width: 42px; height: 42px; object-fit: contain; image-rendering: pixelated; }
.footer-brand p, .footer-support p { font: 400 .9rem/2.45 var(--font-pixel); color: #a3a3b8; max-width: 540px; }
.footer-support { text-align: right; }
.footer-support p { margin-left: auto; }
.footer-support h4 { display: flex; justify-content: flex-end; align-items: center; gap: 22px; margin-bottom: 26px; font: 400 1.75rem/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.footer-support a:not(.sq) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sq { width: 48px; height: 48px; border-radius: 9px; background: #1b1b23; color: #fff; font-size: 1.1rem; }
.sq-light { background: #2a2a36; }
.sq:hover { background: var(--purple); }
.footer-bottom { margin-top: 40px; padding: 30px 30px 0; border-top: 1px solid #22222b; align-items: center; font-family: var(--font-pixel); color: #a3a3b8; font-size: .82rem; }
.footer-bottom p { margin: 0 0 6px; line-height: 1.6; }
.footer-bottom .copy { font: 400 1rem/1.4 var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: #c5c5d6; margin-bottom: 8px; }
.footer-bottom .legal { gap: 16px; }
.footer-bottom .legal a { color: #c5c5d6; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .legal a:hover { color: #fff; }
@media (max-width: 760px) {
    .footer-top { padding: 0; } .footer-bottom { padding: 24px 0 0; }
    .footer-support p, .footer-brand p { margin-inline: auto; }
}

/* =====================================================================
   Feel-good motion
   ===================================================================== */
@keyframes float-y { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle-bg { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(4deg) scale(1); } 89% { transform: rotate(-3deg) scale(1.08); } 92% { transform: rotate(7deg) scale(1.08); } 95% { transform: rotate(2deg) scale(1.02); } }
@keyframes bounce-in { 0% { opacity: 0; transform: translateY(26px) scale(.94); } 60% { opacity: 1; transform: translateY(-4px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes cart-pop { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-8deg); } 55% { transform: scale(.92) rotate(4deg); } 80% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shine { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes spark-pop { 0% { transform: translate(-50%, -50%) scale(0) rotate(0); opacity: 0; } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(.3) rotate(90deg); } }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@keyframes shimmer { 0%, 70% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }

/* logo floats, stars twinkle */
.header .logo img { animation: float-y 4.5s ease-in-out infinite; }
.header .logo:hover img { animation-duration: 1.2s; }
.stars { animation: twinkle-bg 3.5s ease-in-out infinite; }

/* countdown tag wiggles every few seconds */
.banner-timer { animation: wiggle 5s ease-in-out infinite; }

/* tiles & banner: springy lift + tilt, shine sweep, bobbing art */
.tile, .banner { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; overflow: hidden; }
.banner { overflow: visible; }
.tile:hover { transform: translateY(-6px) rotate(-.6deg) scale(1.015); box-shadow: 0 18px 0 -6px rgba(0, 0, 0, .35), 0 24px 40px -18px var(--tile); }
.banner:hover { transform: translateY(-5px) scale(1.008); box-shadow: 0 18px 0 -6px rgba(0, 0, 0, .35), 0 24px 40px -18px var(--tile); }
.tile:active, .banner:active { transform: translateY(-1px) scale(.99); transition-duration: .1s; }
.tile::after, .banner::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-130%) skewX(-18deg);
    opacity: 1; padding: 0; -webkit-mask: none; mask: none; animation: none; inset: 0 auto 0 0;
}
.banner::after { border-radius: inherit; }
.tile:hover::after, .banner:hover::after { animation: shine .8s ease; }
.tile-img, .banner-img { animation: bob 3.4s ease-in-out infinite; }
.tile:nth-child(2n) .tile-img { animation-delay: -1.2s; }
.tile:hover .tile-img, .tiles .tile:first-child:hover .tile-img, .banner:hover .banner-img { animation: none; transform: scale(1.1) rotate(-4deg) translateY(-6px); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tile-text b { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); transform-origin: left bottom; display: inline-block; }
.tile:hover .tile-text b, .banner:hover .banner-text h2 { transform: scale(1.04); }
.banner-text h2 { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); transform-origin: left bottom; }
.tile-spark {
    position: absolute; z-index: 3; width: var(--sz, 16px); height: var(--sz, 16px); background: #fff; pointer-events: none;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)); animation: spark-pop .9s ease-out forwards;
}

/* pop in on scroll */
.pop { opacity: 0; }
.pop.is-in { animation: bounce-in .6s cubic-bezier(.3, 1.4, .5, 1) var(--pd, 0ms) both; }

/* chunky press-down buttons */
.btn, .cart-sq, .acc-box, .mobile-bar a, .mobile-bar button { transition: transform .1s, box-shadow .1s, background .15s; }
.btn:not(.btn-ghost):not(:disabled) { box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.btn:not(.btn-ghost):not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.btn:not(:disabled):active, .cart-sq:active, .acc-box:active, .mobile-bar a:active, .mobile-bar button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.cart-sq { box-shadow: 0 5px 0 #c2852f; }
.cart-sq:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c2852f; }
.cart-sq:active { box-shadow: 0 2px 0 #c2852f; }
.cart-sq.is-bumped, .mobile-bar button.is-bumped { animation: cart-pop .65s cubic-bezier(.3, 1.6, .5, 1); }
.cart-sq.is-bumped .cart-count { animation: cart-pop .65s .1s cubic-bezier(.3, 1.6, .5, 1); }
.acc-box:hover { transform: translateY(-2px); }

/* checkout button shimmer */
.drawer-foot .btn, .steps form .btn:not(:disabled) { position: relative; overflow: hidden; }
.drawer-foot .btn::after, .steps form .btn:not(:disabled)::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); animation: shimmer 2.8s ease-in-out infinite;
}

/* cart lines slide in */
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.drawer.is-open .line { animation: slide-in .35s cubic-bezier(.3, 1.3, .5, 1) both; }
.drawer.is-open .line:nth-child(2) { animation-delay: .05s; } .drawer.is-open .line:nth-child(3) { animation-delay: .1s; } .drawer.is-open .line:nth-child(4) { animation-delay: .15s; }

/* floating "+1" / "COPIED!" */
.float-text { position: fixed; z-index: 10000; pointer-events: none; font: 400 1.6rem/1 var(--font-head); color: #fff; text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255, 183, 77, .8); animation: float-up 1s ease-out forwards; white-space: nowrap; }
.float-text.is-plus { color: #ffd60a; font-size: 2rem; }
.float-text.is-copied { color: #f57832; font-size: 1.3rem; }

/* product cards in categories: same springy feel */
.grid .product { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.grid .product:hover { transform: translateY(-6px) rotate(-.4deg); }
.grid .product:hover .product-img img, .grid .product:hover .product-img > i { transform: scale(1.1) rotate(-4deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .pop { opacity: 1; }
}

/* =====================================================================
   v4 — UnstableWars look: block tiles with pixel corners, rainbow
   sky behind the logo, pill header, ribbon countdown, login popup.
   ===================================================================== */
:root {
    --bg: #1f1911; --surface: #33281b; --surface-2: #443524; --line: rgba(255, 255, 255, .08); --muted: #d6c3ac;
    --pc: 14px; --pp: 7px; /* pixel corner size / step */
    --pixel-corners: polygon(0 var(--pc), var(--pp) var(--pc), var(--pp) var(--pp), var(--pc) var(--pp), var(--pc) 0,
        calc(100% - var(--pc)) 0, calc(100% - var(--pc)) var(--pp), calc(100% - var(--pp)) var(--pp), calc(100% - var(--pp)) var(--pc), 100% var(--pc),
        100% calc(100% - var(--pc)), calc(100% - var(--pp)) calc(100% - var(--pc)), calc(100% - var(--pp)) calc(100% - var(--pp)), calc(100% - var(--pc)) calc(100% - var(--pp)), calc(100% - var(--pc)) 100%,
        var(--pc) 100%, var(--pc) calc(100% - var(--pp)), var(--pp) calc(100% - var(--pp)), var(--pp) calc(100% - var(--pc)), 0 calc(100% - var(--pc)));
}
body { background: var(--bg); }
.stars, .header-card, .mobile-bar { display: none !important; }
body { padding-bottom: 0 !important; }

/* ---------- rainbow sky behind the logo ---------- */
@keyframes orb-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -25px) scale(1.12); } 66% { transform: translate(-30px, 20px) scale(.92); } }
@keyframes hue-spin { to { filter: blur(60px) hue-rotate(360deg); } }
.sky { position: absolute; left: 0; right: 0; top: 0; height: 560px; z-index: -1; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: orb-drift 14s ease-in-out infinite, hue-spin 24s linear infinite; }
.o1 { width: 340px; height: 340px; left: calc(50% - 420px); top: -60px; background: #ff3b30; }
.o2 { width: 300px; height: 300px; left: calc(50% - 200px); top: -110px; background: #ffd60a; animation-delay: -3s, -4s; }
.o3 { width: 320px; height: 320px; left: calc(50% + 20px); top: -80px; background: #34c759; animation-delay: -6s, -8s; }
.o4 { width: 340px; height: 340px; left: calc(50% + 180px); top: -40px; background: #f97316; animation-delay: -9s, -12s; }
.o5 { width: 260px; height: 260px; left: calc(50% - 600px); top: 40px; background: #ffda4f; animation-delay: -2s, -16s; opacity: .35; }
.o6 { width: 260px; height: 260px; left: calc(50% + 380px); top: 50px; background: #ffba4b; animation-delay: -7s, -20s; opacity: .4; }

/* ---------- header ---------- */
.header { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 18px 0 8px; }
.topnav { width: 100%; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.pill { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px 0 8px; border-radius: 14px; color: #fff;
    background: rgba(51, 40, 27, .75); border: 2px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .12s, border-color .2s; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .2); }
.pill:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.pill-face { width: 42px; height: 42px; border-radius: 9px; image-rendering: pixelated; object-fit: cover; }
.pill-face-empty { display: grid; place-items: center; background: linear-gradient(135deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15); color: #fff; font-size: 1.1rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.pill-lines { display: grid; line-height: 1.05; text-align: left; gap: 3px; }
.pill-lines small { font: 400 .68rem var(--font-pixel); color: var(--muted); text-transform: uppercase; }
.pill-lines b { font: 400 1.15rem/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; }
.pill-chev { font-size: .7rem; color: var(--muted); margin-left: 4px; }
.cart-pill { padding: 0 18px 0 8px; }
.cart-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--purple); font-size: 1.05rem; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.cart-ico .cart-count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border: 2px solid var(--bg); font-size: .72rem; }
.cart-pill.is-bumped .cart-ico { animation: cart-pop .65s cubic-bezier(.3, 1.6, .5, 1); }
.acc .acc-menu { top: calc(100% + 8px); left: 0; right: auto; }
.header .logo { margin: -34px 0 0; z-index: 2; }
.header .logo img { height: var(--logo-h, 150px); max-width: min(480px, 84vw); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.ip-pill { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; height: 44px; padding: 0 18px; border-radius: 99px; color: #fff;
    background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316, #ea580c) border-box;
    background-size: 100% 100%, 200% 100%; border: 2px solid transparent; animation: rainbow-slide 4s linear infinite; transition: transform .15s; }
@keyframes rainbow-slide { to { background-position: 0 0, 200% 0; } }
.ip-pill:hover { transform: scale(1.05); } .ip-pill:active { transform: scale(.97); }
.ip-pill b { font: 400 1rem var(--font-pixel); letter-spacing: .04em; text-transform: uppercase; padding-top: 3px; }
.ip-pill i { color: var(--muted); font-size: .85rem; }
.ip-label { font: 400 .8rem var(--font-head); color: #1f1911; background: #fff; padding: 3px 6px 1px; border-radius: 4px; }
.ip-dot { width: 9px; height: 9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* ---------- shared block look (banner + tiles) ---------- */
.banner, .tile {
    clip-path: var(--pixel-corners); border-radius: 0; overflow: hidden;
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 16px, transparent 16px 32px) 0 0 / 45px 45px,
        linear-gradient(160deg, color-mix(in srgb, var(--tile) 82%, #fff), var(--tile) 55%, color-mix(in srgb, var(--tile) 80%, #000));
    box-shadow: inset 0 7px 0 rgba(255, 255, 255, .28), inset 0 -10px 0 rgba(0, 0, 0, .25), inset 7px 0 0 rgba(255, 255, 255, .1), inset -7px 0 0 rgba(0, 0, 0, .12) !important;
    animation: stripes-move 2.5s linear infinite;
}
@keyframes stripes-move { to { background-position: 45px 0, 0 0; } }
.banner:hover, .tile:hover { filter: brightness(1.07) saturate(1.08); }
.tile:hover { transform: translateY(-6px) scale(1.015); }
.banner:hover { transform: translateY(-4px); }

/* ---------- event banner ---------- */
.banner { --tile: #ff7a1a; min-height: 280px; padding: 40px 44px 46px; overflow: hidden; }
.banner-text { max-width: 58%; gap: 12px; }
.banner-text h2 { font-size: clamp(3rem, 5.6vw, 4.6rem); text-shadow: 4px 4px 0 rgba(0, 0, 0, .3); }
.banner-ribbon { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 12px 5px; background: #1f1911; color: #fff; font: 400 .85rem var(--font-pixel); box-shadow: 4px 4px 0 rgba(0, 0, 0, .3); transform: rotate(-1.5deg); }
.banner-ribbon i { color: #ffd60a; }
.banner-ribbon b { color: #ffd60a; font-weight: 400; }
.banner-timer { display: none; }
.banner-art { right: 4%; width: 40%; }

/* ---------- tiles ---------- */
.tiles { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 16px; }
.tiles .tile { grid-column: span 2; grid-row: auto; }
.tiles .tile:nth-child(1), .tiles .tile:nth-child(2) { grid-column: span 3; }
.tiles .tile:nth-child(1) { grid-row: auto; }
.tiles .tile:nth-child(3n):last-child { grid-column: span 6; }
.tiles .tile:nth-child(3n+1):last-child:not(:first-child), .tiles .tile:nth-child(3n):nth-last-child(2):not(:nth-child(1)):not(:nth-child(2)) { grid-column: span 3; }
.tile { padding: 30px 32px 34px; --ink: #fff; color: var(--ink); align-items: flex-start; }
.tile:nth-child(8n+1) { --tile: #ff4757; } .tile:nth-child(8n+2) { --tile: #eab35e; } .tile:nth-child(8n+3) { --tile: #ffc312; --ink: #2a1a05; }
.tile:nth-child(8n+4) { --tile: #2ed573; --ink: #06240f; } .tile:nth-child(8n+5) { --tile: #ff7d1e; } .tile:nth-child(8n+6) { --tile: #ffe46b; }
.tile:nth-child(8n+7) { --tile: #e86218; --ink: #241a14; } .tile:nth-child(8n+8) { --tile: #ff9f1a; --ink: #2a1505; }
.tile-text { max-width: 58%; gap: 10px; height: 100%; }
.tile-text b { font-size: clamp(2.1rem, 3.4vw, 2.9rem); text-shadow: 3px 3px 0 rgba(0, 0, 0, .28); }
.tile[style*="--ink"] .tile-text b, .tile:nth-child(8n+3) .tile-text b, .tile:nth-child(8n+4) .tile-text b, .tile:nth-child(8n+7) .tile-text b, .tile:nth-child(8n+8) .tile-text b { text-shadow: 3px 3px 0 rgba(255, 255, 255, .35); }
.tile-text small { font-size: .95rem; max-width: 18ch; text-shadow: none; opacity: .92; }
.tile-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px 5px; background: rgba(0, 0, 0, .28); color: #fff; font: 400 .78rem var(--font-pixel); text-transform: uppercase; border-radius: 6px; transition: background .2s, gap .2s; }
.tile:hover .tile-cta, .banner:hover .tile-cta { background: rgba(0, 0, 0, .5); gap: 14px; }
.banner .tile-cta { margin-top: 8px; }

/* art: pixel sprite over spinning light rays */
@keyframes rays-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.tile-art { position: absolute; z-index: 1; right: 6%; top: 50%; transform: translateY(-50%); width: 38%; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.tile-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: repeating-conic-gradient(rgba(255, 255, 255, .22) 0 10deg, transparent 10deg 30deg); border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%); mask-image: radial-gradient(circle, #000 20%, transparent 65%); animation: rays-spin 18s linear infinite; }
.tile-art .tile-img, .tile-art .banner-img { position: relative; inset: auto; transform: none; width: auto; height: auto; max-width: 100%; max-height: 170px; image-rendering: pixelated; filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, .3)); animation: bob 3s ease-in-out infinite; }
.tiles .tile:nth-child(1) .tile-art .tile-img, .tiles .tile:nth-child(2) .tile-art .tile-img { max-height: 180px; }
.tile:hover .tile-art .tile-img, .banner:hover .tile-art .banner-img { animation: none; transform: scale(1.18) rotate(-8deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.banner-art .banner-img { max-height: 220px; }

/* ---------- product cards: labelled ones (Popular, Best value) shine ---------- */
@keyframes border-spin { to { --rg-angle: 360deg; } }
@property --rg-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.grid .product.has-label { position: relative; isolation: isolate; }
.grid .product.has-label::before {
    content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--rg-angle), #ff3b30, #ff9500, #ffd60a, #34c759, #f57832, #f97316, #ffba4b, #ff3b30);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: border-spin 4s linear infinite;
}
.grid .product.has-label .product-img { position: relative; overflow: hidden; }
.grid .product.has-label .product-img::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shimmer 3s ease-in-out infinite;
}
.product-label { background: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316); background-size: 200% 100%; animation: rainbow-slide2 3s linear infinite; color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .4); font-family: var(--font-pixel); font-weight: 400; padding-top: 2px; }
@keyframes rainbow-slide2 { to { background-position: 200% 0; } }

/* ---------- coin slider ---------- */
.slider-card { border-radius: 16px; }
.slider { -webkit-appearance: none; appearance: none; height: 16px; border-radius: 8px; cursor: grab;
    background: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316) 0 0 / var(--fill, 0%) 100% no-repeat, #463725; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3); }
.slider:active { cursor: grabbing; }
.slider::-webkit-slider-runnable-track { background: transparent; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 6px; background: #fff; border: 4px solid #1f1911; box-shadow: 0 4px 0 rgba(0, 0, 0, .4); transition: transform .12s; cursor: grab; margin-top: 0; }
.slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 6px; background: #fff; border: 4px solid #1f1911; box-shadow: 0 4px 0 rgba(0, 0, 0, .4); cursor: grab; }
.slider:active::-webkit-slider-thumb { transform: scale(1.2) rotate(8deg); }
@keyframes num-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1); } }
.slider-info h2.is-pop, .slider-img.is-pop { animation: num-pop .32s cubic-bezier(.3, 1.6, .5, 1); }
.slider-img > i { font-size: 3rem; color: #ffd60a; }
.slider-marks button { transition: transform .15s, color .15s; }
.slider-marks button.is-active { transform: scale(1.12); color: #fff; }

/* ---------- login popup ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(12, 9, 6, .72); backdrop-filter: blur(4px); }
.login-modal { position: relative; width: min(470px, 100%); padding: 34px 32px 30px; border-radius: 18px; background: #1c1b26; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); text-align: center; }
.modal-x { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 8px; color: #9b97b3; font-size: 1.1rem; }
.modal-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.login-icon { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: contain; animation: bob 3s ease-in-out infinite; }
.login-modal h2 { font: 400 2rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 24px; }
.login-modal h2 span { color: #ffc312; }
.ed-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ed-pick button { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; border-radius: 10px; background: #262533; border: 2px solid #3a3948; color: #fff; font: 400 1rem var(--font-pixel); padding-top: 2px; transition: border-color .15s, transform .1s; }
.ed-pick button span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: #3a3948; font-size: .85rem; }
.ed-pick button:hover { border-color: #55536a; }
.ed-pick button.is-on { border-color: #ff8a1a; box-shadow: 0 0 0 3px rgba(255, 138, 26, .15); }
.ed-pick button:active { transform: scale(.97); }
.login-input { position: relative; display: flex; align-items: center; height: 56px; border-radius: 10px; background: #262533; border: 2px solid #3a3948; padding: 0 14px; margin-bottom: 14px; transition: border-color .15s; }
.login-input:focus-within { border-color: #fb923c; }
.login-input img { width: 30px; height: 30px; border-radius: 5px; margin-right: 10px; image-rendering: pixelated; }
.login-input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; text-align: center; font: 400 1.05rem var(--font-pixel); padding-top: 3px; }
.login-input input::placeholder { color: #77758c; }
.login-go { height: 58px; font: 400 1.25rem var(--font-head); letter-spacing: .03em; text-transform: uppercase; background: #fb923c; border-radius: 10px; box-shadow: 0 4px 0 #c2852f !important; }
.login-go:hover { background: #ffc166; }
.login-modal .err { display: block; margin: -4px 0 10px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
    .pill { height: 50px; padding: 0 12px 0 6px; gap: 8px; }
    .pill-face, .cart-ico { width: 36px; height: 36px; }
    .pill-lines small { display: none; }
    .pill-lines b { font-size: 1rem; }
    .header .logo { margin-top: 6px; }
    .header .logo img { --logo-h: 104px; }
    .ip-pill b { font-size: .85rem; }
    .banner { min-height: 240px; padding: 30px 26px 34px; }
    .banner-text { max-width: 64%; }
    .banner-text h2 { font-size: 2.6rem; }
    .tiles { grid-template-columns: 1fr; grid-auto-rows: 180px; }
    .tiles .tile, .tiles .tile:nth-child(n) { grid-column: auto !important; }
    .tile-text { max-width: 62%; }
    .tile-art { width: 40%; right: 2%; }
    .tile-art .tile-img { max-height: 120px; }
    .orb { filter: blur(44px); }
    .o1 { left: -120px; } .o4 { left: auto; right: -140px; } .o5, .o6 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .banner, .tile { animation: none !important; } }
/* v4 fixes */
.tile:nth-child(8n+1), .tile:nth-child(8n+2), .tile:nth-child(8n+5), .tile:nth-child(8n+6) { --ink: #fff; }
.tile:nth-child(8n+3) { --ink: #2a1a05; } .tile:nth-child(8n+4) { --ink: #06240f; } .tile:nth-child(8n+7) { --ink: #241a14; } .tile:nth-child(8n+8) { --ink: #2a1505; }
.tile:nth-child(8n+1) .tile-text b, .tile:nth-child(8n+2) .tile-text b, .tile:nth-child(8n+5) .tile-text b, .tile:nth-child(8n+6) .tile-text b { text-shadow: 3px 3px 0 rgba(0, 0, 0, .28); }
.tiles { grid-auto-rows: minmax(210px, auto); }
.tiles .tile:nth-child(n+3) .tile-text b { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.tile-text { min-height: 100%; }
.banner-text .tile-cta, .banner-ribbon { justify-self: start; width: max-content; }
.slider-marks { position: relative; display: block; height: 36px; margin-top: 10px; }
.slider-marks button { position: absolute; top: 0; transform: translateX(-50%); width: auto; padding: 0 12px; height: 32px; white-space: nowrap; }
.slider-marks button.is-active { transform: translateX(-50%) scale(1.1); }
.slider-marks button:first-child { transform: translateX(-16px); } .slider-marks button:first-child.is-active { transform: translateX(-16px) scale(1.1); }
.slider-marks button:last-child { transform: translateX(calc(-100% + 16px)); } .slider-marks button:last-child.is-active { transform: translateX(calc(-100% + 16px)) scale(1.1); }
@media (max-width: 760px) { .banner-art { width: 30%; right: 3%; top: 58%; } .banner-art .banner-img { max-height: 96px; } }

/* =====================================================================
   v5 — Minecraft fonts everywhere, rainbow announcement bar, better
   login/cart buttons, label badges, support button, reference-style tiles.
   ===================================================================== */
:root { --font-body: 'Minecraftia', monospace; --font-pixel: 'Minecraftia', monospace; }
body { font-family: var(--font-body); font-size: 14px; letter-spacing: .01em; }
button, input, select, textarea { font-family: inherit; }
/* undo the old nudges now that the fonts centre properly */
.ip-pill b, .banner-ribbon, .tile-cta, .ed-pick button, .login-input input, .product-label, .ip-label, .pill-lines small { padding-top: 0 !important; }

/* buttons: chunky Minecraft Ten capitals */
.btn { font: 400 1.05rem/1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.btn-sm { font-size: .95rem; }
.btn-lg { font-size: 1.2rem; }
.drawer-head h3, .order-head h2, .page-title, .cat-head h1, .step h3, .big-total > span b, .footer-col h4 { font-family: var(--font-head); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.price b, .big-total strong { font-family: var(--font-head); font-weight: 400; }
.step h3 { font-size: 1.15rem; }
.seg button, .check, .step-note, .line-info b, .line-info small, .drawer-note, .rank-table, .acc-menu a, .acc-menu button, .toast, .muted, .small { font-family: var(--font-pixel); }
.toast span { font-family: var(--font-pixel); }

/* animated rainbow text (store name) */
@keyframes rt-slide { to { background-position: 200% 50%; } }
.rainbow-text { background: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316, #ea580c); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: rt-slide 3s linear infinite; }

/* ---------- rainbow-striped announcement bar ---------- */
@keyframes stripes-run { to { background-position: 56px 0, 0 0; } }
.announce { position: relative; z-index: 5; display: block; color: #fff; text-decoration: none;
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 14px, transparent 14px 28px) 0 0 / 56px 56px,
        linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316, #ea580c) 0 0 / 200% 100%;
    animation: stripes-run 1.2s linear infinite, rt-slide 8s linear infinite;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.announce-in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 4px 14px; text-shadow: 2px 2px 0 rgba(0, 0, 0, .45); font: 400 .9rem var(--font-pixel); text-align: center; }
.announce-in > i { color: #fff; animation: spin-star 3s linear infinite; }
@keyframes spin-star { to { transform: rotate(360deg); } }
.announce-in b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: #1f1911; color: #fff; text-shadow: none; font: 400 .85rem var(--font-head); letter-spacing: .03em; text-transform: uppercase; transition: gap .2s; }
.announce:hover .announce-in b { gap: 10px; }

/* ---------- login & cart buttons ---------- */
.pill { height: 64px; padding: 0 20px 0 9px; gap: 12px; border-radius: 16px; position: relative; isolation: isolate; }
.pill-ring { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; padding: 3px;
    background: conic-gradient(from var(--rg-angle), #ff3b30, #ff9500, #ffd60a, #34c759, #f57832, #f97316, #ffba4b, #ff3b30); animation: border-spin 3s linear infinite; }
.pill-ring .pill-face { width: 100%; height: 100%; border-radius: 8px; display: block; }
.pill-lines b { font-size: 1.35rem; }
.pill-lines small { font-size: .7rem; text-transform: none; }
.pill-go { color: var(--muted); margin-left: 4px; transition: transform .2s, color .2s; }
.acc-pill:hover .pill-go { transform: translateX(4px); color: #fff; }
.acc-pill::before, .cart-pill::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 17px; padding: 2px; opacity: 0; transition: opacity .2s;
    background: conic-gradient(from var(--rg-angle), #ff3b30, #ff9500, #ffd60a, #34c759, #f57832, #f97316, #ffba4b, #ff3b30);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 3s linear infinite; }
.acc-pill:hover::before, .cart-pill:hover::before { opacity: 1; }
.cart-pill { background: linear-gradient(180deg, #ffc065, #f0a83f); border-color: rgba(255, 255, 255, .18); box-shadow: 0 5px 0 #a87224, 0 12px 26px -10px rgba(255, 183, 77, .8); }
.cart-pill:hover { box-shadow: 0 7px 0 #a87224, 0 16px 30px -10px rgba(255, 183, 77, .9); }
.cart-pill:active { box-shadow: 0 2px 0 #a87224; }
.cart-pill .cart-ico { background: rgba(0, 0, 0, .22); width: 46px; height: 46px; font-size: 1.2rem; box-shadow: none; }
.cart-pill .pill-lines small { color: rgba(255, 255, 255, .85); }
.cart-pill .cart-count { background: #ff3b6b; color: #fff; border-color: #f0a83f; min-width: 24px; height: 24px; }

/* ---------- label badges ---------- */
.product-label { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; top: -12px; border-radius: 7px; font: 400 .8rem var(--font-head); letter-spacing: .04em; text-transform: uppercase;
    color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .35); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); background-size: 200% 100%; animation: rainbow-slide2 3s linear infinite; }
.product-label i { font-size: .75rem; }
.label-hot { background-image: linear-gradient(90deg, #ff3b30, #ff9500, #ff3b30); }
.label-hot i { animation: flicker .9s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.25) rotate(-8deg); } }
.label-best { background-image: linear-gradient(90deg, #ffb800, #ffe45c, #ffb800); color: #3a2600; text-shadow: none; }
.label-month { background-image: linear-gradient(90deg, #fb923c, #ffda4f, #fb923c); }
.label-new { background-image: linear-gradient(90deg, #34c759, #f57832, #34c759); }
.label-sale { background-image: linear-gradient(90deg, #ff3b6b, #ff7a1a, #ff3b6b); }
.label-default { background-image: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316, #ea580c); }
.grid .product.has-label:has(.label-best)::before { background: conic-gradient(from var(--rg-angle), #ffb800, #fff2a8, #ffb800, #ff9500, #ffb800); }
.grid .product.has-label:has(.label-hot)::before { background: conic-gradient(from var(--rg-angle), #ff3b30, #ffb347, #ff3b30, #ff9500, #ff3b30); }
.product-req { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: rgba(31, 25, 17, .85); color: #ffd60a; font: 400 .72rem var(--font-pixel); }

/* ---------- support button ---------- */
.support-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.support-btn { height: 46px; padding: 0 18px; gap: 10px; }
.support-btn.btn-ghost { border: 2px solid rgba(255, 255, 255, .25); }
.footer-support h4 { justify-content: flex-end; }

/* ---------- tiles: big flat colour cards with art bottom-right ---------- */
.banner, .tile { clip-path: none; border-radius: 16px; overflow: hidden; animation: none; filter: none;
    background: var(--tile) !important; box-shadow: none !important; }
.banner { overflow: visible; }
.banner:hover, .tile:hover { filter: none; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 196px; gap: 16px; }
.tiles .tile, .tiles .tile:nth-child(n) { grid-column: auto; grid-row: auto; }
.tiles .tile:first-child { grid-row: span 2; }
.tiles-1 .tile:first-child, .tiles-2 .tile:first-child { grid-row: auto; }
.tiles .tile:last-child:nth-child(2n+1):not(:first-child) { grid-column: span 2; }
.tiles-4 .tile:last-child { grid-column: span 2; }
.tile { padding: 34px 38px; align-items: flex-start; --ink: #fff; color: #fff; }
.tile:nth-child(6n+1) { --tile: #f83a3a; } .tile:nth-child(6n+2) { --tile: #fbbf24; } .tile:nth-child(6n+3) { --tile: #ff7a1f; }
.tile:nth-child(6n+4) { --tile: #f7b755; } .tile:nth-child(6n+5) { --tile: #6be03a; } .tile:nth-child(6n+6) { --tile: #ff7a1a; }
.tile:nth-child(n) { --ink: #fff; }
.tile-text { max-width: 60%; gap: 12px; height: auto; min-height: 0; }
.tile-text b, .tiles .tile:nth-child(n) .tile-text b { font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: .95; color: #fff; text-shadow: 3px 3px 0 rgba(0, 0, 0, .25) !important; }
.tile-text small { font: 400 clamp(.95rem, 1.4vw, 1.15rem)/1.35 var(--font-pixel); color: #fff; text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, .25); max-width: none; opacity: 1; }
.tile-cta, .tile-art { display: none !important; }
.tile-img { position: absolute; z-index: 1; right: 5%; bottom: -6%; top: auto; transform: rotate(-8deg); height: 82%; width: auto; max-width: 46%; object-fit: contain; image-rendering: auto; filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .18)); animation: bob 3.2s ease-in-out infinite; }
.tiles .tile:first-child .tile-img { height: 64%; max-width: 70%; right: 6%; bottom: -4%; }
.tile:hover .tile-img, .tiles .tile:first-child:hover .tile-img { animation: none; transform: scale(1.1) rotate(-12deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tile-img[src*="media.paynow.gg"] { image-rendering: pixelated; }

/* banner */
.banner { --tile: #ff7a1a; min-height: 260px; padding: 38px 42px; }
.banner-text { max-width: 60%; gap: 14px; }
.banner-text h2 { text-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }
.banner-text p { font: 400 clamp(1rem, 1.5vw, 1.2rem)/1.35 var(--font-pixel); text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, .2); }
.banner-img { position: absolute; z-index: 1; right: 7%; bottom: 0; height: 88%; max-width: 38%; object-fit: contain; object-position: bottom; image-rendering: pixelated; animation: bob 3.2s ease-in-out infinite; }
.banner-timer { display: block !important; position: absolute; z-index: 4; top: -14px; right: -12px; padding: 8px 12px; background: #fff; color: #111; font: 400 1.4rem/1 var(--font-pixel); transform: rotate(4deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); animation: wiggle 5s ease-in-out infinite; pointer-events: none; }
.banner-timer[hidden] { display: none !important; }

@media (max-width: 760px) {
    .tiles { grid-template-columns: 1fr; grid-auto-rows: 172px; }
    .tiles .tile:first-child, .tiles .tile:nth-child(n) { grid-row: auto; grid-column: auto; }
    .tile { padding: 28px 26px; }
    .tile-img, .tiles .tile:first-child .tile-img { height: 78%; max-width: 44%; right: 3%; bottom: -4%; }
    .banner { min-height: 220px; padding: 30px 26px; }
    .banner-img { height: 58%; max-width: 40%; right: 2%; }
    .announce-in { font-size: .78rem; gap: 8px; }
    .pill { height: 54px; padding: 0 12px 0 6px; }
    .pill-ring { width: 40px; height: 40px; }
    .pill-lines small { display: none; }
    .pill-go { display: none; }
    .support-btns { justify-content: center; }
    .footer-support h4 { justify-content: center; }
}
/* v5 fixes */
.tiles .tile:last-child:nth-child(2n+1):not(:first-child) { grid-column: auto; }
.tiles-4 .tile:last-child { grid-column: auto; }
.tiles .tile:last-child:nth-child(2n):not(:nth-child(2)) { grid-column: span 2; }
.tiles { grid-auto-rows: minmax(196px, auto); }
.footer-support a.btn { text-decoration: none; }
.tile-img:not([src*="media.paynow.gg/media/620285604118138880/6228906"]) { height: 92%; }
.product-btns { display: flex; gap: 8px; } .product-btns .btn { flex: 1; min-width: 0; padding: 0 10px; } .product-btns .btn-ghost { flex: 0 0 auto; }

/* ---------- v6: slower announcement bar ---------- */
.announce { animation: stripes-run 5s linear infinite, rt-slide 24s linear infinite; }
.announce-in > i { animation-duration: 8s; }

/* ---------- v6: IP card ---------- */
.ip-card { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; isolation: isolate;
    background: rgba(36, 29, 20, .85); backdrop-filter: blur(10px); box-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 18px 40px -16px rgba(255, 183, 77, .6); transition: transform .2s; }
.ip-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 18px; padding: 2px;
    background: conic-gradient(from var(--rg-angle), #ff3b30, #ff9500, #ffd60a, #34c759, #f57832, #f97316, #ffba4b, #ff3b30);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 4s linear infinite; }
.ip-card:hover { transform: translateY(-2px); }
.ip-block { flex: none; width: 48px; height: 48px; border-radius: 6px; image-rendering: pixelated; animation: bob 3s ease-in-out infinite;
    background:
        linear-gradient(90deg, transparent 0 12.5%, rgba(0,0,0,.12) 12.5% 25%, transparent 25% 50%, rgba(255,255,255,.12) 50% 62.5%, transparent 62.5% 87.5%, rgba(0,0,0,.12) 87.5%) 0 0 / 100% 100%,
        linear-gradient(#6fd13f 0 26%, #4aa82b 26% 34%, transparent 34%),
        linear-gradient(90deg, #4aa82b 0 12.5%, transparent 12.5% 37.5%, #4aa82b 37.5% 50%, transparent 50% 75%, #4aa82b 75% 87.5%, transparent 87.5%) 0 34% / 100% 8% no-repeat,
        repeating-linear-gradient(45deg, #8a5a32 0 6px, #74492a 6px 12px);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35), 3px 3px 0 rgba(0, 0, 0, .35); }
.ip-main { display: grid; gap: 4px; text-align: left; min-width: 0; }
.ip-main small { display: flex; align-items: center; gap: 6px; font: 400 .72rem var(--font-pixel); color: var(--muted); white-space: nowrap; }
.ip-main small b { color: #fff; font-weight: 400; }
.ip-main .players-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a86a6; flex: none; }
.ip-card.is-online .players-dot { background: #34c759; animation: ping 1.8s infinite; }
.ip-card:not(.is-online) .ip-pl { display: none; }
.ip-addr { font: 400 1.5rem/1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ip-copy { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 11px; background: #fff; color: #1f1911;
    font: 400 1rem var(--font-head); letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 4px 0 #d6c6b4; transition: transform .1s, box-shadow .1s, background .2s, color .2s; }
.ip-copy:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #d6c6b4; }
.ip-copy:active { transform: translateY(3px); box-shadow: 0 1px 0 #d6c6b4; }
.ip-copy.is-copied { background: #34c759; color: #fff; box-shadow: 0 4px 0 #1f8a3b; }
.ip-pill { display: none !important; }

/* ---------- v6: rank table Rainbow+ column ---------- */
.rank-table th .rt-req { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; font: 400 .66rem var(--font-pixel); color: #ffd60a; }
.rank-table .is-plus { background: linear-gradient(180deg, rgba(255, 59, 48, .08), rgba(255, 183, 77, .14)); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 10, .45); }
.rank-table .is-top { background: rgba(255, 183, 77, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 183, 77, .55); }
.rt-buy b small { font-size: .7em; color: var(--muted); margin-left: 2px; }
.ladder .is-plus .ladder-icon { box-shadow: 0 0 0 2px #ffd60a; }

@media (max-width: 760px) {
    .ip-card { gap: 10px; padding: 8px; }
    .ip-block { width: 38px; height: 38px; }
    .ip-addr { font-size: 1.05rem; }
    .ip-copy { height: 40px; padding: 0 12px; font-size: .85rem; }
    .ip-copy span { display: none; }
}

/* ---------- v7: proper gleam on labelled cards (was a grey bar) ---------- */
@keyframes gleam { 0%, 62% { transform: translateX(-160%) skewX(-22deg); } 100% { transform: translateX(380%) skewX(-22deg); } }
.grid .product.has-label .product-img::after {
    top: -20%; bottom: -20%; left: 0; width: 22%; animation: gleam 4.5s cubic-bezier(.4, 0, .2, 1) infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 20%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .08) 80%, transparent);
}
.grid .product.has-label .product-img::before { content: ""; position: absolute; inset: 18% 22%; border-radius: 50%; filter: blur(26px); opacity: .35; pointer-events: none;
    background: var(--glow, #ffba4b); animation: glow-pulse 3s ease-in-out infinite; }
.grid .product.has-label:has(.label-hot) { --glow: #ff8a1a; }
.grid .product.has-label:has(.label-best) { --glow: #ffd60a; }
.grid .product.has-label:has(.label-month) { --glow: #ffda4f; }
@keyframes glow-pulse { 50% { opacity: .6; transform: scale(1.12); } }
.grid .product.has-label .product-img img { position: relative; z-index: 1; }

/* ---------- v7: art sizing ---------- */
.tile-img[src*="622910971467272192"] { image-rendering: auto; }
.tiles .tile:nth-child(2) .tile-img { height: 92%; max-width: 58%; right: 2%; bottom: -8%; transform: rotate(-4deg); }
.banner-img { image-rendering: pixelated; }
.product-img img { max-height: 82%; width: auto; object-fit: contain; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .25)); }
.tiles .tile:nth-child(2) .tile-img { max-width: 52%; }

/* ---------- v8 ---------- */
/* banner keeps its shine inside; the countdown tag sits on the wrapper so it can still poke out */
.banner-wrap { position: relative; }
.banner { overflow: hidden !important; }
.banner-wrap > .banner-timer { position: absolute; z-index: 5; top: -14px; right: -12px; }

/* logo: no hover effect at all */
.header .logo, .header .logo:hover { transform: none !important; }
.header .logo:hover img { animation-duration: 4.5s; transform: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }

/* floating support button */
.support-fab { position: fixed; right: 18px; bottom: 18px; z-index: 85; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 99px;
    background: linear-gradient(180deg, #ffc065, #f0a83f); color: #fff; text-decoration: none; font: 400 1.05rem var(--font-head); letter-spacing: .03em; text-transform: uppercase;
    box-shadow: 0 5px 0 #a87224, 0 14px 30px -10px rgba(255, 183, 77, .9); transition: transform .12s, box-shadow .12s; isolation: isolate; }
.support-fab i { font-size: 1.2rem; }
.support-fab::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit; padding: 3px;
    background: conic-gradient(from var(--rg-angle), #ff3b30, #ff9500, #ffd60a, #34c759, #f57832, #f97316, #ffba4b, #ff3b30);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 3s linear infinite; }
.support-fab:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #a87224, 0 18px 34px -10px rgba(255, 183, 77, 1); }
.support-fab:active { transform: translateY(3px); box-shadow: 0 2px 0 #a87224; }
@media (max-width: 760px) { .support-fab { right: 12px; bottom: 12px; height: 50px; width: 50px; padding: 0; justify-content: center; } .support-fab span { display: none; } }

/* =====================================================================
   v9 — RainbowGens' own layout: 3-column grid in rainbow order, glossy
   tiles with a dot texture and glow ring, purple banner, clock pill.
   ===================================================================== */
.tiles { grid-template-columns: repeat(3, 1fr) !important; grid-auto-rows: minmax(230px, auto) !important; gap: 18px; }
.tiles .tile, .tiles .tile:nth-child(n), .tiles .tile:first-child { grid-row: auto !important; grid-column: auto !important; }
.tiles .tile:first-child { grid-column: span 2 !important; }
.tiles-4 .tile:nth-child(3) { grid-column: span 2 !important; }
.tiles-6 .tile:nth-child(6), .tiles-7 .tile:nth-child(6), .tiles-7 .tile:nth-child(7) { grid-column: span 3 !important; }
.tiles-7 .tile:nth-child(6), .tiles-7 .tile:nth-child(7) { grid-column: auto !important; }
.tiles-2 .tile:first-child, .tiles-1 .tile:first-child { grid-column: span 3 !important; }

/* rainbow order */
.tile:nth-child(6n+1) { --tile: #ff4757 !important; --ink: #fff; }
.tile:nth-child(6n+2) { --tile: #ff8c1a !important; --ink: #fff; }
.tile:nth-child(6n+3) { --tile: #ffc312 !important; --ink: #3a2500; }
.tile:nth-child(6n+4) { --tile: #2ed573 !important; --ink: #06301a; }
.tile:nth-child(6n+5) { --tile: #ff7d1e !important; --ink: #fff; }
.tile:nth-child(6n+6) { --tile: #eab35e !important; --ink: #fff; }

/* glossy tile */
.tile, .banner {
    background:
        radial-gradient(rgba(255, 255, 255, .16) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
        linear-gradient(150deg, color-mix(in srgb, var(--tile) 70%, #fff) 0%, var(--tile) 45%, color-mix(in srgb, var(--tile) 78%, #000) 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -6px 0 rgba(0, 0, 0, .18), 0 14px 30px -18px var(--tile) !important;
    border-radius: 20px !important;
}
.tile { padding: 30px 30px 28px !important; }
.tile-text { max-width: 58%; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.tile-text b, .tiles .tile:nth-child(n) .tile-text b { color: var(--ink) !important; font-size: clamp(2.1rem, 3.2vw, 2.9rem) !important;
    text-shadow: 0 3px 0 color-mix(in srgb, var(--tile) 55%, #000) !important; }
.tile-text small { color: var(--ink) !important; text-shadow: none !important; opacity: .85; text-transform: none !important; font-size: .95rem !important; }
.tile-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 34px; padding: 0 14px; border-radius: 99px;
    background: rgba(255, 255, 255, .92); color: #261e15; font: 400 .9rem var(--font-head); letter-spacing: .03em; text-transform: uppercase;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .2); transition: gap .2s, transform .15s; }
.tile:hover .tile-go, .banner:hover .tile-go { gap: 14px; transform: translateY(-1px); }

/* art floats over a soft glow ring */
.tile-glow { position: absolute; z-index: 0; right: 8%; top: 50%; width: 46%; aspect-ratio: 1; max-height: 92%; transform: translateY(-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 45%, transparent 70%); pointer-events: none; animation: glow-pulse 3.4s ease-in-out infinite; }
.tile-img, .tiles .tile:first-child .tile-img { top: 50% !important; bottom: auto !important; right: 8% !important; height: 74% !important; max-width: 44% !important;
    transform: translateY(-50%) rotate(-6deg) !important; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)) !important; animation: float-art 3.4s ease-in-out infinite !important; }
.tiles .tile:first-child .tile-img { height: 86% !important; max-width: 48% !important; }
@keyframes float-art { 0%, 100% { transform: translateY(-50%) rotate(-6deg); } 50% { transform: translateY(calc(-50% - 8px)) rotate(-3deg); } }
.tile:hover .tile-img, .tiles .tile:first-child:hover .tile-img { animation: none !important; transform: translateY(-50%) scale(1.1) rotate(-10deg) !important; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }

/* banner: purple-pink with a rainbow strip */
.banner { --tile: #f97316; min-height: 270px !important;
    background:
        radial-gradient(rgba(255, 255, 255, .14) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
        radial-gradient(ellipse at 85% 50%, rgba(255, 218, 79, .55), transparent 60%),
        linear-gradient(120deg, #b8761f, #f97316 45%, #ffb83c) !important; }
.banner::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; z-index: 2;
    background: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316, #ea580c); background-size: 200% 100%; animation: rt-slide 6s linear infinite; }
.banner-text { gap: 12px; }
.banner-text p { text-transform: none !important; font-size: 1.05rem !important; opacity: .9; }
.banner .tile-go { margin-top: 8px; }
.banner-glow { right: 9%; width: 30%; }
.banner-img { right: 10% !important; bottom: auto !important; top: 50%; transform: translateY(-50%) rotate(-6deg); height: 78% !important; animation: float-art 3.4s ease-in-out infinite !important; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35)); }

/* countdown: clock pill, not a tilted tag */
.banner-wrap > .banner-timer { top: 18px !important; right: 20px !important; left: auto; transform: none !important; animation: none !important;
    display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px !important; border-radius: 99px; background: #1f1911 !important; color: #fff !important;
    font: 400 .85rem var(--font-pixel) !important; box-shadow: 0 4px 0 rgba(0, 0, 0, .35) !important; }
.banner-wrap > .banner-timer[hidden] { display: none !important; }
.banner-timer i { color: #ffd60a; }

@media (max-width: 860px) {
    .tiles { grid-template-columns: 1fr 1fr !important; }
    .tiles .tile:first-child { grid-column: span 2 !important; }
    .tiles-5 .tile:nth-child(5) { grid-column: span 2 !important; }
}
@media (max-width: 560px) {
    .tiles { grid-template-columns: 1fr !important; grid-auto-rows: minmax(190px, auto) !important; }
    .tiles .tile:nth-child(n) { grid-column: auto !important; }
    .tile-text { max-width: 60%; }
}
/* v9 fixes */
.banner-text .tile-go, .tile-text .tile-go { width: max-content; justify-self: start; }
.tiles .tile:not(:first-child) .tile-text { max-width: 54%; }
.tiles .tile:not(:first-child) .tile-text b { font-size: clamp(1.8rem, 2.4vw, 2.4rem) !important; }
.tiles .tile:not(:first-child) .tile-img { max-width: 40% !important; height: 62% !important; right: 6% !important; }
.tiles .tile:not(:first-child) .tile-glow { width: 40%; right: 5%; }
.tiles .tile:first-child .tile-img { max-width: 56% !important; height: 90% !important; }
.tiles .tile:first-child .tile-glow { width: 50%; }
@media (max-width: 560px) {
    .banner-wrap > .banner-timer { top: -12px !important; right: 12px !important; font-size: .72rem !important; padding: 6px 10px !important; }
    .banner { padding-top: 34px !important; }
    .tiles .tile:first-child .tile-img { max-width: 44% !important; height: 60% !important; top: 62% !important; }
    .tiles .tile:first-child .tile-text { max-width: 56%; }
}

/* ---------- v10 ---------- */
/* banner art and the IP grass block stay still */
.banner-img, .banner:hover .banner-img { animation: none !important; transform: translateY(-50%) rotate(-6deg) !important; transition: none !important; }
.ip-block { animation: none !important; }
/* badge in the banner corner (when no countdown) */
.banner-wrap > .banner-badge { color: #fff !important; }
.banner-badge i { color: #ffd60a; animation: spin-star 6s linear infinite; }

/* ---------- v10b: white tilted tag on the banner corner ---------- */
.banner-wrap > .banner-timer, .banner-wrap > .banner-badge {
    top: -16px !important; right: -12px !important; left: auto !important; border-radius: 0 !important;
    display: block !important; padding: 9px 14px 7px !important; background: #fff !important; color: #111 !important;
    font: 400 1.45rem/1 var(--font-pixel) !important; letter-spacing: .02em; text-transform: none;
    transform: rotate(4deg) !important; box-shadow: 0 6px 14px rgba(0, 0, 0, .35) !important; animation: wiggle 5s ease-in-out infinite !important; }
.banner-wrap > .banner-timer[hidden] { display: none !important; }
@media (max-width: 560px) { .banner-wrap > .banner-timer, .banner-wrap > .banner-badge { font-size: 1.05rem !important; top: -12px !important; right: -6px !important; padding: 7px 10px 5px !important; } }

/* ---------- crate chances ---------- */
.chances { padding: 26px 28px; border-radius: 20px; background: var(--surface); }
.chances-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.chances-head h2 { font: 400 1.9rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.chances-head h2 i { color: #ffd60a; font-size: 1.4rem; }
.chances-head p { color: var(--muted); font-size: .85rem; }
.chances-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chance { --rc: #9aa0b4; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2);
    border: 2px solid color-mix(in srgb, var(--rc) 35%, transparent); transition: transform .15s, border-color .15s; }
.chance:hover { transform: translateY(-2px); border-color: var(--rc); }
.r-common { --rc: #9fe870; } .r-rare { --rc: #ff8d3f; } .r-epic { --rc: #ffc56b; } .r-legendary { --rc: #ffb020; } .r-mythic { --rc: #ffda4f; }
.chance-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; font-size: 1.15rem; color: #fff;
    background: color-mix(in srgb, var(--rc) 85%, #000); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 0 18px -4px var(--rc); }
.chance-main { flex: 1; min-width: 0; display: grid; gap: 7px; }
.chance-main b { font: 400 1.15rem/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chance-bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.chance-bar span { display: block; height: 100%; border-radius: inherit; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.chance-pct { flex: none; display: grid; justify-items: end; gap: 3px; }
.chance-pct b { font: 400 1.3rem/1 var(--font-head); color: var(--rc); }
.chance-pct small { font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.r-mythic .chance-ico { animation: glow-pulse 2s ease-in-out infinite; }
@media (max-width: 760px) { .chances-list { grid-template-columns: 1fr; } .chances { padding: 20px 16px; } }

/* ---------- pack picker (Mystery Crates etc.) ---------- */
.pack { display: grid; gap: 22px; }
.pack-top { display: grid; grid-template-columns: 40% 1fr; padding: 0; overflow: hidden; border-radius: 20px; min-height: 440px; }
.pack-img { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 183, 77, .28), transparent 60%), var(--surface-2); }
.pack-img::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .06) 0 10deg, transparent 10deg 30deg); animation: rays-spin 24s linear infinite; }
.pack-img img { position: relative; width: 62%; max-width: 300px; image-rendering: pixelated; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .45)); animation: num-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.pack-info { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 40px; text-align: center; }
.pack-info h1 { font: 400 clamp(2.6rem, 4.4vw, 3.6rem)/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.pack-price { margin-top: -10px; font: 400 2rem/1 var(--font-head); color: #34d17a; text-shadow: 0 0 20px rgba(52, 209, 122, .35); }
.pack-opts { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 12px; width: 100%; }
.pack-opts button { display: grid; gap: 6px; justify-items: center; padding: 22px 10px; border-radius: 14px; background: var(--surface-2); border: 2px solid transparent; color: var(--muted);
    transition: transform .12s, background .2s, border-color .2s, color .2s; }
.pack-opts button b { font: 400 1.8rem/1 var(--font-head); color: #e8d7c4; }
.pack-opts button small { font: 400 .8rem var(--font-head); letter-spacing: .03em; }
.pack-opts button:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .15); }
.pack-opts button.is-on { background: linear-gradient(180deg, #ff892f, #e0701a); border-color: #ffad6f; color: #fff; box-shadow: 0 5px 0 #a8520f, 0 12px 26px -12px #ff892f; transform: translateY(-2px); }
.pack-opts button.is-on b { color: #fff; }
.pack-buy { height: 64px !important; font-size: 1.5rem !important; border-radius: 14px; }
.pack-buy small { font-size: .9rem; opacity: .75; margin-left: 4px; }
.pack-gift { color: var(--muted); font: 400 .8rem var(--font-pixel); display: inline-flex; gap: 8px; align-items: center; }
.pack-gift:hover { color: #fff; }
.pack-desc { padding: 30px 34px; border-radius: 20px; }
.pack-desc h2 { display: flex; align-items: center; gap: 10px; font: 400 1.6rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; }
.pack-desc h2 span { color: #ffc56b; }
.pack-desc h2::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 8px; }
.pack-desc-lead { color: var(--muted); margin-bottom: 12px; }
.chances-bare { padding: 0; background: none; }
.pack-nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.pack-nav .btn { height: 50px; padding: 0 22px; }
@media (max-width: 860px) {
    .pack-top { grid-template-columns: 1fr; }
    .pack-img { min-height: 240px; }
    .pack-info { padding: 28px 18px; }
    .pack-opts button { padding: 16px 6px; } .pack-opts button b { font-size: 1.4rem; }
}

/* =====================================================================
   v13 — performance: cheap background, no blur behind the cart, pause
   decoration while the cart/login is open.
   ===================================================================== */
/* overlays: plain dim, no backdrop blur (blur over an animated page is what made the cart stutter) */
.drawer-overlay, .modal-overlay, .modal-bg { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(12, 9, 6, .72) !important; }
.drawer { will-change: transform; contain: layout paint style; }
.drawer-body { overscroll-behavior: contain; }
/* rainbow bubbles: soft radial gradients that only move (no live blur, no hue-rotate filter) */
.orb { filter: none !important; opacity: .5; will-change: transform; animation: orb-drift 16s ease-in-out infinite !important;
    background: radial-gradient(circle, var(--oc) 0%, color-mix(in srgb, var(--oc) 45%, transparent) 35%, transparent 70%) !important; transform: translateZ(0); }
.o1 { --oc: #ff3b30; width: 520px; height: 520px; } .o2 { --oc: #ffd60a; width: 480px; height: 480px; animation-delay: -4s !important; }
.o3 { --oc: #34c759; width: 500px; height: 500px; animation-delay: -8s !important; } .o4 { --oc: #f97316; width: 520px; height: 520px; animation-delay: -12s !important; }
.o5 { --oc: #ffda4f; width: 420px; height: 420px; opacity: .35; } .o6 { --oc: #ffba4b; width: 420px; height: 420px; opacity: .4; }
.pill, .ip-card { backdrop-filter: none !important; }
.pill { background: rgba(51, 40, 27, .92); } .ip-card { background: rgba(36, 29, 20, .95); }
/* while the cart or a popup is open, freeze the decoration behind it */
body.ui-open .orb, body.ui-open .announce, body.ui-open .announce-in > i, body.ui-open .tile-img, body.ui-open .tile-glow,
body.ui-open .banner::before, body.ui-open .banner-timer, body.ui-open .ip-card::before, body.ui-open .pill-ring,
body.ui-open .acc-pill::before, body.ui-open .cart-pill::before, body.ui-open .grid .product.has-label::before,
body.ui-open .grid .product .product-img::after, body.ui-open .grid .product .product-img::before, body.ui-open .header .logo img { animation-play-state: paused !important; }
@media (max-width: 760px) { .orb { opacity: .4; } .o5, .o6 { display: none; } }
/* v14: cart rows appear immediately (no staggered delays), short and subtle */
@keyframes line-in { from { opacity: .4; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.drawer.is-open .line, .drawer.is-open .line:nth-child(n) { animation: line-in .18s ease-out both; animation-delay: 0s !important; }
.footer-bottom .credit-line { margin-top: 10px; color: #8a8a92; }
.footer-bottom .credit-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .credit-line a:hover { color: #ffd60a; }
.footer-support p a[href^="mailto"] { white-space: nowrap; }

/* =====================================================================
   SplashGens brand: cyan -> blue -> purple -> pink (from the logo)
   ===================================================================== */
:root { --splash: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c); }
.rainbow-text { background-image: var(--splash) !important; }
.announce {
    background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 14px, transparent 14px 28px),
        linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15, #fb923c, #f97316) !important;
    background-size: 56px 56px, 200% 100% !important;
    animation: announce-move 6s linear infinite !important; }
@keyframes announce-move { from { background-position: 0 0, 0 0; } to { background-position: 56px 0, -100% 0; } }
.banner::before, .ip-pill, .footer::before { background-image: var(--splash) !important; }
.ip-card::before, .pill-ring, .acc-pill::before, .cart-pill::before, .grid .product.has-label::before {
    background: conic-gradient(from var(--rg-angle), #fb923c, #ff892f, #ffb55c, #ffbb4b, #ffd23f, #fb923c) !important; }
.label-default { background-image: linear-gradient(90deg, #fb923c, #ffb55c, #ffd23f, #fb923c) !important; }
.slider { background: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #fdba74, #facc15) 0 0 / var(--fill, 0%) 100% no-repeat, #463725 !important; }
/* sky: logo colours */
.o1 { --oc: #fb923c; } .o2 { --oc: #ff892f; } .o3 { --oc: #ffb55c; } .o4 { --oc: #ffd23f; } .o5 { --oc: #fb923c; } .o6 { --oc: #ffbb4b; }
/* tiles in the splash palette */
.tile:nth-child(6n+1) { --tile: #ff761f !important; --ink: #fff; }
.tile:nth-child(6n+2) { --tile: #ff8f2f !important; --ink: #fff; }
.tile:nth-child(6n+3) { --tile: #ffb55c !important; --ink: #fff; }
.tile:nth-child(6n+4) { --tile: #ffbb4b !important; --ink: #fff; }
.tile:nth-child(6n+5) { --tile: #ffd23f !important; --ink: #fff; }
.tile:nth-child(6n+6) { --tile: #c84f14 !important; --ink: #fff; }
.banner { background:
    radial-gradient(rgba(255, 255, 255, .14) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(ellipse at 85% 50%, rgba(255, 210, 63, .5), transparent 60%),
    linear-gradient(120deg, #d8701a, #ff892f 30%, #ffb55c 65%, #ffb83c) !important; }
.login-modal h2 span { color: transparent; }
.footer-brand h4 img { image-rendering: auto; width: 46px; height: 46px; } .login-icon { width: 72px; height: 72px; }

/* =====================================================================
   v17 — custom category layouts: bundles, keys, coins; plain odds list
   ===================================================================== */
/* ---------- bundles ---------- */
.bundles { display: grid; gap: 20px; }
.bundle { --bc: #ff892f; position: relative; display: grid; grid-template-columns: 300px 1fr 280px; align-items: stretch; border-radius: 22px; overflow: hidden; isolation: isolate;
    background: linear-gradient(120deg, color-mix(in srgb, var(--bc) 22%, var(--surface)), var(--surface) 55%); box-shadow: 0 18px 40px -26px var(--bc); }
.bundle.is-alt { --bc: #ffbb4b; }
.bundle::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
    background: linear-gradient(120deg, var(--bc), transparent 40%, transparent 60%, #ffd60a);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bundle-art { position: relative; display: grid; place-items: center; padding: 26px; background: radial-gradient(circle, color-mix(in srgb, var(--bc) 45%, transparent), transparent 70%); }
.bundle-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 10deg, transparent 10deg 30deg); animation: rays-spin 30s linear infinite; }
.bundle-art img { position: relative; width: 78%; max-width: 220px; image-rendering: pixelated; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.bundle.is-alt .bundle-art img { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)) hue-rotate(250deg) saturate(1.3); }
.bundle:hover .bundle-art img { transform: scale(1.08) rotate(-4deg); }
.bundle-body { padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.bundle-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--bc) 30%, transparent); color: #fff; font: 400 .72rem var(--font-pixel); text-transform: uppercase; }
.bundle-body h2 { font: 400 clamp(2.2rem, 3.6vw, 3rem)/1 var(--font-head); letter-spacing: .02em; text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.bundle-perks p { color: var(--muted); margin-bottom: 10px; }
.bundle-perks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bundle-perks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .9rem; }
.bundle-perks li::before { content: "\f00c"; font: 900 .7rem "Font Awesome 6 Free"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #34d17a; color: #062a14; }
.bundle-buy { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 30px 26px; background: rgba(0, 0, 0, .22); text-align: center; }
.bundle-save { position: absolute; top: 18px; right: -40px; transform: rotate(35deg); width: 170px; padding: 6px 0; background: linear-gradient(90deg, #ffb800, #ffe45c); color: #3a2600; font: 400 .85rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.bundle-buy small { color: var(--muted); font-size: .75rem; }
.bundle-price { font: 400 2.6rem/1 var(--font-head); color: #fff; } .bundle-price span { font-size: 1rem; color: var(--muted); }
.bundle-gift { color: var(--muted); font: 400 .78rem var(--font-pixel); } .bundle-gift:hover { color: #fff; }
@media (max-width: 960px) { .bundle { grid-template-columns: 1fr; } .bundle-art { min-height: 200px; } .bundle-perks ul { grid-template-columns: 1fr; } }

/* ---------- crate keys ---------- */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.key { --kc: #9aa5b8; --hue: 0deg; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px 22px; border-radius: 20px; text-align: center; isolation: isolate; overflow: hidden;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--kc) 35%, transparent), transparent 60%), var(--surface);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--kc) 45%, transparent), 0 16px 34px -22px var(--kc); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.key:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--kc), 0 22px 40px -18px var(--kc); }
.k-common { --kc: #8fd16a; --hue: 70deg; } .k-rare { --kc: #ff8d3f; --hue: 170deg; } .k-epic { --kc: #ffc56b; --hue: 240deg; } .k-legendary { --kc: #ffb020; --hue: 0deg; } .k-mythic { --kc: #ffda4f; --hue: 290deg; }
.key-rarity { font: 400 .78rem var(--font-head); letter-spacing: .12em; padding: 5px 12px; border-radius: 99px; color: #fff; background: color-mix(in srgb, var(--kc) 70%, #000); box-shadow: 0 0 16px -4px var(--kc); }
.key-art { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.key-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--kc) 55%, transparent), transparent 65%); animation: glow-pulse 3s ease-in-out infinite; }
.key-art img { position: relative; width: 82%; image-rendering: pixelated; filter: hue-rotate(var(--hue)) drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); transform: rotate(-12deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.k-common .key-art img { filter: grayscale(.2) hue-rotate(var(--hue)) drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); }
.key:hover .key-art img { transform: rotate(8deg) scale(1.1); }
.key h3 { font: 400 1.6rem/1 var(--font-head); letter-spacing: .02em; }
.key-desc { color: var(--muted); font-size: .8rem; min-height: 2.6em; }
.key-price { font: 400 1.5rem/1 var(--font-head); color: var(--kc); margin-top: auto; }
.key .btn { margin-top: 4px; }

/* ---------- coins ---------- */
.coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.coin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 18px 20px; border-radius: 20px; text-align: center;
    background: radial-gradient(circle at 50% 28%, rgba(255, 196, 30, .22), transparent 60%), var(--surface); box-shadow: inset 0 0 0 2px rgba(255, 196, 30, .18); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.coin:hover { transform: translateY(-6px); }
.coin.has-label { box-shadow: inset 0 0 0 2px rgba(255, 196, 30, .6), 0 18px 40px -22px #ffc41e; }
.coin .product-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.coin-bonus { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 8px; background: #34d17a; color: #062a14; font: 400 .72rem var(--font-head); letter-spacing: .03em; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.coin-art { display: grid; place-items: end center; height: 150px; width: 100%; }
.coin-art img { width: calc(150px * var(--pile, .7)); image-rendering: pixelated; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); animation: bob 3.2s ease-in-out infinite; }
.coin-amt { font: 400 2.4rem/1 var(--font-head); color: #ffd23f; text-shadow: 0 3px 0 #8a5a00; margin-top: 6px; }
.coin-word { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.coin-price { font: 400 1.3rem/1 var(--font-head); margin: 8px 0 6px; }

/* ---------- mystery crates: plain chances list ---------- */
.odds p { color: var(--muted); margin-bottom: 10px; }
.odds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.odds li { font: 400 1rem/1.4 var(--font-pixel); color: #efe3d5; }
.odds li span { color: var(--muted); }
/* coins: each pack has its own picture now (stack, pile, sack, big sack); grow a little with the pack */
.coin-art img { width: auto; height: calc(110px + var(--pile-i, 0) * 12px); max-width: 90%; object-fit: contain; }

/* ---------- v18 ---------- */
/* spinning light rays: always centred behind the art */
.bundle-art::before, .pack-img::before, .tile-art::before {
    left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); animation: rays-spin 30s linear infinite !important; }
.bundle-art, .pack-img { overflow: hidden; }
/* logo: gentle float, faster while hovered */
.header .logo img { animation: float-y 4.5s ease-in-out infinite !important; }
.header .logo:hover img { animation-duration: 1.4s !important; }
/* coins: picture centred in its box */
.coin-art { place-items: center !important; height: 160px; }
.coin-art img { display: block; margin: 0 auto; }

/* =====================================================================
   v19
   ===================================================================== */
/* logo: speed handled in JS (no jump); keep CSS duration fixed */
.header .logo:hover img { animation-duration: 4.5s !important; }

/* rank table: red cross for perks you don't get */
.rank-table .rt-no { color: #ff5470; font-size: 1rem; text-shadow: 0 0 10px rgba(255, 84, 112, .45); }

/* sell wands (rarity cards) */
.key { padding-top: 30px; }
.key .product-label { position: absolute; top: 12px; right: 12px; left: auto; }
.key-perks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 5px; width: 100%; }
.key-perks li { font-size: .8rem; color: #efe3d5; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.key-art img { transform: rotate(0deg); }
.key:hover .key-art img { transform: rotate(-10deg) scale(1.1); }

/* ---------- bundles v2 ---------- */
.bundles2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.b2 { --bc: #ff892f; --bc2: #fb923c; position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; isolation: isolate;
    background: linear-gradient(170deg, color-mix(in srgb, var(--bc) 32%, var(--surface)) 0%, var(--surface) 46%); box-shadow: 0 24px 50px -30px var(--bc); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.b2-1 { --bc: #ffbb4b; --bc2: #ffd23f; } .b2-2 { --bc: #ffd23f; --bc2: #ffd60a; }
.b2:hover { transform: translateY(-6px); }
.b2::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--rg-angle), var(--bc), var(--bc2), transparent 40%, transparent 60%, var(--bc));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 6s linear infinite; }
.b2-head { display: flex; align-items: center; gap: 18px; padding: 26px 26px 10px; }
.b2-art { position: relative; flex: none; display: grid; place-items: center; width: 120px; height: 120px; }
.b2-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bc2) 55%, transparent), transparent 68%); animation: glow-pulse 3s ease-in-out infinite; }
.b2-art img { position: relative; width: 100%; image-rendering: pixelated; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .45)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.b2-1 .b2-art img { filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .45)) hue-rotate(250deg) saturate(1.3); }
.b2:hover .b2-art img { transform: scale(1.1) rotate(-6deg); }
.b2-title { display: grid; gap: 8px; }
.b2-save { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: linear-gradient(90deg, #ffb800, #ffe45c); color: #3a2600; font: 400 .85rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.b2-title h2 { font: 400 clamp(2rem, 3vw, 2.6rem)/1 var(--font-head); letter-spacing: .02em; text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.b2-title p { color: var(--muted); font-size: .85rem; }
.b2-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 26px 22px; }
.b2-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: .85rem; line-height: 1.25; transition: background .2s; }
.b2-item:hover { background: rgba(255, 255, 255, .1); }
.b2-item-pic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.b2-item-pic img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.b2-item-pic i { color: #ffd60a; }
.b2-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 26px; background: rgba(0, 0, 0, .28); border-top: 1px solid rgba(255, 255, 255, .06); }
.b2-prices { display: grid; gap: 2px; }
.b2-worth { color: var(--muted); font-size: .78rem; } .b2-worth s { color: #ff7a8a; }
.b2-prices b { font: 400 2.2rem/1 var(--font-head); } .b2-prices b small { font-size: .9rem; color: var(--muted); }
.b2-btns { display: flex; gap: 8px; }
.b2-btns .btn-ghost { width: 54px; padding: 0; }
@media (max-width: 520px) { .b2-items { grid-template-columns: 1fr; } .b2-buy { flex-direction: column; align-items: stretch; } .b2-btns .btn:last-child { flex: 1; } }

/* ---------- mystery crates v2 ---------- */
.pack-img { overflow: hidden; }
.pack-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 187, 75, .55), transparent 65%); animation: glow-pulse 3s ease-in-out infinite; }
@keyframes crate-shake { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-7deg) scale(1.04); } 90% { transform: rotate(6deg) scale(1.06); } 93% { transform: rotate(-4deg) scale(1.04); } 96% { transform: rotate(2deg); } }
.pack-img img { animation: crate-shake 4s ease-in-out infinite; z-index: 1; }
.pack-opts button { position: relative; padding-top: 24px; }
.pack-opts button em { font-style: normal; font-size: .7rem; opacity: .75; }
.pack-save { position: absolute; top: -10px; right: 10px; padding: 3px 8px; border-radius: 7px; background: #34d17a; color: #062a14; font: 400 .78rem var(--font-head); box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.odds ul { gap: 8px; }
.odds li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); --rc: #9fe870; }
.odds li.r-rare { --rc: #ff8d3f; } .odds li.r-epic { --rc: #ffc56b; } .odds li.r-legendary { --rc: #ffb020; } .odds li.r-mythic { --rc: #ffda4f; }
.odds li i { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.odds li .o-name { flex: 1; color: #fff; }
.odds li .o-pct { color: var(--rc); font-family: var(--font-head); font-size: 1.1rem; }
.odds-note { margin-top: 12px; color: var(--muted); font-size: .78rem; }
@media (min-width: 900px) { .odds ul { grid-template-columns: 1fr 1fr; } }

/* ---------- rank upgrades ---------- */
.upg { display: grid; gap: 20px; }
.upg-hero { padding: 32px; border-radius: 22px; display: grid; gap: 26px; background: radial-gradient(ellipse at 90% 0%, rgba(52, 209, 122, .22), transparent 60%), var(--surface); }
.upg-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 99px; background: rgba(52, 209, 122, .18); color: #7ff0ae; font: 400 .75rem var(--font-pixel); text-transform: uppercase; }
.upg-hero-text h1 { font: 400 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--font-head); margin: 12px 0 8px; }
.upg-hero-text p { color: var(--muted); max-width: 560px; }
.upg-ladder { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.upg-ladder li { display: grid; justify-items: center; gap: 8px; }
.upg-ladder b { font: 400 1rem var(--font-head); letter-spacing: .03em; color: var(--muted); }
.upg-ico { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.upg-ico img { width: 80%; image-rendering: pixelated; }
.upg-ladder .is-owned .upg-ico { box-shadow: inset 0 0 0 2px #34d17a; } .upg-ladder .is-owned b { color: #7ff0ae; }
.upg-ladder .is-next .upg-ico { box-shadow: inset 0 0 0 2px #ffd60a, 0 0 24px -4px #ffd60a; animation: glow-pulse 2.4s ease-in-out infinite; } .upg-ladder .is-next b { color: #ffd60a; }
.upg-tick { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #34d17a; color: #062a14; font-size: .7rem; }
.upg-arrow { color: var(--muted); font-size: 1.1rem; }
.upg-login { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 28px; border-radius: 20px; }
.upg-login h2 { font: 400 1.8rem/1 var(--font-head); margin-bottom: 6px; } .upg-login p { color: var(--muted); }
.upg-offer { display: grid; grid-template-columns: 220px 1fr 260px; align-items: center; gap: 22px; padding: 24px; border-radius: 22px; box-shadow: inset 0 0 0 2px rgba(255, 214, 10, .35); }
.upg-pair { display: flex; align-items: center; justify-content: center; gap: 10px; }
.upg-pair img { width: 64px; image-rendering: pixelated; opacity: .7; } .upg-pair img.is-big { width: 110px; opacity: 1; } .upg-pair i { color: #ffd60a; }
.upg-offer-body small { color: #ffd60a; font-size: .8rem; text-transform: uppercase; }
.upg-offer-body h2 { font: 400 2rem/1 var(--font-head); margin: 6px 0 10px; }
.upg-offer-buy { display: grid; gap: 8px; text-align: center; }
.upg-offer-buy s { color: var(--muted); } .upg-offer-buy b { font: 400 2.4rem/1 var(--font-head); color: #34d17a; } .upg-offer-buy b span { font-size: 1rem; }
.upg-offer-buy small { color: var(--muted); font-size: .72rem; }
.upg-steps-title { font: 400 1.6rem/1 var(--font-head); margin-bottom: 14px; }
.upg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.upg-step { position: relative; display: grid; justify-items: center; gap: 8px; padding: 22px 16px; border-radius: 18px; text-align: center; transition: transform .25s; }
.upg-step:hover { transform: translateY(-4px); }
.upg-step.is-yours { box-shadow: inset 0 0 0 2px #ffd60a; }
.upg-yours { position: absolute; top: -10px; padding: 3px 9px; border-radius: 7px; background: #ffd60a; color: #2a1d00; font: 400 .75rem var(--font-head); }
.upg-step-pair { display: flex; align-items: center; gap: 10px; } .upg-step-pair img { width: 56px; image-rendering: pixelated; } .upg-step-pair i { color: var(--muted); }
.upg-step-name { font: 400 1.05rem var(--font-head); letter-spacing: .02em; }
.upg-step-price { font: 400 1.6rem/1 var(--font-head); color: #34d17a; }
.upg-step small { color: var(--muted); font-size: .72rem; }
@media (max-width: 860px) { .upg-offer { grid-template-columns: 1fr; text-align: center; } .upg-ico { width: 72px; height: 72px; } .upg-arrow { display: none; } }

/* ---------- account ---------- */
.acct { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.acct-side { padding: 18px; border-radius: 20px; position: sticky; top: 20px; display: grid; gap: 14px; }
.acct-me { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.acct-me img { width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; }
.acct-me small { display: block; color: var(--muted); font-size: .72rem; } .acct-me b { font: 400 1.3rem var(--font-head); }
.acct-nav { display: grid; gap: 6px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: #efe3d5; transition: background .15s; }
.acct-nav a:hover { background: rgba(255, 255, 255, .06); }
.acct-nav a.is-on { background: var(--purple); color: #fff; box-shadow: 0 4px 0 #a87224; }
.acct-nav .acct-out { color: #ff7a8a; margin-top: 6px; }
.acct-main { display: grid; gap: 14px; }
.acct-list { display: grid; gap: 12px; }
.acct-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; flex-wrap: wrap; }
.acct-img { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 1.4rem; }
.acct-img img { width: 80%; image-rendering: pixelated; }
.acct-info { flex: 1; min-width: 180px; display: grid; gap: 3px; } .acct-info b { font-size: 1rem; } .acct-info small { color: var(--muted); font-size: .76rem; }
.acct-when { color: var(--muted); font-size: .8rem; }
.acct-amt { font: 400 1.4rem var(--font-head); }
.acct-status { padding: 4px 10px; border-radius: 8px; font-size: .75rem; background: rgba(255, 255, 255, .08); }
.st-active { background: rgba(52, 209, 122, .18); color: #7ff0ae; } .st-canceled, .st-removed { background: rgba(255, 84, 112, .16); color: #ff8fa0; }
.btn-danger { background: #ff5470 !important; color: #fff !important; }
.acct-empty { padding: 40px; text-align: center; border-radius: 20px; display: grid; justify-items: center; gap: 12px; color: var(--muted); } .acct-empty i { font-size: 2rem; }
.acct-back { color: var(--muted); font-size: .85rem; } .acct-back:hover { color: #fff; }
.acc-menu .acc-logout { color: #ff8fa0; }
.inline-link { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .acct { grid-template-columns: 1fr; } .acct-side { position: static; } }

/* ---------- 404 ---------- */
.nf { display: grid; justify-items: center; gap: 16px; padding: 60px 24px; text-align: center; border-radius: 24px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 117, 41, .18), transparent 60%), var(--surface); }
.nf-code { display: flex; align-items: center; gap: 10px; font: 400 clamp(5rem, 14vw, 9rem)/1 var(--font-head); background: var(--splash); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-code img { width: clamp(80px, 13vw, 140px); image-rendering: pixelated; animation: crate-shake 3s ease-in-out infinite; }
.nf h1 { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--font-head); }
.nf p { color: var(--muted); max-width: 440px; }
.nf-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
/* Ranks | Rank upgrades switch */
.rank-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); justify-self: start; width: min(460px, 100%); }
.rank-switch a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 11px; color: var(--muted); font: 400 1.1rem var(--font-head); letter-spacing: .03em; text-transform: uppercase; transition: background .2s, color .2s; }
.rank-switch a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.rank-switch a.is-on { background: linear-gradient(180deg, #ffc065, #f0a83f); color: #fff; box-shadow: 0 4px 0 #a87224; }

/* ---------- v20: six rank cards on one row ---------- */
@media (min-width: 1100px) {
    .grid-ranks.grid-n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    .grid-ranks.grid-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .grid-ranks .product-body h3 { font-size: 1.5rem; }
    .grid-ranks .product-btns .btn-ghost span { display: none; }
    .grid-ranks .product-btns .btn-ghost { flex: 0 0 38px; padding: 0; }
    .grid-ranks .product-req { font-size: .62rem; padding: 4px 7px; top: 10px; left: 10px; }
}
@media (min-width: 640px) and (max-width: 1099px) { .grid-ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- v20: animated Ranks / Rank upgrades switch ---------- */
.rank-switch { position: relative; }
.rank-switch a { position: relative; z-index: 1; background: none !important; box-shadow: none !important; }
.rank-switch a.is-on { color: #fff; }
.rs-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 9px); border-radius: 11px;
    background: linear-gradient(180deg, #ffc065, #f0a83f); box-shadow: 0 4px 0 #a87224; transition: transform .32s cubic-bezier(.3, 1.4, .5, 1); }
.rank-switch.on-right .rs-ind { transform: translateX(calc(100% + 6px)); }
.rank-switch.no-anim .rs-ind { transition: none; }
.rank-switch:not(.no-anim) a { transition: color .2s; }
.rank-switch.on-left a[data-side="left"], .rank-switch.on-right a[data-side="right"] { color: #fff; }
.rank-switch.on-left a[data-side="right"], .rank-switch.on-right a[data-side="left"] { color: var(--muted); }
@keyframes rs-in-r { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes rs-in-l { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes rs-out-l { to { opacity: 0; transform: translateX(-60px); } }
@keyframes rs-out-r { to { opacity: 0; transform: translateX(60px); } }
.rs-in-right { animation: rs-in-r .42s cubic-bezier(.2, .9, .3, 1) both; }
.rs-in-left { animation: rs-in-l .42s cubic-bezier(.2, .9, .3, 1) both; }
.rs-out-left { animation: rs-out-l .26s ease-in forwards; }
.rs-out-right { animation: rs-out-r .26s ease-in forwards; }

/* UnstableWars: key tiers (Toxic / Volt / Void / Unstable), real key art without colour shifting, calm creator-kits banner */
.k-common { --kc: #4ade80; --hue: 0deg; } .k-rare { --kc: #facc15; --hue: 0deg; } .k-epic { --kc: #a855f7; --hue: 0deg; } .k-legendary { --kc: #fb923c; --hue: 0deg; }
.k-common .key-art img { filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); }
.banner::before { animation: none !important; background: none !important; border-color: transparent !important; }

/* UnstableWars: long names (TheobaldTheBird Kit...) must wrap instead of overlapping, skin renders stay smooth */
.product-body h3, .key h3, .bundle h3, .tile-text b, .banner-text h2, .pp-body h1, .modal-body h2 { line-height: 1.12 !important; overflow-wrap: anywhere; word-break: normal; }
.product-body h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem) !important; letter-spacing: .02em; }
.product-body .price b, .price b { display: inline-block; line-height: 1.3; }
.product-img img[src*="mc-heads"], .modal-img img[src*="mc-heads"], .pp-img img[src*="mc-heads"] { image-rendering: auto; max-width: 62%; max-height: 92%; }

/* kit skin renders: fixed height inside the image box so they never spill over the name and buttons */
.product-img { overflow: hidden; }
.product-img img[src*="mc-heads"] { position: static !important; height: 152px !important; width: auto !important; max-height: none !important; max-width: 90% !important; object-fit: contain; }
@media (max-width: 700px) { .product-img img[src*="mc-heads"] { height: 104px !important; } }
.modal-img img[src*="mc-heads"], .pp-img img[src*="mc-heads"] { height: 260px !important; width: auto !important; max-height: none !important; }

/* bonus coins tag on kit cards */
.bonus-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(250, 204, 21, .14); border: 1px solid rgba(250, 204, 21, .5); color: #facc15; font: 400 .72rem/1.2 var(--font-pixel, var(--font-body)); letter-spacing: .02em; white-space: nowrap; }
.bonus-tag i { font-size: .72rem; }

/* category page: back to store + categories pop-up */
.cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.cat-pop[x-cloak] { display: none; }
.cat-pop-box { width: min(420px, 100%); max-height: 86vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 2px solid var(--accent-line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); }
.cat-pop-head { display: flex; align-items: center; justify-content: space-between; font: 400 1.5rem/1 var(--font-head); text-transform: uppercase; }
.cat-pop-x { background: none; border: 0; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.cat-pop-list { display: grid; gap: 8px; }
.cat-pop-list a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font: 400 1.05rem/1.2 var(--font-head); text-transform: uppercase; transition: transform .15s, border-color .15s; }
.cat-pop-list a:hover, .cat-pop-list a.is-active { border-color: var(--accent); transform: translateX(3px); color: var(--accent); }
[x-cloak] { display: none !important; }
