/* =========================================================
   PORTAL DEL GREMIO DE GARDENIA
   ========================================================= */

/* ---------------------------------------------------------
   VARIABLES
   --------------------------------------------------------- */

:root {
    --ivory: #fffdf8;
    --ivory-soft: #f7f2e8;
    --paper: #f4ead5;

    --navy-950: #06182d;
    --navy-900: #0b2545;
    --navy-800: #123b68;
    --navy-700: #1a5187;

    --blue-light: #66a9e8;

    --gold-700: #8c6427;
    --gold-600: #ad7d31;
    --gold-500: #c99b46;
    --gold-300: #ead39c;
    --gold-100: #f7ebc9;

    --text-main: #18283b;
    --text-soft: #625a4d;

    --border-gold:
        rgba(173, 125, 49, 0.38);

    --shadow-soft:
        0 8px 22px
        rgba(6, 24, 45, 0.10);

    --shadow-card:
        0 12px 26px
        rgba(6, 24, 45, 0.14);

    --shadow-strong:
        0 18px 42px
        rgba(6, 24, 45, 0.20);

    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-small: 12px;

    --max-width: 1600px;
}

/* ---------------------------------------------------------
   REINICIO
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.95),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #e9e4d8 0%,
            #f4f0e7 100%
        );

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;
}

/* Títulos */

h1,
h2,
h3,
.guild-title,
.portal-card h3,
.panel h3,
.player-info h3,
.rank-title,
.news-link {
    font-family:
        "Cinzel",
        Georgia,
        serif;
}

/* ---------------------------------------------------------
   PORTAL
   --------------------------------------------------------- */

.portal {
    width: min(96%, var(--max-width));
    margin: 24px auto;

    overflow: hidden;

    border:
        1px solid var(--border-gold);

    border-radius:
        var(--radius-large);

    background: var(--ivory);

    box-shadow:
        var(--shadow-strong);
}

/* ---------------------------------------------------------
   CABECERA
   --------------------------------------------------------- */

.hero {
    position: relative;

    min-height: 345px;

    overflow: hidden;

    border-bottom:
        3px solid var(--gold-500);

    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 248, 0.93) 0%,
            rgba(255, 253, 248, 0.67) 49%,
            rgba(255, 253, 248, 0.93) 100%
        ),
        url("/assets/backgrounds/city_background.png")
        center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03),
            rgba(11, 37, 69, 0.08)
        );
}

.hero-content {
    position: relative;
    z-index: 1;

    min-height: 345px;

    display: grid;

    grid-template-columns:
        310px
        minmax(0, 1fr)
        350px;

    align-items: center;

    gap: 24px;

    padding: 30px 36px;
}

/* Logo */

.guild-logo {
    width: 300px;
    height: 310px;

    justify-self: center;

    background:
        url("/assets/logos/gremio_logo_blue.png")
        center / contain no-repeat;

    filter:
        drop-shadow(
            0 15px 14px
            rgba(6, 24, 45, 0.25)
        );
}

.guild-logo::before,
.guild-logo::after {
    display: none;
}

/* Título */

.guild-title {
    text-align: center;
}

.guild-title h1 {
    color: var(--navy-900);

    font-size:
        clamp(3.2rem, 5.3vw, 5.4rem);

    font-weight: 600;

    line-height: 0.98;

    letter-spacing: 0.025em;

    text-transform: uppercase;

    text-shadow:
        0 2px 0
        rgba(255, 255, 255, 0.92);
}

.guild-title p {
    margin-top: 20px;

    color: var(--gold-700);

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 1rem;

    font-weight: 500;

    letter-spacing: 0.19em;

    text-transform: uppercase;
}

.guild-title h2 {
    display: inline-block;

    margin-top: 28px;

    padding: 9px 28px;

    color: var(--navy-900);

    border-top:
        1px solid var(--gold-500);

    border-bottom:
        1px solid var(--gold-500);

    font-size: 1.3rem;

    font-weight: 600;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}

/* Bendición */

/* Bendición oficial */

.guild-message {
    position: relative;

    min-height: 255px;

    display: flex;
    flex-direction: column;

    padding: 22px 22px 16px;

    overflow: hidden;

    text-align: center;

    border:
        1px solid var(--border-gold);

    border-radius:
        var(--radius-medium);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.97),
            rgba(247, 239, 221, 0.96)
        );

    box-shadow:
        var(--shadow-soft);
}

.guild-message::before {
    content: "";

    position: absolute;
    inset: 8px;

    pointer-events: none;

    border:
        1px solid rgba(201, 155, 70, 0.20);

    border-radius: 12px;
}

