.spc-contest, .spc-entry { --spc-accent: #1d4ed8; --spc-radius: 10px; margin: 1.5em 0; }
.spc-btn { display: inline-block; cursor: pointer; background: var(--spc-accent); color: #fff; border: 0; border-radius: 999px; padding: .55em 1.3em; font: inherit; font-weight: 600; text-decoration: none; line-height: 1.3; }
.spc-btn:hover, .spc-btn:focus-visible { filter: brightness(1.1); color: #fff; }
.spc-btn:focus-visible, .spc-share-link:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.spc-btn[disabled] { opacity: .6; cursor: default; }
.spc-schedule { list-style: none; padding: 0; margin: 0 0 1em; }
.spc-phase { font-weight: 700; margin-top: .3em; }
.spc-submit-wrap { margin: 1em 0 2em; }
.spc-submit-wrap > summary { list-style: none; }
.spc-submit-wrap > summary::-webkit-details-marker { display: none; }
.spc-submit { margin-top: 1em; max-width: 560px; }
.spc-submit label { display: block; font-weight: 600; margin-bottom: .25em; }
.spc-submit input[type=text], .spc-submit input[type=email], .spc-submit textarea { width: 100%; box-sizing: border-box; }
.spc-submit small { display: block; opacity: .75; margin-top: .25em; }
.spc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.spc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25em; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.spc-card { border: 1px solid rgba(0,0,0,.1); border-radius: var(--spc-radius); overflow: hidden; display: flex; flex-direction: column; background: rgba(255,255,255,.6); }
.spc-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.spc-card-body { padding: .8em; display: flex; flex-direction: column; gap: .4em; align-items: flex-start; }
.spc-card-title { font-weight: 700; text-decoration: none; }
.spc-by, .spc-count { font-size: .9em; opacity: .8; }
.spc-msg { margin: 0; font-size: .9em; min-height: 1em; }
.spc-ok { color: #166534; }
.spc-err { color: #b91c1c; }
.spc-email-wrap input { width: 100%; box-sizing: border-box; }
.spc-entry-photo { margin: 0 0 1em; }
.spc-entry-photo img { width: 100%; height: auto; border-radius: var(--spc-radius); }
.spc-entry-actions { display: flex; flex-wrap: wrap; gap: .8em; align-items: center; margin: 1em 0; }
.spc-share { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin: 1.5em 0; }
.spc-share-title { width: 100%; margin: 0; font-weight: 600; }
.spc-share-link { border: 1px solid currentColor; border-radius: 999px; padding: .35em .9em; text-decoration: none; background: none; font: inherit; cursor: pointer; color: inherit; }
.spc-confirm { border: 2px solid var(--spc-accent); border-radius: var(--spc-radius); padding: 1em; margin-bottom: 1.5em; }
.spc-confirm.spc-confirmed .spc-msg { font-size: 1.1em; margin: 0; }
.spc-pages { margin-top: 1.5em; }
.spc-captcha-pop { position: fixed; z-index: 99999; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; padding: 1em; border-radius: var(--spc-radius); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
@media (prefers-reduced-motion: no-preference) { .spc-btn { transition: filter .15s; } }
/* Gallery spans the theme's wide width; text and the form stay at reading width. */
.spc-contest.alignwide > :not(.spc-grid):not(.spc-pages) { max-width: var(--wp--style--global--content-size, 100%); margin-left: auto; margin-right: auto; }
.spc-contest [hidden], .spc-entry [hidden] { display: none !important; }
