@import url("https://fonts.googleapis.com/css2?family=Rye&display=swap");

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050301;
}

body {
    font-family: "Rye", "Rockwell Extra Bold", Georgia, serif;
    color: #2b1608;
}

a {
    color: inherit;
    text-decoration: none;
}

.stage {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 100vw;
    height: 56.25vw;
    max-height: 100vh;
    max-width: 177.777vh;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.site-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.page-entrada .site-bg {
    background-image: url("../assets/FUNDO COM ABAS.png");
}

.page-inicio .site-bg {
    background-image: url("../assets/INICIO.png");
}

.page-regras .site-bg {
    background-image: url("../assets/REGRAS.png");
}

.page-discord .site-bg {
    background-image: url("../assets/DISCORD.png");
}

.page-redes .site-bg {
    background-image: url("../assets/REDES.png");
}

.page-loja .site-bg {
    background-image: url("../assets/LOJA.png");
}

/* Área útil abaixo do logo */
.paper-content {
    position: absolute;
    z-index: 10;
    left: 22%;
    top: 40%;
    width: 38%;
    height: 43%;
    text-align: center;
    overflow-y: auto;
    padding: 0 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 40, 10, 0.35) transparent;
}

.paper-content::-webkit-scrollbar {
    width: 5px;
}

.paper-content::-webkit-scrollbar-thumb {
    background: rgba(80, 40, 10, 0.35);
    border-radius: 10px;
}

.content {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeInContent 0.35s ease both;
}

.entrada-content {
    padding-top: 8%;
}

.inicio-content {
    padding-top: 0;
}

.regras-content,
.discord-content,
.redes-content,
.loja-content {
    padding-top: 2%;
}

h1 {
    font-size: clamp(24px, 1.9vw, 42px);
    margin: 0 0 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(13px, 0.8vw, 18px);
    text-transform: uppercase;
}

p,
li {
    font-size: clamp(11px, 0.72vw, 15px);
    line-height: 1.42;
}

.intro-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: justify;
}

.intro-text p {
    margin: 0 0 7px;
}

.signature {
    margin-top: 8px;
    text-align: right;
    font-size: clamp(10px, 0.68vw, 14px);
}

.signature span {
    font-size: clamp(9px, 0.6vw, 12px);
}

.rules-divider {
    width: 260px;
    max-width: 80%;
    margin: 8px auto 14px;
    text-align: center;
    color: #3a1d0b;
    font-size: 17px;
    position: relative;
}

.rules-divider::before,
.rules-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #8a5b28;
}

.rules-divider::before {
    left: 0;
}

.rules-divider::after {
    right: 0;
}

.actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2a1608;
    color: #f5d9a0;
    border: 2px solid #8a5b28;
    text-transform: uppercase;
    box-shadow: 0 3px 0 #000;
    cursor: pointer;
    font-size: clamp(10px, 0.65vw, 13px);
    transition: 0.2s ease;
}

.btn:hover {
    background: #d0a05a;
    color: #251105;
    transform: translateY(-2px);
}

.btn.secondary {
    background: #e6c996;
    color: #2a1608;
}

.rules-list {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.rules-list p {
    margin: 0 0 12px;
}

.social-box {
    max-width: 360px;
    margin: 14px auto 0;
    text-align: center;
    border: 2px solid #8a5b28;
    padding: 12px;
    background: rgba(235, 205, 150, 0.38);
}

.social-box a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid rgba(43, 22, 8, 0.28);
    color: #2b1608;
    transition: 0.2s ease;
}

.social-box a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-box a:last-child {
    border-bottom: none;
}

.coming-soon {
    margin-top: 12px;
    text-align: center;
}

.coming-soon h2 {
    margin: 0 0 8px;
    font-size: clamp(11px, 0.75vw, 15px);
    letter-spacing: 2px;
}

