:root {
    --muted: #aaa39a;
    --gold: #d7b76a;
    --gold-line: rgba(215, 183, 106, 0.32);
    --panel: rgba(12, 12, 12, 0.9);
    --cell: rgba(12, 12, 12, 0.9);
    --line: #292929;
}

body {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.045), transparent 28%),
        linear-gradient(140deg, #050505, #151515 46%, #030303);
}

body::before {
    opacity: 0.18;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.92)),
        url("../img/lobby.webp") center / cover no-repeat;
}

.page {
    min-height: 100vh;
    padding: 38px 24px 54px;
}

@media (min-width: 1100px) {
    .page > .event-panel > .event-content {
        max-width: 1040px;
        margin: 28px auto 32px;
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .page > .event-panel > .event-panel-header {
        padding-left: max(30px, calc((100% - 1040px) / 2 + 24px));
        padding-right: max(30px, calc((100% - 1040px) / 2 + 24px));
    }
}

.reforg {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    border: 1px solid var(--border);
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.88) 75%),
        url("../img/banner.webp") center / cover no-repeat;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
}

.reforg::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(215, 183, 106, 0.12);
    pointer-events: none;
}

.reforg-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    list-style: none;
}

.hero-items li {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(215, 183, 106, 0.22);
    background: radial-gradient(circle, rgba(215, 183, 106, 0.1), rgba(0, 0, 0, 0.55) 70%);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.hero-items li:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.hero-items img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.reforg .eyebrow {
    margin-bottom: 16px;
}

h1 {
    color: #fbf7ef;
    font-family: "Cinzel", serif;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.08rem;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.9);
}

.reforg-copy {
    max-width: 640px;
    margin: 0 auto;
    color: #cfc8be;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

.reforg-lista {
    min-height: 320px;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    justify-content: center;
    gap: 24px;
    margin-top: 34px;
}

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.event-card:hover {
    border-color: var(--gold-line);
    transform: translateY(-3px);
}

.event-card-media {
    display: grid;
    place-items: center;
    height: 190px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at center, rgba(215, 183, 106, 0.16), rgba(0, 0, 0, 0.82) 62%),
        url("../img/banner.webp") center / cover no-repeat;
}

.event-card-media img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.event-card:hover .event-card-media img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 22px 24px 26px;
}

.event-card-tag {
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.event-card-body h2 {
    margin-top: 8px;
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.event-card-body p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.event-card-link {
    display: inline-block;
    margin-top: 18px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold-line);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
}

.event-card:hover .event-card-link {
    border-bottom-color: var(--gold);
}

.summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 1px;
    border: 1px solid var(--border);
    border-top: 0;
    background: var(--border);
}

.summary-item {
    padding: 14px 20px;
    background: var(--cell);
}

.summary-item span,
.event-panel-header span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

.summary-item span {
    color: var(--muted);
}

.summary-item strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    font-family: "Cinzel", serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.event-panel {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.event-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.event-panel-header {
    padding: 26px 30px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 86% 0%, rgba(215, 183, 106, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.012);
}

.event-panel-header span {
    color: var(--gold);
}

.event-panel-header h2 {
    margin-top: 8px;
    font-family: "Cinzel", serif;
    font-size: clamp(1.3rem, 2.4vw, 1.95rem);
    font-weight: 600;
    letter-spacing: 0.03rem;
}

.event-panel-header p {
    max-width: 850px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.event-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.event-block {
    min-width: 0;
    padding: 22px 24px;
    background: var(--cell);
}

.event-block.full {
    grid-column: 1 / -1;
}

.event-block h3 {
    margin-bottom: 14px;
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06rem;
}

.event-block h3:empty {
    display: none;
}

.info-content {
    grid-template-columns: minmax(0, 1fr);
}

.info-block > p {
    color: #c9c2b8;
    font-size: 0.92rem;
    line-height: 1.7;
}

.info-block .warning-list {
    margin-top: 14px;
}

.info-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 30px;
}

.reward-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    list-style: none;
}

.reward-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    color: #d3ccc2;
    font-size: 0.84rem;
    line-height: 1.35;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.reward-list li:hover {
    border-color: rgba(215, 183, 106, 0.3);
    background: rgba(215, 183, 106, 0.05);
}

.reward-list img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.warning-list {
    display: grid;
    gap: 10px;
}

