/* Direction: Twinkle Fun & Yum — warm cream paper, royal purple, candy pastels, Tajawal */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #fffaf1;
  --surface: #ffffff;
  --surface-2: #f4f2f5;
  --border: #ddd8d2;
  --border-strong: #b6b1af;
  --ink: #321f49;
  --muted: #6f6477;
  --accent: #592b91;
  --accent-hover: #4c257b;
  --accent-ink: #ffffff;
  --accent-text: #592b91;
  --accent-strong: #592b91;
  --accent-soft: #eee5f9;
  --accent-border: #b49dc6;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3ebdb;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6e6d5;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7dfd7;
  --danger-strong: #b91c1c;
  --chart-1: #592b91;
  --chart-2: #a52f5f;
  --chart-3: #723e03;
  --chart-4: #556600;
  --chart-5: #07585b;
  --chart-6: #195cb8;

  --font-display: "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, sans-serif;
  --display-weight: 800;
  --radius-card: 22px;
  --radius-btn: 15px;
  --radius-input: 14px;
  --x-sun: #fff1c7;
  --x-pink: #f9dce9;
  --x-peach: #ffe8ca;
  --x-sky: #dff2fc;
  --x-on-pastel: #321f49;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Tajawal", system-ui, sans-serif;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #0c0614;
  --surface: #241f2c;
  --surface-2: #181220;
  --border: #2e2935;
  --border-strong: #55515b;
  --ink: #fffaf1;
  --muted: #9e9899;
  --accent: #592b91;
  --accent-hover: #724ba2;
  --accent-ink: #ffffff;
  --accent-text: #9a7ebc;
  --accent-strong: #9173b6;
  --accent-soft: #1d0e30;
  --accent-border: #2f174c;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0e211d;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #311712;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #320b16;
  --danger-strong: #d16969;
  --chart-1: #8056be;
  --chart-2: #d55c88;
  --chart-3: #b96a15;
  --chart-4: #7b9102;
  --chart-5: #179482;
  --chart-6: #1f91d0;
}

[hidden] { display: none !important; }
html[lang="ar"] .l-en { display: none !important; }
html[lang="en"] .l-ar { display: none !important; }

.blob { position: absolute; border-radius: 9999px; pointer-events: none; }
.bob { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
html.reduced-motion .bob { animation: none; }

.menu-card { transition: transform .2s ease, box-shadow .2s ease; }
.menu-card:hover { transform: translateY(-4px); }
.menu-card.is-picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
html.reduced-motion .pop { animation: none; }
html.reduced-motion .menu-card:hover { transform: none; }

.cat-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tray-bar { box-shadow: 0 12px 40px rgba(50, 31, 73, .35); }
.pastel-text { color: var(--x-on-pastel); }
