/**
 * Base — Reset, Typography, Global, Toast
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #F0D9A0;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}

h1,h2,h3,h4,h5,h6 { font-weight: 900; color: var(--color-text); line-height: 1.2; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--color-text-sub); font-size: 0.95rem; }

button { font-family: inherit; border: none; outline: none; cursor: pointer; background: none; }

a { color: var(--color-lb); text-decoration: none; font-weight: 700; }

/* Confetti overlay */
.confetti-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 99999;
}

/* ── Toast ─────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 10000;
  width: calc(100% - 32px); max-width: 400px;
  pointer-events: none;
}

.game-toast {
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF;
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  font-size: 0.9rem; font-weight: 700;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(-16px) scale(0.95);
  transition: all 220ms cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto;
}
.game-toast.visible  { opacity:1; transform:translateY(0) scale(1); }
.game-toast.leaving  { opacity:0; transform:translateY(-12px) scale(0.95); }
.toast-icon-wrap     { font-size: 1.3rem; }
.toast-success       { border-color: var(--color-explore); background:#F0FFF4; }
.toast-error         { border-color: var(--color-danger);  background:#FFF5F5; }
.toast-xp            { border-color: var(--color-yellow);  background:#FFFDF5; }
.toast-streak        { border-color: var(--color-quest);   background:#FFF5EE; }
