/* ============================================================
   OMEGA GAME — Design System v2
   ============================================================ */

:root {
    --gold:        #c9a84c;
    --gold-dim:    #7a6230;
    --gold-bright: #f0d080;
    --stone:       #0d0b09;
    --stone-mid:   #1a1612;
    --stone-light: #2a2420;
    --ash:         #b0a090;
    --ash-dim:     #6a5e50;
    --white-soft:  #f5efe0;
    --blood:       #8b1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--stone);
    color: var(--ash);
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.75;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* ── Atmosfera ── */
.scanlines {
    position: fixed; inset: 0; z-index: 200; pointer-events: none;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,0.035) 2px, rgba(0,0,0,0.035) 4px
    );
}
.vignette {
    position: fixed; inset: 0; z-index: 199; pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0,0,0,0.82) 100%);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 3rem;
    background: rgba(13,11,9,0.92);
    border-bottom: 1px solid rgba(201,168,76,0.07);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.topbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.topbar-logo {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.55em;
    color: var(--gold);
    text-transform: uppercase;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.server-status.online  .status-dot  { background: #4caf6a; box-shadow: 0 0 8px rgba(76,175,106,0.7); }
.server-status.online  .status-text { color: #4caf6a; }
.server-status.offline .status-dot  { background: #c04040; box-shadow: 0 0 8px rgba(192,64,64,0.7); }
.server-status.offline .status-text { color: #c04040; }

/* ============================================================
   HERO — fullscreen
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    /* fundo multicamada */
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%,   rgba(120,70,10,0.13) 0%, transparent 65%),
        radial-gradient(ellipse 70%  50% at 15% 100%, rgba(90,30,10,0.12)  0%, transparent 60%),
        radial-gradient(ellipse 70%  50% at 85% 100%, rgba(40,20,5,0.15)   0%, transparent 60%),
        linear-gradient(180deg, #0a0806 0%, #0d0b09 50%, #100d0a 100%);
}

/* Linha horizontal sutil no meio do hero */
.hero::before {
    content: '';
    position: absolute;
    left: 10%; right: 10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right,
        transparent, rgba(201,168,76,0.07) 30%,
        rgba(201,168,76,0.18) 50%,
        rgba(201,168,76,0.07) 70%, transparent
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 6rem 2rem 4rem;
    max-width: 700px;
    width: 100%;
}

/* Ornamento */
.hero-ornament {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: anim-fade 0.8s ease 0.3s forwards;
}
.ornament-line {
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.35));
}
.ornament-line:last-child {
    background: linear-gradient(to left, transparent, rgba(201,168,76,0.35));
}
.ornament-text {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.55em;
    color: var(--gold-dim);
    text-transform: uppercase;
}

/* Logo */
.hero-logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 120px rgba(201,168,76,0.18), 0 4px 8px rgba(0,0,0,0.9);
    opacity: 0;
    animation: anim-logo 1.6s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
    margin-bottom: 1.2rem;
}

/* Divisor */
.hero-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(360px, 80vw);
    margin-bottom: 2rem;
    opacity: 0;
    animation: anim-fade 0.8s ease 1.4s forwards;
}
.rule-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.22), transparent);
}
.rule-diamond {
    width: 5px; height: 5px;
    background: var(--gold-dim);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Taglines */
.hero-tagline {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    font-style: italic;
    color: var(--ash);
    line-height: 1.85;
    opacity: 0;
    animation: anim-up 0.9s ease 1.7s forwards;
}
.hero-tagline.delay {
    animation-delay: 2s;
    margin-bottom: 2.8rem;
}

/* CTA */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: anim-fade 0.8s ease 2.4s forwards;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash);
    background: rgba(201,168,76,0.03);
    border: 1px solid rgba(201,168,76,0.22);
    padding: 18px 44px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
/* cantos angulares */
.btn-login::before, .btn-login::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-style: solid;
    border-color: rgba(201,168,76,0.35);
    transition: border-color 0.3s, width 0.3s, height 0.3s;
}
.btn-login::before { top: -1px; left: -1px;   border-width: 1px 0 0 1px; }
.btn-login::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.btn-login:hover {
    color: var(--gold);
    border-color: rgba(201,168,76,0.55);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 0 60px rgba(201,168,76,0.07), inset 0 0 30px rgba(201,168,76,0.03);
}
.btn-login:hover::before,
.btn-login:hover::after {
    border-color: rgba(201,168,76,0.65);
    width: 12px; height: 12px;
}

