/* ================================================================
 * theme.css — Visual do tema cyber
 * Depende de base.css para as variáveis CSS (--color-*, etc.).
 * Para trocar o tema: sobrescrever as variáveis em base.css (:root).
 * Backgrounds dos painéis são 100% CSS — sem imagens de tile.
 * ================================================================ */

/* Base */
a       { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }

/*
 * Body — cor sólida #04080f (azul-preto bem escuro) com cenário no topo + gradient
 * cobrindo o body inteiro: fade nos primeiros ~600px, depois cor sólida até o fim.
 *
 * Camadas (primeira em cima, segunda atrás):
 *   1. linear-gradient: transparente nos primeiros 200px (mostra cenário inteiro),
 *      começa a escurecer em 380px e termina opaco (#04080f) em 600px e segue
 *      sólido até o fim. `background-size: 100% 100%` faz o gradient cobrir
 *      a altura toda do body — pixels stops são absolutos do topo, então o
 *      cenário só aparece no topo e o resto é cor sólida.
 *   2. background_clear.png: cenário panorâmico ancorado no topo. Como o
 *      gradient acima cobre tudo após 600px, a parte da imagem além disso
 *      fica escondida por trás do sólido.
 *
 * No desktop wide (>1309px) isso cria o efeito "pedacinho" do cenário no topo,
 * com fade gradual e o resto da página em cor sólida. Em mobile o body é
 * coberto pelos painéis, mas a cor sólida casa com o gradient do #logo.
 */
body {
    background-color: #04080f;
    background-image:
        linear-gradient(180deg,
            transparent 0px,
            transparent 160px,
            rgba(4, 8, 15, 0.55) 260px,
            #04080f 380px
        ),
        url('https://static.tibia-old.com/layouts/cyber/_img/background/background_clear.png');
    background-position: top center, top center;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto;
    color: var(--color-text);
    text-shadow: 1px 1px #000;
}

/* Rodapé visual — não necessário com painéis CSS */
#content_bot { display: none; }

/*
 * Hero (#logo) desktop — fade-out nas bordas via mask-image. As bordas
 * laterais (5% de cada lado) e a borda inferior (30% inferior) ficam
 * gradualmente transparentes, eliminando as "hard edges" da imagem cortada.
 * O body atrás (com cenário panorâmico no topo + fade para #04080f) preenche
 * naturalmente — visual coeso entre o hero e o resto da página.
 *
 * Mobile (<=680px) tem gradient próprio no #logo + ::before pra logo, então
 * fica de fora dessa regra.
 */
@media (min-width: 681px) {
    #logo {
        -webkit-mask-image:
            linear-gradient(to bottom, black 70%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to bottom, black 70%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-composite: intersect;
    }
}


/* ==============================
 * Menu superior (topnav) — barra de navegação principal do desktop.
 * Substituiu o sistema antigo de imagens cortadas (menu_top7.png + botões PNG).
 * Visível só ≥1341px (em telas menores a sidebar cobre a navegação).
 *
 * Layout: 3 colunas de mesma largura via flex:1.
 * `.topnav-side-left` e `.topnav-side-right` ocupam o mesmo espaço, e o pill
 * `.topnav-online` (flex:0 0 auto) fica no centro real da barra,
 * independentemente de quantos/quão largos sejam os links de cada lado.
 * ============================== */
.topnav {
    display: flex;
    align-items: stretch;
    height: 52px;
    background: linear-gradient(180deg, #0f1c2e 0%, #0a1422 100%);
    border: 1px solid #1a2d42;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.topnav-side {
    display: flex;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
}
.topnav-side-left  { justify-content: flex-start; }
.topnav-side-right { justify-content: flex-end; }

.topnav a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #c2cad6;
    text-shadow: 1px 1px #000;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.topnav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Link "My Account" quando logado — destaque sutil com tokens accent
   (cinza-azul + glow dourado), mesmo padrao do .topnav-online pill. */
.topnav a.is-logged {
    color: var(--color-accent-soft);
    background-color: var(--surface-soft);
    text-shadow: 0 0 4px rgba(255, 200, 110, 0.35), 1px 1px #000;
}
.topnav a.is-logged:hover {
    background-color: var(--surface-soft-hover);
    color: #ffffff;
}

/* Separadores entre links dentro do mesmo grupo lateral */
.topnav-side > a:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* Online pill — usa tokens accent (cinza-azul + glow dourado) para
   consistência com `.section-icon` e qualquer chip futuro. */
.topnav-online {
    flex: 0 0 auto;
    gap: 8px;
    padding: 0 18px;
    color: var(--color-accent-soft) !important;
    background-color: var(--surface-soft);
    border-left: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.topnav-online:hover {
    background-color: var(--surface-soft-hover);
    color: #ffffff !important;
}
.topnav-online-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    filter: var(--glow-accent);
}
.topnav-online-icon svg.lucide,
.topnav-online-icon[data-lucide] svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke-width: 1.7;
    color: inherit;
}
.topnav-online-count {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
    text-shadow: 1px 1px #000;
}

