/* ================================================= */
/* TAVERNA RPG FM — DARK FANTASY · CINEMATIC UI      */
/* ================================================= */

/* ------------------------------------------------- */
/* VARIÁVEIS DA TAVERNA                              */
/* ------------------------------------------------- */

:root {
    --ink:        #0a0604;
    --charcoal:   #14100b;
    --wood:       #221509;
    --wood-2:     #33200f;
    --gold:       #d4a24e;
    --gold-2:     #f0cf8f;
    --bronze:     #8a5a2b;
    --amber:      #e8973c;
    --fire:       #c8442b;
    --fire-2:     #e0483a;
    --text:       #eadfc6;
    --muted:      #b3a283;
    --faint:      #7c6a4e;
    --line-gold:  rgba(212, 162, 78, .28);

    --font-title: "Cinzel", Georgia, serif;
    --font-body:  "Crimson Text", Georgia, serif;
}

/* ------------------------------------------------- */
/* RESET                                            */
/* ------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold-2);
}

button {
    font-family: inherit;
    cursor: pointer;
}

section[id],
header[id] {
    scroll-margin-top: 84px;
}

:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(212, 162, 78, .35);
    color: #fff7e6;
}

/* ------------------------------------------------- */
/* BRASAS (canvas decorativo)                        */
/* ------------------------------------------------- */

.embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ------------------------------------------------- */
/* NAVEGAÇÃO — glassmorphism discreto               */
/* ------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem clamp(1rem, 4vw, 2.5rem);
    background: linear-gradient(180deg, rgba(10, 6, 4, .72), rgba(10, 6, 4, .3));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-gold);
    transition: background .35s ease, box-shadow .35s ease;
}

.nav.scrolled {
    background: rgba(8, 5, 3, .9);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

.nav-brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .16em;
    color: var(--gold-2);
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand em {
    font-style: normal;
    color: var(--amber);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(.3rem, 2vw, 1.4rem);
    list-style: none;
}

.nav-links a {
    position: relative;
    display: block;
    padding: .45rem .2rem;
    font-family: var(--font-title);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .18em;
    color: #d9c9a6;
    text-decoration: none;
    transition: color .25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-2), transparent);
    transition: right .3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--gold-2);
}

.nav-links a:hover::after {
    right: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line-gold);
    border-radius: 10px;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------- */
/* HERO — A ENTRADA DA TAVERNA                      */
/* ------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -8% -6%;
    z-index: -3;
    background: url("../imagens/fundo.png") center 30% / cover no-repeat;
    transform: scale(1.08);
    will-change: transform;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(8, 5, 3, .62) 0%, rgba(8, 5, 3, .25) 40%, rgba(8, 5, 3, .78) 100%),
        radial-gradient(ellipse at 50% 120%, rgba(10, 6, 4, .85) 0%, transparent 55%);
}

.hero-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 3, 2, .55) 100%);
}

.hero-glow {
    position: absolute;
    bottom: -18%;
    left: 50%;
    width: min(920px, 120vw);
    height: 58%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(224, 140, 60, .3), transparent 70%);
    filter: blur(18px);
    animation: fireGlow 7s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-smoke {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(190, 140, 80, .12), transparent 70%);
    filter: blur(46px);
    pointer-events: none;
    animation: smokeFloat 20s ease-in-out infinite alternate;
}

.smoke-a {
    width: 46vw;
    height: 46vw;
    left: -12%;
    bottom: -14%;
}

.smoke-b {
    width: 38vw;
    height: 38vw;
    right: -10%;
    bottom: -8%;
    animation-delay: -10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 780px);
    text-align: center;
    padding: 110px 0 70px;
}

.hero-eyebrow {
    font-family: var(--font-title);
    font-size: clamp(.7rem, 2vw, .85rem);
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .9;
    text-shadow: 0 0 24px rgba(212, 162, 78, .45);
}

.hero-title {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(2.5rem, 8.5vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: .07em;
    color: var(--gold-2);
    text-shadow:
        0 0 34px rgba(212, 162, 78, .35),
        0 6px 22px rgba(0, 0, 0, .85);
    margin-top: .6rem;
}

.hero-title span {
    color: transparent;
    background: linear-gradient(180deg, #ffd9a0 0%, var(--amber) 70%, var(--fire) 130%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 1.4rem auto 1.1rem;
}

.hero-divider-line {
    width: clamp(60px, 14vw, 140px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-divider-line:last-of-type {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-divider-gem {
    color: var(--gold-2);
    font-size: .9rem;
    text-shadow: 0 0 16px rgba(240, 207, 143, .8);
    animation: gemTwinkle 3.4s ease-in-out infinite;
}

.hero-sub {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1.15rem, 3.4vw, 1.65rem);
    color: #e8dcc2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
    margin-bottom: 2.2rem;
}

.hero-hint {
    margin-top: 1.7rem;
    font-size: .95rem;
    font-style: italic;
    color: rgba(217, 201, 166, .75);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

/* Botão portal */
.btn-portal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.7rem;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(.92rem, 2.3vw, 1.12rem);
    letter-spacing: .18em;
    color: #fff7e6;
    background: linear-gradient(180deg, #a8601f 0%, #6e3412 100%);
    border: 1px solid #e0b268;
    border-radius: 14px;
    box-shadow:
        0 0 0 3px rgba(224, 178, 104, .14),
        0 0 32px rgba(232, 120, 60, .35),
        inset 0 1px 0 rgba(255, 220, 170, .35);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.btn-portal-label {
    position: relative;
    z-index: 2;
}

.btn-portal-shine {
    position: absolute;
    top: -60%;
    bottom: -60%;
    left: -30%;
    width: 34%;
    background: linear-gradient(100deg, transparent, rgba(255, 230, 180, .5), transparent);
    transform: skewX(-22deg) translateX(0);
    transition: transform .75s ease;
    z-index: 1;
}

.btn-portal:hover {
    transform: translateY(-3px);
    border-color: var(--gold-2);
    box-shadow:
        0 0 0 4px rgba(224, 178, 104, .22),
        0 0 46px rgba(232, 130, 60, .5),
        inset 0 1px 0 rgba(255, 220, 170, .45);
}

.btn-portal:hover .btn-portal-shine {
    transform: skewX(-22deg) translateX(420%);
}

.btn-portal:active {
    transform: translateY(0) scale(.98);
}

/* Indicador de scroll */
.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(217, 201, 166, .8);
    text-decoration: none;
    z-index: 2;
}

