:root {
  color-scheme: light;
  --bg-top: #f2efe6;
  --bg-bottom: #c9b48c;
  --desk: #7a4e2f;
  --desk-shadow: #5b3a23;
  --panel: #f8f4ea;
  --accent: #2f3a2e;
  --highlight: #d6a84d;
  --danger: #b74a3b;
  --success: #2b6b3f;
  --text: #1e1e1e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Alegreya", "Georgia", serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.scene {
  width: min(1100px, 95vw);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.desk {
  position: relative;
  background: var(--desk);
  border-radius: 24px;
  padding: 24px;
  min-height: 540px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.radio {
  position: relative;
  background: #2b2b2b;
  border-radius: 18px;
  padding: 18px;
  border: 3px solid #1a1a1a;
  box-shadow: inset 0 0 0 2px #4c4c4c;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.radio:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.antenna {
  position: absolute;
  top: -40px;
  right: 20px;
  width: 12px;
  height: 70px;
  background: linear-gradient(#d6d6d6, #5b5b5b);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.antenna::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -8px;
  width: 28px;
  height: 12px;
  border-radius: 12px;
  background: #d6d6d6;
}

.radio__screen {
  background: #122320;
  color: #c7f3d0;
  font-family: "Courier New", monospace;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.radio__knobs {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.knob {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #666, #222);
  border: 2px solid #111;
}

.notepad {
  background: #f9f1d6;
  padding: 16px;
  border-radius: 16px;
  border: 2px dashed #c2a36e;
  box-shadow: 6px 6px 0 var(--desk-shadow);
}

.notepad h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.tools {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.morse-key {
  width: 120px;
  height: 50px;
  background: #3a2a1f;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px #1e120b;
  position: relative;
}

.morse-key::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 16px;
  width: 60px;
  height: 20px;
  background: #d9c7a1;
  border-radius: 12px;
}

.coffee {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #5a2f1e;
  border: 6px solid #f1e3c6;
  box-shadow: inset 0 0 0 6px #3a1f13;
}

.lawbook {
  width: 70px;
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8c2f2f, #5b1f1f);
  border: 3px solid #3a1414;
  position: relative;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--desk-shadow);
}

.lawbook::after {
  content: "LOV";
  position: absolute;
  top: 12px;
  left: 10px;
  font-weight: 700;
  color: #f8e7c2;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.panel {
  background: var(--panel);
  padding: 24px;
  border-radius: 24px;
  border: 2px solid #e0d6c2;
  display: grid;
  gap: 16px;
  min-height: 540px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel__header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.status {
  background: #ece0c6;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.prompt {
  font-size: 1.05rem;
  line-height: 1.5;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #e0d6c2;
  border-radius: 16px;
  background: #fffaf0;
}

.choices {
  display: grid;
  gap: 12px;
}

.choice {
  border: 2px solid #c8b79d;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.choice:hover:not(:disabled) {
  border-color: var(--highlight);
  transform: translateY(-2px);
}

.choice:disabled {
  cursor: default;
  opacity: 0.7;
}

.feedback {
  min-height: 60px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
}

.feedback.success {
  color: var(--success);
  background: #e7f3ea;
}

.feedback.fail {
  color: var(--danger);
  background: #f8e6e3;
}

.panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.disclaimer {
  margin-top: 20px;
  max-width: 1100px;
  font-size: 0.9rem;
  color: #3f3b32;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 96, 64, 0.3);
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
}

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

button.secondary {
  background: var(--accent);
  color: #fef9ef;
}

button.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .scene {
    grid-template-columns: 1fr;
  }

  .desk {
    min-height: auto;
  }

  .panel {
    min-height: auto;
  }
}
