/* =================================================================
   ST. PATRICK'S DAY CONTEST PAGE TEMPLATE
   Matches Garuda theme conventions with Irish holiday styling
   ================================================================= */

/* Note: WooCommerce store notice bar styles live in WordPress
   Customizer > Additional CSS so they load site-wide and can be
   edited without touching theme files. */

/* St. Patrick's Day accent variables (theme base vars inherited from style.css) */
:root {
    --irish-green: #228B22;
    --irish-dark: #006400;
    --irish-light: #90EE90;
    --shamrock: #2E8B57;
    --lime: #32CD32;
    --gold-accent: #DAA520;
    --irish-orange: #FF8C00;
    --irish-orange-dark: #E07000;
    --irish-orange-light: #FFB347;
    --irish-cream: #FFF8EE;
    --irish-cream-dark: #F5E6D0;
    --warm-cream: #FFFDF5;
}

/* Focus States */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Base */
html { scroll-behavior: smooth; }

/* =================================================================
   PAGE BACKGROUND
   ================================================================= */
html {
    background: var(--forest-mid) !important;
}

body {
    background: transparent !important;
    min-height: 100vh !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 90% 60% at 5% 15%, rgba(34,139,34,0.20) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 95% 35%, rgba(212,175,55,0.15) 0%, transparent 45%),
        radial-gradient(ellipse 80% 55% at 15% 65%, rgba(34,139,34,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 65% 45% at 90% 80%, rgba(212,175,55,0.18) 0%, transparent 45%),
        linear-gradient(180deg, var(--forest-mid) 0%, var(--forest) 100%) !important;
    pointer-events: none;
}

#main, #primary, .site-content, #main-content {
    background: transparent !important;
}

/* Typography */
.hp-title {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
}
.hp-body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* =================================================================
   HERO SECTION - Compact height, reduced empty space
   ================================================================= */
.stp-hero {
    background:
        radial-gradient(ellipse 60% 70% at 70% 50%, rgba(34,139,34,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 30% 60%, rgba(212,175,55,0.1) 0%, transparent 45%),
        radial-gradient(ellipse 40% 50% at 80% 80%, rgba(46,139,87,0.08) 0%, transparent 45%),
        linear-gradient(160deg, var(--forest) 0%, var(--forest-mid) 50%, var(--forest) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 24px 64px;
    padding-top: 40px;
}

.stp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(34,139,34,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(212,175,55,0.04) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

/* Floating shamrock particles */
.stp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(144,238,144,0.3), transparent),
        radial-gradient(2px 2px at 30% 70%, rgba(212,175,55,0.25), transparent),
        radial-gradient(3px 3px at 60% 15%, rgba(144,238,144,0.2), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(212,175,55,0.2), transparent),
        radial-gradient(2px 2px at 50% 85%, rgba(144,238,144,0.25), transparent),
        radial-gradient(3px 3px at 90% 30%, rgba(34,139,34,0.15), transparent);
    pointer-events: none;
    z-index: 0;
    animation: sparkle 8s ease-in-out infinite alternate;
}

@keyframes sparkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.stp-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeSlideUp 0.8s ease-out;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Badge - limit shimmer to 5 cycles to save battery */
.stp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(34,139,34,0.2);
    border: 1px solid rgba(34,139,34,0.5);
    color: var(--irish-light);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: badgeShimmer 3s ease-in-out 5;
}

@keyframes badgeShimmer {
    0%, 100% { border-color: rgba(34,139,34,0.5); box-shadow: 0 0 20px rgba(34,139,34,0.1); }
    50% { border-color: rgba(212,175,55,0.5); box-shadow: 0 0 30px rgba(212,175,55,0.15); }
}

/* Hero Title */
.stp-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.stp-hero h1 .highlight {
    color: var(--irish-light);
    text-shadow: 0 0 40px rgba(34,139,34,0.5);
}

.stp-hero h1 .gold {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212,175,55,0.4);
}

.stp-hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.stp-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Hero CTA */
.stp-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

.stp-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: none;
}

