:root {
  --ink: #130000;
  --paper: #fffaf6;
  --red: #c40000;
  --deep-red: #760000;
  --pale-red: #fff0ed;
  --yellow: #fff0b8;
  --gold: #c99a1a;
  --blue: #9d0000;
  --green: #b61212;
  --magenta: #d10000;
  --cyan: #fff4f0;
  --orange: #8a0000;
  --line: #2a0505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(196, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(201, 154, 26, 0.1) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
  font-family: "Times New Roman", "SimSun", serif;
  cursor: crosshair;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 10% 20%, #000 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, #000 0 1px, transparent 1px),
    radial-gradient(circle at 30% 90%, #000 0 1px, transparent 1px);
  background-size: 9px 9px, 13px 13px, 17px 17px;
  mix-blend-mode: multiply;
}

.microbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 6px;
  color: #fff;
  background: var(--deep-red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 0.06em;
}

.microbar span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 2px solid var(--gold);
  background: var(--red);
  text-align: center;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(320px, 0.46fr);
  align-items: center;
  min-height: 540px;
  aspect-ratio: 1672 / 941;
  gap: clamp(10px, 2vw, 28px);
  padding: clamp(18px, 3vw, 44px) clamp(14px, 3vw, 46px);
  border-top: 6px double var(--red);
  border-bottom: 6px double var(--red);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 35%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.12) 71%, rgba(255, 255, 255, 0) 100%),
    repeating-linear-gradient(45deg, rgba(196, 0, 0, 0.08) 0 10px, transparent 10px 20px),
    url("assets/director-wang-hero-promo.png") center / cover no-repeat,
    #fff;
  text-align: left;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  min-width: 0;
  max-width: 760px;
  padding-left: clamp(4px, 1vw, 14px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  color: var(--yellow);
  background: var(--red);
  border: 3px solid var(--line);
  font-family: "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 880px;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(42px, 7.6vw, 112px);
  line-height: 0.91;
  letter-spacing: 0.01em;
  text-shadow:
    4px 4px 0 var(--yellow),
    8px 8px 0 var(--deep-red),
    -2px -2px 0 #fff;
  animation: color-shout 1.2s linear infinite;
}

.hero-subtitle {
  width: min(780px, 100%);
  margin: 14px 0 8px;
  color: var(--deep-red);
  font-family: "Times New Roman", serif;
  font-size: clamp(18px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-warning {
  display: inline-block;
  max-width: 760px;
  margin: 4px 0 0;
  padding: 8px 10px;
  color: #fff;
  background: var(--deep-red);
  border: 4px solid var(--red);
  font-family: Arial, sans-serif;
  font-size: clamp(12px, 2.4vw, 18px);
  font-weight: 900;
}

.hero-stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  font-family: Impact, "Arial Black", sans-serif;
  color: var(--red);
}

.hero-stamp-row span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 4px 9px;
  border: 4px dashed var(--red);
  background: #fff;
  font-size: clamp(13px, 1.6vw, 20px);
  line-height: 0.92;
  text-align: center;
  transform: rotate(-2deg);
}

.hero-stamp-row span:nth-child(2) {
  transform: rotate(2deg);
}

.hero-stamp-row span:nth-child(3) {
  color: var(--deep-red);
  border-style: double;
}

.seal {
  display: grid;
  place-items: center;
  width: clamp(64px, 12vw, 132px);
  aspect-ratio: 1;
  margin: auto;
  color: var(--red);
  background: #fff;
  border: 6px dashed var(--red);
  border-radius: 50%;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(15px, 2.5vw, 30px);
  line-height: 0.95;
  transform: rotate(-13deg);
  animation: seal-spin 8s steps(12, end) infinite;
}

.seal-right {
  color: var(--deep-red);
  border-color: var(--deep-red);
  transform: rotate(13deg);
  animation-direction: reverse;
}

.ticker-wrap {
  overflow: hidden;
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  background: var(--red);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 8px 0;
  color: var(--yellow);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(17px, 2.4vw, 28px);
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

.outer-frame {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 8px;
  margin: 8px;
  padding: 8px;
  border: 6px ridge var(--deep-red);
  background: rgba(255, 255, 255, 0.94);
}

.sidebar,
.content-column {
  min-width: 0;
}

.box,
.catalog-section,
.science-section,
.ads-section,
.warning-section {
  margin-bottom: 10px;
  border: 4px solid var(--line);
  background: #fff;
  box-shadow: 6px 6px 0 var(--deep-red);
}

.box {
  padding: 8px;
  font-size: 13px;
}

.box h2,
.section-header h2,
.warning-section h2 {
  margin: 0 0 8px;
  padding: 4px 6px;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--line);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.nav-box h2 {
  background: var(--magenta);
}

.sidebar-link {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 5px;
  color: var(--deep-red);
  background: #fff8f2;
  border: 2px outset var(--gold);
  text-align: left;
  text-decoration: underline;
  font-size: 13px;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--yellow);
  background: var(--red);
}

