/* Marvel Casino - Unique Design */
:root {
    --bg-dark: #0e1117;
    --accent-red: #e21a2c;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --card-bg: #1a1f2e;
    --border: #2a3441;
    --accent-gold: #f2c94c;
}

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

html:not(.css-loaded) {
    visibility: hidden;
}

html.css-loaded {
    visibility: visible;
}

body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(14, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(226, 26, 44, 0.4);
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #c01828;
    transform: translateY(-2px);
}

.header-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-login {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: linear-gradient(135deg, #5baaff 0%, #4a9eff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reg {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-reg:hover {
    background: linear-gradient(135deg, #5cbf60 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn, .btn-final-action {
    background: var(--accent-red);
    color: #fff;
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 10px;
}

.cta-btn:hover, .btn-final-action:hover {
    background: #c01828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 26, 44, 0.5);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(226, 26, 44, 0.1) 0%, rgba(14, 17, 23, 0.9) 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid var(--border);
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Sections */
.content-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border);
}

main article h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: center;
}

main article h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--text-light);
    border-left: 4px solid var(--accent-red);
    padding-left: 15px;
}

main article h3 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--text-light);
}

main article p {
    margin: 15px 0;
    color: var(--text-muted);
    line-height: 1.8;
}

main article strong {
    color: var(--text-light);
}

/* Images */
.content-img {
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
}

/* Table wrapper for mobile scroll */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-width: 480px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
}

th {
    background: rgba(226, 26, 44, 0.1);
    color: var(--text-light);
    font-weight: 600;
}

tr:hover {
    background: rgba(226, 26, 44, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* Lists */
ul, ol {
    margin: 15px 0;
    padding-left: 25px;
}

li {
    margin: 8px 0;
    color: var(--text-muted);
    line-height: 1.8;
}

li strong {
    color: var(--text-light);
}

/* CTA Container */
.cta-container {
    text-align: center;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Content CTA buttons */
.content-cta {
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.content-cta .btn {
    margin: 0;
    display: inline-block;
    width: auto;
    max-width: none;
}

/* Links */
a:not(.btn):not(.cta-btn):not(.btn-final-action):not(.content-cta .btn) {
    color: var(--accent-red);
    text-decoration: underline;
    transition: color 0.3s;
}

a:not(.btn):not(.cta-btn):not(.btn-final-action):not(.content-cta .btn):hover {
    color: #c01828;
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
}

footer p {
    margin: 10px 0;
}

.footer-disclaimer {
    text-align: left;
}

.footer-disclaimer a {
    color: var(--accent-red);
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-disclaimer a:hover {
    color: #c01828;
}

.footer-legal-links {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-legal-links a {
    color: var(--accent-red);
    text-decoration: underline;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-legal-links a:hover {
    color: #c01828;
}

@media (max-width: 768px) {
    .footer-disclaimer {
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }

    .header-cta {
        gap: 6px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 11px;
        width: auto;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    main article h1 {
        font-size: 22px;
    }

    main article h2 {
        font-size: 18px;
        padding-left: 12px;
    }

    main article h3 {
        font-size: 16px;
    }

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

    .cta-container .btn {
        width: 100%;
    }

    .content-section {
        padding: 16px;
        margin: 20px 0;
    }

    main {
        padding: 20px 0;
    }

    footer {
        padding: 24px 12px;
        margin-top: 40px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px 6px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 44px;
    }

    .btn {
        padding: 6px 9px;
        font-size: 10px;
    }

    .header-cta {
        gap: 4px;
    }

    .burger-btn {
        padding: 6px;
    }

    .container {
        padding: 0 10px;
    }

    main article h1 {
        font-size: 20px;
    }

    main article h2 {
        font-size: 17px;
    }
}