.hero-scroll-text {
    font-family: var(--font-title);
    font-size: .62rem;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.hero-scroll-line {
    position: relative;
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, rgba(212, 162, 78, .5), transparent);
    overflow: hidden;
}

.hero-scroll-line::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--gold-2);
    animation: scrollDrop 2.2s ease-in-out infinite;
}

/* ------------------------------------------------- */
/* ESTRUTURA DAS SEÇÕES                             */
/* ------------------------------------------------- */

.radio,
.apoie,
.parceiro,
.guilda,
.mapa,
.cronicas {
    position: relative;
    padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.1rem, 5vw, 2.5rem);
    overflow: hidden;
}

.radio {
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(120, 60, 20, .22), transparent 70%),
        linear-gradient(180deg, #0d0804 0%, #140d07 50%, #0d0804 100%);
}

.guilda {
    background:
        radial-gradient(ellipse 80% 55% at 50% 100%, rgba(90, 60, 25, .18), transparent 70%),
        linear-gradient(180deg, #0c0703 0%, #120b05 50%, #0c0703 100%);
}

.mapa {
    background:
        radial-gradient(ellipse 85% 60% at 50% 0%, rgba(60, 40, 20, .2), transparent 70%),
        linear-gradient(180deg, #0b0704 0%, #100a05 50%, #0b0704 100%);
}

.apoie {
    background:
        radial-gradient(ellipse 85% 60% at 50% 0%, rgba(150, 90, 28, .17), transparent 70%),
        linear-gradient(180deg, #0b0704 0%, #110a05 50%, #0b0704 100%);
}

.parceiro {
    background:
        radial-gradient(ellipse 80% 55% at 50% 100%, rgba(90, 60, 25, .18), transparent 70%),
        linear-gradient(180deg, #0c0703 0%, #120b05 50%, #0c0703 100%);
}

.cronicas {
    background:
        radial-gradient(ellipse 85% 55% at 50% 100%, rgba(110, 66, 24, .16), transparent 70%),
        linear-gradient(180deg, #0c0703 0%, #120b05 50%, #0c0703 100%);
}

.section-head {
    text-align: center;
    margin-bottom: clamp(2.4rem, 6vw, 3.6rem);
}

.eyebrow {
    font-family: var(--font-title);
    font-size: clamp(.66rem, 1.8vw, .78rem);
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--bronze);
}

.section-title {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(1.7rem, 5vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: .05em;
    color: var(--gold-2);
    text-shadow: 0 4px 22px rgba(0, 0, 0, .7);
    margin: .65rem 0 .8rem;
}

.section-title span {
    color: var(--amber);
}

.section-sub {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    font-style: italic;
}

/* ------------------------------------------------- */
/* RÁDIO — O BARDO ESTÁ TOCANDO                     */
/* ------------------------------------------------- */

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: .4rem;
    padding: .42rem 1rem;
    border: 1px solid rgba(216, 73, 46, .55);
    border-radius: 999px;
    background: rgba(120, 26, 12, .25);
    color: #ffb4a0;
    font-family: var(--font-title);
    font-size: .74rem;
    letter-spacing: .3em;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--fire-2);
    box-shadow: 0 0 0 0 rgba(224, 72, 58, .55);
    animation: livePulse 1.8s ease-out infinite;
}

.radio-stage {
    max-width: 880px;
    margin: 0 auto;
}

/* Moldura da rádio */
.radio-frame {
    position: relative;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(160deg, #3a2415 0%, #241609 60%, #1a0f07 100%);
    border: 1px solid var(--bronze);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .55),
        0 0 64px rgba(212, 162, 78, .12);
}

.radio-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(212, 162, 78, .32);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.radio-banner {
    width: 100%;
    height: auto;
    border-radius: 13px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, .4);
}

/* Cantos ornamentais */
.corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #e0b268;
    z-index: 3;
    pointer-events: none;
}

.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Botão do player */
.btn-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 1.05rem 2.4rem;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(.95rem, 2.4vw, 1.25rem);
    letter-spacing: .14em;
    color: #fff7e6;
    background: linear-gradient(180deg, #c07a24 0%, #8a4c12 100%);
    border: 2px solid #f0d080;
    border-radius: 999px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
    box-shadow:
        0 12px 34px rgba(0, 0, 0, .65),
        0 0 30px rgba(232, 150, 60, .45),
        inset 0 1px 0 rgba(255, 225, 180, .5);
    white-space: nowrap;
    transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}

.btn-player:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: linear-gradient(180deg, #e89c3d 0%, #b06a1a 100%);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, .7),
        0 0 46px rgba(240, 170, 80, .6),
        inset 0 1px 0 rgba(255, 225, 180, .6);
}

.btn-player:active {
    transform: translate(-50%, -50%) scale(.98);
}

/* Equalizador */
.equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 44px;
    margin: 1.7rem auto .5rem;
}

