body:has(#modal.album-open[open]){overflow:hidden}
#modal.album-open{
  position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;
  height:100dvh;border:0;border-radius:0;background:#111e2c;overflow:hidden;animation:none
}
.album-open .dialog-panel{
  display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;padding:0;
  background:linear-gradient(110deg,#1b3641,#102330 48%,#192d38)
}
.album-open #modal-kicker{display:none}
.album-open #modal-title{
  padding:calc(env(safe-area-inset-top) + .76rem) max(4.25rem,env(safe-area-inset-right)) .76rem;
  margin:0;text-align:center;color:#fff0d5;font-size:clamp(1.37rem,4vw,2.15rem);
  border-bottom:1px solid #c19661;line-height:1.08
}
.album-open #close-modal{
  z-index:5;top:calc(env(safe-area-inset-top) + .22rem);right:max(.6rem,env(safe-area-inset-right));
  min-width:44px;min-height:44px;border-color:#f4d09782;background:#0f202b;color:#fff0d5
}
.album-open #modal-body{display:block;min-height:0}
.collection-album{
  --album-dark:#263828;--album-red:#853a3d;--frame-gold:#c99051;
  display:grid;grid-template-rows:minmax(0,1fr) auto;height:100%;min-width:0;overflow:hidden
}
.album-stage{
  min-height:0;position:relative;container-type:size;
  background:radial-gradient(ellipse at 50% 45%,#9bb2bf,#223b4d);
  overflow:hidden
}
.album-stage::before{
  content:"";position:absolute;inset:-45px;background:var(--scene-image) center/cover;
  filter:blur(28px) brightness(.65);opacity:.8;pointer-events:none
}
[data-collection="tree"] .album-stage{background:radial-gradient(ellipse at center,#6f482f,#241a20)}
[data-collection="lanterns"] .album-stage{background:radial-gradient(ellipse at center,#65728f,#202a45)}
.album-viewport{position:absolute;inset:0;display:flex;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#ead2a1a6 #162c37a8;overscroll-behavior:contain}
.album-board{
  --aspect:1.5;position:relative;flex:none;isolation:isolate;margin:auto;
  width:calc(100cqh * var(--aspect));aspect-ratio:var(--aspect)
}
.album-viewport.fit-scene .album-board{width:min(100%,calc(100cqh * var(--aspect)))}
[data-collection="village"] .album-board{--aspect:1.5}
[data-collection="snowman"] .album-board,[data-collection="tree"] .album-board,[data-collection="lanterns"] .album-board{--aspect:1}
.album-backdrop{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:fill;user-select:none}
.album-stage-controls{position:absolute;right:max(.8rem,env(safe-area-inset-right));bottom:.7rem;z-index:3}
.album-view{
  min-height:44px;border-color:#f6dcaa9c;padding-inline:.85rem;border-radius:999px;
  color:#fff2d7;background:#17303cee;box-shadow:0 2px 7px #10233055;font-size:.84rem
}
.album-slot,.album-decoration{
  position:absolute;left:var(--spot-x,var(--original-x));top:var(--spot-y,var(--original-y));
  width:var(--spot-width,var(--original-width));
  transform:translate(-50%,-50%)
}
.album-decoration{height:auto;pointer-events:none;z-index:1;filter:drop-shadow(0 3px 2px #152c3a5c)}
.album-slot,.album-slot:hover{
  display:grid;place-items:center;min-width:0;min-height:0;z-index:var(--sticker-depth,1);
  appearance:none;background:none;box-shadow:none;border:0;padding:0;border-radius:0;cursor:default
}
.album-slot:focus-visible{outline:2px solid #fff6cf;outline-offset:1px;border-radius:.5rem}
.album-sticker{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.album-slot .album-sticker{
  opacity:.48;
  filter:grayscale(1) sepia(.16) hue-rotate(155deg) contrast(.72) brightness(1.31)
    drop-shadow(0 0 1px #203c50)
}
[data-collection="tree"] .album-slot .album-sticker,[data-collection="lanterns"] .album-slot .album-sticker{
  opacity:.44;filter:grayscale(1) brightness(1.22) contrast(.66) drop-shadow(0 0 1px #182c3c)
}
.album-slot.is-selected{z-index:40;cursor:pointer}
.album-slot.is-selected::before{content:"";position:absolute;inset:50% auto auto 50%;width:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}
[data-collection] .album-slot.is-selected .album-sticker{
  opacity:1;filter:grayscale(1) contrast(.56) brightness(1.53) drop-shadow(2px 0 0 #b36520)
    drop-shadow(-2px 0 0 #b36520) drop-shadow(0 -2px 0 #b36520)
    drop-shadow(0 2px 0 #b36520) drop-shadow(0 0 .6rem #ffec96)
}
[data-collection] .album-slot.is-placed .album-sticker{opacity:1;filter:drop-shadow(0 3px 2px #1f32405c)}
.album-slot.is-placed{pointer-events:none}
[data-collection="lanterns"] .album-slot.is-placed .album-sticker{
  filter:drop-shadow(0 0 .3rem #fff0ab) drop-shadow(0 0 1rem #ffc766)
}
.album-spot-label{
  position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;
  border:1px solid #f9de9a;padding:.23rem .58rem;border-radius:999px;display:none;
  background:#273224f5;color:#fff5da;font-size:.82rem;line-height:1.25;font-weight:700;
  box-shadow:0 2px 6px #080e263d;pointer-events:none
}
.album-slot.is-selected .album-spot-label{display:block}
.album-dock{
  position:relative;z-index:4;padding:.62rem max(.85rem,env(safe-area-inset-right)) calc(.7rem + env(safe-area-inset-bottom)) max(.85rem,env(safe-area-inset-left));
  border-top:5px solid var(--frame-gold);box-shadow:0 -2px 14px #16253555;
  background:radial-gradient(ellipse at 50% 0,#fff6df,#ebd4a8);color:#273628
}
.album-dock::before{
  content:"";position:absolute;inset:-8px 0 auto;height:6px;pointer-events:none;
  background:repeating-linear-gradient(120deg,#873d3d 0 15px,#ebd4a8 15px 26px,#415d47 26px 41px,#ebd4a8 41px 52px)
}
.album-dock-header{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .7rem}
.album-dock-title{font:700 1.35rem/1.14 var(--serif);color:var(--album-red)}
.album-progress{font-size:.875rem;font-weight:700;color:#485440}
.album-back{
  margin-left:auto;min-height:44px;font-size:.84rem;color:#51302d;background:#fff5dd;
  border-color:#ac7d64;border-radius:999px;padding-inline:.8rem
}
.album-back:hover{color:#3a2621;background:#fff9ed;border-color:#853a3d}
.album-help,.album-empty{font-size:.875rem;color:#3f4e40}
.album-help{margin-top:.2rem}
.album-tray{
  display:flex;gap:.5rem;overflow:auto;scrollbar-width:thin;align-items:stretch;
  padding:.35rem 3px .15rem;margin:0 -3px;min-height:1.75rem
}
.album-empty{margin:auto 0}
.album-piece{
  display:grid;justify-items:center;align-content:space-between;gap:3px;min-height:72px;flex:0 0 86px;
  width:86px;padding:4px 3px;cursor:grab;user-select:none;background:#fff7e4;border:1px solid #bc956d;
  color:#392b24;border-radius:.66rem;box-shadow:0 2px 3px #59472f24
}
.album-piece:hover,.album-piece[aria-pressed="true"]{background:#f9e4ad;color:#392b24;border-color:#8c4438}
.album-piece:focus-visible,.album-back:focus-visible{outline-color:#773c36}
.album-piece[aria-pressed="true"]{box-shadow:inset 0 0 0 1px #8c4438}
.album-piece .album-sticker{height:44px;width:65px;object-fit:contain}
.album-piece-name{line-height:1.1;font-size:.8rem}
.album-drag-piece{
  position:fixed;z-index:60;display:block;width:74px;transform:translate(-50%,-50%);
  pointer-events:none;filter:drop-shadow(0 3px 4px #0e172a90)
}
.album-drag-piece .album-tile{margin:auto}
.piece-reward .album-sticker{width:100%;max-width:180px;height:118px;object-fit:contain;justify-self:center}
.piece-reward .album-tile{justify-self:center;--tile-height:68px;margin:15px}
.collection-album[data-collection="puzzle"]{grid-template-columns:minmax(0,1fr)}
[data-collection="puzzle"] .album-dock{min-width:0}
[data-collection="puzzle"] .album-stage{
  background:radial-gradient(ellipse at center,#456e6c,#172d37 75%)
}
[data-collection="puzzle"] .album-board{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));overflow:hidden;
  width:min(calc(100% - 28px),calc((100cqh - 28px) * var(--aspect)));
  outline:3px solid #d6ad76;border-radius:.55rem;box-shadow:0 12px 36px #071e29ab,0 0 0 3px #18382f
}
[data-collection="puzzle"] .fit-scene .album-board{width:min(83%,calc((100cqh - 66px) * var(--aspect)))}
.album-picture{
  position:absolute;inset:0;background-size:100% 100%;background-position:center;
  filter:saturate(.48) brightness(.57)
}
[data-collection="puzzle"] .album-slot{
  position:relative;inset:auto;width:100%;height:100%;transform:none;min-width:0;min-height:0
}
[data-collection="puzzle"] .album-spot-label{top:auto;bottom:.2rem}
.album-tile{position:relative;display:block;width:100%;height:100%;pointer-events:none}
.album-slot .album-tile{position:absolute;inset:0;filter:drop-shadow(0 0 1px #fff0c7) drop-shadow(1px 1px 1px #112733)}
.album-tile-cut{
  position:absolute;inset:-20%;display:block;background:#fbedd630;
  background-size:214.285714% 214.285714%;background-repeat:no-repeat
}
.album-slot.is-selected .album-tile{filter:drop-shadow(0 0 2px #ffffcc) drop-shadow(0 0 7px #ffc76a)}
.album-slot.is-selected .album-tile-cut{background-color:#f9e4ac72}
.album-slot.is-placed .album-tile{filter:none}
.album-slot.is-placed .album-tile-cut,.album-tile-mini .album-tile-cut{
  background-image:var(--puzzle-image)
}
.album-tile-mini{height:var(--tile-height,32px);width:calc(var(--tile-height,32px) * var(--picture-aspect));margin:6px 0;filter:drop-shadow(0 1px 1px #563b3d)}
.album-tile-number{
  position:absolute;display:grid;place-items:center;border:1px solid #ffe4a6a3;border-radius:50%;
  background:#152e39dd;min-width:2rem;min-height:2rem;color:#fff2d6;font-weight:700
}
.album-slot.is-placed .album-tile-number{display:none}
@media (max-width:580px){
  .album-open #modal-title{padding-left:1rem;padding-right:3.7rem;text-align:left}
  .album-dock-title{font-size:1.2rem}
  .album-tray{gap:.38rem}
}
@media (max-height:520px) and (orientation:landscape){
  .album-open #modal-title{padding-block:calc(env(safe-area-inset-top) + .56rem) .56rem;font-size:1.4rem}
  .album-dock{padding-top:.3rem;padding-bottom:calc(.26rem + env(safe-area-inset-bottom))}
  .album-dock-header{min-height:1.4rem}
  .album-piece{min-height:62px}
  .album-piece .album-sticker{height:35px}
  .album-piece .album-tile{--tile-height:25px}
}
@container (min-aspect-ratio: 3/2){
  [data-collection="village"] .album-stage-controls{display:none}
}
@container (min-aspect-ratio: 1/1){
  [data-collection="snowman"] .album-stage-controls,
  [data-collection="tree"] .album-stage-controls,
  [data-collection="lanterns"] .album-stage-controls{display:none}
}
