.game01 {
  max-width: 52rem;
  margin: 0 auto 1.5rem;
  color: #e6edf3;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.game01-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid #394454;
  margin-bottom: 1.5rem;
}

.game01-code,
.game01-agent,
.game01-percent {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.game01-code,
.game01-agent {
  color: #91d7c6;
}

.game01-assigned-name {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: #91d7c6;
  margin: 1.25rem 0 2rem;
}

.game01 h2,
.game01 h3,
.game01 h4 {
  color: #f3e3b5;
  line-height: 1.3;
  text-align: left;
  scroll-margin-top: 1rem;
}

.game01 h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.game01 h3 { font-size: 1.3rem; margin: 1rem 0; }
.game01 h4 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.game01 p { margin-bottom: 1rem; }

.game01-progress {
  display: block;
  width: 100%;
  height: 0.6rem;
  accent-color: #91d7c6;
}

.game01-figure { margin: 0.75rem 0 1rem; }
.game01-figure figcaption,
.game01-save { font-size: 0.8rem; color: #b4bfcb; }

.game01-image-button {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 1px solid #526479;
  border-radius: 0.5rem;
  background: #111923;
  overflow: hidden;
  cursor: zoom-in;
}

.game01-image-button img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.game01-choices {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.game01-button {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid #72c5b1;
  border-radius: 0.4rem;
  background: #152a2b;
  color: #d1f5e9;
  font: inherit;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
}

.game01-button:hover { background: #214341; }
.game01 button:focus-visible,
.game01 summary:focus-visible,
.game01-lightbox button:focus-visible {
  outline: 3px solid #f3d88b;
  outline-offset: 3px;
}

.game01-notice {
  border-left: 3px solid #f3d88b;
  padding: 0.75rem 1rem;
  background: #242b31;
  color: #fff0c3;
}

.game01-notebook {
  border-top: 1px solid #394454;
  padding: 1rem 0;
}

.game01-notebook summary {
  min-height: 48px;
  cursor: pointer;
  color: #91d7c6;
}

.game01-footer {
  border-top: 1px solid #394454;
  padding-top: 1rem;
}

.game01-footer .game01-button { margin: 0 0.5rem 0.5rem 0; }
.game01-lightbox {
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: 94dvh;
  padding: 1rem;
  color: #e6edf3;
  background: #0d1117;
  border: 1px solid #72c5b1;
  border-radius: 0.6rem;
}

.game01-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.game01-lightbox img { display: block; width: 100%; height: auto; margin-top: 0.75rem; }

@media (max-width: 575.98px) {
  .game01 { font-size: 0.94rem; }
  .game01-choices .game01-button { width: 100%; }
}
