/* MewGem Store.
 *
 * One stylesheet, no framework. The look is the Neocatics card itself: a dark navy panel,
 * the name in mint caps, a hexagonal cost badge (here, the price), a mint rule under the art
 * and blue "ability" banners written like code - STATIC[LAST RESORT]. Fonts are self-hosted
 * (nothing is fetched from a third party to draw a page), and every animation stops for
 * prefers-reduced-motion. */

/* ---- fonts: Latin and Latin Extended subsets of what ships in /assets/fonts ---- */
@font-face { font-family: 'Jockey One'; src: url('/assets/fonts/Jockey%20One-86d5c3c581d817ab35e259b257093a6c.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jockey One'; src: url('/assets/fonts/Jockey%20One-ebd923e89fdc58768375bb3cd0ad7a0f.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; src: url('/assets/fonts/Oswald-b4f4b07e5bc1121aba31358e3c34cb8c.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; src: url('/assets/fonts/Oswald-5aa246cc4a0e8e7b8627dcf112c63435.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/Roboto-071777c63b29322cc9d46e703fb70e72.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/Roboto-5e723647cd846c5a0ed59a2732a705b9.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/Roboto-6b938855188a40e19e5ccc45783cafac.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; src: url('/assets/fonts/Roboto-9665bffba8202f2d52b366ded697def0.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: dark;
    --navy: #1f285f;
    --navy-deep: #151b47;
    --navy-ink: #0b0f2e;
    --panel: #171e4d;
    --panel-2: #212a6b;
    --mint: #6bffdf;
    --mint-hot: #1ef5b0;
    --mint-soft: rgba(107, 255, 223, 0.12);
    --mint-line: rgba(107, 255, 223, 0.34);
    --blue: #2f43ff;
    --blue-soft: rgba(47, 67, 255, 0.22);
    --ink: #eef3ff;
    --ink-2: #bcc5ee;
    --ink-3: #8a96cc;
    --line: rgba(188, 197, 238, 0.14);
    --danger: #ff7c97;
    --gold: #ffd46b;

    --display: 'Jockey One', 'Oswald', Impact, sans-serif;
    --label: 'Oswald', 'Arial Narrow', sans-serif;
    --body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r: 14px;
    --r-sm: 8px;
    --max: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --shadow: 0 22px 44px -20px rgba(3, 5, 25, 0.85);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 400 16px/1.55 var(--body);
    color: var(--ink);
    background-color: var(--navy-deep);
    /* A faint circuit grid over a navy that deepens toward the edges. */
    background-image:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(107, 255, 223, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 50% at -10% 30%, rgba(47, 67, 255, 0.16), transparent 60%),
        linear-gradient(rgba(107, 255, 223, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 255, 223, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    background-attachment: fixed;
    overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--navy-ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* The code-syntax label the cards use for abilities: KIND[NAME]. */
.syntax { font-family: var(--label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--ink-2); }
.syntax b { color: var(--mint); font-weight: 600; }
.eyebrow { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--mint); margin-bottom: .6rem; }
.muted { color: var(--ink-3); }

/* ---- top ticker + header ---------------------------------------------------------------- */
.ticker {
    background: var(--navy-ink);
    border-bottom: 1px solid var(--line);
    font-family: var(--label);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.ticker .wrap { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.ticker span::before { content: '◆'; color: var(--mint); margin-right: 8px; font-size: .7em; vertical-align: 1px; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(21, 27, 71, 0.82);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 32px; }
.brand-word { font-family: var(--display); font-size: 1.45rem; line-height: 1; color: var(--mint); letter-spacing: .03em; }
.brand-word small { display: block; font-family: var(--label); font-size: .62rem; letter-spacing: .34em; color: var(--ink-2); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .88rem;
    color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint); background: var(--mint-soft); }
.cart-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: var(--mint); color: var(--navy-ink); border: 0; cursor: pointer;
    font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .88rem;
    padding: 9px 14px 9px 12px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: transform .15s var(--ease), background .15s;
}
.cart-btn:hover { background: #fff; transform: translateY(-1px); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
    background: var(--navy-ink); color: var(--mint);
    display: inline-grid; place-items: center; font-size: .78rem; letter-spacing: 0;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.account-link { font-family: var(--label); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.account-link:hover { color: var(--mint); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; }
@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-deep); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 14px; display: none; }
    .nav.open { display: flex; }
    .nav a { padding: 12px; }
    .ticker .wrap { gap: 10px 18px; }
    .ticker span:nth-child(n+3) { display: none; }
}

/* ---- buttons ---------------------------------------------------------------------------- */
.btn {
    --notch: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; text-decoration: none;
    font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem;
    padding: 13px 22px; color: var(--navy-ink); background: var(--mint);
    clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
    transition: transform .15s var(--ease), background .15s, color .15s, opacity .15s;
}
.btn:hover { background: #fff; color: var(--navy-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint-line); clip-path: none; border-radius: var(--r-sm); }
.btn-ghost:hover { background: var(--mint-soft); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #4b5cff; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .8rem; --notch: 7px; }
.btn.added { background: var(--mint-hot); }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.linkish:hover { color: var(--danger); }

/* The hexagon from the cards' cost badge. */
.hex {
    display: inline-grid; place-items: center;
    min-width: 76px; height: 34px; padding: 0 16px;
    background: var(--mint); color: var(--navy-ink);
    font-family: var(--display); font-size: 1.15rem; line-height: 1;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

/* ---- hero -------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero::before {
    /* The dot field from the MewGem banner, drawn rather than loaded. */
    /* Kept to the art side so it never sits under the headline. */
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .8;
    background:
        radial-gradient(circle at 60% 10%, rgba(255,255,255,.55) 0 7px, transparent 8px),
        radial-gradient(circle at 93% 12%, rgba(255,255,255,.7) 0 20px, transparent 21px),
        radial-gradient(circle at 86% 40%, rgba(30,245,176,.55) 0 34px, transparent 35px),
        radial-gradient(circle at 97% 70%, rgba(255,255,255,.6) 0 13px, transparent 14px),
        radial-gradient(circle at 79% 90%, rgba(30,245,176,.6) 0 18px, transparent 19px),
        radial-gradient(circle at 66% 82%, rgba(255,255,255,.45) 0 9px, transparent 10px),
        radial-gradient(circle at 99% 96%, rgba(30,245,176,.5) 0 26px, transparent 27px);
    mask-image: linear-gradient(90deg, transparent 0 52%, #000 72%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0 52%, #000 72%);
    animation: drift 30s linear infinite alternate;
}
@keyframes drift { to { transform: translate3d(0, -18px, 0) scale(1.03); } }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); color: #fff; }
.hero h1 em { font-style: normal; color: var(--mint); display: block; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; min-height: 320px; }
.hero-art img { position: absolute; width: min(100%, 560px); right: 0; top: 50%; transform: translateY(-50%) rotate(-3deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(calc(-50% - 10px)) rotate(-1.5deg); } }
.hero-code { position: absolute; left: 0; bottom: 6%; font-family: var(--label); font-size: .8rem; letter-spacing: .08em; color: var(--ink-2); background: rgba(11,15,46,.8); border: 1px solid var(--mint-line); border-left: 3px solid var(--blue); padding: 10px 14px; }
.hero-code b { color: var(--mint); font-weight: 600; }
@media (max-width: 860px) {
    /* Headline first on a phone; the art follows, smaller, so the offer is on the first screen. */
    .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
    .hero-art { min-height: 0; }
    .hero-art img { position: relative; top: 0; width: min(78%, 380px); transform: rotate(-3deg); margin: 0 auto; animation: none; }
    .hero-code { display: none; }
    .hero::before { mask-image: linear-gradient(180deg, transparent 0 45%, #000 80%); -webkit-mask-image: linear-gradient(180deg, transparent 0 45%, #000 80%); }
}

.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: var(--ink-2); max-width: 60ch; }
.banner-hero { position: relative; border-radius: var(--r); overflow: hidden; margin: clamp(20px, 4vw, 36px) 0 8px; border: 1px solid var(--mint-line); box-shadow: var(--shadow); }
.banner-hero img { width: 100%; height: clamp(170px, 30vw, 300px); object-fit: cover; }
.banner-hero .cap { position: absolute; inset: auto 0 0; padding: clamp(16px, 3vw, 28px); background: linear-gradient(transparent, rgba(11,15,46,.95)); }
.banner-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .2em; }
.banner-hero p { margin: 0; color: var(--ink-2); }

/* The hero's fan: whatever is on sale, three product cards spread like a hand. */
.fan { position: relative; height: clamp(260px, 32vw, 400px); }
.fan-card {
    position: absolute; left: 50%; top: 50%; width: clamp(150px, 17vw, 220px); aspect-ratio: 5 / 7;
    background: linear-gradient(170deg, var(--panel-2), var(--navy-ink)); border: 1px solid var(--mint-line); border-radius: 12px;
    padding: 8px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.8);
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateX(var(--x, 0));
    transition: transform .5s var(--ease);
}
.fan-card img { width: 100%; height: 72%; object-fit: cover; border-radius: 7px; background: var(--navy-ink); }
.fan-card::after { content: ''; display: block; height: 3px; background: var(--mint); margin: 8px -8px 0; }
.fan-card span { display: block; margin-top: 8px; font-family: var(--display); color: var(--mint); text-transform: uppercase; font-size: .95rem; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan-card:nth-child(1) { --r: -14deg; --x: -46%; z-index: 1; }
.fan-card:nth-child(2) { --r: 0deg; --x: 0; z-index: 3; top: 46%; }
.fan-card:nth-child(3) { --r: 14deg; --x: 46%; z-index: 2; }
.fan:hover .fan-card:nth-child(1) { --r: -18deg; --x: -58%; }
.fan:hover .fan-card:nth-child(3) { --r: 18deg; --x: 58%; }
@media (max-width: 860px) { .fan { height: 250px; } .fan-card { width: 140px; } }

/* ---- collections ------------------------------------------------------------------------- */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.coll-tile {
    display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
    padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(23,30,77,.75);
    transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.coll-tile:hover { border-color: var(--mint); transform: translateY(-3px); background: rgba(33,42,107,.8); color: var(--ink); }
.coll-art { position: relative; height: 110px; }
.coll-art img, .coll-art .ph { position: absolute; inset: 6px 10px; width: calc(100% - 20px); height: calc(100% - 12px); object-fit: cover; border-radius: 8px; border: 1px solid var(--mint-line); background: var(--navy-ink); }
.coll-art .ph { display: grid; place-items: center; color: var(--mint-line); font-family: var(--display); font-size: 2rem; }
.coll-art::before, .coll-art::after { content: ''; position: absolute; inset: 6px 10px; border-radius: 8px; border: 1px solid var(--mint-line); background: var(--panel); }
.coll-art::before { transform: rotate(-9deg) translateX(-6px); }
.coll-art::after { transform: rotate(7deg) translateX(6px); }
.coll-art img, .coll-art .ph { z-index: 1; }
.coll-body h3 { font-size: 1.45rem; margin: 4px 0; color: #fff; }
.coll-body p { margin: 0; color: var(--ink-3); font-size: .9rem; }

/* ---- trust strip ------------------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: clamp(28px, 5vw, 48px) 0; }
.trust > div { background: rgba(21,27,71,.85); padding: 18px 18px 16px; display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 26px; height: 26px; color: var(--mint); margin-top: 2px; }
.trust strong { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .92rem; }
.trust span { font-size: .87rem; color: var(--ink-3); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

.section { margin: clamp(36px, 6vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0; }
.rule { height: 3px; background: linear-gradient(90deg, var(--mint), var(--mint-line) 40%, transparent); border: 0; margin: 12px 0 0; }

/* ---- the bit card (a product) ------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.bit-card {
    --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
    position: relative; display: flex; flex-direction: column;
    background: linear-gradient(170deg, var(--panel-2), var(--panel) 40%, var(--navy-ink));
    border: 1px solid var(--mint-line);
    border-radius: var(--r);
    padding: 12px;
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .25s var(--ease), border-color .2s;
    isolation: isolate;
}
.bit-card::after {
    /* The foil: a sheen that follows the pointer. */
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 38%),
        linear-gradient(115deg, transparent 30%, rgba(107,255,223,.16) 45%, rgba(47,67,255,.18) 55%, transparent 70%);
    background-size: 100% 100%, 250% 250%;
    background-position: 0 0, var(--mx) var(--my);
    mix-blend-mode: screen; opacity: 0; transition: opacity .25s;
}
.bit-card:hover { border-color: var(--mint); }
.bit-card:hover::after, .bit-card:focus-within::after { opacity: 1; }
.bit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.bit-name { font-family: var(--display); font-size: 1.28rem; line-height: 1.02; color: var(--mint); text-transform: uppercase; margin: 0; }
.bit-name a { color: inherit; text-decoration: none; }
.bit-name a::before { content: ''; position: absolute; inset: 0; z-index: 1; } /* the whole card opens the product */
.bit-art { position: relative; margin: 10px 0 0; aspect-ratio: 4 / 3; background: var(--navy-ink); border-radius: 6px; overflow: hidden; }
.bit-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.bit-card:hover .bit-art img { transform: scale(1.04); }
.bit-art .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mint-line); font-family: var(--display); font-size: 2.2rem; }
.bit-rule { height: 3px; background: var(--mint); margin: 10px -12px 0; }
.bit-banner { align-self: flex-start; margin: 10px 0 6px -12px; padding: 4px 14px 4px 12px; background: var(--blue); color: #fff; font-family: var(--label); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.bit-text { font-size: .9rem; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; }
.bit-foot { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; }
.bit-foot .btn { flex: 1; }
.bit-opts { font-family: var(--label); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* Dealt onto the table as they arrive. */
.deal { opacity: 0; transform: translateY(26px) rotate(-2.5deg); }
.deal.in { animation: deal .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes deal { to { opacity: 1; transform: none; } }

.skeleton { border-radius: var(--r); min-height: 360px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---- catalog toolbar --------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 24px; padding: 12px; background: rgba(11,15,46,.55); border: 1px solid var(--line); border-radius: var(--r); }
.toolbar .search { flex: 1 1 220px; position: relative; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); }
.toolbar .search input { padding-left: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
    font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
    padding: 7px 12px; border-radius: 999px; transition: all .15s;
}
.chip:hover { border-color: var(--mint-line); color: #fff; }
.chip[aria-pressed="true"] { background: var(--mint); color: var(--navy-ink); border-color: var(--mint); }
.result-count { font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--ink-3); margin-bottom: 14px; }

/* ---- form fields ------------------------------------------------------------------------- */
.input, .select {
    width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
    background: rgba(11,15,46,.7); border: 1px solid var(--line); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-3); }
.input:focus, .select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--navy-deep); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--ink-2); }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; }
.msg { font-size: .88rem; margin-top: 8px; }
.msg.ok { color: var(--mint); }
.msg.err { color: var(--danger); }

/* ---- product page ------------------------------------------------------------------------ */
.crumbs { font-family: var(--label); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--mint); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.product-art { position: sticky; top: 90px; }
.product-art .bit-card { padding: 16px; }
.product-art .bit-card::after { opacity: .7; }
.product-art .bit-art { aspect-ratio: 1 / 1; }
.product-info h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--mint); text-transform: uppercase; }
.price-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.price-row .hex { height: 42px; font-size: 1.4rem; min-width: 110px; }
.product-info .desc { color: var(--ink-2); font-size: 1.04rem; }
.contents { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 16px; margin: 18px 0; background: rgba(11,15,46,.45); }
.contents ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.contents li { margin: 3px 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 18px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: block; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(11,15,46,.6); font-size: .92rem; transition: all .15s; }
.opt input:hover + span { border-color: var(--mint-line); }
.opt input:checked + span { border-color: var(--mint); background: var(--mint-soft); color: #fff; box-shadow: inset 3px 0 0 var(--mint); }
.opt input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 200px; }
.fine { font-size: .86rem; color: var(--ink-3); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.fine svg { flex: none; width: 16px; height: 16px; color: var(--mint); margin-top: 3px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } .product-art { position: static; } }