.stp-btn-primary {
    background: linear-gradient(135deg, var(--irish-green) 0%, var(--shamrock) 100%);
    color: var(--white);
    box-shadow: 0 6px 24px rgba(34,139,34,0.35);
}

.stp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(34,139,34,0.5);
    color: var(--white);
    text-decoration: none;
}

.stp-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 2px solid rgba(212,175,55,0.4);
}

.stp-btn-secondary:hover {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-3px);
    color: var(--white);
    text-decoration: none;
}

/* Hero Trust Grid */
.stp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.stp-trust-item {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.stp-trust-item:hover {
    background: rgba(34,139,34,0.15);
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

.stp-trust-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--irish-green), var(--shamrock));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 0 auto 6px;
    color: var(--white);
}

.stp-trust-label { color: var(--irish-light); font-size: 13px; font-weight: 600; }
.stp-trust-value { color: rgba(255,255,255,0.7); font-size: 12px; }

/* Marquee Bar
   Uses 3 identical sets of items. Animation shifts exactly -33.333% (one set)
   so the seam is never visible. The track must be wider than the viewport. */
.stp-marquee-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255,140,0,0.15) 0%, rgba(212,175,55,0.12) 50%, rgba(255,140,0,0.15) 100%);
    border-top: 1px solid rgba(255,140,0,0.3);
    border-bottom: 1px solid rgba(255,140,0,0.3);
    padding: 10px 0;
    z-index: 5;
}

.stp-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-33.333%); }
}

.stp-marquee-item {
    color: var(--irish-cream);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    padding: 0 20px;
    flex-shrink: 0;
}

.stp-marquee-sep {
    color: var(--gold);
    font-size: 15px;
    padding: 0 16px;
    flex-shrink: 0;
}

/* =================================================================
   PAGE CONTENT WRAPPER
   ================================================================= */
.stp-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

/* =================================================================
   CONTEST SECTION
   ================================================================= */
.stp-contest-section {
    margin-bottom: 60px;
}

.stp-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.stp-section-title {
    color: var(--gold);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}

.stp-section-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark-on-light variants for cream sections */
.stp-section-light .stp-section-title {
    color: var(--irish-dark);
}

.stp-section-light .stp-section-subtitle {
    color: var(--text-muted);
}

/* Contest form card wrapper */
.stp-contest-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(26,58,46,0.95) 0%, rgba(42,93,58,0.95) 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25), 0 8px 32px rgba(0,0,0,0.2);
}

/* =================================================================
   HOW IT WORKS SECTION
   ================================================================= */
/* Note: .stp-how-section outer styling removed — now inside accordion wrapper */

.stp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stp-step-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stp-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(255,140,0,0.15);
}

.stp-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--irish-orange), var(--irish-orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(255,140,0,0.3);
}

.stp-step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.stp-step-title {
    color: var(--irish-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stp-step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Step connector arrows */
.stp-step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 44px;
    right: -16px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255,140,0,0.4);
    border-right: 2px solid rgba(255,140,0,0.4);
    transform: rotate(45deg);
}

/* =================================================================
   REQUIREMENTS SECTION
   ================================================================= */
/* Note: .stp-requirements-section outer styling removed — now inside accordion wrapper */

.stp-requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stp-requirement-card {
    text-align: center;
    padding: 28px 18px;
    background: var(--white);
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stp-requirement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(255,140,0,0.15);
}

.stp-requirement-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.stp-requirement-title {
    color: var(--irish-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stp-requirement-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.stp-requirement-desc a {
    color: var(--irish-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.stp-requirement-desc a:hover {
    color: var(--irish-dark);
}

/* =================================================================
   PRIZES SECTION
   ================================================================= */
/* Note: .stp-prizes-section outer styling removed — now inside accordion wrapper */

.stp-prizes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.stp-prize-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--white);
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stp-prize-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(255,140,0,0.15);
}

.stp-prize-card.stp-prize-first {
    border-color: var(--irish-orange);
    background: linear-gradient(160deg, #fff 0%, #FFF3E0 100%);
    box-shadow: 0 0 30px rgba(255,140,0,0.12);
}

.stp-prize-card.stp-prize-first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--irish-orange), var(--gold-light), var(--irish-orange));
}