.btn-login.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.google-icon {
    width: 18px; height: 18px; flex-shrink: 0;
}

.offline-msg {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--ash-dim);
    text-align: center;
    max-width: 340px;
}

/* Indicador de scroll */
.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4rem;
    opacity: 0;
    animation: anim-fade 0.8s ease 3s forwards;
}
.scroll-line {
    width: 40px; height: 1px;
    background: rgba(201,168,76,0.15);
}
.scroll-label {
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.5em;
    color: var(--ash-dim);
    text-transform: uppercase;
}

/* ============================================================
   SEÇÃO NOTÍCIAS
   ============================================================ */
.news-section {
    background: linear-gradient(180deg, #0d0b09 0%, #111009 100%);
    border-top: 1px solid rgba(201,168,76,0.08);
    padding: 5rem 2rem 6rem;
}

.news-inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 3rem;
}
.sh-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.2));
}
.sh-line:last-child {
    background: linear-gradient(to left, transparent, rgba(201,168,76,0.2));
}
.sh-label {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.55em;
    color: var(--gold-dim);
    text-transform: uppercase;
    white-space: nowrap;
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 0 2rem;
    align-items: center;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.07);
    transition: background 0.2s;
}
.news-card:first-child {
    border-top: 1px solid rgba(201,168,76,0.07);
}

.news-card-date {
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    color: var(--ash-dim);
    text-transform: uppercase;
    line-height: 1.6;
    text-align: center;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.news-card-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white-soft);
    line-height: 1.4;
}

.news-card-summary {
    font-size: 0.93rem;
    color: var(--ash);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dim);
    white-space: nowrap;
    transition: color 0.2s;
    padding: 8px 0;
}
.news-card-link:hover { color: var(--gold); }

.news-empty {
    text-align: center;
    font-style: italic;
    color: var(--ash-dim);
    padding: 2rem 0;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
    background: #0a0806;
    border-top: 1px solid rgba(201,168,76,0.06);
    padding: 1.8rem 3rem;
    display: flex;
    justify-content: center;
}
.footer-text {
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.4em;
    color: var(--ash-dim);
    text-transform: uppercase;
}
.footer-link {
    color: var(--gold-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--gold);
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes anim-logo {
    from { opacity: 0; letter-spacing: 0.6em; filter: blur(12px); }
    to   { opacity: 1; letter-spacing: 0.3em; filter: blur(0); }
}
@keyframes anim-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes anim-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   HUB DO JOGO
   ============================================================ */

.game-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--stone);
}

/* ── Topbar ── */
.game-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    height: 72px;
    background: rgba(13,11,9,0.97);
    border-bottom: 1px solid rgba(201,168,76,0.1);
    backdrop-filter: blur(10px);
    gap: 2rem;
}

.gt-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}
.gt-logo {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.55em;
    color: var(--gold);
    flex-shrink: 0;
}
.gt-divider { color: rgba(201,168,76,0.25); font-size: 14px; flex-shrink: 0; }

.gt-charname-btn {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    letter-spacing: 0.15em;
    color: var(--white-soft);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.25s;
    border-bottom: 1px solid transparent;
}
.gt-charname-btn:hover {
    color: var(--gold);
    border-bottom-color: rgba(201,168,76,0.35);
}

.gt-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}
.gt-logout {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash-dim);
    padding: 9px 20px;
    border: 1px solid rgba(201,168,76,0.15);
    transition: color 0.2s, border-color 0.2s;
}
.gt-logout:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); }

/* ── Modal de Perfil ── */
.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.profile-modal.open { display: flex; }

.profile-modal-box {
    background: #0f0d0b;
    border: 1px solid rgba(201,168,76,0.18);
    width: min(680px, 92vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: anim-up 0.25s ease;
}

.profile-modal-header {
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    position: relative;
}
.profile-modal-name {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    letter-spacing: 0.12em;
    color: var(--white-soft);
}
.profile-modal-meta {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash);
    margin-top: 6px;
}
.profile-modal-close {
    position: absolute;
    top: 1.8rem; right: 1.8rem;
    font-size: 16px;
    color: var(--ash-dim);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.2s;
}
.profile-modal-close:hover { color: var(--white-soft); }

.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    padding: 0 2.5rem;
    gap: 0;
}
.profile-tab {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash-dim);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}
.profile-tab:hover  { color: var(--ash); }
.profile-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.profile-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
}
.profile-tab-content::-webkit-scrollbar       { width: 3px; }
.profile-tab-content::-webkit-scrollbar-track { background: transparent; }
.profile-tab-content::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); }

