@font-face {
  font-family: 'Lexend';
  src: url('../assets/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #eef5fd;
  --surface-hover: #e2effc;
  --line: #d4e4f5;
  --text: #10253b;
  --muted: #4b6077;
  --heading: #0f4c81;
  --accent: #1565c0;
  --on-accent: #ffffff;
  --wave: #a8c6ea;

  --sky: #dcedff;
  --sky-strong: #bfdcfa;
  --navy: #0f4c81;

  --radius-lg: 1.5rem;
  --radius: 1.125rem;
  --radius-sm: 0.75rem;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #040b17;
  --surface: #0a1628;
  --surface-hover: #10213b;
  --line: #172c4b;
  --text: #dde7f4;
  --muted: #93a8c6;
  --heading: #85b4e8;
  --accent: #4d91d9;
  --on-accent: #020a14;
  --wave: #2a456d;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 'Lexend', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1:focus, main:focus { outline: none; }
p { margin: 0 0 1rem; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
}
.skip:focus { top: 0.5rem; }

.shell {
  width: min(100% - 1.75rem, 30rem);
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-block: 0.75rem;
}

.sources-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}
.sources-button:hover { background: var(--surface); }
.sources-button[aria-current='page'] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.theme-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
}
.theme-switch button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 99rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
}
.theme-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.home { display: grid; gap: 1rem; }

.hero {
  display: flex;
  flex-direction: column;
  padding: 1.125rem;
  border-radius: var(--radius-lg);
  background: var(--sky);
  color: var(--navy);
}
.hero :focus-visible { outline-color: var(--navy); }

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.badge {
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 99rem;
  background: var(--sky-strong);
  font-size: 0.8125rem;
  font-weight: 600;
}
.hero h1 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 650; }
.hero-text { max-width: 18rem; margin-bottom: 1rem; line-height: 1.5; }

.art {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding-block: 0.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
}
.avatar div, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar-olhos { transform-origin: 50% 40%; }
.avatar-braco { transform-origin: 36% 94.5%; }
.avatar-antebraco { transform-origin: 20% 88.5%; transform: rotate(7deg); }
.avatar-mao { transform-origin: 12.5% 70%; }

.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.75rem;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 9rem;
  padding: 1.1rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}
.tile:hover { border-color: var(--accent); background: var(--surface-hover); }
.tile .icon { width: 1.9rem; height: 1.9rem; color: var(--accent); }
.tile strong { font-size: 1rem; font-weight: 650; line-height: 1.3; text-wrap: balance; }
.tile span { color: var(--muted); font-size: 0.8125rem; line-height: 1.4; text-wrap: balance; }

.topic { overflow-wrap: break-word; }
.topic > h2 { margin: 2.25rem 0 0.75rem; color: var(--heading); font-size: 1.25rem; }

.topic-head { margin-bottom: 1.5rem; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0 1rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { background: var(--surface); }
.topic-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--navy);
}
.topic-icon .icon { width: 2rem; height: 2rem; }
.topic-head h1 { margin: 0.9rem 0 0.5rem; color: var(--heading); font-size: 1.875rem; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.0625rem; }

