/* ============================================
   Base & Reset
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a3e;
  --text-primary: #e0e0ff;
  --text-secondary: #8888aa;
  --accent: #ffcc00;
  --accent-glow: rgba(255, 204, 0, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.6s;
}

body {
  font-family: 'Courier New', 'Consolas', monospace;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-speed) ease;
}

/* ============================================
   Time-based themes
   ============================================ */
body.theme-morning {
  --bg-primary: #ffecd2;
  --bg-secondary: #fcb69f;
  --text-primary: #4a3728;
  --text-secondary: #7a6558;
  --accent: #e67e22;
  --accent-glow: rgba(230, 126, 34, 0.3);
  --card-bg: rgba(255, 255, 255, 0.3);
  --card-border: rgba(255, 255, 255, 0.5);
}

body.theme-day {
  --bg-primary: #a1c4fd;
  --bg-secondary: #c2e9fb;
  --text-primary: #1a2a3a;
  --text-secondary: #4a5a6a;
  --accent: #2980b9;
  --accent-glow: rgba(41, 128, 185, 0.3);
  --card-bg: rgba(255, 255, 255, 0.4);
  --card-border: rgba(255, 255, 255, 0.6);
}

body.theme-evening {
  --bg-primary: #a18cd1;
  --bg-secondary: #fbc2eb;
  --text-primary: #2d1b4e;
  --text-secondary: #5d4b7e;
  --accent: #e74c3c;
  --accent-glow: rgba(231, 76, 60, 0.3);
  --card-bg: rgba(255, 255, 255, 0.15);
  --card-border: rgba(255, 255, 255, 0.25);
}

