/* =========================================================
   CRÔNICAS DE CALEZ - DOFF
   style.css atualizado
   - Landing page RPG/TCG
   - Página de confirmação
   - Ícones reais das guildas
   - Responsivo/mobile
   ========================================================= */

:root {
    --bg: #05060a;
    --panel: rgba(10, 13, 22, 0.88);
    --panel-solid: #101521;
    --text: #f7f1df;
    --muted: #b9b0a3;
    --gold: #d8b56d;
    --gold-light: #f5d991;
    --red: #b34a32;
    --line: rgba(245, 217, 145, 0.22);
    --danger: #ff7474;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    --radius-lg: 34px;
    --radius-md: 24px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* =========================================================
   FUNDO GLOBAL
   ========================================================= */

.background {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 4, 8, 0.96) 0%, rgba(3, 4, 8, 0.70) 45%, rgba(3, 4, 8, 0.92) 100%),
        url("../img/fundo-bg.png") center center / cover no-repeat;
    z-index: -3;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(216, 181, 109, 0.18), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(120, 45, 35, 0.22), transparent 30%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.fog {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.08), transparent 22%),
        radial-gradient(circle at 30% 90%, rgba(216, 181, 109, 0.08), transparent 25%);
    z-index: -2;
    pointer-events: none;
}

/* =========================================================
   BASE DE PÁGINA
   ========================================================= */

.page {
    width: 100%;
    min-height: 100vh;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout {
    width: 100%;
    max-width: 1240px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
}

.left-panel {
    padding: 28px;
}

.right-panel {
    display: flex;
    justify-content: center;
}

/* =========================================================
   LOGO / TOPO / CHAMADA
   ========================================================= */

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.logo-mark {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5d991, #8b5a24);
    color: #160f08;
    font-weight: 900;
    font-size: 27px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 36px rgba(216, 181, 109, 0.20);
    flex-shrink: 0;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
}

.logo-area h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.03em;
}

h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    color: #fff7df;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.subtitle {
    max-width: 610px;
    margin: 26px 0 0;
    font-size: 19px;
    line-height: 1.65;
    color: #d7cfbf;
}

.subtitle strong {
    color: #fff7df;
}

.reward-card {
    max-width: 560px;
    margin-top: 34px;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(18, 23, 35, 0.76), rgba(8, 10, 16, 0.82));
    border: 1px solid rgba(245, 217, 145, 0.18);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.reward-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.reward-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.reward-card li {
    color: #efe7d3;
    font-size: 15px;
}

.reward-card li::before {
    content: "✦";
    color: var(--gold-light);
    margin-right: 10px;
}

.lore-note {
    max-width: 520px;
    margin-top: 24px;
    color: #a79d8d;
    font-style: italic;
    font-size: 15px;
}

/* =========================================================
   FORMULÁRIO DE CADASTRO
   ========================================================= */

.form-frame {
    width: 100%;
    max-width: 500px;
    position: relative;
    padding: 28px;
    background: linear-gradient(180deg, rgba(15, 18, 29, 0.94), rgba(8, 10, 16, 0.97));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.form-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(245, 217, 145, 0.13);
    border-radius: 26px;
    pointer-events: none;
}

.form-frame::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(216, 181, 109, 0.25), transparent 60%);
    pointer-events: none;
}

.form-frame > * {
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 22px;
}

