:root {
  color-scheme: light;
  --bg: #12100f;
  --surface: #fff7cf;
  --muted-surface: #fff0a6;
  --border: #171b18;
  --border-strong: #171b18;
  --text: #171b18;
  --muted: #4f4b3c;
  --faint: #8a8060;
  --up: #ff4b1f;
  --down: #24a7ff;
  --neutral: #3a9f57;
  --meme-yellow: #fff35f;
  --meme-pink: #ff4fd8;
  --meme-green: #44ff8a;
  --meme-orange: #ff6a1a;
  --meme-ink: #111017;
  --heat-score: 50%;
  --heat-color: rgb(212, 158, 0);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
}

body[data-page="home"],
body[data-page="detail"] {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 14% 8%, rgba(255, 79, 216, 0.28), transparent 280px),
    radial-gradient(circle at 86% 0%, rgba(68, 255, 138, 0.2), transparent 320px),
    linear-gradient(180deg, #121018 0, #17130f 58%, #0e0e10 100%);
  background-attachment: scroll;
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

body:not([data-page]) {
  background: #fff7cf;
  color: var(--text);
}

.shell {
  min-height: 100vh;
  padding: 22px 24px 28px;
}

.public-shell {
  padding: 18px 20px 22px;
}

.public-shell main {
  width: 100%;
}

.topbar {
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin: 0 auto 18px;
  max-width: 1480px;
  padding-bottom: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.topbar p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

.top-actions,
.range-tabs {
  align-items: center;
  display: flex;
  gap: 8px;
}

button,
.top-actions a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  height: 36px;
  padding: 0 13px;
  text-decoration: none;
}

button:hover,
.top-actions a:hover {
  border-color: #9aa1aa;
}

button:disabled {
  color: var(--faint);
  cursor: default;
  opacity: 0.54;
}

button:disabled:hover {
  border-color: var(--border-strong);
}

.home-shell {
  background:
    radial-gradient(circle at 16% 2%, rgba(255, 243, 95, 0.22), transparent 340px),
    linear-gradient(180deg, rgba(17, 16, 23, 0) 0, rgba(17, 16, 23, 0) 360px, rgba(255, 243, 95, 0.08) 100%);
}

.home-header,
.detail-nav {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
}

.home-header {
  border-bottom: 0;
  padding: 0;
}

.home-header p {
  color: #fff4b8;
  font-size: 13px;
  margin-top: 7px;
}

.meme-hero {
  animation: neonFramePulse 3s ease-in-out infinite;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.88) 0%, rgba(5, 5, 8, 0.62) 42%, rgba(5, 5, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.34) 100%),
    url("/assets/meme-hero.jpg");
  background-position: center;
  background-size: cover;
  border: 2px solid #171b18;
  border-radius: 10px;
  box-shadow:
    0 0 0 4px var(--meme-yellow),
    8px 8px 0 #000000,
    0 0 34px rgba(255, 79, 216, 0.48),
    0 0 54px rgba(68, 255, 138, 0.22);
  contain: layout paint style;
  display: block;
  margin-top: 10px;
  min-height: 292px;
  overflow: hidden;
  padding: 34px 36px;
  position: relative;
}

.meme-hero::before {
  background:
    url("/assets/meme-hero.jpg");
  background-position: left -10px top -18px;
  background-repeat: no-repeat;
  background-size: 520px auto;
  clip-path: polygon(8% 2%, 88% 0%, 100% 19%, 93% 48%, 100% 78%, 70% 100%, 43% 90%, 12% 100%, 0 72%, 7% 42%, 0 16%);
  content: "";
  filter: none;
  height: 154px;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  right: 34px;
  bottom: 26px;
  transform: rotate(-8deg);
  width: 178px;
  z-index: 2;
}

.meme-hero::after {
  background:
    repeating-linear-gradient(
      -10deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 12px
    );
  content: "";
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.meme-hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 3;
}

.meme-kicker {
  color: #4cff9f !important;
  font-size: 18px !important;
  font-weight: 900;
  text-shadow:
    0 0 8px rgba(76, 255, 159, 0.9),
    0 0 18px rgba(76, 255, 159, 0.6),
    2px 2px 0 #000000;
}

.meme-hero h1 {
  animation: neonTitleFlicker 3s steps(1, end) infinite;
  color: #fff8cf;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.02;
  max-width: 620px;
  text-shadow:
    0 0 8px #fff8cf,
    0 0 18px #ffef5f,
    0 0 34px #ff2fd1,
    4px 4px 0 #09090b;
}

.title-sign,
.title-char,
.title-space {
  display: inline-block;
}

.title-space {
  width: 0.28em;
}

@keyframes neonFramePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px var(--meme-yellow),
      8px 8px 0 #000000,
      0 0 30px rgba(255, 79, 216, 0.4),
      0 0 48px rgba(68, 255, 138, 0.18);
  }

  50% {
    box-shadow:
      0 0 0 4px #ffffff,
      8px 8px 0 #000000,
      0 0 46px rgba(255, 79, 216, 0.7),
      0 0 76px rgba(68, 255, 138, 0.32);
  }
}

@keyframes neonTitleFlicker {
  0%,
  9%,
  11%,
  53%,
  57%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 8px #fff8cf,
      0 0 18px #ffef5f,
      0 0 34px #ff2fd1,
      4px 4px 0 #09090b;
  }

  10%,
  55% {
    opacity: 0.78;
    text-shadow:
      0 0 3px #fff8cf,
      0 0 9px #ffef5f,
      4px 4px 0 #09090b;
  }
}

.meme-subtitle {
  color: #ffffff !important;
  font-size: 21px !important;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 18px !important;
  max-width: 570px;
  text-shadow:
    0 0 10px rgba(255, 47, 209, 0.7),
    3px 3px 0 #000000;
}

.meme-updated {
  color: #9fffc1 !important;
  font-size: 14px !important;
  font-weight: 800;
  margin-top: 16px !important;
  text-shadow: 2px 2px 0 #000000;
}

