:root {
  color-scheme: dark;
  --office-bg: #050506;
  --office-panel: #101114;
  --office-panel-2: #17191f;
  --office-line: rgba(255, 255, 255, 0.14);
  --office-gold: #d946ef;
  --office-red: #ff5d4d;
  --office-blue: #7dd3fc;
  --office-text: #f7f4ef;
  --office-muted: #aaa5a0;
  --office-max: 1120px;
}

* {
  box-sizing: border-box;
}

.commerce-register {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: clamp(0.35rem, 0.8vw, 0.7rem);
  padding: clamp(0.35rem, 0.9vw, 0.7rem);
  border-bottom: 1px solid rgba(217, 70, 239, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 18%),
    radial-gradient(circle at 0 0, rgba(217, 70, 239, 0.2), transparent 18rem),
    rgba(3, 3, 4, 0.9);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.commerce-register__copy {
  display: grid;
  align-content: center;
  gap: 0.18rem;
  min-height: 74px;
  padding: 0.55rem clamp(0.65rem, 1.8vw, 1.15rem);
  border: 1px solid rgba(216, 180, 254, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(22, 20, 28, 0.94), rgba(3, 3, 5, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 18px rgba(0, 0, 0, 0.32);
}

.commerce-register__copy span {
  color: var(--office-gold);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.commerce-register__copy h2 {
  margin: 0;
  color: var(--office-text);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 0.96;
}

.commerce-register__copy p,
.commerce-register__copy strong {
  margin: 0;
  color: rgba(247, 244, 239, 0.72);
  font-size: clamp(0.66rem, 1.3vw, 0.82rem);
  line-height: 1.22;
}

.commerce-register__copy strong {
  color: rgba(217, 70, 239, 0.92);
}

.commerce-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 0.8vw, 0.75rem);
  align-items: stretch;
  background: transparent;
  perspective: 900px;
}

.commerce-dock a {
  --plate-cut: polygon(11% 0, 86% 0, 100% 25%, 100% 76%, 88% 100%, 14% 100%, 0 76%, 0 24%);
  --plate-glow-x: 14%;
  --plate-glow-y: 76%;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.16rem;
  min-height: 72px;
  align-content: center;
  padding: 0.86rem clamp(0.78rem, 1.7vw, 1.18rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: #050505;
  background:
    radial-gradient(circle at var(--plate-glow-x) var(--plate-glow-y), rgba(217, 70, 239, 0.78), transparent 0.55rem, rgba(217, 70, 239, 0.26) 0.62rem, transparent 1.45rem),
    linear-gradient(90deg, transparent 0 9%, rgba(147, 51, 234, 0.76) 9.5% 12%, transparent 12.5% 86%, rgba(147, 51, 234, 0.58) 86.5% 88%, transparent 88.5%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.74), rgba(126, 132, 142, 0.55) 18%, rgba(238, 240, 242, 0.68) 34%, rgba(74, 78, 86, 0.72) 54%, rgba(180, 184, 192, 0.82) 72%, rgba(42, 44, 50, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 1px, rgba(0, 0, 0, 0.16) 1px 3px),
    url("assets/images/ui/kot-metal-ui-reference.png") center / 820px auto;
  background-blend-mode: screen, screen, overlay, normal, soft-light;
  clip-path: var(--plate-cut);
  box-shadow:
    0 15px 0 rgba(0, 0, 0, 0.72),
    0 24px 40px rgba(0, 0, 0, 0.58),
    0 0 20px rgba(147, 51, 234, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.78),
    inset 0 -11px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transform: translateY(0) rotateX(0deg);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  animation: metalButtonFloat 4600ms ease-in-out infinite;
}

.commerce-dock a:nth-child(1) {
  --plate-cut: polygon(8% 0, 74% 0, 100% 31%, 93% 100%, 12% 100%, 0 74%, 0 18%);
  --plate-glow-x: 12%;
  --plate-glow-y: 68%;
}

.commerce-dock a:nth-child(2) {
  --plate-cut: polygon(0 22%, 14% 0, 92% 0, 100% 42%, 82% 100%, 8% 100%, 0 78%);
  --plate-glow-x: 86%;
  --plate-glow-y: 24%;
  animation-delay: -900ms;
}

.commerce-dock a:nth-child(3) {
  --plate-cut: polygon(14% 0, 100% 0, 100% 72%, 84% 100%, 0 100%, 0 32%);
  --plate-glow-x: 18%;
  --plate-glow-y: 28%;
  animation-delay: -1800ms;
}

.commerce-dock a:nth-child(4) {
  --plate-cut: polygon(0 0, 86% 0, 100% 22%, 100% 100%, 16% 100%, 0 72%);
  --plate-glow-x: 90%;
  --plate-glow-y: 72%;
  animation-delay: -2700ms;
}

.commerce-dock a::before,
.commerce-dock a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.commerce-dock a::before {
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(255, 255, 255, 0.72) 26%, transparent 34% 100%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(0, 0, 0, 0.38) 7px 9px, transparent 9px 14px),
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.72), transparent 28%);
  opacity: 0.34;
  transform: translateX(-42%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.commerce-dock a::after {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.52),
    inset 0 0 0 5px rgba(255, 255, 255, 0.08),
    inset 0 0 18px rgba(0, 0, 0, 0.78),
    inset 12px 0 18px rgba(147, 51, 234, 0.22),
    inset -12px 0 18px rgba(147, 51, 234, 0.15);
  clip-path: polygon(13% 16%, 88% 16%, 93% 36%, 88% 84%, 12% 84%, 7% 62%, 7% 32%);
}

.commerce-dock span {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: fit-content;
  padding: 0.08rem 0.32rem;
  color: #030303;
  font-size: clamp(0.62rem, 0.92vw, 0.75rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26),
    0 -1px 0 rgba(0, 0, 0, 0.72),
    0 2px 3px rgba(0, 0, 0, 0.5);
}

.commerce-dock strong {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  color: #050505;
  font-size: clamp(0.68rem, 1.35vw, 0.88rem);
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 -1px 0 rgba(0, 0, 0, 0.86),
    0 2px 5px rgba(0, 0, 0, 0.62);
}

.commerce-dock a:hover,
.commerce-dock a:focus-visible {
  filter: brightness(1.14) contrast(1.1);
  outline: 1px solid rgba(240, 171, 252, 0.82);
  outline-offset: 4px;
  transform: translateY(-8px) rotateX(7deg) scale(1.03);
  box-shadow:
    0 19px 0 rgba(0, 0, 0, 0.76),
    0 34px 58px rgba(0, 0, 0, 0.7),
    0 0 36px rgba(217, 70, 239, 0.48),
    inset 0 2px 0 rgba(255, 255, 255, 0.84),
    inset 0 -12px 20px rgba(0, 0, 0, 0.54),
    inset 0 0 0 2px rgba(0, 0, 0, 0.22);
}

.commerce-dock a:hover::before,
.commerce-dock a:focus-visible::before {
  opacity: 0.5;
  transform: translateX(38%);
}

@keyframes metalButtonFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-3px) rotateX(2deg);
  }
}

