/* ============================================================
   Scene: comic — 美式漫画 + 涂鸦 · 分镜介绍
   奶油纸底 + 半调网点 / 粗黑描边分镜 / 爆炸对话框 / 速度线
   ============================================================ */

.scene-comic {
  --paper: #fff8e7;
  --ink: #111;
  --red: #ff3b30;
  --yellow: #ffd500;
  --blue: #2b7fff;
  --cream: #fffdf5;

  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(17, 17, 17, 0.10) 1.4px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 59, 48, 0.07) 1.4px, transparent 1.5px);
  background-size: 22px 22px, 44px 44px;
  background-position: 0 0, 11px 11px;
  animation: comic-drift 16s linear infinite;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--ink);
}

@keyframes comic-drift {
  to { background-position: 22px 0, 55px 11px; }
}

/* ---------- 舞台与漫画页框 ---------- */

.scene-comic .comic-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(14px, 2.2vw, 30px);
}

.scene-comic .comic-stage::after {
  content: '';
  position: absolute;
  inset: clamp(6px, 1vw, 12px);
  border: 4px solid var(--ink);
  pointer-events: none;
  z-index: 20;
}

/* ---------- 速度线 ---------- */

.scene-comic .speedlines {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(17, 17, 17, 0.6) 0deg 1deg,
    transparent 1deg 8deg
  );
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
}

.scene-comic .speedlines-tr { top: -23vmax; right: -23vmax; }
.scene-comic .speedlines-bl { bottom: -23vmax; left: -23vmax; }

/* ---------- 刊头 ---------- */

.scene-comic .masthead {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: clamp(2px, 1vh, 12px);
}

.scene-comic .masthead-dots {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(64%, 620px);
  height: 118%;
  transform: translate(-50%, -50%) rotate(-2deg);
  background-image: radial-gradient(rgba(255, 213, 0, 0.55) 2.4px, transparent 2.6px);
  background-size: 15px 15px;
  z-index: 0;
  pointer-events: none;
}

.scene-comic .kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 clamp(4px, 1vh, 10px);
  padding: 0.35em 1.1em;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.55rem, 1.1vw, 0.75rem);
  letter-spacing: 0.28em;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.scene-comic .title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', sans-serif;
  font-size: clamp(2.7rem, 9vw, 7.2rem);
  line-height: 1.05;
  color: var(--ink);
  text-shadow:
    0.045em 0.045em 0 var(--yellow),
    0.09em 0.09em 0 var(--ink);
}

.scene-comic .title-x {
  font-family: 'Archivo Black', 'ZCOOL KuaiLe', sans-serif;
  color: var(--red);
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.028em var(--ink);
}

.scene-comic .title-dot { color: var(--red); }

.scene-comic .tagline {
  position: relative;
  z-index: 1;
  margin: clamp(4px, 1vh, 10px) auto 0;
  font-size: clamp(0.78rem, 1.5vw, 1.02rem);
  font-weight: 700;
}

/* ---------- 分镜面板 ---------- */

.scene-comic .panels {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2vw, 1.7rem);
  align-content: center;
  padding: clamp(8px, 2vh, 20px) clamp(6px, 2vw, 24px);
}

.scene-comic .panel {
  position: relative;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--cream);
  padding: clamp(1.7rem, 3.2vh, 2.5rem) clamp(0.75rem, 1.4vw, 1.25rem) clamp(0.7rem, 1.6vh, 1.1rem);
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
}

.scene-comic .panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 17, 17, 0.13) 1.1px, transparent 1.2px);
  background-size: 11px 11px;
  opacity: 0.45;
  pointer-events: none;
}

.scene-comic .panel > * { position: relative; z-index: 1; }