.stp-prize-medal {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.stp-prize-place {
    color: var(--irish-orange-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stp-prize-name {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* =================================================================
   CTA SECTION
   ================================================================= */
.stp-cta-section {
    text-align: center;
    padding: 64px 32px;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, var(--forest-light) 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.stp-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212,175,55,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(212,175,55,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.stp-cta-section h2 {
    color: var(--gold);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.stp-cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.stp-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stp-cta-btn {
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stp-cta-btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-accent));
    color: var(--forest);
    font-weight: 800;
    box-shadow: 0 6px 24px rgba(212,175,55,0.35);
}

.stp-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(212,175,55,0.5);
    color: var(--forest);
    text-decoration: none;
}

.stp-cta-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.stp-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    color: var(--white);
    text-decoration: none;
}

/* =================================================================
   COUNTDOWN BANNER
   ================================================================= */
.stp-countdown-banner {
    background: linear-gradient(135deg, rgba(255,140,0,0.08) 0%, rgba(255,248,238,0.95) 50%, rgba(255,140,0,0.08) 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    text-align: center;
    flex-wrap: wrap;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.stp-countdown-label {
    color: var(--irish-orange-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.stp-countdown-timer {
    display: flex;
    gap: 12px;
}

.stp-countdown-unit {
    text-align: center;
}

.stp-countdown-number {
    display: block;
    background: linear-gradient(135deg, var(--irish-green), var(--shamrock));
    border: 1px solid rgba(34,139,34,0.5);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 48px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.stp-countdown-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* =================================================================
   SCROLL REVEAL ANIMATION
   ================================================================= */
.stp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   RESPONSIVE - TABLET
   ================================================================= */
@media (max-width: 968px) {
    .stp-hero { padding: 32px 20px 56px; }
    .stp-trust-grid { grid-template-columns: repeat(2, 1fr); max-width: 400px; }
    .stp-step-card:not(:last-child)::after { display: none; }
    .stp-page-wrap { padding: 40px 20px 0; }
    .stp-contest-wrap { padding: 32px 24px; }
}

/* =================================================================
   RESPONSIVE - MOBILE: Keep all cards in a single row, compact
   ================================================================= */
@media (max-width: 640px) {
    .stp-hero { padding: 28px 16px 48px; }
    .stp-hero h1 { font-size: 1.8rem; }
    .stp-hero-tagline { font-size: 0.95rem; }
    .stp-trust-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 100%; }
    .stp-trust-item { padding: 8px 4px; }
    .stp-trust-icon { width: 26px; height: 26px; font-size: 12px; margin-bottom: 4px; }
    .stp-trust-label { font-size: 9px; }
    .stp-trust-value { font-size: 8px; }

    /* How It Works — horizontal scroll */
    .stp-steps-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        margin-top: 20px;
        padding-bottom: 8px;
    }
    .stp-step-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
        padding: 16px 12px;
    }
    .stp-step-number { width: 32px; height: 32px; font-size: 0.85rem; margin-bottom: 10px; }
    .stp-step-icon { font-size: 1.4rem; margin-bottom: 8px; }
    .stp-step-title { font-size: 0.8rem; margin-bottom: 4px; }
    .stp-step-desc { font-size: 0.75rem; line-height: 1.4; }

    /* Requirements — horizontal scroll */
    .stp-requirements-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        margin-top: 20px;
        padding-bottom: 8px;
    }
    .stp-requirement-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
        padding: 16px 12px;
    }
    .stp-requirement-icon { font-size: 1.4rem; margin-bottom: 8px; }
    .stp-requirement-title { font-size: 0.8rem; margin-bottom: 4px; }
    .stp-requirement-desc { font-size: 0.75rem; line-height: 1.4; }

    /* Prizes — 5 cards in one row */
    .stp-prizes-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 20px; max-width: 100%; }
    .stp-prize-card { padding: 12px 6px; }
    .stp-prize-medal { font-size: 1.2rem; margin-bottom: 6px; }
    .stp-prize-place { font-size: 0.6rem; letter-spacing: 0.5px; margin-bottom: 4px; }
    .stp-prize-name { font-size: 0.6rem; line-height: 1.3; }

    .stp-section-title { font-size: 1.5rem; }
    .stp-cta-section { padding: 40px 20px; border-radius: var(--radius-lg); }
    .stp-countdown-banner { flex-direction: column; gap: 12px; padding: 16px; }
    .stp-marquee-item { font-size: 12px; }
    .stp-page-wrap { padding: 24px 16px 0; }
    .stp-contest-wrap { padding: 24px 16px; border-radius: var(--radius-md); }
}

/* =================================================================
   RESPONSIVE - SMALL MOBILE
   ================================================================= */
@media (max-width: 400px) {
    .stp-hero h1 { font-size: 1.5rem; }
    .stp-hero-badge { font-size: 11px; padding: 8px 16px; }
    .stp-step-card { flex: 0 0 140px; }
    .stp-requirement-card { flex: 0 0 140px; }
    .stp-prize-name { font-size: 0.55rem; }
    .stp-prize-place { font-size: 0.55rem; }
}

/* =================================================================
   SHAMROCK PARTICLE CANVAS
   ================================================================= */
.stp-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =================================================================
   CONFETTI CELEBRATION
   ================================================================= */
.stp-confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.stp-confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: stp-confetti-fall 3s ease-in forwards;
}

.stp-confetti-piece.stp-shamrock {
    width: auto;
    height: auto;
    font-size: 20px;
    background: none;
    border-radius: 0;
}

@keyframes stp-confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.5); }
}