.office-page {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--office-text);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(5, 5, 6, 0.92)),
    url("assets/images/lore/kot-cosmic-park-background.png") center / cover fixed,
    radial-gradient(circle at 18% 0, rgba(125, 211, 252, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(217, 70, 239, 0.14), transparent 24rem),
    linear-gradient(180deg, #050506, #0b0b0d 46%, #050506);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.office-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(168, 85, 247, 0.24), transparent 30rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.82));
}

.lore-library {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(5, 5, 6, 0.92)),
    url("assets/images/lore/jackpot-symphony-cover.png") center top / cover fixed,
    linear-gradient(180deg, #050506, #0b0b0d 46%, #050506);
}

.lore-repair {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(5, 5, 6, 0.94)),
    url("assets/filmstrip/road-content-hologram.png") center / cover fixed,
    linear-gradient(180deg, #050506, #0b0b0d 46%, #050506);
}

.lore-merch {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(5, 5, 6, 0.93)),
    url("assets/images/kot-art/time-is-the-win-store.jpg") center / cover fixed,
    linear-gradient(180deg, #050506, #0b0b0d 46%, #050506);
}

body.office-page:not(.lore-library):not(.lore-repair):not(.lore-merch) {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(5, 5, 6, 0.94)),
    url("assets/images/kot-art/store-window-poster.jpg") center / cover fixed,
    linear-gradient(180deg, #050506, #0b0b0d 46%, #050506);
}

.office-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--office-line);
  background: rgba(5, 5, 6, 0.88);
  backdrop-filter: blur(12px);
}

.office-brand {
  display: grid;
  color: var(--office-text);
  text-decoration: none;
}

