/* ===== Color Scheme (CSS Custom Properties) ===== */

/* Dark mode (default) */
:root {
  --bg-primary: #1a1a1a;
  --bg-panel: #222;
  --bg-panel-hover: #2a2a2a;

  --text-primary: #c9c9c9;
  --text-muted: #999;
  --text-subtle: #888;
  --text-dim: #666;
  --text-disabled: #555;
  --text-copyright: #444;

  --border-subtle: #333;

  --link-color: #8fbc8f;
  --link-border: #8fbc8f55;
  --link-hover: #a8d8a8;
  --link-visited: #567356;
  --link-visited-border: #56735655;
  --link-visited-hover: #678367;
}

/* Light mode */
body.light-mode {
  --bg-primary: #f2f1ed;
  --bg-panel: #e8e8e0;
  --bg-panel-hover: #deded6;

  --text-primary: #333;
  --text-muted: #555;
  --text-subtle: #666;
  --text-dim: #777;
  --text-disabled: #aaa;
  --text-copyright: #999;

  --border-subtle: #ccc;

  --link-color: #349534;
  --link-border: #34953455;
  --link-hover: #2a7a2a;
  --link-visited: #7fa47f;
  --link-visited-border: #7fa47f55;
  --link-visited-hover: #6a946a;
}

/* ===== Base Reset and Body ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1.5rem 5rem;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== Debug Mode ===== */

body.debug-mode {
  user-select: text;
  -webkit-user-select: text;
}

.debug-only {
  display: none !important;
}

body.debug-mode .debug-only {
  display: block !important;
}

.dev-only {
  display: none !important;
}

body.dev-mode .dev-only {
  display: block !important;
}

body.dev-mode button.dev-only {
  display: inline-block !important;
}

body.dev-mode .panel-content.dev-only {
  display: none !important;
}

body.dev-mode .panel-content.dev-only.active {
  display: block !important;
}

#debug-info {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-panel);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  opacity: 0.7;
}

#history-panel {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-panel);
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#history-panel .history-item {
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 0.15rem 0;
}

#history-panel .history-item:hover {
  color: var(--link-color);
}

#history-panel .history-item.current {
  color: var(--text-primary);
  font-weight: bold;
  cursor: default;
}

#history-panel .history-arrow {
  color: var(--text-disabled);
  margin: 0 0.25rem;
}

/* ===== Game Container ===== */

#game-container {
  max-width: 600px;
  width: 100%;
  min-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
}

/* ===== Menu Bar ===== */

#menu-bar {
  padding-bottom: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#game-title {
  color: var(--text-disabled);
  cursor: pointer;
}

#game-title:hover {
  color: var(--text-secondary);
}

#menu-toggles {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

#menu-toggles > button {
  color: var(--text-disabled);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  min-height: 32px;
}

#menu-toggles > button:hover {
  color: var(--text-subtle);
}

.menu-toggle {
  color: var(--text-disabled);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 0.75rem 0;
  min-height: 44px;
  text-align: left;
}

.menu-toggle:hover {
  color: var(--text-subtle);
}

.menu-toggle::after {
  content: ' ▾';
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: -0.1em;
}

.menu-toggle.open::after {
  content: ' ▴';
}

/* ===== Menu Panel ===== */

#menu-panel {
  display: none;
  background: var(--bg-panel);
  margin: 0.5rem 0;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  width: 100%;
}

#menu-panel.open {
  display: block;
}

.panel-content {
  display: none;
}

.panel-content.active {
  display: block;
}

#menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  min-height: 44px;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

#menu-panel button:hover {
  background: var(--bg-panel-hover);
  color: var(--text-primary);
}

#menu-panel button.disabled {
  color: var(--text-disabled);
  cursor: default;
}

#menu-panel button.disabled:hover {
  background: none;
  color: var(--text-disabled);
}

/* Checkbox-style toggle buttons */
#menu-panel button.toggle-btn::before {
  content: '☐ ';
}

#menu-panel button.toggle-btn.checked::before {
  content: '☑ ';
}

/* ===== Save Info ===== */

#save-info {
  font-size: 0.85rem;
}

#save-info.no-save {
  color: var(--text-disabled);
  cursor: default;
}

#save-info.no-save:hover {
  background: none;
  color: var(--text-disabled);
}

.menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 1rem;
}

/* ===== Chapter Display ===== */

#chapter-display {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

#chapter-display.visible {
  opacity: 1;
}

/* ===== Text Display ===== */

#text-display {
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

#text-display.visible {
  opacity: 1;
}

#text-display p {
  margin-bottom: 1.2em;
}

#text-display p:last-child {
  margin-bottom: 0;
}

/* ===== Clickable Links ===== */

