*{box-sizing:border-box}body{margin:0;min-height:100svh;font-family:"Segoe UI","Nirmala UI",sans-serif;color:#103751;background:radial-gradient(ellipse at top,#fff6c7,transparent 58%),linear-gradient(#b5e8ff,#e5f7d0);text-align:center}button{font:inherit;cursor:pointer}button:focus-visible{outline:4px solid #6b27b6;outline-offset:4px}header{padding:16px 14px 0}.toolbar{display:flex;justify-content:center;align-items:center;gap:22px}.toolbar button{background:#a32258;color:white;border:2px solid white;border-radius:28px;padding:9px 18px;box-shadow:0 3px #672143}.toolbar #language{background:#027cae;box-shadow:0 3px #004f78}h1{font-size:clamp(28px,4vw,44px);margin:16px 0;color:#754200}#sets{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}#sets button{border:2px solid #d8a329;border-radius:20px;padding:7px 14px;background:#fff9db;color:#553b14;font-weight:700}#sets button[aria-current=true]{background:#ffc83d;box-shadow:0 3px #bc7e18}main{display:flex;align-items:center;justify-content:center;gap:24px;margin:22px 12px 0}#card{display:grid;grid-template-rows:54px 42px minmax(95px,auto) 1fr 48px;position:relative;width:min(420px,68vw);min-height:490px;height:min(64svh,620px);border:8px solid #0879c0;border-radius:36px;padding:10px 18px 16px;background:linear-gradient(#fff3d5,#fffaf0);box-shadow:inset 0 0 0 3px #7bd1ff,0 7px #044c80,0 15px 25px #25557435;color:#103751}#number{position:absolute;left:10px;top:10px;width:58px;height:58px;display:grid;place-items:center;background:#ffdb41;border:3px solid #fff3a5;border-radius:50%;font-size:24px;font-weight:800}#face{justify-self:center;display:grid;place-items:center;background:linear-gradient(#ff3946,#d60018);color:white;border:2px solid #ffb4af;border-radius:24px;width:145px;font-size:25px;font-weight:800}#label{align-self:center;font-size:20px;font-weight:800}#question{display:grid;place-items:center;line-height:1.35;font-size:clamp(20px,2.4vw,28px);font-weight:700;padding:8px;background:#fff7e8;border-radius:12px}#visual{display:flex;justify-content:center;align-items:center;align-content:center;flex-wrap:wrap;gap:7px;padding:14px 0;overflow:auto}#visual .digit{font-size:clamp(65px,11vw,110px);font-weight:900;color:#ed7915;line-height:1}#visual .count{width:100%;font-size:14px;font-weight:600}.dot{font-size:28px;line-height:1.1}.ten{width:14px;height:95px;border:1px solid #0069a5;border-radius:5px;background:repeating-linear-gradient(to bottom,#1c9fe5 0 8px,#b5e9ff 8px 10px)}.one{width:18px;height:18px;border-radius:4px;border:1px solid #c78600;background:#ffd044}#plaque{display:grid;place-items:center;border-radius:25px;background:linear-gradient(#ffe970,#ffc500);border:2px solid #f2b313;font-size:22px;font-weight:800;padding:3px 8px}#card.answer #face{background:linear-gradient(#20ca66,#07863c);border-color:#9ff5b8}#card.answer #label{color:#08783b}#card.answer #question{background:#e8f8e8}.move{width:65px;height:48px;border:2px solid white;border-radius:28px;background:#ffca39;font-size:26px;box-shadow:0 4px #bd8516}.move:disabled{opacity:.35;cursor:default}footer{padding:12px}footer p{margin:8px;font-size:14px}#counter{font-weight:800}@media(max-width:600px){main{gap:8px}#card{width:calc(100vw - 108px);padding:10px;min-height:440px;height:60svh;border-width:6px;border-radius:25px}.move{width:38px;font-size:22px}#number{width:42px;height:42px;font-size:19px;left:4px;top:5px}#face{width:110px;font-size:21px}#question{font-size:20px}#plaque{font-size:19px}.toolbar{gap:12px}.toolbar button{padding:7px 11px}.dot{font-size:22px}#sets button{padding:5px 9px}.ten{height:72px;width:11px}#visual{gap:5px}}
body{background:#90d4ed none center/cover fixed no-repeat}.toolbar strong{padding:10px 22px;border-radius:30px;background:#123453;border:2px solid #ffd169;color:#fff3ce;box-shadow:0 4px #06203b}h1{color:#ffca40;text-shadow:0 2px #3f2105,2px 0 #3f2105,-2px 0 #3f2105,0 5px 9px #0007}#card{display:block;position:relative;border:0;border-radius:0;padding:0;background:transparent none center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 10px 10px #002a4b55);width:min(410px,67vw);height:min(67svh,650px);min-height:480px}#number{left:8%;top:4.5%;width:18%;height:12%;font-size:32px;border:0;background:none}#face{position:absolute;left:36%;top:1%;width:35%;height:9%;font-size:25px;border-radius:24px}#label{position:absolute;left:30%;top:12%;width:49%;height:8%;display:grid;place-items:center;font-size:22px}#question{position:absolute;left:12%;top:23%;width:76%;height:25%;padding:6px;background:transparent;font-size:25px;line-height:1.28}#visual{position:absolute;left:6%;top:51%;width:88%;height:36%;border-radius:12px;background:linear-gradient(#ddf7ffed,#e6f9bff5);padding:8px;gap:5px;overflow:hidden;border:2px solid #f7e8aa}#visual .digit{font-size:110px;text-shadow:0 3px white;color:#ef7308}#visual .count{font-size:16px}.dot{font-size:25px}#plaque{position:absolute;left:22%;top:90.5%;width:61%;height:5.8%;font-size:20px;border:0;background:transparent;line-height:1.1;padding:0}.move{min-width:110px;background:linear-gradient(#ffeb79,#f2a000);font-size:24px;color:#382400}.move:first-child{background:linear-gradient(#49b8dc,#047ba7);color:white}footer{color:#fff;text-shadow:0 1px 3px #123}#counter{display:inline-block;background:#123d62b0;border-radius:20px;padding:5px 14px}@media(max-width:600px){main{gap:6px}#card{width:calc(100vw - 100px);min-height:430px;height:65svh;max-height:580px}.move{min-width:34px;width:34px;font-size:20px}#question{font-size:18px}#number{font-size:24px}#face{font-size:18px}#plaque{font-size:15px}.dot{font-size:20px}#visual .count{font-size:12px}.ten{height:60px;width:9px}}
#plaque{top:89.2%;height:5.4%;left:20%;width:64%}#face{left:35%;top:.3%;width:38%;height:10%;border-radius:999px;background:#ec0919;border:2px solid #ffb4af}#visual{background:linear-gradient(#dff7ff,#e9f7c6)}#card.answer #face{background:linear-gradient(#20ca66,#07863c)}
#card.answer{background-image:none}
#card.answer #visual{top:34%;height:28%;background:transparent;border:0;pointer-events:none}
#card.answer #visual>*{visibility:hidden}
#card.answer #question{top:21%;height:12%;font-size:22px}
#card.answer #plaque{top:92%;height:5%;left:22%;width:60%}
#keypoints{display:none}
#card.answer #keypoints{display:flex;position:absolute;left:22%;top:70%;width:67%;height:19%;flex-direction:column;justify-content:space-around;gap:4px;text-align:center;font-weight:700;font-size:18px;color:#12384b}
#keypointsTitle{display:none}
#card.answer #keypointsTitle{display:grid;place-items:center;position:absolute;left:14%;top:64%;width:72%;height:5%;font-size:18px;font-weight:800}
@media(max-width:600px){#card.answer #question{font-size:17px}#card.answer #keypoints{font-size:13px}#card.answer #keypointsTitle{font-size:14px}}
.move{font-size:17px;font-weight:800}#question{font-weight:750}#sets{margin-bottom:6px}@media(max-width:600px){.move{font-size:12px;min-width:44px;width:44px}#card{width:calc(100vw - 120px)}.toolbar{gap:8px}.toolbar strong{padding:8px 11px;font-size:12px}}
header{position:relative}#languageMenu{position:absolute;right:max(12px,calc(50% - 420px));top:68px;width:min(360px,94vw);padding:15px;border:2px solid #f9d66f;border-radius:18px;background:#102e4afc;color:#fff6dc;z-index:99;text-align:left;box-shadow:0 15px 45px #00243a88}#languageMenu[hidden]{display:none}#languageMenu input{width:100%;padding:10px;margin:10px 0;border-radius:8px;border:1px solid #9bc7de;font:inherit}.language-list{max-height:45svh;overflow:auto;display:grid;gap:5px}.language-list button{padding:10px;text-align:left;color:#fff4d0;background:#204864;border:1px solid #41657b;border-radius:8px}.language-list button[aria-selected=true]{background:#755918;border-color:#ffdf71}#languageMenu p{font-size:12px;line-height:1.4;margin-bottom:0}

/* Match the reference lettering on the front face. */
#card:not(.answer) #face { color: #fff; }
#card:not(.answer) #label { color: #000; }

#card.answer #keypointsTitle {
  left: 16%;
  top: 64.1%;
  width: 68%;
  height: 4.7%;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  color: #000;
  text-align: center;
  line-height: 1;
  font-weight: 800;
}

#number {
  left: 8%;
  top: 4%;
  width: 20%;
  height: 13%;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  text-align: center;
  line-height: 1;
}
#card.answer #number { left: 6.5%; top: 3%; }

/* Keep navigation readable over the illustrated background, including disabled states. */
#previous {
  opacity: 1;
  background: linear-gradient(#1685b9, #07547f);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 0 #03354f, 0 6px 12px #002c4566;
  text-shadow: 0 1px 2px #002e49;
}
#previous:disabled {
  opacity: 1;
  background: #315d77;
  border-color: #d4e5ef;
  color: #fff;
  box-shadow: 0 3px 0 #19394c;
}

