/* ¡Vamos! — cartoony theme: thick ink outlines, chunky pressable buttons,
   yellow / orange / blue panels on a blue-grey grid. */

@font-face {
  font-family: 'Bangers';
  src: url('../fonts/bangers.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #2a2730;
  --bg: #7f8ca3;
  --bg-grid: rgba(255, 255, 255, 0.07);
  --yellow: #ffc93c;
  --yellow-light: #ffe08a;
  --yellow-dark: #e09a12;
  --orange: #ff6b3d;
  --orange-dark: #c8431b;
  --blue: #3ea6f2;
  --blue-dark: #1b6fb8;
  --green: #6fd34f;
  --green-dark: #3b9a2a;
  --red: #f0473b;
  --red-dark: #b3261c;
  --cream: #fff6dc;
  --white: #ffffff;
  --muted: #8a7444;
  --muted-on-bg: #e8edf5;
  --shadow: rgba(30, 28, 40, 0.35);

  --title: 'Bangers', 'Impact', 'Arial Black', sans-serif;
  --body: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --outline: 3px solid var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #3d465a;
    --bg-grid: rgba(255, 255, 255, 0.05);
    --muted-on-bg: #c7cfdd;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 6px 6px;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea { font-family: inherit; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hidden { display: none !important; }

/* ---------- Shared cartoon pieces ---------- */

/* Big comic lettering with an ink outline. */
.home-title,
.phase-label,
.quiz-counter,
.score-number,
.feedback-title {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Every pressable thing sinks when tapped. */
.btn-primary, .btn-secondary, .chip-btn, .option-btn, .audio-btn, .mic-btn,
.helper-btn, .icon-btn, .icon-link-btn, .speaker-btn, .learn-row {
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled),
.chip-btn:active:not(:disabled), .option-btn:active:not(:disabled),
.audio-btn:active, .mic-btn:active, .helper-btn:active:not(:disabled),
.icon-btn:active, .icon-link-btn:active, .speaker-btn:active, .learn-row:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

/* ---------- Quiz screen ---------- */

.quiz-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px 6px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--outline);
  background: var(--orange);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--ink);
  text-shadow: 0 2px 0 var(--orange-dark);
}

.quiz-counter {
  font-size: 1.7rem;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}

/* Blue speech bubble. */
.mode-pill {
  position: relative;
  padding: 7px 14px;
  border-radius: 14px;
  border: var(--outline);
  background: var(--blue);
  color: var(--white);
  font-family: var(--title);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--ink);
  text-shadow: 0 2px 0 var(--blue-dark);
}

.progress-track {
  margin: 12px 16px 18px;
  height: 22px;
  border-radius: 999px;
  border: var(--outline);
  background: #3a3741;
  overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35), 0 3px 0 var(--shadow);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background-color: var(--orange);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.22) 0 6px,
    transparent 6px 12px
  );
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  transition: width 0.3s cubic-bezier(.3, 1.5, .5, 1);
}

.quiz-card-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.quiz-card {
  flex: 1;
  background: var(--yellow);
  border: var(--outline);
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), inset 0 -5px 0 rgba(0, 0, 0, 0.08), 0 7px 0 var(--ink);
}

.q-category {
  display: inline-block;
  font-family: var(--title);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--white);
  background: var(--orange);
  border: var(--outline);
  border-radius: 10px;
  padding: 3px 12px;
  margin-bottom: 14px;
  transform: rotate(-2deg);
  box-shadow: 0 3px 0 var(--ink);
  text-shadow: 0 2px 0 var(--orange-dark);
}

.q-prompt {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--cream);
  border: var(--outline);
  border-radius: 16px;
}

.q-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: -10px 0 18px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border-radius: 16px;
  border: var(--outline);
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08), 0 4px 0 var(--ink);
}

.option-btn:hover:not(:disabled) { background: var(--cream); }
.option-btn:disabled { cursor: default; }

.option-btn.ruled-out {
  opacity: 0.4;
  text-decoration: line-through;
  box-shadow: none;
  transform: translateY(3px);
}

.option-btn.correct {
  background: var(--green);
  color: var(--ink);
  animation: pop 0.3s ease;
}

.option-btn.wrong {
  background: var(--red);
  color: var(--white);
  animation: shake 0.35s ease;
}

.option-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 12px;
}

.option-mark.correct { background: var(--green-dark); }
.option-mark.wrong { background: var(--red-dark); }

