/* BILAL · coherent public portal theme. Loaded after the existing portal styles. */
:root {
  --bg: #0b141e;
  --panel: #142330;
  --panel2: #10202c;
  --text: #f4eedf;
  --muted: #b8c5ce;
  --accent: #31dbc3;
  --gold: #d7b57b;
  --line: #344755;
  --blue: #48c7dd;
  --ink: #071d1a;
}
body { background: var(--bg); color: var(--text); }
h1, h2, h3 { color: #f7efdd; }
a { color: var(--accent); }
a:hover { color: #82f3dc; }
.eyebrow { color: var(--gold); }
.topbar {
  background: #101c27;
  border-bottom: 1px solid #d7b57b30;
  padding: 10px max(18px, calc((100vw - 1420px) / 2));
  gap: 16px;
}
.topbar .brand { background: transparent; align-self: center; padding: 0; width: 126px; flex: 0 0 126px; }
.topbar .brand img { width: 126px!important; height: 63px!important; object-fit: contain; }
.topbar nav { gap: 4px 7px; flex-wrap: wrap; }
.topbar nav > a, .topbar .norian-community summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 7px;
  color: #e5e8e9;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.topbar nav > a:hover, .topbar .norian-community summary:hover { background: #ffffff08; color: #f1d5a1; }
.topbar .norian-community { padding: 0; border: 0; }
.topbar .norian-community div { background: #132635; border-color: var(--line); padding: 7px; }
.topbar .norian-community div a { color: var(--text); }
.language, .nav-toggle { background: #0d1923; border-color: #52636e; color: var(--text); border-radius: 8px; }
.language { min-height: 42px; }
.nav-toggle { min-width: 44px; min-height: 44px; padding: 2px 10px; }
.wrap { width: min(1160px, calc(100% - 40px)); }
.page { padding-top: 24px; }
.page-title {
  border: 1px solid #d7b57b35;
  border-radius: 15px;
  padding: 38px 28px;
  margin-bottom: 28px;
  background: linear-gradient(105deg, #152836f5, #122334dc), url('/portal/v12364/map/banner.webp') center / cover;
}
.page-title h1 { font-size: clamp(31px, 4vw, 49px); margin-bottom: 15px; }
.page-title h1::after { background: var(--gold); width: 46px; height: 3px; margin-top: 17px; }
.page-title p { color: var(--muted); }
.page-title .eyebrow { color: var(--gold); margin-bottom: 10px; }
.panel, .product, .feature-link, .auction-card { border-color: var(--line); border-radius: 12px; background: var(--panel); }
.section { margin: 42px 0; }
.tabs { border-color: var(--line); gap: 7px; }
.tabs a { border-radius: 7px; }
.tabs a.active, .tabs a:hover { background: #31dbc312; color: #86f0dc; }
.button { border-color: #60747d; color: var(--text); }
.button:hover { background: #243c4c; color: #fff6e1; }
.button.gold, .button.primary { background: var(--accent); border-color: var(--accent); color: #08201c; }
.button.gold:hover, .button.primary:hover { background: #80efd9; border-color: #80efd9; color: #08201c; }
input, select, textarea { background: #0a1924; border-color: #526977; color: var(--text); border-radius: 8px; }
input::placeholder, textarea::placeholder { color: #a4b4bf; }
input:focus, select:focus, textarea:focus { outline-color: var(--accent); }
:where(a, button, summary):focus-visible { outline: 3px solid #edcc8e; outline-offset: 3px; }
th { background: #1b3040; }
td { background: #152734; border-color: var(--line); }
tr:nth-child(even) td { background: #11212d; }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.empty, .notice { background: #152b38; border-color: var(--accent); color: var(--text); border-radius: 8px; }
.error, .warn { border-color: var(--gold); }
.stat-list > div, .person-row, details { border-color: var(--line); }
.crest { background: #142e39; border-color: #4a6c79; }
.guide-nav, .wiki-categories { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.wiki-categories a.active { background: #31dbc312; }
.possession, .ticket-message { background: #10202c; border-color: var(--line); }
.footer {
  background: #08111a;
  border-top: 1px solid #d7b57b24;
  color: var(--muted);
  gap: 26px;
  padding-top: 34px;
  padding-bottom: 30px;
}
.footer img { width: 160px; height: 80px; object-fit: contain; }
.footer p { margin-bottom: 0; }
.footer a { color: #d6e2e6; }
.footer a:hover { color: var(--accent); }
#toast, dialog { background: #132b39; border-color: #4c6b78; color: var(--text); }
.server-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #122330;
  border-bottom: 1px solid var(--line);
  padding: 22px max(16px, calc((100vw - 1160px) / 2));
  gap: 12px;
}
.server-strip > div { min-width: 0; padding: 2px 10px; }
.server-strip > div + div { border-left: 1px solid #d7b57b24; }
.server-strip strong { font-size: clamp(21px, 2.3vw, 31px); color: #e9c98e; letter-spacing: -.02em; }
.server-strip :is(a, span) { color: #c5d5dc; font-size: 14px; line-height: 1.4; }
.account-count { color: var(--muted); margin: 15px auto 0; }
.account-count strong { color: #79e6d2; }
.bilal-hero.bilal-navidad { background: #132330; border-bottom-color: #be9c63; }
.bilal-hero.bilal-navidad .hero-copy > .actions a.button { background: #203c49; border-color: #a68f63; color: #f5e7cb; }
.bilal-hero.bilal-navidad .hero-copy > .actions a.button:hover { background: #2a4c57; border-color: #e9ce9a; color: #fff4dc; }
.bilal-navidad .navidad-copy { padding-bottom: 19px; }
.bilal-navidad .scene-controls button, .bilal-navidad .navidad-music, .footer .navidad-music { background: #112737; }
.rate-strip { margin-top: 26px; margin-bottom: 32px; }
.rate-strip > summary { color: #e7d4b1; }
.vida-community-tabs { flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; }
.vida-community-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
.vida-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.vida-section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.vida-section-heading .eyebrow { margin-bottom: 7px; font-size: 11px; letter-spacing: .16em; }
.vida-section-heading p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); }
.vida-text-link { display: inline-flex; align-items: center; gap: 8px; color: #e8c78d; font-size: 14px; font-weight: 700; }
.vida-text-link:hover { color: #ffe3ae; }
.vida-updates { margin: 36px 0 34px; }
.vida-updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vida-update-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(140deg, #1b3040, #14232f);
  border: 1px solid #3b5261;
  border-top: 2px solid #b99b66;
  border-radius: 13px;
  padding: 24px;
}
.vida-update-card.is-selected { border-color: #d5b675; box-shadow: 0 0 0 1px #d5b67522; }
.vida-update-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 17px; }
.vida-update-category { color: #9ee8d7; background: #31dbc30b; border: 1px solid #31dbc335; border-radius: 6px; padding: 3px 8px; font-weight: 700; }
.vida-update-card h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 11px; }
.vida-update-card > p { color: #c1d0d9; margin-bottom: 19px; }
.vida-update-card > .vida-text-link { margin-top: auto; }
.vida-update-detail { color: #c1d0d9; }
.vida-update-detail p:last-child { margin-bottom: 18px; }
.vida-release-label { color: #aabcc7; font-size: 12px; margin-top: auto; }
.vida-news-page > .page-title { margin-bottom: 34px; }
.vida-news-page .vida-updates-grid { grid-template-columns: 1fr; }
.vida-news-page .vida-update-card { padding: 28px; }
.vida-news-page .vida-update-card h3 { font-size: clamp(22px, 3vw, 28px); }
.vida-loading-copy, .vida-empty-copy { color: var(--muted); }
.vida-inline-error { border: 1px solid #7e735650; border-radius: 10px; padding: 20px; background: #1f2c34; }
.vida-inline-error p { margin-bottom: 12px; }
.vida-character-page .page-title { text-align: left; padding: 30px 28px; }
.vida-character-page .page-title h1::after { margin-left: 0; }
.vida-character-search { padding: 22px 25px; margin-bottom: 25px; }
.vida-character-search > label { display: block; font-size: 14px; font-weight: 700; color: #f0e4ca; margin-bottom: 9px; }
.vida-search-row { display: flex; gap: 12px; }
.vida-search-row input { width: 100%; min-width: 0; flex: 1; font-size: 16px; }
.vida-search-row .button { flex: 0 0 auto; }
.vida-character-search > p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.vida-search-welcome { text-align: center; border: 1px dashed #425766; border-radius: 14px; padding: 34px 22px; background: #13222e60; }
.vida-search-welcome > svg { width: 42px; height: 42px; color: #d2b17a; margin-bottom: 15px; }
.vida-search-welcome h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 9px; }
.vida-search-welcome p { color: var(--muted); margin-bottom: 18px; }
.vida-welcome-links { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; font-size: 14px; }
.vida-character-loading { padding: 8px 20px 24px; text-align: center; color: var(--muted); }
.vida-character-loading .loading { display: block; margin: 25px auto 14px; }
.vida-character { overflow-wrap: anywhere; }
.vida-character-hero { display: flex; align-items: center; gap: 21px; border: 1px solid #b99b6657; border-radius: 15px; padding: 28px; background: radial-gradient(ellipse at 0 0, #5a482330, transparent 70%), linear-gradient(120deg, #1b2d3b, #10212e); }
.vida-character-crest { width: 84px; height: 94px; flex: 0 0 84px; display: grid; place-items: center; color: #e0bf80; background: #142531; border: 1px solid #a68b5559; border-radius: 14px 14px 24px 24px; }
.vida-character-crest svg { width: 48px; height: 48px; }
.vida-character-identity { min-width: 0; flex: 1; }
.vida-character-identity .eyebrow { font-size: 10px; letter-spacing: .14em; margin-bottom: 8px; }
.vida-character-identity h2 { font-size: clamp(25px, 3.6vw, 40px); margin: 0 0 12px; line-height: 1.15; }
.vida-character-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: #c6d4dd; font-size: 14px; }
.vida-level { display: inline-flex; gap: 7px; align-items: baseline; border: 1px solid #bfa16552; background: #d7b57b0b; color: #eacb90; padding: 3px 9px; border-radius: 6px; }
.vida-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; white-space: nowrap; font-size: 12px; color: #b6c5ce; padding: 6px 10px; background: #0b1923; border: 1px solid #405460; border-radius: 20px; }
.vida-status i { width: 6px; height: 6px; border-radius: 50%; background: #8b9aa2; }
.vida-status.is-online { color: #98efd8; border-color: #31dbc340; }
.vida-status.is-online i { background: #67e8ba; }
.vida-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 32px; }
.vida-profile-card { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; }
.vida-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.vida-card-heading svg { width: 23px; height: 23px; color: #bda272; flex-shrink: 0; }
.vida-card-heading h3 { font-size: 14px; margin: 0; color: #c8d4dc; }
.vida-card-value { color: #f3e7d1; font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0 0 7px; }
.vida-card-value a { color: #8be8d6; }
.vida-card-caption { margin: 0; font-size: 13px; color: var(--muted); }
.vida-profile-card .vida-empty-copy { margin: 0; font-size: 15px; }
.vida-unavailable { margin: 0; font-size: 14px; color: #d8c5a2; }
.vida-houses { list-style: none; padding: 0; margin: 0 0 14px; }
.vida-houses li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vida-houses strong { display: block; color: #f3e7d1; line-height: 1.4; font-size: 18px; }
.vida-houses small { display: block; margin-top: 4px; font-size: 13px; }
.vida-deaths-section { border: 1px solid var(--line); background: #12232f; border-radius: 14px; padding: 26px; }
.vida-deaths-section .vida-section-heading { margin-bottom: 20px; }
.vida-deaths-section .vida-section-heading h2 { font-size: 25px; }
.vida-count-label { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.vida-deaths { list-style: none; padding: 0; margin: 0; }
.vida-deaths > li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid #344755; }
.vida-death-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #d1ad8a; border-radius: 8px; background: #70533e20; border: 1px solid #b9987133; flex: 0 0 36px; margin-top: 3px; }
.vida-death-mark svg { width: 22px; height: 22px; }
.vida-death-body { flex: 1; min-width: 0; }
.vida-death-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 5px; }
.vida-death-heading time { color: #acbfcc; font-size: 12px; }
.vida-death-level { color: #e6c99c; font-size: 11px; border: 1px solid #c5a56d33; border-radius: 5px; padding: 1px 6px; }
.vida-death-body p { margin: 0; color: #e4ebee; font-size: 14px; }
.vida-death-body .vida-death-secondary { margin-top: 5px; font-size: 12px; color: var(--muted); }
.vida-no-deaths { display: flex; align-items: center; gap: 15px; padding: 22px; background: #31dbc307; border: 1px solid #31dbc32b; border-radius: 10px; }
.vida-no-deaths > svg { color: #73d3bb; width: 32px; height: 32px; flex: 0 0 32px; }
.vida-no-deaths h3 { font-size: 17px; margin: 0 0 5px; }
.vida-no-deaths p { color: var(--muted); font-size: 14px; margin: 0; }
.vida-profile-updated { color: #aabcc7; font-size: 12px; margin: 15px 0 0; }
.vida-search-error { padding: 26px; border: 1px solid #a68c5d5c; border-radius: 12px; background: #1c2a32; }
.vida-search-error h2 { font-size: 24px; margin-bottom: 10px; }
.vida-search-error p { color: var(--muted); }
@media (max-width: 980px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 10px 16px; }
  .topbar .brand { width: 112px; min-width: 0; margin: 0; grid-column: 1; grid-row: 1; justify-self: start; }
  .topbar .brand img { width: 112px!important; height: 56px!important; }
  .topbar .language { grid-column: 2; grid-row: 1; max-width: 126px; width: auto; }
  .topbar .nav-toggle { display: block; grid-column: 3; grid-row: 1; }
  .topbar nav { display: none; grid-column: 1 / -1; grid-row: 2; padding: 10px 0 3px; }
  .topbar nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; align-items: start; }
  .topbar nav > a, .topbar .norian-community summary { min-height: 45px; width: 100%; padding: 11px 12px; background: #1a2c39; font-size: 14px; white-space: normal; border: 1px solid #324753; }
  .topbar .norian-community { min-width: 0; }
  .topbar .norian-community[open] { grid-column: 1 / -1; }
  .topbar .norian-community div { position: static; box-shadow: none; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
  .topbar .norian-community div a { font-size: 14px; white-space: normal; }
  .topbar .play-button { display: none; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .page { padding-top: 17px; padding-bottom: 40px; }
  .page-title { padding: 28px 20px; margin-bottom: 22px; }
  .vida-community-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 17px; }
  .vida-community-tabs a { flex: 1 1 auto; justify-content: center; padding: 7px 5px; min-height: 42px; font-size: 12px; text-align: center; white-space: nowrap; overflow-wrap: normal; }
  .server-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 17px 12px; gap: 2px; }
  .server-strip > div { padding: 0 5px; }
  .server-strip strong { font-size: 22px; }
  .server-strip :is(a, span) { display: block; font-size: 11px; margin-top: 4px; }
  .vida-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 11px; }
  .vida-section-heading p:not(.eyebrow) { font-size: 14px; }
  .vida-section-heading .vida-text-link { margin-left: auto; }
  .vida-updates { margin-top: 29px; }
  .vida-updates-grid { grid-template-columns: 1fr; gap: 13px; }
  .vida-update-card { padding: 21px; }
  .vida-news-page .vida-update-card { padding: 22px; }
  .vida-character-page .page-title { padding: 27px 21px; }
  .vida-character-search { padding: 20px; }
  .vida-search-row { flex-wrap: wrap; gap: 10px; }
  .vida-search-row input { flex-basis: 100%; }
  .vida-search-row .button { width: 100%; min-height: 46px; }
  .vida-character-hero { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 21px 19px; }
  .vida-character-crest { width: 62px; height: 76px; }
  .vida-character-crest svg { width: 36px; height: 36px; }
  .vida-character-identity h2 { font-size: 27px; }
  .vida-character-identity .eyebrow { font-size: 8px; }
  .vida-character-meta { font-size: 12px; gap: 7px; }
  .vida-status { grid-column: 2; justify-self: start; padding: 3px 9px; }
  .vida-profile-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 15px; margin-bottom: 23px; }
  .vida-profile-card { padding: 19px; }
  .vida-card-heading { margin-bottom: 11px; }
  .vida-card-value { font-size: 19px; }
  .vida-deaths-section { padding: 21px 18px; }
  .vida-deaths-section .vida-section-heading { gap: 8px; }
  .vida-count-label { flex-shrink: 1; }
  .vida-deaths > li { gap: 10px; padding: 16px 0; }
  .vida-no-deaths { padding: 17px; gap: 12px; align-items: flex-start; }
  .vida-search-welcome { padding: 29px 20px; }
  .footer { gap: 21px; padding-top: 29px; }
  .footer > div:first-child { grid-column: 1 / -1; }
  .footer img { width: 150px; height: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  .vida-character-loading .loading { animation: none; }
}
