/* Landing Page Specific Enhancements - Extends style.css */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.95)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 2rem;
    margin-bottom: 0;
}

.hero-content {
    max-width: 1000px;
    z-index: 10;
    text-align: center;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.hero h1 .punct-fix {
    letter-spacing: -0.3em;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.timeline-summary {
    margin-top: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1rem;
    backdrop-filter: blur(8px);
}

.timeline-summary-divider {
    color: var(--text-muted);
    font-weight: 600;
}

.prize-progress-wrapper {
    margin: 1.5rem auto 1.5rem;
    max-width: 380px;
    font-family: 'Outfit', sans-serif;
}

.prize-progress-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.prize-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.prize-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f0a500, #fbbf24);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.prize-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
}

.prize-status-text {
    font-size: 0.82rem;
    color: var(--secondary);
    font-weight: 600;
    min-height: 1.1em;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.grid-2 {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    /* margin-bottom: 4rem;*/
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
    width: 100%;
}

.card-glass:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-glass h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card-glass p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.highlight-box {
    background: rgba(56, 189, 248, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.highlight-box p {
    color: var(--text-primary);
    font-weight: 600;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    margin: auto;
    position: relative;
    padding: 2.5rem;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Animation for Modal */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-card.active {
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar for modal content */
.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-card::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Utility to prevent scroll */
body.modal-open {
    overflow: hidden;
}

.section-img,
.video-container {
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-date {
    font-weight: 800;
    color: var(--secondary);
    text-align: right;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

/* Footer Extra */
footer {
    padding: 1.2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #010413;
}

footer p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Landing Specific Buttons (Mapping to Global specification) */
.btn-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    min-width: 220px;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    line-height: inherit;
}

.btn-landing.is-loading,
.btn-landing.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.btn-primary-landing {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.btn-primary-landing:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.5);
}

.btn-outline-landing {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-landing:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.05) translateY(-3px);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .hero {
        height: auto;
        padding: 8rem 1rem;
    }

    .timeline-summary {
        font-size: 0.95rem;
        padding: 0.55rem 1rem;
    }
}

/* Tag Styles */
.tag-group {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.tag:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.reveal {
    padding-top: 2rem;
    /* 區塊上方留白 */
    padding-bottom: 2rem;
    /* 區塊下方留白 */
}

.choice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.choice-item {
    position: relative;
    cursor: pointer;
}

.choice-item input {
    position: absolute;
    opacity: 0;
}

.choice-card {
    padding: 1.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.choice-item input:checked+.choice-card {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

.choice-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.choice-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Floating Visitor Count */
.floating-vcount {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-vcount:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

.vcount-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vcount-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.vcount-num {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.close-vcount-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-right: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-vcount-btn:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .floating-vcount {
        bottom: 15px;
        left: 15px;
        padding: 0.5rem 1rem;
    }
}

/* Show Visitor Count Button */
.show-vcount-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.show-vcount-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
    color: var(--primary);
}

@media (max-width: 768px) {
    .show-vcount-btn {
        bottom: 15px;
        left: 15px;
    }
}

/* ─── Announcements Section Cards (Task 4.1) ───────────────────────────────── */

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.announcement-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.announcement-card-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card-clickable:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.announcement-card-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: left;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    line-height: 1.4;
    transition: color 0.2s;
}

.announcement-card-clickable:hover .announcement-card-title {
    color: var(--primary);
}

.announcement-card-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.04em;
}

.announcement-card-preview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.announcement-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.announcement-view-more {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.announcement-card-clickable:hover .announcement-view-more {
    opacity: 1;
    color: var(--primary);
}

/* ─── Announcements Modal Sizing ───────────────────────────────────────────── */

.announcements-modal-card {
    max-width: 680px !important;
}

/* ─── Accordion Styles (Task 4.2) ──────────────────────────────────────────── */

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 1.1rem 0.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header>span:first-child {
    flex: 1;
}

.accordion-date {
    font-size: 0.8rem;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.accordion-arrow {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.open .accordion-body {
    grid-template-rows: 1fr;
}

.accordion-content {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-bottom: 1.25rem;
    padding-left: 0.25rem;
}

/* ─── Announcement List Item Styles ──────────────────────────────────────── */

.announcement-list-item {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.announcement-list-item:hover {
    background: rgba(56, 189, 248, 0.05);
    transform: translateX(4px);
}

.announcement-list-item .accordion-header {
    padding: 1.25rem 1rem;
}

.announcement-list-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.announcement-list-item:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── List Layout & Dots (New UI Request) ──────────────────────────────────── */

.announcements-list-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.announcements-list-layout .announcement-card {
    padding: 2rem 2rem;
    min-height: auto;
    cursor: default;
}

.announcements-list-layout .announcement-card:hover {
    transform: translateY(-4px);
    /* Smaller lift for list items */
}

.vertical-ellipsis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    opacity: 0.4;
}

.vertical-ellipsis span {
    display: block;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* ── 跑馬燈公告條 ─────────────────────────────────────────────── */
@keyframes tickerDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

#top-announcement-bar {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 1.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.875rem;
    overflow: hidden;
    cursor: pointer;
}

.ticker-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    min-width: 100px;
    padding-right: 1rem;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    animation: tickerDot 1.2s ease-in-out infinite;
}

.ticker-label {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.ticker-divider {
    width: 1px;
    height: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    margin-right: 1rem;
}

.ticker-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    color: var(--text-primary);
    padding-left: 100%;
    animation: marquee 60s linear infinite;
    /* fallback，JS 會根據內容長度動態覆蓋 */
}

#top-ann-link {
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    transition: opacity 0.2s;
    margin-left: 1rem;
    font-size: 0.8rem;
}

#top-ann-link:hover {
    opacity: 0.75;
}

@media (max-width: 767px) {
    #top-announcement-bar {
        padding: 0 1rem;
    }

    .ticker-badge {
        min-width: 80px;
    }
}

/* ===== 跳動公告按鈕 ===== */
#announcement-bounce-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 38, 38, 0.22);
    border: 1.5px solid rgba(248, 113, 113, 0.65);
    color: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
    white-space: nowrap;
    animation: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
}

#announcement-bounce-btn:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 1), rgba(239, 68, 68, 0.9));
    box-shadow: 0 0 32px rgba(220, 38, 38, 0.7), 0 6px 20px rgba(0, 0, 0, 0.4);
    animation-play-state: paused;
    transform: scale(1.06);
}

#announcement-bounce-btn:active {
    transform: scale(0.95);
}

.ann-bounce-bell {
    font-size: 1.2rem;
    display: inline-block;
    animation: ann-bell-shake 1.6s ease-in-out infinite;
}

.ann-bounce-arrow {
    font-size: 1rem;
    display: inline-block;
    animation: ann-arrow-blink 1.6s ease-in-out infinite;
}

@keyframes ann-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-6px);
    }
}

