/* PrimeLinks – dark winter night. Loaded after style.css; remaps the palette and fixes the hard-coded light surfaces. */
:root {
  --night-0: #030a1d;
  --night-1: #061431;
  --night-2: #0a1c44;
  --night-card: rgb(10 28 66 / .72);
  --glow: rgb(70 140 255 / .65);
  --edge: rgb(80 150 255 / .55);

  --navy: #eef4ff;            /* main text */
  --navy-2: #b9cdf0;
  --muted: #86a2d0;
  --ice-0: #0a1c44;
  --ice-50: #0a1c44;
  --ice-100: rgb(60 120 255 / .16);
  --ice-200: rgb(90 150 255 / .38);
  --ice-300: #8cc4ff;
  --ice-600: #4da3ff;
  --ice-700: #8cc4ff;
  --baby-50: #0a1c44;
  --baby-100: rgb(60 120 255 / .18);
  --baby-200: #0a1c44;
  --baby-300: #061431;
  --baby-400: #040e26;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .3);
  --shadow: 0 2px 4px rgb(0 0 0 / .3), 0 12px 32px -8px rgb(30 100 255 / .35);
  --shadow-lg: 0 24px 60px -18px rgb(30 100 255 / .6);
  color-scheme: dark;
}

body {
  color: var(--navy);
  background:
    radial-gradient(1000px 600px at 15% -5%, rgb(40 100 255 / .28), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgb(30 80 220 / .2), transparent 60%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 70%);
  background-attachment: fixed;
}