.meme-stickers {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.meme-sticker {
  background: var(--meme-yellow);
  border: 2px solid #171b18;
  box-shadow: 4px 4px 0 #171b18;
  color: #171b18;
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  padding: 9px 10px;
  position: absolute;
  white-space: nowrap;
}

.meme-random-sticker {
  animation: stickerPanic 2.6s steps(2, end) infinite;
  border-style: dashed;
  font-size: 17px;
  letter-spacing: 0;
  padding: 10px 12px;
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 0 rgba(0, 0, 0, 0.22);
}

.meme-random-sticker::before {
  color: #111017;
  content: "!!";
  display: inline-block;
  margin-right: 5px;
  transform: rotate(-9deg);
}

.meme-random-sticker::after {
  color: #111017;
  content: "!!";
  display: inline-block;
  margin-left: 5px;
  transform: rotate(8deg);
}

@keyframes stickerPanic {
  0%,
  100% {
    filter: saturate(1.05);
    translate: 0 0;
  }

  34% {
    filter: saturate(1.45);
    translate: 1px -1px;
  }

  67% {
    filter: saturate(1.2);
    translate: -1px 1px;
  }
}

.meme-sample {
  max-width: min(360px, calc(100vw - 48px));
  overflow: hidden;
  text-overflow: ellipsis;
}

.meme-sample::before {
  content: attr(data-label) " ";
  opacity: 0.68;
}

.sticker-buy {
  right: 22px;
  top: 22px;
  transform: rotate(6deg);
}

.sticker-run {
  background: var(--meme-orange);
  color: #fff7d7;
  right: 184px;
  top: 166px;
  transform: rotate(-8deg);
}

.sticker-rocket {
  background:
    linear-gradient(135deg, var(--meme-green), var(--meme-yellow) 58%, #ffffff);
  bottom: 26px;
  right: 36px;
  transform: rotate(8deg) skew(-4deg);
}

.sticker-chat {
  background:
    linear-gradient(135deg, var(--meme-pink), var(--meme-orange) 72%, #fff7cf);
  bottom: 32px;
  left: 34px;
  transform: rotate(-8deg) skew(3deg);
}

.detail-nav {
  padding: 4px 0 16px;
}

.detail-nav a {
  background: var(--meme-yellow);
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  color: #111017;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 11px;
  text-decoration: none;
  transform: rotate(-2deg);
}

.detail-nav a:hover {
  color: #111017;
  transform: rotate(1deg);
}

.home-main {
  margin: 18px auto 0;
  max-width: 1120px;
}

.community-overview,
.market-board,
.heat-quote,
.ad-band,
.info-page {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.community-overview {
  padding: 12px 0 0;
}

.community-gauge-card {
  --gauge-heat-color: var(--meme-yellow);
  animation: none;
  align-items: center;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(255, 255, 255, 0.82) 30%, transparent 36% 100%),
    conic-gradient(from 140deg at 16% 10%, #ff4fd8, #fff35f, #44ff8a, #24a7ff, #ff4fd8),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.86), transparent 92px),
    linear-gradient(135deg, rgba(255, 243, 95, 0.96), rgba(255, 247, 207, 0.98) 46%, rgba(255, 79, 216, 0.24)),
    var(--surface);
  border: 2px solid #171b18;
  border-radius: 8px;
  box-shadow:
    7px 7px 0 #000000,
    0 0 24px var(--gauge-heat-color),
    0 0 54px rgba(255, 79, 216, 0.28);
  contain: layout paint style;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  min-height: 330px;
  overflow: hidden;
  padding: 22px 24px 20px;
  position: relative;
}

@keyframes gaugeCasinoPulse {
  0%,
  100% {
    box-shadow:
      7px 7px 0 #000000,
      0 0 18px var(--gauge-heat-color),
      0 0 44px rgba(255, 79, 216, 0.22);
  }

  50% {
    box-shadow:
      7px 7px 0 #000000,
      0 0 34px var(--gauge-heat-color),
      0 0 72px rgba(255, 79, 216, 0.38);
  }
}

.community-gauge-card::before {
  background:
    radial-gradient(circle, #ffffff 0 22%, var(--meme-yellow) 23% 48%, transparent 50%) 0 0 / 28px 28px;
  content: "";
  height: 30px;
  left: 0;
  opacity: 0.95;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.community-gauge-card::after {
  animation: none;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.74) 43%, transparent 50% 100%);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
  transform: translateX(-46%);
  z-index: 1;
}

@keyframes prismSweep {
  0% {
    transform: translateX(-60%);
  }

  100% {
    transform: translateX(60%);
  }
}

.community-gauge-visual {
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 243, 95, 0.28), transparent 130px),
    linear-gradient(rgba(255, 243, 95, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 255, 138, 0.08) 1px, transparent 1px),
    #111017;
  background-size: auto, 22px 22px, 22px 22px, auto;
  border: 3px solid #111017;
  box-shadow:
    inset 0 0 28px rgba(255, 79, 216, 0.28),
    5px 5px 0 #000000;
  contain: layout paint style;
  min-height: 280px;
  overflow: hidden;
  padding: 18px 18px 8px;
  position: relative;
  z-index: 2;
}

.community-gauge-visual::before {
  background:
    radial-gradient(circle, #ffffff 0 24%, var(--gauge-heat-color) 25% 52%, transparent 54%) 0 0 / 26px 26px;
  content: "";
  height: 28px;
  left: 8px;
  opacity: 0.98;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 0;
}

.community-gauge-visual::after {
  background:
    radial-gradient(circle at 50% 76%, var(--gauge-heat-color), transparent 118px);
  bottom: -60px;
  content: "";
  height: 170px;
  left: 8%;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
  right: 8%;
  z-index: 0;
}

.community-gauge {
  display: block;
  height: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.gauge-band {
  filter: none;
  fill: #fff7cf;
  stroke: #111017;
  stroke-width: 7;
}

.gauge-band.cold {
  fill: #b8e7ff;
}

.gauge-band.calm {
  fill: #d9f7b1;
}

.gauge-band.warm {
  fill: #fff35f;
}

.gauge-band.hot {
  fill: #ff9b3d;
}

.gauge-band.overheat {
  fill: #ff4b1f;
}

.gauge-band-label {
  fill: #fff8cf;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: #000000;
  stroke-width: 5px;
}

.gauge-tick {
  stroke: rgba(255, 248, 207, 0.7);
  stroke-linecap: round;
  stroke-width: 2;
}

.gauge-tick.major {
  stroke-width: 3;
}

.gauge-tick-label {
  fill: #fff8cf;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: #000000;
  stroke-width: 4px;
}

.gauge-needle-shadow {
  fill: #000000;
  opacity: 0.7;
  transform: translate(8px, 8px);
}

.gauge-needle {
  filter: none;
  fill: #fff35f;
  stroke: #111017;
  stroke-linejoin: round;
  stroke-width: 8;
}

.gauge-hub {
  fill: var(--gauge-heat-color);
  filter: none;
  stroke: #ffffff;
  stroke-width: 7;
}

.community-gauge-readout {
  align-items: baseline;
  bottom: 8px;
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.community-gauge-readout strong {
  background: #07070a;
  border: 3px solid var(--gauge-heat-color);
  box-shadow:
    0 0 18px var(--gauge-heat-color),
    4px 4px 0 #000000;
  color: #fff8cf;
  font-size: 52px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  min-width: 116px;
  padding: 8px 12px 7px;
  text-align: center;
  text-shadow:
    0 0 8px #fff8cf,
    0 0 18px var(--gauge-heat-color);
}

.community-gauge-readout strong::after {
  color: var(--meme-yellow);
  content: "/100";
  font-size: 17px;
  font-weight: 900;
  margin-left: 4px;
}

.gauge-label {
  background: var(--gauge-heat-color);
  border: 2px solid #000000;
  box-shadow: 3px 3px 0 #000000;
  color: #111017;
  font-size: 22px;
  font-weight: 900;
  padding: 7px 10px;
}

.meme-sample-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 6;
}

.meme-sample-strip .meme-sample {
  background: #fff7cf;
  border: 2px solid #000000;
  box-shadow:
    4px 4px 0 #000000,
    0 0 16px rgba(0, 0, 0, 0.26);
  color: #111017;
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  max-width: min(460px, 100%);
  padding: 8px 10px;
}

.meme-sample-strip .meme-sample::before {
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  display: inline-block;
  margin: 0 7px 0 0;
  opacity: 1;
  padding: 2px 5px;
  text-shadow: 1px 1px 0 #000000;
}

.meme-sample-strip .detail-positive {
  background: #18d867;
  color: #06120a;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.56);
}

.meme-sample-strip .detail-negative {
  background: #d9137c;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000000;
}

.meme-sample-strip .detail-positive::before {
  background: #063d1f;
  border-color: #baffd4;
}

.meme-sample-strip .detail-negative::before {
  background: #4a062c;
  border-color: #ffd1ea;
}

.community-gauge-side h2 {
  color: #171b18;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 2px 2px 0 #ffffff;
}

.community-gauge-side {
  position: relative;
  z-index: 2;
}

.community-gauge-side p {
  color: #171b18;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  margin-top: 8px;
}

.community-gauge-sources {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.community-gauge-source {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid #171b18;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px 58px minmax(0, 1fr) 38px;
  padding: 8px;
}

.community-gauge-source span,
.community-gauge-source strong {
  color: #171b18;
  font-size: 13px;
  font-weight: 900;
}

.community-gauge-source strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.community-gauge-source .community-gauge-rank {
  align-items: center;
  background: #111017;
  border: 2px solid #111017;
  border-radius: 0;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.community-gauge-source:first-child .community-gauge-rank {
  background: #ff4b1f;
  border-color: #111017;
  color: #ffffff;
}

.community-gauge-source i {
  background:
    linear-gradient(90deg, var(--source-color) 0 var(--source-score), rgba(17, 16, 23, 0.18) var(--source-score) 100%);
  border: 1px solid #111017;
  display: block;
  height: 10px;
}

.market-board {
  padding: 30px 0 8px;
}

.market-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.market-loading {
  color: var(--muted);
  font-size: 14px;
  padding: 18px 0;
}

.market-card {
  --card-heat-color: var(--heat-color);
  animation: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.88), transparent 44px),
    radial-gradient(circle at 82% 24%, var(--card-heat-color), transparent 98px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), transparent 22% 100%),
    linear-gradient(180deg, #fff7cf, #ffe878);
  border: 2px solid #171b18;
  border-radius: 8px;
  box-shadow:
    6px 6px 0 #000000,
    0 0 22px rgba(255, 243, 95, 0.12);
  contain: layout paint style;
  contain-intrinsic-size: auto 270px;
  content-visibility: auto;
  color: var(--text);
  display: block;
  min-height: 270px;
  overflow: hidden;
  padding: 22px 22px 18px;
  position: relative;
  text-decoration: none;
}

@keyframes cardFoilFlash {
  0%,
  100% {
    filter: saturate(1.08);
  }

  50% {
    filter: saturate(1.38) brightness(1.06);
  }
}

.market-card:hover {
  border-color: #171b18;
  box-shadow:
    3px 3px 0 #000000,
    0 0 26px rgba(255, 79, 216, 0.28);
}

.market-card::before {
  background:
    url("/assets/meme-hero.jpg");
  background-repeat: no-repeat;
  background-size: 400px auto;
  bottom: 88px;
  clip-path: polygon(8% 3%, 92% 0%, 99% 18%, 92% 40%, 100% 66%, 83% 97%, 48% 89%, 16% 100%, 0% 74%, 8% 47%, 0% 19%);
  content: "";
  filter: none;
  height: 132px;
  opacity: 0.92;
  position: absolute;
  right: 6px;
  top: auto;
  transform: rotate(8deg);
  width: 146px;
  z-index: 0;
}

.market-card::after {
  background:
    radial-gradient(circle, rgba(17, 16, 23, 0.2) 0 2px, transparent 3px) 0 0 / 12px 12px,
    radial-gradient(circle at 88% 38%, rgba(255, 255, 255, 0.92), transparent 28px),
    linear-gradient(130deg, transparent 0 42%, rgba(255, 255, 255, 0.72) 48%, transparent 56% 100%);
  content: "";
  inset: 0;
  mix-blend-mode: normal;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.market-card-humoruniv::before {
  background-position: left -6px top -8px;
  transform: rotate(-9deg);
}

.market-card-clien::before {
  background-position: right -6px top 4px;
  transform: rotate(7deg);
}

.market-card-ruliweb::before {
  background-position: right -14px bottom -2px;
  transform: rotate(-5deg);
}

body[data-heat-mood="cold"] {
  --heat-color: #8ac8df;
  background:
    radial-gradient(circle at 18% 14%, rgba(99, 139, 158, 0.18), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(54, 70, 90, 0.24), transparent 32%),
    linear-gradient(180deg, #10141a 0%, #171b20 52%, #0b0d11 100%);
}

body[data-heat-mood="cold"] .meme-hero {
  background:
    linear-gradient(90deg, rgba(6, 8, 11, 0.9) 0%, rgba(8, 10, 14, 0.7) 46%, rgba(8, 10, 14, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.46) 100%),
    url("/assets/meme-hero-cold.jpg");
  background-position: center;
  background-size: cover;
  box-shadow:
    0 0 0 4px #a9c7d4,
    8px 8px 0 #000000,
    0 0 28px rgba(97, 157, 183, 0.36),
    0 0 58px rgba(68, 88, 110, 0.32);
  filter: saturate(0.82);
}

body[data-heat-mood="cold"] .meme-hero::before {
  background:
    url("/assets/meme-hero-cold.jpg");
  background-position: left -14px bottom -18px;
  background-repeat: no-repeat;
  background-size: 530px auto;
  filter:
    drop-shadow(4px 4px 0 #000000)
    drop-shadow(0 0 14px rgba(138, 200, 223, 0.75));
  opacity: 0.88;
}

body[data-heat-mood="cold"] .meme-hero h1 {
  animation: none;
  color: #26343d;
  text-shadow:
    0 0 2px rgba(111, 134, 146, 0.24),
    4px 4px 0 #020306;
}

body[data-heat-mood="cold"] .title-char {
  -webkit-text-stroke: 1px rgba(7, 10, 13, 0.92);
  color: #718894;
  opacity: 0.82;
  text-shadow:
    2px 2px 0 #000000,
    0 0 5px rgba(138, 200, 223, 0.22);
}

body[data-heat-mood="cold"] .title-dead {
  transform: rotate(-2deg) translateY(1px);
}

body[data-heat-mood="cold"] .title-on {
  animation: coldBrokenNeon 3s steps(1, end) infinite;
  color: #dff7ff;
  opacity: 1;
  text-shadow:
    0 0 7px #dff7ff,
    0 0 15px #8ac8df,
    0 0 27px rgba(93, 139, 162, 0.84),
    4px 4px 0 #020306;
}

body[data-heat-mood="cold"] .title-on-delay {
  animation-delay: 0.42s;
}

body[data-heat-mood="cold"] .title-on-late {
  animation-delay: 1.18s;
}

@keyframes coldBrokenNeon {
  0%,
  4%,
  9%,
  72%,
  78%,
  100% {
    color: #dff7ff;
    opacity: 1;
    text-shadow:
      0 0 7px #dff7ff,
      0 0 15px #8ac8df,
      0 0 27px rgba(93, 139, 162, 0.84),
      4px 4px 0 #020306;
  }

  5%,
  8%,
  73%,
  76% {
    color: #4f6773;
    opacity: 0.42;
    text-shadow:
      1px 1px 0 #000000,
      0 0 2px rgba(138, 200, 223, 0.18);
  }
}

body[data-heat-mood="cold"] .meme-kicker,
body[data-heat-mood="cold"] .meme-updated {
  color: #a9d3e4 !important;
  text-shadow:
    0 0 8px rgba(169, 211, 228, 0.88),
    2px 2px 0 #000000;
}

body[data-heat-mood="cold"] .meme-subtitle {
  color: #e1eef3 !important;
}

body[data-heat-mood="cold"] .meme-sticker {
  background: #25313d;
  color: #dff7ff;
}

body[data-heat-mood="cold"] .sticker-buy,
body[data-heat-mood="cold"] .sticker-run {
  background: #6f8793;
  color: #071016;
}

body[data-heat-mood="cold"] .sticker-chat,
body[data-heat-mood="cold"] .sticker-rocket {
  animation: stickerColdFlicker 4s steps(1, end) infinite;
  background:
    linear-gradient(135deg, #25313d, #607482 64%, #1a222b);
  border-color: #081017;
  border-style: dashed;
  color: #dff7ff;
  min-width: 0;
  text-shadow:
    1px 1px 0 #000000,
    0 0 5px rgba(138, 200, 223, 0.48);
}

body[data-heat-mood="cold"] .sticker-chat::after,
body[data-heat-mood="cold"] .sticker-rocket::after {
  content: "!!";
  display: inline-block;
}

body[data-heat-mood="cold"] .sticker-chat::after {
  content: "??";
}

body[data-heat-mood="cold"] .sticker-rocket::after {
  content: "!!";
}

@keyframes stickerColdFlicker {
  0%,
  20%,
  26%,
  100% {
    opacity: 0.94;
  }

  22%,
  24% {
    opacity: 0.52;
  }
}

body[data-heat-mood="cold"] .community-gauge-card {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.66), transparent 44px),
    radial-gradient(circle at 86% 20%, rgba(99, 139, 158, 0.42), transparent 116px),
    repeating-linear-gradient(0deg, rgba(18, 22, 27, 0.08) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #dce7e9, #7e949f 48%, #2d3741 100%);
  box-shadow:
    6px 6px 0 #000000,
    0 0 26px rgba(138, 200, 223, 0.32);
}

body[data-heat-mood="cold"] .community-gauge-card::before {
  background:
    radial-gradient(circle at 14px 15px, #e6fbff 0 4px, #74a6bb 5px 8px, transparent 9px),
    radial-gradient(circle at 42px 15px, #273440 0 7px, #151b22 8px 10px, transparent 11px),
    radial-gradient(circle at 70px 15px, #6e8793 0 4px, #314450 5px 8px, transparent 9px),
    radial-gradient(circle at 98px 15px, #1a232b 0 8px, transparent 10px);
  background-size: 112px 30px;
  opacity: 0.86;
}

body[data-heat-mood="cold"] .community-gauge-visual::before {
  background:
    radial-gradient(circle at 13px 14px, #dff7ff 0 4px, #4f86a0 5px 8px, transparent 9px),
    radial-gradient(circle at 39px 14px, #182029 0 8px, transparent 10px),
    radial-gradient(circle at 65px 14px, #4f6470 0 4px, #26343d 5px 8px, transparent 9px),
    radial-gradient(circle at 91px 14px, #151c23 0 8px, transparent 10px);
  background-size: 104px 28px;
  opacity: 0.88;
}

body[data-heat-mood="cold"] .gauge-needle {
  fill: #dff7ff;
}

body[data-heat-mood="cold"] .market-card {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.54), transparent 42px),
    radial-gradient(circle at 82% 24%, rgba(138, 200, 223, 0.42), transparent 92px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 24% 100%),
    linear-gradient(180deg, #d9e7ea, #8fa3aa);
}

body[data-heat-mood="cold"] .market-card::before {
  background:
    url("/assets/meme-hero-cold.jpg");
  background-repeat: no-repeat;
  background-size: 405px auto;
  opacity: 0.94;
}

body[data-heat-mood="cold"] .market-card-humoruniv::before {
  background-position: left -12px bottom -10px;
}

body[data-heat-mood="cold"] .market-card-clien::before {
  background-position: right -10px bottom -4px;
}

body[data-heat-mood="cold"] .market-card-ruliweb::before {
  background-position: center top -6px;
}

.market-card-head {
  align-items: baseline;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.market-card h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.market-card-head span {
  color: #111017;
  font-size: 12px;
  font-weight: 900;
  margin-right: 64px;
}

.market-value {
  color: #171b18;
  display: block;
  font-size: 58px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 14px;
  position: relative;
  text-shadow:
    2px 2px 0 #ffffff,
    0 0 14px rgba(255, 79, 216, 0.4);
  z-index: 2;
}

.market-value::after {
  color: #747d75;
  content: "/100";
  font-size: 17px;
  font-weight: 800;
  margin-left: 6px;
}

.market-change {
  background: rgba(255, 255, 255, 0.64);
  border: 2px solid #111017;
  box-shadow: 3px 3px 0 #111017;
  color: var(--card-heat-color);
  display: inline-block;
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
  margin-top: 8px;
  padding: 5px 8px;
  position: relative;
  text-shadow: 1px 1px 0 #ffffff;
  width: fit-content;
  z-index: 2;
}

.mini-chart {
  background:
    linear-gradient(rgba(17, 16, 23, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 16, 23, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.32);
  background-size: 18px 18px;
  border: 2px solid #111017;
  contain: layout paint style;
  display: block;
  height: 92px;
  margin-top: 18px;
  padding: 2px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.empty-card {
  opacity: 0.72;
}

.quote-panel {
  border-bottom: 1px solid rgba(255, 243, 95, 0.22);
  margin: 0 auto 18px;
  max-width: 1480px;
  padding: 28px 0 26px;
}

.public-quote {
  border-bottom: 0;
  margin-bottom: 0;
  max-width: 1120px;
  padding: 14px 0 0;
}

.quote-head {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.heat-quote {
  background:
    linear-gradient(90deg, rgba(10, 8, 14, 0.9) 0%, rgba(10, 8, 14, 0.72) 48%, rgba(10, 8, 14, 0.36) 100%),
    url("/assets/meme-hero.jpg");
  background-position: center top;
  background-size: cover;
  border: 2px solid #000000;
  box-shadow:
    0 0 0 4px var(--meme-yellow),
    8px 8px 0 #000000,
    0 0 42px rgba(255, 79, 216, 0.36);
  contain: layout paint style;
  isolation: isolate;
  min-height: calc(100vh - 86px);
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.heat-quote::before,
.heat-quote::after {
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  font-weight: 900;
  line-height: 1;
  padding: 9px 11px;
  position: absolute;
  z-index: 2;
}

.heat-quote::before,
.heat-quote::after,
.heat-copy::before {
  display: none;
}

body[data-page="detail"] .heat-quote::before,
body[data-page="detail"] .heat-quote::after {
  display: block;
  height: auto;
  letter-spacing: 0;
  width: auto;
}

body[data-page="detail"] .heat-quote::before {
  background:
    linear-gradient(135deg, var(--meme-pink), var(--meme-yellow));
  color: #111017;
  content: "커뮤 증권방송";
  right: 28px;
  top: 24px;
  transform: rotate(5deg) skew(-5deg);
}

body[data-page="detail"] .heat-quote::after {
  background:
    linear-gradient(135deg, var(--meme-green), #ffffff 72%, var(--meme-yellow));
  bottom: 26px;
  color: #111017;
  content: "차트야 소리질러";
  right: 28px;
  transform: rotate(-4deg) skew(4deg);
}

body[data-source="humoruniv"] .heat-quote::before {
  content: "웃대 매매반";
}

body[data-source="clien"] .heat-quote::before {
  content: "클량 작전회의";
}

body[data-source="ruliweb"] .heat-quote::before {
  content: "근근 증권부";
}

body[data-heat-mood="cold"][data-page="detail"] .heat-quote::before {
  background:
    linear-gradient(135deg, #607482, #dff7ff);
  color: #071016;
  content: "셔터 내림";
}

body[data-heat-mood="cold"][data-page="detail"] .heat-quote {
  background:
    linear-gradient(90deg, rgba(6, 8, 11, 0.92) 0%, rgba(8, 10, 14, 0.76) 48%, rgba(8, 10, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.5) 100%),
    url("/assets/meme-hero-cold.jpg");
  background-position: center top;
  background-size: cover;
  box-shadow:
    0 0 0 4px #a9c7d4,
    8px 8px 0 #000000,
    0 0 34px rgba(97, 157, 183, 0.32);
  border-color: #8ac8df;
}

body[data-heat-mood="cold"][data-page="detail"] .quote-head h2 {
  color: #dff7ff;
  text-shadow:
    0 0 7px #dff7ff,
    0 0 18px #8ac8df,
    4px 4px 0 #020306;
}

body[data-heat-mood="cold"][data-page="detail"] .index-subtitle {
  border-color: #8ac8df;
  color: #dff7ff;
  text-shadow:
    0 0 10px rgba(138, 200, 223, 0.74),
    2px 2px 0 #000000;
}

body[data-heat-mood="cold"][data-page="detail"] #indexValue {
  border-color: #8ac8df;
  box-shadow:
    6px 6px 0 #000000,
    0 0 24px rgba(138, 200, 223, 0.58);
  color: #8ac8df;
}

body[data-heat-mood="cold"][data-page="detail"] .heat-quote::after {
  background:
    linear-gradient(135deg, #25313d, #607482);
  color: #dff7ff;
  content: "장례식장 차트";
}

body[data-heat-mood="cold"][data-page="detail"] .heat-copy::after,
body[data-heat-mood="cold"][data-page="detail"] .heat-reasons::before,
body[data-heat-mood="cold"][data-page="detail"] .heat-reasons::after {
  background-image:
    url("/assets/meme-hero-cold.jpg");
  filter:
    drop-shadow(5px 5px 0 #000000)
    drop-shadow(0 0 15px rgba(138, 200, 223, 0.5));
  opacity: 0.78;
}

.heat-quote::before {
  background: var(--meme-pink);
  content: "";
  height: 22px;
  right: 24px;
  top: 28px;
  transform: rotate(4deg);
  width: 172px;
}

.heat-quote::after {
  background: var(--meme-green);
  bottom: 22px;
  content: "";
  height: 20px;
  right: 30px;
  transform: rotate(-3deg);
  width: 190px;
}

.heat-copy {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.heat-copy > * {
  position: relative;
  z-index: 1;
}

.heat-copy::before {
  background: var(--meme-yellow);
  border: 2px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  content: "";
  display: inline-block;
  height: 18px;
  margin-bottom: 14px;
  transform: rotate(-2deg);
  width: 176px;
}

body[data-page="detail"] .heat-copy::after {
  background:
    url("/assets/meme-hero.jpg");
  background-position: right -38px top -24px;
  background-repeat: no-repeat;
  background-size: 560px auto;
  bottom: -82px;
  clip-path: polygon(8% 4%, 88% 0, 100% 18%, 90% 46%, 100% 73%, 74% 100%, 44% 89%, 14% 100%, 0 72%, 9% 45%, 0 18%);
  content: "";
  filter:
    drop-shadow(6px 6px 0 #000000)
    drop-shadow(0 0 18px rgba(255, 243, 95, 0.38));
  height: 220px;
  opacity: 0.88;
  pointer-events: none;
  position: absolute;
  right: -230px;
  transform: rotate(7deg);
  width: 214px;
  z-index: 0;
}

.heat-quote::before,
.heat-quote::after,
.heat-copy::before {
  display: none;
}

.quote-head h2 {
  color: #fff8cf;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 6px;
  text-shadow:
    0 0 8px #fff8cf,
    0 0 22px #ffef5f,
    0 0 38px #ff4fd8,
    4px 4px 0 #000000;
  transform: rotate(-1.5deg);
  width: fit-content;
}

.index-subtitle {
  background: rgba(17, 16, 23, 0.76);
  border: 2px solid var(--meme-green);
  box-shadow:
    4px 4px 0 #000000,
    0 0 18px rgba(68, 255, 138, 0.34);
  color: var(--meme-green);
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  padding: 7px 10px;
  text-shadow:
    0 0 12px rgba(68, 255, 138, 0.82),
    2px 2px 0 #000000;
  transform: rotate(1deg);
}

#indexValue {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 56px),
    #08080c;
  border: 3px solid var(--heat-color);
  box-shadow:
    6px 6px 0 #000000,
    0 0 28px var(--heat-color);
  color: var(--heat-color);
  display: inline-block;
  font-size: 176px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  margin-top: 2px;
  padding: 10px 16px 16px;
  text-shadow:
    0 0 16px currentColor,
    0 0 38px rgba(255, 79, 216, 0.68),
    7px 7px 0 #000000;
  transform: rotate(-2deg);
}

#indexValue::after {
  color: #fff8cf;
  content: "/100";
  font-size: 34px;
  font-weight: 900;
  margin-left: 10px;
  text-shadow:
    0 0 10px #fff8cf,
    3px 3px 0 #000000;
}

.index-change {
  align-items: center;
  background: #111017;
  border: 2px solid currentColor;
  box-shadow:
    5px 5px 0 #000000,
    0 0 24px currentColor;
  display: inline-flex;
  font-size: 42px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 20px;
  padding: 8px 12px;
  position: relative;
  transform: rotate(-1deg);
  z-index: 5;
}

.index-change::before {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 16px;
  margin-right: 12px;
  width: 16px;
}

.index-change.overheat,
.index-change.hot,
.index-change.warm,
.index-change.calm,
.index-change.cold,
.index-change.flat {
  color: var(--heat-color);
}

#indexBasis {
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.45;
  margin-top: 14px;
  max-width: 520px;
  text-shadow:
    0 0 12px rgba(255, 79, 216, 0.82),
    3px 3px 0 #000000;
}

body[data-heat-mood="cold"][data-page="detail"] .quote-head h2 {
  color: #dff7ff;
  text-shadow:
    0 0 7px #dff7ff,
    0 0 18px #8ac8df,
    4px 4px 0 #020306;
}

body[data-heat-mood="cold"][data-page="detail"] .index-subtitle {
  border-color: #8ac8df;
  color: #dff7ff;
  text-shadow:
    0 0 10px rgba(138, 200, 223, 0.74),
    2px 2px 0 #000000;
}

body[data-heat-mood="cold"][data-page="detail"] #indexValue {
  border-color: #8ac8df;
  box-shadow:
    6px 6px 0 #000000,
    0 0 24px rgba(138, 200, 223, 0.58);
  color: #8ac8df;
}

body[data-heat-mood="cold"][data-page="detail"] #indexBasis {
  color: #dff7ff;
  text-shadow:
    0 0 9px rgba(138, 200, 223, 0.68),
    3px 3px 0 #000000;
}

.range-tab {
  background: #fff7cf;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 3px 3px 0 #000000;
  color: #111017;
  font-weight: 900;
  min-width: 46px;
  position: relative;
  transform: rotate(-3deg);
  z-index: 7;
}

.range-tab:nth-child(2n) {
  transform: rotate(2deg);
}

.range-tab.active {
  background: var(--meme-pink);
  border-color: #000000;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000000;
  transform: rotate(-1deg) translateY(-2px);
}

.quote-chart {
  contain: layout paint style;
  height: 270px;
  margin-top: 32px;
  position: relative;
  transform: rotate(0.7deg);
}

.public-chart {
  background:
    linear-gradient(rgba(255, 243, 95, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 255, 138, 0.08) 1px, transparent 1px),
    rgba(8, 8, 12, 0.86);
  background-size: 24px 24px;
  border: 2px solid #000000;
  border-radius: 2px 11px 3px 0;
  box-shadow:
    6px 6px 0 #000000,
    inset 0 0 24px rgba(255, 79, 216, 0.18),
    0 0 24px rgba(255, 243, 95, 0.18);
  height: min(38vh, 300px);
  min-height: 230px;
  overflow: hidden;
  padding: 0;
  position: relative;
  z-index: 1;
}

.public-chart::before {
  background:
    repeating-linear-gradient(90deg, var(--meme-yellow) 0 18px, #111017 18px 24px, var(--meme-pink) 24px 38px, #111017 38px 44px);
  content: "";
  height: 8px;
  left: 0;
  opacity: 0.7;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.public-chart::after {
  content: none;
  display: none;
}

body[data-heat-mood="cold"][data-page="detail"] .public-chart::after {
  content: none;
}

body[data-heat-mood="cold"][data-page="detail"] .public-chart {
  background:
    linear-gradient(rgba(138, 200, 223, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 200, 223, 0.08) 1px, transparent 1px),
    rgba(6, 9, 12, 0.9);
  box-shadow:
    6px 6px 0 #000000,
    inset 0 0 22px rgba(138, 200, 223, 0.14),
    0 0 22px rgba(97, 157, 183, 0.16);
}

body[data-heat-mood="cold"][data-page="detail"] .heat-reasons div {
  background:
    linear-gradient(135deg, #d7e4e8, #607482);
}

body[data-heat-mood="cold"][data-page="detail"] .heat-reasons div::after {
  background-image:
    url("/assets/meme-hero-cold.jpg");
  filter: none;
  mix-blend-mode: normal;
  opacity: 0.82;
}

.detail-meme-stickers {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.detail-meme-stickers .meme-sticker {
  max-width: min(250px, calc(100vw - 48px));
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-sticker-a {
  left: 30px;
  top: 245px;
  transform: rotate(-7deg) skew(3deg);
}

.detail-sticker-b {
  right: 34px;
  top: 124px;
  transform: rotate(8deg) skew(-4deg);
}

.detail-sticker-c {
  bottom: 126px;
  left: auto;
  right: 34px;
  transform: rotate(7deg) skew(-3deg);
}

.heat-reasons {
  border: 2px solid #000000;
  box-shadow: 6px 6px 0 #000000;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  isolation: isolate;
  margin-top: 26px;
  position: relative;
  transform: rotate(-0.8deg);
  z-index: 5;
}

.heat-reasons::before,
.heat-reasons::after {
  background:
    url("/assets/meme-hero.jpg");
  background-repeat: no-repeat;
  background-size: 410px auto;
  clip-path: polygon(9% 3%, 90% 0, 100% 20%, 93% 48%, 100% 76%, 72% 100%, 44% 91%, 14% 100%, 0 72%, 8% 43%, 0 17%);
  content: "";
  filter:
    drop-shadow(4px 4px 0 #000000)
    drop-shadow(0 0 12px rgba(255, 79, 216, 0.42));
  height: 98px;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  width: 108px;
  z-index: 0;
}

.heat-reasons::before {
  background-position: left -16px top -20px;
  left: -18px;
  top: -42px;
  transform: rotate(-11deg);
}

.heat-reasons::after {
  background-position: right -18px bottom -12px;
  bottom: -46px;
  right: 22px;
  transform: rotate(9deg);
}

.heat-reasons div {
  background:
    linear-gradient(135deg, #fff7cf, #fff35f);
  border-right: 2px solid #000000;
  overflow: hidden;
  padding: 16px;
  position: relative;
  transform: rotate(0.8deg);
  z-index: 2;
}

.heat-reasons div::after {
  background:
    url("/assets/meme-hero.jpg");
  background-repeat: no-repeat;
  background-size: 400px auto;
  bottom: -14px;
  clip-path: polygon(8% 4%, 90% 0, 100% 22%, 92% 48%, 100% 76%, 72% 100%, 44% 90%, 13% 100%, 0 72%, 8% 43%, 0 17%);
  content: "";
  filter: none;
  height: 118px;
  mix-blend-mode: normal;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  right: -8px;
  transform: rotate(-7deg);
  width: 126px;
  z-index: 1;
}

.heat-reasons div:nth-child(1)::after {
  background-position: left -6px top -8px;
}

.heat-reasons div:nth-child(2)::after {
  background-position: right -6px top 4px;
  transform: rotate(8deg);
}

.heat-reasons div:nth-child(3)::after {
  background-position: right -14px bottom -2px;
  transform: rotate(-4deg);
}

.heat-reasons div:nth-child(4)::after {
  background-position: left -18px bottom -2px;
  transform: rotate(10deg);
}

.heat-reasons div > * {
  position: relative;
  z-index: 2;
}

.heat-reasons div:nth-child(2n) {
  transform: rotate(-1.2deg) translateY(3px);
}

.heat-reasons div:nth-child(3) {
  transform: rotate(1.6deg) translateY(-2px);
}

.heat-reasons div:nth-child(2) {
  background:
    linear-gradient(135deg, #44ff8a, #fff7cf);
}

.heat-reasons div:nth-child(3) {
  background:
    linear-gradient(135deg, #24a7ff, #fff7cf);
}

.heat-reasons div:nth-child(4) {
  background:
    linear-gradient(135deg, #ff4fd8, #fff7cf);
}

.heat-reasons div:last-child {
  border-right: 0;
}

.heat-reasons span {
  background: rgba(17, 16, 23, 0.92);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #fff7cf;
  color: #fff7cf;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 7px 4px;
  width: max-content;
}

.heat-reasons strong {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 16, 23, 0.96), rgba(4, 4, 8, 0.9));
  border: 3px solid #fff7cf;
  box-shadow:
    3px 3px 0 #000000,
    0 0 0 2px #000000;
  color: var(--heat-color);
  display: inline-flex;
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  margin-top: 7px;
  min-width: 58px;
  padding: 4px 8px 5px;
  text-shadow: 2px 2px 0 #000000;
  transform: rotate(-2deg);
}

.ad-band {
  margin: 24px auto 0;
  max-width: 1120px;
}

.ad-band[hidden] {
  display: none !important;
}

.ad-slot {
  background: #fbfbf8;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 96px;
  overflow: hidden;
}

.ad-slot .adsbygoogle {
  min-height: 96px;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.publisher-note {
  background: #fff7cf;
  border: 2px solid #000000;
  box-shadow: 5px 5px 0 #000000;
  color: #171b18;
  margin: 24px auto 0;
  max-width: 1120px;
  padding: 16px 18px;
}

.detail-publisher-note {
  margin-top: 24px;
}

.publisher-note h2,
.publisher-note summary {
  color: #111017;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.publisher-note summary {
  cursor: pointer;
  margin-top: 10px;
  user-select: none;
}

.publisher-note summary:hover {
  text-decoration: underline;
}

.publisher-note h3 {
  color: #111017;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 7px;
}

.publisher-note p {
  color: #29251c;
  font-size: 15px;
  line-height: 1.68;
  margin: 0;
}

.publisher-note > p + p {
  margin-top: 10px;
}

.publisher-note-details > p {
  margin-top: 10px;
}

.publisher-note a {
  color: #111017;
  font-weight: 800;
}

.publisher-note-grid {
  border-top: 1px solid rgba(17, 16, 23, 0.28);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding-top: 18px;
}

.public-footer {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 18px auto 0;
  max-width: 1120px;
  padding-top: 12px;
}

.public-footer a {
  color: var(--faint);
  font-size: 12px;
  text-decoration: none;
}

.public-footer a:hover {
  color: var(--muted);
  text-decoration: underline;
}

.info-shell {
  margin: 0 auto;
  max-width: 760px;
  min-height: 100vh;
  padding: 24px 20px 28px;
}

.info-top {
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding-bottom: 14px;
}

.info-top a {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.info-page h1 {
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 20px;
}

.info-page h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 26px 0 8px;
}

.info-page p {
  color: #3c4043;
  font-size: 15px;
  line-height: 1.72;
  margin: 0 0 14px;
}

.info-page a {
  color: var(--text);
}

.policy-date {
  color: var(--muted) !important;
  font-size: 13px !important;
}

.quote-chart canvas {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.market-stats {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-top: 20px;
}

.market-stats div {
  border-right: 1px solid var(--border);
  padding: 14px 16px 0 0;
}

.market-stats div:not(:first-child) {
  padding-left: 16px;
}

.market-stats div:last-child {
  border-right: 0;
}

.market-stats span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.market-stats strong {
  display: block;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
}

#positivePosts {
  color: var(--up);
}

#negativePosts {
  color: var(--down);
}

.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
  margin: 0 auto;
  max-width: 1480px;
}

.main-panel,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.main-panel {
  min-width: 0;
  padding: 0;
}

.table-wrap {
  max-height: 420px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--muted-surface);
  color: var(--muted);
  font-weight: 700;
  position: sticky;
  top: 0;
}

td {
  line-height: 1.35;
}

td a {
  color: var(--text);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

.side-panel {
  overflow: hidden;
}

.side-head {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.side-head h2 {
  font-size: 16px;
  font-weight: 800;
}

.side-head span {
  color: var(--muted);
  font-size: 12px;
}

.stock-list {
  max-height: calc(100vh - 488px);
  overflow: auto;
}

.stock-item {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 8px;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 12px 14px;
}

.tag {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  line-height: 22px;
  text-align: center;
}

.tag.positive {
  background: #fff0ef;
  border: 1px solid #f2c3bd;
  color: var(--up);
}

.tag.negative {
  background: #eaf5fd;
  border: 1px solid #b8ddf5;
  color: var(--down);
}

.tag.neutral {
  background: #f2f3f4;
  border: 1px solid #d6d9dd;
  color: var(--neutral);
}

.stock-item a {
  color: var(--text);
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.stock-item a:hover {
  text-decoration: underline;
}

.stock-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 16px 14px;
}

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .stock-list {
    max-height: none;
  }

  .community-gauge-card {
    grid-template-columns: 1fr;
  }

  .community-gauge-side {
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meme-hero,
  .meme-hero h1,
  .community-gauge-card,
  .community-gauge-card::after,
  .market-card,
  body[data-heat-mood="cold"] .title-on {
    animation: none;
  }
}

@media (max-width: 720px) {
  body[data-page="home"],
  body[data-page="detail"] {
    background:
      radial-gradient(circle at 12% 4%, rgba(255, 79, 216, 0.18), transparent 240px),
      radial-gradient(circle at 90% 0%, rgba(68, 255, 138, 0.14), transparent 260px),
      linear-gradient(180deg, #121018 0, #17130f 58%, #0e0e10 100%);
    background-size: auto;
  }

  body[data-heat-mood="cold"][data-page="home"],
  body[data-heat-mood="cold"][data-page="detail"] {
    background:
      radial-gradient(circle at 14% 8%, rgba(99, 139, 158, 0.15), transparent 240px),
      radial-gradient(circle at 84% 0%, rgba(54, 70, 90, 0.18), transparent 260px),
      linear-gradient(180deg, #10141a 0%, #171b20 52%, #0b0d11 100%);
  }

  .home-shell {
    background: none;
  }

  .shell {
    padding: 14px 16px 22px;
  }

  .topbar,
  .home-header,
  .quote-head {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .top-actions {
    align-items: stretch;
  }

  button,
  .top-actions a {
    justify-content: center;
  }

  .detail-nav {
    padding-top: 0;
  }

  .meme-hero {
    animation: none;
    background-position: left center;
    box-shadow:
      0 0 0 3px var(--meme-yellow),
      5px 5px 0 #000000,
      0 0 18px rgba(255, 79, 216, 0.32);
    min-height: 330px;
    padding: 28px 18px 20px;
  }

  body[data-heat-mood="cold"] .meme-hero {
    box-shadow:
      0 0 0 3px #a9c7d4,
      5px 5px 0 #000000,
      0 0 16px rgba(97, 157, 183, 0.32);
    filter: none;
  }

  .meme-hero::after {
    opacity: 0.1;
  }

  .meme-hero::before {
    background-position: left -9px top -17px;
    background-size: 430px auto;
    bottom: 82px;
    height: 118px;
    right: 14px;
    width: 128px;
  }

  .meme-hero h1 {
    font-size: 41px;
    max-width: 265px;
  }

  .meme-subtitle {
    font-size: 16px !important;
    max-width: 285px;
  }

  .meme-sticker {
    font-size: 13px;
    padding: 8px 9px;
  }

  .meme-hero .meme-sample {
    display: none;
  }

  .sticker-rocket {
    bottom: 22px;
    right: 18px;
  }

  .sticker-chat {
    bottom: 22px;
    left: 18px;
  }

  .market-board {
    padding-top: 18px;
  }

  .community-overview {
    padding-top: 18px;
  }

  .community-gauge-card {
    box-shadow:
      5px 5px 0 #000000,
      0 0 16px var(--gauge-heat-color);
    gap: 16px;
    min-height: 0;
    padding: 16px;
  }

  .community-gauge-card::after {
    display: none;
  }

  .community-gauge-visual {
    box-shadow:
      inset 0 0 14px rgba(255, 79, 216, 0.2),
      3px 3px 0 #000000;
    min-height: 210px;
  }

  .gauge-band-label {
    font-size: 18px;
  }

  .gauge-tick-label {
    font-size: 17px;
  }

  .gauge-needle {
    stroke-width: 8;
  }

  .community-gauge-readout {
    bottom: -8px;
  }

  .community-gauge-readout strong {
    font-size: 34px;
  }

  .gauge-label {
    font-size: 18px;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-card {
    box-shadow:
      4px 4px 0 #000000,
      0 0 14px rgba(255, 243, 95, 0.1);
    min-height: 238px;
    padding: 18px;
  }

  .market-card::after {
    opacity: 0.14;
  }

  .market-card::before {
    bottom: 82px;
    height: 104px;
    right: 8px;
    width: 120px;
  }

  .market-card h2 {
    font-size: 25px;
  }

  .market-value {
    font-size: 48px;
  }

  .market-change {
    font-size: 20px;
  }

  .range-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .quote-panel {
    padding-top: 20px;
  }

  body[data-page="detail"] .heat-quote::before {
    right: 18px;
    top: 18px;
  }

  body[data-page="detail"] .heat-quote::after {
    bottom: 18px;
    right: 16px;
  }

  body[data-page="detail"] .heat-copy::after {
    background-size: 420px auto;
    bottom: -68px;
    height: 142px;
    opacity: 0.72;
    right: -12px;
    width: 136px;
  }

  .detail-meme-stickers .meme-sticker {
    font-size: 12px;
    max-width: 138px;
    padding: 7px 8px;
  }

  .detail-sticker-a {
    left: 18px;
    top: 205px;
  }

  .detail-sticker-b {
    right: 16px;
    top: 122px;
  }

  .detail-sticker-c {
    bottom: 104px;
    left: auto;
    right: 20px;
  }

  .quote-head h2 {
    font-size: 31px;
  }

  #indexValue {
    font-size: 58px;
  }

  .index-change {
    font-size: 31px;
  }

  .quote-chart {
    height: 220px;
    transform: rotate(0.35deg);
  }

  .public-shell {
    padding: 14px 14px 18px;
  }

  .public-chart {
    height: 250px;
  }

  .heat-reasons {
    border: 1px solid var(--border);
    border-radius: 2px 9px 0 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
    overflow: hidden;
  }

  .heat-reasons::before {
    height: 66px;
    left: -10px;
    top: -28px;
    width: 72px;
  }

  .heat-reasons::after {
    bottom: -30px;
    height: 70px;
    right: 4px;
    width: 76px;
  }

  .heat-reasons div {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 14px;
  }

  .heat-reasons div:not(:first-child) {
    padding-left: 14px;
  }

  .heat-reasons div:nth-child(2n) {
    border-right: 0;
  }

  .heat-reasons div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ad-band {
    margin-top: 18px;
  }

  .ad-slot,
  .ad-slot .adsbygoogle {
    min-height: 100px;
  }

  .publisher-note {
    box-shadow: 4px 4px 0 #000000;
    margin-top: 22px;
    padding: 18px;
  }

  .publisher-note h2 {
    font-size: 20px;
  }

  .publisher-note-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .public-footer {
    gap: 10px;
    margin-top: 14px;
  }

  .info-shell {
    padding: 20px 16px 24px;
  }

  .market-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-stats div {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 12px 10px 12px 0;
  }

  .market-stats div:not(:first-child) {
    padding-left: 10px;
  }
}