/* ==============================
 * Menu esquerdo — boxes
 * ============================== */
#themeboxnews {
    border: 1px solid #1a2d42;
    border-radius: 8px;
    overflow: hidden;
}

#menu-title {
    background-color: #0b1826;
    border-bottom: 1px solid #1a2d42;
}

#themeboxews-content,
#themeboxaccount-content,
#themeboxcomm-content {
    background-color: #060d18;
}

/* Cantos e bordas decorativas de imagem — removidos */
.corner_lt, .corner_rt, .corner_lb, .corner_rb { display: none; }
.border_bottom { display: none; }

#menu-label {
    background: url('https://static.tibia-old.com/layouts/cyber/images/menu/menu-label.png') no-repeat;
    color: #ccc;
}

/* Ícones-imagens antigos dos headers (icon-news.gif, icon-account.gif, etc.)
   foram substituídos pelo Lucide via `<i data-lucide="..." class="section-icon">`.
   Estilo do .section-icon definido logo abaixo. */

/* Ícone Lucide nos headers das seções da sidebar (esq + dir).
   Cor + glow vêm de tokens em base.css (--color-accent-soft, --glow-accent,
   --shadow-icon). Tamanho 22px combina com o header de 45px sem competir
   com o text-shadow do label. */
.section-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent-soft);
    flex-shrink: 0;
    margin-right: 10px;
    filter: var(--glow-accent) var(--shadow-icon);
}
.section-icon svg.lucide,
.section-icon[data-lucide] svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke-width: 1.6;
    color: inherit;
}

/* Textos (label images) do menu esquerdo */
#text-news      { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/latestnews.png')     no-repeat scroll 0 0 transparent; }
#text-account   { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/account.png')        no-repeat scroll 0 0 transparent; }
#text-community { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/community.png')      no-repeat scroll 0 0 transparent; }
#text-library   { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/library.png')        no-repeat scroll 0 0 transparent; }
#text-shop      { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/shop.png')           no-repeat scroll 0 0 transparent; }
#text-toplevel  { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/top_level.png')      no-repeat scroll 0 0 transparent; }
#text-topguilds { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/top_guilds.png')     no-repeat scroll 0 0 transparent; }
#text-search    { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/player_search.png')  no-repeat scroll 0 0 transparent; }
#text-info      { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/information.png')    no-repeat scroll 0 0 transparent; }
#text-proxy     { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/proxy.png')          no-repeat scroll 0 0 transparent; }
#text-market    { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/charmarket_new.png') no-repeat scroll 0 0 transparent; }
#text-social    { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/social.png')         no-repeat scroll 0 0 transparent; }
#text-worlds    { background: url('https://static.tibia-old.com/layouts/cyber/images/menu/worlds.png')         no-repeat scroll 0 0 transparent; }

/* Links do menu — chains.png substituído por separador CSS */
#menu_links li       { background: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
#menu_links li:hover { background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.07); }
#menu_links li a       { color: var(--color-text-bright); text-shadow: 1px 1px #000; }
#menu_links li a:hover { color: var(--color-link-hover); }

/* Ícones Lucide nos links da sidebar — `display: inline-block` para
   ficarem na mesma linha do texto (alguns links têm `<span>` envolvendo o
   ícone + texto, e block dentro de inline span quebra a linha).
   `vertical-align: middle` alinha verticalmente com o texto. */