.profile-pane { display: none; }
.profile-pane.active { display: block; }

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.profile-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,168,76,0.08);
}
.ps-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ash);
}
.ps-val {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 0.08em;
}

.profile-empty {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ash-dim);
    text-align: center;
    padding: 3rem 0;
    line-height: 1.9;
}

/* ── Layout principal ── */
.game-layout {
    display: block;
    min-height: calc(100vh - 72px - 48px);
    margin-top: 72px;
    margin-bottom: 48px;
}

/* ── Painéis laterais ── */
.side-panel {
    position: fixed;
    top: 72px;
    bottom: 48px;
    width: 360px;
    background: rgba(10,8,6,0.98);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 50;
    display: flex;
}
.side-panel--left {
    left: 0;
    border-right: 1px solid rgba(201,168,76,0.1);
    flex-direction: row-reverse;
    transform: translateX(-324px);
}
.side-panel--right {
    right: 0;
    border-left: 1px solid rgba(201,168,76,0.1);
    flex-direction: row;
    transform: translateX(324px);
}
.side-panel--right .panel-content {
    padding: 2.5rem 2.5rem 2.5rem 1.8rem;
}
.side-panel--left.open  { transform: translateX(0); }
.side-panel--right.open { transform: translateX(0); }

/* Aba */
.panel-tab {
    width: 36px;
    min-width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(13,11,9,0.9);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    padding: 24px 0;
}
.panel-tab--left  { border-left:  1px solid rgba(201,168,76,0.08); }
.panel-tab--right { border-right: 1px solid rgba(201,168,76,0.08); }
.panel-tab:hover  { background: rgba(201,168,76,0.06); }
.panel-tab-icon   { font-size: 14px; color: var(--gold-dim); line-height: 1; transition: color 0.2s; }
.panel-tab:hover .panel-tab-icon { color: var(--gold); }
.panel-tab-label  {
    font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--ash-dim);
    writing-mode: vertical-rl; transform: rotate(180deg);
    white-space: nowrap; transition: color 0.2s;
}
.panel-tab:hover .panel-tab-label { color: var(--ash); }

/* Conteúdo */
.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.5rem 1.8rem;
    opacity: 1;
    transition: opacity 0.2s ease 0.1s;
}
.side-panel:not(.open) .panel-content { opacity: 0; pointer-events: none; transition: opacity 0.05s; }
.panel-content::-webkit-scrollbar       { width: 3px; }
.panel-content::-webkit-scrollbar-track { background: transparent; }
.panel-content::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); }

.panel-section { display: flex; flex-direction: column; gap: 1rem; }

/* Identidade */
.pc-name {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    color: var(--white-soft);
    line-height: 1.15;
}
.pc-meta {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ash);
}

/* Labels de seção */
.pc-label {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    padding-bottom: 8px;
}
.pc-label-sub {
    font-size: 8px; letter-spacing: 0.2em; color: var(--ash-dim); font-weight: 400;
}