.clickable {
  color: var(--link-color);
  border-bottom: 2px solid var(--link-border);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.clickable:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Suppress visual flash when executing via prompt-bar tap */
.clickable.no-flash,
.clickable.no-flash:hover,
.clickable.no-flash:active {
  transition: none !important;
  color: var(--link-color) !important;
  border-bottom-color: var(--link-border) !important;
}

/* Visited links - player has already seen this reusable description node */
.clickable.visited {
  color: var(--link-visited);
  border-bottom-color: var(--link-visited-border);
}

.clickable.visited:hover {
  color: var(--link-visited-hover);
  border-bottom-color: var(--link-visited-hover);
}

/* ===== History Panel (Debug Only) ===== */

#history {
  display: none;
}

body.debug-mode #history {
  display: block;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

body.debug-mode #history:empty {
  display: none;
}

#history .history-entry {
  color: var(--text-disabled);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

#history .history-entry:last-child {
  margin-bottom: 0;
}

#history .history-entry:hover {
  color: var(--text-subtle);
}

#history .history-entry p {
  margin-bottom: 0.5em;
}

#history .history-entry p:last-child {
  margin-bottom: 0;
}

#history .history-entry .clickable {
  color: inherit;
  border-bottom: none;
  pointer-events: none;
  transition: inherit;
}

/* ===== End States ===== */

.end-state {
  color: var(--text-subtle);
  font-style: italic;
}

.ending-marker {
  margin-top: 2.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ending-marker .clickable {
  color: var(--link-color);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.1rem;
}

.ending-options {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.ending-options .clickable {
  color: var(--link-color);
  letter-spacing: normal;
  font-size: 1.1rem;
}

.ending-options .clickable:hover {
  color: var(--link-hover);
}

/* ===== Game Notes ===== */

/* Game notes - gray italic prose (play hints, preview notes, etc.) */
.game-note {
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2rem;
}

/* Reset inherited command-prompt styles when hint is inside prompt */
#command-prompt .game-note {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.25rem;
}

/* ===== Node ID Display (Debug Only) ===== */

#node-id {
  display: none;
}

body.debug-mode #node-id {
  display: block;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-family: monospace;
}

/* ===== Debug Menu (Legacy) ===== */

#debug-menu {
  display: none;
}

body.debug-mode #debug-menu {
  display: block;
}

/* ===== Copyright Footer ===== */

.copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-copyright);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(to bottom, transparent, var(--bg-primary) 50%);
  padding: 3rem 0 0.75rem;
}

.copyright a {
  color: var(--text-copyright);
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

.footer-separator {
  margin: 0 0.5em;
}

/* ===== Privacy Modal ===== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--bg-panel);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 400px;
  margin: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-content p {
  margin-bottom: 1rem;
}

.modal-content ul {
  margin: 0 0 1rem 1.5rem;
}

.modal-content li {
  margin-bottom: 0.25rem;
}

.modal-content a {
  color: var(--link-color);
}

.modal-content a:visited {
  color: var(--link-visited);
}

.modal-content a:hover {
  color: var(--link-hover);
}

.modal-content a:visited:hover {
  color: var(--link-visited-hover);
}

.modal-content button {
  background: var(--border-subtle);
  color: var(--text-primary);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.modal-content button:hover {
  background: var(--border-subtle);
  filter: brightness(1.2);
}

#privacy-close {
  display: block;
  width: 100%;
}

/* Dialog Modal (confirm/alert) */
.dialog-modal .modal-content {
  text-align: center;
  width: 320px;
}

.dialog-modal .dialog-message {
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.dialog-modal .dialog-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.dialog-modal .dialog-buttons button {
  flex: 1;
}

.dialog-modal .dialog-buttons .btn-primary {
  background: var(--link-color);
  color: var(--bg-primary);
}

.dialog-modal .dialog-buttons .btn-primary:hover {
  filter: brightness(1.1);
}

/* Welcome Modal */
.welcome-modal .modal-content {
  text-align: left;
  width: 500px;
  max-width: 500px;
}

.welcome-modal .welcome-text {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.8;
}

.welcome-modal .welcome-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.welcome-modal button {
  margin-top: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: var(--link-color);
  color: var(--bg-primary);
  min-width: 120px;
}

.welcome-modal button:hover {
  filter: brightness(1.1);
}

/* Debug-only elements (hidden unless ?debug) */
.debug-only {
  display: none !important;
}

.debug-mode .debug-only {
  display: block !important;
}

.debug-mode .panel-content.debug-only {
  display: none !important;
}

.debug-mode .panel-content.debug-only.active {
  display: block !important;
}

.debug-mode button.debug-only {
  display: inline-block !important;
}

/* Debug-only modals still need .open to show */
.debug-mode .modal.debug-only {
  display: none !important;
}

.debug-mode .modal.debug-only.open {
  display: flex !important;
}

/* Dev-only modals still need .open to show */
.dev-mode .modal.dev-only {
  display: none !important;
}

.dev-mode .modal.dev-only.open {
  display: flex !important;
}

/* Stats Modal (log analysis) */
.stats-modal .modal-content {
  width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stats-modal h2 {
  margin-bottom: 1rem;
}

.stats-modal pre {
  height: 280px;
  overflow: auto;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

.stats-buttons {
  display: flex;
  gap: 0.5rem;
}

.stats-buttons button {
  flex: 1;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.stats-buttons button:hover {
  background: var(--border-subtle);
}

/* Stats controls */
.stats-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.report-type-buttons,
.time-window-buttons {
  display: flex;
  gap: 0.25rem;
}

.report-type-buttons button,
.time-window-buttons button {
  flex: 1;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 0.25rem;
  cursor: pointer;
}

.report-type-buttons button:hover,
.time-window-buttons button:hover {
  background: var(--border-subtle);
}

.report-type-buttons button.active,
.time-window-buttons button.active {
  background: var(--link-color);
  color: var(--bg-primary);
  border-color: var(--link-color);
}

#stats-date-range {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Admin panel info - match version-info style */
.log-files-info {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-disabled);
  cursor: default;
}

/* ===== Comment System (Debug Only) ===== */

#comment-icon {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 50;
}

body.debug-mode #comment-icon {
  display: inline-block !important;
}

body.debug-mode #comment-icon.hidden {
  display: none !important;
}

#comment-icon .badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--link-color);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.1rem 0.35rem;
  border-radius: 1rem;
  min-width: 1.2rem;
  text-align: center;
}

