/* Hessa Play — game page wrapper (games/<name>.html). Tokens come from base.css, header from top.css. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f);font-size:17px;line-height:1.6;min-height:100vh;overflow-x:hidden}
button{font:inherit;color:inherit;cursor:pointer}
a{color:inherit}
:focus-visible{outline:3px solid var(--v);outline-offset:2px}
[hidden]{display:none!important}
.pl{--gut:clamp(16px,4vw,56px);--cw:max(480px,calc((100vh - 244px)*16/9));padding:16px 0 56px;visibility:hidden}
@supports (height:100dvh){.pl{--cw:max(480px,calc((100dvh - 244px)*16/9))}}
html.pl-on .pl{visibility:visible}
.pl-wrap{width:min(100% - 2*var(--gut),var(--cw));margin-inline:auto}
.pl-head{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-bottom:12px;min-height:48px}
.pl-head h1{margin:0;font-family:var(--fh);font-weight:800;font-size:clamp(1.35rem,2.4vw,1.9rem);line-height:1.3;letter-spacing:0;min-width:0;overflow-wrap:anywhere}
.pl-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:2px 14px;border-radius:999px;background:var(--v-soft);color:var(--v);font-weight:700;font-size:.9rem;max-width:100%;min-width:0}
.pl-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pl-chip svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.pl-back{margin-inline-start:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surface);font-weight:700;color:var(--ink);text-decoration:none;white-space:nowrap}
.pl-back:hover{border-color:var(--v);color:var(--v)}
.pl-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
[dir=rtl] .pl-back svg{transform:scaleX(-1)}
/* stage + themes: the themes panel sits on the physical right in both languages */
.pl-main{display:flex;flex-direction:column;gap:16px;direction:ltr}
.pl-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh-card);overflow:hidden}
.pl-stage{position:relative;aspect-ratio:16/9;background:#12102a;overflow:hidden}
.pl-stage iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;display:block;background:#12102a}
.pl-load{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:700;opacity:.8;pointer-events:none}
.pl-x{display:none;position:absolute;top:max(10px,env(safe-area-inset-top));inset-inline-end:max(10px,env(safe-area-inset-right));z-index:3;min-height:48px;padding:0 16px;border:0;border-radius:999px;background:rgba(14,18,40,.72);color:#fff;font-weight:700;align-items:center;gap:8px}
.pl-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pl-bar{display:flex;justify-content:center;gap:8px;padding:8px 12px;border-top:1px solid var(--line)}
.pl-btn{flex:0 1 190px;min-width:0;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:4px 14px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surface);font-weight:700;line-height:1.25}
@media (hover:hover){.pl-btn:hover{border-color:var(--v);color:var(--v)}}
html.pl-fs #plFs{border-color:var(--v);color:var(--v)}
.pl-btn[aria-pressed=true]{background:var(--v);border-color:var(--v);color:#fff}
.pl-btn svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pl-btn span{min-width:0;overflow-wrap:anywhere;text-align:center}
.pl-themes{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh-card);padding:16px;display:flex;flex-direction:column;gap:12px}
.pl-themes h2{margin:0;font-family:var(--fh);font-weight:700;font-size:1.1rem;line-height:1.4}
/* picture tiles: screenshot of the game in that theme / mode, small name under it */
.pl-tl{display:flex;gap:12px;overflow-x:auto;padding:4px;margin:-4px;scroll-snap-type:x proximity;scrollbar-width:thin}
.pl-t{all:unset;box-sizing:border-box;flex:0 0 min(44%,220px);min-width:0;display:flex;flex-direction:column;gap:6px;cursor:pointer;scroll-snap-align:start;-webkit-tap-highlight-color:transparent}
.pl-t .ph{position:relative;display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--v-soft);box-shadow:0 0 0 1px var(--line);transition:box-shadow .15s,transform .15s}
.pl-t img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.pl-t .sw{position:absolute;inset:0;display:flex}
.pl-t .sw b{flex:1}
.pl-t .sw:empty{background:linear-gradient(135deg,var(--v),var(--v-2))}
.pl-t .ck{position:absolute;top:8px;inset-inline-end:8px;width:28px;height:28px;border-radius:50%;background:var(--v);color:#fff;display:none;place-items:center;box-shadow:0 0 0 3px #fff}
.pl-t .ck svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.pl-t .nm{display:block;height:22px;line-height:22px;font-size:.9rem;font-weight:700;color:var(--muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button.pl-t:hover .ph{box-shadow:0 0 0 3px var(--v-2)}
button.pl-t:focus-visible{outline:none}
button.pl-t:focus-visible .ph{box-shadow:0 0 0 3px var(--v),0 0 0 6px var(--v-soft)}
.pl-t.on .ph{box-shadow:0 0 0 3px var(--v)}
.pl-t.on .ck{display:grid}
.pl-t.on .nm{color:var(--v)}
.pl-one .pl-t{cursor:default}
.pl-sk .ph{background:linear-gradient(100deg,var(--line) 30%,var(--bg) 50%,var(--line) 70%);background-size:300% 100%;animation:plsk 1.4s linear infinite}
@keyframes plsk{from{background-position:100% 0}to{background-position:0 0}}
.pl-none{margin:10px 0 0;color:var(--muted);font-size:.9rem;line-height:1.5;text-align:center}
@media (min-width:600px) and (max-width:1099.98px){
  .pl-tl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:visible}
  .pl-none{text-align:start}
}
@media (max-width:1099.98px){
  .pl-one .pl-sc{display:flex;align-items:center;gap:16px}
  .pl-one .pl-tl{flex:0 0 min(46%,260px);display:block;overflow:visible}
  .pl-one .pl-none{margin:0;text-align:start;min-width:0}
  .pl-one .pl-t{display:flex;width:100%}
}
/* wide: panel on the physical right, as tall as the stage card; sized so three tiles fill it exactly:
   panel = 25% of the row - 32px  =>  heading 56 + 3 x ((panel-32) x 9/16 + 28) + 2 x 12 + 12  =  stage height + toolbar 65 */
@media (min-width:1100px){
  .pl-wrap{width:min(100% - 2*var(--gut),calc((var(--cw) - 16px)/.75))}
  .pl-main{flex-direction:row;align-items:stretch}
  .pl-card{flex:1 1 0}
  .pl-themes{flex:0 0 calc(25% - 32px);position:relative}
  .pl-themes .pl-sc{position:absolute;inset:52px 0 0;overflow-y:auto;padding:4px 16px 12px;scrollbar-width:thin}
  .pl-tl{flex-direction:column;overflow:visible;padding:0;margin:0}
  .pl-t{flex:none;width:calc(75% - 18px);margin-inline:auto}
  .pl-t .nm{font-size:.82rem;height:20px;line-height:20px}
}
/* other games */
.pl-more{width:min(100% - 2*var(--gut),1440px);margin:40px auto 0}
.pl-more h2{margin:0 0 16px;font-family:var(--fh);font-weight:800;font-size:clamp(1.25rem,2.2vw,1.6rem);letter-spacing:0}
.pl-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media (min-width:480px){.pl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:760px){.pl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1100px){.pl-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}}
.pl-g{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;text-decoration:none;color:var(--ink);box-shadow:var(--sh-card);transition:transform .15s,border-color .15s}
.pl-g:hover{transform:translateY(-3px);border-color:var(--v)}
.pl-g .im{aspect-ratio:16/9;background:linear-gradient(135deg,var(--v),var(--v-2));overflow:hidden}
.pl-g img{width:100%;height:100%;object-fit:cover;display:block}
.pl-g .tx{padding:12px 16px 16px;display:flex;flex-direction:column;gap:2px}
.pl-g b{font-family:var(--fh);font-weight:700;font-size:1.08rem;line-height:1.4}
.pl-g small{color:var(--muted);font-size:.92rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:479px){
  .pl-g{flex-direction:row;align-items:center}
  .pl-g .im{flex:0 0 38%;align-self:stretch;aspect-ratio:auto;min-height:84px}
  .pl-g .tx{padding:10px 14px}
  .pl-btn{padding:4px 6px;font-size:.88rem;gap:6px}
  .pl-bar{padding:8px;gap:6px}
  .pl-btn{flex:1 1 0}
}
/* CSS full screen (devices without the Fullscreen API, e.g. iPhone) */
html.pl-lock,html.pl-lock body{overflow:hidden!important}
html.pl-lock #hpTop{z-index:0}
.pl-stage.pl-pseudo{position:fixed;inset:0;z-index:1000;aspect-ratio:auto;width:100%;height:100%;border-radius:0}
/* the game shows its own exit control once it is ready; this one covers the time before that */
.pl-stage.pl-pseudo:not(.pl-ready) .pl-x{display:inline-flex}
@media (prefers-reduced-motion:reduce){.pl-g,.pl-t .ph{transition:none}.pl-sk .ph{animation:none}}

.pl-thmore{font:inherit;font-family:var(--fh);font-weight:700;font-size:1rem;min-height:48px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--v-soft);color:var(--v);cursor:pointer;width:100%;flex:none}
.pl-thmore:hover{background:var(--v);color:#fff}

/* full screen: the stage itself fills the screen and the game is scaled inside it */
.pl-stage:fullscreen{width:100vw!important;height:100vh!important;aspect-ratio:auto!important;border-radius:0!important;background:#000;overflow:hidden}
.pl-stage:-webkit-full-screen{width:100vw!important;height:100vh!important;aspect-ratio:auto!important;border-radius:0!important;background:#000;overflow:hidden}
.pl-stage:fullscreen .pl-x,.pl-stage:-webkit-full-screen .pl-x{display:none!important}
/* phones without real full screen (iPhone) held upright: turn the game on its side */
.pl-stage.pl-pseudo.pl-rot{width:100vh;height:100vw;inset:auto;top:0;left:100vw;transform:rotate(90deg);transform-origin:0 0}
.pl-next{font:inherit;font-weight:700;font-size:.95rem;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid #E3E7F2;background:#fff;color:#6947E8;cursor:pointer;max-width:min(46vw,360px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl-next:hover{border-color:#6947E8;background:#E8E2FF}

/* activity bar: maker, tags, actions */
.pl-act{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin:-4px 0 14px}
.pl-by{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#52658D;font-weight:700;font-size:.95rem}.pl-by a{color:#6947E8;text-decoration:none}.pl-by em{font-style:normal;background:#fff;border:1px solid #E3E7F2;border-radius:999px;padding:3px 12px;font-size:.85rem;color:#182344}.pl-by em.pl-dr{background:#FFF3D6;border-color:#F3D48A;color:#7A4B00}
.pl-as{display:flex;flex-wrap:wrap;gap:8px}.pl-ab{font:inherit;font-weight:700;font-size:.92rem;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-radius:12px;border:1px solid #E3E7F2;background:#fff;color:#182344;cursor:pointer}
.pl-ab svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.pl-ab:hover{border-color:#6947E8;color:#6947E8}.pl-ab[aria-pressed=true]{color:#E03163;border-color:#F7B6C8;background:#FFF0F4}.pl-ab[aria-pressed=true] svg{fill:currentColor}
@media(max-width:600px){.pl-ab span{display:none}.pl-ab{padding:0 12px}}

.pl-g .im{position:relative}.pl-g.has-pk img{filter:none}
.pl-g .pk{position:absolute;inset:0 0 auto 0;display:block;padding:7px 8px 0}
.pl-g .pkq{display:block;margin:0 auto;max-width:86%;width:max-content;background:rgba(255,255,255,.96);color:#182344;border-radius:10px;padding:3px 12px;font-weight:700;font-size:.86rem;line-height:1.5;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 8px rgba(0,0,0,.25);unicode-bidi:plaintext}
.pl-g .pka{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.pl-g .pka u{text-decoration:none;background:var(--v-soft);color:var(--v);border-radius:999px;padding:2px 12px;font-weight:700;font-size:.82rem;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* play options row: solo / teams, lesson from my library, link for pupils */
.pl-opts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 14px}
.pl-seg{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid #E3E7F2;border-radius:14px;padding:4px}
.pl-seg>span{font-weight:700;color:#52658D;font-size:.92rem;padding:0 10px}
.pl-seg button,.pl-ob{font:inherit;font-weight:700;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 16px;border-radius:10px;border:0;background:transparent;color:#182344;cursor:pointer;font-size:.98rem}
.pl-seg button[aria-pressed=true]{background:#6947E8;color:#fff}
.pl-ob{background:#fff;border:1px solid #E3E7F2;border-radius:14px;min-height:50px}
.pl-ob:hover,.pl-seg button:not([aria-pressed=true]):hover{background:#E8E2FF;color:#6947E8}
.pl-opts svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:640px){.pl-opts{gap:8px}.pl-seg{width:100%}.pl-seg button{flex:1;justify-content:center}.pl-ob{flex:1 1 46%;justify-content:center;padding:0 10px;font-size:.92rem}}
.pl-dlg{border:0;border-radius:24px;padding:22px;width:min(560px,94vw);max-height:86vh;box-shadow:0 24px 60px rgba(24,35,68,.25);color:#182344;font-family:inherit;display:none;flex-direction:column}
.pl-dlg[open]{display:flex}.pl-dlg::backdrop{background:rgba(24,35,68,.45)}
.pl-dh{display:flex;align-items:center;gap:10px;margin-bottom:12px}.pl-dh h3{flex:1;margin:0;font-family:var(--f-display,inherit);font-size:1.25rem}
.pl-dx{border:0;background:#F2F4FC;width:40px;height:40px;border-radius:12px;font-size:1rem;cursor:pointer;color:#52658D}
.pl-ds{font:inherit;width:100%;box-sizing:border-box;border:1px solid #E3E7F2;border-radius:12px;padding:12px 14px;margin-bottom:10px;background:#F7F8FD}
.pl-dl{overflow:auto;min-height:120px}.pl-dl h4{margin:14px 0 6px;color:#52658D;font-size:.92rem}
.pl-di{font:inherit;display:flex;align-items:center;gap:10px;width:100%;text-align:start;background:#fff;border:1px solid #E3E7F2;border-radius:12px;padding:12px 14px;margin-bottom:8px;cursor:pointer;color:#182344}
.pl-di b{flex:1;min-width:0}.pl-di small{color:#52658D;font-weight:700;white-space:nowrap}.pl-di:hover:not(:disabled){border-color:#6947E8;background:#F6F3FF}.pl-di:disabled{opacity:.55;cursor:not-allowed}
.pl-dn{color:#52658D;text-align:center;padding:18px 6px;margin:0}.pl-da{display:flex;flex-direction:column;gap:8px}.pl-da a{display:block;text-align:center;font-weight:700;padding:12px;border-radius:12px;background:#E8E2FF;color:#6947E8;text-decoration:none}

.pl-link{display:flex;gap:8px;align-items:center;flex:1 1 100%;order:-1;background:#fff;border:1px solid #E3E7F2;border-radius:14px;padding:6px}.pl-link input{flex:1;min-width:0;border:0;background:#F2F4FC;border-radius:10px;min-height:42px;padding:0 12px;font:inherit;font-size:.95rem;color:#182344}.pl-link .pl-ob{min-height:42px}

.pl-dl{flex:1}.pl-c{border:1px solid #E3E7F2;border-radius:14px;margin-bottom:10px;background:#fff;overflow:hidden}.pl-c>summary,.pl-u>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:14px 16px;font-weight:800}
.pl-c>summary::-webkit-details-marker,.pl-u>summary::-webkit-details-marker{display:none}.pl-c>summary::before,.pl-u>summary::before{content:"›";font-size:1.4rem;line-height:1;color:#6947E8;transition:transform .2s}[dir=rtl] .pl-c>summary::before,[dir=rtl] .pl-u>summary::before{transform:scaleX(-1)}
.pl-c[open]>summary::before,.pl-u[open]>summary::before{transform:rotate(90deg)!important}.pl-c>summary span,.pl-u>summary span{flex:1;min-width:0}.pl-c>summary small,.pl-u>summary small{color:#52658D;font-weight:700}
.pl-c[open]>summary{background:#F6F3FF}.pl-u{margin:0 10px 8px;border:1px solid #EEF0F7;border-radius:12px}.pl-u>summary{padding:10px 12px;font-weight:700}.pl-u[open]{padding-bottom:6px}
.pl-ua,.pl-li input{width:20px;height:20px;accent-color:#6947E8;flex:none}
.pl-li{display:flex;align-items:center;gap:10px;margin:6px 10px;padding:10px 12px;border:1px solid #E3E7F2;border-radius:12px;cursor:pointer;background:#fff}.pl-li b{flex:1;min-width:0;font-weight:700}.pl-li small{color:#52658D;font-weight:700;white-space:nowrap}
.pl-li:hover:not(.off){border-color:#6947E8;background:#F6F3FF}.pl-li.off{opacity:.55;cursor:not-allowed}.pl-path{margin:10px 10px 0;color:#52658D;font-size:.85rem}
.pl-df{display:flex;align-items:center;gap:10px;padding-top:12px;border-top:1px solid #E3E7F2;margin-top:8px}.pl-dc{flex:1;color:#52658D;font-weight:700}.pl-go{font:inherit;font-weight:800;min-height:48px;padding:0 24px;border:0;border-radius:14px;background:#6947E8;color:#fff;cursor:pointer}.pl-go:disabled{opacity:.45;cursor:default}

#plMh{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.pl-mt{display:inline-flex;gap:6px;background:#fff;border:1px solid #E3E7F2;border-radius:14px;padding:4px}.pl-mt button{font:inherit;font-size:.95rem;font-weight:800;border:0;border-radius:10px;padding:8px 16px;background:transparent;color:#52658D;cursor:pointer}.pl-mt button[aria-pressed=true]{background:#6947E8;color:#fff}
/* calmer header: actions on top, who made it and the tags in small print under the game */
.pl-act{margin:-6px 0 10px;justify-content:flex-start}
.pl-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:10px 0 0;font-size:.84rem;color:#52658D;font-weight:600}
.pl-meta a{color:#6947E8;text-decoration:none;font-weight:700}.pl-meta .pl-tag{color:#52658D;background:#fff;border:1px solid #E3E7F2;border-radius:999px;padding:1px 10px;font-weight:600}.pl-meta .pl-tag:hover{color:#6947E8;border-color:#6947E8}
.pl-seg{border-radius:12px;padding:3px}.pl-seg>span{font-size:.8rem;padding:0 6px}.pl-seg button{min-height:32px;padding:0 12px;font-size:.85rem;border-radius:9px}.pl-seg svg{width:16px!important;height:16px!important}
.pl-ob{min-height:40px;font-size:.9rem;padding:0 14px}
.pl-t.lk .ph img{filter:saturate(.75) brightness(.92)}.pl-t .crown{position:absolute;top:8px;inset-inline-start:8px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#FFE08A,#FFB020);box-shadow:0 4px 10px rgba(0,0,0,.25);font-size:15px}
.pl-pro{border:0;border-radius:24px;padding:22px;width:min(420px,92vw);text-align:center;box-shadow:0 24px 60px rgba(24,35,68,.35)}.pl-pro::backdrop{background:rgba(24,35,68,.5)}.pl-pro-i{font-size:2.6rem}.pl-pro h3{margin:4px 0 6px;font-family:var(--fh,inherit);font-size:1.3rem}.pl-pro p{color:#52658D;margin:0 0 16px}.pl-pro div{display:flex;gap:8px;justify-content:center}.pl-ob.pri{background:#6947E8;color:#fff;border-color:#6947E8;text-decoration:none}
/* homework button on every game and activity */
.pl-ob.pl-hw{background:#EFEAFF;border-color:#D5CBFB;color:#5B3BD6}.pl-ob.pl-hw svg{stroke:#6947E8}.pl-ob[hidden]{display:none!important}
.pl-ob.pl-ask{animation:plAsk .5s 3}@keyframes plAsk{50%{transform:scale(1.06)}}
.pl-tip{flex:1 1 100%;font-weight:700;color:#8a5a00;background:#FFF7E6;border:1px solid #F5DEA8;border-radius:12px;padding:8px 12px}

.pl-mh2{grid-column:1/-1;margin:6px 0 0;font-size:1rem;font-weight:800;color:#182344}.pl-mh2:not(:first-child){margin-top:18px;padding-top:14px;border-top:1px solid #E3E7F2}
/* smaller game cards: more in a row, the description in small type */
.pl-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:14px!important}
@media (min-width:1100px){.pl-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
.pl-g .tx{padding:8px 12px 12px}.pl-g b{font-size:.95rem;line-height:1.35}
.pl-g small{font-size:.7rem;line-height:1.4;opacity:.85}
.pl-g .pka u{font-size:.7rem;padding:1px 8px}.pl-g .pka{gap:4px;margin-top:6px}
@media (max-width:479px){.pl-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.pl-g{flex-direction:column!important}.pl-g .im{flex:none!important;aspect-ratio:16/9!important;min-height:0!important}}

.pl-card>.pl-meta{justify-content:flex-end;margin:0;padding:2px 18px 14px}
.pl-card>.pl-meta:empty{display:none}

/* suggestions: just the name, three rows at most */
#plGrid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important}#plGrid .pl-g .tx small{display:none}#plGrid .pl-g .tx b{font-size:.92rem}
.pl-more-all{grid-column:1/-1;justify-self:center;font:inherit;font-weight:800;border:1px solid #E3E7F2;background:#fff;color:#6947E8;border-radius:999px;padding:8px 22px;cursor:pointer}

/* activity buttons and play options in one row */
.pl-act.pl-one{flex-wrap:wrap;justify-content:space-between;align-items:center}.pl-act.pl-one .pl-opts{margin:0}
@media (min-width:1100px){.pl-act.pl-one{flex-wrap:nowrap}.pl-act.pl-one .pl-as,.pl-act.pl-one .pl-opts{flex-wrap:nowrap}}

/* interactive exam: the whole page is the worksheet (no themes column, a tall paper) */
html.pl-exam .pl-themes{display:none!important}html.pl-exam .pl-main{display:block!important}
html.pl-exam .pl-stage{aspect-ratio:auto!important;height:calc(100vh - 150px)!important;min-height:640px;border-radius:18px;background:#fff!important}
html.pl-exam .pl-card{max-width:1100px;margin:0 auto}
/* minimal suggestion cards: a flat drawing of how the activity works and its name */
#plGrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:12px!important}
.pl-g.mini{border-radius:14px;box-shadow:none;border:1px solid #EADFE3;flex-direction:column!important}
.pl-g.mini .im{aspect-ratio:3/2!important;background:#F7F1EC;flex:none!important;min-height:0!important;padding:8px}
.pl-g.mini .im svg{border-radius:10px}
.pl-g.mini .tx{padding:8px 10px 10px;text-align:center}.pl-g.mini .tx b{font-size:.9rem!important}
.pl-g.mini:hover{border-color:#8C2F39;transform:translateY(-2px)}
@media (max-width:479px){#plGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.pl-g.mini .tx b{font-size:.78rem!important}}
