.gallery-adventures{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.gallery-adventures .selected{background:#dce9b7;box-shadow:inset 0 0 0 2px #638448}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gallery-card{border:1px solid #bfcca1;border-radius:22px;overflow:hidden;background:#fffcef;display:flex;flex-direction:column}.gallery-preview{position:relative;height:150px;isolation:isolate;display:grid;place-items:center;overflow:hidden;background:#dbe7be}.gallery-landscape{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.4;z-index:-1}.gallery-copy{padding:16px;display:flex;flex-direction:column;flex:1;gap:8px}.gallery-copy h2{font-size:23px;margin:0}.gallery-copy p{margin:0;font-size:14px;line-height:1.5}.gallery-state{font-size:12px;font-weight:800;color:#416b42}.gallery-location{padding:10px 0;border-top:1px solid #dce3c6;display:grid;gap:2px}.gallery-location span{font-size:12px}.gallery-copy .primary,.gallery-unlock{margin-top:auto!important}.gallery-copy .primary{min-height:44px}.gallery-unlock{color:#65755d}.gallery-companion{position:absolute;right:6px;bottom:0;width:86px;height:92px;object-fit:contain;filter:drop-shadow(0 3px 3px #304f3630)}
.gallery-symbol svg{width:120px;height:120px}.gallery-cards{display:grid;grid-template-columns:repeat(3,48px);gap:6px;transform:rotate(-5deg)}.gallery-cards span{border:2px solid #789367;border-radius:8px;background:#f9f4db;padding:5px;box-shadow:0 3px #54785340}.gallery-cards svg{width:32px;height:32px;display:block}.gallery-clouds{display:flex;gap:9px;align-items:center}.gallery-clouds span{background:#fffdf3;border-radius:50%;padding:12px;box-shadow:0 6px #a2cbd1}.gallery-clouds span:nth-child(2){transform:translateY(-22px)}.gallery-clouds svg{width:35px;height:35px}.gallery-crystals{display:flex;gap:7px;align-items:center}.gallery-crystals span{background:#bbd9d6;clip-path:polygon(50% 0,100% 25%,85% 85%,50% 100%,15% 85%,0 25%);padding:24px 6px}.gallery-crystals span:nth-child(even){background:#d2c6e6;transform:translateY(-12px)}.gallery-crystals svg{width:30px;height:30px}.gallery-lock{position:absolute;right:12px;bottom:10px;background:#fff9e2;border-radius:50%;padding:8px}.gallery-lock svg{width:32px;height:32px;display:block}.locked .gallery-preview{filter:saturate(.45)}.locked .gallery-state{color:#69745e}
@media(max-width:520px){.gallery-grid{grid-template-columns:1fr}.gallery-preview{height:130px}.gallery-adventures button{flex:1 1 42%;padding:10px 6px}}

.gallery-stages{text-align:center}.gallery-stages>img{height:100px;object-fit:contain}.gallery-stages>p{font-size:13px}.gallery-stages>div{display:grid;gap:10px;margin:18px 0}.gallery-stage{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:16px;text-align:left;border:1px solid #9ab17b;border-radius:16px;background:#ecf0d9;color:#254f3a}.gallery-stage strong{font-size:18px}.gallery-stage small{grid-column:1;font-size:13px}.gallery-stage>span{grid-column:2;grid-row:1/3;align-self:center;font-weight:700}.gallery-stage:hover{background:#dce9b7}
html[data-game-orientation="portrait"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task{grid-template-rows:minmax(0,1fr)}

/* A relaxed tablet round uses a compact, centred table of square cards. */
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area{container-type:size;align-items:center;justify-content:center;gap:12px}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .memory-board.pairs-3{flex:none;width:min(100cqw,calc((100cqh - 54px) * 1.5),560px);aspect-ratio:3/2;gap:10px;padding:12px;align-self:center}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .memory-card{padding:8px;gap:4px;border-radius:16px}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .memory-card>.drawn-icon{width:65%;height:65%;max-width:100px;max-height:100px;flex-shrink:0}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .memory-card .card-back{width:70%;height:70%;max-width:108px;max-height:108px;border-radius:14px}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .card-back .drawn-icon{width:82%;height:82%}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .memory-card:not(.face-up) small{display:none}
html[data-tablet-layout="true"] .landscape-ui .ui-stage .memory-screen .mini-workspace.no-task .mini-board-area .memory-card small{font-size:15px;line-height:18px}
