:root {
  --bg: #0f1115;
  --card: #171a21;
  --text: #eef0f4;
  --text-dim: #a7adba;
  --accent: #4f9dff;
  --border: #2a2e38;
  --step-num-bg: #4f9dff;
  --step-num-text: #0f1115;
  --warn-bg: #3a2a12;
  --warn-border: #a9711f;
  --warn-text: #f0c987;
  max-width: 100vw;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap { max-width: 640px; margin: 0 auto; }

header.page-head {
  padding: 20px 0 8px;
}

a.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
a.back-link:hover { text-decoration: underline; }

h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

p.subtitle {
  color: var(--text-dim);
  margin: 0 0 4px;
  font-size: 0.95rem;
}

p.updated {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 4px 0 20px;
}

.tile-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
}

.tile-list a:active { background: #1d212b; }

.tile-list .tile-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.tile-list .tile-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin: 18px 0;
}

.warn-box strong { color: var(--warn-text); }

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  counter-increment: step;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 16px 16px 18px;
  margin-bottom: 18px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--step-num-bg);
  color: var(--step-num-text);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 8px;
  flex-shrink: 0;
}

.step-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.step-body {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.shot {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  background: #05070a;
}

.shot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 10px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  background: #05070a;
}

.step-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

footer.page-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1b1e24;
    --text-dim: #666e7d;
    --border: #e2e5ea;
    --warn-bg: #fff6e6;
    --warn-border: #e2a63b;
    --warn-text: #7a5410;
  }
  .shot, .shot-placeholder { background: #eef0f4; }
}
