:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #122435; background: #d8e3de; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; }
main { width: min(1440px, 100%); margin: auto; background: #f3f1e8; box-shadow: 0 0 60px #14333d33; }
.hero { min-height: 560px; padding: clamp(28px, 6vw, 78px); color: #f8f1d4; background: radial-gradient(circle at 80% 22%, #c6d95744 0 12%, transparent 33%), linear-gradient(128deg, #0e3342, #24645e 52%, #a25945); }
.hero nav { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.hero > p:first-of-type { margin: 90px 0 12px; color: #e6e980; font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.hero h1 { max-width: 1100px; margin: 0; font: 900 clamp(58px, 10vw, 132px)/.85 Georgia, serif; letter-spacing: -.06em; }
.hero .deck { max-width: 760px; margin: 34px 0 0; font: 22px/1.5 Georgia, serif; }
.desk { display: grid; grid-template-columns: minmax(310px, 420px) minmax(0, 1fr); min-height: 700px; border-bottom: 2px solid #183545; }
.controls { padding: clamp(24px, 4vw, 46px); background: #e7ddc5; border-right: 2px solid #183545; }
.controls h2 { margin: 0 0 26px; font: 800 clamp(36px, 5vw, 58px)/.92 Georgia, serif; }
.controls > label, .tuning label { display: grid; gap: 8px; margin: 16px 0; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.drop { padding: 24px; color: #f7f0da; background: #183545; border: 2px dashed #d6db72; cursor: pointer; }
.drop[data-drag="true"] { color: #183545; background: #d6db72; }
.drop input { width: 100%; margin-top: 12px; }
.drop span { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
select { width: 100%; padding: 13px; color: #122435; background: #fffdf5; border: 2px solid #183545; }
details { margin: 18px 0; border-top: 1px solid #7b6e5d; border-bottom: 1px solid #7b6e5d; }
summary { padding: 14px 0; font-weight: 800; cursor: pointer; }
.tuning { padding-bottom: 8px; }
.tuning output { float: right; color: #a34b3b; }
input[type="range"] { width: 100%; accent-color: #a34b3b; }
.species-card { margin: 22px 0; padding: 20px; background: #fffdf5; border: 1px solid #183545; border-left: 8px solid #2d7770; }
.species-card > p:first-child { margin: 0; color: #9b4e42; font: italic 14px Georgia, serif; }
.species-card h3 { margin: 5px 0 12px; font: 800 29px/1 Georgia, serif; }
.species-card strong, .species-card span { display: block; margin-top: 7px; font-size: 13px; }
.species-card > p:last-child { margin: 16px 0 0; line-height: 1.45; }
button { width: 100%; padding: 15px; color: white; background: #a34b3b; border: 2px solid #183545; box-shadow: 5px 5px 0 #183545; font-weight: 900; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.stage { min-width: 0; padding: clamp(20px, 4vw, 50px); background: #102d38; }
.empty, .compare { aspect-ratio: 4 / 3; width: 100%; max-height: 72vh; margin: auto; overflow: hidden; background: #0a2028; border: 1px solid #82a7a0; }
.empty[hidden], .compare[hidden] { display: none; }
.empty { display: grid; place-content: center; color: #8eb7ae; text-align: center; }
.empty span { font-size: 70px; }
.compare { position: relative; }
.compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.result-pane { position: absolute; inset: 0; overflow: hidden; border-right: 2px solid #f4e56a; }
.result-pane canvas { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; top: 10px; z-index: 2; padding: 6px 9px; color: #122435; background: #f4e56a; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.tag-original { right: 10px; }
.tag-result { left: 10px; }
.split { display: grid; gap: 8px; margin: 20px 0 10px; color: #e7ead8; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.status { min-height: 24px; color: #b9d6cf; }
.status[data-busy="true"] { color: #f4e56a; }
.plain, .limit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 80px); padding: clamp(34px, 6vw, 78px); border-bottom: 1px solid #183545; }
.plain { color: #f5f0df; background: #a34b3b; }
.plain > div > p { font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.plain h2, .limit h2 { margin: 0; font: 800 clamp(38px, 6vw, 72px)/.94 Georgia, serif; }
.plain > p, .limit > p { margin: 0; font: 19px/1.6 Georgia, serif; }
.limit { background: #dbe4d8; }
.sources { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.sources a { padding: 9px 12px; color: #f8f1d4; background: #183545; font-size: 12px; font-weight: 800; text-decoration: none; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 17px 24px; color: #dbe4d8; background: #102d38; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
@media (max-width: 780px) {
  .hero { min-height: 0; padding: 34px 20px 48px; }
  .hero > p:first-of-type { margin-top: 58px; }
  .desk, .plain, .limit { grid-template-columns: 1fr; }
  .controls { border-right: 0; border-bottom: 2px solid #183545; }
  .stage { padding: 14px 10px 26px; }
  .empty, .compare { max-height: none; }
  .sources { grid-column: auto; }
}