.eq-bar {
    width: 5px;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--gold-2) 0%, var(--amber) 60%, var(--fire) 130%);
    opacity: .55;
    transform-origin: center;
    animation: eqWave 1.15s ease-in-out infinite;
    animation-delay: var(--d);
}

.radio.playing .eq-bar {
    opacity: .95;
    animation-duration: .8s;
}

/* Status da taverna */
.status-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem 1.4rem;
    list-style: none;
    margin: 1.2rem auto 0;
    padding: 0;
}

.status-list li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .9rem;
    border: 1px solid rgba(212, 162, 78, .22);
    border-radius: 999px;
    background: rgba(10, 6, 4, .55);
    font-family: var(--font-title);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .22em;
    color: #d9c9a6;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fire-2);
    box-shadow: 0 0 10px rgba(224, 72, 58, .9);
}

/* Player Caster FM (mesa do bardo) */
.player-container {
    position: relative;
    max-width: 660px;
    margin: 2rem auto 0;
    padding: 16px 16px 10px;
    background: linear-gradient(180deg, #2a1b0e 0%, #160d05 100%);
    border: 1px solid var(--bronze);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 44px rgba(212, 162, 78, .14);
    display: none;
}

.player-container.show {
    display: block;
    animation: riseIn .55s ease;
}

.player-plaque {
    text-align: center;
    font-family: var(--font-title);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--gold);
    margin-bottom: 12px;
}

/* ------------------------------------------------- */
/* GUILDA DA TAVERNA                                */
/* ------------------------------------------------- */

.guild-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    max-width: 1060px;
    margin: 0 auto clamp(3rem, 7vw, 4.5rem);
}

.guild-card {
    position: relative;
    padding: 2.4rem 1.8rem 2.1rem;
    background: linear-gradient(165deg, #241a10 0%, #150e07 100%);
    border: 1px solid var(--bronze);
    border-radius: 16px;
    text-align: center;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.guild-card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(212, 162, 78, .26);
    border-radius: 11px;
    pointer-events: none;
}

.guild-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow:
        0 26px 64px rgba(0, 0, 0, .6),
        0 0 44px rgba(212, 162, 78, .18);
}

