/* Task Card Collectors Club — teacher pages on learn.minds-in-bloom.com (/club).
   Started from the engine's studio/teacher.html practice page; keep the two looking the same. */
@font-face { font-family: "KG Second Chances Solid"; src: local("KG Second Chances Solid"), local("KGSecondChancesSolid"), url("/static/KGSecondChancesSolid.ttf") format("truetype"); font-display: swap; }
/* digits from Fredoka (OFL): KG Second Chances draws 1 like a capital I. Must come after the rule above. */
@font-face { font-family: "KG Second Chances Solid"; src: url("/static/tcc-digits.woff2") format("woff2"); unicode-range: U+0030-0039; font-display: swap; }
:root {
  --bg: #eef6fb; --bg-2: #d3e7f4; --panel: #ffffff; --ink: #1f2540; --soft: #566079; --line: #cfe0ee;
  --blue: #3aa2cd; --teal: #2ebbad; --green: #adbc24; --yellow: #f7c52f; --orange: #f39e28;
  --red: #dc3838; --pink: #eb6273; --purple: #9c62d0; --purple-deep: #7442a6; --sky: #8bbfe1;
  --good: #1f9488; --goodbg: #e0f6f3; --meh: #b86e00; --mehbg: #fff3df; --shadow: #1f254018;
  --display: "KG Second Chances Solid", "Arial Rounded MT Bold", sans-serif;
  --body: "Century Gothic", "Didact Gothic", Futura, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121a2e; --bg-2: #1b2945; --panel: #1f2d4c; --ink: #eef3ff; --soft: #a9b8d6; --line: #34507a;
    --good: #2ebbad; --goodbg: #173a2b; --meh: #f7c52f; --mehbg: #3a2f14; --shadow: #00000040; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: radial-gradient(ellipse at 50% -10%, var(--bg-2), var(--bg) 60%) fixed; background-color: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); padding-bottom: 90px; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1; display: block; }
.brand small { color: var(--soft); font-size: .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 16px; cursor: pointer; text-decoration: none; font-weight: 700; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: .3px; }
.btn.primary:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn.small { padding: 5px 10px; font-size: .85rem; border-radius: 9px; }
.btn.on { background: var(--goodbg); border-color: var(--good); color: var(--good); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: .3px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
.sub { color: var(--soft); }

/* ---------- collection ---------- */
.colhead { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.tools input[type=search] { flex: 1 1 220px; border: 2px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 14px; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 2px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 7px 12px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.seg button.on { background: var(--ink); color: var(--bg); }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.tile { position: relative; background: var(--panel); border-radius: 16px; box-shadow: 0 6px 18px var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tile > a { text-decoration: none; display: block; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bg-2); }
.tile .t { padding: 10px 12px 4px; font-weight: 700; line-height: 1.25; }
.tile .m { padding: 0 12px 10px; color: var(--soft); font-size: .82rem; }
.tile .foot { margin-top: auto; padding: 0 12px 12px; display: flex; gap: 6px; }
.tile .foot .btn { flex: 1; }
.new { position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff; font-family: var(--display); padding: 3px 10px; border-radius: 999px; font-size: .95rem; box-shadow: 0 2px 6px #0003; }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); border-radius: 14px; padding: 8px 12px 8px 8px; box-shadow: 0 3px 10px var(--shadow); }
.row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.row a.name { font-weight: 700; text-decoration: none; }
.row a.name:hover { text-decoration: underline; }
.row .m { color: var(--soft); font-size: .82rem; }
.row .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .newtag { background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 800; margin-left: 6px; vertical-align: 2px; }
.empty { text-align: center; padding: 50px 16px; background: var(--panel); border-radius: 18px; box-shadow: 0 6px 18px var(--shadow); }
.empty p { color: var(--soft); max-width: 460px; margin: 10px auto 20px; }

/* ---------- set page ---------- */
.back { display: inline-block; margin: 4px 0 14px; color: var(--soft); text-decoration: none; font-weight: 700; }
.back:hover { color: var(--ink); }
.sethead { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 20px; }
.sethead img { width: 100%; border-radius: 16px; box-shadow: 0 6px 18px var(--shadow); }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-family: var(--display); font-size: 1.1rem; color: var(--soft); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--ink); border-color: var(--purple); }
.panel { background: var(--panel); border-radius: 18px; padding: 18px; box-shadow: 0 6px 18px var(--shadow); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.game { display: block; text-decoration: none; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--panel); }
.game:hover { border-color: var(--purple); transform: translateY(-1px); }
.game b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; display: block; }
.game span { color: var(--soft); font-size: .85rem; display: block; }
.game .teams { margin-top: 6px; font-weight: 700; color: var(--teal); }
.game.meh { border-style: dashed; }
.mehhead { margin: 22px 0 6px; color: var(--meh); }
.solohead { margin: 22px 0 6px; }
.gfilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { border: 2px solid var(--line); background: var(--panel); color: inherit; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.gchip span { opacity: .6; font-weight: 600; margin-left: 2px; }
.gchip.on { background: #1f2540; border-color: #1f2540; color: #fff; }
#ggroup { border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-weight: 700; background: var(--panel); color: inherit; }
.mehnote { color: var(--soft); font-size: .88rem; margin: 0 0 10px; }
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; display: block; border-bottom: 1px solid var(--line); }
.mat .t { padding: 8px 10px 4px; font-weight: 700; font-size: .92rem; }
.mat .k { padding: 0 10px 4px; font-size: .8rem; color: var(--soft, #5b6380); }
.mat .noprev { width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); font-weight: 800; color: #5b6380; }
.mat .foot { padding: 4px 10px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sheet { display: grid; gap: 8px; align-content: start; justify-items: start; border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px; }
.sheet .sub { font-size: .88rem; }
.sheetpic { width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 14px var(--shadow); }
.mathead { font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin: 6px 0 10px; }
.prgrid { display: grid; gap: 14px; margin-bottom: 16px; }
/* Print tab: choose cards and their order */
.pkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pkbar .count { font-weight: 700; margin-right: 6px; }
.pkbar label { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--soft); font-weight: 700; }
.pkbar input { width: 64px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; }
.pkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.pk { position: relative; cursor: grab; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: center; display: grid; gap: 3px; }
.pk img { width: 100%; display: block; border-radius: 8px; border: 3px solid var(--purple); background: #fff; }
.pk.off img { opacity: .3; border-color: var(--line); }
.pk .new { position: absolute; top: 6px; left: 6px; background: var(--purple); color: #fff; font-weight: 800; border-radius: 99px; min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 7px; font-size: .85rem; }
.pk.off .new { background: var(--soft); }
.pk small { color: var(--soft); font-size: .75rem; }
.pk.dropbefore img { box-shadow: -5px 0 0 var(--blue); }
.pk.dragging { opacity: .4; }
.pknote { font-size: .88rem; color: var(--soft); margin: 0; }
.prrow { display: grid; gap: 6px; }
.prrow .seg { justify-self: start; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.size { display: grid; gap: 4px; justify-items: center; text-align: center; border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 12px 10px; cursor: pointer; font: inherit; color: inherit; }
.size:hover { border-color: var(--blue); }
.size.on { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple) inset; }
.size small { color: var(--soft); font-size: .8rem; }
.size .pic { display: grid; gap: 3px; width: 66px; height: 51px; padding: 4px; border: 1.5px solid #c9d3df; border-radius: 4px; background: #fff; }
.size .pic i { background: #dcebf6; border: 1.5px solid #8bbfe1; border-radius: 2px; }
.size .p4 { grid-template-columns: 1fr 1fr; }
.size .p9 { grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.size .pphoto { width: 66px; height: 44px; grid-template-columns: 1fr 12px; padding: 3px; }
.size .pphoto::after { content: ""; background: #adbc24; border-radius: 2px; }
.size .pslides { width: 66px; height: 40px; grid-template-rows: 1fr 7px; padding: 3px; }
.size .psheet { width: 42px; height: 54px; grid-template-rows: repeat(5, 1fr); gap: 4px; padding: 6px 5px; }
.size .psheet i { border: 0; border-bottom: 1.5px solid #8bbfe1; background: none; border-radius: 0; }
.size .precord { width: 42px; height: 54px; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 5px 4px; }
.size .precord i { background: #fff; border-width: 1px; }
.size .pslides::after { content: ""; border: 1.5px solid #2ebbad; border-radius: 2px; background: #fff; }
.slbox { margin-top: 18px; }
.prcheck { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.prcheck input { width: 18px; height: 18px; }
.prnote { background: var(--goodbg); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
.soon { background: var(--mehbg); color: var(--ink); border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: .92rem; }

/* ---------- mix ---------- */
.mixbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 20; box-shadow: 0 -6px 20px #0003; }
.mixbar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 0; }
.mixbar b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.mixbar .sets { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.mixbar .pill { background: #ffffff1f; border-radius: 999px; padding: 3px 4px 3px 10px; font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.mixbar .pill button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 999px; }
.mixbar .pill button:hover { background: #ffffff33; }
.mixbar .btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.mixbar .count { display: none; flex: 1; font-size: .9rem; }
.mixbar.many .sets { display: none; }
.mixbar.many .count { display: block; }
.mixlist { display: grid; gap: 8px; margin-bottom: 18px; }
.mixgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 10px; }
.mixcard { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.mixcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.mixcard .name { font-weight: 700; font-size: .9rem; line-height: 1.2; color: var(--ink); text-decoration: none; }
.mixcard .usen { margin-top: auto; font-size: .85rem; color: var(--soft); display: flex; align-items: center; gap: 5px; }
.mixcard .usen input { width: 3.2em; padding: 3px 4px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 700; text-align: center; color: var(--ink); background: var(--panel); }
.mixcard .repick { border: 0; background: none; color: var(--blue); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 0; }
.mixcard .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--soft); font-size: 1rem; line-height: 1; cursor: pointer; z-index: 1; }
.mixcard .x:hover { color: var(--red); border-color: var(--red); }
.mixq { font-size: 1.35rem; margin: 40px 0 12px; padding-top: 28px; border-top: 2px solid var(--line); }
.mixpick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.mixpick button { display: flex; gap: 14px; align-items: center; text-align: left; padding: 18px 20px; border-radius: 18px; border: 3px solid var(--line); background: var(--panel); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.mixpick button:hover { border-color: var(--purple); }
.mixpick button.on { border-color: var(--purple); box-shadow: 0 0 0 4px #9c62d033; background: color-mix(in srgb, var(--purple) 10%, var(--panel)); }
.mixpick b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.mixpick small { display: block; color: var(--soft); font-size: .95rem; margin-top: 2px; }
@media (max-width: 640px) { .mixpick { grid-template-columns: 1fr; } }
.usen { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.usen input { width: 64px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 10px; font: inherit; text-align: center; }

/* ---------- add-a-set dialog ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px #0005; }
dialog::backdrop { background: #1f254099; }
dialog form { padding: 22px; display: grid; gap: 14px; }
dialog label { display: grid; gap: 6px; font-weight: 700; }
dialog input, dialog select { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); font-weight: 400; }
dialog .hint { color: var(--soft); font-size: .85rem; font-weight: 400; }
dialog .practice-box { border: 2px dashed var(--purple); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
dialog .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
.err { color: var(--red); font-weight: 700; font-size: .9rem; }

.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--good); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; z-index: 40; box-shadow: 0 8px 24px #0004; max-width: calc(100vw - 32px); }
footer.mib { text-align: center; margin: 40px 0 10px; color: var(--soft); font-size: .8rem; }
footer.mib img { height: 34px; vertical-align: middle; margin-right: 6px; }

@media (max-width: 640px) {
  .sethead { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; }
  .mixbar .sets { display: none; }
  .mixbar .count { display: block; }
  .row { grid-template-columns: 48px minmax(0, 1fr); }
  .row img { width: 48px; height: 48px; }
  .row .acts { grid-column: 1 / -1; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .game:hover { transform: none; } }

/* ---------- activate / sign in ---------- */
.gate { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 10px; }
@media (max-width: 820px) { .gate { grid-template-columns: minmax(0, 1fr); } }
.gate .panel { padding: 26px 28px; }
.gate h1 { margin-bottom: 6px; }
.field { display: grid; gap: 6px; margin: 16px 0; font-weight: 700; }
.field input { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); color: var(--ink); font-weight: 400; font-size: 1.1rem; }
.field input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px #f7c52f66; }
.field .hint { color: var(--soft); font-size: .85rem; font-weight: 400; }
.msg { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.msg.err { background: #fde8ea; color: #9b1c2e; } .msg.ok { background: var(--goodbg); color: var(--good); } .msg.info { background: #e6f3fb; color: #155b6b; }
.side { display: grid; gap: 14px; }
.side .panel h2 { font-size: 1.2rem; margin-bottom: 8px; }
.side ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .95rem; }
.side p { margin: 0; color: var(--soft); font-size: .92rem; }
.find { margin-top: 10px; }
.find summary { cursor: pointer; font-weight: 700; color: var(--purple-deep); }
.find p, .find ul { margin: 8px 0 0; font-size: .95rem; font-weight: 400; color: var(--ink); }
.find ul { padding-left: 20px; display: grid; gap: 4px; }
/* the "Is that a school email?" pop-up (same as /activate) */
dialog.schoolpop { padding: 26px 28px 22px; width: min(380px, calc(100vw - 32px)); text-align: center; }
.schoolpop .ic { font-size: 40px; line-height: 1; }
.schoolpop h2 { font-size: 1.35rem; margin: 8px 0 12px; }
.schoolpop ul { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: grid; gap: 8px; }
.schoolpop li { padding-left: 26px; position: relative; } .schoolpop li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 800; }
.schoolpop .btns { display: grid; gap: 10px; justify-items: center; } .schoolpop .btns .btn { width: 100%; }
.waiting { background: var(--mehbg); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.who { color: var(--soft); font-size: .85rem; }
.topbtns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.more { margin-top: 36px; }
.more .shelf .tile img { filter: grayscale(.6); opacity: .85; }
.more .tile .foot .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.own { font-weight: 700; color: var(--soft); font-size: .9rem; }

/* ---------- the "which set did you buy?" picker ---------- */
.picker { display: grid; gap: 8px; font-weight: 400; }
.picker input[type=search] { border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--panel); color: var(--ink); font-size: 1rem; width: 100%; }
.picker input[type=search]:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px #f7c52f66; }
.pkchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pkchips .pill { background: var(--goodbg); color: var(--good); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: .9rem; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.pkchips .pill button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 7px; border-radius: 999px; }
.pkchips .pill button:hover { background: #0002; }
.pklist { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding: 2px; }
.pkrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 10px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--panel); border-radius: 12px; padding: 6px 8px; cursor: pointer; color: inherit; }
.pkrow:hover { border-color: var(--blue); }
.pkrow.on { border-color: var(--good); background: var(--goodbg); }
.pkrow img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.pkrow b { display: block; line-height: 1.2; }
.pkrow small { color: var(--soft); font-size: .8rem; }
.pkrow i { font-style: normal; font-weight: 800; color: var(--purple); text-align: center; }
.pkrow.on i { color: var(--good); }
dialog .picker input[type=search] { background: var(--bg); }

/* printable games gallery: portrait board thumbnails */
.pgshelf { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pgshelf .tile img { aspect-ratio: 8.5 / 11; object-fit: cover; background: #fff; border-bottom: 2px solid var(--line); }
.pghead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.pghead h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 4px; }
.pghead .mehnote { margin: 0; }

/* ---------- share with students (teacher dialog) and the student page /go ---------- */
.sharebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 2px dashed var(--teal); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.sharebar b { display: block; }
.sharebar .sub { display: block; font-size: .9rem; }
dialog.sharedlg { width: min(700px, calc(100vw - 32px)); }
dialog.sharedlg form { gap: 18px; padding: 26px; }
#shareBody { display: grid; gap: 18px; }
.sharegrid { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
.shareqr svg { width: 170px; height: 170px; display: block; background: #fff; border-radius: 10px; }
.sharecols { display: grid; gap: 18px; min-width: 0; }
.sharelabel { display: block; font-size: .85rem; color: var(--soft); margin-bottom: 4px; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--bg); font-size: .9rem; }
.sharecode { font-family: var(--display); font-size: 1.9rem; letter-spacing: 2px; line-height: 1; }
.sharenote { margin: 0; background: var(--goodbg); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
dialog .row-btns.sharebtns { justify-content: flex-start; flex-wrap: wrap; }
.sharebtns .btn { padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.shareothers summary { cursor: pointer; color: var(--soft); font-size: .9rem; }
.shareothers .orow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
dialog.sharebig { width: min(1100px, calc(100vw - 32px)); padding: 30px; text-align: center; }
dialog.sharebig #shareBigBody { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 20px; }
.bigqr svg { width: min(46vh, 420px); height: min(46vh, 420px); background: #fff; border-radius: 14px; display: block; }
.bigtext p { margin: 6px 0; font-size: 1.5rem; }
.bigurl { font-weight: 700; font-size: 2rem !important; }
.bigcode { font-family: var(--display); font-size: 4.5rem !important; letter-spacing: 6px; line-height: 1.1; }
@media (max-width: 560px) { .sharegrid { grid-template-columns: 1fr; } .shareqr svg { margin: 0 auto; } }
body.go main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gohead h1 { margin: 0; font-family: var(--display); font-weight: 400; }
.gohead .sub { margin: 4px 0 0; }
body.go .panel h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; }
.gocode { width: 100%; max-width: 460px; margin: 30px auto; text-align: center; padding: 28px; }
.gocode h1 { font-family: var(--display); font-weight: 400; margin: 0 0 6px; }
.gocode form { display: grid; gap: 10px; margin-top: 14px; }
.gocode input { width: 100%; min-width: 0; font-family: var(--display); font-size: 2rem; letter-spacing: 3px; text-align: center; text-transform: uppercase; border: 2px solid var(--line); border-radius: 14px; padding: 10px; background: var(--bg); }
.gocode input::placeholder { color: var(--soft); opacity: .35; }
.gocode .btn.primary { width: 100%; }
.gonote { background: var(--mehbg); color: var(--ink); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.gobig { font-size: 3rem; }
.gountil { text-align: center; }

/* ---------- waiting for the TPT check ---------- */
.waiting { display: flex; gap: 12px; align-items: flex-start; }
.waiting.bad { border-color: var(--pink); background: var(--mehbg); display: block; }
.spin { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Print tab extras: the Title & Challenge tile and the "what it looks like" preview ---------- */
.size .pchallenge { grid-template-columns: 1fr 1fr; }
.size .prsheet { width: 42px; height: 54px; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; }
.size .pkey { width: 42px; height: 54px; grid-template-rows: repeat(5, 1fr); gap: 4px; padding: 6px 5px; }
.size .pkey i { border: 0; border-bottom: 1.5px solid #2ebbad; border-left: 7px solid #2ebbad; background: none; border-radius: 0; }
.size .pchallenge i.tc { background: #eb6273; border-color: #dc3838; }
.prpreview { margin: 14px 0 0; display: grid; gap: 6px; justify-items: start; }
.prpreview img { max-width: min(100%, 520px); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 16px var(--shadow); background: #fff; }
.prpreview .sub { font-size: .82rem; }

/* a button that looks like a link (e.g. "Add it with your order number" under More sets to collect) */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 700; }

/* Print tab: a small picture of the first card beside Version / Which cards */
.prtop { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.prtop .prgrid { margin-bottom: 0; }
.prthumb { flex: none; display: block; line-height: 0; }
.prthumb img { width: 230px; max-width: 60vw; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 12px var(--shadow); background: #fff; }

/* ---------- Build Your Own Bundle: choosing sets with picks (#choose) ---------- */
.picksbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--goodbg); border: 2px solid var(--good); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.pickcount { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); box-shadow: 0 6px 18px var(--shadow); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; }
.pickcount #pickSave { margin-left: auto; }
.pickshelf .tile img { filter: grayscale(.6); opacity: .85; }
.pickshelf .tile.chosen { outline: 3px solid var(--good); }
.pickshelf .tile.chosen img { filter: none; opacity: 1; }
.pickfoot { flex-direction: column; align-items: stretch; }
.pickfoot .linkish { text-align: center; font-size: .85rem; }
.pickfoot .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* the set a ?product= link is adding (Nov 10, 2026) */
.adding { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 10px; margin: 0 0 14px; }
.adding img { width: 96px; border-radius: 8px; flex: none; }
.adding > div { display: grid; gap: 2px; }
.adding .sub { margin: 0; font-size: .85rem; }
dialog .adding { margin: 0; }
/* calmer game picker (Nov 10, 2026) */
.gtools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; }
.gtools .pw { display: flex; gap: 8px; align-items: center; }
.gchips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.gchips::-webkit-scrollbar { display: none; }
.gchip { white-space: nowrap; flex: none; }
.gfilter { flex-wrap: nowrap; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.gchips { gap: 2px; flex: 1; min-width: 0; }
.gchip { border: 0; background: none; color: var(--soft); padding: 6px 10px; border-radius: 999px; font-size: .88rem; }
.gchip:hover { color: var(--ink); background: var(--bg); }
.gchip.on { background: var(--bg); color: var(--ink); border: 0; }
.gchip span { font-weight: 400; opacity: .55; }
#ggroup { flex: none; border-width: 1px; font-size: .88rem; font-weight: 600; padding: 6px 8px; }
.opts .sub { font-size: .9rem; }
.games { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.game { padding: 12px 14px; border-width: 1px; }
.game b { font-size: 1.05rem; margin-bottom: 2px; }
.game span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game .season, .game .season.now { background: #f39e281f; color: #a85a06 !important; font-size: .74rem !important; }
.game .teams { font-size: .8rem; display: block; }
.mixpick button { padding: 14px 18px; justify-content: center; text-align: center; }
@media (max-width: 760px) { .gfilter { flex-wrap: wrap; } }

/* ---------- mixed review: Choose cards ---------- */
dialog.mixcards { width: min(1000px, calc(100vw - 32px)); }
dialog.mixcards #mcGrid { max-height: 58vh; overflow: auto; padding: 4px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pk.mc { cursor: pointer; }
.pk.mc .mcwords { display: block; min-height: 96px; border-radius: 8px; border: 3px solid var(--purple); background: #fff; padding: 30px 8px 8px; font-size: .8rem; line-height: 1.25; text-align: left; }
.pk.mc.off .mcwords { opacity: .45; border-color: var(--line); }
.mixcard .mixlinks { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
dialog.mixcards #mcGrid:focus { outline: none; }
dialog.mixcards .mcmsg { margin: 0; background: #fff4d6; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .9rem; }

/* a line for teachers under the set facts (set.json teacherNote) */
.tnote { margin: 8px 0 10px; max-width: 46em; font-size: .95rem; line-height: 1.4; color: var(--ink); }

/* Sign in with Google (Nov 19, 2026) */
.btn.google { width: 100%; gap: 10px; background: #fff; border-color: #dadce0; color: #3c4043; font-family: inherit; }
.btn.google:hover { border-color: #8bbfe1; background: #f8fbff; }
.btn.small.google { width: auto; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; color: #8a8f98; font-size: .85rem; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid #e3e6ea; }
