/* English for Fun design tokens: v1 (2026-11-11), loaded by Shape Island and Word Island (pilot).
   Source: UI-AUDIT.md. Values are taken from what the islands already use, so the first switch changes as little as possible.
   Owner choices are marked "choose". */
:root{
  /* text and lines */
  --eff-ink:#063E46;          /* DECIDED 2026-11-11 (owner): list page ink for every screen; replaces #23405a and #294659 */
  --eff-ink-soft:#2c5b62;     /* secondary text on the list page */
  --eff-line:#CBE8E3;
  --eff-focus:#175ca8;        /* one focus ring: 3px solid + 3px offset, every screen */

  /* surfaces */
  --eff-bg-top:#caf0ff;       /* page gradient (shell) */
  --eff-bg-bottom:#edf7df;
  --eff-card:#fff;
  --eff-card-soft:#fff9ef;

  /* the one primary yellow (replaces #FFC83D, #ffd033, #ffd26b, #ffd93d, #ffd23f, #ffca6a) */
  --eff-primary:#FFC83D;      /* DECIDED 2026-11-11 (owner): the one primary yellow */
  --eff-primary-hover:#ffd75e;

  /* status and accents (list page palette) */
  --eff-ok:#37b866;
  --eff-ok-bg:#dff5e6;
  --eff-ok-ink:#1d6b3a;
  --eff-warn:#f0a500;
  --eff-bad:#ef5a6f;
  --eff-info:#3b82f6;

  /* type: one stack (the games' Comic Sans stack is dropped) */
  --eff-font-display:"Baloo 2","Arial Rounded MT Bold",system-ui,sans-serif;
  --eff-font-body:"Be Vietnam Pro","Segoe UI",system-ui,sans-serif;
  --eff-fs-xs:14px;           /* smallest text anywhere, also on phones */
  --eff-fs-sm:16px;
  --eff-fs-md:18px;
  --eff-fs-lg:22px;
  --eff-fs-xl:clamp(28px,4.5vw,44px);

  /* shape: three radii instead of about twenty */
  --eff-r-sm:12px;
  --eff-r-md:18px;            /* cards, game frame */
  --eff-r-pill:999px;         /* buttons */

  /* spacing scale */
  --eff-s1:4px;--eff-s2:8px;--eff-s3:12px;--eff-s4:16px;--eff-s5:24px;

  /* touch target and shadow */
  --eff-tap:44px;             /* minimum height of any button or link, never smaller */
  --eff-shadow:0 6px 18px rgba(6,62,70,.10);
  --eff-shadow-hover:0 12px 26px rgba(6,62,70,.16);
}

/* One button look for every island screen (to replace the shell button, .rbtn and the games' own buttons). */
.eff-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--eff-s2);min-height:var(--eff-tap);padding:10px 22px;border:2px solid transparent;border-radius:var(--eff-r-pill);background:var(--eff-primary);color:var(--eff-ink);font:700 var(--eff-fs-md)/1.2 var(--eff-font-body);text-decoration:none;cursor:pointer;touch-action:manipulation}
@media (hover:hover){.eff-btn:hover{background:var(--eff-primary-hover)}}
.eff-btn{-webkit-tap-highlight-color:transparent}.eff-btn:active{scale:.97}
.eff-btn.line{background:#fff;border-color:var(--eff-ink)}
.eff-btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid var(--eff-focus);outline-offset:3px}
.eff-btn:disabled{opacity:.5;cursor:default}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Navigation links and small header chips on the learning pages: a comfortable tap size. */
.crumb a,.subtitle a,.hint a,.note a{display:inline-flex;align-items:center;min-height:var(--eff-tap)}
.glinks a,.links a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
header .who{min-height:var(--eff-tap)}

/* Screens of 1200px or more: larger type and tap size for every island page */
@media(min-width:1200px){:root{--eff-fs-xs:clamp(15px,.85vw,20px);--eff-fs-sm:clamp(17px,.95vw,22px);--eff-fs-md:clamp(19px,1.1vw,26px);--eff-fs-lg:clamp(23px,1.4vw,32px);--eff-tap:clamp(48px,3vw,64px)}}
