:root { font-family: system-ui, sans-serif; }
body { margin: 0; background: #0b0b12; color: #eee; }
.app { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* Age Verification Modal */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
}
.modal.hidden { display: none; }
.modal-content {
  background: #141426;
  border: 2px solid #2a2a4a;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
}
.modal-content h2 { margin-top: 0; font-size: 28px; }
.disclaimer {
  background: #0f0f1b;
  border-left: 4px solid #ffd21f;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  text-align: left;
}
.disclaimer h3 { margin-top: 0; }
.disclaimer ul { margin: 0; padding-left: 20px; }
.disclaimer li { margin: 8px 0; }
.age-buttons { display: flex; gap: 12px; margin-top: 20px; }
.age-buttons button { flex: 1; }

.card {
  background: #141426;
  border: 1px solid #2a2a4a;
  border-radius: 16px;
  padding: 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.game-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instructions-section {
  background: #0f0f1b;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.instructions-section h3 {
  margin-top: 0;
  color: #ffd21f;
  font-size: 18px;
  margin-bottom: 15px;
}

.instructions-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.instruction-item {
  background: #141426;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid #ffd21f;
  font-size: 14px;
  line-height: 1.5;
}

.instruction-item strong {
  color: #ffd21f;
  display: block;
  margin-bottom: 4px;
}

.instruction-item p {
  margin: 4px 0;
  color: #ccc;
}

.instruction-item ul {
  margin: 4px 0;
  padding-left: 20px;
  color: #ccc;
}

.instruction-item li {
  margin: 2px 0;
}

@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .instructions-section {
    max-height: none;
  }
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
label input, label select {
  font-size: 18px;
  padding: 10px;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  background: #0f0f1b;
  color: #eee;
}
label input:focus, label select:focus {
  outline: none;
  border-color: #ffd21f;
}
#username {
  font-size: 18px;
  padding: 12px;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  background: #0f0f1b;
  color: #eee;
  width: 100%;
  max-width: 300px;
}
#username:focus {
  outline: none;
  border-color: #ffd21f;
}

.slot {
  margin: 24px 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.reel {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  font-size: 120px;
  border-radius: 20px;
  background: #0f0f1b;
  border: 2px solid #333;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04);
}

.btn {
  padding: 16px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}
.btn.primary { background: #ffd21f; color: #111; }
.btn.waiting { background: #b00020; color: #fff; }
.btn.ready { background: #0c8534; color: #111; }
.btn.danger { background: #ff5252; color: #111; }

.hidden { display: none !important; }
.msg { opacity: 0.9; min-height: 24px; }

.bottom-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.bottom-buttons button {
  flex: 0 1 auto;
  padding: 12px 20px;
  font-size: 14px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay.hidden {
  display: none !important;
}

.call {
  width: min(95vw, 1200px);
  height: 80vh;
  background: #111;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callRow {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  justify-content: center;
}

.callRow.video-row {
  flex: 1;
}

.video-container {
  flex: 0 0 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-container label {
  font-weight: 700;
  color: #ffd21f;
  text-align: center;
}

.callRow:first-child {
  flex: 1;
}

.callRow:last-child {
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #333;
}

video {
  flex: 1;
  min-height: 400px;
  background: #000;
  border-radius: 16px;
  object-fit: cover;
}

/* Chat Styles */
.chat {
  width: min(95vw, 600px);
  height: 70vh;
  background: #141426;
  border: 2px solid #2a2a4a;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a4a;
  padding-bottom: 15px;
}

.chatHeader h2 {
  margin: 0;
  font-size: 24px;
}

.chatMessages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.chatMessage {
  background: #0f0f1b;
  border-radius: 12px;
  padding: 12px 16px;
  border-left: 4px solid #ffd21f;
}

.chatMessage .username {
  font-weight: 700;
  color: #ffd21f;
  font-size: 14px;
  margin-bottom: 4px;
}

.chatMessage .timestamp {
  font-size: 12px;
  color: #888;
}

.chatMessage .content {
  margin-top: 4px;
  word-wrap: break-word;
}

.chatInput {
  display: flex;
  gap: 10px;
  border-top: 1px solid #2a2a4a;
  padding-top: 15px;
}

.chatInput input {
  flex: 1;
  padding: 12px;
  border: 1px solid #2a2a4a;
  border-radius: 10px;
  background: #0f0f1b;
  color: #eee;
  font-size: 14px;
}

.chatInput input:focus {
  outline: none;
  border-color: #ffd21f;
}
