* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  font-family: system-ui, sans-serif;
  color: #172b4d;
  background: #f0f5fc;
}

main {
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 12px 40px rgba(23, 43, 77, 0.08);
}

h1 { margin: 0 0 0.75rem; font-size: 2rem; }
p { margin: 0; color: #52627a; line-height: 1.5; }

output {
  display: block;
  margin: 1.5rem 0;
  font-size: 5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

button {
  flex: 1;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: #185adb;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #1246ad; }
button:active { background: #103b91; }
button:focus-visible { outline: 3px solid #172b4d; outline-offset: 4px; }
