/* sd-theme.css */
/* ============================================================
   Classroom Showdown — the site theme (2026-10-04).
   Light, bright and colourful: sky blue, the RED monster and the BLUE
   (teal) monster are the brand, the yellow and navy of the logo are the
   accents. Chunky buttons with a solid bottom edge, rounded everything,
   Fredoka for headings and Nunito for text — the same faces the game uses.

   The variables at the top also feed the question editor's stylesheet
   (dashboard-games.css), which was written for a dark page: giving them
   light values here turns the editor light without touching that file.
   ============================================================ */
:root{
  --sky:#2EA8F7; --sky-d:#1C86D6; --sky-l:#E8F6FF;
  --red:#F2384A; --red-d:#C9233A; --red-l:#FFE8EB;
  --teal:#1FC8C1; --teal-d:#11A19B; --teal-l:#E2FAF8;
  --sun:#FFC83D; --sun-d:#E5A50F; --sun-l:#FFF6DA;
  --grape:#8B5CF6; --grape-d:#6D3FE0; --grape-l:#F1EBFF;
  --navy:#1B2A6B; --ink:#1E2747; --muted:#5D6A8A; --faint:#7D89A8;
  --line:#E3E9F5; --line-2:#CFD9EC;
  --bg:#F5FAFF; --bg-2:#FFFFFF; --card:#FFFFFF; --panel:#F6F9FF;
  --green:#18A957; --red-2:#E5484D; --accent:#2EA8F7;
  --serif:'Fredoka',system-ui,sans-serif;
  --radius:18px;
  --shadow:0 10px 30px rgba(27,42,107,.10);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:'Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.5;
}
h1,h2,h3,h4{font-family:'Fredoka',system-ui,sans-serif;font-weight:600;color:var(--navy);margin:0;line-height:1.15}
a{color:var(--sky-d)}
img{max-width:100%}
[hidden]{display:none !important}
.muted{color:var(--muted)}
.small{font-size:13.5px}
.empty{color:var(--muted);text-align:center;padding:28px 12px}

/* ------------------------------------------------------------ buttons */
.sd-btn,.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 20px;border-radius:14px;border:0;cursor:pointer;text-decoration:none;
  font-family:'Fredoka',system-ui,sans-serif;font-size:17px;font-weight:600;line-height:1.1;
  background:var(--sky);color:#fff;box-shadow:0 5px 0 var(--sky-d);
  transition:transform .08s,box-shadow .08s,filter .12s;
}
.sd-btn:hover,.btn:hover{filter:brightness(1.06)}
.sd-btn:active,.btn:active{transform:translateY(4px);box-shadow:0 1px 0 var(--sky-d)}
.sd-btn:disabled,.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.sd-btn-red{background:var(--red);box-shadow:0 5px 0 var(--red-d)}
.sd-btn-red:active{box-shadow:0 1px 0 var(--red-d)}
.sd-btn-teal{background:var(--teal);box-shadow:0 5px 0 var(--teal-d)}
.sd-btn-teal:active{box-shadow:0 1px 0 var(--teal-d)}
.sd-btn-sun{background:var(--sun);color:var(--navy);box-shadow:0 5px 0 var(--sun-d)}
.sd-btn-sun:active{box-shadow:0 1px 0 var(--sun-d)}
.sd-btn-grape{background:var(--grape);box-shadow:0 5px 0 var(--grape-d)}
.sd-btn-ghost,.btn-ghost{
  background:#fff;color:var(--ink);border:2px solid var(--line-2);box-shadow:0 4px 0 var(--line-2);
}
.sd-btn-ghost:active,.btn-ghost:active{box-shadow:0 1px 0 var(--line-2)}
.sd-btn-big{padding:16px 34px;font-size:22px;border-radius:16px}
.sd-btn-sm,.btn-xs{padding:7px 12px;font-size:14px;border-radius:11px;box-shadow:0 3px 0 var(--sky-d)}
.sd-btn-ghost.sd-btn-sm,.btn-ghost.btn-xs{box-shadow:0 3px 0 var(--line-2)}
.btn-danger{background:var(--red);box-shadow:0 4px 0 var(--red-d)}

/* ------------------------------------------------------------ the logo */
.sd-logo{display:inline-flex;align-items:center;text-decoration:none}
.sd-logo img{height:52px;width:auto;display:block}

/* ------------------------------------------------------------ styled notices
   Never a browser alert(): a toast for news, and a modal for questions. */
.sd-toast{
  position:fixed;left:50%;bottom:26px;transform:translate(-50%,30px);z-index:200;
  max-width:min(560px,calc(100vw - 32px));padding:13px 20px;border-radius:14px;
  background:var(--navy);color:#fff;font-weight:700;box-shadow:0 14px 34px rgba(27,42,107,.28);
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;
}
.sd-toast.sd-toast-on{opacity:1;transform:translate(-50%,0)}
.sd-toast.sd-toast-err{background:var(--red-d)}
.sd-modal{
  position:fixed;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;
  padding:16px;background:rgba(27,42,107,.38);backdrop-filter:blur(3px);
}
.sd-modal-card{
  width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow:auto;
  background:#fff;border-radius:22px;padding:24px;box-shadow:0 26px 70px rgba(27,42,107,.3);
}
.sd-modal-card h3{font-size:24px;margin-bottom:8px}
.sd-modal-acts{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}
.sd-input{
  width:100%;padding:12px 14px;border:2px solid var(--line-2);border-radius:12px;background:#fff;
  font:inherit;font-size:16px;color:var(--ink);
}
.sd-input:focus{outline:none;border-color:var(--sky)}
.sd-label{display:block;font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--faint);margin:14px 0 6px}

/* The editor's leftovers from its old page. */
.poll-status{font-size:13.5px;color:var(--muted)}
.poll-status-err{color:var(--red-2) !important;font-weight:700}

/* ------------------------------------------------------------ footer */
.sd-foot{
  padding:28px 16px 34px;text-align:center;color:var(--muted);font-size:14px;
}
.sd-foot a{color:var(--muted);margin:0 10px}
