:root {
  color-scheme: dark;
  --bg: #0e1218;
  --card: #171d27;
  --line: #2a3444;
  --text: #e8eef7;
  --muted: #8b98ab;
  --accent: #5cb0ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 500px at 10% -10%, #1a2a44 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 40px auto 96px;
}

.hero {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 650;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 8px;
  margin-bottom: 16px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

dl {
  margin: 0;
}

.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.95rem;
}

dd {
  margin: 0;
  word-break: break-word;
  font-size: 0.95rem;
}

.shot-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--accent);
  color: #0e1218;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.shot-btn svg {
  width: 18px;
  height: 18px;
}

.shot-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.shot-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.shot-preview {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 11, 16, 0.72);
}

.shot-preview[hidden] {
  display: none;
}

.shot-preview-card {
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.shot-preview-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-preview-card img {
  display: block;
  width: 100%;
  border-radius: 10px;
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  user-select: none;
}

.shot-preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.shot-preview-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--accent);
  color: #0e1218;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.shot-preview-actions .ghost {
  background: #2a3444;
  color: var(--text);
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
