/* Spooktacular Votes Frontend Styles - Clean Purple Theme */

/* Hide WordPress default header on Spooktacular Votes pages */
.spooktacular-votes-page header.site-header,
.spooktacular-votes-page header#masthead,
.spooktacular-votes-page header#header,
.spooktacular-votes-page .site-header,
.spooktacular-votes-page #masthead,
.spooktacular-votes-page #header,
.spooktacular-votes-page > header,
body.spooktacular-votes-page header,
body.spooktacular-votes-page .wp-block-template-part[data-area="header"],
.spooktacular-votes-page nav.main-navigation,
.spooktacular-votes-page nav#site-navigation,
.spooktacular-votes-page .main-navigation,
.spooktacular-votes-page #site-navigation,
.spooktacular-votes-page .site-branding,
.spooktacular-votes-page .site-title,
.spooktacular-votes-page .site-description {
    display: none !important;
}

.spooktacular-home,
.spooktacular-vote,
.spooktacular-standings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.spooktacular-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: #333333;
    margin-bottom: 10px;
}

.spooktacular-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.spooktacular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.spooktacular-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.spooktacular-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.spooktacular-card h2 {
    color: #333333;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.spooktacular-card h3 {
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
}

.spooktacular-card p {
    color: #666666;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.spooktacular-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.spooktacular-button-primary {
    background: #6A1B9A;
    color: white !important;
    border: none;
}

.spooktacular-button-primary:hover {
    background: #7B2CB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(106,27,154,0.3);
}

.spooktacular-button-secondary {
    background: #ffffff;
    color: #6A1B9A !important;
    border: 2px solid #6A1B9A;
}

.spooktacular-button-secondary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(106,27,154,0.2);
}

.spooktacular-button-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-block;
}

.spooktacular-button:disabled {
    background: #e0e0e0;
    color: #999 !important;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Inline progress indicator on buttons */
.spooktacular-button.progress {
    position: relative;
    overflow: hidden;
}

.spooktacular-button.progress::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.08s linear;
    pointer-events: none;
}

.spooktacular-button.spooktacular-loading {
    position: relative;
    color: transparent !important;
}

.spooktacular-button.spooktacular-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spooktacular-spin 0.8s linear infinite;
}

@keyframes spooktacular-spin {
    to { transform: rotate(360deg); }
}

.spooktacular-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.spooktacular-entry-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.spooktacular-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #6A1B9A;
}

.spooktacular-entry-card.selected {
    border-color: #6A1B9A;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(106,27,154,0.2);
}

.spooktacular-entry-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.spooktacular-entry-card h3 {
    padding: 16px;
    margin: 0;
    color: #333333;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.spooktacular-rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6A1B9A;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.spooktacular-vote-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-top: 40px;
}

.spooktacular-selection-count {
    color: #666666;
    margin-top: 16px;
    font-weight: 500;
}

.spooktacular-message {
    position: sticky;
    bottom: 0;
    z-index: 100;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}

.spooktacular-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.spooktacular-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.spooktacular-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #42a5f5;
}

.spooktacular-standing-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.spooktacular-standing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.spooktacular-standing-card.first {
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBE8 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

.spooktacular-standing-card.second {
    border: 3px solid #C0C0C0;
    background: linear-gradient(135deg, #F5F5F5 0%, #FAFAFA 100%);
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4);
    transform: scale(1.01);
}

.spooktacular-standing-card.third {
    border: 3px solid #CD7F32;
    background: linear-gradient(135deg, #FFF4E6 0%, #FFF8F0 100%);
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4);
    transform: scale(1.005);
}

.spooktacular-standing-card.first .spooktacular-rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFED4E 100%);
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    font-weight: 700;
}

.spooktacular-standing-card.second .spooktacular-rank {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #555555;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.5);
    font-weight: 700;
}