.event-tag {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(216, 181, 109, 0.12);
    border: 1px solid rgba(216, 181, 109, 0.26);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.form-header h3 {
    margin: 0;
    font-size: 33px;
    color: #fff7df;
}

.form-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.alert {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(255, 116, 116, 0.13);
    border: 1px solid rgba(255, 116, 116, 0.32);
    color: #ffe1e1;
    font-weight: 700;
    font-size: 14px;
}

.form {
    display: grid;
    gap: 15px;
}

.form > label:not(.terms),
.guild-section {
    display: grid;
    gap: 8px;
    color: #fff3d2;
    font-weight: 800;
    font-size: 14px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(245, 217, 145, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    transition: 0.2s ease;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus {
    border-color: rgba(245, 217, 146, 0.68);
    box-shadow: 0 0 0 4px rgba(216, 181, 109, 0.13);
    background: rgba(255, 255, 255, 0.085);
}

.form input::placeholder {
    color: #8d918f;
}

.hidden-field {
    display: none !important;
}

/* =========================================================
   GUILDAS / ÍCONES DE CORES
   ========================================================= */

.guild-title {
    margin: 0;
    color: #fff7df;
    font-weight: 900;
    font-size: 15px;
}

.guild-help {
    margin: -2px 0 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.guild-card {
    min-height: 82px;
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(245, 217, 145, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s ease;
    user-select: none;
}

.guild-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.guild-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 217, 146, 0.42);
    background: rgba(255, 255, 255, 0.07);
}

.guild-card:has(input:checked) {
    border-color: rgba(245, 217, 146, 0.82);
    box-shadow:
        0 0 0 4px rgba(216, 181, 109, 0.12),
        0 12px 26px rgba(0, 0, 0, 0.25);
    background: linear-gradient(180deg, rgba(216, 181, 109, 0.18), rgba(255, 255, 255, 0.05));
}

.guild-card:has(input:checked)::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 9px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--gold-light);
    color: #1a1209;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.guild-icon {
    font-size: 29px;
    line-height: 1;
}

.guild-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    margin-bottom: 2px;
    transition: 0.2s ease;
    filter: drop-shadow(0 0 8px rgba(245, 217, 145, 0.22));
}

.guild-card:has(input:checked) .guild-icon-img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(245, 217, 145, 0.45));
}

.guild-card span:last-child {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.guild-yellow .guild-icon,
.guild-yellow span:last-child {
    color: #ffd86b;
}

.guild-blue .guild-icon,
.guild-blue span:last-child {
    color: #7ebcff;
}

.guild-green .guild-icon,
.guild-green span:last-child {
    color: #80e891;
}

.guild-red .guild-icon,
.guild-red span:last-child {
    color: #ff8a72;
}

.guild-black .guild-icon,
.guild-black span:last-child {
    color: #d6ccff;
}

/* =========================================================
   TERMOS / BOTÃO / NOTAS
   ========================================================= */

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.terms input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.submit-btn {
    width: 100%;
    min-height: 61px;
    border: 0;
    border-radius: 18px;
    margin-top: 4px;
    background: linear-gradient(135deg, #8e5625, #f5d991 45%, #b57a32);
    color: #170f07;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 16px 36px rgba(216, 181, 109, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: 0.2s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(0);
}

.footer-note {
    margin: 3px 0 0;
    color: #a9a091;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   PÁGINA DE SUCESSO / OBRIGADO.PHP
   ========================================================= */

.success-card {
    width: 100%;
    max-width: 780px;
    background: linear-gradient(180deg, rgba(15, 18, 29, 0.94), rgba(8, 10, 16, 0.97));
    border: 1px solid rgba(245, 217, 145, 0.18);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(245, 217, 145, 0.10);
    border-radius: 26px;
    pointer-events: none;
}

.success-card::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(216, 181, 109, 0.24), transparent 62%);
    pointer-events: none;
}

.success-card > * {
    position: relative;
    z-index: 1;
}

.success-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.success-badge {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(216, 181, 109, 0.12);
    border: 1px solid rgba(216, 181, 109, 0.26);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.success-title {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 0.92;
    color: #fff7df;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.success-text {
    margin: 0 0 18px;
    color: #d7cfbf;
    font-size: 17px;
    line-height: 1.7;
}

.success-text strong {
    color: #fff7df;
}

.success-text.small {
    font-size: 15px;
    color: #bfb6a7;
}

.code-box,
.success-code {
    margin: 24px 0;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(245, 217, 145, 0.18);
    background: linear-gradient(180deg, rgba(216, 181, 109, 0.12), rgba(255, 255, 255, 0.035));
    text-align: center;
}

.code-box span,
.success-code span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.code-box strong,
.success-code strong {
    display: block;
    font-size: clamp(28px, 6vw, 46px);
    letter-spacing: 0.08em;
    color: #fff7df;
    overflow-wrap: anywhere;
}

.community-box {
    margin-top: 28px;
}

.community-box h2 {
    margin: 0 0 8px;
    color: #fff7df;
    font-size: 30px;
}

.community-box p {
    margin: 0 0 18px;
    color: #bdb4a8;
    line-height: 1.6;
}

.community-buttons,
.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.community-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(245, 217, 145, 0.14);
    background: rgba(255, 255, 255, 0.045);
    transition: 0.2s ease;
    color: #fff;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    text-decoration: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(245, 217, 145, 0.14);
    background: rgba(255, 255, 255, 0.045);
    color: #fff7df;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    text-align: center;
    transition: 0.2s ease;
}

.community-btn:hover,
.social-buttons a:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 217, 145, 0.34);
    background: rgba(255, 255, 255, 0.07);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216, 181, 109, 0.12);
    font-size: 22px;
    flex-shrink: 0;
}