/* Barras XP / HP / Recurso */
.pc-xp-bar, .pc-res-bar {
    height: 5px;
    background: rgba(255,255,255,0.07);
    position: relative;
    border-radius: 1px;
}
.pc-xp-fill, .pc-res-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    border-radius: 1px; transition: width 0.5s ease;
}
.pc-xp-fill       { background: linear-gradient(to right, var(--gold-dim), var(--gold)); }
.pc-res-fill.hp   { background: linear-gradient(to right, #8b1a1a, #e05050); }
.pc-res-fill.res  { background: linear-gradient(to right, #1a4a8b, #4a9ad0); }
.pc-xp-text, .pc-res-text {
    font-family: 'Cinzel', serif; font-size: 10px;
    letter-spacing: 0.2em; color: var(--ash); text-align: right;
}

/* Atributos */
.pc-attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.pc-attr {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(201,168,76,0.08);
}
.pc-attr span:first-child { font-family:'Cinzel',serif; font-size:10px; letter-spacing:0.3em; color:var(--ash); }
.pc-attr span:last-child  { font-family:'Cinzel',serif; font-size:16px; letter-spacing:0.05em; color:var(--gold); }

.pc-attr--addable { cursor:pointer; border-color:rgba(201,168,76,0.3); background:rgba(201,168,76,0.04); }
.pc-attr--addable:hover { border-color:rgba(201,168,76,0.6); background:rgba(201,168,76,0.09); }
.pc-attr--addable:hover span:first-child { color: var(--gold); }
.pc-attr-hint { font-family:'Crimson Text',serif; font-size:1rem; font-style:italic; color:var(--gold-dim); line-height:1.5; }

/* Economia / gold */
.pc-gold-display { display:flex; align-items:center; gap:12px; padding:8px 0; }
.pc-gold-icon    { font-size:16px; color:var(--gold-dim); }
.pc-gold-val     { font-family:'Cinzel',serif; font-size:28px; letter-spacing:0.08em; color:var(--gold); }

/* Vazio */
.pc-empty { font-family:'Crimson Text',serif; font-size:1.05rem; font-style:italic; color:var(--ash-dim); line-height:1.65; }

/* Inventário */
.inv-list { display:flex; flex-direction:column; gap:5px; }
.inv-item {
    display:flex; justify-content:space-between; align-items:center;
    padding:8px 12px;
    background:rgba(255,255,255,0.02);
    border-left:2px solid transparent;
    font-family:'Crimson Text',serif; font-size:1.05rem;
}
.inv-item--common   { border-color:rgba(180,180,180,0.25); }
.inv-item--uncommon { border-color:rgba(80,200,80,0.35); }
.inv-item--rare     { border-color:rgba(80,120,220,0.45); }
.inv-item--epic     { border-color:rgba(160,80,220,0.55); }
.inv-item--unique   { border-color:rgba(201,168,76,0.75); }
.inv-item-info      { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.inv-item-name      { color:var(--white-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inv-item-qty       { font-family:'Cinzel',serif; font-size:9px; color:var(--ash-dim); flex-shrink:0; }
.inv-item-actions   { display:flex; gap:5px; flex-shrink:0; }

.inv-btn {
    font-family:'Cinzel',serif; font-size:8px; letter-spacing:0.2em; text-transform:uppercase;
    padding:4px 10px; border:1px solid rgba(201,168,76,0.2);
    color:var(--ash-dim); cursor:pointer; background:transparent;
    transition:color 0.2s, border-color 0.2s; white-space:nowrap;
}
.inv-btn:hover         { color:var(--ash); border-color:rgba(201,168,76,0.4); }
.inv-btn--use:hover    { color:#4caf6a; border-color:rgba(76,175,106,0.4); }
.inv-btn--equip:hover  { color:var(--gold); border-color:rgba(201,168,76,0.5); }

.inv-message {
    font-family:'Crimson Text',serif; font-size:1rem; font-style:italic;
    padding:8px 12px; border-left:2px solid var(--gold-dim);
    color:var(--ash); background:rgba(201,168,76,0.04);
}

/* Equipamentos */
.equip-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.equip-slot {
    padding:8px 10px; border:1px solid rgba(201,168,76,0.08);
    background:rgba(255,255,255,0.02); cursor:pointer;
    transition:border-color 0.2s, background 0.2s;
    display:flex; flex-direction:column; gap:3px;
}
.equip-slot.equipped    { border-color:rgba(201,168,76,0.22); background:rgba(201,168,76,0.04); }
.equip-slot:hover       { border-color:rgba(201,168,76,0.35); }
.equip-slot-label       { font-family:'Cinzel',serif; font-size:8px; letter-spacing:0.3em; text-transform:uppercase; color:var(--ash-dim); }
.equip-slot-item        { font-family:'Crimson Text',serif; font-size:1rem; color:var(--white-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.equip-slot.empty .equip-slot-item { color:var(--ash-dim); font-style:italic; }

/* Habilidades */
.skill-list { display:flex; flex-direction:column; gap:6px; }
.skill-item {
    display:flex; justify-content:space-between; align-items:center;
    padding:9px 12px; background:rgba(255,255,255,0.02);
    border:1px solid rgba(201,168,76,0.08); cursor:default; transition:border-color 0.2s;
}
.skill-item:hover   { border-color:rgba(201,168,76,0.2); }
.skill-item.passive { border-color:rgba(80,120,220,0.15); }
.skill-name  { font-family:'Crimson Text',serif; font-size:1.1rem; color:var(--white-soft); }
.skill-cost  { font-family:'Cinzel',serif; font-size:9px; letter-spacing:0.2em; color:var(--ash-dim); flex-shrink:0; }
.skill-item.passive .skill-cost { color:rgba(80,120,220,0.7); }

/* Badge de pontos */
.pc-label-badge {
    font-size:8px; letter-spacing:0.2em; color:#4caf6a;
    border:1px solid rgba(76,175,106,0.3); padding:2px 7px; font-weight:400;
}

/* ── Narrativa central ── */
.game-narrative {
    margin-left: 360px;
    margin-right: 360px;
    padding: 5rem 5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    min-height: calc(100vh - 72px - 48px);
    transition: margin 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;

    /* Fundo cinematográfico: luz de tocha vinda do topo, névoa nas bordas, profundidade */
    background:
        /* Halo dourado central — como luz de vela iluminando a cena */
        radial-gradient(ellipse 80% 50% at 50% 20%,
            rgba(180,120,20,0.07) 0%,
            transparent 65%),
        /* Névoa sombria nas bordas inferiores */
        radial-gradient(ellipse 100% 60% at 50% 100%,
            rgba(0,0,0,0.5) 0%,
            transparent 70%),
        /* Brilho lateral esquerdo — como luz refletindo em pedra */
        radial-gradient(ellipse 30% 80% at 0% 50%,
            rgba(80,50,10,0.06) 0%,
            transparent 70%),
        /* Brilho lateral direito */
        radial-gradient(ellipse 30% 80% at 100% 50%,
            rgba(80,50,10,0.06) 0%,
            transparent 70%),
        /* Base escura de pedra */
        linear-gradient(180deg,
            #0e0c0a 0%,
            #0b0906 40%,
            #0d0b09 100%);
}

/* Borda de luz sutil nas laterais da narrativa */
.game-narrative::before,
.game-narrative::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    pointer-events: none;
}
.game-narrative::before {
    left: 0;
    background: linear-gradient(to bottom,
        transparent 0%, rgba(201,168,76,0.12) 20%,
        rgba(201,168,76,0.12) 80%, transparent 100%);
}
.game-narrative::after {
    right: 0;
    background: linear-gradient(to bottom,
        transparent 0%, rgba(201,168,76,0.12) 20%,
        rgba(201,168,76,0.12) 80%, transparent 100%);
}

.loc-header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.loc-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Cinzel', serif;
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}
.loc-name { color: var(--gold); font-weight: 600; }

.loc-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 240px;
    margin: 0 auto;
}
.loc-rule-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(201,168,76,0.3), transparent);
}
.loc-rule-diamond {
    width: 6px; height: 6px;
    background: var(--gold-dim);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.narrative-block {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.n-line {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    color: var(--white-soft);
    line-height: 2;
}
.n-gap   { padding-top: 0.6rem; }
.n-gold  { color: var(--gold); font-style: italic; }
.n-muted { font-style: italic; color: var(--ash); }
.n-error { color: #c04040; font-style: italic; }
.n-encounter { color: var(--gold); font-size: clamp(1.3rem, 2vw, 1.65rem); }

.narrative-sep {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    width: 100%;
}
.narrative-sep-line    { flex:1; height:1px; background:linear-gradient(to right, transparent, rgba(201,168,76,0.18), transparent); }
.narrative-sep-diamond { width:6px; height:6px; background:var(--gold-dim); transform:rotate(45deg); flex-shrink:0; }

.paths-block {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.paths-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Serviços (lojas + baú) ── */
.services-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}
.service-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.6rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,168,76,0.12);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}
.service-btn:hover {
    background: rgba(201,168,76,0.05);
    border-color: rgba(201,168,76,0.3);
}
.service-icon { font-size: 1.2rem; color: var(--gold-dim); flex-shrink: 0; }
.service-name {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-soft);
    flex-shrink: 0;
    min-width: 160px;
}
.service-desc {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--ash-dim);
}

/* ── Modal de Loja / Baú ── */
.shop-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.shop-modal.open { display: flex; }

.shop-modal-box {
    background: #0f0d0b;
    border: 1px solid rgba(201,168,76,0.18);
    width: min(740px, 94vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: anim-up 0.25s ease;
}
.shop-modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    position: relative;
}
.shop-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    letter-spacing: 0.15em;
    color: var(--white-soft);
}
.shop-tabs {
    display: flex;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    padding: 0 2rem;
}
.shop-tab {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash-dim);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}
.shop-tab:hover  { color: var(--ash); }
.shop-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.shop-message {
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    font-style: italic;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    color: var(--ash);
}
.shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.shop-content::-webkit-scrollbar       { width: 3px; }
.shop-content::-webkit-scrollbar-track { background: transparent; }
.shop-content::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); }

.shop-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,168,76,0.08);
    transition: border-color 0.2s;
}
.shop-item:hover { border-color: rgba(201,168,76,0.2); }
.shop-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.shop-item-name {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--white-soft);
}
.shop-item-desc {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--ash-dim);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-item-price {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--gold);
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}
.shop-item-btn {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--ash);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.shop-item-btn:hover { color: var(--gold); border-color: rgba(201,168,76,0.5); }
.shop-item-btn.sell  { border-color: rgba(80,160,80,0.2); color: #7aba8a; }
.shop-item-btn.sell:hover { border-color: rgba(80,160,80,0.5); }
.shop-item-btn.deposit { border-color: rgba(80,130,200,0.2); color: #7aaad0; }
.shop-item-btn.deposit:hover { border-color: rgba(80,130,200,0.5); }
.shop-item-btn.withdraw { border-color: rgba(200,160,80,0.2); color: var(--gold-dim); }
.shop-item-btn.withdraw:hover { border-color: rgba(201,168,76,0.5); color: var(--gold); }

.shop-empty {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--ash-dim);
    text-align: center;
    padding: 2rem 0;
}

/* Tooltip de item */
#item-tooltip {
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    line-height: 1.5;
}