.guild-message h3 {
    position: relative;
    z-index: 2;

    margin-bottom: 12px;

    color: var(--navy-900);

    font-family:
        "Marcellus",
        Georgia,
        serif;

    font-size: 0.93rem;

    font-weight: 400;

    line-height: 1.35;

    letter-spacing: 0.035em;

    text-transform: uppercase;
}

.guild-message p {
    position: relative;
    z-index: 2;

    color: var(--text-soft);

    font-family:
        "Lato",
        Arial,
        sans-serif;

    font-size: 0.8rem;

    line-height: 1.65;

    font-style: italic;
}

.guild-message-footer {
    position: relative;
    z-index: 2;

    flex: 1;

    min-height: 120px;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    margin-top: 4px;
}

/* Firma */

.guild-message-signature {
    position: absolute;

    left: 50%;
    bottom: 10px;

    width: 340px;
    height: 110px;

    display: block;

    object-fit: contain;

    transform:
        translateX(-54%)
        scale(1.28);

    transform-origin: center;

    opacity: 0.98;
}

/* Sello superpuesto */

.guild-message-seal {
    position: absolute;

    right: 2px;
    bottom: 3px;

    width: 82px;
    height: 82px;

    display: block;

    object-fit: contain;

    transform: rotate(5deg);

    filter:
        drop-shadow(
            0 7px 8px
            rgba(62, 38, 11, 0.25)
        );
}
/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */

.content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 24px;

    padding: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 248, 0.98),
            rgba(246, 241, 231, 0.98)
        );
}

/* ---------------------------------------------------------
   TARJETAS
   --------------------------------------------------------- */

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    align-content: start;
}

.portal-card {
    position: relative;

    min-height: 410px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: space-between;

    padding:
        18px 18px 16px;

    text-align: center;

    cursor: pointer;

    border:
        1px solid var(--border-gold);

    border-radius:
        var(--radius-medium);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 242, 229, 0.98)
        );

    box-shadow:
        var(--shadow-soft);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.portal-card::before {
    content: "";

    position: absolute;
    inset: 8px;

    pointer-events: none;

    border:
        1px solid
        rgba(201, 155, 70, 0.18);

    border-radius: 13px;
}

.portal-card::after {
    content: "✦";

    position: absolute;

    top: 8px;
    left: 12px;

    color:
        rgba(173, 125, 49, 0.45);

    font-size: 0.8rem;
}

.portal-card:hover,
.portal-card:focus-visible {
    transform:
        translateY(-7px);

    border-color:
        var(--gold-500);

    box-shadow:
        var(--shadow-card);

    outline: none;
}

.portal-card-content {
    position: relative;
    z-index: 1;

    width: 100%;
}

/* Imagen de tarjeta */

.portal-card-icon {
    width: 100%;
    height: 185px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 4px;
}

.portal-card-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.portal-card:hover
.portal-card-icon img,
.portal-card:focus-visible
.portal-card-icon img {
    transform:
        translateY(-5px)
        scale(1.045);

    filter:
        drop-shadow(
            0 10px 10px
            rgba(6, 24, 45, 0.16)
        );
}

/* Separador */

.portal-card-decoration {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 8px;

    width: 90%;

    margin: 0 auto 5px;

    color: var(--gold-500);

    font-size: 0.75rem;
}

.portal-card-decoration
span:first-child,
.portal-card-decoration
span:last-child {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold-300),
            transparent
        );
}

/* Textos de tarjeta */

.portal-card h3 {
    color: var(--navy-900);

    font-size: 1.24rem;

    font-weight: 600;

    letter-spacing: 0.025em;

    text-transform: uppercase;
}

.portal-card p {
    max-width: 240px;

    margin: 11px auto 0;

    color: var(--text-soft);

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 0.82rem;

    font-weight: 400;

    line-height: 1.55;
}

/* Botón inferior */

.portal-card-button {
    position: relative;
    z-index: 1;

    width: 52px;
    height: 34px;

    display: grid;

    place-items: center;

    margin-top: 17px;

    color: var(--gold-300);

    border:
        1px solid var(--gold-600);

    border-radius:
        10px 10px 0 0;

    background:
        linear-gradient(
            180deg,
            var(--navy-700),
            var(--navy-950)
        );

    box-shadow:
        0 5px 12px
        rgba(6, 24, 45, 0.22);

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.portal-card:hover
.portal-card-button {
    color: white;

    transform:
        translateX(4px);
}

/* ---------------------------------------------------------
   BARRA LATERAL
   --------------------------------------------------------- */

.sidebar {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.panel {
    position: relative;

    padding: 22px;

    overflow: hidden;

    border:
        1px solid var(--border-gold);

    border-radius:
        var(--radius-medium);

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 248, 0.98),
            rgba(247, 239, 222, 0.98)
        );

    box-shadow:
        var(--shadow-soft);
}

