:root {
  --ink: #000; --surface: #0b0b0b; --surface-2: #141414; --surface-3: #1c1c1c;
  --line: #2e2e2e; --line-2: #5a5a5a;
  --text: #e8e8e8; --text-dim: #bdbdbd; --text-faint: #8a8a8a;
  --win: #2fbf4f; --win-line: rgba(47,191,79,.4); --win-wash: rgba(47,191,79,.08);
  --lose: #ff6b5e; --lose-line: rgba(255,107,94,.4); --lose-wash: rgba(255,107,94,.1);
  --mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font: 15px/1.45 var(--mono); }
a { color: var(--text); text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: rgba(0,0,0,.92); border-bottom: 1px solid var(--line); }
.top b { letter-spacing: .12em; text-transform: uppercase; }
.top .sp { flex: 1; }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 60px; }

h1 { font-size: 22px; letter-spacing: .06em; margin: 4px 0 16px; text-transform: uppercase; }
h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 24px 0 10px; }
.back { display: inline-block; margin-bottom: 12px; color: var(--text-dim); }

.login { max-width: 460px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; }
.login p { color: var(--text-faint); font-size: 13px; margin: 0 0 16px; }
.login input { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--text); font: 15px var(--mono); letter-spacing: .04em; }
.login input:focus { outline: none; border-color: var(--win); }
.login .err { padding: 10px 0 0; text-align: left; }
.login .btn { width: 100%; margin-top: 14px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); }
.row:hover { border-color: var(--line-2); background: var(--surface-2); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 700; font-size: 15px; }
.row .t .w { color: var(--win); font-weight: 500; }
.row .m { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.row .side { display: flex; align-items: center; gap: 10px; }
.row .cnt { color: var(--text-dim); }
.row.done { border-color: var(--win-line); background: linear-gradient(var(--win-wash), var(--win-wash)), var(--surface); }
.chev { font-size: 24px; line-height: 1; color: var(--text-faint); }
.tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--win); color: #000; font-weight: 800; }
.tick.inline { width: auto; height: auto; background: none; color: var(--win); font-size: 14px; }

.facts { background: var(--surface); border: 1px solid var(--win-line); border-radius: 14px; padding: 16px 18px; }
.facts .big { font-size: 20px; font-weight: 800; color: var(--win); }
.facts .sub { color: var(--text-faint); font-size: 12.5px; }
.kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; margin-top: 10px; }
.kv { display: flex; flex-direction: column; }
.kv .k { font-size: 11.5px; color: var(--text-faint); }
.kv .v { font-weight: 700; color: var(--win); word-break: break-word; }
.kv .v a { color: var(--win); text-decoration: underline; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.shot { display: flex; flex-direction: column; gap: 6px; }
.shot span { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; }
.shot button { padding: 0; border: 1px solid var(--line); background: var(--surface-3); border-radius: 12px;
  overflow: hidden; aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.comment { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.comment-h { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.comment .v { white-space: pre-wrap; word-break: break-word; }
.comment .v.none { color: var(--text-faint); font-style: italic; }

.btn { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.btn:hover { background: var(--surface-3); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn-big { padding: 14px 18px; font-size: 15px; }
.btn-win { background: var(--win); border-color: var(--win); color: #000; }
.btn-win:hover { background: #45d564; }
.btn-danger { color: var(--lose); border-color: var(--lose-line); background: transparent; }
.btn-danger:hover { background: var(--lose-wash); }
.btn[disabled] { opacity: .5; cursor: default; }
.acts { display: flex; gap: 10px; margin-top: 16px; }
.acts .btn-big { flex: 1; }
.danger-zone { margin-top: 28px; text-align: right; }

.empty, .err { padding: 40px 16px; text-align: center; color: var(--text-faint); }
.err { color: var(--lose); }

.lb { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.94); display: flex;
  align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb span { position: absolute; top: 14px; left: 20px; color: var(--text-dim); }

@media (max-width: 520px) {
  .shots { grid-template-columns: 1fr; }
  .acts { flex-wrap: wrap; }
}
