﻿.resistance-entry {
  width: min(460px, 92vw);
  margin-top: 12px;
  border: 1px solid rgba(255, 77, 174, 0.5);
  background: linear-gradient(135deg, rgba(33, 6, 36, 0.86), rgba(5, 20, 47, 0.86));
  box-shadow: 0 0 18px rgba(240, 43, 145, 0.2), inset 0 0 16px rgba(132, 47, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  animation: rPulse 3.2s ease-in-out infinite;
}

.resistance-entry.hidden,
.resistance-entry-locked.hidden { display: none; }

.resistance-entry-title { color: #ff66c2; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 4px; }
.resistance-entry-subtitle { color: #9bd5ff; font-size: 12px; margin-bottom: 10px; }

.resistance-entry-btn,
.resistance-unlock-btn {
  width: 100%;
  border: 1px solid rgba(255, 106, 199, 0.8);
  background: linear-gradient(90deg, rgba(129, 11, 79, 0.95), rgba(52, 10, 104, 0.95));
  color: #ffe6fb;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.resistance-entry-btn:hover,
.resistance-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 78, 192, 0.35);
  border-color: rgba(127, 215, 255, 0.9);
}

.resistance-entry-locked {
  width: min(460px, 92vw);
  margin-top: 12px;
  border: 1px dashed rgba(131, 164, 204, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  color: #88a1c6;
  font-size: 12px;
  background: rgba(3, 12, 25, 0.45);
  white-space: pre-line;
  animation: rBreath 2.8s ease-in-out infinite;
}

.resistance-unlock-btn { margin-top: 10px; }

.resistance-ad-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 220;
}
.resistance-ad-modal.hidden { display: none; }

.resistance-ad-card {
  width: min(400px, 90vw);
  border: 1px solid rgba(255, 98, 191, 0.65);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(27, 8, 36, 0.95), rgba(10, 21, 49, 0.95));
  box-shadow: 0 0 24px rgba(255, 52, 171, 0.22), inset 0 0 20px rgba(132, 43, 255, 0.14);
  padding: 16px;
  text-align: center;
}

.resistance-ad-title { color: #ff90d8; font-size: 20px; margin-bottom: 8px; }
.resistance-ad-text { color: #bbd5f0; font-size: 14px; margin-bottom: 10px; }
.resistance-ad-countdown { color: #66d9ff; font-size: 16px; letter-spacing: 0.08em; }

#resistance-screen {
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(2px);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#resistance-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 0, 137, 0.12), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(116, 0, 255, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(1, 7, 18, 0.38), rgba(2, 7, 18, 0.52));
  pointer-events: none;
}

#resistance-screen::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 72, 175, 0.16), transparent);
  animation: rScanline 8s linear infinite;
  pointer-events: none;
  z-index: 101;
}

.resistance-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 16px;
  padding: 14px 16px 16px;
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.r-panel,
.r-main-column,
.r-monitor-panel {
  background: linear-gradient(180deg, rgba(7, 14, 28, 0.9), rgba(4, 10, 20, 0.82));
  border: 1px solid rgba(255, 98, 191, 0.2);
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(255, 98, 191, 0.04);
  padding: 14px;
  position: relative;
  overflow: hidden;
  align-self: start;
}

.r-panel::before,
.r-main-column::before,
.r-monitor-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 3px,
    transparent 6px
  );
  opacity: 0.22;
}

.r-panel-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.r-panel-title em {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(255, 114, 206, 0.92);
  font-style: normal;
}
.r-panel-title span {
  font-size: 0.9rem;
  color: #f8e7f8;
  font-weight: 700;
}

.r-comm-avatar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: 10px;
  border: 1px solid rgba(255, 98, 191, 0.26);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255, 98, 191, 0.16), rgba(8, 16, 30, 0.86));
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(255, 98, 191, 0.14), inset 0 0 20px rgba(255, 98, 191, 0.08);
  animation: rCommBreath 3.2s ease-in-out infinite;
}

