/* ===== DmFirst Global Stylesheet ===== */
/* ===== CSS Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-dark: #0a1f0a;
    --primary-green: #0d3d0d;
    --accent-gold: #d4a843;
    --accent-gold-light: #e8c96a;
    --accent-green: #00c853;
    --accent-green-light: #69f0ae;
    --gradient-green: linear-gradient(135deg, #00c853 0%, #69f0ae 100%);
    --gradient-gold: linear-gradient(135deg, #d4a843 0%, #f0d878 50%, #d4a843 100%);
    --gradient-header: linear-gradient(135deg, #0a1f0a 0%, #143a14 50%, #0a1f0a 100%);
    --text-dark: #1a1a1a;
    --text-medium: #444;
    --text-light: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border-accent: 3px solid var(--accent-green);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
    border-left: var(--border-accent);
    border-right: var(--border-accent);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Header / Navigation ===== */
header {
    background: var(--gradient-header);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--accent-green);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.logo-container img {
    height: 55px;
    width: 55px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(212,168,67,0.3);
}

nav { display: flex; align-items: center; gap: 5px; }

nav a {
    color: #ccc;
    text-decoration: none;
    padding: 20px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--accent-green);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    width: 28px; height: 3px;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== Main Content ===== */
main { padding: 40px 50px; }

h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin: 40px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-green);
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 25px 0 10px;
}

h4 {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin: 20px 0 8px;
}

p {
    margin-bottom: 15px;
    color: var(--text-medium);
    font-size: 1rem;
}

a { color: var(--accent-green); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text-dark); }

/* ===== CTA Banner ===== */
.cta-banner {
    background: var(--gradient-green);
    color: #fff;
    text-align: center;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 30px 0;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,200,83,0.3);
}

/* ===== App Logo Box ===== */
.app-logo-box {
    text-align: center;
    margin: 30px 0;
}

.app-logo-box img {
    width: 160px;
    height: 160px;
    border-radius: 25px;
    border: 3px solid var(--accent-green);
    box-shadow: 0 0 30px rgba(0,200,83,0.2);
    object-fit: cover;
}

/* ===== Register Button ===== */
.register-btn {
    display: block;
    width: fit-content;
    margin: 25px auto;
    padding: 14px 50px;
    background: var(--gradient-green);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0,200,83,0.4);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,200,83,0.5);
    text-decoration: none;
}

/* ===== Info Table ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.info-table thead th {
    background: var(--primary-green);
    color: #fff;
    padding: 14px 20px;
    font-size: 1rem;
    text-align: left;
    font-weight: 600;
}

.info-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.info-table tbody tr:nth-child(even) { background: var(--bg-light); }
.info-table tbody tr:hover { background: #e8f5e9; }

.info-table td:first-child { font-weight: 600; color: var(--text-dark); }
.info-table td:last-child { color: var(--text-medium); }
.info-table td strong { color: var(--primary-green); font-size: 1.05rem; }

/* ===== Table of Contents ===== */
.toc {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 35px 0;
    background: var(--bg-light);
}

.toc h3 {
    font-size: 1.3rem;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-toggle {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light);
}

.toc ol {
    padding-left: 20px;
}

.toc ol li {
    margin: 6px 0;
    line-height: 1.6;
}

.toc ol li a {
    color: var(--text-medium);
    font-size: 0.95rem;
    transition: 0.2s;
}

.toc ol li a:hover { color: var(--accent-green); }

.toc ol ol {
    padding-left: 25px;
    margin-top: 4px;
}

.toc ol ol li a { font-size: 0.9rem; }

/* ===== Content Sections ===== */
.section { margin: 40px 0; }

.section ul, .section ol {
    padding-left: 25px;
    margin: 15px 0;
}

.section li {
    margin: 8px 0;
    color: var(--text-medium);
    line-height: 1.7;
}

.section li strong { color: var(--text-dark); }

/* ===== Steps ===== */
.steps {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-green);
}

.steps ol { padding-left: 20px; }

.steps li {
    margin: 10px 0;
    padding: 5px 0;
    color: var(--text-medium);
}

/* ===== Game Cards Grid ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.game-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-green);
}

.game-card h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ===== Highlight Box ===== */
.highlight-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid var(--accent-green);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
}

.highlight-box p { margin-bottom: 5px; }

/* ===== Gold Highlight Box ===== */
.gold-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 5px solid var(--accent-gold);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
}

/* ===== FAQ Section ===== */
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin: 12px 0;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover { border-color: var(--accent-green); }

.faq-question {
    width: 100%;
    background: var(--bg-light);
    border: none;
    padding: 18px 25px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    font-family: inherit;
}

.faq-question:hover { background: #e8f5e9; }

.faq-question .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--accent-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer.open { max-height: 500px; }

.faq-answer p {
    padding: 15px 25px 20px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.faq-question.active .arrow { transform: rotate(180deg); }

/* ===== Footer ===== */
footer {
    background: var(--gradient-header);
    color: #ccc;
    padding: 40px 50px;
    border-top: 3px solid var(--accent-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212,168,67,0.3);
}

.footer-col a {
    display: block;
    color: #aaa;
    padding: 5px 0;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-col a:hover { color: var(--accent-green); padding-left: 5px; }

.footer-col p { font-size: 0.9rem; color: #999; margin-bottom: 8px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom a { color: var(--accent-green); }

/* ===== Disclaimer ===== */
.disclaimer {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 30px 0;
    font-size: 0.88rem;
    color: #e65100;
}

.disclaimer strong { color: #bf360c; }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,200,83,0.4);
    transition: 0.3s;
    z-index: 999;
}

.back-to-top:hover { transform: scale(1.1); }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.breadcrumb a { color: var(--accent-green); }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ===== Internal Link Box ===== */
.related-pages {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    margin: 35px 0;
}

.related-pages h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.related-links a {
    display: block;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 0.92rem;
    transition: 0.2s;
}

.related-links a:hover {
    border-color: var(--accent-green);
    background: #e8f5e9;
    text-decoration: none;
    padding-left: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header { padding: 0 20px; }
    .logo-text { font-size: 1.4rem; }
    .logo-container img { height: 42px; width: 42px; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    nav.open { display: flex; }
    nav a { padding: 12px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    nav a.active::after { display: none; }

    .hamburger { display: flex; }

    main { padding: 25px 20px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .cta-banner { font-size: 1.1rem; padding: 14px 20px; }
    .info-table thead th, .info-table tbody td { padding: 10px 14px; font-size: 0.88rem; }
    footer { padding: 30px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .game-grid { grid-template-columns: 1fr; }
}

/* ===== Animation ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 0.6s ease forwards; }
