*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#075276;color:white;font-family:Arial,sans-serif}#sea{position:fixed;inset:0;width:100%;height:100%;touch-action:none}button,input{font:700 17px Arial;border:2px solid #092133;border-radius:14px}button{cursor:pointer;background:#e5f9ff;color:#103550;padding:12px 20px;box-shadow:0 4px 0 #071a28;touch-action:none}button:hover{filter:brightness(1.08)}button:active{transform:translateY(3px)}main{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;background:#02324c50;padding:18px}.brand{font-size:clamp(34px,6vh,58px);font-weight:1000;color:#fff3ae;text-shadow:3px 4px 0 #10283b,-2px -2px 0 #10283b;transform:rotate(-3deg)}.brand span{display:block;text-align:center;font-size:13px;letter-spacing:2px;color:#c3f9ff;margin:9px}.panel{width:min(450px,95vw);padding:14px 24px 20px;border:3px solid #12283b;border-radius:28px;background:linear-gradient(#b8f5fff5,#64c9e9f5);box-shadow:0 8px 0 #10283b,0 20px 60px #001b3c66;color:#113750;text-align:center}#portrait{height:110px;width:190px;display:block;margin:auto}label{display:flex;align-items:center;gap:12px;font-weight:bold}input{min-width:0;width:100%;padding:10px;background:white}.modes{display:flex;gap:8px;margin-top:20px}.modes button{flex:1;padding:12px 4px;font-size:15px}.selected{background:#ffe887!important}p{font-size:14px;line-height:1.7}.primary{display:block;background:#a6ef59;width:100%;font-size:21px;margin:18px 0 12px}.plain{background:transparent;border:0;box-shadow:none;font-size:13px;padding:3px}#skins{padding:9px 24px}dialog{color:#153b53;border:3px solid #12283b;border-radius:24px;background:#c8f4ff;text-align:center;max-width:min(440px,94vw);box-shadow:0 8px 0 #071a28}dialog::backdrop{background:#001d35b0}#choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}#choices button{padding:0}#choices canvas{width:70px;height:55px}.glass{background:#062e4bde;border:1px solid #84dcff55;border-radius:16px;padding:12px 16px}#leaders{position:fixed;left:16px;top:16px;font-size:13px;line-height:1.9;min-width:145px}#stats{position:fixed;right:16px;top:16px;font-weight:bold;line-height:1.8}#hint{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);font-size:12px;background:#092b4888;padding:8px;border-radius:20px;white-space:nowrap}#dash{position:fixed;right:20px;bottom:36px;background:#ffdd69;border-radius:50%;width:100px;height:100px;padding:8px;font-size:18px}small{display:block;font-size:11px;margin-top:6px}#stick{display:none;position:fixed;width:100px;height:100px;border-radius:50%;background:#ffffff20;border:2px solid #ffffff66;pointer-events:none}#stick i{display:block;position:absolute;width:40px;height:40px;left:28px;top:28px;border-radius:50%;background:#ffffff88}[hidden]{display:none!important}@media(max-height:700px){main{gap:6px}.panel{padding-top:4px;padding-bottom:12px}#portrait{height:75px}.primary{margin:12px 0 8px}.brand{font-size:32px}.modes{margin-top:12px}}@media(pointer:coarse){small{display:none}#hint{bottom:10px;font-size:10px}#leaders{font-size:11px;left:8px;top:8px;padding:8px;min-width:100px}#stats{right:8px;top:8px;font-size:12px;padding:8px}#dash{right:12px;width:88px;height:88px}}
#eject{position:fixed;right:28px;bottom:154px;width:84px;height:65px;font-size:13px;padding:8px;background:#b9eafa}#dash{font-size:17px}#hint{max-width:calc(100vw - 30px);white-space:normal;text-align:center}dialog{max-height:90dvh;overflow:auto}@media(pointer:coarse){#eject{right:16px;bottom:140px;width:80px;height:60px}}
/* Blobs visual language: mint arena, light card, purple/yellow chunky controls. */
body{color:#49315b;background:#d8eee4;font-family:Arimo,Arial,sans-serif}main{background:#d8eee426;gap:0;padding-top:65px}.brand{position:absolute;right:35px;top:24px;font-size:46px;color:#7545ac;transform:rotate(3deg);text-shadow:0 3px white,0 5px #49315b}.brand span{color:#715481;font-size:12px;letter-spacing:3px}.panel{width:350px;max-width:94vw;background:linear-gradient(145deg,#fbf7ff,#ffffffed 60%,#effbf4);border:3px solid white;border-radius:28px;padding:5px 24px 20px;box-shadow:0 8px 0 #aacabd,0 18px 35px #365c4520;color:#49315b}#portrait{width:210px;height:130px;cursor:pointer;margin:0 auto 4px}label{font-size:13px;gap:10px}input{background:#f5f0fa;border:2px solid #d7cce1;color:#49315b;text-align:center;font-size:15px;padding:10px}.modes{gap:6px;margin-top:17px}.modes button{background:#f5effb;color:#74528f;font-size:12px;border:2px solid #aa8dbf;border-radius:10px;padding:11px 3px;box-shadow:0 3px #15101b}.modes button.selected{background:#8050b5!important;color:white;border-color:#38204c}.primary{background:#ffcf45;color:#422a3c;border:2px solid #1d1625;box-shadow:0 5px #17121e,inset 0 3px #ffffff70;font-size:21px;min-height:52px;margin:17px 0 15px}#skins{width:100%;background:#9256d9;color:white;border:2px solid #21152c;box-shadow:0 4px #15101b,inset 0 2px #ffffff50;font-size:16px;padding:12px}#description{font-size:12px;margin:12px 0;color:#82728e;min-height:32px}.plain{color:#715482}.toptools{position:absolute;top:24px;left:28px;display:flex;gap:10px;align-items:center}.toptools button{padding:8px 12px;color:#7546a4;background:white}.toptools span{padding:10px;background:#fffaf0dd;border:2px solid white;border-radius:12px;font-size:13px}.glass{background:#ffffffce;border:2px solid white;border-radius:15px;color:#57416d;box-shadow:0 3px #adc5b866}#leaders{width:170px;line-height:2.1}#stats{font-size:13px;color:#61427a}#hint{color:#6f6676;background:#ffffff90;animation:fadehint 8s forwards}#dash{border-radius:14px;background:#9256d9;color:white;border:2px solid #22162e;box-shadow:0 4px #17121e,inset 0 2px #ffffff80;right:24px;bottom:28px;width:112px;height:74px;font-size:24px}#dash small{font-size:11px}#eject{right:148px;bottom:28px;width:108px;height:74px;border-radius:14px;background:#36bbc7;color:white;border:2px solid #22162e;box-shadow:0 4px #17121e,inset 0 2px #ffffff80;font-size:22px}#eject small{font-size:10px}#stick{background:#9d6ec529;border-color:#9265b877}#stick i{background:#9963c4aa}dialog{background:linear-gradient(135deg,#f7edff,#fff 70%,#effbf5);border:3px solid white;color:#49315b;box-shadow:0 6px #adbdaf,0 18px 65px #49315b40;padding:22px;width:min(570px,94vw)}dialog h2{color:#7540a4}#choices{gap:12px}#choices button{background:white;border:2px solid #decfe9;box-shadow:0 3px #cbb8da;border-radius:16px;overflow:hidden}#choices canvas{width:100%;height:auto;display:block}#choices .skinname{font-size:12px;display:block;padding:0 3px 10px;color:#714994}#choices button.selected{border-color:#8050b5;background:#f3e9fc!important}#end{width:360px}#end h2{background:#8050b5;color:white;margin:-22px -22px 15px;padding:17px;border-radius:20px 20px 0 0}#summary{line-height:2;font-size:14px}#toast{position:fixed;pointer-events:none;left:50%;top:20%;transform:translateX(-50%);z-index:100;background:#fffaf2e8;border:2px solid white;color:#8050b5;border-radius:14px;padding:10px 20px;font-weight:bold;opacity:0;transition:opacity .2s;max-width:min(90vw,520px)}#wallet{color:#89611f}@keyframes fadehint{0%,70%{opacity:1}100%{opacity:0}}@media(max-width:650px){.brand{right:18px;top:22px;font-size:31px}.brand span{font-size:9px}.toptools{left:12px;top:20px;gap:5px}.toptools .record{display:none}.toptools span{font-size:11px;padding:8px}.toptools button{padding:6px 9px}main{padding-top:70px}.panel{width:330px}#leaders{width:130px}#dash{right:12px;bottom:24px;width:90px;height:70px}#eject{right:112px;bottom:24px;width:90px;height:70px}#choices{grid-template-columns:repeat(3,1fr)}#stats{max-width:calc(100vw - 160px)}#portrait{height:120px;width:194px}}@media(max-height:650px){.panel{padding-bottom:10px}#portrait{height:85px;width:140px}.primary{margin:12px 0 8px;min-height:44px;font-size:18px}.modes{margin-top:10px}#description{margin:9px 0;min-height:20px}main{padding-top:55px}.brand{font-size:30px;top:16px}.toptools{top:16px}#skins{padding:9px}}@media(max-height:470px){main{padding-top:4px}.panel{width:360px;padding:4px 20px 10px}#portrait{height:60px;width:98px}.brand{font-size:25px}.toptools .record{display:none}#description{margin:5px 0}.modes button{padding:7px}.primary{margin:9px 0 7px;min-height:38px}input{padding:6px}#skins{padding:7px}}
.teamchoices{display:flex;gap:12px;margin:24px 0}.teamchoices button{flex:1;background:var(--team);color:white;padding:24px 4px;font-size:21px;border:2px solid #21162e}.teamchoices small{font-size:11px}.reward{padding:12px;margin:12px 0;background:#fff0b7;color:#8c651f;border:1px solid #e6ce7a;border-radius:12px;font-size:20px;font-weight:bold}
#map{position:fixed;bottom:18px;left:18px;width:112px;height:112px;border:2px solid white;border-radius:16px;background:#fafffa88;pointer-events:none}@media(pointer:coarse){#map{display:none}}
/* Ocean arena with the familiar compact Blobs opening card. */
body{background:#168eaf}main{background:linear-gradient(180deg,#b4f1e411,#083e5c15)}.panel{background:linear-gradient(145deg,#fcf8fff5,#fffffff2 65%,#effbf5f2);box-shadow:0 7px 0 #85aaa4,0 18px 35px #073b5740}#play{margin:16px 0 18px;min-height:54px;font-size:22px}#skins{margin:4px 0 15px}.modes{margin-top:0}#description{margin:11px 0;min-height:28px}.glass{background:#f3ffffd9;border-color:#ffffffdc;box-shadow:0 3px #07577538}#map{background:#e7ffffbb}#hint{color:#edffff;background:#064e6b66}.brand{color:#f4d069;text-shadow:0 3px #fff3ca,0 5px #17465b}.brand span{color:#efffff;text-shadow:0 1px #17465b}.toptools .record{background:#f6fffbdd}#stick{background:#e6ffff23;border-color:#d5ffff80}#stick i{background:#d5ffffaa}@media(max-width:650px){#play{font-size:20px;min-height:50px;margin:14px 0 17px}#skins{margin-bottom:13px}}@media(max-height:650px){#play{min-height:43px;font-size:19px;margin:10px 0 13px}#skins{margin-bottom:9px}#description{min-height:20px;margin:9px 0}}@media(max-height:470px){#play{min-height:37px;font-size:17px;margin:8px 0 11px}#skins{margin-bottom:7px}}

/* Compact Blobs-style arena HUD: clear rank, name and mass columns. */
#leaders{top:12px;left:12px;width:190px;min-width:0;padding:10px;background:#ffffffd9;border:2px solid white;border-radius:16px;line-height:1.4;pointer-events:none}#leaders h3{font-size:14px;margin:0 0 9px;color:#49315b}#leaders .leader-head,#leaders .leader-row{display:grid;grid-template-columns:28px minmax(0,1fr) 48px;gap:5px;align-items:center;padding:6px 3px;font-size:12px}#leaders .leader-head{font-size:10px;color:#83748f;padding-top:0}#leaders .leader-row span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#leaders .leader-row span:last-child{direction:ltr;text-align:left;font-variant-numeric:tabular-nums;font-weight:bold}#leaders .is-me{color:#7940b4;font-weight:bold}#leaders .my-rank{margin-top:6px;border-top:1px solid #dfd1ec;background:#eee0ff;color:#7940b4!important;border-radius:7px;padding:8px 3px;font-weight:bold}#stats{top:12px;right:12px;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-start;max-width:260px;padding:0;background:none;border:0;box-shadow:none;pointer-events:none;line-height:1.4}.stat-chip{display:flex;align-items:center;gap:6px;background:#ffffffde;border:1px solid white;border-radius:9px;padding:6px 9px;font-size:11px;color:#57416d}.stat-chip b{font-size:14px;direction:ltr;font-variant-numeric:tabular-nums}.stat-chip.team-0{color:#2472bc}.stat-chip.team-1{color:#bc3f61}.stat-chip.team-2{color:#96720c}@media(max-width:650px){#leaders{width:156px;padding:8px;left:8px;top:8px}#leaders h3{font-size:12px}#leaders .leader-head,#leaders .leader-row{grid-template-columns:24px minmax(0,1fr) 38px;font-size:10px;gap:3px;padding:5px 2px}#leaders .leader-head{font-size:9px}#stats{right:8px;top:8px;max-width:calc(100vw - 180px);gap:4px}.stat-chip{padding:5px 7px;font-size:10px}.stat-chip b{font-size:12px}}

#joinDialog{width:min(760px,95vw);max-width:95vw;max-height:94dvh;padding:20px;overflow:hidden}#joinDialog h2{margin:0 0 8px;font-size:25px}#joinSubtitle{margin:4px 0 12px}.join-countdown{display:flex;gap:7px;justify-content:center;align-items:center;margin-bottom:16px;font-size:14px}.join-countdown b{background:#eee0ff;color:#7940b4;border-radius:10px;font-size:23px;padding:4px 10px}#joinCount{margin-right:10px;color:#85738f;direction:ltr}.join-teams{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.join-column{min-width:0;padding:10px;background:#fff;border:2px solid #e0d8e8;border-radius:16px;box-shadow:none;color:#57416d}.join-column h3{margin:0 0 8px;font-size:16px;color:var(--team,#7940b4)}.join-column.chosen{border:3px solid var(--team);background:#f5f0ff}.join-column ul{list-style:none;margin:0;padding:0;height:min(36vh,300px);overflow:auto;text-align:right}.join-column li{font-size:12px;font-weight:normal;padding:3px 6px;border-radius:5px}.roster-me{background:#eee0ff;color:#7940b4;font-weight:bold!important}.join-action{display:block;margin-top:10px;background:var(--team);border-radius:8px;padding:9px 2px;color:white;font-size:12px}.join-survival ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:4px;height:min(40vh,320px)}#joinExit{margin-top:16px;font-size:14px;padding:9px 22px}@media(max-width:650px){#joinDialog{padding:15px 10px}.join-teams{gap:5px}.join-column{padding:7px 4px}.join-column h3{font-size:13px}.join-column li{font-size:10px;padding:4px 2px}.join-action{font-size:10px}.join-survival ul{grid-template-columns:repeat(3,minmax(0,1fr))}#joinSubtitle{font-size:12px}.modes button{font-size:11px}}

/* End card follows Blobs: portrait, three stats, gold reward and clear actions. */
#leaders .leader-row.is-me{background:#eee0ff;color:#7940b4;font-weight:bold;border-radius:7px}
#end{width:380px;max-width:94vw;padding:18px 22px 22px;border:3px solid white;border-radius:23px;background:#fffafd;box-shadow:0 8px 0 #49315b55,0 24px 70px #17334055;max-height:96dvh;overflow:auto}#end #result{margin:-18px -22px 16px;padding:16px 12px;background:#8050b5;color:white;font-size:23px;border-radius:19px 19px 12px 12px;line-height:1.3}#end #endFish{display:block;width:100px;height:100px;object-fit:contain;margin:0 auto 4px}#end:has(#endFish:not([hidden])) #result{margin:0 0 12px;padding:0;background:none;color:#65408e;border-radius:0;font-size:22px}#endPlace{font-size:20px;font-weight:bold;color:#8050b5;margin:0 0 10px}#summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0;text-align:center;line-height:1.5}#summary>span{font-size:11px;color:#83728e}#summary b{display:block;font-size:25px;color:#8751bb;font-variant-numeric:tabular-nums}#end .reward{display:flex;justify-content:center;align-items:center;gap:13px;margin:0 0 18px;padding:12px;border:2px solid #f2d487;background:#fff1bf;border-radius:14px;color:#805b21}#end .reward small{display:block;font-size:11px;margin:0 0 3px;color:#967634}#end .reward strong{font-size:22px}#end .reward-coin{font-size:32px}#end #again,#end #back{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin:0;padding:10px;border:2px solid #21152c;border-radius:12px;box-shadow:0 4px #17121e,inset 0 2px #ffffff60;font-size:18px;font-weight:bold}#end #again{background:#ffcf45;color:#422a3c}#end #back{margin-top:13px;background:#9256d9;color:white}#end button>span{font-size:24px}@media(max-height:620px){#end{padding:12px 18px 16px}#end #endFish{width:68px;height:68px}#end #result{margin:-12px -18px 12px;padding:12px;font-size:21px}#summary{margin:10px 0}#summary b{font-size:22px}#end .reward{padding:9px;margin-bottom:13px}#end #again,#end #back{min-height:42px;padding:7px;font-size:16px}#end #back{margin-top:11px}}@media(max-height:450px){#end #endFish{display:none}#end #result{margin:0 0 8px;padding:0;background:none;color:#65408e}#summary{margin:8px 0}#end .reward{padding:6px;margin-bottom:10px}#endPlace{margin-bottom:4px}}

.reward-row{display:flex;align-items:stretch;gap:8px;margin-bottom:14px}#end .reward-row .reward{flex:1;min-width:0;margin:0;padding:10px 6px;gap:7px}#end .reward-row .reward strong{font-size:18px}#end .reward-row .reward-coin{font-size:24px}#doubleReward{flex:0 0 102px;background:#61d895;color:#134c30;border:2px solid #17251b;box-shadow:0 3px #141b16;padding:7px;font-size:13px;line-height:1.5;border-radius:12px}#doubleReward:disabled{opacity:.6;cursor:default}#adStatus{margin:0 0 12px;font-size:12px;color:#805b21}#adStatus:empty{display:none}

#end .reward-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}#end .reward-row .reward{min-height:96px;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:10px 4px;margin:0}#end .reward-row .reward-coin{display:none}#end .reward-row .reward strong{font-size:20px}#end #doubleReward{min-width:0;min-height:96px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:10px 4px;border:2px solid #173f2a;border-radius:14px;background:linear-gradient(150deg,#b0f5c6,#58cf89);color:#174a2d;box-shadow:0 4px #14251a,inset 0 2px #ffffff9c}#doubleReward small{display:block;margin:0;font-size:12px;font-weight:bold}#doubleReward strong{font-size:20px;line-height:1.25}#end #doubleReward>span{font-size:10px;font-weight:normal}#doubleReward:hover:not(:disabled){filter:brightness(1.06)}#leaders{padding-top:7px;padding-bottom:7px}@media(max-width:380px){#end .reward-row .reward strong,#doubleReward strong{font-size:17px}}

.brand{transform:none;top:12px;right:24px;width:240px;line-height:0}.brand img{display:block;width:100%;height:180px;object-fit:contain}.toptools{padding-bottom:46px}.toptools #login{position:absolute;top:49px;left:0;padding:8px 22px;font-size:14px}.skinprice{display:block;font-size:11px;padding:7px;color:#805b21}#picker{width:min(740px,95vw);max-width:95vw}#choices{grid-template-columns:repeat(4,minmax(0,1fr))}#choices button{display:flex;flex-direction:column;align-items:stretch}#choices .skinprice{order:3}#choices .skinname{padding-bottom:0}#shopStatus{position:sticky;top:-22px;z-index:1;background:#faf5ff;padding:10px;border-radius:10px;min-height:42px}@media(max-width:650px){.brand{width:150px;right:10px;top:4px}.brand img{height:120px}.toptools .record{display:inline-block}.toptools{gap:3px;left:10px;top:14px}.toptools span{padding:7px 4px;font-size:10px}#choices{grid-template-columns:repeat(3,minmax(0,1fr))}main{padding-top:108px}.panel{max-height:calc(100dvh - 118px);overflow:auto}}@media(max-height:470px){.brand{width:140px}.brand img{height:110px}main{padding-top:0}.panel{max-height:96dvh}}

#picker{padding:0 20px 20px;scroll-padding-top:85px}.shop-header{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:110px minmax(0,1fr) 110px;align-items:center;gap:8px;margin:0 -20px;padding:16px 18px;background:#faf5ff;border-bottom:1px solid #dfd0eb;box-shadow:0 4px 14px #70508714}.shop-header h2{margin:0;font-size:23px}.shop-wallet{justify-self:start;color:#9b6c16;background:#fff0bf;border:1px solid #efd488;border-radius:14px;padding:9px 12px;white-space:nowrap;font-size:15px}.shop-wallet b{font-variant-numeric:tabular-nums}#shopClose{justify-self:end;width:38px;height:38px;padding:0;line-height:32px;font-size:28px;background:#9256d9;color:white;border:2px solid #563173;border-radius:11px;box-shadow:0 3px #513065}#shopStatus{position:static;background:transparent;margin:4px 0 14px;padding:4px;min-height:24px}@media(max-width:500px){.shop-header{grid-template-columns:85px minmax(0,1fr) 40px;padding:13px 12px;gap:5px}.shop-header h2{font-size:18px}.shop-wallet{padding:8px 6px;font-size:12px}#picker{padding:0 12px 16px}.shop-header{margin:0 -12px}}
#picker{max-height:90dvh;overflow-y:auto}#choices button{touch-action:pan-y}#choices canvas{height:auto;aspect-ratio:180/160}
/* Compact HUD and Blobs-style shop / result controls. */
#leaders{width:190px;min-width:0;padding:7px 9px}#leaders .leader-row{grid-template-columns:20px minmax(0,1fr) 46px;gap:4px}#leaders .leader-row span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#teamStatus{position:fixed;top:16px;left:50%;transform:translateX(-50%);width:min(320px,40vw);padding:8px;border:2px solid #fff;border-radius:14px;background:#fffaf5ed;box-shadow:0 3px #1f526b35;pointer-events:none}.team-share{display:flex;direction:ltr;height:8px;border-radius:8px;overflow:hidden}.team-share i{transition:width .2s}.team-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:7px}.team-score{text-align:center;font-size:11px;font-weight:bold}.team-score b{display:block;font-size:16px;font-variant-numeric:tabular-nums}.team-score.team-0{color:#2472bc}.team-score.team-1{color:#bc3f61}.team-score.team-2{color:#8b6810}
#end .end-icon{width:24px;height:24px;flex-shrink:0}#end .reward-row .reward-coin{display:block;font-size:28px;line-height:1}#end .reward-row .reward strong{font-size:19px}.summary-icon{display:block;font-size:24px;line-height:1.4}
.bonus-card{margin:16px 0 10px;padding:14px;border:2px solid #f1cf61;border-radius:16px;background:#fff6d5}.bonus-card strong{font-size:19px;color:#704914}.bonus-card p{margin:8px 0;font-size:13px}.bonus-card button{border:2px solid #241f28;border-radius:10px;padding:9px 14px;background:#ffd557;color:#503819;font-size:14px;box-shadow:0 3px #241f28}.bonus-card button:disabled{background:#d8f1df;box-shadow:none;color:#2c6840;cursor:default}.shop-login{padding:8px 22px;background:#9256d9;color:white;font-size:14px}
#boost{position:fixed;right:238px;bottom:36px;width:96px;height:76px;background:#ffd557;color:#5d4215;border-radius:16px;padding:10px;font-size:24px}#boost small{display:block;font-size:11px}#boost:disabled{opacity:.85}
#loginInfo{position:relative;width:360px;max-width:94vw;max-height:92dvh;overflow:auto;background:#fffafd;border:3px solid white;border-radius:24px;padding:20px;color:#49315b}.login-close{position:absolute;left:12px;top:12px;padding:0;width:32px;height:32px;font-size:24px;background:#9256d9;color:white}.login-fish{width:95px;height:95px;object-fit:contain}.login-fields label{display:block;margin:10px 0 6px;text-align:center}.login-fields input{text-align:center}.login-unavailable{font-size:12px;color:#776687}#loginInfo .primary:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:650px){#leaders{width:132px;padding:6px;left:8px}#leaders .leader-row{grid-template-columns:15px minmax(0,1fr) 35px;font-size:10px;gap:2px}#stats{max-width:calc(100vw - 155px)}#teamStatus{top:74px;left:auto;right:8px;transform:none;width:calc(100vw - 156px);max-width:260px;padding:6px}.team-score{font-size:10px}.team-score b{font-size:13px}#boost{right:208px;bottom:36px;width:74px;height:70px;padding:6px}}
#boost{right:268px;bottom:28px}@media(max-width:650px){#boost{right:212px;bottom:24px}}
#leaders{width:155px}#leaders .leader-row{grid-template-columns:minmax(0,1fr) 48px;gap:5px}#leaders .leader-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#leaders .leader-row span:nth-child(2){overflow:visible;text-overflow:clip}
#dash{width:98px}#eject{width:94px;right:132px}#boost{right:236px;width:86px}#mergeBonus{position:fixed;right:236px;bottom:114px;width:86px;height:65px;padding:6px;border-radius:14px;background:#b8eafa;color:#27516c;font-size:25px}#mergeBonus small{display:block;font-size:11px}#mergeBonus:disabled{opacity:.5}.merge-card{background:#e6f7ff;border-color:#a7d8ed}.merge-card button{background:#b8eafa}
#end{position:relative}#winConfetti{position:absolute;inset:0;z-index:10;overflow:hidden;pointer-events:none;border-radius:22px}#winConfetti i{position:absolute;top:-20px;width:8px;height:13px;border-radius:2px;animation:win-fall 3s linear both}@keyframes win-fall{from{transform:translate(0,-30px) rotate(0);opacity:1}to{transform:translate(var(--sway),700px) rotate(720deg);opacity:0}}@media(prefers-reduced-motion:reduce){#winConfetti i{animation-duration:.8s!important;animation-delay:0s!important}}
@media(max-width:650px){#leaders{width:116px}#leaders .leader-row{grid-template-columns:minmax(0,1fr) 37px;gap:3px}#dash{width:80px}#eject{width:80px;right:102px}#boost{right:192px;width:72px}#mergeBonus{right:192px;bottom:104px;width:72px;height:60px}}
#sound{position:relative}#sound.muted::after{content:'';position:absolute;left:16%;top:48%;width:68%;height:3px;border-radius:3px;background:#e6323f;transform:rotate(-48deg);box-shadow:0 0 0 1px #fff9;pointer-events:none}
.shop-bonuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 12px}.shop-bonuses .bonus-card{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-width:0}.shop-bonuses .bonus-card p{flex:1}.shop-bonuses button{width:100%;font-size:13px;padding:9px 5px}
#teamStatus{top:78px;right:16px;left:auto;transform:none;width:180px;max-width:calc(100vw - 150px);padding:8px;border:1px solid white;background:#ffffffde;border-radius:12px;box-shadow:none}.my-team{font-size:14px;font-weight:900;text-align:center;color:#292034;border-radius:8px;padding:8px 5px;margin-bottom:7px}.team-standing{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:5px;font-size:13px;font-weight:bold}.team-standing b{font-variant-numeric:tabular-nums}.team-standing.team-0{color:#2472bc}.team-standing.team-1{color:#bc3f61}.team-standing.team-2{color:#876612}
@media(max-width:650px){#teamStatus{right:8px;top:82px;width:154px}.my-team{font-size:12px;padding:7px 3px}.team-standing{font-size:11px;padding:4px}.shop-bonuses{gap:7px}.shop-bonuses .bonus-card{padding:10px 6px}.shop-bonuses strong{font-size:14px}.shop-bonuses p{font-size:11px}.shop-bonuses button{font-size:11px}}
/* Match the supplied three-row team score card. */
#teamStatus{top:78px;right:16px;left:auto;transform:none;width:214px;max-width:calc(100vw - 144px);padding:10px 14px;background:rgba(255,255,255,.94);border:0;border-radius:19px;box-shadow:none;direction:rtl}
#teamStatus .team-standing{display:grid;grid-template-columns:24px minmax(0,1fr) 54px 20px;gap:7px;align-items:center;height:40px;padding:0;font-family:Arimo,Arial,sans-serif;font-size:16px;font-weight:700;border-bottom:1px solid #e0deeb}
#teamStatus .team-standing:last-child{border-bottom:0}#teamStatus .team-trophy{display:flex;align-items:center;justify-content:center}#teamStatus .team-trophy svg{display:block;width:24px;height:24px}#teamStatus .team-name{text-align:right;white-space:nowrap}#teamStatus .team-total{text-align:left;direction:ltr;font-size:16px}#teamStatus .team-arrow{font-size:24px;line-height:1;color:#a295b3;font-weight:400;direction:ltr;text-align:left}#teamStatus .team-0{color:#328fff}#teamStatus .team-1{color:#ff4b6b}#teamStatus .team-2{color:#efb500}
@media(max-width:650px){#teamStatus{top:82px;right:8px;width:198px;padding:8px 10px}#teamStatus .team-standing{grid-template-columns:21px minmax(0,1fr) 49px 16px;gap:5px;font-size:14px;height:36px}#teamStatus .team-total{font-size:14px}#teamStatus .team-trophy svg{width:21px;height:21px}}
#mergeBonus{right:24px;bottom:114px;width:98px}@media(max-width:650px){#mergeBonus{right:12px;bottom:104px;width:80px}}
#boost,#mergeBonus{right:24px;bottom:114px;width:98px;height:65px}
#teamClock{position:fixed;top:14px;left:50%;transform:translateX(-50%);font-size:19px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;color:#49315b;background:#fff9dfed;border:1px solid white;border-radius:9px;padding:7px 10px;pointer-events:none}
#teamStatus{top:12px;right:12px;width:174px;padding:6px 9px;border-radius:15px}#teamStatus .team-standing{height:31px;grid-template-columns:19px minmax(0,1fr) 46px 13px;gap:4px;font-size:13px}#teamStatus .team-total{font-size:13px}#teamStatus .team-trophy svg{width:19px;height:19px}#teamStatus .team-arrow{font-size:19px}
@media(max-width:650px){#boost,#mergeBonus{right:12px;bottom:104px;width:80px;height:60px}#teamStatus{top:8px;right:8px;width:155px;padding:5px 7px;border-radius:13px}#teamStatus .team-standing{height:29px;grid-template-columns:17px minmax(0,1fr) 42px 11px;gap:3px;font-size:12px}#teamStatus .team-total{font-size:12px}#teamStatus .team-trophy svg{width:17px;height:17px}#teamClock{top:10px;font-size:16px;padding:6px 7px;left:calc(50% - 18px)}}
@media(max-width:650px){#teamClock{left:50%}#teamStatus{width:145px}#teamStatus .team-standing{grid-template-columns:16px minmax(0,1fr) 40px 10px;gap:2px;font-size:11px}#teamStatus .team-total{font-size:11px}}
#teamStatus .team-standing{grid-template-columns:19px minmax(0,1fr) 46px 10px;gap:2px}#teamStatus .team-name{text-align:left}#teamStatus .team-arrow{font-size:14px}#teamStatus .team-total{text-align:right}
@media(max-width:650px){#teamStatus .team-standing{grid-template-columns:16px minmax(0,1fr) 40px 9px;gap:2px}#teamStatus .team-arrow{font-size:12px}}
.bonus-card:has(button[aria-pressed="true"]){outline:2px solid #8050b5;outline-offset:1px}

#teamStatus .team-standing{grid-template-columns:19px max-content minmax(46px,1fr) 10px;gap:3px}#teamStatus .team-name{text-align:right}#teamStatus .team-total{text-align:right}@media(max-width:650px){#teamStatus .team-standing{grid-template-columns:16px max-content minmax(40px,1fr) 9px;gap:2px}}
/* Fit team scores to their contents, without a stretched empty column. */
#teamStatus{width:max-content;max-width:calc(100vw - 140px);padding:5px 7px}#teamStatus .team-standing{grid-template-columns:18px 50px 6ch 10px;gap:3px;font-size:13px}#teamStatus .team-total{font-size:13px}#teamStatus .team-trophy svg{width:18px;height:18px}
#boost,#mergeBonus{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:3px 5px 10px;gap:1px}#boost>b,#mergeBonus>b{display:block;line-height:28px;font-size:25px;font-weight:normal}#boost small,#mergeBonus small{margin-top:0;line-height:14px}
@media(max-width:650px){#teamStatus{width:max-content;padding:4px 6px}#teamStatus .team-standing{grid-template-columns:16px 43px 6ch 9px;gap:2px;font-size:11px}#teamStatus .team-total{font-size:11px}#teamStatus .team-trophy svg{width:16px;height:16px}}
@media(pointer:coarse),(max-width:650px){#boost small,#mergeBonus small{display:none!important}#boost,#mergeBonus{justify-content:center;padding:4px}#boost>b,#mergeBonus>b{font-size:28px;line-height:1}}
/* Bonus controls share the standard action-button proportions. */
#boost,#mergeBonus{height:74px;width:98px;padding:10px 5px;justify-content:center;gap:6px;border:2px solid #22162e;border-radius:14px;box-shadow:0 4px #17121e,inset 0 2px #ffffff80}
#boost>b,#mergeBonus>b{font-size:24px;line-height:26px}#boost small,#mergeBonus small{margin:0;font-size:11px;line-height:14px;font-weight:700}
@media(max-width:650px){#boost,#mergeBonus{height:70px;width:80px}}
@media(pointer:coarse),(max-width:650px){#boost,#mergeBonus{padding:10px 5px;gap:0}#boost small,#mergeBonus small{display:none!important}#boost>b,#mergeBonus>b{font-size:28px;line-height:1}}
#endPlace.winner-place{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 18px;padding:10px 12px;border:2px solid #efd17d;border-radius:18px;background:linear-gradient(135deg,#fff9dd,#ffe9a3);box-shadow:0 4px 0 #e4bf58;color:#855213;line-height:1}
.winner-trophy{font-size:49px}.winner-label{font-size:28px;font-weight:800}.winner-number{font-size:68px;font-weight:900;color:#d49009;text-shadow:0 2px white,0 4px #ba761d}
@media(max-height:620px){#endPlace.winner-place{padding:7px;margin-bottom:12px}.winner-trophy{font-size:36px}.winner-label{font-size:24px}.winner-number{font-size:49px}}

/* Shared round clock, matching the Blobs cream badge. */
#teamClock{top:10px;left:50%;min-width:100px;height:50px;display:flex;align-items:center;justify-content:center;padding:8px 16px;border:2px solid #fff;border-radius:19px;background:#fff5d2;color:#49315b;box-shadow:0 5px 0 #bca66a;font-size:24px;font-weight:700;line-height:1;direction:ltr;font-variant-numeric:tabular-nums}
#teamClock[hidden]{display:none}
@media(max-width:650px){#teamClock{top:10px;left:50%;min-width:82px;height:43px;padding:7px 11px;border-radius:16px;font-size:21px;box-shadow:0 4px 0 #bca66a}}

#teamClock{min-width:86px;height:43px;padding:7px 13px;border-radius:16px;font-size:21px;box-shadow:0 4px 0 #bca66a}
@media(max-width:650px){#teamClock{min-width:72px;height:37px;padding:6px 9px;border-radius:14px;font-size:18px;box-shadow:0 3px 0 #bca66a}}

#purchaseConfirm{width:min(360px,90vw);text-align:center}#purchaseImage{width:140px;height:125px;object-fit:contain}#purchaseName{margin:0 0 12px}#purchaseConfirm p{line-height:1.6}#purchasePrice{white-space:nowrap;color:#7040a4}.purchase-actions{display:flex;gap:10px;justify-content:center}.purchase-actions button{flex:1;margin:0}

#end .end-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;direction:rtl}#end .end-actions:has(#sameArena[hidden]){grid-template-columns:1fr}#end .end-actions button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:46px;margin:0;padding:9px 8px;border:2px solid #49315b;border-radius:10px;box-shadow:0 3px #49315b,inset 0 1px #ffffff50;font-size:14px;text-shadow:none}#end #sameArena{background:#36bbc7;color:#fff}#end #again{background:#ffcf45;color:#422a3c}#end #sameArena[hidden]{display:none}#end .end-actions .end-icon{width:23px;height:23px;flex-shrink:0}#end #back{margin-top:19px}@media(max-width:380px){#end .end-actions{gap:7px}#end .end-actions button{font-size:12px;padding:8px 5px}}

/* Compact end actions, matching the Blobs reference. */
#end .end-actions{gap:10px}
#end #again,#end #sameArena,#end #back{min-width:0;min-height:42px;height:42px;padding:7px 8px;border-width:1.5px;border-radius:10px;gap:6px;font-size:13px;line-height:1.2;font-weight:700;box-shadow:0 3px #49315b,inset 0 1px #ffffff50;text-shadow:none}
#end .end-actions button>span{font-size:13px;line-height:1.2;font-weight:700;white-space:nowrap}
#end .end-actions .end-icon,#end #back .end-icon{width:19px;height:19px}
#end #back{margin-top:15px;background:#f0e8f8;color:#71518b;border-color:#d1bce3;box-shadow:0 2px #d1bce3}
#end .end-actions button:active,#end #back:active{transform:translateY(2px);box-shadow:0 1px #49315b}
@media(max-width:380px){#end .end-actions{gap:7px}#end #again,#end #sameArena{padding:7px 5px;gap:4px}#end .end-actions button>span{font-size:11px}#end .end-actions .end-icon{width:17px;height:17px}}

#end #revive{display:block;width:100%;min-height:44px;margin:0 0 14px;padding:9px 8px;border:2px solid #268853;border-radius:11px;background:linear-gradient(#41cc78,#1ca650);color:#fff;box-shadow:0 3px #206c43,inset 0 2px #ffffff60;font-size:14px;font-weight:700;line-height:1.3}#end #revive[hidden]{display:none}#end #revive:disabled{opacity:.55}

#nameError{font-size:12px;line-height:1.4;color:#b02f4e;margin:8px 0 0}#name[aria-invalid="true"]{border-color:#b02f4e}

/* Hanukkah theme */
body{background:#c2d9e1;font-family:Arimo,Arial,sans-serif}#home{background:radial-gradient(ellipse at 50% 30%,#f6f4ed18, #8aa9bd18)}.panel{background:linear-gradient(145deg,#fff5db,#f1d9aa)!important;border-color:#875a30!important;color:#422c35!important;box-shadow:0 7px 0 #503528,0 20px 70px #020a2b66!important}.brand{transform:none!important}.holiday-logo{text-align:center;filter:drop-shadow(0 7px 0 #132248);line-height:.95}.holiday-logo span{font-size:13px!important;letter-spacing:1px;color:#ffe6a8!important;margin:0 0 14px!important}.holiday-logo strong{display:block;font-size:54px;color:#fff6d7;text-shadow:0 3px 0 #b47633,-2px -2px 0 #352650,2px 2px 0 #352650}.holiday-logo b{font-size:66px;color:#ffd16c}.holiday-logo small{font-size:13px;color:#e2eaff;margin-top:15px;text-shadow:none;font-weight:400}dialog{background:#fff0d4!important;color:#412c36!important;border-color:#805536!important}.shop-header{background:#ffedc9!important}#choices button{background:#fff9eb!important;border-color:#c99757!important}#choices button.selected{background:#ffe19a!important}#skins{background:linear-gradient(#4661a0,#293e79)!important;color:#fff4de!important;border-color:#19264d!important}.modes button{background:#fff9eb;color:#60452d;border-color:#b78c57}.modes .selected{background:#ffd26e!important}.primary{background:linear-gradient(#ffd477,#efa13f)!important;color:#472d27!important;border-color:#865228!important}#instructions p{color:#493646}.brand{width:auto!important;height:auto!important}.login-fish{content:url('assets/donuts/0-v4.webp')}@media(max-width:700px){.holiday-logo strong{font-size:35px}.holiday-logo b{font-size:43px}.holiday-logo span{font-size:10px!important;margin-bottom:9px!important}.holiday-logo small{font-size:10px;margin-top:10px}}

/* Logo centered above the home panel */
.brand{position:static!important;right:auto!important;top:auto!important;width:min(320px,70vw)!important;height:auto!important;margin:0 auto 6px;transform:none!important;line-height:0;text-align:center}
.brand img.donut-logo{display:block;width:100%;height:auto;max-height:150px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 4px 3px #081a3b66)}
@media(max-width:650px){.brand{width:min(220px,72vw)!important;margin-bottom:2px}.brand img.donut-logo{max-height:110px}}
@media(max-height:470px){.brand{width:min(160px,55vw)!important}.brand img.donut-logo{max-height:80px}}

/* Login under the left tools (crown / record / coins) */
.toptools{padding-bottom:46px}
.toptools #login{position:absolute;top:49px;left:0;padding:8px 22px;font-size:14px;background:#9256d9;color:#fff;border:2px solid #563173;border-radius:12px;box-shadow:0 3px #513065;display:inline-block}
.toptools .icon[data-more-games]{width:40px;height:40px;padding:6px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:2px solid #49315b;border-radius:12px;box-shadow:0 3px #49315b}
#hud .exit-icon{position:fixed;top:10px;right:10px;z-index:40;width:42px;height:42px;padding:0;border:2px solid #49315b;border-radius:12px;background:#fff;color:#49315b;box-shadow:0 3px #49315b;display:inline-flex;align-items:center;justify-content:center}
#choices .skin-item{display:flex;flex-direction:column;gap:4px;min-width:0}
#choices .skin-ad{font-size:11px;padding:7px 4px;background:linear-gradient(150deg,#b0f5c6,#58cf89);color:#174a2d;border:2px solid #173f2a;border-radius:10px;box-shadow:0 2px #14251a}
#choices .skin-ad.waiting{opacity:.55;background:#e8e0ef;color:#776687;border-color:#cbbdda;box-shadow:none}
.shop-bonuses button small{display:block;font-size:10px;font-weight:normal;margin-top:3px;opacity:.85}
.bonus-help{font-size:12px;color:#776687;margin:0 0 10px;text-align:center;line-height:1.4}
#adLoading{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:#0b1a3a88;color:#fff;font:700 18px Arimo,Arial,sans-serif}
#adLoading.show{display:flex}
#adLoading .ad-ring{width:46px;height:46px;border:4px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:suf-spin .7s linear infinite}
@keyframes suf-spin{to{transform:rotate(360deg)}}
#loginDialog{position:relative;width:360px;max-width:94vw;max-height:92dvh;overflow:auto;background:#fffafd;border:3px solid white;border-radius:24px;padding:20px;color:#49315b;text-align:center}
#loginDialog .login-site{margin:0 36px 6px;font-size:13px;color:#85738f}
#loginDialog .login-fish{width:95px;height:95px;object-fit:contain}
#loginDialog .login-tabs{display:flex;gap:8px;justify-content:center;margin:12px 0}
#loginDialog .login-tabs button{flex:1;padding:10px;background:#f5effb;color:#74528f;border:2px solid #aa8dbf}
#loginDialog .login-tabs button[aria-pressed="true"]{background:#8050b5;color:#fff;border-color:#563173}
#loginDialog .login-fields label{display:block;margin:10px 0 6px}
#loginDialog .login-fields input{width:100%;text-align:center;box-sizing:border-box}
#loginDialog .login-submit{width:100%;margin-top:12px}
#loginDialog .secondary{background:#e8e0ef;color:#57416d}
#loginDialog .login-status{min-height:20px;font-size:13px;color:#a13d5c}
#loginDialog .login-note{font-size:12px;color:#776687;line-height:1.35}
#loginDialog .login-reminder{margin:10px 0;padding:8px;background:#fff0bf;border-radius:10px;font-size:12px}
#loginDialog .login-reminder strong{display:block}
#loginDialog .close{position:absolute;left:12px;top:12px;width:32px;height:32px;padding:0;font-size:24px;background:#9256d9;color:#fff;border-radius:10px}
#sound.muted{position:relative}
#sound.muted::after{content:"";position:absolute;inset:18% 12%;border-top:3px solid #e23;transform:rotate(-35deg);pointer-events:none}
@media(max-width:650px){.toptools{padding-bottom:42px}.toptools #login{top:44px;padding:7px 16px;font-size:13px}#hud .exit-icon{top:8px;right:8px;width:38px;height:38px}#home{padding-top:58px!important}.panel{max-height:calc(100dvh - 130px)}}
@media(max-height:470px){#home{padding-top:40px!important}}

/* Home: logo in-flow above panel, tools stay top-left */
#home{padding-top:58px!important;gap:8px}
#home .brand{order:0}
#home .panel{order:1}

body.playing #stats{right:58px}body.playing #home,[data-more-games]{ }body.playing [data-more-games]{visibility:hidden;pointer-events:none}#end .ad-end{margin:14px auto 0;display:flex;justify-content:center}

#homeFooter{display:flex;direction:rtl;align-items:center;justify-content:center;gap:10px;margin-top:10px}
#home #homeFooter #help{margin:0;white-space:nowrap}
#home #homeFooter .bug-report-link{
  color:#6a849c;font:600 13px/1.4 Arimo,Arial,sans-serif;white-space:nowrap;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;
  opacity:.85;-webkit-tap-highlight-color:transparent;
}
#home #homeFooter .bug-report-link:hover{color:#287cc8;opacity:1}
#home #homeFooter .bug-report-link:focus-visible{outline:3px solid #ffb322;outline-offset:4px;border-radius:4px}