/* ---------- header ---------- */
.site-header { background: rgb(4 12 34 / .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--edge), 0 8px 30px -10px rgb(30 100 255 / .5); }
.header-inner { gap: 1rem; }
.main-nav > a, .nav-drop summary { color: #dbe8ff; }
.main-nav > a:hover, .nav-drop summary:hover, .nav-drop[open] summary { background: rgb(60 120 255 / .22); color: #fff; }
.nav-home { background: rgb(60 120 255 / .3); box-shadow: inset 0 0 0 1px var(--edge); color: #fff !important; }
.nav-deals span { filter: drop-shadow(0 0 6px rgb(255 140 0 / .7)); }
.header-search { display: flex; align-items: center; gap: .5rem; padding: .55em 1em; border-radius: 12px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--edge); color: var(--muted); min-width: 0; }
.header-search:focus-within { box-shadow: inset 0 0 0 2px var(--ice-400); background: rgb(255 255 255 / .1); }
.header-search input { border: 0; background: none; outline: none; width: 11.5rem; min-width: 3rem; color: #fff; font-size: .88rem; }
.header-search input::placeholder { color: var(--muted); }
.header-actions { flex: none; }
.drop-menu { background: #0b1d46; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--edge); }
.drop-menu a, .drop-menu button { color: #dbe8ff; }
.drop-menu a:hover, .drop-menu button:hover, .drop-menu .active { background: rgb(60 120 255 / .25); color: #fff; }
.nav-drop .drop-menu .drop-all { background: #0b1d46; }
.cur summary { background: rgb(255 255 255 / .06); color: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.logo-word { color: #fff; }
.lights { background: transparent; }
.announce { background: linear-gradient(90deg, #0f3a8a, #1c5fd6, #0f3a8a); }

/* ---------- buttons, pills, tabs, chips ---------- */
.btn-primary { box-shadow: 0 0 22px rgb(60 130 255 / .55); }
.btn-ghost { background: rgb(255 255 255 / .07); color: #dbe8ff; box-shadow: inset 0 0 0 1px var(--edge); }
.btn-ghost:hover { background: rgb(60 120 255 / .3); color: #fff; }
.pill { background: rgb(60 120 255 / .22); color: #cfe3ff; }
.tabs { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--edge); }
.tab { color: #cfe0ff; }
.tab i { background: rgb(255 255 255 / .12); color: #cfe0ff; }
.chip, .catbar-link { background: rgb(255 255 255 / .06); color: #dbe8ff; box-shadow: inset 0 0 0 1px var(--edge); }
.chip:hover, .catbar-link:hover { background: rgb(60 120 255 / .35); color: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.chip.active { background: linear-gradient(135deg, #3b8cff, #1f6be0); color: #fff; box-shadow: 0 0 16px rgb(60 130 255 / .6); }
.sort summary, .search, .creators .search { background: rgb(255 255 255 / .06); color: #dbe8ff; box-shadow: inset 0 0 0 1px var(--edge); }
.search:focus-within, .creators .search:focus-within { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 2px var(--ice-400); }
.search input { color: #fff; }
.search input::placeholder, .item-search input::placeholder { color: var(--muted); }
.code-chip { background: rgb(255 255 255 / .06); color: #cfe3ff; }
.code-chip:hover { background: rgb(60 120 255 / .3); }

/* ---------- product + creator cards ---------- */
.pcard { background: var(--night-card); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--edge), 0 8px 24px -10px rgb(0 0 0 / .6); }
.pcard:hover { box-shadow: inset 0 0 0 1.5px #6fb0ff, 0 0 26px rgb(60 130 255 / .5); }
.pcard-media, .pcard-media { background: #fff; border-radius: 0; }
.pcard-body h4 { color: #fff; }
.pcard-foot b, .price { color: #fff; }
.pcard-cta { color: var(--ice-300); }
.fav { background: rgb(255 255 255 / .94); color: #1b3d73; }
.badge-new { box-shadow: 0 0 12px rgb(80 160 255 / .7); }
.ccard { box-shadow: inset 0 0 0 1px var(--edge), 0 10px 30px -12px rgb(0 0 0 / .7); }
.ccard:hover { box-shadow: 0 0 30px rgb(60 130 255 / .6), inset 0 0 0 1.5px #6fb0ff; }

/* ---------- sections ---------- */
.section-head h1, .section-head h2, .sheet-banner h1 { color: #fff; }
.sheet-banner { background: linear-gradient(135deg, rgb(30 80 200 / .35), rgb(10 28 66 / .75)); box-shadow: inset 0 0 0 1px var(--edge); }
.hero { background: linear-gradient(135deg, rgb(20 60 160 / .55), rgb(6 20 49 / .9)); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-lg); }
.hero::after { background: rgb(6 20 49 / .6); }
.step { background: var(--night-card); box-shadow: inset 0 0 0 1px var(--edge); }
.step span { background: rgb(60 120 255 / .25); color: #cfe3ff; }
.item { background: var(--night-card); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow-lg); }
.item-media { background: #fff; }
.item-search { background: rgb(255 255 255 / .06); color: #cfe3ff; box-shadow: inset 0 0 0 1px var(--edge); }
.item-search input { color: #fff; }
.finds-stats dt { color: #fff; }
.site-footer { background: linear-gradient(180deg, transparent, #030a1d 60%); border-top: 1px solid var(--edge); }
.site-footer a { color: #cfe0ff; }

/* category tiles keep their dark blue look (they used var(--navy) as a dark colour) */
.cat-tile { background: radial-gradient(160px 130px at 50% 58%, rgb(70 140 255 / .6), transparent 70%), linear-gradient(170deg, #17406b, #061431 70%); box-shadow: inset 0 0 0 1.5px var(--edge), 0 0 24px rgb(40 110 255 / .25); }
.cat-tile:hover { box-shadow: inset 0 0 0 2px #6fb0ff, 0 0 32px rgb(60 130 255 / .6); }
.cat-tile:hover .cat-tile-btn { background: var(--ice-300); color: #04122c; }
.cg-ico { background: var(--night-card); color: #dbe8ff; box-shadow: inset 0 0 0 1px var(--edge); }
.cg-glyph { background: #dbe8ff; }
.cg-tile:hover .cg-glyph { background: #6fb0ff; }

/* carousel arrows */
.car-btn { background: rgb(8 24 60 / .92); color: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 0 14px rgb(60 130 255 / .5); }
.car-btn:hover { background: #2b78f0; }

/* tools / tracking forms */
.tool-form input, .tool-form select { background: rgb(255 255 255 / .06); color: #fff; border-color: var(--edge); }
.ship-row, .tool-card { background: var(--night-card); border-color: var(--edge); }
.tool-ico { background: rgb(60 120 255 / .25); color: #bcd9ff; }
.timeline li::before { background: var(--night-0); }
.qc-slot { background: rgb(255 255 255 / .05); }

/* creator Linktree pages */
.page-tree { background: radial-gradient(800px 500px at 50% -10%, rgb(40 100 255 / .35), transparent 70%), linear-gradient(180deg, var(--night-1), var(--night-0)); background-attachment: fixed; }
.tree-link, .tree-socials a { background: var(--night-card); color: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.tree-back { background: rgb(255 255 255 / .08); color: #cfe3ff; }

/* phone bottom bar */
.mnav { background: rgb(4 12 34 / .94); box-shadow: 0 -1px 0 var(--edge), 0 -8px 26px rgb(0 0 0 / .5); }

/* ---------- homepage banner tiles: glowing blue edge like the mockup ---------- */
.bn { box-shadow: inset 0 0 0 1.5px var(--edge), 0 0 22px rgb(50 120 255 / .45); border: 1px solid rgb(120 180 255 / .5); }
.bn:hover { box-shadow: inset 0 0 0 2px #7ab8ff, 0 0 34px rgb(60 140 255 / .7); }
.brands .brand { filter: none; }

/* ---------- New Releases ---------- */
.releases { margin-top: 2.2rem; }
.rel-head { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.rel-head h2 { display: flex; align-items: center; gap: .7rem; margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rel-bar { width: 5px; height: 1.5em; border-radius: 4px; background: linear-gradient(180deg, #5ab0ff, #1f6be0); box-shadow: 0 0 12px rgb(60 140 255 / .9); }
.rel-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.rel-chip { border: 0; cursor: pointer; padding: .5em 1.15em; border-radius: 999px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 700; font-size: .86rem; color: #dbe8ff; transition: .2s; }
.rel-chip:hover { background: rgb(60 120 255 / .35); color: #fff; }
.rel-chip.active { background: linear-gradient(135deg, #3b8cff, #1f6be0); color: #fff; box-shadow: 0 0 16px rgb(60 130 255 / .65); }
.rel-all { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .92rem; color: #5fb0ff; }
.rel-all:hover { color: #fff; }
.releases .car-track .pcard { flex-basis: calc((100% - 14px * 5) / 6); }
.releases .pcard-cta, .releases .pcard-body .muted { display: none; }
.releases .pcard-body { padding: .7rem .85rem .85rem; }
.releases .pcard-body h4 { font-size: .86rem; }
.releases .pcard-media { background: #fff; }
.rel-dots { display: flex; justify-content: center; gap: .55rem; margin-top: .6rem; }
.rel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .28); transition: .2s; }
.rel-dots i.on { background: #4da3ff; box-shadow: 0 0 10px #4da3ff; transform: scale(1.2); }
@media (max-width: 980px) { .releases .car-track .pcard { flex-basis: calc((100% - 14px * 2) / 3); } .rel-chips { margin-left: 0; width: 100%; order: 3; } .rel-all { margin-left: auto; } }
@media (max-width: 640px) { .releases .car-track .pcard { flex-basis: calc((100% - 10px) / 2); } .header-search { display: none; } }
@media (max-width: 1180px) { .header-search input { width: 8rem; } }
@media (max-width: 1060px) { .header-search { display: none; } }

/* logos are dark SVGs / dark text: turn them light on the night background */
.brands .brand { color: #b9cdf0; opacity: .85; }
.brands .brand img { filter: brightness(0) invert(1); opacity: .8; }
.brands .brand:hover, .brands .brand:hover img { opacity: 1; }
.banners { margin-top: 1.4rem; }

/* ---------- night scenery: snowy fir branches on both sides + snow drifts along the bottom ---------- */
/* mix-blend-mode: screen makes the picture's dark-blue backdrop vanish into the page, so only the lit branches show (no visible edge) */
.night-side { position: fixed; top: 0; bottom: 0; width: calc(100vh * 96 / 941); z-index: 1; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; mix-blend-mode: screen; }
.night-side.left { left: 0; background-image: url(/img/xmas/night-left.webp); background-position: left center; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 100%); }
.night-side.right { right: 0; background-image: url(/img/xmas/night-right.webp); background-position: right center; -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 22%, transparent 100%); mask-image: linear-gradient(270deg, #000 0%, #000 22%, transparent 100%); }
.night-ground { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(46px, 6vw, 96px); z-index: 1; pointer-events: none; mix-blend-mode: screen; background: url(/img/xmas/night-ground.webp) center bottom / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
body > main, body > footer, body > header, .site-header { position: relative; z-index: 2; }
.site-header { position: sticky; z-index: 50; }
.mnav { z-index: 60; }
@media (max-width: 640px) { .night-side { opacity: .75; } .night-ground { height: 40px; } }

/* the header fades out toward the edges so the fir branches run continuously behind it instead of being cut by a dark bar */
.site-header { background: linear-gradient(90deg, transparent 0, rgb(4 12 34 / .9) calc(100vh * .1), rgb(4 12 34 / .9) calc(100% - 100vh * .1), transparent 100%); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--edge) 12%, var(--edge) 88%, transparent); box-shadow: 0 6px 24px -4px rgb(30 100 255 / .45); }
.header-inner { padding-inline: 12px; }

/* medium desktops: keep everything on one line (search shrinks, the LitBuy button text is shortened) */
@media (max-width: 1480px) { .header-inner { gap: .5rem; } .header-search input { width: 5.5rem; } .main-nav > a, .nav-drop summary { padding: .5em .6em; } }
@media (max-width: 1340px) { .header-search { display: none; } }

/* ---------- floating pill navbar ---------- */
.site-header { background: none !important; box-shadow: none !important; padding: 10px 0 6px; pointer-events: none; }
.site-header::after { display: none; }
.header-inner {
  pointer-events: auto; height: 62px; padding: 0 10px 0 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgb(14 36 86 / .78), rgb(5 16 44 / .86));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(110 170 255 / .5), inset 0 1px 0 rgb(255 255 255 / .12), 0 0 28px rgb(50 120 255 / .38), 0 14px 34px -12px rgb(0 0 0 / .8);
}
.header-inner .logo { margin-right: .4rem; }
.main-nav > a, .nav-drop summary { border-radius: 999px; }
.nav-home { background: linear-gradient(135deg, rgb(70 140 255 / .45), rgb(40 100 230 / .35)); box-shadow: inset 0 0 0 1px rgb(140 190 255 / .6), 0 0 14px rgb(60 130 255 / .45); }
.header-search { border-radius: 999px; padding: .55em 1.1em; background: rgb(255 255 255 / .07); }
.cur summary { border-radius: 999px; }
.header-actions .btn-primary { border-radius: 999px; box-shadow: 0 0 20px rgb(60 130 255 / .6), inset 0 1px 0 rgb(255 255 255 / .3); }
@media (max-width: 980px) {
  .site-header { padding: 8px 0 4px; }
  .header-inner { height: auto; border-radius: 28px; padding: .55rem .9rem .35rem; }
}

/* soft fade under the pill: content scrolling beneath the navbar dims out gradually instead of cutting off */
.site-header.scrolled::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 26px); z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(3 10 29 / .92) 0%, rgb(3 10 29 / .7) 55%, transparent 100%); }

/* the pill is wider than the page column so logo, menu, search and button all fit inside it */
.site-header .header-inner { width: min(1380px, 100% - 40px); background: linear-gradient(180deg, rgb(14 36 86 / .93), rgb(5 16 44 / .95)); }

/* top strips: the announcement bar and the light chain fade out at the sides, and the fir branches run over them instead of being cut off */
.announce, .lights { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.announce { background: linear-gradient(90deg, transparent, #0f3a8a 12%, #1c5fd6 50%, #0f3a8a 88%, transparent); }
.night-side { z-index: 48; }

/* at the top of the page there is no dark band behind the pill (it made a hard edge under the light chain); it only fades in once the page scrolls */
.site-header::before { opacity: 0; transition: opacity .3s; }
.site-header.scrolled::before { opacity: 1; }

/* highlight the menu item of the page you are on (Home was always lit) */
body:not(.page-home) .nav-home { background: none; box-shadow: none; color: #dbe8ff !important; }
.page-deals .nav-deals { background: linear-gradient(135deg, rgb(70 140 255 / .45), rgb(40 100 230 / .35)); box-shadow: inset 0 0 0 1px rgb(140 190 255 / .6), 0 0 14px rgb(60 130 255 / .45); color: #fff; }

/* phones: the bright snow strip sat right above the bottom tab bar and was cut off by it, so it is dropped there */
@media (max-width: 980px) { .night-ground { display: none; } }

/* ---------- phones: stable background (no jump when the address bar hides/shows) ---------- */
@media (max-width: 980px) {
  body { background-attachment: scroll; }
  .page-tree { background-attachment: scroll; }
  .night-side { top: 0; bottom: auto; height: 100vh; height: 100lvh; width: calc(100vh * 96 / 941); width: calc(100lvh * 96 / 941); transform: translateZ(0); will-change: transform; }
}

/* ---------- back-to-top: santa with arrow sign ---------- */
body.xmas .to-top, .to-top { width: 84px; height: 77px; border: 0; border-radius: 0; background: url(/img/xmas/santa-top.webp) center / contain no-repeat; box-shadow: none; overflow: visible; font-size: 0; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .45)); }
.to-top::after, body.xmas .to-top::after { display: none; content: none; }
.to-top svg { display: none; }
@media (max-width: 800px) { body.xmas .to-top, .to-top { width: 68px; height: 62px; right: 10px; } }

/* ---------- wide category section: 5 products per row, one-line category chips ---------- */
@media (min-width: 1100px) {
  .wrap.wide { width: min(1400px, 100% - 40px); }
  .wide .cat-row { grid-template-columns: 230px minmax(0, 1fr); }
  .wide .car-track .pcard { flex-basis: calc((100% - 14px * 4) / 5); }
  .wide .catbar { flex-wrap: nowrap; overflow: visible; justify-content: space-between; gap: .35rem; }
  .wide .catbar-link { padding: .5em .95em; font-size: .86rem; }
}

/* ---------- header pill: keep the sign-up button inside the bar ---------- */
.site-header .header-inner { padding-inline: 14px 20px; gap: .6rem; }
.header-search input { width: 9rem; }
.header-actions { gap: .5rem; }
.header-actions .btn-primary { padding-inline: 1.1em; white-space: nowrap; }
@media (min-width: 1341px) and (max-width: 1560px) { .header-search input { width: 7rem; } .main-nav > a, .nav-drop summary { padding: .5em .7em; } }

/* ---------- Filters button + side drawer on the spreadsheet ---------- */
.filters-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55em 1.1em; border-radius: 999px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--edge); color: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; border: 0; }
.filters-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filters-btn:hover { background: rgb(60 120 255 / .35); }
.fd-overlay { position: fixed; inset: 0; z-index: 200; background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); }
.fd { position: fixed; top: 0; bottom: 0; left: 0; z-index: 210; width: min(340px, 88vw); display: flex; flex-direction: column; background: linear-gradient(180deg, #0b1d4a, #050f2c); box-shadow: 8px 0 40px rgb(0 0 0 / .6), inset -1px 0 0 var(--edge); transform: translateX(-102%); transition: transform .28s ease; color: #fff; }
.fd.open { transform: none; }
.fd-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--edge); }
.fd-head h2 { margin: 0; font-size: 1.2rem; }
.fd-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--edge); background: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.fd-body { flex: 1; overflow-y: auto; padding: .3rem 1.3rem; }
.fd-acc { border-bottom: 1px solid var(--edge); }
.fd-acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; background: none; border: 0; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.fd-acc-head i { font-style: normal; font-size: 1.1rem; }
.fd-acc-body { display: flex; flex-direction: column; gap: .35rem; padding-bottom: 1rem; max-height: 46vh; overflow-y: auto; }
.fd-acc-body[hidden] { display: none; }
.fd-opt { text-align: left; padding: .6em .9em; border-radius: 10px; border: 1px solid transparent; background: rgb(255 255 255 / .05); color: #dbe8ff; font-size: .9rem; cursor: pointer; }
.fd-opt:hover { background: rgb(60 120 255 / .25); }
.fd-opt.active { background: rgb(60 130 255 / .45); border-color: var(--ice-400); color: #fff; font-weight: 700; }
.fd-foot { display: grid; grid-template-columns: 1fr 1.2fr; gap: .6rem; padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--edge); }
.fd-clear, .fd-apply { padding: .8em; border-radius: 12px; font-weight: 800; font-size: .9rem; cursor: pointer; }
.fd-clear { background: none; border: 1.5px solid var(--edge); color: #fff; }
.fd-apply { border: 0; background: linear-gradient(180deg, #4a9bff, #2563eb); color: #fff; box-shadow: 0 0 18px rgb(60 130 255 / .5); }
body.fd-lock { overflow: hidden; }

/* ---------- christmas tree + presents ---------- */
.giftsec { margin-top: 2.2rem; }
.gift-head { margin-bottom: 1rem; }
.gift-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .25rem; }
.gift-stage { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 1.6rem; align-items: center; padding: 1.4rem; border-radius: 26px; background: radial-gradient(520px 340px at 25% 70%, rgb(40 100 255 / .28), transparent 70%), rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--edge); }
.gift-scene { position: relative; display: flex; flex-direction: column; align-items: center; }
.gift-tree { width: min(260px, 62%); filter: drop-shadow(0 0 26px rgb(60 160 255 / .45)); }
.gt-orb { animation: gt-tw 2.2s ease-in-out infinite; animation-delay: var(--d); }
.gt-top { transform-origin: 110px 20px; animation: gt-spin 4s ease-in-out infinite; filter: drop-shadow(0 0 8px #ffd96b); }
@keyframes gt-tw { 50% { opacity: .35; } }
@keyframes gt-spin { 50% { transform: scale(1.12) rotate(6deg); } }
.gift-row { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-top: -26px; position: relative; z-index: 2; flex-wrap: wrap; }
.gift { position: relative; width: 66px; height: 66px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s; --c1: #3b82f6; --c2: #1d4ed8; --rb: #ffd166; }
.gift.g1 { --c1: #ef476f; --c2: #b3123f; --rb: #fff3c4; } .gift.g2 { --c1: #4cc9f0; --c2: #1b7fb5; --rb: #ffffff; } .gift.g3 { --c1: #a78bfa; --c2: #6d3fd1; --rb: #ffd166; } .gift.g4 { --c1: #2dd4a0; --c2: #0b8a63; --rb: #ffffff; }
.gift:hover { transform: translateY(-5px) rotate(-3deg); }
.gift-box { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; border-radius: 6px; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 8px 18px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .25); }
.gift-box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 11px; margin-left: -5.5px; background: var(--rb); opacity: .92; }
.gift-lid { position: absolute; left: -3px; right: -3px; bottom: 40px; height: 16px; border-radius: 5px; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); transform-origin: left bottom; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.gift-lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 11px; margin-left: -5.5px; background: var(--rb); }
.gift-lid i { position: absolute; left: 50%; top: -11px; width: 22px; height: 14px; margin-left: -11px; border-radius: 50% 50% 40% 40%; box-shadow: -8px 0 0 -3px var(--rb), 8px 0 0 -3px var(--rb); border: 3px solid var(--rb); border-bottom: 0; }
.gift b { position: absolute; left: -8px; right: -8px; bottom: -22px; text-align: center; font-size: .72rem; letter-spacing: .03em; color: #cfe0ff; font-weight: 700; }
.gift.open .gift-lid { transform: translate(-6px, -28px) rotate(-38deg); }
.gift.open::after { content: ""; position: absolute; left: 50%; bottom: 34px; width: 54px; height: 54px; margin-left: -27px; background: radial-gradient(circle, #fff6c9, rgb(255 220 120 / .0) 70%); animation: gift-glow .8s ease-out; pointer-events: none; z-index: 1; }
@keyframes gift-glow { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.gift-snowfloor { width: 92%; height: 18px; margin-top: 22px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #eaf5ff, #9cc4ee 70%, transparent 72%); opacity: .75; filter: blur(.4px); }
.gift-reveal { min-height: 220px; }
.gift-reveal[hidden] { display: none; }
.gift-hint { color: var(--muted); }
.gift-set-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.gift-set-head b { font-size: 1.15rem; }
.gift-again { background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--edge); color: #fff; border: 0; border-radius: 999px; padding: .45em 1em; font-weight: 700; font-size: .82rem; cursor: pointer; }
.gift-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gift-cards .pcard { display: none; }
.gift-cards .pcard.pop { display: flex; animation: gift-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: var(--pd, 0s); }
@keyframes gift-pop { from { opacity: 0; transform: translateY(40px) scale(.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .gift-stage { grid-template-columns: 1fr; padding: 1rem; } .gift-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gift { width: 58px; } .gift-row { gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .gt-orb, .gt-top, .gift.open::after, .gift-cards .pcard.pop { animation: none; } }
.gift:not(.open) { animation: gift-wig 3.6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .5s); }
.gift.g1 { --n: 1; } .gift.g2 { --n: 2; } .gift.g3 { --n: 3; } .gift.g4 { --n: 4; }
@keyframes gift-wig { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-6deg) translateY(-3px); } 94% { transform: rotate(6deg) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .gift:not(.open) { animation: none; } }

/* ---------- outfit builder ---------- */
.outfit { max-width: 640px; }
.of-start { text-align: center; padding: 2rem 0; }
.of-choice { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.of-gender { min-width: 130px; padding: 1.1em 1.6em; border-radius: 18px; border: 0; cursor: pointer; font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: 0 0 22px rgb(60 130 255 / .45); transition: transform .15s; }
.of-gender:hover { transform: translateY(-3px); }
.of-gender[data-gender="women"] { background: linear-gradient(180deg, #ec6aa8, #b6317a); box-shadow: 0 0 22px rgb(236 106 168 / .4); }
.of-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.of-steps li { padding: .35em .9em; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #9fb4de; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--edge); }
.of-steps li.now { color: #fff; background: rgb(60 130 255 / .45); box-shadow: inset 0 0 0 1.5px var(--ice-400); }
.of-steps li.got { color: #b6f5d4; }
.of-steps li.skipped { opacity: .5; }
.of-stack { position: relative; height: min(520px, 68vh); margin: 0 auto; max-width: 380px; touch-action: pan-y; }
.of-card { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -12px rgb(0 0 0 / .65), 0 0 0 1px rgb(255 255 255 / .1); cursor: grab; user-select: none; touch-action: none; transform: translateY(calc(var(--depth, 0) * 10px)) scale(calc(1 - var(--depth, 0) * .045)); }
.of-card:first-child { cursor: grabbing; }
.of-card img { width: 100%; height: calc(100% - 92px); object-fit: contain; background: #fff; pointer-events: none; }
.of-card-body { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .3rem; background: linear-gradient(180deg, #0b1d4a, #050f2c); color: #fff; }
.of-card-body b { font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.of-card-body span { display: flex; align-items: center; gap: .45rem; color: #b9cdf5; font-size: .88rem; }
.of-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .6); }
.of-stamp { position: absolute; top: 22px; padding: .2em .6em; border: 3px solid; border-radius: 10px; font-weight: 900; font-size: 1.5rem; letter-spacing: .06em; opacity: 0; pointer-events: none; }
.of-stamp.yes { left: 18px; color: #2dd4a0; border-color: #2dd4a0; transform: rotate(-14deg); }
.of-stamp.no { right: 18px; color: #ef476f; border-color: #ef476f; transform: rotate(14deg); }
.of-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; }
.of-actions { display: flex; justify-content: center; align-items: center; gap: 1.1rem; margin-top: 1.3rem; }
.of-btn { border: 0; cursor: pointer; color: #fff; font-weight: 800; }
.of-btn.yes, .of-btn.no { width: 66px; height: 66px; border-radius: 50%; font-size: 1.7rem; box-shadow: 0 10px 24px -6px rgb(0 0 0 / .6); transition: transform .15s; }
.of-btn.yes { background: linear-gradient(180deg, #2dd4a0, #0b8a63); }
.of-btn.no { background: linear-gradient(180deg, #ef476f, #b3123f); }
.of-btn.yes:hover, .of-btn.no:hover { transform: scale(1.1); }
.of-btn.skip { background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--edge); padding: .7em 1.2em; border-radius: 999px; font-size: .85rem; }
.of-hint { text-align: center; font-size: .82rem; margin-top: .9rem; }
.of-done h2 { text-align: center; }
.of-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 1rem 0; }
.of-piece { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--night-card, #0b1d4a); box-shadow: inset 0 0 0 1px var(--edge); color: #fff; text-decoration: none; transition: transform .2s; }
.of-piece:hover { transform: translateY(-4px); }
.of-piece img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.of-piece b { padding: .6rem .7rem .2rem; font-size: .88rem; line-height: 1.25; }
.of-piece span { display: flex; align-items: center; gap: .4rem; padding: 0 .7rem .7rem; color: #b9cdf5; }
.of-total { text-align: center; font-size: 1.15rem; }
@media (max-width: 640px) { .of-stack { height: min(470px, 64vh); } }

@media (max-width: 640px) { .page-outfit .sheet-banner p { display: none; } .page-outfit .sheet-banner { padding-block: .6rem; } .of-stack { height: min(430px, 54vh); } .of-actions { margin-top: 1rem; } }

/* outfit cards: smooth promotion of the cards behind, no jumps */
.of-card { transition: transform .28s ease, opacity .28s ease; will-change: transform; }
.of-card:not(:first-child) { pointer-events: none; }

/* creators: one swipeable row on phones instead of cards stacked in two columns */
@media (max-width: 640px) {
  #creators .cgrid { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 4px 12px; margin-inline: -4px; }
  #creators .cgrid::-webkit-scrollbar { display: none; }
  #creators .cgrid > * { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }
}

/* ---------- present event banner (artwork + clickable presents) ---------- */
.gift-head h2 svg { width: 1.15em; height: 1.15em; margin-right: .1em; vertical-align: -.12em; color: #8ec1ff; }
.gift-banner { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px rgb(80 150 255 / .5), 0 0 40px rgb(40 110 255 / .35); background: #04122f; }
.gift-banner img { display: block; width: 100%; height: auto; }
.gift-hot { position: absolute; border: 0; background: transparent; cursor: pointer; border-radius: 10px; padding: 0; -webkit-tap-highlight-color: transparent; }
.gift-hot::before { content: ""; position: absolute; inset: -4% -6%; border-radius: 12px; box-shadow: 0 0 0 0 rgb(150 210 255 / 0); transition: box-shadow .2s, background .2s; }
.gift-hot:hover::before, .gift-hot:focus-visible::before { box-shadow: 0 0 0 2px rgb(170 220 255 / .9), 0 0 22px 4px rgb(90 170 255 / .7); background: rgb(120 190 255 / .12); }
.gift-hot.burst::after { content: ""; position: absolute; left: 50%; top: 20%; width: 150%; aspect-ratio: 1; margin-left: -75%; background: radial-gradient(circle, rgb(255 246 200 / .95), rgb(255 220 120 / .45) 35%, transparent 68%); animation: gift-glow .9s ease-out forwards; pointer-events: none; }
.gift-hot.burst::before { box-shadow: 0 0 0 2px rgb(255 232 150 / .95), 0 0 26px 6px rgb(255 210 110 / .75); }
.gift-open-now { position: absolute; left: 64.95%; top: 54.02%; width: 20.16%; height: 11.88%; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.gift-open-now:hover, .gift-open-now:focus-visible { box-shadow: 0 0 0 2px rgb(255 255 255 / .85), 0 0 24px 4px rgb(110 180 255 / .75); }
.gift-reveal { margin-top: 1rem; padding: 1.2rem; border-radius: 22px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--edge); min-height: 0; }
.gift-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .gift-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gift-reveal { padding: .8rem; } }

/* ---------- custom country dropdown (shipping) ---------- */
select option, select optgroup { background: #0b1d4a; color: #fff; }
.cs-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cs { position: relative; }
.cs-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8em 1em; border-radius: 14px; border: 0; cursor: pointer; text-align: left; font: inherit; color: #fff; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow .2s, background .2s; }
.cs-btn:hover, .cs-btn[aria-expanded="true"] { background: rgb(60 120 255 / .22); box-shadow: inset 0 0 0 1.5px var(--ice-400); }
.cs-btn i { font-style: normal; opacity: .8; transition: transform .2s; }
.cs-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.cs-panel { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 8px); padding: .6rem; border-radius: 16px; background: linear-gradient(180deg, #0d2250, #060f2e); box-shadow: 0 22px 50px -10px rgb(0 0 0 / .8), 0 0 0 1px var(--edge); }
.cs-panel[hidden] { display: none; }
.cs-search { width: 100%; padding: .65em .9em; margin-bottom: .5rem; border-radius: 10px; border: 0; outline: none; color: #fff; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--edge); font: inherit; }
.cs-search:focus { box-shadow: inset 0 0 0 1.5px var(--ice-400); }
.cs-list { list-style: none; margin: 0; padding: 0; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3b6bd6 transparent; }
.cs-list li { padding: .6em .8em; border-radius: 9px; cursor: pointer; color: #dbe8ff; font-size: .95rem; }
.cs-list li:hover { background: rgb(60 120 255 / .3); color: #fff; }
.cs-list li.on { background: rgb(60 130 255 / .5); color: #fff; font-weight: 700; }
.cs-list li[hidden] { display: none; }
.page-tool main { z-index: 5; } /* so an open dropdown sits above the footer */