.text-input, textarea.text-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: var(--outline);
  background: var(--white);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 6px;
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.08);
  outline: none;
}

.text-input:focus { box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.08), 0 0 0 4px var(--blue); }
.text-input::placeholder { color: #b9ac8c; }

.audio-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.audio-btn, .mic-btn {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  border: var(--outline);
  background: var(--blue);
  color: var(--white);
  font-family: var(--title);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--ink);
  text-shadow: 0 2px 0 var(--blue-dark);
}

.audio-btn { white-space: nowrap; font-size: 1.2rem; padding: 12px 8px; }

.mic-btn {
  width: 100%;
  padding: 18px;
  margin-top: 6px;
}

.mic-btn.recording {
  background: var(--red);
  text-shadow: 0 2px 0 var(--red-dark);
  animation: pulse 1s ease-in-out infinite;
}

.transcript-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: var(--outline);
  background: var(--cream);
  font-style: italic;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

/* Message boxes like the kit's success / warning / error bars. */
.feedback-panel {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: var(--outline);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 5px 0 var(--ink);
  animation: pop 0.25s ease;
}

.feedback-panel.correct { background: #bff0a8; }
.feedback-panel.almost { background: var(--yellow-light); }
.feedback-panel.wrong { background: #ffc2b4; }

.feedback-title {
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: var(--white);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
}

.feedback-correct-answer {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feedback-explain, .feedback-note {
  font-size: 0.97rem;
  margin: 4px 0;
}

.speaker-btn {
  border: var(--outline);
  background: var(--blue);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--ink);
}

.quiz-footer {
  padding: 18px 16px 28px;
}

.quiz-helpers {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.quiz-helpers[hidden] { display: none; }

.helper-btn {
  flex: 1;
  padding: 10px 12px;
  border: var(--outline);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--title);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08), 0 4px 0 var(--ink);
}

.helper-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: translateY(3px);
}

.hint-mask {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 14px 0 0;
  padding: 8px 12px;
  background: var(--cream);
  border: 3px dashed var(--ink);
  border-radius: 12px;
  display: inline-block;
}

.hint-mask:empty { display: none; }

/* Big orange "pressable" button. */
.btn-primary {
  width: 100%;
  padding: 14px 18px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--title);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-shadow: 0 3px 0 var(--orange-dark);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(0, 0, 0, 0.15), 0 6px 0 var(--ink);
}

.btn-primary:disabled {
  background: #b9b4a6;
  text-shadow: none;
  box-shadow: 0 3px 0 var(--ink);
  transform: translateY(3px);
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 12px 16px;
  border: var(--outline);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--title);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.1), 0 5px 0 var(--ink);
}

/* ---------- Learn screen ---------- */

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.learn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: var(--outline);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
}

.learn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.learn-es {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange-dark);
}

.learn-fr {
  font-size: 0.97rem;
  color: #6b6272;
}

.learn-footer {
  display: flex;
  gap: 12px;
}

.learn-footer .btn-secondary { width: auto; }

/* ---------- Words & basics ---------- */

.basics-list { margin-top: 16px; }

.basics-section {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: var(--outline);
  background: var(--yellow);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ink);
}

.basics-section summary {
  font-family: var(--title);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.basics-section summary::-webkit-details-marker { display: none; }
.basics-section summary::before { content: '▶ '; color: var(--orange); }
.basics-section[open] summary::before { content: '▼ '; }
.basics-section[open] summary { margin-bottom: 12px; }

.basics-note {
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.learn-row[hidden] { display: none; }

/* ---------- Home / Settings / History / Results ---------- */

.screen {
  padding: 18px 16px 44px;
  min-height: 100vh;
}

.screen > .text-input { margin-bottom: 4px; }

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.home-header > div { display: flex; gap: 10px; }

.home-title {
  font-size: 2.9rem;
  line-height: 1;
  margin: 0;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.home-title .accent { color: var(--orange); }

#btn-basics { margin-bottom: 6px; }

.icon-link-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--outline);
  background: var(--yellow);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--ink);
}

/* Ribbon banner. */
.phase-label {
  display: block;
  width: fit-content;
  margin: 26px 0 14px -4px;
  padding: 5px 20px 5px 16px;
  font-size: 1.5rem;
  color: var(--white);
  background: var(--blue);
  border: var(--outline);
  border-radius: 6px 30px 30px 6px;
  text-shadow: 0 2px 0 var(--blue-dark);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.lesson-card {
  position: relative;
  border-radius: 20px;
  border: var(--outline);
  background: var(--yellow);
  padding: 14px 16px 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), inset 0 -5px 0 rgba(0, 0, 0, 0.08), 0 6px 0 var(--ink);
}

