/* V85.8 — common visual language for play, quiz and colouring. */
body.vp311-games .game-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:16px;align-items:stretch}
body.vp311-games .game-directory .entry{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #d5c6a9;border-radius:16px;background:#fffdf7;box-shadow:0 3px 0 #e7dcc8;text-decoration:none}
body.vp311-games .game-directory .entry img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block}
body.vp311-games .game-directory .entry-body{display:flex;flex:1;flex-direction:column;gap:7px;padding:14px;min-width:0}
body.vp311-games .game-directory h2{font-size:clamp(18px,2.4vw,23px);line-height:1.25;margin:0;color:#244884}
body.vp311-games .game-directory p{font-size:15px;line-height:1.45;margin:0 0 6px;color:#42574d}
body.vp311-games .game-directory .play34{display:grid;place-items:center;min-height:44px;background:#244a3b;color:white;border-radius:10px;font-weight:700;margin-top:auto;text-align:center;padding:8px}
.vp311-games .game-directory .entry:focus-visible,.r42 button:focus-visible,.studio33 button:focus-visible,.vp858-ludo button:focus-visible,.vp858-world button:focus-visible,.vp858-travel button:focus-visible{outline:3px solid #244884;outline-offset:3px}
.r42 .quiz42,.r42 .mem-wrap{border:1px solid #d5c6a9;background:#fffdf7;border-radius:18px;padding:clamp(12px,3vw,26px);min-width:0}
.r42 .game-info42{flex-wrap:wrap;padding:9px 11px;background:#f0ede3;border-radius:10px;color:#244a3b;gap:8px}
.r42 .game-info42 span{font-size:clamp(14px,2vw,17px)}.r42 .progress42{height:12px;background:#e2d9c8}.r42 .progress42 span{background:#356e4d}
.r42 .quiz42 .choice42{min-height:54px;font-size:clamp(16px,2vw,20px);line-height:1.45;padding:12px 15px;overflow-wrap:anywhere;opacity:1}
.r42 .quiz42 .choice42.correct:before{content:'✓ ';font-weight:800}.r42 .quiz42 .choice42.wrong:before{content:'↺ ';font-weight:800}
.r42 .quiz42 .feedback42{border-left:4px solid #b99553;font-size:16px;line-height:1.55}.r42 .quiz42 .meta42,.r42 .mem-wrap .meta42{font-size:15px;line-height:1.45;color:#354c40}
.r42 .quiz42 .btn,.r42 .memory-controls .btn{min-height:48px;white-space:normal}.r42 .quiz42 .btn.secondary{margin-left:0}.r42 .quiz42 select,.r42 .memory-controls select{font-size:16px;min-width:0;max-width:100%}
.r42 #quizPlay42 .speech47{display:flex;flex-wrap:wrap;gap:6px;margin-block:8px}.r42 #quizPlay42 .speech47 button{font-size:14px;min-height:44px}.r42 #question42{overflow-wrap:anywhere}
.r42 .board42{gap:clamp(4px,1vw,10px);max-width:820px}.r42 .card42{border-color:#b99553;box-shadow:0 2px 0 #d9c9ae}.r42 .card42[data-open=true]{border-color:#244884}.r42 .card42 img{object-fit:contain;background:#fffaf0}.r42 .card42[data-matched=true]{border:2px solid #356e4d;box-shadow:0 0 0 1px #356e4d;opacity:1}.r42 .card42[data-matched=true]:after{background:#244a3b;bottom:2px;right:2px;padding:1px 5px}
.r42 .card42 .back42{background:linear-gradient(145deg,#244a3b,#315b48);color:#fff4d4}.r42 #mstatus42{min-height:44px;display:flex;align-items:center;margin:10px 0;padding:8px 10px;background:#f4efdf;border-radius:10px}.r42 #vp858-match{font-size:15px;line-height:1.4;margin:8px 0;color:#244a3b;overflow-wrap:anywhere}.r42 #mwin42{border:2px solid #356e4d;background:#e7f2e5;color:#244a3b}
.studio33 .studio-panel{border-color:#d5c6a9}.studio33 .studio-controls{gap:10px;flex-wrap:wrap}.studio33 .studio-controls select{min-height:48px;max-width:100%;min-width:0;font-size:16px}.studio33 .studio-controls button,.studio33 .color-card button{min-height:44px;white-space:normal;overflow-wrap:anywhere}.studio33 .color-card{min-width:0;border-color:#d5c6a9;display:flex;flex-direction:column;gap:8px;padding:10px}.studio33 .color-card img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;background:#fff;border:1px solid #e8dfd0;border-radius:8px}.studio33 .color-card h3{line-height:1.35;font-size:16px;overflow-wrap:anywhere}.studio33 .color-card button{width:100%}.studio33 .color-card .vp858-preview{margin-top:auto;background:#fffaf0;color:#244884;border:1px solid #b99553;border-radius:9px}.studio33 #page33{font-size:15px;font-weight:700}.studio33 #status33{font-size:16px;line-height:1.5}
#vp858-color-dialog{max-width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);width:100%;padding:16px;border:1px solid #b99553;border-radius:16px;background:#fffdf7;color:#244a3b;overflow:auto}#vp858-color-dialog::backdrop{background:#152c27b3}#vp858-color-dialog img{display:block;max-height:65vh;max-width:100%;width:auto;height:auto;margin:8px auto;object-fit:contain}#vp858-color-dialog button{min-height:44px}#vp858-color-dialog h2{font-size:20px;margin:0}#vp858-color-dialog .vp858-dialog-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between}
/* Ludo: large secondary move buttons, readable state, wide board + controls. */
.vp858-ludo main{max-width:920px;padding:14px 12px 24px}.vp858-ludo .board{border:4px solid #fffdf7;border-radius:14px;max-width:520px;width:100%;margin:auto}.vp858-ludo .turn{border-color:#d5c6a9;background:#fffdf7;flex-wrap:wrap}.vp858-ludo .turn strong{font-size:17px}.vp858-ludo .turn small{font-size:14px}.vp858-ludo .controls{border-color:#d5c6a9;margin-top:12px}.vp858-ludo .msg{font-size:16px;line-height:1.45;min-height:44px}.vp858-ludo .choices button{flex:1 1 105px;min-height:48px;border:2px solid #b99553}.vp858-ludo .piece.legal{outline:2px solid #173f30;outline-offset:1px;box-shadow:0 0 0 3px #f4cb69}.vp858-ludo .score span{font-size:14px;color:#244a3b}.vp858-ludo .bottom button{font-size:16px;min-height:48px}.vp858-ludo .vp858-board-caption{font-size:14px;color:#42574d;text-align:center;margin:6px 0}.vp858-ludo .subtitle{font-size:15px}.vp858-ludo #vp858-die-number{min-width:2ch;font-size:20px;font-weight:800;color:#244a3b;text-align:center}
@media(min-width:800px){.vp858-ludo main{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px 18px;align-items:start}.vp858-ludo main h1,.vp858-ludo .subtitle,.vp858-ludo .turn{grid-column:1/-1}.vp858-ludo .board{grid-column:1;grid-row:4/8}.vp858-ludo .controls,.vp858-ludo .score,.vp858-ludo .bottom,.vp858-ludo .vp858-board-caption{grid-column:2;margin:0}.vp858-ludo .vp858-board-caption{text-align:left}}
/* Shared seven workshops, and travel. No changes to rules or content. */
.vp858-world .game-world,.vp858-travel .panel{border:1px solid #d5c6a9;border-radius:16px;min-width:0}.vp858-world .game-world .prompt,.vp858-travel .question{line-height:1.35;overflow-wrap:anywhere}.vp858-world .game-world .choice,.vp858-travel .answer{min-height:54px;line-height:1.35;overflow-wrap:anywhere;border-radius:12px}.vp858-world .game-world .hint,.vp858-world .game-world .chapterline,.vp858-travel .small,.vp858-travel .sub{font-size:14px!important;line-height:1.45}.vp858-world .playtools button,.vp858-world .game-world .levels button,.vp858-travel .toolbar button{min-height:44px}.vp858-world .game-world .feedback,.vp858-travel .feedback{font-size:16px;line-height:1.5;border-left:4px solid #b99553}.vp858-world .game-world .stage-art{object-fit:contain}.vp858-travel .place{min-width:0;overflow-wrap:anywhere}.vp858-travel .place small{font-size:14px}.vp858-travel .route strong{line-height:1.25}.vp858-travel .route small{font-size:14px}
@media(max-width:600px){body.vp311-games .game-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.vp311-games .game-directory .entry-body{padding:9px}body.vp311-games .game-directory h2{font-size:16px}body.vp311-games .game-directory p{font-size:14px}.r42 .quiz42 .filter42{grid-template-columns:1fr}.r42 .quiz42 .vp32-quiz-actions{display:grid;gap:8px}.r42 .memory-controls{gap:8px}.r42 .memory-controls label{min-width:0;flex:1 1 145px}.r42 .memory-controls button{flex:1 1 115px}.r42 .board42[data-size="30"]{--cols:5}.r42 .board42[data-size="12"]{--cols:4}.r42 .board42[data-size="6"]{--cols:3}.studio33 .color-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.studio33 .studio-controls{display:flex}.studio33 .studio-controls select,.studio33 .studio-controls button{flex:1 1 135px}.vp858-ludo .controls{padding:10px}.vp858-ludo .die{width:58px;height:58px}.vp858-ludo .rollrow{gap:8px}.vp858-travel .route .body{min-width:0}.vp858-travel .route strong{font-size:17px}}
@media(max-width:340px){body.vp311-games .game-directory{grid-template-columns:1fr}.r42 .board42[data-size="30"]{--cols:4}.studio33 .color-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.vp858-ludo .piece,.vp858-world .game-world *,.vp858-travel main *,.r42 .board42 *{animation:none!important;transition:none!important}}
@media print{#vp858-color-dialog{display:none!important}.studio33 .vp858-preview{display:none!important}}