/* Reference-style blue navigation pill. */
#previous, #previous:disabled {
  opacity: 1;
  min-width: 136px;
  height: 54px;
  border: 2px solid #e1f7ff;
  border-radius: 999px;
  background: linear-gradient(180deg, #55d0f3 0%, #12a6dc 22%, #0585b9 58%, #006b99 100%);
  color: #fff;
  box-shadow: inset 0 2px 2px #ffffff80, 0 5px 0 #03445e, 0 8px 10px #062c4240;
  text-shadow: 0 1px 1px #00517b;
  font-family: "Segoe UI","Nirmala UI",sans-serif;
  font-size: 16px;
  font-weight: 800;
}
#previous:hover:not(:disabled) { filter: brightness(1.08); }
@media(max-width:600px) {
  #previous, #previous:disabled { min-width: 52px; width: 52px; height: 44px; font-size: 12px; }
}

/* Match the second reference on the answer face. */
#card.answer #face {
  color: #fff;
  background: linear-gradient(180deg, #17b94b, #008529 65%, #006a22);
  border: 2px solid #75e99b;
  box-shadow: inset 0 2px 2px #b7ffd280, 0 2px 2px #174a28;
  left: 35%;
  top: 1%;
  width: 36%;
  height: 8.7%;
}
#card.answer #label {
  color: #000;
  background: transparent;
  text-shadow: none;
}
#card.answer #question {
  background: #fffaf1;
  border: 1px solid #f1d8b9;
  border-radius: 10px;
  color: #103751;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.28;
  left: 12%;
  top: 21%;
  width: 76%;
  height: 12%;
}

