#festivalOpen,#festivalHome,#mpFestival{background:linear-gradient(115deg,#733a31,#266d75);color:#fff;border:1px solid #eac383;border-radius:11px;padding:10px 12px;font-weight:850;cursor:pointer}
#festivalBadge{position:fixed;right:12px;top:202px;z-index:10;background:#56402ddf;color:#fff;border:1px solid #f2cd8a;border-radius:12px;padding:9px;font-size:12px;font-weight:850;cursor:pointer;box-shadow:0 4px 20px #0007}#festivalBadge.live{background:#186c5c}
#festivalAction{position:fixed;right:15px;bottom:20%;max-width:min(50vw,250px);z-index:20;padding:11px;background:#f2d58a;color:#183243;border:2px solid #fff;border-radius:14px;font-weight:900;box-shadow:0 7px 28px #000a}#festivalAction:disabled{opacity:.8;background:#163f49;color:#fff}#festivalAction[hidden]{display:none!important}
body:has(#home:not([hidden])) #festivalBadge{display:none}
#festivalDialog{box-sizing:border-box;color:#f4f7f6;width:min(96vw,880px);max-height:92dvh;overflow:auto;border:1px solid #8dbfc1;border-radius:20px;background:linear-gradient(135deg,#132a3a,#1c3554 55%,#283f3b);box-shadow:0 22px 80px #000e;padding:clamp(11px,2.5vw,22px)}#festivalDialog::backdrop{background:#000d;backdrop-filter:blur(4px)}#festivalDialog button{cursor:pointer;min-height:43px}#festivalDialog button:disabled{opacity:.42;cursor:default}
.festHero{display:flex;align-items:center;gap:14px;padding:15px;background:#102b3a;border:1px solid #496778;border-radius:13px}.festHero>div{flex:1;min-width:0}.festHero h2{font-size:clamp(22px,4vw,35px);color:#f5d68d;margin:3px 0}.festHero small{font-size:10px;letter-spacing:.1em;color:#83dbdc;font-weight:850}.festHero p{font-size:13px;line-height:1.48}.festHero b{font-size:12px;color:#a4ebc9}.festHero img{width:96px;height:125px;object-fit:cover;object-position:center top;border-radius:12px;border:1px solid #a8bcbb}
.festTabs{display:flex;gap:8px;margin:12px 0}.festTabs button{flex:1;background:#1b4153;color:#e2f6f4;border:1px solid #4b92a0;border-radius:10px;padding:10px 8px;font-weight:850}.festTabs button.selected{background:#46624c;border:2px solid #f2d28d;color:#fff}
.festPanel{background:#102a3c;border:1px solid #527487;border-radius:13px;padding:14px}.festPanel h3{margin:6px 0;color:#ffe0a0;font-size:19px}.festPanel p{font-size:13px;line-height:1.45}.festRow{display:flex;justify-content:space-between;align-items:center;gap:10px}.festRow small{letter-spacing:.08em;color:#9dd1cd;font-weight:750}.festRow strong{font-size:22px;color:#edcf87;white-space:nowrap}.festOrders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.festOrder{display:flex;flex-direction:column;gap:5px;background:#24405b;border:1px solid #577f88;border-radius:11px;padding:10px}.festOrder b{font-size:13px}.festOrder span{font-size:11px;color:#ffdb8b}.festOrder small{font-size:11px;opacity:.8}.festTarget{background:#213d52;color:#e8ffdd;border-radius:9px;padding:10px}.festActions{display:flex;justify-content:center;gap:12px;margin:12px 0}.festActions button{border:0;background:linear-gradient(120deg,#f0b75c,#f6d891);color:#1e3444;border-radius:12px;padding:13px;font-weight:900;font-size:15px;max-width:430px;width:100%}
.festScoreboard{background:#0c2932;margin:12px 0;padding:13px;border-radius:13px}.festScoreboard>b{color:#e5d9ac}.festPerson{display:flex;gap:10px;align-items:center;background:#ffffff0e;margin-top:7px;border-radius:7px;padding:8px;font-size:12px}.festPerson span{flex:1}.festPerson b{color:#f4cf88}.festPerson small{color:#93d1e0}.festRoundTrack{display:flex;gap:7px;margin:12px 0}.festRoundTrack span{flex:1;background:#284054;border-radius:9px;padding:8px;text-align:center;font-size:12px}.festRoundTrack span.now{background:#56634e;color:#fff0bd;font-weight:800}.festMeter{height:24px;margin:17px 0;background:#234653;border:2px solid #607e83;border-radius:15px;overflow:hidden}.festMeter>div{height:100%;width:0;background:linear-gradient(90deg,#3560a4,#4eafd5);transition:width .1s linear}.festMeter>div.sweet{background:linear-gradient(90deg,#82c780,#f7d675)}
.festMyRide{display:flex;align-items:center;gap:17px;padding:12px;border-radius:13px;background:#223e50}.festMyRide>div:nth-child(2){flex:1}.festMyRide button,.festCard button{border:1px solid #86d5c0;border-radius:9px;background:#27666a;color:#fff;font-weight:800;padding:8px}.festCarArt{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:110px;height:145px;border-radius:15px;background:radial-gradient(ellipse,#60737d,#1a344b 70%);transform:perspective(600px) rotateX(3deg)}.festCarArt i{position:absolute;display:block;height:105px;width:56px;border-radius:15px;background:linear-gradient(90deg,#050e18 0 7px,var(--paint) 8px 48px,#030b0f 49px 56px);border:3px solid var(--accent);box-shadow:0 13px 16px #000a}.festCarArt i:after{content:'';position:absolute;left:10px;top:20px;width:30px;height:42px;background:#133147b8;border:2px solid #9fc6d7;border-radius:6px}.festCarArt b{z-index:1;background:#101c23b3;color:var(--accent);font-size:12px;padding:2px 3px}.festShowcases{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;margin:15px 0}.festCard{background:#1e4051;border:1px solid #627d8b;border-radius:11px;padding:10px;text-align:center}.festCard .festCarArt{margin:auto;transform:scale(.8);transform-origin:center center;height:120px}.festCard h4{margin:4px 0}.festCard p{font-size:11px}.festCard button{font-size:11px}
.festFooter{display:flex;gap:9px;margin:12px 0}.festFooter button{flex:1;padding:11px;border-radius:11px;border:1px solid #73a9a0;background:#205b68;color:#fff;font-weight:900}.festNotice{padding:10px;background:#294558;border-radius:9px;color:#ffe5a1}.festFine{display:block;color:#c6d9df;line-height:1.5;font-size:11px}
@media(max-width:680px){#festivalBadge{top:157px;right:4px;font-size:10px}.festHero img{height:80px;width:65px}.festHero p{font-size:11px}.festOrders{grid-template-columns:1fr}.festOrder{flex-direction:row;align-items:center;justify-content:space-between;gap:6px}.festOrder>*{flex:1}.festTabs button{font-size:11px}.festRow strong{font-size:17px}.festPanel{padding:10px}.festFooter button{font-size:11px}.festMyRide .festCarArt{width:75px;height:115px;transform:scale(.8)}}
