:root {
  --bg-color: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-blue: #38bdf8;
  --accent-purple: #818cf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --danger: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screen {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
textarea {
  width: 100%;
  height: 150px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  resize: none;
}

textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

button {
  padding: 1rem;
  border-radius: 1rem;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(to right, #0284c7, #4f46e5);
  color: white;
}

.btn-secondary {
  background: var(--glass-bg);
  color: white;
  border: 1px solid var(--glass-border);
}

/* Light Toggle */
.light-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.light-emoji {
  font-size: 4rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 10px rgba(255, 234, 0, 0));
}

.light-emoji.on {
  filter: drop-shadow(0 0 20px rgba(255, 234, 10, 0.6));
}

.light-emoji:active {
  transform: scale(0.9);
}

/* Game Info */
.info-card {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
}

.prisoner-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--accent-blue);
}

/* Results */
.status-emoji {
  font-size: 5rem;
  text-align: center;
}

.transcript-container {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
}

.transcript-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
}

.transcript-item:last-child {
  border-bottom: none;
}

.timestamp {
  color: var(--text-secondary);
}

/* Custom Scrollbar for iPhone */
.transcript-container::-webkit-scrollbar {
  width: 4px;
}
.transcript-container::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 2px;
}