.panel::before {
    content: "";

    position: absolute;
    inset: 7px;

    pointer-events: none;

    border:
        1px solid
        rgba(201, 155, 70, 0.16);

    border-radius: 12px;
}

.panel-rank {
    color: white;

    border-color:
        rgba(201, 155, 70, 0.65);

    background:
        linear-gradient(
            rgba(7, 28, 54, 0.18),
            rgba(4, 20, 39, 0.34)
        ),
        url("/assets/textures/paper_texture_dark.png")
        center / cover no-repeat;

    box-shadow:
        inset 0 0 0 1px
        rgba(234, 211, 156, 0.10),
        0 10px 24px
        rgba(6, 24, 45, 0.18);
}

.panel h3 {
    position: relative;
    z-index: 1;

    margin-bottom: 18px;

    color: var(--navy-900);

    font-size: 1rem;

    font-weight: 600;

    text-align: center;

    letter-spacing: 0.045em;

    text-transform: uppercase;
}

.panel-rank h3 {
    color: var(--gold-300);
}

/* Rango */

.rank-content {
    position: relative;
    z-index: 1;

    text-align: center;
}

.rank-image {
    width: 155px;
    height: 155px;

    display: block;

    object-fit: contain;

    margin: -5px auto 0;

    filter:
        drop-shadow(
            0 10px 10px
            rgba(0, 0, 0, 0.25)
        );
}

.rank-title {
    margin-top: -4px;

    color: var(--gold-300);

    font-size: 1.13rem;

    font-weight: 600;
}

.progress {
    width: 100%;
    height: 11px;

    margin-top: 17px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.30);

    border-radius: 999px;

    background:
        rgba(0, 0, 0, 0.26);
}

.progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #2872b6,
            #88c6ff
        );
}

.rank-progress-text {
    margin-top: 8px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 0.72rem;
}

.rank-next {
    margin-top: 3px;

    color: var(--gold-300);

    font-size: 0.7rem;
}

/* Noticias */

.news-item {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        16px 1fr;

    gap: 8px;

    padding: 13px 0;

    border-bottom:
        1px solid
        rgba(173, 125, 49, 0.22);

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 0.79rem;

    line-height: 1.55;
}

.news-symbol {
    color: var(--gold-600);

    font-size: 0.65rem;

    padding-top: 4px;
}

.news-date {
    display: block;

    margin-top: 5px;

    color: var(--gold-700);

    font-size: 0.68rem;

    text-align: right;
}

.news-link {
    position: relative;
    z-index: 1;

    width: 100%;

    margin-top: 13px;

    padding: 8px;

    color: var(--navy-800);

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 0.78rem;

    font-weight: 600;
}

.news-link:hover {
    color: var(--gold-700);
}

/* Mensaje diario */

.panel-message {
    min-height: 270px;
}

.daily-message {
    position: relative;
    z-index: 1;

    color: var(--text-soft);

    text-align: center;

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    font-size: 0.82rem;

    line-height: 1.7;

    font-style: italic;
}

/* Firma de Nymeria */

.daily-signature-wrapper {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 115px;

    margin-top: 5px;

    overflow: visible;

    display: flex;

    align-items: center;

    justify-content: center;
}

.daily-signature {
    width: 420px;
    max-width: 145%;

    height: 120px;

    display: block;

    object-fit: contain;

    transform:
        scale(1.32);

    transform-origin: center;

    opacity: 0.98;
}

/* ---------------------------------------------------------
   PIE DE PÁGINA
   --------------------------------------------------------- */

.footer {
    display: grid;

    grid-template-columns:
        300px 1fr;

    gap: 22px;

    align-items: center;

    padding: 17px 27px;

    color: white;

    border-top:
        3px solid var(--gold-500);

    background:
        linear-gradient(
            180deg,
            var(--navy-800),
            var(--navy-950)
        );
}

/* Jugador */

.player {
    display: flex;

    align-items: center;

    gap: 14px;
}

.avatar {
    width: 72px;
    height: 72px;

    flex: 0 0 72px;

    display: block;

    object-fit: cover;

    border:
        3px solid var(--gold-500);

    border-radius: 50%;

    background: var(--navy-950);

    box-shadow:
        0 0 0 4px
        rgba(255, 255, 255, 0.05);
}

.player-info h3 {
    color: var(--gold-300);

    font-size: 1rem;

    font-weight: 600;
}