.r-avatar { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.9); }

.r-avatar-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 98, 191, 0.16), transparent);
  animation: rCommScan 4.8s linear infinite;
}

.r-comm-name {
  font-size: 1.15rem;
  color: #fef0ff;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(255, 98, 191, 0.24);
  position: relative;
  z-index: 1;
}

.r-comm-role,
.r-comm-signal {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.r-comm-role { color: rgba(255, 114, 206, 0.9); margin-bottom: 6px; }
.r-comm-signal { color: rgba(205, 181, 213, 0.86); padding-top: 7px; border-top: 1px solid rgba(255, 98, 191, 0.22); }

.r-comm-wave {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 4px;
}

.r-comm-wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 114, 206, 1), rgba(255, 114, 206, 0.4));
  box-shadow: 0 0 8px rgba(255, 114, 206, 0.25);
  animation: rCommWave 1.3s ease-in-out infinite;
  height: 20%;
}

.r-main-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
  box-shadow: none;
}

.r-main-column::before { display: none; }

.r-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(18, 18, 26, 0.9);
  border-bottom: 1px solid rgba(255, 98, 191, 0.18);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.r-title { color: #ffd8f6; font-size: 0.95rem; letter-spacing: 0.06em; }
.r-sub { color: rgba(255, 118, 208, 0.78); font-size: 0.65rem; margin-top: 2px; }
.r-chapter {
  color: #ff8cd7;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.r-system-prompt {
  margin: 0.75rem auto 0;
  width: min(760px, 100%);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255, 133, 212, 0.96);
  border: 1px solid rgba(255, 98, 191, 0.32);
  border-radius: 6px;
  background: rgba(255, 98, 191, 0.11);
  padding: 6px 10px;
}

.resistance-story-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.05rem 1.2rem 0.8rem;
  scroll-behavior: smooth;
  background: transparent;
  border: none;
  box-shadow: none;
}

.resistance-story-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.resistance-story-content::before {
  content: 'UNAUTHORIZED TRACE  |  MEMORY STREAM  |  SIGNAL NOISE  |  SYSTEM WATCH';
  position: sticky;
  top: 2px;
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: rgba(255, 114, 206, 0.08);
  pointer-events: none;
  z-index: 0;
  margin-bottom: 4px;
}

.r-line {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #f4e8ff;
  opacity: 0;
  animation: rFadeInUp 0.45s ease forwards;
  background: rgba(10, 10, 15, 0.56);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(106, 79, 119, 0.42);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
  position: relative;
}

.r-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 114, 206, 0.8);
}

.r-line.r-speaker-system::before { background: rgba(126, 223, 255, 0.86); }
.r-line.r-speaker-rebel::before { background: rgba(255, 89, 173, 0.92); }
.r-line.r-speaker-ai::before { background: rgba(135, 212, 255, 0.86); }
.r-line.r-speaker-hr::before { background: rgba(211, 229, 248, 0.85); }
.r-line.r-speaker-self::before { background: rgba(187, 132, 255, 0.86); }
.r-line.r-speaker-system { font-size: 0.96rem; letter-spacing: 0.04em; }
.r-line.r-speaker-rebel,
.r-line.r-speaker-ai,
.r-line.r-speaker-hr,
.r-line.r-speaker-self { font-size: 1.02rem; }

.r-speaker {
  font-family: 'Courier New', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #ff9cde;
  margin-right: 0.45rem;
}

