/*
**   LUO GAME PAGE
*/

#luo_page article {
    gap: 2rem;
}

#luo_page h1 {
    font-family: "Norse Bold", "Noto Sans", Helvetica, Arial, sans-serif;
    color: #ffd471;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
}

#prototype_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    color: #ffd471;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    border: 1px solid rgba(255, 212, 113, 0.5);
    background: rgba(255, 212, 113, 0.12);
    backdrop-filter: blur(6px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(0, 0, 0, 0.3);
    line-height: 1;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Integrate the badge nicely next to the title in the banner and in-page */
#page_banner_content h1 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

#luo_page h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Responsive tweak for smaller screens */
@media (max-width: 768px) {
    #prototype_badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        letter-spacing: 0.06em;
    }
}

/* Game Container */
#game_container {
    position: relative;
    width: 100%;
    margin: 0 auto 3rem;
}

#game_frame_wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
}

#game_iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Backup Screen */
#game_backup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    border-radius: 12px;
}

.backup_content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.backup_image {
    width: 200px;
    height: auto;
    margin: 0 auto 2rem;
    opacity: 0.6;
    border-radius: 8px;
}

#game_backup h2 {
    color: #ffd471;
    font-size: 2rem;
    margin-bottom: 1rem;
}

#game_backup p {
    color: #969eaf;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Fullscreen Button */
#fullscreen_button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffd471;
    color: #ffd471;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullscreen_button:hover {
    background: rgba(255, 212, 113, 0.2);
}

#game_frame_wrapper:fullscreen {
    padding-bottom: 0;
}

#game_frame_wrapper:fullscreen #fullscreen_button {
    background: rgba(0, 0, 0, 0.9);
}

/* Game Rules Section */
#game_rules {
    max-width: 900px;
    margin: 0 auto;
}

#game_rules h2 {
    color: #ffd471;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: "Norse Bold", "Noto Sans", Helvetica, Arial, sans-serif;
}

.rule_section {
    padding: 1.5rem;
}

.rule_section h3 {
    color: #ffd471;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding: 0;
}

.rule_section h4 {
    color: #ffebcc;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

.rule_section p {
    color: #c9d1d9;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.rule_section ol,
.rule_section ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.rule_section li {
    color: #c9d1d9;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.rule_section strong {
    color: #ffd471;
}

.example {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 212, 113, 0.1);
    border-radius: 4px;
    color: #ffebcc;
    font-style: italic;
}

/* Card Types */
.card_type {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.special_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.special_card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 212, 113, 0.2);
    transition: all 0.3s ease;
}

.special_card:hover {
    transform: translateY(-3px);
    border-color: #ffd471;
    box-shadow: 0 4px 12px rgba(255, 212, 113, 0.2);
}

.card_image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 212, 113, 0.3);
}

.special_card div {
    flex: 1;
}

.special_card strong {
    display: block;
    color: #ffd471;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.special_card p {
    color: #969eaf;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #luo_page {
        padding: 1rem 0.5rem;
    }

    #luo_page h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    #game_frame_wrapper {
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }

    #fullscreen_button {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem;
    }

    #game_rules h2 {
        font-size: 1.8rem;
    }

    .rule_section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .rule_section h3 {
        font-size: 1.4rem;
    }

    .rule_section h4 {
        font-size: 1.1rem;
    }

    .rule_section p,
    .rule_section li {
        font-size: 1rem;
    }

    .special_cards {
        grid-template-columns: 1fr;
    }

    .backup_image {
        width: 150px;
    }

    #game_backup h2 {
        font-size: 1.5rem;
    }

    #game_backup p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #luo_page h1 {
        font-size: 1.5rem;
    }

    #game_rules h2 {
        font-size: 1.5rem;
    }

    .rule_section h3 {
        font-size: 1.2rem;
    }

    .example_box {
        padding: 1rem;
    }

    .example_box p {
        font-size: 1rem;
    }
}
