.tabs{display:flex;gap:5px;padding:5px;margin-bottom:20px;border-radius:12px;background:#f0e5fb;box-shadow:0 3px 8px #3f11551a}.tab{flex:1;border:0;border-radius:9px;padding:12px 8px;background:transparent;color:#5a4266;font-weight:800;font-size:13px;text-align:center;text-decoration:none;cursor:pointer}.tab.active{background:linear-gradient(110deg,#8821e1,#5b0cb9);color:white;box-shadow:0 3px 7px #5611aa55}.section-title{display:flex;align-items:center;gap:7px;margin:14px 3px 10px}.section-title h1,.section-title h2{margin:0;font-size:17px}.section-title.upcoming{margin-top:26px}.live-dot,.upcoming-dot{width:13px;height:13px;border-radius:50%;background:var(--green)}.upcoming-dot{background:var(--orange)}.competition-card{overflow:hidden;border:1px solid #e0d4eb;border-radius:14px;background:#fff;box-shadow:0 5px 13px #32104c18}.competition-card.loading{padding:24px;color:var(--muted)}.competition-banner{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#241028}.card-content{padding:13px}.card-content h3{margin:0;font-size:19px;letter-spacing:-.4px}.competition-number{margin:2px 0 8px;color:#695777;font-size:13px;font-weight:700}.competition-details{margin:9px 0 8px;color:#5e4d66;font-size:13px;line-height:1.5}.competition-details b{color:#4a235b}.registration-status{margin:0 0 10px;color:#765b83;font-size:11px;font-weight:700}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.action-grid .download{grid-column:1/-1}.action-grid .btn{padding:9px 8px;font-size:12px}.secondary{border:1.5px solid #7d26be;background:white;color:#5c119d}.disabled{opacity:.55;cursor:not-allowed}.upcoming-data{display:flex;justify-content:space-between;gap:12px;margin:11px 0;color:#5a4b64;font-size:13px}.upcoming-data b{color:#65179e}.prize-head{margin:-22px -22px 18px;padding:20px;background:linear-gradient(115deg,#3a046f,#821ade);color:white;text-align:center}.prize-head h2{margin:0;font-size:20px}.prize-head p{margin:8px 0 0;font-size:13px}.prize-list{list-style:none;padding:0;margin:0}.prize-list li{display:flex;justify-content:space-between;padding:9px 5px;border-bottom:1px solid #ede7f1;font-size:14px}.prize-list li.top-three{font-weight:800;color:#6d159f;background:#faf1ff}.prize-list li.compact{font-size:12px}.results-empty{text-align:center;padding:75px 20px}.results-empty .trophy{font-size:76px;color:#8a1ee0;text-shadow:0 4px 0 #e7c9ff}.results-empty h1{margin:9px 0 30px;color:#3c164f;font-size:20px}.results-empty h2{font-size:20px;margin:0 0 12px}.results-empty p{max-width:300px;margin:auto;color:var(--muted);line-height:1.5;font-size:14px}

/* HilltopAds placement: competition page */
.ad-slot.page-ad{display:flex;align-items:center;justify-content:center;min-height:100px;width:100%;max-width:100%;margin:22px auto 10px;padding:8px;overflow:hidden;box-sizing:border-box;background:#faf7fd;border:1px dashed #d8c5e8;border-radius:12px;}
.ad-slot.page-ad:empty{display:none;}
.ad-slot.page-ad iframe,.ad-slot.page-ad img{max-width:100%;}

/* HilltopAds placement: Results page */
.results-ad{min-height:250px;max-width:300px;width:100%;margin:24px auto 12px;padding:0;border:0;background:transparent;overflow:hidden;}
.results-ad:empty{display:none;}
.results-ad iframe,.results-ad img{max-width:100%;}

.drawing-deadline{margin:0 0 10px;color:#765b83;font-size:12px;font-weight:600}.drawing-deadline strong{color:#5c119d;font-weight:800}.result-soon-action{cursor:pointer}

/* Additional HilltopAds 300x250 placement below the existing competition ad */
.ad-slot.page-ad-secondary{width:300px;max-width:100%;min-height:250px;margin:18px auto 24px;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;}
.ad-slot.page-ad-secondary iframe,.ad-slot.page-ad-secondary img{max-width:100%;}


/* Drawing reference preview popup */
.reference-dialog{width:min(520px,calc(100% - 28px));max-width:520px;padding:20px;border:1px solid #e5d8ef;border-radius:18px;background:#fff;box-shadow:0 18px 55px #1b062da8;}
.reference-dialog .reference-preview-content{display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:4px;}
.reference-dialog h2{align-self:flex-start;margin:0 0 2px;color:#35144b;font-size:20px;}
.reference-preview-image{display:block;width:100%;max-height:min(58vh,560px);object-fit:contain;border-radius:10px;background:#f7f3fa;}
.reference-download-button{display:block;width:min(100%,300px);font-weight:900;letter-spacing:.02em;}
.reference-preview-ad{width:300px;max-width:100%;min-height:100px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:2px auto 0;}
.reference-preview-ad iframe,.reference-preview-ad img{max-width:100%;}
@media(max-width:420px){.reference-dialog{padding:17px}.reference-preview-image{max-height:52vh}}
