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

:root {
    --primary-color: #FFD700;
    --secondary-color: #1a1a2e;
    --accent-color: #ff6b6b;
    --text-color: #ffffff;
    --bg-color: #0f1419;
    --card-bg: #1a2332;
    --border-color: #444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Back to Lobby Button */
.back-to-lobby {
    background: transparent;
    padding: 1rem;
    text-align: left;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2000;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 30px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-btn:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.back-btn:active {
    transform: translateX(-3px) scale(0.98);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), #2a2a4e);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link.btn-play {
    background: linear-gradient(135deg, var(--primary-color), #ffaa00);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
}

.nav-link.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), #2a2a4e);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.page-header p {
    font-size: 1.2rem;
    color: #aaa;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.content-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-section p {
    color: #aaa;
    margin-bottom: 1rem;
}

/* Info Box */
.info-box {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    color: #ddd;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ffaa00);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), #ff8787);
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Quick Start Grid */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.quick-start-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.quick-start-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.card-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #ffaa00);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quick-start-card h3 {
    margin-bottom: 0.5rem;
}

.quick-start-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Stats Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-showcase {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-showcase p {
    color: #aaa;
    font-size: 0.9rem;
}

/* How Works */
.how-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.work-step {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.work-step h3 {
    margin-bottom: 1rem;
}

.work-step p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Roles Showcase */
.roles-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.role-showcase {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.role-showcase:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.role-showcase h3 {
    margin-bottom: 0.5rem;
}

.role-showcase p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Explore Grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.explore-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.explore-card h3 {
    margin-bottom: 0.5rem;
}

.explore-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #ffaa00);
    color: #000;
    text-align: center;
    border: none;
}

.cta-section h2 {
    color: #000;
    text-shadow: none;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

/* Footer Disclaimer */
.footer-disclaimer {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.footer-disclaimer h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-disclaimer p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-disclaimer strong {
    color: var(--primary-color);
    font-weight: bold;
}

.disclaimer-highlight {
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

/* Step Guide */
.step-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.guide-step {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #ffaa00);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.guide-step h3 {
    margin-bottom: 1rem;
}

.guide-step ul {
    list-style-position: inside;
    color: #aaa;
}

.guide-step li {
    margin-bottom: 0.5rem;
}

/* Card Types */
.card-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card-type {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.card-type h3 {
    margin-bottom: 1rem;
}

.card-type p {
    color: #aaa;
    margin-bottom: 1rem;
}

.card-type strong {
    color: var(--primary-color);
}

/* Stats Explanation */
.stats-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-info {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.stat-info h3 {
    margin-bottom: 1rem;
}

.stat-info p {
    color: #aaa;
    margin-bottom: 1rem;
}

.stat-example {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

/* Scoring Table */
.scoring-table {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.score-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 215, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    align-items: center;
}

.score-action {
    color: #ddd;
    font-weight: 500;
}

.score-points {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.tip-card h3 {
    margin-bottom: 1rem;
}

.tip-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Mistakes List */
.mistakes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.mistake {
    background: rgba(255, 107, 107, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.mistake h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.mistake p {
    color: #aaa;
}

/* Reference Box */
.reference-box {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    margin: 1.5rem 0;
}

.reference-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reference-box p {
    color: #ddd;
    margin-bottom: 1rem;
}

.reference-box ul {
    list-style-position: inside;
    color: #aaa;
}

.reference-box li {
    margin-bottom: 0.5rem;
}

/* Abilities List */
.abilities-list {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.ability h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ability ul {
    list-style-position: inside;
    color: #aaa;
}

.ability li {
    margin-bottom: 0.5rem;
}

/* Rules Section */
.rules-section {
    background: rgba(255, 215, 0, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.rules-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rules-section ol,
.rules-section ul {
    list-style-position: inside;
    color: #aaa;
}

.rules-section li {
    margin-bottom: 0.5rem;
}

.rules-section strong {
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .score-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-container {
        padding: 1rem;
    }

    .content-section {
        padding: 1rem;
    }
}

/* Hero Image Styling */
.hero-banner-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.header-image {
    flex: 1;
    text-align: center;
}

.gameplay-preview-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
    }
    
    .hero-banner-img,
    .gameplay-preview-img {
        max-width: 100%;
    }
}