.spooktacular-standing-card.third .spooktacular-rank {
    background: linear-gradient(135deg, #CD7F32 0%, #E6A366 100%);
    color: #5C3A1F;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.5);
    font-weight: 700;
}

.spooktacular-rank {
    font-size: 2rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    color: #333333;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spooktacular-standing-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.spooktacular-standing-card.first img {
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.spooktacular-standing-card.second img {
    border: 2px solid #C0C0C0;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.spooktacular-standing-card.third img {
    border: 2px solid #CD7F32;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.spooktacular-standing-info {
    flex-grow: 1;
}

.spooktacular-standing-card.first .spooktacular-standing-info h3 {
    color: #856404;
    font-weight: 700;
}

.spooktacular-standing-card.second .spooktacular-standing-info h3 {
    color: #555555;
    font-weight: 700;
}

.spooktacular-standing-card.third .spooktacular-standing-info h3 {
    color: #5C3A1F;
    font-weight: 700;
}

.spooktacular-standing-info h3 {
    color: #333333;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.spooktacular-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.spooktacular-stat {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.spooktacular-stat.points {
    background: #e8eaf6;
    color: #3f51b5;
}

.spooktacular-stat.votes {
    background: #f3e5f5;
    color: #6A1B9A;
}

.spooktacular-stats-card {
    margin-top: 40px;
    text-align: left;
}

.spooktacular-stats-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.spooktacular-stats-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.spooktacular-stats-text {
    flex: 1;
    min-width: 0;
}

.spooktacular-stats-text h3 {
    margin: 0 0 8px 0;
    color: #333333;
    font-size: 1.1rem;
    font-weight: 600;
}

.spooktacular-stats-numbers {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.spooktacular-stats-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.spooktacular-stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #6A1B9A;
    margin: 0;
    line-height: 1;
}

.spooktacular-stat-label {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Entry Form Styles */
.spooktacular-entry-form {
    margin-top: 0;
    text-align: left;
}

.spooktacular-entry-form input[type="text"],
.spooktacular-entry-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.spooktacular-entry-form input[type="text"]:focus,
.spooktacular-entry-form input[type="file"]:focus {
    outline: none;
    border-color: #6A1B9A;
    box-shadow: 0 0 0 3px rgba(106,27,154,0.1);
}

.spooktacular-entry-form input[type="file"] {
    padding: 8px;
    cursor: pointer;
    background: #f8f8f8;
}

.spooktacular-entry-form button {
    width: 100%;
    margin-top: 4px;
}

#photo-preview {
    margin: 12px 0;
    text-align: center;
}

#photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.spooktacular-form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.spooktacular-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.spooktacular-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.spooktacular-status {
    margin-top: 16px;
}

.status-open {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    background: #e8f5e9;
    border-radius: 6px;
    display: inline-block;
}

.status-closed {
    color: #c62828;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    background: #ffebee;
    border-radius: 6px;
    display: inline-block;
}

.spooktacular-instructions {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 16px;
    padding: 12px;
    background: #f8f8f8;
    border-left: 3px solid #6A1B9A;
    border-radius: 4px;
}

.spooktacular-actions {
    text-align: center;
    margin-top: 40px;
}

.spooktacular-actions .spooktacular-button {
    margin: 0;
}

#results-action {
    margin-top: 16px;
}

#results-action .spooktacular-button {
    width: auto;
    display: inline-block;
    margin: 0;
}

.spooktacular-help-text {
    color: #999999;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-style: italic;
}

.spooktacular-help-text code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #6A1B9A;
}

/* Ranked Voting Table Styles */
.spooktacular-vote-table {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

.spooktacular-vote-header {
    display: grid;
    grid-template-columns: 1fr auto;
    background: #f8f8f8;
    border-bottom: 2px solid #e0e0e0;
    padding: 16px 20px;
    font-weight: 600;
    color: #333333;
}

.spooktacular-vote-header .spooktacular-vote-ranks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 60px));
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 600px;
}

.spooktacular-vote-entry-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spooktacular-vote-ranks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 60px));
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 600px;
}

.spooktacular-rank-option {
    width: 60px;
    text-align: center;
    font-size: 0.9rem;
    color: #666666;
}

.spooktacular-vote-row {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
    align-items: center;
    transition: background-color 0.2s ease;
}

.spooktacular-vote-row .spooktacular-vote-ranks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 60px));
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 600px;
}

.spooktacular-vote-row:last-child {
    border-bottom: none;
}

.spooktacular-vote-row:hover {
    background-color: #fafafa;
}

.spooktacular-vote-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spooktacular-vote-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
}

.spooktacular-vote-entry-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spooktacular-vote-name {
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
}

.spooktacular-vote-costume {
    color: #666666;
    font-size: 0.9rem;
}

.spooktacular-rank-button {
    width: 50px;
    height: 50px;
    border: 2px solid #6A1B9A;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 18px;
    color: transparent;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty buttons should have no visible text */
.spooktacular-rank-button:empty,
.spooktacular-rank-button:not(.selected):not(.taken) {
    color: transparent !important;
}

.spooktacular-rank-button:hover {
    background: rgba(106, 27, 154, 0.1);
    transform: scale(1.1);
}

.spooktacular-rank-button.selected {
    background: #6A1B9A;
    border-color: #6A1B9A;
    color: white !important;
    font-size: 20px;
}

.spooktacular-rank-button.taken {
    background: rgba(150, 150, 150, 0.2);
    border-color: #999;
    color: #999 !important;
    font-size: 20px;
    opacity: 0.7;
}

.spooktacular-rank-button.taken:hover {
    background: rgba(150, 150, 150, 0.3);
    cursor: help;
}

.spooktacular-ballot-summary {
    margin: 30px 0;
}

.spooktacular-ballot-bar {
    background: #6A1B9A;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.spooktacular-ballot-bar strong {
    margin-right: 12px;
}

#ballot-summary-text {
    font-weight: 400;
}