/* Leave space around the full title and its shadow on every number set. */
header { overflow: visible; padding-top: 20px; }
h1 {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 18px auto 12px;
  padding: 8px 14px 12px;
  line-height: 1.3;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
}
@media(max-width:600px) {
  h1 { font-size: 30px; line-height: 1.35; padding: 8px 10px 12px; margin-top: 15px; }
}

/* A single continuous sequence of all 100 cards. */
#sets { display: none; }
#next, #next:disabled {
  opacity: 1;
  border: 2px solid #fff4c2;
  border-radius: 999px;
  background: linear-gradient(#fff085, #ffd035 35%, #efa300);
  color: #382400;
  box-shadow: inset 0 2px 2px #ffffff80, 0 5px 0 #a46500;
  font-weight: 800;
}
#next:disabled { background: #e7be5c; color: #4e3d13; }
#card:not(.answer) #visual{background:#fff}#card:not(.answer) #visual img{visibility:visible}
#visual .picture{font-size:110px;line-height:1.15}#visual .picture-word{width:100%;font-size:30px;font-weight:800}#card.answer{background-image:none}@media(max-width:600px){#visual .picture{font-size:75px}}
body{background-image:none}
#card #visual { background: #fff; padding: 8px; }
#card #visual .book-picture { display: block; width: 100%; height: 100%; object-fit: contain; visibility: visible; }
#card #visual .picture-word { display: none; }
#card.answer #visual { top: 34%; height: 28%; left: 10%; width: 80%; background: #fff; border: 0; border-radius: 12px; }