/* ---- quantity stepper -------------------------------------------------------------------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(11,15,46,.7); }
.stepper button { width: 36px; height: 38px; border: 0; background: none; color: var(--mint); cursor: pointer; font-size: 1.1rem; }
.stepper button:hover:not([disabled]) { background: var(--mint-soft); }
.stepper button[disabled] { color: var(--ink-3); cursor: not-allowed; }
.stepper output, .stepper span { min-width: 30px; text-align: center; font-family: var(--label); font-size: 1rem; }

/* ---- cart lines, drawer, checkout -------------------------------------------------------- */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-art { width: 72px; aspect-ratio: 1; border-radius: 8px; background: var(--navy-ink); border: 1px solid var(--line); overflow: hidden; }
.line-art img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-family: var(--display); font-size: 1.08rem; line-height: 1.1; color: #fff; text-decoration: none; }
.line-name:hover { color: var(--mint); }
.line-opt { display: inline-block; margin-top: 4px; font-family: var(--label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); background: var(--mint-soft); padding: 2px 8px; border-radius: 4px; }
.line-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.line-price { font-family: var(--label); font-size: 1.02rem; text-align: right; white-space: nowrap; }
.line-price small { display: block; color: var(--ink-3); font-size: .78rem; }
.line.gone { opacity: .6; }
.line.gone .line-opt { color: var(--danger); background: rgba(255,124,151,.12); }