#menu_links li a i[data-lucide] { display: none; }
#menu_links li a svg.lucide,
#menu_links li a i[data-lucide] svg {
    display: inline-block;
    vertical-align: middle;
    width: 13px;
    height: 13px;
    stroke-width: 2;
    margin-right: 5px;
    color: #888a92;
}
#menu_links li a:hover svg.lucide,
#menu_links li a:hover i[data-lucide] svg {
    color: inherit;
}

/* ==============================
 * Área de conteúdo (centro)
 * ============================== */
.textcorner_lt, .textcorner_rt, .textcorner_lb, .textcorner_rb { display: none; }
.textborder_bottom { display: none; }

#textnew_content {
    border: 1px solid #1a2d42;
    border-radius: 8px;
    overflow: hidden;
}

/* O `<div id="menu-title">` vazio dentro de `#textnew_content` é renderizado em
   todas as páginas mas só recebe texto em algumas (ex.: "Latest News"). Quando
   vazio, ainda ocupa 45px com cor `#0b1826` — aparece como "faixa azul" estranha.
   Esconder quando vazio mantém a integridade de páginas que usam o título. */
#textnew_content #menu-title:empty { display: none; }

#textnew_content_inside {
    background-color: #060d18;
}

#text_inner {
    background-color: rgba(0, 0, 0, 0.65);
    border: 1px solid #1a2d42;
}

/* Campo de busca */
.search {
    background: #4b4b4b;
    color: #fff;
}

/* ==============================
 * Mobile navbar (scroll horizontal de ícones) — desktop = display:none
 * Mobile = sticky abaixo da topbar, item ativo destacado e centralizado.
 * ============================== */
#mobile-navbar { display: none; }

/* ==============================
 * Mobile topbar + hero + drawer
 * ============================== */