/* Lightbox Styles */
.spooktacular-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    touch-action: pan-y;
}

.spooktacular-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.spooktacular-lightbox-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.spooktacular-lightbox-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.spooktacular-lightbox-content img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.spooktacular-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
}

.spooktacular-lightbox-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.spooktacular-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
    padding: 0;
    user-select: none;
}

.spooktacular-lightbox-nav:hover:not(.disabled) {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.spooktacular-lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.spooktacular-lightbox-prev {
    left: 20px;
}

.spooktacular-lightbox-next {
    right: 20px;
}

.spooktacular-lightbox-info {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.spooktacular-lightbox-caption {
    color: white;
    margin-bottom: 24px;
}

.spooktacular-lightbox-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.spooktacular-lightbox-costume {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.spooktacular-lightbox-voting {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.spooktacular-lightbox-vote-label {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.spooktacular-lightbox-rank-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.spooktacular-lightbox-rank-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.spooktacular-lightbox-rank-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.spooktacular-lightbox-rank-btn.selected {
    background: #6A1B9A;
    border-color: #6A1B9A;
    color: white;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.4);
}

.spooktacular-lightbox-rank-btn.taken {
    background: rgba(150, 150, 150, 0.3);
    border-color: #999;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.spooktacular-lightbox-rank-btn.taken:hover {
    background: rgba(150, 150, 150, 0.4);
    cursor: help;
}

@media (max-width: 768px) {
    .spooktacular-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .spooktacular-lightbox-prev {
        left: 10px;
    }
    
    .spooktacular-lightbox-next {
        right: 10px;
    }
    
    .spooktacular-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .spooktacular-lightbox-content img {
        max-height: 50vh;
    }
    
    .spooktacular-lightbox-name {
        font-size: 1.2rem;
    }
    
    .spooktacular-lightbox-rank-buttons {
        gap: 12px;
    }
    
    .spooktacular-lightbox-rank-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 70px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Ensure minimum font size of 14px on mobile */
    .spooktacular-home,
    .spooktacular-vote,
    .spooktacular-standings {
        font-size: 14px;
    }
    
    .spooktacular-home *,
    .spooktacular-vote *,
    .spooktacular-standings * {
        font-size: inherit;
    }
    
    /* Override any font sizes smaller than 14px */
    .spooktacular-stat-label,
    .spooktacular-vote-costume,
    .spooktacular-help-text,
    .spooktacular-description,
    .description,
    .spooktacular-form-message,
    .status-open,
    .status-closed,
    .spooktacular-subtitle,
    .spooktacular-rank-option,
    .spooktacular-ballot-bar,
    .spooktacular-button-small,
    .spooktacular-lightbox-rank-btn,
    button,
    input,
    select,
    textarea,
    a {
        font-size: 14px !important;
    }
    .spooktacular-title {
        font-size: 2rem;
    }
    
    .spooktacular-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .spooktacular-card {
        padding: 24px;
    }
    
    .spooktacular-stats-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .spooktacular-stats-icon {
        font-size: 2rem;
    }
    
    .spooktacular-stat-number {
        font-size: 2rem;
    }
    
    .spooktacular-entries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .spooktacular-standing-card {
        flex-direction: column;
        text-align: center;
    }
    
    .spooktacular-standing-card img {
        width: 120px;
        height: 120px;
    }
    
    .spooktacular-actions .spooktacular-button {
        display: block;
        margin: 8px 0;
        width: 100%;
    }
    
    .spooktacular-vote-header,
    .spooktacular-vote-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .spooktacular-vote-ranks {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .spooktacular-rank-option {
        font-size: 14px;
        min-width: 50px;
    }
    
    .spooktacular-ballot-bar {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .spooktacular-vote-header,
    .spooktacular-vote-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .spooktacular-vote-header .spooktacular-vote-ranks,
    .spooktacular-vote-row .spooktacular-vote-ranks {
        width: 100%;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        justify-content: stretch;
    }
    
    .spooktacular-rank-option {
        width: auto;
    }
    
    .spooktacular-vote-photo {
        width: 150px;
        height: 150px;
    }
    
    .spooktacular-rank-button {
        width: 45px;
        height: 45px;
    }
    
    .spooktacular-lightbox-content {
        max-width: 95%;
    }
    
    .spooktacular-lightbox-content img {
        max-height: 55vh;
    }
    
    .spooktacular-lightbox-close {
        top: 10px;
        right: 10px;
    }
}