.scene-comic .panel-1 { transform: rotate(-2deg); }
.scene-comic .panel-2 { transform: rotate(1.5deg); background: var(--yellow); }
.scene-comic .panel-3 { transform: rotate(-1.2deg); background: var(--blue); color: #fff; }
.scene-comic .panel-4 { transform: rotate(2deg); }

.scene-comic .caption {
  position: absolute;
  top: 0;
  left: clamp(6px, 1vw, 12px);
  transform: translateY(-38%) rotate(-3deg);
  z-index: 2;
  display: inline-block;
  padding: 0.18em 0.65em;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(0.68rem, 1.15vw, 0.9rem);
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

.scene-comic .panel-title {
  margin: 0 0 0.45em;
  font-family: 'ZCOOL KuaiLe', sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.15;
}

.scene-comic .panel-3 .panel-title { text-shadow: 2px 2px 0 var(--ink); }
.scene-comic .panel-1 .panel-title { color: var(--red); }
.scene-comic .panel-4 .panel-title { color: var(--red); }

.scene-comic .panel-text {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.92rem);
  font-weight: 700;
  line-height: 1.65;
  max-width: 88%;
}

.scene-comic .panel-no {
  position: absolute;
  top: 0.02em;
  right: 0.12em;
  z-index: 1;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  opacity: 0.22;
  pointer-events: none;
}

.scene-comic .panel-3 .panel-no { -webkit-text-stroke: 2px #fff; opacity: 0.35; }

/* ---------- 面板内涂鸦 ---------- */

.scene-comic .doodle {
  position: absolute;
  right: 3%;
  bottom: 3%;
  width: clamp(42px, 5.2vw, 80px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.scene-comic .doodle-dragon { width: clamp(58px, 7vw, 108px); }

/* ---------- 爆炸对话框 ---------- */

.scene-comic .burst {
  position: absolute;
  z-index: 6;
  width: clamp(86px, 10.5vw, 148px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  clip-path: polygon(
    98% 50%, 81.9% 58.5%, 91.6% 74%, 73.3% 73.3%, 74% 91.6%, 58.5% 81.9%,
    50% 98%, 41.5% 81.9%, 26% 91.6%, 26.7% 73.3%, 8.4% 74%, 18.1% 58.5%,
    2% 50%, 18.1% 41.5%, 8.4% 26%, 26.7% 26.7%, 26% 8.4%, 41.5% 18.1%,
    50% 2%, 58.5% 18.1%, 74% 8.4%, 73.3% 26.7%, 91.6% 26%, 81.9% 41.5%
  );
}

.scene-comic .burst-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.6rem);
  transform: rotate(-6deg);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.scene-comic .burst-1 {
  top: 14%;
  left: 3.2%;
  background: var(--red);
  color: #fff;
  transform: rotate(-10deg);
}

.scene-comic .burst-1 .burst-label { text-shadow: 3px 3px 0 var(--ink); }

.scene-comic .burst-2 {
  top: 56%;
  right: 2.6%;
  background: var(--blue);
  color: #fff;
  transform: rotate(8deg);
}

.scene-comic .burst-2 .burst-label { text-shadow: 3px 3px 0 var(--ink); }

.scene-comic .burst-3 {
  bottom: 8%;
  left: 5.5%;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-4deg);
}

/* ---------- 贴纸 ---------- */

.scene-comic .sticker {
  position: absolute;
  z-index: 5;
  width: clamp(42px, 5.5vw, 82px);
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.scene-comic .sticker svg { display: block; width: 100%; height: auto; }

.scene-comic .sticker-star { top: 11%; right: 13%; transform: rotate(12deg); }
.scene-comic .sticker-smile { bottom: 13%; right: 15%; transform: rotate(-8deg); }

/* ---------- 底部提示 ---------- */

.scene-comic .hint {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2.5em;
  flex-wrap: wrap;
  padding: clamp(2px, 0.8vh, 8px) 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  letter-spacing: 0.08em;
  opacity: 0.72;
}

/* ---------- 响应式：≤900px 两列 ---------- */

@media (max-width: 900px) {
  .scene-comic .panels {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.7rem;
    padding: 0.5rem 0.4rem;
  }

  .scene-comic .panel {
    border-width: 3px;
    box-shadow: 5px 5px 0 var(--ink);
    padding: 1.35rem 0.65rem 0.5rem;
  }

  .scene-comic .panel-title { font-size: clamp(1rem, 4.6vw, 1.35rem); margin-bottom: 0.3em; }

  .scene-comic .panel-text {
    font-size: clamp(0.64rem, 2.9vw, 0.78rem);
    line-height: 1.5;
    max-width: 100%;
  }

  .scene-comic .caption { font-size: 0.58rem; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }

  .scene-comic .panel-no { font-size: 1.6rem; -webkit-text-stroke-width: 1.5px; }

  .scene-comic .doodle { width: clamp(30px, 9vw, 44px); }
  .scene-comic .doodle-dragon { width: clamp(42px, 12vw, 60px); }

  .scene-comic .burst { width: clamp(62px, 17vw, 92px); }
  .scene-comic .burst-label { font-size: clamp(0.62rem, 2.6vw, 0.85rem); }
  .scene-comic .burst-1 { top: 10%; left: 1.5%; }
  .scene-comic .burst-2 { top: auto; bottom: 26%; right: 1.5%; }
  .scene-comic .burst-3 { bottom: 6%; left: 3%; }

  .scene-comic .sticker { width: clamp(30px, 9vw, 46px); }
  .scene-comic .sticker-star { top: 8.5%; right: 9%; }
  .scene-comic .sticker-smile { display: none; }

  .scene-comic .hint { gap: 1.2em; }
}

/* ---------- 响应式：≤480px 收紧刊头 ---------- */

@media (max-width: 480px) {
  .scene-comic .kicker { letter-spacing: 0.16em; }
  .scene-comic .title { font-size: clamp(2.1rem, 12.5vw, 3.2rem); }
  .scene-comic .tagline { font-size: 0.72rem; }
  .scene-comic .masthead-dots { width: 88%; }
}
