body {
  margin: 0;
  background: #0f0f0f;
  color: #eee;
  font-family: monospace;
}

.hidden {
  display: none;
}

#game {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scene {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 12px;
  background: #111;
}

#role-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  background: #181818;
  border-left: 2px solid #333;
  padding: 16px;
  box-sizing: border-box;
  z-index: 100;
  overflow-y: auto;
}

.role-bubble {
  padding: 12px;
  text-align: center;
  border: 2px solid #333;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #1a1a1a;
}

.role-bubble:hover {
  border-color: #fff;
  background: #222;
  transform: translateY(-2px);
}

.role-page {
  background: #0f0f0f;
  color: #eee;
}

.role-header {
  padding: 12px;
  background: #111;
}

.back {
  color: #aaa;
  text-decoration: none;
}

.back:hover {
  color: #fff;
}

.role-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  padding: 24px;
}

.role-art img {
  width: 100%;
  border: 2px solid #333;
}

.role-content h1 {
  margin-top: 0;
}

.tagline {
  opacity: 0.8;
  font-style: italic;
}

.section {
  border-top: 1px solid #333;
  margin-top: 8px;
}

.section-header {
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}

.section-body {
  max-height: 200px;          /* important */
  overflow-y: auto;           /* important */
  display: none;
  padding-bottom: 8px;
}

.section.open .section-body {
  display: block;
}