/* Los tokens de diseño de Mascotas (--mc-…), copiados del traspaso del 25 de oct. de 2026
   (docs/handoff/2026-10-25/handoff/tokens.css) con sus nombres: es el sistema de diseño de las
   pantallas PROPIAS de Mascotas. Los de la carcasa del núcleo (--pri, --acc…) van aparte, en
   theme.css. Sólo las pantallas de Mascotas cargan este fichero.

   Original: Mascotas de clase · design tokens (mirror of tokens.json).
   Values counted across every "build this" file of the prototype on 17 Oct 2026.
   Fonts: Fredoka (500–700) and Atkinson Hyperlegible (400, 700) from Google Fonts. */

:root {
  /* Base */
  --mc-cream: #f8f3e9;          /* page background */
  --mc-paper: #fefbf6;          /* cards, sheets, tab bar */
  --mc-white: #ffffff;
  --mc-paper-warm: #fffdf8;

  /* Ink and text */
  --mc-ink: #31231b;            /* text, thick outlines, dark buttons */
  --mc-text-2: #5d4e44;         /* secondary text */
  --mc-text-body: #4f4239;
  --mc-text-muted: #695a50;
  --mc-text-faint: #9c9086;     /* placeholders, disabled */
  --mc-text-faint-2: #8d8178;
  --mc-on-dark: #fefbf6;

  /* Surfaces */
  --mc-sunken: #efe5d6;         /* progress tracks, wells */
  --mc-chip: #f3ead9;
  --mc-subtle: #f6efe3;
  --mc-button-2: #ebe3d6;
  --mc-row: #eee5d8;
  --mc-row-alt: #f4efe6;
  --mc-panel-hover: #efe9e0;

  /* Lines */
  --mc-line-hairline: #ebe2d4;
  --mc-line-divider: #efe5d6;
  --mc-line-divider-soft: #f3ead9;
  --mc-line-card-edge: #e6dccd;
  --mc-line-field: #e4d9cb;
  --mc-line-press-light: #e0d3bf;
  --mc-line-tab-top: #ece2d3;
  --mc-line-dashed: #c9b9a4;
  --mc-line-strong: #31231b;

  /* Action */
  --mc-yellow: #faca4b;
  --mc-yellow-shadow: #d58d25;
  --mc-yellow-soft: #fdefba;
  --mc-yellow-tint: #fdf3cf;
  --mc-yellow-pale: #fff6cf;
  --mc-yellow-line: #f1dc94;
  --mc-gold: #ffd23d;
  --mc-gold-light: #ffe36b;
  --mc-amber-text: #7a5200;
  --mc-amber-text-dark: #5c3d00;

  /* Feedback */
  --mc-success-text: #2b6339;
  --mc-success: #58994a;
  --mc-success-bright: #7cc54d;
  --mc-success-bright-alt: #46c46a;
  --mc-success-bg: #dcefc4;
  --mc-success-bg-soft: #e9f2dd;
  --mc-success-text-dark: #2b4a24;
  --mc-error-text: #a3243a;
  --mc-error: #d0384e;
  --mc-error-accent: #ee6476;    /* hearts, wrong flash, red power-up ring */
  --mc-error-bg: #ffe1e6;
  --mc-error-bg-soft: #fff1f2;
  --mc-error-line: #ffd9de;
  --mc-error-dark: #8f1f2c;
  --mc-error-mid: #b9384c;
  --mc-warning-text: #9c3a17;
  --mc-warning: #e8643c;
  --mc-warning-dark: #d4552f;
  --mc-warning-bg: #fde3c4;
  --mc-warning-bg-soft: #fff8e1;
  --mc-info-text: #5b46b8;
  --mc-info-bg: #e6defb;

  /* Overlays */
  --mc-scrim: rgba(40,24,12,.42);
  --mc-scrim-dark: rgba(50,25,5,.5);
  --mc-scrim-black: rgba(0,0,0,.5);
  --mc-paper-glass: rgba(254,251,246,.92);

  /* Subjects: two sets exist (see gaps.md). Ficha (App) */
  --mc-mates: #5b5ff0;     --mc-mates-tint: #e9e9ff;
  --mc-lengua: #ef4f78;    --mc-lengua-tint: #ffe3ea;
  --mc-euskera: #16a36b;   --mc-euskera-tint: #dcf5e9;
  --mc-ciencias: #0d9ec4;  --mc-ciencias-tint: #daf2f9;
  /* Subjects: Entrenar */
  --mc-entrenar-mates: #9a8ce8;     --mc-entrenar-mates-tint: #ece8fb;
  --mc-entrenar-lengua: #f08f7a;    --mc-entrenar-lengua-tint: #fde6df;
  --mc-entrenar-euskera: #3fb5a8;   --mc-entrenar-euskera-tint: #dff3ef;
  --mc-entrenar-ciencias: #a3c24a;  --mc-entrenar-ciencias-tint: #eef4d8;

  /* Elements (Fuego > Tierra > Agua > Fuego) */
  --mc-fuego-tint: #fde3c4;   --mc-fuego: #f2823b;
  --mc-tierra-tint: #e3f0c8;  --mc-tierra: #58994a;
  --mc-agua-tint: #d4effb;    --mc-agua: #3a9ad8;
  --mc-fuego-gradient: linear-gradient(180deg,#ffe2c2,#fdf1e2 70%);
  --mc-tierra-gradient: linear-gradient(180deg,#e3f0c8,#f5f7e8 70%);
  --mc-agua-gradient: linear-gradient(180deg,#d4effb,#eef8fb 70%);

  /* Rainbow variant */
  --mc-arcoiris: linear-gradient(135deg,#ff9db0,#ffc979 22%,#fff184 42%,#9ff3b4,#9fd8ff,#d2b0ff);

  /* Typography */
  --mc-font-display: Fredoka, sans-serif;
  --mc-font-text: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --mc-font-mono: ui-monospace, Menlo, monospace;
  --mc-font-retro: VT323, monospace;
  --mc-weight-display: 600;
  --mc-weight-display-strong: 700;
  --mc-weight-text: 400;
  --mc-weight-text-strong: 700;
  --mc-fs-caption: 13px;
  --mc-fs-label: 15px;
  --mc-fs-label-l: 15.5px;
  --mc-fs-ui: 16px;
  --mc-fs-ui-l: 17px;
  --mc-fs-button: 18px;
  --mc-fs-button-l: 20px;
  --mc-fs-title-s: 21px;
  --mc-fs-title-m: 22px;
  --mc-fs-title-l: 26px;
  --mc-fs-headline: 28px;
  --mc-fs-headline-l: 30px;
  --mc-fs-hero: 34px;
  --mc-fs-number: 52px;
  --mc-fs-countdown: 130px;
  --mc-fs-text-s: 14px;
  --mc-fs-text: 16px;
  --mc-fs-text-l: 17px;
  --mc-fs-lead: 20px;
  --mc-lh-tight: 1;
  --mc-lh-snug: 1.1;
  --mc-lh-heading: 1.15;
  --mc-lh-heading-l: 1.2;
  --mc-lh-ui: 1.3;
  --mc-lh-body: 1.4;
  --mc-lh-body-l: 1.45;
  --mc-ls-label: .5px;
  --mc-ls-eyebrow: 2px;
  /* «Tamaño del texto» (Más · Ajustes): todo font-size NUEVO es calc(var(--mc-fs-…) * var(--mc-text-scale, 1)).
     Los tres valores son los de 2c (1 · 1,2 · 1,4; el prototipo decía 1,12 y 1,25, pero no se leía distinto); los pone
     <html data-mc-text="normal|large|xlarge">, que escribe static/js/text-size.js desde lo que el servidor guarda (F6). */
  --mc-text-scale: 1;              /* normal */
  --mc-text-scale-grande: 1.2;
  --mc-text-scale-muy-grande: 1.4;

  /* Spacing */
  --mc-space-1: 2px;
  --mc-space-2: 4px;
  --mc-space-3: 6px;
  --mc-space-4: 8px;
  --mc-space-5: 10px;
  --mc-space-6: 12px;
  --mc-space-7: 14px;
  --mc-space-8: 16px;
  --mc-space-9: 18px;
  --mc-space-10: 20px;
  --mc-space-12: 24px;
  --mc-screen-x: 16px;
  --mc-screen-top: 56px;

  /* Radii */
  --mc-radius-xs: 6px;
  --mc-radius-s: 10px;
  --mc-radius-m: 12px;
  --mc-radius-button: 14px;
  --mc-radius-card: 16px;
  --mc-radius-card-l: 20px;
  --mc-radius-panel: 22px;
  --mc-radius-sheet: 24px;
  --mc-radius-sheet-top: 32px 32px 0 0;
  --mc-radius-tab-bar: 26px 26px 0 0;
  --mc-radius-box: 28px;
  --mc-radius-round: 50%;
  --mc-radius-pill: 999px;

  /* Borders */
  --mc-border-hairline: 1px solid #ebe2d4;
  --mc-border-divider: 1px solid #efe5d6;
  --mc-border-field: 2px solid #e4d9cb;
  --mc-border-field-thin: 1.5px solid #e4d9cb;
  --mc-border-outline: 2.5px solid #31231b;
  --mc-border-outline-thin: 2px solid #31231b;
  --mc-border-outline-thick: 3px solid #31231b;
  --mc-border-empty-slot: 2.5px dashed #c9b9a4;
  --mc-border-selected: 4px solid #faca4b;

  /* Shadows: solid under-shadows (toy look) + soft drops */
  --mc-shadow-card: 0 1px 0 #e6dccd;
  --mc-shadow-card-float: 0 1px 0 #e6dccd, 0 12px 22px -16px rgba(60,30,5,.45);
  --mc-shadow-button-primary: 0 5px 0 #d58d25;
  --mc-shadow-button-primary-s: 0 3px 0 #d58d25;
  --mc-shadow-button-hero: 0 6px 0 #d58d25, 0 18px 28px -12px rgba(140,80,10,.55);
  --mc-shadow-button-paper: 0 3px 0 #e0d3bf;
  --mc-shadow-button-ink: inset 0 0 0 2.5px #31231b, 0 5px 0 #31231b;
  --mc-shadow-inset-field: inset 0 0 0 2px #e4d9cb;
  --mc-shadow-inset-ink: inset 0 0 0 2.5px #31231b;
  --mc-shadow-inset-yellow: inset 0 0 0 1.5px #d58d25;
  --mc-shadow-track: inset 0 2px 3px rgba(80,50,20,.18);
  --mc-shadow-small: 0 2px 3px rgba(0,0,0,.25);
  --mc-shadow-pop: 0 8px 18px -10px rgba(50,25,5,.5);
  --mc-shadow-dialog: 0 20px 40px -20px rgba(0,0,0,.5);
  --mc-shadow-notice: inset 0 0 0 3px #31231b, 0 6px 0 #31231b, 0 24px 40px -20px rgba(0,0,0,.45);
  --mc-shadow-tab-bar: 0 -1px 0 #ece2d3, 0 -10px 28px -14px rgba(70,40,15,.35);
  --mc-text-shadow-sticker: 0 2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 -2px 0 #fff;

  /* Layers (student app shell) */
  --mc-z-screen: 30;
  --mc-z-overlay: 40;
  --mc-z-message: 72;
  --mc-z-drag: 80;
  --mc-z-splash: 85;
  --mc-z-moment: 88;
  --mc-z-classroom-exit: 96;
  --mc-z-projection-overlay: 1500;

  /* La caja: de abajo arriba. Dentro del mundo (.mc-world, que se inclina): arte, muebles, mascota, pelota, luz de la noche,
     corazones, asas de decorar y burbuja. Fuera (el escenario): píldora, sobre, pistas y botones de sensor, aviso.
     (Antes vivían en box.css y moments.css: un solo sitio para todos los z-index de la herramienta es esta hoja, la que
     carga toda pantalla del alumno; tests/test_mobile_a11y.py lo vigila.) */
  --mc-z-art: 0;
  --mc-z-deco: 1;
  --mc-z-pet: 2;
  --mc-z-ball: 3;
  --mc-z-night: 4;
  --mc-z-fx: 5;
  --mc-z-handles: 6;
  --mc-z-bubble: 7;
  --mc-z-pill: 8;
  --mc-z-envelope: 8;
  --mc-z-hud: 9;
  --mc-z-notice: 10;
  --mc-z-night-cap: 3;            /* el gorro de dormir, dentro del botón de la mascota */
  --mc-z-drag-ghost: 10;          /* la comida que se arrastra (fija, sobre la despensa) */
  --mc-z-notice-float: 60;        /* el aviso corto de la ficha y «Más»: por DEBAJO de los avisos del núcleo (80) y fuera de su sitio (abajo) */

  /* Touch targets */
  --mc-touch-min: 44px;           /* phone minimum */
  --mc-touch: 48px;               /* default; tablet and panel minimum */
  --mc-touch-large: 52px;

  /* Breakpoints (reference; CSS custom properties can't be used in @media) */
  --mc-bp-phone: 390px;           /* design size 390 × 844 */
  --mc-bp-panel-wide: 900px;
  --mc-bp-tablet: 1180px;         /* panel sidebar becomes a rail below this */
  --mc-bp-desktop: 1440px;
  --mc-bp-projection: 1920px;     /* 1920 × 1080 */

  /* Motion */
  --mc-ease: ease-in-out;
  --mc-ease-settle: cubic-bezier(.3,.7,.3,1);
  --mc-ease-slide: cubic-bezier(.5,0,.35,1);
  --mc-ease-slide-soft: cubic-bezier(.5,0,.3,1);
  --mc-ease-bounce: cubic-bezier(.3,1.5,.5,1);
  --mc-ease-spring: cubic-bezier(.34,1.56,.64,1);
  --mc-ease-long: cubic-bezier(.3,.75,.35,1);
  --mc-dur-tap: 180ms;
  --mc-dur-fast: 200ms;
  --mc-dur-medium: 250ms;
  --mc-dur-sheet: 350ms;
  --mc-dur-fill: 600ms;
  --mc-dur-move: 900ms;
  --mc-dur-reveal: 1400ms;
}

html[data-mc-text="large"] { --mc-text-scale: var(--mc-text-scale-grande); }
html[data-mc-text="xlarge"] { --mc-text-scale: var(--mc-text-scale-muy-grande); }

/* Breakpoints as used */
@media (max-width: 1179px) { /* panel: sidebar as rail (tablet) */ }
@media (max-width: 899px)  { /* panel: cards in one column */ }

@media (prefers-reduced-motion: reduce) {
  /* mc-anim.js skips every loop; keep transitions short */
  :root { --mc-dur-move: 0ms; --mc-dur-reveal: 0ms; }
}
