:root {
  color-scheme: light;
  --emergency-red: #c62828;
  --emergency-red-dark: #9f1f1f;
  --white: #ffffff;
  --text: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: var(--white);
  color: var(--text);
  display: grid;
  grid-template-rows: 1fr auto;
}

.app-shell {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 1rem 0;
}

.emergency-button {
  width: min(90%, 36rem);
  min-height: 10rem;
  padding: 1.35rem 1rem;
  border: 0.25rem solid var(--emergency-red-dark);
  border-radius: 1.5rem;
  background: var(--emergency-red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.5rem 0 var(--emergency-red-dark);
  touch-action: manipulation;
}

.emergency-button:focus-visible {
  outline: 0.35rem solid #111111;
  outline-offset: 0.35rem;
}

.emergency-button:active {
  transform: translateY(0.2rem);
  box-shadow: 0 0.3rem 0 var(--emergency-red-dark);
}

.phone-symbol {
  font-size: 3.5rem;
  line-height: 1;
}

.button-main {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.05;
}

.button-sub {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.bottom-help {
  margin: 0 auto;
  width: min(90%, 36rem);
  color: #222222;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

@media (max-height: 30rem) {
  body {
    min-height: auto;
  }
}
