:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #443644;
  background: #fffcf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 5% 10%, #f9e4eb, transparent 50%),
    radial-gradient(ellipse at 100% 55%, #e9f1f8, transparent 50%),
    #fffcf8;
}

.app-home {
  width: min(100%, 600px);
  margin-inline: auto;
  padding: calc(22px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.app-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}

.app-welcome img { border-radius: 18px; }
.app-welcome h1 { margin: 0; font-size: clamp(28px, 8vw, 42px); line-height: 1.1; }
.app-welcome p { margin: 6px 0 0; color: #625165; font-size: 15px; }

.app-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-tools a {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 116px;
  padding: 12px 13px;
  border: 1px solid #4a3b3b22;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 8px #4a3b3b0b;
}

.app-tools a > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 23px;
  background: #ffffffa6;
  border-radius: 10px;
}

.app-tools img { border-radius: 10px; }
.app-tools strong { font-size: 16px; line-height: 1.2; }
.app-tools small { color: #5b4d5d; font-size: 13px; line-height: 1.25; }
.library { background: #f8e4eb; }
.games { background: #fff1ca; }
.planner { background: #efe6f5; }
.family { background: #e4f2e7; }
.turminha { background: #fce9dc; }
.account { background: #e5f0f9; }

a:focus-visible, button:focus-visible { outline: 3px solid #913d62; outline-offset: 3px; }
.app-tools a:active { background-image: linear-gradient(#ffffff60, #ffffff60); }

footer, .app-update { margin-top: 16px; }
footer a { color: #833454; font-weight: 650; line-height: 44px; }
footer p { color: #625165; font-size: 14px; margin: 0; }
.app-update button {
  color: white;
  background: #913d62;
  border: 0;
  border-radius: 10px;
  font: inherit;
  min-height: 44px;
  padding: 8px 14px;
}