/* ── Descanso ── */
.rest-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.rest-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: var(--gold);
}
.rest-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.rest-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 1.2rem 2.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,168,76,0.15);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    min-width: 220px;
}
.rest-btn:hover:not(:disabled) {
    background: rgba(201,168,76,0.05);
    border-color: rgba(201,168,76,0.35);
}
.rest-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.rest-btn--long { border-color: rgba(74,154,90,0.2); }
.rest-btn--long:hover:not(:disabled) {
    background: rgba(74,154,90,0.05);
    border-color: rgba(74,154,90,0.4);
}
.rest-btn-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white-soft);
}
.rest-btn--long .rest-btn-title { color: #7aba8a; }
.rest-btn-desc {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--ash-dim);
}
.rest-message {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--ash);
}

.paths-list { display:flex; flex-direction:column; gap:0.6rem; }

.path-btn {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.6rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,168,76,0.1);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}
.path-btn:hover:not(:disabled) {
    background: rgba(201,168,76,0.05);
    border-color: rgba(201,168,76,0.3);
}
.path-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.path-arrow {
    font-size: 1.3rem;
    color: var(--gold-dim);
    flex-shrink: 0;
    margin-top: 3px;
    transition: color 0.25s;
}
.path-btn:hover .path-arrow { color: var(--gold); }

