/* ReSpecz PC Builder: black page with ReSpecz-blue light + dark frosted glass.
   Background and glass tokens copied from the ReSpecz Studio dashboard (herk-edit-kit/dashboard/public/app.css). */
:root {
  --ink: #f5f5f7;
  --ink-mid: #d2d2d7;          /* nav links, long-form body text */
  --ink2: #a1a1aa;
  --soft: #8e8e96;
  --line: rgba(255, 255, 255, 0.08);
  --island: rgba(255, 255, 255, 0.055);
  --island2: rgba(255, 255, 255, 0.08);
  --island3: rgba(255, 255, 255, 0.13);
  --glass-blur: blur(28px) saturate(170%);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --blue: #4da3ff;            /* ReSpecz accent for text/icons on dark */
  --brand-grad: linear-gradient(135deg, rgb(37, 99, 235), rgb(56, 189, 248)); /* the ReSpecz glow-pill gradient */
  --accent: var(--blue);
  --accent-rgb: 77, 163, 255;
  --shopee: #ff8a5c;           /* Shopee links only */
  --shopee-rgb: 255, 122, 69;
  --blue-deep: 37, 99, 235;
  --blue-bright: 56, 189, 248;
  --ok: #30d158;
  --warn: #ff9f0a;
  --fail: #ff453a;
  --r: 28px;
  --gutter: 16px;
  --font: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: #070708;
  overflow-x: clip; /* clip, not hidden: hidden makes body a scroll box and breaks the pinned hero */
  -webkit-font-smoothing: antialiased;
}
/* Site background: night sky fading to a blue horizon (after the reference wallpaper the user picked).
   Drawn in CSS, not the portrait image, so it fits every screen shape without stretching. A fixed layer,
   not background-attachment: fixed (iOS ignores that). The horizon is a little dimmer than the reference
   so white text, the tab bar and the Basket stay readable at the bottom of the screen. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
  background:
    /* calmer horizon (user: the bright blue at the bottom was distracting): deep ReSpecz navy, a soft glow, no sky-blue */
    radial-gradient(90% 30% at 50% 100%, rgba(37, 99, 235, 0.22), transparent 70%),
    linear-gradient(180deg, #000 0%, #01020a 40%, #030a26 64%, #06134a 84%, #0a1d66 100%);
}
/* faint stars in the dark top part only */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transform: translateZ(0);
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff, transparent),
    radial-gradient(1px 1px at 71px 54px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 133px 9px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 189px 97px, #fff, transparent),
    radial-gradient(1px 1px at 41px 131px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 157px 163px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 97px 199px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 211px 223px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 75%);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soft { color: var(--soft); }
.muted { color: var(--ink2); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.75rem; }
.center { text-align: center; }

/* ---------- dark frosted glass (dashboard recipe) ---------- */
.tile, .cat-card, .sample, .part, .chip, .btn-glass, .stage-hint, .toast, .hs-label, .basket-fab {
  position: relative;
  background: var(--island);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-edge);
}
/* Real blur only on things that float over moving content. Cards that scroll with the page sit on a smooth
   gradient, where a blur looks the same as a tint but costs a full repaint every scroll frame (the jank). */
.stage-hint, .toast, .hs-label, .basket-fab { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
/* a dark tint (not white) so text stays readable where the bright horizon shows through */
.tile, .cat-card, .sample, .part { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(18, 19, 23, 0.62); }
.chip, .btn-glass { background: rgba(18, 19, 23, 0.45); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 11, 13, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.nav-inner { width: min(100%, 1080px); margin: 0 auto; height: 52px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; mix-blend-mode: screen; }
.nav-links { display: none; gap: 28px; margin: 0 auto; }
.nav-links a { color: var(--ink-mid); font-size: 0.78rem; letter-spacing: 0; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav .btn-xs { margin-left: 0; }
.nav-basket { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--island); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.nav-basket svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn-blue {
  background:
    radial-gradient(40% 120% at 100% 50%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, rgb(var(--blue-deep)) 10%, rgb(var(--blue-bright)) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.4), inset 0 -6px 14px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(var(--blue-deep), 0.45);
}
.btn-glass { color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: 0.86rem; }
.btn-xs { padding: 6px 13px; font-size: 0.78rem; }
.btn-wide { width: 100%; padding: 15px 22px; font-size: 1.05rem; }
.btn-shop { padding: 8px 15px; font-size: 0.86rem; color: #fff; background: #ee4d2d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.link-more { font-size: 1.05rem; font-weight: 500; }
.link-more::after { content: ' ›'; }
:is(.btn, .chip, .segment, .cat-card, .hotspot, .icon-btn, select, input, .part-thumb, .fallback-part, a):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.chip {
  flex: none;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink-mid);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { color: #fff; }
.chip.active { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
/* chip rows: centred when they fit, scrollable (first chip still reachable) when they don't */
.chips, .stage-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
.chips::-webkit-scrollbar, .stage-chips::-webkit-scrollbar { display: none; }
.chips > :first-child, .stage-chips > :first-child { margin-left: auto; }
.chips > :last-child, .stage-chips > :last-child { margin-right: auto; }
.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: #cfe4ff; background: rgba(77, 163, 255, 0.16); white-space: nowrap; }
.tag-sm { padding: 3px 9px; font-size: 0.7rem; }

/* ---------- layout ---------- */
main { width: min(100%, 1080px); margin: 0 auto; padding: 0 var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 88px; }
main > * { min-width: 0; }
.section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 64px; scroll-margin-top: 8px; }
/* Divider between sections: a hairline across the page with a blue glow in the middle. */
.section + .section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22) 15%, rgba(var(--blue-bright), 0.95) 50%, rgba(255, 255, 255, 0.22) 85%, transparent); }
.section + .section::after { content: ''; position: absolute; top: -14px; left: 50%; width: 180px; height: 28px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--blue-deep), 0.45), transparent); pointer-events: none; }
.section-tag { justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 5px 14px 5px 6px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--island); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink2); }
.section-head { text-align: center; display: grid; gap: 10px; width: 100%; max-width: 720px; margin: 0 auto; }
.section-head :is(h1, h2) { font-size: clamp(1.9rem, 7vw, 3.5rem); line-height: 1.07; }
.section-head h1 { letter-spacing: -0.025em; }  /* page titles are h1 for search, styled like the old h2 */
.section-head p { margin: 0; color: var(--ink2); font-size: 1.02rem; }
.tile { border-radius: var(--r); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero-copy { display: grid; justify-items: center; }
.eyebrow { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; color: var(--blue); }
h1 { font-size: clamp(2.3rem, 10.5vw, 5.5rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 18px auto 0; max-width: 38ch; color: var(--ink2); font-size: 1.08rem; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 26px; }

.stage-wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 6px; }
/* bleed to the screen edges by exactly the page gutter (never wider than the column, so nothing shifts) */
.stage { position: relative; height: min(112vw, 620px); margin-inline: calc(var(--gutter) * -1); overflow: clip; touch-action: pan-y; }
.pc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.pc-canvas:active { cursor: grabbing; }
.stage-hint {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(77, 163, 255, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(77, 163, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(77, 163, 255, 0); } }

/* Apple-style "+" hotspots: thin frosted glass so the 3D model stays visible behind them,
   sized with the stage (24 px on phones, up to 32 px on desktop) */
.hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; --hs: clamp(12px, 3.2vw, 16px); }
.hotspot {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: calc(var(--hs) / -2) 0 0 calc(var(--hs) / -2);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}
/* bigger invisible tap target than the visible disc */
.hotspot::before { content: ''; position: absolute; left: calc(var(--hs) / -4); top: calc(var(--hs) / -4); width: calc(var(--hs) * 1.5); height: calc(var(--hs) * 1.5); border-radius: 50%; }
.hs-dot {
  position: relative;
  flex: none;
  width: var(--hs);
  height: var(--hs);
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 60%);
  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.2);
  backdrop-filter: blur(3px) saturate(180%) brightness(1.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.hs-dot::before, .hs-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--hs) * 0.4);
  height: 2px;
  margin: -1px 0 0 calc(var(--hs) * -0.2);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
}
.hs-dot::after { transform: rotate(90deg); }
.hotspot:hover .hs-dot, .hotspot.is-hot .hs-dot { transform: scale(1.12) rotate(90deg); background: rgba(var(--blue-deep), 0.55); }
.hs-label {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}
.hotspot:hover .hs-label, .hotspot.is-hot .hs-label, .hotspot:focus-visible .hs-label { opacity: 1; transform: none; }

.stage-fallback { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px; align-content: center; }
.fallback-part { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; border: 1px solid var(--glass-edge); background: var(--island); color: var(--ink); font: inherit; font-size: 0.8rem; cursor: pointer; }
.fallback-part svg { width: 30px; height: 30px; color: var(--blue); }
.stage.is-fallback .stage-hint { display: none; }
.stage.is-loading::after { content: 'Nilo-load ang 3D…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink2); font-size: 0.9rem; }

/* ---------- category tiles: centred grid (2 / 4 / 8 columns) ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.cat-card {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  padding: 14px 12px 16px;
  border-radius: 24px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.cat-card:hover { transform: scale(1.03); }
.cat-thumb { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #fff; margin-bottom: 10px; }
.cat-thumb img { width: 88%; height: 88%; object-fit: contain; }
.cat-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.cat-from { color: var(--ink2); font-size: 0.78rem; }
.thumb-icon { display: grid; place-items: center; width: 100%; height: 100%; background: var(--island2); color: var(--blue); }
.thumb-icon svg { width: 42%; height: 42%; }

/* ---------- builder ---------- */
.panel { padding: 22px; display: grid; gap: 24px; max-width: 720px; width: 100%; margin: 0 auto; }
.field { display: grid; gap: 12px; min-width: 0; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label, .label { font-weight: 600; }
.label { text-align: center; }
.budget-out { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--island3); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: var(--island3); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
input[type='range']::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }

.segments { display: grid; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(118, 118, 128, 0.2); }
.segment { display: grid; gap: 1px; text-align: center; padding: 11px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink2); font: inherit; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.segment.active { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 8px rgba(0, 0, 0, 0.35); }
.seg-title { font-weight: 600; }
.seg-hint { font-size: 0.76rem; color: var(--soft); }
.prefs { display: grid; gap: 14px; }
.pref-row { display: grid; gap: 8px; }
.pref-label { font-size: 0.8rem; font-weight: 600; color: var(--ink2); text-align: center; }
.pref-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pref-chip[disabled] { opacity: 0.45; cursor: not-allowed; }
.pref-chip small { font-size: 0.72em; color: var(--soft); }

.result { display: grid; gap: 14px; scroll-margin-top: 64px; max-width: 720px; width: 100%; margin: 0 auto; }
.summary { padding: 22px; display: grid; gap: 12px; }
.summary p { margin: 0; }
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.total { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 99px; background: var(--island3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); transition: width 0.4s ease; }
.meter span.over { background: linear-gradient(90deg, #ff9f0a, var(--fail)); }
.summary-actions { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; justify-content: center; }
.compat { padding: 22px; }
.compat h3 { font-size: 1.05rem; margin-bottom: 12px; }
.compat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink); }
.dot { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; color: #000; }
.compat-ok .dot { background: var(--ok); }
.compat-warn .dot { background: var(--warn); }
.compat-fail .dot { background: var(--fail); color: #fff; }

.parts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.part { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; padding: 14px; border-radius: 22px; }
.part-thumb { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer; display: grid; place-items: center; }
.part-thumb img { width: 90%; height: 90%; object-fit: contain; }
.part-body { min-width: 0; display: grid; gap: 2px; }
.part-body p { margin: 0; }
.part-cat { font-size: 0.75rem; font-weight: 600; color: var(--soft); }
.part-name { font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.part-spec { color: var(--ink2); font-size: 0.84rem; }
.swap { margin-top: 8px; min-width: 0; }
.swap select { width: 100%; max-width: 100%; font: inherit; font-size: 0.85rem; color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-edge); border-radius: 12px; padding: 9px 11px; }
.part-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.part-side p { margin: 0; }
.part-price { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- ready builds ---------- */
.samples { display: grid; gap: 14px; width: 100%; }
.sample { display: grid; gap: 16px; padding: 24px 22px; border-radius: var(--r); align-content: start; }
.sample-main { display: grid; gap: 8px; justify-items: start; }
.sample h3 { font-size: 1.4rem; line-height: 1.15; }
.sample p { margin: 0; }
.spec-pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spec-pills li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink); min-width: 0; }
.pill-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(77, 163, 255, 0.16); color: var(--blue); }
.pill-icon svg { width: 17px; height: 17px; }
.sample-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sample-foot strong { font-size: 1.3rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sample-btns { display: flex; gap: 8px; }

/* ---------- popup sheets (product list + basket) ---------- */
.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  margin: auto 0 0;
  padding: 0;
  border: 1px solid var(--glass-edge);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  color: var(--ink);
  background: rgba(22, 23, 27, 0.72);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  box-shadow: var(--shadow), 0 30px 80px rgba(0, 0, 0, 0.6);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(48px); opacity: 0; } }