body.theme-night {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a3e;
  --text-primary: #e0e0ff;
  --text-secondary: #8888aa;
  --accent: #ffcc00;
  --accent-glow: rgba(255, 204, 0, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Particle Canvas
   ============================================ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* ============================================
   Greeting Banner
   ============================================ */
.welcome {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

body.theme-morning .welcome,
body.theme-day .welcome {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.theme-evening .welcome {
  background: rgba(30, 15, 50, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
}

.greeting-banner {
  font-size: 2.4rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}

.greeting-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.welcome-sub {
  margin-top: 0.9rem;
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 700;
  opacity: 0;
  min-height: 1.6em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.welcome-sub.visible { opacity: 1; }

.welcome-tag {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  font-weight: 700;
  opacity: 0;
  min-height: 1.5em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.welcome-tag.visible { opacity: 1; }

/* ============================================
   Guestbook map
   ============================================ */
.guestbook {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  text-align: center;
}
.guestbook-map {
  opacity: 0;
  transition: opacity 0.8s ease;
  margin: 0 auto 1rem;
  max-width: 640px;
  padding: 14px 18px;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
}
.guestbook-map.ready { opacity: 1; }
.guestbook-map svg.world-map {
  width: 100%;
  height: auto;
  display: block;
}
.guestbook-map svg.world-map path {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.4;
  transition: fill 0.6s ease;
}
.guestbook-map svg.world-map path.highlight {
  fill: #ff5577;
  stroke: #fff;
  stroke-width: 0.6;
  filter: drop-shadow(0 0 6px rgba(255, 85, 119, 0.75));
  animation: guestbook-pulse 2.2s ease-in-out infinite;
}
@keyframes guestbook-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 85, 119, 0.55)); }
  50%      { filter: drop-shadow(0 0 10px rgba(255, 85, 119, 0.95)); }
}
.guestbook-caption {
  opacity: 0;
  transition: opacity 0.8s ease;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #f4f6fb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6);
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(3px);
}
.guestbook-caption.ready { opacity: 1; }
.guestbook-caption strong { color: #ff99ad; }
@media (max-width: 600px) {
  .guestbook-caption { font-size: 0.95rem; }
  .guestbook-map { max-width: 100%; }
}

/* ============================================
   Main Content
   ============================================ */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

/* ============================================
   Fun Facts
   ============================================ */
.fun-fact-section {
  margin-bottom: 3rem;
}

.fun-fact-card {
  background: #1a1a2e;
  color: #e8e8ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.fun-fact-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 3.2rem;
}

.fun-fact-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.fun-fact-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.fun-fact-btn:active {
  transform: scale(0.96);
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
  margin-bottom: 3rem;
}

.demo-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.demo-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1b1b1b;
  font-weight: 600;
}

.demo-subtitle {
  color: #4a4a4a;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.demo-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.demo-table tr:last-child { border-bottom: none; }

.demo-cell-btn {
  padding: 0.55rem 0.75rem 0.55rem 0;
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}

.demo-cell-desc {
  padding: 0.55rem 0 0.55rem 1rem;
  vertical-align: middle;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.demo-btn {
  display: inline-block;
  background: #0067b8;
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
  min-width: 200px;
  text-align: center;
}

.demo-btn:hover {
  background: #005a9e;
  transform: translateY(-1px);
}

.demo-btn:active { transform: translateY(0); }

@media (max-width: 600px) {
  .demo-table, .demo-table tbody, .demo-table tr, .demo-table td {
    display: block;
    width: 100%;
  }
  .demo-cell-btn { padding: 0.7rem 0 0.2rem; }
  .demo-cell-desc { padding: 0 0 0.8rem; }
  .demo-btn { width: 100%; }
}

/* ============================================
   Stars (night theme)
   ============================================ */
.star {
  position: fixed;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to   { opacity: 1; }
}

/* ============================================
   What we know about you
   ============================================ */
.whoami-section {
  margin-bottom: 3rem;
}

.whoami-card {
  background: #1a1a2e;
  color: #e8e8ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.whoami-title {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.whoami-intro,
.whoami-note {
  margin: 0 0 1rem;
  line-height: 1.55;
  opacity: 0.85;
  font-size: 0.95rem;
}

.whoami-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

.whoami-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.25rem;
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.whoami-list dt {
  color: #8fb8ff;
  white-space: nowrap;
}

.whoami-list dd {
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .whoami-list {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  .whoami-list dt { margin-top: 0.5rem; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
  .greeting-banner { font-size: 1.6rem; }
  .welcome-sub { font-size: 1rem; }
  .welcome-tag { font-size: 0.85rem; }
  .fun-fact-card { padding: 1.5rem 1rem; }
  main { padding: 1.5rem 1rem; }
}

/* ============================================
   Villains background (slow drifting layers)
   ============================================ */
.villains-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.villain-layer {
  position: absolute;
  top: 0;
  left: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
  opacity: 1;
  will-change: transform;
  animation-name: villain-drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes villain-drift {
  0%   { transform: translate(var(--from-x), var(--from-y)) scale(1); }
  50%  { transform: translate(calc((var(--from-x) + var(--to-x)) / 2), calc((var(--from-y) + var(--to-y)) / 2)) scale(1.05); }
  100% { transform: translate(var(--to-x), var(--to-y)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .villain-layer { animation-duration: 400s !important; }
}

/* ============================================
   Hub navigation (homepage)
   ============================================ */
.hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 2px solid #1b1b1b;
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.hub-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.hub-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f0f23;
}

.hub-sub {
  font-size: 0.95rem;
  color: #222;
  font-weight: 600;
  line-height: 1.45;
}

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

/* ============================================
   Subpage header
   ============================================ */
.back-home {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
}

.back-home:hover { opacity: 1; color: var(--accent); }

.subpage-title {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}

.subpage-sub {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.topic-section { margin-bottom: 3rem; }

/* Cybercrime overview: filter bar + category accordions */
.cc-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: #1a1a2e;
  color: #e8e8ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cc-chip {
  background: #24243e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8e8ff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cc-chip:hover { background: var(--accent-glow); }
.cc-chip.is-active {
  background: #e8e8ff;
  color: #1a1a2e;
  border-color: #e8e8ff;
}
.cc-search {
  flex: 1 1 200px;
  min-width: 180px;
  background: #24243e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8e8ff;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}
.cc-search::placeholder { color: #e8e8ff; opacity: 0.5; }
.cc-count {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: auto;
}
.cc-cat {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #1a1a2e;
  color: #e8e8ff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.cc-cat > summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cc-cat > summary::-webkit-details-marker { display: none; }
.cc-cat > summary::before {
  content: '\25B8';
  display: inline-block;
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.cc-cat[open] > summary::before { transform: rotate(90deg); }
.cc-cat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
}
.cc-cat-count { margin-left: auto; opacity: 0.55; font-weight: 400; font-size: 0.9rem; }
.cc-cat > .topic-grid { padding: 0 1.25rem 1.25rem; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.topic-card {
  background: #ffffff;
  border: 2px solid #1b1b1b;
  border-radius: 12px;
  padding: 1.4rem 1.25rem;
  color: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.topic-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f0f23;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topic-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
  margin-bottom: 0.6rem;
}

.topic-meta {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.6rem;
}

.topic-meta li {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.topic-list {
  margin: 0.25rem 0 0.8rem 1.2rem;
  color: #222;
  font-size: 0.93rem;
  line-height: 1.5;
}

.target-icon {
  font-size: 1.4rem;
}

.target-why {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #333;
  font-style: italic;
}

.topic-source {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0.8;
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

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

.emergency-banner {
  background: #b3261e;
  color: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.emergency-banner h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  font-size: 0.95rem;
}

.emergency-grid a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

.emergency-grid .muted { opacity: 0.85; font-weight: 400; font-size: 0.85rem; }

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

.help-intro {
  background: #ffffff;
  border: 2px solid #1b1b1b;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #1b1b1b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.help-intro summary {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem 0;
}

.help-intro[open] summary { margin-bottom: 0.6rem; }

.help-steps {
  margin-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #222;
}

.help-prompt {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 1.5rem 0 1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.help-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.help-group {
  background: #ffffff;
  border: 2px solid #1b1b1b;
  border-radius: 12px;
  color: #1b1b1b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.help-group > summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.help-group > summary::-webkit-details-marker { display: none; }

.help-group > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  color: #666;
  transition: transform 0.2s ease;
}

.help-group[open] > summary::after { content: "\2212"; }

.help-group[open] > summary {
  border-bottom: 1px solid #e0e0e0;
}

.help-icon { font-size: 1.4rem; }

.help-group-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.help-tip {
  background: #fff8d6;
  border-left: 4px solid #e0a900;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: #333;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.help-scenario {
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fafafa;
}

.help-scenario > summary {
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f0f23;
  list-style: none;
}

.help-scenario > summary::-webkit-details-marker { display: none; }

.help-scenario > summary::before {
  content: "\25b8";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.15s ease;
  color: #666;
}

.help-scenario[open] > summary::before { transform: rotate(90deg); }

.help-scenario[open] > summary { border-bottom: 1px solid #e0e0e0; }

.scenario-body {
  padding: 0.65rem 0.9rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #222;
}

.scenario-body ul, .scenario-body ol {
  margin-left: 1.25rem;
  margin-top: 0.3rem;
}

.scenario-body li { margin-bottom: 0.2rem; }

.scenario-body a { color: #0067b8; font-weight: 600; }

.scenario-body a:hover { text-decoration: underline; }

.help-directory {
  margin-top: 1.5rem;
  background: #ffffff;
  border: 2px solid #1b1b1b;
  border-radius: 12px;
  color: #1b1b1b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.help-directory > summary {
  cursor: pointer;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.help-table th, .help-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  color: #222;
}

.help-table th {
  background: #f2f2f2;
  font-weight: 700;
}

.help-table tr:last-child td { border-bottom: none; }

.placeholder {
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

/* ============================================
   Language Switch Widget
   ============================================ */
#lang-widget {
  position: fixed;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 950;
  display: flex;
  gap: 0.15rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 0.15rem 0.35rem;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  line-height: 1.4;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn.lang-active {
  background: var(--accent, #ffcc00);
  color: #111;
  font-weight: 700;
}

@media (max-width: 480px) {
  #lang-widget {
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.1rem 0.25rem;
  }
  .lang-btn {
    font-size: 0.68rem;
    padding: 0.18rem 0.4rem;
  }
}
