:root {
  --bg: #000;
  --ink: #f5f5f5;
  --muted: #8a8a8a;
  --line: rgba(255, 255, 255, 0.12);
  --white: #fff;
}
html, body {
  margin: 0;
  width: 320px;
  color: var(--ink);
  font: 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image: none;
  overflow: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  background: #fff;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 140px; height: 110px; left: -60px; top: -50px;
  border-radius: 42% 58% 60% 40% / 48% 36% 64% 52%;
}
body::after {
  width: 120px; height: 90px; right: -50px; bottom: -40px;
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
}
header, .herd, .lede, label, .actions, .hint {
  position: relative;
  z-index: 1;
}
header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 8px;
}
header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #000;
}
.word {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--white);
}
.tag {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.herd {
  margin: 0 14px;
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--white);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
}
.herd.no {
  border-color: var(--line);
  color: var(--muted);
  font-weight: 500;
}
.lede { margin: 10px 14px 12px; color: var(--ink); }
label {
  display: block;
  margin: 0 14px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #0a0a0a;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink);
}
input {
  flex: 1;
  border: 0;
  background: transparent;
  font: 600 16px ui-monospace, Menlo, monospace;
  outline: none;
  min-width: 0;
  color: var(--white);
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 8px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 6px;
  padding: 9px;
  font-weight: 650;
}
.btn.gold { background: var(--white); color: #000; border: 1px solid var(--white); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.hint {
  margin: 0;
  padding: 4px 14px 14px;
  font-size: 11px;
  color: var(--muted);
}
