/* ==================== VARIÁVEIS GLOBAIS ==================== */
:root {
    --bg-deep: #050508;
    --glass: rgba(10, 10, 15, 0.92);
    --glass-border: rgba(255, 255, 255, 0.06);
    --accent: #c084fc;
    --accent-2: #e0b0ff;
    --gold: #ffd700;
    --text: #ffffff;
    --muted: #b0b0b0;
    --danger: #ff6b7a;
    --success: #7ae0a0;
    --red-glow: #ff4a5f;
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-size: 17px;
}

body.light-mode {
    --bg-deep: #e4d1b0;
    --glass: rgba(224, 204, 170, 0.94);
    --glass-border: rgba(48, 28, 18, 0.30);
    --accent: #6e347f;
    --accent-2: #3b1b55;
    --gold: #6f4b00;
    --text: #12100e;
    --muted: #392c26;
    --danger: #c8374c;
    --success: #26784a;
    --red-glow: #b61f34;
}

/* ==================== RESET BÁSICO ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at 30% 10%, #1a1030 0%, var(--bg-deep) 60%, #08051a 100%);
    color: var(--text);
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-size: var(--font-size);
    -webkit-font-smoothing: antialiased;
}
body.light-mode {
    background: radial-gradient(ellipse at 22% 4%, rgba(218,135,61,0.34) 0%, rgba(229,211,178,0.96) 46%, #d4bb94 100%);
}
body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") repeat;
    pointer-events: none; z-index: 0;
}
body.light-mode::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(182,31,52,0.13), transparent 28%),
        url("data:image/svg+xml,%3Csvg width='72' height='72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 36h8M60 36h8M36 4v8M36 60v8' stroke='rgba(71,45,24,0.16)' stroke-width='2'/%3E%3Ccircle cx='36' cy='36' r='1.5' fill='rgba(71,45,24,0.20)'/%3E%3C/svg%3E") repeat;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(192,132,252,0.48) rgba(255,255,255,0.04);
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.035);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(192,132,252,0.55), rgba(255,74,95,0.45));
    border: 2px solid rgba(5,5,8,0.76);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(224,176,255,0.76), rgba(255,74,95,0.62)); }
body.light-mode * { scrollbar-color: rgba(86,45,105,0.64) rgba(71,45,24,0.12); }
body.light-mode ::-webkit-scrollbar-track { background: rgba(71,45,24,0.12); }
body.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(86,45,105,0.64), rgba(182,31,52,0.54));
    border-color: rgba(224,204,170,0.94);
}
.nav-menu::-webkit-scrollbar { width: 7px; }

/* SIDEBAR */
.sidebar {
    width: 280px; min-width: 280px;
    background: rgba(8, 8, 12, 0.92); backdrop-filter: blur(35px);
    border-right: 2px solid rgba(140, 120, 255, 0.18);
    display: flex; flex-direction: column; padding: 18px 12px; z-index: 10;
    box-shadow: 4px 0 30px rgba(100, 60, 200, 0.15);
}
.sidebar-header { text-align: center; margin-bottom: 10px; }
.site-title {
    font-weight: 800; font-size: 1.3rem; color: var(--accent-2);
    text-shadow: 0 0 12px rgba(180, 150, 255, 0.7), 0 0 4px var(--red-glow); letter-spacing: 1px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    animation: neonTitleRed 4s ease-in-out infinite;
    cursor: pointer;
}
.site-title:focus-visible { outline: 2px solid var(--red-glow); outline-offset: 4px; border-radius: 10px; }
.site-title img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(180, 150, 255, 0.8)); animation: floatTitle 3s ease-in-out infinite; }
.subtitle { font-size: 0.7rem; font-weight: 400; font-style: italic; color: var(--muted); margin-top: 2px; }

/* IDIOMAS */
.lang-selector { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; justify-content: center; margin: 10px 0; }
.lang-btn {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted); padding: 6px 7px; border-radius: 20px; cursor: pointer;
    font-size: 0.7rem; font-weight: 400; transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    min-height: 32px;
}
.lang-btn img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: middle; margin-right: 2px; }
.lang-btn:hover { background: rgba(184, 146, 255, 0.15); color: var(--text); }
.lang-btn.active { background: rgba(184, 146, 255, 0.25); border-color: var(--accent); color: var(--accent); }
button:focus-visible,
a:focus-visible,
.nav-item:focus-visible,
.nav-section-title:focus-visible,
.search-bar:focus-visible {
    outline: 2px solid var(--red-glow);
    outline-offset: 3px;
}

/* MENU */
.nav-menu { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav-section-title {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold);
    margin-top: 14px; margin-bottom: 6px; padding: 9px 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    border-radius: 10px; transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,74,95,0.045));
}
.nav-section-title:hover { background: rgba(255,255,255,0.05); color: var(--accent-2); }
.nav-section-title::after { content: '+'; font-size: 0.85rem; color: var(--red-glow); }
.nav-section-title.open::after { content: '−'; }
.nav-item.section-hidden { display: none; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 10px;
    color: var(--muted); font-weight: 500; cursor: pointer; transition: all var(--transition); font-size: 1rem;
    border: 1px solid transparent;
}
.nav-item:hover { background: rgba(184, 146, 255, 0.08); color: var(--text); border-color: rgba(255,255,255,0.08); }
.nav-item.active { background: rgba(192, 132, 252, 0.15); color: var(--accent); font-weight: 600; border-left: 3px solid var(--accent); }
.nav-icon { font-size: 1.3rem; min-width: 22px; text-align: center; }

.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.15); color: var(--text); font-size: 1.4rem; padding: 4px 10px; border-radius: 8px; cursor: pointer; margin-left: auto; transition: var(--transition); }
.menu-toggle:hover { background: rgba(184, 146, 255, 0.2); }

