/* =========================================================================
 * style.css — the chunky 90s egg shell around the LCD.
 * ========================================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Verdana', sans-serif;
  background:
    radial-gradient(circle at 20% 20%, #3b3d54 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, #413048 0%, transparent 45%),
    #23222e;
  -webkit-user-select: none;
  user-select: none;
  padding: 24px;
}

.device {
  position: relative;
  width: min(400px, 92vw);
  aspect-ratio: 5 / 6.4;
  background:
    radial-gradient(ellipse at 32% 24%, rgba(255,255,255,0.55) 0%, transparent 42%),
    radial-gradient(ellipse at 70% 85%, rgba(0,0,0,0.22) 0%, transparent 55%),
    linear-gradient(160deg, #ff9ec7 0%, #f571ae 45%, #e2519a 100%);
  border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  box-shadow:
    inset 0 -14px 30px rgba(140, 20, 80, 0.45),
    inset 0 10px 24px rgba(255, 255, 255, 0.35),
    0 22px 48px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* keychain loop */
.device::before {
  content: '';
  position: absolute;
  top: -4.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: min(9px, 2vw) solid #d94f97;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.25);
  background: transparent;
  z-index: 0;
}

.brand {
  margin-top: 13%;
  font-size: clamp(11px, 3.4vw, 15px);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 0 rgba(150, 30, 90, 0.7);
}

.bezel {
  margin-top: 4.5%;
  width: 76%;
  padding: 4.5% 4.5%;
  border-radius: 26% 26% 30% 30% / 34% 34% 38% 38%;
  background: linear-gradient(160deg, #f8f3df 0%, #e8dfc2 55%, #cfc4a2 100%);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.5);
}

#lcd {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  background: #9ba355;
}

.buttons {
  margin-top: 9%;
  width: 66%;
  display: flex;
  justify-content: space-between;
}

.buttons button {
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  font-family: inherit;
  font-size: clamp(13px, 4vw, 18px);
  font-weight: 700;
  color: #5b3d68;
  cursor: pointer;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, #efe6f4 45%, #cdb9d8 100%);
  box-shadow:
    0 5px 0 #a98ab8,
    0 8px 14px rgba(90, 20, 60, 0.45),
    inset 0 -3px 6px rgba(120, 80, 140, 0.3);
  transition: transform 0.05s, box-shadow 0.05s;
  touch-action: none;
}

.buttons button.pressed,
.buttons button:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #a98ab8,
    0 3px 6px rgba(90, 20, 60, 0.45),
    inset 0 -2px 4px rgba(120, 80, 140, 0.3);
}

.mute {
  position: absolute;
  bottom: 3.5%;
  right: 8%;
  border: none;
  background: transparent;
  font-size: clamp(14px, 4vw, 18px);
  cursor: pointer;
  opacity: 0.75;
}
.mute:hover { opacity: 1; }

.hint {
  margin-top: 5%;
  font-size: clamp(8px, 2.4vw, 10px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 0 rgba(150, 30, 90, 0.5);
  text-align: center;
  padding: 0 8%;
}

.footer-note {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