.player-info > p {
    color:
        rgba(255, 255, 255, 0.80);

    font-size: 0.78rem;
}

.player-experience {
    margin-top: 7px;
}

.player-experience-bar {
    width: 120px;
    height: 7px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius: 999px;

    background:
        rgba(0, 0, 0, 0.25);
}

.player-experience-bar span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #2872b6,
            #87c8ff
        );
}

.player-experience small {
    color:
        rgba(255, 255, 255, 0.68);

    font-size: 0.64rem;
}

/* Recursos */

.resources {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 10px;
}

.resource-item {
    min-width: 104px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px 9px;

    border:
        1px solid
        rgba(234, 211, 156, 0.18);

    border-radius:
        var(--radius-small);

    background:
        rgba(255, 255, 255, 0.045);
}

.resource-image-wrapper {
    width: 40px;
    height: 43px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: visible;
}

.resource-item img {
    width: 38px;
    height: 38px;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 4px 4px
            rgba(0, 0, 0, 0.25)
        );
}

/* La FA blanca tiene más espacio vacío en su archivo */
.resource-fa-white img {
    width: 64px;
    height: 64px;

    transform:
        scale(1.35);
}

/* Moneda */

.resource-gold img {
    width: 45px;
    height: 45px;
}

/* Números y etiquetas */

.resource-data strong {
    display: block;

    color: white;

    font-size: 0.94rem;

    font-weight: 600;

    line-height: 1.1;
}

.resource-data span {
    display: block;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.58rem;

    font-weight: 500;

    line-height: 1.2;

    text-transform: uppercase;
}

/* ---------------------------------------------------------
   MENSAJE TEMPORAL
   --------------------------------------------------------- */

