.contest-gallery{position:fixed;inset:15dvh 0 0;margin:auto;max-width:520px;display:flex;flex-direction:column;background:#252525;border-radius:28px 28px 32px 32px;overflow:clip;animation:slide .24s ease-out;color:#f5f5f5}.contest-scroll{overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:26px 13px 114px;scrollbar-width:none}.contest-scroll::-webkit-scrollbar{display:none}.contest-scroll>h1{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-stretch:condensed;font-size:25px;line-height:1.13;text-align:center;letter-spacing:-.7px;font-weight:900;margin:0 0 24px;transform:scaleX(.86)}.contest-prizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.contest-prizes img{display:block;width:100%;height:auto;border-radius:20px;object-fit:contain;min-width:0}.contest-prizes img.wide{grid-column:1/-1}.contest-participants{text-align:center;color:#97979e;font-size:15px;margin:22px 0 0}.contest-participants strong{color:#eee;font-weight:600}.contest-footer{position:absolute;bottom:0;left:0;right:0;padding:16px 18px calc(33px + env(safe-area-inset-bottom,0px));pointer-events:none;background:linear-gradient(transparent,#25252533)}.contest-footer>button{width:100%;min-height:63px;background:linear-gradient(110deg,#ffdb48,#f3a311);border-radius:20px;color:#161616;font-size:20px;font-weight:600;box-shadow:0 7px 22px #ffc92835;pointer-events:auto}.contest-back{position:fixed;top:max(15px,calc(var(--tg-content-safe-area-inset-top,0px) + 10px));left:max(12px,calc((100vw - 520px)/2 + 12px));padding:7px 12px;background:#302b3dbb;border-radius:30px;font-size:14px;z-index:5}.in-telegram .contest-back{display:none}
.contest-ticket-sheet{width:100%;max-width:520px;position:relative;background:#27252a;border-radius:27px 27px 35px 35px;padding:27px 13px calc(52px + env(safe-area-inset-bottom,0px));color:#fff;max-height:85dvh;overflow-y:auto;scrollbar-width:none;animation:slide .24s ease-out}.contest-ticket{background:radial-gradient(ellipse at 98% 0%,#d1a34eab,transparent 30%),linear-gradient(125deg,#7043d2,#3b18aa);border-radius:30px;overflow:hidden}.contest-ticket header{position:relative;padding:25px 22px 21px}.contest-ticket header>small{font-size:12px;letter-spacing:1.5px;font-weight:700;color:#c5a5ed;display:block;margin-bottom:8px}.contest-ticket h2{font-size:25px;line-height:1.15;letter-spacing:-.5px;margin:0 0 9px}.contest-ticket header>p{font-size:14px;color:#c6a9ec;margin:0}.contest-step-dots{position:absolute;top:23px;right:22px;display:flex;gap:6px}.contest-step-dots>span{width:27px;height:27px;background:#ffffff25;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:#eee0d5}.contest-step-dots>span.done{background:#ffcb00;color:#1f1900}.contest-perforation{position:relative;height:1px;border-top:1.5px dashed #ffffff47;margin:0 22px}.contest-perforation:before,.contest-perforation:after{content:'';position:absolute;top:-11px;width:23px;height:23px;background:#27252a;border-radius:50%;left:-34px}.contest-perforation:after{left:auto;right:-34px}.contest-ticket ol{list-style:none;padding:9px 18px 12px;margin:0}.contest-ticket li{display:flex;gap:13px;align-items:center;padding:21px 0;min-height:83px;border-bottom:1px solid #ffffff27}.contest-ticket li:last-child{border-bottom:0}.contest-step-icon{background:#ffffff20;width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;font-size:14px;font-weight:700}.contest-step-icon.done{color:#1d1703;background:#ffca00;font-size:22px}.contest-ticket li>div{flex:1;min-width:0}.contest-ticket h3{font-size:17px;font-weight:600;line-height:1.15;margin:0 0 6px}.contest-ticket li p{font-size:14px;line-height:1.25;color:#bea4e8;margin:0}.contest-ticket li>button{flex-shrink:0;min-width:86px;padding:11px 12px;border-radius:17px;font-size:15px;font-weight:600;color:#1a1607;background:linear-gradient(110deg,#ffdb43,#f4a61c)}.contest-ticket li>button.finished{background:#ffffff20;color:#fff;opacity:1}.contest-ticket-sheet .contest-back{position:fixed}
@media(max-width:370px){.contest-ticket header{padding:22px 16px}.contest-step-dots{right:15px;top:20px;gap:4px}.contest-step-dots>span{width:22px;height:22px}.contest-ticket header>small{font-size:10px}.contest-ticket h2{font-size:22px}.contest-ticket li{gap:9px}.contest-ticket h3{font-size:15px}.contest-ticket li p{font-size:12px}.contest-ticket li>button{min-width:70px;font-size:13px;padding:10px}.contest-ticket ol{padding-left:14px;padding-right:14px}.contest-participants{font-size:13px}}
@media(prefers-reduced-motion:reduce){.contest-gallery,.contest-ticket-sheet{animation:none}}

.contest-scroll>h1{font-size:27px;transform:none;margin-bottom:20px}
