/* ============================================================
   Berntaler – Design-System
   ============================================================ */
:root {
  --primary: #7C3AED;
  --secondary: #06B6D4;
  --gold: #F59E0B;
  --silver: #94A3B8;
  --bronze: #CD7F32;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --ink: #1E293B;
  --muted: #64748B;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  background: #4F46E5;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.hidden { display: none !important; }

.view { min-height: 100vh; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  user-select: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(0.3); }
.btn-big { width: 100%; padding: 18px; font-size: 20px; }
.btn-primary { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.btn-secondary { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.btn-success { background: linear-gradient(135deg, #10B981, #059669); }
.btn-warning { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }
.btn-error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  margin-top: 14px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}
.icon-btn:active { transform: scale(0.92); }

/* ---------- Inputs ---------- */
.text-input {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  font-size: 17px;
  margin-bottom: 14px;
  background: #fff;
  color: var(--ink);
}
.text-input:focus { outline: none; border-color: var(--primary); }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form-error {
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* ============================================================
   LOGIN
   ============================================================ */
#login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #4F46E5, #7C3AED 55%, #EC4899);
}
.login-card {
  background: #fff;
  border-radius: 28px;
  padding: 32px 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-logo { width: 124px; height: 124px; margin: 0 auto 6px; animation: bounce 2.6s ease-in-out infinite; }
.login-logo .taler3d {
  width: 100%; height: 100%;
  animation: taler-rotate 4s ease-in-out infinite, taler-glow 3.2s ease-in-out infinite;
}
.login-logo .taler-svg { width: 100%; height: 100%; display: block; }
.login-title { font-size: 36px; font-weight: 900; margin: 4px 0 0; color: var(--primary); }
.login-sub { color: var(--muted); margin: 4px 0 22px; font-weight: 600; }
#login-form { text-align: left; }
#login-form .field-label { margin-top: 4px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.child-topbar { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.parent-topbar { background: linear-gradient(135deg, #1E293B, #334155); }
.topbar-title { font-size: 22px; font-weight: 900; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.parent-name { font-weight: 800; margin-right: 4px; }

/* ============================================================
   KIND-INTERFACE
   ============================================================ */
.child-main {
  background: linear-gradient(170deg, #4F46E5, #7C3AED 50%, #EC4899);
  min-height: 100vh;
  padding: 16px 16px 60px;
  font-size: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.section-title {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin: 22px 4px 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Münz-Übersicht --- */
.coin-card { text-align: center; }
.coin-card-title { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 12px; }
.coins-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 6px;
  perspective: 900px;
  padding: 10px 0 4px;
}
.taler-wrap { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 9px; }

/* Premium SVG-Taler: 3D-Dreh-Animation + Glanz-Puls */
.taler3d {
  position: relative;
  width: clamp(84px, 25vw, 116px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  animation: taler-rotate 4s ease-in-out infinite, taler-glow 3.2s ease-in-out infinite;
  will-change: transform, filter;
}
.taler-silver .taler3d { animation-delay: 0.55s, 0.3s; }
.taler-bronze .taler3d { animation-delay: 1.1s, 0.7s; }
.taler-svg { width: 100%; height: 100%; display: block; }

/* verspielte Glitzer-Sterne rund um den Taler */
.taler-spark {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  animation: spark-twinkle 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}
.taler-spark.sp1 { top: -8px; right: 0; font-size: 16px; animation-delay: 0.1s; }
.taler-spark.sp2 { bottom: -4px; left: -4px; font-size: 13px; animation-delay: 0.9s; }
.taler-spark.sp3 { top: 32%; left: -10px; font-size: 11px; animation-delay: 1.7s; }

.coin-count { font-size: clamp(30px, 9vw, 42px); font-weight: 900; color: var(--ink); line-height: 1; }
.coin-name { font-size: 15px; font-weight: 800; color: var(--muted); }

.exchange-row { display: flex; gap: 12px; margin-bottom: 18px; }
.exchange-row .btn { flex: 1; font-size: 16px; padding: 14px 8px; }

/* --- Motivations-Header --- */
.motivation-card {
  position: relative;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #7C2D12, #B45309 40%, #F59E0B);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  border: 3px solid #FCD34D;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: golden-glow 2.4s ease-in-out infinite;
  overflow: hidden;
}
.motivation-card.sunday {
  background: linear-gradient(135deg, #BE185D, #7C3AED 50%, #2563EB);
  border-color: #FDE68A;
}
.motivation-sparkle {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: sparkle 3s linear infinite;
  pointer-events: none;
}
.motivation-days {
  display: inline-block;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 16px;
}

/* --- Sonntags-Button --- */
.sunday-btn {
  background: linear-gradient(135deg, #F59E0B, #EA580C) !important;
  font-size: 19px !important;
}
.sunday-status {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
}

/* --- Aufgaben --- */
.tasks-container { display: flex; flex-direction: column; gap: 22px; }
.task-group-title {
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  margin: 0 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.task-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.task-card:active { transform: scale(0.96); }
.task-card.gold { border-color: var(--gold); }
.task-card.silver { border-color: var(--silver); }
.task-card.bronze { border-color: var(--bronze); }
.task-emoji { font-size: 40px; }
.task-name { font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.15; }
.task-reward { font-size: 15px; font-weight: 800; }
.task-note { font-size: 12px; color: var(--muted); font-weight: 600; }

/* --- Münzen einlösen --- */
.redeem-section { margin-bottom: 18px; }
.redeem-section:last-child { margin-bottom: 0; }
.redeem-h { font-size: 19px; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.redeem-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.redeem-row .label { font-weight: 800; font-size: 18px; }
.redeem-total {
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--secondary);
  margin: 10px 0;
}
.redeem-type-row { display: flex; gap: 10px; margin: 12px 0; }
.redeem-type-row .btn { flex: 1; }
.divider { height: 2px; background: #e2e8f0; margin: 18px 0; border-radius: 2px; }
.bronze-info { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-align: center; }

/* --- Stepper --- */
.stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.stepper-btn {
  width: 50px; height: 50px; border-radius: 14px; border: none;
  background: var(--primary); color: #fff; font-size: 28px; font-weight: 900; cursor: pointer;
}
.stepper-btn:active { transform: scale(0.9); }
.stepper-btn:disabled { opacity: 0.4; }
.stepper-value { font-size: 30px; font-weight: 900; min-width: 44px; text-align: center; }

/* --- Coin select (Eltern Bonus) --- */
.coin-select { display: flex; gap: 10px; margin-bottom: 14px; }
.coin-choice {
  flex: 1; padding: 12px; border-radius: 14px; border: 3px solid #e2e8f0;
  background: #fff; font-weight: 800; font-size: 16px; cursor: pointer; font-family: inherit;
}
.coin-choice.selected { border-color: var(--primary); background: #F5F3FF; }

/* ============================================================
   ELTERN-INTERFACE
   ============================================================ */
.parent-main {
  background: linear-gradient(170deg, #1E293B, #334155);
  min-height: 100vh;
  padding: 14px 14px 60px;
  font-size: 16px;
}
.parent-main .card { color: var(--ink); }
.parent-main .section-title { font-size: 22px; }
.parent-main .field-label { color: var(--ink); }

.badge {
  background: var(--error);
  color: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 16px;
  font-weight: 900;
  animation: pulse 1.4s infinite;
}

.pending-container { display: flex; flex-direction: column; gap: 12px; }
.request-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border-left: 6px solid var(--warning);
  box-shadow: var(--shadow);
  animation: soft-pulse 2.2s ease-in-out infinite;
}
.request-card.sunday-request { border-left-color: var(--gold); background: #FFFBEB; }
.request-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.request-task { font-weight: 900; font-size: 18px; color: var(--ink); }
.request-sub { color: var(--muted); font-weight: 700; margin-top: 2px; }
.request-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.request-reward {
  font-weight: 900; font-size: 16px; white-space: nowrap;
  background: #F1F5F9; border-radius: 10px; padding: 6px 10px;
}
.request-actions { display: flex; gap: 10px; margin-top: 14px; }
.request-actions .btn { flex: 1; font-size: 16px; padding: 12px; }

.empty-note {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}
.card .empty-note { background: #F1F5F9; color: var(--muted); }

/* --- Eltern Balance --- */
.parent-balance-row { display: flex; justify-content: space-around; text-align: center; }
.pb-item { font-weight: 900; }
.pb-emoji { font-size: 38px; }
.pb-count { font-size: 30px; }
.pb-name { font-size: 14px; color: var(--muted); }
.bronze-week {
  margin-top: 14px;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  background: #FAE3CD;
  border-radius: 12px;
  padding: 10px;
}

.log-filters { display: flex; gap: 10px; margin-bottom: 12px; }
.log-filters .text-input { margin-bottom: 0; }

/* --- Admin (nur Ahmed) --- */
.admin-hint { font-size: 14px; font-weight: 700; opacity: 0.7; }
.admin-card { border: 2px solid #FCA5A5; background: #FEF2F2; display: flex; flex-direction: column; gap: 12px; }
.admin-warn { margin: 0 0 4px; font-weight: 800; color: #991B1B; text-align: center; }

/* --- Neue Aufgabe / Icon-Auswahl --- */
.icon-preview-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.icon-preview {
  font-size: 34px; width: 56px; height: 56px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 14px;
  background: #F5F3FF; border: 2px solid var(--primary);
}
.icon-search { margin-bottom: 0 !important; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #fff;
}
.icon-btn-pick {
  font-size: 24px; height: 44px; border-radius: 10px;
  border: 2px solid transparent; background: #F8FAFC; cursor: pointer; font-family: inherit;
}
.icon-btn-pick.selected { border-color: var(--primary); background: #EDE9FE; }
.icon-btn-pick:active { transform: scale(0.9); }

.customtask-list { margin-top: 16px; }
.customtask-title { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.customtask-item {
  display: flex; align-items: center; gap: 10px;
  background: #F8FAFC; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.customtask-emoji { font-size: 24px; }
.customtask-name { font-weight: 800; flex: 1; }
.customtask-coin { font-weight: 800; font-size: 14px; color: var(--muted); }
.customtask-del { background: none; border: none; font-size: 22px; cursor: pointer; }
.customtask-del:active { transform: scale(0.85); }

/* --- Ahmed: Bernis Timer Live --- */
.ptimer-idle { text-align: center; font-weight: 700; color: var(--muted); }
.ptimer-card { text-align: center; border: 2px solid var(--secondary); }
.ptimer-label { font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.ptimer-time { font-size: 48px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--secondary); margin-bottom: 12px; }
.ptimer-accel { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ptimer-accel-label { font-weight: 800; color: var(--ink); width: 100%; margin-bottom: 2px; }
.ptimer-accel .btn { flex: 1; min-width: 90px; font-size: 16px; padding: 12px 8px; }

/* ---------- Log ---------- */
.log-list { display: flex; flex-direction: column; gap: 8px; }
#child-log.log-list { }
.log-item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.parent-main .log-item { background: #F8FAFC; }
.log-text { font-weight: 700; }
.log-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.log-coin-plus { color: var(--success); font-weight: 900; }
.log-coin-minus { color: var(--error); font-weight: 900; }

/* ============================================================
   OVERLAYS / MODAL / TIMER
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 26px 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop-in 0.25s ease;
}
.modal-title { font-size: 24px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.modal-text { font-size: 18px; color: var(--ink); margin-bottom: 18px; line-height: 1.4; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }
.modal-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.modal-option {
  background: #F5F3FF;
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
}
.modal-option.selected { border-color: var(--primary); }

/* --- Timer --- */
#timer-overlay { background: rgba(15, 23, 42, 0.92); }
.timer-box {
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 360px;
}
.timer-label { font-size: 28px; font-weight: 900; margin-bottom: 18px; }
.timer-ring-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.timer-ring { filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.6)); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 16; }
.ring-fg {
  fill: none;
  stroke: url(#timer-gradient);
  stroke: #06B6D4;
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s linear, stroke 0.4s ease;
}
.timer-time {
  position: absolute;
  font-size: 52px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.timer-controls { display: flex; gap: 14px; margin-top: 26px; }
.timer-controls .btn { flex: 1; }
.timer-min-btn { width: 100%; margin-top: 14px; }
.timer-done { margin-top: 22px; }

/* Mini-Timer (Hintergrund) */
.timer-mini {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.5);
  animation: pulse 1.8s ease-in-out infinite;
}
.timer-mini.warn { background: linear-gradient(135deg, #EF4444, #DC2626); }
.timer-mini-label { font-size: 22px; }
.timer-mini-time { font-variant-numeric: tabular-nums; }
.timer-mini-arrow { font-size: 14px; opacity: 0.85; }
.timer-done-text {
  font-size: 32px; font-weight: 900; margin-bottom: 18px;
  animation: shake 0.6s ease-in-out infinite;
}

/* ---------- Toasts ---------- */
#toast-container {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 32px);
  max-width: 420px;
  pointer-events: none;
}
.toast {
  background: #1E293B;
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease;
  text-align: center;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--primary); }

/* ---------- Confetti ---------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}

/* ============================================================
   ANIMATIONEN
   ============================================================ */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes coin-wiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.08); }
}
@keyframes taler-rotate {
  0%, 100% { transform: rotateY(-22deg) rotateZ(-1.5deg); }
  50% { transform: rotateY(22deg) rotateZ(1.5deg); }
}
@keyframes taler-shine {
  0% { left: -130%; }
  55%, 100% { left: 135%; }
}
@keyframes taler-glow {
  0%, 100% { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)) brightness(1); }
  50% { filter: drop-shadow(0 11px 16px rgba(0, 0, 0, 0.42)) brightness(1.12); }
}
@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.1) rotate(20deg); }
  70% { opacity: 0.7; transform: scale(0.9) rotate(-10deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes soft-pulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5); }
}
@keyframes golden-glow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(252, 211, 77, 0.5); border-color: #FCD34D; }
  50% { box-shadow: 0 0 26px 8px rgba(252, 211, 77, 0.85); border-color: #FBBF24; }
}
@keyframes sparkle {
  0% { opacity: 0; transform: translateY(0) scale(0.6) rotate(0deg); }
  30% { opacity: 1; }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-40px) scale(1.2) rotate(40deg); }
}
@keyframes pop-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes toast-in {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   RESPONSIVE (Tablet / Desktop)
   ============================================================ */
@media (min-width: 560px) {
  .child-main, .parent-main { max-width: 720px; margin: 0 auto; }
  .task-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .child-main, .parent-main { max-width: 860px; }
}

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