/* SIDEBAR FOOTER */
.sidebar-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 0.7rem; color: var(--muted); }
.gold-text { color: var(--gold); }
.update-info { font-size: 0.65rem; color: var(--gold); margin-top: 4px; }
.play-btn { display: inline-block; margin-top: 8px; padding: 7px 16px; background: rgba(192,132,252,0.15); border: 1px solid var(--accent); border-radius: 20px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.8rem; transition: var(--transition); margin-left: 4px; }
.play-btn:first-of-type { margin-left: 0; }
.play-btn:hover { background: var(--accent); color: #000; }

/* PAINEL PRINCIPAL */
.main-panel { flex: 1; display: flex; flex-direction: column; overflow-y: auto; position: relative; z-index: 1; }
.top-bar { padding: 10px 24px; background: rgba(6,6,12,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 80; }
.page-title { font-weight: 700; font-size: 1.5rem; background: linear-gradient(to right, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: flex; align-items: center; gap: 8px; }
.page-title img { width: 34px; height: 34px; image-rendering: pixelated; -webkit-text-fill-color: initial; }
.discord-link { color: var(--accent-2); text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; background: rgba(88,101,242,0.15); border: 1px solid rgba(140,120,255,0.2); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.discord-link:hover { background: rgba(88,101,242,0.3); color: #fff; }

/* PESQUISA */
.search-shell { position: relative; flex: 1 1 380px; max-width: 520px; min-width: 220px; z-index: 30; }
.search-bar {
    width: 100%;
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    outline: none;
    padding: 9px 16px;
    font: inherit;
    font-size: 0.92rem;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.search-bar::placeholder { color: rgba(255,255,255,0.42); }
.search-bar:focus { background: rgba(12,12,20,0.95); border-color: rgba(224,176,255,0.72); box-shadow: 0 0 0 3px rgba(192,132,252,0.14); }
body.light-mode .search-bar {
    color: #080706;
    background: rgba(214,194,160,0.96);
    border-color: rgba(13,9,7,0.72);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16), 0 6px 22px rgba(88,49,20,0.10);
    text-shadow: 0 0 1px rgba(0,0,0,0.55);
}
body.light-mode .search-bar::placeholder { color: rgba(32,24,20,0.72); }
body.light-mode .search-bar:focus {
    background: rgba(229,210,177,0.98);
    border-color: #080706;
    box-shadow: 0 0 0 3px rgba(8,7,6,0.14), 0 0 18px rgba(182,31,52,0.20);
}
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 90;
    max-height: min(68vh, 520px);
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(7,7,12,0.98);
    box-shadow: 0 18px 54px rgba(0,0,0,0.62);
}
.search-category { margin-bottom: 10px; }
.search-category:last-child { margin-bottom: 0; }
.search-category-title { font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 8px 6px; }
.search-result {
    width: 100%;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.search-result:hover, .search-result:focus { background: rgba(192,132,252,0.16); outline: none; }
.search-result-icon img, .search-result-icon .item-fallback { width: 26px; height: 26px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255,255,255,0.15)); }
.search-result-title { display: block; font-weight: 700; line-height: 1.2; }
.search-result-desc { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.25; margin-top: 2px; }
.search-result-type { color: var(--accent-2); font-size: 0.7rem; border: 1px solid rgba(224,176,255,0.24); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.search-empty { padding: 14px; color: var(--muted); text-align: center; }
.official-wiki-link { text-align: center; margin: -4px 0 10px; }
.official-wiki-link a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 1px; }
.official-wiki-link a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.theme-toggle {
    width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 0 16px rgba(255,74,95,0.10);
    transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--red-glow); transform: translateY(-1px); box-shadow: 0 0 18px rgba(255,74,95,0.24); }

.header-clock {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 470px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.25;
}
.header-clock span {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    border-radius: 999px;
    padding: 4px 8px;
    white-space: nowrap;
}
.header-clock strong { color: var(--gold); font-weight: 800; }

/* DICA */
.header-tip { margin-left: auto; font-size: 0.9rem; color: var(--muted); background: rgba(255,255,255,0.05); padding: 6px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: var(--transition); white-space: normal; max-width: 400px; line-height: 1.4; text-align: left; }
.header-tip:hover { background: rgba(184,146,255,0.1); color: var(--text); }
.header-tip-label { font-weight: 700; color: var(--gold); margin-right: 6px; }
body.light-mode .header-tip {
    background: rgba(208,184,145,0.88);
    border-color: rgba(24,15,10,0.42);
    color: #18120f;
    text-shadow: 0 0 1px rgba(0,0,0,0.52);
}
body.light-mode .header-tip:hover { background: rgba(198,166,122,0.95); }

/* WORKSPACE */
.workspace { flex: 0 0 auto; overflow: visible; padding: 20px 24px; }
.credit-footer { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 10px; border-top: 1px solid rgba(255,255,255,0.04); background: rgba(12,10,22,0.7); }
.credit-footer a { color: var(--accent); text-decoration: none; }
.credit-footer a:hover { text-decoration: underline; }

/* CARDS */
.card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 22px rgba(255,255,255,0.035); margin-bottom: 18px; transition: transform 0.2s, box-shadow 0.2s; }
.card::before, .table-scroll::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,74,95,0.65), rgba(255,215,0,0.28), transparent);
    opacity: 0.55;
    margin: -1px 10% 12px;
    border-radius: 999px;
}
.card:hover { transform: translateY(-2px); }
h2 { color: var(--accent); margin-bottom: 14px; font-size: 1.5rem; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 10px rgba(255,255,255,0.24), 0 0 6px rgba(255,74,95,0.18); }
h3 { color: var(--accent-2); font-size: 1.15rem; margin-bottom: 8px; text-shadow: 0 0 8px rgba(255,255,255,0.18); }
.small-text { font-size: 0.9rem; color: var(--muted); }

