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

body {
  background: #0a0a0a;
  color: #d0d0d0;
  font-family: Tahoma, Arial, sans-serif;
  min-height: 100vh;
  padding: 16px;
  line-height: 1.6;
}

#game-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

header {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid #222;
}

header h1 {
  font-size: 24px;
  color: #c0a060;
  margin-bottom: 8px;
}

#status-bar {
  font-size: 13px;
  color: #666;
}

#story-panel {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  min-height: 250px;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.9;
  font-size: 15px;
  white-space: pre-wrap;
}

#story-panel::-webkit-scrollbar {
  width: 8px;
}

#story-panel::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

#narration strong {
  color: #d0a060;
}

#choices-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.suggestion:hover {
  background: #2a2a2a;
  border-color: #555;
  transform: translateX(-4px);
}

.suggestion:active {
  transform: translateX(-2px) scale(0.99);
}

#custom-action-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#custom-action {
  flex: 1;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #d0d0d0;
  font-family: inherit;
  font-size: 14px;
}

#custom-action:focus {
  outline: none;
  border-color: #555;
}

#send-btn {
  padding: 12px 24px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #d0d0d0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

#send-btn:hover {
  background: #3a3a3a;
  border-color: #666;
}

#state-panel {
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  font-size: 12px;
  color: #999;
  direction: ltr;
  text-align: left;
}

footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid #222;
}

footer button {
  padding: 10px 20px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s;
}

footer button:hover {
  background: #2a2a2a;
  color: #d0d0d0;
  border-color: #555;
}

/* موبایل */
@media (max-width: 600px) {
  body { padding: 8px; }
  header h1 { font-size: 20px; }
  #story-panel { padding: 16px; font-size: 14px; }
  .suggestion { font-size: 13px; padding: 10px 12px; }
  #custom-action-wrapper { flex-direction: column; }
  #send-btn { width: 100%; }
}