.coming-soon img {
    width: 240px;
    max-width: 70%;
    max-height: 125px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #8a5b28;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Abas clicáveis invisíveis */
.side-tabs {
    position: absolute;
    z-index: 30;
    right: 7.9%;
    top: 14.6%;
    width: 20.5%;
    height: 74%;
}

.side-tabs .tab {
    position: absolute;
    left: 0;
    width: 100%;
    height: 15%;
    display: block;
    background: transparent;
    border-radius: 18px;
}

.tab-inicio {
    top: 0%;
}

.tab-regras {
    top: 20.8%;
}

.tab-discord {
    top: 42.7%;
}

.tab-redes {
    top: 65.4%;
}

.tab-loja {
    top: 87.4%;
}

/* Hover discreto, sem luz exagerada */
.side-tabs .tab:hover {
    background: rgba(255, 216, 130, 0.04);
}

.side-tabs .tab.active {
    pointer-events: none;
}

.footer-admin {
    position: absolute;
    z-index: 25;
    bottom: 1.3%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #caa76c;
    font-size: clamp(10px, 0.65vw, 13px);
    line-height: 1.35;
    text-shadow: 1px 1px 4px #000;
}

.reserved-link {
    color: #f3d39a;
    text-decoration: underline;
    font-weight: bold;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login/Admin */
.admin-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../assets/FUNDO SEM ABAS.png") center center / cover no-repeat fixed;
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 360px;
    max-width: 90vw;
    padding: 22px 24px;
    text-align: center;
    background: rgba(235, 205, 150, 0.94);
    border: 2px solid #8a5b28;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.login-logo {
    width: 145px;
    display: block;
    margin: 0 auto 14px;
}

.login-card h1 {
    font-size: 30px;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.login-card p {
    font-size: 13px;
    margin: 0 0 10px;
}

.login-form {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    text-align: left;
}

.login-form label {
    font-size: 12px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #8a5b28;
    background: #f3ddb3;
    color: #2b1608;
    font-family: inherit;
}

.login-form .btn {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    color: #5b2b09;
    text-decoration: underline;
    font-size: 13px;
}

.error-box {
    margin: 12px 0;
    padding: 10px;
    background: #7b1e12;
    color: #fff;
    font-size: 12px;
}

.secret-page {
    min-height: 100vh;
    display: block;
    position: relative;
    background: url("../assets/FUNDO SEM ABAS.png") center center / cover no-repeat fixed;
}

.secret-wrapper {
    position: absolute;
    left: 38.5%;
    top: 33%;
    width: 30%;
    max-width: 520px;
    min-width: 300px;
}

.secret-card {
    width: 100%;
    padding: 18px 20px;
    text-align: center;
    background: rgba(235, 205, 150, 0.90);
    border: 2px solid #8a5b28;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* Mobile */
.mobile-logo {
    display: none;
}

@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        min-height: 100%;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        background: #050301;
    }

    body {
        padding: 0;
    }

    .stage {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        min-height: 100vh;
        height: auto;
        max-width: none;
        max-height: none;
        transform: none;
        overflow: visible;
        padding-bottom: 20px;
    }

    .site-bg {
        position: fixed;
        inset: 0;
        background-image: url("../assets/FUNDO SEM ABAS.png") !important;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .site-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
    }

    .mobile-logo {
        position: relative;
        z-index: 60;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 18px 14px 8px;
    }

    .mobile-logo img {
        width: 150px;
        max-width: 55vw;
        height: auto;
        display: block;
    }

    .side-tabs {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        height: auto;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
        padding: 10px 14px 14px;
    }

    .side-tabs .tab {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(35, 18, 7, 0.94);
        border: 2px solid #9b6a32;
        color: #f5d9a0;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
    }

    .side-tabs .tab::after {
        font-size: 13px;
        letter-spacing: 1px;
        text-align: center;
    }

    .tab-inicio::after { content: "INÍCIO"; }
    .tab-regras::after { content: "REGRAS"; }
    .tab-discord::after { content: "DISCORD"; }
    .tab-redes::after { content: "REDES"; }
    .tab-loja::after { content: "LOJA"; }

    .side-tabs .tab-loja {
        grid-column: 1 / -1;
    }

    .side-tabs .tab.active,
    .side-tabs .tab:hover {
        background: #ead3a4;
        color: #2b1608;
    }

    .paper-content {
        position: relative;
        z-index: 20;
        left: auto;
        top: auto;
        width: calc(100% - 28px);
        height: auto;
        max-height: none;
        margin: 8px auto 20px;
        padding: 24px 16px 28px;
        background: rgba(235, 205, 150, 0.94);
        border: 2px solid #8a5b28;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
        overflow: visible;
    }

    .entrada-content,
    .inicio-content,
    .regras-content,
    .discord-content,
    .redes-content,
    .loja-content {
        padding-top: 0;
    }

    h1 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 17px;
    }

    p,
    li {
        font-size: 14px;
        line-height: 1.55;
    }

    .intro-text {
        text-align: left;
    }

    .intro-text p {
        margin-bottom: 10px;
    }

    .signature {
        font-size: 13px;
    }

    .signature span {
        font-size: 12px;
    }

    .rules-divider {
        max-width: 90%;
        margin: 10px auto 16px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 18px;
    }

    .btn {
        width: 100%;
        padding: 13px 16px;
        font-size: 13px;
        text-align: center;
    }

    .social-box {
        max-width: 100%;
        padding: 10px;
    }

    .social-box a {
        padding: 13px 10px;
        font-size: 14px;
    }

    .coming-soon img {
        width: 100%;
        max-width: 280px;
        max-height: none;
    }

    .footer-admin {
        position: relative;
        z-index: 30;
        bottom: auto;
        padding: 14px 10px 22px;
        font-size: 11px;
    }
}

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

    .side-tabs {
        grid-template-columns: 1fr;
    }

    .side-tabs .tab-loja {
        grid-column: auto;
    }

    h1 {
        font-size: 24px;
    }

    p,
    li {
        font-size: 13px;
    }

    .paper-content {
        width: calc(100% - 20px);
        padding: 20px 13px 24px;
    }
}