/* TABELAS */
.xp-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.table-scroll { overflow: auto; max-height: 70vh; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); -webkit-overflow-scrolling: touch; position: relative; }
.table-scroll .xp-table { margin-top: 0; }
.xp-table th, .xp-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.08); }
.xp-table th:last-child, .xp-table td:last-child { border-right: none; }
.xp-table .img-cell { border-right: 1px solid rgba(255,255,255,0.08); }
.xp-table th { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; position: sticky; top: 0; z-index: 2; background: rgba(12,12,18,0.95); }
.xp-table tr:hover { background: rgba(184,146,255,0.04); }
.xp-table .img-cell { width: 48px; text-align: center; }
.xp-table img { width: 36px; height: 36px; image-rendering: pixelated; vertical-align: middle; filter: drop-shadow(0 0 6px rgba(255,255,255,0.15)); }
.xp-table .img-cell img { display: block; margin: 0 auto; width: 36px; height: 36px; image-rendering: pixelated; }
.sell-value { color: var(--gold); font-weight: 800; text-shadow: 0 0 8px rgba(255,215,0,0.18); }
.item-inline-button,
.table-icon-button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.item-inline-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}
.table-icon-button { display: inline-grid; place-items: center; }
.item-inline-button:hover span,
.table-icon-button:hover span,
.item-mention:hover { color: var(--gold); }
.item-mention { cursor: pointer; border-radius: 8px; }
body.light-mode .sell-value { color: #116726; text-shadow: 0 1px 1px rgba(255,255,255,0.55); }

/* CAIXAS */
.result-box { margin-top: 10px; padding: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; box-shadow: 0 0 18px rgba(255,255,255,0.028); }
.result-box .label { font-weight: 700; color: var(--accent-2); }
.result-box img { width: 48px; height: 48px; image-rendering: pixelated; vertical-align: middle; margin-right: 6px; }

/* IMAGENS */
.content-image { display: block; max-width: 800px; width: min(100%, 780px); max-height: 560px; object-fit: contain; margin: 12px auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.zoomable-image { cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.image-zoomed { cursor: zoom-out; transform: scale(1.55); z-index: 20; position: relative; box-shadow: 0 0 0 2px rgba(255,255,255,0.2), 0 18px 48px rgba(0,0,0,0.55); }
.inline-fishing-icon { width: 34px; height: 34px; display: inline-block; vertical-align: middle; margin-left: 8px; }
.fishing-region-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.skill-hero-header { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; margin-bottom: 16px; }
.skill-title-icon,
.large-map-icon { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(255,255,255,0.18)); }
.fishing-map-callout { display: flex; align-items: center; gap: 16px; }

/* Dated update badge (shows which patch introduced an info, date on hover) */
.update-date-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.03em;
    vertical-align: middle; margin-left: 8px;
    padding: 2px 8px; border-radius: 999px;
    color: #c9a227; background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.34);
    cursor: help; white-space: nowrap;
}
.update-date-badge:hover, .update-date-badge:focus-visible { background: rgba(201,162,39,0.22); outline: none; }
body.light-mode .update-date-badge { color: #6f4b00; background: rgba(111,75,0,0.10); border-color: rgba(111,75,0,0.30); }

/* Video quests (name + video + chapters) */
.quest-subtitle {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: #c9a227; vertical-align: middle; margin-left: 10px;
    padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(201,162,39,0.34);
    background: rgba(201,162,39,0.10);
}
body.light-mode .quest-subtitle { color: #6f4b00; border-color: rgba(111,75,0,0.30); }
.quest-cover { text-align: center; margin: 14px 0 6px; }
.quest-cover .quest-logo { max-width: 440px; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(201,162,39,0.30); }
.quest-cover-fallback { display: none; }
.quest-cover.is-missing .quest-cover-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 440px; height: 150px; margin: 0 auto;
    font-size: 2.8rem; border-radius: 12px;
    border: 1px dashed rgba(201,162,39,0.4);
    background: linear-gradient(135deg, rgba(70,46,104,0.32), rgba(40,28,60,0.20));
}
.quest-chapters { list-style: none; padding: 0; margin: 12px auto 4px; max-width: 640px; text-align: left; }
.quest-chapters li { position: relative; padding: 8px 12px 8px 28px; border-bottom: 1px dashed rgba(201,162,39,0.16); }
.quest-chapters li:last-child { border-bottom: none; }
.quest-chapters li::before { content: "◆"; position: absolute; left: 8px; top: 9px; color: #c9a227; font-size: 0.68rem; }

/* DIÁLOGOS / QUEST */
.dialog-small { max-width: 60px; width: auto; max-height: 60px; vertical-align: middle; margin: 0 4px; border-radius: 6px; }
.dialog-translation { margin-top: 8px; font-style: italic; opacity: 0.92; border-color: rgba(136,204,255,0.24); background: rgba(40,70,95,0.16); }

/* Speech bubble — avatar column + content, modern chat look */
.speech-box {
    position: relative;
    margin-top: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(70,46,104,0.34), rgba(40,28,60,0.20));
    border: 1px solid rgba(201,162,39,0.22);
    border-left: 3px solid rgba(201,162,39,0.6);
}
.speech-box .dialog-avatar {
    width: 56px !important; height: 56px !important;
    object-fit: cover; border-radius: 10px;
    float: none; margin: 2px 0 0 0; flex-shrink: 0;
    border: 1px solid rgba(201,162,39,0.45);
    box-shadow: 0 3px 10px rgba(0,0,0,0.34);
}
.speech-box > div { flex: 1; min-width: 0; }

/* Each dialogue turn is clearly separated */
.speech-box .dialog-turn { margin: 0; padding: 7px 0; line-height: 1.55; }
.speech-box .dialog-turn + .dialog-turn { border-top: 1px dashed rgba(201,162,39,0.16); margin-top: 2px; }
.speech-box .dialog-turn strong:first-child { letter-spacing: 0.02em; }
.speech-box .dialog-turn--frog strong:first-child { color: #e0b94a; }
.speech-box .dialog-turn--you {
    color: #cfe2ff;
    padding-left: 12px;
    border-left: 2px solid rgba(127,176,255,0.5);
    margin-left: 2px;
}
.speech-box .dialog-turn--you strong:first-child { color: #7fb0ff; }
/* tail pointing at the avatar */
.speech-box::before {
    content: ""; position: absolute; top: 22px; left: -9px; width: 0; height: 0;
    border-top: 9px solid transparent; border-bottom: 9px solid transparent;
    border-right: 10px solid rgba(201,162,39,0.6);
}
/* avatar-less bubbles (e.g. continuation) still look fine */
.speech-box:not(:has(.dialog-avatar)) { border-left-width: 3px; }
body.light-mode .speech-box { background: linear-gradient(135deg, rgba(214,182,140,0.5), rgba(228,209,176,0.32)); }
body.light-mode .speech-box .dialog-turn--you { color: #1d3a66; border-left-color: rgba(40,90,160,0.5); }
body.light-mode .speech-box .dialog-turn--you strong:first-child { color: #275aa6; }
@media (max-width: 640px) {
    .speech-box { gap: 10px; padding: 12px; }
    .speech-box .dialog-avatar { width: 44px !important; height: 44px !important; }
}

/* QUEST INDEX */
.quest-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; padding: 12px; background: rgba(0,0,0,0.4); border-radius: 12px; }
.quest-index-sticky { position: sticky; top: 72px; float: none; width: 100%; margin: 12px 0; z-index: 3; }
.quest-index a { background: rgba(192,132,252,0.15); padding: 5px 12px; border-radius: 20px; color: var(--accent); text-decoration: none; font-size: 0.78rem; line-height: 1.3; white-space: normal; max-width: 100%; }
.quest-index a:hover { background: var(--accent); color: #000; }
.quest-index-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.18); background: rgba(12,12,18,0.8); color: #fff; padding: 6px 12px; border-radius: 999px; margin: 8px 0; cursor: pointer; }
.quest-index-sticky.collapsed { display: none; }

/* GALERIA */
.gallery-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gallery-strip .gallery-card, .gallery-strip a { flex: 0 0 clamp(180px, 28vw, 280px); scroll-snap-align: start; }
.gallery-shot, .gallery-strip img { height: 200px; object-fit: contain; background: rgba(10,10,16,0.65); border-radius: 8px; }

/* TABELAS DE MISTURAS */
.item-inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.item-inline img { width: 28px; height: 28px; margin: 0; filter: drop-shadow(0 0 6px rgba(255,255,255,0.15)); }
.item-mention { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #fff4c6; font-weight: 650; }
.item-inline-icon { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -4px; filter: drop-shadow(0 0 6px rgba(255,255,255,0.15)); }
.mix-table th, .mix-table td { vertical-align: middle; }
.mix-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mix-op { font-weight: 700; color: var(--gold); font-size: 1rem; line-height: 1; }
.mix-xp { color: var(--success); font-weight: 700; }
.level-divider-row td { text-align: center; font-weight: 800; color: #ffe39f; letter-spacing: 0.08em; background: rgba(255,215,0,0.10); border-top: 1px solid rgba(255,255,255,0.20); border-bottom: 1px solid rgba(255,255,255,0.20); }
.skill-disclaimer { color: #ffd6a8; margin-bottom: 0.6em; }
.chapter-end { margin-top: 10px; border: 1px solid rgba(192,132,252,0.4); background: rgba(192,132,252,0.10); padding: 10px; text-align: center; border-radius: 8px; }
.highlight-temp { animation: highlightTemp 3s ease-out 1; position: relative; }

/* YOUTUBE HIGHLIGHT */
.youtube-highlight { margin: 14px 0; padding: 10px 14px; border: 1px solid rgba(255,120,120,0.35); background: rgba(120,10,10,0.25); border-radius: 10px; }
.youtube-highlight a { color: #ffd6d6; font-weight: 700; text-decoration: none; }
.youtube-highlight a:hover { text-decoration: underline; }
.link-highlight { margin: 14px auto; max-width: 820px; padding: 12px 16px; border: 1px solid rgba(255,215,0,0.28); background: rgba(255,215,0,0.08); border-radius: 10px; text-align: center; }
.link-highlight a { color: #ffe39f; font-weight: 800; text-decoration: none; }
.link-highlight a:hover { text-decoration: underline; }

/* MODAL customizado (fallback) */
.img-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.img-modal.open { display: flex; }
.img-modal-image { width: min(var(--zoom-width, 1280px), calc(100vw - 48px)); height: min(var(--zoom-height, 720px), calc(100vh - 48px)); object-fit: contain; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.4); box-shadow: 0 18px 54px rgba(0,0,0,0.72); cursor: zoom-out; }
.img-modal-close, .img-modal-nav { position: absolute; border: 0; background: rgba(20,20,26,0.78); color: #fff; cursor: pointer; border-radius: 999px; }
.img-modal-close { top: 16px; right: 20px; width: 42px; height: 42px; font-size: 1.6rem; }
.img-modal-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 2rem; line-height: 1; }
.img-modal-nav.prev { left: 16px; }
.img-modal-nav.next { right: 16px; }
.img-modal-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: #ddd; background: rgba(0,0,0,0.45); padding: 4px 10px; border-radius: 999px; }

/* RESPONSIVO */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; min-width: auto; height: auto; flex-shrink: 0; padding: 10px 14px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 140; }
    .sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
    .site-title { font-size: 1.3rem; }
    .page-title img { width: 28px; height: 28px; }
    .subtitle { display: none; }
    .menu-toggle { display: block; }
    /* lang-selector controlado pelas regras v3.1.5 mais abaixo (oculto até sidebar.open) */
    .lang-btn { min-height: 30px; padding: 5px 6px; }
    .nav-menu { display: none; flex-direction: column; max-height: 48vh; overflow-y: auto; margin-top: 6px; padding-bottom: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
    .sidebar.open .nav-menu { display: flex; }
    .nav-section-title { font-size: 0.72rem; margin-top: 8px; padding: 8px 10px; }
    .nav-item { font-size: 0.86rem; padding: 10px 12px; }
    .nav-icon { font-size: 1rem; min-width: auto; }
    .sidebar-footer { display: none; }
    .main-panel { flex: 1; overflow-y: auto; }
    .top-bar { position: sticky; top: 0; z-index: 120; padding: 6px 12px; flex-wrap: wrap; gap: 6px; }
    .page-title { font-size: 1.1rem; gap: 6px; }
    .search-shell { order: 3; flex-basis: 100%; max-width: none; min-width: 0; }
    .header-clock { order: 4; flex-basis: 100%; max-width: none; font-size: 0.66rem; gap: 4px; }
    .header-clock span { padding: 3px 6px; }
    .search-bar { padding: 7px 12px; font-size: 0.82rem; }
    .search-results { max-height: 58vh; }
    .site-title img { width: 36px; height: 36px; }
    .discord-link { font-size: 0.7rem; padding: 3px 8px; }
    .header-tip { font-size: 0.72rem; max-width: 180px; padding: 2px 8px; line-height: 1.2; }
    .workspace { padding: 10px 8px; }
    .home-banner { max-height: 190px; border-radius: 10px; }
    .home-section-title { display: block; font-size: 1.15rem; }
    .home-section-title small { display: block; text-align: left; margin-top: 4px; }
    .home-media-feature { grid-template-columns: 1fr; gap: 12px; }
    .home-video { min-height: 150px; max-height: 220px; }
    .xp-table img { width: 28px; height: 28px; }
    .xp-table th, .xp-table td { padding: 6px 8px; font-size: 0.75rem; }
    .table-scroll { max-height: 62vh; }
    .card { padding: 14px; }
    .quest-index-sticky { position: static; float: none; width: 100%; margin-left: 0; }
    .gallery-shot, .gallery-strip img { height: 200px; }
    .mix-cell { flex-direction: column; align-items: flex-start; gap: 4px; }
    .image-zoomed { transform: scale(1.18); }
    .img-modal { padding: 10px; }
    .img-modal-image {
        width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100vh - 72px);
        object-fit: contain;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar { width: 250px; min-width: 250px; }
    .site-title { font-size: 1.2rem; }
    .nav-item { font-size: 0.85rem; padding: 8px 10px; }
}

@media (min-width: 769px) {
    .sidebar .nav-menu { display: flex !important; }
    .menu-toggle { display: none !important; }
}
/* ===== EFEITOS DE DIÁLOGO ===== */
.text-blue { color: #88ccff; }
.text-red { color: #ff6666; }
.shake-animation { animation: shake 0.2s infinite; }
.float-animation { animation: float 2s ease-in-out infinite; }
.italic-bond { font-style: italic; font-weight: bold; }
.hard-shake {
    animation: hardShake 0.1s infinite;
    color: #cc0000;
    text-shadow: 0 0 4px darkred;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}
@keyframes hardShake {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-3px) translateY(-1px); }
    75% { transform: translateX(3px) translateY(1px); }
    100% { transform: translateX(0) translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}
@keyframes floatTitle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
@keyframes neonTitleRed {
    0%, 100% { text-shadow: 0 0 12px rgba(180,150,255,0.7), 0 0 3px rgba(255,74,95,0.34); }
    50% { text-shadow: 0 0 12px rgba(180,150,255,0.7), 0 0 9px rgba(255,74,95,0.78), 0 0 18px rgba(255,74,95,0.22); }
}
@keyframes tipPulse {
    0% { opacity: 0.38; transform: translateY(-4px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes highlightTemp {
    0% { box-shadow: 0 0 0 2px rgba(255,215,0,0.75), 0 0 28px rgba(255,215,0,0.42); background-color: rgba(255,215,0,0.16); }
    70% { box-shadow: 0 0 0 2px rgba(255,215,0,0.32), 0 0 18px rgba(255,215,0,0.18); background-color: rgba(255,215,0,0.08); }
    100% { box-shadow: none; background-color: transparent; }
}
.header-tip.tip-changing { animation: tipPulse 0.45s ease; }
.home-hero { text-align: center; overflow: hidden; }
.release-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255,74,95,0.34);
    border-radius: 999px;
    color: var(--gold);
    background: linear-gradient(90deg, rgba(255,74,95,0.12), rgba(255,215,0,0.07), rgba(255,74,95,0.10));
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(255,255,255,0.20), 0 0 8px rgba(255,74,95,0.22);
    animation: neonTitleRed 4s ease-in-out infinite;
}
.home-banner { width: 100%; max-height: 360px; object-fit: cover; object-position: center; border-radius: 14px; margin: 0 auto 18px; display: block; border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 18px 50px rgba(0,0,0,0.38); }
.home-sardine { width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(255,255,255,0.18)); animation: floatTitle 3.4s ease-in-out infinite; margin-bottom: 8px; }
.home-welcome { font-size: 1.2rem; margin-bottom: 8px; }
.home-desc { margin-bottom: 18px; }
.home-categories { margin-top: 18px; display: flex; flex-direction: column; gap: 26px; }
.home-category { text-align: left; }
.home-category-title {
    margin: 0 0 12px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,162,39,0.22);
}
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 0; text-align: left; }
.home-categories .home-grid { margin-top: 0; }
.quest-source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.home-card { cursor: pointer; min-height: 126px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.home-card:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(192,132,252,0.08); }
.home-card h3 { margin-bottom: 8px; }
.home-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.home-about { margin-top: 26px; text-align: left; }
.home-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.35rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.22);
}
.home-section-title small { color: var(--muted); font-size: 0.82rem; font-weight: 700; max-width: 520px; text-align: right; }
.home-media-feature {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.home-video {
    width: 100%;
    min-height: 230px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.36);
    box-shadow: 0 18px 38px rgba(0,0,0,0.26);
}
.home-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; }
.home-about-card { margin-top: 0; }
.home-about-card .home-video { min-height: 160px; max-height: 210px; margin-bottom: 12px; }
.home-membership, .home-system-preview { margin-top: 16px; }
.home-external-section { margin-top: 18px; }
.home-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; justify-content: center; }
.home-cta-note { margin-top: 10px; text-align: center; }
.external-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(7, 7, 12, 0.88);
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
    margin-top: 12px;
}
.external-video-embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.external-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.membership-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.membership-pills span {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    font-size: 0.84rem;
    font-weight: 750;
}
.footer-release {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--gold);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255,255,255,0.24), 0 0 10px rgba(255,74,95,0.20);
}
.footer-socials { display: inline-flex; gap: 10px; margin-left: 10px; }
.quest-logo { display: block; max-width: 120px; width: min(120px, 60vw); height: auto; margin: 0 auto 14px; image-rendering: pixelated; }
.quest-title-inline-icon { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.quest-title-inline-icon img,
.quest-title-inline-icon .item-fallback {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}
.strange-message-card .gallery-strip { justify-content: center; }
.quest-title-icon, .section-title-icon { width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(255,255,255,0.16)); }
.updates-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.updates-tab { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: var(--text); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: var(--transition); }
.updates-tab.active, .updates-tab:hover { border-color: var(--accent); background: rgba(192,132,252,0.16); color: var(--accent-2); }
.updates-month { margin-bottom: 14px; }
.updates-month h3 { display: flex; align-items: center; gap: 8px; }
.updates-month ul { margin-left: 20px; line-height: 1.6; }
.item-grid-section { margin-top: 18px; }
.item-grid-section h3 { display: flex; align-items: center; gap: 8px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; margin-top: 10px; }
.item-card {
    min-height: 118px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,74,95,0.035));
    box-shadow: inset 0 0 0 1px rgba(255,74,95,0.035), 0 10px 24px rgba(0,0,0,0.18);
}
.item-card img { width: 42px; height: 42px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(255,255,255,0.18)); }
.item-card-name { font-size: 0.82rem; font-weight: 700; line-height: 1.2; }
.region-map,
.result-box img.region-map {
    display: block;
    width: min(100%, 980px);
    height: auto;
    max-height: 620px;
    object-fit: contain;
    margin: 16px auto;
}
.region-grid, .event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.resource-card, .event-reward {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.035);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--text);
    font: inherit;
    width: 100%;
    cursor: pointer;
}
.resource-card img, .event-reward img { width: 88px; height: 88px; object-fit: contain; image-rendering: pixelated; display: block; margin: 0 auto 10px; }
.event-reward-icon .item-inline-icon,
.event-reward-icon img,
.event-reward-icon .item-fallback,
.event-reward-icon .item-fallback-large {
    width: 88px;
    height: 88px;
    display: inline-block;
    margin: 0 auto 10px;
}
.event-reward-icon .item-inline-icon,
.event-reward-icon img {
    object-fit: contain;
    image-rendering: pixelated;
}
.resource-item-ref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 10px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 800;
}
.resource-item-ref img { width: 32px; height: 32px; margin: 0; }
.system-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 14px; }
.site-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.site-gallery-card {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.035);
    border-radius: 16px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 26px rgba(0,0,0,0.18);
}
.site-gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: rgba(8,8,14,0.72);
}
.site-gallery-card figcaption {
    display: grid;
    gap: 4px;
}
.site-gallery-card strong {
    color: var(--accent-2);
}
.gallery-location {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}
.world-event-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.world-event-inline-gif {
    width: 54px;
    height: 54px;
    object-fit: cover;
    image-rendering: pixelated;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
}
.world-event-hero {
    display: block;
    width: min(100%, 760px);
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: 18px auto;
}
.result-box img.world-event-hero {
    width: min(100%, 760px);
    height: auto;
    max-height: 520px;
    margin: 18px auto;
}
.region-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.region-tab {
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,74,95,0.05));
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-align: left;
    transition: var(--transition);
}
.region-tab:hover, .region-tab.active {
    border-color: var(--red-glow);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,74,95,0.16);
}
.region-panel[hidden] { display: none; }
.spoiler-toggle { margin-top: 12px; border: 1px solid rgba(255,74,95,0.28); background: rgba(255,74,95,0.08); color: var(--text); border-radius: 12px; padding: 10px 12px; }
.spoiler-toggle summary { cursor: pointer; color: var(--accent-2); font-weight: 800; }
.npc-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.npc-summary-box {
    margin-top: 18px;
}
.npc-summary-box h3 {
    margin-bottom: 10px;
}
.npc-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.gallery-strip img {
    height: 200px;           /* altura fixa */
    width: auto;             /* largura automática */
    max-width: 100%;
    object-fit: contain;
    background: rgba(10,10,16,0.65);
    border-radius: 8px;
}
body.light-mode .sidebar,
body.light-mode .top-bar,
body.light-mode .credit-footer {
    background: rgba(214,194,160,0.94);
    box-shadow: 0 8px 30px rgba(72,42,24,0.18);
}
body.light-mode .site-title,
body.light-mode .page-title {
    color: #070605;
    background: none;
    -webkit-text-fill-color: #070605;
    text-shadow:
        -0.8px -0.8px 0 rgba(0,0,0,0.48),
        0.8px -0.8px 0 rgba(0,0,0,0.48),
        -0.8px 0.8px 0 rgba(0,0,0,0.48),
        0.8px 0.8px 0 rgba(0,0,0,0.48),
        0 0 10px rgba(182,31,52,0.24);
}
body.light-mode .card,
body.light-mode .result-box,
body.light-mode .resource-card,
body.light-mode .event-reward,
body.light-mode .item-card,
body.light-mode .xp-table,
body.light-mode .nav-item,
body.light-mode .lang-btn,
body.light-mode .play-btn,
body.light-mode .updates-tab,
body.light-mode .region-tab {
    text-shadow:
        -0.45px -0.45px 0 rgba(0,0,0,0.25),
        0.45px 0.45px 0 rgba(0,0,0,0.18);
}
body.light-mode .search-results {
    background: rgba(213,191,155,0.98);
    border-color: rgba(27,18,12,0.40);
}
body.light-mode .official-wiki-link a { color: #3f1606; border-bottom-color: rgba(63,22,6,0.25); }
body.light-mode .official-wiki-link a:hover { color: #240e04; border-bottom-color: #240e04; }
body.light-mode .header-clock span {
    background: rgba(180,148,103,0.80);
    border-color: rgba(24,15,10,0.42);
    color: #120d0a;
    text-shadow: 0 0 1px rgba(0,0,0,0.48);
}
body.light-mode .header-clock strong { color: #2a1507; }
body.light-mode .xp-table th { background: rgba(200,175,133,0.98); }

/* OFFICIAL WIKI DATA */
.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.sidebar-socials a {
    color: var(--accent-2);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.045);
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
    transition: var(--transition);
}
.sidebar-socials a:hover {
    color: #fff;
    border-color: var(--red-glow);
    box-shadow: 0 0 14px rgba(255,74,95,0.22);
    transform: translateY(-1px);
}
.official-item-card,
.bestiary-card,
.drop-source-card,
.recipe-mini,
.recipe-inline-result,
.inline-link-btn,
.back-link-btn {
    font: inherit;
}
.official-item-card,
.bestiary-card {
    color: var(--text);
    cursor: pointer;
}
.official-item-card:hover,
.official-item-card:focus-visible {
    border-color: rgba(255,74,95,0.42);
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgba(255,74,95,0.12), 0 18px 34px rgba(0,0,0,0.26), 0 0 18px rgba(255,255,255,0.045);
}
.item-card-meta {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.item-detail-card,
.mob-detail-card {
    position: relative;
    overflow: hidden;
}
.item-detail-card::after,
.mob-detail-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid rgba(255,74,95,0.07);
}
.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent-2);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 8px 13px;
    cursor: pointer;
    transition: var(--transition);
}
.back-link-btn:hover {
    color: #fff;
    border-color: var(--red-glow);
    transform: translateX(-2px);
}
.item-detail-hero {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    gap: 24px;
    align-items: center;
}
.item-detail-art {
    min-height: 190px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,0.10), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,74,95,0.035));
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: inset 0 0 0 1px rgba(255,74,95,0.045), 0 16px 38px rgba(0,0,0,0.24);
}
.item-detail-icon,
.mob-gif {
    width: min(170px, 46vw);
    height: min(170px, 46vw);
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.16));
}
.mob-gif {
    width: min(210px, 56vw);
    height: min(210px, 56vw);
}
.item-fallback-large {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    font-size: 3rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
}
.recipe-mini .item-fallback-large,
.recipe-mini .item-fallback,
.recipe-inline-result .item-fallback,
.drop-source-card .item-fallback,
.inline-link-btn .item-fallback,
.source-mob-btn .item-fallback,
.xp-table .item-fallback {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    border-radius: 8px;
}
.search-result-icon .item-fallback {
    font-size: 0.9rem;
    border-radius: 6px;
}
.event-reward .item-fallback,
.event-reward .item-fallback-large {
    width: 88px;
    height: 88px;
    font-size: 2.25rem;
    border-radius: 18px;
    margin: 0 auto 10px;
}
.item-description-translation {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.14);
}
.item-description-translation p {
    margin: 6px 0 0;
}
.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}
.item-badges span {
    color: var(--text);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 800;
}
.item-detail-section {
    margin-top: 22px;
}
.stat-grid,
.drop-source-grid,
.recipe-detail-grid,
.bestiary-grid {
    display: grid;
    gap: 12px;
}
.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.stat-chip {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
}
.stat-chip strong {
    color: var(--gold);
    text-transform: capitalize;
}
.drop-source-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.drop-source-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px;
    text-align: left;
    color: var(--text);
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,74,95,0.035));
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.drop-source-card strong {
    grid-column: 2;
    color: var(--gold);
    font-size: 0.82rem;
}
.drop-source-card:hover,
.drop-source-card:focus-visible {
    border-color: rgba(255,74,95,0.45);
    transform: translateY(-2px);
}
.drop-mob-img,
.soul-table-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.16));
}
.soul-table-img {
    width: 50px;
    height: 50px;
}
.recipe-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.recipe-detail-card {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 0 1px rgba(255,74,95,0.035);
}
.recipe-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.recipe-mini {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition);
}
.recipe-mini:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.recipe-mini-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.16));
}
.recipe-arrow {
    color: var(--red-glow);
    font-weight: 900;
    font-size: 1.2rem;
}
.official-recipe-table .recipe-inline-result,
.recipe-inline-result,
.inline-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--accent-2);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    padding: 5px 9px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.official-recipe-table .recipe-inline-result:hover,
.recipe-inline-result:hover,
.inline-link-btn:hover {
    color: #fff;
    border-color: var(--red-glow);
    background: rgba(255,74,95,0.12);
}
.bestiary-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.bestiary-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,74,95,0.045));
    transition: var(--transition);
}
.bestiary-card img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.16));
}
.bestiary-card span {
    font-weight: 900;
}
.bestiary-card small {
    color: var(--muted);
    font-size: 0.75rem;
}
.bestiary-card:hover,
.bestiary-card:focus-visible {
    border-color: rgba(255,74,95,0.44);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.24);
}
.official-skill-page > p {
    max-width: 980px;
    line-height: 1.72;
}
.official-skill-section {
    margin-top: 22px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,74,95,0.12);
    background:
        radial-gradient(circle at 6% 12%, rgba(255,74,95,0.08), transparent 30%),
        rgba(255,255,255,0.035);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 10px 28px rgba(0,0,0,0.14);
}
.official-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.official-skill-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.09);
    background: linear-gradient(145deg, rgba(255,255,255,0.052), rgba(255,74,95,0.035));
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.official-skill-item:hover {
    border-color: rgba(255,74,95,0.34);
    transform: translateY(-2px);
}
.official-skill-item img,
.official-skill-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.16));
}
.official-skill-item h4 {
    margin: 0 0 4px;
    color: var(--gold);
}
.official-skill-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.38;
}
.source-mob-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 3px 6px 3px 0;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.045);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.source-mob-btn:hover,
.source-mob-btn:focus-visible {
    border-color: rgba(255,74,95,0.45);
    box-shadow: 0 0 16px rgba(255,74,95,0.12);
}
.source-mob-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
}
.farm-condition-list { margin: 0; padding-left: 18px; }
.farm-condition-list li { margin: 2px 0; }
.bestiary-list-pro {
    display: grid;
    gap: 10px;
}
.bestiary-row-pro {
    width: 100%;
    display: grid;
    grid-template-columns: 86px 78px minmax(130px, 1fr) 80px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: var(--text);
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(90deg, rgba(255,74,95,0.065), rgba(255,255,255,0.035)),
        rgba(255,255,255,0.035);
    cursor: pointer;
    transition: var(--transition);
}
.bestiary-row-pro:hover,
.bestiary-row-pro:focus-visible {
    border-color: rgba(255,74,95,0.44);
    transform: translateX(3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.20), 0 0 16px rgba(255,74,95,0.10);
}
.bestiary-row-health {
    color: #6e2396;
    font-weight: 900;
}
.bestiary-row-art {
    display: grid;
    place-items: center;
    min-height: 58px;
}
.bestiary-row-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.14));
}
.bestiary-row-name {
    font-weight: 900;
    font-size: 1rem;
}
.bestiary-row-pro small {
    color: var(--gold);
    font-weight: 800;
}
.bestiary-row-pro em {
    grid-column: 3 / -1;
    color: var(--muted);
    font-style: normal;
    font-size: 0.82rem;
}
.boss-note {
    border-color: rgba(255,74,95,0.24);
}
body.light-mode .sidebar-socials a,
body.light-mode .item-badges span,
body.light-mode .stat-chip,
body.light-mode .drop-source-card,
body.light-mode .recipe-detail-card,
body.light-mode .recipe-mini,
body.light-mode .recipe-inline-result,
body.light-mode .inline-link-btn,
body.light-mode .bestiary-card,
body.light-mode .official-skill-section,
body.light-mode .official-skill-item,
body.light-mode .bestiary-row-pro,
body.light-mode .back-link-btn,
body.light-mode .item-detail-art {
    color: #17110d;
    background-color: rgba(181,149,106,0.74);
    border-color: rgba(48,28,18,0.34);
    text-shadow: 0 0 1px rgba(0,0,0,0.44);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 10px 24px rgba(32,18,8,0.18);
}
body.light-mode .item-card-meta,
body.light-mode .stat-chip strong,
body.light-mode .drop-source-card strong {
    color: #3f2600;
}
body.light-mode .item-detail-icon,
body.light-mode .mob-gif,
body.light-mode .drop-mob-img,
body.light-mode .soul-table-img,
body.light-mode .recipe-mini-img,
body.light-mode .official-skill-item img,
body.light-mode .official-skill-icon,
body.light-mode .bestiary-row-img,
body.light-mode .bestiary-card img,
body.light-mode .source-mob-img,
body.light-mode .skill-title-icon,
body.light-mode .large-map-icon {
    filter: drop-shadow(0 0 7px rgba(0,0,0,0.45)) drop-shadow(0 2px 2px rgba(0,0,0,0.22));
}