.community-btn strong {
    display: block;
    font-size: 15px;
    color: #fff7df;
}

.community-btn small {
    display: block;
    margin-top: 3px;
    color: #b4ab9d;
    font-size: 12px;
}

.community-btn.whatsapp .btn-icon {
    background: rgba(37, 211, 102, 0.16);
}

.community-btn.telegram .btn-icon {
    background: rgba(0, 136, 204, 0.16);
}

.community-btn.instagram .btn-icon {
    background: rgba(193, 53, 132, 0.16);
}

.community-btn.site .btn-icon {
    background: rgba(216, 181, 109, 0.16);
}

.email-note {
    margin-top: 26px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 217, 145, 0.08);
}

.email-note p {
    margin: 0 0 8px;
    color: #bdb4a8;
    line-height: 1.6;
    font-size: 14px;
}

.email-note p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 960px) {
    .page {
        padding: 18px;
        align-items: flex-start;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .left-panel {
        padding: 10px 4px 0;
    }

    .logo-area {
        margin-bottom: 24px;
    }

    h1 {
        font-size: 48px;
    }

    .subtitle {
        font-size: 16px;
        margin-top: 18px;
    }

    .reward-card {
        margin-top: 22px;
    }
}

@media (max-width: 700px) {
    .success-card {
        padding: 22px;
        border-radius: 26px;
    }

    .community-buttons,
    .social-buttons {
        grid-template-columns: 1fr;
    }

    .community-btn,
    .social-buttons a {
        padding: 14px;
    }

    .success-text {
        font-size: 15px;
    }

    .community-box h2 {
        font-size: 24px;
    }
}

@media (max-width: 560px) {
    .page {
        padding: 12px;
    }

    .left-panel {
        padding: 6px 4px 0;
    }

    .logo-mark {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 22px;
    }

    .logo-area h2 {
        font-size: 20px;
    }

    .eyebrow {
        font-size: 10px;
    }

    h1 {
        font-size: 39px;
    }

    .subtitle {
        font-size: 15px;
        line-height: 1.55;
    }

    .reward-card,
    .lore-note {
        display: none;
    }

    .form-frame {
        padding: 22px;
        border-radius: 26px;
    }

    .form-header h3 {
        font-size: 28px;
    }

    .guild-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .guild-card {
        min-height: 76px;
    }

    .guild-icon-img {
        width: 31px;
        height: 31px;
    }

    .success-title {
        font-size: 40px;
    }

    .code-box,
    .success-code {
        padding: 18px 14px;
    }

    .code-box strong,
    .success-code strong {
        font-size: 28px;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
    }
}