/* Lineage II Darion — shared stylesheet */

:root {
  --bg: #0A0707;
  --panel: #140C0E;
  --panel-2: #1B1012;
  --line: #322326;
  --line-2: #3F2C30;
  --line-3: #60494E;
  --line-4: #765C62;
  --text: #F4EBED;
  --text-2: #DAC8CB;
  --muted: #B6A6A9;
  --dim: #A78D93;
  --green: #C9556E;
  --green-lt: #E3778E;
  --green-link: #EB96A9;
  --online: #8FDB9A;

  --grad-green: linear-gradient(180deg, #B23A55 0%, #8A1F37 50%, #5C0F21 100%);
  --grad-bevel: linear-gradient(180deg, #443235 0%, #251A1C 100%);
  --grad-bevel-lg: linear-gradient(180deg, #4D383D 0%, #2A1D20 55%, #1C1315 100%);
  --grad-raised: linear-gradient(180deg, #2B1E21 0%, #140C0E 100%);
  --grad-emblem: linear-gradient(145deg, #FFC8D4 0%, #D8637C 30%, #82172E 70%, #3A0C16 100%);
  --grad-silver: linear-gradient(145deg, #F5F2F2 0%, #BAADB0 45%, #5E6962 100%);
  --grad-bronze: linear-gradient(145deg, #D9D3A8 0%, #9A9463 45%, #4F4B2C 100%);

  --font: "Jost", sans-serif;
  --font-display: "Cinzel", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: #EEE3E5; font-family: var(--font); }
a { color: var(--green-link); text-decoration: none; }
a:hover { color: #FCC6D2; }
img { display: block; max-width: 100%; height: auto; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: #876C72; }
:focus-visible { outline: 2px solid var(--green-lt); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-input, .toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.tab-panel { display: none; }

.page { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.page > * { position: relative; }
.page > .smoke, .page > .smoke-fade { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
.smoke-fade { height: 560px; background: linear-gradient(180deg, rgba(10,7,7,0) 40%, var(--bg) 100%); }
.fade-home { height: 920px; background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(10,7,7,0) 0%, rgba(10,7,7,.55) 70%, var(--bg) 100%); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wide { width: min(1328px, 100% - 48px); margin-inline: auto; }
.section { padding-block: 96px 0; }
.section-tight { padding-top: 40px; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.muted-sm { font-size: 13px; color: var(--dim); }
.is-online { color: var(--online); }

/* ---------- Buttons & tabs ---------- */
.btn {
  height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid; border-radius: 3px; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .14em;
}
.btn-bevel {
  background: var(--grad-bevel-lg); border-color: var(--line-4); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,220,228,.18), inset 0 -2px 0 rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.6);
}
.btn-bevel:hover { color: #fff; border-color: #93787E; }
.btn-green {
  background: var(--grad-green); border-color: #C9556E; color: #FBEEF1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.25), 0 0 28px rgba(201,85,110,.3), 0 8px 20px rgba(0,0,0,.6);
}
.btn-green:hover { color: #FFFFFF; filter: brightness(1.07); }
.btn-sm { height: 44px; font-size: 13px; }
.btn-md { height: 56px; padding: 0 28px; font-size: 15px; }
.btn-lg { height: 60px; padding: 0 40px; font-size: 17px; }

.tab {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; cursor: pointer;
  background: var(--grad-bevel); border: 1px solid var(--line-3); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,220,228,.10), 0 2px 6px rgba(0,0,0,.5);
  color: #E7DBDE; font-family: var(--font); font-size: 15px;
}
.tab:hover { color: #fff; border-color: var(--line-4); }
.tab[aria-current] { background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; font-weight: 500; }
.tab-lg { height: 44px; padding: 0 20px; font-size: 16px; font-weight: 500; }
.tab-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab-row-left { justify-content: flex-start; }
.tabset { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* ---------- Header / footer ---------- */
.site-header { height: 96px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 1; }
.logo, .header-side { width: 280px; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.header-side { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.lang { height: 44px; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #E7DBDE; font-size: 15px; cursor: pointer; }

.site-footer {
  margin-top: 120px; padding: 40px 48px; border-top: 1px solid #271B1E;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 15px; color: var(--dim);
}
.site-footer img { height: 36px; width: auto; }
.site-footer nav { display: flex; gap: 32px; }
.site-footer nav a { color: #C7B8BB; }

/* ---------- Shared pieces ---------- */
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .4em; padding-left: .4em; color: var(--green-lt); }
.eyebrow-sm { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .24em; color: var(--green-lt); }
.label-caps { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.link-caps { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; }
.lead { max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--muted); text-align: center; }
.ornament { display: block; }

.page-hero { min-height: 360px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.page-hero-tall { min-height: 420px; }
.page-title { font-weight: 300; font-size: 68px; letter-spacing: .08em; padding-left: .08em; color: #F6EEF0; }

.sec-head { display: flex; align-items: center; gap: 18px; }
.sec-head .num { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .2em; color: var(--green); }
.sec-head h2 { font-weight: 400; font-size: 44px; letter-spacing: .04em; }
.sec-head .rule { flex: 1; height: 1px; padding: 0; background: var(--line); box-shadow: none; }
.sec-head .hint, .hint { font-size: 14px; color: var(--dim); }

.big-head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 48px; }
.big-head h2 { font-weight: 400; font-size: 60px; letter-spacing: .04em; }
.big-head .count { font-weight: 300; font-size: 60px; color: #D2C6C9; }
.emblem { width: 58px; height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--grad-emblem); box-shadow: inset 0 0 0 1px rgba(255,230,235,.4), 0 0 20px rgba(201,85,110,.3); }
.emblem-sm { width: 56px; height: 56px; box-shadow: inset 0 0 0 1px rgba(255,230,235,.4); }

.medal { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,230,235,.35); }
.medal-green { background: var(--grad-emblem); }
.medal-silver { background: var(--grad-silver); }
.medal-bronze { background: var(--grad-bronze); }
.medal-dark { background: linear-gradient(145deg, #4D383D, #251A1C); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.panel-raised { background: var(--grad-raised); border: 1px solid var(--line-2); border-radius: 4px; }

.tag {
  height: 26px; padding: 0 10px; display: inline-flex; align-items: center;
  background: var(--grad-bevel); border: 1px solid var(--line-3); border-radius: 3px;
  color: var(--green-link); font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .16em;
}
.chip { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 3px; background: rgba(29,19,21,.7); color: var(--text-2); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--dim); }
.placeholder-img { background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: #73535A; font-size: 14px; letter-spacing: .14em; }

.rank { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; background: #23171A; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.rank-1 { background: linear-gradient(145deg, #FFC8D4, #C9556E 55%, #82172E); color: #150307; }
.rank-2 { background: var(--grad-silver); color: #100C0D; }
.rank-3 { background: var(--grad-bronze); color: #0F0E07; }

.search { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; width: 520px; max-width: 100%; background: rgba(20,12,14,.92); border: 1px solid var(--line-3); border-radius: 3px; }
.search input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: none; color: var(--text); font-size: 17px; }
.search-lg { width: 760px; height: 64px; margin-top: 8px; padding: 0 10px 0 22px; gap: 14px; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,220,228,.06), 0 16px 40px rgba(0,0,0,.6); }
.search-lg input { font-size: 18px; }

/* ---------- Home ---------- */
.hero { position: relative; min-height: 904px; padding-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.chronicle { display: flex; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .34em; color: var(--text-2); }
.chronicle span { padding-left: .34em; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 400; }
.hero-logo { width: 720px; max-width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(201,85,110,.35)); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }

.status-strip {
  margin: auto 0 64px; width: min(1200px, 100% - 48px); min-height: 112px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: linear-gradient(180deg, rgba(47,33,36,.92) 0%, rgba(21,13,15,.95) 100%);
  border: 1px solid #4D383D; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,220,228,.08), 0 20px 50px rgba(0,0,0,.6);
}
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat dt { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--dim); }
.stat dd { margin: 0; font-size: 30px; color: var(--text); }
.stat dd.is-online { color: var(--online); }

.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-img { height: 240px; border-bottom: 1px solid var(--line); }
.news-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.news-body h3 { font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--text); }
.news-body p { font-size: 17px; line-height: 1.6; color: var(--muted); }

.rank-table { width: min(1000px, 100%); border-collapse: collapse; font-size: 17px; overflow: hidden; }
.rank-table th { height: 52px; padding: 0 28px; text-align: left; background: linear-gradient(180deg, #2B1E21 0%, #1C1315 100%); border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.rank-table th:first-child { width: 100px; }
.rank-table td { height: 60px; padding: 0 28px; border-bottom: 1px solid #25191C; color: var(--muted); }
.rank-table td.strong { color: var(--text); }
.rank-table .num { text-align: right; color: var(--text); }

/* ---------- Servidor ---------- */
.page-hero-offset { min-height: 240px; padding-left: calc(48px + 280px + 56px); padding-right: 48px; }
.layout-side { width: min(1328px, 100% - 48px); margin: 24px auto 0; display: flex; align-items: flex-start; gap: 56px; }
.sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.side-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-nav-title { padding: 12px 14px 14px; margin-bottom: 6px; border-bottom: 1px solid #25191C; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .24em; color: var(--dim); }
.side-nav a { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border-radius: 3px; color: var(--muted); font-size: 16px; }
.side-nav a svg { fill: var(--line-2); }
.side-nav a:hover, .side-nav a.is-active { color: var(--text); background: linear-gradient(90deg, rgba(201,85,110,.18), rgba(201,85,110,0)); }
.side-nav a:hover svg, .side-nav a.is-active svg { fill: var(--green-lt); }
.side-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.kv-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--dim); }
.kv-line span:last-child { color: var(--text); }
.kv-line span.is-online { color: var(--online); }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 104px; }

.dials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dial { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dial-face { position: relative; width: 176px; height: 176px; }
.dial-face svg { position: absolute; inset: 0; }
.dial-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 300; font-size: 38px; color: #F6EEF0; }
.dial-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .24em; color: var(--text-2); }

.forge { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.forge-head { display: flex; justify-content: space-between; align-items: baseline; }
.forge-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .16em; color: var(--text); }
.forge-track { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.seg { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seg-top { height: 22px; display: flex; align-items: flex-end; }
.seg-flag { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--text-2); }
.seg-flag.is-safe { color: var(--online); }
.seg-bar { width: 100%; height: 36px; border-radius: 2px; border: 1px solid; }
.seg-n { font-size: 12px; color: var(--dim); }
.seg-safe .seg-bar { background: var(--grad-green); border-color: #C9556E; box-shadow: 0 0 12px rgba(201,85,110,.35); }
.seg-risk .seg-bar { background: #270D13; border-color: #824956; }
.seg-over .seg-bar { background: #181012; border-color: #271B1E; }
.seg-over .seg-n { color: #503C41; }
.legend { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 2px; border: 1px solid; }
.swatch-safe { background: var(--grad-green); border-color: #C9556E; }
.swatch-risk { background: #270D13; border-color: var(--green); }
.swatch-over { background: #181012; border-color: #271B1E; }
.scrolls { gap: 16px; }
.scroll { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line-2); border-radius: 3px; background: linear-gradient(180deg, #23171A 0%, #170E10 100%); font-size: 16px; color: var(--text-2); }
.scroll strong { font-weight: 400; font-size: 24px; color: var(--text); }

.kv-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.kv { height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #25191C; font-size: 17px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); }

.inventory-wrap { display: flex; align-items: stretch; gap: 24px; }
.inventory { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #24191B 0%, var(--panel) 100%); border: 1px solid #4D383D; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,220,228,.08), 0 12px 30px rgba(0,0,0,.5); }
.inventory-head { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--dim); }
.slots { display: grid; grid-template-columns: repeat(6, 80px); gap: 8px; }
.slot { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 3px; background: linear-gradient(180deg, #1E1416 0%, #100A0C 100%); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,220,228,.05); color: #997D83; }
.slot:hover { border-color: var(--line-3); color: var(--text-2); }
.tooltip { flex: 1; flex-direction: column; gap: 16px; padding: 28px; background: rgba(13,9,10,.96); border: 1px solid var(--line-3); border-radius: 4px; box-shadow: 0 0 0 1px #100A0B, 0 16px 40px rgba(0,0,0,.6); }
.tooltip-head { display: flex; align-items: center; gap: 16px; }
.tooltip-head div { display: flex; flex-direction: column; gap: 4px; }
.tooltip-head strong { font-weight: 500; font-size: 24px; color: var(--text); }
.tooltip-tag { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--green-lt); }
.tooltip p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.tooltip-kv { margin: auto 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.tooltip-kv div { display: flex; justify-content: space-between; }
.tooltip-kv dt { color: var(--dim); }
.tooltip-kv dd { margin: 0; color: var(--text); }

.grid-3 .boss { box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.boss { padding: 22px; display: flex; align-items: center; gap: 18px; }
.boss-rune { position: relative; width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.boss-rune svg { position: absolute; inset: 0; }
.boss-rune span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #F6C4CF; }
.boss-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.boss-name { display: flex; justify-content: space-between; align-items: baseline; }
.boss-name strong { font-weight: 500; font-size: 18px; color: var(--text); }
.boss-name span, .boss-rule { font-size: 13px; color: var(--dim); }
.boss-timer { font-weight: 300; font-size: 26px; letter-spacing: .04em; color: var(--text); }

.olympiad { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.phase-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--dim); margin-bottom: -16px; }
.phases { display: flex; gap: 4px; height: 56px; }
.phase { flex: 1; display: flex; align-items: center; padding: 0 18px; background: var(--grad-bevel); border: 1px solid var(--line-3); color: #E7DBDE; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; }
.phase:first-child { border-radius: 3px 0 0 3px; }
.phase:last-child { border-radius: 0 3px 3px 0; }
.phase.is-current { background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; }
.phase-long { flex-grow: 3; }
.oly-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.oly-facts div { display: flex; flex-direction: column; gap: 6px; }
.oly-facts dt { font-size: 14px; color: var(--dim); }
.oly-facts dd { margin: 0; font-size: 22px; color: var(--text); }

.castles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.castle { padding: 20px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: none; text-align: center; }
.castle strong { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--text); }
.castle span { font-size: 13px; color: var(--muted); }
.castle small { font-size: 12px; color: var(--dim); }

.rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { padding: 24px; display: flex; gap: 20px; box-shadow: none; }
.rule-n { width: 48px; flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--green); }
.rule div { display: flex; flex-direction: column; gap: 6px; }
.rule strong { font-weight: 500; font-size: 18px; color: var(--text); }
.rule p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.faqs { display: flex; flex-direction: column; gap: 8px; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.faq[open] { border-color: #824956; }
.faq summary { min-height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; color: var(--text); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq p { padding: 0 24px 24px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Wiki ---------- */
.tomes { display: flex; flex-direction: column; }
.shelf { height: 400px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.tome {
  width: 122px; padding: 18px 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  cursor: pointer; border: 1px solid #473237; border-radius: 4px 4px 2px 2px; color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,220,228,.06), 0 10px 20px rgba(0,0,0,.5);
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(255,255,255,.04) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.4) 100%), var(--cover, #2C1016);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tome:hover { transform: translateY(-8px); }
.tome-1 { --cover: #251A1C; } .tome-2 { --cover: #23191B; } .tome-3 { --cover: #290E14; }
.tome-4 { --cover: #27191C; } .tome-5 { --cover: #241B1D; } .tome-6 { --cover: #211618; } .tome-7 { --cover: #26181B; }
.tome-0 { height: 380px; } .tome-1 { height: 350px; } .tome-2 { height: 372px; } .tome-3 { height: 340px; }
.tome-4 { height: 380px; } .tome-5 { height: 356px; } .tome-6 { height: 344px; } .tome-7 { height: 368px; }
.band { width: 100%; height: 3px; background: var(--line-3); }
.tome-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .2em; }
.tome-count { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.plank { height: 18px; margin-top: 0; margin-bottom: 28px; background: linear-gradient(180deg, #4D383D 0%, #251A1C 60%, var(--panel) 100%); border: 1px solid var(--line-3); border-radius: 2px; box-shadow: 0 18px 40px rgba(0,0,0,.7); }
.tome-open { padding: 32px; gap: 32px; }
.tome-open-info { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; padding-right: 32px; border-right: 1px solid var(--line); }
.tome-open-info h3 { font-weight: 400; font-size: 34px; color: var(--text); }
.tome-open-info p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.tome-articles { flex: 1; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.tome-articles li { border-bottom: 1px solid #25191C; }
.tome-articles a { height: 54px; display: flex; align-items: center; gap: 12px; color: #E7DBDE; font-size: 17px; }
.tome-articles svg { fill: #824956; }

.ct-pill { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; background: linear-gradient(180deg, #39292C 0%, #1F1517 100%); border: 1px solid #4D383D; border-radius: 3px; color: #E7DBDE; font-size: 15px; }
.ct-pill-2 { border-color: var(--line-3); color: var(--text); }
.ct-pill-3 { padding: 0 16px; background: var(--grad-green); border-color: #C9556E; box-shadow: 0 0 16px rgba(201,85,110,.25); color: #FBEEF1; font-weight: 500; }
.ct-pill-3:hover { color: #FFFFFF; filter: brightness(1.07); }

.split { display: flex; align-items: flex-end; gap: 32px; }
.split > .stack { flex: 1; min-width: 0; }
.recent { margin: 0; padding: 0; list-style: none; }
.recent li { min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 160px 180px; gap: 24px; align-items: center; border-bottom: 1px solid #25191C; }
.recent a { color: var(--text); font-size: 18px; }
.recent .tag { justify-self: start; }
.recent-meta { text-align: right; font-size: 14px; color: var(--dim); }
.cta-card { width: 340px; flex-shrink: 0; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cta-card strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; color: var(--text); }
.cta-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Reportes ---------- */
.reports { padding-top: 20px; }
.pipeline { display: flex; overflow: hidden; background: linear-gradient(180deg, rgba(47,33,36,.92) 0%, rgba(21,13,15,.95) 100%); border: 1px solid #4D383D; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,220,228,.08), 0 20px 50px rgba(0,0,0,.6); }
.stage { flex: 1; min-height: 112px; padding: 0 24px; display: flex; align-items: center; gap: 16px; cursor: pointer; }
.stage + .stage { border-left: 1px solid var(--line-2); }
.stage:hover { background: rgba(201,85,110,.07); }
.stage .medal { width: 44px; height: 44px; }
.stage-text { display: flex; flex-direction: column; gap: 4px; }
.stage-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.stage-count { font-weight: 300; font-size: 32px; line-height: 1; color: #F6EEF0; }

.board { margin-top: 40px; display: flex; align-items: flex-start; gap: 40px; }
.report-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .tab { font-size: 14px; padding: 0 12px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
select, .sort select { height: 36px; padding: 0 10px; background: var(--panel); border: 1px solid var(--line-3); border-radius: 3px; color: var(--text); font-size: 14px; }

.report { display: flex; gap: 18px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.report.is-selected { background: #1C1013; border-color: var(--green); box-shadow: 0 0 0 1px rgba(201,85,110,.25), 0 12px 30px rgba(0,0,0,.5); }
.vote { width: 72px; height: 84px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; background: #190F11; border: 1px solid #473237; border-radius: 3px; color: var(--text-2); }
.vote span { font-weight: 500; font-size: 22px; line-height: 1; }
.vote small { font-size: 10px; letter-spacing: .08em; }
.vote:hover { border-color: var(--line-4); }
.n1 { display: none; }
.toggle-input:checked + .vote { background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; }
.toggle-input:checked + label .n0 { display: none; }
.toggle-input:checked + label .n1 { display: inline; }
.toggle-input:focus-visible + label { outline: 2px solid var(--green-lt); outline-offset: 2px; }
.report-main { flex: 1; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.report-main:hover .report-title { color: #FCC6D2; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.report-meta span:last-child { color: var(--muted); }
.report-title { font-size: 19px; line-height: 1.35; }
.report-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: var(--dim); }
.sev { display: flex; align-items: center; gap: 6px; }

.st-pill { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid; border-radius: 3px; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; }
.st-pill-reported { background: var(--grad-bevel); border-color: var(--line-3); color: #E7DBDE; }
.st-pill-confirmed { background: #23171A; border-color: var(--green-lt); color: var(--green-link); }
.st-pill-forge { background: var(--grad-bronze); border-color: #E8E2BC; color: #0F0E07; }
.st-pill-fixed { background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; }

.detail { width: 520px; flex-shrink: 0; position: sticky; top: 24px; background: var(--panel); border: 1px solid #4D383D; border-radius: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.detail-head { padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #24191B 0%, var(--panel) 100%); }
.detail-head h2 { font-weight: 400; font-size: 26px; line-height: 1.3; color: #F6EEF0; }
.timeline { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.timeline li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #73535A; }
.timeline li span { height: 4px; border-radius: 2px; background: var(--line); }
.timeline li.is-done { color: var(--text-2); }
.timeline li.is-done span { background: var(--green-lt); }
.detail-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.field-block { display: flex; flex-direction: column; gap: 8px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.box { padding: 14px; border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; gap: 6px; }
.box span { font-size: 12px; color: var(--dim); }
.box p { font-size: 15px; color: var(--text-2); }
.attach { height: 96px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.reply { padding: 14px 18px; border: 1px solid #271B1E; border-radius: 3px; display: flex; flex-direction: column; gap: 6px; }
.reply p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.reply-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); }
.reply-head strong { font-weight: 400; font-size: 15px; color: var(--text); }
.reply-official { padding: 16px 18px; border-color: #824956; background: linear-gradient(180deg, rgba(201,85,110,.12) 0%, rgba(201,85,110,.03) 100%); }
.reply-official p { color: var(--text-2); }
.staff { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; background: var(--grad-green); border-radius: 2px; color: #FBEEF1; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; }
.push { margin-left: auto; }
.useful { margin-left: auto; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border: 1px solid var(--line-2); border-radius: 3px; font-size: 13px; color: var(--dim); }
.toggle-input:checked + .useful { border-color: var(--green-lt); color: var(--green-link); }
.reply-form { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.reply-form textarea, .field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-3); border-radius: 3px; color: var(--text); font-size: 16px;
}
.reply-form textarea { border-color: var(--line-2); font-size: 15px; resize: vertical; }
.field textarea { resize: vertical; }
.field input, .field select { height: 48px; }

.report-bottom { padding-top: 104px; display: flex; align-items: flex-start; gap: 40px; }
.report-bottom > .stack { width: 520px; flex-shrink: 0; gap: 24px; }
.new-report { flex: 1; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 22px; border-color: #4D383D; }
.new-report .sec-head h2 { font-size: 40px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { padding: 0; font-size: 14px; color: var(--text-2); }
.field legend { margin-bottom: 8px; }
.dupes { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border: 1px dashed #824956; border-radius: 3px; background: rgba(201,85,110,.05); }
.dupes span { font-size: 13px; color: var(--green-lt); }
.dupes a { font-size: 15px; color: #E7DBDE; }
.dupes em { font-style: normal; color: var(--dim); }
.sev-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sev-input { position: absolute; opacity: 0; pointer-events: none; }
.sev-opt { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; background: var(--bg); border: 1px solid #473237; border-radius: 3px; color: var(--muted); font-size: 14px; }
.sev-input:checked + .sev-opt { background: #2B1016; border-color: var(--green-lt); color: var(--text); }
.sev-input:focus-visible + .sev-opt { outline: 2px solid var(--green-lt); outline-offset: 2px; }
.dropzone { height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: 1px dashed var(--line-3); border-radius: 3px; background: var(--bg); color: var(--muted); font-size: 15px; }
.dropzone:hover { border-color: var(--green); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.hunters-head { padding: 22px 26px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.hunters-head strong, .how-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; color: var(--text); }
.hunters ol { margin: 0; padding: 8px 26px 18px; list-style: none; }
.hunters li { height: 56px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #25191C; }
.hunters li strong { flex: 1; font-weight: 400; font-size: 16px; color: var(--text); }
.pts { width: 72px; text-align: right; font-size: 16px; color: var(--online); }
.how { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.how-step { display: flex; gap: 16px; }
.how-n { width: 36px; flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--green); }
.how-step div { display: flex; flex-direction: column; gap: 4px; }
.how-step strong { font-weight: 400; font-size: 16px; color: var(--text); }
.how-step p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .site-header { padding: 0 24px; }
  .logo, .header-side { width: auto; }
  .page-hero-offset { padding-left: 24px; padding-right: 24px; }
  .layout-side, .board, .report-bottom, .split, .inventory-wrap { flex-direction: column; align-items: stretch; }
  .sidebar { position: static; width: 100%; }
  .detail, .report-bottom > .stack, .cta-card { width: 100%; position: static; }
  .dials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .castles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf { overflow-x: auto; justify-content: flex-start; padding-top: 24px; }
  .tome { flex-shrink: 0; }
}
@media (max-width: 900px) {
  .site-header { height: auto; padding-block: 16px; flex-wrap: wrap; justify-content: center; }
  .page-title { font-size: 44px; }
  .big-head h2, .big-head .count { font-size: 40px; }
  .sec-head h2 { font-size: 32px; }
  .grid-3, .grid-2, .rules, .kv-grid, .tome-articles { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .oly-facts, .sev-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { flex-wrap: wrap; }
  .stage { flex-basis: 50%; min-height: 88px; }
  .tome-open { flex-direction: column; }
  .tome-open-info { width: auto; padding-right: 0; border-right: 0; }
  .recent li { grid-template-columns: 1fr; gap: 6px; padding-block: 12px; }
  .recent-meta { text-align: left; }
  .forge-track { grid-template-columns: repeat(10, minmax(0, 1fr)); row-gap: 16px; }
  .rank-table th, .rank-table td { padding: 0 12px; }
  }

/* ---- Generated: CSS-only tab state (radio inputs) ---- */

#rk-pvp:checked ~ .tab-row [for="rk-pvp"],
#rk-pk:checked ~ .tab-row [for="rk-pk"],
#rk-clan:checked ~ .tab-row [for="rk-clan"],
#rk-castle:checked ~ .tab-row [for="rk-castle"],
#rk-level:checked ~ .tab-row [for="rk-level"],
#rk-olympiad:checked ~ .tab-row [for="rk-olympiad"],
#rk-heroes:checked ~ .tab-row [for="rk-heroes"],
#raca-human:checked ~ .tab-row [for="raca-human"],
#raca-elf:checked ~ .tab-row [for="raca-elf"],
#raca-delf:checked ~ .tab-row [for="raca-delf"],
#raca-orc:checked ~ .tab-row [for="raca-orc"],
#raca-dwarf:checked ~ .tab-row [for="raca-dwarf"],
#raca-kamael:checked ~ .tab-row [for="raca-kamael"],
#c-todos:checked ~ .board [for="c-todos"],
#c-sistemas:checked ~ .board [for="c-sistemas"],
#c-skills:checked ~ .board [for="c-skills"],
#c-drops:checked ~ .board [for="c-drops"],
#c-mapas:checked ~ .board [for="c-mapas"],
#c-interface:checked ~ .board [for="c-interface"] {
  background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; font-weight: 500;
}

#f-all:checked ~ .pipeline [for="f-all"],
#f-reported:checked ~ .pipeline [for="f-reported"],
#f-confirmed:checked ~ .pipeline [for="f-confirmed"],
#f-forge:checked ~ .pipeline [for="f-forge"],
#f-fixed:checked ~ .pipeline [for="f-fixed"] {
  background: rgba(201,85,110,.14); box-shadow: inset 0 -3px 0 var(--green-lt);
}

#f-all:checked ~ .pipeline [for="f-all"],
#f-reported:checked ~ .pipeline [for="f-reported"],
#f-confirmed:checked ~ .pipeline [for="f-confirmed"],
#f-forge:checked ~ .pipeline [for="f-forge"],
#f-fixed:checked ~ .pipeline [for="f-fixed"] .stage-label {
  color: var(--green-link);
}

#sys-buffer:checked ~ .inventory [for="sys-buffer"],
#sys-shop:checked ~ .inventory [for="sys-shop"],
#sys-tele:checked ~ .inventory [for="sys-tele"],
#sys-sword:checked ~ .inventory [for="sys-sword"],
#sys-people:checked ~ .inventory [for="sys-people"],
#sys-crown:checked ~ .inventory [for="sys-crown"],
#sys-star:checked ~ .inventory [for="sys-star"],
#sys-shield:checked ~ .inventory [for="sys-shield"],
#sys-store:checked ~ .inventory [for="sys-store"],
#sys-flag:checked ~ .inventory [for="sys-flag"],
#sys-gift:checked ~ .inventory [for="sys-gift"],
#sys-castle:checked ~ .inventory [for="sys-castle"] {
  background: linear-gradient(180deg, #3A2227 0%, #270D13 100%); border-color: var(--green-lt); color: #F6C4CF;
  box-shadow: inset 0 0 0 1px rgba(227,119,142,.4), 0 0 16px rgba(201,85,110,.35);
}

#rk-pvp:focus-visible ~ .tab-row [for="rk-pvp"],
#rk-pk:focus-visible ~ .tab-row [for="rk-pk"],
#rk-clan:focus-visible ~ .tab-row [for="rk-clan"],
#rk-castle:focus-visible ~ .tab-row [for="rk-castle"],
#rk-level:focus-visible ~ .tab-row [for="rk-level"],
#rk-olympiad:focus-visible ~ .tab-row [for="rk-olympiad"],
#rk-heroes:focus-visible ~ .tab-row [for="rk-heroes"],
#sys-buffer:focus-visible ~ .inventory [for="sys-buffer"],
#sys-shop:focus-visible ~ .inventory [for="sys-shop"],
#sys-tele:focus-visible ~ .inventory [for="sys-tele"],
#sys-sword:focus-visible ~ .inventory [for="sys-sword"],
#sys-people:focus-visible ~ .inventory [for="sys-people"],
#sys-crown:focus-visible ~ .inventory [for="sys-crown"],
#sys-star:focus-visible ~ .inventory [for="sys-star"],
#sys-shield:focus-visible ~ .inventory [for="sys-shield"],
#sys-store:focus-visible ~ .inventory [for="sys-store"],
#sys-flag:focus-visible ~ .inventory [for="sys-flag"],
#sys-gift:focus-visible ~ .inventory [for="sys-gift"],
#sys-castle:focus-visible ~ .inventory [for="sys-castle"],
#tomo-classes:focus-visible ~ .shelf [for="tomo-classes"],
#tomo-skills:focus-visible ~ .shelf [for="tomo-skills"],
#tomo-itens:focus-visible ~ .shelf [for="tomo-itens"],
#tomo-quests:focus-visible ~ .shelf [for="tomo-quests"],
#tomo-bosses:focus-visible ~ .shelf [for="tomo-bosses"],
#tomo-mapas:focus-visible ~ .shelf [for="tomo-mapas"],
#tomo-craft:focus-visible ~ .shelf [for="tomo-craft"],
#tomo-sistemas:focus-visible ~ .shelf [for="tomo-sistemas"],
#raca-human:focus-visible ~ .tab-row [for="raca-human"],
#raca-elf:focus-visible ~ .tab-row [for="raca-elf"],
#raca-delf:focus-visible ~ .tab-row [for="raca-delf"],
#raca-orc:focus-visible ~ .tab-row [for="raca-orc"],
#raca-dwarf:focus-visible ~ .tab-row [for="raca-dwarf"],
#raca-kamael:focus-visible ~ .tab-row [for="raca-kamael"],
#f-all:focus-visible ~ .pipeline [for="f-all"],
#f-reported:focus-visible ~ .pipeline [for="f-reported"],
#f-confirmed:focus-visible ~ .pipeline [for="f-confirmed"],
#f-forge:focus-visible ~ .pipeline [for="f-forge"],
#f-fixed:focus-visible ~ .pipeline [for="f-fixed"],
#c-todos:focus-visible ~ .board [for="c-todos"],
#c-sistemas:focus-visible ~ .board [for="c-sistemas"],
#c-skills:focus-visible ~ .board [for="c-skills"],
#c-drops:focus-visible ~ .board [for="c-drops"],
#c-mapas:focus-visible ~ .board [for="c-mapas"],
#c-interface:focus-visible ~ .board [for="c-interface"] {
  outline: 2px solid var(--green-lt); outline-offset: 2px;
}

#sys-buffer:checked ~ [data-for="sys-buffer"],
#sys-shop:checked ~ [data-for="sys-shop"],
#sys-tele:checked ~ [data-for="sys-tele"],
#sys-sword:checked ~ [data-for="sys-sword"],
#sys-people:checked ~ [data-for="sys-people"],
#sys-crown:checked ~ [data-for="sys-crown"],
#sys-star:checked ~ [data-for="sys-star"],
#sys-shield:checked ~ [data-for="sys-shield"],
#sys-store:checked ~ [data-for="sys-store"],
#sys-flag:checked ~ [data-for="sys-flag"],
#sys-gift:checked ~ [data-for="sys-gift"],
#sys-castle:checked ~ [data-for="sys-castle"],
#tomo-classes:checked ~ [data-for="tomo-classes"],
#tomo-skills:checked ~ [data-for="tomo-skills"],
#tomo-itens:checked ~ [data-for="tomo-itens"],
#tomo-quests:checked ~ [data-for="tomo-quests"],
#tomo-bosses:checked ~ [data-for="tomo-bosses"],
#tomo-mapas:checked ~ [data-for="tomo-mapas"],
#tomo-craft:checked ~ [data-for="tomo-craft"],
#tomo-sistemas:checked ~ [data-for="tomo-sistemas"] {
  display: flex;
}

#rk-pvp:checked ~ [data-for="rk-pvp"],
#rk-pk:checked ~ [data-for="rk-pk"],
#rk-clan:checked ~ [data-for="rk-clan"],
#rk-castle:checked ~ [data-for="rk-castle"],
#rk-level:checked ~ [data-for="rk-level"],
#rk-olympiad:checked ~ [data-for="rk-olympiad"],
#rk-heroes:checked ~ [data-for="rk-heroes"],
#raca-human:checked ~ [data-for="raca-human"],
#raca-elf:checked ~ [data-for="raca-elf"],
#raca-delf:checked ~ [data-for="raca-delf"],
#raca-orc:checked ~ [data-for="raca-orc"],
#raca-dwarf:checked ~ [data-for="raca-dwarf"],
#raca-kamael:checked ~ [data-for="raca-kamael"] {
  display: table;
}

#tomo-classes:checked ~ .shelf [for="tomo-classes"],
#tomo-skills:checked ~ .shelf [for="tomo-skills"],
#tomo-itens:checked ~ .shelf [for="tomo-itens"],
#tomo-quests:checked ~ .shelf [for="tomo-quests"],
#tomo-bosses:checked ~ .shelf [for="tomo-bosses"],
#tomo-mapas:checked ~ .shelf [for="tomo-mapas"],
#tomo-craft:checked ~ .shelf [for="tomo-craft"],
#tomo-sistemas:checked ~ .shelf [for="tomo-sistemas"] {
  transform: translateY(-18px); border-color: var(--green-lt);
  box-shadow: 0 0 0 1px rgba(227,119,142,.35), 0 0 30px rgba(201,85,110,.35), 0 20px 30px rgba(0,0,0,.6);
}

#tomo-classes:checked ~ .shelf [for="tomo-classes"] .band,
#tomo-skills:checked ~ .shelf [for="tomo-skills"] .band,
#tomo-itens:checked ~ .shelf [for="tomo-itens"] .band,
#tomo-quests:checked ~ .shelf [for="tomo-quests"] .band,
#tomo-bosses:checked ~ .shelf [for="tomo-bosses"] .band,
#tomo-mapas:checked ~ .shelf [for="tomo-mapas"] .band,
#tomo-craft:checked ~ .shelf [for="tomo-craft"] .band,
#tomo-sistemas:checked ~ .shelf [for="tomo-sistemas"] .band {
  background: var(--green-lt);
}

#f-reported:checked ~ .board .report:not(.st-reported),
#f-confirmed:checked ~ .board .report:not(.st-confirmed),
#f-forge:checked ~ .board .report:not(.st-forge),
#f-fixed:checked ~ .board .report:not(.st-fixed),
#c-sistemas:checked ~ .board .report:not(.cat-sistemas),
#c-skills:checked ~ .board .report:not(.cat-skills),
#c-drops:checked ~ .board .report:not(.cat-drops),
#c-mapas:checked ~ .board .report:not(.cat-mapas),
#c-interface:checked ~ .board .report:not(.cat-interface) {
  display: none;
}

/* ---------- Conta ---------- */
.page-hero-short { min-height: 220px; }
.auth { width: min(520px, 100% - 32px); margin-inline: auto; }
.form-panel { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form-panel h3 { font-weight: 400; font-size: 26px; color: var(--text); }
.form-error, .form-notice { margin: 0; padding: 12px 16px; border: 1px solid; border-radius: 3px; }
.form-error { border-color: #7A3B3B; background: #1E1111; color: #F2C4C4; }
.form-notice { border-color: var(--green); background: #23090F; color: var(--green-link); }

/* ---------- Notícia ---------- */
.article { width: min(760px, 100% - 32px); margin: 64px auto 0; display: flex; flex-direction: column; gap: 20px; }
.article h1 { font-weight: 400; font-size: 44px; line-height: 1.2; color: var(--text); }
.article .lead { text-align: left; max-width: none; }
.article p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text-2); }

/* ---------- Reportes: filtros por link e voto por formulário ---------- */
.pipeline .stage { color: inherit; }
.stage.is-active { background: rgba(201,85,110,.14); box-shadow: inset 0 -3px 0 var(--green-lt); }
.stage.is-active .stage-label { color: var(--green-link); }
.chip-row .tab.is-active { background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; font-weight: 500; }
.vote.is-voted { background: var(--grad-green); border-color: #C9556E; color: #FBEEF1; }


/* ---------- Arte do hero: anã à direita, atrás do conteúdo ---------- */
.hero > :not(.hero-art) { position: relative; z-index: 1; }
.hero-art {
  position: absolute; right: 0; bottom: 0; z-index: 0; height: 88%; width: auto; pointer-events: none;
  /* Some nas bordas para fundir com a fumaça e com a seção de baixo. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* Em tela estreita ela cobriria o texto. */
@media (max-width: 1180px) { .hero-art { display: none; } }

/* ---------- Texto rico (notícias e wiki) ---------- */
.rich { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.rich h2 { margin-top: 16px; font-weight: 400; font-size: 32px; color: var(--text); }
.rich h3 { margin-top: 8px; font-weight: 500; font-size: 24px; color: var(--text); }
.rich h4 { font-weight: 500; font-size: 19px; color: var(--text); }
.rich p, .rich ul, .rich ol, .rich blockquote, .rich pre, .rich figure { margin: 0; }
.rich ul, .rich ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich strong { color: var(--text); }
.rich img { max-width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.rich figcaption { font-size: 14px; color: var(--dim); }
.rich blockquote { padding: 12px 20px; border-left: 3px solid var(--green); background: var(--panel); color: var(--muted); }
.rich hr { margin: 8px 0; }
.rich code { padding: 1px 6px; border-radius: 3px; background: var(--panel-2); font-size: .9em; }
.rich pre { padding: 16px; overflow-x: auto; border-radius: 4px; background: var(--panel-2); }
.rich table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rich th, .rich td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.rich th { color: var(--dim); font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; }

/* Chip de item/skill: [[item:57]] */
.ref, .rich a.ref { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 2px; vertical-align: middle; border: 1px solid var(--line-3); border-radius: 3px; background: var(--panel-2); color: var(--text); font-size: .92em; line-height: 1.6; text-decoration: none; }
.ref:hover { border-color: var(--green-lt); }
.ref-icon { width: 24px; height: 24px; border-radius: 2px; border: 0; }
.ref-icon-empty, .game-icon-empty { display: inline-block; background: var(--line); }

/* ---------- Wiki ---------- */
.wiki-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.wiki-card span:not(.tag) { font-size: 15px; line-height: 1.5; color: var(--muted); }
.wiki-card .tag { align-self: flex-start; }
.wiki-card:hover { border-color: var(--line-3); }
.game-title { display: flex; align-items: center; gap: 16px; }
.game-icon { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--line-3); border-radius: 3px; }
.game-title .game-icon { width: 64px; height: 64px; }
.game-list { margin: 0; padding: 0; list-style: none; }
.game-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.game-list a { display: flex; align-items: center; gap: 12px; color: var(--text); }
.game-list small { color: var(--dim); }
.game-list code { padding: 2px 8px; border-radius: 3px; background: var(--panel-2); color: var(--green-link); user-select: all; }

/* ---------- Editor visual ---------- */
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 14px; line-height: 1.5; }
.editor { position: relative; border: 1px solid var(--line-3); border-radius: 6px; background: var(--panel); }
.editor:focus-within { border-color: var(--green-lt); box-shadow: 0 0 0 3px rgba(201,85,110,.18); }
.editor-toolbar {
  position: sticky; top: 0; z-index: 2; padding: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--line-2); border-radius: 6px 6px 0 0; background: var(--grad-raised);
}
.editor-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid transparent; border-radius: 4px; background: none; color: var(--text-2);
}
.editor-btn:hover:not(:disabled) { border-color: var(--line-3); background: var(--panel-2); color: var(--text); }
.editor-btn:focus-visible { outline: 2px solid var(--green-lt); outline-offset: 1px; }
.editor-btn:disabled { opacity: .3; cursor: default; }
.editor-btn[data-tool="ref"] { color: var(--green-link); }
.editor.is-source .editor-btn[data-tool="code"] { border-color: var(--green); background: var(--grad-green); color: #FBEEF1; }
.editor-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line-3); }
.editor-area { min-height: 420px; padding: 24px 28px; outline: none; }
.editor-area table { border: 1px dashed var(--line-3); }
.editor-area td, .editor-area th { min-width: 60px; border: 1px dashed var(--line-3); }
.editor-source { width: 100%; min-height: 420px; padding: 20px; border: 0; border-radius: 0 0 6px 6px; background: var(--bg); color: var(--text-2); resize: vertical; }
.editor-picker { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line-2); background: #1B1012; }
.editor-picker input { height: 42px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 4px; background: var(--bg); color: var(--text); }
.editor-picker-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; }
.editor-picker-results strong { grid-column: 1 / -1; font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: var(--dim); }
.editor-pick { padding: 6px 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); }
.editor-pick:hover { border-color: var(--green-lt); }
.editor-pick img { border-radius: 3px; }
.editor-pick small { margin-left: auto; color: var(--dim); }
.article-preview { width: auto; margin: 0; padding: 32px; }

/* ---------- Página de skill e de classe ---------- */
.skill-page { width: min(1200px, 100% - 32px); margin: 40px auto 0; display: flex; flex-direction: column; gap: 56px; }
.skill-hero, .class-hero {
  position: relative; padding: 48px; display: flex; gap: 48px; align-items: center; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 6px;
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(201,85,110,.28) 0%, rgba(201,85,110,0) 60%),
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(138,31,55,.35) 0%, rgba(138,31,55,0) 70%),
    linear-gradient(135deg, #1D1113 0%, #0E0809 100%);
}
.class-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
/* Anel girando atrás do ícone */
.skill-sigil { position: relative; width: 168px; height: 168px; flex-shrink: 0; display: grid; place-items: center; }
.skill-sigil::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #C9556E, #5C0F21, #E3778E, #3A0C16, #C9556E);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  animation: sigil-spin 18s linear infinite;
}
.skill-sigil::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(227,119,142,.35) 0%, rgba(227,119,142,0) 70%); }
.skill-sigil .game-icon { position: relative; z-index: 1; width: 96px; height: 96px; border: 2px solid #E3778E; border-radius: 10px; box-shadow: 0 0 32px rgba(201,85,110,.6); image-rendering: pixelated; }
@keyframes sigil-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .skill-sigil::before { animation: none; } }

.skill-head { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.skill-kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .08em; color: var(--dim); }
.skill-head h1, .class-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: .02em; color: #FBEEF1; text-shadow: 0 0 40px rgba(201,85,110,.45); }
.skill-desc { margin: 0; max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.skill-type { padding: 2px 10px; border-radius: 999px; background: var(--grad-green); color: #FBEEF1; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.skill-type.is-passive { background: none; border: 1px solid var(--line-3); color: var(--text-2); }
.skill-facts { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-facts div { padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-2); border-left: 3px solid var(--green); border-radius: 3px; background: rgba(10,7,7,.55); }
.skill-facts dt { font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; }
.skill-facts dd { margin: 0; font-size: 20px; color: var(--text); }

.skill-block { display: flex; flex-direction: column; gap: 24px; }
.skill-chart { margin: 0; padding: 20px 20px 12px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, #170E10 0%, #0E0809 100%); }
.skill-chart svg { display: block; width: 100%; height: 160px; }
.skill-chart figcaption { margin-top: 8px; display: flex; justify-content: space-between; font-size: 14px; color: var(--dim); }
.skill-chart strong { color: var(--green-link); font-weight: 500; }

.level-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.level-tile { position: relative; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); transition: transform .15s ease; }
.level-tile:hover { border-color: var(--line-4); transform: translateY(-2px); }
.level-tile.is-max { border-color: var(--green); background: linear-gradient(180deg, #2A1216 0%, var(--panel) 100%); }
.level-n { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--text); }
.level-n::before { content: "Nv "; font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.level-v { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--text-2); }
.level-v small { color: var(--dim); font-size: 12px; }

.route-set { display: flex; flex-direction: column; gap: 20px; }
.route-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.route-tab { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; border: 1px solid var(--line-2); border-radius: 4px; background: var(--grad-raised); transition: border-color .15s ease, transform .15s ease; }
.route-tab:hover { border-color: var(--line-4); transform: translateY(-2px); }
.route-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--text); }
.route-delta { font-size: 13px; color: var(--green-link); }
.route-summary { font-size: 13px; line-height: 1.45; color: var(--dim); }
#er-1:checked ~ .route-tabs [for="er-1"],
#er-2:checked ~ .route-tabs [for="er-2"],
#er-3:checked ~ .route-tabs [for="er-3"],
#er-4:checked ~ .route-tabs [for="er-4"],
#er-5:checked ~ .route-tabs [for="er-5"],
#er-6:checked ~ .route-tabs [for="er-6"],
#er-7:checked ~ .route-tabs [for="er-7"],
#er-8:checked ~ .route-tabs [for="er-8"] {
  border-color: #E3778E; background: linear-gradient(160deg, #5C0F21 0%, #2A0E14 100%);
  box-shadow: 0 0 0 1px rgba(227,119,142,.35), 0 12px 30px rgba(92,15,33,.55);
}
#er-1:focus-visible ~ .route-tabs [for="er-1"],
#er-2:focus-visible ~ .route-tabs [for="er-2"],
#er-3:focus-visible ~ .route-tabs [for="er-3"],
#er-4:focus-visible ~ .route-tabs [for="er-4"],
#er-5:focus-visible ~ .route-tabs [for="er-5"],
#er-6:focus-visible ~ .route-tabs [for="er-6"],
#er-7:focus-visible ~ .route-tabs [for="er-7"],
#er-8:focus-visible ~ .route-tabs [for="er-8"] { outline: 2px solid var(--green-lt); outline-offset: 2px; }
#er-1:checked ~ [data-for="er-1"],
#er-2:checked ~ [data-for="er-2"],
#er-3:checked ~ [data-for="er-3"],
#er-4:checked ~ [data-for="er-4"],
#er-5:checked ~ [data-for="er-5"],
#er-6:checked ~ [data-for="er-6"],
#er-7:checked ~ [data-for="er-7"],
#er-8:checked ~ [data-for="er-8"] { display: flex; }
.route-panel { flex-direction: column; gap: 16px; }
.route-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.route-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.route-table th { height: 44px; padding: 0 16px; text-align: left; background: var(--grad-raised); border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .16em; color: var(--dim); white-space: nowrap; }
.route-table td { height: 44px; padding: 0 16px; border-bottom: 1px solid #211518; color: var(--text-2); white-space: nowrap; }
.route-table tr:hover td { background: rgba(201,85,110,.06); }
.route-table .num { text-align: right; }
.route-table .strong { color: var(--text); font-weight: 500; }
.step-badge { display: inline-block; min-width: 42px; padding: 2px 8px; border-radius: 3px; background: var(--panel-2); color: var(--green-link); font-family: var(--font-display); font-weight: 700; text-align: center; }
.chance { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.chance-bar { width: 90px; height: 6px; }

.learner-list { display: flex; flex-wrap: wrap; gap: 10px; }
.learner { padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); color: var(--text); }
.learner:hover { border-color: var(--green-lt); }
.learner span { font-size: 13px; color: var(--dim); }

.lineage { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lineage li + li::before { content: "\2192"; margin-right: 8px; color: var(--green); }
.class-next { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--dim); }
.class-total { margin: 0; color: var(--dim); }
.class-total strong { font-family: var(--font-display); font-size: 28px; color: var(--green-link); }
.class-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.class-skill { padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); }
.class-skill:hover { border-color: var(--line-4); background: var(--panel-2); }
.class-skill .game-icon { grid-row: span 2; width: 40px; height: 40px; }
.class-skill-name { font-size: 16px; line-height: 1.2; }
.class-skill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.class-skill-meta .skill-type { padding: 0 8px; font-size: 10px; }
a
@media (max-width: 720px) {
  .skill-hero { flex-direction: column; padding: 28px 20px; gap: 24px; text-align: center; }
  .skill-kicker, .skill-facts { justify-content: center; }
  .class-hero { padding: 28px 20px; }
}
.editor [hidden] { display: none; }

/* ---------- Painel da conta ---------- */
.acct { width: min(1200px, 100% - 32px); margin: 40px auto 0; display: flex; flex-direction: column; gap: 28px; }
.acct-hero {
  padding: 40px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background:
    radial-gradient(ellipse 45% 140% at 0% 50%, rgba(201,85,110,.3) 0%, rgba(201,85,110,0) 65%),
    radial-gradient(ellipse 40% 90% at 100% 100%, rgba(138,31,55,.3) 0%, rgba(138,31,55,0) 70%),
    linear-gradient(135deg, #1D1113 0%, #0E0809 100%);
}
.acct-id { display: flex; align-items: center; gap: 24px; min-width: 0; }
.acct-avatar {
  width: 88px; height: 88px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E3778E 0%, #8A1F37 55%, #3A0C16 100%);
  box-shadow: 0 0 0 3px #1D1113, 0 0 0 5px #C9556E, 0 0 40px rgba(201,85,110,.45);
  font-family: var(--font-display); font-weight: 700; font-size: 40px; color: #FBEEF1;
}
.acct-id h1 { margin: 6px 0 2px; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1; color: #FBEEF1; text-shadow: 0 0 32px rgba(201,85,110,.4); }
.acct-email { margin: 0; color: var(--dim); }
.acct-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: var(--line-2); }
.acct-stats div { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; background: rgba(14,8,9,.85); }
.acct-stats dt { font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.acct-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--text); }
.acct-stats dd small { font-size: 16px; color: var(--dim); }
.acct-stats dd.is-online { color: var(--online); }

.acct-alert { margin: 0; padding: 14px 18px; border: 1px solid var(--line-3); border-left: 4px solid var(--line-4); border-radius: 4px; background: var(--panel); color: var(--text-2); }
.acct-alert.is-ok { border-left-color: var(--online); }
.acct-alert.is-error { border-left-color: #E3778E; background: #1E1013; color: #F6D3DA; }

.acct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.acct-main { display: flex; flex-direction: column; gap: 16px; }
.acct-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }

.acct-card { overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.acct-card-head { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(138,31,55,.35) 0%, rgba(138,31,55,0) 70%); }
.acct-card-label { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.acct-card-head h3 { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--text); }
.acct-card-tags { display: flex; gap: 12px; font-size: 14px; color: var(--dim); }
.acct-online { color: var(--online); }
.acct-empty { margin: 0; padding: 20px 24px; color: var(--dim); }

.acct-roster { margin: 0; padding: 8px 12px; list-style: none; }
.acct-char { padding: 10px 12px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; border-radius: 6px; }
.acct-char + .acct-char { border-top: 1px solid #211518; }
.acct-char:hover { background: var(--panel-2); }
.acct-level { width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line-3); border-radius: 50%; background: var(--grad-raised); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--text); }
.acct-level small { font-size: 9px; letter-spacing: .14em; color: var(--dim); }
.acct-char.is-online .acct-level { border-color: var(--online); box-shadow: 0 0 14px rgba(143,219,154,.25); }
.acct-char-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-char-main strong { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 18px; color: var(--text); }
.acct-char-main span { font-size: 14px; color: var(--dim); }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); }
.acct-pvp { min-width: 48px; display: flex; flex-direction: column; align-items: flex-end; font-size: 18px; color: var(--text-2); }
.acct-pvp small { font-family: var(--font-display); font-size: 10px; letter-spacing: .14em; color: var(--dim); }

.acct-card-actions { padding: 12px 24px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.acct-action { flex: 1 1 240px; }
.acct-action summary { padding: 8px 14px; display: inline-block; cursor: pointer; list-style: none; border: 1px solid var(--line-3); border-radius: 999px; font-size: 14px; color: var(--text-2); }
.acct-action summary::-webkit-details-marker { display: none; }
.acct-action[open] summary { border-color: var(--green); background: var(--grad-green); color: #FBEEF1; }
.acct-action .form-panel { padding: 16px 0 0; }

.acct-slot { padding: 22px 24px; display: flex; align-items: center; gap: 18px; border: 1px dashed var(--line-3); border-radius: 8px; color: var(--dim); transition: border-color .15s ease, background .15s ease; }
.acct-slot:hover { border-color: var(--green-lt); background: rgba(201,85,110,.05); color: var(--text-2); }
.acct-slot strong { display: block; font-family: var(--font-display); letter-spacing: .06em; color: var(--text-2); }
.acct-slot-plus { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border: 1px dashed var(--line-4); border-radius: 50%; font-size: 26px; color: var(--green-link); }

.acct-box { padding: 22px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--grad-raised); }
.acct-box h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--text); }
.acct-admin a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text-2); }
.acct-admin a:hover { border-color: var(--green-lt); color: var(--text); }
.acct-logout { display: flex; justify-content: flex-end; }

@media (max-width: 960px) {
  .acct-layout { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 560px) {
  .acct-hero { padding: 28px 20px; }
  .acct-char { grid-template-columns: 48px minmax(0, 1fr); }
  .acct-pvp { display: none; }
}

/* Descrição do item (texto do cliente) */
.item-lore { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--green); border-radius: 0 4px 4px 0; background: var(--panel); }
.item-lore p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.item-lore p:first-child { font-style: italic; color: var(--text); }

/* ---------- Árvore genealógica (SVG) ---------- */
.genealogy-set .tab-row { margin-bottom: 20px; }
#raca-human:checked ~ .genealogy[data-for="raca-human"],
#raca-elf:checked ~ .genealogy[data-for="raca-elf"],
#raca-delf:checked ~ .genealogy[data-for="raca-delf"],
#raca-orc:checked ~ .genealogy[data-for="raca-orc"],
#raca-dwarf:checked ~ .genealogy[data-for="raca-dwarf"],
#raca-kamael:checked ~ .genealogy[data-for="raca-kamael"] { display: block; }
.genealogy-scroll { overflow-x: auto; padding: 24px 20px; border: 1px solid var(--line-2); border-radius: 8px;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(138,31,55,.22) 0%, rgba(138,31,55,0) 70%), var(--panel); }
.genealogy-svg { display: block; min-width: 900px; max-width: 100%; height: auto; margin: 0 auto; font-family: var(--font); }
.gen-tier { fill: var(--dim); font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .18em; }
.gen-edge { fill: none; stroke: #5A3A41; stroke-width: 1.5; }
.gen-node rect { fill: #1B1113; stroke: #4D383D; stroke-width: 1; transition: fill .15s ease, stroke .15s ease; }
.gen-node .gen-name { fill: #EADDE0; font-size: 15px; }
.gen-node .gen-meta { fill: var(--dim); font-size: 11px; letter-spacing: .06em; }
.gen-tier-0 rect { fill: #2A1A1D; stroke: var(--line-4); }
.gen-tier-0 .gen-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.gen-node.is-final rect { fill: #5C0F21; stroke: #C9556E; }
.gen-node.is-final .gen-name { fill: #FBEEF1; font-weight: 500; }
.gen-node.is-final .gen-meta { fill: #E3AEB9; }
.gen-node:hover rect, .gen-node:focus-visible rect { fill: #3A1520; stroke: #E3778E; }
.gen-node.is-final:hover rect { fill: #8A1F37; }
.gen-node:focus-visible { outline: none; }

.class-finals { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.class-finals-race { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); }
.class-finals-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--dim); }
.class-finals-list { display: flex; flex-wrap: wrap; gap: 6px; }
.class-finals-list .ct-pill { height: 32px; padding: 0 12px; font-size: 14px; }

/* ---------- Bosses e bestiário ---------- */
a.boss { color: inherit; }
a.boss:hover { border-color: var(--line-4); }
.boss-state { font-size: 14px; color: var(--muted); }
.boss-state.is-alive { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--online); color: var(--online); font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .16em; }
.boss-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--grad-raised); color: var(--text); }
.boss-card:hover { border-color: var(--line-4); }
.boss-card.is-alive { border-color: rgba(143,219,154,.45); box-shadow: 0 0 24px rgba(143,219,154,.08); }
.boss-card-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.boss-card-level { font-size: 14px; color: var(--dim); }
.boss-card .boss-state.is-alive { align-self: flex-start; }
.aggro { padding: 1px 8px; border-radius: 3px; background: #3A1520; color: #F2B6C2; font-size: 12px; letter-spacing: .06em; }
.bestiary-filters { padding: 20px; display: grid; grid-template-columns: 2fr 1fr 120px 120px auto; align-items: end; gap: 14px; }
.pager { display: flex; justify-content: center; gap: 10px; }
.drop-item { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.monster-hero { background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(201,85,110,.25) 0%, rgba(201,85,110,0) 60%),
    linear-gradient(135deg, #1D1113 0%, #0E0809 100%); }
@media (max-width: 860px) { .bestiary-filters { grid-template-columns: 1fr 1fr; } }