.guild-card-seal {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1208;
    border: 1px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(212, 162, 78, .35);
}

.guild-card-seal span {
    transform: rotate(-45deg);
    color: var(--gold-2);
    font-size: .8rem;
    line-height: 1;
}

.guild-card-level {
    display: inline-block;
    padding: .35rem .85rem;
    border: 1px solid rgba(224, 178, 104, .4);
    border-radius: 999px;
    background: rgba(212, 162, 78, .08);
    font-family: var(--font-title);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--gold);
}

.guild-card-crest {
    font-size: 2.8rem;
    line-height: 1;
    margin: 1.1rem 0 .5rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
}

.guild-card-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: .08em;
    color: var(--gold-2);
}

.guild-card-desc {
    max-width: 34ch;
    margin: .8rem auto 1.5rem;
    color: #c8b68f;
    font-size: 1rem;
    line-height: 1.65;
}

.btn-card {
    display: inline-block;
    padding: .72rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(212, 162, 78, .14), rgba(212, 162, 78, .04));
    color: var(--gold-2);
    font-family: var(--font-title);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-decoration: none;
    transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-card:hover {
    background: linear-gradient(180deg, rgba(212, 162, 78, .3), rgba(212, 162, 78, .1));
    box-shadow: 0 0 24px rgba(212, 162, 78, .3);
    transform: translateY(-2px);
}

/* CTA tornar-se parceiro */
.guilda-cta {
    max-width: 860px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--bronze), var(--gold), var(--bronze));
}

.guilda-cta-inner {
    position: relative;
    padding: 2.6rem 1.8rem;
    background: linear-gradient(165deg, #1c1208 0%, #120b05 100%);
    border-radius: 13px;
    text-align: center;
}

.guilda-cta-inner h3 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    letter-spacing: .04em;
    color: var(--gold-2);
}

.guilda-cta-inner p {
    max-width: 46ch;
    margin: .7rem auto 1.6rem;
    color: var(--muted);
    font-style: italic;
}

.btn-guilda {
    display: inline-block;
    padding: .95rem 2.1rem;
    border: 1px solid #f0d080;
    border-radius: 12px;
    background: linear-gradient(180deg, #a8601f 0%, #6e3412 100%);
    box-shadow: 0 0 28px rgba(232, 130, 60, .3), inset 0 1px 0 rgba(255, 220, 170, .35);
    color: #fff7e6;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .22em;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-guilda:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 42px rgba(232, 140, 70, .5), inset 0 1px 0 rgba(255, 220, 170, .45);
}

/* ------------------------------------------------- */
/* MAPA DA TAVERNA                                  */
/* ------------------------------------------------- */

.map-wrap {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(160deg, #33220f 0%, #1c1208 60%, #150d06 100%);
    border: 1px solid var(--bronze);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(212, 162, 78, .1);
}

.map-svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.map-label {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    fill: #d9b36a;
}

.map-label-main {
    font-size: 15px;
    fill: var(--gold-2);
    letter-spacing: 3px;
}

.map-label-water {
    fill: #4f7d8a;
    font-size: 12px;
    letter-spacing: 3px;
}

/* Marcadores de guildas */
.map-guild {
    cursor: pointer;
    outline: none;
}

.map-guild-pulse {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    opacity: .7;
    transform-box: fill-box;
    transform-origin: center;
    animation: guildPulse 3s ease-out infinite;
}

.map-guild-shield {
    fill: url(#shield-g);
    stroke: var(--gold);
    stroke-width: 1.6;
    transition: fill .3s ease, stroke .3s ease, filter .3s ease;
}

.map-guild-label {
    font-family: var(--font-title);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2px;
    fill: #d9b36a;
    transition: fill .3s ease;
}

.map-guild:hover .map-guild-shield,
.map-guild:focus-visible .map-guild-shield {
    fill: #4a2f1a;
    stroke: var(--gold-2);
    filter: drop-shadow(0 0 8px rgba(240, 207, 143, .6));
}

.map-guild:hover .map-guild-label,
.map-guild:focus-visible .map-guild-label {
    fill: var(--gold-2);
}

/* Tooltip do mapa */
.map-tooltip {
    position: absolute;
    z-index: 5;
    width: min(250px, 82vw);
    padding: .9rem 1rem 1rem;
    background: linear-gradient(170deg, #2a1b0e 0%, #140c05 100%);
    border: 1px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .7), 0 0 26px rgba(212, 162, 78, .22);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-100% - 16px));
    transition: opacity .25s ease, visibility .25s ease;
    pointer-events: none;
}

.map-tooltip.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.map-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #1a1008;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.tip-type {
    display: inline-block;
    margin-bottom: .4rem;
    padding: .22rem .6rem;
    border: 1px solid rgba(224, 178, 104, .4);
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--gold);
}

