:root {
  font-family: Georgia, serif;
  color: #203337;
  background: #f5f0e6;
  font-size: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 32px max(6vw, 20px);
  background: #173f43;
  color: #fff4d6;
  border-bottom: 5px solid #dca857;
}
.emblem {
  font-size: 58px;
  color: #efc974;
}
h1 {
  font-size: clamp(26px, 4vw, 42px);
  margin: 6px 0;
}
h2 {
  font-size: 30px;
  line-height: 1.2;
}
.eyebrow {
  font: 700 11px/1.5 system-ui;
  letter-spacing: 2px;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}
section {
  background: #fffcf5;
  border: 1px solid #dfd6c4;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 40px);
  margin: 20px 0;
  box-shadow: 0 8px 30px #173f4308;
}
p {
  line-height: 1.65;
}
nav,
.controls,
.scene-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
button {
  font: 600 16px system-ui;
  border: 0;
  border-radius: 12px;
  background: #1d5b59;
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  min-height: 48px;
  margin: 5px 0;
}
button:hover {
  background: #2b7770;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #cf8f2d;
  outline-offset: 3px;
}
label {
  display: block;
  font: 600 15px system-ui;
  margin: 16px 0 8px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  font: 18px system-ui;
  padding: 13px;
  border: 1px solid #cbcbbd;
  background: white;
  border-radius: 10px;
  margin-top: 8px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  padding: 20px;
  background: #eee9da;
  border-radius: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 22px;
}
.mic {
  width: 100%;
  background: #b26838;
  font-size: 22px;
  padding: 22px;
}
.mic.recording {
  background: #a53739;
  box-shadow: 0 0 0 6px #a5373920;
}
.question {
  background: #eee9da;
  padding: 20px;
  border-radius: 16px;
  margin-top: 24px;
}
#art {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #183b48;
  border-radius: 15px;
  margin-top: 20px;
}
#notice {
  font: 16px/1.5 system-ui;
  min-height: 24px;
}
#notice.error {
  color: #9a2830;
}
.controller-note {
  color: #5b566d;
  font-size: 16px;
}
#dialogue p {
  border-left: 3px solid #dca857;
  padding-left: 16px;
}
.scene-top {
  justify-content: space-between;
}
footer {
  text-align: center;
  font: 13px system-ui;
  color: #637276;
  padding: 30px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 500px) {
  nav button {
    flex: 1;
    font-size: 14px;
    padding: 12px;
  }
  section {
    padding: 20px;
  }
  .controls button {
    flex: 1;
  }
  header {
    padding: 20px;
  }
  .eyebrow {
    font-size: 9px;
  }
}
.hero-portrait {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 10px;
}
