:root {
  color-scheme: light dark;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--tg-theme-bg-color, #f7eadb);
  color: var(--tg-theme-text-color, #3b2418);
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

.screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.panel {
  width: min(100%, 420px);
  text-align: center;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--tg-theme-secondary-bg-color, rgba(255, 255, 255, 0.72));
  box-shadow: 0 18px 50px rgba(59, 36, 24, 0.12);
}

.eyebrow { font-weight: 700; letter-spacing: 0.06em; }
h1 { margin: 28px 0 16px; font-size: clamp(28px, 8vw, 42px); }
#message { line-height: 1.55; white-space: pre-line; }

.prediction {
  margin: 28px 0;
  padding: 28px 20px;
  border-radius: 16px;
  background: #fffaf1;
  color: #3b2418;
  font-size: 22px;
  line-height: 1.45;
}

button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font: 700 16px/1.2 system-ui, sans-serif;
  color: var(--tg-theme-button-text-color, #fff);
  background: var(--tg-theme-button-color, #8b4d2c);
  cursor: pointer;
}

button:disabled { cursor: wait; opacity: 0.55; }