@media (max-width: 680px) {
    /* Mobile navbar — sticky abaixo da topbar fixed (top:48px). Funciona
       agora porque trocamos `#page { overflow-x: hidden }` por
       `html { overflow-x: clip }` — clip não cria contexto de scroll. */
    #mobile-navbar {
        display: block;
        position: sticky;
        top: 48px;
        z-index: 1000;
        background: linear-gradient(180deg, #0f1c2e 0%, #0a1422 100%);
        border-top: 1px solid #1a2d42;
        border-bottom: 1px solid #1a2d42;
    }

    .mobile-navbar-track {
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mobile-navbar-track::-webkit-scrollbar { display: none; }

    .mnav-item {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 54px;
        padding: 5px 6px;
        text-decoration: none;
        color: #7a8190;
        border-bottom: 2px solid transparent;
        transition: color 0.15s ease, background-color 0.15s ease;
    }
    .mnav-item:hover,
    .mnav-item:active { color: #c2cad6; }

    .mnav-item svg.lucide,
    .mnav-item i[data-lucide] svg {
        width: 16px;
        height: 16px;
        stroke-width: 2;
        color: inherit;
        display: block;
    }
    .mnav-item i[data-lucide] { display: block; line-height: 0; }

    /* Label aparece em todos os items (não só no ativo) */
    .mnav-label {
        display: block;
        font-size: 8.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
        line-height: 1;
        margin-top: 2px;
    }

    /* Item ativo: destacado em tons azul-cinza do tema */
    .mnav-active {
        color: #ffffff !important;
        background-color: rgba(42, 64, 96, 0.35);
        border-bottom-color: #2a4060;
    }
    .mnav-active .mnav-label { color: #ffffff; }
    /* Topbar — camada de "vidro" sobre o hero. Fundo bem translúcido + blur,
       sem border-bottom nem box-shadow para não criar linha dura. */
    #mobile-topbar {
        background-color: rgba(8, 14, 22, 0.45);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
        border-bottom: none;
        box-shadow: none;
    }

    #hamburger span { background: #d8dde5; }

    #mobile-online-count {
        color: var(--color-accent-soft);
        text-shadow: 1px 1px #000;
    }
    #mobile-online-count:hover,
    #mobile-online-count:active {
        color: #ffffff;
        background-color: var(--surface-soft-hover);
    }

    /* Hero — gradient + cenário (cover) no #logo. Logo via ::before com drop-shadow
       afeta só a logo, evita "linha dura" ao final do gradient.
       O gradient termina em #04080f (mesma cor sólida do body), garantindo
       continuidade visual entre o hero e o resto da página. */
    #logo {
        background-image:
            linear-gradient(180deg,
                rgba(0, 0, 0, 0.15) 0%,
                rgba(0, 0, 0, 0.45) 55%,
                rgba(4, 8, 15, 0.95) 88%,
                #04080f 100%),
            url('https://static.tibia-old.com/layouts/cyber/_img/background/background_clear.png');
        background-position: center, center;
        background-size: 100% 100%, cover;
        background-repeat: no-repeat, no-repeat;
    }
    #logo::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('https://static.tibia-old.com/layouts/cyber/_img/background/tibia-old-logo.png');
        background-position: center 42%;
        background-size: auto 50%;
        background-repeat: no-repeat;
        filter:
            drop-shadow(0 0 14px rgba(255, 200, 100, 0.18))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
        pointer-events: none;
    }

    /* Drawer = camada isolada sólida. Box-shadow só aplica quando aberto —
       sem isso o gradient lateral preto do drawer (translateX(-100%)) ainda
       aparece projetado na borda esquerda do viewport, vazando atrás do
       conteúdo. */
    #menu_left {
        background: #0a121d;
    }
    #menu_left.drawer-open {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.9);
    }

    /* Overlay escurecido + leve blur (onde suportado) para isolar o menu do conteúdo */
    #drawer-overlay {
        background: rgba(0, 0, 0, 0.65);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    /* No drawer as seções empilham flat — sem border-radius individual.
       Separadas apenas pelo border-bottom de cada seção. */
    #themeboxnews {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid #1a2d42;
        margin-bottom: 0;
    }

    /* Subitens: cor neutra única, sem destaque colorido — hierarquia vem de
       tamanho/indentação. Override de .nav-* (definidos abaixo) e do bold do
       <b> usado inline em vários <li>. */
    #menu_links li a,
    #menu_links li a b,
    #menu_links li a span,
    #menu_links .nav-danger,
    #menu_links .nav-primary,
    #menu_links .nav-info,
    #menu_links .nav-warning,
    #menu_links .nav-success,
    #menu_links .nav-pink,
    #menu_links .nav-lightblue,
    #menu_links .nav-gold,
    #menu_links .nav-yellow,
    #menu_links .nav-violet,
    #menu_links .nav-palegreen,
    #menu_links .nav-steel {
        color: #c2cad6;
        font-weight: normal;
        text-shadow: none;
    }
    #menu_links li a:hover,
    #menu_links li a:hover b,
    #menu_links li a:hover span { color: #ffffff; }

    /* Separador discreto entre subitens (override do .07 default do desktop) */
    #menu_links li       { border-bottom: 1px solid rgba(255,255,255,0.04); }
    #menu_links li:hover { background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.04); }
    #menu_links li:last-child { border-bottom: none; }
}

/* ==============================
 * Cores dos links da sidebar
 * ============================== */
