.contest-page{background:radial-gradient(ellipse at 85% 0,#48284688,transparent 55%),#17121f;font-size:14px}
.contest-page header,.contest-page footer{padding:12px 0}
.contest-page header{gap:12px}.contest-page header nav{gap:10px;font-size:12px}
.contest-page header .brand{font-size:22px}.contest-page header .brand small{font-size:8px}
.contest-page main section{margin:0}
.contest-page .arena-heading{display:flex;align-items:center;gap:18px;padding:16px 20px;background:linear-gradient(125deg,#312039,#251b32);border:1px solid #694377;border-radius:22px}
.arena-heading>div:first-child{flex:1;min-width:0}.arena-heading .eyebrow{font-size:9px;letter-spacing:1.5px;margin:0 0 5px}
.contest-page .arena-heading h1{font-size:clamp(27px,3vw,40px);margin:0;letter-spacing:-1.3px}.arena-heading h1 em{color:#ffb27b}
.contest-page .arena-heading p:last-child{font-size:12px;margin:6px 0 0;color:#dacde4}
.arena-heading>img{width:58px;height:58px;object-fit:contain;animation:arena-bob 5s ease-in-out infinite}
.arena-join{display:flex;flex-direction:column;align-items:center;gap:6px}
.contest-page #choose-existing{background:#d4ff53;color:#243018;border-color:#d4ff53;min-height:40px;padding:8px 14px;font-size:12px;font-weight:800}
.arena-join a{font-size:11px;text-decoration:none;color:#d8b8ef}
.arena-scoreboard{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin:12px 4px 4px;font-size:11px;color:#cbb7d7}
.arena-scoreboard b{color:#ffcb98}.arena-scoreboard small{font-size:10px}
.contest-page .arena-status{font-size:10px;color:#d5b3e5;margin:5px 4px}
#contest-message:empty{display:none}#contest-message{font-size:12px;padding:8px;background:#4d2d42;border-radius:10px;margin:6px 0}
.arena-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 0 10px}
.arena-toolbar .tabs{margin:0;gap:7px}.arena-toolbar .tabs a{min-height:34px;font-size:12px;padding:6px 12px;border-radius:12px}
.arena-rules-link{font-size:11px;color:#d5b7e4!important}
.contest-page .arena-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-height:calc(100dvh - 310px);min-height:230px;overflow:auto;overscroll-behavior:contain;padding:0 6px 8px 0;scrollbar-color:#78518b #241b2e;scrollbar-width:thin}
.contest-page .entry{border-radius:18px;border-color:#654573;box-shadow:0 7px 22px #0002;transition:border-color .2s}
.contest-page .entry:hover{border-color:#c492d5}
.contest-page .entry img{height:clamp(190px,30dvh,340px);aspect-ratio:auto;object-fit:contain;background:#130e1b}
.contest-page .entry>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:10px}
.contest-page .entry h3{font-size:12px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center}
.entry-score{color:#ffa7cb;font-size:12px;align-self:center}
.contest-page .entry button{width:auto;min-height:38px;margin:0;font-size:12px;padding:7px 10px}
.contest-page .entry button[data-vote]{background:#ffb57d;border-color:#ffb57d;color:#372032;min-width:0}
.contest-page .entry button[data-vote][aria-pressed=true]{background:#ffb8d6;border-color:#ffb8d6;opacity:1}
.contest-page .entry button.subtle{min-width:38px;border-color:#60436d;background:#35243f;font-size:17px}
.contest-page .arena-single{max-width:360px;grid-template-columns:1fr;margin:auto}.arena-single .entry img{height:min(48dvh,420px)}
.contest-page .empty{padding:20px;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse,#49305166,transparent);border:1px dashed #795389}
.contest-page .empty>img{width:54px;height:54px}.contest-page .empty h2{font-size:23px;margin:8px 0}.contest-page .empty p{font-size:12px;max-width:370px;margin:0 0 12px}.contest-page .empty .primary{font-size:12px;min-height:40px;padding:8px 14px}
.arena-pages{justify-content:center;font-size:12px;margin:8px 0}.arena-pages:empty{display:none}
.contest-page #rules{border-top:1px solid #483250;margin-top:10px;padding:9px 4px;font-size:12px;color:#d5c6df}.contest-page #rules summary{cursor:pointer;min-height:26px;font-size:11px}.contest-page #rules li{margin:8px 0}
.contest-page footer{font-size:10px;border-top:0;gap:12px;color:#bca9c9}
.contest-page .my-card{padding:8px 12px;margin:6px 0;gap:10px;font-size:11px}.contest-page .my-card img{width:34px;height:42px;object-fit:cover}.contest-page .my-card button{font-size:11px;min-height:32px;padding:5px 9px}
.arena-winner{background:#51402d;border:1px solid #aa8b46;padding:8px 12px;font-size:12px;border-radius:12px}
@keyframes arena-bob{50%{transform:translateY(-4px) rotate(4deg)}}
@media(max-width:700px){.contest-page header,.contest-page main,.contest-page footer{width:calc(100% - 24px)}.contest-page .arena-heading{gap:10px;padding:12px}.arena-heading>img{display:none}.arena-heading .eyebrow{font-size:8px}.contest-page .arena-heading p:last-child{font-size:10px}.arena-join{flex-shrink:0}.contest-page .arena-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:calc(100dvh - 325px)}.contest-page .entry img{height:clamp(165px,25dvh,250px)}.contest-page .arena-heading h1{font-size:28px}.arena-scoreboard{font-size:10px}.contest-page footer{flex-direction:row;align-items:center;flex-wrap:wrap}.contest-page .arena-single{max-width:300px}.contest-page .entry button{font-size:11px;padding:6px;min-height:40px}.contest-page .entry>div{padding:8px;gap:6px}.contest-page header .nw-telegram-app{min-height:32px;padding:6px 8px}.contest-page header nav{justify-content:flex-end;gap:7px}.contest-page header{padding:9px 0}}
@media(prefers-reduced-motion:reduce){.contest-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.contest-page .contest-site-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 0 20px}.contest-site-footer>nav{gap:4px 14px}.contest-site-footer a{display:inline-flex;align-items:center;min-height:36px;font-size:11px;text-decoration:none}.contest-site-footer>details{font-size:11px}.contest-site-footer summary{cursor:pointer;min-height:36px;display:flex;align-items:center}.contest-site-footer details[open]{flex-basis:100%}.contest-site-footer details nav{padding:8px 0;gap:4px 16px}.contest-site-footer a:focus-visible,.contest-site-footer summary:focus-visible{outline:2px solid #c99cff;outline-offset:3px}.contest-site-footer a:hover{color:#dbff7e}@media(max-width:700px){.contest-page .contest-site-footer{gap:4px 12px}.contest-site-footer a,.contest-site-footer summary{min-height:44px}}

.contest-page .contest-showcase{margin-top:14px}.showcase-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.contest-page .showcase-heading h2{font-size:19px;margin:0}.showcase-heading p,.contest-page .showcase-note,.contest-page .showcase-invite{font-size:11px;line-height:1.6;color:#d0bddb;margin:5px 0 10px}.showcase-invite a{color:#d4ff53}.showcase-entry h3{min-width:0;overflow-wrap:anywhere}.showcase-entry button[aria-pressed=true]{background:#d4ff53;color:#243018}.showcase-entry .entry-photo img{object-position:center}.contest-page .showcase-heading p{color:#ffcb98}
