:root {
    --bg-color: #050505;
    --card-bg: rgba(15, 15, 15, 0.7);
    --primary-purple: #6a0dad;
    --accent-purple: #bf40bf;
    --text-light: #f5f5f5;
    --text-dim: #888;
    --border-color: rgba(255, 255, 255, 0.05);
    --fog-color: rgba(255, 255, 255, 0.02);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 9999;
}

/* Scanline Effect - Reduced for minimalism */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.1;
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(106, 13, 173, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 13, 173, 0); }
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Selection Color */
::selection {
    background: var(--primary-red);
    color: white;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.logo img {
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(106, 13, 173, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-purple);
}

.btn-nav {
    border: 1px solid var(--primary-purple);
    padding: 5px 15px;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/EntityBannerFinished.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, var(--bg-color) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 6rem;
    margin-bottom: 10px;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(106, 13, 173, 0.8), 0 0 40px rgba(106, 13, 173, 0.4);
}

.hero-section p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fog Animation */
.fog-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fog-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/fog.png') repeat-x;
    opacity: 0.15; /* Reduced opacity for static look */
}

/* Ticker styles removed previously */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background-color: var(--primary-purple);
    color: white;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    margin: 10px;
    animation: pulse-purple 3s infinite;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--accent-purple);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(191, 64, 191, 0.4);
    animation: none;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    border: 1px solid var(--text-dim);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Content Sections */
.content-section {
    padding: 60px 0; /* Reduced spacing for tight minimalism */
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--text-light);
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    margin: 15px auto;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary-purple));
}

.card h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-purple);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Prizes */
.prizes-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=2000&auto=format&fit=crop');
    background-attachment: fixed;
    background-size: cover;
    padding: 150px 0;
    text-align: center;
}

.prize-banner {
    background: rgba(106, 13, 173, 0.1);
    padding: 60px;
    border: 1px solid var(--primary-purple);
    border-radius: 30px;
    display: inline-block;
}

.prize-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8rem;
    color: var(--accent-purple);
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(191, 64, 191, 0.5);
    animation: glitch 3s infinite;
    position: relative;
}

@keyframes glitch {
    0% { transform: skew(0deg); }
    1% { transform: skew(10deg); opacity: 0.8; }
    2% { transform: skew(-10deg); opacity: 0.8; }
    3% { transform: skew(0deg); opacity: 1; }
    98% { transform: skew(0deg); }
    99% { transform: skew(5deg); }
    100% { transform: skew(0deg); }
}

/* Staff Section */
.staff-hero {
    height: 30vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(110, 99, 207, 0.9)), url('assets/EntityBannerFinished.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.staff-card {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.staff-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.2);
}

.staff-img-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple), #000);
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid var(--border-color);
}

.staff-card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.staff-card .role {
    color: var(--primary-purple);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.staff-socials a {
    color: var(--text-dim);
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.staff-socials a:hover {
    color: var(--text-light);
}

/* Staff Categories */
.staff-category {
    margin-bottom: 80px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.category-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.category-header h2::after {
    display: none;
}

.category-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--primary-purple), transparent);
}

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.badge-admin { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.3); }
.badge-anticheat { background: rgba(255, 0, 0, 0.2); color: #ff4d4d; border: 1px solid rgba(255, 0, 0, 0.3); }
.badge-mod { background: rgba(0, 255, 127, 0.2); color: #00ff7f; border: 1px solid rgba(0, 255, 127, 0.3); }
.badge-caster { background: rgba(0, 191, 255, 0.2); color: #00bfff; border: 1px solid rgba(0, 191, 255, 0.3); }

.staff-img-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple), #000);
    border-radius: 15px; /* Changed to rounded squares for a more modern look */
    margin: 0 auto 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.staff-img-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(106, 13, 173, 0.3));
}
.cta-center {
    text-align: center;
    margin-top: 40px;
}

.btn-text {
    color: var(--text-dim);
    text-decoration: underline;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--text-light);
}

/* Registration */
.register-section {
    padding: 100px 0;
    background: linear-gradient(to top, #000, var(--bg-color));
}

.register-card {
    background: var(--card-bg);
    padding: 60px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 30px;
}

.register-card h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-align: center;
}