.temporary-message {
    position: fixed;

    z-index: 9999;

    left: 50%;
    bottom: 28px;

    padding: 14px 22px;

    color: white;

    border:
        1px solid var(--gold-500);

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            var(--navy-700),
            var(--navy-950)
        );

    box-shadow:
        0 14px 30px
        rgba(6, 24, 45, 0.30);

    font-size: 0.88rem;

    text-align: center;

    opacity: 0;

    transform:
        translateX(-50%)
        translateY(12px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.temporary-message-visible {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1200px) {

    .hero-content {
        grid-template-columns:
            260px 1fr;
    }

    .guild-message {
        grid-column: 1 / -1;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .resources {
        justify-content: flex-start;
    }
}

/* ---------------------------------------------------------
   CELULAR
   --------------------------------------------------------- */

@media (max-width: 720px) {

    .portal {
        width: 100%;

        margin: 0;

        border-radius: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;

        padding: 24px 18px;
    }

    .guild-logo {
        width: 250px;
        height: 270px;
    }

    .guild-title h1 {
        font-size: 2.75rem;
    }

    .guild-title p {
        font-size: 0.75rem;
    }

    .guild-title h2 {
        font-size: 1rem;
    }

    .guild-message {
        padding: 20px;
    }

    .content {
        padding: 18px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 390px;
    }

    .sidebar {
        display: flex;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .resources {
        justify-content: flex-start;
    }

    .resource-item {
        min-width: 120px;

        flex:
            1 1 120px;
    }

    .daily-signature {
        max-width: 125%;

        transform:
            scale(1.15);
    }
}

/* ---------------------------------------------------------
   ACCESIBILIDAD
   --------------------------------------------------------- */

@media (
    prefers-reduced-motion: reduce
) {
    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation:
            none !important;
    }
}/* =========================================================
   AJUSTES VISUALES V2
   Diseñado para verse correctamente con el navegador al 100%
   ========================================================= */

/* Tipografía general */

body {
    font-family: "Lato", Arial, sans-serif;
    font-size: 15px;
}

h1,
h2,
h3,
.guild-title,
.portal-card h3,
.panel h3,
.player-info h3,
.rank-title,
.news-link {
    font-family: "Marcellus", Georgia, serif;
    font-weight: 400;
}

/* Portal más compacto al 100% */

.portal {
    width: min(97%, 1500px);
    margin: 14px auto;
}

/* =========================================================
   CABECERA
   ========================================================= */

.hero {
    min-height: 290px;
}

.hero-content {
    min-height: 290px;

    grid-template-columns:
        300px
        minmax(0, 1fr)
        320px;

    gap: 18px;
    padding: 20px 28px;
}

/*
   El PNG tiene bastante espacio vacío alrededor del emblema.
   Por eso ampliamos la imagen dentro de su propio contenedor.
*/

.guild-logo {
    width: 300px;
    height: 270px;

    background-image:
        url("/assets/logos/gremio_logo_blue.png");

    background-position: center;
    background-repeat: no-repeat;
    background-size: 148% auto;

    filter:
        drop-shadow(
            0 13px 12px
            rgba(6, 24, 45, 0.24)
        );
}

/* Título principal */

.guild-title h1 {
    font-size: clamp(2.85rem, 4.4vw, 4.65rem);
    line-height: 0.94;
    letter-spacing: 0.018em;
}

.guild-title p {
    margin-top: 15px;

    font-family: "Lato", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.18em;
}

.guild-title h2 {
    margin-top: 21px;
    padding: 7px 24px;

    font-size: 1.13rem;
    letter-spacing: 0.04em;
}

/* Bendición */

.guild-message {
    padding: 20px 18px;
}

.guild-message h3 {
    margin-bottom: 11px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.guild-message p {
    font-family: "Lato", Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.65;
}

.guild-message span {
    margin-top: 12px;

    font-family: "Marcellus", Georgia, serif;
    font-size: 1rem;
}

/* =========================================================
   CONTENIDO Y TARJETAS
   ========================================================= */

.content {
    grid-template-columns:
        minmax(0, 1fr)
        310px;

    gap: 18px;
    padding: 20px;
}

.cards {
    gap: 16px;
}

.portal-card {
    min-height: 345px;
    padding: 14px 15px 13px;
}

.portal-card-icon {
    height: 150px;
    margin-bottom: 1px;
}

.portal-card h3 {
    font-size: 1.08rem;
    letter-spacing: 0.015em;
}

.portal-card p {
    max-width: 220px;
    margin-top: 8px;

    font-family: "Lato", Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
}

.portal-card-decoration {
    margin-bottom: 3px;
}

.portal-card-button {
    width: 48px;
    height: 30px;
    margin-top: 12px;
}

/* =========================================================
   PANELES LATERALES
   ========================================================= */

.sidebar {
    gap: 15px;
}

.panel {
    padding: 18px;
}

.panel h3 {
    margin-bottom: 13px;
    font-size: 0.9rem;
}

/* Recuperar la textura azul oscura del concept art */

.panel-rank {
    background:
        linear-gradient(
            rgba(5, 25, 49, 0.84),
            rgba(3, 17, 34, 0.93)
        ),
        url("/assets/textures/paper_texture_dark.png")
        center / cover no-repeat;

    border-color: rgba(201, 155, 70, 0.65);
}

/* Medalla */

.rank-image {
    width: 132px;
    height: 132px;
    margin: -8px auto -4px;
}

.rank-title {
    font-size: 1.02rem;
}

.progress {
    margin-top: 12px;
}

.rank-progress-text {
    font-size: 0.67rem;
}

.rank-next {
    font-size: 0.65rem;
}

/* Noticias */

.news-item {
    padding: 10px 0;

    font-family: "Lato", Arial, sans-serif;
    font-size: 0.72rem;
    line-height: 1.45;
}

.news-date {
    font-size: 0.62rem;
}

.news-link {
    margin-top: 8px;
    font-size: 0.72rem;
}

/* =========================================================
   MENSAJE Y FIRMA
   ========================================================= */

.panel-message {
    min-height: 245px;
}

.daily-message {
    font-family: "Lato", Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.55;
}

.daily-signature-wrapper {
    height: 110px;
    margin-top: 7px;
    overflow: visible;
}

.daily-signature {
    width: 470px;
    max-width: none;
    height: 125px;

    object-fit: contain;

    transform: scale(1.52);
    transform-origin: center;

    opacity: 1;
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

.footer {
    grid-template-columns: 245px 1fr;
    gap: 14px;
    padding: 12px 18px;
}

.avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
}

.player-info h3 {
    font-size: 0.88rem;
}

.player-info > p {
    font-size: 0.67rem;
}

.resources {
    gap: 7px;
}

.resource-item {
    min-width: 96px;
    gap: 5px;
    padding: 5px 7px;
}

.resource-image-wrapper {
    width: 35px;
    height: 38px;
    flex-basis: 35px;
}

.resource-item img {
    width: 34px;
    height: 34px;
}

/* Compensación especial de la Piedra FA blanca */

.resource-fa-white img {
    width: 76px;
    height: 76px;
    transform: scale(1.55);
}

/* Moneda */

.resource-gold img {
    width: 42px;
    height: 42px;
}

.resource-data strong {
    font-size: 0.82rem;
}

.resource-data span {
    font-size: 0.52rem;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 260px 1fr;
    }

    .guild-message {
        grid-column: 1 / -1;
    }

    .cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}