*{box-sizing:border-box}body{margin:0;background:#101a17;color:#edf4eb;font-family:Arial,'Noto Sans JP',sans-serif}button,input{font:inherit}button{cursor:pointer;border:0;touch-action:manipulation}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #dbfb76;outline-offset:3px}button:disabled{cursor:default;opacity:.3}main{max-width:920px;margin:auto;padding:0 24px 24px}header{height:72px;display:flex;align-items:center;gap:16px}.brand{font-size:22px;font-weight:900;letter-spacing:-1px}.brand span{font-weight:400;margin-left:4px}.balance{margin-left:auto;font-size:21px;font-variant-numeric:tabular-nums}.balance small{color:#d7fa64;font-size:13px}.icon{background:#26382e;color:#e3eedf;border-radius:50%;width:38px;height:38px;font-size:24px}.machine{border:1px solid #425445;border-radius:18px;overflow:hidden;background:#20372b}#stage{height:calc(100dvh - 237px);min-height:330px;max-height:650px;position:relative;background:#b5c8b5}canvas{width:100%;height:100%;display:block}.hud{position:absolute;top:20px;left:24px;right:24px;display:flex;justify-content:space-between;pointer-events:none;font-size:12px;letter-spacing:2px;color:#314a37}.hud b{font-size:18px}#status{text-align:center;height:42px;display:flex;align-items:center;justify-content:center;font-size:14px;color:#d5e8cf;letter-spacing:1px}.controls{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;padding:0 22px 22px}.controls button{height:85px;border-radius:13px;box-shadow:0 4px 0 #101d16}.play{background:#d7fa64;color:#243b29;font-size:25px;font-weight:900;letter-spacing:2px}.play small{display:block;font-size:13px;letter-spacing:0;margin-top:5px}.direction{background:#edf3e8;color:#1f3828;user-select:none;touch-action:none;display:flex;align-items:center;justify-content:center;gap:20px}.direction b{font-size:43px}.direction span{font-size:14px}.direction small{display:block;font-size:13px;margin-top:5px}.direction.held,.direction:active:not(:disabled){background:#d7fa64;transform:translateY(3px);box-shadow:0 1px 0 #101d16}#result{position:absolute;inset:0;background:#183627cc;z-index:2;align-items:center;justify-content:center;flex-direction:column;gap:25px}#result:not([hidden]){display:flex}#result strong{font-size:clamp(30px,6vw,60px);color:#d7fa64;font-weight:900}#result button{padding:15px 25px;border-radius:30px;background:#d7fa64;color:#20362a;font-weight:bold}dialog{width:min(440px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid #c8d5c0;border-radius:22px;background:#f3f7ee;color:#25392a;padding:28px;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#07170bcc;backdrop-filter:blur(5px)}h2{font-size:20px;margin:0 0 26px}#confirm{text-align:center}.cost-label{font-size:14px;color:#5a7157}.cost{display:block;font-size:38px;margin:6px 0 24px}.transition{display:flex;align-items:center;justify-content:space-around;padding:20px 0;background:#e6ecdf;border-radius:12px}.transition small{display:block;font-size:12px;color:#61745b;margin-bottom:8px}.transition b{font-size:19px;font-variant-numeric:tabular-nums}.transition i{font-style:normal;font-size:22px}.actions{display:flex;gap:10px;margin-top:25px}.actions button{flex:1;padding:15px 4px;border-radius:9px;font-size:14px;font-weight:bold;background:#e0e6d9}.accent,.actions .accent{background:#d7fa64;color:#213725;padding:13px 17px;border-radius:9px;font-weight:700}.dialog-head{display:flex;align-items:start;justify-content:space-between}.dialog-head button{background:transparent;padding:2px;font-size:20px}.help{font-size:14px;line-height:1.9;color:#53694f}.utility{display:flex;gap:10px;margin:20px 0}.utility button,.demo button{background:#e3eadc;padding:12px 15px;border-radius:8px;color:#354f32;font-size:14px}details{border-top:1px solid #d0dac8;padding-top:20px}summary{cursor:pointer;font-size:14px}label{display:flex;align-items:center;justify-content:space-between;margin:16px 0;font-size:14px}input{width:65px;border:1px solid #bacbb0;border-radius:6px;padding:7px;font-size:16px;background:white;color:#23341f}#settings-status{font-size:13px}.demo{border-top:1px solid #d0dac8;margin-top:24px;padding-top:20px}.demo small{display:block;font-size:12px;line-height:1.7;color:#6d7e64;margin-top:12px}#insufficient{font-size:14px;color:#9c4527;line-height:1.8}@media(max-width:600px){main{padding:0 8px 12px}header{height:58px;padding:0 8px;gap:12px}.brand{font-size:18px}.balance{font-size:18px}.icon{height:34px;width:34px;font-size:20px}#stage{height:calc(100dvh - 200px);min-height:260px;max-height:none}.machine{border-radius:14px}.hud{top:14px;left:16px;right:16px;font-size:10px}.controls{padding:0 12px 15px;gap:10px}.controls button{height:77px}.direction{gap:10px}.direction b{font-size:34px}.direction small{font-size:12px}.play{font-size:23px}#status{height:40px;font-size:13px}dialog{padding:23px}}@media(max-height:520px) and (min-width:601px){#stage{min-height:280px}main{max-width:750px}}
@media(max-width:600px){#stage{height:56dvh;min-height:300px;max-height:510px}}

#result{inset:16px 16px auto;background:#183627ed;border-radius:14px;padding:16px;gap:12px}#result strong{font-size:clamp(24px,4vw,36px)}#result button{padding:10px 20px}
body{background:#142c33}.machine{background:#23545c;border-color:#43727a}.balance small{color:#ffe27c}.play,.accent,.actions .accent,#result button{background:#ffe27c;color:#254750}.direction{background:#e8f1ed;color:#254750}.direction.held{background:#ffe27c}#status{color:#daedeb}.hud{color:#244e56}#result{background:#194a53ed}#result strong{color:#ffe27c}.icon{background:#23545c}button:focus-visible{outline-color:#ffe27c}
.audio-settings{border-block:1px solid #d0dac8;padding:12px 0 18px}.audio-settings h3{display:inline-block;margin:8px 0;font-size:17px}.audio-settings button{float:right;background:#ffe27c;color:#254750;padding:9px 20px;border-radius:9px}.audio-settings label{margin:14px 0 4px}.audio-settings input{width:100%;padding:0;accent-color:#267a80}.utility{flex-wrap:wrap}

#prize-details{margin:0;color:#fff5cc;font-size:17px;line-height:1.6;text-align:center}.prize-settings h3{font-size:17px;margin:22px 0 10px}.prize-table{width:100%;border-collapse:collapse;font-size:15px}.prize-table th,.prize-table td{padding:10px 6px;border-bottom:1px solid #d0dac8;text-align:left}.prize-table th:last-child,.prize-table td:last-child{text-align:right}.return-metrics{font-size:14px}.return-metrics div{display:flex;justify-content:space-between;gap:12px;margin:10px 0}.return-metrics dd{margin:0;text-align:right;font-weight:700}
/* Bright arcade cabinet and physical-looking control deck. */
body{background:radial-gradient(ellipse at top,#434277 0%,#222540 65%);color:#fff}header{color:#fff}.brand{font-style:italic;letter-spacing:-.7px;text-shadow:2px 2px 0 #b72a7a}.balance{background:#151d38;padding:9px 15px;border:1px solid #7183b3;border-radius:12px}.balance small{color:#84ecff}.icon{background:#f8faff;color:#5b447d;box-shadow:0 3px 0 #b2b8d7}.machine{background:#f6f8ff;border:7px solid #fafbff;border-radius:24px;box-shadow:0 0 0 2px #a9b4d5,0 18px 55px #080d2d88}#stage{background:#252947}.hud{color:#fff;text-shadow:0 1px 4px #18233d}.hud>span{background:#1b204ba6;padding:6px 10px;border-radius:6px}#status{background:#edf0fa;color:#4b537c;font-weight:700}.controls{padding-top:13px;background:linear-gradient(#fff,#dce3f2);border-top:2px solid #c9d2e5}.controls button{border:3px solid #fff;box-shadow:0 6px 0 #929dbd,0 8px 9px #485c7940;border-radius:22px}.play{background:linear-gradient(#ff80b8,#f32b88);color:white;text-shadow:0 2px 0 #bd276e}.direction{background:linear-gradient(#65e7ff,#16b9e0);color:#fff;text-shadow:0 2px 0 #1986b1}.direction:disabled{opacity:.48}.direction.held,.direction:active:not(:disabled){background:#12c9ed;box-shadow:0 2px 0 #6685a7}.accent,.actions .accent,#result button{background:#f43890;color:#fff}#result{background:#222955ee;border:2px solid #ff86c3}#result strong{color:#fff;text-shadow:0 0 16px #ff57b4}button:focus-visible{outline-color:#ffd349}.audio-settings button{background:#f43890;color:#fff}.audio-settings input{accent-color:#ef398d}@media(max-width:600px){.machine{border-width:4px}.controls{gap:8px}.controls button{border-radius:17px}.balance{padding:6px 10px}}
@media(min-width:601px){#stage{height:calc(100dvh - 285px);min-height:300px}}
/* The prize display stays beside the crane on desktop, with glass-front doors. */
.locker.tier-white{border-left:5px solid #bbcce0}.locker.tier-gold{border-left:5px solid #efba35}.locker.tier-rainbow{border-left:5px solid #c86bf5}.locker.tier-rainbow .locker-window{background:linear-gradient(125deg,#754262,#354871,#24616b)}.locker.tier-gold .locker-window{background:linear-gradient(125deg,#554623,#8b784b,#443624)}.locker .locker-number{font-size:8px;letter-spacing:0}
.reward-symbol{display:block;position:relative;flex-shrink:0;height:42px;width:42px;margin:2px 0}.capsule-symbol{border-radius:50%;background:linear-gradient(#ffcf69 48%,#475680 49%,#475680 53%,#f6f8ff 54%);box-shadow:inset -7px -4px 8px #0003,0 0 20px #fdd48255;transform:rotate(-25deg)}.key-symbol{width:52px;height:14px;background:linear-gradient(#fff1a6,#df9c20);transform:rotate(-30deg);margin:16px 0}.key-symbol:before{content:'';position:absolute;left:-5px;top:-8px;width:28px;height:28px;border:7px solid #ffe08a;border-radius:50%;background:#222955}.key-symbol:after{content:'';position:absolute;right:3px;bottom:-9px;width:8px;height:12px;background:#eabd51;box-shadow:-13px 0 #eabd51}.gift-symbol{background:linear-gradient(90deg,#ff75b3 40%,#ffdf8e 40%,#ffdf8e 60%,#ff75b3 60%);border-radius:5px;box-shadow:0 -7px #ffcfe6;margin-top:10px}.locker-window:after{content:'';position:absolute;inset:0;border:1px solid #d5e8ff66;background:linear-gradient(125deg,transparent 30%,#ffffff16 32%,transparent 55%);transform-origin:left;transition:transform .7s,opacity .7s}.locker.opened .locker-window:after{transform:perspective(180px) rotateY(-105deg);opacity:.3}
main{max-width:1240px}.arcade-pair{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:stretch}.locker-cabinet{border:7px solid #f5f7ff;border-radius:24px;background:linear-gradient(135deg,#38406d,#1d2445);box-shadow:0 0 0 2px #a9b4d5,0 18px 55px #080d2d88;padding:16px 13px 10px}.locker-marquee{text-align:center;margin-bottom:14px}.locker-marquee small{font-size:10px;letter-spacing:4px;color:#ffcf64}.locker-marquee h1{font-size:23px;font-style:italic;margin:5px 0;text-shadow:0 0 16px #ea66ff}.locker-marquee p{font-size:11px;color:#c4d4f7;margin:8px 0}#locker-grid{display:grid;gap:10px}.locker{position:relative;border:1px solid #94a9d7;border-radius:10px;display:grid;grid-template-columns:84px 1fr;grid-template-rows:auto auto auto;gap:3px 10px;width:100%;padding:13px 10px;background:linear-gradient(125deg,#f9fbff,#d8e3f9);color:#26314b;text-align:left;box-shadow:inset -5px 0 #b4c3e0}.locker:disabled{opacity:1;cursor:default}.locker-number{position:absolute;top:6px;left:14px;font-size:10px;color:#7183a8;z-index:1;letter-spacing:1px}.locker-window{grid-row:1/4;min-height:86px;position:relative;display:grid;place-items:center;border:2px solid #a9b6d3;border-radius:5px;background:linear-gradient(130deg,#263351 20%,#546b90 49%,#2b3b5e 50%,#24304a);overflow:hidden;box-shadow:inset 0 0 15px #11182b}.locker-name{font-size:12px;font-weight:700;align-self:end}.locker-value{font-size:18px;font-weight:900;align-self:center}.locker-value small{font-size:9px;font-weight:400}.locker-action{font-size:10px;color:#697997;align-self:start}.locker.has-key{box-shadow:0 0 20px #ffd768;border:2px solid #ffcc46;cursor:pointer;animation:key-glow 1.2s ease-in-out infinite alternate}.has-key .locker-action{color:#b44900;font-weight:900}.locker.opened .locker-window{background:#101727;box-shadow:inset 10px 0 #05080e}.locker.opened .prize-art{opacity:.2;transform:scale(.65)}.locker.opened .locker-action{color:#218365}.locker-footnote{font-size:11px;line-height:1.8;color:#c5d0e9;text-align:center;margin:8px 0}.locker-footnote small{font-size:9px;color:#9cafd2}#locker-notice{font-size:12px;color:#ffe09b;line-height:1.6;text-align:center;min-height:18px}.prize-art{position:relative;display:block;transition:transform .4s,opacity .4s}.headphones{width:45px;height:48px;border:7px solid #cfd8f1;border-bottom:0;border-radius:30px 30px 8px 8px;transform:rotate(-12deg);filter:drop-shadow(2px 6px 4px #0008)}.headphones:before,.headphones:after{content:'';position:absolute;width:13px;height:26px;background:#ed83b4;border:3px solid #f5d9eb;border-radius:7px;bottom:-5px}.headphones:before{left:-10px}.headphones:after{right:-10px}.console{width:53px;height:34px;background:#1a213b;border:4px solid #cbd7f5;border-radius:7px;box-shadow:8px 8px 0 -1px #13192b;transform:rotate(-10deg)}.console:before{content:'+';position:absolute;left:-10px;top:2px;background:#e96fa2;width:12px;height:22px;color:white;text-align:center;border-radius:3px}.console:after{content:'•';position:absolute;right:-10px;top:2px;background:#6ee0f4;width:12px;height:22px;color:white;text-align:center;border-radius:3px}.computer{height:49px;width:42px;background:linear-gradient(110deg,#d6e1f5,#8999bc);border:3px solid #c7d6f2;border-radius:4px;transform:skewY(-5deg);box-shadow:6px 3px 0 #66799c}.computer i{display:block;width:13px;height:13px;border:3px solid #eb7ff4;box-shadow:0 0 7px #86c9ff;border-radius:50%;margin:1px 4px;background:#243958}.computer i:nth-child(2){border-color:#72e6ff}.computer i:nth-child(3){display:none}#open-capsules{min-height:44px}#result{max-height:85%;overflow:auto}#prize-details{font-size:14px}@keyframes key-glow{to{box-shadow:0 0 30px #ffcd55}}
@media(prefers-reduced-motion:reduce){.locker.has-key{animation:none}.prize-art{transition:none}}
@media(max-width:800px){.arcade-pair{grid-template-columns:1fr;gap:16px}.locker-cabinet{padding:15px 10px}#locker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.locker{display:flex;flex-direction:column;padding:8px;gap:6px}.locker-window{width:100%;min-height:78px}.locker-name{font-size:10px;align-self:start}.locker-value{font-size:16px;align-self:start}.locker-action{font-size:10px}.locker-number{top:9px;left:13px;color:#e3ecff}.locker-marquee h1{font-size:22px}.locker-footnote{font-size:10px}}

/* Keep 35 visible prize choices browsable beside the game. */
#locker-grid{max-height:560px;overflow-y:auto;align-content:start;padding:3px;scrollbar-width:thin}.locker.has-key{order:-1}

/* Small-phone first: fit the play deck in the stable Safari viewport. */
main{width:100%;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(20px,env(safe-area-inset-bottom))}
.arcade-pair{align-items:start}.machine,.locker-cabinet{min-width:0}
header .icon{flex-shrink:0;min-width:44px;min-height:44px}
#stage{height:clamp(300px,calc(100svh - 245px),650px)}
dialog{max-height:calc(100svh - 24px);overscroll-behavior:contain}
.dialog-head button{min-width:44px;min-height:44px}
#result{max-height:calc(100% - 24px);overflow:auto}
#result button{min-height:44px;flex-shrink:0}
@media(max-width:800px){
 main{max-width:600px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
 header{height:56px;padding:0 4px;gap:8px}.brand{font-size:17px}.balance{font-size:17px;padding:6px 8px;white-space:nowrap}.balance small{font-size:11px}
 .arcade-pair{grid-template-columns:minmax(0,1fr);gap:18px}
 .machine{border-width:4px;border-radius:16px}
 #stage{height:clamp(200px,calc(100svh - 210px),560px);min-height:0;max-height:none}
 .hud{top:10px;left:10px;right:10px;font-size:9px;letter-spacing:1px}.hud b{font-size:14px}
 #status{height:34px;font-size:12px;letter-spacing:0;padding:0 4px}
 .controls{grid-template-columns:1.1fr 1fr 1fr;padding:10px 8px 14px;gap:8px}
 .controls button{height:70px;border-radius:16px}.play{font-size:22px}.play small{font-size:12px}.direction{gap:8px}.direction b{font-size:32px}.direction span{font-size:12px}.direction small{font-size:11px}
 .locker-cabinet{border-width:4px;border-radius:16px;padding:12px 8px}
 #locker-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:440px}
 .locker{min-height:150px}.locker-window{min-height:72px}.locker-name{font-size:11px}.locker-value{font-size:17px}
 #result{inset:12px 10px auto;padding:12px;gap:10px}#result strong{font-size:23px}#prize-details{font-size:12px}
 dialog{width:calc(100% - 20px);padding:18px}.transition b{font-size:16px}.actions button{min-height:48px;font-size:13px}.prize-table{font-size:12px}.prize-table td{overflow-wrap:anywhere}
}
@media(max-width:350px){.brand{font-size:14px}.brand span{margin-left:2px}.balance{font-size:15px}.controls{gap:6px}.direction{gap:5px}.direction b{font-size:28px}.hud>span{padding:5px 7px}}
@media(min-width:801px){.arcade-pair{grid-template-columns:minmax(0,1fr) clamp(260px,26vw,320px)}#locker-grid{max-height:560px}}

.sound-toggle{flex-shrink:0;min-height:44px;min-width:60px;padding:8px;border-radius:12px;background:#f8faff;color:#514471;font-weight:700;font-size:12px}.sound-toggle[aria-pressed="true"]{background:#ffe27c}.locker.has-key{order:0}
@media(max-width:800px){header{gap:5px}.brand{font-size:14px}.balance{font-size:15px;padding:6px}.sound-toggle{min-width:54px;padding:6px;font-size:11px}#stage{height:clamp(180px,calc(100svh - 360px),430px)}.arcade-pair{gap:12px}.locker-marquee{margin-bottom:8px}.locker-marquee small{display:none}.locker-marquee h1{font-size:18px;margin:0}.locker-marquee p{margin:4px 0}#locker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.locker{min-height:122px}.locker-window{min-height:48px}.locker-number{position:static;color:#7183a8}.locker-window .prize-art{transform:scale(.8)} }
@media(max-width:350px){.brand{font-size:11px}.balance{font-size:13px;padding:5px}.balance small{font-size:10px}header{padding:0;gap:4px}.sound-toggle{min-width:50px}}

@media(max-width:800px){.locker-marquee p{display:none}.locker{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:12px 17px 19px 12px;min-height:0;padding:6px;gap:2px 5px}.locker-number{grid-column:1/-1;font-size:8px}.locker-window{grid-column:1;grid-row:2/5;min-height:0;height:50px}.locker-window .prize-art{transform:scale(.5)}.locker-name{grid-column:2;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.locker-value{grid-column:2;font-size:14px;white-space:nowrap}.locker-value small{font-size:7px}.locker-action{grid-column:2;font-size:8px}}

/* Highest-value prize is visible before the first play or scroll. */
.featured-prize{display:flex;align-items:center;gap:18px;text-decoration:none;color:#fff;min-height:102px;margin:0 0 14px;padding:12px 24px;border:1px solid #e9bfff;border-radius:18px;background:radial-gradient(ellipse at 20% 0%,#a0579455,transparent 65%),linear-gradient(115deg,#493174,#24294f 60%,#354b70);box-shadow:inset 0 1px #ffffff50,0 5px 20px #13132b55}.featured-art{display:grid;place-items:center;width:68px;height:70px;flex-shrink:0;border-radius:12px;background:linear-gradient(135deg,#c183dd44,#80dfff22);border:1px solid #eed7ff55}.featured-copy{display:grid;gap:3px;min-width:0}.featured-label{font-size:12px;color:#ffe6a8;font-weight:bold;letter-spacing:1px}.featured-copy strong{font-size:34px;line-height:1.05;color:#ffe28f;text-shadow:0 2px 12px #fdbc5344;font-variant-numeric:tabular-nums}.featured-copy strong small{font-size:12px;margin-left:7px}.featured-copy>span:last-child{font-size:11px;color:#eee5ff}.featured-link{margin-left:auto;font-size:12px;white-space:nowrap}.featured-link b{font-size:22px;margin-left:7px}.featured-prize:focus-visible{outline:3px solid #ffd349;outline-offset:3px}#locker-grid{scroll-margin-top:12px}
@media(max-width:800px){.featured-prize{min-height:86px;margin-bottom:10px;padding:9px 10px;gap:10px;border-radius:13px}.featured-art{width:44px;height:58px}.featured-art .prize-art{transform:scale(.8)}.featured-label{font-size:10px;letter-spacing:0}.featured-copy strong{font-size:29px}.featured-copy strong small{font-size:10px}.featured-copy>span:last-child{font-size:9px}.featured-link{font-size:10px}.featured-link b{display:block;text-align:center;margin:0;font-size:20px}}
@media(min-width:801px){#stage{height:clamp(300px,calc(100svh - 361px),650px)}}
/* Feedback update: visible prize illustrations and staged automatic reveals. */
.direction{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.featured-art{width:110px;height:86px;background:radial-gradient(ellipse,#8e9fff65,transparent);border:0}.featured-art svg{width:100%;height:100%;filter:drop-shadow(0 6px 10px #0a163c80)}
.featured-copy{display:flex;flex-direction:column}.featured-label{order:0}.featured-copy #featured-name{order:1;font-size:22px;font-weight:900;color:#fff;line-height:1.2}.featured-copy strong{order:2;font-size:20px;margin-top:3px}.featured-copy strong small{font-size:10px}.featured-link{color:#d9eaff}
.locker-window svg{width:100%;height:112px;filter:drop-shadow(0 5px 5px #0006)}.locker{min-height:168px;grid-template-columns:105px 1fr}.locker-name{font-size:13px}.locker-window{overflow:hidden}.locker-window::after{content:'';position:absolute;inset:0;background:linear-gradient(120deg,#d6edff24 10%,transparent 40%,#d6edff18 60%,transparent 63%);border:1px solid #d4e6ff70;border-radius:4px;transform-origin:left;pointer-events:none}.door-opening .locker-window::after{animation:door-open .85s ease-out forwards}.door-opening .locker-window svg{animation:prize-arrive .85s ease-out}.locker.opened:not(.door-opening) .locker-window svg{opacity:.4}
#result[data-reveal]{background:radial-gradient(ellipse at 50% 30%,#324778,#161d39 80%);border:1px solid #b0d9ff;color:white}#result[data-reveal] #result-title{color:#fff}#result[data-reveal] #prize-details{color:#dce9ff}#result[data-reveal="opening"] .capsule-symbol{animation:capsule-rock .7s ease-in-out infinite}#result[data-reveal="key"] .key-symbol{filter:grayscale(1);color:#f2f7ff;animation:key-arrive .6s ease-out}.reveal-white{filter:drop-shadow(0 0 14px #e8f4ff)}.reveal-gold{filter:sepia(1) saturate(3) drop-shadow(0 0 16px #ffd65d)}.reveal-rainbow{filter:drop-shadow(0 0 14px #e796ff);animation:rainbow-key 2s linear infinite}#result[data-reveal="number"] #result-title{font-size:30px;letter-spacing:2px}
@keyframes capsule-rock{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}@keyframes key-arrive{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@keyframes rainbow-key{to{filter:hue-rotate(360deg) drop-shadow(0 0 14px #e796ff)}}@keyframes door-open{to{transform:perspective(400px) rotateY(-110deg)}}@keyframes prize-arrive{50%{transform:scale(1.1)}to{transform:scale(1)}}
@media(max-width:800px){.featured-prize{gap:8px;min-height:94px;padding:6px 9px}.featured-art{width:79px;height:74px}.featured-copy #featured-name{font-size:16px}.featured-label{font-size:8px}.featured-copy strong{font-size:18px}.featured-link{font-size:9px}.locker{display:flex;min-height:176px;padding:8px;gap:5px}.locker-number{font-size:9px}.locker-window{width:100%;height:91px;min-height:91px}.locker-window svg{height:90px}.locker-name{font-size:11px;white-space:normal}.locker-value{font-size:16px}.locker-action{font-size:9px}#stage{height:clamp(180px,calc(100svh - 368px),430px)}#locker-grid{max-height:490px}}
@media(max-width:350px){.featured-art{width:64px}.featured-copy #featured-name{font-size:14px}.featured-link{font-size:8px}.featured-label{font-size:7px}}
@media(prefers-reduced-motion:reduce){#result *, .locker *{animation:none!important;transition:none!important}}
.capsule-symbol{background:linear-gradient(#369bea 48%,#1f477b 49%,#1f477b 53%,#eff8ff 54%)}.key-symbol.reveal-white{background:linear-gradient(#fff,#a4b7d4)}.key-symbol.reveal-white:before{border-color:#dbe9fa}.key-symbol.reveal-white:after{background:#b6c8df;box-shadow:-13px 0 #b6c8df}.key-symbol.reveal-rainbow{background:linear-gradient(90deg,#ff90ca,#ffed96,#8be4ed,#b59aff)}.key-symbol.reveal-rainbow:before{border-color:#ccafff}.key-symbol.reveal-rainbow:after{background:#96e9ed;box-shadow:-13px 0 #f5bdd9}
#result[data-reveal="opening"] .capsule-symbol{background:none;box-shadow:none;animation:none}#result[data-reveal="opening"] .capsule-symbol:before,#result[data-reveal="opening"] .capsule-symbol:after{content:'';position:absolute;left:0;width:42px;height:21px;box-shadow:inset -5px -2px 6px #0003}#result[data-reveal="opening"] .capsule-symbol:before{top:0;border-radius:25px 25px 0 0;background:#369bea;border-bottom:2px solid #17457c;animation:capsule-top .85s ease-in-out forwards}#result[data-reveal="opening"] .capsule-symbol:after{bottom:0;border-radius:0 0 25px 25px;background:#eff8ff;animation:capsule-bottom .85s ease-in-out forwards}@keyframes capsule-top{65%{transform:translateY(0)}100%{transform:translate(-5px,-12px) rotate(-15deg)}}@keyframes capsule-bottom{65%{transform:translateY(0)}100%{transform:translate(5px,10px) rotate(12deg)}}@media(prefers-reduced-motion:reduce){#result *:before,#result *:after{animation:none!important}}
/* Key front/back: the number is the visual focus, not an ornamental icon. */
.designer-key{--metal:#e4edf8;--edge:#8b9cb8;width:180px;height:75px;margin:12px 0;transform:none;filter:drop-shadow(0 5px 9px #080e2580);background:none}.designer-key:before,.designer-key:after{display:none}.key-gold{--metal:#ffe28b;--edge:#b78328}.key-rainbow{--metal:#cdb9ff;--edge:#7b70d9}.key-bow{position:absolute;left:0;top:0;width:96px;height:75px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,var(--metal) 35%,var(--edge));border:3px solid var(--metal);border-radius:16px;box-shadow:inset 0 0 0 4px #ffffff50;z-index:2}.key-engraving{font:900 26px ui-monospace,monospace;color:#202b4e;text-shadow:0 1px #fff;letter-spacing:1px}.key-shaft{position:absolute;top:27px;left:91px;width:83px;height:20px;border-radius:0 5px 5px 0;background:linear-gradient(#fff,var(--metal),var(--edge))}.key-shaft:after{content:'';position:absolute;bottom:-16px;right:4px;height:20px;width:13px;border-radius:0 0 3px 3px;background:var(--metal);box-shadow:-24px 0 var(--metal)}.key-rainbow .key-bow{background:linear-gradient(125deg,#fbc4dc,#c5d1ff,#bdebf4,#e7d2ff)}
#result[data-reveal="flip"] .designer-key{animation:key-flip .45s ease-in-out}#result[data-reveal="light"] .capsule-symbol{background:linear-gradient(#369bea 34%,#fff4ae 35%,#fff 66%,#eff8ff 67%);box-shadow:0 0 30px 14px #ffecc5aa,0 0 75px 25px #fff2a870;transform:rotate(-15deg) scale(1.2)}#result[data-reveal="light"]{background:radial-gradient(ellipse at 50% 30%,#ad986e,#202c4b 75%)}#result[data-reveal="number"] #result-title{font-size:34px;color:#ffe5a4}.featured-label{font-weight:900}.featured-prize{border-color:#ffdc87}
@keyframes key-flip{0%{transform:rotateY(0)}49%{transform:rotateY(90deg)}50%{transform:rotateY(-90deg)}100%{transform:rotateY(0)}}@media(prefers-reduced-motion:reduce){#result .designer-key{animation:none!important}}
/* One viewport-bounded shell for capture, reveal, key and received states. */
#result{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));height:min(400px,calc(100svh - 32px));max-height:none;padding:22px 18px;box-sizing:border-box;border-radius:20px;z-index:10;gap:12px;overflow:auto;box-shadow:0 0 0 100vmax #111a3280,0 18px 60px #0006}
#result strong{font-size:26px;min-height:32px;flex-shrink:0}#result #prize-details{font-size:13px;max-width:100%;overflow-wrap:anywhere;flex-shrink:0}#result .reward-symbol{flex-shrink:0}
#result[data-reveal="opening"] .capsule-symbol:before,#result[data-reveal="opening"] .capsule-symbol:after{animation-duration:.45s}
#result[data-reveal="flip"] .designer-key{animation-duration:.3s}
@media(max-width:350px){#result{padding:16px 12px;gap:10px}#result strong{font-size:23px}}
#reward-symbol{display:none!important}#reward-3d{width:280px;height:140px;flex-shrink:0;max-width:100%;position:relative;z-index:1}#reward-3d canvas{width:100%;height:100%}#result{gap:9px;isolation:isolate;background:#202b4f}#result>*{z-index:1}#result[data-key-rank="white"]{background:radial-gradient(ellipse at 50% 28%,#b8cde1 0%,#526d8c 40%,#202e48 90%);border:2px solid #eef8ff}#result[data-key-rank="gold"]{background:radial-gradient(ellipse at 50% 28%,#ffdf80 0%,#a16a1a 42%,#39213b 95%);border:2px solid #ffe49b}#result[data-key-rank="rainbow"]{background:radial-gradient(ellipse at 50% 28%,#ffffff70,transparent 60%),linear-gradient(125deg,#902b81,#5844ad 35%,#147d98 65%,#408b6d);border:2px solid #e4c9ff}#result[data-key-rank]:not([data-key-rank=""])::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:repeating-conic-gradient(from 0deg at 50% 35%,#fff2 0deg 8deg,transparent 8deg 24deg);opacity:.65;animation:reward-burst .6s ease-out}#result[data-key-rank] #result-title{text-shadow:0 2px 9px #0009}#result[data-key-rank] #prize-details{color:#fff;text-shadow:0 1px 4px #0009}.top-prize-tag{display:inline-flex;align-self:flex-start;width:max-content;padding:4px 9px;margin-bottom:4px;border:1px solid #fff1ab;border-radius:5px;background:linear-gradient(120deg,#fff2a6,#ffc545);color:#51330b;font-size:11px;font-weight:900;letter-spacing:1px;box-shadow:0 2px 8px #0003}.top-prize-tag[hidden]{display:none}.featured-label{display:block;font-size:9px}@keyframes reward-burst{from{opacity:0;transform:scale(.85)}to{opacity:.65;transform:scale(1)}}@media(prefers-reduced-motion:reduce){#result::before{animation:none!important}}@media(max-width:350px){.top-prize-tag{font-size:9px;padding:3px 6px}#reward-3d{height:130px}}
#received-prize-art{width:230px;height:140px;flex-shrink:0;filter:drop-shadow(0 8px 14px #0005)}#received-prize-art svg{width:100%;height:100%}#received-prize-art[hidden],#reward-3d[hidden]{display:none}

/* One short impact when a key is revealed; no repeated flashing or extra wait. */
#result[data-reveal="key"]{animation:key-impact .55s cubic-bezier(.16,1,.3,1)}
#result[data-reveal="key"]::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 55px #fff9;animation:key-halo .8s ease-out forwards}
#result[data-reveal="key"] #result-title{font-size:30px;font-weight:1000;letter-spacing:2px;color:#fff;text-shadow:0 2px 3px #0009,0 0 20px #fffd}
#result[data-key-rank="gold"]{box-shadow:0 0 44px #ffbd4955,0 15px 70px #0008}
#result[data-key-rank="rainbow"]{box-shadow:-12px 0 50px #f07ace55,12px 0 50px #50daff55,0 15px 70px #0008}
@keyframes key-impact{0%{scale:.97}45%{scale:1.015}100%{scale:1}}
@keyframes key-halo{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){#result[data-reveal="key"],#result[data-reveal="key"]::after{animation:none}#result[data-reveal="key"]::after{display:none}}

/* experience92: play first, then a real cabinet of boxed prizes. */
.arcade-pair{display:flex;flex-direction:column;gap:24px}.prize-route{display:flex;justify-content:center;gap:20px;padding:18px;color:#46516b;font-size:13px;font-weight:700;text-decoration:none;background:#f6f8ff;border-radius:0 0 14px 14px}.prize-route span{color:#e52f86}
#stage{height:clamp(330px,calc(100svh - 210px),620px)}.locker-cabinet{padding:24px 18px}.locker-marquee h1{font-size:28px}#locker-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible;gap:14px;scroll-margin-top:16px}.locker{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;min-height:300px}.locker-number{position:static;color:#334966;font:700 11px ui-monospace,monospace}.locker-window{width:100%;height:190px;min-height:190px;overflow:visible;perspective:800px;background:linear-gradient(#1b243a,#354766 70%,#182337 71%,#566680 76%,#182337);border:5px solid #8d9db8;border-radius:4px;box-shadow:inset 0 12px 20px #0008,inset 0 3px #e6f3ff}.locker-window:after{display:none}.locker-name{font-size:13px;align-self:auto}.locker-value{align-self:auto}.locker-action{align-self:auto}.locker-door{position:absolute;inset:-3px;z-index:3;border:3px solid #c4d4e8;border-radius:3px;background:linear-gradient(118deg,#ffffff0a 15%,#ffffff38 17%,#ffffff08 39%,transparent 40%,#ffffff20 80%);transform-origin:left;transition:transform .85s cubic-bezier(.2,.7,.2,1);backface-visibility:visible;box-shadow:inset 0 0 0 1px #f5faff66}.door-handle{position:absolute;right:5px;top:42%;width:6px;height:34px;border-radius:4px;background:linear-gradient(90deg,#72849b,#fff,#73859b);box-shadow:2px 2px 3px #0008}.door-keyhole{position:absolute;right:5px;top:68%;width:9px;height:9px;border:2px solid #c8d9ed;border-radius:50%;background:#1a2638}.locker.door-opening .locker-door,.locker.opened .locker-door{transform:rotateY(-108deg)}.locker.door-opening .locker-window{animation:none}.locker.opened .product-box{opacity:.15;filter:grayscale(1)}.locker.unlock-focus{outline:3px solid #ffe399;box-shadow:0 0 35px #ffc55788;z-index:5}.locker.opened .locker-action{color:#4e6f62}
.product-box{display:block;position:relative;width:106px;height:142px;transform:rotateY(-14deg) rotateX(3deg);transform-style:preserve-3d;filter:drop-shadow(8px 12px 7px #0007);margin:10px auto}.box-front{position:absolute;inset:0;background:linear-gradient(145deg,#f8fbff,#c4d0e6);border:1px solid #e7edfa;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:9px 4px 10px;box-sizing:border-box;box-shadow:inset 0 -16px #15283c}.box-brand{font:800 7px Arial;color:#263c53;letter-spacing:1px}.box-caption{color:white;font:700 6px Arial;letter-spacing:.4px;position:absolute;bottom:5px}.product-box svg{width:96px!important;height:96px!important;max-height:none}.box-side{position:absolute;left:100%;width:23px;height:100%;background:repeating-linear-gradient(0deg,#8b9ab6 0 5px,#7889a4 5px 6px);transform-origin:left;transform:rotateY(90deg);border:1px solid #b2bfd4}.box-top{position:absolute;bottom:100%;width:100%;height:23px;background:#e6edfa;transform-origin:bottom;transform:rotateX(90deg);border:1px solid #fff}.product-computer .box-front{background:linear-gradient(135deg,#c5b9ec,#55608b);box-shadow:inset 0 -16px #241e3a}.product-console .box-front{background:linear-gradient(135deg,#b6f2f4,#6199b3)}#received-prize-art{height:190px;width:230px;display:grid;place-items:center}#received-prize-art .product-box{transform:scale(1.17) rotateY(-14deg);margin:12px auto}
#result{height:min(460px,calc(100svh - 24px));overflow:auto}#reward-3d{width:320px;height:210px}#result[data-reveal="light"]::before,#result[data-reveal="key"]::before{content:'';position:absolute;inset:0;z-index:0;background:repeating-conic-gradient(from 12deg at 50% 35%,#fff8 0deg 6deg,transparent 6deg 22deg);mask-image:radial-gradient(ellipse,#000 15%,transparent 75%);pointer-events:none}#result[data-reveal="light"]{background:radial-gradient(ellipse at 50% 35%,#ffefd0,#3d3d69 48%,#1b2241 85%)}
@media(max-width:800px){#stage{height:clamp(290px,calc(100svh - 215px),520px)}#locker-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.locker-cabinet{padding:18px 10px}.locker{min-height:274px;padding:9px;gap:7px}.locker-window{height:164px;min-height:164px}.product-box{width:88px;height:125px}.product-box svg{width:82px!important;height:82px!important}.locker-name{font-size:11px}.locker-number{font-size:9px}.locker-value{font-size:17px}#result{padding:18px 12px;gap:8px}#reward-3d{width:300px;height:197px}.prize-route{padding:14px}}
@media(prefers-reduced-motion:reduce){.locker-door{transition:none}}

.real-product-stack{position:relative;display:block;width:145px;height:160px;margin:8px auto;filter:drop-shadow(6px 10px 7px #0009)}.real-box{position:absolute;width:120px;height:145px;left:calc(var(--box-i)*9px);top:calc(var(--box-i)*-5px);object-fit:contain;border-radius:3px;background:#fff;transform:perspective(500px) rotateY(-12deg) rotateZ(calc(var(--box-i)*3deg - 3deg));z-index:calc(3 - var(--box-i));box-shadow:4px 3px 0 #9ba9bd}.sealed-label{position:absolute;bottom:0;left:3px;z-index:4;background:#15223be8;color:#fff;border:1px solid #dae7ff;border-radius:4px;padding:3px 7px;font-size:9px;letter-spacing:1px}.locker.opened .real-product-stack{opacity:.14;filter:grayscale(1)}#received-prize-art .real-product-stack{transform:scale(1.15)}.capsule-guide{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;align-items:center;font-size:11px;line-height:1.8;color:#dbe5fa;margin:20px 0}.ball{width:13px;height:13px;border-radius:50%;display:inline-block;border:1px solid #fff7;background:linear-gradient(#3299eb 48%,#f1f5ff 50%)}.ball.red{background:linear-gradient(#e9505e 48%,#f1f5ff 50%)}.ball.gold{background:linear-gradient(#eac151 48%,#f1f5ff 50%)}@media(max-width:800px){.real-product-stack{width:108px;height:137px}.real-box{width:91px;height:126px}.sealed-label{font-size:8px;bottom:0}#received-prize-art .real-product-stack{transform:scale(1.35)}}

.real-box{display:block;overflow:hidden;background:#dae0ea}.real-box img{position:absolute;width:112%;height:112%;left:-6%;top:-6%;object-fit:fill}.real-box.narrow-box{width:78px;height:145px;left:calc(18px + var(--box-i)*10px)}.real-box.narrow-box img{width:195%;height:110%;left:-49%;top:-5%}.real-box.square-box{height:125px;top:calc(14px + var(--box-i)*-5px)}@media(max-width:800px){.real-box.narrow-box{width:61px;height:126px;left:calc(12px + var(--box-i)*8px)}.real-box.square-box{height:100px;top:calc(18px + var(--box-i)*-5px)}}

/* Market images preserve the original transparent product silhouette. */
.real-box.market-box{background:transparent;box-shadow:none;transform:none;width:145px;height:125px;border:0}.real-box.market-box img{width:100%;height:100%;object-fit:contain;transform:none}.unassigned-product{display:grid;place-items:center;min-height:130px;color:#a4b2c5;font-size:13px;letter-spacing:.08em}

.reset-complete-notice{position:fixed;z-index:10000;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:14px 20px;background:#153c31;color:white;border:1px solid #85e3b7;border-radius:12px;box-shadow:0 8px 24px #0005;font-size:14px}

/* Preserve the fixed modal without an unused skip-button footer. */
#result[data-reveal]{padding-bottom:28px;overflow:hidden}
#result[data-reveal="key"]{animation:none}
#result[data-reveal="key"] #reward-3d{animation:key-impact .55s cubic-bezier(.16,1,.3,1)}
@media(max-height:480px){#result[data-reveal] #reward-3d{height:110px}#result[data-reveal]{gap:5px}#result[data-reveal] #prize-details{margin:0}#result[data-reveal] #result-title{font-size:22px}}

.real-box.market-card{background:none;box-shadow:none;transform:rotate(-3deg);border:0}.market-card img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #0005)}

/* Fill the display window with artwork; details live below the window. */
.locker-window .real-product-stack{width:calc(100% - 24px);height:calc(100% - 12px);margin:6px auto;filter:drop-shadow(4px 7px 5px #0007)}
.locker-window .real-box.market-box,.locker-window .real-box.market-card{width:100%;height:100%;left:0;top:0;transform:none}
.real-box.market-box img,.real-box.market-card img{left:0;top:0;width:100%;height:100%;object-fit:contain}

/* Larger BOX display and a portrait viewport for square card photos. */
.locker-window .real-box.market-box img{transform:scale(1.2)}
.real-box.market-card,.locker-window .real-box.market-card{width:auto;height:100%;aspect-ratio:0.714;left:50%;top:0;transform:translateX(-50%);overflow:hidden}
.real-box.market-card img{width:140%;height:100%;left:-20%;top:0;object-fit:fill;filter:none}

.real-box.market-card.landscape-card,.locker-window .real-box.market-card.landscape-card{width:100%;height:auto;aspect-ratio:1.4;left:0;top:50%;transform:translateY(-50%)}
.real-box.market-card.landscape-card img{width:100%;height:140%;left:0;top:-20%;object-fit:fill}

/* Match the revealed key number to its destination at a glance. */
.locker-key-guide{position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:90;display:grid;justify-items:center;gap:3px;padding:10px 24px;max-width:calc(100vw - 24px);border:2px solid #ffe189;border-radius:16px;background:#17213cf5;color:white;box-shadow:0 5px 26px #0008;pointer-events:none;text-align:center}
.locker-key-guide span{font-size:12px;color:#ffe5a0}.locker-key-guide strong{font:900 30px ui-monospace,monospace;letter-spacing:2px}.locker-key-guide small{font-size:11px;color:#dce5ff}
#locker-grid.locating-key .locker:not(.unlock-focus){opacity:.25;filter:saturate(.3);transition:opacity .25s}
#locker-grid .locker.unlock-focus{outline:4px solid #ffdc69;box-shadow:0 0 0 8px #ffdc6940,0 0 38px #ffd45aaa;z-index:6;animation:none}
.locker.unlock-focus .locker-number{font-size:18px;color:#734500;font-weight:900;background:#ffe28c;border-radius:6px;padding:5px 7px}
.locker.unlock-focus .locker-action{font-size:14px;font-weight:900;color:#7c4900}
.locker.unlock-focus:before{content:'▼ このロッカー';position:absolute;top:-29px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 12px;border-radius:8px;background:#ffe28c;color:#533500;font-size:12px;font-weight:900;box-shadow:0 3px 8px #0005}
@media(prefers-reduced-motion:reduce){#locker-grid.locating-key .locker{transition:none}}

/* Automatic reveal/flip/navigation steps are not interactive controls. */
#open-capsules,#flip-key,#go-locker{display:none!important}

/* mini122: simple moulded shell; game controls and reveal scene keep their layout. */
body{background:radial-gradient(ellipse at top,#e3e9e4,#c9d7d3);color:#344c47}header{color:#344c47}.brand{text-shadow:none;font-style:normal;letter-spacing:-.5px}.brand span{color:#628c81}.balance{background:#f5f6ec;border-color:#b3c5bd;color:#344c47;box-shadow:none}.balance small{color:#64897d}.machine{border:5px solid #f5f4eb;border-radius:15px;background:#f1f0e6;box-shadow:0 0 0 1px #acbfb7,0 7px 17px #314a4526}#stage{background:#d4dfdf}.hud>span{background:#eff3e9db;color:#47665c;text-shadow:none;border:1px solid #b7c9bd;font-weight:600;letter-spacing:.6px}#status{background:#f0f1e7;color:#4f6c61;font-weight:500}.controls{background:#e7eade;border-top:1px solid #bdcec2}.controls button{border:2px solid #f8f9ef;border-radius:13px;box-shadow:0 3px 0 #9eafa3}.play{background:#e6aa78;color:#493d31;text-shadow:none}.direction{background:#a8c6b8;color:#304f42;text-shadow:none}.direction.held,.direction:active:not(:disabled){background:#92b8a4;box-shadow:0 1px 0 #819d8c}.icon{background:#f3f5ea;color:#597364;box-shadow:0 2px 0 #bdcbbf}.prize-route{background:#f0f1e7;color:#4c7061;border-top:1px solid #ccd6c9}.sound-toggle{background:#edf3e8;color:#3d6452;border-color:#a8beac}@media(max-width:600px){.machine{border-width:4px;border-radius:12px}.controls button{border-radius:12px}}

/* Keep the column cabinet full-width after viewport changes. */
.arcade-pair>.machine{width:100%;align-self:stretch}


/* mid126: allow time to see opening and the key turning. */
#result[data-reveal="opening"] .capsule-symbol:before,#result[data-reveal="opening"] .capsule-symbol:after{animation-duration:1.2s}
#result[data-reveal="flip"] .designer-key{animation-duration:.75s}

/* reveal146: independent slots keep artwork and actions still across every phase. */
#result:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 68px 64px 44px;align-items:center;justify-items:center;align-content:stretch;gap:8px;padding:18px 12px;overflow:hidden}
#result[data-reveal]{padding-bottom:18px}
#result #reward-3d,#result #received-prize-art{grid-area:1/1;align-self:center;justify-self:center;margin:0;width:min(300px,100%);height:100%;min-height:0;max-height:210px}
#result #received-prize-art{width:min(260px,100%);max-height:190px}
#result #result-title{grid-area:2/1;display:flex;align-items:center;justify-content:center;align-self:stretch;margin:0;min-height:0;width:100%;line-height:1.2;text-align:center;font-size:26px;overflow-wrap:anywhere}
#result #prize-details{grid-area:3/1;align-self:stretch;display:flex;align-items:center;justify-content:center;margin:0;width:100%;min-height:0;line-height:1.45;font-size:13px;overflow:auto;overscroll-behavior:contain;text-align:center}
#result button{grid-area:4/1;align-self:stretch;justify-self:center;min-height:0;height:44px;max-width:100%;margin:0;padding:8px 24px}
#result button[hidden]{display:none}
#result #received-prize-art .real-product-stack{transform:scale(1.15)}
@media(max-height:480px){#result:not([hidden]){grid-template-rows:minmax(0,1fr) 52px 44px 44px;gap:5px;padding:12px}#result #result-title{font-size:22px}#result #reward-3d{height:100%;max-height:150px}#result #received-prize-art{max-height:140px}}

/* Keep rank-specific borders and reveal effects from shifting the shared slots. */
#result{border-width:2px}
#result[data-reveal="key"] #reward-3d{animation:none}
#result,#result[data-reveal]{border-width:2px}
