:root {
  --bg: #f7f7f9;
  --card: #ffffff;
  --text: #1c1c22;
  --muted: #62626d;
  --accent: #2f6fed;
  --border: #e2e2e8;
  --error: #c62828;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141418;
    --card: #1e1e24;
    --text: #ececf1;
    --muted: #a0a0ab;
    --accent: #6b9bff;
    --border: #33333d;
    --error: #ff6b6b;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px;
}

header { display: flex; justify-content: space-between; align-items: center; }
h1 { margin-bottom: 4px; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button { background: var(--card); border-color: var(--border); color: var(--muted); }
.lang-switch button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.slogan { font-weight: 600; margin: 0 0 4px; }
.tagline { color: var(--muted); margin-top: 0; }
h1 a { color: inherit; text-decoration: none; }

nav { display: flex; gap: 8px; margin-bottom: 16px; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); }
nav a.active { color: var(--text); background: var(--card); font-weight: 600; }

a { color: var(--accent); }

.steps { padding-left: 0; list-style: none; counter-reset: step; }
.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.step-photo { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--bg); border-radius: 8px; margin-bottom: 12px; }
.step h3 { margin: 0 0 8px; }
.step h3::before { content: counter(step) ". "; color: var(--accent); }
.step p { margin: 0 0 8px; }
.tip { color: var(--muted); font-size: 14px; margin-bottom: 0 !important; }

form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); gap: 4px; }

input, select, button {
  font: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: pointer;
}

.error { color: var(--error); }

section {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }

.power-inputs { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.power-inputs label { flex: 1; min-width: 160px; }

.scores { display: flex; gap: 16px; margin-top: 16px; }
.scores div { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.scores span { display: block; font-size: 28px; font-weight: 600; }
.scores small { color: var(--muted); }

ul { padding-left: 20px; }

.video-section { margin: 0 0 16px; }
.video-section .tip { margin-top: 8px; }
.video-section h2 { margin: 0 0 12px; font-size: 20px; }
.video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
}
.video .play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 22px;
}
button.video:hover .play { background: #e62117; }
