/* ============================================================
   Stackly — Timer para quem vive o cubo
   ============================================================ */

:root {
  --green: #00e08a;
  --green-soft: #2ee69b;
  --green-dim: rgba(0, 224, 138, 0.28);

  --bg: #0a0d0c;
  --bg-2: #0f1413;
  --mat: #141a19;
  --mat-2: #0d1211;
  --pad: #121817;

  --text: #e8efec;
  --muted: #7d8b87;
  --faint: #4a5754;
  --line: rgba(255, 255, 255, 0.07);

  --seg-on: #f2f7f5;
  --seg-off: rgba(255, 255, 255, 0.022);

  --red: #ff5f56;
  --amber: #ffb648;

  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --green: #00b26e;
  --green-soft: #04a468;
  --green-dim: rgba(0, 178, 110, 0.25);

  --bg: #eef2f0;
  --bg-2: #e3e9e6;
  --mat: #ffffff;
  --mat-2: #f3f6f5;
  --pad: #f7faf9;

  --text: #16211e;
  --muted: #5d6d68;
  --faint: #93a29d;
  --line: rgba(0, 0, 0, 0.09);

  --seg-on: #16211e;
  --seg-off: rgba(0, 0, 0, 0.045);

  --shadow: 0 20px 44px rgba(20, 40, 33, 0.14);
}

/* Ajustes de superfície para o tema claro */
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(0, 178, 110, 0.07), transparent 60%),
    var(--bg);
}
html[data-theme="light"] .pad {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0.06));
  box-shadow: 0 14px 30px rgba(20, 40, 33, 0.12);
}
html[data-theme="light"] .pad-inner {
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0.035));
}
html[data-theme="light"] .overlay { background: rgba(230, 236, 233, 0.66); }
html[data-theme="light"] .panel { box-shadow: -30px 0 60px rgba(20, 40, 33, 0.12); }
html[data-theme="light"] .mat-base { box-shadow: var(--shadow), inset 0 1px 0 rgba(0, 0, 0, 0.03); }
html[data-theme="light"] .digits { filter: none; }

* { box-sizing: border-box; }

html, body { height: 100%; }
html { overflow-x: hidden; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(0, 224, 138, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

body.is-running,
body.is-ready { user-select: none; }

/* ---------- Layout ---------- */

/* Tudo cabe na tela: a altura é fixa e nada rola. */
.app {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2.6vw, 34px);
  gap: clamp(8px, 1.6vh, 20px);
}

.stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vh, 26px);
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  transition: opacity 0.35s var(--ease);
}

.brand h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand h1 span { color: var(--green); }
.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.nav-btn:hover {
  color: var(--text);
  background: var(--bg-2);
  border-color: var(--line);
}
.nav-btn.active { color: var(--green); border-color: var(--green-dim); }
.nav-btn.icon-only { padding: 9px; }

.nav-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-btn[data-panel="settings"] svg path { fill: none; }

#themeToggle .ico-sun { display: none; }
html[data-theme="light"] #themeToggle .ico-moon { display: none; }
html[data-theme="light"] #themeToggle .ico-sun { display: block; }

/* ---------- Scramble ---------- */

.scramble-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 860px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  transition: opacity 0.35s var(--ease), border-color 0.2s var(--ease);
}

.scramble {
  margin: 0;
  flex: 1;
  text-align: center;
  font-family: "JetBrains Mono", "Consolas", ui-monospace, monospace;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.06em;
  color: var(--text);
  cursor: pointer;
  line-height: 1.6;
  word-spacing: 0.3em;
}
.scramble:hover { color: var(--green); }

.scramble-nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.scramble-nav:hover:not(:disabled) { color: var(--green); border-color: var(--green-dim); }
.scramble-nav:disabled { opacity: 0.3; cursor: default; }
.scramble-nav svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Display ---------- */

.display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vh, 16px);
}

.digits {
  display: flex;
  align-items: center;
  justify-content: center;
  /* limitado pela largura E pela altura, para nunca estourar a tela */
  font-size: clamp(46px, min(13vw, 19vh), 184px);
  line-height: 1;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s var(--ease);
}

.state {
  margin: 0;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s var(--ease);
  text-align: center;
}

/* Estados */
body.is-holding .digits .seg.on { background: var(--amber); }
body.is-holding .state { color: var(--amber); }

body.is-ready .digits .seg.on { background: var(--green); }
body.is-ready .state { color: var(--green); }
body.is-ready .digits { transform: scale(1.02); }

body.is-inspecting .digits .seg.on { background: var(--seg-on); }
body.is-inspecting .state { color: var(--amber); }

