/* Public competitions and compact, shareable score cards. */
body:has(#weeklyPane:not([hidden])) #title{display:none}
.contest-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:32px 35px;background:linear-gradient(120deg,#183f39,#326654);border:1px solid #427965;border-radius:17px;color:#f7f1e1;margin-bottom:30px;overflow:hidden}
.contest-hero .eyebrow{color:#e5c48b;font-size:9px}
.contest-hero h2{font-size:clamp(33px,4vw,49px);letter-spacing:-.05em;margin:13px 0 12px;line-height:1.2}
.contest-hero p{font-size:12px;line-height:1.9;color:#ceded1;margin:0 0 20px}
.contest-hero .solid-button{background:#e6c78d;color:#244438;font-size:12px}
.contest-hero .soft-button{background:#ffffff08;border-color:#9bbda077;color:#f3ebd7;font-size:12px}
.contest-hero-number{flex-shrink:0;display:grid;place-items:center;width:210px;height:210px;border:1px solid #e4c98755;border-radius:50%;box-shadow:0 0 0 14px #ffffff04;color:#ead29d}
.contest-hero-number strong{font:500 112px/1 var(--mono);letter-spacing:-.09em;padding-right:12px}
.contest-hero-number span{font-size:8px;letter-spacing:.13em;align-self:start;margin-top:-12px}
#weeklyPane>.section-heading{margin-bottom:10px}#weeklyPane>.section-heading .muted{font-size:10px}
.contest-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 24px}
.contest-card{display:flex;flex-direction:column;text-align:left;min-width:0;padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:13px;gap:12px;color:var(--text)}
.contest-card:hover,.contest-card[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 4%,var(--panel))}
.contest-card[aria-pressed=true]{box-shadow:0 0 0 1px var(--accent)}
.contest-card-top{display:flex;justify-content:space-between;gap:8px;color:var(--accent);font-size:8px;font-weight:650;letter-spacing:.045em}
.contest-card-top>span:last-child{padding:3px 6px;background:var(--accent-soft);border-radius:4px}
.contest-card>strong{font-size:18px;line-height:1.45;letter-spacing:-.025em}
.contest-card-description{font-size:11px;line-height:1.8;color:var(--muted)}
.contest-card-meta{font-size:10px;color:var(--muted);margin-top:auto}
.contest-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;border-top:1px solid var(--line);padding-top:12px;font-size:9px}
.contest-card-bottom>b{color:var(--accent);font-weight:600;white-space:nowrap}
.contest-detail{scroll-margin-top:20px;padding:28px}
.contest-detail .section-heading{align-items:start;gap:12px;flex-wrap:wrap}
.contest-detail .eyebrow{font-size:9px}
.contest-detail h2{margin:8px 0 0;font-size:25px;letter-spacing:-.035em;line-height:1.4}
.contest-detail h3{font-size:16px;margin:24px 0 12px}
.contest-detail>.muted{font-size:12px;line-height:1.8}
.contest-detail .feature-actions{flex-wrap:wrap}
.contest-detail .feature-actions>*{font-size:11px;text-decoration:none}
.contest-detail [role=status]{font-size:12px;line-height:1.8}
.contest-detail .local-data-note{line-height:1.9;max-width:850px}
.contest-detail table{font-size:12px;white-space:nowrap}
.contest-detail .is-me{background:var(--accent-soft)}
.my-contest-rank{font-size:12px;background:var(--accent-soft);color:var(--accent);padding:12px 15px;border-radius:8px}
.contest-creator{margin-top:24px}
.contest-creator>summary{cursor:pointer;font-size:15px;font-weight:650;line-height:1.7}
.contest-creator>.muted{font-size:12px;line-height:1.8}
#createContest{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}
#createContest>label:first-child,.contest-description-field{grid-column:1/-1}
#createContest input,#createContest textarea,#createContest select{min-width:0;width:100%}
#createContest>button{font-size:12px;justify-self:start}
.contest-outreach{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.contest-outreach>div{flex:1;min-width:180px}
.contest-outreach h3{font-size:18px;letter-spacing:-.025em;margin:7px 0}
.contest-outreach .eyebrow{font-size:9px}
.contest-outreach p{font-size:12px;line-height:1.8;margin:0}
.contest-outreach>button{font-size:11px}
.invite-text{flex-basis:100%;min-height:190px;font-size:12px;line-height:1.8;background:var(--surface);resize:vertical}
.contest-outreach>[role=status]{flex-basis:100%;font-size:11px}
.share-fallback{margin-top:12px}.share-fallback input,.result-share-url{width:100%;font-size:12px;background:var(--surface);min-width:0}
.contest-run-info{border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:15px 18px;margin-bottom:23px;text-align:center}
.contest-run-info .eyebrow{font-size:9px}.contest-run-info strong{display:block;font-size:18px;margin:6px 0;letter-spacing:-.025em}.contest-run-info p{font-size:11px;color:var(--muted);margin:0}
#contestResult{margin:22px 0;text-align:center;background:color-mix(in srgb,var(--accent) 5%,var(--panel));padding:25px}
#contestResult h2{font-size:29px;letter-spacing:-.04em;margin:10px 0}#contestResult>p{font-size:13px;line-height:1.8}
.contest-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:19px 0}
.contest-result-actions>*{font-size:11px;text-decoration:none}.result-share-url{max-width:620px;text-align:center}
.teacher-contest-note{padding:0 0 23px;margin:0 0 25px;border-bottom:1px solid var(--line)}.teacher-contest-note h2{font-size:20px}.teacher-contest-note p{font-size:12px;line-height:1.8;color:var(--muted)}.teacher-contest-note button{font-size:12px}
@media(max-width:800px){.contest-hero{padding:27px}.contest-hero-number{width:155px;height:155px}.contest-hero-number strong{font-size:80px}.contest-hero-number span{font-size:6px}.contest-hero .feature-actions{flex-direction:column;align-items:start;gap:8px}.contest-card{padding:18px}.contest-card>strong{font-size:16px}.contest-card-bottom{flex-wrap:wrap}}
@media(max-width:640px){.contest-hero{padding:25px 22px;display:block}.contest-hero h2{font-size:36px}.contest-hero p{font-size:11px}.contest-hero .eyebrow{font-size:8px}.contest-hero-number{display:none}.contest-hero .feature-actions{align-items:stretch}.contest-hero .feature-actions>*{font-size:11px}.contest-list{grid-template-columns:1fr}.contest-card{padding:19px}.contest-card>strong{font-size:17px}.contest-card-description{font-size:11px}.contest-card-bottom{font-size:10px}.contest-detail{padding:19px}.contest-detail h2{font-size:22px}.contest-detail .feature-actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}.contest-detail .feature-actions>*{white-space:normal}.contest-detail .date-chip{font-size:10px}.contest-detail .local-data-note{font-size:10px}.contest-creator>summary{font-size:13px}#createContest{grid-template-columns:1fr 1fr}#createContest>label:nth-last-of-type(1){grid-column:1/-1}.contest-outreach{padding:19px}.contest-outreach>button{width:100%}.invite-text{font-size:11px}.contest-outreach h3{font-size:17px}#contestResult{padding:19px}.contest-result-actions>*{flex-basis:100%;white-space:normal}.contest-run-info strong{font-size:15px}.contest-run-info p{font-size:10px}}