.voice {
  margin-bottom: 1.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.voice h2 { margin: 0 0 0.75rem; color: var(--heading); font-size: 1rem; }
.player { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1rem; }
.player-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.player-toggle .icon { width: 1.6rem; height: 1.6rem; fill: currentColor; stroke: none; }
.player-toggle .icon-pause, .voice.is-playing .icon-play { display: none; }
.voice.is-playing .icon-pause { display: block; }
.player-track { display: contents; }
.player-wave { position: relative; height: 3.25rem; }
.wave, .player-seek { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave { fill: none; stroke: var(--wave); stroke-width: 3; stroke-linecap: round; }
.wave-played { stroke: var(--accent); clip-path: inset(0 100% 0 0); }
.player-head { position: absolute; top: 0; bottom: 0; left: 0; width: 0; pointer-events: none; }
.player-head::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: -1px;
  width: 3px;
  border-radius: 2px;
  background: var(--heading);
}
.player-seek {
  margin: 0;
  border-radius: var(--radius-sm);
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.player-seek::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.player-seek::-webkit-slider-thumb { width: 3px; height: 3.25rem; appearance: none; opacity: 0; }
.player-seek::-moz-range-thumb { width: 3px; height: 3.25rem; border: 0; opacity: 0; }
.player-seek:focus-visible { outline-offset: 0; }
.player-times {
  margin-top: 0.25rem;
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.player-error { margin: 0.75rem 0 0; font-size: 0.875rem; font-weight: 600; }
@media print { .voice { display: none; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 2.5rem 3.25rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  bottom: 0.25rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  background: var(--line);
}
.steps h3 { margin: 0; padding-top: 0.35rem; font-size: 1.0625rem; }

.step-art {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 200 / 130;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 56% 48%, var(--art-glow) 0, var(--art-bg) 68%);
  contain: layout paint;
  --art-bg: #f1f7fe;
  --art-glow: #dcecff;
  --art-line: #0f4c81;
  --art-skin: #ffffff;
  --art-glans: #c3defb;
  --art-cuff: #a9cff8;
  --art-accent: #1565c0;
  --art-water: #3b9ae8;
  --art-water-light: #9fd2fb;
  --art-bubble: rgb(226 241 255 / 0.95);
  --art-bubble-line: #3d80c8;
  --art-shine: #d6e9fd;
  --art-shadow: rgb(15 76 129 / 0.1);
}
:root[data-theme='dark'] .step-art {
  --art-bg: #081426;
  --art-glow: #102745;
  --art-line: #8fbbea;
  --art-skin: #15325a;
  --art-glans: #23538a;
  --art-cuff: #2b5c96;
  --art-accent: #4d91d9;
  --art-water: #4d91d9;
  --art-water-light: #8cc0f2;
  --art-bubble: rgb(190 216 245 / 0.82);
  --art-bubble-line: #5c93cf;
  --art-shine: #275084;
  --art-shadow: rgb(0 0 0 / 0.35);
}

.step-art .layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.step-art .anatomy {
  -webkit-mask-image: linear-gradient(90deg, transparent 3%, #000 27%);
  mask-image: linear-gradient(90deg, transparent 3%, #000 27%);
}

.step-art .s-line, .step-art .s-pipe, .step-art .s-arrow, .step-art .s-shine,
.step-art .s-hand-line, .step-art .s-hand-fill, .step-art .s-stripe, .step-art .s-tick {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-art .s-line { stroke: var(--art-line); stroke-width: 2.2; }
.step-art .s-soft-line { opacity: 0.75; }
.step-art .s-fold { stroke-width: 1.8; }
.step-art .s-skin { fill: var(--art-skin); }
.step-art .s-glans { fill: var(--art-glans); }
.step-art .s-cuff, .step-art .s-towel { fill: var(--art-cuff); }
.step-art .s-shine { stroke: var(--art-shine); stroke-width: 3; }
.step-art .s-shadow { fill: var(--art-shadow); }
.step-art .s-pipe { fill: none; stroke: var(--art-line); stroke-width: 5; }
.step-art .s-hand-line, .step-art .s-hand-fill { fill: none; }
.step-art .s-hand-line { stroke: var(--art-line); stroke-width: 10.2; }
.step-art .s-hand-fill { stroke: var(--art-skin); stroke-width: 5.8; }
.step-art .s-stripe { stroke: var(--art-skin); stroke-width: 3; }
.step-art .s-chip { fill: var(--art-skin); stroke: var(--art-cuff); stroke-width: 1.5; }
.step-art .s-arrow { stroke: var(--art-accent); stroke-width: 3.5; }
.step-art .s-focus { fill: none; stroke: var(--art-accent); stroke-width: 2; stroke-dasharray: 3.5 4.5; }
.step-art .s-badge { fill: var(--art-accent); }
.step-art .s-tick { stroke: var(--art-skin); stroke-width: 3; }
.step-art .s-ripple { fill: none; stroke: var(--art-accent); stroke-width: 1.5; }

.step-art .p {
  position: absolute;
  left: calc(var(--x) / 200 * 100%);
  top: calc(var(--y) / 130 * 100%);
  width: calc(var(--s) / 200 * 100%);
  aspect-ratio: 1;
  translate: -50% -50%;
}
.step-art .p-bubble {
  box-sizing: border-box;
  border: 2px solid var(--art-bubble-line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 30%, #ffffff 0 13%, transparent 16%),
    var(--art-bubble);
}
.step-art .p-drop::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 0 50% 50% 50%;
  background: linear-gradient(135deg, var(--art-water-light), var(--art-water) 70%);
  rotate: 45deg;
}
.step-art .p-spark {
  background: var(--art-water);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.step-art .sleeve-open, .step-art .sleeve-retract { transform: translateX(-20%); }
.step-art .folds-out, .step-art .touch, .step-art .ripple { opacity: 0; }
.step-art .check { transform-origin: 50% 87.7%; }
.step-art .ripple { transform-origin: 50% 87.7%; }
.steps p { margin: 0.25rem 0 0; color: var(--muted); }

.list { margin: 0; padding-left: 1.2rem; }
.list li { margin-bottom: 0.5rem; }
.list li::marker { color: var(--accent); }

.note {
  margin-top: 1.75rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.note h2 { margin: 0 0 0.4rem; color: var(--heading); font-size: 1.0625rem; }
.note p { margin: 0; }

.urgent {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #ffffff;
}
.urgent h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.urgent ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.urgent li { padding-block: 0.7rem; border-top: 1px solid rgb(255 255 255 / 0.25); }
.urgent :focus-visible { outline-color: #ffffff; }
.call {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.signs details { border-bottom: 1px solid var(--line); }
.signs summary { padding-block: 0.9rem; font-weight: 650; cursor: pointer; }
.signs summary::marker { color: var(--accent); }
.signs .list { padding-bottom: 0.75rem; }

.actions { margin: 0; padding: 0; list-style: none; }
.actions li { padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.actions h3 { margin: 0 0 0.2rem; font-size: 1.0625rem; }
.actions p { margin: 0; color: var(--muted); }

.deadline {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--sky);
  color: #0b3559;
}

.views { display: grid; gap: 0.75rem; margin: 0 0 1rem; }
.views div { padding: 1.125rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.views dt { color: var(--heading); font-weight: 650; }
.views dd { margin: 0.4rem 0 0; color: var(--muted); }

.next {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.next:hover { border-color: var(--accent); background: var(--surface-hover); }
.next .icon { width: 1.9rem; height: 1.9rem; color: var(--accent); }
.next small { display: block; color: var(--muted); font-size: 0.8125rem; }

.score { margin-bottom: 1.25rem; }
.score p { margin-bottom: 0.5rem; font-weight: 600; }
.progress { height: 0.5rem; overflow: hidden; border-radius: 99rem; background: var(--surface-hover); }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
#reiniciar {
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  background: transparent;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.quiz { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.question {
  padding: 1.125rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.question h2 { margin: 0 0 0.9rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.options button {
  min-height: 3rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-weight: 650;
}
.options button:hover { background: var(--surface-hover); }
.options button[aria-disabled='true'] { cursor: default; border-color: var(--line); color: var(--muted); background: transparent; }
.options button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.feedback p { margin: 0.4rem 0 0; }
.feedback .verdict { margin-top: 1rem; color: var(--heading); font-weight: 700; }

:root[data-theme='dark'] .hero { background: #0a1c36; color: #d3e3f7; }
:root[data-theme='dark'] .hero :focus-visible { outline-color: #85b4e8; }
:root[data-theme='dark'] .badge { background: #12305a; }
:root[data-theme='dark'] .badge { color: #d3e3f7; }
:root[data-theme='dark'] .art { background: #07142a; }
:root[data-theme='dark'] .topic-icon,
:root[data-theme='dark'] .deadline { background: #12305a; color: #d3e3f7; }
:root[data-theme='dark'] .urgent { background: #0b2a4f; color: #e6effb; }
:root[data-theme='dark'] .call { background: #b9cfe9; color: #07203d; }

.team {
  margin-bottom: 1.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.team-data { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.team-data dt { color: var(--muted); font-size: 0.8125rem; }
.team-data dd { margin: 0; color: var(--heading); font-weight: 700; }
.team h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.team-members { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.team-members li { line-height: 1.4; }

.sources { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.sources a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.sources a:hover { border-color: var(--accent); background: var(--surface-hover); }
.sources strong { display: block; line-height: 1.4; }
.sources small { display: block; color: var(--muted); font-size: 0.8125rem; }
.sources .icon { color: var(--accent); }
.footer {
  display: none;
  margin-top: 2.5rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
html[data-screen='higiene'] .footer,
html[data-screen='alerta'] .footer,
html[data-screen='prevencao'] .footer,
html[data-screen='mitos'] .footer { display: block; }
html[data-screen='informacoes'] .shell { padding-bottom: 2rem; }

@media (min-width: 40rem) {
  .shell { width: min(100% - 3rem, 42rem); }
  .hero { padding: 1.75rem; }
  .brand { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; }
  .hero-text { max-width: 24rem; font-size: 1.125rem; }
  .art { min-height: 15rem; }
  .tile { min-height: 9rem; }
  .tile .icon { width: 2.4rem; height: 2.4rem; }
  .tile strong { font-size: 1.1875rem; }
  .tile span { font-size: 0.9375rem; }
  .topic { max-width: 40rem; margin-inline: auto; }
}

@media (min-width: 56rem) {
  .shell { width: min(100% - 4rem, 68rem); }

  .home { grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
  .hero { padding: 2rem; }
  .brand { font-size: 1.75rem; }
  .hero h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
  .hero-text { max-width: 22rem; font-size: 1.125rem; }
  .topics { gap: 1.25rem; }
  .tile .icon { width: 2.75rem; height: 2.75rem; }
  .tile strong { font-size: 1.25rem; }
  .tile span { font-size: 0.9375rem; }

  .topic { max-width: 44rem; margin-inline: auto; }
  .footer { text-align: center; }
}

@media (min-width: 120rem) and (min-height: 60rem) {
  html { font-size: 118.75%; }
}
@media (min-width: 156rem) and (min-height: 80rem) {
  html { font-size: 143.75%; }
}

@media (max-width: 28rem) {
  .toolbar { gap: 0.35rem; }
  .sources-button { padding: 0 0.7rem; }
  .theme-switch .icon, .sources-button .icon { display: none; }
  .sources-button { min-height: 2.75rem; }
}

@media (max-width: 22rem) {
  .shell { width: calc(100% - 1rem); }
  .hero { padding: 0.875rem; }
  .tile strong { font-size: 0.875rem; }
  .theme-switch button { padding: 0 0.7rem; }
  .topic-head h1 { font-size: 1.5rem; }
}
@media (max-width: 19rem) {
  .topics { grid-template-columns: 1fr; }
  .art { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.art {
  flex: 1 0 4.5rem;
  min-height: 4.5rem;
  padding: 0;
  container-type: size;
}
.avatar {
  position: relative;
  overflow: hidden;
  width: min(92cqh, 82cqw, 20rem);
  aspect-ratio: 1;
  border-radius: 50%;
}

html[data-screen='inicio'] .shell {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(100% - 1.75rem, 30rem);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: clamp(0.5rem, 1.4dvh, 1.25rem);
}
html[data-screen='inicio'] .toolbar { padding-block: clamp(0.35rem, 1.2dvh, 0.75rem); }
html[data-screen='inicio'] .theme-switch { padding: 0.2rem; }
html[data-screen='inicio'] .theme-switch button { min-height: clamp(2rem, 5.2dvh, 2.5rem); }
html[data-screen='inicio'] .sources-button { min-height: 0; }
html[data-screen='inicio'] main { display: flex; flex: 1; flex-direction: column; }

html[data-screen='inicio'] .home {
  flex: 1;
  grid-template-rows: 1fr auto;
  gap: clamp(0.5rem, 1.3dvh, 1rem);
}
html[data-screen='inicio'] .hero { padding: clamp(0.6rem, 1.9dvh, 1.25rem); }
html[data-screen='inicio'] .hero-top { margin-bottom: clamp(0.25rem, 1.4dvh, 1rem); }
html[data-screen='inicio'] .brand { font-size: clamp(1.25rem, min(3.2dvh, 6.4vw), 1.75rem); }
html[data-screen='inicio'] .brand img {
  width: clamp(1.75rem, 4.8dvh, 2.5rem);
  height: auto;
}
html[data-screen='inicio'] .hero h1 {
  margin-bottom: clamp(0.15rem, 0.8dvh, 0.5rem);
  font-size: clamp(1.125rem, min(3dvh, 6.2vw), 1.75rem);
}
html[data-screen='inicio'] .hero-text {
  max-width: 24rem;
  margin-bottom: clamp(0.35rem, 1.4dvh, 1rem);
  font-size: clamp(0.8125rem, min(1.95dvh, 3.7vw), 1.0625rem);
  line-height: 1.4;
}

html[data-screen='inicio'] .topics { gap: clamp(0.5rem, 1.4dvh, 0.875rem); }
html[data-screen='inicio'] .tile {
  gap: clamp(0.1rem, 0.6dvh, 0.4rem);
  min-height: clamp(4.25rem, min(11dvh, 24vw), 8rem);
  padding: clamp(0.35rem, 1.2dvh, 1rem) 0.4rem;
}
html[data-screen='inicio'] .tile .icon {
  width: clamp(1.25rem, 3.6dvh, 2.4rem);
  height: clamp(1.25rem, 3.6dvh, 2.4rem);
}
html[data-screen='inicio'] .tile strong {
  font-size: clamp(0.8125rem, min(2.1dvh, 4vw), 1.1875rem);
  line-height: 1.25;
}
html[data-screen='inicio'] .tile span {
  font-size: clamp(0.6875rem, min(1.7dvh, 3.1vw), 0.9375rem);
  line-height: 1.3;
}


@media (min-width: 40rem) {
  html[data-screen='inicio'] .shell { width: min(100% - 3rem, 42rem); }
  html[data-screen='inicio'] .home {
    flex: 1 1 0;
    max-height: 68rem;
    margin-block: auto;
  }
  html[data-screen='inicio'] main { justify-content: center; }
}

@media (min-width: 56rem), (orientation: landscape) and (min-width: 35rem) and (max-height: 34rem) {
  html[data-screen='inicio'] .shell { width: min(100% - 2rem, 68rem); }
  html[data-screen='inicio'] main { justify-content: flex-start; }
  html[data-screen='inicio'] .home {
    flex: 1 0 auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    max-height: 46rem;
    margin-block: auto;
  }
  html[data-screen='inicio'] .tile { min-height: 4.25rem; }
  html[data-screen='inicio'] .home,
  html[data-screen='inicio'] .topics { gap: clamp(0.625rem, 2.4dvh, 1.25rem); }
}

@media (orientation: landscape) and (max-height: 34rem) {
  html[data-screen='inicio'] .toolbar { padding-block: 0.3rem; }
  html[data-screen='inicio'] .hero { padding: 0.6rem 0.75rem; }
  html[data-screen='inicio'] .hero-top { margin-bottom: 0.2rem; }
  html[data-screen='inicio'] .brand { font-size: 1.125rem; }
  html[data-screen='inicio'] .brand img { width: 1.625rem; }
  html[data-screen='inicio'] .hero h1 { font-size: 1.0625rem; }
  html[data-screen='inicio'] .hero-text { max-width: none; margin-bottom: 0.25rem; font-size: 0.75rem; }
}

@media (max-height: 34rem) and (orientation: portrait) {
  html[data-screen='inicio'] .hero-text,
  html[data-screen='inicio'] .tile span { display: none; }
  html[data-screen='inicio'] .art { flex-basis: 3rem; min-height: 3rem; }
  html[data-screen='inicio'] .tile { min-height: 3.5rem; }
}

@media (orientation: landscape) and (max-height: 22rem) {
  html[data-screen='inicio'] .hero-text,
  html[data-screen='inicio'] .tile span { display: none; }
  html[data-screen='inicio'] .art { flex-basis: 3rem; min-height: 3rem; }
  html[data-screen='inicio'] .toolbar { padding-block: 0.2rem; }
  html[data-screen='inicio'] .theme-switch button { min-height: 1.75rem; }
  html[data-screen='inicio'] .tile { min-height: 3.5rem; }
}

@media (max-width: 19rem) {
  html[data-screen='inicio'] .tile span { display: none; }
  html[data-screen='inicio'] .hero-text { font-size: 0.75rem; }
}

@media (max-width: 22rem) {
  html[data-screen='inicio'] .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-screen='inicio'] .hero-top { gap: 0.25rem; }
  html[data-screen='inicio'] .badge { font-size: 0.6875rem; }
  html[data-screen='inicio'] .shell { width: calc(100% - 1rem); }
  html[data-screen='inicio'] .hero h1 { font-size: 1.125rem; }
  html[data-screen='inicio'] .tile strong { font-size: 0.8125rem; }
}