body.is-running .state { color: var(--muted); }

/* ---------- Sete segmentos ---------- */

.seg-digit {
  position: relative;
  width: 0.60em;
  height: 1em;
  margin: 0 0.045em;
  --t: 0.125em;
}

.seg {
  position: absolute;
  background: var(--seg-off);
  transition: background 0.06s linear;
}
.seg.on { background: var(--seg-on); }

.seg.h {
  left: calc(var(--t) * 0.6);
  width: calc(100% - var(--t) * 1.2);
  height: var(--t);
  clip-path: polygon(0 50%, 14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%);
}
.seg.v {
  width: var(--t);
  height: calc(50% - var(--t) * 0.8);
  clip-path: polygon(50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%, 0 10%);
}

.seg.a { top: 0; }
.seg.g { top: calc(50% - var(--t) / 2); }
.seg.d { bottom: 0; }
.seg.f { top: calc(var(--t) * 0.6); left: 0; }
.seg.b { top: calc(var(--t) * 0.6); right: 0; }
.seg.e { bottom: calc(var(--t) * 0.6); left: 0; }
.seg.c { bottom: calc(var(--t) * 0.6); right: 0; }

.seg-dot {
  width: 0.17em;
  height: 0.17em;
  align-self: flex-end;
  margin: 0 0.06em 0.09em;
  background: var(--seg-on);
  border-radius: 2px;
}
.seg-colon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.26em;
  height: 1em;
  margin: 0 0.06em;
}
.seg-colon i {
  width: 0.15em;
  height: 0.15em;
  background: var(--seg-on);
  border-radius: 2px;
}

body.is-holding .seg-dot, body.is-holding .seg-colon i { background: var(--amber); }
body.is-ready .seg-dot, body.is-ready .seg-colon i { background: var(--green); }

.digits.dnf {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(56px, 11vw, 150px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

/* ---------- Stackmat ---------- */

.stackmat {
  position: relative;
  width: 100%;
  /* a segunda trava usa a altura disponível (proporção 1180/332 = 3.55) */
  max-width: min(1140px, calc(30vh * 3.55));
  aspect-ratio: 1180 / 332;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mat-base {
  position: absolute;
  inset: 6% 0 0;
  border-radius: 90px;
  background: linear-gradient(180deg, var(--mat) 0%, var(--mat-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pad {
  position: relative;
  z-index: 1;
  width: 41%;
  height: 100%;
  padding: 6px;
  border-radius: 74px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.18));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s var(--ease);
}
.pad-left  { border-top-right-radius: 120px; border-bottom-right-radius: 120px; }
.pad-right { border-top-left-radius: 120px;  border-bottom-left-radius: 120px; }

.pad-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1.5px solid var(--green-dim);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--pad);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
  background-size: 9px 9px, 100% 100%;
  /* mão e rótulo empilhados: cada um tem seu espaço, nunca se sobrepõem */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vh, 14px);
  padding: 8% 6% 7%;
  overflow: hidden;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.14s var(--ease);
}

.hand {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  max-width: 62%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.22;
  pointer-events: none;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.16s var(--ease), filter 0.16s var(--ease), transform 0.16s var(--ease);
}

html[data-theme="light"] .hand { filter: grayscale(1) brightness(0.55); opacity: 0.25; }

.pad-label {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-size: clamp(9px, 0.95vw, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.16s var(--ease);
}
.pad-label b { color: var(--green); font-weight: 600; }

/* Pad ativo */
.pad.down .pad-inner {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 34px -4px var(--green-dim), inset 0 0 44px -14px var(--green);
}
.pad.down .hand {
  opacity: 1;
  filter: none;
  transform: scale(1.02);
}
.pad.down .pad-label { color: var(--green-soft); }
.pad.down { transform: translateY(2px); }

body.is-ready .pad.down .pad-inner {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), 0 0 60px -6px var(--green);
}

/* ---------- Instruções / rodapé ---------- */

.instructions {
  text-align: center;
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.75;
  transition: opacity 0.35s var(--ease);
}
.instructions p { margin: 0; }
.instructions .only-mobile { display: none; }
.instructions b { color: var(--green); font-weight: 600; }

.quickstats {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.35s var(--ease);
}
.quickstats .qs {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13px;
}
.quickstats .qs span { color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.quickstats .qs b { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }

.footbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 12px;
  transition: opacity 0.35s var(--ease);
}
.footbar .foot-left i { font-style: normal; opacity: 0.5; margin: 0 4px; }

.credit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.credit b { color: var(--muted); font-weight: 600; }

.credit a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.credit a:hover {
  color: var(--green);
  border-color: var(--green-dim);
  transform: translateY(-1px);
}
.credit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Modo foco */
body.focus-hidden .topbar,
body.focus-hidden .scramble-bar,
body.focus-hidden .instructions,
body.focus-hidden .quickstats,
body.focus-hidden .footbar { opacity: 0; pointer-events: none; }

/* ---------- Painéis ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(3, 6, 5, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
  animation: fade 0.18s var(--ease);
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.panel {
  width: min(540px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
  animation: slide 0.26s var(--ease);
}
.panel[hidden] { display: none; }
@keyframes slide { from { transform: translateX(28px); opacity: 0; } }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }

.close {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.close:hover { color: var(--text); border-color: var(--green-dim); }

.panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-tools .spacer { flex: 1; }

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.btn {
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn:hover { color: var(--text); border-color: var(--green-dim); }
.btn.danger:hover { color: var(--red); border-color: rgba(255, 95, 86, 0.4); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px 40px;
}

/* Histórico */

.solve {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.16s var(--ease);
}
.solve:hover { background: var(--bg); border-color: var(--line); }
.solve + .solve { margin-top: 2px; }

/* Sem isto, o scramble (nowrap) vira a largura mínima da coluna e empurra
   as colunas para fora da linha — o fundo do hover fica menor que o conteúdo. */
.solve > * { min-width: 0; }

.solve .idx { color: var(--faint); font-size: 12px; text-align: right; }
.solve .time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
}
.solve.pb .time { color: var(--green); }
.solve.dnf .time { color: var(--red); text-decoration: line-through; }
.solve .meta {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.solve .date { color: var(--faint); font-size: 11px; }

.solve .actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.16s var(--ease); }
.solve:hover .actions, .solve:focus-within .actions { opacity: 1; }

