/* v6.9.38: photograph cards, fixed 4 × 8 layout and solid polished cubes. */
.memory-premium .memory-grid{max-width:none!important;align-items:stretch}
.memory-premium .memory-card{min-width:0;min-height:0}
.memory-premium .memory-back{padding:2mm;display:grid;grid-template-rows:minmax(0,1fr) 2.25em;gap:3px;font-size:var(--label-size,18px);overflow:hidden;background:#fffdf6}
.memory-premium .memory-back img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:6px;filter:none}
.memory-premium .photo-card .memory-back img{object-fit:cover;object-position:center}
.memory-premium .memory-name{font-size:var(--label-size,18px);line-height:1.1;font-weight:800;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;height:auto;width:100%;align-self:center;display:block;color:#10384d}
.memory-premium .memory-front small{font-size:11px}
.memory-premium .shape-card .memory-back{background:radial-gradient(ellipse,#fff,#f4faff)}
.memory-premium .shape-card .memory-back img{filter:drop-shadow(0 3px 2px #09284722)}
@container site69 (max-width:700px){.memory-premium .memory-back{padding:3px;gap:2px;grid-template-rows:minmax(0,1fr) 3.3em}.memory-premium .memory-name{overflow-wrap:anywhere;font-weight:750}.memory-premium .memory-front:before{inset:2px}.memory-premium .memory-back img{border-radius:3px}}
.qb-layout{grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:24px}
.qb-target,.qb-play{background:radial-gradient(ellipse at 50% 0,#245a69,#092c40 80%);border-color:#658a9366}
.qb-play{overflow:visible}
.qb-display{position:relative;display:flex;align-items:center;justify-content:center;perspective:1500px;perspective-origin:50% 35%;min-width:0;isolation:isolate;margin:5px 0 0;background:radial-gradient(ellipse at 50% 68%,#001a2966,transparent 60%)}
.qb-tray{position:relative;width:min(78%,410px);max-width:410px;padding:20px;margin:0;box-sizing:border-box;border:2px solid #f5d3a1;border-radius:20px;background:repeating-linear-gradient(3deg,#e4b875 0px,#dbae6c 3px,#e7bd7c 6px,#ddb374 10px);box-shadow:inset 0 0 0 8px #f1c98e,inset 0 0 0 11px #bb8952,inset 0 0 25px 15px #9e6c3b88,0 3px 0 #b98149,0 7px 0 #bf905b,0 12px 0 #8b6038,0 24px 34px #00111f88;transform-style:preserve-3d;transform:rotateX(48deg) rotateY(-8deg) rotateZ(-4deg);transform-origin:50% 50%;translate:0 35px}
.qb-grid{--cube-depth:100px;position:relative;gap:4px;perspective:none;isolation:auto;transform-style:preserve-3d}
.qb-cell{overflow:visible;perspective:none;isolation:auto;transform-style:preserve-3d;z-index:auto!important;outline:none;pointer-events:none}
.qb-cube{transform:none;transform-origin:50% 50% calc(var(--cube-depth)/2);transform-style:preserve-3d;position:absolute;inset:0;pointer-events:none}
.qb-face{display:block;position:absolute;inset:auto;background:#fffaf1;border:0;border-radius:5px;overflow:hidden;backface-visibility:hidden;box-shadow:inset 0 0 3px #ffffffaa;pointer-events:auto;cursor:pointer}
.qb-face svg{position:absolute;inset:0;width:100%;height:100%;border-radius:5px;pointer-events:none}
.qb-top{left:0;top:0;right:auto;bottom:auto;width:100%;height:100%;transform-origin:center;transform:translateZ(var(--cube-depth));filter:none}
.qb-front{left:0;top:100%;width:100%;height:var(--cube-depth);transform-origin:top;transform:translateZ(var(--cube-depth)) rotateX(-90deg);filter:brightness(.84);box-shadow:0 2px 3px #42251d66}
.qb-right{left:100%;top:0;right:auto;bottom:auto;width:var(--cube-depth);height:100%;transform-origin:left;transform:translateZ(var(--cube-depth)) rotateY(90deg);filter:brightness(.64)}
.qb-top:after,.qb-front:after,.qb-right:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:5px;box-shadow:inset 1px 2px 3px #ffffffa0,inset -1px -2px 3px #4b000033;background:linear-gradient(118deg,#ffffff55 0%,#ffffff12 19%,transparent 28%,transparent 65%,#fff1 100%)}
.qb-front:after{background:linear-gradient(100deg,#fff5,transparent 26%,#0001 80%)}
.qb-cell.selected:after{display:none}.qb-cell.selected .qb-top:after{box-shadow:inset 0 0 0 3px #ffdf8a,inset 3px 4px 8px #ffffff70}
.qb-cell:focus-visible .qb-top{outline:3px solid #64f4e3;outline-offset:2px}
.qb-actions{position:relative;margin:12px auto 0;z-index:2;max-width:410px}
.qb-pattern{max-width:300px;border-color:#152b35;outline-color:#dbbc79}
.qb-title b{font-size:21px}.qb-note{color:#c2d5dc}
@container site69 (max-width:700px){.qb-layout{grid-template-columns:1fr;gap:15px}.qb-display{perspective:1000px;margin-top:8px}.qb-tray{width:83%;padding:13px;border-radius:15px;translate:0 24px}.qb-grid{gap:3px}.qb-face,.qb-face svg,.qb-top:after,.qb-front:after,.qb-right:after{border-radius:3px}.qb-target .qb-pattern{max-width:145px}.qb-title b{font-size:17px}.qb-actions{margin-top:0}.qb-play{padding-bottom:18px}}
.memory-premium .memory-back{grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:stretch;align-content:stretch}
.memory-premium .memory-back{grid-template-rows:minmax(0,1fr) auto}.memory-premium .memory-name{padding:3px 0}
