:root {
  --bg: #fdf7ff;
  --panel: #ffffff;
  --accent: #a3d5ff;
  --text: #2d2a32;
  --muted: #7b7b8b;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --btn: #f0f6ff;
  --btn-text: #2d2a32;
  --op: #ffe8a3;
  --eq: #b8f3c8;
  --danger: #ffb3c7;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% 10%, #fff7ff 0%, var(--bg) 40%, #f7fbff 100%);
  display: grid;
  place-items: center;
}

.wrap { width: min(420px, 92vw); position: relative; }

.card {
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: saturate(1.1) blur(4px);
  border: 1px solid rgba(0,0,0,.05);
}

.topbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.theme { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
select {
  appearance: none;
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,.08);
  background: var(--btn); color: var(--btn-text); font-weight: 600;
  box-shadow: 0 2px 0 rgba(0,0,0,.04) inset;
  cursor: pointer;
}

.screen {
  height: 82px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: inset 0 2px 18px rgba(0,0,0,.04);
  padding: 12px 14px; margin: 8px 0 16px 0;
  display: grid; align-content: center; justify-items: end;
  overflow: hidden;
}
.screen .expr { font-size: 14px; color: var(--muted); min-height: 18px; }
.screen .value { font-size: 28px; font-weight: 800; letter-spacing: .5px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

button {
  border: 0; border-radius: 14px; padding: 14px 0; font-size: 16px; font-weight: 800;
  background: var(--btn); color: var(--btn-text);
  box-shadow: 0 6px 0 rgba(0,0,0,.06);
  transform: translateY(0);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease, background .2s ease;
  position: relative; overflow: hidden;
}
button:active { transform: translateY(2px); box-shadow: 0 4px 0 rgba(0,0,0,.06); }

.mascot img {
  width: 80px;        /* size */
  height: 80px;
  object-fit: contain; 
  animation: bob 3.5s ease-in-out infinite;  /* keeps the bob animation */
}
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

footer { text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
a { color: inherit; }