.map-tooltip strong {
    display: block;
    font-family: var(--font-title);
    font-size: .95rem;
    letter-spacing: .06em;
    color: var(--gold-2);
    margin-bottom: .35rem;
}

.map-tooltip p {
    font-size: .88rem;
    line-height: 1.5;
    color: #c8b68f;
    margin-bottom: .8rem;
}

.map-tooltip a {
    display: inline-block;
    padding: .5rem .95rem;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(212, 162, 78, .12);
    color: var(--gold-2);
    font-family: var(--font-title);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-decoration: none;
    transition: background .3s ease;
}

.map-tooltip a:hover {
    background: rgba(212, 162, 78, .28);
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.4rem;
    margin-top: 1rem;
    font-family: var(--font-title);
    font-size: .66rem;
    letter-spacing: .18em;
    color: var(--muted);
}

/* ------------------------------------------------- */
/* APOIE A TAVERNA                                  */
/* ------------------------------------------------- */

.apoie-card {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--bronze), var(--gold), var(--bronze));
}

.apoie-card-inner {
    position: relative;
    padding: clamp(1.8rem, 5vw, 2.8rem);
    background: linear-gradient(165deg, #1c1208 0%, #120b05 100%);
    border-radius: 13px;
}

.apoie-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: clamp(1.6rem, 4vw, 2.6rem);
}

.apoie-message {
    font-size: 1.12rem;
    line-height: 1.7;
    color: #d9c9a6;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.apoie-complement {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.apoie-complement strong {
    color: var(--gold-2);
    font-weight: 700;
}

.apoie-coins {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem 1rem;
    margin-bottom: 1.5rem;
    padding: .65rem 1rem;
    border: 1px dashed rgba(212, 162, 78, .35);
    border-radius: 10px;
    background: rgba(212, 162, 78, .06);
}

.apoie-coins-label {
    font-family: var(--font-title);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--gold);
}

.apoie-coins-hint {
    font-style: italic;
    font-size: .95rem;
    color: #c8b68f;
}

.btn-apoie {
    display: inline-block;
    padding: 1rem 2.2rem;
    border: 1px solid #f0d080;
    border-radius: 12px;
    background: linear-gradient(180deg, #a8601f 0%, #6e3412 100%);
    box-shadow: 0 0 28px rgba(232, 130, 60, .3), inset 0 1px 0 rgba(255, 220, 170, .35);
    color: #fff7e6;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .22em;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-apoie:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 42px rgba(232, 140, 70, .5), inset 0 1px 0 rgba(255, 220, 170, .45);
}

.apoie-note {
    margin-top: 1.1rem;
    font-family: var(--font-title);
    font-size: .6rem;
    letter-spacing: .2em;
    color: var(--faint);
}

.apoie-qr {
    text-align: center;
}

.apoie-qr-link {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--gold);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 30px rgba(212, 162, 78, .18);
    transition: transform .3s ease, box-shadow .3s ease;
}

.apoie-qr-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .6), 0 0 40px rgba(212, 162, 78, .3);
}

.apoie-qr-code {
    width: 176px;
    height: 176px;
    background: #fff;
}

.apoie-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

.apoie-qr-hint {
    margin-top: .9rem;
    font-family: var(--font-title);
    font-size: .62rem;
    letter-spacing: .22em;
    color: var(--muted);
}

/* ------------------------------------------------- */
/* CRÔNICAS DA TAVERNA                              */
/* ------------------------------------------------- */

.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}

.timeline-item {
    position: relative;
    padding: 0 0 2.4rem 54px;
}

.timeline-item:last-child {
    padding-bottom: .4rem;
}

.timeline-dot {
    position: absolute;
    left: 1px;
    top: 2px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #160e07;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-size: .85rem;
    box-shadow: 0 0 20px rgba(212, 162, 78, .35);
}

.timeline-content {
    padding: .9rem 1.2rem 1rem;
    background: linear-gradient(165deg, rgba(38, 26, 14, .7), rgba(20, 12, 6, .6));
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 12px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(212, 162, 78, .5);
    box-shadow: 0 0 30px rgba(212, 162, 78, .12);
}