.sheet-inner { max-height: 90vh; overflow-y: auto; padding: 8px 16px max(18px, env(safe-area-inset-bottom)); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 16px 0 14px; background: linear-gradient(rgba(22, 23, 27, 0.96) 75%, rgba(22, 23, 27, 0)); }
.sheet-head::before { content: ''; position: absolute; top: 2px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 5px; background: rgba(255, 255, 255, 0.25); }
.sheet-head h2 { font-size: 1.3rem; }
.sheet-head p { margin: 0; }
.sheet-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); }
.sheet-icon svg { width: 26px; height: 26px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(118, 118, 128, 0.3); color: var(--ink-mid); font-size: 0.85rem; cursor: pointer; }
.sheet-note { margin: 0 0 12px; padding: 11px 13px; border-radius: 14px; background: rgba(77, 163, 255, 0.12); color: #cfe4ff; }
.prod-list { display: grid; gap: 10px; margin-bottom: 14px; }
.prod, .bk-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); }
.prod.is-chosen { border-color: rgba(77, 163, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.4); }
.prod-thumb { width: 84px; height: 84px; border-radius: 15px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.prod-thumb img { width: 92%; height: 92%; object-fit: contain; }
.prod-body, .bk-body { min-width: 0; display: grid; gap: 3px; align-content: start; }
.prod-name { font-size: 0.95rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.prod-spec { margin: 0; color: var(--ink2); font-size: 0.8rem; }
.prod-note { margin: 0; color: var(--soft); font-size: 0.8rem; }
.prod-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.prod-price { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prod-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 600; }
.badge-ok { background: rgba(48, 209, 88, 0.15); color: #8af0a8; }
.badge-bad { background: rgba(255, 69, 58, 0.15); color: #ffb1ab; }

/* ---------- full-screen 3D viewer ---------- */
.hint-full, .viewer-bar { display: none; }
.viewer-expand, .viewer-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--glass-edge); border-radius: 999px;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.2s;
}
.viewer-expand:hover, .viewer-btn:hover { background: rgba(255, 255, 255, 0.14); }
.viewer-expand:active, .viewer-btn:active { transform: scale(0.96); }
.viewer-expand svg, .viewer-btn svg { width: 18px; height: 18px; }
.viewer-expand { position: absolute; top: 10px; right: max(10px, var(--gutter)); z-index: 3; width: 40px; height: 40px; }
.stage.is-fallback .viewer-expand { display: none; }
.viewer-btn { height: 40px; padding: 0 15px 0 12px; }
.viewer-close { background: rgba(var(--blue-deep), 0.55); border-color: rgba(var(--blue-bright), 0.45); }
.viewer-close:hover { background: rgba(var(--blue-deep), 0.75); }

html.viewer-full, html.viewer-full body { overflow: hidden; }
.stage-wrap.is-full {
  position: fixed; inset: 0; z-index: 35; margin: 0; width: auto;
  grid-template-rows: minmax(0, 1fr) auto; gap: 0;
  padding: env(safe-area-inset-top) 0 0;
  background:
    radial-gradient(55% 50% at 50% 45%, rgba(120, 82, 52, 0.16), transparent 72%),
    radial-gradient(120% 90% at 50% 50%, #111214 0%, #0a0b0c 55%, #050506 100%);
  animation: viewer-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes viewer-in { from { opacity: 0; transform: scale(0.97); } }
.stage-wrap.is-full .stage { height: auto; margin: 0; touch-action: none; }
.stage-wrap.is-full .viewer-expand, .stage-wrap.is-full .hint-normal { display: none; }
.stage-wrap.is-full .hint-full { display: inline; }
.stage-wrap.is-full .viewer-bar {
  display: flex; gap: 8px; position: absolute; z-index: 4;
  top: 14px; right: max(14px, env(safe-area-inset-right));
}
/* chips sit above the Basket pill so both stay tappable */
.stage-wrap.is-full .stage-chips { padding: 10px 16px calc(78px + env(safe-area-inset-bottom)); }
.stage-wrap.is-full .hotspots { --hs: clamp(13px, 1.5vw, 17px); }
@media (min-width: 860px) {
  .stage-wrap.is-full .stage-chips { padding-bottom: 22px; padding-right: 160px; padding-left: 160px; }
}
@media (prefers-reduced-motion: reduce) { .stage-wrap.is-full { animation: none; } }

/* ---------- product list filters ---------- */
.sheet-filters { display: grid; gap: 10px; margin: 2px 0 14px; }
.sf-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; }
.sf-label { font-size: 0.78rem; font-weight: 600; color: var(--ink2); }
.sf-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px; }
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chip { padding: 6px 12px; font-size: 0.8rem; white-space: nowrap; flex: none; }
@media (max-width: 420px) { .sf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- basket ---------- */
.basket-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background: rgba(28, 29, 34, 0.7);
}
.basket-fab svg { width: 20px; height: 20px; color: var(--blue); }
.fab-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 0.75rem; color: #fff; background: linear-gradient(100deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); }
.bk-progress { display: grid; gap: 6px; margin-bottom: 12px; }
.bk-progress p { margin: 0; }
.bk-item.is-done { opacity: 0.7; }
.bk-body p { margin: 0; }
.bk-status { font-size: 0.78rem; font-weight: 600; }
.st-ok { color: #6ee7a0; }
.st-expired { color: #ffb454; }
.st-none { color: var(--soft); }
.bk-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.bk-check { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; cursor: pointer; }
.bk-check input { width: 18px; height: 18px; accent-color: rgb(var(--blue-deep)); }
.bk-remove { border: 0; background: none; color: #ff8a80; font: inherit; font-size: 0.82rem; cursor: pointer; padding: 4px 0; }
.bk-foot { display: grid; gap: 6px; justify-items: center; text-align: center; margin-bottom: 8px; }
.bk-empty { text-align: center; color: var(--ink2); padding: 24px 8px; margin: 0; }

/* ---------- disclosure / footer / toast ---------- */
.disclosure { max-width: 720px; width: 100%; margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.8rem; scroll-margin-top: 64px; }
.disclosure h2 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--ink-mid); }
.disclosure p { margin: 8px 0 0; }
.foot { width: min(100%, 1080px); margin: 0 auto; padding: 18px var(--gutter) max(90px, env(safe-area-inset-bottom)); color: var(--soft); font-size: 0.76rem; text-align: center; }
.foot p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: max(84px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; padding: 11px 18px; border-radius: 999px; font-size: 0.9rem; color: var(--ink); max-width: calc(100vw - 32px); text-align: center; }
.error { color: var(--fail); margin: 0; }

/* ---------- small phones ---------- */
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .hero-cta { gap: 12px; }
  .prod, .bk-item { grid-template-columns: 72px minmax(0, 1fr); }
  .prod-thumb { width: 72px; height: 72px; }
}

/* ---------- tablets ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .segments { grid-template-columns: repeat(3, 1fr); }
  .cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .part { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .part-thumb { width: 84px; height: 84px; }
  .part-side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: flex-start; border-top: 0; padding-top: 0; }
  .sheet { max-width: 640px; margin: auto; border-radius: 30px; border-bottom: 1px solid var(--glass-edge); }
  .sheet-head::before { display: none; }
  .prod, .bk-item { grid-template-columns: 112px minmax(0, 1fr); }
  .prod-thumb { width: 112px; height: 112px; }
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { height: min(80vw, 640px); }
}

/* ---------- two-column hero: text left, 3D PC right ---------- */
@media (min-width: 860px) and (min-aspect-ratio: 11/10) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 8px 32px;
    text-align: left;
    padding-top: 28px;
    min-height: min(84vh, 760px);
  }
  .hero-copy { justify-items: start; }
  .lede { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  h1 { font-size: clamp(2.6rem, 4.4vw, 3.9rem); }
  .stage-wrap { margin-top: 0; }
  .stage { margin-inline: 0; height: min(70vh, 640px); }
  .stage-chips > :first-child { margin-left: auto; }
}

/* ---------- desktop ---------- */
@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  .nav-links { display: flex; }
  .nav-basket { margin-left: 0; }
  .cat-cards { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .samples { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sample h3 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .sheet[open] { animation: none; }
  .btn, .cat-card, .meter span, .hs-dot { transition: none; }
}

/* ---------- scroll into the PC: tall hero track + pinned screen ----------
   app.js positions #stage over .stage-slot at the top and grows it to the whole screen as you scroll. */
/* margin-top pulls the track up under the sticky nav (52 px), so the pinned screen starts at the very top
   and its own 64 px top padding is the only gap below the nav */
/* shorter scroll-into-the-PC (audit): ~0.75 screen of zoom, then the cards rise over its last part */
.hero { display: block; padding-top: 0; min-height: 0; height: calc(100svh + 75vh); margin-top: -52px; margin-bottom: calc(-48svh - 88px); }
/* the parts section slides up over the last part of the pinned track while the PC fades out */
#start { position: relative; z-index: 2; padding-top: 12vh; }
#start::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 100vw; height: 40vh; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0), rgba(10, 11, 13, 0.85) 70%, rgba(10, 11, 13, 0)); pointer-events: none; z-index: -1;
}
.hero-pin {
  position: sticky; top: 0; height: 100svh;
  padding: 64px 0 10px;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  justify-items: center; text-align: center; gap: 8px;
}
.hero-pin .stage-wrap { height: 100%; margin: 0; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
.stage-slot { min-height: 0; margin-inline: calc(var(--gutter) * -1); }
.stage-wrap:not(.is-full) #stage { position: absolute; left: 0; top: 0; width: 100%; height: 0; margin: 0; z-index: 1; }
.stage-wrap.is-full .stage-slot { display: none; }
.hero-copy, #stage-chips { transition: opacity 0.12s linear; will-change: opacity, transform; }
.hero.is-deep .viewer-expand { opacity: 0; pointer-events: none; }
@media (max-width: 859px), (max-aspect-ratio: 11/10) {
  .hero-pin h1 { font-size: clamp(2.1rem, 9.4vw, 3.4rem); }
  .hero-pin .lede { margin-top: 10px; font-size: 1rem; }
  .hero-pin .hero-cta { margin-top: 16px; }
}
@media (min-width: 860px) and (min-aspect-ratio: 11/10) {
  .hero-pin {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr);
    align-items: center; justify-items: stretch; text-align: left; gap: 32px; padding-bottom: 24px;
  }
  /* size the slot by the PC's own shape (not the screen height) so tall screens get no empty band above it */
  .hero-pin .stage-wrap { height: auto; grid-template-rows: auto auto; }
  .stage-slot { margin-inline: 0; aspect-ratio: 1 / 1.02; max-height: min(76svh, 760px); }
}
@media (prefers-reduced-motion: reduce) { .hero { height: auto; margin-bottom: 0; margin-top: -52px; } #start { padding-top: 0; } .hero-pin { position: relative; height: 100svh; } }

/* the stage spans the pinned screen; overlays follow the visible window (--wx/--wy/--ww/--wh from app.js) */
.stage { --wx: 0px; --wy: 0px; --ww: 100%; --wh: 100%; }
.stage-hint { bottom: auto; top: calc(var(--wy) + var(--wh) - 44px); left: calc(var(--wx) + var(--ww) / 2); }
.viewer-expand { right: auto; left: calc(var(--wx) + var(--ww) - 50px); top: calc(var(--wy) + 10px); }
.stage-fallback { inset: auto; left: var(--wx); top: var(--wy); width: var(--ww); height: var(--wh); }
.stage.is-loading::after { inset: auto; left: var(--wx); top: var(--wy); width: var(--ww); height: var(--wh); }

/* full screen beats the pinned-hero layout (same specificity otherwise, so the later hero rule won and the
   chips row stretched into tall pills) */
.hero-pin .stage-wrap.is-full { height: auto; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; }
.stage-wrap.is-full .stage-chips { align-items: center; }
.stage-wrap.is-full .stage-chips .chip { align-self: center; }

/* ---------- product list: transparent full-screen dialog holding the glass panel, a side "next"
   arrow and the corner Basket (the dialog has no filter/transform, so fixed children use the screen) ---------- */
.sheet-stage {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sheet-stage[open] { display: flex; align-items: flex-end; justify-content: center; animation: none; }
.sheet-panel {
  position: relative; width: 100%; max-height: 90vh; display: flex;
  border: 1px solid var(--glass-edge); border-bottom: 0; border-radius: 30px 30px 0 0;
  background: rgba(22, 23, 27, 0.72);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
  box-shadow: var(--shadow), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-panel .sheet-inner { flex: 1; min-width: 0; border-radius: inherit; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

.sheet-side-next {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%); z-index: 3;
  display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer;
}
.ssn-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding-bottom: 3px;
  font-size: 1.9rem; line-height: 1; color: #fff;
  background: linear-gradient(135deg, rgba(var(--blue-deep), 0.92), rgba(var(--blue-bright), 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.sheet-side-next:hover .ssn-arrow { transform: translateX(3px); }
.sheet-side-next:active .ssn-arrow { transform: scale(0.94); }
.ssn-label { display: none; font-size: 0.76rem; font-weight: 600; color: var(--ink2); white-space: nowrap; }
@media (min-width: 640px) {
  .sheet-stage[open] { align-items: center; }
  .sheet-panel { max-width: 640px; border-radius: 30px; border-bottom: 1px solid var(--glass-edge); }
  .sheet-panel .sheet-inner { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
/* room beside the panel: the arrow sits outside it, with its label */
@media (min-width: 860px) {
  .sheet-side-next { right: -92px; width: 80px; }
  .ssn-arrow { width: 58px; height: 58px; font-size: 2.3rem; }
  .ssn-label { display: block; text-align: center; white-space: normal; }
}

/* ---------- Basket dock: corner button + hover preview (page and product list) ---------- */
.basket-dock { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; }
.basket-dock .basket-fab { position: relative; right: auto; bottom: auto; }
.basket-dock.in-sheet { z-index: 5; }
.basket-preview {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: 330px; max-width: calc(100vw - 32px);
  padding: 14px; border-radius: 20px; color: var(--ink);
  background: rgba(22, 23, 27, 0.9); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.basket-preview::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* keeps hover across the gap */
@media (hover: hover) and (pointer: fine) {
  .basket-dock:hover .basket-preview, .basket-dock:focus-within .basket-preview { opacity: 1; transform: none; pointer-events: auto; }
}
.bp-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-weight: 700; font-size: 0.92rem; }
.bp-head span { font-weight: 500; font-size: 0.78rem; color: var(--ink2); }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bp-thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.bp-thumb img, .bp-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.bp-thumb svg { width: 22px; height: 22px; color: #333; }
.bp-name { font-size: 0.8rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bp-price { font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.bp-more { margin: 8px 0 0; font-size: 0.76rem; color: var(--ink2); }
.bp-total { display: flex; justify-content: space-between; margin: 12px 0 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; }
.bp-open { width: 100%; justify-content: center; }
.bp-empty { margin: 0; font-size: 0.84rem; color: var(--ink2); }
/* phones: the arrow sits on the panel's right edge, so keep product text clear of it */
@media (max-width: 639px) { .sheet-panel .prod-list { padding-right: 40px; } }

/* ---------- may parts na ako ---------- */
.may-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.may-field { position: relative; display: grid; gap: 6px; min-width: 0; }
.may-field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink2); }
.may-select { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 11px 12px 11px 14px; border: 1px solid var(--glass-edge); border-radius: 14px; background: rgba(0, 0, 0, 0.35); color: var(--ink); font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer; }
.may-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.may-chev { flex: none; width: 16px; height: 16px; color: var(--ink2); transition: transform 0.2s ease; }
.may-field.is-set .may-select { border-color: rgba(77, 163, 255, 0.7); }
.may-field.is-open .may-select { border-color: var(--blue); }
.may-field.is-open .may-chev { transform: rotate(180deg); }
.may-pick { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max(100%, 300px); max-width: calc(100vw - 2 * var(--gutter)); display: grid; gap: 10px; padding: 12px; border: 1px solid var(--glass-edge); border-radius: 18px; background: rgba(22, 23, 27, 0.97); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.may-grid > .may-field:nth-child(3n) .may-pick { left: auto; right: 0; }
.may-search { width: 100%; padding: 10px 12px; border: 1px solid var(--glass-edge); border-radius: 12px; background: rgba(0, 0, 0, 0.4); color: var(--ink); font: inherit; font-size: 0.92rem; }
.may-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.may-chips::-webkit-scrollbar { display: none; }
.may-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.may-group { padding: 10px 10px 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.may-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 0.9rem; cursor: pointer; }
.may-opt small { flex: none; color: var(--soft); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.may-opt:hover, .may-opt.is-active { background: rgba(255, 255, 255, 0.08); }
.may-opt[aria-selected='true'] { color: var(--blue); font-weight: 600; }
.may-none { padding: 12px 10px; color: var(--ink2); font-size: 0.86rem; }
.may-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.may-empty { text-align: center; color: var(--ink2); margin: 0; }
.may-need { padding: 18px; display: grid; gap: 12px; }
.may-need h3 { font-size: 1.05rem; margin: 0; }
.may-need-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.may-hint { margin: 0; font-size: 0.8rem; color: var(--soft); }
.may-more { justify-self: center; }
/* the picker panel hangs below the form tile, so that tile must sit above the results */
#may > .panel { position: relative; z-index: 5; }

/* ---------- pages ---------- */
/* Each section is its own page now (/parts/, /build/, /may/, /builds/); the home page keeps the 3D hero. */
.page:not(.page-home) { min-height: calc(100svh - 52px); align-content: start; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { top: 10px; }
.nav-links a[aria-current='page'] { color: #fff; font-weight: 600; position: relative; }
.nav-links a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); }

/* home: one photo card per page. The photo fills the card; its colour (--tone) rises from the bottom
   behind the text, and the button is a frosted pill (reference: Apple promo cards). */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: 100%; }
.route { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 26px; isolation: isolate; color: #fff; background: var(--tone); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--tone) 80%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease; }
.route:hover { text-decoration: none; transform: translateY(-6px); box-shadow: 0 40px 70px -28px color-mix(in srgb, var(--tone) 95%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
/* the photo sits in a clipped box; the cut-out of its object (.route-pop) sits on top, unclipped */
.route-media { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.route-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease; }
.route-pop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; transform-origin: 50% 62%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease; }
.route-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--tone) 70%, transparent) 62%, color-mix(in srgb, var(--tone) 92%, #000) 100%); }
.route-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 20px; }
.route-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.route-sub { font-size: 0.84rem; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
.route-btn { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-radius: 14px; font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); background: rgba(0, 0, 0, 0.26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: background 0.25s ease; }
.route-btn span { font-size: 1.25rem; line-height: 1; transition: transform 0.25s ease; }
.route:hover .route-btn { background: rgba(0, 0, 0, 0.32); }
.route:hover .route-btn span { transform: translateX(3px); }
@media (max-width: 999px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; } }
/* phones: a swipeable row, the next card peeking in */
@media (max-width: 639px) {
  .routes { display: flex; width: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 30px; scroll-padding-inline: var(--gutter); }
  .routes::-webkit-scrollbar { display: none; }
  .route { flex: 0 0 76%; scroll-snap-align: start; }
}

/* mobile tab bar: every page one tap away (the top nav links only show on wide screens) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px max(6px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right)); background: rgba(13, 14, 16, 0.78); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px 4px; border-radius: 12px; color: var(--soft); font-size: 0.66rem; font-weight: 600; letter-spacing: 0; }
.tabbar a:hover { text-decoration: none; color: var(--ink); }
.tabbar svg { width: 23px; height: 23px; }
.tabbar a[aria-current='page'] { color: #fff; }
.tabbar a[aria-current='page'] svg { color: var(--blue); filter: drop-shadow(0 0 8px rgba(var(--blue-bright), 0.6)); }
:root { --tabbar-h: 62px; }
@media (max-width: 999px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .basket-dock:not(.in-sheet) { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(var(--tabbar-h) + 76px + env(safe-area-inset-bottom)); }
  .viewer-full .tabbar { display: none; }
}
@media (min-width: 1000px) { .tabbar { display: none; } }

/* page-to-page: the nav and tab bar stay put, the content cross-fades and slides (browsers that support it) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.tabbar { view-transition-name: site-tabbar; }
/* the page itself is the root snapshot: naming <main> would make it a stacking context and break the pinned 3D hero */
::view-transition-old(root) { animation: 0.18s ease-in both page-out; }
::view-transition-new(root) { animation: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both page-in; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* text that sits straight on the background gets a dark glass plate, so it stays readable over the bright horizon */
.disclosure { padding: 22px 24px; border: 0; border-radius: 22px; color: var(--ink-mid); background: rgba(11, 12, 14, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.disclosure h2 { color: #fff; }
.foot { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 8px rgba(0, 20, 60, 0.6); }
.foot a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* hover (mouse only): the photo zooms and softens, and the object grows and lifts out past the top of the card */
/* "is-live" = hover on a mouse, or a one-time play when the card scrolls into view on a phone (app.js) */
.route:is(:hover, .is-live) .route-img { transform: scale(1.05); }
.route-may:is(:hover, .is-live) .route-img, .route-builds:is(:hover, .is-live) .route-img { filter: blur(3px) brightness(0.8); }
.route:is(:hover, .is-live) .route-pop { transform: translateY(-9%) scale(1.14); filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.45)); }
.route-may .route-pop { transform-origin: var(--cx) var(--cy); }

/* Mag-Build: each part is its own full-card layer; they fly into the open case one after another */
.route-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fly { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: var(--cx) var(--cy); transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d), opacity 0.25s ease var(--d); }
.route-build:is(:hover, .is-live) .fly { --tx: 56%; --ty: 30%; transform: translate(calc(var(--tx) - var(--cx)), calc(var(--ty) - var(--cy))) scale(0.18); opacity: 0; transition: transform 0.75s cubic-bezier(0.55, 0, 0.8, 0.4) var(--d), opacity 0.3s ease calc(var(--d) + 0.5s); }

/* Parts: six product cards, each its own full-card layer; they lift one after another */
/* the image's cards reach 61% of the card height; shrink the group a little so it clears the title */
.route-parts .route-layers { transform: scale(0.86); transform-origin: 50% 4%; }
.lift { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 14px rgba(0, 40, 40, 0.35)); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d), filter 0.5s ease var(--d); }
.route-parts:is(:hover, .is-live) .lift { transform: translateY(-3.5%); filter: drop-shadow(0 22px 22px rgba(0, 30, 30, 0.55)); }
@media (prefers-reduced-motion: reduce) { .route-img, .route-pop, .route, .fly, .lift { transition: none !important; } .part.is-swapped, .part.is-swapped::after, .part.is-swapped .part-thumb { animation: none !important; } }

/* ---------- hero cues ---------- */
/* "Mag-scroll pababa": fixed at the bottom centre of the screen on the home page; app.js fades it out
   only once the page cards below the hero are fully in view */
.scroll-cue { position: fixed; z-index: 25; left: 0; right: 0; bottom: 14px; transition: opacity 0.2s linear; width: fit-content; margin: 0 auto; display: grid; justify-items: center; gap: 0; color: #fff; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; text-shadow: 0 1px 2px rgba(0, 20, 70, 0.55), 0 0 14px rgba(0, 30, 90, 0.45); }
.scroll-chev svg { filter: drop-shadow(0 1px 3px rgba(0, 20, 70, 0.6)); }
.scroll-cue:hover { color: #fff; text-decoration: none; }
.scroll-chev { display: grid; justify-items: center; }
.scroll-chev svg { width: 22px; height: 22px; margin-top: -12px; animation: chev-fall 1.6s ease-in-out infinite; }
.scroll-chev svg:first-child { margin-top: 0; }
.scroll-chev svg:last-child { animation-delay: 0.2s; }
@keyframes chev-fall { 0%, 100% { opacity: 0.35; transform: translateY(-2px); } 50% { opacity: 1; transform: translateY(4px); } }
/* phones/tablets: above the tab bar, with the part chips lifted to make room */
@media (max-width: 999px) {
  .scroll-cue { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 6px); }
  .hero-pin { padding-bottom: calc(66px + var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* "I-tap ang PC": a tapping hand over the model until the visitor touches it once */
.tap-cue { position: absolute; z-index: 4; left: calc(var(--wx) + var(--ww) / 2); top: calc(var(--wy) + var(--wh) * 0.42); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
/* one tap, then it leaves; it comes back every --tap-every until the visitor touches the PC once */
.stage { --tap-every: 7s; }
.stage.is-ready:not(.is-touched) .tap-cue { animation: tap-cycle var(--tap-every) 1.2s ease-in-out infinite; }
.stage.is-ready:not(.is-touched) .tap-hand { animation: tap-press var(--tap-every) 1.2s ease-in-out infinite; }
.stage.is-ready:not(.is-touched) .tap-ring { animation: tap-ring var(--tap-every) 1.2s ease-out infinite; }
.hero.is-deep .tap-cue, .stage-wrap.is-full .tap-cue { opacity: 0 !important; }
.tap-hand { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tap-hand svg { width: 28px; height: 28px; }
.tap-ring { position: absolute; inset: 0; border-radius: 50%; opacity: 0; box-shadow: 0 0 0 2px rgba(120, 190, 255, 0.9); }
.tap-label { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; }
/* timeline of one cycle (7 s): 0–6% fade in, ~12% press, ring 12–24%, gone by 30%, then a pause */
@keyframes tap-cycle { 0% { opacity: 0; transform: translate(-50%, -42%); } 6%, 22% { opacity: 1; transform: translate(-50%, -50%); } 30%, 100% { opacity: 0; transform: translate(-50%, -50%); } }
@keyframes tap-press { 0%, 9% { transform: scale(1); } 12% { transform: scale(0.84); } 16%, 100% { transform: scale(1); } }
@keyframes tap-ring { 0%, 11% { opacity: 0; transform: scale(0.9); } 13% { opacity: 1; } 24%, 100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) { .scroll-chev svg, .stage .tap-hand, .stage .tap-ring { animation: none !important; } .stage.is-ready:not(.is-touched) .tap-cue { animation: none; opacity: 1; } }
@media (max-width: 999px) {
  .basket-dock:not(.in-sheet) { transition: opacity 0.25s ease; }
  .in-hero .basket-dock:not(.in-sheet) { opacity: 0; pointer-events: none; }
}
.viewer-full .scroll-cue { display: none; }

/* ---------- videos (home) ---------- */
.vid-tabs { display: flex; justify-content: center; gap: 8px; }
.vid-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; }
.vid { display: grid; gap: 10px; align-content: start; min-width: 0; }
.vid-media { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #141519; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -28px rgba(0, 0, 0, 0.8); }
.vid-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease; }
.vid-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55)); }
.vid-badge { position: absolute; z-index: 1; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); transition: transform 0.3s ease, background 0.3s ease; }
.vid-badge svg { width: 22px; height: 22px; margin-left: 3px; }
.vid-len { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; background: rgba(0, 0, 0, 0.55); font-variant-numeric: tabular-nums; }
.vid-play:hover img { transform: scale(1.04); }
.vid-play:hover .vid-badge { transform: scale(1.08); background: rgba(255, 255, 255, 0.28); }
.vid-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vid-title { margin: 0; font-size: 0.95rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-meta { margin: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.82); }
.vid-title, .vid-meta { text-shadow: 0 1px 8px rgba(0, 20, 60, 0.55); }
.vid-more { margin: 0; text-align: center; }
@media (max-width: 999px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; } }
@media (max-width: 639px) {
  .vid-grid { display: flex; width: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
  .vid-grid::-webkit-scrollbar { display: none; }
  .vid { flex: 0 0 54%; scroll-snap-align: start; }
}

/* ---------- nav: Home, Parts dropdown, Videos ---------- */
.nav-drop { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-caret { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-mid); cursor: pointer; }
.nav-caret svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-caret:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-menu { position: absolute; top: calc(100% + 14px); left: -14px; min-width: 210px; display: grid; padding: 8px; border-radius: 16px; background: rgba(17, 18, 21, 0.96); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-links .nav-menu a { padding: 8px 12px; border-radius: 10px; font-size: 0.84rem; color: var(--ink); }
.nav-links .nav-menu a:hover, .nav-links .nav-menu a:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-caret svg, .nav-drop.is-open .nav-caret svg { transform: rotate(180deg); }

/* ---------- scroll to top (above the Basket) ---------- */
.to-top { position: fixed; z-index: 39; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 64px); width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(17, 18, 21, 0.82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.4); cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: rgb(var(--blue-deep)); }
.to-top.is-shown { opacity: 1; transform: none; }
@media (max-width: 999px) {
  .to-top { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom) + 64px); }
  .in-hero .to-top { opacity: 0; pointer-events: none; }
}

/* ---------- hero chips + hero buttons: light glass again, with hover ---------- */
/* These sit on the bright horizon over the 3D PC, so a light frosted tint reads better than the dark one. */
.stage-chips .chip, .hero-cta .btn-glass { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px -8px rgba(0, 20, 60, 0.5); transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.stage-chips .chip:hover { background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -8px rgba(0, 30, 90, 0.6); }
.hero-cta .btn { transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.hero-cta .btn-glass:hover { background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.hero-cta .btn-blue:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 14px rgba(0, 0, 0, 0.14), 0 14px 32px rgba(var(--blue-deep), 0.65); }
.stage-chips .chip:active, .hero-cta .btn:active { transform: scale(0.97); }

/* ---------- audit P0 fixes ---------- */
/* Mag-Build: the optional brand/size choices fold away */
.more-prefs { border-top: 1px solid var(--line); padding-top: 14px; }
.more-prefs > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--ink2); }
.more-prefs > summary::-webkit-details-marker { display: none; }
.more-prefs > summary::after { content: ''; width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.more-prefs[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.more-prefs > summary:hover { color: #fff; }
.more-prefs[open] > summary { margin-bottom: 14px; }
.more-opt { font-weight: 500; color: var(--soft); }
.more-note:empty { display: none; }
.more-note { padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; color: #fff; background: rgba(var(--blue-deep), 0.8); font-weight: 600; white-space: nowrap; }

/* Phones: one Basket (top bar) instead of a floating pill; desktop uses the floating pill only */
@media (min-width: 1000px) { .nav-basket { display: none; } }
@media (max-width: 999px) {
  .basket-dock:not(.in-sheet) { display: none; }
  .to-top { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
  .nav-basket { min-height: 44px; padding: 8px 14px; font-size: 0.9rem; }
  .brand { min-height: 44px; }
  /* inside the product list the Basket shrinks to an icon + count */
  .basket-dock.in-sheet .basket-fab > span:not(.fab-count) { display: none; }
  .basket-dock.in-sheet .basket-fab { padding: 10px 12px; }
}

/* Home: still poster of the PC until the 3D is ready (fills the same visible window as the canvas) */
.stage-poster { position: absolute; z-index: 1; left: var(--wx); top: var(--wy); width: var(--ww); height: var(--wh); padding: 5% 7%; box-sizing: border-box; object-fit: contain; pointer-events: none; transition: opacity 0.5s ease; }
.stage.is-ready .stage-poster, .stage.is-fallback .stage-poster { opacity: 0; }
.stage.is-loading::after { content: none; } /* the poster already shows the PC */

/* ---------- one ReSpecz accent on every page (brand audit: no per-page colours) ---------- */
.section-tag { padding: 5px 14px; gap: 8px; }
.section-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-links a[aria-current='page']::after { background: var(--accent); }
.tabbar a[aria-current='page'] svg { color: var(--accent); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 70%, transparent)); }

/* Ready Builds: real product photos of each build's key parts */
.sample-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sample-thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.sample-thumb img { width: 88%; height: 88%; object-fit: contain; }
.sample-thumb .thumb-icon { border-radius: 14px; }

/* ---------- audit P2 ---------- */
/* touch screens: every control at least 44 px tall/wide (Apple HIG), without changing how it looks */
@media (pointer: coarse) {
  .btn-sm, .btn-xs, .btn-shop, .bk-remove { min-height: 44px; }
  .chip, .sf-chip { min-height: 40px; }
  .nav-caret { width: 44px; height: 44px; }
  .foot a { display: inline-block; padding: 12px 4px; }
  .link-more { display: inline-block; padding: 12px 0; }
  .icon-btn { min-width: 44px; min-height: 44px; }
}
/* home: price freshness */
.price-date { justify-self: center; margin: 2px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; color: var(--ink2); background: rgba(18, 19, 23, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- Mag-Build fits one screen ---------- */
.page-build .section { padding-top: 20px; gap: 14px; }
.page-build .section-head { gap: 6px; }
.page-build .section-head :is(h1, h2) { font-size: clamp(1.45rem, 5.4vw, 2.1rem); }
.build-grid { display: grid; gap: 12px; width: 100%; max-width: 720px; margin: 0 auto; align-items: start; }
.page-build .panel { padding: 16px; gap: 14px; max-width: none; }
.page-build .field { gap: 8px; }
.page-build .budget-out { font-size: 1.45rem; }
.page-build #budget-chips { padding-bottom: 4px; }
/* use case: one row of three, short labels */
.page-build .segments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-build .segment { padding: 9px 6px; }
.page-build .seg-hint { display: none; }
.page-build .label { font-size: 0.9rem; }
.page-build .more-prefs { padding-top: 10px; }
.page-build .result { max-width: none; gap: 10px; scroll-margin-top: 64px; }
.page-build .summary { padding: 14px 16px; gap: 8px; }
.page-build .total { font-size: 1.9rem; }
.page-build .summary-actions { justify-content: flex-start; gap: 8px; }
/* compatibility: one line, the list folds open */
.page-build .compat { padding: 12px 16px; }
.compat > summary { list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.compat > summary::-webkit-details-marker { display: none; }
.compat > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.8px solid var(--ink2); border-bottom: 1.8px solid var(--ink2); transform: rotate(45deg); transition: transform 0.2s ease; }
.compat[open] > summary::after { transform: rotate(-135deg); }
.compat[open] > summary { margin-bottom: 10px; }
.compat.compat-ok > summary .dot { background: var(--ok); }
.compat.compat-warn > summary .dot { background: var(--warn); }
.compat.compat-fail > summary .dot { background: var(--fail); color: #fff; }
/* parts: compact rows (thumb · category + name · price + Shopee); tap the photo to swap */
.page-build .parts-list { gap: 6px; }
.page-build .part { grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 16px; }
.page-build .part-thumb { width: 46px; height: 46px; border-radius: 11px; }
.page-build .part-body { gap: 0; }
.page-build .part-cat { font-size: 0.68rem; }
.page-build .part-name { font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-build .part-spec, .page-build .swap { display: none; }
.page-build .part-side { grid-column: auto; padding: 0; border: 0; flex-direction: column; align-items: flex-end; gap: 4px; }
.page-build .part-price { font-size: 0.92rem; }
.page-build .part-side .btn-shop { padding: 5px 10px; font-size: 0.72rem; min-height: 0; }
.page-build #price-note { margin: 0; }

/* phones: the 8 parts become a 4-across photo grid so form + build fit together */
@media (max-width: 639px) {
  .page-build .section-tag { display: none; }
  .page-build .parts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-build .part { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 3px; padding: 6px 4px 7px; }
  .page-build .part-thumb { width: 100%; height: auto; aspect-ratio: 1; }
  .page-build .part-name, .page-build .part-side .btn-shop { display: none; }
  .page-build .part-side { align-items: center; }
  .page-build .part-price { font-size: 0.74rem; }
  .page-build .summary-row .tag { display: none; }
}

/* wide screens: side by side, sized to the window */
@media (min-width: 1000px) {
  .build-grid { grid-template-columns: 360px minmax(0, 1fr); max-width: 1080px; gap: 16px; }
  .page-build .panel { position: sticky; top: 68px; }
  .page-build .parts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* names get two lines instead of being cut short; every budget chip visible; one-line use-case labels */
.page-build .part-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.page-build #budget-chips { flex-wrap: wrap; justify-content: center; overflow: visible; }
.page-build #budget-chips > :first-child, .page-build #budget-chips > :last-child { margin: 0; }
.page-build #budget-chips .chip { padding: 6px 11px; font-size: 0.8rem; }
.page-build .seg-title { font-size: 0.88rem; white-space: nowrap; }
/* wide windows: as many part columns as fit (3 on a 1366 laptop), so the list is shorter */
@media (min-width: 1000px) { .page-build .parts-list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
/* short laptop screens: drop the page tag and tighten the top so it all fits */
@media (min-width: 1000px) and (max-height: 760px) {
  .page-build .section-tag { display: none; }
  .page-build .section { padding-top: 10px; gap: 10px; }
  .page-build .section-head :is(h1, h2) { font-size: 1.6rem; }
  .page-build .panel { gap: 10px; padding: 14px; }
}
/* phones: squeeze the form and summary so the whole build fits above the tab bar */
@media (max-width: 639px) {
  .page-build .section { padding-top: 10px; gap: 8px; }
  .page-build .section-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* the tab bar already says Mag-Build; kept for screen readers */
  .page-build .panel { padding: 12px 14px; gap: 8px; }
  .page-build .field { gap: 4px; }
  .page-build .field-head label { font-size: 0.9rem; }
  .page-build .budget-out { font-size: 1.25rem; }
  .page-build input[type='range'] { height: 24px; }
  .page-build #budget-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .page-build #usecase-label { display: none; }
  .page-build .segment { padding: 8px 4px; }
  .page-build .seg-title { font-size: 0.82rem; }
  .page-build .more-prefs { padding-top: 6px; }
  .page-build .more-prefs > summary { font-size: 0.86rem; min-height: 36px; }
  .page-build .build-grid { gap: 8px; }
  .page-build .result { gap: 8px; }
  .page-build .summary { padding: 10px 14px; gap: 6px; }
  .page-build .summary-row > div { display: flex; align-items: baseline; gap: 8px; }
  .page-build #summary-label { font-size: 0.8rem; }
  .page-build .total { font-size: 1.5rem; }
  .page-build #budget-note { font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-build .summary-actions { flex-wrap: nowrap; }
  .page-build .summary-actions .btn { flex: 1; padding: 8px 10px; font-size: 0.8rem; min-height: 40px; }
  .page-build .compat { padding: 8px 14px; }
  .page-build .compat > summary { font-size: 0.84rem; min-height: 28px; }
  .page-build .parts-list { gap: 5px; }
  .page-build #price-note { display: none; }
}
@media (max-width: 639px) { .page-build .part .part-name { display: none; } .page-build .part .part-cat { font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } }
@media (max-width: 639px) {
  .page-build .panel { gap: 6px; padding: 10px 14px; }
  .page-build .more-prefs > summary { min-height: 30px; }
  .page-build .part { padding: 4px 3px 5px; gap: 2px; }
  .page-build .part .part-thumb { width: 86%; }
  .page-build .result, .page-build .build-grid { gap: 7px; }
}

/* typeable budget amount: looks like the big number, a faint underline says it can be edited */
input.budget-out { width: 9ch; min-width: 0; padding: 2px 4px; border: 0; border-bottom: 1.5px dashed rgba(255, 255, 255, 0.25); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; }
input.budget-out:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
input.budget-out:focus { outline: none; border-bottom: 1.5px solid var(--blue); background: rgba(255, 255, 255, 0.06); border-radius: 6px 6px 0 0; }

/* Mag-Build: a part that changed slides in with a brief blue glow (transform/opacity only, cheap) */
.part.is-swapped { animation: part-swap 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
.part.is-swapped .part-thumb { animation: thumb-swap 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes part-swap { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* the glow is a separate layer that only fades (no box-shadow animation, which repaints every frame) */
.page-build .part { position: relative; }
.part.is-swapped::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.9), 0 0 22px rgba(77, 163, 255, 0.4); animation: swap-glow 0.6s ease-out forwards; }
@keyframes swap-glow { from { opacity: 1; } to { opacity: 0; } }
@keyframes thumb-swap { from { transform: scale(0.82) rotate(-4deg); } to { transform: none; } }

/* ---------- affiliate disclosure: one line on every page, full text on /disclosure/ ---------- */
.disclosure { max-width: 720px; margin: 0 auto; padding: 0; border: 0; background: none; box-shadow: none; text-align: center; font-size: 0.78rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); text-shadow: 0 1px 8px rgba(0, 20, 60, 0.6); }
.disclosure a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-body { gap: 10px; text-align: left; }
.legal-body h3 { margin: 10px 0 0; font-size: 1.05rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { margin: 0; color: var(--ink-mid); line-height: 1.6; }

/* ---------- Mag-Build hierarchy ----------
   1 the build (total + parts)  2 one primary action (Idagdag lahat sa Basket)  3 per-part Shopee links.
   The eight per-part links were the loudest thing on the page (saturated orange); they become quiet text
   links that only turn Shopee-orange on hover, so the eye lands on the total and the primary button first. */
.page-build .part-side .btn-shop-quiet { padding: 2px 0; min-height: 0; background: none; box-shadow: none; color: var(--ink2); font-size: 0.74rem; font-weight: 600; gap: 3px; }
.page-build .part-side .btn-shop-quiet:hover { color: #ff7a45; filter: none; text-decoration: none; }
.page-build .part-side .btn-shop-quiet span { transition: transform 0.2s ease; }
.page-build .part-side .btn-shop-quiet:hover span { transform: translateX(2px); }
@media (pointer: coarse) { .page-build .part-side .btn-shop-quiet { min-height: 32px; padding: 6px 0; } }
/* the primary action reads as the one thing to do next */
.page-build #basket-build-btn { padding-inline: 20px; }
.page-build .part-price { color: #fff; }
/* still clearly a button: Shopee-orange outline pill (not filled), so it reads clickable but stays below the primary */
.page-build .part-side .btn-shop-quiet { padding: 3px 10px; border-radius: 999px; color: var(--shopee); box-shadow: inset 0 0 0 1px rgba(var(--shopee-rgb), 0.55); background: rgba(var(--shopee-rgb), 0.08); }
.page-build .part-side .btn-shop-quiet:hover { color: #fff; background: #ee4d2d; box-shadow: inset 0 0 0 1px #ee4d2d; }
@media (pointer: coarse) { .page-build .part-side .btn-shop-quiet { min-height: 32px; padding: 6px 12px; } }

/* Mag-Build: shortcut to "May Parts na Ako" (violet = that page's colour) */
.may-shortcut { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; color: var(--ink); background: linear-gradient(100deg, rgba(37, 99, 235, 0.32), rgba(18, 19, 23, 0.62) 70%); border-color: rgba(var(--accent-rgb), 0.35); transition: transform 0.2s ease, border-color 0.2s ease; }
.may-shortcut:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.7); }
.may-shortcut img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: 50% 22%; }
.may-sc-text { display: grid; gap: 1px; min-width: 0; }
.may-sc-title { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.015em; }
.may-sc-sub { font-size: 0.82rem; color: var(--ink2); }
.may-sc-go { font-size: 1.5rem; color: var(--accent); transition: transform 0.2s ease; }
.may-shortcut:hover .may-sc-go { transform: translateX(3px); }
/* wide: under the form in the left column (the build spans both rows on the right) */
.build-side { display: grid; gap: 12px; align-content: start; }
@media (min-width: 1000px) { .page-build .panel { position: static; } .build-side { position: sticky; top: 68px; } }
/* phones/tablets: the left column dissolves so the shortcut can sit after the build (form + build still fit) */
@media (max-width: 999px) {
  .build-side { display: contents; }
  .build-grid > .build-side > .panel { order: 1; }
  .build-grid > .result { order: 2; }
  .build-grid > .build-side > .may-shortcut { order: 3; }
}

/* ---------- May Parts na Ako fits one screen ---------- */
.page-may .section { padding-top: 20px; gap: 14px; }
.page-may .section-head :is(h1, h2) { font-size: clamp(1.45rem, 5.4vw, 2.1rem); }
.may-layout { display: grid; gap: 12px; width: 100%; max-width: 720px; margin: 0 auto; align-items: start; }
.page-may .panel { padding: 16px; gap: 12px; max-width: none; }
.may-lede { margin: 0; font-size: 0.86rem; color: var(--ink2); }
.page-may .may-grid { gap: 10px; }
.page-may .result { max-width: none; gap: 10px; }
.may-notes { padding: 12px 16px; }
.may-rows { display: grid; gap: 6px; }
.may-rows > .may-need { grid-column: 1 / -1; }
/* compact row: photo · category + best match + "N swak ›" · price + Shopee */
.may-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(18, 19, 23, 0.62); box-shadow: var(--shadow); border: 1px solid var(--glass-edge); }
.may-row-thumb { width: 50px; height: 50px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; cursor: pointer; }
.may-row-thumb img { width: 90%; height: 90%; object-fit: contain; }
.may-row-body { display: grid; gap: 1px; min-width: 0; }
.may-row-body .part-cat { font-size: 0.68rem; }
.may-row-name { font-size: 0.86rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.may-row-more { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.may-row-more:hover { color: #9ccbff; }
.may-row-side { display: grid; justify-items: end; gap: 4px; }
.may-row-price { font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.may-row-side .btn-shop-quiet { padding: 3px 10px; min-height: 0; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: var(--shopee); background: rgba(var(--shopee-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--shopee-rgb), 0.55); }
.may-row-side .btn-shop-quiet:hover { color: #fff; background: #ee4d2d; filter: none; }
.may-row-empty { font-size: 0.8rem; color: var(--ink2); }
.may-need-head .may-less { margin-left: auto; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink); font: inherit; font-size: 0.78rem; cursor: pointer; }
.may-need-head { align-items: center; }
@media (pointer: coarse) { .may-row-side .btn-shop-quiet, .may-row-more { min-height: 32px; } }

/* wide screens: side by side */
@media (min-width: 1000px) {
  .may-layout { grid-template-columns: 320px minmax(0, 1fr); max-width: 1080px; gap: 16px; }
  .page-may .panel { position: sticky; top: 68px; }
  .page-may .may-grid { grid-template-columns: minmax(0, 1fr); }
  .may-rows { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (min-width: 1000px) and (max-height: 760px) {
  .page-may .section-tag { display: none; }
  .page-may .section { padding-top: 10px; gap: 10px; }
}
/* phones: pickers two-across, results as a photo grid (tap a photo for every option) */
@media (max-width: 639px) {
  .page-may .section { padding-top: 10px; gap: 8px; }
  .page-may .section-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-may .panel { padding: 12px; gap: 8px; }
  .page-may .may-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-may .may-select { padding: 9px 10px; font-size: 0.84rem; }
  .page-may .may-actions .btn { flex: 1; min-height: 40px; }
  .may-rows { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .may-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2px; padding: 4px 3px 5px; }
  .may-row-thumb { width: 86%; height: auto; aspect-ratio: 1; }
  .may-row-name, .may-row-side .btn-shop-quiet { display: none; }
  .may-row-body .part-cat { font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .may-row-more { justify-self: center; font-size: 0.66rem; min-height: 0; padding: 0; }
  .may-row-price { font-size: 0.74rem; }
}
/* tighter pickers so the form fits short laptop screens too */
.page-may .may-field { gap: 3px; }
.page-may .may-select { padding: 9px 11px 9px 12px; }
.page-may .may-grid { gap: 8px; }
.page-may .may-lede { font-size: 0.8rem; }
@media (min-width: 1000px) and (max-height: 760px) { .page-may .panel { gap: 8px; padding: 12px 14px; } .page-may .may-select { padding: 7px 10px; } }

/* ---------- "Tingnan Lahat" popover (May Parts na Ako) ---------- */
.lbl-short { display: none; }
.may-pop { position: fixed; z-index: 60; display: grid; grid-template-rows: auto auto minmax(0, 1fr); max-height: 420px; padding: 12px; border-radius: 18px; background: rgba(18, 19, 22, 0.97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(6px) scale(0.985); transform-origin: top center; pointer-events: none; transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.may-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.pop-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 8px; }
.pop-head strong { font-size: 1rem; }
.pop-close { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--ink); cursor: pointer; }
.pop-filters { margin: 0 0 8px; gap: 6px; }
.pop-list { overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 6px; padding-right: 2px; }
.pop-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.pop-item:hover { background: rgba(255, 255, 255, 0.08); }
.pop-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.pop-thumb img { width: 90%; height: 90%; object-fit: contain; }
.pop-body { display: grid; gap: 1px; min-width: 0; }
.pop-name { font-size: 0.84rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-spec { font-size: 0.72rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-side { display: grid; justify-items: end; gap: 4px; }
.pop-price { font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.pop-actions { display: flex; gap: 6px; align-items: center; }
.pop-add { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.pop-add:hover { background: rgb(var(--blue-deep)); }
.pop-actions .btn-shop-quiet { padding: 3px 10px; min-height: 0; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: var(--shopee); background: rgba(var(--shopee-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--shopee-rgb), 0.55); }
.pop-actions .btn-shop-quiet:hover { color: #fff; background: #ee4d2d; filter: none; }
.may-row.is-popped { border-color: rgba(var(--accent-rgb), 0.7); }
@media (pointer: coarse) { .pop-add { width: 36px; height: 36px; } .pop-actions .btn-shop-quiet { min-height: 36px; padding: 6px 12px; } .pop-close { width: 40px; height: 40px; } }
/* phones: the same popup as a card above the tab bar */
@media (max-width: 639px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .may-pop { left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); max-height: 64vh; transform: translateY(16px); transform-origin: bottom center; }
}
@media (prefers-reduced-motion: reduce) { .may-pop { transition: opacity 0.1s linear; transform: none; } }

/* add-to-Basket: basket icon (with a plus) instead of a bare "+" */
.btn-basket { gap: 6px; }
.btn-basket .ic-basket { width: 17px; height: 17px; flex: none; }
.pop-add { display: grid; place-items: center; padding: 0; }
.pop-add .ic-basket { width: 16px; height: 16px; }

/* hover tips: small dark pill above the control, quick fade (no blur, so it stays cheap) */
.tip {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  max-width: 240px; padding: 6px 10px; border-radius: 9px;
  background: rgba(28, 28, 32, 0.96); color: var(--ink);
  font: 500 12.5px/1.3 var(--font); letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 24px -8px rgba(0, 0, 0, 0.7);
  opacity: 0; transition: opacity 0.14s ease;
}
.tip.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* Ready Builds: every card shares the same rows (title, thumbs, specs, price), so prices and buttons line up */
@supports (grid-template-rows: subgrid) {
  .samples { row-gap: 14px; }
  .sample { grid-row: span 4; grid-template-rows: subgrid; row-gap: 16px; }
  .sample-foot { align-self: end; }
}

/* ---------- 3D hover peek: the hero copy steps aside for "what is this part" + 3 picks ---------- */
.hero-copy { position: relative; }
.hero-copy > :not(.peek) { transition: opacity 0.18s ease, transform 0.18s ease; }
.hero-copy.is-peek > :not(.peek) { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.peek {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; gap: 10px; justify-items: start; text-align: left; z-index: 2;
  animation: peek-in 0.22s ease both;
}
.peek[hidden] { display: none; }
@keyframes peek-in { from { opacity: 0; transform: translateY(calc(-50% + 8px)); } to { opacity: 1; transform: translateY(-50%); } }
.peek-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--accent, var(--blue)); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.peek-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(77, 163, 255, 0.14); }
.peek-icon svg { width: 16px; height: 16px; }
.peek-title { margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.peek-blurb { margin: 0; max-width: 34ch; color: var(--ink2); font-size: 1.02rem; line-height: 1.45; }
.peek-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 460px; }
.peek-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: var(--island); box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.peek-item:hover { background: var(--island2); box-shadow: inset 0 0 0 1px rgba(238, 77, 45, 0.55); transform: translateX(3px); }
.peek-thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.peek-thumb img { width: 88%; height: 88%; object-fit: contain; }
.peek-body { display: grid; gap: 2px; min-width: 0; }
.peek-tier { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--soft); }
.peek-name { font-size: 0.92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-price { font-size: 0.98rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.peek-all { margin-top: 2px; padding: 8px 0; border: 0; background: none; color: var(--accent, var(--blue)); font: 500 0.95rem var(--font); cursor: pointer; }
.peek-all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } .hero-copy > :not(.peek), .peek-item { transition: none; } }

/* zoomed into the 3D (scrolled in or full screen): the hover card floats over the PC as frosted glass */
.peek.peek-float {
  position: fixed; left: max(24px, var(--gutter)); right: auto; top: 50%;
  width: min(400px, 36vw); z-index: 40;
  padding: 22px 20px 16px; border-radius: 26px;
  background: rgba(22, 23, 27, 0.5);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 70px -24px rgba(0, 0, 0, 0.75);
}
.peek-float .peek-title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.peek-float .peek-blurb { font-size: 0.95rem; }
.peek-float .peek-item { background: rgba(255, 255, 255, 0.07); }
.peek-float .peek-item:hover { background: rgba(255, 255, 255, 0.12); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .peek.peek-float { background: rgba(22, 23, 27, 0.92); } }

/* May Parts, nothing picked yet: preview of the result + how it works + quick starts (fills the right column) */
.may-start { display: grid; gap: 18px; padding: 22px; align-content: start; }
.ms-head h3 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -0.02em; }
.ms-head p { margin: 0; color: var(--ink2); max-width: 52ch; line-height: 1.45; }
.ms-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ms-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--island); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.88rem; }
.ms-steps b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent, var(--blue)); color: #fff; font-size: 0.78rem; }
.ms-quick { display: grid; gap: 8px; }
.ms-label { margin: 0; font-size: 0.82rem; color: var(--soft); }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-ghosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-ghost {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 12px 7px 7px; border-radius: 14px; background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); opacity: 0.75;
}
.ms-ghost-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--soft); }
.ms-ghost-icon svg { width: 20px; height: 20px; }
.ms-ghost-body { display: grid; gap: 6px; font-size: 0.74rem; color: var(--soft); }
.ms-ghost-body i { display: block; height: 8px; width: 70%; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
.ms-q { font-weight: 700; color: rgba(255, 255, 255, 0.28); font-size: 1.1rem; }
@media (max-width: 639px) { .ms-steps { grid-template-columns: 1fr; } .ms-ghosts { display: none; } }

/* big screens: the one-screen tools (Mag-Build, May Parts) grow with the window instead of floating small in it */
@media (min-width: 1500px) and (min-height: 900px) {
  html[data-page='build'] main, html[data-page='may'] main { zoom: 1.14; }
}
@media (min-width: 1800px) and (min-height: 1000px) {
  html[data-page='build'] main, html[data-page='may'] main { zoom: 1.28; }
}

/* ---------- on-brand nav: ReSpecz wordmark, blue glow pill for the current page, glass basket ---------- */
.nav { background: rgba(11, 12, 14, 0.62); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.nav::after { /* a thin ReSpecz-blue light along the bottom edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45) 30%, rgba(37, 99, 235, 0.6) 50%, rgba(56, 189, 248, 0.45) 70%, transparent);
}
.brand { gap: 10px; }
.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; color: #fff; }
.brand-sub { font-weight: 500; color: var(--ink2); }
.nav-links { gap: 4px; align-items: center; }
.nav-links > a, .nav-drop > a { padding: 7px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: var(--ink-mid); transition: background 0.18s ease, color 0.18s ease; }
.nav-links > a:hover, .nav-drop > a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-drop { gap: 0; }
.nav-drop > a { padding-right: 6px; }
.nav-links a[aria-current='page'] {
  color: #fff; font-weight: 600;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 18px -4px rgba(37, 99, 235, 0.8);
}
.nav-links a[aria-current='page']::after { content: none; }
.nav-links a[aria-current='page']:hover { background: linear-gradient(180deg, rgba(56, 189, 248, 0.34), rgba(37, 99, 235, 0.42)); }
.nav-basket { gap: 6px; padding: 5px 6px 5px 11px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); transition: background 0.18s ease; }
.nav-basket:hover { background: rgba(255, 255, 255, 0.1); }
.nav-basket svg { color: #9ccbff; }
#nav-basket-count {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 0.74rem; font-weight: 700; color: #fff; background: var(--brand-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 12px -2px rgba(37, 99, 235, 0.9);
}

/* every control uses the site font (buttons default to the system font otherwise) */
button, input, select, textarea { font-family: inherit; }

/* nav pills: a slimmer pill, and for "Parts" the dropdown arrow sits inside the same pill */
.nav-links > a, .nav-drop > a { padding: 5px 12px; line-height: 20px; }
.nav-drop { border-radius: 999px; padding-right: 6px; transition: background 0.18s ease; }
.nav-drop > a { padding-right: 2px; }
.nav-drop > a:hover { background: none; }
.nav-drop:hover { background: rgba(255, 255, 255, 0.07); }
.nav-drop:has(> a[aria-current='page']) {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 18px -4px rgba(37, 99, 235, 0.8);
}
.nav-drop > a[aria-current='page'], .nav-drop > a[aria-current='page']:hover { background: none; box-shadow: none; }
.nav-drop:has(> a[aria-current='page']) .nav-caret { color: #fff; }
.nav-drop:has(> a[aria-current='page']):hover { background: linear-gradient(180deg, rgba(56, 189, 248, 0.34), rgba(37, 99, 235, 0.42)); }

/* Ready Builds: the title row is as tall as the longest card's; keep tag, title and text packed at the top
   (otherwise the grid stretches the tag pill into a tall blob) */
.sample-main { align-content: start; }

/* zoomed into the 3D: the parts list as a glass rail on the right edge (the left edge has the hover card) */
.stage-rail {
  position: fixed; right: max(20px, var(--gutter)); top: 50%; z-index: 38;
  display: grid; gap: 6px; padding: 8px; border-radius: 22px;
  background: rgba(22, 23, 27, 0.45);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translate(12px, -50%);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.stage-rail.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.22s ease, transform 0.22s ease; }
.rail-item {
  display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 7px 14px 7px 7px;
  border: 0; border-radius: 14px; background: transparent; color: var(--ink);
  font-size: 0.86rem; font-weight: 500; text-align: left; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.rail-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); color: #9ccbff; }
.rail-icon svg { width: 17px; height: 17px; }
.rail-item:hover, .rail-item:focus-visible { background: rgba(255, 255, 255, 0.08); }
.rail-item.is-hot {
  color: #fff; font-weight: 600;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.26), rgba(37, 99, 235, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(56, 189, 248, 0.32);
}
.rail-item.is-hot .rail-icon { background: var(--brand-grad); color: #fff; }
/* desktop full screen: the rail replaces the chip row at the bottom */
@media (hover: hover) and (pointer: fine) and (min-width: 860px) { .stage-wrap.is-full .stage-chips { visibility: hidden; } }
@media (max-width: 859px) { .stage-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .stage-rail, .stage-rail.is-on { transition: none; } }

/* zoomed-in side panels: compact and see-through, so the PC stays visible behind them */
.peek.peek-float {
  width: min(300px, 28vw); gap: 7px; padding: 14px 14px 10px; border-radius: 20px;
  background: rgba(20, 21, 25, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.peek-float .peek-eyebrow { font-size: 0.68rem; gap: 6px; }
.peek-float .peek-icon { width: 20px; height: 20px; border-radius: 6px; }
.peek-float .peek-icon svg { width: 13px; height: 13px; }
.peek-float .peek-title { font-size: 1.35rem; }
.peek-float .peek-blurb { font-size: 0.8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.peek-float .peek-list { gap: 5px; margin-top: 2px; }
.peek-float .peek-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.peek-float .peek-item:hover { background: rgba(255, 255, 255, 0.14); }
.peek-float .peek-thumb { width: 36px; height: 36px; border-radius: 9px; }
.peek-float .peek-tier { font-size: 0.6rem; }
.peek-float .peek-name { font-size: 0.78rem; }
.peek-float .peek-price { font-size: 0.82rem; }
.peek-float .peek-all { padding: 4px 0 0; font-size: 0.8rem; }

.stage-rail {
  gap: 2px; padding: 5px; border-radius: 18px;
  background: rgba(20, 21, 25, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
.rail-item { min-width: 0; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 12px; font-size: 0.78rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.rail-icon { width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); }
.rail-icon svg { width: 14px; height: 14px; }

/* ReSpecz square grid (same pattern as the videos: big squares + 4x finer ones), only over the dark top part,
   fading out before the blue horizon */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px) -1px -1px / 240px 240px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px) -1px -1px / 240px 240px,
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 60px 60px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 72%);
}

/* ---------- aurora background (user reference: dark navy with sweeping blue/white light, film grain) ---------- */
body::before { background: radial-gradient(120% 80% at 50% 50%, #040822 0%, #02040f 60%, #01020a 100%); }
.bg-aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.au { position: absolute; border-radius: 50%; will-change: transform; backface-visibility: hidden; }
/* bottom-left sweep: white core into ReSpecz blue */
.au-a {
  width: 115vmax; height: 62vmax; left: -42vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(232, 240, 255, 0.78), rgba(130, 166, 255, 0.66) 24%, rgba(40, 92, 232, 0.6) 48%, rgba(20, 44, 150, 0.3) 72%, transparent);
}
/* top-right sweep */
.au-b {
  width: 100vmax; height: 52vmax; right: -40vmax; top: -26vmax;
  background: radial-gradient(closest-side, rgba(222, 234, 255, 0.68), rgba(90, 136, 250, 0.6) 30%, rgba(32, 68, 200, 0.4) 60%, transparent);
}
/* the deep blue band across the middle */
.au-c {
  width: 150vmax; height: 34vmax; left: -30vmax; top: 22vh;
  background: radial-gradient(closest-side, rgba(32, 70, 210, 0.42), rgba(18, 40, 140, 0.18) 60%, transparent);
}
/* film grain instead of stars */
body::after {
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
/* the grid stays, a touch fainter over the light */
.bg-grid { opacity: 0.8; }

/* ---------- graphite studio background (user reference: dark product shot, warm glow, vignette) ----------
   replaces the blue aurora; same layers, so the soft scroll drift still works */
body::before { background: radial-gradient(110% 85% at 50% 42%, #111214 0%, #0b0c0d 50%, #060607 100%); }
.au-a { /* warm glow low-left, like light bouncing off a desk */
  width: 110vmax; height: 60vmax; left: -46vmax; bottom: -38vmax;
  background: radial-gradient(closest-side, rgba(150, 96, 58, 0.16), rgba(110, 70, 44, 0.08) 45%, transparent);
}
.au-b { /* cool, faint top-right */
  width: 95vmax; height: 50vmax; right: -44vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(120, 132, 156, 0.09), rgba(80, 90, 110, 0.04) 50%, transparent);
}
.au-c { /* soft light behind the content, centre */
  width: 120vmax; height: 50vmax; left: -10vmax; top: 10vh;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.02), transparent);
}
.bg-grid { opacity: 0.55; }
body::after { opacity: 0.07; }

/* no lone word on the last line ("…Shopee Mall / link."): headings and centred intros split evenly,
   body text avoids a one-word last line */
h1, h2, h3, .section-head p, .lede, .peek-blurb, .ms-head p { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- colour audit (Apple HIG: one tint, legible contrast, restraint) ---------- */
/* 1. primary button: the light end of the gradient (#38bdf8) left white text at 2.1:1. Same brand blue,
      deeper range: every point of the fill now keeps white text at 3.7:1 or better (bold 15px+) */
.btn-blue {
  background: linear-gradient(100deg, #1f5fe0 0%, #2f78f2 55%, #3b86f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px -6px rgba(31, 95, 224, 0.6);
}
.hero-cta .btn-blue:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 26px -8px rgba(31, 95, 224, 0.7); }

/* 2. one tint per row: Shopee pills go neutral (still a pill with a chevron, so clearly tappable);
      Shopee orange appears on hover/press only, where it confirms where the link goes */
.page-build .part-side .btn-shop-quiet, .may-row-side .btn-shop-quiet, .pop-actions .btn-shop-quiet {
  color: var(--ink); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.page-build .part-side .btn-shop-quiet:hover, .may-row-side .btn-shop-quiet:hover, .pop-actions .btn-shop-quiet:hover,
.page-build .part-side .btn-shop-quiet:active, .may-row-side .btn-shop-quiet:active, .pop-actions .btn-shop-quiet:active {
  color: #fff; background: #ee4d2d; box-shadow: inset 0 0 0 1px #ee4d2d;
}

/* 3. product photos sit on Apple's off-white (#f5f5f7) instead of pure white: less glare on the dark UI */
.cat-thumb, .part-thumb, .prod-thumb, .bp-thumb, .sample-thumb, .may-row-thumb, .pop-thumb, .peek-thumb { background: #f5f5f7; }

/* 4. home cards: the art keeps its colours, but every card shares one graphite base, glow and text area
      (four saturated hues were the loudest thing on a calm page) */
.route { --tone: #17181c !important; }

/* 5. restraint: softer glows on the nav pill and the Basket count */
.nav-links a[aria-current='page'], .nav-drop:has(> a[aria-current='page']) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(56, 189, 248, 0.28), 0 0 12px -6px rgba(37, 99, 235, 0.7);
}
#nav-basket-count { background: #2f78f2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }

/* ---------- featured picks + ad slots ---------- */
.feat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(300px, 84vw), 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
@media (min-width: 1100px) { .feat-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.feat-card { scroll-snap-align: start; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(18, 19, 23, 0.62); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.feat-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .35); }
.feat-thumb { width: 84px; height: 84px; border-radius: 15px; overflow: hidden; background: #f5f5f7; display: grid; place-items: center; }
.feat-thumb img { width: 92%; height: 92%; object-fit: contain; }
.feat-body { display: grid; gap: 3px; min-width: 0; align-content: start; }
.feat-tag { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); display: flex; gap: 6px; align-items: center; }
.feat-spons, .ad-label { font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.feat-spons { padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.feat-name { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-spec { margin: 0; font-size: .74rem; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.feat-price { font-size: 1rem; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.feat-body > * { min-width: 0; max-width: 100%; }
.feat-actions .btn-shop { padding: 6px 12px; font-size: .78rem; color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.feat-actions .btn-shop:hover { background: #ee4d2d; color: #fff; box-shadow: none; }
.badge-feat { background: rgba(var(--accent-rgb), .15); color: var(--accent); }

.ad-wrap { padding-top: 8px; padding-bottom: 8px; }
.section .ad-wrap { margin-top: 22px; padding: 0; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: 980px; margin: 0 auto; padding: 16px 18px; border-radius: 20px; color: inherit; text-decoration: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), rgba(18, 19, 23, 0.55); border: 1px solid var(--glass-edge); transition: border-color .25s ease; }
.ad.has-img { grid-template-columns: 120px minmax(0, 1fr) auto; }
.ad:hover { border-color: rgba(255, 255, 255, .22); }
.ad-house { border-style: dashed; border-color: rgba(255, 255, 255, .16); background: rgba(18, 19, 23, .4); }
.ad-img { width: 120px; height: 68px; object-fit: cover; border-radius: 12px; }
.ad-body { display: grid; gap: 3px; min-width: 0; }
.ad-title { font-weight: 600; font-size: 1rem; }
.ad-text { font-size: .82rem; color: var(--ink2); }
@media (max-width: 639px) {
  .ad, .ad.has-img { grid-template-columns: minmax(0, 1fr); }
  .ad-img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .ad-cta { justify-self: start; }
}

/* house ad (no sponsor yet): centred, quiet invite */
.ad-wrap { width: 100%; }
.ad-house { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 12px; max-width: 760px; padding: 22px 24px; }
.ad-house .ad-body { justify-items: center; }
.ad-house .ad-cta { justify-self: center; }

/* route cards: the art sits on top, the text below it (no text over the products).
   Art keeps its 3:4 box; the body starts where the art fades out (~76% down). */
.route { aspect-ratio: auto; display: flex; flex-direction: column; overflow: hidden; }
.route::before { content: ''; display: block; aspect-ratio: 1 / 1.02; flex: none; }
.route-media, .route-layers, .route-pop { inset: 0 0 auto 0; height: auto; aspect-ratio: 3 / 4; }
.route-media { border-radius: 26px 26px 0 0; }
.route-media::after { background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--tone) 80%, transparent) 70%, var(--tone) 77%); }
.route-body { position: relative; inset: auto; flex: 1; align-content: start; padding: 4px 20px 20px; }
.route-btn { margin-top: auto; }
.route-body { grid-template-rows: auto auto 1fr; }
.route-btn { align-self: end; }

/* ---------- troubleshooter (/troubleshoot/, js/troubleshoot.js) ---------- */
.ts-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; max-width: 720px; margin: 0 auto; }
@media (min-width: 1000px) {
  .ts-layout { grid-template-columns: minmax(0, 1fr) 300px; max-width: 1060px; align-items: start; }
  .ts-safety { position: sticky; top: 84px; }
}
.ts-panel { max-width: none; gap: 16px; scroll-margin-top: 76px; grid-template-columns: minmax(0, 1fr); }
.ts-loading { margin: 0; color: var(--ink2); }
.ts-q, .ts-title { margin: 0; font-size: clamp(1.2rem, 4.6vw, 1.5rem); line-height: 1.25; letter-spacing: -0.015em; text-wrap: pretty; }
.ts-q:focus, .ts-title:focus { outline: none; }
.ts-help { margin: -6px 0 0; color: var(--ink2); font-size: 0.92rem; }
.ts-crumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--ink2); }
.ts-crumb span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--island); }
.ts-crumb span:first-child { color: var(--blue); }

.ts-symptoms, .ts-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .ts-symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-symptom, .ts-option, .ts-cat {
  appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px;
  padding: 14px 16px; border: 1px solid var(--glass-edge); border-radius: 18px;
  background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.ts-symptom:hover, .ts-option:hover, .ts-cat:hover { background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.45); text-decoration: none; }
.ts-symptom:active, .ts-option:active, .ts-cat:active { transform: scale(0.99); }
.ts-symptom:focus-visible, .ts-option:focus-visible, .ts-cat:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ts-symptom svg, .ts-option svg, .ts-cat > svg:last-child { flex: none; width: 14px; height: 14px; margin-left: auto; color: var(--blue); }
.ts-symptom-text { display: grid; gap: 3px; }
.ts-symptom-text strong { font-size: 1rem; font-weight: 600; }
.ts-symptom-text span { color: var(--ink2); font-size: 0.85rem; line-height: 1.35; }
.ts-option span { font-weight: 500; }

.ts-kicker { margin: 0 0 -10px; color: var(--blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ts-why { margin: 0; color: var(--ink-mid); line-height: 1.55; }
.ts-warn { margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 159, 10, 0.4); background: rgba(255, 159, 10, 0.08); color: var(--ink-mid); font-size: 0.9rem; line-height: 1.5; }
.ts-warn strong { color: var(--warn); }
.ts-sub { margin: 4px 0 -4px; font-size: 0.95rem; font-weight: 700; }
.ts-steps { margin: 0; padding: 0; list-style: none; counter-reset: ts; display: grid; gap: 10px; }
.ts-steps li { counter-increment: ts; position: relative; padding: 2px 0 0 38px; color: var(--ink-mid); line-height: 1.55; }
.ts-steps li::before {
  content: counter(ts); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(var(--accent-rgb), 0.16); color: var(--blue); font-size: 0.8rem; font-weight: 700;
}
.ts-shop { display: grid; gap: 10px; }
.ts-cat { font-weight: 600; }
.ts-cat-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--accent-rgb), 0.14); color: var(--blue); }
.ts-cat-icon svg { width: 20px; height: 20px; }
.ts-answers { border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.88rem; color: var(--ink2); }
.ts-answers summary { cursor: pointer; font-weight: 600; color: var(--ink-mid); }
.ts-answers ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ts-answers li { display: grid; gap: 2px; }
.ts-answers strong { color: var(--ink); font-weight: 600; }
.ts-more { margin: 0; color: var(--ink2); font-size: 0.88rem; line-height: 1.5; }
.ts-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ts-nav .btn svg { width: 12px; height: 12px; }

.ts-safety { padding: 20px 22px; }
.ts-safety h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ts-safety h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.ts-safety ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-mid); font-size: 0.88rem; line-height: 1.5; }
.ts-safety strong { color: var(--ink); }

/* Home: one line under the route cards */
.ts-promo { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 720px; margin: 0 auto; padding: 14px 18px; color: var(--ink); border-radius: 22px; }
.ts-promo:hover { text-decoration: none; border-color: rgba(var(--accent-rgb), 0.45); }
.ts-promo-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--accent-rgb), 0.16); color: var(--blue); }
.ts-promo-icon svg { width: 22px; height: 22px; }
.ts-promo-text { display: grid; gap: 2px; }
.ts-promo-text strong { font-size: 0.98rem; }
.ts-promo-text span { color: var(--ink2); font-size: 0.85rem; line-height: 1.4; }
.ts-promo-go { margin-left: auto; color: var(--blue); font-size: 1.4rem; line-height: 1; }

/* ---------- Ark, ang Assistant ni ReSpecz (js/ark.js) ---------- */
.ark-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--brand-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px -4px rgba(var(--blue-deep), 0.8); }
.ark-avatar svg { width: 16px; height: 16px; }
.ark-fab {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--glass-edge); background: rgba(28, 29, 34, 0.7); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.2s ease;
}
.ark-fab:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-1px); }
.ark-fab:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 999px) { .ark-fab { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); } }
.viewer-full .ark-fab, .ark-open .ark-fab { display: none; }

.ark { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.ark::backdrop { background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ark-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: max(10px, env(safe-area-inset-top));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; border-radius: 24px 24px 0 0; overflow: hidden;
  border: 1px solid var(--glass-edge); background: rgba(14, 15, 19, 0.94); box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
@media (min-width: 700px) {
  .ark-panel { left: max(20px, env(safe-area-inset-left)); right: auto; bottom: 20px; top: auto; width: 420px; height: min(680px, calc(100dvh - 40px)); border-radius: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ark[open] .ark-panel { animation: ark-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes ark-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
}
.ark-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ark-head .ark-avatar { width: 36px; height: 36px; }
.ark-head .ark-avatar svg { width: 19px; height: 19px; }
.ark-id { flex: 1; min-width: 0; }
.ark-id h2 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; }
.ark-id p { margin: 1px 0 0; color: var(--ink2); font-size: 0.78rem; }
.ark-icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--island); color: var(--ink); font: inherit; font-size: 0.95rem; cursor: pointer; }
.ark-icon-btn svg { width: 18px; height: 18px; }
.ark-icon-btn:hover { border-color: rgba(var(--accent-rgb), 0.5); }

.ark-log { overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; display: grid; align-content: start; gap: 12px; scroll-behavior: smooth; }
.ark-row { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.ark-row.ark-user { justify-content: flex-end; }
.ark-row .ark-avatar { width: 26px; height: 26px; }
.ark-row .ark-avatar svg { width: 14px; height: 14px; }
.ark-bubble { min-width: 0; max-width: 100%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 0.92rem; line-height: 1.5; color: var(--ink-mid); }
.ark-bot .ark-bubble { flex: 1; }
.ark-user .ark-bubble { max-width: 82%; border-radius: 18px 18px 6px 18px; background: linear-gradient(100deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); border-color: transparent; color: #fff; font-weight: 500; }
.ark-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ark-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ark-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink2); animation: ark-dot 1s infinite ease-in-out; }
.ark-typing i:nth-child(2) { animation-delay: 0.15s; }
.ark-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ark-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ark-typing i { animation: none; opacity: 0.7; } }

.ark-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ark-part { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 52px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.ark-part:hover { background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.45); }
.ark-part:active { transform: scale(0.98); }
.ark-part-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--accent-rgb), 0.14); color: var(--blue); }
.ark-part-icon svg { width: 21px; height: 21px; }
.ark-part-text { display: grid; min-width: 0; max-width: 100%; }
/* narrow phones: icon above the label, so long names ("Motherboard") fit the tile */
@media (max-width: 420px) {
  .ark-part { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ark-part-icon { width: 30px; height: 30px; }
  .ark-part-text { width: 100%; }
  .ark-row.ark-bot > .ark-avatar { display: none; }
}
.ark-part-text strong { font-size: 0.88rem; font-weight: 600; }
.ark-part-text span { color: var(--ink2); font-size: 0.72rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ark-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ark-chips:empty { display: none; }
.ark-more { display: contents; }
.ark-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.08); color: var(--ink); font: inherit; font-size: 0.82rem; line-height: 1.3; text-align: left; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.ark-chip:hover { background: rgba(var(--accent-rgb), 0.18); border-color: rgba(var(--accent-rgb), 0.6); }
.ark-chip-more, .ark-chip-back { border-color: var(--glass-edge); background: var(--island); color: var(--ink2); }
.ark-links { display: grid; gap: 6px; margin-top: 10px; }
.ark-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); color: var(--blue); font-size: 0.85rem; font-weight: 600; }
.ark-link:hover { text-decoration: none; border-color: rgba(var(--accent-rgb), 0.5); }
.ark-link-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.ark-link-icon svg { width: 20px; height: 20px; }
.ark-chip:focus-visible, .ark-part:focus-visible, .ark-link:focus-visible, .ark-icon-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.ark-form { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.ark-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.05); color: var(--ink); font: inherit; font-size: 16px; }
.ark-form input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.ark-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--brand-grad); cursor: pointer; }
.ark-send svg { width: 20px; height: 20px; }
.ark-note { margin: 0; padding: 4px 16px max(10px, env(safe-area-inset-bottom)); color: var(--soft); font-size: 0.7rem; text-align: center; }

/* Troubleshooter result: hand the question to Ark */
.ts-ark { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; }
.ts-ark .ark-avatar { width: 22px; height: 22px; }
.ts-ark .ark-avatar svg { width: 12px; height: 12px; }

/* ---------- small phones (≤380px): product cards give the text more room, buttons never spill ---------- */
@media (max-width: 380px) {
  .prod, .bk-item, .feat-card { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .prod-thumb, .feat-thumb { width: 60px; height: 60px; border-radius: 12px; }
  .prod-actions, .feat-actions { min-width: 0; }
  .prod-actions .btn, .feat-actions .btn { padding: 8px 10px; font-size: 0.8rem; gap: 4px; }
}

/* Troubleshooter: "Wala sa listahan?" type-your-question tile (sends to Ark) */
.ts-ask { flex-direction: column; align-items: stretch; gap: 10px; cursor: default; border-style: dashed; border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.05); }
.ts-ask:hover { background: rgba(var(--accent-rgb), 0.08); }
.ts-ask:active { transform: none; }
.ts-ask .ts-symptom-text { cursor: text; }
.ts-ask-row { display: flex; gap: 8px; }
.ts-ask-row input { flex: 1 1 0; width: 0; min-width: 0; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.05); color: var(--ink); font: inherit; font-size: 16px; }
.ts-ask-row input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.ts-ask-send { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--brand-grad); color: #fff; cursor: pointer; }
.ts-ask-send svg { width: 14px; height: 14px; margin: 0 !important; color: #fff !important; }
.ts-option-other { border-style: dashed; color: var(--ink2); }
.ts-option-other span { font-weight: 500; }

/* Parts dropdown: Ready Builds under a divider */
.nav-menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }
/* only the outer Parts pill glows: the link inside it and the menu item stay flat (no pill inside a pill) */
.nav-links .nav-drop > a[aria-current='page'], .nav-links .nav-drop > a[aria-current='page']:hover { background: none; box-shadow: none; }
.nav-links .nav-menu a[aria-current='page'] { background: rgba(var(--accent-rgb), 0.12); box-shadow: none; color: var(--blue); font-weight: 600; }

/* Ark nudge bubble above the Ark button */
.ark-pop {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 56px); z-index: 41;
  display: flex; align-items: flex-start; gap: 2px; max-width: min(300px, calc(100vw - 32px));
  padding: 4px 4px 4px 4px; border-radius: 18px 18px 18px 6px; border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(20, 22, 28, 0.92); box-shadow: var(--shadow), 0 10px 30px -10px rgba(var(--blue-deep), 0.6);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: 20px 100%; transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ark-pop.is-in { opacity: 1; transform: none; }
.ark-pop::after { content: ''; position: absolute; left: 22px; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: 1px solid rgba(var(--accent-rgb), 0.4); border-bottom: 1px solid rgba(var(--accent-rgb), 0.4); transform: rotate(45deg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ark-pop-body { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border: 0; background: none; color: var(--ink-mid); font: inherit; font-size: 0.88rem; line-height: 1.35; text-align: left; cursor: pointer; }
.ark-pop-body strong { color: #fff; font-weight: 600; }
.ark-pop-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--soft); font: inherit; font-size: 0.8rem; cursor: pointer; }
.ark-pop-x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.ark-pop-body:focus-visible, .ark-pop-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
@media (max-width: 999px) { .ark-pop { bottom: calc(var(--tabbar-h) + 68px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .ark-pop { transition: none; } }
.ark-open .ark-pop, .viewer-full .ark-pop { display: none; }

/* Ark: "Hindi ito ang hinahanap ko" (saves the question for the weekly review) */
.ark-miss { display: inline-block; margin-top: 10px; padding: 2px 0; border: 0; background: none; color: var(--soft); font: inherit; font-size: 0.76rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ark-miss:hover { color: var(--ink2); }
.ark-miss:disabled { text-decoration: none; cursor: default; color: var(--ok); }
.ark-link-pm { color: #fff; background: rgba(var(--accent-rgb), 0.14); border-color: rgba(var(--accent-rgb), 0.45); }

/* home: keep a word like "mag-checkout" whole; quiet third path to the Troubleshooter under the two hero buttons */
.nw { white-space: nowrap; }
.hero-alt { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 0.88rem; color: var(--ink2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: background 0.2s ease, color 0.2s ease; }
.hero-alt svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero-alt b { font-weight: 600; color: var(--ink); }
.hero-alt-go { font-size: 1.1rem; line-height: 1; transition: transform 0.2s ease; }
.hero-alt:hover { text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.hero-alt:hover .hero-alt-go { transform: translateX(3px); }
/* phones: Ark waits until the scroll cue is gone, like the floating Basket (they share the bottom of the hero) */
@media (max-width: 999px) {
  .ark-fab { transition: opacity 0.25s ease, transform 0.2s ease, border-color 0.2s ease; }
  .in-hero .ark-fab { opacity: 0; pointer-events: none; }
}

/* desktop: the side rail is the parts list, so the chip row under the PC goes */
@media (hover: hover) and (pointer: fine) and (min-width: 860px) { .stage-chips { display: none; } }
/* desktop: leave room on the right for the parts rail (it is fixed to the screen edge), so it never covers the PC */
@media (hover: hover) and (pointer: fine) and (min-width: 860px) and (min-aspect-ratio: 11/10) {
  .hero-pin .stage-wrap:not(.is-full) { box-sizing: border-box; padding-right: 172px; }
}

/* small "+" discs (half the old size): thinner cross, and the invisible tap target stays 36px */
.hs-dot::before, .hs-dot::after { height: 1.5px; margin-top: -0.75px; width: calc(var(--hs) * 0.46); margin-left: calc(var(--hs) * -0.23); }
.hotspot::before { left: calc(var(--hs) / 2 - 18px); top: calc(var(--hs) / 2 - 18px); width: 36px; height: 36px; }

/* Wide screens: everything fixed to the screen edges lines up with the page's 1080px content column instead
   (the rail beside the 3D PC, Basket, back-to-top, Ark), so the hero reads as one grid. --edge = the column's
   left/right content edge measured from the screen edge (never less than the old 16px). */
:root { --edge: max(16px, calc((100vw - 1080px) / 2 + var(--gutter) - 8px)); } /* js/app.js sets the exact value */
@media (hover: hover) and (pointer: fine) and (min-width: 860px) {
  .stage-rail { right: var(--edge); }
  .basket-dock, .to-top { right: var(--edge); }
  .ark-fab, .ark-pop { left: var(--edge); }
}

/* big screens, Home: a wider column (nav, page and footer together, so the grid still lines up),
   a bigger headline and a bigger 3D PC */
@media (min-width: 1500px) and (min-height: 860px) {
  html[data-page='home'] :is(.nav-inner, main, .foot) { width: min(100%, 1280px); }
  html[data-page='home'] .hero-pin { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  html[data-page='home'] .hero-pin h1 { font-size: clamp(3.4rem, 3.7vw, 4.2rem); }
  html[data-page='home'] .hero-pin .lede { font-size: 1.15rem; max-width: 40ch; }
  html[data-page='home'] .stage-slot { max-height: min(84svh, 940px); }
}
@media (min-width: 1800px) and (min-height: 980px) {
  html[data-page='home'] :is(.nav-inner, main, .foot) { width: min(100%, 1440px); }
  html[data-page='home'] .hero-pin h1 { font-size: clamp(3.6rem, 3.7vw, 4.6rem); }
  html[data-page='home'] .hero-pin .lede { font-size: 1.2rem; }
  html[data-page='home'] .stage-slot { max-height: min(86svh, 1040px); }
}

/* mid-size laptops (1200–1499px): give the PC a bit more of the row too */
@media (hover: hover) and (pointer: fine) and (min-width: 1200px) and (max-width: 1499px) and (min-aspect-ratio: 11/10) {
  html[data-page='home'] .hero-pin { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
/* zoomed in (scroll zoom or full screen): the PC fills the screen, so the rail goes back to the screen edge,
   mirroring the hover card on the left */
@media (hover: hover) and (pointer: fine) and (min-width: 860px) {
  .stage-rail { transition: opacity 0.22s ease, transform 0.22s ease, right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html:has(#hero.is-zooming) .stage-rail, html:has(.stage-wrap.is-full) .stage-rail { right: max(20px, env(safe-area-inset-right)); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 860px) {
  .basket-dock, .to-top { transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, transform 0.25s ease; }
  .ark-fab { transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.15s ease, border-color 0.2s ease; }
  html:has(#hero.is-zooming) :is(.basket-dock, .to-top), html:has(.stage-wrap.is-full) :is(.basket-dock, .to-top) { right: max(16px, env(safe-area-inset-right)); }
  html:has(#hero.is-zooming) :is(.ark-fab, .ark-pop), html:has(.stage-wrap.is-full) :is(.ark-fab, .ark-pop) { left: max(16px, env(safe-area-inset-left)); }
}

/* side-scrolling card rows: frosted-glass arrows on the edges (only while there is more to see that way),
   page dots under the Home cards */
.scroll-x { position: relative; }
.scroll-arrow {
  position: absolute; top: 50%; z-index: 4; width: 42px; height: 42px; margin-top: -21px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(28, 29, 34, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.scroll-arrow svg { width: 18px; height: 18px; }
.scroll-arrow:hover { background: rgba(var(--accent-rgb), 0.35); }
.scroll-arrow:active { transform: scale(0.94); }
.scroll-arrow[hidden] { display: grid; opacity: 0; pointer-events: none; }
.scroll-prev { left: 8px; }
.scroll-prev svg { transform: scaleX(-1); }
.scroll-next { right: 8px; }
.scroll-dots { display: flex; justify-content: center; gap: 6px; margin-top: -14px; }
.scroll-dots[hidden] { display: none; }
.scroll-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); transition: width 0.25s ease, background 0.25s ease; }
.scroll-dots i.is-on { width: 18px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .scroll-arrow, .scroll-dots i { transition: none; } }

/* Mag-Build: the budget amount is typeable; a small pencil says so on every screen (the tooltip needs a mouse) */
.budget-edit { display: inline-flex; align-items: center; gap: 6px; }
.budget-pen { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--accent); background: rgba(255, 255, 255, 0.06); cursor: text; flex: none; }
.budget-pen svg { width: 15px; height: 15px; }
.budget-edit:hover .budget-pen, .budget-out:focus + .budget-pen { background: rgba(var(--accent-rgb), 0.18); }

.scroll-arrow:disabled { opacity: 0.35; cursor: default; background: rgba(28, 29, 34, 0.42); }
.scroll-arrow:disabled:active { transform: none; }

/* budget slider: the part left of the thumb fills in ReSpecz blue (same as the Total bar), so it reads as draggable */
#budget::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))) 0 0 / var(--fill, 0%) 100% no-repeat, var(--island3); }
#budget::-moz-range-track { height: 6px; background: var(--island3); }
#budget::-moz-range-progress { height: 6px; border-radius: 4px; background: linear-gradient(90deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); }
#budget::-webkit-slider-thumb { margin-top: -10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(var(--accent-rgb), 0.25); }

/* ---------- Troubleshooter flowchart: areas on top, Oo/Hindi cards down the ladder ---------- */
.tsf-title { margin: 0; font-size: clamp(1.15rem, 4.4vw, 1.4rem); text-align: center; letter-spacing: -0.015em; }
.tsf-title:focus { outline: none; }
.tsf-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .tsf-areas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tsf-areas { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.tsf-area {
  display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 12px 6px 10px;
  border-radius: 16px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); color: var(--ink);
  font: inherit; text-align: center; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.tsf-area:hover { background: rgba(var(--accent-rgb), 0.1); border-color: rgba(var(--accent-rgb), 0.45); }
.tsf-area:active { transform: scale(0.97); }
.tsf-area:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tsf-area-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--accent-rgb), 0.14); color: var(--blue); }
.tsf-area-icon svg { width: 24px; height: 24px; }
.tsf-area strong { font-size: 0.86rem; font-weight: 600; }
.tsf-area > span:last-child { font-size: 0.7rem; color: var(--ink2); line-height: 1.25; }
.tsf-areas.has-pick .tsf-area:not(.is-on) { opacity: 0.5; }
.tsf-areas.has-pick .tsf-area:not(.is-on):hover { opacity: 1; }
.tsf-area.is-on { border-color: rgba(var(--accent-rgb), 0.8); background: rgba(var(--accent-rgb), 0.16); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 8px 24px -10px rgba(var(--blue-deep), 0.8); }
.tsf-area.is-on .tsf-area-icon { background: var(--brand-grad); color: #fff; }

.tsf-ask { display: grid; gap: 8px; justify-items: center; padding-top: 4px; }
.tsf-ask label { font-size: 0.88rem; color: var(--ink2); }
.tsf-ask .ts-ask-row { width: min(100%, 460px); }

/* the ladder: a vertical line with an arrowhead between cards, the answer written on the line */
.tsf-ladder { display: grid; justify-items: center; }
.tsf-arrow { position: relative; width: 2px; height: 46px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.9)); }
.tsf-arrow::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 10px; height: 10px; border-right: 2px solid rgba(var(--accent-rgb), 0.9); border-bottom: 2px solid rgba(var(--accent-rgb), 0.9); transform: translateX(-50%) rotate(45deg); }
.tsf-arrow-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #fff; background: rgb(var(--blue-deep)); box-shadow: 0 0 0 3px rgba(14, 15, 19, 0.9); white-space: nowrap; }
.tsf-node { width: min(100%, 520px); display: grid; gap: 10px; justify-items: center; text-align: center; padding: 16px; border-radius: 20px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); }
.tsf-node.is-done { padding: 10px 14px; gap: 8px; }
.tsf-node.is-current { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.07); box-shadow: 0 10px 30px -14px rgba(var(--blue-deep), 0.9); }
.tsf-node.is-result { text-align: left; justify-items: stretch; border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--accent-rgb), 0.08); box-shadow: 0 12px 36px -14px rgba(var(--blue-deep), 1); }
.tsf-step { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.tsf-q { margin: 0; font-size: 0.92rem; color: var(--ink-mid); line-height: 1.35; }
.tsf-q-big { font-size: clamp(1.1rem, 4.4vw, 1.3rem); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tsf-q:focus { outline: none; }
.tsf-help { margin: -4px 0 0; font-size: 0.8rem; color: var(--ink2); }
.tsf-yn { display: flex; justify-content: center; gap: 8px; }
.tsf-btn { min-width: 74px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.05); color: var(--ink2); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.tsf-btn.is-picked { color: #fff; border-color: transparent; background: rgb(var(--blue-deep)); }
.tsf-btn.is-off:hover { color: var(--ink); border-color: rgba(var(--accent-rgb), 0.5); }
.tsf-yn-big .tsf-btn { min-width: 0; flex: 1 1 0; max-width: 180px; padding: 13px 18px; font-size: 1.02rem; color: var(--ink); }
.tsf-btn.is-yes { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgb(var(--blue-deep)), rgb(var(--blue-bright))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px -8px rgba(var(--blue-deep), 0.9); }
.tsf-btn.is-no:hover { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.1); }
.tsf-btn:active { transform: scale(0.97); }
.tsf-btn:focus-visible, .tsf-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tsf-link { border: 0; background: none; color: var(--ink2); font: inherit; font-size: 0.78rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tsf-link:hover { color: var(--ink); }
.tsf-node.is-result .ts-title { font-size: clamp(1.1rem, 4.4vw, 1.35rem); }
.tsf-node.is-result .ts-answers { padding-top: 10px; }
.tsf-node.is-result .ts-why { margin: 10px 0; font-size: 0.88rem; }
.ts-steps-full li { font-size: 0.88rem; }
.tsf-node.is-result .ts-nav { padding-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tsf-node.is-current, .tsf-node.is-result { animation: tsf-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes tsf-in { from { opacity: 0; transform: translateY(-8px); } }
}
/* the flowchart needs the full width: safety becomes a slim strip under it */
.ts-layout { grid-template-columns: minmax(0, 1fr) !important; max-width: 1060px !important; }
.ts-safety { position: static !important; padding: 14px 18px; }
.ts-safety h3 { margin-bottom: 8px; }
@media (min-width: 760px) {
  .ts-safety { display: flex; align-items: center; gap: 18px; }
  .ts-safety h3 { margin: 0; flex: none; }
  .ts-safety ul { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-left: 16px; }
}
/* troubleshooter area tiles: a short last row sits centred (flex instead of grid), same tile width per screen size */
.tsf-areas { display: flex; flex-wrap: wrap; justify-content: center; --cols: 3; }
.tsf-area { flex: 0 0 calc((100% - (var(--cols) - 1) * 8px) / var(--cols)); box-sizing: border-box; }
@media (min-width: 640px) { .tsf-areas { --cols: 5; } }
@media (min-width: 1000px) { .tsf-areas { --cols: 9; } }
/* Oo / Hindi: the row gets a real width (it was shrink-wrapped to 0, so the buttons squeezed and "Hindi" spilled
   past its pill); text centred inside each button */
.tsf-yn-big { width: min(100%, 380px); }
.tsf-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }

/* troubleshooter area tiles: a 3D render of each part (assets/ts/<id>.webp) instead of a line icon.
   Hover: the tile lifts, a blue glow comes up behind the part and the part floats and tilts a little. */
.tsf-area { position: relative; overflow: hidden; padding: 10px 6px 12px; transition: background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease; }
.tsf-area-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 0.82; margin-bottom: 2px; }
.tsf-area-art::before { content: ''; position: absolute; inset: 12% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.38), transparent); opacity: 0.35; transform: scale(0.85); transition: opacity 0.3s ease, transform 0.35s ease; }
.tsf-area-art img { position: relative; width: min(86%, 96px); height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55)); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .tsf-area:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(var(--blue-deep), 0.9); }
  .tsf-area:hover .tsf-area-art::before { opacity: 1; transform: scale(1.05); }
  .tsf-area:hover .tsf-area-art img { transform: translateY(-6%) scale(1.1) rotate(-4deg); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6)); }
}
.tsf-area.is-on .tsf-area-art::before { opacity: 1; transform: scale(1.05); }
.tsf-area.is-on .tsf-area-art img { transform: scale(1.06); }
.tsf-area:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .tsf-area, .tsf-area-art img, .tsf-area-art::before { transition: none; } .tsf-area:hover { transform: none; } .tsf-area:hover .tsf-area-art img { transform: none; } }
/* phones: smaller part renders so the 3×3 grid stays short and the questions come into view sooner */
@media (max-width: 639px) { .tsf-area-art { aspect-ratio: 1 / 0.62; } .tsf-area-art img { width: min(72%, 76px); } .tsf-area > span:last-child { display: none; } }
/* tile text: the label column was as wide as its longest word, so it spilled past the tile's right padding and
   everything sat a few px right of centre; the column now fits the tile and long words wrap */
.tsf-area { grid-template-columns: minmax(0, 1fr); }
.tsf-area > * { min-width: 0; max-width: 100%; justify-self: center; text-align: center; overflow-wrap: anywhere; hyphens: auto; }