.r-text { color: #ecf2ff; }

.r-choice-feedback {
  margin: 0 auto;
  width: min(760px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 114, 206, 0.38);
  background: rgba(255, 114, 206, 0.11);
  color: rgba(255, 185, 232, 0.98);
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  animation: rFeedbackFade 1.2s ease forwards;
}
.r-choice-feedback.hidden { display: none; }

.resistance-choices-container {
  flex-shrink: 0;
  padding: 0.9rem 1rem 1rem;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
  width: min(760px, 100%);
  align-self: center;
  position: relative;
  margin-top: 42px;
}
.resistance-choices-container.is-hidden { visibility: hidden; }

.r-choice-btn {
  background: linear-gradient(180deg, rgba(32, 12, 34, 0.82), rgba(18, 8, 28, 0.9));
  border: 1px solid rgba(255, 114, 206, 0.24);
  color: #f7eaff;
  padding: 1.08rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 56px;
  line-height: 1.5;
  box-shadow: inset 0 0 14px rgba(255, 114, 206, 0.06);
  opacity: 0;
  transform: translateY(8px);
  animation: rChoiceIn .34s ease forwards;
}

.r-choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 114, 206, 0.95), rgba(170, 123, 255, 0.95));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.r-choice-btn:hover::before,
.r-choice-btn:active::before {
  opacity: 1;
}

.r-choice-btn:hover,
.r-choice-btn:active {
  background: linear-gradient(180deg, rgba(44, 16, 46, 0.92), rgba(22, 10, 35, 0.96));
  border-color: rgba(255, 134, 219, 0.86);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 114, 206, 0.24), inset 0 0 18px rgba(255, 114, 206, 0.08);
  animation: none;
}

.r-choice-btn:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 114, 206, 0.06) 50%, transparent 100%);
  animation: rDataSweep 2s linear infinite;
  pointer-events: none;
}

.r-choice-btn.is-picked {
  border-color: rgba(255, 188, 236, 1);
  box-shadow: 0 0 24px rgba(255, 114, 206, .42);
}

.r-choice-btn[disabled] {
  opacity: .58;
  cursor: not-allowed;
}

.r-monitor-panel { position: relative; }

.resistance-monitor-metrics {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.resistance-metric-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  padding: 7px 8px;
  border-radius: 6px;
  color: rgba(235, 198, 223, 0.92);
  border: 1px solid rgba(255, 114, 206, 0.16);
  background: rgba(40, 12, 34, 0.38);
}

.resistance-metric-row em {
  font-style: normal;
  color: rgba(255, 159, 224, 0.92);
  font-weight: 700;
}

.resistance-metric-row b {
  color: rgba(255, 222, 245, 0.96);
  font-weight: 700;
}

.r-risk-state {
  margin: 8px 0;
  border: 1px dashed rgba(255, 114, 206, 0.4);
  border-radius: 8px;
  padding: 7px 8px;
  color: #fface6;
  font-size: 12px;
}

.resistance-monitor-log {
  border: 1px solid rgba(255, 114, 206, 0.16);
  background: rgba(40, 12, 34, 0.24);
}

.resistance-monitor-log .monitor-log-title {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(255, 122, 212, 0.95);
  margin-bottom: 6px;
}

.resistance-monitor-log .monitor-log-list {
  display: grid;
  gap: 4px;
  max-height: 84px;
  overflow: hidden;
}

.resistance-monitor-log .monitor-log-list .r-log-item {
  font-family: 'Courier New', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  color: rgba(241, 210, 233, 0.8);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  opacity: 0.95;
  border-left: 2px solid rgba(255, 114, 206, 0.58);
  padding-left: 6px;
}

.resistance-anomaly-card {
  margin-top: 12px;
  border: 1px dashed rgba(255, 114, 206, 0.46);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(46, 8, 35, 0.35), rgba(18, 6, 20, 0.42));
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: rAnomalyPulse 4.8s ease-in-out infinite, rAnomalyGlitch 8s steps(2, end) infinite;
}

.resistance-anomaly-card .signal-title {
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(255, 114, 206, 0.88);
}

.resistance-anomaly-card .signal-subtitle {
  font-size: 0.8rem;
  color: #ffe7f4;
  margin-top: 2px;
  font-weight: 700;
}