.lab-status dl {
  margin: 0;
}

.lab-status div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 4px 0;
  padding: 4px;
  border: 2px dotted var(--green);
  background: var(--pale-red);
}

.lab-status dt {
  font-weight: 900;
}

.lab-status dd {
  margin: 0;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-align: right;
}

.danger {
  color: var(--red) !important;
  animation: blink 0.7s step-end infinite;
}

.counter {
  display: block;
  padding: 5px;
  color: #fff4c6;
  background: var(--deep-red);
  border: 3px inset #777;
  font-family: "Courier New", monospace;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
}

.badge-stack span {
  display: block;
  margin: 5px 0;
  padding: 5px;
  color: #000;
  background: var(--yellow);
  border: 3px double var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  text-align: center;
}

.order-button,
.chat-button,
#close-modal {
  padding: 9px 12px;
  color: #fff;
  background: var(--red);
  border: 4px outset #ff9898;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000;
}

.section-header {
  padding: 10px;
  background: var(--yellow);
  border-bottom: 4px solid var(--line);
}

.section-header h2 {
  margin-bottom: 4px;
  background: var(--red);
  font-size: clamp(24px, 4vw, 44px);
}

.section-header p {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

.warning-header {
  background: var(--pale-red);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.product-card {
  position: relative;
  min-height: 276px;
  padding: 12px;
  border: 4px solid var(--line);
  background: #fff9f4;
  box-shadow: 5px 5px 0 var(--red);
}

.product-card h3 {
  margin: 32px 0 6px;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #fff;
}

.product-card ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 900;
}

.product-card li {
  margin: 4px 0;
}

.fake-price {
  display: inline-block;
  margin: 0;
  padding: 4px 7px;
  color: #fff;
  background: var(--deep-red);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.product-sticker {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  color: #fff;
  background: var(--red);
  border: 3px dashed #000;
  font-family: Impact, "Arial Black", sans-serif;
  transform: rotate(-3deg);
}

.product-card.blue {
  background: #fff0f0;
  box-shadow-color: var(--deep-red);
}

.product-card.green {
  background: #fff8ed;
  box-shadow-color: var(--green);
}

.product-card.purple {
  background: #fff2e6;
  box-shadow-color: var(--gold);
}

.order-button {
  width: 100%;
  margin-top: auto;
  font-size: 18px;
}

.science-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr;
  gap: 10px;
  padding: 10px;
}

.chart-box,
.meter-box,
.molecule-box {
  padding: 10px;
  border: 4px dotted var(--red);
  background: #fff;
}

.chart-box h3,
.meter-box h3,
.molecule-box h3 {
  margin: 0 0 8px;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
}

.chart-box svg {
  width: 100%;
  border: 3px solid #000;
}

.hplc-line {
  animation: hplc-dance 1.3s steps(2, end) infinite;
}

.meter-box label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
}

.meter {
  height: 19px;
  border: 3px solid var(--line);
  background: #fff;
}

.meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, var(--yellow) 10px 20px);
}

.green-meter span {
  background: repeating-linear-gradient(90deg, var(--deep-red) 0 10px, var(--gold) 10px 20px);
}

.red-meter span {
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, #fff 10px 20px);
}

.sad-meter span {
  background: var(--gold);
}

.molecule {
  position: relative;
  height: 138px;
  margin: 10px 0;
  border: 3px solid var(--line);
  background:
    linear-gradient(35deg, transparent 48%, var(--red) 49% 51%, transparent 52%),
    linear-gradient(145deg, transparent 48%, var(--red) 49% 51%, transparent 52%),
    #fff7f2;
}

.molecule span {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border: 4px solid #000;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 1.1s infinite;
}

.molecule span:nth-child(1) { top: 16px; left: 14%; }
.molecule span:nth-child(2) { top: 62px; left: 35%; background: var(--green); }
.molecule span:nth-child(3) { top: 24px; right: 20%; background: var(--magenta); }
.molecule span:nth-child(4) { bottom: 16px; left: 20%; background: var(--cyan); }
.molecule span:nth-child(5) { bottom: 20px; right: 12%; background: var(--orange); }

