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

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.header {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.game-icon img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
}

.header-info {
    flex: 1;
}

.game-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.game-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.nav-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-tab {
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-tab.active,
.nav-tab:hover {
    color: #333;
    border-bottom-color: #4285f4;
}

/* Sections */
.section {
    background: white;
    padding: 60px 0;
}

.section:nth-child(even) {
    background: #f9f9f9;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

/* Title container for proper centering */
.title-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

/* Common styling for section titles with clip-path */
.how-to-play-title, .rate-title {
    position: relative;
    padding: 30px 60px;
    background-color: #4285f4;
    color: white;
    display: block;
    width: fit-content;
    margin: 0 auto 50px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    -webkit-clip-path: polygon(
        12.108% 97.857%,
        12.108% 97.857%,
        10.704% 97.101%,
        9.482% 96.202%,
        8.422% 95.103%,
        7.498% 93.748%,
        6.688% 92.079%,
        5.969% 90.04%,
        5.317% 87.574%,
        4.709% 84.623%,
        4.122% 81.131%,
        3.533% 77.041%,
        3.533% 77.041%,
        2.93% 72.176%,
        2.373% 66.846%,
        1.869% 61.174%,
        1.425% 55.284%,
        1.047% 49.298%,
        0.743% 43.34%,
        0.519% 37.533%,
        0.383% 31.999%,
        0.34% 26.862%,
        0.399% 22.245%,
        0.399% 22.245%,
        0.465% 19.814%,
        0.532% 17.809%,
        0.606% 16.173%,
        0.696% 14.847%,
        0.808% 13.776%,
        0.951% 12.9%,
        1.13% 12.162%,
        1.354% 11.505%,
        1.63% 10.872%,
        1.966% 10.204%,
        1.966% 10.204%,
        3.138% 8.592%,
        4.809% 7.175%,
        7.031% 5.94%,
        9.857% 4.875%,
        13.34% 3.967%,
        17.533% 3.202%,
        22.488% 2.569%,
        28.257% 2.054%,
        34.894% 1.644%,
        42.45% 1.327%,
        42.45% 1.327%,
        48.741% 1.178%,
        54.495% 1.163%,
        59.781% 1.29%,
        64.666% 1.563%,
        69.217% 1.99%,
        73.5% 2.576%,
        77.585% 3.327%,
        81.538% 4.249%,
        85.426% 5.349%,
        89.316% 6.633%,
        89.316% 6.633%,
        91.136% 7.356%,
        92.712% 8.135%,
        94.062% 8.993%,
        95.206% 9.955%,
        96.161% 11.046%,
        96.947% 12.29%,
        97.583% 13.711%,
        98.087% 15.335%,
        98.478% 17.185%,
        98.775% 19.286%,
        98.775% 19.286%,
        98.941% 21.545%,
        99.111% 25.433%,
        99.276% 30.563%,
        99.43% 36.551%,
        99.566% 43.01%,
        99.675% 49.555%,
        99.753% 55.8%,
        99.79% 61.359%,
        99.78% 65.847%,
        99.715% 68.878%,
        99.715% 68.878%,
        99.608% 71.107%,
        99.468% 72.936%,
        99.26% 74.423%,
        98.946% 75.627%,
        98.49% 76.607%,
        97.857% 77.422%,
        97.009% 78.13%,
        95.912% 78.791%,
        94.527% 79.463%,
        92.821% 80.204%,
        92.821% 80.204%,
        87.133% 82.553%,
        81.336% 84.813%,
        75.478% 86.971%,
        69.611% 89.011%,
        63.786% 90.918%,
        58.051% 92.679%,
        52.459% 94.278%,
        47.059% 95.701%,
        41.901% 96.933%,
        37.037% 97.959%,
        37.037% 97.959%,
        34.884% 98.287%,
        32.295% 98.536%,
        29.403% 98.709%,
        26.346% 98.805%,
        23.259% 98.827%,
        20.276% 98.775%,
        17.534% 98.651%,
        15.169% 98.456%,
        13.315% 98.191%,
        12.108% 97.857%
    );
    clip-path: polygon(
        12.108% 97.857%,
        12.108% 97.857%,
        10.704% 97.101%,
        9.482% 96.202%,
        8.422% 95.103%,
        7.498% 93.748%,
        6.688% 92.079%,
        5.969% 90.04%,
        5.317% 87.574%,
        4.709% 84.623%,
        4.122% 81.131%,
        3.533% 77.041%,
        3.533% 77.041%,
        2.93% 72.176%,
        2.373% 66.846%,
        1.869% 61.174%,
        1.425% 55.284%,
        1.047% 49.298%,
        0.743% 43.34%,
        0.519% 37.533%,
        0.383% 31.999%,
        0.34% 26.862%,
        0.399% 22.245%,
        0.399% 22.245%,
        0.465% 19.814%,
        0.532% 17.809%,
        0.606% 16.173%,
        0.696% 14.847%,
        0.808% 13.776%,
        0.951% 12.9%,
        1.13% 12.162%,
        1.354% 11.505%,
        1.63% 10.872%,
        1.966% 10.204%,
        1.966% 10.204%,
        3.138% 8.592%,
        4.809% 7.175%,
        7.031% 5.94%,
        9.857% 4.875%,
        13.34% 3.967%,
        17.533% 3.202%,
        22.488% 2.569%,
        28.257% 2.054%,
        34.894% 1.644%,
        42.45% 1.327%,
        42.45% 1.327%,
        48.741% 1.178%,
        54.495% 1.163%,
        59.781% 1.29%,
        64.666% 1.563%,
        69.217% 1.99%,
        73.5% 2.576%,
        77.585% 3.327%,
        81.538% 4.249%,
        85.426% 5.349%,
        89.316% 6.633%,
        89.316% 6.633%,
        91.136% 7.356%,
        92.712% 8.135%,
        94.062% 8.993%,
        95.206% 9.955%,
        96.161% 11.046%,
        96.947% 12.29%,
        97.583% 13.711%,
        98.087% 15.335%,
        98.478% 17.185%,
        98.775% 19.286%,
        98.775% 19.286%,
        98.941% 21.545%,
        99.111% 25.433%,
        99.276% 30.563%,
        99.43% 36.551%,
        99.566% 43.01%,
        99.675% 49.555%,
        99.753% 55.8%,
        99.79% 61.359%,
        99.78% 65.847%,
        99.715% 68.878%,
        99.715% 68.878%,
        99.608% 71.107%,
        99.468% 72.936%,
        99.26% 74.423%,
        98.946% 75.627%,
        98.49% 76.607%,
        97.857% 77.422%,
        97.009% 78.13%,
        95.912% 78.791%,
        94.527% 79.463%,
        92.821% 80.204%,
        92.821% 80.204%,
        87.133% 82.553%,
        81.336% 84.813%,
        75.478% 86.971%,
        69.611% 89.011%,
        63.786% 90.918%,
        58.051% 92.679%,
        52.459% 94.278%,
        47.059% 95.701%,
        41.901% 96.933%,
        37.037% 97.959%,
        37.037% 97.959%,
        34.884% 98.287%,
        32.295% 98.536%,
        29.403% 98.709%,
        26.346% 98.805%,
        23.259% 98.827%,
        20.276% 98.775%,
        17.534% 98.651%,
        15.169% 98.456%,
        13.315% 98.191%,
        12.108% 97.857%
    );
}

/* How to Play title specific styling */
.how-to-play-title {
    background-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Rate title specific styling */
.rate-title {
    background-color: #3565ea;
    color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(53, 101, 234, 0.3);
    -webkit-clip-path: polygon(
        12.108% 97.857%,
        12.108% 97.857%,
        10.704% 97.101%,
        9.482% 96.202%,
        8.422% 95.103%,
        7.498% 93.748%,
        6.688% 92.079%,
        5.969% 90.04%,
        5.317% 87.574%,
        4.709% 84.623%,
        4.122% 81.131%,
        3.533% 77.041%,
        3.533% 77.041%,
        2.93% 72.176%,
        2.373% 66.846%,
        1.869% 61.174%,
        1.425% 55.284%,
        1.047% 49.298%,
        0.743% 43.34%,
        0.519% 37.533%,
        0.383% 31.999%,
        0.34% 26.862%,
        0.399% 22.245%,
        0.399% 22.245%,
        0.465% 19.814%,
        0.532% 17.809%,
        0.606% 16.173%,
        0.696% 14.847%,
        0.808% 13.776%,
        0.951% 12.9%,
        1.13% 12.162%,
        1.354% 11.505%,
        1.63% 10.872%,
        1.966% 10.204%,
        1.966% 10.204%,
        3.138% 8.592%,
        4.809% 7.175%,
        7.031% 5.94%,
        9.857% 4.875%,
        13.34% 3.967%,
        17.533% 3.202%,
        22.488% 2.569%,
        28.257% 2.054%,
        34.894% 1.644%,
        42.45% 1.327%,
        42.45% 1.327%,
        48.741% 1.178%,
        54.495% 1.163%,
        59.781% 1.29%,
        64.666% 1.563%,
        69.217% 1.99%,
        73.5% 2.576%,
        77.585% 3.327%,
        81.538% 4.249%,
        85.426% 5.349%,
        89.316% 6.633%,
        89.316% 6.633%,
        91.136% 7.356%,
        92.712% 8.135%,
        94.062% 8.993%,
        95.206% 9.955%,
        96.161% 11.046%,
        96.947% 12.29%,
        97.583% 13.711%,
        98.087% 15.335%,
        98.478% 17.185%,
        98.775% 19.286%,
        98.775% 19.286%,
        98.941% 21.545%,
        99.111% 25.433%,
        99.276% 30.563%,
        99.43% 36.551%,
        99.566% 43.01%,
        99.675% 49.555%,
        99.753% 55.8%,
        99.79% 61.359%,
        99.78% 65.847%,
        99.715% 68.878%,
        99.715% 68.878%,
        99.608% 71.107%,
        99.468% 72.936%,
        99.26% 74.423%,
        98.946% 75.627%,
        98.49% 76.607%,
        97.857% 77.422%,
        97.009% 78.13%,
        95.912% 78.791%,
        94.527% 79.463%,
        92.821% 80.204%,
        92.821% 80.204%,
        87.133% 82.553%,
        81.336% 84.813%,
        75.478% 86.971%,
        69.611% 89.011%,
        63.786% 90.918%,
        58.051% 92.679%,
        52.459% 94.278%,
        47.059% 95.701%,
        41.901% 96.933%,
        37.037% 97.959%,
        37.037% 97.959%,
        34.884% 98.287%,
        32.295% 98.536%,
        29.403% 98.709%,
        26.346% 98.805%,
        23.259% 98.827%,
        20.276% 98.775%,
        17.534% 98.651%,
        15.169% 98.456%,
        13.315% 98.191%,
        12.108% 97.857%
    );
    clip-path: polygon(
        12.108% 97.857%,
        12.108% 97.857%,
        10.704% 97.101%,
        9.482% 96.202%,
        8.422% 95.103%,
        7.498% 93.748%,
        6.688% 92.079%,
        5.969% 90.04%,
        5.317% 87.574%,
        4.709% 84.623%,
        4.122% 81.131%,
        3.533% 77.041%,
        3.533% 77.041%,
        2.93% 72.176%,
        2.373% 66.846%,
        1.869% 61.174%,
        1.425% 55.284%,
        1.047% 49.298%,
        0.743% 43.34%,
        0.519% 37.533%,
        0.383% 31.999%,
        0.34% 26.862%,
        0.399% 22.245%,
        0.399% 22.245%,
        0.465% 19.814%,
        0.532% 17.809%,
        0.606% 16.173%,
        0.696% 14.847%,
        0.808% 13.776%,
        0.951% 12.9%,
        1.13% 12.162%,
        1.354% 11.505%,
        1.63% 10.872%,
        1.966% 10.204%,
        1.966% 10.204%,
        3.138% 8.592%,
        4.809% 7.175%,
        7.031% 5.94%,
        9.857% 4.875%,
        13.34% 3.967%,
        17.533% 3.202%,
        22.488% 2.569%,
        28.257% 2.054%,
        34.894% 1.644%,
        42.45% 1.327%,
        42.45% 1.327%,
        48.741% 1.178%,
        54.495% 1.163%,
        59.781% 1.29%,
        64.666% 1.563%,
        69.217% 1.99%,
        73.5% 2.576%,
        77.585% 3.327%,
        81.538% 4.249%,
        85.426% 5.349%,
        89.316% 6.633%,
        89.316% 6.633%,
        91.136% 7.356%,
        92.712% 8.135%,
        94.062% 8.993%,
        95.206% 9.955%,
        96.161% 11.046%,
        96.947% 12.29%,
        97.583% 13.711%,
        98.087% 15.335%,
        98.478% 17.185%,
        98.775% 19.286%,
        98.775% 19.286%,
        98.941% 21.545%,
        99.111% 25.433%,
        99.276% 30.563%,
        99.43% 36.551%,
        99.566% 43.01%,
        99.675% 49.555%,
        99.753% 55.8%,
        99.79% 61.359%,
        99.78% 65.847%,
        99.715% 68.878%,
        99.715% 68.878%,
        99.608% 71.107%,
        99.468% 72.936%,
        99.26% 74.423%,
        98.946% 75.627%,
        98.49% 76.607%,
        97.857% 77.422%,
        97.009% 78.13%,
        95.912% 78.791%,
        94.527% 79.463%,
        92.821% 80.204%,
        92.821% 80.204%,
        87.133% 82.553%,
        81.336% 84.813%,
        75.478% 86.971%,
        69.611% 89.011%,
        63.786% 90.918%,
        58.051% 92.679%,
        52.459% 94.278%,
        47.059% 95.701%,
        41.901% 96.933%,
        37.037% 97.959%,
        37.037% 97.959%,
        34.884% 98.287%,
        32.295% 98.536%,
        29.403% 98.709%,
        26.346% 98.805%,
        23.259% 98.827%,
        20.276% 98.775%,
        17.534% 98.651%,
        15.169% 98.456%,
        13.315% 98.191%,
        12.108% 97.857%
    );
}

/* How to Play Timeline Steps */
.timeline-steps {
    position: relative;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    content: '';
    width: 2px;
    background-color: #4285f4;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-step {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: #4285f4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.step-content {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
}

.step-right .step-content {
    margin-left: auto;
}

.step-left .step-content {
    margin-right: auto;
}

.step-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.step-image {
    display: flex;
    justify-content: center;
}

.step-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Add arrow indicators for timeline steps */
.step-right .step-content:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.step-left .step-content:before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

/* Add connecting lines from timeline to content boxes */


/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    
    .step-number {
        left: 20px;
        transform: none;
    }
    
    .step-content {
        width: calc(100% - 60px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }
    
    .step-left .step-content:before,
    .step-right .step-content:before {
        left: -10px;
        right: auto;
        border-right: 10px solid white;
        border-left: none;
    }
    
    .step-right .step-number:before,
    .step-left .step-number:before {
        left: 100%;
        margin-left: 10px;
        right: auto;
        margin-right: 0;
    }
}

.step-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #4285f4;
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #666;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #4285f4;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
    padding: 0 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease, transform 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0;
    opacity: 1;
    transform: translateY(0);
}

.faq-answer p {
    padding: 15px 0 20px;
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.tip-card {
    text-align: center;
    padding: 0;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.tip-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Rating Section */
.rating-section {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.rating-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #f9f9f9;
}

.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 1.5rem;
    color: #ffd700;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Footer */
.footer {
    background: #f9f9f9;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}
.footer-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-logo p {
    color: #666;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4285f4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-description {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .game-steps {
        gap: 40px;
    }
    
    .step-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .step-image img {
        max-width: 100%;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}