/* =================================================================
   CONFIRMATION CARD
   ================================================================= */
.stp-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.stp-confirm-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.stp-confirm-card {
    background: linear-gradient(160deg, #1a3a2e 0%, #2a5d3a 50%, #1a3a2e 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: stp-card-appear 0.5s ease-out;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 40px rgba(212,175,55,0.15);
}

@keyframes stp-card-appear {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.stp-confirm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--irish-green), var(--gold), var(--irish-orange));
}

.stp-confirm-shamrock {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    animation: stp-shamrock-bounce 0.6s ease-out 0.3s both;
}

@keyframes stp-shamrock-bounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.stp-confirm-title {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.stp-confirm-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.stp-confirm-number-display {
    background: rgba(34,139,34,0.2);
    border: 2px solid rgba(34,139,34,0.4);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.stp-confirm-number-label {
    color: var(--irish-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.stp-confirm-number-value {
    color: var(--gold);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.stp-confirm-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 0.8rem;
}

.stp-confirm-detail-label {
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 2px;
}

.stp-confirm-detail-value {
    color: var(--white);
    font-weight: 600;
}

.stp-confirm-close {
    background: linear-gradient(135deg, var(--irish-green), var(--shamrock));
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stp-confirm-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,139,34,0.4);
}

.stp-confirm-screenshot-hint {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin-top: 16px;
}

/* =================================================================
   CONTEST RULES MODAL
   ================================================================= */
.stp-rules-trigger {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    transition: color var(--transition);
    font-family: inherit;
}

.stp-rules-trigger:hover {
    color: var(--gold-light);
}

.stp-rules-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.stp-rules-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.stp-rules-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: stp-card-appear 0.4s ease-out;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.stp-rules-header {
    background: linear-gradient(135deg, var(--irish-dark), var(--irish-green));
    padding: 24px 32px;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stp-rules-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
}

.stp-rules-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}

.stp-rules-close:hover {
    background: rgba(255,255,255,0.3);
}

.stp-rules-body {
    padding: 32px;
}

.stp-rules-body h4 {
    color: var(--irish-dark);
    font-size: 1rem;
    margin: 24px 0 8px;
    font-weight: 700;
}

.stp-rules-body h4:first-child {
    margin-top: 0;
}

.stp-rules-body p,
.stp-rules-body li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.stp-rules-body ul,
.stp-rules-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.stp-rules-body .stp-rules-highlight {
    background: var(--irish-cream);
    border-left: 3px solid var(--irish-orange);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.stp-rules-body .stp-rules-highlight p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-dark);
}

/* =================================================================
   RESPONSIVE ADDITIONS
   ================================================================= */
@media (max-width: 640px) {
    .stp-confirm-card { padding: 28px 20px; }
    .stp-confirm-number-value { font-size: 2.4rem; }
    .stp-confirm-details { flex-direction: column; gap: 8px; }
    .stp-rules-modal { max-height: 90vh; }
    .stp-rules-header { padding: 16px 20px; }
    .stp-rules-body { padding: 20px; }
}

/* =================================================================
   COLLAPSIBLE ACCORDION SECTIONS
   ================================================================= */
.stp-accordion-section {
    max-width: 1100px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.stp-accordion-section:hover {
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35), 0 8px 32px rgba(26, 58, 46, 0.15);
}

.stp-accordion-section.is-open {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3), 0 12px 40px rgba(26, 58, 46, 0.2);
}