.resistance-anomaly-card .signal-state {
  margin-top: 8px;
  display: inline-block;
  font-size: 0.68rem;
  color: rgba(255, 234, 246, 0.95);
  border: 1px solid rgba(255, 114, 206, 0.42);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 114, 206, 0.1);
}

.resistance-anomaly-card:hover {
  border-color: rgba(255, 114, 206, 0.74);
  box-shadow: 0 0 18px rgba(255, 114, 206, 0.2), inset 0 0 22px rgba(255, 114, 206, 0.09);
  transform: translateY(-1px);
}

.r-actions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.r-action-btn {
  border: 1px solid rgba(255, 114, 206, 0.42);
  background: rgba(37, 11, 34, 0.86);
  color: #ffdff3;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}

.r-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(31, 7, 24, 0.92);
  border: 1px solid rgba(255, 95, 194, 0.5);
  color: #ffd9f5;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 230;
}
.r-toast.show { opacity: 1; }

.r-chapter-intro {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 12, 0.92);
}
.r-chapter-intro.hidden { display: none; }

.r-intro-noise {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012), rgba(255,255,255,.012) 1px, transparent 1px, transparent 3px),
    linear-gradient(90deg, rgba(255,70,180,.05), transparent 40%, rgba(90,220,255,.03));
  animation: rNoise .42s linear infinite;
}

