:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --frame: #171717;
  --panel: #262626;
  --field: #121212;
  --line: #3a3a3a;
  --edge: #8a8a8a;
  --text: #fff;
  --muted: #c4c4c4;
  --lime: #c8f088;
  --lime-fill: #404038;
  --lime-glow: rgb(200 240 136 / 0.45);
  --bad: #ff8a80;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(1200px 480px at 50% -160px, #2a2a2a, transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(h1, h2, h3, p, dl, dd) { margin: 0; }
h1, h2, h3, button, .primary, .secondary, summary { font-style: italic; font-weight: 700; }
h1 { font-size: 32px; line-height: 40px; }
h2 { color: var(--lime); font-size: 20px; line-height: 28px; }
a { color: var(--lime); text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }

button, .primary, .secondary {
  min-height: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  background: #080808;
  color: var(--text);
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.primary {
  border-color: var(--lime);
  background: var(--lime-fill);
  color: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
}

.primary:hover:enabled, a.primary:hover { background: #4c5440; }
.secondary:hover:enabled, a.secondary:hover { border-color: var(--lime); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.secondary.danger { color: var(--bad); border-color: var(--bad); }

input:is([type="text"], [type="search"]), select {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--field);
}

input[aria-invalid="true"] { border-color: var(--bad); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  box-shadow: 0 0 12px var(--lime-glow);
}

.status, .hint { color: var(--muted); font-size: 14px; line-height: 20px; }
.status[data-error] { color: var(--bad); }
.back-link { display: inline-block; margin-block-start: 20px; padding-block: 4px; }

.entry {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 50% 24%, rgb(200 240 136 / 0.09), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / 0.025) 14px 15px),
    var(--bg);
}

.entry-panel {
  position: relative;
  overflow: clip;
  width: min(100%, 440px);
  padding: clamp(24px, 6vw, 40px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--frame);
  box-shadow: 0 20px 72px #0008;
}

.entry-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 28px;
  color: var(--lime);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
}

.entry-brand img { border-radius: 8px; }
.entry h1 { font-family: var(--display); font-size: clamp(36px, 8vw, 48px); line-height: 1.06; overflow-wrap: anywhere; }
.entry-note { margin-block-start: 8px; color: var(--muted); }
.entry-field { display: grid; gap: 8px; margin-block-start: 20px; }
.entry-action {
  width: 100%;
  min-height: 48px;
  margin-block-start: 24px;
  background: var(--lime);
  color: #111609;
  box-shadow: none;
}
.entry-action:hover:enabled { background: #d7f6aa; }
.entry-panel .status:not(:empty), noscript p { margin-block-start: 12px; }
