/* Composition Lab: "Pro Camera" style. Dark body, orange accents, camera readouts. */
:root {
  --bg: #111111;
  --panel: #1a1a1a;
  --panel-2: #222222;
  --line: #2f2f2f;
  --ink: #efebe4;
  --muted: #a39d94;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
}
body {
  background: radial-gradient(1200px 500px at 50% -200px, #262019 0%, transparent 70%), var(--bg);
  min-height: 100vh;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
h1,
h2,
p {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}

/* Spanish: always under the English, smaller and in italics */
.es {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  opacity: 0.62;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 1px;
}

/* ---------- top bar ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.9);
}
.brand {
  font: 600 13px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand b {
  color: var(--ink);
}
.sep {
  color: #444;
}
.rec {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.pills {
  display: flex;
  gap: 6px;
}
.pills i {
  display: block;
  width: 30px;
  height: 6px;
  border-radius: 2px;
  background: #2c2c2c;
}
.pills i.ok {
  background: var(--good);
}
.pills i.miss {
  background: var(--warn);
}
.pills i.now {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.6);
}
.who {
  font: 600 12px var(--mono);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

/* ---------- buttons ---------- */
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row.center {
  justify-content: center;
}
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--accent);
  color: #111;
}
.btn.primary:hover {
  background: #ff8f3d;
}
.btn.ghost {
  background: var(--panel-2);
  border-color: #3a3a3a;
}
.btn.ghost:hover {
  border-color: #555;
}
.btn.big {
  padding: 12px 30px;
  font-size: 18px;
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn .es {
  font-weight: 500;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- welcome ---------- */
.welcome-wrap {
  display: grid;
  place-items: center;
  padding: 7vh 16px;
}
.welcome {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.eyebrow {
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.welcome h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.welcome h1 .es {
  font-size: 20px;
}
.lede {
  color: var(--muted);
  margin: 12px 0 24px;
}
.form {
  display: grid;
  gap: 16px;
}
.names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.form input,
.form select {
  padding: 11px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #0e0e0e;
  font-size: 17px;
}
.form .btn {
  justify-self: start;
}
.error {
  color: var(--warn);
  font-weight: 700;
}
.resume {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- instructions: big, at eye level ---------- */
.instr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 24px 10px;
  max-width: 1300px;
  margin: 0 auto;
}
.instr-main {
  text-align: center;
  flex: 1;
}
.tag {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tag .es {
  display: inline;
  margin-left: 8px;
}
.instr h1 {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.instr h1 .es {
  font-size: 0.62em;
  margin-top: 4px;
}
.demo-again {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  flex: none;
}
.play {
  width: 0;
  height: 0;
  border-left: 11px solid var(--accent);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* ---------- the stage and camera ---------- */
.stage {
  --sw: min(1000px, calc((100vh - 345px) * 1.5), calc(100vw - 150px));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: 0 20px 16px;
}
.stage.with-side {
  --sw: min(920px, calc((100vh - 345px) * 1.5), calc(100vw - 480px));
}
.camera {
  position: relative;
  user-select: none;
}
.cam-top {
  position: relative;
  height: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 70px 0 40px;
}
.dial {
  width: 80px;
  height: 22px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, #3a3a3a 0 3px, #202020 3px 6px);
  box-shadow: inset 0 1px 0 #555;
}
.hump {
  position: relative;
  width: 150px;
  height: 40px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #303030, #1f1f1f);
  box-shadow: inset 0 1px 0 #4a4a4a;
  display: grid;
  place-items: center;
}
.hump span {
  font: 700 11px var(--mono);
  letter-spacing: 0.2em;
  color: #6a655e;
}
.press {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.say {
  text-align: right;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.say .es {
  font-size: 11px;
}

/* a real-looking shutter button: metal collar and a domed button */
.shutter {
  position: relative;
  width: 74px;
  height: 30px;
  border: 0;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, #3d3d3d, #262626);
  box-shadow: inset 0 1px 0 #5a5a5a;
  cursor: pointer;
  padding: 0;
}
.shutter span {
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  width: 48px;
  height: 22px;
  border-radius: 50% 50% 8px 8px / 70% 70% 8px 8px;
  background: radial-gradient(ellipse at 40% 25%, #f4f1ea 0%, #c9c4ba 45%, #8d877d 100%);
  box-shadow: 0 2px 0 #1a1a1a, 0 0 0 3px #4a4a4a;
  transition: top 0.08s;
}
.shutter:hover span {
  box-shadow: 0 2px 0 #1a1a1a, 0 0 0 3px var(--accent);
}
.shutter.pressed span,
.shutter:active span {
  top: -7px;
}
.shutter.ready span,
.shutter.hl span {
  box-shadow: 0 2px 0 #1a1a1a, 0 0 0 3px var(--accent), 0 0 24px 6px rgba(255, 122, 26, 0.7);
  animation: pulse 1.1s ease-in-out infinite;
}
.locked .shutter {
  cursor: default;
}

.cam-body {
  position: relative;
  padding: 18px 70px 14px 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, #2c2c2c, #1a1a1a);
  box-shadow: inset 0 1px 0 #444, 0 30px 70px rgba(0, 0, 0, 0.6);
}
.grip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  border-radius: 0 26px 26px 0;
  background: repeating-radial-gradient(circle at 3px 3px, #262626 0 1px, #1b1b1b 1px 4px);
  box-shadow: inset 1px 0 0 #333;
}
.screen {
  position: relative;
  width: var(--sw);
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 3px #3a3a3a;
}
.screen svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.screen svg.dragging {
  cursor: grabbing;
}
.locked .screen svg {
  cursor: default;
}
.grid line {
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1.2;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.grid.hl line {
  stroke: #ffb36b;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.9));
}
.af {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  pointer-events: none;
}
.hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  font: 700 12px var(--mono);
  color: #ffb36b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.hl-ring,
.hl-shape {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-dasharray: 12 9;
  vector-effect: non-scaling-stroke;
  animation: march 1.2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 122, 26, 0.8));
}
.hl-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-opacity: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: glow 1.2s ease-in-out infinite;
}
@keyframes march {
  to {
    stroke-dashoffset: -42;
  }
}
@keyframes glow {
  50% {
    stroke-opacity: 0.35;
  }
}
@keyframes pulse {
  50% {
    filter: brightness(1.15);
  }
}

/* demo captions appear inside the scene, one at a time, highlighted */
.caption {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.bubble {
  pointer-events: auto;
}
.next-btn {
  flex: none;
  margin: 0;
  background: #111;
  color: var(--accent);
  font-size: 16px;
  padding: 8px 22px;
}
.next-btn .es {
  color: #ffd2ae;
}
.caption.pop-done .bubble {
  animation: beacon 1.6s ease-in-out infinite;
}
.caption[hidden] {
  display: none;
}
.caption.bottom {
  top: auto;
  bottom: 34px;
}
.caption.left {
  justify-content: flex-start;
}
.caption.right {
  justify-content: flex-end;
}
.bubble {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 88%;
  padding: 10px 14px 10px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.bubble .es {
  font-size: 0.7em;
  opacity: 0.75;
}
.caption.pop .bubble {
  animation: pop 0.5s ease-out, beacon 1.6s ease-in-out 0.5s infinite;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.92);
  }
}
@keyframes beacon {
  50% {
    box-shadow: 0 0 0 10px rgba(255, 122, 26, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}
.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flash.go {
  animation: flash 0.4s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}
.overlay[hidden] {
  display: none;
}
.done-card {
  max-width: 70%;
  padding: 24px 28px;
  border-radius: 16px;
  background: #161616;
  border: 1px solid var(--accent);
  box-shadow: 0 0 40px rgba(255, 122, 26, 0.35);
  text-align: center;
}
.done-text {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}
.done-text .es {
  font-size: 0.65em;
}

/* controls under the screen */
.controls {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 2px 0;
  flex-wrap: wrap;
}
.zoom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.zoom input,
.tilt input {
  flex: 1;
  min-width: 170px;
  accent-color: var(--accent);
}
.tilt input {
  width: 110px;
}
.zbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  background: #232323;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.lbl {
  font: 700 13px var(--mono);
  line-height: 1.1;
}
.lbl .es {
  font-size: 10px;
}
.tilt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tilt output {
  font: 600 12px var(--mono);
  color: var(--muted);
  min-width: 46px;
}
.pill {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #232323;
  font: 700 13px var(--mono);
  line-height: 1.1;
  cursor: pointer;
  text-align: left;
}
.pill .es {
  font-size: 10px;
}
.ztag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font: 800 16px var(--mono);
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ztag .es {
  font-size: 10px;
  letter-spacing: 0.05em;
}
.ztag::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--accent);
}
.zoom.hl {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.3), 0 0 26px rgba(255, 122, 26, 0.5);
}
.zoom.hl .ztag {
  opacity: 1;
  animation: bob 1s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translate(-50%, -4px);
  }
}
.locked .controls {
  opacity: 0.9;
}
.locked .controls input,
.locked .controls button {
  pointer-events: none;
}

/* guided checklist beside the camera */
.side {
  width: 300px;
  margin-top: 58px;
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.side h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.side h2 .es {
  font-size: 12px;
}
.checklist,
.criteria {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li,
.criteria li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #262626;
}
.checklist .es,
.criteria .es {
  font-size: 11px;
}
.check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid #4a4a4a;
  position: relative;
}
li.ok .check,
li.ready .check {
  background: var(--good);
  border-color: var(--good);
}
li.ok .check::after,
li.ready .check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #111;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
li.ready {
  color: var(--good);
}
li.todo {
  color: var(--muted);
}
.criteria li.miss .check {
  border-color: var(--warn);
}
.criteria li.miss .check::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 10px;
  height: 2.5px;
  background: var(--warn);
}
.nudge {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
  font-size: 15px;
}
.nudge.good {
  background: var(--good-soft);
  color: var(--good);
}

/* ---------- pop-ups ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}
.modal[hidden] {
  display: none;
}
.feedback {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.fb-photo {
  background: #0a0a0a;
  padding: 14px;
  display: grid;
  place-items: center;
}
.photo {
  display: block;
  width: 100%;
  height: auto;
}
.fb-photo .photo {
  border-radius: 6px;
}
.fb-body {
  padding: 22px 24px;
}
.fb-body h2 {
  font-size: 30px;
  font-weight: 800;
}
.fb-body h2 .es {
  font-size: 15px;
}
.feedback.pass h2 {
  color: var(--good);
}
.feedback.fail h2 {
  color: var(--warn);
}
.fb-sub {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 600;
}
.fb-sub .es {
  font-size: 13px;
}
.fb-body .row {
  margin-top: 16px;
}
.fb-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.demo-modal {
  --sw: min(900px, calc((100vh - 290px) * 1.5), calc(100vw - 160px));
}

/* ---------- results ---------- */
.shot-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--accent);
  color: #111;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}
.shot-banner .es {
  font-size: 0.6em;
}
.cam-ico {
  width: 34px;
  height: 24px;
  border: 3px solid #111;
  border-radius: 6px;
  position: relative;
  flex: none;
}
.cam-ico::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 3px solid #111;
  border-radius: 50%;
}
.results {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
}
.res-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.res-head h1 {
  font-size: 30px;
  font-weight: 800;
}
.res-head h1 .es {
  font-size: 15px;
}
.info {
  display: flex;
  gap: 30px;
  margin: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.info dt {
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.info dt .es {
  display: inline;
  margin-left: 4px;
}
.info dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.score.good {
  background: var(--good-soft);
  color: var(--good);
  border-color: rgba(74, 222, 128, 0.35);
}
.score strong {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}
.score small {
  font-size: 20px;
  opacity: 0.8;
}
.score span {
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.score .es {
  font-size: 10px;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.thumb {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--line);
}
.thumb.pass {
  border-color: rgba(74, 222, 128, 0.55);
}
.thumb.fail {
  border-color: rgba(251, 191, 36, 0.6);
}
.thumb figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}
.thumb .status {
  font-weight: 800;
  font-size: 14px;
}
.thumb .status .es {
  font-size: 10px;
}
.thumb.pass .status {
  color: var(--good);
}
.thumb.fail .status {
  color: var(--warn);
}
.redo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.redo .es {
  font-size: 10px;
}
.redo input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.res-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.message {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
}
.message.good {
  background: var(--good-soft);
  color: var(--good);
}

/* ---------- home ---------- */
.home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px;
}
.home h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.home .lede {
  max-width: 640px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.assign {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.15s, border-color 0.15s;
}
.assign:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.assign svg {
  display: block;
  width: 100%;
  height: auto;
}
.assign div {
  padding: 14px 16px 16px;
}
.assign h2 {
  font-size: 19px;
}
.assign h2 .es {
  font-size: 12px;
}
.assign p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- v3 additions ---------- */
.byline {
  margin-top: 6px;
  font: 600 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-mask {
  fill: #0b0b0b;
}
.frame-edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
}
.rotate {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rot-ico {
  width: 20px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  transform: rotate(-20deg);
  flex: none;
}
.rotate.hl {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.3), 0 0 26px rgba(255, 122, 26, 0.6);
  animation: pulse 1.1s ease-in-out infinite;
}
.locked .rotate {
  pointer-events: none;
}
.locked .rotate.hl {
  pointer-events: auto;
  cursor: pointer;
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid var(--good);
  color: var(--good);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: pop 0.4s ease-out;
  pointer-events: none;
}
.toast[hidden] {
  display: none;
}
.toast .es {
  color: #b7f5cc;
}
.thumb-photo {
  aspect-ratio: 3 / 2;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.thumb-photo .photo {
  width: 100%;
  height: auto;
}
.thumb-photo .photo.tall,
.fb-photo .photo.tall {
  width: auto;
  height: 100%;
}
.fb-photo .photo.tall {
  height: min(60vh, 520px);
}
.done-pop {
  width: min(560px, 100%);
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--accent);
  box-shadow: 0 0 60px rgba(255, 122, 26, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: pop 0.4s ease-out;
}
.done-pop h2 {
  font-size: 34px;
  font-weight: 800;
}
.done-pop h2 .es {
  font-size: 16px;
}
.done-pop p {
  margin: 12px 0 18px;
  font-size: 17px;
  font-weight: 600;
}
.done-pop .done-score {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 6px;
}
.done-pop .fine {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}
.done-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--good);
  position: relative;
}
.done-badge::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 12px;
  width: 14px;
  height: 28px;
  border: solid #111;
  border-width: 0 6px 6px 0;
  transform: rotate(45deg);
}
.btn.attention {
  animation: pulse 1s ease-in-out 4;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.35), 0 0 30px rgba(255, 122, 26, 0.6);
}

/* Rule of Thirds: stronger grid lines so they're easy to line things up with */
body[data-section='thirds'] .grid line {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.8));
}
.grid line.em,
body[data-section='thirds'] .grid line.em {
  stroke: #ffb36b;
  stroke-width: 5;
  filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.95));
  animation: emph 1.2s ease-in-out infinite;
}
@keyframes emph {
  50% {
    stroke-width: 3;
    stroke-opacity: 0.7;
  }
}
.grid-tag rect {
  fill: var(--accent);
}
.grid-tag text {
  fill: #111;
  font: 800 15px var(--sans);
}
.grid-tag text.es {
  font: italic 500 11px var(--sans);
  opacity: 0.8;
}
body[data-section='thirds'] .grid.hl line {
  stroke: #ffb36b;
  stroke-width: 4;
  filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.9));
}