.big-number {
  margin: 0;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 54px;
  line-height: 0.85;
  text-align: center;
  text-shadow: 3px 3px 0 var(--yellow);
}

.ad-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

figure {
  margin: 0;
  border: 4px solid #000;
  background: #fff;
}

figure img,
.ad-tower img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fffaf4;
}

figcaption {
  padding: 7px;
  color: #fff;
  background: var(--deep-red);
  font-family: Impact, "Arial Black", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.warning-section {
  padding: 16px;
  color: #fff;
  background: #000;
  border-color: var(--red);
}

.warning-section h2 {
  color: var(--yellow);
  background: var(--red);
}

.warning-section p {
  max-width: 900px;
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: 900;
}

.notice-button {
  width: min(520px, 100%);
}

.broker-box h2 {
  background: var(--green);
}

.phone-shell {
  overflow: hidden;
  border: 5px solid #111;
  background: #fff3ee;
}

.phone-header {
  padding: 7px;
  color: #fff;
  background: var(--deep-red);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.chat-log {
  min-height: 230px;
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
}

.msg {
  width: fit-content;
  max-width: 92%;
  margin: 7px 0;
  padding: 7px;
  border: 2px solid #777;
  border-radius: 6px;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.seller {
  background: #ffffff;
}

.buyer {
  margin-left: auto;
  background: #fff0d7;
}

.chat-button {
  width: 100%;
  color: #fff;
  background: var(--red);
  border-color: #ffd9d9;
  font-size: 15px;
}

.testimonials blockquote {
  margin: 8px 0;
  padding: 8px;
  border: 3px dashed var(--red);
  background: #fff7f2;
  font-size: 14px;
  font-weight: 900;
}

.testimonials cite {
  display: block;
  margin-top: 5px;
  color: var(--deep-red);
  font-family: "Courier New", monospace;
  font-style: normal;
}

.ad-tower {
  background: var(--yellow);
}

.ad-tower p {
  margin: 8px 0 0;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
}

.blocked-modal {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(18px, 4vw, 34px);
  border: 8px solid var(--red);
  background: #fff;
  box-shadow: 12px 12px 0 var(--yellow);
  text-align: center;
}

.modal-stamp {
  position: absolute;
  top: -22px;
  left: 18px;
  padding: 5px 12px;
  color: #fff;
  background: var(--red);
  border: 4px solid #000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  transform: rotate(-5deg);
}

.blocked-modal h2 {
  margin: 12px 0;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(38px, 8vw, 86px);
  line-height: 0.9;
  text-shadow: 4px 4px 0 var(--yellow);
}

.blocked-modal p {
  font-size: 20px;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.blink {
  animation: blink 0.8s step-end infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes blink {
  0%,
  49% { opacity: 1; }
  50%,
  100% { opacity: 0; }
}

@keyframes color-shout {
  0% { color: var(--red); }
  33% { color: var(--deep-red); }
  66% { color: #b40000; }
  100% { color: var(--red); }
}

@keyframes seal-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes hplc-dance {
  0% { transform: translateX(0); }
  50% { transform: translateX(4px) translateY(-2px); }
  100% { transform: translateX(-2px) translateY(1px); }
}

@keyframes pulse {
  50% { transform: scale(1.12); }
}

@media (max-width: 1120px) {
  .outer-frame {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 820px) {
  .outer-frame,
  .product-grid,
  .science-grid,
  .ad-gallery,
  .sidebar-right {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: 760px;
    align-items: start;
    padding-top: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 45%, rgba(255, 255, 255, 0.66) 60%, rgba(255, 255, 255, 0.05) 100%),
      repeating-linear-gradient(45deg, rgba(196, 0, 0, 0.08) 0 10px, transparent 10px 20px),
      url("assets/director-wang-hero-promo.png") 65% bottom / auto 54% no-repeat,
      #fff;
  }

  .seal {
    display: none;
  }

  .outer-frame {
    margin: 4px;
    padding: 5px;
  }

}

@media (max-width: 460px) {
  .microbar {
    font-size: 11px;
    flex-direction: column;
    align-items: center;
  }

  .microbar span {
    width: min(100%, 330px);
  }

  h1 {
    font-size: clamp(30px, 16vw, 58px);
    text-shadow:
      2px 2px 0 var(--yellow),
      4px 4px 0 var(--blue);
  }

  .order-button {
    width: 100%;
  }

  .product-card {
    min-height: unset;
  }

  .box,
  .product-card,
  .catalog-section,
  .science-section,
  .ads-section,
  .warning-section {
    box-shadow: 3px 3px 0 #000;
  }
}

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

  .ticker-track {
    transform: none;
  }
}
