/* Each game decorates the existing theme's tile and modal; it never changes their outside dimensions. */
.ag-face{position:absolute;display:block;top:0;right:0;bottom:0;left:0;overflow:hidden;isolation:isolate;background:linear-gradient(135deg,var(--ag-pale),var(--ag-spark));color:var(--ag-ink);border-radius:inherit}
.ag-classic{background:radial-gradient(ellipse at 65% 18%,var(--ag-tone),var(--ag-night) 86%);color:#fff7eb}
.ag-face .ag-actor{position:absolute;right:4%;top:7%;width:48%;height:53%;object-fit:contain;object-position:bottom center;transform-origin:center bottom;max-width:none;filter:drop-shadow(0 3px 3px #38271129);pointer-events:none;animation:ag-look 11s ease-in-out infinite}
.ag-face .ag-prop{position:absolute;top:12%;left:11%;width:35%;height:34%;display:flex;align-items:center;transform:rotate(-9deg);opacity:.8;pointer-events:none}
.ag-prop svg{width:100%;height:100%}
.ag-face .ag-caption{position:absolute;left:8%;bottom:9%;right:6%;display:block;pointer-events:none}
.ag-face .ag-title{display:block;font:500 clamp(18px,4.4vw,43px)/1.01 Georgia,serif;letter-spacing:-.035em;color:inherit;text-align:left}
.ag-face .ag-hint{display:block;margin-top:5px;font:500 clamp(11px,1.4vw,16px)/1.22 system-ui;text-align:left;color:inherit}
.ag-classic .ag-title{font-family:inherit;font-weight:550;font-size:clamp(16px,3.8vw,36px)}
.ag-classic .ag-hint{font-size:clamp(10px,1.65vw,16px);color:#fff2da}
@supports(font-size:1cqw){.ag-face .ag-title{font-size:clamp(18px,10cqw,48px)}.ag-classic .ag-title{font-size:clamp(13px,10cqw,35px)}.ag-face .ag-hint{font-size:clamp(10px,4cqw,17px)}}
.ag-face[data-amber-game=tinder] .ag-actor{animation-name:ag-kiss;animation-delay:-3s}.ag-face[data-amber-game=vault] .ag-actor{animation-delay:-7s}.ag-face[data-amber-game=memory] .ag-actor{animation-name:ag-peek;animation-delay:-4s}.ag-face[data-amber-game=battleship] .ag-actor{animation-name:ag-peek;animation-delay:-8s}.ag-face[data-amber-game=catch] .ag-actor{animation-name:ag-hop;animation-delay:-6s}.ag-face[data-amber-game=camera] .ag-actor{animation-delay:-2s}.ag-face[data-amber-game=riddle] .ag-actor{animation-delay:-9s}
@keyframes ag-look{0%,82%,100%{transform:none}88%{transform:rotate(-4deg) translateY(-2%)}94%{transform:rotate(2deg)}}
@keyframes ag-kiss{0%,80%,100%{transform:none}89%{transform:rotate(4deg) scale(1.035)}}
@keyframes ag-peek{0%,82%,100%{transform:none}90%{transform:translateX(-5%) rotate(-4deg)}}
@keyframes ag-hop{0%,82%,100%{transform:none}88%{transform:translate(2%,-5%) rotate(3deg)}}
.lv-sheet-open .ag-actor{animation-play-state:paused}.ag-tile .ag-face{border-radius:inherit}
.ag-scene{padding:4px clamp(6px,2vw,22px) 16px;margin:auto;max-width:670px;text-align:center;color:inherit}
.ag-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 auto 5px;max-width:640px;text-align:left;min-height:77px;padding:4px 17px;border-radius:20px;background:linear-gradient(115deg,var(--ag-pale),transparent 88%);color:var(--ag-ink)}
.ag-head h1,.lv-mode-body .ag-head h1{font:600 clamp(25px,4vw,39px)/1.03 Georgia,serif;letter-spacing:-.035em;margin:0}
.ag-head img{width:76px;height:75px;object-fit:contain;flex:none}
.ag-chart{width:min(100%,434px);box-sizing:border-box;margin:7px auto 4px;padding:9px 15px 7px;border-radius:18px;overflow:hidden;color:#14465a;background:radial-gradient(ellipse at 2% 5%,#fcf5d7 1%,transparent 25%),radial-gradient(ellipse at 100% 90%,#94c7bd 1%,transparent 35%),linear-gradient(156deg,#d2e7e8,#95c7d1 56%,#a7cfd4);border:1px solid #83b5bd;box-shadow:inset 0 0 22px #487f8815}
.ag-chart-head{display:flex;align-items:center;justify-content:space-between;height:34px;margin:0 5px 2px 20px;color:#235e72}
.ag-chart-head>span{font:italic 500 18px Georgia,serif;letter-spacing:.01em}.ag-chart-head>svg{width:38px;height:32px;flex:none;transform:rotate(-5deg)}
.ag-grid{width:min(100%,320px);margin:auto;display:grid;grid-template-columns:17px repeat(5,minmax(0,1fr));gap:3px}
.ag-sea-label{align-self:center;justify-self:center;min-width:0;font:650 11px/1.2 system-ui;color:#235362}
.ag-cell{display:grid;place-items:center;line-height:1;position:relative;border:1px solid #ffffffaa!important;padding:0!important;min-width:0;width:100%;height:clamp(37px,6.55vh,56px);border-radius:6px!important;background:linear-gradient(145deg,#ffffff3c,#b1dae12c)!important;box-shadow:inset 0 -1px #5894a33a;color:#317589!important;touch-action:manipulation}
.ag-cell svg{width:58%;height:58%;max-width:31px;max-height:31px}.ag-cell.taken{opacity:.88!important;background:#8cb8bd55!important}.ag-cell.chosen,.ag-cell[aria-pressed=true]{background:#f8e3b9!important;border-color:#b48243!important;color:#66481d!important;box-shadow:0 0 0 1px #ad834f}
.ag-cell .ag-cell-pin,.ag-cell.chosen .ag-cell-water{display:none}.ag-cell.chosen .ag-cell-pin{display:block}.ag-cell:focus-visible,.ag-door:focus-visible,.ag-pair:focus-visible{outline:3px solid #74470d!important;outline-offset:2px}
.ag-chart-foot{display:flex;gap:13px;align-items:center;justify-content:center;margin:6px 0 0;font:550 11px/1.15 system-ui;color:#254c57}.ag-chart-foot span{display:inline-flex;gap:4px;align-items:center}.ag-chart-foot i{width:10px;height:8px;border-top:1.5px solid #317589;border-radius:50%;transform:translateY(3px)}.ag-chart-foot svg{width:15px;height:15px}
.ag-cell.ag-reveal:after{content:'';position:absolute;top:10%;right:10%;bottom:10%;left:10%;border:2px solid #fffbed;border-radius:50%;animation:ag-ripple .4s ease-out both}
@keyframes ag-ripple{from{transform:scale(.3)}to{transform:scale(1.4);opacity:.1}}
.ag-vault{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,1.5vw,14px);max-width:575px;width:100%;margin:20px auto;padding:8px clamp(3px,1.3vw,13px);border-radius:16px;background:radial-gradient(ellipse at 50% 68%,#f5e8c6,transparent 75%)}
.ag-door{display:flex;align-items:center;flex-direction:column;min-width:0;border-radius:15px!important;background:transparent!important;padding:7px 0!important;border:1px solid transparent!important;color:#503d29!important;touch-action:manipulation}
.ag-door.active{background:#fff4d6!important;border-color:#c79754!important}.ag-door span{font:600 clamp(12px,2vw,16px)/1.2 system-ui;white-space:normal}.ag-chest{width:100%;max-width:164px;display:block;overflow:visible}
.ag-lid,.ag-lock{transition:transform .2s ease;transform-box:fill-box;transform-origin:center bottom}.ag-door.ag-reveal .ag-lid{transform:translateY(-5px) rotate(-6deg)}.ag-door.ag-reveal .ag-lock{transform:rotate(18deg)}
.ag-memory-intro{max-width:395px;margin:20px auto;display:grid;gap:13px;text-align:center}.ag-memory-intro p{margin:0}.ag-memory-intro label{font:500 14px system-ui;text-align:left}.ag-memory-intro input{display:block;margin:4px auto}
.ag-memory-status{display:flex;gap:9px;justify-content:center;margin:10px 0 12px;font:500 15px/1.3 system-ui}.ag-pair-grid{max-width:475px;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:auto}
.ag-pair{position:relative;overflow:hidden;width:100%;min-width:0;height:clamp(79px,13vh,126px);display:grid;place-items:center;padding:0!important;border:1px solid #c4cd9d!important;border-radius:12px!important;background:radial-gradient(ellipse at 15% 8%,#edf1d3,#c5d3a4)!important;color:#52673c!important;touch-action:manipulation}.ag-pair i{width:34%;height:40%;transform:rotate(-8deg)}.ag-pair i svg{width:100%;height:100%}.ag-pair img{width:100%;height:100%;object-fit:cover}.ag-pair span{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#2f2b1fe6);color:white;text-align:left;padding:12px 6px 4px;font:600 11px/1.15 system-ui}.ag-pair.found{opacity:1!important;box-shadow:inset 0 0 0 2px #66844b}.ag-pair.found::after{content:'✓';position:absolute;top:4px;right:4px;color:white;background:#486332;border-radius:20px;width:20px;height:20px;display:grid;place-items:center;font:650 13px system-ui}.ag-error{color:#a02f21}
@media(max-width:480px){.ag-head{min-height:61px;padding:2px 10px}.ag-head img{height:60px;width:61px}.ag-chart{padding:6px 8px}.ag-vault{margin:13px auto}.ag-classic .ag-actor{height:51%;top:4%}.ag-classic .ag-hint{line-height:1.05}}
@media(max-height:575px) and (min-width:530px){.ag-cell{height:34px}.ag-chart{width:min(100%,360px)}.ag-grid{max-width:270px}.ag-head{min-height:42px}.ag-head img{height:44px;width:44px}}
@media(prefers-reduced-motion:reduce){.ag-face .ag-actor,.ag-reveal:after,.ag-door .ag-lid,.ag-door .ag-lock{animation:none!important;transition:none!important}}
.ag-mode-mouse{width:42px;height:44px;vertical-align:middle;display:inline-block;object-fit:contain;margin-left:9px;animation:ag-look 12s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.ag-mode-mouse{animation:none!important}}
/* Older embedded engines ignore dvh and shorthand inset; physical bounds keep the original dialog geometry. */
@supports not (height:100dvh){
 .live-shop #screen.lv-app{height:100vh;width:min(100%,95vh,1000px)}
 .lv-sheet{height:min(84vh,780px)}.lv-sheet.lv-mode-sheet{height:min(92vh,850px)}
 .lv-layer{top:0;right:0;bottom:0;left:0}.lv-lane{top:0;bottom:0}.lv-slide{top:0;right:0;bottom:0;left:0}
 @media(max-width:650px){.lv-sheet.lv-mode-sheet{height:93vh}}
}
.ag-catch-target{text-align:left;display:block;margin:10px 0 16px;font:550 15px/1.3 system-ui}.ag-catch-target select{display:block;width:100%;min-height:44px;margin-top:4px}
@supports not (aspect-ratio:1/1){.lv-finite-card::before{content:'';display:block;padding-top:100%}}
