:root {
  --page-background: #1d2330;
  --phone-shell-light: #3c4d6e;
  --phone-shell-dark: #1f2a40;
  --bezel-color: #10151f;
  --lcd-background: #c7f0d8;
  --key-color: #d9dde4;
  --key-shadow: #8c939f;
  --key-text: #2a3142;
  --help-text: #aab3c5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 30%, #2c3548, var(--page-background));
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.phone {
  width: min(360px, 100%);
  padding: 28px 26px 40px;
  border-radius: 110px 110px 80px 80px / 70px 70px 120px 120px;
  background: linear-gradient(160deg, var(--phone-shell-light), var(--phone-shell-dark));
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.25),
    inset 0 -8px 16px rgba(0, 0, 0, 0.45),
    0 24px 48px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  user-select: none;
}

.phone__earpiece {
  width: 70px;
  height: 8px;
  border-radius: 4px;
  background: var(--bezel-color);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8);
}

.phone__bezel {
  width: 100%;
  padding: 18px 16px;
  border-radius: 22px 22px 40px 40px;
  background: var(--bezel-color);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9);
}

.phone__lcd {
  display: block;
  width: 100%;
  aspect-ratio: 84 / 48;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--lcd-background);
  border-radius: 4px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.phone__nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: 10px;
}

.phone__keypad {
  width: 88%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--key-text);
  background: linear-gradient(180deg, #f2f4f7, var(--key-color));
  box-shadow: 0 3px 0 var(--key-shadow), 0 5px 8px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.key--clear,
.key--scroll {
  height: 40px;
  border-radius: 20px;
  font-size: 18px;
}

.key--scroll {
  flex-direction: column;
  font-size: 10px;
  line-height: 1.4;
}

.key--navi {
  height: 30px;
  border-radius: 15px 15px 40px 40px;
  background: linear-gradient(180deg, #5b6f96, #34446a);
  box-shadow: 0 3px 0 #18213a, 0 5px 8px rgba(0, 0, 0, 0.4);
}

.key--digit {
  height: 34px;
  border-radius: 50%;
  gap: 5px;
  font-size: 17px;
}

.key--digit small {
  font-size: 9px;
  font-weight: 400;
  color: #5c6578;
}

.help {
  margin: 0;
  color: var(--help-text);
  font-size: 14px;
  text-align: center;
}