@media (max-width: 980px) {
    .home-media-feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar.open .sidebar-footer {
        display: block;
        margin-top: 8px;
    }
    .sidebar-socials {
        margin-bottom: 4px;
    }
    .item-detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .item-badges {
        justify-content: center;
    }
    .drop-source-grid,
    .recipe-detail-grid,
    .bestiary-grid {
        grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    }
    .item-detail-art {
        min-height: 150px;
    }
    .item-detail-icon,
    .mob-gif {
        width: min(150px, 52vw);
        height: min(150px, 52vw);
    }
    .bestiary-row-pro {
        grid-template-columns: 68px 64px 1fr;
    }
    .bestiary-row-pro small {
        grid-column: 3;
    }
    .bestiary-row-pro em {
        grid-column: 1 / -1;
    }
    .bestiary-row-img {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 520px) {
    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        gap: 9px;
    }
    .item-card {
        min-height: 112px;
        padding: 10px 8px;
    }
    .item-card img {
        width: 38px;
        height: 38px;
    }
    .item-card-name {
        font-size: 0.76rem;
    }
    .drop-source-card {
        grid-template-columns: 38px 1fr;
        min-height: 62px;
        padding: 8px;
    }
    .drop-mob-img,
    .soul-table-img {
        width: 38px;
        height: 38px;
    }
}
body.light-mode .xp-table tr:hover { background: rgba(182,31,52,0.12); }
body.light-mode .card { background: rgba(224,204,170,0.94); border-color: rgba(48,28,18,0.30); box-shadow: 0 10px 28px rgba(30,18,10,0.24), 0 1px 0 rgba(0,0,0,0.12); }
body.light-mode .result-box,
body.light-mode .resource-card,
body.light-mode .event-reward,
body.light-mode .item-card {
    background-color: rgba(194,166,124,0.62);
    border-color: rgba(48,28,18,0.32);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 10px 24px rgba(32,18,8,0.22);
}
body.light-mode .world-events-card .result-box { background-color: rgba(174,143,103,0.72); }
body.light-mode .resource-card,
body.light-mode .event-reward { background: rgba(181,149,106,0.78); }
body.light-mode .site-gallery-card { background: rgba(181,149,106,0.78); border-color: rgba(48,28,18,0.32); }
body.light-mode .site-gallery-card img,
body.light-mode .external-video-embed { box-shadow: 0 10px 24px rgba(32,18,8,0.18); }
body.light-mode .item-description-translation { border-top-color: rgba(48,28,18,0.22); }
body.light-mode .bestiary-row-health { color: #4f136f; }
body.light-mode .region-tab { background: linear-gradient(145deg, rgba(184,151,107,0.84), rgba(182,31,52,0.12)); border-color: rgba(48,28,18,0.36); }
body.light-mode .nav-section-title:hover { background: rgba(95,55,30,0.10); }
body.light-mode .nav-section-title {
    background: linear-gradient(90deg, rgba(181,149,106,0.82), rgba(182,31,52,0.10));
    border-color: rgba(48,28,18,0.32);
    color: #493100;
}
body.light-mode .nav-item:hover { border-color: rgba(48,28,18,0.28); }
body.light-mode .theme-toggle { background: rgba(194,166,124,0.82); border-color: rgba(12,8,6,0.50); color: #070605; }
body.light-mode .item-mention { color: #7a3f20; }
body.light-mode h2,
body.light-mode h3 {
    color: #21150f;
    text-shadow: 0 0 2px rgba(0,0,0,0.58), 0 0 10px rgba(255,255,255,0.46);
}
body.light-mode .small-text,
body.light-mode .xp-table td,
body.light-mode .result-box,
body.light-mode .card p,
body.light-mode .card li {
    color: #17110d;
}
body.light-mode .text-blue { color: #06365d; text-shadow: 0 0 1px rgba(0,0,0,0.72); }
body.light-mode .skill-disclaimer { color: #17110d; font-weight: 800; }
body.light-mode .level-divider-row td {
    color: #17110d;
    background: rgba(125,82,29,0.28);
    border-top-color: rgba(30,18,10,0.38);
    border-bottom-color: rgba(30,18,10,0.38);
    text-shadow: 0 0 2px rgba(0,0,0,0.55);
}
body.light-mode .xp-table img,
body.light-mode .item-inline img,
body.light-mode .item-inline-icon,
body.light-mode .item-card img,
body.light-mode .resource-card img,
body.light-mode .event-reward img,
body.light-mode .quest-title-icon,
body.light-mode .section-title-icon {
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.46)) drop-shadow(0 2px 2px rgba(0,0,0,0.26));
}
body.light-mode .release-ribbon,
body.light-mode .footer-release {
    color: #21150f;
    border-color: rgba(24,15,10,0.40);
    background: linear-gradient(90deg, rgba(182,31,52,0.14), rgba(255,240,205,0.32), rgba(182,31,52,0.12));
    text-shadow: 0 0 2px rgba(0,0,0,0.52), 0 0 12px rgba(255,255,255,0.42);
}
/* Ajuste o fundo do th para que fique opaco durante o scroll */
.xp-table th { position: sticky; top: 0; background: rgba(12,12,18,0.95); z-index: 2; }
body.light-mode .xp-table th { background: rgba(200,175,133,0.98); }

/* ============================================================
   v3.1.5 — REFINAMENTOS (mobile, bunny loot, Steam home, donation)
   ============================================================ */

/* ---------- Bunny / loot card ---------- */
.bunny-loot-card {
    text-align: center;
    padding: 16px 14px 14px !important;
}
.bunny-loot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}
.bunny-portrait {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
    image-rendering: pixelated;
    margin: 0 !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}
.bunny-name-btn {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-2, #c8a8ff);
    padding: 4px 10px;
}
.bunny-loot-title {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold, #f0c840);
    margin: 6px 0 12px;
    opacity: 0.85;
}
.bunny-loot-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)) !important;
    gap: 10px;
}
.bunny-loot-hint {
    text-align: center;
    margin-top: 12px;
    opacity: 0.6;
    font-style: italic;
}
/* Padroniza ícones dentro do card de loot — 46px em todos */
.drop-source-card .item-inline-icon,
.drop-source-card .drop-mob-img,
.drop-source-card .item-fallback {
    width: 46px !important;
    height: 46px !important;
    image-rendering: pixelated;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
}
.drop-source-card .drop-source-label {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: left;
}
.drop-source-card .drop-source-chance {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ---------- Mobile header compacto ---------- */
@media (max-width: 768px) {
    .sidebar {
        padding: 6px 12px !important;
    }
    .sidebar-header {
        gap: 8px;
    }
    .site-title {
        font-size: 1.05rem !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .site-title img {
        width: 28px !important;
        height: 28px !important;
    }
    .menu-toggle {
        flex-shrink: 0;
        font-size: 1.15rem;
        padding: 4px 10px;
    }
    /* Lang selector e nav-menu ESCONDIDOS por padrão no mobile.
       Só aparecem quando o usuário toca no menu (sidebar.open). */
    .lang-selector {
        display: none !important;
    }
    .sidebar.open .lang-selector {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 8px 0 4px;
    }
    /* Top-bar também precisa ficar menor */
    .top-bar {
        padding: 5px 10px !important;
    }
    .page-title {
        font-size: 1rem !important;
    }
    .page-title img {
        width: 24px !important;
        height: 24px !important;
    }
    .header-tip { display: none; }
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        padding: 0;
    }
}

/* ---------- Donation widget (canto inferior direito, discreto) ---------- */
.donate-corner {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    background: rgba(18, 12, 32, 0.78);
    border: 1px solid rgba(255, 215, 80, 0.30);
    border-radius: 999px;
    color: rgba(255, 240, 200, 0.85);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: inherit;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: all 0.25s ease;
    opacity: 0.72;
}
.donate-corner:hover,
.donate-corner:focus-visible {
    opacity: 1;
    border-color: rgba(255, 215, 80, 0.65);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 200, 60, 0.18);
    outline: none;
}
.donate-corner-icon {
    font-size: 1rem;
    line-height: 1;
}
.donate-corner-text {
    font-weight: 600;
}
body.light-mode .donate-corner {
    background: rgba(244, 226, 180, 0.92);
    border-color: rgba(120, 70, 0, 0.45);
    color: #4a2f08;
}
body.light-mode .donate-corner:hover {
    background: rgba(255, 235, 175, 1);
    color: #2b1c00;
}
@media (max-width: 768px) {
    .donate-corner {
        right: 10px;
        bottom: 10px;
        padding: 5px 10px 5px 7px;
        font-size: 0.62rem;
    }
    .donate-corner-text { display: none; }
}