.lesson-card.locked {
  background: #c9c4b4;
  filter: saturate(0.4);
}

.lesson-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lesson-card-title {
  font-family: var(--title);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0;
}

.lesson-card-subtitle {
  font-size: 0.95rem;
  margin: 3px 0 10px;
}

.badge {
  flex-shrink: 0;
  font-family: var(--title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 10px;
  border: var(--outline);
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(4deg);
}

.badge.pass { background: var(--green); color: var(--ink); }
.badge.locked-badge { background: var(--ink); color: var(--yellow); }

.lesson-stats {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.lesson-stats span {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1px 9px;
}

.lesson-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-btn {
  flex: 1;
  min-width: 84px;
  padding: 7px 8px;
  border-radius: 999px;
  border: var(--outline);
  background: var(--white);
  color: var(--ink);
  font-family: var(--title);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08), 0 4px 0 var(--ink);
}

/* Each action gets its own colour, like the kit's button row. */
.chip-btn[data-action="learn"] { background: var(--blue); color: var(--white); text-shadow: 0 2px 0 var(--blue-dark); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 4px 0 var(--ink); }
.chip-btn[data-action="practice"] { background: var(--orange); color: var(--white); text-shadow: 0 2px 0 var(--orange-dark); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 4px 0 var(--ink); }
.chip-btn[data-action="test"] { background: var(--white); }
.chip-btn[data-action="review"] { background: var(--cream); }

.chip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: translateY(3px);
  text-shadow: none;
}

.footer-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

#btn-reset {
  background: var(--red);
  color: var(--white);
  text-shadow: 0 2px 0 var(--red-dark);
}

.footer-row .btn-secondary { font-size: 1.1rem; padding: 10px 8px; }

/* History + settings sit on cream panels so the text stays readable. */
.history-item, .settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: var(--outline);
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
}

.history-main { font-weight: 700; }
.history-sub { color: var(--muted); font-size: 0.85rem; }

.history-score {
  font-family: var(--title);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.history-score.pass { color: var(--green-dark); }
.history-score.fail { color: var(--red); }

.screen > p:not([class]), .screen > .hint { color: var(--white); }

.switch {
  position: relative;
  width: 60px;
  height: 34px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-track {
  position: absolute;
  inset: 0;
  background: #4a4652;
  border: var(--outline);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: background 0.15s;
}

.switch-track::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1);
}

.switch input:checked + .switch-track { background: var(--orange); }
.switch input:checked + .switch-track::before { transform: translateX(26px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Results ---------- */

.score-ring {
  text-align: center;
  margin: 10px auto 26px;
  padding: 18px 10px 20px;
  max-width: 300px;
  background: var(--yellow);
  border: var(--outline);
  border-radius: 50% / 40%;
  box-shadow: 0 0 0 8px var(--orange), 0 0 0 11px var(--ink), 0 14px 0 3px var(--shadow);
  animation: pop 0.45s ease;
}

.score-number {
  font-size: 4.2rem;
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}

.score-outof {
  font-family: var(--title);
  font-size: 1.6rem;
}

.score-pass-label {
  display: inline-block;
  font-family: var(--title);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-top: 8px;
  padding: 2px 14px;
  border: var(--outline);
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 3px 0 var(--ink);
}

.score-pass-label.pass { background: var(--green); }
.score-pass-label.fail { background: var(--red); color: var(--white); }

.tally-row {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-bottom: 22px;
}

.tally-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: var(--white);
  border: var(--outline);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
}

.tally-num { font-family: var(--title); font-size: 2rem; line-height: 1.1; }
.tally-label { font-size: 0.85rem; font-weight: 600; }

.mistake-card {
  border: var(--outline);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--cream);
  box-shadow: 0 4px 0 var(--ink);
}

.mistake-q { font-weight: 700; margin: 0 0 8px; }
.mistake-line { font-size: 0.95rem; margin: 3px 0; }
.mistake-card > :last-child { margin-bottom: 0; }
.mistake-mine { color: var(--red-dark); }
.mistake-correct { color: var(--green-dark); font-weight: 600; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--title);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

input[type="file"] { display: none; }

/* ---------- Little animations ---------- */

@keyframes pop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes pulse {
  50% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
