/* AtomicWorld: misma base que DNAinvent y Relative Developers (tinta, grises, bordes finos).
   El color pertenece a los datos: familias de partículas y series del gráfico. */

:root {
  --bg: #E8EDEF;
  --surface: #F8FAFB;
  --ink: #16232D;
  --muted: #566874;
  --line: #C7D1D6;
  --focus: #2B62C2;
  --mark: #E6DDF6;           /* sustituciones y coincidencias resaltadas */

  --accent: #B5481C;  --accent-bg: #F6E0D5;   /* naranja de AtomicWorld (el mismo que en la web de la marca) */
  --warn: #BC3A30;    --warn-bg: #F5D9D5;

  /* Series del gráfico y familias (paleta validada para daltonismo) */
  --s1: #2a78d6;  --s2: #eb6834;  --s3: #1baf7a;  --s4: #eda100;
  --s5: #e87ba4;  --s6: #008300;  --s7: #6250d6;

  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131E26;
    --surface: #1A2833;
    --ink: #E2E9ED;
    --muted: #9AABB5;
    --line: #2F414D;
    --focus: #7EA6F0;
    --mark: #3E3459;
    --accent: #F3976D;  --accent-bg: #47281C;
    --warn: #F0827A;    --warn-bg: #46241F;
    --s1: #3987e5;  --s2: #d95926;  --s3: #199e70;  --s4: #c98500;
    --s5: #d55181;  --s6: #008300;  --s7: #9085e9;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- Cabecera ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 0.35rem; color: inherit; text-decoration: none; }
.wordmark { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo { display: block; width: 40px; height: 40px; }

.tagline { margin: 0; color: var(--muted); }

.lang { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }

/* ---------- Distribución ---------- */

.layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  max-width: 78rem;
  margin: 0 auto;
}

.toolnav {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 1.75rem 1rem 2rem clamp(1rem, 3vw, 2rem);
}

.toolnav h2 {
  margin: 1.4rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}
.toolnav h2:first-child { margin-top: 0; }

.toolnav ul { list-style: none; margin: 0; padding: 0; }

.toolnav button {
  display: block;
  width: 100%;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.toolnav button:hover { border-left-color: var(--line); }
.toolnav button[aria-current="page"] { border-left-color: var(--ink); font-weight: 700; }

.panel {
  min-height: 100vh;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.panel:focus { outline: none; }

.panel > h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.about { margin: 0 0 1.75rem; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Formularios ---------- */

form { display: grid; gap: 1rem; max-width: 46rem; }

.field { display: grid; gap: 0.3rem; }
.field > span { font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.row .field { flex: 1 1 10rem; }
.row .field.num { flex: 0 1 13rem; }

textarea, input, select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 5.5rem; resize: vertical; font-family: var(--mono); font-size: 0.95rem; line-height: 1.5; }
input.seq { font-family: var(--mono); }
.lang select { width: auto; padding: 0.3rem 0.5rem; }

fieldset { margin: 0; padding: 0.75rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding: 0 0.3rem; font-weight: 700; }

.choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.35rem 0; cursor: pointer; }
.choice input { width: auto; margin-top: 0.3rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

button.primary, button.secondary {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.primary { border: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
button.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 400; }
button.secondary:hover { border-color: var(--muted); }
button:disabled { opacity: 0.55; cursor: progress; }

.error {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  max-width: 46rem;
}
.note { margin: 0.75rem 0; color: var(--muted); max-width: 62ch; }
.warn { margin: 0.75rem 0; padding-left: 0.8rem; border-left: 3px solid var(--accent); max-width: 62ch; }

/* ---------- Resultados ---------- */

.result { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.result:empty { display: none; }
.result h2, .result h3 { margin: 1.75rem 0 0.6rem; font-size: 1.15rem; }
.result > :first-child { margin-top: 0; }

.reveal { animation: reveal 0.35s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

.stats { display: grid; grid-template-columns: max-content auto; gap: 0.2rem 1.25rem; margin: 1rem 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-variant-numeric: tabular-nums; }


.note { margin: 0.75rem 0; color: var(--muted); max-width: 62ch; }
.hint { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.logo { width: 40px; height: 40px; }

/* ---------- Piezas comunes ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.chips > span { color: var(--muted); margin-right: 0.2rem; }
.chip {
  padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-family: var(--mono); font-size: 0.9rem; cursor: pointer;
}
.chip:hover { border-color: var(--muted); }

/* Cifras grandes: una por casilla */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0; }
.tile { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.tile dt { color: var(--muted); font-size: 0.85rem; }
.tile dd { margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.tile dd small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-top: 0.2rem; }
.tile.accent { border-top: 3px solid var(--accent); }

.callout { margin: 1.5rem 0 0; padding: 0.9rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-bg); border-radius: 0 var(--radius) var(--radius) 0; max-width: 62ch; }
.callout h3 { margin: 0 0 0.3rem !important; font-size: 1rem; }
.callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0.75rem 0 0; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 0.45rem 0.9rem 0.45rem 0; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
td.wrap { white-space: normal; min-width: 14rem; text-align: left; }

/* Ficha (elemento o partícula) */
.card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1.25rem; align-items: start;
  margin: 1.25rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--bg); max-width: 46rem;
}
.card .big { grid-row: span 2; display: grid; place-items: center; min-width: 5.5rem; padding: 0.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card .big b { font-size: 2.2rem; line-height: 1; }
.card .big small { color: var(--muted); font-family: var(--mono); }
.card h2 { margin: 0 !important; font-size: 1.35rem !important; }
.card .stats { margin: 0.5rem 0 0; }
.card .actions, .card > .note { grid-column: 1 / -1; margin-top: 0.5rem; }
@media (max-width: 34rem) { .card { grid-template-columns: 1fr; } .card .big { grid-row: auto; justify-self: start; } }

/* ---------- Tabla periódica ---------- */

.ptable-wrap { overflow-x: auto; padding-bottom: 0.25rem; }
.ptable {
  display: grid; grid-template-columns: repeat(18, minmax(2.6rem, 1fr)); grid-auto-rows: minmax(2.9rem, auto);
  gap: 3px; min-width: 50rem; margin: 0.5rem 0 0;
}
.ptable .gap-row { grid-column: 1 / -1; height: 0.6rem; }
.el {
  display: grid; align-content: center; justify-items: center; padding: 0.15rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; line-height: 1.1;
}
.el small { font-size: 0.6rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.el b { font-size: 1rem; }
.el:hover { border-color: var(--accent); }
.el[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.el[aria-pressed="true"] small { color: inherit; }
.el.f-block { background: var(--accent-bg); }
.el.marker { cursor: default; background: transparent; border-style: dashed; color: var(--muted); font-size: 0.7rem; }
.ptable-label { grid-column: 1 / 3; align-self: center; color: var(--muted); font-size: 0.75rem; text-align: right; padding-right: 0.4rem; }

/* Etiqueta con icono (protones, neutrones, electrones, quarks, átomos) */
.with-icon { display: inline-flex; align-items: center; gap: 0.35rem; vertical-align: top; }
.with-icon img { flex: none; width: 1.25em; height: 1.25em; margin-block: -0.125em; }
th .with-icon { justify-content: flex-end; }

/* ---------- Partículas ---------- */

.families { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.family h2 { margin: 0 0 0.5rem !important; font-size: 1rem !important; display: flex; align-items: center; gap: 0.5rem; }
.family h2::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 3px; background: var(--fam); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pcard {
  width: 100%; text-align: left; padding: 0.5rem 0.65rem; border: 1px solid var(--line); border-left: 4px solid var(--fam);
  border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.pcard:hover { border-color: var(--fam); }
.pcard[aria-pressed="true"] { outline: 2px solid var(--fam); outline-offset: 1px; }
.pcard { display: flex; align-items: center; gap: 0.6rem; padding-left: 0.5rem; }
.pcard .sphere { flex: none; width: 2.5rem; height: 2.5rem; }
.pcard span { min-width: 0; }
.pcard b { display: block; }
.pcard small { color: var(--muted); font-variant-numeric: tabular-nums; }
.fam-Quark { --fam: var(--s1); } .fam-Antiquark { --fam: var(--s7); }
.fam-Lepton { --fam: var(--s3); } .fam-Antilepton { --fam: var(--s6); }
.fam-Gauge-Boson { --fam: var(--s2); } .fam-Scalar-Boson { --fam: var(--s5); }
.fam-Hypothetical { --fam: var(--muted); }
.pname { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.pname .sphere { flex: none; width: 1.5rem; height: 1.5rem; }
.card.particle { border-top-color: var(--fam); }
.card .sphere-big { gap: 0.35rem; padding: 0.6rem 0.75rem 0.75rem; }
.card .sphere-big img { width: 8rem; height: 8rem; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.18)); }
@media (max-width: 34rem) { .card .sphere-big img { width: 6rem; height: 6rem; } }

/* ---------- Big Bang de bits ---------- */

.bytes { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.85rem; }
.byte { padding: 0.15rem 0.35rem; border-radius: 3px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.byte.hit { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.byte.part { border-style: dashed; }
.found { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.found li {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem 0.2rem 0.25rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem;
}
.found .sphere { flex: none; width: 1.4rem; height: 1.4rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.legend .byte { font-size: 0.75rem; }

/* ---------- Gráfico de la nucleosíntesis ---------- */

.chart { margin: 0.75rem 0 0; }
.chart-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin: 0 0 0.4rem; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.chart-key li { display: flex; align-items: center; gap: 0.45rem; }
.chart-key i { width: 1rem; height: 3px; border-radius: 2px; background: var(--c); }
.chart-stage { position: relative; }
.chart svg { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .axis-title { fill: var(--muted); font-size: 11px; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .label { font-size: 12px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.tooltip {
  position: absolute; top: 0; pointer-events: none; min-width: 12rem; padding: 0.5rem 0.65rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.35); font-size: 0.85rem; z-index: 2;
}
.tooltip p { margin: 0 0 0.25rem; color: var(--muted); }
.tooltip dl { display: grid; grid-template-columns: auto auto; gap: 0.1rem 0.75rem; margin: 0; }
.tooltip dt { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); }
.tooltip dt i { width: 0.7rem; height: 3px; border-radius: 2px; background: var(--c); }
.tooltip dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Barra de composición (en la tabla de momentos) */
.compo { display: flex; gap: 2px; width: 9rem; height: 0.7rem; }
.compo span { height: 100%; border-radius: 2px; background: var(--c); min-width: 0; }
td .compo { margin-left: auto; }

/* Neutrinos: un punto por número de especies sobre una escala de 20 % a 30 % de helio */
.bars { display: grid; gap: 0.6rem; margin: 1rem 0 0; max-width: 40rem; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 4.5rem; gap: 0.75rem; align-items: center; }
.bars .track { position: relative; height: 1.6rem; border-bottom: 1px solid var(--line); }
.bars .pt { position: absolute; top: 50%; width: 0.9rem; height: 0.9rem; margin: -0.45rem 0 0 -0.45rem; border-radius: 50%; background: var(--muted); border: 2px solid var(--surface); }
.bars li.ok .pt { background: var(--accent); width: 1.1rem; height: 1.1rem; margin: -0.55rem 0 0 -0.55rem; }
.bars .observed { position: absolute; top: 0; bottom: -1px; width: 2px; margin-left: -1px; background: var(--ink); }
.bars .value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bars li.ok .value { color: var(--accent); }
.bars .species { font-weight: 700; text-align: right; }
.bars li.scale { font-size: 0.8rem; color: var(--muted); }
.bars .axis-ends { display: flex; justify-content: space-between; }
.bars-note { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; margin: 0.75rem 0 0; }
.bars-note i { width: 2px; height: 1rem; background: var(--ink); }

.result.bare { margin-top: 0.5rem; padding-top: 0; border-top: 0; }
a.chip { text-decoration: none; display: inline-block; }

/* ---------- Pantallas estrechas ---------- */

/* Móvil: la palabra «Idioma» se oculta a la vista (los lectores de pantalla la siguen leyendo)
   para que el selector quepa en la cabecera. */
@media (max-width: 30rem) {
  .topbar { gap: 0.75rem; }
  .lang > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 52rem) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .tagline { display: none; }
  .toolnav {
    position: static; display: flex; gap: 0.4rem; padding: 0.6rem 1rem;
    overflow-x: auto; border-bottom: 1px solid var(--line);
  }
  .toolnav h2 { display: none; }
  .toolnav ul { display: contents; }
  .toolnav button { width: auto; white-space: nowrap; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; }
  .toolnav button:hover { border-color: var(--muted); }
  .toolnav button[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
  .panel { border-left: 0; min-height: 0; padding-top: 1.5rem; }
}

/* ---------- Átomo en 3D (viewer3d.js) ----------
   El lienzo siempre es oscuro (es el "espacio"), también con el tema claro. */
.v3d { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; max-height: 78vh;
  background: #010204; border-radius: var(--radius); overflow: hidden; color: #DCE6FF;
  font-family: var(--mono); font-size: clamp(0.62rem, 1.1vw, 0.8rem); line-height: 1.45; }
.v3d:fullscreen { max-height: none; aspect-ratio: auto; border-radius: 0; }
.v3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.v3d-canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.v3d-hud { position: absolute; inset: 0; pointer-events: none; }
.v3d-box { position: absolute; background: rgba(5, 10, 25, 0.62); border-radius: 6px; padding: 0.45rem 0.65rem; max-width: 46%; }
.v3d-left { position: absolute; top: 0.6rem; left: 0.6rem; max-width: 50%; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.v3d-left .v3d-box { position: static; max-width: 100%; }
.v3d-box b { color: #fff; font-weight: 600; }
.v3d-box em { font-style: normal; color: #FFDC8C; }
.v3d-box small { color: #96AAC8; }
.v3d-card { top: 0.6rem; right: 0.6rem; text-align: right; max-width: 52%; }
.v3d-stable { color: #8CE6C8; } .v3d-unstable { color: #FFDC8C; }
.v3d-did { color: #FFD278 !important; } .v3d-real { color: #8CE6C8 !important; }
.v3d-depth { position: absolute; right: 1.6rem; top: 22%; bottom: 14%; width: 2px; background: rgba(120, 140, 170, 0.6); }
.v3d-mark { position: absolute; right: 0.6rem; transform: translateY(-50%); white-space: nowrap; color: #96AAC8; font-size: 0.9em; }
.v3d-mark::after { content: ""; position: absolute; right: -0.95rem; top: 50%; width: 0.75rem; height: 2px; background: #96AAC8; }
.v3d-here { position: absolute; left: 6px; width: 0; height: 0; transform: translateY(-50%);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 10px solid #FFDC78; }
.v3d-axis { position: absolute; transform: translate(4px, -60%); font-size: 1.5em; font-weight: 600; }
.v3d-axis-x { color: #FF7878; } .v3d-axis-y { color: #78FF78; } .v3d-axis-z { color: #78AAFF; }
.v3d-msg { position: absolute; left: 0; right: 0; top: 70%; text-align: center; color: #fff; font-size: 1.35em;
  text-shadow: 0 0 6px #000; }
.v3d-help { position: absolute; left: 0.6rem; bottom: 0.5rem; right: 3rem; color: #A0AFC8; font-size: 0.9em; }
.v3d-nogl { position: absolute; inset: 1rem; margin: auto; height: fit-content; }
.v3d-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.75rem; }
.v3d-bar label { display: flex; gap: 0.4rem; align-items: center; color: var(--muted); }
.v3d-bar select { max-width: 15rem; }
.v3d-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.v3d-buttons button { font: inherit; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer; }
.v3d-buttons button:hover { border-color: var(--accent); }
.v3d-touch { display: none; }
@media (pointer: coarse) { .v3d-touch { display: block; } .v3d-help { display: none; } }
@media (max-width: 700px) {
  .v3d { aspect-ratio: 3 / 4; min-height: 360px; }
  .v3d-box, .v3d-left { max-width: 92%; }
  .v3d-card { top: auto; bottom: 0.5rem; text-align: left; left: 0.6rem; right: auto; }
  .v3d-focus { display: none; }
  .v3d-depth, .v3d-help { display: none; }
  .v3d-bar label { width: 100%; }
  .v3d-bar select { flex: 1; max-width: none; min-width: 0; }
}