.timeline-date {
    display: block;
    font-family: var(--font-title);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .28em;
    color: var(--bronze);
    margin-bottom: .3rem;
}

.timeline-content p {
    color: #d9c9a6;
    line-height: 1.6;
}

/* ------------------------------------------------- */
/* RODAPÉ                                           */
/* ------------------------------------------------- */

.footer {
    padding: 4.2rem 1.5rem 2.4rem;
    text-align: center;
    background: linear-gradient(180deg, #0b0603 0%, #070402 100%);
    border-top: 1px solid rgba(212, 162, 78, .18);
}

.footer-brand {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: .2em;
    color: var(--gold-2);
    text-shadow: 0 0 24px rgba(212, 162, 78, .3);
}

.footer-tagline {
    margin: .5rem 0 1rem;
    font-style: italic;
    color: var(--bronze);
}

.footer-desc {
    max-width: 46ch;
    margin: 0 auto 1.8rem;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
}

.footer-copy {
    font-size: .85rem;
    letter-spacing: .14em;
    color: var(--faint);
}

/* ------------------------------------------------- */
/* REVEAL ON SCROLL                                 */
/* ------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------- */
/* ANIMAÇÕES                                        */
/* ------------------------------------------------- */

@keyframes fireGlow {
    from { opacity: .75; transform: translateX(-50%) scale(1); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

@keyframes smokeFloat {
    from { transform: translate(0, 0) scale(1); opacity: .5; }
    to   { transform: translate(6vw, -5vh) scale(1.25); opacity: .9; }
}

@keyframes gemTwinkle {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.22); }
}

@keyframes scrollDrop {
    from { top: -35%; }
    to   { top: 110%; }
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(224, 72, 58, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(224, 72, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 72, 58, 0); }
}

@keyframes eqWave {
    0%, 100% { transform: scaleY(.22); }
    50%      { transform: scaleY(1); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes guildPulse {
    0%   { transform: scale(.85); opacity: .85; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ------------------------------------------------- */
/* RESPONSIVIDADE                                   */
/* ------------------------------------------------- */

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 57px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: .9rem 1.4rem 1.3rem;
        background: rgba(8, 5, 3, .97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(212, 162, 78, .2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .3s ease, transform .3s ease, visibility .3s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        padding: .75rem .3rem;
        border-bottom: 1px solid rgba(212, 162, 78, .08);
    }

    .timeline-item {
        padding-left: 48px;
    }

    .apoie-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .apoie-message {
        max-width: 52ch;
        margin-left: auto;
        margin-right: auto;
    }

    .apoie-coins {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero-content {
        padding-top: 96px;
    }

    .btn-player {
        padding: .85rem 1.4rem;
        letter-spacing: .08em;
    }

    .radio-frame {
        padding: 10px;
        border-radius: 16px;
    }

    .radio-frame::before {
        inset: 5px;
        border-radius: 12px;
    }

    .equalizer {
        height: 36px;
        gap: 4px;
    }

    .eq-bar {
        width: 4px;
    }

    .status-list li {
        font-size: .62rem;
        letter-spacing: .16em;
    }

    .guilda-cta-inner {
        padding: 2.2rem 1.2rem;
    }

    .map-legend {
        font-size: .58rem;
        gap: .4rem 1rem;
    }

    .apoie-card-inner {
        padding: 2rem 1.2rem;
    }

    .apoie-qr-code {
        width: 150px;
        height: 150px;
    }

    .btn-apoie {
        padding: .9rem 1.6rem;
        letter-spacing: .16em;
    }
}

@media (max-width: 400px) {
    .hero-title {
        letter-spacing: .04em;
    }

    .hero-scroll {
        bottom: 18px;
    }

    .guild-card {
        padding: 2.2rem 1.3rem 1.9rem;
    }
}

/* Tooltip como "bottom sheet" em telas pequenas */
@media (max-width: 640px) {
    .map-tooltip.mobile {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 14px;
        width: min(340px, 92vw);
        transform: translateX(-50%);
    }

    .map-tooltip.mobile::after {
        display: none;
    }
}

/* ------------------------------------------------- */
/* REDUÇÃO DE MOVIMENTO                             */
/* ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-glow,
    .hero-smoke {
        animation: none;
        opacity: .6;
    }

    .hero-scroll-line::after {
        animation: none;
        top: 0;
    }

    .eq-bar {
        animation: none;
        transform: scaleY(.5);
        opacity: .6;
    }

    .map-guild-pulse {
        animation: none;
        opacity: .5;
    }
}