/* ---------- YouTube link card ---------- */
.yt-card {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 4px solid #ff3a3a;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 40, 40, 0.07);
    border-top: 1px solid rgba(255,80,80,0.14);
    border-bottom: 1px solid rgba(255,80,80,0.14);
    border-right: 1px solid rgba(255,80,80,0.14);
    margin: 14px 0;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.yt-card:hover {
    background: rgba(255, 40, 40, 0.14);
    border-color: #ff0000;
    box-shadow: 0 4px 18px rgba(255, 0, 0, 0.15);
    color: var(--text);
}
.yt-card-thumb {
    flex-shrink: 0;
    width: 148px;
    height: 83px;
    object-fit: cover;
    display: block;
    background: #111;
}
.yt-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
}
.yt-card-label {
    font-weight: 600;
    font-size: 0.87rem;
    line-height: 1.4;
}
.yt-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: #ff5555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}
body.light-mode .yt-card {
    background: rgba(200,0,0,0.06);
    border-color: #cc2222;
}
body.light-mode .yt-card-cta { color: #c00; }
@media (max-width: 480px) {
    .yt-card-thumb { width: 90px; height: 51px; }
    .yt-card-label { font-size: 0.78rem; }
}

/* ---------- Steam wishlist highlight button ---------- */
.steam-wishlist-btn {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%) !important;
    border: 1px solid #375469 !important;
    color: #c6d4df !important;
    font-size: 1rem !important;
    padding: 13px 28px !important;
    letter-spacing: 0.06em;
    box-shadow: 0 0 0 0 rgba(102,192,244,0.4);
    animation: steam-pulse 2.8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.steam-wishlist-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,192,244,0.10), transparent 60%);
    pointer-events: none;
}
.steam-wishlist-btn:hover {
    background: linear-gradient(135deg, #2a475e 0%, #3d7099 100%) !important;
    border-color: #66c0f4 !important;
    color: #fff !important;
    box-shadow: 0 0 22px rgba(102,192,244,0.35) !important;
    transform: translateY(-2px);
    animation: none;
}
@keyframes steam-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102,192,244,0.0); }
    50%       { box-shadow: 0 0 16px 4px rgba(102,192,244,0.28); }
}

