:root {
  color-scheme: dark;
  font-family: "Segoe UI", sans-serif;
  background: #100d19;
  color: #fff5ef;
  --muted: #c6b7ce;
  --peach: #ffbf96;
  --line: #ffffff24;
  --surface: #21172c;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #ffe2b9; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1136px, calc(100% - 64px)); margin-inline: auto; }
.masthead { min-height: 77px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 850; font-size: 1.14rem; letter-spacing: -.045em; }
.brand-light { color: #d4bacf; font-weight: 500; margin-left: -4px; }
.brand-icon { width: 23px; height: 23px; border-radius: 50%; margin-right: 4px; background: linear-gradient(#ffc991 0 47%, transparent 47% 52%, #ff86a7 52% 63%, transparent 63% 69%, #f96aa2 69% 81%, transparent 81% 89%, #f96aa2 89%); }
.notes-link { font-size: .92rem; color: #e4cfe5; text-decoration: none; }
.notes-link:hover { text-decoration: underline; }
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 80% 35%, #7f345d 0%, transparent 58%), linear-gradient(120deg, #23142c 20%, #402040 60%, #1a1629 100%);
  border-block: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, #160d20ef 0%, #24132ccd 29%, #21132974 61%, #2011297a 100%), linear-gradient(0deg, #1b1329ab, transparent 49%), url("./assets/coastline.webp");
  background-position: center, center, center 55%;
  background-size: cover;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 455px); gap: 60px; align-items: center; min-height: 565px; padding-block: 66px; }
.hero-copy { padding-block: 14px; }
h1 { font-family: Impact, "Arial Narrow", "Arial Black", sans-serif; font-weight: 900; font-size: clamp(2.6rem, 4.75vw, 4.75rem); line-height: .99; letter-spacing: -.015em; text-transform: uppercase; margin: 0 0 24px; }
h1 em { font-style: normal; color: #ffb693; background: linear-gradient(155deg, #ffd2a9 4%, #fb9cad 62%, #e57dc7 100%); background-clip: text; -webkit-text-fill-color: transparent; }
.intro { font-size: 1.14rem; line-height: 1.65; max-width: 385px; color: #f0dbe7; margin: 0; }
.tool { padding: 27px; background: #1c1429f2; border: 1px solid #e5a2cb38; border-radius: 23px; box-shadow: 0 20px 65px #1008178c; }
.tool-header { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.tool-header h2 { margin: 0 0 4px; font-size: 1.46rem; letter-spacing: -.035em; }
.tool-header p { margin: 0; color: var(--muted); line-height: 1.4; font-size: .94rem; }
.tool-icon { display: grid; grid-template: 1fr 1fr / 1fr 1fr; flex: 0 0 44px; gap: 7px; height: 44px; padding: 11px; border-radius: 12px; background: #f9a3be1c; color: #ffb6ca; }
.tool-icon i { border: 2px solid currentColor; border-right: 0; border-bottom: 0; border-radius: 2px 0 0; }
.tool-icon i:nth-child(2) { transform: rotate(90deg); }
.tool-icon i:nth-child(3) { transform: rotate(-90deg); }
.tool-icon i:nth-child(4) { transform: rotate(180deg); }
.drop-zone { min-height: 147px; border: 1px dashed #c88aac72; border-radius: 15px; background: #0d0a1470; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; align-content: center; gap: 11px; padding: 19px 10px; }
.drop-zone.dragging { background: #62385283; border-color: #ffc194; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 10px 23px; border: 0; border-radius: 9px; background: linear-gradient(100deg, #ffd195, #ffa5b9); color: #29162c; font-size: .98rem; font-weight: 750; box-shadow: 0 6px 22px #f29db321; }
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.paste-hint { color: var(--muted); flex-basis: 100%; text-align: center; margin: 1px 0 0; font-size: .9rem; }
.private-note { display: flex; align-items: center; gap: 8px; color: #dbbed5; margin: 13px 0 17px; font-size: .88rem; }
.private-note span { width: 7px; height: 7px; background: #c4e5b6; border-radius: 50%; }
.manual { margin-bottom: 15px; }
.manual-label { margin: 0 0 7px; display: block; color: #f1c9dc; font-size: .95rem; font-weight: 600; }
select { width: 100%; background: #110e1b; color: #fff5ef; border: 1px solid #b2799b; border-radius: 8px; padding: 10px; }
.feedback { line-height: 1.5; padding: 12px; border-radius: 9px; background: #f0a8d119; color: #fff0d9; margin-bottom: 13px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.choices button { border: 1px solid #c48ca8; background: #2b1a35; color: #fff5ef; padding: 9px 11px; border-radius: 8px; }
.choices button:hover { background: #462a51; }
.result { margin-bottom: 15px; background: #35223d; border: 1px solid #896080; border-radius: 12px; padding: 15px; }
.result h3 { margin: 4px 0 6px; }
.result p { line-height: 1.5; margin: 7px 0; }
.result .identified { color: var(--peach); font-size: .89rem; font-weight: 700; }
.result-list { list-style: none; margin: 13px 0 0; padding: 0; }
.result-item { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 9px; }
.result-item h4 { font-size: 1rem; margin: 0; }
.result .result-status { font-size: .875rem; color: #e4cde5; margin: 0 0 4px; }
.result .status-now { color: var(--peach); }
.source-links { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 7px; font-size: .89rem; }
.result summary, .note summary { color: #ffbccc; font-weight: 650; font-size: .95rem; }
.result details { margin-top: 10px; }
.chapter-notes { padding-block: 46px 49px; }
.section-heading h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -.045em; }
.section-heading p { margin: 0 0 23px; color: var(--muted); }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.note { background: var(--surface); border-radius: 14px; border: 1px solid var(--line); padding: 22px; }
.note-stage { color: var(--peach); font-size: .86rem; font-weight: 700; margin: 0 0 8px; }
.note h3 { margin: 0 0 8px; font-size: 1.21rem; letter-spacing: -.018em; }
.note p:not(.note-stage) { color: #e1d0e4; line-height: 1.58; margin: 0 0 13px; }
.note details p { margin-block: 8px 0 !important; }
.note details a, .result details a { color: #ffcfaf; text-underline-offset: 3px; }
.index-link { margin: 20px 0 0; color: #f1c9dc; font-size: .9rem; }
.footer { padding-block: 18px 26px; color: #cdb7ce; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .87rem; }
.footer p { margin: 0; line-height: 1.5; }
.footer details p { margin-top: 6px; max-width: 62ch; }
.footer a { justify-self: start; }
@media (max-width: 850px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 27px; min-height: 0; padding-block: 43px; }
  .hero::before { background-position: center, center, 70% center; }
  .hero-copy { padding-block: 0; }
  .tool { max-width: 530px; }
  h1 { font-size: clamp(2.05rem, 8.8vw, 4.75rem); margin-bottom: 18px; }
}
@media (max-width: 500px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 62px; }
  .hero-inner { padding-block: 30px; }
  .tool { padding: 17px; border-radius: 16px; }
  .intro { font-size: 1.01rem; }
  .tool-header { gap: 11px; }
  .tool-header h2 { font-size: 1.29rem; }
  .chapter-notes { padding-block: 32px; }
  .note-grid { grid-template-columns: 1fr; }
}