#comment-panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  max-height: 60vh;
  z-index: 49;
  flex-direction: column;
}

body.debug-mode #comment-panel {
  display: flex !important;
}

body.debug-mode #comment-panel.hidden {
  display: none !important;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.comment-header h3 {
  margin: 0;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
}

.comment-header .close-btn {
  background: none;
  border: none;
  color: var(--text-disabled);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-header .close-btn:hover {
  color: var(--text-primary);
}

.comment-content {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
}

.pinned-notes {
  padding: 1rem;
  background: var(--bg-panel-hover);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.section-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#pinned-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pinned-comment {
  color: var(--text-primary);
  padding: 0.75rem;
  background: var(--bg-panel);
  border-radius: 0.25rem;
  border-left: 2px solid var(--link-color);
}

.pinned-comment .comment-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.pinned-comment .comment-text {
  line-height: 1.6;
}

.comments-list {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comments-list.empty {
  color: var(--text-disabled);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-item {
  border: 1px solid var(--border-subtle);
  border-radius: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-primary);
}

.comment-item.addressed {
  opacity: 0.6;
}

.comment-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author {
  font-weight: 600;
}

.comment-timestamp {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.comment-status {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-panel);
  border-radius: 0.2rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.comment-item.addressed .comment-status {
  color: var(--text-dim);
}

.comment-text {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  word-wrap: break-word;
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0.2rem;
  font-family: inherit;
}

.comment-btn:hover {
  background: var(--bg-panel);
  color: var(--text-primary);
}

.quick-add-section {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  flex-shrink: 0;
}

.comment-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 0.75rem;
}

.comment-input:focus {
  outline: none;
  border-color: var(--link-color);
}

.quick-add-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-add-select {
  flex: 1;
  min-width: 120px;
  padding: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.quick-add-select:focus {
  outline: none;
  border-color: var(--link-color);
}

.comment-send-btn {
  padding: 0.5rem 1rem;
  background: var(--link-color);
  color: var(--bg-primary);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.comment-send-btn:hover {
  filter: brightness(1.1);
}

.comment-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Command Prompt Bar ===== */

#command-prompt {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--link-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
  min-height: 1.6em;
  position: sticky;
  bottom: 2.5rem;
  background: var(--bg-primary);
  padding: 0.75rem 0 0.5rem;
  z-index: 10;
}

#command-prompt::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -1.5rem;
  right: -1.5rem;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: auto;
}

#command-prompt .caret {
  display: inline-block;
  color: var(--link-color);
  font-weight: bold;
  margin-right: 0.15em;
}

#command-prompt .prompt-text {
  display: inline;
  border-right: 2px solid var(--link-color);
  padding-right: 2px;
  animation: prompt-blink 1s step-end infinite;
}

#command-prompt .prompt-text.typing {
  animation: none;
  border-right-color: var(--link-color);
}

#command-prompt .prompt-text.empty {
  border-right-color: var(--text-disabled);
}

#command-prompt .tap-hint {
  /* opacity managed by JS: starts at 0, fades to 0.4 */
}

/* Scroll indicator — appears when content extends below the fold */
#scroll-indicator {
  position: absolute;
  bottom: calc(100% - 1rem);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-disabled);
  font-size: 1rem;
  line-height: 1;
  padding: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 11;
}

#scroll-indicator.visible {
  opacity: 1;
}

@keyframes prompt-blink {
  50% { border-right-color: transparent; }
}

/* Fade-in handled via inline styles in command-prompt.js */

/* ===== Mobile Layout ===== */

@media (max-width: 768px) {
  #game-container {
    min-height: calc(100dvh - 6rem);
  }

  #command-prompt #game-hint {
    margin-top: 0.25rem;
    font-size: 1rem;
  }
}