.office-brand span {
  color: var(--office-gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.office-brand strong {
  font-size: 1rem;
}

.office-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.8rem;
}

.office-nav a {
  color: rgba(247, 244, 239, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.office-nav a:hover,
.office-nav a:focus-visible {
  color: var(--office-gold);
  outline: none;
}

.office-main {
  width: min(var(--office-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.office-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 62px);
}

.office-kicker {
  display: inline-flex;
  margin: 0 0 0.8rem;
  color: var(--office-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.office-hero h1,
.office-section h2 {
  margin: 0;
  color: var(--office-text);
  font-size: clamp(2.4rem, 7vw, 5.9rem);
  line-height: 0.92;
}

.office-hero p,
.office-section p,
.office-list li {
  color: var(--office-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.62;
}

.office-hero p {
  max-width: 46rem;
}

.office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.office-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(217, 70, 239, 0.82);
  border-radius: 6px;
  color: #090806;
  background: var(--office-gold);
  font-weight: 950;
  text-decoration: none;
}

.office-button.secondary {
  color: var(--office-text);
  background: transparent;
}

.office-button:hover,
.office-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 3px;
}

.office-product,
.office-panel {
  border: 1px solid var(--office-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--office-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.office-product {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.office-product h2 {
  margin: 0 0 0.55rem;
  color: var(--office-text);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
}

.office-price {
  display: inline-flex;
  margin: 0.2rem 0 0.8rem;
  color: var(--office-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.office-panel {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.office-panel h3,
.guide-card h3,
.offer-card h3 {
  margin: 0 0 0.6rem;
  color: var(--office-text);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.12;
}

.offer-card .office-button {
  width: fit-content;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.office-aisles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.35rem);
  margin-top: 1.5rem;
}

.office-aisle {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--office-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(217, 70, 239, 0.14), transparent 18rem),
    var(--office-panel);
}

.office-aisle > h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
}

.guide-card,
.offer-card {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.guide-card.featured,
.offer-card.featured {
  border-color: rgba(217, 70, 239, 0.62);
  box-shadow: 0 0 34px rgba(217, 70, 239, 0.12);
}

.guide-card p,
.offer-card p {
  margin: 0;
}

.office-tagline {
  display: inline-flex;
  margin-top: 1rem;
  color: rgba(240, 196, 95, 0.92);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 950;
  line-height: 1.25;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding: 0;
  list-style: none;
}

.problem-grid li {
  min-height: 44px;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--office-text);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 850;
}

.office-section {
  padding: clamp(2.5rem, 7vw, 5rem) 0 0;
}

.office-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.office-safety {
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid rgba(255, 93, 77, 0.38);
  border-radius: 8px;
  color: rgba(247, 244, 239, 0.82);
  background:
    linear-gradient(90deg, rgba(255, 93, 77, 0.12), transparent),
    rgba(255, 255, 255, 0.04);
  line-height: 1.62;
}

.office-checkout-note {
  margin-top: 0.75rem;
  color: rgba(247, 244, 239, 0.56);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lore-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0 0 clamp(2.5rem, 7vw, 5rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(240, 196, 95, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 7, 14, 0.86), rgba(34, 12, 48, 0.66)),
    rgba(0, 0, 0, 0.5);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.lore-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(217, 70, 239, 0.2), transparent 17rem),
    radial-gradient(circle at 82% 22%, rgba(168, 85, 247, 0.22), transparent 20rem);
}

.lore-band > * {
  position: relative;
  z-index: 1;
}

.lore-band--product {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  align-items: center;
}

.lore-band__image {
  display: grid;
  place-items: center;
}

.lore-band__image img {
  width: min(100%, 360px);
  border: 1px solid rgba(217, 70, 239, 0.36);
  border-radius: 8px;
  box-shadow: 0 18px 70px rgba(168, 85, 247, 0.38);
}

.lore-band__copy h2 {
  max-width: 780px;
  margin: 0 0 1rem;
  color: var(--office-text);
  font-size: clamp(1.8rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.lore-band__copy p {
  max-width: 68ch;
}

.office-footer {
  display: block;
  width: min(var(--office-max), calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(247, 244, 239, 0.1);
  color: rgba(247, 244, 239, 0.52);
  font-size: 0.85rem;
  line-height: 1.7;
}

@media (max-width: 840px) {
  .commerce-dock {
    grid-template-columns: 1fr;
  }

  .commerce-register {
    position: absolute;
    grid-template-columns: 1fr;
  }

  .commerce-dock a {
    min-height: 66px;
  }

  .office-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-nav {
    justify-content: flex-start;
  }

  .office-hero,
  .office-grid,
  .office-aisles,
  .problem-grid,
  .lore-band--product {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
