:root {
  color-scheme: dark;
  --deep: #03140a;
  --green-1: #0a5c22;
  --green-2: #00b52a;
  --bright: #00ff00;
  --ink: #e8ffec;
  --muted: #9bc9a5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--deep);
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-width: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 92, 34, .34), transparent 45rem),
    var(--deep);
}

button, input { font: inherit; }
button { min-height: 48px; }
.shell { width: min(100% - 32px, 680px); margin: 0 auto; padding: clamp(40px, 10vh, 96px) 0 32px; }
.brand { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.brand img { filter: drop-shadow(0 0 12px rgba(0, 255, 0, .22)); }
.eyebrow, .state-label, .drop-hint {
  margin: 0 0 5px;
  color: var(--green-2);
  font: 700 .78rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.6rem); line-height: .95; letter-spacing: -.055em; }
h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 6vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; }
.panel {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: clamp(28px, 7vw, 56px);
  text-align: center;
  border: 2px solid var(--green-1);
  border-radius: 22px;
  background: rgba(2, 25, 10, .82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35), inset 0 0 36px rgba(0, 181, 42, .04);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.panel.is-dragging { border-color: var(--bright); transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(0,255,0,.1); }
.panel > div { width: 100%; }
.lead { margin: 0 auto 28px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.quiet, .privacy { color: var(--muted); line-height: 1.5; }
.quiet { margin: 22px 0 0; }
.privacy { margin: 20px auto 0; max-width: 570px; text-align: center; font-size: .88rem; }
.filename { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--bright); }
.primary, .secondary {
  width: min(100%, 390px);
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 800;
}
.primary { border: 2px solid var(--bright); background: var(--bright); color: #001f08; box-shadow: 0 0 24px rgba(0,255,0,.16); }
.primary:hover { background: #70ff70; border-color: #70ff70; }
.secondary { display: block; margin: 12px auto 0; border: 1px solid var(--green-1); background: transparent; color: var(--ink); }
.secondary:hover { border-color: var(--green-2); background: rgba(0,181,42,.08); }
button:focus-visible, .panel:focus-within { outline: 3px solid #fff; outline-offset: 4px; }
.drop-hint { margin: 20px 0 0; color: var(--muted); text-transform: none; letter-spacing: .04em; }
.error-label { color: #ffcc66; }
.activity { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.activity span { width: 12px; height: 12px; border-radius: 50%; background: var(--bright); animation: pulse 1.2s ease-in-out infinite; }
.activity span:nth-child(2) { animation-delay: .16s; }
.activity span:nth-child(3) { animation-delay: .32s; }
@keyframes pulse { 0%, 70%, 100% { opacity: .22; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 440px) {
  .shell { width: min(100% - 20px, 680px); padding-top: 26px; }
  .brand { margin-left: 8px; }
  .brand img { width: 52px; height: 52px; }
  .panel { min-height: 410px; padding: 28px 18px; border-radius: 16px; }
  .primary, .secondary { width: 100%; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
