.shell-cup-game .shell{width:min(1080px,calc(100% - 28px));padding-bottom:64px}
.cup-heading{display:grid;grid-template-columns:minmax(0,1fr) 145px;align-items:center;gap:26px;min-height:220px;margin:0 0 20px;padding:26px 34px;overflow:hidden;border-radius:22px;background:radial-gradient(circle at 88% 25%,#9f6a6159,transparent 31%),linear-gradient(125deg,#2b2335,#522638);color:#fff9ed;box-shadow:0 16px 30px #173b3940}
.cup-heading h1{margin:4px 0 10px;font-size:clamp(38px,5.4vw,60px);line-height:1.03;letter-spacing:-.045em;font-weight:1000}
.cup-heading p{max-width:45ch;margin:0;color:#f0d6d6;font-size:17px;line-height:1.5}
.heading-kicker{color:#ffd472;font-size:12px;font-weight:1000;letter-spacing:.17em}
.cup-heading img{display:block;width:136px;height:166px;object-fit:contain;transform:rotate(180deg);filter:drop-shadow(0 15px 15px #031b1d80)}
.cup-board{overflow:hidden;border-radius:22px;background:#fffdf8;color:#202d2a;box-shadow:0 18px 32px #173b3940}
.cup-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;background:#f4f2e9;border-bottom:1px solid #e4ddd0}
.cup-toolbar h2{margin:0;font-size:19px;line-height:1.1;font-weight:1000}
.cup-toolbar p{margin:5px 0 0;color:#5e5e54;font-size:13px;line-height:1.35}
.difficulty-options{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.difficulty-options button{min-height:41px;padding:8px 13px;border:1px solid #bbcac2;border-radius:11px;background:#fffdf8;color:#31514b;font-size:13px;font-weight:1000;white-space:nowrap;cursor:pointer}
.difficulty-options button:hover{border-color:#387a70;background:#e9f6ef}
.difficulty-options button[aria-pressed=true]{border-color:#156e67;background:#176e68;color:#fff}
.difficulty-options button:focus-visible,.cup-button:focus-visible{outline:3px solid #f5bf57;outline-offset:3px}
.cup-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px 24px;background:#efe3d1}
.cup-stats p{margin:0;padding:12px 16px;border:1px solid #d6c5a9;border-radius:12px;background:#fffaf0;color:#6c5a53;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;box-shadow:0 4px 8px #5c41311a}
.cup-stats p:nth-child(2){background:#fff3d3;border-color:#dec58d}
.cup-stats strong{display:block;margin-top:4px;color:#57313a;font-size:25px;line-height:1.1;font-weight:1000;letter-spacing:0;font-variant-numeric:tabular-nums}
.cup-status{min-height:64px;display:grid;place-items:center;margin:0;padding:14px 22px;border-top:3px solid #b48753;border-bottom:3px solid #b48753;background:#25232e;text-align:center;color:#ffe0a6;font-size:17px;font-weight:900;line-height:1.4}
.tabletop{position:relative;min-height:450px;overflow:hidden;direction:ltr;background:radial-gradient(ellipse at 50% 43%,#826c6550,transparent 46%),linear-gradient(180deg,#211c2b 0%,#3d2839 56%,#281e2d 100%);box-shadow:inset 0 18px 35px #0c111780}
.tabletop::after{content:"";position:absolute;left:6%;right:6%;bottom:17px;height:7px;z-index:4;background:radial-gradient(circle,#f8d694 0 3px,transparent 4px) repeat-x 0 0/40px 7px;filter:drop-shadow(0 0 5px #f7c76b)}
.stage-arch{position:absolute;inset:6px 13px 23px;z-index:1;border:3px solid #ab7b48;border-radius:45% 45% 14px 14px/20% 20% 14px 14px;box-shadow:inset 0 0 0 8px #452c38,inset 0 0 0 11px #b58a53,0 0 0 6px #331c2b;pointer-events:none}
.stage-light{position:absolute;top:58px;width:48%;height:300px;z-index:1;background:linear-gradient(180deg,#ffe4a85b,#e5d49a0b 85%,transparent);clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);mix-blend-mode:screen;pointer-events:none}
.stage-light-left{left:12%;transform:rotate(-16deg);transform-origin:50% 0}.stage-light-right{right:12%;transform:rotate(16deg);transform-origin:50% 0}
.stage-floor{position:absolute;inset:auto 1% 0;height:130px;z-index:2;background:repeating-linear-gradient(94deg,#442b2e 0 68px,#684132 70px 73px,#442b2e 76px 145px);clip-path:polygon(8% 0,92% 0,100% 100%,0 100%);box-shadow:inset 0 18px 30px #120e18a8;pointer-events:none}
.stage-table{position:absolute;left:7%;right:7%;bottom:42px;height:260px;z-index:3;clip-path:polygon(23% 0,77% 0,100% 82%,100% 100%,0 100%,0 82%);background:linear-gradient(180deg,#b78658 0%,#745039 78%,#e0ad6b 81%,#74432f 83%,#4c2c30 100%);box-shadow:inset 0 0 0 5px #e4ba7d;pointer-events:none}
.stage-table::before{content:"";position:absolute;inset:0 0 18%;background:repeating-linear-gradient(92deg,#e9c48712 0 24px,#3a1b2114 26px 29px,#e9c48712 32px 64px),linear-gradient(180deg,#b8895c,#795039);border-bottom:6px solid #d6a56f}
.stage-table::after{content:"";position:absolute;left:3%;right:3%;bottom:17px;height:3px;background:#d5ab69a8}
.stage-curtain{position:absolute;top:0;bottom:0;width:14%;z-index:6;background:repeating-linear-gradient(90deg,#4b1935 0 8px,#8b2a49 11px 23px,#ab3b52 25px 30px,#571c35 34px 43px);filter:drop-shadow(8px 0 8px #100b17a8);pointer-events:none}
.stage-curtain-left{left:0;border-right:4px solid #d7aa6d;clip-path:polygon(0 0,100% 0,83% 35%,95% 67%,73% 100%,0 100%)}
.stage-curtain-right{right:0;border-left:4px solid #d7aa6d;clip-path:polygon(0 0,100% 0,100% 100%,27% 100%,5% 67%,17% 35%);filter:drop-shadow(-8px 0 8px #100b17a8)}
.stage-valance{position:absolute;top:0;left:0;right:0;height:85px;z-index:7;background:repeating-linear-gradient(90deg,#4a1731 0 17px,#822541 21px 35px,#a0374e 38px 44px,#5a1a34 49px 60px);clip-path:polygon(0 0,100% 0,100% 62%,95% 80%,90% 65%,85% 80%,80% 65%,75% 80%,70% 65%,65% 80%,60% 65%,55% 80%,50% 65%,45% 80%,40% 65%,35% 80%,30% 65%,25% 80%,20% 65%,15% 80%,10% 65%,5% 80%,0 62%);filter:drop-shadow(0 5px 3px #100a16b8);pointer-events:none}
.cup-lane{position:absolute;inset:82px 14% 110px;z-index:5}
.cup-button{position:absolute;display:flex;align-items:flex-end;justify-content:center;width:clamp(80px,16vw,160px);height:165px;z-index:var(--depth,2);border:0;padding:0;background:transparent;cursor:default;transition:left var(--travel-ms,500ms) cubic-bezier(.4,.05,.3,1),top var(--travel-ms,500ms) cubic-bezier(.4,.05,.3,1),transform var(--travel-ms,500ms) cubic-bezier(.4,.05,.3,1);touch-action:manipulation}
.cup-button::after{content:"";position:absolute;left:23%;right:23%;bottom:1px;height:5px;border-radius:50%;background:#241820b0;filter:blur(2px);pointer-events:none}
.cup-button img{position:relative;z-index:1;display:block;width:min(92%,145px);height:auto;max-height:160px;margin-bottom:-18%;object-fit:contain;transform:rotate(180deg) scaleY(.94);transform-origin:center center;transition:transform .32s ease,filter .2s ease;filter:drop-shadow(0 4px 3px #170d2080);pointer-events:none}
.cup-button[data-lift=true] img{transform:translateY(-66px) rotate(180deg) scaleY(.94)}
.cup-button.swap-high{z-index:4}.cup-button.swap-low{z-index:3}
.cup-button.swap-high img{transform:translateY(-15px) rotate(180deg) scaleY(.94)}
.cup-button.swap-low img{transform:translateY(-2px) rotate(180deg) scaleY(.94)}
.cup-button.guessable{cursor:pointer}.cup-button.guessable:hover img{filter:drop-shadow(0 16px 10px #0a1f1cbd) drop-shadow(0 0 9px #ffd272)}
.cup-button.chosen-empty img{filter:grayscale(.4) drop-shadow(0 15px 8px #0a1f1ca8)}
.ball{position:absolute;z-index:0;width:35px;height:35px;border:3px solid #fce8a3;border-radius:50%;background:radial-gradient(circle at 32% 27%,#fff7c4 0 12%,#f9ca5c 35%,#d98131 78%);box-shadow:0 6px 10px #001c1d7c;transform:translate(-50%,calc(-50% + 55px));transition:left var(--travel-ms,500ms) ease,top var(--travel-ms,500ms) ease}
.ball[hidden]{display:none}
.slot-labels{position:absolute;inset:82px 14% 110px;z-index:5;pointer-events:none}
.slot-labels span{position:absolute;display:grid;place-items:center;width:31px;height:31px;border:1px solid #e7b76e;border-radius:50%;background:#35232a;color:#ffe8b6;font-size:13px;font-weight:1000;font-variant-numeric:tabular-nums;box-shadow:0 3px 6px #120e18a0;transform:translate(-50%,calc(-50% + 91px))}
.cup-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:22px 24px 10px}
.cup-actions .fan-button{min-width:155px;min-height:48px}
.cup-footnote{margin:0;padding:5px 20px 22px;text-align:center;color:#657269;font-size:13px}
.shell-cup-game .fan-guide{margin-top:20px}.asset-credit{font-size:12px}
.shell-cup-game [hidden]{display:none!important}
@media(max-width:700px){.cup-toolbar{align-items:flex-start;flex-direction:column;padding:18px}.difficulty-options{justify-content:flex-start}.cup-stats{padding:12px 14px}.cup-stats p{padding:10px}.tabletop{min-height:390px}.stage-curtain{width:10%}.stage-table{left:6%;right:6%;bottom:40px;height:230px}.stage-light{height:270px}.cup-lane,.slot-labels{inset:84px 9% 92px}.cup-button{width:clamp(70px,18vw,125px);height:145px}.cup-button img{max-height:140px}.ball{transform:translate(-50%,calc(-50% + 48px))}.slot-labels span{transform:translate(-50%,calc(-50% + 80px))}}
@media(max-width:480px){.cup-heading{grid-template-columns:minmax(0,1fr) 78px;gap:12px;min-height:145px;padding:17px}.cup-heading h1{font-size:30px}.cup-heading p{font-size:12px;line-height:1.35}.heading-kicker{font-size:9px}.cup-heading img{width:77px;height:105px}.cup-toolbar h2{font-size:16px}.cup-toolbar p{font-size:12px}.difficulty-options button{min-height:38px;padding:7px 10px;font-size:12px}.cup-stats{gap:6px;padding:9px}.cup-stats p{padding:8px 6px;font-size:10px}.cup-stats strong{font-size:19px}.cup-status{min-height:68px;font-size:14px}.tabletop{min-height:360px}.stage-arch{inset:5px 5px 19px}.stage-valance{height:70px}.stage-curtain{width:9%}.stage-table{left:4%;right:4%;bottom:36px;height:210px}.stage-floor{height:110px}.stage-light{height:220px}.cup-lane,.slot-labels{inset:76px 8% 84px}.cup-button{width:clamp(60px,18vw,85px);height:120px}.cup-button img{max-height:118px}.cup-button[data-lift=true] img{transform:translateY(-53px) rotate(180deg) scaleY(.94)}.ball{width:28px;height:28px;transform:translate(-50%,calc(-50% + 40px))}.slot-labels span{width:25px;height:25px;font-size:11px;transform:translate(-50%,calc(-50% + 72px))}.cup-actions{padding:16px 12px 7px}.cup-actions .fan-button{min-width:120px;min-height:44px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.cup-button img{transition:none}}

/* The table and the closed ends of the cups are viewed directly from overhead. */
.heading-cup{position:relative;display:block;width:130px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 28%,#ffa69a,#ed6260 37%,#bf3245 75%,#7b2536);box-shadow:inset 0 0 0 7px #ffcfb8,inset 0 0 0 13px #a92e40,inset 5px 8px 15px #fff1d061,0 17px 24px #090b1a91}
.heading-cup::after{content:"";position:absolute;inset:20%;border:3px solid #ffdbb398;border-radius:50%;box-shadow:inset 0 0 0 7px #b72f42a6}
.tabletop{min-height:470px;background:repeating-linear-gradient(90deg,#48172e 0 20px,#742941 23px 40px,#8b3048 43px 47px,#501a30 50px 64px);box-shadow:inset 0 0 0 8px #341728,inset 0 0 0 13px #c08a51,inset 0 0 36px #170d17}
.tabletop::before{content:"";position:absolute;inset:14px;border:2px solid #e2b67b;border-radius:24px;pointer-events:none}
.tabletop::after{display:none}
.stage-table{inset:30px 5%;left:5%;right:5%;top:30px;bottom:30px;height:auto;z-index:1;clip-path:none;border:9px solid #c38c51;border-radius:45% / 17%;background:radial-gradient(ellipse at 50% 42%,#d9ab74,#b98150 57%,#8d543b);box-shadow:inset 0 0 0 4px #f1c687,inset 0 0 0 11px #754633,inset 0 0 36px #4c271aa6,0 13px 18px #160d16a8}
.stage-table::before{inset:16px 19px;border:0;border-radius:inherit;background:repeating-linear-gradient(91deg,transparent 0 48px,#723d2c19 49px 51px,transparent 52px 110px),repeating-linear-gradient(0deg,transparent 0 60px,#f9d79a12 61px 63px,transparent 64px 120px)}
.stage-table::after{display:none}
.cup-lane,.slot-labels{inset:58px 12% 59px;z-index:2}
.cup-button{display:block;width:112px;height:112px;align-items:initial;justify-content:initial;border-radius:50%;background:radial-gradient(circle at 35% 28%,#ffa69a 0%,#ed6260 36%,#c8394c 68%,#982639 100%);box-shadow:inset 0 0 0 5px #ffe0c0,inset 0 0 0 10px #b73143,inset 0 0 0 13px #e77a6e,inset 5px 9px 13px #fff2d15c,0 5px 2px #522c2a,0 9px 13px #30192299;transition:left var(--travel-ms,500ms) cubic-bezier(.4,.05,.3,1),top var(--travel-ms,500ms) cubic-bezier(.4,.05,.3,1),transform .35s ease,filter .2s ease}
.cup-button::before{content:"";position:absolute;inset:19%;border:3px solid #ffccaa9c;border-radius:50%;box-shadow:inset 0 0 0 5px #b42b3d96,0 0 0 2px #9e27368c}
.cup-button::after{content:"";position:absolute;inset:34%;left:34%;right:34%;top:34%;bottom:34%;height:auto;border-radius:50%;background:radial-gradient(circle at 39% 32%,#f88d83,#d6414e 78%,#ae2b40);box-shadow:inset 0 2px 4px #fff2ca70;filter:none}
.cup-button[data-lift=true]{transform:translate(-50%,calc(-50% - 72px))!important}
.cup-button.swap-high{z-index:5;filter:brightness(1.12)}.cup-button.swap-low{z-index:4;filter:brightness(.92)}
.cup-button.guessable:hover{filter:brightness(1.15) drop-shadow(0 0 9px #ffd272)}
.cup-button.chosen-empty{filter:grayscale(.5)}
.ball{z-index:1;width:34px;height:34px;transform:translate(-50%,-50%);box-shadow:0 2px 6px #4b2918a8}
.slot-labels{z-index:1}.slot-labels span{transform:translate(-50%,calc(-50% + 78px))}
@media(max-width:700px){.tabletop{min-height:410px}.stage-table{inset:26px 4%;height:auto}.cup-lane,.slot-labels{inset:50px 9% 50px}.cup-button{width:90px;height:90px}.cup-button[data-lift=true]{transform:translate(-50%,calc(-50% - 59px))!important}.slot-labels span{transform:translate(-50%,calc(-50% + 64px))}}
@media(max-width:480px){.heading-cup{width:72px}.tabletop{min-height:380px}.stage-table{inset:23px 3%;border-width:6px;height:auto}.cup-lane,.slot-labels{inset:45px 7% 47px}.cup-button{width:70px;height:70px;box-shadow:inset 0 0 0 4px #ffe0c0,inset 0 0 0 7px #b73143,inset 0 0 0 10px #e77a6e,inset 4px 7px 10px #fff2d15c,0 4px 2px #522c2a,0 7px 10px #30192299}.cup-button[data-lift=true]{transform:translate(-50%,calc(-50% - 49px))!important}.ball{width:27px;height:27px}.slot-labels span{transform:translate(-50%,calc(-50% + 50px))}}
@media(prefers-reduced-motion:reduce){.cup-button{transition:none}}

/* Camera tilted gently downward: visible cup walls, a little of each closed top. */
.heading-cup{width:125px;height:120px;aspect-ratio:auto;border-radius:0;background:transparent;box-shadow:none}
.heading-cup::before{content:"";position:absolute;inset:26% 8% 6%;border-radius:5% 5% 18% 18%;background:linear-gradient(90deg,#8c2036,#f16b67 25%,#ed5558 64%,#9b263a);clip-path:polygon(27% 0,73% 0,100% 100%,0 100%);filter:drop-shadow(0 9px 5px #07091480)}
.heading-cup::after{content:"";position:absolute;inset:13% 30% auto;height:27%;border:4px solid #fbb3a0;border-radius:50%;background:radial-gradient(ellipse at 42% 30%,#fa9c8c,#e4515b 70%,#a82f43);box-shadow:inset 0 3px 5px #fff1cc8c,0 3px 1px #9c2d3e}
.stage-table{inset:51px 5% 23px;left:5%;right:5%;top:51px;bottom:23px;height:auto;border:0;border-radius:28px;clip-path:polygon(11% 0,89% 0,100% 100%,0 100%);background:repeating-linear-gradient(90deg,#6b3d2a12 0 90px,#f8d9a819 92px 95px,#6b3d2a12 97px 180px),linear-gradient(180deg,#916343,#b88756 27%,#c99562 75%,#a46a43);box-shadow:inset 0 0 0 9px #ecc18b,inset 0 16px 30px #572e24a6,0 12px 16px #180c15ad}
.stage-table::before{inset:9px 1%;border:0;border-radius:24px;background:linear-gradient(180deg,#fff1cf25,transparent 46%,#673d2d25)}
.cup-lane{--ball-drop:25px;inset:59px 12% 58px}
.slot-labels{inset:59px 12% 58px}
.cup-button{width:112px;height:105px;border-radius:0;background:transparent;box-shadow:none;filter:drop-shadow(0 5px 3px #352018a6)}
.cup-button{transition-duration:var(--travel-ms),var(--travel-ms),var(--travel-ms),.2s}
.cup-button::before,.cup-button::after{display:none}
.cup-button span{position:absolute;display:block;pointer-events:none}
.cup-rim{z-index:0;left:7%;right:7%;bottom:6%;height:20%;border:3px solid #fcb8a7;border-radius:50%;background:#a82b3d;box-shadow:0 4px 3px #4b2b22a8}
.cup-body{z-index:1;inset:22% 6% 11%;background:linear-gradient(90deg,#a5263b 0%,#eb6a68 24%,#f47a70 42%,#d94951 70%,#92233b 100%);clip-path:polygon(24% 0,76% 0,100% 100%,0 100%)}
.cup-body::after{content:"";position:absolute;left:16%;top:5%;bottom:6%;width:9%;background:#ffd7bb38;transform:skew(-14deg)}
.cup-top{z-index:2;left:26%;right:26%;top:9%;height:27%;border:4px solid #ffc5ad;border-radius:50%;background:radial-gradient(ellipse at 40% 28%,#ffaaa0,#df4e59 70%,#a4283d);box-shadow:inset 0 3px 5px #fff0d396,0 3px 1px #952238}
.cup-button[data-lift=true]{transform:translate(-50%,calc(-50% - 47px)) scale(var(--cup-scale,1))!important}
.cup-button.swap-high{filter:drop-shadow(0 9px 5px #301a1a9c) brightness(1.06)}
.cup-button.swap-low{filter:drop-shadow(0 5px 3px #301a1a9c) brightness(.94)}
.cup-button.guessable:hover{filter:drop-shadow(0 0 10px #ffd272) brightness(1.1)}
.ball{width:30px;height:30px}
@media(max-width:700px){.stage-table{inset:43px 4% 20px;height:auto}.cup-lane,.slot-labels{inset:50px 9% 50px}.cup-lane{--ball-drop:21px}.cup-button{width:92px;height:88px}.cup-button[data-lift=true]{transform:translate(-50%,calc(-50% - 42px)) scale(var(--cup-scale,1))!important}}
@media(max-width:480px){.heading-cup{width:72px;height:77px}.stage-table{inset:37px 3% 17px;height:auto}.cup-lane,.slot-labels{inset:45px 7% 47px}.cup-lane{--ball-drop:18px}.cup-button{width:72px;height:72px;box-shadow:none}.cup-top{border-width:3px}.cup-rim{border-width:2px}.cup-button[data-lift=true]{transform:translate(-50%,calc(-50% - 36px)) scale(var(--cup-scale,1))!important}.ball{width:25px;height:25px}}