/* Accordion Trigger */
.stp-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest) 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stp-accordion-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
    transition: left 0.5s ease;
}

.stp-accordion-trigger:hover::before {
    left: 100%;
}

.stp-accordion-trigger:hover {
    background: linear-gradient(135deg, var(--forest) 0%, #0f2a1f 100%);
}

.stp-accordion-trigger:focus {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.stp-accordion-trigger-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* Accordion Icon */
.stp-accordion-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--forest) 0%, #0f2a1f 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

.stp-accordion-section:hover .stp-accordion-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 20px rgba(212,175,55,0.3);
}

/* Title Group */
.stp-accordion-title-group {
    flex: 1;
    min-width: 0;
}

.stp-accordion-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stp-accordion-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
}

.stp-accordion-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    margin-bottom: 0;
}

.stp-accordion-section.is-open .stp-accordion-preview {
    display: none;
}

/* Status Badge */
.stp-accordion-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    margin-right: 12px;
    white-space: nowrap;
}

.stp-accordion-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: stpStatusPulse 2s ease-in-out infinite;
}

@keyframes stpStatusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Chevron */
.stp-accordion-chevron {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stp-accordion-chevron svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s ease;
}

.stp-accordion-section.is-open .stp-accordion-chevron {
    background: rgba(212,175,55,0.2);
    transform: rotate(180deg);
}

.stp-accordion-section:hover .stp-accordion-chevron {
    background: rgba(212,175,55,0.15);
}

/* Accordion Content */
.stp-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stp-accordion-section.is-open .stp-accordion-content {
    max-height: 3000px;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stp-accordion-inner {
    padding: 28px 24px 32px;
}

/* Accordion Responsive */
@media (max-width: 968px) {
    .stp-accordion-trigger {
        padding: 20px 22px;
    }

    .stp-accordion-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stp-accordion-status {
        display: none;
    }
}

@media (max-width: 640px) {
    .stp-accordion-trigger {
        padding: 16px 18px;
    }

    .stp-accordion-trigger-content {
        gap: 12px;
    }

    .stp-accordion-subtitle {
        font-size: 0.75rem;
    }

    .stp-accordion-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
    }

    .stp-accordion-chevron {
        width: 32px;
        height: 32px;
    }

    .stp-accordion-chevron svg {
        width: 16px;
        height: 16px;
    }

    .stp-accordion-inner {
        padding: 20px 16px 24px;
    }
}

/* =================================================================
   H3 RESET FOR STEP/REQUIREMENT TITLES (semantic headings)
   ================================================================= */
h3.stp-step-title,
h3.stp-requirement-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

/* =================================================================
   SCREEN READER TEXT (accessibility utility)
   ================================================================= */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .stp-particles-canvas { display: none; }
    .stp-marquee-track { animation: none; }
}