.path-info { display:flex; flex-direction:column; gap:4px; }

.path-name {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white-soft);
}
.path-desc {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--ash);
    line-height: 1.6;
}

/* ── Footer ── */
.game-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,11,9,0.98);
    border-top: 1px solid rgba(201,168,76,0.1);
    z-index: 100;
}
.gf-text {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--ash);
}

/* ============================================================
   COMBATE
   ============================================================ */

.combat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.combat-overlay.active { display: flex; }

.combat-box {
    width: min(860px, 96vw);
    height: min(90vh, 780px);
    background: #0f0d0b;
    border: 1px solid rgba(201,168,76,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: anim-up 0.3s ease;
    position: relative;
}

/* ── Seção do inimigo (topo) ── */
.cb-enemy-section {
    padding: 2.2rem 2.5rem 1.6rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    background: linear-gradient(180deg, rgba(100,20,10,0.12) 0%, transparent 100%);
    flex-shrink: 0;
}
.cb-enemy-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.8rem;
}
.cb-enemy-left { display: flex; flex-direction: column; gap: 6px; }
.cb-enemy-name {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--white-soft);
    line-height: 1;
}
.cb-enemy-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    min-width: 200px;
}
.cb-hp-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash);
}
.cb-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.cb-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    position: relative;
    border-radius: 1px;
}
.cb-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: 1px;
    transition: width 0.6s ease;
}
.cb-bar--enemy .cb-bar-fill { background: linear-gradient(to right, #6a1010, #d04040); }
.cb-bar-fill.hp  { background: linear-gradient(to right, #8b1a1a, #e05050); }
.cb-bar-fill.res { background: linear-gradient(to right, #1a4a8b, #4a9ad0); }
.cb-bar-val {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--ash);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}
.cb-enemy-desc {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ash-dim);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.2s;
}
.cb-enemy-desc:hover { color: var(--ash); }
.cb-enemy-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* ── Log central ── */
.cb-log-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.cb-turn-badge {
    position: absolute;
    top: 14px; right: 20px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dim);
    z-index: 1;
}
.combat-log {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
}
.combat-log::-webkit-scrollbar       { width: 3px; }
.combat-log::-webkit-scrollbar-track { background: transparent; }
.combat-log::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); }

.log-entry {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.85;
    color: var(--ash);
    opacity: 0;
    animation: fadeSlide 0.35s ease forwards;
}
.log-entry.player-hit, .log-entry.player-skill { color: var(--white-soft); }
.log-entry.player-crit  { color: var(--gold-bright); font-style: italic; font-size: 1.35rem; }
.log-entry.enemy-hit    { color: #c07868; }
.log-entry.enemy-crit   { color: #e06050; font-style: italic; font-size: 1.35rem; }
.log-entry.player-heal  { color: #7aba8a; }
.log-entry.player-miss,
.log-entry.enemy-miss   { color: var(--ash-dim); font-style: italic; }
.log-entry.status       { color: #a090c0; font-style: italic; font-size: 1.1rem; }
.log-entry.system       { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-dim); }
.log-entry.victory      { color: var(--gold); font-size: 1.35rem; }
.log-entry.levelup      { color: #7aba8a; font-size: 1.2rem; }
.log-entry.defeat       { color: #c04040; font-style: italic; font-size: 1.2rem; }
.log-entry.description  { color: var(--ash-dim); font-style: italic; font-size: 1.1rem; }

/* ── Seção do jogador (base) ── */
.cb-player-section {
    border-top: 1px solid rgba(201,168,76,0.08);
    background: linear-gradient(0deg, rgba(10,20,40,0.18) 0%, transparent 100%);
    flex-shrink: 0;
}
.cb-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 2.5rem 1rem;
}
.cb-player-left { display: flex; flex-direction: column; gap: 8px; }
.cb-player-name {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    letter-spacing: 0.18em;
    color: var(--white-soft);
}
.cb-enemy-status {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-height: 16px;
}
.cb-player-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 220px;
}
.cb-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cb-bar--hp  { flex: 1; }
.cb-bar--res { flex: 1; }

/* ── Ações ── */
.cb-actions {
    padding: 1rem 2.5rem 1.5rem;
}
.cb-actions-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.cb-skills-wrap,
.cb-items-wrap {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.combat-action-btn {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 12px 26px;
    border: 1px solid rgba(201,168,76,0.18);
    color: var(--ash);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.combat-action-btn:hover:not(:disabled) {
    color: var(--gold);
    border-color: rgba(201,168,76,0.45);
    background: rgba(201,168,76,0.05);
}
.combat-action-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.cb-btn-attack {
    border-color: rgba(180,50,50,0.4);
    color: #d08070;
}
.cb-btn-attack:hover:not(:disabled) {
    color: #e05050;
    border-color: rgba(192,64,64,0.7);
    background: rgba(192,64,64,0.07);
}
.cb-btn-flee {
    border-color: rgba(100,100,100,0.25);
    color: var(--ash-dim);
    margin-left: auto;
}
.cb-btn-flee:hover:not(:disabled) { color: var(--ash); border-color: rgba(150,150,150,0.4); }

.combat-skill-btn {
    font-size: 10px;
    padding: 10px 18px;
    border-color: rgba(80,130,200,0.3);
    color: #7aaad0;
}
.combat-skill-btn:hover:not(:disabled) { color: #90c0e8; border-color: rgba(80,144,208,0.55); background: rgba(80,144,208,0.05); }

.combat-item-btn {
    font-size: 10px;
    padding: 10px 18px;
    border-color: rgba(80,160,80,0.3);
    color: #7aba8a;
}
.combat-item-btn:hover:not(:disabled) { color: #90d0a0; border-color: rgba(80,176,80,0.55); background: rgba(80,160,80,0.05); }

.combat-empty { font-style: italic; color: var(--ash-dim); font-size: 1rem; padding: 10px 0; }

/* Status badges */
.status-badge {
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid;
    border-radius: 1px;
}
.status-poison,.status-bleed   { color:#6ab050; border-color:rgba(106,176,80,0.35);  background:rgba(106,176,80,0.07); }
.status-burn                   { color:#d06820; border-color:rgba(208,104,32,0.35);  background:rgba(208,96,32,0.07); }
.status-freeze,.status-slow    { color:#5090d0; border-color:rgba(80,144,208,0.35);  background:rgba(80,144,208,0.07); }
.status-weaken,.status-blind   { color:#b08830; border-color:rgba(176,136,48,0.35);  background:rgba(176,128,48,0.07); }
.status-shock,.status-paralyze { color:#a060d0; border-color:rgba(160,96,208,0.35);  background:rgba(160,96,208,0.07); }
.status-curse,.status-drain    { color:#9040a0; border-color:rgba(144,64,160,0.35);  background:rgba(144,64,160,0.07); }
.status-empower,.status-shield { color:#50b080; border-color:rgba(80,176,128,0.35);  background:rgba(80,176,128,0.07); }
.status-regen                  { color:#50c060; border-color:rgba(80,192,96,0.35);   background:rgba(80,192,96,0.07); }

/* ============================================================
   ONBOARDING
   ============================================================ */

.onboarding-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--stone);
}

/* Barra de progresso */
.ob-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(201,168,76,0.1);
    z-index: 200;
}
.ob-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dim), var(--gold));
    transition: width 0.6s ease;
}

/* Tela */
.ob-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120,70,10,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0,0,0,0.4) 0%, transparent 70%),
        var(--stone);
}

.ob-inner {
    max-width: 620px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.ob-inner--wide { max-width: 1080px; }

/* Texto narrativo tela 1 */
.ob-text-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.ob-line {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    color: var(--ash);
    line-height: 2;
    opacity: 0;
    animation: anim-up 0.9s ease var(--d, 0s) forwards;
}
.ob-line--gap { margin-top: 0.8rem; }
.ob-line--gold { color: var(--white-soft); font-style: italic; }

/* Header das telas 2 e 3 */
.ob-header { text-align: center; }
.ob-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.55em;
    color: var(--gold-dim);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.ob-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: var(--white-soft);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.ob-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ash-dim);
}

/* Grid de classes */
.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.class-card input[type="radio"] { display: none; }

.class-card-inner {
    border: 1px solid rgba(201,168,76,0.15);
    padding: 2.5rem 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.25s, background 0.25s;
    height: 100%;
}
.class-card-inner:hover {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.04);
}
.class-card input:checked + .class-card-inner {
    border-color: var(--gold);
    background: rgba(201,168,76,0.07);
}

.class-icon { font-size: 2.2rem; line-height: 1; color: var(--gold-dim); }
.class-name {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-soft);
}
.class-desc {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ash);
    line-height: 1.8;
    flex: 1;
}
.class-stats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(201,168,76,0.1);
    padding-top: 1rem;
    margin-top: auto;
}
.class-stats li { display: flex; justify-content: space-between; }
.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ash-dim);
}
.stat-val {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--gold-dim);
}