.r-intro-content { position: relative; text-align: center; animation: rIntroIn .4s ease; }
.r-intro-top {
  color: rgba(186, 229, 255, 0.88);
  letter-spacing: .35em;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  opacity: .45;
  margin-bottom: 10px;
}
.r-intro-index { color: #ff9be0; letter-spacing: .28em; font-size: 18px; font-weight: 700; margin-top: 18px; margin-bottom: 8px; }
.r-intro-title { color: #f9ecff; font-size: clamp(54px, 7vw, 84px); font-weight: 900; letter-spacing: .12em; text-shadow: 0 0 26px rgba(255,114,206,.28); line-height: 1.1; margin-top: 22px; }
.r-intro-subtitle { color: #f0bee5; letter-spacing: .45em; font-size: 14px; margin-top: 12px; opacity: .65; font-family: 'Courier New', monospace; }
.r-intro-bottom {
  margin-top: 42px;
  color: rgba(137, 225, 255, 0.9);
  letter-spacing: .22em;
  font-size: 12px;
  opacity: .45;
  font-family: 'Courier New', monospace;
}

.r-ending {
  border: 1px solid rgba(255, 114, 206, .42);
  border-radius: 12px;
  padding: 14px;
  background: rgba(24, 8, 29, .54);
}
.r-ending.r-ending-archive { border-color: rgba(112, 214, 255, .58); box-shadow: 0 0 20px rgba(69, 179, 255, .2); }
.r-ending.r-ending-silent { border-color: rgba(166, 138, 255, .52); box-shadow: 0 0 20px rgba(132, 88, 255, .2); }
.r-ending.r-ending-unauthorized { border-color: rgba(255, 83, 176, .62); box-shadow: 0 0 20px rgba(255, 58, 139, .28); }
.r-ending-label { color: #f2cbe9; font-size: 12px; }
.r-ending-title { color: #ffd8f7; font-size: 36px; text-shadow: 0 0 18px rgba(255, 114, 206, 0.38); margin: 6px 0; }
.r-ending-en { color: #f2b6df; letter-spacing: 0.22em; font-size: 12px; }
.r-ending-type { color: #ffd8f3; margin: 8px 0; }
.r-ending-verdict { color: #fff2ff; padding: 8px; border: 1px solid rgba(255, 127, 211, .32); border-radius: 8px; background: rgba(58, 18, 48, .36); }
.r-ending-stats { color: #ffc3e8; font-size: 12px; margin-top: 8px; }
.r-ending-report { color: #ffe9fb; line-height: 1.6; padding-left: 16px; }
.r-ending-final { color: #ffffff; font-size: 18px; margin-top: 12px; }
.r-ending-tags { color: #ff9bde; margin-top: 8px; }
.r-ending-actions { display: grid; gap: 8px; margin-top: 12px; }

@keyframes rPulse {
  0%,100%{box-shadow:0 0 18px rgba(240,43,145,.2), inset 0 0 16px rgba(132,47,255,.12);} 
  50%{box-shadow:0 0 26px rgba(240,43,145,.34), inset 0 0 20px rgba(132,47,255,.2);} 
}

@keyframes rBreath { 0%,100%{border-color:rgba(131,164,204,.5);} 50%{border-color:rgba(255,129,214,.72);} }
@keyframes rScanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes rCommScan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@keyframes rCommBreath { 0%,100% { box-shadow: 0 0 18px rgba(255,114,206,.1), inset 0 0 16px rgba(255,114,206,.06); } 50% { box-shadow: 0 0 28px rgba(255,114,206,.22), inset 0 0 24px rgba(255,114,206,.1); } }
@keyframes rCommWave { 0%,100% { height: 18%; opacity: 0.65; } 50% { height: 100%; opacity: 1; } }
@keyframes rFadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rDataSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes rFeedbackFade { 0% { opacity: 0; transform: translateY(5px); } 15% { opacity: 1; transform: translateY(0); } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rNoise { from { transform: translateX(0); } to { transform: translateX(2px); } }
@keyframes rIntroIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes rChoiceIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rAnomalyPulse { 0%,100% { box-shadow: inset 0 0 12px rgba(255,114,206,.05); } 50% { box-shadow: inset 0 0 22px rgba(255,114,206,.1); } }
@keyframes rAnomalyGlitch { 0%,94%,100% { filter: none; } 95% { filter: hue-rotate(18deg) saturate(1.08); } 96% { filter: hue-rotate(-12deg) brightness(1.05); } 97% { filter: none; } }

@media (max-width: 900px) {
  .resistance-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'comm'
      'main'
      'monitor';
    gap: 10px;
    padding: 10px 10px 12px;
    min-height: 0;
    overflow: hidden;
  }

  .r-comm-panel { grid-area: comm; }
  .r-main-column { grid-area: main; }
  .r-monitor-panel { grid-area: monitor; }

  .resistance-story-container { padding: 0.9rem 0.85rem 0.8rem; }
  .resistance-choices-container { padding: 0.8rem 0.85rem 0.9rem; gap: 0.7rem; }
  .r-intro-title { font-size: 28px; }
}

/* ===== 首页双入口按钮版式 ===== */
.resistance-entry.boot-entry-wrap {
  width: 100%;
  margin-top: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  animation: none;
}

.boot-entry-btn {
  width: 100%;
  min-height: 82px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 18px);
}

.boot-entry-btn::before,
.boot-entry-btn::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.boot-entry-btn::before {
  inset: 7px 10px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  filter: drop-shadow(0 0 8px currentColor);
  opacity: .72;
  left: 10px;
}

.boot-entry-btn::after {
  top: 0;
  bottom: 0;
  width: 40%;
  left: -48%;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: .16;
  transform: skewX(-20deg);
  animation: bootEntrySweep 3.6s ease-in-out infinite;
}

.boot-entry-btn:hover,
.boot-entry-btn:focus-visible {
  transform: translateY(-3px);
}

.boot-entry-main,
.boot-entry-sub {
  display: block;
  position: relative;
  z-index: 1;
}

.boot-entry-main {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
}

.boot-entry-sub {
  margin-top: 7px;
  font-size: clamp(.78rem, 1.3vw, 1rem);
  letter-spacing: .18em;
  opacity: .74;
}

.boot-main-entry {
  background: linear-gradient(180deg, rgba(4, 25, 34, .82), rgba(2, 10, 20, .9));
  box-shadow: 0 0 26px rgba(0, 218, 255, .22), inset 0 0 18px rgba(0, 218, 255, .08);
}

.boot-main-entry:hover,
.boot-main-entry:focus-visible {
  box-shadow: 0 0 36px rgba(0, 218, 255, .38), inset 0 0 22px rgba(0, 218, 255, .12);
}

.boot-resistance-entry.resistance-entry-btn {
  border: 1px solid rgba(255, 64, 172, .72);
  background:
    linear-gradient(90deg, rgba(53, 7, 34, .92), rgba(14, 10, 31, .93) 48%, rgba(69, 7, 36, .9)),
    radial-gradient(circle at 86% 50%, rgba(255, 40, 80, .25), transparent 48%);
  color: #ff7bd6;
  box-shadow: 0 0 28px rgba(255, 40, 163, .24), inset 0 0 22px rgba(255, 45, 97, .09);
  animation: resistanceEntryBreath 3.4s ease-in-out infinite;
}

.boot-resistance-entry.resistance-entry-btn:hover,
.boot-resistance-entry.resistance-entry-btn:focus-visible {
  border-color: rgba(255, 78, 112, .92);
  color: #ff9de4;
  box-shadow: 0 0 38px rgba(255, 48, 171, .4), inset 0 0 28px rgba(255, 45, 97, .14);
}

.boot-entry-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 2px solid #ff5370;
  color: #ff5370;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(50% 0, 100% 88%, 0 88%);
  padding-bottom: 7px;
  text-shadow: 0 0 12px rgba(255, 60, 92, .75);
  filter: drop-shadow(0 0 10px rgba(255, 49, 100, .4));
}

.boot-entry-text {
  position: relative;
  z-index: 1;
  display: block;
}

.boot-resistance-entry .boot-entry-sub {
  color: rgba(255, 180, 226, .78);
}

@keyframes bootEntrySweep {
  0%, 42% { left: -50%; }
  58%, 100% { left: 110%; }
}

@keyframes resistanceEntryBreath {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.22) brightness(1.08); }
}

@media (max-width: 768px) {
  .boot-entry-btn {
    min-height: 72px;
    padding: 12px 18px;
  }

  .boot-entry-main {
    font-size: 1.22rem;
  }

  .boot-entry-sub {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  .boot-entry-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1.32rem;
  }
}

/* ===== 首页入口按钮：简洁实线矩形版 ===== */
.resistance-entry.boot-entry-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.resistance-entry-locked {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  white-space: normal;
  animation: none;
}

.home-entry-btn {
  width: 100%;
  min-height: 58px;
  max-height: 64px;
  padding: 8px 22px;
  border-radius: 5px;
  border: 1px solid rgba(0, 236, 255, .68);
  background: rgba(0, 10, 18, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #20f4ff;
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  text-transform: none;
  letter-spacing: .09em;
  clip-path: none;
  box-shadow: 0 0 10px rgba(0, 218, 255, .12), inset 0 0 12px rgba(0, 218, 255, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  animation: none;
}

.boot-entry-wrap.home-entry-visible,
.resistance-entry-locked.home-entry-visible {
  animation: homeEntryAppear .58s ease both;
}

.boot-entry-wrap.home-entry-visible .home-entry-btn,
.resistance-entry-locked.home-entry-visible .home-entry-btn {
  animation: homeEntryButtonWake .72s ease both;
}

.home-entry-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
  opacity: .38;
  pointer-events: none;
}

.home-entry-btn::after { display: none; }

.home-entry-btn:hover,
.home-entry-btn:focus-visible {
  transform: translateY(-1px);
  animation: none;
}

.home-entry-btn .entry-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  min-width: 0;
}

.home-entry-btn .entry-title,
.home-entry-btn .entry-subtitle {
  display: block;
  white-space: nowrap;
}

.home-entry-btn .entry-title {
  font-size: clamp(22px, 1.45vw, 25px);
  line-height: 1.05;
  font-weight: 560;
  letter-spacing: .1em;
}

.home-entry-btn .entry-subtitle {
  margin-top: 5px;
  font-size: clamp(12px, .78vw, 14px);
  line-height: 1;
  letter-spacing: .08em;
  opacity: .7;
}

.home-entry-btn.main-entry {
  border-color: rgba(0, 236, 255, .72);
  background: rgba(0, 20, 28, .66);
  color: #22f3ff;
  box-shadow: 0 0 11px rgba(0, 218, 255, .14), inset 0 0 12px rgba(0, 218, 255, .04);
}

.home-entry-btn.main-entry:hover,
.home-entry-btn.main-entry:focus-visible {
  border-color: rgba(68, 252, 255, .95);
  background: rgba(0, 18, 30, .76);
  box-shadow: 0 0 16px rgba(0, 218, 255, .22), inset 0 0 14px rgba(0, 218, 255, .06);
}

.home-entry-btn.anomaly-entry {
  justify-content: center;
  padding-left: 28px;
  padding-right: 28px;
  border-color: rgba(255, 58, 180, .72);
  background:
    linear-gradient(180deg, rgba(45, 0, 35, .62), rgba(11, 4, 20, .66)),
    rgba(0, 10, 18, .72);
  color: #ff7ad9;
  box-shadow: 0 0 11px rgba(255, 45, 169, .16), inset 0 0 12px rgba(255, 48, 120, .04);
}

.home-entry-btn.anomaly-entry.locked-entry {
  border-color: rgba(255, 58, 180, .62);
  color: #ff72cc;
  background:
    linear-gradient(180deg, rgba(45, 0, 35, .52), rgba(11, 4, 20, .62)),
    rgba(0, 10, 18, .66);
}

.home-entry-btn.anomaly-entry:hover,
.home-entry-btn.anomaly-entry:focus-visible {
  border-color: rgba(255, 74, 116, .95);
  box-shadow: 0 0 17px rgba(255, 45, 169, .26), inset 0 0 14px rgba(255, 48, 120, .06);
}

.home-entry-btn.anomaly-entry .entry-title {
  color: #ff82df;
  text-shadow: 0 0 14px rgba(255, 68, 190, .34);
}

.home-entry-btn.anomaly-entry .entry-subtitle {
  color: rgba(255, 188, 229, .78);
}

.entry-alert-icon {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 24px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff4d8d;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 56, 96, .72);
  transform: translateY(1px);
}

.entry-alert-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid currentColor;
  clip-path: polygon(50% 0, 100% 88%, 0 88%);
  filter: drop-shadow(0 0 7px rgba(255, 77, 141, .42));
}

.entry-alert-icon span::before,
.entry-alert-icon span::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
  box-shadow: 0 0 8px rgba(255, 77, 141, .55);
}

@keyframes homeEntryAppear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeEntryButtonWake {
  0% {
    box-shadow: 0 0 0 rgba(255, 45, 169, 0);
  }
  45% {
    box-shadow: 0 0 18px rgba(255, 45, 169, .24), inset 0 0 12px rgba(255, 48, 120, .06);
  }
  100% {
    box-shadow: inherit;
  }
}

.entry-alert-icon span::before {
  top: 7px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
}

.entry-alert-icon span::after {
  top: 17px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .boot-bottom-area {
    width: min(72vw, 340px);
    gap: 14px;
    bottom: 6.5%;
  }

  .home-entry-btn {
    min-height: 58px;
    padding: 10px 16px;
    gap: 14px;
  }

  .home-entry-btn .entry-title {
    font-size: clamp(20px, 5.4vw, 24px);
    letter-spacing: .08em;
  }

  .home-entry-btn .entry-subtitle {
    font-size: clamp(11px, 3.1vw, 13px);
    letter-spacing: .06em;
  }

  .entry-alert-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 15px;
  }
}
