/* A close view through the glass, with the control deck directly below. */
[data-games-lounge]{color:#34594e;min-width:0}
dialog:has([data-games-lounge]){width:min(640px,calc(100vw - 24px));max-width:640px;max-height:calc(100svh - 24px)}
dialog:has([data-games-lounge]) .modal-header{padding-bottom:14px}
dialog:has([data-games-lounge]) .modal-body{padding-top:0}
.games-surface{position:relative;min-width:0}
.games-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.claw-room{max-width:min(100%,calc(100svh - 275px),540px);min-width:240px;margin:0 auto;isolation:isolate}
.claw-cabinet{position:relative;width:100%;font-family:'DM Sans',sans-serif;--stick-tilt:0}
.claw-glass{position:relative;aspect-ratio:1;overflow:hidden;border-radius:18px 18px 6px 6px;background:#a69c65;border:3px solid #baa06b;box-shadow:0 3px 15px #5d4a3320;isolation:isolate}
.claw-scene{display:block;width:100%;height:100%;overflow:hidden}
.claw-glass-shine{position:absolute;inset:0;pointer-events:none;background:linear-gradient(117deg,transparent 5%,#fff8db14 5.2%,#fff9d901 19%,transparent 19.2%,transparent 75%,#fff9e00c 75.3%,transparent 83%);box-shadow:inset 0 0 25px #65503829;border:1px solid #fff8dc60;border-radius:inherit}
.claw-power-wash{position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 30%,#fff5d447 49%,transparent 60%);transform:translateX(-110%);opacity:0}
.is-starting .claw-power-wash{animation:claw-power-on 1.4s ease-out both}
.claw-deck{position:relative;display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:center;gap:6%;padding:13px 8% 17px;min-height:86px;background:#e9d8af url('./games/cuddle-crane/cabinet-v1.webp') center 66.5% / 117% auto;border:3px solid #9d8960;border-top:0;border-radius:0 0 19px 19px;box-shadow:0 7px 0 #7a7856,0 12px 18px #60462d20}
.claw-deck>div{display:flex;align-items:center;justify-content:center;min-width:0;height:52px}
.claw-status{min-height:70px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;margin:14px 0 4px;text-align:center;font-size:13px;line-height:1.5}
.claw-status strong{color:#36594c;font-size:15px}
.claw-status>span,.claw-status div>span{display:block;color:#7e8c7a}
.claw-status:has(>.item-art){flex-direction:row;gap:12px}.claw-status>.item-art{width:58px;height:58px;object-fit:contain}
.claw-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid #e9ece2;font-size:12px}
.claw-tools>div{display:flex;align-items:center;gap:16px}.claw-tools .text-link{font-size:12px}.claw-wallet{display:flex;align-items:center;gap:5px;color:#8e7347;font-variant-numeric:tabular-nums}.claw-wallet>.icon{width:17px}
.games-icon{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #dce5d5;background:#f9fbf4;border-radius:50%;color:#6c8673;cursor:pointer}.games-icon>.icon{width:16px;height:16px}
.games-feedback{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0;padding:12px;background:#faf3e4;border:1px solid #e4d7b7;border-radius:12px;color:#85613d;font-size:13px;line-height:1.5}.games-feedback[hidden]{display:none}.games-feedback .text-link{font-size:12px;flex:none}
.games-loading,.games-locked{padding:45px 20px;text-align:center;display:grid;gap:18px;justify-items:center}
.games-heading h1{margin-bottom:8px}.games-heading p{color:#7a8a80}.games-boxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,440px));gap:24px;margin:26px 0}
.games-tile{border:1px solid #e1e7d9;background:#fffef8;border-radius:24px;overflow:hidden;box-shadow:0 5px 22px #44614405}.games-tile-copy{padding:24px}.games-tile-copy h2{font-size:24px;margin:8px 0}.games-tile-copy p{color:#7b8b7c;font-size:14px;line-height:1.65;margin:0 0 20px}.games-tile.is-locked .crane-card-art{filter:saturate(.6)}
.crane-card-art{position:relative;aspect-ratio:1.8;overflow:hidden;isolation:isolate;background:#e7ddc4}.crane-card-room{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.crane-card-machine{position:absolute;left:50%;bottom:-6%;height:104%;aspect-ratio:2/3;transform:translateX(-50%)}.claw-cabinet-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.crane-card-window{position:absolute;left:15.7%;top:22.3%;width:68.6%;height:37%;z-index:1}.crane-card-window .claw-scene{height:100%;width:100%}.crane-card-machine>span{position:absolute;top:11.4%;left:22%;right:22%;z-index:3;text-align:center;font-family:'Outfit',sans-serif;font-size:clamp(7px,1vw,12px);white-space:nowrap;letter-spacing:-.03em;font-weight:600;color:#746243}
.game-encounter .crane-card-art{aspect-ratio:2.4}.game-discovery-rewards{font-size:12px;color:#7b8a79;text-align:center;margin:12px 0 0}.quest-only:has([data-games=open]) .journey-quest-action-slot{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.claw-prize-info{font-size:14px;line-height:1.7}.claw-prize-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0}.claw-prize-grid article{display:grid;justify-items:center;gap:6px;padding:14px;border:1px solid #e4e9dc;border-radius:16px;background:#fcfdf8;text-align:center}.claw-prize-grid .item-art{width:90px;height:90px;object-fit:contain}.claw-prize-grid article>span{font-size:12px;color:#7e8a75}.games-prize-tray>article{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e5e9df}.games-prize-tray .item-art{width:65px;height:65px}.games-prize-tray article>span{flex:1}.games-prize-tray small{display:block;color:#85917f;font-size:12px}.games-prize-tray ul{padding:0;list-style:none}.games-prize-tray li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef0e9;font-size:13px}
.claw-coin,.claw-drop{position:relative;display:flex;align-items:center;justify-content:center;border-radius:50%;padding:0;cursor:pointer;min-width:44px;min-height:44px;width:67%;aspect-ratio:1.4;flex:none;font:700 14px 'DM Sans',sans-serif}
.claw-coin{gap:2px;color:#876636;background:radial-gradient(ellipse at 38% 21%,#fffce5,#f4d696 52%,#d1a15f);border:2px solid #ffedbc;box-shadow:0 4px 0 #ad8045,0 6px 5px #73593633,inset 0 2px 2px #fff9}.claw-coin>.icon{width:clamp(17px,3cqh,29px);height:clamp(17px,3cqh,29px)}.claw-coin>span{font-size:clamp(14px,2.5cqh,23px)}
.claw-coin:disabled{cursor:default;color:#a9916c;background:linear-gradient(#eddfbd,#d8c297);border-color:#e8d7b2;box-shadow:0 2px 0 #bca372,inset 0 2px 3px #aa87591c;opacity:1}
.claw-drop{flex-direction:column;color:#fff8e7;border:2px solid #edb59c;background:radial-gradient(ellipse at 35% 15%,#ffd1b5,#e49a86 40%,#c5756b 78%,#a05b59);box-shadow:0 5px 0 #9e5d50,0 7px 5px #80573d33,inset 0 2px 2px #fff3ce80;text-shadow:0 1px 1px #83473977}
.claw-drop>span{font-size:clamp(9px,1.8cqh,16px);letter-spacing:1px}.claw-drop>i{font-style:normal;font-size:clamp(13px,2cqh,20px);line-height:1}
.claw-drop:disabled{cursor:default;color:#d6bfb2;background:radial-gradient(ellipse at 37% 16%,#d1b398,#b0927d);border-color:#d2b99c;box-shadow:0 3px 0 #9e896d;opacity:1}
.claw-drop:not(:disabled):after{content:'';position:absolute;inset:-5px;border:1px solid #b98f53;border-radius:inherit;animation:claw-lamp 1.4s ease-in-out infinite alternate;pointer-events:none}
.claw-coin:active:not(:disabled),.claw-drop:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #957446}
.claw-stick-mount{position:relative;width:100%;height:100%;min-height:44px;display:flex;align-items:center;justify-content:center}
.claw-stick{position:relative;width:100%;height:100%;min-height:44px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:50%;outline-offset:0}
.claw-stick[aria-disabled=true]{cursor:default}.claw-stick[aria-disabled=true] .claw-stick-handle{opacity:.72}.claw-stick:active{cursor:grabbing}
.claw-stick-arrows{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:space-between;font-size:clamp(20px,4cqh,33px);line-height:1.2;color:#b1935c;pointer-events:none}
.claw-stick-arrows i{position:absolute;left:21%;right:21%;height:33%;bottom:10%;border-radius:50%;background:radial-gradient(ellipse,#294a3e 20%,#608676 43%,#9eb599 46%,#557f68 61%,#dccc92 65%,#95885e 70%);box-shadow:0 3px 0 #b3a070}
.claw-stick-handle{position:absolute;left:50%;bottom:30%;width:10%;height:75%;border-radius:5px;background:linear-gradient(90deg,#789088,#e8e4c9 43%,#fff8df 49%,#9baa91 70%,#647e72);box-shadow:2px 0 3px #58613d30;transform:translateX(calc(-50% + var(--stick-tilt)*13px)) rotate(calc(var(--stick-tilt)*18deg));transform-origin:50% 100%;pointer-events:none}
.claw-stick-handle>i{position:absolute;left:50%;top:-29%;width:285%;aspect-ratio:1;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle at 31% 23%,#ffdfce,#f3b7a0 28%,#d68d7b 58%,#ac6861 84%);box-shadow:inset -1px -3px 3px #7d4e4940,1px 3px 3px #71644844}

.claw-coin,.claw-drop{width:100%;min-height:44px;height:44px;aspect-ratio:auto;border-radius:15px}.claw-coin{gap:4px}.claw-coin>span{font-size:13px;white-space:nowrap}.claw-coin>.icon{width:16px;height:16px}.claw-drop>span{font-size:13px;letter-spacing:.2px}.claw-stick-arrows{font-size:30px}.claw-drop>i{font-size:16px}.claw-stick-handle{max-width:9px}.claw-stick-handle>i{max-width:27px}
[data-games-lounge] button:focus-visible,.claw-stick:focus-visible{outline:3px solid #337d63;outline-offset:4px}
[data-games-lounge] button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@keyframes claw-lamp{from{opacity:.5}to{opacity:1}}@keyframes claw-power-on{0%{transform:translateX(-110%);opacity:0}20%{opacity:1}100%{transform:translateX(110%);opacity:0}}
@media(max-width:480px){dialog:has([data-games-lounge]){width:calc(100vw - 16px);max-height:calc(100svh - 16px)}dialog:has([data-games-lounge]) .modal-header{padding:17px 16px 12px}dialog:has([data-games-lounge]) .modal-body{padding:0 12px 16px}.claw-room{min-width:0;max-width:min(100%,calc(100svh - 260px))}.claw-deck{padding:10px 5% 13px;min-height:74px;gap:6%}.claw-deck>div{height:48px}.claw-tools>div{gap:10px}.claw-tools .text-link{font-size:11px}.claw-status{font-size:12px;min-height:65px}.claw-status strong{font-size:14px}.games-tile-copy{padding:20px}.games-boxes{grid-template-columns:1fr}.games-prize-tray li{display:block}}
/* The painted window and console share one continuous Littlekin illustration. */
dialog:has([data-games-lounge]){background:#fffdf8;border-color:#e5e9d9}
dialog:has([data-games-lounge]) .modal-header{padding-bottom:12px}
.claw-room{max-width:min(100%,max(260px,calc((100svh - 240px)*.8)),500px);min-width:0}
.claw-cabinet{overflow:hidden;border-radius:24px;background:#dceacd url('./games/cuddle-crane/machine-panel-v2.webp') center/100% 100% no-repeat;box-shadow:0 6px 24px #3f62471a}
.claw-glass{aspect-ratio:1122/1060;border:0;border-radius:0;background:none;box-shadow:none;isolation:isolate}
.claw-scene{width:100%;height:100%;overflow:visible}
.claw-glass-shine{inset:3% 2% 0;border:0;border-radius:22px;box-shadow:none;background:linear-gradient(117deg,transparent 15%,#fffdf00b 15.3%,transparent 27%,transparent 78%,#fffdf00b 78.3%,transparent 87%)}
.claw-power-wash{border-radius:24px}
.claw-deck{aspect-ratio:1122/342;min-height:0;grid-template-columns:1fr 1.05fr 1fr;gap:6%;padding:0 9% 9%;border:0;border-radius:0;background:none;box-shadow:none}
.claw-deck>div{height:48px;min-width:0}
.claw-coin,.claw-drop{height:44px;min-height:44px;min-width:0;width:100%;padding:0 3px;border-radius:50%;font-weight:600;text-shadow:none;transition:transform .15s ease,filter .15s ease}
.claw-coin{gap:3px;color:#46694f;border:2px solid #e7c978;background:linear-gradient(#e8f4cb,#b6d58e);box-shadow:0 3px 0 #c9a45e,inset 0 2px 1px #ffffffa6}
.claw-coin>span,.claw-drop>span{font-size:12px;letter-spacing:0;white-space:nowrap}
.claw-coin>.icon{width:15px;height:15px}
.claw-drop{flex-direction:row;gap:4px;color:#8d5744;border:2px solid #efd298;background:linear-gradient(#ffe6ce,#f4bda8);box-shadow:0 3px 0 #c99c70,inset 0 2px 1px #fff8edb3}
.claw-drop>i{font-size:15px}
.claw-coin:disabled{color:#809174;background:linear-gradient(#e7ebd5,#cbd9b5);border-color:#ddcea4;box-shadow:0 2px 0 #c2af87;opacity:.82}
.claw-drop:disabled{color:#ac8d7d;background:linear-gradient(#f4e6d6,#e9cebd);border-color:#e3cfaa;box-shadow:0 2px 0 #c7b597;opacity:.82}
.claw-coin:hover:not(:disabled),.claw-drop:hover:not(:disabled){filter:brightness(1.04)}
.claw-coin:active:not(:disabled),.claw-drop:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #c39d64}
.claw-drop:not(:disabled):after{inset:-4px;border-color:#e5c689;animation:none;opacity:.65}
.claw-stick-arrows{font-size:25px;color:#b6a275}
.claw-stick-arrows i{left:22%;right:22%;height:29%;bottom:9%;background:radial-gradient(ellipse,#82946b 0 25%,#c9dfa7 28% 49%,#f9e3a2 52% 67%,#d5ae63 70%);box-shadow:0 2px 0 #d4b274}
.claw-stick-handle{width:8px;max-width:8px;height:66%;bottom:26%;background:linear-gradient(90deg,#d4ab60,#fff2c9 45%,#f1d38c 63%,#c6a25a);box-shadow:1px 0 2px #b18e4733}
.claw-stick-handle>i{width:28px;max-width:28px;top:-38%;background:radial-gradient(circle at 34% 25%,#fff3e8,#f9ceb9 29%,#edb0a5 65%,#d9938b);box-shadow:inset -1px -2px 2px #bd8c8052,0 2px 2px #b1917140}
.claw-status{min-height:66px;margin:12px 0 4px}
.claw-tools{border-top-color:#e5e9dc;padding-top:10px}
.crane-card-art.crane-card-illustrated{aspect-ratio:3/2;background:#e7eed9}
.crane-card-illustrated .crane-card-room{object-fit:cover;object-position:center}
.game-encounter .crane-card-art.crane-card-illustrated{aspect-ratio:3/2;max-height:none}
@media(max-width:480px){
 .claw-room{max-width:min(100%,max(260px,calc((100svh - 225px)*.8)))}
 .claw-cabinet{border-radius:19px}
 .claw-deck{padding:0 8% 9%;gap:5%;min-height:0}
 .claw-deck>div{height:46px}
 .claw-coin>span,.claw-drop>span{font-size:11px}
 .claw-coin>.icon{width:13px;height:13px}
 .claw-status{min-height:62px;margin-top:10px}
 .claw-tools{align-items:flex-start;gap:8px}
 .claw-tools>div{justify-content:flex-end;flex-wrap:wrap;gap:8px 10px}
 .claw-wallet{flex:none}
}

/* The popup is a close view through glass. Only a shallow control ledge remains. */
dialog:has([data-games-lounge]){box-sizing:border-box;width:min(920px,calc(100vw - 16px));height:min(900px,calc(100dvh - 16px),calc((100vw - 36px)*.909375 + 196px));max-width:920px;max-height:calc(100dvh - 16px);overflow:hidden;background:#fffdf7;border:1px solid #dce6d2;border-radius:22px;padding:0}
dialog:has([data-games-lounge])[open]{display:flex;flex-direction:column}
dialog:has([data-games-lounge])>.modal-header{flex:0 0 auto;min-height:42px;padding:8px 14px 6px;gap:8px}
dialog:has([data-games-lounge])>.modal-header h2{font-size:20px;line-height:1.2;margin:0}
dialog:has([data-games-lounge])>.modal-body{display:flex;flex:1;min-height:0;padding:0 10px 8px;overflow:hidden}
[data-games-lounge]{width:100%;height:100%;min-height:0;min-width:0}
[data-games-lounge]>.games-surface.is-open{display:flex;flex-direction:column;gap:6px;height:100%;min-height:0}
.claw-room{display:grid;place-items:center;container-type:size;position:relative;flex:1;min-height:0;min-width:0;max-width:none;width:100%;margin:0;overflow:hidden}
.claw-cabinet{display:grid;grid-template-rows:auto 60px;justify-items:center;position:relative;width:min(100%,calc((100cqh - 60px)*320/291));max-width:100%;border-radius:15px;background:#f4ead5;box-shadow:none;overflow:visible;isolation:isolate}
.claw-glass{width:100%;aspect-ratio:320/291;border:0;border-radius:15px 15px 4px 4px;overflow:hidden;background:#e6edd8;box-shadow:none}
.claw-scene{display:block;width:100%;height:100%;overflow:hidden}
.claw-cabinet:not(.is-playing) [data-claw-head]{transition:transform .16s ease-out}
.claw-glass-shine{inset:1%;border:0;border-radius:14px;background:linear-gradient(116deg,transparent 18%,#fffdfb0d 18.3%,transparent 23%);box-shadow:none}
.claw-power-wash{border-radius:14px}
.claw-deck{box-sizing:border-box;display:grid;position:relative;width:max(100%,168px);max-width:calc(100vw - 36px);height:60px;min-height:60px;aspect-ratio:auto;grid-template-columns:minmax(44px,1fr) minmax(44px,1fr) minmax(44px,1fr);gap:8%;padding:7px 8%;align-items:center;background:linear-gradient(#fff9e9,#f2e6cc);border:1px solid #d6dcbf;border-top:2px solid #d3dfb5;border-radius:0 0 16px 16px;box-shadow:inset 0 -3px 0 #e4d4b4;justify-self:center}
.claw-deck>div{height:44px;min-width:0}
.claw-coin,.claw-drop{height:44px;min-height:44px;max-width:110px;border-radius:16px;padding:0 4px;gap:3px}
.claw-coin>span,.claw-drop>span{font-size:12px;line-height:1.2;white-space:nowrap}
.claw-coin>.icon{display:none}
.claw-drop>i{font-size:14px}
.claw-stick-mount,.claw-stick{height:44px;min-height:44px;max-width:100px}
.claw-stick-handle{height:62%;bottom:22%}.claw-stick-handle>i{width:25px;max-width:25px;top:-36%}
.claw-stick-arrows{font-size:25px}.claw-stick-arrows i{bottom:6%;height:27%}
.claw-status{flex:0 0 auto;min-height:32px;max-width:100%;margin:0;gap:0;font-size:11px;line-height:1.3}
.claw-status strong{font-size:12px;line-height:1.3}.claw-status>span,.claw-status div>span{font-size:11px;line-height:1.3}
.claw-status:has(.claw-keepsake-art){flex-direction:row;gap:8px;min-height:48px;text-align:left}
.claw-keepsake-art{flex:none;display:grid;place-items:center;width:46px;height:46px;padding:2px;border:1px solid #dbe5cd;border-radius:14px;background:#f4f8e9}
.claw-status>.claw-keepsake-art{display:grid}
.claw-keepsake-art>.item-art{display:block;width:42px;height:42px;object-fit:contain}
.claw-tools{flex:0 0 auto;align-items:center;min-height:32px;margin:0;padding:4px 2px 0;gap:6px;border-top:1px solid #e5eadc}
.claw-tools>div{justify-content:flex-end;align-items:center;gap:8px}.claw-tools .text-link{font-size:11px}.claw-wallet{font-size:11px}.claw-wallet>.icon{width:14px}
.claw-tools .games-icon{width:28px;height:28px;flex:none}.claw-tools .games-icon>.icon{width:14px;height:14px}
[data-games-lounge] .games-feedback{flex:0 1 auto;max-height:85px;overflow:auto;margin:0;padding:6px 9px;font-size:11px;gap:6px}
@media(max-width:480px){
 dialog:has([data-games-lounge]){width:calc(100vw - 12px);height:min(calc(100dvh - 12px),calc((100vw - 28px)*.909375 + 196px));max-height:calc(100dvh - 12px);border-radius:18px}
 dialog:has([data-games-lounge])>.modal-header{padding:8px 12px 6px;min-height:40px}
 dialog:has([data-games-lounge])>.modal-header h2{font-size:19px}
 dialog:has([data-games-lounge])>.modal-body{padding:0 7px 7px}
 .claw-room{min-width:0;max-width:none}
 .claw-cabinet{grid-template-rows:auto 58px}.claw-deck{height:58px;min-height:58px;padding:6px 7%;gap:7%}
 .claw-deck>div{height:44px}.claw-coin>span,.claw-drop>span{font-size:11px}
 .claw-status{min-height:30px;margin:0}.claw-status strong{font-size:12px}
 .claw-tools{align-items:center;gap:5px}.claw-tools>div{gap:7px;flex-wrap:nowrap}
}
@media(max-height:460px){
 dialog:has([data-games-lounge])>.modal-header{min-height:34px;padding:4px 12px}
 dialog:has([data-games-lounge])>.modal-header h2{font-size:17px}
 [data-games-lounge]>.games-surface.is-open{gap:3px}
 .claw-status{min-height:26px}.claw-status strong{font-size:11px}.claw-status>span,.claw-status div>span{font-size:10px}
 .claw-status:has(.claw-keepsake-art){min-height:30px}.claw-keepsake-art{width:30px;height:30px;padding:0;border-radius:9px}.claw-keepsake-art>.item-art{width:29px;height:29px}
 .claw-tools{min-height:28px;padding-top:2px}.claw-deck{gap:3%;padding-inline:5px}
 .claw-coin>span,.claw-drop>span{font-size:10px}.claw-drop>i{display:none}
}

@media(prefers-reduced-motion:reduce){[data-games-lounge] *,[data-games-lounge] *:before,[data-games-lounge] *:after{animation:none!important;transition:none!important}}