.overlay { position: fixed; inset: 0; background: rgba(5, 7, 26, .62); backdrop-filter: blur(2px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
    width: min(420px, 100vw); display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--panel-2), var(--navy-deep) 30%);
    border-left: 1px solid var(--mint-line);
    box-shadow: -30px 0 60px -20px rgba(0,0,0,.8);
    transform: translateX(104%); transition: transform .32s var(--ease);
    visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.7rem; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: var(--r-sm); cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { border-color: var(--mint); color: var(--mint); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: rgba(11,15,46,.6); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--label); letter-spacing: .04em; }
.sum-row.big { font-size: 1.25rem; color: #fff; }
.sum-row.big span:last-child { color: var(--mint); }
.empty { text-align: center; padding: 48px 12px; color: var(--ink-3); }
.empty .glyph { font-family: var(--display); font-size: 3rem; color: var(--mint-line); line-height: 1; margin-bottom: 10px; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr); gap: clamp(20px, 4vw, 40px); align-items: start; margin-bottom: 64px; }
.panel { background: rgba(23, 30, 77, .82); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.5vw, 24px); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.6rem; }
.summary { position: sticky; top: 90px; }
.summary .sum-row { padding: 6px 0; }
.summary .sum-row.big { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.discount { color: var(--mint); }
.guest-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px dashed var(--mint-line); border-radius: var(--r-sm); background: var(--mint-soft); margin: 14px 0; font-size: .9rem; color: var(--ink-2); }
.guest-note svg { flex: none; width: 22px; height: 22px; color: var(--mint); }
.guest-note strong { color: #fff; display: block; font-family: var(--label); letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; }
details.extra { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
details.extra summary { cursor: pointer; font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; }
details.extra summary::-webkit-details-marker { display: none; }
details.extra summary::after { content: '+'; color: var(--mint); font-size: 1.1rem; line-height: 1; }
details.extra[open] summary::after { content: '−'; }
details.extra > div { padding-top: 12px; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(255,124,151,.4); background: rgba(255,124,151,.1); color: #ffd6df; font-size: .92rem; margin-top: 12px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---- steps, orders, thank-you ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { list-style: none; counter-increment: step; position: relative; padding: 22px 18px 18px; background: rgba(23,30,77,.7); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: 'STEP[' counter(step) ']'; display: block; font-family: var(--label); letter-spacing: .12em; font-size: .75rem; color: var(--mint); margin-bottom: 6px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-3); font-size: .92rem; }
.steps-list { padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.center-card { max-width: 620px; margin: clamp(32px, 6vw, 72px) auto; text-align: center; }
.center-card h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); color: var(--mint); }
.order-no { display: inline-block; font-family: var(--label); letter-spacing: .12em; font-size: 1.05rem; padding: 8px 14px; border: 1px solid var(--mint-line); border-radius: var(--r-sm); background: rgba(11,15,46,.6); margin: 4px 0 18px; }
.order-no b { color: var(--mint); font-weight: 600; }
.status { display: inline-block; font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: #c9d0ff; }
.status.shipped, .status.completed { background: var(--mint-soft); color: var(--mint); }
.status.cancelled, .status.refunded { background: rgba(255,124,151,.14); color: var(--danger); }
.text-left { text-align: left; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--mint-line); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- help: MewGem's own live support (support.js), in place of Tawk.to -------------------- */
.help-launcher {
    position: fixed; right: 20px; bottom: 20px; z-index: 55;
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0;
    padding: 12px 18px 12px 14px; color: var(--navy-ink); background: var(--mint);
    font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); transition: transform .15s var(--ease), background .15s;
}
.help-launcher:hover { background: #fff; transform: translateY(-2px); }
.help-launcher svg { width: 20px; height: 20px; }
.help-launcher.open { background: #fff; }
.help-panel {
    position: fixed; right: 20px; bottom: 78px; z-index: 56;
    width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px));
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--panel-2), var(--navy-deep) 40%);
    border: 1px solid var(--mint-line); border-radius: var(--r); box-shadow: var(--shadow);
    animation: toast-in .25s var(--ease);
}
.help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.help-head h2 { font-size: 1.5rem; margin: 2px 0 0; }
.help-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; overflow: hidden; min-height: 0; flex: 1; }
.help-home { display: grid; gap: 10px; overflow-y: auto; }
.help-link { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(11,15,46,.5); text-decoration: none; color: var(--ink); }
.help-link:hover { border-color: var(--mint); color: var(--ink); }
.help-link strong { font-family: var(--label); letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; color: var(--mint); }
.help-link span { font-size: .88rem; color: var(--ink-3); }
.help-cta { margin-top: 6px; padding: 14px; border: 1px dashed var(--mint-line); border-radius: var(--r-sm); background: var(--mint-soft); }
.help-cta p { margin: 0 0 10px; font-size: .9rem; color: var(--ink-2); }
.help-status { margin: 0; font-size: .82rem; color: var(--ink-3); font-family: var(--label); letter-spacing: .06em; text-transform: uppercase; }
.help-status:empty { display: none; }
.help-log { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.help-note { margin: 0; text-align: center; font-size: .82rem; color: var(--ink-3); }
.help-msg { max-width: 85%; align-self: flex-start; }
.help-msg .who { display: block; font-size: .72rem; color: var(--ink-3); margin-bottom: 2px; font-family: var(--label); letter-spacing: .05em; }
.help-msg p { margin: 0; padding: 8px 11px; border-radius: 10px 10px 10px 3px; background: rgba(11,15,46,.8); border: 1px solid var(--line); font-size: .92rem; white-space: pre-wrap; word-wrap: break-word; }
.help-msg.staff p { background: var(--blue-soft); border-color: rgba(47,67,255,.5); }
.help-msg.me { align-self: flex-end; text-align: right; }
.help-msg.me p { background: var(--mint-soft); border-color: var(--mint-line); border-radius: 10px 10px 3px 10px; text-align: left; }
.help-form { display: flex; gap: 8px; align-items: flex-end; }
.help-form textarea { resize: none; }
@media (max-width: 520px) {
    .help-launcher { right: 12px; bottom: 12px; }
    .help-panel { right: 8px; left: 8px; width: auto; bottom: 68px; }
}
.toasts { bottom: 84px; }

/* ---- toast ------------------------------------------------------------------------------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--navy-ink); border: 1px solid var(--mint-line); border-left: 4px solid var(--mint); border-radius: var(--r-sm); box-shadow: var(--shadow); animation: toast-in .3s var(--ease); font-size: .93rem; }
.toast.err { border-left-color: var(--danger); }
.toast button { margin-left: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---- footer ------------------------------------------------------------------------------ */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: rgba(11,15,46,.75); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.site-footer h3 { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--mint); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--mint); }
.site-footer .tag { color: var(--ink-3); font-size: .9rem; max-width: 34ch; margin-top: 10px; }
.legal { border-top: 1px solid var(--line); padding: 16px 0 26px; font-size: .84rem; color: var(--ink-3); }
.legal .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .deal { opacity: 1; transform: none; }
    .bit-card { transform: none !important; }
}
