/* Lobo Solitário — sistema visual 2.0. Fontes locais, sem framework. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101412;
  --surface: #171c18;
  --surface-high: #20261f;
  --line: #30382f;
  --text: #f3f1e9;
  --muted: #a7afa4;
  --subtle: #899487;
  --accent: #f5b85b;
  --accent-hover: #ffd088;
  --green: #a1c58b;
  --red: #ef998c;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 5px;
  --content: 1264px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font: 15px/1.65 var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 700 clamp(42px, 5.1vw, 64px)/.98 var(--display); letter-spacing: -.015em; }
h1 span, h2 span { color: var(--accent); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
p { color: var(--muted); }
button:disabled { cursor: wait; opacity: .6; }
:is(button, a, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--accent); }
[hidden] { display: none !important; }
.container { width: min(var(--content), calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.eyebrow { font: 500 11px var(--mono); color: var(--accent); letter-spacing: .13em; }

/* Navegação e controles */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(16, 20, 18, .97); border-bottom: 1px solid #293028; }
.navbar.scrolled { box-shadow: 0 8px 32px #0003; }
.nav-container { height: 88px; width: min(1440px, calc(100% - 80px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-type { font: 700 25px/1 var(--display); letter-spacing: .04em; }
.brand-type small { display: block; margin-top: 7px; font: 8px var(--mono); color: var(--muted); letter-spacing: .15em; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--muted); font-size: 12px; font-weight: 500; position: relative; padding-block: 15px; display: inline-flex; align-items: center; gap: 5px; }
.nav-link .icon { width: 13px; height: 13px; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 18px; height: 2px; background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-discord { border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 11px; font-weight: 500; }
.nav-discord:hover { border-color: var(--accent); color: var(--accent); }
.nav-discord .icon { width: 16px; height: 16px; }
.nav-toggle { display: none; height: 44px; width: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 11px; }
.nav-toggle span { display: block; height: 2px; width: 20px; background: var(--text); margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius); font-size: 12px; font-weight: 600; line-height: 1.4; transition: background .18s, border-color .18s, transform .18s; }
.btn > .icon:last-child { margin-left: 8px; width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #171b14; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { border-color: #465041; background: transparent; color: var(--text); }
.btn-outline:hover { background: #ffffff0a; border-color: var(--muted); }
.btn-full { width: 100%; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: var(--radius); }
.icon-button:hover { background: var(--surface-high); color: var(--accent); }
.text-button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 8px 0; font-size: 11px; color: var(--muted); }
.text-button .icon { width: 14px; height: 14px; }
.text-button:hover, .text-link:hover { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.text-link .icon { width: 16px; height: 16px; }

/* Abertura cinematográfica: a arte original permanece o foco. */
.hero { isolation: isolate; position: relative; overflow: hidden; min-height: 672px; background: #0d1515; }
.hero-art { position: absolute; inset: 0 0 0 25%; z-index: -2; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 56% 55%; opacity: .86; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #101412 4%, #101412eb 23%, #10141240 55%, #1014120d 90%), linear-gradient(0deg, #101412 0%, transparent 32%); }
.hero-grid { position: relative; padding-block: 76px 88px; min-height: 612px; display: flex; align-items: center; }
.hero-copy { width: 65%; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font: 10px var(--mono); letter-spacing: .14em; color: var(--accent); margin-bottom: 25px; }
.tiny-line { width: 24px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(65px, 7.7vw, 106px); letter-spacing: -.012em; line-height: .9; }
.hero-description { font-size: 14px; margin-top: 27px; max-width: 405px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; font: 9px var(--mono); color: var(--muted); margin-top: 26px; letter-spacing: .035em; }
.hero-proof span { display: flex; align-items: center; gap: 7px; }
.hero-proof .icon { width: 13px; height: 13px; }
.hero-caption { position: absolute; right: 0; bottom: 112px; display: flex; align-items: center; gap: 14px; font: 9px/1.8 var(--mono); color: #bdc9be; letter-spacing: .08em; }
.hero-caption strong { color: var(--text); font-weight: 500; }
.caption-cross { font-size: 30px; color: var(--accent); font-weight: 300; }
.caption-number { margin-left: 14px; color: var(--subtle); font-size: 9px; }
.hero-bottom { position: relative; height: 60px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #a7afa42e; }
.explore-link, .hero-location { font: 9px var(--mono); letter-spacing: .11em; color: var(--muted); }
.explore-link { display: flex; align-items: center; gap: 16px; }
.explore-link .icon { height: 15px; width: 15px; color: var(--accent); }
.hero-location span { margin-inline: 10px; color: var(--accent); }
.principles-strip { background: var(--surface); border-block: 1px solid var(--line); }
.principles-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding-block: 20px; }
.principles-inner > span { display: flex; align-items: center; gap: 11px; font: 10px var(--mono); letter-spacing: .035em; color: #c1c8bb; }
.principles-inner .icon { width: 16px; height: 16px; color: var(--accent); }

/* Território e status */
.section { padding-block: 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.section-heading .eyebrow, .about-intro .eyebrow, .discord-copy .eyebrow { margin-bottom: 20px; }
.section-description, .section-heading-aside { font-size: 12px; padding-bottom: 4px; }
.section-heading-aside p { margin-bottom: 18px; }
.server-card { background: var(--surface); border: 1px solid #3b4436; border-radius: var(--radius); overflow: hidden; }
.server-identity { display: flex; gap: 16px; align-items: center; padding: 27px 30px; border-bottom: 1px solid var(--line); }
.server-emblem { width: 48px; height: 48px; background: #292e22; display: grid; place-items: center; border: 1px solid #485038; border-radius: var(--radius); color: var(--accent); flex-shrink: 0; }
.server-emblem .icon { height: 25px; width: 25px; }
.server-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.server-title-row h3 { font-size: 24px; margin-right: 5px; }
.tag { font: 8px var(--mono); color: var(--accent); background: #2a2d20; border: 1px solid #434634; padding: 3px 7px; border-radius: 3px; letter-spacing: .06em; }
.tag-muted { color: var(--muted); background: transparent; border-color: var(--line); }
.server-identity p { font-size: 11px; margin-top: 7px; }
.server-status { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.status-dot { width: 6px; height: 6px; background: var(--subtle); border-radius: 50%; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px #a1c58b17; }
.status-dot.offline { background: var(--red); }
.status-online { color: var(--green); }
.status-offline { color: var(--red); }
.server-body { display: flex; padding: 30px; }
.server-main-stats { display: flex; flex: 1; gap: 34px; align-items: center; min-width: 0; }
.server-population { flex: 1.25; min-width: 155px; max-width: 280px; }
.stat-label { display: inline-flex; align-items: center; gap: 7px; font: 9px var(--mono); letter-spacing: .08em; color: var(--muted); }
.stat-label .icon { width: 13px; height: 13px; }
.population-value { font: 700 46px/1.15 var(--display); margin-block: 7px 11px; font-variant-numeric: tabular-nums; }
.population-track { height: 3px; background: #30382b; width: 100%; }
#population-bar { width: 0; height: 3px; background: var(--accent); transition: width .4s; }
.stat-footnote { display: block; font-size: 10px; color: var(--subtle); margin-top: 10px; }
.server-metric { flex: 1; padding-left: 25px; border-left: 1px solid var(--line); min-width: 110px; }
.server-metric strong { display: block; font: 700 27px/1.2 var(--display); margin-top: 12px; overflow-wrap: anywhere; }
.server-connect { width: 304px; border-left: 1px solid var(--line); padding-left: 30px; margin-left: 30px; flex-shrink: 0; }
.server-address { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 7px 0 12px; }
.server-address code { font: 11px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.server-address .icon-button { width: 32px; height: 32px; flex-shrink: 0; }
.server-address .icon { width: 15px; height: 15px; }
.server-card-bottom { padding: 10px 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.server-card-bottom p { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.server-card-bottom p .icon { width: 13px; height: 13px; color: var(--subtle); }
.wipe-note { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 21px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.wipe-symbol { color: var(--accent); display: grid; place-items: center; }
.wipe-note p { font-size: 11px; }
.wipe-note p strong { color: var(--text); font-weight: 500; }
.wipe-countdown { margin-left: auto; flex-shrink: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.wipe-countdown .stat-label { display: block; font-size: 8px; }
.wipe-countdown strong { font: 500 13px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }

/* Essência, regras e comunidade */
.about-section { background: #141914; border-block: 1px solid var(--line); }
.about-layout { display: flex; gap: 105px; }
.about-intro { width: 44%; }
.about-intro h2 { font-size: clamp(44px, 4.7vw, 60px); line-height: 1.02; }
.about-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; max-width: 365px; margin-block: 26px; }
.about-signature { display: block; font: 8px/1.7 var(--mono); color: var(--subtle); letter-spacing: .1em; margin-top: 48px; }
.feature-list { flex: 1; padding-top: 6px; }
.feature-row { display: flex; align-items: flex-start; gap: 24px; padding-block: 27px; border-bottom: 1px solid var(--line); }
.feature-row:first-child { padding-top: 0; }
.feature-row:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-number { font: 10px var(--mono); color: var(--accent); padding-top: 3px; }
.feature-row > .icon { color: var(--muted); margin-left: auto; }
.feature-row h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 10px; }
.feature-row p { font-size: 12px; max-width: 360px; line-height: 1.8; }
.rule-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule-preview { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.rule-preview:hover { border-color: #7c724d; transform: translateY(-4px); }
.rule-preview-top { display: flex; justify-content: space-between; align-items: center; color: var(--subtle); font: 9px var(--mono); letter-spacing: .04em; margin-bottom: 35px; }
.rule-preview-top .icon { width: 17px; height: 17px; }
.rule-preview > .icon { width: 27px; height: 27px; color: var(--accent); margin-bottom: 21px; }
.rule-preview h3 { font-size: 19px; margin-bottom: 13px; }
.rule-preview p { font-size: 12px; line-height: 1.8; margin-bottom: 28px; }
.rule-preview-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; font-size: 10px; color: var(--muted); }
.rule-preview-link .icon { width: 15px; height: 15px; }
.rules-disclaimer { display: flex; align-items: center; gap: 7px; font-size: 10px; margin-top: 20px; }
.rules-disclaimer .icon { width: 13px; height: 13px; color: var(--accent); }
.discord-section { padding-top: 34px; }
.discord-layout { display: flex; align-items: center; justify-content: space-between; gap: 74px; }
.discord-copy { flex: 1; }
.discord-copy h2 { font-size: clamp(44px, 4.6vw, 62px); }
.discord-copy > p:not(.eyebrow):not(.fine-print) { font-size: 13px; line-height: 1.9; max-width: 405px; margin-top: 24px; }
.community-channels { display: flex; flex-wrap: wrap; gap: 18px; margin-block: 26px 29px; }
.community-channels span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.community-channels .icon { width: 14px; height: 14px; color: var(--accent); }
.fine-print { font-size: 10px; line-height: 1.8; color: var(--subtle); margin-top: 13px; }
.discord-panel { width: 400px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 17px 20px; font: 8px var(--mono); color: var(--muted); letter-spacing: .05em; }
.panel-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
.panel-topline .icon { height: 15px; width: 15px; }
.discord-widget-shell { min-height: 330px; position: relative; }
.discord-widget-placeholder { padding: 32px 24px; text-align: center; }
.widget-emblem { display: grid; place-items: center; color: #bec6e1; margin: 0 auto 20px; }
.widget-emblem .icon { width: 36px; height: 36px; }
.discord-widget-placeholder h3 { font: 700 33px/1.2 var(--display); margin-bottom: 15px; }
.discord-widget-placeholder p { font-size: 11px; max-width: 270px; margin-inline: auto; line-height: 1.8; }
.discord-widget-placeholder .btn { margin-top: 21px; min-height: 44px; padding: 11px 17px; font-size: 10px; }
#discord-frame { border: 0; width: 100%; min-height: 400px; display: block; }
.panel-bottomline { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--subtle); font: 7px/1.6 var(--mono); text-align: center; }
.final-cta { border-top: 1px solid var(--line); background: #1d241a; padding-block: 72px; position: relative; overflow: hidden; }
.final-cta .container { position: relative; }
.final-cta h2 { font-size: clamp(55px, 6vw, 78px); margin-block: 21px 27px; }
.cta-side-note { position: absolute; right: 0; bottom: 0; font: 9px var(--mono); letter-spacing: .12em; color: var(--subtle); }

/* Rodapé e janela de conexão */
.footer { background: #0d110e; padding-top: 35px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.footer .brand-type { font-size: 21px; }
.footer .brand-type small { font-size: 7px; }
.footer-links { display: flex; gap: 28px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.footer-links .icon { width: 12px; height: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; }
.footer-bottom p { font-size: 9px; color: var(--subtle); }
.footer-coordinate { font: 8px var(--mono); color: var(--subtle); letter-spacing: .08em; }
.connect-dialog { width: min(550px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; color: var(--text); background: var(--surface); border: 1px solid #576146; padding: 30px; border-radius: 8px; box-shadow: 0 30px 80px #0008; }
.connect-dialog::backdrop { background: #030a06d1; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin: -7px -10px 16px 0; }
.connect-dialog h2 { font-size: 44px; margin-bottom: 17px; }
.connect-dialog > p { font-size: 12px; margin-bottom: 20px; }
.connect-dialog strong { color: var(--text); font-weight: 500; }
.connect-dialog .fine-print { margin-bottom: 0; }
.dialog-divider { border-top: 1px solid var(--line); margin-block: 25px 20px; padding-top: 20px; font: 9px var(--mono); letter-spacing: .08em; color: var(--accent); }
.connect-steps { font-size: 12px; color: var(--muted); padding-left: 20px; }
.connect-steps li { padding-left: 5px; margin-bottom: 12px; }
kbd { border: 1px solid #4a5244; border-radius: 3px; padding: 2px 5px; color: var(--text); font: 10px var(--mono); }
.console-command { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); }
.console-command input { width: 100%; min-width: 0; padding: 14px 10px; background: transparent; color: var(--accent); border: 0; font: 11px var(--mono); }
.console-command .icon-button { flex-shrink: 0; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 15px; }
.toast { position: fixed; z-index: 150; bottom: 25px; left: 50%; transform: translateX(-50%); background: #26321f; border: 1px solid #687954; border-radius: var(--radius); color: var(--text); box-shadow: 0 12px 40px #0006; max-width: min(500px, calc(100% - 32px)); width: max-content; font-size: 12px; padding: 13px 20px; pointer-events: none; }
.toast:empty { display: none; }
.toast[data-type="error"], .toast.error { border-color: #c07767; background: #35241f; }
.noscript-notice { padding: 20px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; }

/* Páginas internas */
.page-hero { padding-block: 42px 55px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 42px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb:hover { color: var(--accent); }
.page-hero-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.page-hero-heading h1 { font-size: clamp(54px, 6.4vw, 82px); margin-top: 21px; }
.page-hero-heading > p { font-size: 12px; line-height: 1.9; padding-bottom: 4px; }
.rules-library { display: flex; gap: 55px; padding-bottom: 70px; align-items: flex-start; }
.rules-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 120px; }
.rules-sidebar > .eyebrow { color: var(--subtle); font-size: 9px; }
.rule-index { display: flex; flex-direction: column; margin-top: 15px; border-top: 1px solid var(--line); }
.rule-index a { display: flex; gap: 12px; font-size: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rule-index a:hover { color: var(--accent); }
.rule-index a span { font: 9px var(--mono); color: var(--subtle); margin-top: 2px; }
.rules-help { margin-top: 26px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rules-help > span { color: var(--accent); }
.rules-help h3 { font-size: 15px; margin-block: 13px 9px; }
.rules-help p { font-size: 11px; line-height: 1.8; margin-bottom: 15px; }
.rules-help .text-link { font-size: 10px; }
.rules-main { flex: 1; min-width: 0; }
.rules-search-form { display: flex; align-items: center; gap: 12px; padding: 4px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rules-search-form > .icon { color: var(--subtle); width: 18px; height: 18px; }
.rules-search-form input { width: 100%; height: 46px; background: transparent; border: 0; color: var(--text); min-width: 0; font-size: 12px; }
.rules-search-form input::placeholder { color: var(--subtle); }
.rules-search-form:focus-within { border-color: var(--accent); }
.rules-search-form input:focus { outline: none; }
.rules-result { font: 9px/1.6 var(--mono); color: var(--subtle); padding-block: 15px 22px; }
.rule-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; scroll-margin-top: 110px; }
.rule-detail summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; gap: 15px; align-items: center; }
.rule-detail summary::-webkit-details-marker { display: none; }
.rule-detail summary .rule-number { font: 10px var(--mono); color: var(--accent); }
.rule-detail summary h2 { font: 500 16px/1.45 var(--body); letter-spacing: -.02em; }
.rule-detail summary .icon { width: 17px; height: 17px; margin-left: auto; color: var(--subtle); transition: transform .2s; }
.rule-detail[open] { border-color: #5c6046; }
.rule-detail[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.rule-detail[open] summary { border-bottom: 1px solid var(--line); }
.rule-content { padding: 24px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.rule-content > .rule-content { padding: 0; }
.rule-content h4 { font-size: 15px; color: var(--text); font-weight: 500; margin: 0 0 15px; }
.rule-content h5 { font: 11px var(--mono); color: var(--accent); margin: 20px 0 12px; }
.rule-content p { margin-bottom: 16px; }
.rule-content p:last-child { margin-bottom: 0; }
.rule-content strong { color: var(--text); font-weight: 500; }
.rule-content ul { padding-left: 20px; margin-block: 12px 20px; }
.rule-content li { margin-bottom: 7px; }
.allowed-forbidden { display: flex; gap: 24px; border-top: 1px solid var(--line); margin-top: 20px; }
.allowed-forbidden > div { flex: 1; }
.allowed h5 { color: var(--green); }
.forbidden h5 { color: var(--red); }
.rule-warning { display: flex; align-items: flex-start; gap: 12px; padding: 20px; background: #23251b; border: 1px solid #4c4b34; border-radius: var(--radius); margin-top: 23px; }
.rule-warning .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.rule-warning p { font-size: 11px; }
.rules-empty { text-align: center; padding: 60px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.rules-empty > .icon { color: var(--accent); width: 30px; height: 30px; margin-bottom: 22px; }
.rules-empty h2 { font-size: 34px; margin-bottom: 15px; }
.rules-empty p { font-size: 12px; }
.rule-next-step { padding-block: 32px 50px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.rule-next-step h2 { font-size: 37px; margin-top: 14px; }
.ranking-section { padding-bottom: 80px; }
.ranking-topbar { display: flex; justify-content: space-between; gap: 24px; padding: 19px 24px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; font: 10px var(--mono); }
.ranking-topbar > span { display: inline-flex; align-items: center; gap: 9px; }
.ranking-topbar .icon { color: var(--accent); width: 16px; height: 16px; }
.ranking-topbar .ranking-source { color: var(--subtle); font-size: 8px; }
.rank-fallback { text-align: center; padding: 55px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.ranking-emblem { width: 76px; height: 76px; margin: 0 auto 23px; display: grid; place-items: center; color: var(--accent); background: #272c20; border: 1px solid #474b33; border-radius: 50%; }
.ranking-emblem .icon { width: 33px; height: 33px; }
.rank-fallback h2 { font-size: 49px; margin-block: 17px 20px; }
.rank-fallback > p { max-width: 550px; margin-inline: auto; font-size: 12px; }
.rank-fallback .btn { margin-top: 25px; }
.rank-fallback .fine-print { font-size: 10px; margin-top: 18px; }
.rankeval-mount:empty { display: none; }
.rankeval-mount { max-width: 100%; overflow: auto; position: relative; isolation: isolate; }
.ranking-notes { display: flex; justify-content: space-between; gap: 25px; border: 1px solid var(--line); border-top: 0; padding: 16px 24px; border-radius: 0 0 var(--radius) var(--radius); }
.ranking-notes p { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.ranking-notes .icon { width: 13px; height: 13px; }
.ranking-notes a { display: flex; align-items: center; gap: 8px; font-size: 10px; white-space: nowrap; }
.integration-help { margin-top: 25px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.integration-help > div { display: flex; gap: 15px; align-items: center; }
.integration-help > div > .icon { color: var(--accent); }
.integration-help p { font-size: 11px; }
.integration-help strong { color: var(--text); font-weight: 500; }
.integration-help .text-link { font-size: 10px; }
.error-page { text-align: center; padding-block: 60px 100px; min-height: 70vh; }
.error-number { display: block; color: #303a2a; font: 700 clamp(120px, 22vw, 230px)/1 var(--display); margin-top: 20px; }
.error-page h1 { font-size: 50px; margin-block: 17px 20px; }
.error-page > p:not(.eyebrow) { font-size: 13px; max-width: 470px; margin-inline: auto; }
.error-page .hero-actions { justify-content: center; }

/* Faixas responsivas. O conteúdo nunca exige esconder overflow horizontal. */
@media (min-width: 1650px) {
  .hero { min-height: 760px; }
  .hero-grid { min-height: 700px; }
  .hero-art { left: 32%; }
}
@media (max-width: 1160px) {
  .container { width: calc(100% - 72px); }
  .nav-container { width: calc(100% - 56px); }
  .nav-menu { gap: 22px; }
  .hero-copy { width: 70%; }
  .hero h1 { font-size: clamp(70px, 8.4vw, 96px); }
  .server-main-stats { gap: 18px; }
  .server-connect { width: 265px; padding-left: 22px; margin-left: 22px; }
  .server-metric { padding-left: 15px; }
  .server-population { min-width: 135px; }
  .server-metric strong { font-size: 24px; }
  .about-layout { gap: 60px; }
  .discord-layout { gap: 45px; }
  .discord-panel { width: 355px; }
  .rules-library { gap: 35px; }
  .rules-sidebar { width: 220px; }
}
@media (max-width: 920px) {
  .nav-container { height: 78px; }
  .nav-menu { position: absolute; top: 77px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px 36px 28px; flex-direction: column; align-items: stretch; gap: 0; display: none; }
  .nav-menu.active, .nav-menu.is-open { display: flex; }
  .nav-link { padding-block: 13px; font-size: 14px; }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 76px; }
  .hero-copy { width: 77%; }
  .hero-caption { bottom: 46px; }
  .hero-location { display: none; }
  .principles-inner { display: grid; grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .section { padding-block: 75px; }
  .server-body { display: block; }
  .server-main-stats { gap: 26px; }
  .server-population { max-width: none; }
  .server-connect { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 20px; margin: 25px 0 0; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .server-connect > .stat-label { width: 100%; }
  .server-connect .btn { width: auto; margin-top: 8px; }
  .server-connect .server-address { flex: 1; max-width: 310px; margin-bottom: 0; }
  .wipe-note { flex-wrap: wrap; }
  .wipe-note p { flex: 1; }
  .wipe-countdown { border: 0; padding-left: 35px; margin: 0; width: 100%; }
  .about-layout { gap: 38px; }
  .about-intro { width: 46%; }
  .feature-row { gap: 16px; }
  .feature-row > .icon { display: none; }
  .rule-preview { padding: 20px; }
  .rule-preview h3 { font-size: 17px; }
  .rule-preview p { font-size: 11px; }
  .rule-preview-top { font-size: 8px; }
  .discord-layout { gap: 35px; }
  .discord-panel { width: 310px; }
  .panel-topline .tag { display: none; }
  .footer-coordinate { display: none; }
  .page-hero-heading > p { max-width: 230px; }
  .rules-library { gap: 25px; }
  .rules-sidebar { width: 185px; }
  .rule-index a { font-size: 10px; }
  .rule-detail summary { padding: 20px; }
  .rule-detail summary h2 { font-size: 14px; }
  .ranking-topbar .ranking-source { display: none; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 92px; }
  body { font-size: 14px; }
  .container { width: calc(100% - 40px); }
  .nav-container { height: 72px; width: calc(100% - 32px); gap: 12px; }
  .brand { gap: 5px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-type { font-size: 21px; }
  .brand-type small { font-size: 7px; letter-spacing: .1em; }
  .nav-actions { gap: 9px; }
  .nav-discord { height: 40px; width: 40px; padding: 0; justify-content: center; border: 0; }
  .nav-discord > span, .nav-discord > .icon:last-child { display: none; }
  .nav-discord > .icon:first-child { width: 20px; height: 20px; }
  .nav-menu { top: 71px; padding-inline: 25px; }
  .nav-toggle { width: 40px; height: 40px; padding: 9px; }
  .hero { min-height: 660px; }
  .hero-art { left: 0; top: 0; height: 440px; }
  .hero-art img { object-position: 63% 30%; opacity: .66; }
  .hero::after { background: linear-gradient(0deg, #101412 31%, #10141254 85%), linear-gradient(90deg, #1014127a, transparent 90%); }
  .hero-grid { min-height: 600px; padding-block: 56px 35px; align-items: flex-start; }
  .hero-copy { width: 100%; }
  .hero-eyebrow { font-size: 8px; letter-spacing: .06em; gap: 8px; margin-bottom: 33px; }
  .tiny-line { width: 16px; }
  .hero h1 { font-size: clamp(60px, 12.8vw, 85px); line-height: .94; }
  .hero-description { font-size: 12px; margin-top: 25px; }
  .hero-actions { gap: 10px; margin-top: 25px; }
  .hero-actions .btn { min-height: 48px; padding: 13px 17px; font-size: 11px; }
  .hero-actions .btn > .icon:last-child { margin-left: 1px; }
  .hero-proof { gap: 17px; font-size: 8px; margin-top: 21px; }
  .hero-caption { display: none; }
  .hero-bottom { height: 60px; }
  .principles-inner { gap: 18px 8px; padding-block: 22px; }
  .principles-inner > span { font-size: 8px; gap: 7px; }
  .principles-inner .icon { height: 13px; width: 13px; }
  .section { padding-block: 60px; }
  .section-heading { display: block; margin-bottom: 26px; }
  h2 { font-size: 45px; }
  .eyebrow { font-size: 9px; }
  .section-heading .eyebrow { margin-bottom: 15px; }
  .section-description { display: none; }
  .section-heading-aside { margin-top: 20px; }
  .section-heading-aside p { font-size: 11px; }
  .section-heading-aside p br { display: none; }
  .server-identity { padding: 20px; gap: 12px; flex-wrap: wrap; }
  .server-emblem { width: 38px; height: 38px; }
  .server-emblem .icon { width: 20px; height: 20px; }
  .server-title-row { gap: 6px; }
  .server-title-row h3 { font-size: 20px; width: 100%; margin-right: 0; }
  .server-identity p { font-size: 9px; }
  .server-status { margin: 5px 0 0 50px; width: 100%; font-size: 10px; }
  .server-body { padding: 20px; }
  .server-main-stats { flex-wrap: wrap; gap: 22px 0; }
  .server-population { flex-basis: 100%; }
  .population-value { font-size: 45px; }
  .server-metric { flex: 1; min-width: 0; padding-left: 0; border: 0; }
  .server-metric:last-child { padding-left: 18px; border-left: 1px solid var(--line); }
  .server-metric strong { font-size: 25px; }
  .stat-label { font-size: 8px; }
  .stat-footnote { font-size: 9px; }
  .server-connect { padding-top: 22px; margin-top: 22px; }
  .server-connect .server-address { max-width: none; flex-basis: 100%; margin-bottom: 10px; }
  .server-connect .btn { width: 100%; }
  .server-card-bottom { padding: 11px 20px; flex-wrap: wrap; gap: 2px; }
  .server-card-bottom p { width: 100%; font-size: 9px; }
  .server-card-bottom .text-button { font-size: 10px; }
  .wipe-note { padding: 18px; align-items: flex-start; gap: 11px; }
  .wipe-note p { font-size: 10px; }
  .wipe-note p strong { display: block; margin-bottom: 4px; }
  .wipe-countdown { padding-left: 31px; }
  .about-layout { display: block; }
  .about-intro { width: 100%; }
  .about-intro h2 { font-size: 49px; }
  .about-intro > p:not(.eyebrow) { max-width: 100%; font-size: 12px; }
  .about-signature { margin-top: 26px; }
  .feature-list { padding-top: 35px; margin-top: 35px; border-top: 1px solid var(--line); }
  .feature-row { gap: 20px; padding-block: 23px; }
  .feature-row h3 { font-size: 18px; }
  .feature-row p { font-size: 11px; }
  .rule-previews { grid-template-columns: 1fr; gap: 12px; }
  .rule-preview { padding: 24px; }
  .rule-preview-top { margin-bottom: 20px; }
  .rule-preview > .icon { width: 25px; height: 25px; margin-bottom: 17px; }
  .rule-preview h3 { font-size: 20px; }
  .rule-preview p { font-size: 12px; margin-bottom: 22px; }
  .rules-disclaimer { align-items: flex-start; font-size: 9px; }
  .rules-disclaimer .icon { margin-top: 2px; }
  .discord-section { padding-top: 8px; }
  .discord-layout { display: block; }
  .discord-copy h2 { font-size: 45px; }
  .discord-copy > p:not(.eyebrow):not(.fine-print) { font-size: 12px; }
  .discord-panel { width: 100%; margin-top: 34px; }
  .panel-topline .tag { display: inline; }
  .discord-widget-shell { min-height: 320px; }
  .community-channels { gap: 13px; }
  .community-channels span { font-size: 9px; }
  .final-cta { padding-block: 52px; }
  .final-cta h2 { font-size: 60px; }
  .cta-side-note { display: none; }
  .footer-top { display: block; padding-bottom: 26px; }
  .footer-links { margin-top: 25px; gap: 23px; font-size: 10px; }
  .footer-bottom { display: block; padding-block: 18px; }
  .footer-bottom p { margin-bottom: 7px; font-size: 8px; }
  .connect-dialog { padding: 24px; }
  .connect-dialog h2 { font-size: 40px; }
  .console-command input { font-size: 10px; padding-inline: 8px; }
  .page-hero { padding-block: 30px 36px; }
  .breadcrumb { margin-bottom: 28px; font-size: 10px; }
  .page-hero-heading { display: block; }
  .page-hero-heading h1 { font-size: clamp(50px, 12vw, 75px); margin-top: 17px; }
  .page-hero-heading > p { max-width: 100%; font-size: 11px; margin-top: 22px; }
  .page-hero-heading > p br { display: none; }
  .rules-library { display: block; padding-bottom: 45px; }
  .rules-sidebar { width: 100%; position: static; margin-bottom: 26px; }
  .rule-index { flex-direction: row; flex-wrap: wrap; gap: 7px; border: 0; margin-top: 12px; }
  .rule-index a { border: 1px solid var(--line); padding: 7px 10px; border-radius: 3px; font-size: 9px; gap: 6px; }
  .rule-index a span { font-size: 8px; }
  .rules-help { display: none; }
  .rules-search-form { padding-inline: 12px; gap: 9px; }
  .rules-search-form input { font-size: 11px; }
  .rules-result { font-size: 8px; padding-bottom: 17px; }
  .rule-detail summary { padding: 19px 15px; gap: 10px; }
  .rule-detail summary h2 { font-size: 13px; }
  .rule-detail summary .rule-number { font-size: 9px; }
  .rule-content { padding: 18px; font-size: 11px; line-height: 1.9; }
  .rule-content h4 { font-size: 14px; }
  .allowed-forbidden { display: block; }
  .rule-warning { padding: 16px; gap: 10px; }
  .rule-warning p { font-size: 10px; }
  .rule-next-step { display: block; padding-block: 26px 40px; }
  .rule-next-step h2 { font-size: 33px; }
  .rule-next-step .btn { margin-top: 24px; }
  .ranking-section { padding-bottom: 50px; }
  .ranking-topbar { padding: 17px; font-size: 9px; }
  .rank-fallback { padding: 35px 20px; }
  .rank-fallback h2 { font-size: 45px; }
  .rank-fallback > p { font-size: 11px; }
  .rank-fallback .fine-print { font-size: 9px; }
  .ranking-notes { padding: 17px; display: block; }
  .ranking-notes p { align-items: flex-start; font-size: 9px; margin-bottom: 12px; }
  .ranking-notes a { font-size: 10px; }
  .integration-help { display: block; padding: 20px; }
  .integration-help > div { align-items: flex-start; }
  .integration-help .text-link { margin-top: 20px; }
  .error-page { padding-block: 45px 70px; }
  .error-page h1 { font-size: 42px; }
}
@media (max-width: 360px) {
  .brand-type { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }
  .nav-discord { width: 28px; }
  .hero h1 { font-size: 57px; }
  .hero-proof { font-size: 7px; gap: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-grid { padding-bottom: 30px; }
  .hero { min-height: auto; }
  .hero-eyebrow { font-size: 7px; }
  .principles-inner > span { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .rule-preview:hover { transform: none; }
}

/* Mensagens assíncronas: nunca ficam sobre a interface após o encerramento. */
.toast { opacity: 0; visibility: hidden; transition: opacity .18s; }
.toast.is-visible { opacity: 1; visibility: visible; }
.dialog-copy-feedback { color: var(--green); font-size: 11px; margin-top: 12px; }
.dialog-copy-feedback:empty { display: none; }
[data-copy-fallback="true"] { max-width: 100%; padding: 12px; color: var(--accent); background: var(--bg); border: 1px solid var(--accent); border-radius: var(--radius); font: 11px var(--mono); }
.rank-fallback.is-loaded { padding: 15px 24px; }

/* As regras completas são conteúdo de leitura, não microcopy. */
.rule-content { font-size: 14px; line-height: 1.9; }
.rule-content h4 { font-size: 16px; }
@media (max-width: 680px) {
  .rule-content { font-size: 13px; }
  .rule-content h4 { font-size: 15px; }
}

/* Cada métrica precisa de espaço próprio, sem encolher a coluna do mapa. */
@media (max-width: 680px) {
  .server-population { flex: 0 0 100%; width: 100%; }
  .server-metric { flex: 0 0 50%; }
}

.rule-original-title { font: 11px/1.7 var(--mono); color: var(--accent); letter-spacing: .02em; margin-bottom: 20px; }
.rule-source-body > .rule-content { padding: 0; }

@media (max-width: 680px) {
  .server-status { width: calc(100% - 50px); }
}