/* Em telas de toque não existe hover: os botões ficam sempre visíveis. */
@media (hover: none) {
  .solve .actions { opacity: 1; }
}

.mini {
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.mini:hover { color: var(--text); border-color: var(--green-dim); }
.mini.on { color: var(--green); border-color: var(--green-dim); background: rgba(0, 224, 138, 0.08); }
.mini.del:hover { color: var(--red); border-color: rgba(255, 95, 86, 0.4); }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.7;
}

/* Estatísticas */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.stat-card {
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.stat-card span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.stat-card b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 23px;
  font-weight: 600;
}
.stat-card.hl b { color: var(--green); }

.stat-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* O gráfico mora dentro do próprio card, sem vazar. */
.chart-card {
  padding: 14px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.spark { display: block; width: 100%; height: 120px; overflow: hidden; }
.spark path.line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: var(--green-dim); opacity: 0.25; stroke: none; }
.spark line.axis { stroke: var(--line); stroke-width: 1; }

/* Configurações */

.settings .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.settings .row b { display: block; font-size: 14px; font-weight: 550; }
.settings .row small { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; }

.settings select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.switch {
  appearance: none;
  position: relative;
  width: 44px;
  height: 25px;
  flex: none;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--faint);
  transition: all 0.2s var(--ease);
}
.switch:checked { background: rgba(0, 224, 138, 0.16); border-color: var(--green); }
.switch:checked::after { left: 21px; background: var(--green); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--mat);
  border: 1px solid var(--green-dim);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.22s var(--ease);
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  .nav-btn span { display: none; }
  .nav-btn { padding: 9px; }
  .brand p { display: none; }
  .footbar { font-size: 11px; }
  .footbar .foot-left { display: none; }
  .stackmat { aspect-ratio: 900 / 400; max-width: min(1140px, calc(30vh * 2.25)); }
  .pad { width: 46%; border-radius: 46px; }
  .pad-left  { border-top-right-radius: 70px; border-bottom-right-radius: 70px; }
  .pad-right { border-top-left-radius: 70px;  border-bottom-left-radius: 70px; }
  .mat-base { border-radius: 56px; }
  .pad-label .side { display: none; }
  .instructions .only-desktop { display: none; }
  .instructions .only-mobile { display: block; }
  .panel { width: 100vw; border-left: none; }
}

@media (max-width: 520px) {
  .scramble-bar { width: 100%; }
  .quickstats .qs { padding: 6px 11px; font-size: 12px; }
}

/* Telas baixas: remove o supérfluo para tudo caber sem rolagem. */
@media (max-height: 720px) {
  .brand p { display: none; }
  .instructions { display: none; }
}

@media (max-height: 620px) {
  .quickstats { display: none; }
  .footbar .foot-left { display: none; }
  .scramble { line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
