/* Gaming & Office PC page — 2026-10-11 fixes and live-inventory strip.
   Loaded after styles.css by gaming-office-pc.html only. */

/* Step number badge no longer sits on top of the step title. */
.pc-step-card {
  padding-top: 5.6rem;
}

/* Phone: the showcase banner's text block inherited flex-basis 280px as
   a HEIGHT once the banner switched to a column, leaving ~170px of empty
   space above the button. */
@media (max-width: 720px) {
  .pc-gallery-cta-banner-text {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Sticky CTA: hidden while the hero's own button is on screen, so the
   page does not open with two identical buttons stacked. */
.pc-sticky-cta {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pc-sticky-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.pc-sticky-cta.is-visible:active {
  transform: translateY(1px);
}

/* Live inventory strip ------------------------------------------------ */
.pc-live-strip {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(207, 254, 37, 0.22);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(207, 254, 37, 0.08), transparent 55%),
    linear-gradient(160deg, rgba(16, 20, 26, 0.94), rgba(6, 8, 12, 0.98));
  display: grid;
  gap: 0.8rem;
}
.pc-live-strip[hidden] {
  display: none;
}
.pc-live-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #e6ecea;
}
.pc-live-head strong {
  font-size: 1.25rem;
  color: #cffe25;
  font-variant-numeric: tabular-nums;
}
.pc-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cffe25;
  box-shadow: 0 0 0 0 rgba(207, 254, 37, 0.55);
  animation: pcLivePulse 2.2s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes pcLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(207, 254, 37, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(207, 254, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 254, 37, 0); }
}
.pc-live-updated {
  color: rgba(220, 228, 234, 0.72);
  font-size: 0.85rem;
}
.pc-live-updated.is-stale {
  color: #fbbf24;
}
.pc-live-cats {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.pc-live-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #dfe6e3;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.pc-live-cat b {
  color: #cffe25;
  font-variant-numeric: tabular-nums;
}
.pc-live-cat:hover {
  border-color: rgba(207, 254, 37, 0.45);
  background: rgba(207, 254, 37, 0.08);
  transform: translateY(-1px);
}
.pc-live-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .pc-live-strip {
    margin-top: 0.9rem;
    padding: 0.9rem 0.95rem;
  }
  .pc-live-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pc-live-cats::-webkit-scrollbar {
    display: none;
  }
  .pc-live-cat {
    flex: 0 0 auto;
  }
  .pc-live-actions .button-03 {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-live-dot {
    animation: none;
  }
  .pc-sticky-cta {
    transition: none;
  }
}

/* Hero visible at first paint (2026-10-18): the shared .reveal choreography
   started the hero at opacity 0, so the LCP (the h1) was only recorded once
   site.js added .visible (9.5 s on a throttled phone). Transform-only now. */
body[data-inner-page="gaming-office-pc"] .inner-hero.gaming-hero.reveal {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 14px, 0);
  transition-property: transform;
}
body[data-inner-page="gaming-office-pc"] .inner-hero.gaming-hero.reveal.visible {
  transform: none;
}

/* ---------- Store: complete ready-to-assemble PCs (2026-10-30) ----------
   Product cards for PcPreBuild rows painted by gaming-pc.js, plus the static
   "Build your own PC" card. Square chassis thumbnail, name, one final price. */
.pc-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
  align-items: stretch;
}
.pc-store-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.pc-store-card:hover,
.pc-store-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(207, 254, 37, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  outline: none;
}
.pc-store-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(120% 90% at 50% 20%, #1c2a44, #0b0e14 75%);
  overflow: hidden;
}
.pc-store-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}
.pc-store-card:hover .pc-store-thumb img { transform: scale(1.04); }
.pc-store-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.pc-store-tier {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #cffe25;
  color: #0b0e14;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pc-store-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: 0.85rem 0.95rem 1rem;
}
.pc-store-body h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}
.pc-store-perf {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(207, 254, 37, 0.95);
}
.pc-store-foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pc-store-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.pc-store-price small {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.pc-store-cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cffe25;
  white-space: nowrap;
}
.pc-store-card-build {
  padding: 1.5rem 1.35rem 1.4rem;
  gap: 0.5rem;
  border-color: rgba(207, 254, 37, 0.3);
  background: linear-gradient(180deg, rgba(207, 254, 37, 0.08), rgba(6, 8, 12, 0.98));
}
.pc-store-card-build h3 { margin: 0; font-size: 1.15rem; }
.pc-store-card-build p { margin: 0; }
.pc-store-card-build .pc-tier-cta { margin-top: auto; align-self: flex-start; }
.pc-store-build-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(207, 254, 37, 0.12);
  color: #cffe25;
}
.pc-store-build-mark svg { width: 24px; height: 24px; }
.pc-store-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 575px) {
  .pc-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .pc-store-body { padding: 0.6rem 0.65rem 0.75rem; }
  .pc-store-price { font-size: 0.98rem; }
  .pc-store-card-build { grid-column: 1 / -1; }
}

/* ---------- Top 4 most-chosen PCs (under the live-inventory strip) ---------- */
.pc-top-section{padding-top:1.5rem}
.pc-top-head{margin-bottom:1.25rem}
.pc-top-head .section-lead a{color:var(--accent,#c8ff2e);text-decoration:underline;text-underline-offset:3px}
.pc-top-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.pc-top-card{position:relative;display:flex;flex-direction:column;padding:0;overflow:hidden;color:inherit;text-decoration:none;transition:transform .25s ease,border-color .25s ease}
.pc-top-card:hover,.pc-top-card:focus-visible{transform:translateY(-4px);border-color:rgba(200,255,46,.45)}
.pc-top-rank{position:absolute;left:14px;top:12px;z-index:2;padding:6px 12px;border-radius:999px;background:var(--accent,#c8ff2e);color:#0b0d10;font:800 .8rem/1 var(--font-head,'Sora',sans-serif);letter-spacing:.04em}
.pc-top-thumb{aspect-ratio:1/1;background:radial-gradient(circle at 50% 35%,rgba(200,255,46,.12),transparent 60%),#0d1013}
.pc-top-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pc-top-body{display:flex;flex-direction:column;gap:.45rem;padding:1rem 1.1rem 1.2rem}
.pc-top-badge{font:700 .68rem/1 var(--font-mono,'JetBrains Mono',monospace);letter-spacing:.14em;text-transform:uppercase;color:var(--accent,#c8ff2e)}
.pc-top-card h3{margin:0;font-size:1.05rem;line-height:1.25}
@media (max-width:1024px){.pc-top-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.pc-top-grid{grid-template-columns:1fr}}