/* Front and back follow the supplied reference surfaces. */
#card { background-image: none; }
#card.answer { background-image: none; }
#face, #card.answer #face {
  left: 35%;
  top: 1%;
  width: 37%;
  height: 9%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  text-align: center;
}
#card #label, #card.answer #label {
  left: 29%;
  top: 11%;
  width: 51%;
  height: 9%;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #000;
}
#card #question, #card.answer #question {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  left: 12%;
  width: 76%;
  padding: 4px 8px;
  text-align: center;
  color: #103751;
}
#card #question { top: 23%; height: 25%; }
#card.answer #question { top: 21%; height: 12%; }
#card #visual, #card.answer #visual {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px;
  border-radius: 0;
}
#card #visual { left: 10%; top: 51%; width: 80%; height: 35%; }
#card.answer #visual { left: 14%; top: 35%; width: 72%; height: 27%; }
#card #visual .book-picture {
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(transparent,black 3%,black 97%,transparent);
}
#card.answer #keypoints { text-align: left; left: 22%; top: 71%; width: 66%; height: 18%; }
#card.answer #keypointsTitle { top: 64.2%; height: 4.5%; }
#card:not(.answer) #visual { background: transparent; }
body{background-image:none}#card{background-image:none}#card.answer{background-image:none}h1{font-size:clamp(24px,3vw,40px)}#card #visual,#card.answer #visual{background:transparent;isolation:auto}#question{font-size:clamp(18px,2.1vw,25px)}#card.answer #keypoints{font-size:15px;line-height:1.2}#card.answer #keypoints span{display:flex;align-items:center;min-height:0}#card.answer #question{font-size:26px}#plaque{font-size:18px}@media(max-width:600px){#card.answer #keypoints{font-size:12px}#question{font-size:17px}h1{font-size:24px}#card.answer #question{font-size:22px}}

/* Original book illustrations stay centered inside both card faces. */
#card #visual{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;padding:8px 10px!important;box-sizing:border-box;background:transparent!important}
#card #visual img.book-picture{display:block!important;position:static!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;mix-blend-mode:multiply;mask-image:none!important;border:0;border-radius:8px}


/* Full 3D subject scenes fill the illustration space without a white inset. */
#card #visual{left:6.5%;top:49.8%;width:87%;height:37%;padding:0!important;border-radius:5px;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
#card.answer #visual{left:7%;top:33.5%;width:86%;height:30%;padding:0!important}
#card #visual img.book-picture{object-fit:contain!important;mix-blend-mode:normal!important;border-radius:0;mask-image:linear-gradient(90deg,transparent,black 2%,black 98%,transparent)!important}


#card #visual::before{content:'';position:absolute;inset:-12px;background-image:var(--scene);background-position:center;background-size:cover;filter:blur(12px);transform:scale(1.08);z-index:0;pointer-events:none}
#card #visual img.book-picture{position:relative!important;z-index:1}