/* Campo de nome */
.name-form { display: flex; flex-direction: column; gap: 1.2rem; }
.name-field { position: relative; }
.name-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--white-soft);
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.7rem;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    outline: none;
    transition: border-color 0.2s;
}
.name-input::placeholder { color: var(--ash-dim); font-style: italic; }
.name-input:focus { border-color: rgba(201,168,76,0.5); }
.name-counter {
    position: absolute;
    right: 1.2rem; top: 50%;
    transform: translateY(-50%);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--ash-dim);
}
.name-hint { font-family: 'Crimson Text', serif; font-size: 1rem; font-style: italic; color: var(--ash-dim); }
.name-error { font-family: 'Crimson Text', serif; font-size: 1.05rem; color: #c04040; min-height: 1.4rem; }

/* Botões do onboarding */
.ob-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    animation: anim-fade 0.8s ease var(--d, 0.5s) forwards;
}

.btn-ob-next {
    display: inline-flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ash);
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.25);
    padding: 16px 44px;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.btn-ob-next:hover:not(:disabled) {
    color: var(--gold);
    border-color: rgba(201,168,76,0.55);
    background: rgba(201,168,76,0.07);
}
.btn-ob-next:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-ob-back {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ash-dim);
    transition: color 0.2s;
}
.btn-ob-back:hover { color: var(--ash); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 700px) {
    .topbar { padding: 1.2rem 1.5rem; }

    .news-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .news-card-date { text-align: left; }
    .news-card-link { align-self: flex-start; }

    .btn-login { padding: 16px 28px; width: 100%; justify-content: center; }
    .news-section { padding: 3rem 1.5rem 4rem; }

    .class-grid { grid-template-columns: 1fr; }
    .ob-inner--wide { max-width: 100%; }
}
