.plan-banner { border: 2px solid #e2f7e2; padding: 0.75rem; margin-bottom: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
#plans-modal { border: 2px solid #e2f7e2; padding: 1rem; margin-bottom: 1rem; }
#share-panel { border: 2px dashed #e2f7e2; padding: 1rem; margin-bottom: 1rem; }
body { background: #020202; color: #b6f2b6; font-family: 'Courier New', monospace; font-size: 16px; }
.screen { max-width: 800px; margin: 1rem auto; padding: 1.5rem; border: 2px solid #b6f2b6; }
h1 { color: #e2f7e2; }
.hidden { display: none; }
form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 420px; margin-bottom: 1rem; }
input, textarea { background: #04140a; color: #b6f2b6; border: 1px solid #b6f2b6; font-family: inherit; font-size: 16px; padding: 0.5rem; }
button { background: #062b16; color: #b6f2b6; border: 1px solid #b6f2b6; font-family: inherit; font-size: 16px; padding: 0.6rem 0.9rem; cursor: pointer; max-width: 240px; }
button:hover { background: #0a3d20; }
pre { white-space: pre-wrap; }
#choices button { max-width: 100%; text-align: left; margin: 0.2rem 0; }
#next-btn { margin-top: 0.75rem; }
#feedback { white-space: pre-line; }
#review-toggle { margin-top: 1rem; }
.topic-item { border: 1px dashed #b6f2b6; padding: 0.5rem; margin: 0.5rem 0; }
.topic-actions button { max-width: none; margin-right: 0.5rem; }
.topic-footer { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; margin-top: 0.5rem; }
.topic-footer button { max-width: none; }
.edit-question { border: 1px dashed #b6f2b6; padding: 0.5rem; margin: 0.75rem 0; }
.edit-question textarea { width: 100%; min-height: 3.5rem; resize: vertical; }
.q-choice-row { display: flex; align-items: center; gap: 0.4rem; margin: 0.2rem 0; }
.q-choice-row input[type="text"], .q-choice-row input:not([type]) { flex: 1; }
.edit-question-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.edit-question-actions button { max-width: none; }
#ascii-path { font-size: 0.8rem; line-height: 1.2; white-space: pre-wrap; text-align: center; margin: 1rem 0; color: #b6f2b6; }
#scene-container { text-align: center; margin: 1rem 0; }
#scene-img { max-width: 100%; max-height: 300px; object-fit: contain; display: none; }
#story-panel, #victory-panel { border: 2px solid #e2f7e2; padding: 1rem; margin: 1rem 0; }
#share-panel { border: 2px solid #e2f7e2; padding: 1rem; margin: 1rem 0; }
.share-kicker { color: #9fd89f; margin-bottom: 0.25rem; }
#broadcast-img { max-width: 100%; max-height: 260px; object-fit: contain; display: none; margin-bottom: 1rem; }
#progress-line { font-size: 1.1rem; }
#story-line { color: #e2f7e2; }
#loading { margin: 1rem 0; }
#loading-text { color: #e2f7e2; margin-bottom: 0.4rem; }
.loading-bar { border: 1px solid #b6f2b6; height: 14px; overflow: hidden; }
.loading-bar-fill { height: 100%; width: 40%; background: #0a3d20; animation: loading-slide 1.1s linear infinite; }
@keyframes loading-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
#dashboard-scene { text-align: center; margin: 1rem 0; }
#dashboard-img { max-width: 100%; max-height: 260px; object-fit: contain; display: none; }
#dashboard-line { color: #e2f7e2; }
#logout-btn { margin-top: 1rem; }
#restart-btn { position: fixed; top: 0.5rem; right: 0.5rem; z-index: 10; max-width: none; padding: 0.3rem 0.6rem; font-size: 0.85rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .screen { margin: 0; padding: 0.75rem; border-width: 1px; min-height: 100vh; box-sizing: border-box; }
  h1 { font-size: 1.5rem; }
  input, textarea, button { font-size: 16px; width: 100%; max-width: none; }
  #choices button { width: 100%; }
  .topic-actions button { margin-right: 0; margin-bottom: 0.25rem; }
  #ascii-path { font-size: 0.65rem; }
}
