body[data-game=crane]{background:radial-gradient(ellipse at top,#51313e,#1e1520 80%);--gold:#e9c79f;--pink:#eeb6cf}body[data-game=crane] .cabinet{background:linear-gradient(145deg,#543442,#30202f)!important;border-color:#b58b72!important;box-shadow:0 12px 45px #120b1680,inset 0 0 0 4px #f7dfc511!important}body[data-game=crane] .scene-portrait{display:none}body[data-game=crane] #scene{display:flex!important;flex-direction:column;gap:7px;min-height:0;align-items:stretch}
.crane-hero{height:110px;max-height:32%;flex-shrink:0;min-height:65px;border:1px solid #cda98977;border-radius:16px;overflow:hidden;position:relative;background:linear-gradient(110deg,#f2c5ce,#9b687b 70%,#684653)}.crane-hero>img{position:absolute;width:65%;height:auto;left:0;top:0;transform:translateY(-23%);filter:none}.crane-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 27%,#8a5d7144 48%,#684653 75%);pointer-events:none}.crane-hero-copy{position:absolute;left:49%;right:4%;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;gap:6px;z-index:1}.crane-hero-copy small{font-size:9px;letter-spacing:2px;color:#f5dcc2}.crane-hero-copy strong{font-size:19px;line-height:1.5;font-weight:500;color:#fff4e7}.crane-hero-copy span{font-size:11px;line-height:1.6;color:#f3dce3}
body[data-game=crane] .premium-crane{flex:1;height:auto!important;min-height:0;width:100%;border:3px solid #c8a382;border-bottom:10px solid #a87973;border-radius:17px;background:linear-gradient(135deg,#f4d6cf20,#b18b9138 35%,#30233399);box-shadow:inset 0 0 25px #fae4d511,0 0 0 1px #fff1d94d;isolation:isolate}.premium-crane:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 15%,#fff1 16%,transparent 25%,transparent 65%,#fff1 66%,transparent 72%);pointer-events:none;z-index:210}.premium-crane .mystery-banner{top:9px;font-family:Georgia,serif;letter-spacing:3px;font-size:12px;color:#f1d2b7;z-index:1}.premium-crane .crane-rail{top:6px;height:5px;background:linear-gradient(#fff4d2,#b68d65,#e8c5a0)}.premium-crane .crane-mat{top:44%;height:43%;background:repeating-linear-gradient(90deg,transparent 0 40px,#e9b9c91c 40px 41px),repeating-linear-gradient(transparent 0 28px,#e9b9c91c 28px 29px),linear-gradient(#b9819444,#c5a5ae66);transform:perspective(400px) rotateX(25deg);border-color:#eacac044}.premium-crane .claw{max-width:none!important;min-width:0;transition:none!important;z-index:200}.premium-crane .claw:before,.premium-crane .claw:after{display:none!important}.premium-crane .claw svg{position:absolute;inset:0;width:100%!important;height:100%!important;z-index:3;overflow:visible;filter:drop-shadow(0 2px 2px #311f3866)}.premium-crane .claw svg>path:nth-of-type(2){transform-origin:40px 27px;transition:transform .8s ease-in-out}.premium-crane .grip-closed svg>path:nth-of-type(2){transform:scaleX(.83)}.crane-cable{position:absolute;width:2px;background:linear-gradient(90deg,#f7dfbf,#ad8a74);z-index:190;pointer-events:none;transform:translateX(-50%)}.crane-grip-anchor{position:absolute;left:50%;top:74.54545%;width:0;height:0;pointer-events:none}.premium-crane .rig-held{animation:none!important;transition:none!important;position:absolute;z-index:2!important}.premium-crane .mystery-capsule{transition:none;box-shadow:0 3px 6px #22102655,inset 0 0 8px #fff2}.premium-crane .mystery-capsule.jackpot-capsule{box-shadow:0 0 13px #ffdf7eaa,inset 0 0 8px #fff8c2;animation:capsuleGold 2s infinite alternate}.premium-crane .claw-shadow{border:1px dashed #f1d4b6aa;width:12%;height:6%;transition:none;box-shadow:0 0 10px #ffdda433}.premium-crane .claw-shadow.aligned{border:2px solid #d9f0cf;box-shadow:0 0 12px #c8f0b177;background:#ceefba11}.premium-crane .prize-chute{bottom:2%;left:4%;width:16%;height:15%;min-height:20px;max-height:60px;border:3px solid #cfa783;background:linear-gradient(#241625,#503743);border-radius:12px 12px 18px 18px;color:#ebc8a4;z-index:160;font-size:9px}
body[data-game=crane] .crane-console{background:linear-gradient(145deg,#624251,#3b293a);border-color:#c5a48699;box-shadow:inset 0 1px 1px #f8e8d344}body[data-game=crane] .move-button,body[data-game=crane] .move-button:first-child{background:radial-gradient(circle at 35% 25%,#fff1ea,#e3b1c4 60%,#a66588);color:#8b486a;border-color:#f8dddb;box-shadow:0 4px 0 #825369,0 0 0 2px #c69c9f}body[data-game=crane] .crane-reset{border-color:#bc9591;color:#f1d5cf;background:#48313f}body[data-game=crane] #play{background:linear-gradient(#efbdcd,#bd7798);border-color:#e6c19f;color:#fff6e9;box-shadow:inset 0 1px 2px #fff5,0 5px 13px #1a0e2355}body[data-game=crane] .axis-readout{font-size:11px;color:#d7bcc5}
@media(min-width:801px){body[data-game=crane] .crane-hero{height:155px;max-height:25%}.crane-hero>img{width:48%;transform:translateY(-23%)}.crane-hero-copy{left:49%}.crane-hero-copy strong{font-size:25px}.crane-hero-copy span{font-size:14px}.crane-hero-copy small{font-size:11px}}
@media(max-width:600px){.compact-play[data-game=crane] #scene{display:flex!important;flex-direction:column;gap:5px}.compact-play[data-game=crane] .premium-crane{height:auto!important;flex:1;min-height:0;border-width:2px;border-bottom-width:6px}.compact-play[data-game=crane] .crane-hero{height:90px;max-height:30%;min-height:58px;border-radius:12px}.compact-play[data-game=crane] .crane-hero-copy{gap:3px}.compact-play[data-game=crane] .crane-hero-copy strong{font-size:15px}.compact-play[data-game=crane] .crane-hero-copy small{font-size:8px}.compact-play[data-game=crane] .crane-hero-copy span{font-size:10px}.compact-play[data-game=crane] .premium-crane .claw svg{height:100%!important}.compact-play[data-game=crane] .premium-crane .mystery-banner{font-size:10px;top:8px}.compact-play[data-game=crane] .premium-crane .prize-chute{font-size:8px;min-height:18px}.compact-play[data-game=crane] .mystery-mark{font-size:16px}.compact-play[data-game=crane] .jackpot-capsule:after{font-size:11px}}
@media(max-width:600px) and (max-height:600px){.compact-play[data-game=crane] .crane-hero{display:block;height:52px;min-height:52px;max-height:35%}.compact-play[data-game=crane] .crane-hero>img{width:48%}.compact-play[data-game=crane] .crane-hero-copy strong{font-size:14px}.compact-play[data-game=crane] .crane-hero-copy span{display:none}}
@media(prefers-reduced-motion:reduce){.premium-crane .claw svg>path{transition:none!important}}

/* The portrait changes independently of the moving crane rig. */
.crane-hero>img{transition:opacity .65s ease}.crane-hero>.crane-hero-surprise{opacity:0;transform:translateY(-23%)}.crane-hero.is-surprised>.crane-hero-standby{opacity:0}.crane-hero.is-surprised>.crane-hero-surprise{opacity:1}@media(prefers-reduced-motion:reduce){.crane-hero>img{transition:none}}


/* Portrait-first jackpot: keep all decoration at the edges. */
body[data-game=crane] .motion-stage[data-phase=ssr]{background:#24151e!important}
body[data-game=crane] .motion-stage[data-phase=ssr] .motion-photo{opacity:1;transform:none;object-position:center 35%;z-index:0}
body[data-game=crane] .motion-stage[data-phase=ssr] .motion-title,body[data-game=crane] .motion-stage[data-phase=ssr] .motion-halo{display:none}
body[data-game=crane] .motion-stage[data-phase=ssr]:after{content:'';position:absolute;inset:4px;border:2px solid #f7d99d;border-radius:inherit;box-shadow:inset 0 0 16px #ffd18599,0 0 12px #ffd18588;pointer-events:none;z-index:4;animation:craneGoldFrame 1.4s ease-in-out infinite alternate}
body[data-game=crane] .motion-stage[data-phase=ssr] .motion-particles{z-index:3}
body[data-game=crane] .motion-stage[data-phase=ssr] .motion-particles i{font-size:14px;animation:craneEdgeGlitter 1.8s ease-in-out infinite alternate}
body[data-game=crane] .motion-stage[data-phase=ssr] .motion-message{z-index:3;bottom:4%;left:0;right:0;padding:14px 8px;background:linear-gradient(transparent,#29141bd9);font-size:16px;font-weight:500}
@keyframes craneGoldFrame{to{box-shadow:inset 0 0 22px #ffd185cc,0 0 16px #ffd185aa}}
@keyframes craneEdgeGlitter{from{opacity:.25;transform:translateY(5px) scale(.75)}to{opacity:.95;transform:translateY(-9px) scale(1)}}
.premium-crane .claw-shadow{border-radius:50%;z-index:145;pointer-events:none}.premium-crane .claw-shadow.aligned{border:2px solid #e9efc9;background:transparent;box-shadow:0 0 10px #d3ed9d66}.premium-crane .claw-shadow[hidden]{display:none}
body[data-game=crane] .direction-arrow{display:grid;place-items:center;width:58%;height:58%;font-size:0}
body[data-game=crane] .direction-arrow svg,body[data-game=crane] .crane-reset svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
body[data-game=crane] [data-direction=left] .direction-arrow{transform:rotate(-90deg)}
body[data-game=crane] [data-direction=right] .direction-arrow{transform:rotate(90deg)}
body[data-game=crane] [data-direction=down] .direction-arrow{transform:rotate(180deg)}
body[data-game=crane] .crane-reset{display:grid;place-items:center;padding:13px}body[data-game=crane] .crane-reset svg{stroke-width:3}
body[data-game=crane] #axisReadout{display:none!important}
/* Fill the play screen; navigation stays in the footer menu. */
body.portrait-crane{height:100vh;height:100dvh;min-height:0;overflow:hidden}
.portrait-crane .shell{height:100vh;height:100dvh;width:100%;max-width:none;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);display:flex;flex-direction:column}
.portrait-crane .shell>header,.portrait-crane .game-heading,.portrait-crane .cabinet-top,.portrait-crane #status,.portrait-crane .ambient{display:none!important}
.portrait-crane main{display:flex;flex:1;flex-direction:column;min-height:0;height:100%}
.portrait-crane .layout{display:flex;flex:1;min-height:0;gap:0;justify-content:center;align-items:stretch}
body.portrait-crane .layout>.cabinet{width:min(100%,620px);height:100%;min-height:0;padding:6px;display:flex;flex-direction:column;border:0;border-radius:0;overflow:hidden;box-shadow:none!important}
.portrait-crane #scene{flex:1;min-height:0!important;width:100%;align-self:stretch;position:relative;overflow:hidden!important;border-radius:12px}
.portrait-crane .machine-caption{height:25px;min-height:25px;max-height:25px;line-height:19px;font-size:12px;padding:3px 0;flex-shrink:0;overflow:hidden}
.portrait-crane footer{height:48px;min-height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:2px;margin:0;border-top:1px solid #b9946d33;background:#241c20;padding:0 4px}
.portrait-crane footer>span{display:none}.portrait-crane footer .text-button{font-size:13px;min-height:44px;padding:8px;white-space:nowrap;color:#d7c3b6}.portrait-crane #mobileInfoOpen,.portrait-crane #gameMenuOpen{display:block}
.portrait-crane .crane-hero{height:clamp(90px,19dvh,160px);max-height:32%;min-height:70px}
.portrait-crane #controls{display:grid;grid-template-columns:155px minmax(0,1fr);gap:3px 8px;align-items:center;flex-shrink:0;padding:3px 2px}
.portrait-crane .crane-console{grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(3,44px);gap:2px;padding:2px;margin:0;border-radius:15px;width:155px}
.portrait-crane .crane-console .move-button{width:44px;height:44px;border-width:2px;box-shadow:0 3px 0 #825369,0 0 0 1px #c69c9f}
.portrait-crane .crane-console .crane-reset{width:43px;height:43px;padding:9px}
.portrait-crane #play{grid-column:2;grid-row:1;min-height:76px;width:100%;padding:15px 4px;font-size:18px;border-radius:17px;margin:0}
/* The same text coordinates are used by the game and the maker preview. */
.crane-hero{container-type:inline-size}.crane-hero .crane-hero-copy{position:absolute;inset:0;display:block;z-index:1;overflow:hidden}
.crane-hero .crane-hero-copy>[data-crane-text]{position:absolute;display:block;margin:0;line-height:1.25;letter-spacing:0;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 1px 4px #35222d88}
.crane-hero .crane-hero-copy>[data-crane-text][hidden]{display:none!important}
.crane-text-settings{margin:20px 0;padding:14px;border:1px solid #d3ae8e77;border-radius:14px;background:#2b1c29}
.crane-text-preview{width:100%;height:auto!important;aspect-ratio:3.6;max-height:none!important;min-height:0!important;margin:12px 0;position:sticky;top:0;z-index:5}
.crane-text-preview>img{width:65%;transform:translateY(-23%)}.crane-text-line{border-top:1px solid #d3ae8e44;margin-top:14px;padding-top:12px}.crane-text-line summary{cursor:pointer;color:#ebc9a4;padding:5px 0}.crane-text-line output{font-size:13px;color:#d8bdc8}.crane-text-line input[type=color]{height:44px;padding:4px}
@media(max-width:360px){.portrait-crane footer .text-button{font-size:12px;padding:6px}.portrait-crane #controls{grid-template-columns:146px minmax(0,1fr)}.portrait-crane .crane-console{width:146px;gap:0;grid-template-columns:repeat(3,46px)}}
@media(max-height:540px){.portrait-crane .crane-hero{height:65px;min-height:50px}.portrait-crane .machine-caption{height:21px;min-height:21px;font-size:11px}.portrait-crane .crane-console{grid-template-rows:repeat(3,40px)}.portrait-crane .crane-console .move-button{width:40px;height:40px}.portrait-crane .crane-console .crane-reset{width:39px;height:39px}}

body[data-game=crane] .crane-hero .crane-hero-copy>[data-crane-text]{display:block}