.nav-danger    { color: var(--color-danger); }
.nav-primary   { color: var(--color-primary); }
.nav-info      { color: var(--color-info); }
.nav-warning   { color: var(--color-warning); }
.nav-success   { color: var(--color-success); }
.nav-pink      { color: #ff88bb; }
.nav-lightblue { color: #88ccff; }
.nav-gold      { color: #ffe880; }
.nav-yellow    { color: #ffee66; }
.nav-violet    { color: #ff66ff; }
.nav-palegreen { color: #98fb98; }
.nav-steel     { color: #b0c4de; }
.nav-small     { font-size: 0.88em; }

/* ==============================
 * Botões inline legados
 * ============================== */
.btncancelar {
    padding: 3px 10px;
    font-weight: bold;
    background-color: lightgrey;
    color: red;
    outline: none;
    border: none;
    border-radius: 5px;
}
input[type="submit"].btncancelar:hover { color: black; cursor: pointer; }

.btncomprar {
    padding: 5px 10px;
    font-weight: bold;
    background-color: lightgrey;
    color: green;
    outline: none;
    border: none;
    border-radius: 5px;
}
input[type="submit"].btncomprar:hover { color: blue; cursor: pointer; }

/* ==============================
 * Tooltip
 * ============================== */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}
.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #1e1e2f;
    width: 200px;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 20px 20px 5px;
    position: absolute;
    z-index: 999999;
    top: -1px;
    left: 100%;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip .tooltiptext h2 { color: gold; margin-bottom: 4px; }

/* Desktop (mouse): hover abre. Sem comportamento de click. */
@media (hover: hover) {
    .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }
}

/* Touch (sem hover real): tap toggle (.is-open via JS em app.js) e
   focus-within (keyboard a11y) tomam o lugar. Popup vira modal centralizado
   pra evitar overflow horizontal — mesmo padrao da buychar. */
@media (hover: none) {
    .tooltip:focus-within .tooltiptext,
    .tooltip.is-open .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    .tooltip .tooltiptext {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: max-content;
        max-width: 86vw;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 9999999;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }
}

/* ==============================
 * Cookie popup
 * ============================== */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #1e1e2f;
    border: 2px solid #34495e;
    padding: 15px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #fff;
    max-width: 300px;
    display: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#cookie-popup a { color: gold; text-decoration: none; }
#cookie-popup button {
    background-color: gold;
    border: none;
    color: #1e1e2f;
    padding: 8px 16px;
    display: inline-block;
    font-size: 14px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    float: right;
}
#cookie-popup button:hover { background-color: #b8860b; }

/* ==============================
 * Componentes de posts de notícia
 * (xmas e similares — reutilizados inline em posts do editor)
 * ============================== */
.xmas-post {
    --table-font-size: 12px;
    --header-font-size: 11px;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
}
.xmas-post h2 { margin: 10px 0 8px; font-size: 20px; text-transform: uppercase; letter-spacing: 2px; color: #9ad0ff; }
.xmas-post p  { margin: 6px 0 8px; }
.xmas-post .xmas-hero { display: flex; justify-content: center; margin: 6px 0 8px; }
.xmas-post .xmas-hero img {
    display: block; max-width: 100%; height: auto;
    border: 1px solid #1b2c42; border-radius: 4px;
    background: rgba(10, 15, 24, 0.6); padding: 4px;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(8, 13, 22, 0.75);
    border: 1px solid #233851;
    margin-bottom: 16px;
}
.tier-table thead { background: rgba(32, 54, 82, 0.9); }
.tier-table th,
.tier-table td    { padding: 9px 10px; border-bottom: 1px solid #1b2c42; text-align: left; font-size: var(--table-font-size, 12px); }
.tier-table th    { text-transform: uppercase; font-size: var(--header-font-size, 11px); letter-spacing: 0.5px; color: #c2e4ff; }
.tier-table tbody tr:nth-child(even) { background: rgba(19, 30, 47, 0.55); }

.tier-title {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 6px 0 4px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    color: #9ad0ff; padding: 6px 10px;
    background: rgba(19, 30, 47, 0.55); border: 1px solid #1b2c42; border-radius: 4px;
}

.tier-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-bottom: 2px; }

.tier-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 2px 3px;
    width: calc(10% - 2px); min-width: 84px; min-height: 76px;
    justify-content: center; position: relative;
    background: rgba(10, 15, 24, 0.6); border: 1px solid #1b2c42; border-radius: 4px;
    text-align: center;
}
.tier-card:hover { border-color: #375470; background: rgba(19, 30, 47, 0.65); }
.tier-card .item-name { font-size: 10px; line-height: 1.05; }

.item-cell { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.icon-wrapper {
    width: 36px; height: 36px;
    border: none; background: transparent; border-radius: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.item-icon { width: 32px; height: 32px; display: block; image-rendering: pixelated; }

.chance-tag {
    display: inline-block;
    background: rgba(57, 89, 128, 0.5); border: 1px solid #375470; border-radius: 3px;
    padding: 2px 6px; margin-left: 6px; font-size: 11px; color: #cfe7ff;
}

.tier-card .item-tooltip {
    position: absolute; bottom: calc(100% + 4px); left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(8, 13, 22, 0.9); border: 1px solid #233851;
    color: #cfe7ff; font-size: 10px; line-height: 1.2;
    padding: 4px 6px; border-radius: 4px;
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease; z-index: 2;
}
.tier-card:hover .item-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
