* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: #0a1628;
    color: #f0e6d0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}


/* Gold corner bands with glitter */
.corner-band {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    width: 300px;
    height: 300px;
    overflow: hidden;
}

.corner-band::before {
    content: '';
    position: absolute;
    background: linear-gradient(
        to right,
        #b8860b,
        #d4a017,
        #ffd700,
        #ffed80,
        #ffd700,
        #d4a017,
        #b8860b
    );
    animation: band-shimmer 3s ease-in-out infinite alternate;
}

/* Top-left */
.corner-tl {
    top: 0;
    left: 0;
}
.corner-tl::before {
    width: 350px;
    height: 30px;
    top: 40px;
    left: -80px;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* Top-right */
.corner-tr {
    top: 0;
    right: 0;
}
.corner-tr::before {
    width: 350px;
    height: 30px;
    top: 40px;
    right: -80px;
    transform: rotate(45deg);
    transform-origin: center;
}

/* Bottom-left */
.corner-bl {
    bottom: 0;
    left: 0;
}
.corner-bl::before {
    width: 350px;
    height: 30px;
    bottom: 40px;
    left: -80px;
    transform: rotate(45deg);
    transform-origin: center;
}

/* Bottom-right */
.corner-br {
    bottom: 0;
    right: 0;
}
.corner-br::before {
    width: 350px;
    height: 30px;
    bottom: 40px;
    right: -80px;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* Glitter particles */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    width: 4px;
    height: 4px;
    background: #fff8dc;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.9), 0 0 8px 4px rgba(255, 215, 0, 0.6);
    animation: glitter var(--duration) ease-in-out infinite var(--delay);
}

@keyframes band-shimmer {
    0% { filter: brightness(0.9); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(0.9); }
}

@keyframes glitter {
    0%, 100% { opacity: 0; transform: scale(0.2); }
    50% { opacity: var(--max-opacity, 1); transform: scale(1.2); }
}

/* Gold stars scattered across background */
.gold-star {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    color: #d4a017;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
    animation: star-twinkle var(--star-duration) ease-in-out infinite var(--star-delay);
    line-height: 1;
}

@keyframes star-twinkle {
    0%, 100% { opacity: var(--star-min-opacity); transform: scale(0.8) rotate(0deg); }
    50% { opacity: var(--star-max-opacity); transform: scale(1.1) rotate(15deg); }
}

header {
    background: linear-gradient(135deg, #1a3a6b, #0d2240);
    border-bottom: 4px solid #d4a017;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 3em;
    color: #d4a017;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

header .tagline {
    font-size: 1.2em;
    color: #a8c4e0;
    margin-top: 10px;
    font-style: italic;
}

nav {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

nav h2 {
    font-size: 1.8em;
    color: #d4a017;
    text-align: center;
    margin-bottom: 20px;
}

.topic-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.topic-list li a {
    display: block;
    background: linear-gradient(135deg, #162d50, #1a3a6b);
    border: 2px solid #d4a017;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    color: #f0e6d0;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.topic-list li a:hover {
    background: linear-gradient(135deg, #1a3a6b, #244e80);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.3);
}

/* Ranking page styles */
.back-link {
    display: inline-block;
    color: #d4a017;
    text-decoration: none;
    margin: 20px;
    font-size: 1.1em;
}

.back-link:hover {
    text-decoration: underline;
}

.rankings {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px 40px;
    flex: 1;
}

.ranking-item {
    background: linear-gradient(135deg, #162d50, #1a3a6b);
    border: 2px solid #d4a017;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.ranking-item .rank {
    font-size: 2em;
    color: #d4a017;
    font-weight: bold;
}

.ranking-item .name {
    font-size: 1.5em;
    color: #f0e6d0;
    margin: 5px 0;
}

.ranking-item .review {
    font-size: 1.1em;
    color: #a8c4e0;
    line-height: 1.6;
    margin-top: 10px;
}

footer {
    background: #0d2240;
    border-top: 4px solid #d4a017;
    text-align: center;
    padding: 20px;
    color: #a8c4e0;
}