/* ---------- v4: tall (rotated) camera ---------- */
.camera.tall {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
}
.camera.tall .cam-top {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  width: 150px;
  height: auto;
  padding: 40px 0 0 0;
}
.camera.tall .dial {
  width: 22px;
  height: 80px;
  border-radius: 0 8px 8px 0;
  background: repeating-linear-gradient(0deg, #3a3a3a 0 3px, #202020 3px 6px);
}
.camera.tall .hump {
  width: 40px;
  height: 130px;
  border-radius: 0 20px 20px 0;
}
.camera.tall .hump span {
  writing-mode: vertical-rl;
}
.camera.tall .press {
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
}
.camera.tall .say {
  text-align: left;
  margin: 0;
}
.camera.tall .cam-body {
  padding: 18px 22px 64px;
}
.camera.tall .grip {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: auto;
  height: 50px;
  border-radius: 0 0 26px 26px;
  box-shadow: inset 0 1px 0 #333;
}
.camera.tall .screen {
  width: auto;
  height: min(calc(100vh - 430px), calc(var(--sw) / 1.5 + 60px));
  aspect-ratio: 2 / 3;
}
.camera.tall .controls {
  width: calc(min(calc(100vh - 430px), calc(var(--sw) / 1.5 + 60px)) * 2 / 3);
  gap: 10px;
}
.camera.tall .zoom {
  min-width: 0;
  flex-basis: 100%;
}
.camera.tall .zoom input {
  min-width: 60px;
}
.camera.tall .caption .bubble {
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
}
.camera.turn-out {
  animation: turn-out 0.22s ease-in forwards;
}
.camera.turn-in {
  animation: turn-in 0.3s ease-out;
}
@keyframes turn-out {
  to {
    transform: rotate(35deg) scale(0.85);
    opacity: 0.3;
  }
}
@keyframes turn-in {
  from {
    transform: rotate(-35deg) scale(0.85);
    opacity: 0.3;
  }
}

/* thirds: only vertical lines are drawn, so make them easy to see */
body[data-section='thirds'] .grid line.em,
.grid line.em {
  stroke: #ffb36b;
  stroke-width: 5;
}

/* failed checks: a big red X */
.criteria li.miss {
  color: #ffd1cc;
}
.criteria li.miss .check {
  width: 26px;
  height: 26px;
  margin-top: -2px;
  border: 0;
  background: #e5484d;
}
.criteria li.miss .check::before,
.criteria li.miss .check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 11.5px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.criteria li.miss .check::after {
  transform: rotate(-45deg);
}

/* the rotate message has an X to close it */
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding-right: 12px;
}
.toast-x {
  order: 2;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  background: #232323;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- v5 ---------- */
/* the shutter button turns with the camera */
.camera.tall .shutter {
  transform: rotate(90deg);
  margin: 26px 0 26px 14px;
}
/* the end-of-demo card sits above everything so its buttons always show */
.done-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.done-layer .done-card {
  max-width: min(620px, 100%);
  animation: pop 0.35s ease-out;
}
.back-link {
  flex: none;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: var(--panel-2);
  line-height: 1.2;
}
.back-link:hover {
  border-color: var(--accent);
}

/* the rotate message: a small pop-up above everything */
.tip-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}
.tip-card {
  position: relative;
  width: min(480px, 100%);
  padding: 26px 28px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--good);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: pop 0.3s ease-out;
}
.tip-card p {
  margin: 0 0 16px;
  color: var(--good);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.tip-card p .es {
  color: #b7f5cc;
  font-size: 13px;
}
.tip-card .toast-x {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ---------- info pages (home, about, privacy) ---------- */
a.brand {
  text-decoration: none;
}
.toplinks {
  display: flex;
  gap: 18px;
}
.toplinks a {
  font: 600 13px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.toplinks a:hover,
.toplinks a[aria-current='page'] {
  color: var(--accent);
}
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 30px;
}
.doc h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.doc h1 .es {
  font-size: 18px;
}
.doc h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 34px 0 10px;
}
.doc h2 .es {
  font-size: 14px;
}
.doc h3 {
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--accent);
}
.doc h3 .es {
  color: var(--muted);
  font-size: 13px;
}
.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.55;
  color: #ddd8d0;
  margin: 0 0 12px;
}
.doc p .es,
.doc li .es {
  font-size: 14px;
  margin-top: 4px;
}
.doc a {
  color: var(--accent);
}
.doc .lead {
  font-size: 20px;
  margin-top: 18px;
}
.doc .lead .es {
  font-size: 15px;
}
.updated {
  font: 600 12px var(--mono);
  color: var(--muted) !important;
}
.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 700px) {
  .topics {
    grid-template-columns: 1fr;
  }
}
.topics section {
  padding: 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.topics p {
  font-size: 15px;
}
.steps-list,
.facts {
  padding-left: 22px;
}
.steps-list li,
.facts li {
  margin-bottom: 10px;
}
.notice {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn) !important;
}
.cta {
  margin-top: 30px !important;
}
.cta .btn {
  display: inline-block;
  text-decoration: none;
}
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 22px 24px 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--accent);
}
.assign .thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #222;
  padding: 0;
}
.assign .thumb svg {
  width: 100%;
  height: 100%;
}
.how {
  margin-top: 34px;
}
.how h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.how li {
  color: #ddd8d0;
  margin-bottom: 8px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.small a {
  color: var(--accent);
}
.welcome-links {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.welcome-links a {
  color: var(--muted);
}
.doc .eyebrow {
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.doc .eyebrow .es {
  font-size: 10px;
}
.doc .byline {
  font: 600 12px var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 8px 0 0;
}
