/* Joined by the server from the files named below, in page order (static-delivery.mjs). */

/* Source: css/style.css */
/* ============================================================
   Picture reveal — ClassPlay 样式
   设计令牌
   ============================================================ */
:root {
  --violet-900: #1b0f3d;
  --violet-800: #2a1860;
  --violet-700: #3d2390;
  --violet-600: #5b32c9;
  --violet-500: #7c4dff;
  --violet-300: #b39dff;
  --violet-100: #ece5ff;

  --teal: #00c2a8;
  --teal-dark: #009882;
  --orange: #ff8a3d;
  --orange-dark: #e0701f;
  --pink: #ff4d8d;
  --yellow: #ffc93c;
  --green: #2fbf71;
  --green-dark: #1e9a57;
  --red: #f2545b;
  --red-dark: #cf3a41;

  --ink: #1f1436;
  --ink-soft: #5b5175;
  --ink-mute: #8b83a3;
  --line: #e7e2f5;
  --paper: #ffffff;
  --page: #f6f4ff;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(45, 22, 100, .06), 0 4px 12px rgba(45, 22, 100, .06);
  --sh-2: 0 6px 20px rgba(45, 22, 100, .12);
  --sh-3: 0 18px 44px rgba(45, 22, 100, .18);

  --font: "Nunito", "Baloo 2", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-weight: 800; cursor: pointer; border: 0; }

/* ============================================================
   通用组件
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--violet-500);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
  transition: transform .08s ease, filter .15s ease;
  user-select: none;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn.teal { background: var(--teal); }
.btn.orange { background: var(--orange); }
.btn.pink { background: var(--pink); }
.btn.green { background: var(--green); }
.btn.ghost {
  background: #fff;
  color: var(--violet-600);
  box-shadow: inset 0 0 0 2px var(--violet-100), inset 0 -4px 0 rgba(124, 77, 255, .12);
}
.btn.ghost:hover { background: #faf8ff; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn.lg { padding: 16px 34px; font-size: 19px; border-radius: var(--r-lg); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: var(--violet-100);
  color: var(--violet-600);
}

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px rgba(124, 77, 255, .14);
}
.textarea { resize: vertical; min-height: 52px; line-height: 1.45; }
.label { display: block; font-size: 13px; font-weight: 800; color: var(--ink-soft); margin: 0 0 6px; }
.field { margin-bottom: 16px; }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; letter-spacing: -.3px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-500), var(--pink));
  color: #fff; font-size: 19px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.brand small { display: block; font-size: 11px; font-weight: 800; color: var(--ink-mute); letter-spacing: .5px; }
.topbar .spacer { flex: 1; }

/* ============================================================
   首页（活动库）
   ============================================================ */
.page { max-width: 1140px; margin: 0 auto; padding: 28px 26px 80px; }

.hero {
  border-radius: var(--r-xl);
  padding: 34px 38px;
  color: #fff;
  background:
    radial-gradient(900px 300px at 88% -30%, rgba(255, 201, 60, .35), transparent 60%),
    radial-gradient(600px 320px at 6% 120%, rgba(0, 194, 168, .40), transparent 62%),
    linear-gradient(120deg, var(--violet-700), var(--violet-500) 55%, #a06bff);
  box-shadow: var(--sh-3);
}
.hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 900; letter-spacing: -.4px; }
.hero p { margin: 0 0 20px; max-width: 640px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .88); line-height: 1.6; }
.hero .row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.ghost { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); color: #fff; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .2); }

.sec-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 34px 0 16px;
  font-size: 19px; font-weight: 900;
}
.sec-title span { font-size: 14px; font-weight: 700; color: var(--ink-mute); }

.grid-quiz { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }

.quiz-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform .16s ease, box-shadow .16s ease;
}
.quiz-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.quiz-card .thumb {
  position: relative; height: 158px;
  background: linear-gradient(135deg, #efe8ff, #dcd0ff);
  overflow: hidden;
}
.quiz-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-card .badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 900; color: #fff;
  background: rgba(27, 15, 61, .62);
  backdrop-filter: blur(3px);
}
.quiz-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.quiz-card h3 { margin: 0; font-size: 16.5px; font-weight: 900; line-height: 1.35; }
.quiz-card .meta { font-size: 12.5px; font-weight: 700; color: var(--ink-mute); }
.quiz-card .acts { display: flex; gap: 8px; margin-top: auto; }
.quiz-card .acts .btn { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: #f4f1ff; color: var(--violet-600);
  font-size: 15px;
}
.icon-btn:hover { background: var(--violet-100); }
.icon-btn.danger { background: #fff1f2; color: var(--red); }
.icon-btn.danger:hover { background: #ffe1e3; }

.empty {
  padding: 46px 20px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  color: var(--ink-mute); font-weight: 800;
}

/* ============================================================
   编辑器
   ============================================================ */
.editor-wrap { max-width: 1240px; margin: 0 auto; padding: 22px 26px 130px; }
.editor-cols { display: grid; grid-template-columns: 1fr 366px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .editor-cols { grid-template-columns: 1fr; } }

.panel { padding: 20px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 900; }
.panel-head .hint { font-size: 12.5px; font-weight: 700; color: var(--ink-mute); }

.q-item { border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 14px; background: #fcfbff; }
.q-item .qh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.q-item .no {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--violet-500); color: #fff; font-size: 14px; font-weight: 900;
}
.q-item .qh .grow { flex: 1; font-size: 13px; font-weight: 800; color: var(--ink-mute); }

.img-pick { display: flex; gap: 12px; align-items: flex-start; }
.img-prev {
  width: 128px; height: 96px; flex: 0 0 128px;
  border-radius: var(--r-sm); border: 2px dashed var(--line);
  background: #fff center/cover no-repeat;
  display: grid; place-items: center;
  color: var(--ink-mute); font-size: 12px; text-align: center; overflow: hidden;
}
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-tools { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.img-tools .row { display: flex; gap: 8px; flex-wrap: wrap; }
.samples { display: flex; gap: 6px; flex-wrap: wrap; }
.samples button {
  width: 40px; height: 34px; border-radius: 8px; padding: 0;
  background: #fff center/cover no-repeat;
  box-shadow: inset 0 0 0 2px var(--line);
}
.samples button:hover { box-shadow: inset 0 0 0 2px var(--violet-500); }

.opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.opt-row .letter {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: #efeaff; color: var(--violet-600); font-size: 14px; font-weight: 900;
}
.opt-row.correct .letter { background: var(--green); color: #fff; }
.opt-row .pick {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line);
  color: transparent; font-size: 15px;
}
.opt-row.correct .pick { background: var(--green); box-shadow: none; color: #fff; }
.opt-row .del { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: transparent; color: var(--ink-mute); font-size: 15px; }
.opt-row .del:hover { background: #fff1f2; color: var(--red); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t { font-size: 14px; font-weight: 800; }
.switch-row .d { font-size: 12px; font-weight: 700; color: var(--ink-mute); margin-top: 2px; }
.switch { position: relative; width: 50px; height: 28px; flex: 0 0 50px; border-radius: 999px; background: #ddd7ee; transition: background .18s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(22px); }

.theme-row { display: flex; gap: 10px; }
.theme-dot { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), var(--sh-1); }
.theme-dot.sel { outline: 3px solid var(--ink); outline-offset: 2px; }

.save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.save-bar .spacer { flex: 1; }
.save-bar .status { font-size: 13px; font-weight: 800; color: var(--ink-mute); }

.preview-stage {
  position: relative;
  border-radius: var(--r-lg);
  padding: 18px;
  background: linear-gradient(150deg, var(--tw-a, #2a1860), var(--tw-b, #1b0f3d));
  min-height: 260px;
  display: grid; place-items: center;
}
.preview-stage .pv-title { position: absolute; top: 12px; left: 16px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.6); }
.pv-img { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #2a1860; aspect-ratio: 4/3; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); gap: 3px; }
.pv-grid i { background: linear-gradient(160deg, var(--tw-c, #6a4ad6), var(--tw-d, #4a2fa8)); border-radius: 2px; opacity: 1; transition: opacity .5s; }
.pv-grid i.gone { opacity: 0; }
.pv-opts { margin-top: 10px; display: grid; gap: 6px; }
.pv-opts span {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800;
  background: rgba(255,255,255,.94); color: var(--ink);
}
.pv-opts span b { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: #efeaff; color: var(--violet-600); font-size: 11px; }
.pv-opts span.ok { background: var(--green); color: #fff; }
.pv-opts span.ok b { background: rgba(255,255,255,.35); color: #fff; }

/* ============================================================
   游戏界面
   ============================================================ */
body.game {
  --tw-a: #2a1860;
  --tw-b: #180d3a;
  --tw-c: #7c4dff;
  --tw-d: #5b32c9;
  --tw-g1: rgba(124, 77, 255, .42);
  --tw-g2: rgba(0, 194, 168, .22);
  --tw-g3: rgba(255, 77, 141, .28);
  background:
    radial-gradient(1000px 460px at 12% -12%, var(--tw-g1), transparent 62%),
    radial-gradient(880px 420px at 92% 4%, var(--tw-g2), transparent 60%),
    radial-gradient(700px 400px at 50% 118%, var(--tw-g3), transparent 60%),
    linear-gradient(165deg, var(--tw-a), var(--tw-b) 62%, var(--tw-b));
  color: #fff;
  min-height: 100vh;
}
body.game::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.game-shell { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 16px 20px 40px; }

.hud {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; margin-bottom: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.hud .g-title { font-size: 15px; font-weight: 900; }
.hud .g-title small { display: block; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.55); }
.hud .spacer { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 900;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  white-space: nowrap;
}
.pill.score { background: linear-gradient(180deg, var(--yellow), #f0a800); color: #4a2d00; box-shadow: inset 0 -3px 0 rgba(0,0,0,.16); }
.pill.lives { letter-spacing: 1px; }
.pill.mute { cursor: pointer; padding: 7px 11px; }

.stage {
  padding: 18px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), var(--sh-3);
  backdrop-filter: blur(10px);
}
.qtext { font-size: 19px; font-weight: 900; text-align: center; margin: 2px 0 14px; line-height: 1.4; }

.reveal-wrap { display: grid; grid-template-columns: 1fr 108px; gap: 16px; align-items: stretch; }
@media (max-width: 780px) { .reveal-wrap { grid-template-columns: 1fr; } }

.pic {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #241350; aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.16);
}
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buzz-hint { font-size: 11.5px; font-weight: 800; color: rgba(255,255,255,.62); text-align: center; }

.timerbar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; margin-top: 14px; }
.timerbar > i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--yellow)); transition: width .25s linear; }
.timerbar.low > i { background: linear-gradient(90deg, var(--orange), var(--red)); }

.options { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .options { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 900; text-align: left;
  box-shadow: inset 0 -4px 0 rgba(45, 22, 100, .12), var(--sh-2);
  transition: transform .1s, background .18s, color .18s;
}
.opt:hover { transform: translateY(-2px); }
.opt .k {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--violet-100); color: var(--violet-600); font-size: 14px;
}
.opt.correct { background: var(--green); color: #fff; box-shadow: inset 0 -4px 0 var(--green-dark), var(--sh-2); }
.opt.correct .k { background: rgba(255,255,255,.3); color: #fff; }
.opt.wrong { background: var(--red); color: #fff; box-shadow: inset 0 -4px 0 var(--red-dark), var(--sh-2); }
.opt.wrong .k { background: rgba(255,255,255,.3); color: #fff; }
.opt.dim { opacity: .45; }
.opt.locked { pointer-events: none; }
.options.hidden, .hidden { display: none !important; }

.flypoints {
  position: fixed; z-index: 80; pointer-events: none;
  font-size: 34px; font-weight: 900; color: var(--yellow);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  animation: fly 1.05s ease-out forwards;
}
@keyframes fly {
  0% { opacity: 0; transform: translateY(10px) scale(.7); }
  22% { opacity: 1; transform: translateY(-6px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-84px) scale(1); }
}

.toast-msg {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 90; padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 900; color: #fff;
  background: rgba(27, 15, 61, .92); box-shadow: var(--sh-3);
  opacity: 0; transition: opacity .25s, transform .25s;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.next-row { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }

/* 开始页 / 结束页 */
.center-card {
  max-width: 640px; margin: 34px auto;
  padding: 30px 32px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), var(--sh-3);
  backdrop-filter: blur(10px);
  text-align: center;
}
.center-card h1 { margin: 0 0 8px; font-size: 27px; font-weight: 900; }
.center-card .sub { font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.72); margin-bottom: 20px; line-height: 1.6; }
.start-thumb { width: 100%; max-width: 400px; margin: 0 auto 20px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4/3; }
.start-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.big-score { font-size: 62px; font-weight: 900; line-height: 1; color: var(--yellow); text-shadow: 0 4px 0 rgba(0,0,0,.25); margin: 6px 0 4px; }
.review { margin: 20px 0; display: grid; gap: 10px; text-align: left; max-height: 320px; overflow: auto; padding-right: 4px; }
.rv-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: rgba(255,255,255,.07); }
.rv-item img { width: 62px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 62px; }
.rv-item .info { flex: 1; font-size: 13px; font-weight: 800; line-height: 1.5; }
.rv-item .info .ok { color: #7ef0b4; }
.rv-item .info .no { color: #ff9aa2; }
.rv-item .mark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.rv-item .mark.ok { background: var(--green); }
.rv-item .mark.no { background: var(--red); }

.lb { text-align: left; margin: 18px 0 8px; }
.lb h4 { margin: 0 0 10px; font-size: 14px; font-weight: 900; color: rgba(255,255,255,.75); }
.lb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.07); font-size: 14px; font-weight: 800; }
.lb li .n { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 12px; }
.lb li .spacer { flex: 1; }
.name-row { display: flex; gap: 10px; margin-top: 12px; }
.name-row .input { background: rgba(255,255,255,.92); color: var(--ink); }

.footer-note { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); margin-top: 26px; line-height: 1.7; }

/* ============================================================
   v2 — 模板画廊 / 类型徽章
   ============================================================ */
.grid-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.tpl-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--sh-1); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.tpl-card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 23px;
  background: linear-gradient(135deg, var(--violet-500), var(--pink));
  color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.tpl-card h3 { margin: 0; font-size: 16px; font-weight: 900; }
.tpl-card p { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); line-height: 1.5; }
.tpl-card .go { margin-top: auto; font-size: 12.5px; font-weight: 900; color: var(--violet-600); }
.tpl-card .go::after { content: " →"; }

.quiz-card .thumb .big-ic {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 58px; color: rgba(255,255,255,.92);
}

/* ============================================================
   v2 — 通用游戏容器 / 弹层
   ============================================================ */
.gstage {
  position: relative;
  padding: 20px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), var(--sh-3);
  backdrop-filter: blur(10px);
  min-height: 420px;
}
.gprompt { font-size: 20px; font-weight: 900; text-align: center; margin: 4px 0 16px; line-height: 1.4; }
.gmodal {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: rgba(15, 8, 38, .72);
  border-radius: var(--r-xl);
  animation: gm-in .22s ease;
}
@keyframes gm-in { from { opacity: 0; } to { opacity: 1; } }
.gmodal .box {
  width: min(520px, 92%); max-height: 86%; overflow: auto;
  padding: 24px; border-radius: var(--r-lg);
  background: #fff; color: var(--ink); text-align: center;
  box-shadow: var(--sh-3);
  animation: gm-pop .26s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes gm-pop { from { transform: scale(.82); } to { transform: scale(1); } }
.gmodal h3 { margin: 0 0 12px; font-size: 21px; font-weight: 900; }
.gmodal img { max-width: 100%; border-radius: var(--r-sm); }

.confetti-piece {
  position: fixed; z-index: 120; top: 46%; width: 10px; height: 14px;
  border-radius: 2px; pointer-events: none;
  animation: confetti-fly 1.4s ease-out forwards;
}
@keyframes confetti-fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ============================================================
   What's inside? (openbox)
   ============================================================ */

/* ============================================================
   Quiz show
   ============================================================ */
.gs-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.gs-q {
  flex: 1; padding: 18px 22px; border-radius: var(--r-md);
  background: #fff; color: var(--ink);
  font-size: 20px; font-weight: 900; line-height: 1.4; text-align: center;
  box-shadow: var(--sh-2);
}
.gs-timer {
  position: relative; width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--tw-c, #7c4dff) 360deg, rgba(255,255,255,.14) 0deg);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.16), var(--sh-2);
}
.gs-timer::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--tw-b, #180d3a); }
.gs-timer b { position: relative; z-index: 1; font-size: 26px; font-weight: 900; }
.gs-timer.danger b { color: #ff9aa2; }
.gs-img { max-width: 300px; max-height: 150px; margin: 0 auto 14px; display: block; border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.gs-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .gs-opts { grid-template-columns: 1fr; } }
.gs-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 18px; border-radius: var(--r-md);
  font-size: 18px; font-weight: 900; color: #fff; text-align: left;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.20), var(--sh-2);
  transition: transform .1s, filter .15s, opacity .2s;
}
.gs-opt:hover { transform: translateY(-2px); filter: brightness(1.08); }
.gs-opt .k { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.28); font-size: 15px; }
.gs-opt.c1 { background: linear-gradient(150deg, #7c4dff, #5b32c9); }
.gs-opt.c2 { background: linear-gradient(150deg, #00c2a8, #079c88); }
.gs-opt.c3 { background: linear-gradient(150deg, #ff8a3d, #e0701f); }
.gs-opt.c4 { background: linear-gradient(150deg, #ff4d8d, #d62f6c); }
.gs-opt.c5 { background: linear-gradient(150deg, #2f9be0, #1c74b5); }
.gs-opt.c6 { background: linear-gradient(150deg, #8bc34a, #5f9a24); }
.gs-opt.correct { outline: 4px solid #7ef0b4; outline-offset: 2px; }
.gs-opt.wrong { opacity: .35; }
.gs-opt.locked { pointer-events: none; }
.gs-streak { font-size: 13px; font-weight: 900; color: var(--yellow); text-align: center; margin-top: 10px; min-height: 18px; }

/* ============================================================
   Anagram
   ============================================================ */
.ag-clue { font-size: 19px; font-weight: 900; text-align: center; margin: 4px 0 18px; }
.ag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; min-height: 64px; }
.ag-slots { margin-bottom: 20px; }
.ag-tile, .ag-slot {
  width: 54px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 900; user-select: none;
}
.ag-tile {
  background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(45,22,100,.16), var(--sh-2);
  transition: transform .1s, opacity .18s;
}
.ag-tile:hover { transform: translateY(-3px); }
.ag-tile.used { opacity: .22; pointer-events: none; transform: scale(.9); }
.ag-slot {
  background: rgba(255,255,255,.10); color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.30);
  cursor: pointer;
}
.ag-slot.filled { background: linear-gradient(150deg, var(--tw-c, #7c4dff), var(--tw-d, #5b32c9)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.ag-word-ok .ag-slot { background: var(--green); box-shadow: inset 0 -4px 0 var(--green-dark); }
.ag-shake { animation: ag-shake .45s ease; }
@keyframes ag-shake {
  0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}

/* ============================================================
   Spin the Wheel
   ============================================================ */
.wheel-area { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wheel-frame { position: relative; width: min(430px, 82vw); aspect-ratio: 1; }
.wheel-frame canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,.35)); }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 2;
  border-left: 17px solid transparent; border-right: 17px solid transparent;
  border-top: 30px solid #fff;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.35));
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e7e2f5);
  box-shadow: 0 4px 10px rgba(0,0,0,.3), inset 0 -4px 0 rgba(0,0,0,.08);
  display: grid; place-items: center; font-size: 22px; cursor: pointer; z-index: 2;
  user-select: none;
}
.wheel-result { text-align: center; }

/* ============================================================
   Category sort
   ============================================================ */
.sort-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
@media (max-width: 700px) { .sort-cols { grid-template-columns: 1fr; } }
.sort-col {
  min-height: 240px; padding: 14px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.14);
  transition: box-shadow .15s, background .15s;
}
.sort-col.over { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 3px var(--tw-c, #7c4dff); }
.sort-col h4 {
  margin: 0 0 12px; padding: 10px; border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--tw-c, #7c4dff), var(--tw-d, #5b32c9));
  font-size: 16px; font-weight: 900; text-align: center;
}
.sort-col .pile { display: flex; flex-direction: column; gap: 8px; }
.sort-card {
  padding: 13px 16px; border-radius: var(--r-md);
  background: #fff; color: var(--ink);
  font-size: 17px; font-weight: 900; text-align: center;
  box-shadow: inset 0 -4px 0 rgba(45,22,100,.14), var(--sh-2);
  cursor: grab; user-select: none;
  transition: transform .12s, opacity .2s;
}
.sort-card:active { cursor: grabbing; }
.sort-card.in-col { cursor: default; box-shadow: var(--sh-1); }
.sort-card.ok { background: var(--green); color: #fff; }
.sort-card.no { background: var(--red); color: #fff; }
.sort-deck { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 64px; margin-bottom: 14px; }
.sort-deck:empty::after { content: "All cards sorted. Tap Check."; font-size: 13px; font-weight: 800; opacity: .6; }

/* ============================================================
   v3 — 在线搜图弹窗（编辑器）
   ============================================================ */
.emodal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(27, 15, 61, .55);
  backdrop-filter: blur(4px);
  animation: gm-in .2s ease;
}
.emodal .box {
  width: min(680px, 94vw); max-height: 84vh; overflow: auto;
  padding: 22px 24px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--sh-3);
  animation: gm-pop .24s cubic-bezier(.2, 1.4, .4, 1);
}
.emodal h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; color: var(--ink); }
.esearch-row { display: flex; gap: 10px; margin-bottom: 14px; }
.esearch-row .input { flex: 1; }
.esearch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; min-height: 120px; }
@media (max-width: 640px) { .esearch-grid { grid-template-columns: repeat(3, 1fr); } }
.esearch-grid button {
  padding: 0; border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 4/3; background: #f4f1ff center/cover no-repeat;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: transform .12s, box-shadow .12s;
}
.esearch-grid button:hover { transform: scale(1.04); box-shadow: inset 0 0 0 3px var(--violet-500); }
.esearch-status { grid-column: 1 / -1; align-self: center; text-align: center; font-size: 13.5px; font-weight: 800; color: var(--ink-mute); padding: 26px 10px; line-height: 1.6; }
.esearch-credit { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--ink-mute); text-align: right; }

/* ============================================================
   v3 — 语音（编辑器音频行 + 播放页扬声器）
   ============================================================ */
.audio-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm); background: #f6f3ff; margin-bottom: 12px; }
.audio-row .tag { font-size: 12.5px; font-weight: 900; color: var(--violet-600); }
.audio-row .cur { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); flex: 1; }
.audio-row .rec-on { color: var(--red); animation: rec-blink 1s infinite; }
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.gspeak {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(255,255,255,.14); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.gspeak:hover { background: rgba(255,255,255,.26); }

/* ============================================================
   v3 — 选项改单列长条
   ============================================================ */
.options { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
.reveal-wrap { grid-template-columns: 1fr 118px; }

/* 设置分组小标题 */
.set-sec {
  margin: 16px 0 8px; padding-bottom: 6px;
  font-size: 12px; font-weight: 900; letter-spacing: .6px;
  text-transform: uppercase; color: var(--violet-600);
  border-bottom: 1px solid var(--line);
}
.set-sec:first-child { margin-top: 0; }

/* Quiz show 生命线 */
.ll-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.ll-btn {
  padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 900; color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.14);
  transition: transform .1s, filter .15s;
}
.ll-btn:hover { transform: translateY(-2px); filter: brightness(1.15); }
.ll-btn[disabled] { opacity: .35; pointer-events: none; }

/* 游戏级计时器样式由 play.js 的 .pill 提供（position 需要） */
.stage { position: relative; }

/* Quiz show 生命线 */
.gs-lifelines { display: flex; gap: 8px; justify-content: center; margin: 0 0 10px; flex-wrap: wrap; }
.gs-life {
  padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.12); color: #fff; font-weight: 900; font-size: 13px;
  cursor: pointer; transition: transform .12s, background .12s;
}
.gs-life:hover:not(:disabled) { transform: scale(1.06); background: rgba(255,255,255,.24); }
.gs-life:disabled { opacity: .35; cursor: default; text-decoration: line-through; }
.gs-bonus-banner {
  position: absolute; inset: 0; z-index: 40; display: grid; place-items: center;
  background: rgba(10,6,30,.82); backdrop-filter: blur(4px);
}
.gs-bonus-banner .inner {
  text-align: center; color: #fff; animation: gm-pop .45s cubic-bezier(.2,1.6,.4,1);
}
.gs-bonus-banner h2 { font-size: 40px; margin: 0 0 8px; color: var(--yellow); text-shadow: 0 4px 18px rgba(255,201,60,.5); }
.gs-bonus-banner p { font-size: 18px; font-weight: 800; margin: 0 0 18px; }

/* Anagram 逐字母判定色 */
.ag-slot.right { background: var(--green); border-color: var(--green-dark); color: #fff; }
.ag-slot.bad { background: var(--red); border-color: #c62f45; color: #fff; animation: ag-shake .3s; }
.ag-next-row { display: flex; justify-content: center; margin-top: 14px; }

/* Category sort — Table 布局 */
.sort-cols.table { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sort-cols.table .sort-col { border: 3px solid rgba(255,255,255,.5); border-radius: 6px; background: rgba(255,255,255,.08); }
.sort-cols.table .sort-col h4 { border-bottom: 3px solid rgba(255,255,255,.5); border-radius: 0; margin: 0; padding: 10px; background: rgba(0,0,0,.22); }
.sort-cols.table .pile { padding: 10px; }

/* ================= 界面对齐（2026-09-30） ================= */
:root { --brand: #1f9bf0; --brand-dark: #1583d6; --navy: #22304a; }

/* 品牌蓝按钮（New activity / Done） */
.btn.blue, a.btn.blue {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 rgba(0, 60, 120, .28), var(--sh-1) !important;
}
.btn.blue:hover { filter: brightness(1.06); }

/* 主页 Hero：白底深蓝字 */
.hero { background: #fff !important; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.hero h1 { color: var(--navy); }
.hero p { color: #5a6b85 !important; }
.hero .btn.ghost {
  box-shadow: inset 0 0 0 2px var(--brand) !important;
  background: #fff !important; color: var(--brand-dark) !important;
}
.hero .btn.ghost:hover { background: #eef7ff !important; }
.hero .ww-stat { margin-top: 16px; font-size: 13px; font-weight: 800; color: #8aa0bd; }

/* 模板卡：顶部彩色图块 */
.tpl-card { padding: 0 !important; overflow: hidden; }
.tpl-card .ic {
  width: 100%; height: 108px; border-radius: 0 !important;
  font-size: 44px !important; display: grid; place-items: center;
  background: linear-gradient(150deg, #7c4dff, #4b23b8) !important;
  color: #fff; text-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.tpl-card h3 { padding: 12px 16px 0; color: var(--navy); }
.tpl-card p { padding: 4px 16px 0; }
.tpl-card .go { padding: 10px 16px 14px; color: var(--brand-dark) !important; }
.tpl-card[href*="type=imagequiz"] .ic { background: linear-gradient(150deg, #38b6ff, #1f6feb) !important; }
.tpl-card[href*="type=openbox"] .ic { background: linear-gradient(150deg, #ffb24d, #f2711c) !important; }
.tpl-card[href*="type=speakingcards"] .ic { background: linear-gradient(150deg, #2fd4b6, #0fa48a) !important; }
.tpl-card[href*="type=gameshow"] .ic { background: linear-gradient(150deg, #b06bff, #6a2fc9) !important; }
.tpl-card[href*="type=anagram"] .ic { background: linear-gradient(150deg, #ff6f91, #e63950) !important; }
.tpl-card[href*="type=wheel"] .ic { background: linear-gradient(150deg, #ffd54d, #f2a71c) !important; }
.tpl-card[href*="type=groupsort"] .ic { background: linear-gradient(150deg, #5cc8ff, #2f7de1) !important; }

/* 编辑器：面包屑 */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; margin-left: 18px; }
.crumbs a { color: var(--brand-dark); }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--navy); }
.crumbs .sep { color: #b7c4d6; }
.crumbs .dim { color: #b7c4d6; }

/* 模板 chip（编辑器右上） */
.tpl-chip {
  background: #eef7ff; color: var(--brand-dark);
  border: 1.5px solid #cfe7fb; font-weight: 900;
}

/* "+ Instruction" 折叠链 */
.instr-toggle {
  background: none; padding: 0; font-size: 13.5px; font-weight: 900;
  color: var(--brand-dark); cursor: pointer;
}
.instr-toggle:hover { text-decoration: underline; }
#instrBox { margin-top: 8px; }

/* 内容列底部 Done 行 */
.done-row { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 开始/结算卡：白卡 */
.center-card {
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 14, 40, .38);
  backdrop-filter: none;
}
.center-card h1 { color: var(--navy); }
.center-card .sub { color: #5a6b85; }
.center-card .stat-row .pill,
.center-card .pill {
  background: #eef7ff; color: var(--brand-dark);
  box-shadow: inset 0 0 0 1.5px #cfe7fb;
  text-shadow: none;
}
.center-card #startBtn {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: inset 0 -3px 0 rgba(0, 60, 120, .28), 0 10px 24px rgba(31, 155, 240, .35);
  font-size: 19px; padding: 14px 46px;
}
.center-card .btn.ghost { color: var(--brand-dark); box-shadow: inset 0 0 0 2px #cfe7fb; background: #fff; }
.center-card .review { text-align: left; }
.center-card .rv-item { background: #f6faff; border: 1px solid #e2eefb; }
.center-card .rv-item .info { color: var(--navy); }
.center-card .lb { background: #f6faff; border: 1px solid #e2eefb; color: var(--navy); }
.center-card .big-score { color: var(--brand-dark); text-shadow: none; }
.center-card .name-row .input { background: #fff; color: var(--navy); }

/* ============================================================
   ClassPlay library, authoring workspace and classic game frame
   ============================================================ */
:root {
  --brand: #168bce;
  --brand-dark: #096da9;
  --navy: #273b4e;
  --violet-600: #096da9;
  --violet-500: #168bce;
  --violet-100: #e8f4fc;
  --ink: #273b4e;
  --ink-soft: #52677a;
  --ink-mute: #6b7e8d;
  --line: #dce4e9;
  --page: #f5f7f9;
  --r-sm: 5px;
  --r-md: 7px;
  --r-lg: 9px;
  --r-xl: 12px;
  --sh-1: 0 2px 5px rgba(30, 55, 75, .05);
  --sh-2: 0 4px 12px rgba(30, 55, 75, .12);
  --sh-3: 0 14px 32px rgba(20, 40, 60, .18);
  --font: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-weight: 400; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #eeae24; outline-offset: 3px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 20px; background: #fff; color: var(--brand-dark); border-radius: 6px; box-shadow: var(--sh-2); }
.skip-link:focus { top: 8px; }
.btn { min-height: 42px; padding: 10px 19px; gap: 8px; border-radius: 5px; font-size: 15px; font-weight: 600; line-height: 1.3; background: var(--brand); box-shadow: none; transition: background .16s, box-shadow .16s; }
.btn:hover { filter: none; background: var(--brand-dark); }
.btn:active { transform: none; box-shadow: none; }
.btn.blue, a.btn.blue { background: var(--brand) !important; box-shadow: none !important; }
.btn.blue:hover, a.btn.blue:hover { background: var(--brand-dark) !important; filter: none; }
.btn.ghost { background: #fff; color: var(--brand-dark); border: 1px solid #cadde9; box-shadow: none; }
.btn.ghost:hover { background: #edf6fc; }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 13px; border-radius: 5px; }
.btn.lg { padding: 13px 26px; font-size: 17px; border-radius: 6px; }
.input, .select, .textarea { min-width: 0; max-width: 100%; border: 1px solid #bbcbd6; padding: 10px 12px; font-size: 14px; font-weight: 400; border-radius: 5px; min-height: 42px; }
.input::placeholder, .textarea::placeholder { color: #80909c; opacity: 1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,139,206,.12); }
.label { color: var(--ink); font-weight: 600; }
.topbar { min-height: 72px; padding: 0 max(24px, calc((100vw - 1200px) / 2)); gap: 28px; background: #fff; border-color: #dce4e9; }
.brand { gap: 9px; font-size: 25px; font-weight: 700; color: #293c4c; letter-spacing: -.8px; white-space: nowrap; }
.brand .logo { width: 30px; height: 30px; padding: 0; gap: 3px; grid-template-columns: 1fr 1fr; background: none; color: var(--brand); border-radius: 0; box-shadow: none; }
.brand .logo:has(i) { display: grid; }
.brand .logo i { width: 13px; height: 13px; background: var(--brand); border-radius: 2px; }
.brand .logo i:nth-child(2) { opacity: .68; }
.brand .logo i:nth-child(3) { opacity: .46; }
.main-nav { align-self: stretch; display: flex; gap: 26px; align-items: stretch; }
.main-nav a { display: flex; align-items: center; padding: 2px 0 0; font-size: 14px; font-weight: 600; color: #6b7e8d; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-dark); }
.main-nav a.active { border-bottom-color: var(--brand); }
.page { max-width: 1200px; padding: 34px 24px 30px; }
.library-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 55px; align-items: center; padding: 36px 40px; background: #fff; border: 1px solid #e3e9ed; border-radius: 9px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #60849b; margin: 0 0 8px; }
.library-intro h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.17; margin: 0 0 14px; letter-spacing: -1.1px; font-weight: 700; }
.library-intro p:not(.eyebrow) { font-size: 14px; line-height: 1.7; color: var(--ink-soft); max-width: 460px; margin: 0 0 22px; }
.create-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0; padding: 0; }
.create-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.create-steps li:not(:last-child)::after { content: "→"; position: absolute; top: 39px; right: -18px; color: #a6c3d6; font-size: 22px; }
.create-steps b { font-size: 13px; font-weight: 600; color: var(--ink); margin: 12px 0 3px; }
.create-steps li > span:last-child { font-size: 11px; color: #6b7e8d; }
.step-art { width: 80px; height: 80px; background: #ecf6fd; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.art-template { display: grid; grid-template-columns: 20px 20px; grid-template-rows: 20px 20px; gap: 5px; align-content: center; }
.art-template i { width: 20px; height: 20px; background: #1b90d2; border-radius: 3px; }
.art-template i:nth-child(2) { background: #4faf8c; }.art-template i:nth-child(3) { background: #e9ae4c; }.art-template i:nth-child(4) { background: #bc85cc; }
.art-content { flex-direction: column; gap: 6px; }
.art-content i { width: 44px; height: 8px; border-radius: 2px; background: #61b3df; }
.art-content i:first-child { height: 13px; background: #1b90d2; }
.art-content i:last-child { width: 31px; align-self: flex-start; margin-left: 18px; }
.art-play { color: #1b90d2; font-size: 34px; padding-left: 5px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 37px 0 18px; }
.sec-title { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: -.4px; gap: 11px; }
.sec-title span#count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; padding: 0 7px; background: #e4edf3; color: #55748b; border-radius: 5px; font-size: 12px; font-weight: 600; }
.section-count, .device-note { color: var(--ink-mute); font-size: 12px; white-space: nowrap; }
.device-note span { color: #58a49a; font-size: 10px; margin-right: 5px; }
.grid-tpl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.tpl-card { gap: 0; border: 1px solid #dce4e9; border-radius: 7px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.tpl-card:hover { transform: none; border-color: #78b7dc; box-shadow: 0 4px 14px rgba(19,111,164,.1); }
.template-art { display: block; width: 100%; background: #3d9cda; aspect-ratio: 16 / 9; overflow: hidden; }
.template-art svg { display: block; width: 100%; height: 100%; }
.art-imagequiz { background: #4caae2 !important; }.art-openbox { background: #d98532 !important; }.art-speakingcards { background: #2ea99b !important; }
.art-gameshow { background: #65419d !important; }.art-anagram { background: #d57369 !important; }.art-wheel { background: #f0d99d !important; }.art-groupsort { background: #65b0d3 !important; }
.template-copy { display: flex; flex-direction: column; flex: 1; padding: 16px 15px 15px; }
.tpl-card h3 { padding: 0; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.3; }
.tpl-card p { padding: 0; font-size: 12px; font-weight: 400; color: var(--ink-soft); margin: 6px 0 16px; line-height: 1.5; }
.tpl-card .go { padding: 0; font-size: 12px; font-weight: 600; color: var(--brand-dark) !important; }
.library-toolbar { display: flex; gap: 12px; margin: 0 0 20px; }
.search-field { position: relative; flex: 1; }
.search-field > span { position: absolute; left: 13px; top: 4px; color: #8ba0b0; font-size: 27px; pointer-events: none; }
.search-field .input { padding-left: 41px; }
.library-toolbar .select { width: 204px; }
.grid-quiz { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.quiz-card { border: 1px solid #dce4e9; border-radius: 7px; box-shadow: none; }
.quiz-card:hover { transform: none; box-shadow: 0 4px 14px rgba(19,111,164,.1); border-color: #78b7dc; }
.quiz-card .thumb { height: auto; aspect-ratio: 16 / 9; background: #edf4f9; }
.quiz-card .thumb img { object-fit: contain; background: #edf4f9; }
.thumb-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 35px; height: 35px; padding-left: 2px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand-dark); box-shadow: 0 2px 7px rgba(0,0,0,.12); font-size: 13px; }
.quiz-card .body { padding: 16px; gap: 6px; }
.activity-template { color: #7b8e9a; font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: .6px; }
.quiz-card h3 { font-size: 16px; font-weight: 600; color: #243c4f; line-height: 1.35; }
.quiz-card h3, .editor-heading h1, .center-card h1, .gprompt, .gs-q, .sort-card, .sort-col h4 { overflow-wrap: anywhere; }
.quiz-card h3 a:hover { color: var(--brand-dark); }
.quiz-card .meta { font-size: 12px; font-weight: 400; margin-bottom: 9px; }
.quiz-card .acts { gap: 7px; }
.icon-btn { border-radius: 5px; background: #f1f6f9; width: 34px; height: 36px; flex-basis: 34px; font-size: 18px; font-weight: 500; color: #47748d; }
.icon-btn:hover { background: #e5f2fa; }
.icon-btn.danger { background: #fff; color: #8a9ba6; }
.icon-btn.danger:hover { background: #fff0ee; color: #bf5548; }
.empty { grid-column: 1 / -1; background: #fff; border: 1px dashed #b9ccd9; padding: 38px 20px; font-weight: 400; }
.empty b { color: var(--ink); font-size: 17px; font-weight: 600; }
.empty p { margin: 7px 0 18px; font-size: 14px; }
.footer-note { display: flex; gap: 22px; align-items: center; justify-content: space-between; margin-top: 45px; padding: 24px 0 0; border-top: 1px solid #dce4e9; text-align: left; font-size: 11px; font-weight: 400; line-height: 1.7; }
.footer-note p { margin: 0; flex: 1; }
.footer-brand { font-size: 16px; font-weight: 600; color: #68849a; }

/* Editor: content at left, optional controls at right. */
.editor-wrap { max-width: 1248px; padding: 26px 24px 120px; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.editor-heading h1 { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.6px; }
.crumbs { margin-left: 8px; gap: 12px; font-size: 12px; font-weight: 400; }
.crumbs a, .crumbs b, .crumbs .dim { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crumbs b { font-weight: 600; color: var(--brand-dark); }
.step-number { display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.crumbs .dim { color: #8b9eac; }
.chip.tpl-chip { border: 1px solid #c8e3f5; border-radius: 5px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.editor-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.editor-cols > *, .library-intro > *, .search-field, .img-tools { min-width: 0; }
.panel { border: 1px solid #dce4e9; padding: 21px 23px; border-radius: 7px; box-shadow: none; }
.panel-head { align-items: flex-start; margin-bottom: 14px; }
.panel-head h2 { font-size: 15px; font-weight: 650; }
.panel-head .hint, .hint { font-size: 11px; font-weight: 400; color: var(--ink-mute); line-height: 1.6; }
.content-panel > .panel-head { display: block; margin-bottom: 22px; }
.content-panel > .panel-head h2 { margin-bottom: 6px; }
.content-panel > .panel-head .hint { font-size: 12px; }
.activity-title { font-size: 17px; min-height: 47px; font-weight: 500; }
.author-field { margin: 17px 0; }
.author-field .label span { color: #899ba7; font-weight: 400; }
.instr-toggle { font-size: 12px; font-weight: 600; }
#instrBox .hint { margin: 5px 0 0; }
.q-item { border: 1px solid #d7e2ea; background: #fbfcfd; padding: 18px; border-radius: 6px; margin-bottom: 18px; }
.q-item .no { background: #168bce; width: 27px; height: 27px; flex-basis: 27px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.q-item .qh .grow { font-size: 12px; font-weight: 500; color: #788e9c; }
.editor-content .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.img-pick { gap: 15px; }
.img-prev { background-color: #f0f5f8; border: 1px dashed #afc9d9; border-radius: 5px; width: 144px; height: 110px; flex-basis: 144px; font-size: 11px; }
.img-prev img { object-fit: contain; }
.img-tools .row { gap: 6px; }
.samples button { border-radius: 4px; box-shadow: inset 0 0 0 1px #cbdde8; }
.opt-row { gap: 8px; }
.opt-row .letter { background: #e9f3fa; color: #39799f; border-radius: 4px; font-weight: 600; font-size: 13px; }
.opt-row .pick { box-shadow: inset 0 0 0 1px #c3d5e0; border-radius: 50%; }
.opt-row.correct .pick, .opt-row.correct .letter { background: #2d9b69; }
.audio-row { background: #edf6fb; border-radius: 5px; border: 1px solid #dcebf4; font-size: 12px; }
.audio-row .tag, .audio-row .cur { font-size: 11px; font-weight: 500; }
.editor-sidebar .panel { padding: 18px; margin-bottom: 17px; }
.preview-stage { min-height: 228px; padding: 38px 16px 22px; border-radius: 5px; }
.preview-stage .pv-title { font-size: 10px; font-weight: 500; opacity: .8; }
.preview-content { width: 100%; color: #fff; text-align: center; }
#pvThumb { margin: 0 auto 12px; }
#pvThumb img { object-fit: contain !important; }
#pvTitle { font-size: 20px; font-weight: 600; line-height: 1.35; }
#pvChips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
#pvChips .pill { font-size: 10px; padding: 4px 7px; font-weight: 500; }
.preview-note { margin: 10px 0 0; color: var(--ink-mute); font-size: 11px; text-align: center; }
.switch-row { padding: 11px 0; border-bottom: 1px solid #eaf0f4; }
.switch-row .t { font-size: 12px; font-weight: 600; }
.switch-row .d { font-size: 11px; font-weight: 400; }
.switch { width: 40px; height: 23px; flex-basis: 40px; background: #c4d0d8; padding: 0; border: 0; }
.switch::after { width: 17px; height: 17px; }
.switch.on { background: var(--brand); }.switch.on::after { transform: translateX(17px); }
.theme-row { flex-wrap: wrap; gap: 8px; }
.theme-dot { width: 34px; height: 34px; border-radius: 5px; }
.theme-dot.sel { outline: 2px solid var(--brand-dark); }
.font-field { margin-top: 17px; }
.set-sec { color: #54809b; font-size: 10px; font-weight: 600; letter-spacing: .7px; margin-top: 20px; border-bottom-color: #e1eaf0; }
.done-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e3ebf0; }
.save-bar { gap: 12px; padding: 13px max(24px, calc((100vw - 1200px) / 2)); background: #fff; backdrop-filter: none; box-shadow: 0 -3px 12px rgba(35,62,80,.04); }
.save-bar .status { color: #597384; font-size: 12px; font-weight: 500; }
.storage-note { margin: 2px 0 0; font-size: 10px; color: #889ba7; }
.toast-msg { max-width: calc(100vw - 30px); bottom: 90px; border-radius: 6px; font-size: 13px; font-weight: 500; padding: 12px 18px; text-align: center; background: #294355; }

/* Game stage: broad play area and clear controls without glass layers. */
body.game { background: linear-gradient(155deg, var(--tw-a), var(--tw-b)); font-weight: 500; }
body.game::before { background: none; opacity: 0; }
.game-shell { max-width: 1120px; padding: 20px 24px 36px; }
.hud { padding: 12px 18px; border-radius: 7px; background: rgba(0,0,0,.16); box-shadow: none; backdrop-filter: none; gap: 10px; }
.hud .g-title { font-size: 15px; font-weight: 600; }
.hud .g-title small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.7); }
.pill { border-radius: 5px; font-size: 12px; font-weight: 600; padding: 6px 10px; }
.pill.score { background: #ffe099; color: #634820; box-shadow: none; }
.gstage { min-height: 560px; padding: 38px 30px 30px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); border-radius: 8px; box-shadow: none; backdrop-filter: none; }
.gprompt, .qtext { font-size: 24px; font-weight: 600; line-height: 1.4; margin-bottom: 22px; }
.center-card { padding: 34px 40px; border-radius: 10px; box-shadow: 0 15px 45px rgba(0,0,0,.2); }
.center-card h1 { font-size: 28px; font-weight: 650; }
.center-card .sub { font-weight: 400; color: #5b7386; }
.center-card .pill { background: #eff5f9; color: #426781; font-size: 11px; font-weight: 500; box-shadow: none; }
.center-card #startBtn { font-size: 18px; border-radius: 6px; padding: 14px 45px; background: var(--brand); box-shadow: none; }
.center-card .btn.ghost { border: 1px solid #cadde9; box-shadow: none; }
.center-card .big-score { font-weight: 700; }
.center-card .rv-item .info .ok { color: #238354; }.center-card .rv-item .info .no { color: #bc4d43; }
.center-card .lb { padding: 14px; border-radius: 6px; }
.center-card .lb h4 { color: #597284; font-size: 12px; }
.center-card .lb li { background: #fff; color: #38566c; font-weight: 500; }
.start-thumb { max-width: 330px; aspect-ratio: 16 / 10; box-shadow: none; background: #eaf4fa; }
.start-thumb img { object-fit: contain; }
.pic { max-height: 420px; background: #edf5fa; border: 4px solid rgba(255,255,255,.85); border-radius: 6px; box-shadow: 0 4px 13px rgba(0,0,0,.15); }
.pic img { object-fit: contain; }
.reveal-wrap { max-width: 850px; margin: auto; grid-template-columns: minmax(0, 1fr) 118px; }
.buzz-hint { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.85); }
.timerbar { max-width: 740px; margin: 14px auto 0; height: 6px; }
.options { max-width: 740px; gap: 10px; margin-top: 20px; }
.opt { border-radius: 6px; padding: 13px 17px; font-size: 17px; font-weight: 600; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.opt:hover { transform: none; background: #f0f8ff; }
.opt .k { border-radius: 4px; font-weight: 600; background: #dfedf7; color: #376d91; }
.opt.correct:hover, .opt.correct { background: #2d9b69; color: #fff; }
.opt.wrong:hover, .opt.wrong { background: #d8544b; color: #fff; }
.gmodal { border-radius: 8px; background: rgba(18,35,50,.74); }
.gmodal .box { border-radius: 9px; padding: 26px; }
.gmodal h3 { font-size: 23px; font-weight: 600; }
.gs-head { gap: 16px; }.gs-q { font-size: 24px; padding: 22px; border-radius: 6px; font-weight: 600; }
.gs-opt { padding: 19px; border-radius: 6px; font-weight: 600; font-size: 19px; box-shadow: 0 4px 0 rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.4); }
.gs-opt.c1 { background: #307eca; }.gs-opt.c2 { background: #229679; }.gs-opt.c3 { background: #cf863c; }.gs-opt.c4 { background: #b4547e; }.gs-opt.c5 { background: #2b8fb3; }.gs-opt.c6 { background: #6d9b2f; }
.gs-opt .k { border-radius: 4px; }
.gs-life { font-weight: 500; font-size: 12px; border-width: 1px; }
.gs-img { max-width: min(300px, 100%); }
.ag-clue { font-size: 23px; font-weight: 600; margin-bottom: 28px; }
.ag-row { gap: 10px; }.ag-slots { margin-bottom: 30px; }
.ag-tile, .ag-slot { border-radius: 5px; width: 59px; height: 65px; font-size: 30px; font-weight: 600; }
.ag-tile { box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.ag-tile:disabled, .ag-tile.used { opacity: .25; transform: none; }
.ag-slot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.wheel-frame { width: min(460px, 76vw); }.wheel-frame canvas { filter: drop-shadow(0 8px 18px rgba(0,0,0,.2)); }
.wheel-hub { font-size: 18px; font-weight: 500; }
.sort-cols { gap: 20px; margin-bottom: 28px; }
.sort-col { min-width: 0; border-radius: 5px; padding: 0 14px 14px; min-height: 250px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.sort-col h4 { background: rgba(0,0,0,.18); margin: 0 -14px 13px; border-radius: 5px 5px 0 0; padding: 14px; font-size: 19px; font-weight: 600; }
.sort-col.over { background: rgba(255,255,255,.17); box-shadow: inset 0 0 0 3px #e3d6a0; }
.sort-col:focus-visible { outline: 3px solid #eeae24; outline-offset: 4px; }
.sort-card { border-radius: 5px; padding: 11px 19px; font-weight: 600; font-size: 18px; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.sort-card.selected { outline: 3px solid #f4d178; outline-offset: 3px; }
.sort-card img { max-width: 90px; max-height: 65px; object-fit: contain; }
.sort-deck { margin: 22px 0 15px; gap: 13px; }
.sort-deck:empty::after { color: #fff; opacity: .85; }
.next-row { flex-wrap: wrap; }
.game .btn.green { background: #258d60; }
.game .btn.green:hover { background: #207852; }

@media (max-width: 1050px) {
  .topbar { padding: 0 20px; gap: 20px; }
  .grid-tpl { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .library-intro { gap: 25px; padding: 30px; }
  .editor-cols { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
  .crumbs { gap: 6px; font-size: 11px; margin-left: 0; }
  .editor-page .brand { font-size: 21px; }
  .panel { padding: 18px; }
}
@media (max-width: 820px) {
  .library-intro { grid-template-columns: 1fr; gap: 28px; }
  .library-intro p:not(.eyebrow) { max-width: none; }
  .create-steps { max-width: 460px; }
  .grid-quiz { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .editor-cols { grid-template-columns: minmax(0,1fr); }
  .editor-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .editor-sidebar .panel { margin: 0; }
  .editor-page .crumbs { display: none; }
  .panel-head { flex-wrap: wrap; gap: 4px; }
  .gstage { padding: 35px 20px 24px; min-height: 520px; }
  .hud { flex-wrap: wrap; }.hud .g-title { max-width: 100%; }
}
@media (max-width: 580px) {
  html { scroll-padding-top: 82px; }
  .topbar { padding: 12px 16px; min-height: 64px; gap: 10px; }
  .brand { font-size: 22px; }.brand .logo { width: 25px; height: 25px; gap: 3px; }.brand .logo i { width: 11px; height: 11px; }
  .topbar > .btn { font-size: 12px; padding: 9px 10px; min-height: 36px; }
  .main-nav { display: none; }
  .page, .editor-wrap { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 20px; }
  .library-intro { padding: 24px 20px; gap: 24px; }
  .library-intro h1 { font-size: 28px; letter-spacing: -.8px; }
  .create-steps { gap: 9px; }.create-steps li:not(:last-child)::after { right: -11px; top: 29px; font-size: 17px; }
  .step-art { width: 63px; height: 63px; border-radius: 12px; }
  .art-content i { width: 35px; }.art-content i:last-child { width: 25px; margin-left: 14px; }
  .create-steps b { font-size: 11px; }.create-steps li > span:last-child { font-size: 10px; }
  .section-heading { margin-top: 28px; align-items: flex-start; }.section-count { max-width: 80px; text-align: right; white-space: normal; font-size: 10px; line-height: 1.6; }
  .sec-title { font-size: 22px; }.device-note { display: none; }
  .grid-tpl { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .template-copy { padding: 12px; }.tpl-card h3 { font-size: 14px; }.tpl-card p { font-size: 11px; margin-bottom: 12px; }.tpl-card .go { font-size: 11px; }
  .library-toolbar { flex-wrap: wrap; gap: 8px; }.library-toolbar .search-field { flex-basis: 100%; }.library-toolbar .select { width: 100%; }
  .grid-quiz { grid-template-columns: minmax(0,1fr); gap: 18px; }.quiz-card .thumb { aspect-ratio: 16 / 8; }
  .footer-note { flex-direction: column; gap: 8px; align-items: flex-start; }
  .editor-wrap { padding-bottom: 140px; }.editor-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }.editor-heading h1 { font-size: 25px; }
  .editor-sidebar { grid-template-columns: minmax(0,1fr); }
  .panel { padding: 16px; }.q-item { padding: 13px; }.img-pick { flex-direction: column; gap: 11px; }.img-prev { width: 100%; height: 150px; flex-basis: auto; }.img-tools { width: 100%; }
  .opt-row { gap: 6px; }.opt-row .letter { width: 26px; flex-basis: 26px; }.opt-row .pick { width: 27px; height: 27px; flex-basis: 27px; }.opt-row .input { min-width: 0; padding: 9px; }
  .save-bar { padding: 10px 16px; gap: 9px; flex-wrap: wrap; }.save-bar > div { width: 100%; }.save-bar .spacer { display: none; }.save-bar > .btn { flex: 1; font-size: 12px; padding: 10px; }.storage-note { display: none; }
  .game-shell { padding: 12px 10px 24px; }.hud { padding: 11px 12px; gap: 7px; }.hud .g-title { width: 100%; font-size: 14px; }.hud .spacer { display: none; }.hud .pill { padding: 5px 8px; font-size: 11px; }.hud .pill.mute { margin-left: auto; }
  .center-card { padding: 26px 20px; margin: 20px auto; }.center-card h1 { font-size: 23px; }.center-card .sub { font-size: 13px; }.center-card .stat-row { gap: 7px; }
  .gstage { padding: 42px 12px 22px; border-radius: 6px; min-height: 460px; }.gprompt, .qtext { font-size: 20px; }.gmodal .box { max-height: 92%; padding: 20px; }
  .reveal-wrap { grid-template-columns: minmax(0,1fr); gap: 16px; }.pic { aspect-ratio: 4 / 3; }.buzz-hint { max-width: 100px; text-align: left; }
  .opt { padding: 12px 13px; font-size: 15px; }.gs-head { gap: 10px; }.gs-q { font-size: 18px; padding: 14px; }.gs-timer { width: 63px; height: 63px; flex-basis: 63px; }.gs-timer b { font-size: 21px; }.gs-opt { padding: 14px; font-size: 16px; }
  .ag-tile, .ag-slot { width: 41px; height: 49px; font-size: 23px; }.ag-row { gap: 7px; }.ag-clue { font-size: 20px; }.wheel-frame { width: min(390px, 79vw); }
  .sort-cols, .sort-cols.table { grid-template-columns: minmax(0,1fr); gap: 14px; }.sort-col { min-height: 130px; }.sort-col h4 { font-size: 17px; }.sort-card { font-size: 16px; }.sort-deck { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html:where(:not([data-motion-managed])) { scroll-behavior: auto; }
  :where(:root:not([data-motion-managed])) *, :where(:root:not([data-motion-managed])) *::before, :where(:root:not([data-motion-managed])) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* The player's own "No movement" choice (html[data-reduce-motion], js/motion-preference.js) applies the same rules. */
html:where([data-reduce-motion]) { scroll-behavior: auto; }
:where(:root[data-reduce-motion]) *, :where(:root[data-reduce-motion]) *::before, :where(:root[data-reduce-motion]) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
/* Crossword uses the remaining stage height; oversized grids and clue lists keep scrolling. */
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] .puzzle-shell {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
}
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] .crossword-layout {
  flex: 1; min-height: 0; align-items: stretch;
}
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] :is(.puzzle-scroll,.crossword-clues) {
  height: 100%; max-height: 100%; min-height: 0;
}
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] .crossword-grid {
  grid-template-columns: repeat(var(--puzzle-columns),var(--crossword-cell-size,36px));
  min-width: 0; max-width: none;
}
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] :is(.crossword-cell,.crossword-block) {
  width: var(--crossword-cell-size,36px); height: var(--crossword-cell-size,36px);
}
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] .crossword-cell input {
  font-size: clamp(18px,calc(var(--crossword-cell-size,36px)*.6),38px); padding-top: 4px;
}
.activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] .crossword-number {
  font-size: clamp(9px,calc(var(--crossword-cell-size,36px)*.23),14px);
}
@media (max-width:650px) {
  .activity-player[data-game="crossword"] #gameStage[data-crossword-fit="yes"] .crossword-layout {
    grid-template-rows: minmax(0,1fr) minmax(105px,31%);
  }
}

/* Source: css/site.css */
/* Compact library and template picker. These styles are independent of game themes. */
button, input, select, textarea { font: inherit; }
/* The round font in two parts (5.266.0). Its Latin letters, figures and punctuation (assets/fonts/Nunito-Variable-latin.woff2,
   40 KB, made with fontTools from the whole font for the first range below) are all most pages need; the whole font
   (101 KB) is fetched only for a page that shows one of its other characters (the second range: every other character
   it has, such as Vietnamese, Cyrillic or Polish letters). Latin text draws pixel for pixel as with the whole font. */
@font-face { font-family: "ClassPlay Round"; src: url("../assets/fonts/Nunito-Variable-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ClassPlay Round"; src: url("../assets/fonts/Nunito-Variable.woff2") format("woff2"); font-style: normal; font-weight: 200 1000; font-display: swap; unicode-range: U+0100-0130, U+0132, U+0134-0151, U+0154-017E, U+0181, U+018A, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01B3-01B4, U+01C4-01CE, U+01D4, U+01E5-01E7, U+01E9-01EB, U+01EF, U+01FA-021B, U+021F, U+0226-0228, U+022A-022D, U+0230-0233, U+0237, U+0253, U+0257, U+0259, U+0292, U+02B9-02BA, U+02BE-02BF, U+02C7-02CC, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+0309-030C, U+030F, U+0311-0312, U+031B, U+0323-0324, U+0326-0328, U+032E, U+0331, U+0335, U+0337-0338, U+0394, U+03A3, U+03A9, U+03BC, U+03C0, U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+048A-04A5, U+04A8-04FF, U+0510-0513, U+051A-051D, U+0524-0529, U+052E-052F, U+1E08-1E09, U+1E0C-1E0F, U+1E14-1E17, U+1E1C-1E1D, U+1E20-1E21, U+1E24-1E25, U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E37, U+1E3A-1E3B, U+1E42-1E49, U+1E4C-1E53, U+1E5A-1E5B, U+1E5E-1E69, U+1E6C-1E6F, U+1E78-1E7B, U+1E80-1E85, U+1E8E-1E8F, U+1E92-1E93, U+1E97, U+1E9E, U+1EA0-1EF9, U+2070, U+2074-2079, U+2080-2089, U+20A1, U+20A3-20A4, U+20A6-20A7, U+20A9, U+20AB, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BC-20BD, U+2113, U+2116, U+2126, U+212E, U+2202, U+2205-2206, U+220F, U+2211, U+2219-221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+27E8-27E9, U+F8FF, U+FB01-FB02; }
@font-face { font-family: "ClassPlay Display"; src: url("../assets/fonts/Baloo2-Variable.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }
body.site-page { margin: 0; background: linear-gradient(#cce6f3, #e8f5fb 450px); color: #222; font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 14px; font-weight: 400; }
.site-header { background: #fff; border-bottom: 1px solid #dae8ef; }
.site-header-inner { min-height: 50px; display: flex; align-items: center; gap: 22px; padding: 0 30px; max-width: 1600px; margin: auto; }
.site-brand { display: inline-flex; align-items: center; gap: 5px; color: #222; font-size: 24px; font-weight: 700; letter-spacing: -1.1px; line-height: 1; white-space: nowrap; }
.site-brand { font-family: "ClassPlay Round", Arial, sans-serif; font-weight: 900; }
.iq-activity-svg text { font-family: "ClassPlay Round", Nunito, Arial, sans-serif; }
.site-logo { display: grid; grid-template-columns: 9px 9px; grid-template-rows: 9px 9px; gap: 2px; margin-right: 1px; }
.site-logo i { display: block; width: 9px; height: 9px; background: #33a4e4; }
.site-logo i:nth-child(2) { opacity: .58; }.site-logo i:nth-child(3) { opacity: .72; }
.site-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; align-self: stretch; }
.site-nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; font-size: 13px; color: #222; padding: 0 2px; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: #39a4e5; color: #1573ad; }
/* Tool navigation uses the same soft sage pill as every other teacher page. */
.site-page:is(.tools-page, .tracing-page) .site-header .site-nav a[aria-current="page"] { color: #155f69; border-bottom: 0; background: #e6efe9; box-shadow: none; }
.site-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #bbb; background: linear-gradient(#fff, #f6f6f6); color: #222; font: inherit; font-size: 13px; font-weight: 400; padding: 7px 12px; border-radius: 0; min-height: 34px; line-height: 1.25; cursor: pointer; white-space: nowrap; }
.site-button:hover { background: #eef6fc; border-color: #7cb9dd; }
.site-button.primary { color: #fff; background: #39a5e8; border-color: #339add; font-weight: 600; }
.site-button.primary:hover { background: #268ecb; }
.site-create { min-height: 32px; font-size: 13px; padding: 6px 13px; }
.site-main { width: calc(100% - 72px); max-width: 1280px; min-height: calc(100vh - 136px); margin: 24px auto 0; background: #fff; box-shadow: 0 1px 5px rgba(70,95,110,.08); }
.site-page .site-input, .site-page .site-select { font-family: inherit; font-size: 13px; font-weight: 400; color: #333; height: 35px; min-width: 0; border: 1px solid #c6c6c6; border-radius: 0; background: #fff; outline: none; padding: 7px 10px; box-shadow: none; }
.site-page .site-input:focus, .site-page .site-select:focus { border-color: #40a6e0; box-shadow: 0 0 0 1px #40a6e0; }
.site-input::placeholder { color: #aaa; }
.site-input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.site-page button:focus-visible, .site-page a:focus-visible { outline: 2px solid #267fb6; outline-offset: 3px; }
.picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid #e4e4e4; padding: 27px 32px 24px; }
.picker-steps { display: flex; align-items: center; gap: 16px; font-size: 20px; color: #898989; line-height: 1.2; white-space: nowrap; }
.picker-steps h1 { font-size: 20px; font-weight: 400; color: #111; line-height: inherit; margin: 0; letter-spacing: 0; }
.step-chevron { color: #8e8e8e; font-size: 30px; font-weight: 300; line-height: .6; }
.compact-search { position: relative; flex: 0 1 250px; }
.compact-search .site-input { width: 100%; padding-right: 34px; text-overflow: ellipsis; }
.compact-search > span { display: grid; place-items: center; position: absolute; right: 10px; top: 0; height: 35px; color: #444; pointer-events: none; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; padding: 26px 32px 40px; }
.template-card { display: flex; min-width: 0; min-height: 122px; border: 1px solid #d7d7d7; background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: background .15s, border-color .15s; overflow: hidden; }
.template-card:hover { border-color: #72bce9; background: #f3faff; }
.template-thumb { flex: 0 0 120px; width: 120px; min-height: 120px; align-self: stretch; display: grid; place-items: center; background: #f5f2e9; }
.template-thumb > .iq-template-svg { width: 120px; height: 120px; }
.iq-template-svg { display: block; width: 100%; height: 100%; }
.template-card .template-copy { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; min-width: 0; padding: 18px 14px 16px 18px; }
.template-copy h2 { font-size: 16px; font-weight: 400; line-height: 1.15; margin: 0; }
.template-copy p { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.35; color: #696969; }
.site-empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: #777; }
.site-empty h2 { font-weight: 400; color: #333; font-size: 20px; }
.site-empty p { font-size: 14px; }
.library-heading { display: flex; align-items: center; gap: 22px; min-height: 75px; padding: 19px 27px; border-bottom: 4px solid #d4e8f2; }
.library-heading h1 { font-size: 25px; font-weight: 600; letter-spacing: 0; margin: 0 auto 0 0; line-height: 1.25; }
.library-title { margin-right: auto; min-width: 0; }
.library-title h1 { overflow-wrap: anywhere; }
.library-tools { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.library-view-controls { display: flex; gap: 3px; }
.library-view-controls .site-button { width: 34px; padding: 0; color: #7895a6; }
.library-view-controls .site-button[aria-pressed=true] { color: #258fc9; border-color: #83b9da; background: #eaf6fc; }
.library-search { position: relative; width: 240px; }
.library-search .site-input { width: 100%; padding-right: 37px; }
.library-search > span { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 35px; height: 35px; border-left: 1px solid #c6c6c6; font-size: 24px; color: #333; pointer-events: none; }
.library-order-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 50px; padding: 12px 27px 7px; color: #555; font-size: 12px; }
.library-sort-options { display: flex; align-items: center; gap: 17px; }
.library-sort-options button { font: inherit; font-size: 12px; font-weight: 400; padding: 2px 0; border: none; background: none; color: #666; }
.library-sort-options button[aria-pressed=true] { color: #111; }
.library-sort-options button[aria-pressed=true]::after { content: " ▴"; }
.library-order-row .site-select { height: 29px; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
.library-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 19px 15px; padding: 16px 27px 40px; align-content: start; }
.library-card { position: relative; min-width: 0; border: 1px solid #ccc; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.library-card:hover { border-color: #79bde5; }
.activity-thumb { display: block; width: 100%; aspect-ratio: 4/3; background: #d4eaf7; overflow: hidden; }
.activity-thumb svg, .activity-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.activity-details { padding: 8px 9px 28px; min-height: 81px; }
.activity-details h2 { margin: 0 0 5px; font-size: 15px; font-weight: 400; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-details h2 a { color: #111; }
.activity-details h2 a:hover { color: #197cba; }
.activity-template-name { margin: 0; font-size: 11px; color: #888; line-height: 1.25; }
.activity-meta { position: absolute; bottom: 7px; left: 9px; right: 40px; margin: 0; font-size: 10px; font-weight: 400; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-menu { position: absolute; right: 3px; bottom: 4px; }
.activity-menu > summary { list-style: none; display: grid; place-items: center; width: 32px; height: 28px; border-left: 1px solid #eee; color: #555; cursor: pointer; font-size: 21px; line-height: 1; }
.activity-menu > summary::-webkit-details-marker { display: none; }
.activity-menu[open] > summary { color: #1887c8; background: #eef8ff; }
.activity-actions { position: absolute; z-index: 15; right: 0; top: 32px; width: 150px; display: flex; flex-direction: column; background: #fff; padding: 4px 0; border: 1px solid #bbb; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.activity-action { display: block; text-align: left; width: 100%; border: 0; background: #fff; font: inherit; font-size: 13px; font-weight: 400; color: #333; padding: 9px 14px; cursor: pointer; }
.activity-action:hover { color: #147bb9; background: #edf8ff; }
.activity-action.delete-action { color: #a04e49; border-top: 1px solid #eee; }
.folder-card { position: relative; align-self: start; min-height: 112px; margin-top: 8px; padding: 21px 18px 32px; border-radius: 0 4px 4px 4px; background: #8cc7e9; border-top: 7px solid #6dafd5; color: #111; box-shadow: inset 6px 0 #67afd8; }
.folder-card::before { content: ""; position: absolute; width: 38%; height: 9px; left: 0; top: -15px; border-radius: 6px 8px 0 0; background: #6dafd5; }
.folder-card h2 { font-size: 15px; font-weight: 400; margin: 0 0 7px; line-height: 1.2; overflow-wrap: anywhere; }
.folder-card p { margin: 0; font-size: 11px; color: #557c93; }
.folder-card .activity-menu > summary { border-left: 1px solid rgba(43,104,141,.2); }
.folder-open::after { content: ""; position: absolute; inset: 0; }
.folder-card .activity-menu { z-index: 3; }
.library-breadcrumb { color: #777; font-size: 12px; margin: 0 0 7px; }
.library-breadcrumb a { color: #333; }.library-breadcrumb span { padding: 0 10px; }
.folder-up { display: grid; place-items: center; min-height: 112px; padding: 14px; font-size: 35px; width: 145px; color: #579bbb; border: 0; font-weight: 400; }
.library-notice { padding: 16px 27px 0; font-size: 12px; color: #888; }
.library-notice a { color: #1789cb; }
.site-dialog { width: min(460px, calc(100vw - 32px)); border: 1px solid #bbb; background: #fff; color: #333; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.site-dialog::backdrop { background: rgba(30,55,75,.4); }
.site-dialog h2 { font-size: 21px; font-weight: 400; margin: 0 0 22px; }
.site-dialog label { display: block; color: #555; font-size: 13px; margin-bottom: 8px; }
.site-dialog .site-input, .site-dialog .site-select { width: 100%; }
.site-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.site-page .toast-msg { bottom: 25px; font-family: Arial, sans-serif; }
.library-list[data-view=list] { grid-template-columns: minmax(0, 1fr); }
.library-list[data-view=list] .library-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); max-width: none; }
.library-list[data-view=list] .activity-thumb { height: 96px; }
.library-list[data-view=list] .activity-details { padding: 17px 50px 27px 20px; min-height: 96px; }
.library-list[data-view=list] .activity-meta { left: 148px; bottom: 14px; }
.library-list[data-view=list] .folder-card { max-width: none; min-height: 90px; }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 17px 0 24px; color: #7490a2; font-size: 10px; text-align: center; line-height: 1.5; }
.site-footer p { margin: 3px 0; }
@media (max-width: 1100px) {
  .template-grid { gap: 17px; padding: 24px; }.picker-toolbar { padding-left: 24px; padding-right: 24px; }
  .template-thumb { flex-basis: 105px; width: 105px; }.template-thumb > .iq-template-svg { width: 105px; height: 105px; }.template-copy p { font-size: 12px; }.template-card .template-copy { padding-left: 13px; }
  .library-heading { flex-wrap: wrap; }.library-tools { flex: 1; }.library-heading h1 { font-size: 24px; }
  .library-search { width: 210px; }
}
@media (max-width: 900px) {
  .site-main { width: calc(100% - 40px); margin-top: 20px; }.template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-thumb { flex-basis: 120px; width: 120px; }.picker-steps, .picker-steps h1 { font-size: 18px; }.picker-steps { gap: 12px; }.compact-search { flex-basis: 180px; }
  .library-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }.library-search { width: 180px; }.library-heading { gap: 15px; }
}
@media (max-width: 650px) {
  .site-header-inner { padding: 0 15px; gap: 12px; min-height: 51px; }.site-brand { font-size: 21px; }.site-nav { gap: 13px; }.site-nav a { font-size: 11px; }.site-create { font-size: 11px; padding: 6px 9px; }
  .site-main { width: calc(100% - 24px); margin-top: 14px; }.picker-toolbar { padding: 23px 17px 19px; flex-wrap: wrap; gap: 18px; }.picker-steps { gap: 11px; font-size: 16px; }.picker-steps h1 { font-size: 16px; }.step-chevron { font-size: 24px; }.compact-search { flex-basis: 100%; }
  .template-grid { padding: 19px 17px 30px; gap: 13px; grid-template-columns: minmax(0, 1fr); }.template-card .template-copy { padding-left: 18px; }.template-copy p { font-size: 13px; }
  .library-heading { padding: 17px; }.library-heading h1 { font-size: 23px; }.library-tools { justify-content: flex-start; flex-basis: 100%; }.library-search { flex: 1; width: auto; min-width: 130px; }
  .library-order-row { padding: 12px 17px; gap: 12px; flex-wrap: wrap; }.library-sort-options { gap: 11px; margin-left: auto; font-size: 11px; }.library-sort-options button { font-size: 11px; }
  .library-list { padding: 10px 17px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }.activity-details { padding: 8px 8px 29px; }.activity-details h2 { font-size: 13px; }.activity-template-name { font-size: 10px; }.activity-meta { font-size: 9px; left: 8px; }
  .folder-card { min-height: 100px; padding: 16px 12px 30px; }.folder-card h2 { font-size: 13px; }.folder-card p { font-size: 10px; }.folder-up { width: 100%; }
  .site-footer { padding: 15px 20px 20px; }
}
@media (max-width: 420px) {
  .site-nav a#templatesNav { display: none; }.site-header-inner { gap: 8px; }.site-nav { gap: 0; }
  .picker-steps, .picker-steps h1 { font-size: 14px; }.picker-steps { gap: 7px; }.step-chevron { font-size: 20px; }
  .template-thumb { flex-basis: 100px; width: 100px; }.template-thumb > .iq-template-svg { width: 100px; height: 100px; }.template-card .template-copy { padding: 11px 10px 11px 12px; }.template-copy p { font-size: 12px; }
  .library-list { grid-template-columns: minmax(0, 1fr); }.library-card { max-width: 260px; width: 100%; }.folder-card { max-width: 260px; }.folder-up { width: 130px; }
}
@media (prefers-reduced-motion: reduce) { :where(:root:not([data-motion-managed])) .template-card { transition: none; } }/* The player's own "No movement" choice (html[data-reduce-motion], js/motion-preference.js) applies the same rules. */:where(:root[data-reduce-motion]) .template-card { transition: none; }

/* A game being tested (js/store.js isTestingGame): its badge in the picker, and the notice that covers
   the editor for everyone but the site's administrator. */
.template-testing, .testing-pill { display: inline-block; align-self: flex-start; padding: 2px 9px; border: 1px solid #8fb7d6; border-radius: 999px; background: #e7f3fb; color: #17466b; font-size: 12px; font-weight: 800; line-height: 1.5; letter-spacing: .03em; }
.template-testing { margin-top: -2px; }
.testing-gate { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: #f4f7f6; }
.testing-gate-card { display: grid; justify-items: center; gap: 12px; width: min(100%, 460px); padding: 28px 24px; border: 1px solid #d5e2e6; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 10px 30px rgba(23, 73, 75, .1); }
.testing-gate-card h1 { margin: 0; font-size: 24px; line-height: 1.2; color: #17494b; text-wrap: balance; }
.testing-gate-card p { margin: 0; color: #4d6466; }
.testing-gate-card .testing-pill { align-self: center; }

/* Source: css/i18n.css */
.cp-language-switch{display:flex;align-items:center;flex:0 0 auto;border:1px solid #b8c6d0;border-radius:5px;overflow:hidden;background:#fff;margin-left:8px;align-self:center}
.cp-language-switch button{appearance:none;min-width:38px;border:0;background:transparent;color:#405766;padding:6px 8px;font:600 12px/1.25 "ClassPlay Round","PingFang SC","Microsoft YaHei",sans-serif;cursor:pointer;white-space:nowrap;border-radius:0}
.cp-language-switch button+button{border-left:1px solid #d9e2e8}
.cp-language-switch button[aria-pressed=true]{background:#e6efe9;color:#155f69;font-weight:800}
.cp-language-switch button:focus-visible{outline:2px solid #155f69;outline-offset:-3px}
/* The worksheet's language selector stays secondary to its print action. */
.site-page:is(.tools-page,.tracing-page) .cp-language-switch{border-color:#c5d6d3;background:#fff}
.site-page:is(.tools-page,.tracing-page) .cp-language-switch button{color:#52696d;font-family:inherit}
.site-page:is(.tools-page,.tracing-page) .cp-language-switch button[aria-pressed=true]{background:#e6efe9;color:#155f69}
.site-page:is(.tools-page,.tracing-page) .cp-language-switch button:focus-visible{outline-color:#155f69}
html[lang=zh-CN] body{font-family:"ClassPlay Round","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
html[lang=zh-CN] .site-nav{gap:16px}
html[lang=zh-CN] .template-copy h2{line-height:1.5}
html[lang=zh-CN] .template-copy p{line-height:1.65}
html[lang=zh-CN] .editor-steps h1,html[lang=zh-CN] .picker-steps h1{white-space:nowrap}
html[lang=zh-CN] .setting-row label{line-height:1.6}
html[lang=zh-CN] .buzz-hint{line-height:1.65}
html[lang=zh-CN] .launch-button{letter-spacing:0}
@media(max-width:700px){.cp-language-switch{margin-left:auto}.cp-language-switch button{min-width:32px;padding:6px}.site-header-inner{flex-wrap:wrap}.site-header .site-nav{flex-shrink:1}html[lang=zh-CN] .site-nav{gap:12px}}
@media(max-width:400px){.site-header .site-create{padding:6px 8px}.cp-language-switch{margin-left:2px}.site-header-inner{gap:8px}}

/* Source: css/quality.css */
/* Phones must not enlarge text on their own: sizes stay the same on every page and orientation. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* ClassPlay's teacher surfaces. Game scenery and authored content keep their own styles. */
:root {
  --cp-ink: #173b43;
  --cp-muted: #526976;
  --cp-action: #155f69;
  --cp-action-hover: #114e57;
  --cp-teal: #087b72;
  --cp-line: #dfe6dc;
  --cp-paper: #fff;
  --cp-radius: 14px;
  --cp-shadow: 0 4px 20px #163d5010;
}
body.site-page:not(.welcome-page), body.resource-page {
  min-height: 100dvh;
  background: radial-gradient(ellipse at 8% 0%, #e7f4ef 0, transparent 46%) no-repeat, #f7f6ef;
  color: var(--cp-ink);
  font-family: "ClassPlay Round", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html:not([data-community=on]) [data-classroom-nav=community] { display: none !important; }
.site-page .site-header, .resource-page .site-header { background: #fffdf9; border-bottom: 1px solid var(--cp-line); }
.site-header .site-header-inner { box-sizing: border-box; min-height: 72px; gap: 22px; padding: 10px 28px; }
.site-header .site-brand { color: var(--cp-ink); gap: 9px; font-size: 26px; letter-spacing: -.9px; text-decoration: none; }
.site-logo { position: relative; display: block; width: 33px; height: 33px; flex: 0 0 33px; transform: none; }
.site-logo i { position: absolute; display: block; width: 17px; height: 27px; left: 5px; bottom: 3px; opacity: 1; border-radius: 5px 5px 2px 5px; transform-origin: 8px 24px; background: var(--cp-teal); }
.site-logo i:nth-child(1) { transform: rotate(-30deg); background: #a6d9c6; }
.site-logo i:nth-child(2) { transform: rotate(-9deg); background: #eeb697; }
.site-logo i:nth-child(3) { transform: rotate(14deg); background: #247d74; }
.site-logo i:nth-child(4) { width: 8px; height: 9px; left: 12px; bottom: 13px; border-radius: 0; background: #f2c861; clip-path: polygon(0 0,100% 50%,0 100%); transform: rotate(14deg); }
.site-header .site-nav { align-items: center; gap: 8px; }
.site-header .site-nav a, .resource-page .site-header nav a {
  box-sizing: border-box; min-height: 44px; padding: 10px 13px; border: 0; border-radius: 9px; text-decoration: none;
  font: 700 14px/1.35 "ClassPlay Round", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--cp-muted); white-space: nowrap;
}
.site-header .site-nav a:hover { color: var(--cp-action); background: #eef3e8; }
.site-header .site-nav a[aria-current] { color: var(--cp-action); background: #e6efe9; }
.site-page .site-button, .resource-page .site-button {
  min-height: 44px; padding: 10px 16px; border-radius: 9px; border-color: #c5d6d3; text-decoration: none;
  background: #fff; color: var(--cp-ink); font-size: 14px; font-weight: 700; line-height: 1.3;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.site-page .site-button:hover:not(:disabled), .resource-page .site-button:hover:not(:disabled) { background: #eef3e8; border-color: #8fb3a6; }
.site-page:not(.welcome-page) .site-button.primary, .resource-page .site-button.primary,
.resource-page .resource-primary, .resource-page .site-header .site-create {
  color: #fff !important; background: var(--cp-action) !important; border-color: var(--cp-action) !important;
  border-radius: 9px; box-shadow: 0 3px 8px #155f691c;
}
.site-page:not(.welcome-page) .site-button.primary:hover:not(:disabled), .resource-page .site-button.primary:hover:not(:disabled),
.resource-page .resource-primary:hover:not(:disabled) { background: var(--cp-action-hover) !important; border-color: var(--cp-action-hover) !important; }
.site-page :is(button, a, input, select, textarea, summary):focus-visible,
.resource-page :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #155f69; outline-offset: 3px; }
.site-page .site-input, .site-page .site-select { height: 44px; border-color: #c5d6d3; border-radius: 9px; font-size: 15px; }
.site-page .site-input::placeholder { color: #637581; opacity: 1; }
.site-page .site-input:focus, .site-page .site-select:focus { border-color: var(--cp-action); box-shadow: 0 0 0 3px #155f6918; }
.cp-account-nav .cp-account-button, .cp-account-nav .cp-account-signin { min-height: 44px; border-radius: 10px; font-size: 14px; }
.cp-account-nav .cp-account-avatar { border-radius: 8px; background: var(--cp-action); }
.cp-account-nav .cp-account-menu, .lib-context-menu { border-color: var(--cp-line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px #15374724; }
.cp-account-nav .cp-account-menu button, .lib-context-menu button { min-height: 44px; border-radius: 7px; }
.site-header :is(.cp-language-switch, .account-language, .admin-language) { border-radius: 9px; border-color: #c5d6d3; }
.site-header :is(.cp-language-switch, .account-language, .admin-language) button { min-height: 40px; min-width: 42px; font-size: 13px; }
.site-header :is(.cp-language-switch, .account-language, .admin-language) button[aria-pressed=true] { background: #e6efe9; color: var(--cp-action); font-weight: 800; }
.site-page .site-footer { color: var(--cp-muted); font-size: 12px; padding: 24px 20px 28px; }
.site-page .site-dialog { border: 1px solid var(--cp-line); border-radius: 18px; padding: 28px; }
.site-page .site-dialog h2 { color: var(--cp-ink); font-weight: 800; }
.site-page .site-dialog::backdrop { background: #102d4963; }
.site-page .cloud-status { border-radius: 12px; font-size: 14px; padding: 12px 16px; }
.cloud-status .cloud-action { min-height: 40px; padding: 8px 12px; border-radius: 7px; }

/* A calm, legible workbench with the owner's folder colours preserved. */
.activity-library-page .site-main { margin-top: 28px; max-width: 1280px; }
.activity-library-page .library-page .library-heading { border-radius: var(--cp-radius); padding: 26px 28px; box-shadow: var(--cp-shadow); align-items: center; }
.activity-library-page .library-page h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--cp-ink); letter-spacing: -.7px; }
.activity-library-page .library-page .library-tools .site-button { min-height: 44px; border-radius: 9px; border-color: #c5d6d3; color: var(--cp-ink); }
.activity-library-page .library-page .library-search .site-input { height: 44px; border-radius: 9px 0 0 9px; font-size: 15px; }
.activity-library-page .library-page .library-search .site-button { border-radius: 0 9px 9px 0; }
.activity-library-page .library-page .library-view-controls .site-button { min-width: 44px; }
.activity-library-page .library-page .library-view-controls .site-button:first-child { border-radius: 9px 0 0 9px; }
.activity-library-page .library-page .library-view-controls .site-button:last-child { border-radius: 0 9px 9px 0; }
.activity-library-page .library-page .library-view-controls .site-button[aria-pressed=true] { background: #e6efe9; color: var(--cp-action); box-shadow: inset 0 -3px var(--cp-action); }
.activity-library-page .library-page .library-body { margin-top: 18px; padding: 20px 28px 32px; border-radius: var(--cp-radius); box-shadow: var(--cp-shadow); }
.activity-library-page .library-page .library-order-row { gap: 16px; flex-wrap: wrap; font-size: 14px; padding-bottom: 16px; }
.activity-library-page .library-page .library-order-row button { min-height: 40px; padding: 8px 10px; border-radius: 8px; color: var(--cp-muted); }
.activity-library-page .library-page .library-order-row button[aria-pressed=true] { color: var(--cp-action); background: #eef3e8; }
.activity-library-page .library-count { margin: 0 auto 0 0; color: var(--cp-muted); font-size: 13px; line-height: 1.5; }
.activity-library-page .library-page .library-list { gap: 22px 20px; }
.activity-library-page .lib-folder .folder-shape { width: 100%; min-width: 0; aspect-ratio: auto; height: 128px; min-height: 0; }
.activity-library-page .folder-back { border-radius: 9px 13px 12px 12px; }
.activity-library-page .folder-front { border-radius: 9px 9px 12px 12px; box-shadow: inset 0 1px #ffffff45, 0 2px 6px #1537470a; }
.activity-library-page .lib-folder-link { transition: transform .2s ease; }
.activity-library-page .lib-folder-link:hover { transform: translateY(-4px); }
.activity-library-page .lib-folder .lib-name { font-size: 17px; line-height: 1.35; }
.activity-library-page .lib-folder .lib-sub { font-size: 13px; color: #173b43; }
.activity-library-page .lib-activity { border-color: var(--cp-line); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 9px #15374709; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.activity-library-page .lib-activity:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #15374716; border-color: #9dbcae; }
.activity-library-page .lib-thumb { border-bottom-color: var(--cp-line); }
.activity-library-page .lib-info { min-height: 92px; padding: 13px 58px 14px 14px; gap: 7px; }
.activity-library-page .lib-activity .lib-name { font-size: 15px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.activity-library-page .lib-activity .lib-sub { color: var(--cp-muted); font-size: 13px; }
.activity-library-page .lib-menu-button { width: 44px; height: 44px; border-radius: 8px; border-color: #b5c7bf; }
.activity-library-page .lib-activity .lib-menu-button { bottom: 14px; right: 10px; }
.activity-library-page .library-list[data-view=small] .folder-shape { height: 112px; min-height: 0; }
.activity-library-page .library-list[data-view=small] .lib-info { min-height: 88px; padding-right: 54px; }
.activity-library-page .library-list[data-view=small] .lib-menu-button { width: 40px; height: 40px; }
.activity-library-page .library-list[data-view=small] .lib-folder .lib-name { font-size: 14px; }
.activity-library-page .library-list[data-view=small] .lib-folder .lib-sub { font-size: 12px; }
.activity-library-page .library-list[data-view=small] .folder-front { padding-right: 48px; }
.site-page .template-card { border-color: var(--cp-line); border-radius: 12px; box-shadow: 0 3px 9px #15374709; }
.site-page .template-card:hover { border-color: #9dbcae; box-shadow: 0 7px 20px #15374712; }
.site-page .template-copy h2 { color: var(--cp-ink); font-weight: 800; }
.site-page .template-copy p { color: var(--cp-muted); }
.site-page .picker-toolbar { padding-top: 28px; }
.site-page .picker-steps h1 { font-weight: 800; color: var(--cp-ink); }

/* Authoring uses the same type and controls; learning content itself is untouched. */
.site-page.editor-page :is(button, input, textarea, select) { font-family: inherit; }
.site-page.editor-page .editor-main, .site-page.editor-page .editor-sheet { background: #fffdf9; border: 1px solid var(--cp-line); border-radius: 18px; box-shadow: var(--cp-shadow); }
.editor-page .item-panel, .editor-page .group-editor { background: #f5f6ef; border: 1px solid #e3e8de; border-radius: 14px; padding: 16px; }
.editor-page .editor-input-box { border-color: #c5d6d3; border-radius: 8px; overflow: hidden; }
.editor-page .editor-input-box:focus-within { border-color: var(--cp-action); box-shadow: 0 0 0 3px #155f6916; }
.editor-page .field-media-btn { width: 44px; height: 44px; border-radius: 7px; }
.editor-page .field-media-btn:hover, .editor-page .field-media-btn.attached { color: var(--cp-action); background: #e6efe9; }
.editor-page #previewBtn { color: var(--cp-ink); }
.editor-page .answer-state { min-width: 36px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #c2d1ca; background: #fff; color: #738680; font-size: 16px; font-weight: 900; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.editor-page .answer-state:hover { border-color: #1e7a52; background: #edf6f0; color: #1e7a52; }
.editor-page .answer-correct .answer-state { background: #1e7a52; border-color: #1e7a52; color: #fff; box-shadow: 0 2px 0 #135337; }
.editor-page .answer-wrong .answer-state { background: #fff6f5; border-color: #e0bab6; color: #b54b43; }
.editor-page .editor-footer .editor-done { border-radius: 10px; min-height: 44px; font-weight: 800; }
.editor-page .answer-remove { width: 36px; height: 36px; min-width: 36px; display: grid; place-items: center; }
.editor-page .field-picture { background: #faf8f3; border-right: 1px solid #dfe6dc; padding: 5px 34px 5px 5px; min-height: 72px; box-sizing: border-box; gap: 4px; }
.editor-page .field-picture img { width: 72px; height: 62px; max-width: 100%; max-height: 62px; object-fit: contain; border-radius: 6px; background: #fff; }
.editor-page .field-picture button { width: 26px; height: 26px; min-width: 26px; min-height: 26px; top: 4px; right: 4px; padding: 0; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid #d5e0da; color: #52696d; }
.editor-page .field-picture button:hover { background: #edf4ef; color: #155f69; border-color: #9dbcae; }
.editor-page .field-picture .adjust-picture { top: auto; bottom: 4px; right: 4px; font-size: 16px; color: #155f69; }
.editor-page .group-remove, .editor-page .group-image-button { min-width: 36px; min-height: 36px; }
.editor-page .add-content, .editor-page .add-answer { min-height: 44px; border-radius: 8px; color: var(--cp-action); }
.editor-page .field-format { border-radius: 7px; overflow: hidden; }
.site-page.account-page { min-height: 100dvh; background: radial-gradient(ellipse at 15% 5%, #e4f3ec, transparent 55%) no-repeat, #f7f6ef; }
.account-page .account-layout { box-shadow: 0 12px 45px #163d5010; border-color: var(--cp-line); }
.account-page .account-explainer { background: linear-gradient(155deg, #e6f3ef, #eef3ec); }
.resource-page .resource-info, .resource-page .resource-settings, .resource-page .resource-sidebar>section { border-radius: 12px; border-color: var(--cp-line); }
.resource-page .resource-info h1, .resource-page .resource-details h1 { font-family: "ClassPlay Round", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 800; color: var(--cp-ink); }
.resource-page .resource-details, .resource-page .resource-options { border-radius: 16px; border-color: var(--cp-line); background: #fffdf9; box-shadow: 0 4px 20px #163d5008; }
.resource-page .resource-details { min-height: 0; padding: 18px 22px; align-items: center; }
.resource-page .resource-details > div:first-child { flex: 1 1 220px; min-width: 0; }
.resource-page .resource-details h1 { margin: 0 0 4px; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
.resource-page .resource-actions { gap: 6px; }
.resource-page .resource-actions :is(a, button) { min-height: 40px; }
.resource-page .resource-actions a, .resource-page .resource-actions button:not(.resource-primary) { font: 700 13.5px/1.3 "ClassPlay Round", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--cp-action); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.resource-page .resource-actions a:hover, .resource-page .resource-actions button:not(.resource-primary):hover { background: #eef3e8; }
.resource-page .resource-tabs { border-bottom-color: var(--cp-line); gap: 20px; }
.resource-page .resource-tabs button { font: 700 15px/1.3 "ClassPlay Round", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--cp-muted); }
.resource-page .resource-tabs [aria-selected=true] { border-bottom-color: var(--cp-action); color: var(--cp-action); font-weight: 800; }
.resource-page .resource-options > [role=tabpanel] > h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.resource-page #settingsBody { margin-top: 14px; }
.resource-page #leaderboardPanel { padding-top: 14px; }
.resource-page .setting-row input[type=range], .resource-page .setting-row input[type=checkbox] { accent-color: var(--cp-action); }
.resource-page .setting-row select { min-height: 40px; min-width: 170px; padding: 7px 10px; border-radius: 8px; border-color: #c5d6d3; font-family: inherit; color: var(--cp-ink); }
.resource-page .settings-actions button:not(.resource-primary) { min-height: 44px; padding: 10px 16px; border-radius: 9px; border: 1px solid #c5d6d3; background: #fff; color: var(--cp-ink); font: 700 14px/1.3 "ClassPlay Round", "PingFang SC", "Microsoft YaHei", sans-serif; }
.resource-page .settings-actions button:not(.resource-primary):hover { background: #eef3e8; border-color: #8fb3a6; }
.resource-page .resource-sidebar section[hidden] { display: none !important; }
.resource-page .resource-sidebar section:has(#visualStyles[hidden]) .font-label { margin-top: 0; }
.resource-page .font-label { color: var(--cp-muted); font-weight: 800; letter-spacing: .06em; }
.resource-page .resource-more-menu { border-radius: 12px; border-color: var(--cp-line); padding: 6px; box-shadow: 0 10px 30px #15374720; }
.resource-page .resource-actions .resource-more-menu button { border-radius: 7px; font: 600 14px/1.3 "ClassPlay Round", "PingFang SC", "Microsoft YaHei", sans-serif !important; color: var(--cp-ink) !important; }
.resource-page .resource-actions .resource-more-menu button:hover { background: #eef3e8; color: var(--cp-action) !important; }
.resource-page .resource-sidebar .template-switch { border-radius: 8px; }
.resource-page .resource-main>.activity-player { border-radius: 14px; box-shadow: 0 8px 28px #13364b1c; }
.resource-page .activity-player:fullscreen { border-radius: 0; }
#activityPlayer #gameStage :is(.pair-face-picture, .quiz-choice-content, .hm-clue-picture, .dt-picture, .fl-face .pair-face-picture) img,
#activityPlayer #gameStage #agImage { border-radius: 10px; }
@media(min-width:760px) {
  .resource-page .resource-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; }
  .resource-page .resource-details #imageCredits { grid-column: 1 / -1; width: auto; }
  .resource-page .resource-actions { flex-wrap: nowrap; flex-shrink: 0; }
  .resource-page #settingsBody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; align-items: center; }
  .resource-page #settingsBody > .set-sec,
  .resource-page #settingsBody > .setting-note { grid-column: 1 / -1; }
  .resource-page #settingsBody > .set-sec { margin-top: 6px; padding-top: 12px; }
  .resource-page #settingsBody > .set-sec:first-child { margin-top: 0; padding-top: 4px; }
  .resource-page #settingsBody > .setting-row { max-width: none; gap: 12px; justify-content: space-between; }
  .resource-page #settingsBody > .setting-row > label:first-child { width: auto; flex: 1 1 140px; }
  .resource-page #settingsBody > .setting-note { max-width: none; margin: 2px 0 8px; }
}

@media(max-width:1100px) {
  .site-header .site-header-inner { gap: 12px; padding-inline: 20px; flex-wrap: wrap; }
  .site-header .site-nav { gap: 3px; }
  .site-header .site-nav a { padding-inline: 9px; }
  .activity-library-page .library-page .library-tools { justify-content: flex-start; }
}
@media(max-width:760px) {
  .site-header .site-header-inner { min-height: 64px; padding: 12px 16px; gap: 10px; }
  .site-header .site-brand { font-size: 24px; }
  .site-header .site-nav { order: 5; flex-basis: 100%; min-height: 44px; flex-wrap: wrap; justify-content: space-between; margin: 0; gap: 2px; }
  .site-header .site-nav a, .resource-page .site-header nav a { font-size: 13px; padding-inline: 10px; }
  .site-header .site-create { margin-left: auto; }
  .site-header .cp-account-nav { margin-left: 0; }
  .site-header .cp-language-switch { margin-left: auto; }
  .activity-library-page .site-main { width: calc(100% - 24px); margin-top: 18px; }
  .activity-library-page .library-page .library-heading { padding: 22px 18px; }
  .activity-library-page .library-page .library-body { padding: 16px 18px 24px; }
  .activity-library-page .library-page .library-tools { gap: 10px; }
  .activity-library-page .library-page .library-search { flex: 1 1 100%; order: 3; }
  .activity-library-page .library-page .library-search .site-input { width: 100%; }
  .activity-library-page .library-page .library-order-row { gap: 4px; }
  .activity-library-page .library-order-label { flex-basis: 100%; margin: 0 0 2px; }
  .activity-library-page .library-count { flex-basis: 100%; margin-bottom: 8px; }
  .activity-library-page .library-page .library-list { gap: 18px 14px; }
  .editor-page .editor-input-box { grid-template-columns: minmax(0,1fr) 44px; }
  .editor-page .field-format { height: 42px; }
  .editor-page .field-format button { width: 40px; height: 40px; line-height: 40px; }
  .editor-page .answer-state { width: 40px; min-width: 40px; height: 40px; }
  .editor-page .answer-remove { width: 36px; min-width: 36px; }
  .editor-page .answer-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:420px) {
  .site-header .site-create { font-size: 13px; padding: 10px 12px; }
  .cp-account-nav .cp-account-label { max-width: 96px; }
  .activity-library-page .library-page .library-order-row { justify-content: space-between; }
  .activity-library-page .library-page .library-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 10px; }
  .activity-library-page .lib-folder .lib-name { font-size: 14px; }
  .activity-library-page .folder-front { padding: 12px 48px 10px 11px; }
  .activity-library-page .lib-folder .lib-sub { font-size: 12px; }
  .activity-library-page .lib-info { min-height: 108px; padding: 11px 12px 52px; }
  .activity-library-page .lib-activity .lib-name { font-size: 14px; }
  .activity-library-page .lib-menu-button { width: 40px; height: 40px; }
  .activity-library-page .lib-activity .lib-menu-button { bottom: 8px; right: 8px; }
  .activity-library-page .library-list[data-view=small] .lib-info { padding: 10px 10px 50px; }
  .editor-page .item-panel { padding: 12px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  :where(:root:not([data-motion-managed])) .site-page .site-button, :where(:root:not([data-motion-managed])) .site-page .template-card, :where(:root:not([data-motion-managed])) .activity-library-page .lib-activity, :where(:root:not([data-motion-managed])) .activity-library-page .lib-folder-link { transition: none; }
  :where(:root:not([data-motion-managed])) .activity-library-page .lib-activity:hover, :where(:root:not([data-motion-managed])) .activity-library-page .lib-folder-link:hover { transform: none; }
}
/* The player's own "No movement" choice (html[data-reduce-motion], js/motion-preference.js) applies the same rules. */
:where(:root[data-reduce-motion]) .site-page .site-button, :where(:root[data-reduce-motion]) .site-page .template-card, :where(:root[data-reduce-motion]) .activity-library-page .lib-activity, :where(:root[data-reduce-motion]) .activity-library-page .lib-folder-link { transition: none; }
:where(:root[data-reduce-motion]) .activity-library-page .lib-activity:hover, :where(:root[data-reduce-motion]) .activity-library-page .lib-folder-link:hover { transform: none; }
@media(forced-colors:active) {
  .site-page .site-button.primary, .resource-page .resource-primary { border: 2px solid ButtonText !important; }
  .site-header .site-nav a[aria-current] { outline: 2px solid LinkText; }
  .folder-front, .folder-back { border: 1px solid CanvasText; }
}
/* Footer links to the privacy notice, terms and contact address on every teacher page. */
.site-footer .site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 6px; }
.site-footer .site-footer-links a { color: var(--cp-ink); font-weight: 700; text-decoration: none; }
.site-footer .site-footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Source: css/welcome.css */
/* Shared by the welcome page, About and the not-found page: the top bar, buttons, the picture card
   (not-found page), the closing band and the footer. The welcome page's own sections are in welcome-home.css. */
.welcome-page{--welcome-ink:#173b43;--welcome-muted:#4e6265;--welcome-paper:#fffdf6;--welcome-teal:#167665;--welcome-action:#155f69;--welcome-line:#dbe3db}
body.welcome-page{background:var(--welcome-paper);color:var(--welcome-ink);font-family:"ClassPlay Round","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:16px}
.welcome-page [hidden]{display:none!important}.welcome-page *,.welcome-page *::before,.welcome-page *::after{box-sizing:border-box}
.welcome-page .site-header{position:relative;background:var(--welcome-paper);border-bottom:1px solid var(--welcome-line)}
.welcome-page .site-header-inner{max-width:1440px;padding:14px 48px;min-height:74px;gap:24px;flex-wrap:wrap}
.welcome-page .site-brand{color:var(--welcome-ink);position:relative;gap:9px;font-size:26px;letter-spacing:-1px;min-height:44px;min-width:44px;text-decoration:none}
.welcome-brand-note{position:static;margin-left:6px;padding-left:11px;border-left:1px solid #cbd9ce;font-size:12.5px;font-weight:700;letter-spacing:.01em;line-height:1.2;white-space:nowrap;color:var(--welcome-muted)}
@media(max-width:1080px){.welcome-brand-note{display:none}}
.welcome-section-nav{display:flex;gap:24px;margin-left:auto}.welcome-section-nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--welcome-ink);font-size:14px;font-weight:700;text-decoration:none;padding:12px 0}
.welcome-section-nav a:hover{text-decoration:underline;text-underline-offset:5px}.welcome-account{display:flex;align-items:center;gap:9px}
.welcome-page .site-button{min-height:44px;border-radius:8px;border:1px solid #c5d6d3;background:transparent;font:700 14px/1.3 "ClassPlay Round","PingFang SC","Microsoft YaHei",system-ui,sans-serif;padding:10px 17px;color:var(--welcome-ink)}
.welcome-page .site-button.primary{background:var(--welcome-action);border-color:var(--welcome-action);color:#fff}
.welcome-page .site-button:hover{background:#eaf3ed}.welcome-page .site-button.primary:hover{background:#114e57}
.welcome-page .cp-language-switch{margin-left:0;align-self:center;border:1px solid #c5d6d3;border-radius:8px;background:transparent}
.welcome-page .cp-language-switch button{min-height:44px;min-width:44px;font:700 13px/1.2 "ClassPlay Round","PingFang SC","Microsoft YaHei",system-ui,sans-serif;padding:8px;color:var(--welcome-muted)}
.welcome-page .cp-language-switch button[aria-pressed=true]{background:#e6efe9;color:var(--welcome-action);font-weight:800;border-radius:7px}
.welcome-page :is(a,button,summary):focus-visible{outline:3px solid #a56b12;outline-offset:5px}
.welcome-page .cp-language-switch button:focus-visible{outline:3px solid var(--welcome-ink);outline-offset:-4px}
.welcome-page .cp-language-switch button[aria-pressed=true]:focus-visible{outline-color:var(--welcome-ink)}
.welcome-main{width:100%;max-width:1344px;margin:auto;padding:0 48px}
.welcome-button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:54px;padding:15px 23px;border-radius:12px;background:#fff;border:1px solid #c5d6d3;color:var(--welcome-ink);font:800 15px/1.4 "ClassPlay Round","PingFang SC","Microsoft YaHei",system-ui,sans-serif;text-decoration:none;transition:background .18s,translate .18s,box-shadow .18s}
.welcome-button.primary{color:#fff;background:var(--welcome-action);border-color:var(--welcome-action);box-shadow:0 4px 0 #0a424c}
.welcome-button.primary:hover{background:#114e57;translate:0 -2px;box-shadow:0 6px 0 #0a424c}.welcome-button.primary:active{translate:0 2px;box-shadow:0 2px 0 #0a424c}
.welcome-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.welcome-motion-paused :is(.welcome-button):hover{translate:none}
/* CSS/SVG learning objects. No image downloads or canvas animation loop. */.piece-card{left:10%;top:56px;width:49%;padding:17px 18px 13px;border-radius:14px;background:#fffdf4;border:1px solid #ccdbcd;box-shadow:0 6px 0 #bdcab8,0 19px 30px #213c3120;rotate:-8deg;animation:welcome-card-float 7s ease-in-out infinite}
.piece-card-heading{display:flex;justify-content:space-between;gap:8px;padding-bottom:13px;border-bottom:1px solid #e6e8d7;font-size:11px;font-weight:800;color:#596956}
.piece-picture{height:176px;display:grid;place-items:center;background:#f3eedc;border-radius:9px;margin:13px 0 12px}.piece-picture svg{height:100%;width:100%;max-width:200px}
.piece-card b{display:block;font-weight:900;font-size:33px;line-height:1;text-align:center;letter-spacing:-.8px;color:var(--welcome-ink)}
.piece-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#687365;font-weight:700;padding-top:17px}.piece-card-footer svg{width:22px;height:22px}
@keyframes welcome-card-float{0%,100%{translate:0 0}50%{translate:0 -8px}}
.welcome-eyebrow{color:#317162;font-size:13px;font-weight:900;letter-spacing:.07em;margin:0 0 13px}
.welcome-main h2{margin:0;font-size:clamp(29px,3vw,41px);font-weight:900;line-height:1.14;letter-spacing:-1.3px;color:var(--welcome-ink)}
.welcome-closing{display:flex;align-items:center;gap:30px;padding:38px 40px;margin-bottom:66px;border-radius:16px;background:#173f45;color:#fffdf0}
.closing-star{font-size:55px;color:#e7bb62;line-height:1}.welcome-closing .welcome-eyebrow{color:#bdd7b2;font-size:12px;margin-bottom:8px}.welcome-closing h2{color:#fffdf0;font-size:28px;letter-spacing:-.8px}
.welcome-closing .welcome-button{margin-left:auto;flex:none;background:#fffdf0;border-color:#fffdf0;color:#173f45;box-shadow:0 4px 0 #0d292e}.welcome-closing .welcome-button:hover{background:#f1ebda}
.welcome-page .welcome-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:1344px;margin:auto;padding:0 48px 31px;font-size:13px;color:var(--welcome-muted);text-align:left}
.welcome-footer a{color:var(--welcome-ink);text-decoration:none;font-weight:800;min-height:44px;display:flex;align-items:center}.welcome-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.welcome-footer-brand{gap:8px;font-size:18px;letter-spacing:-.6px}.welcome-footer p{margin:0}
@media(max-width:1100px){
 .welcome-page .site-header-inner{padding:19px 30px;gap:18px}.welcome-main{padding:0 30px}.welcome-section-nav{gap:16px}.piece-card{top:56px;padding:14px}.piece-picture{height:150px}.welcome-page .welcome-footer{padding:0 30px 25px}
}
@media(max-width:900px){
 .welcome-brand-note,.welcome-section-nav{display:none}.welcome-account{margin-left:auto}.piece-card{left:6%;width:54%;top:50px}.piece-picture{height:116px}.piece-card b{font-size:26px}.piece-card-footer{font-size:8px;padding-top:13px}
 .welcome-closing{gap:20px;padding:29px}.welcome-closing h2{font-size:24px}.closing-star{font-size:44px}.welcome-closing .welcome-button{font-size:13px;padding:13px 16px}
}
@media(max-width:700px){
 .welcome-page .site-header-inner{min-height:84px;padding:15px 20px;gap:12px}.welcome-main{padding:0 22px}
 .welcome-page .site-brand{font-size:23px}.welcome-page .site-button{font-size:13px;padding:9px 11px}.welcome-page .cp-language-switch button{font-size:12px}.piece-card{width:49%;left:12%;top:40px;padding:15px}.piece-picture{height:132px}
 .piece-card-heading{font-size:10px}.piece-card b{font-size:30px}.piece-card-footer{font-size:9px}.welcome-main h2{font-size:32px}.welcome-closing{flex-wrap:wrap;margin-bottom:40px}.welcome-closing h2{font-size:25px}
 .welcome-closing .welcome-button{margin-left:0;width:100%}.welcome-page .welcome-footer{padding:0 22px 24px;flex-wrap:wrap;gap:10px 20px}
 .welcome-footer p{order:3;flex-basis:100%}.welcome-footer>a:last-child{margin-left:auto}
}
/* Two deliberate rows keep the full account actions and language controls
   comfortably tappable on phones, including the longer signed-in label. */
@media(max-width:520px){
 .welcome-page .site-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
 .welcome-page .site-brand{grid-column:1;grid-row:1;justify-self:start}
 .welcome-page .cp-language-switch{grid-column:2;grid-row:1;margin-left:0}
 .welcome-account{grid-column:1/-1;grid-row:2;margin-left:0;gap:10px}
 .welcome-account .site-button{flex:1;min-width:0}
}
@media(max-width:460px){
 .welcome-page .site-header-inner{padding:14px 16px;gap:9px}.welcome-account{gap:6px}.welcome-page .site-brand{font-size:21px}
 .welcome-page .site-button{padding:9px 10px;font-size:13px}.welcome-page .cp-language-switch{margin-left:auto}
 .welcome-main{padding:0 18px}
 .welcome-button{font-size:14px;padding:14px 19px;gap:14px}.piece-card{width:50%;left:9%;top:48px;padding:12px}.piece-picture{height:116px}
 .piece-card-heading{font-size:9px;padding-bottom:9px}.piece-card b{font-size:26px}.piece-card-footer{font-size:8px;padding-top:12px}
 .welcome-main h2{font-size:29px;letter-spacing:-.9px}
 .welcome-closing{padding:27px 23px;gap:18px}.closing-star{font-size:36px}.welcome-closing>div{flex:1}.welcome-closing h2{font-size:23px}.welcome-closing .welcome-eyebrow{font-size:12px}
 .welcome-page .welcome-footer{padding:0 18px 25px;font-size:12px}
}
@media(max-width:350px){.piece-picture{height:102px}.piece-card-footer{font-size:7px}}
/* 5.29: page rhythm, calmer type scale and a one-row phone header. */
body.welcome-page{overflow-x:clip}
.piece-card{cursor:pointer}
.piece-card-inner{display:block}
/* Full-width tinted bands give the middle of the page a rhythm. */
.welcome-band{position:relative;isolation:isolate}
.welcome-band::before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;background:var(--welcome-band,#f1f5ea)}
.welcome-main .welcome-closing{margin-top:76px}
.welcome-closing h2{margin:0}
.welcome-closing-lead{margin:8px 0 0;color:#cfe0c8;font-size:16px;line-height:1.5}
.welcome-page .welcome-footer{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr) auto;align-items:center;gap:18px 32px;padding:32px 48px 40px;border-top:1px solid var(--welcome-line);font-size:14px}
.welcome-page .welcome-footer:where(:not(:has(.welcome-footer-top))){grid-template-columns:minmax(270px,340px) minmax(0,1fr)}
.welcome-footer-about{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.welcome-footer-about a{min-height:32px;white-space:nowrap}
.welcome-footer-about p{max-width:34ch;line-height:1.5}
.welcome-footer-brand .site-logo{transform:scale(.82);transform-origin:left center;margin-right:-3px}
.welcome-footer-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 20px}
.welcome-page .welcome-footer:where(:not(:has(.welcome-footer-top))) .welcome-footer-links{justify-content:flex-end}
.welcome-footer-links a{font-weight:700}
.welcome-footer-links a.welcome-footer-legal{color:var(--welcome-muted);font-weight:600;font-size:13px}
.welcome-footer-top{white-space:nowrap}
@media(min-width:701px){.welcome-footer-links a.welcome-footer-legal:first-of-type{padding-left:18px;border-left:1px solid var(--welcome-line)}}
@media(max-width:1180px){.welcome-page .welcome-footer{grid-template-columns:minmax(0,1fr) auto;padding:30px 30px 34px}.welcome-footer-links{grid-column:1/-1;grid-row:2;justify-content:flex-start}}
@media(max-width:700px){
 .welcome-closing .welcome-button{width:auto}
 .welcome-footer p{order:0;flex-basis:auto}
}
@media(max-width:520px){
 .welcome-page .site-header-inner{display:flex;flex-wrap:nowrap;gap:8px}
 .welcome-account{grid-column:auto;grid-row:auto;margin-left:auto;gap:6px}
 .welcome-account .site-button{flex:none}
 .welcome-page .cp-language-switch{grid-column:auto;grid-row:auto;margin-left:0}
 .welcome-page .cp-language-switch button[aria-pressed=true]{display:none}
}
@media(max-width:460px){
 .welcome-page .site-header-inner{min-height:72px}
 .welcome-page .welcome-footer{grid-template-columns:minmax(0,1fr);padding:26px 18px 30px}.welcome-footer-links{grid-row:auto;gap:0 18px}.welcome-footer-top{justify-self:start}
}
@media(max-width:350px){.welcome-page .site-header-inner{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.welcome-page:not(.welcome-motion-enabled) *,.welcome-page:not(.welcome-motion-enabled) *::before,.welcome-page:not(.welcome-motion-enabled) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.welcome-page:not(.welcome-motion-enabled) .welcome-button:hover{translate:none}}

/* The closing band rises gently into view once (js/welcome.js); without JavaScript or with motion off it is simply there. */
.welcome-reveal-ready .welcome-closing{transition:opacity .25s ease-out,translate .25s cubic-bezier(.2,.7,.2,1)}
.welcome-reveal-ready.welcome-motion-enabled .welcome-closing:not(.is-revealed){opacity:0;translate:0 10px}
/* The closing band on phones, in Chinese: the question keeps a width of its own, so the button moves
   to the next line as it does in English (the question had been squeezed to two characters a line),
   and the question breaks only at its comma, never inside a word. */
@media(max-width:460px){.welcome-closing>div{flex:1 1 9em}}
@media(max-width:520px){html[lang="zh-CN"] .welcome-closing>div{flex:1 1 13em}}
@media(max-width:460px){html[lang="zh-CN"] .welcome-closing h2{font-size:min(31px,7vw)}}
html[lang="zh-CN"] .welcome-closing h2{text-wrap:balance;word-break:keep-all;overflow-wrap:anywhere}

/* Source: css/welcome-live.css */
/* Shared by the welcome page, About and the not-found page; loads after welcome.css and only adds
   to it: the headline face, the closing band's and footer's drawn glyphs, the picture card on the
   not-found page, and the top bar's Menu button on phones. The welcome page's own sections are in
   welcome-home.css. */

/* 1. Headline face. Baloo 2, Latin subset only (37 KB); Chinese headlines keep the system face. */
@font-face{font-family:"ClassPlay Headline";src:url("../assets/fonts/Baloo2-Variable-latin.woff2") format("woff2");font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2018-2019,U+201C-201D,U+2022,U+2026}
.welcome-page{--welcome-headline:"ClassPlay Headline","ClassPlay Round","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.welcome-main h2,.welcome-closing h2{font-family:var(--welcome-headline);font-weight:800;letter-spacing:-.4px}
.welcome-main h2{font-size:clamp(31px,3.3vw,46px);line-height:1.08}
html[lang="zh-CN"] .welcome-main h2,html[lang="zh-CN"] .welcome-closing h2{letter-spacing:0;font-weight:900}

/* 2. Room to breathe on wide screens. */
.welcome-main,.welcome-page .welcome-footer{max-width:1440px}
@media(min-width:1200px){.piece-card{width:47%}}

/* 3. Glyphs drawn, not typed. */
.closing-star{width:56px;height:56px;flex:none;color:#e7bb62}
.welcome-footer-brand svg{width:20px;height:20px;color:#ad7b2d}
.welcome-footer-top{gap:6px}.welcome-footer-top svg{width:18px;height:18px}

/* 4. The picture card on the not-found page: the sun's rays turn and its eyes blink. */
.piece-card{cursor:pointer}
.hero-sun-rays{transform-box:fill-box;transform-origin:center;animation:welcome-rays 24s linear infinite}
.hero-sun-eyes{transform-box:fill-box;transform-origin:center;animation:welcome-blink 5.2s ease-in-out infinite}
@keyframes welcome-rays{to{rotate:360deg}}
@keyframes welcome-blink{0%,92%,100%{scale:1 1}95%{scale:1 .1}}

/* 5. Top bar on phones and small tablets: section links and Log in behind one Menu button. */
.welcome-menu-toggle{display:none;order:9}
.welcome-nav-login{display:none!important}
.welcome-narrow-only{display:none}
@media(max-width:900px){
  .welcome-page .site-header-inner{position:relative}
  .welcome-menu-toggle{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:1px solid #c5d6d3;border-radius:10px;background:transparent;color:var(--welcome-ink);cursor:pointer}
  .welcome-menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .welcome-menu-toggle:focus-visible{outline:3px solid var(--welcome-ink);outline-offset:2px}
  .welcome-menu-open .welcome-menu-toggle{background:#edf4ef}
  .welcome-page .site-header-inner.welcome-menu-open .welcome-section-nav{display:grid;position:absolute;z-index:90;top:calc(100% - 6px);left:12px;right:12px;gap:2px;margin:0;padding:8px;background:#fffdf6;border:1px solid #d7e3d9;border-radius:14px;box-shadow:0 14px 34px #15374726}
  .welcome-menu-open .welcome-section-nav a{padding:12px 14px;border-radius:10px;font-size:15px}
  .welcome-menu-open .welcome-section-nav a:hover{background:#eef4ec;text-decoration:none}
}
@media(max-width:520px){
  .welcome-menu-open .welcome-nav-login:not([hidden]){display:flex!important;border-top:1px solid #e3ebe6;border-radius:0 0 10px 10px;margin-top:4px}
  .welcome-account a[href*="mode=login"]{display:none}
  .welcome-wide-only{display:none}.welcome-narrow-only{display:inline}
  .welcome-page .site-header-inner{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
  .welcome-page .site-brand{margin-right:auto;min-width:0}
  .welcome-account{margin-left:0;gap:6px}
  .welcome-account .site-button{flex:none}
}
/* The bar and its menu sit above the page. */
.welcome-page .site-header{position:relative;z-index:20}

/* Source: css/about.css */
/* About and not-found pages. They borrow the welcome page's header, footer and
   headline face, and keep their own quiet layout. */
.about-main,.lost-main{padding-top:0}
.about-hero{max-width:820px;padding:72px 0 44px}
.about-hero h1,.lost-copy h1{margin:0;font-family:var(--welcome-headline);font-weight:800;font-size:clamp(36px,4.4vw,62px);line-height:1.04;letter-spacing:-1px;color:var(--welcome-ink)}
html[lang="zh-CN"] .about-hero h1,html[lang="zh-CN"] .lost-copy h1{letter-spacing:0;font-weight:900}
.about-lead{margin:24px 0 0;max-width:640px;color:var(--welcome-muted);font-size:19px;line-height:1.6;font-weight:500}
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0 0 64px}
.about-card{position:relative;padding:28px 28px 30px;border:1px solid #d8e2d9;border-radius:16px;background:#fff;color:var(--welcome-ink);display:flex;flex-direction:column;gap:12px}
.about-card>svg{width:46px;height:46px;color:#2d5f55;fill:none}
.about-card h2{margin:4px 0 0;font-size:22px;line-height:1.2}
.about-card p{margin:0;color:var(--welcome-muted);font-size:15px;line-height:1.65}
.about-card a{margin-top:auto;padding-top:6px;color:var(--welcome-teal);font-weight:800;font-size:14px;text-decoration:none}
.about-card a:hover{text-decoration:underline;text-underline-offset:4px}
.welcome-main .about-story{--welcome-band:#edf3e6;padding:72px 0 76px;margin:0 0 72px}
.about-story-inner{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:48px;align-items:start}
.about-story-copy p{margin:0 0 18px;color:var(--welcome-muted);font-size:17px;line-height:1.7}
.about-story-copy p:last-child{margin:26px 0 0}
.about-story-copy .welcome-button{gap:12px}
/* Not found */
.lost-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:center;padding:56px 0 96px;min-height:60vh}
.lost-card{position:relative;display:grid;place-items:center;min-height:360px}
.lost-card::before{content:"";position:absolute;inset:10% 8%;background:#e7efe3;border-radius:49% 51% 48% 52%;rotate:-8deg}
.lost-piece{position:relative;width:min(100%,300px);rotate:-6deg;animation:welcome-card-float 7s ease-in-out infinite}
.lost-piece b{display:block;font-weight:900;font-size:33px;line-height:1;text-align:center;letter-spacing:-.8px;color:var(--welcome-ink)}
.lost-piece .piece-picture{margin:13px 0 12px}
.lost-copy .about-lead{margin-top:18px}
.lost-links{display:flex;flex-wrap:wrap;gap:10px;margin:30px 0 0}
.lost-links .welcome-button{padding:13px 18px;gap:10px}
.lost-help{margin:28px 0 0;color:var(--welcome-muted);font-size:14px;line-height:1.6;max-width:520px}
.lost-help a{color:var(--welcome-ink);font-weight:800}
@media(min-width:901px) and (max-width:1200px){
  .lost-hero{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:32px}
  .lost-links .welcome-button{padding:11px 14px;font-size:14px;gap:8px}
}
@media(max-width:900px){
  .about-hero{padding:48px 0 32px}.about-grid{grid-template-columns:minmax(0,1fr);padding-bottom:48px}
  .welcome-main .about-story{padding:52px 0 56px;margin-bottom:48px}.about-story-inner{grid-template-columns:minmax(0,1fr);gap:22px}
  .lost-hero{grid-template-columns:minmax(0,1fr);gap:20px;padding:32px 0 64px}.lost-card{min-height:300px;order:2}
}
@media(max-width:460px){.about-lead{font-size:17px}.about-card{padding:22px}.lost-links .welcome-button{width:100%}}

/* Short pages keep the footer at the bottom of the window. */
body.lost-page{min-height:100vh;display:flex;flex-direction:column}body.lost-page .lost-main{flex:1}