.register-card p {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dim);
    font-size: 1.2rem;
}

.discord-cta {
    text-align: center;
}

.btn-discord {
    background-color: #5865F2; /* Discord Blurple */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
}

.btn-discord:hover {
    background-color: #4752c4;
}

/* Tourney Elements */
/* Corner Brackets Removed for Minimalism */
.card, .staff-card, .season-card, .accordion-item {
    position: relative;
    border: 1px solid rgba(106, 13, 173, 0.15); /* More subtle borders */
}

/* Standings Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.standings-table th {
    background: rgba(106, 13, 173, 0.2);
    color: var(--text-light);
    font-family: 'Bebas Neue', sans-serif;
    padding: 15px;
    text-align: left;
    letter-spacing: 1px;
}

.standings-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dim);
}

.standings-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.standings-table .team-name {
    color: var(--text-light);
    font-weight: bold;
}

.standings-table .rank {
    width: 50px;
    text-align: center;
    color: var(--accent-purple);
    font-family: 'Bebas Neue', sans-serif;
}

/* Rules Accordion Updates */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(106, 13, 173, 0.2);
}

.accordion-header {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.staff-card h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--text-light);
}

.staff-names-list {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
    font-family: var(--font-main);
}

.role-detail {
    color: var(--accent-purple);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.accordion-item.active .accordion-header h3 {
    color: var(--accent-purple);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--text-dim);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding: 0 30px;
}

.accordion-item.active .accordion-content {
    max-height: 2000px; /* High enough to fit content */
    transition: max-height 1s ease-in;
    padding-bottom: 30px;
}

.rule-group {
    margin-bottom: 25px;
}

.rule-group h4 {
    color: var(--accent-purple);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(191, 64, 191, 0.2);
    display: inline-block;
}

.rule-list {
    list-style: none;
}

.rule-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 1.05rem;
}

.rule-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
}

.rule-sub-list {
    list-style: none;
    margin-left: 20px;
    margin-top: 5px;
}

.rule-sub-list li::before {
    content: "✧";
}

.rule-text {
    color: var(--text-dim);
    margin-bottom: 10px;
}

.penalty-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-purple);
}

.penalty-item strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

/* Season 2 Teaser */
.season-2-section {
    background: linear-gradient(to bottom, transparent, rgba(106, 13, 173, 0.05));
}

.season-2-grid {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.season-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(106, 13, 173, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.season-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 50px rgba(106, 13, 173, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-badge {
    background: var(--primary-purple);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.season-card h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.season-label {
    color: var(--primary-purple);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.season-details {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item .label {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.detail-item .value {
    color: var(--text-light);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
}

.season-footer p {
    font-style: italic;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Bracket Styles */
.bracket-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
    overflow-x: auto;
}

.bracket-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 30px;
}

.round-title {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-purple);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.matchup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.matchup::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--border-color);
    display: none;
}

.team {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    color: var(--text-dim);
    font-size: 1.1rem;
    border-radius: 6px;
}

.team.winner {
    color: var(--text-light);
    font-weight: bold;
    background: rgba(106, 13, 173, 0.1);
}

.team .score {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-purple);
}

.grand-finals {
    border: 2px solid var(--primary-purple);
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.3);
}

.champion-box {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.2), transparent);
    border-radius: 20px;
    border: 1px dashed var(--primary-purple);
}

.champion-box .label {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.champion-box h3 {
    font-size: 3rem;
    color: var(--text-light);
    text-shadow: 0 0 20px var(--primary-purple);
}

.champion-box .tbd {
    opacity: 0.3;
}

/* Responsive Bracket */
@media (max-width: 992px) {
    .bracket-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .bracket-column {
        width: 100%;
        max-width: 400px;
    }
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: #000;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.footer-socials a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 20px;
    font-family: 'Bebas Neue', sans-serif;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #444;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-dim);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 4rem; }
    nav ul { display: none; }
    .prize-amount { font-size: 5rem; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-socials { margin-left: 0; }
}