.warning-list p {
    padding: 10px 14px;
    border-left: 2px solid var(--gold);
    background: rgba(215, 183, 106, 0.05);
    color: #c9c2b8;
    font-size: 0.86rem;
    line-height: 1.6;
}

.attendance-content {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.attendance-row {
    display: contents;
}

.attendance-day {
    padding: 16px 10px 18px;
    text-align: center;
}

.attendance-day h3 {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

.attendance-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.attendance-reward img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.attendance-reward span {
    overflow-wrap: anywhere;
    color: #d3ccc2;
    font-size: 0.78rem;
    line-height: 1.3;
}

.letters-event-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    border: 1px solid var(--line);
    background: var(--line);
}

.letters-words {
    display: flex;
    flex-direction: column;
}

.letter-challenge {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    text-align: center;
}

.letter-divider {
    flex: 0 0 1px;
    width: 100%;
    height: 1px;
    background: var(--line);
}

.letters-prizes h3 {
    text-align: center;
}

.letter-tiles {
    display: flex;
    justify-content: center;
    gap: 1px;
    width: 100%;
}

.letter-tiles span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 1 52px;
    border: 1px solid #a83222;
    background: linear-gradient(145deg, #35100b, #090707);
    box-shadow: inset 0 0 8px rgba(180, 25, 10, 0.45);
    color: #ffca20;
    font-family: "Cinzel", serif;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 130, 0, 0.5);
}

.letter-challenge p {
    margin-top: 10px;
    font-size: 0.9rem;
}

.letter-challenge strong {
    color: #ffca20;
}

.creature-combo-content,
.level-challenge-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creature-card,
.halloween-set-part {
    text-align: center;
}

.creature-image,
.halloween-set-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 6px;
}

.creature-image img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.creature-card .warning-list p {
    padding: 8px 10px;
    text-align: center;
}

.halloween-capsule-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 15px;
}

.halloween-capsule-image img {
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    height: auto;
    object-fit: contain;
}

.halloween-set-content {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.halloween-set-part h3 {
    font-size: 0.82rem;
}

.halloween-set-image img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.halloween-set-part .warning-list p {
    padding: 6px 8px;
    border-left: 0;
    border-top: 2px solid var(--gold);
    font-size: 0.8rem;
    text-align: center;
}

.connection-bar-content,
.event-boss-content,
.event-craft-content {
    grid-template-columns: minmax(0, 1fr);
}

.connection-bar-block,
.event-boss-block,
.event-craft-block {
    text-align: center;
}

.connection-bar-image,
.event-boss-image,
.event-craft-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.connection-bar-image img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.event-boss-image img {
    display: block;
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.event-craft-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: contain;
}

.panel-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.panel-pair .event-panel {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.panel-pair .event-content {
    flex: 1;
    grid-template-rows: 1fr auto;
}

.panel-pair .connection-bar-block,
.panel-pair .event-boss-block,
.panel-pair .event-craft-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .attendance-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .halloween-set-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .event-content,
    .letters-event-content,
    .level-challenge-content,
    .creature-combo-content,
    .panel-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel-pair {
        gap: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .halloween-event-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    .reforg {
        min-height: 300px;
        padding: 40px 18px;
    }

    .summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-panel {
        margin-top: 20px;
    }

    .event-panel-header {
        padding: 20px 18px 16px;
    }

    .event-block {
        padding: 18px 14px;
    }

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

    .reward-list li {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 10px 6px;
        font-size: 0.76rem;
        text-align: center;
    }

    .reward-list img {
        width: 40px;
        height: 40px;
    }

    .attendance-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .attendance-day {
        padding: 12px 6px 14px;
    }

    .attendance-reward img {
        width: 38px;
        height: 38px;
    }

    .attendance-reward span {
        font-size: 0.7rem;
    }

    .letter-tiles span {
        width: min(14vw, 46px);
        height: min(14vw, 46px);
        flex-basis: min(14vw, 46px);
        font-size: min(7vw, 24px);
    }

    .halloween-set-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .creature-combo-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .creature-card h3 {
        font-size: 0.76rem;
    }

    .creature-card .warning-list p {
        padding: 6px 4px;
        font-size: 0.72rem;
    }

    .warning-list p {
        font-size: 0.82rem;
    }

    .event-boss-image img {
        width: 180px;
        height: 180px;
    }
}