/* ---------- Steam-info section (home) ---------- */
.home-steam-meta {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(27,40,56,0.55), rgba(15,20,32,0.55));
}
.home-steam-meta-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold, #f0c840);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}
.home-steam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.home-steam-meta-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 8px 12px;
}
.home-steam-meta-item dt {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 4px;
}
.home-steam-meta-item dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text, #fff);
}
.home-steam-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.home-steam-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(102, 76, 156, 0.18);
    border: 1px solid rgba(184, 146, 255, 0.25);
    color: rgba(228, 215, 255, 0.88);
    letter-spacing: 0.04em;
}
.home-steam-tag--accent {
    background: rgba(240, 200, 64, 0.12);
    border-color: rgba(240, 200, 64, 0.40);
    color: #ffeaa3;
}
body.light-mode .home-steam-meta {
    background: linear-gradient(135deg, rgba(184,151,107,0.84), rgba(214,182,140,0.82));
    border-color: rgba(48,28,18,0.32);
}
body.light-mode .home-steam-meta-item {
    background: rgba(255,242,210,0.55);
    border-color: rgba(48,28,18,0.20);
}
body.light-mode .home-steam-meta-item dd { color: #2b1c00; }
body.light-mode .home-steam-tag {
    background: rgba(180,131,228,0.18);
    border-color: rgba(80,40,140,0.40);
    color: #2a1450;
}

/* ==================== SKILL GROWTH-STAGE FIGURE ==================== */
.skill-stage-figure {
    margin: 14px 0 0;
    opacity: 0;
    transform: translateY(8px);
    animation: skillStageReveal 0.5s ease forwards;
}
.skill-stage-figure figcaption {
    margin-top: 6px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #c9a227;
}
body.light-mode .skill-stage-figure figcaption { color: #6f4b00; }
@keyframes skillStageReveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .skill-stage-figure { animation: none; opacity: 1; transform: none; }
}