@keyframes ann-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    40% {
        box-shadow: 0 0 36px rgba(220, 38, 38, 0.75), 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}

@keyframes ann-bell-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(18deg);
    }

    30% {
        transform: rotate(-14deg);
    }

    45% {
        transform: rotate(10deg);
    }

    55% {
        transform: rotate(-6deg);
    }

    65% {
        transform: rotate(0deg);
    }
}

@keyframes ann-arrow-blink {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.4;
        transform: translateY(4px);
    }
}

@media (max-width: 600px) {
    #announcement-bounce-btn {
        font-size: 0.9rem;
        padding: 0.35rem 0.9rem;
    }
}

/* ─── Ghost Button (Info CTAs) ──────────────────────────────────────────────── */

.btn-ghost-landing {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.65rem 1.75rem;
    min-width: auto;
}

.btn-ghost-landing:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cta-info-group {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

/* ─── Rules Modal Content ────────────────────────────────────────────────────── */

.rules-modal-card {
    max-width: 680px !important;
}

.rules-section {
    margin-bottom: 1.75rem;
}

.rules-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.rules-section ul,
.rules-section ol {
    list-style: disc;
    padding-left: 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.rules-section ol {
    list-style: decimal;
}

.rules-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.rules-notice {
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid var(--primary);
    padding: 0.85rem 1.1rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.prize-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.prize-tier-table th,
.prize-tier-table td {
    padding: 0.6rem 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.prize-tier-table th {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.prize-tier-table td {
    color: var(--text-secondary);
}

.prize-tier-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* ─── Rules Table ─────────────────────────────────────────────────────────── */

.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0.75rem 0 1.25rem;
}

.rules-table th,
.rules-table td {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    text-align: left;
}

.rules-table th {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.rules-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.rules-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.1rem 0 0.5rem;
}
