/* L2 Brasil.club — Theme: Lineage II (single page) */
:root{
  --bg:#07060a;
  --panel:#0c0a12cc;
  --card:#100d18cc;
  --stroke:#2a213c;
  --text:#e8e3f7;
  --muted:#b2a8cf;
  --gold:#f0c46a;
  --gold2:#b7862c;
  --red:#ff4d4d;
  --green:#3dff93;
  --shadow: 0 14px 40px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.92)),
    url("https://fizz-download.playnccdn.com/download/v2/buckets/conti-upload/files/198588cd9a8-234bc122-f712-4c1a-8af4-e3ec482a92ba") center/cover no-repeat;
  filter:saturate(1.05) contrast(1.05);
  z-index:-2;
}
.bg-vignette{
  position:fixed; inset:-20%;
  background:radial-gradient(circle at 50% 20%, rgba(240,196,106,.14), transparent 52%),
             radial-gradient(circle at 20% 80%, rgba(120,86,190,.12), transparent 46%),
             radial-gradient(circle at 80% 70%, rgba(240,196,106,.10), transparent 45%),
             radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(0,0,0,.85) 75%);
  z-index:-1;
  pointer-events:none;
}

.wrap{width:min(1160px, calc(100% - 40px)); margin:0 auto}

.snap {
  scroll-snap-type: none;
}

.panel {
  min-height: auto;
  padding: 120px 0 80px;
}

.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,4,10,.78), rgba(5,4,10,.35));
  border-bottom:1px solid rgba(240,196,106,.16);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0;}
.brand{display:flex; gap:10px; align-items:center; color:inherit; text-decoration:none}
.brand-mark{
  width:42px; height:42px; display:grid; place-items:center;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(240,196,106,.22), rgba(240,196,106,.06));
  border:1px solid rgba(240,196,106,.28);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.brand-title{
  font-family:"Cinzel Decorative", serif;
  letter-spacing:.5px;
  font-weight:900;
  font-size:14px;
  line-height:1.1;
}
.brand-sub{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}
.nav{display:flex; gap:10px; align-items:center}
.nav-link{
  color:var(--text);
  text-decoration:none;
  font-size:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  opacity:.9;
}
.nav-link:hover{
  border-color:rgba(240,196,106,.24);
  background:rgba(16,13,24,.55);
}
.nav-cta{
  color:#110b02;
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(180deg, var(--gold), var(--gold2));
  box-shadow: 0 10px 24px rgba(240,196,106,.18);
}
.nav-cta:hover{filter:brightness(1.05)}
.nav-burger{
  display:none;
  color:var(--text);
  background:rgba(16,13,24,.6);
  border:1px solid rgba(240,196,106,.2);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.nav-mobile{
  border-top:1px solid rgba(240,196,106,.14);
  padding:10px 0 14px;
  background:rgba(5,4,10,.78);
}
.nav-mobile a{
  display:block;
  padding:12px 20px;
  color:var(--text);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.nav-mobile a:hover{background:rgba(16,13,24,.7)}

.grid-2{display:grid; grid-template-columns: 1.15fr .85fr; gap:22px; align-items:start}
@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr}
  .nav{display:none}
  .nav-burger{display:inline-flex}
  .panel{padding-top:92px}
  .snap{scroll-snap-type: y proximity}
}

.hero{position:relative}
.sigil{
  width:64px; height:64px;
  background: radial-gradient(circle at 30% 30%, rgba(240,196,106,.55), rgba(240,196,106,.05) 55%),
              radial-gradient(circle at 70% 70%, rgba(120,86,190,.35), rgba(120,86,190,.02) 60%);
  border:1px solid rgba(240,196,106,.22);
  border-radius:22px;
  box-shadow: var(--shadow);
  margin:6px 0 16px;
}
.h1{
  font-family:"Cinzel Decorative", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.08;
  margin:0 0 12px;
  letter-spacing:.4px;
}
.gold{color:var(--gold)}
.lead{color:rgba(232,227,247,.88); font-size:14px; line-height:1.7; max-width:58ch}
.pill-row{display:flex; gap:8px; flex-wrap:wrap; margin:18px 0 18px}
.pill{
  border:1px solid rgba(240,196,106,.24);
  background:rgba(16,13,24,.55);
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  color:rgba(232,227,247,.92);
}

.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius:16px;
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  border:1px solid rgba(240,196,106,.16);
  background:rgba(16,13,24,.55);
  color:var(--text);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.btn:hover{transform: translateY(-1px); filter:brightness(1.05)}
.btn:active{transform: translateY(0px)}
.btn-gold{
  color:#110b02;
  background:linear-gradient(180deg, var(--gold), var(--gold2));
  border-color: rgba(240,196,106,.35);
}
.btn-ghost{
  background:rgba(16,13,24,.35);
}
.note{
  margin-top:14px;
  color:rgba(232,227,247,.82);
  font-size:12px;
  line-height:1.7;
  padding:12px 14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(240,196,106,.10), rgba(16,13,24,.35));
  border:1px solid rgba(240,196,106,.18);
}

.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,13,24,.75), rgba(10,8,16,.55));
  border:1px solid rgba(240,196,106,.15);
  box-shadow: var(--shadow);
}
.hero-side{display:flex; flex-direction:column; gap:14px}
.hero-card{padding:16px}
.hero-card-top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:2px;
  color:rgba(240,196,106,.9);
}
.title{font-weight:900; font-size:16px; margin-top:6px}
.crest{
  width:48px; height:48px;
  border-radius:18px;
  border:1px solid rgba(240,196,106,.25);
  background: radial-gradient(circle at 40% 30%, rgba(240,196,106,.35), rgba(240,196,106,.03) 60%);
}
.hero-card-bottom{margin-top:12px}
.hero-card.mini{padding:14px}
.list{list-style:none; padding:0; margin:14px 0 0; display:grid; gap:10px}
.list code{background:rgba(0,0,0,.35); padding:2px 6px; border-radius:10px; border:1px solid rgba(255,255,255,.06)}
.li{color:rgba(240,196,106,.9); margin-right:8px}

.status-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:14px;
}
@media (max-width: 780px){
  .status-cards{grid-template-columns:1fr}
}

.stat{padding:14px}
.stat-top{display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px}
.stat-label{opacity:.95}
.stat-value{
  margin-top:10px;
  font-family:"Cinzel Decorative", serif;
  font-weight:900;
  font-size:22px;
  letter-spacing:.6px;
}
.stat-sub{color:rgba(178,168,207,.85); font-size:11px; margin-top:6px}
.dot{width:10px; height:10px; border-radius:999px; display:inline-block}
.dot-on{background:var(--green); box-shadow:0 0 16px rgba(61,255,147,.35)}
.dot-off{background:var(--red); box-shadow:0 0 16px rgba(255,77,77,.35)}

.h2{
  font-family:"Cinzel Decorative", serif;
  font-weight:900;
  letter-spacing:.5px;
  font-size: clamp(22px, 2.6vw, 34px);
  margin:0 0 10px;
}
.h3{
  font-family:"Cinzel Decorative", serif;
  font-weight:900;
  letter-spacing:.4px;
  font-size:16px;
  margin:0;
}
.sub{color:rgba(232,227,247,.82); max-width:72ch; line-height:1.7; font-size:13px; margin:0 0 18px}
.muted{color:rgba(178,168,207,.90); font-size:12px; line-height:1.65}

.cards-3{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px}
@media (max-width: 980px){ .cards-3{grid-template-columns:1fr} }
.dl{padding:16px}
.dl-top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.dl-badge{
  font-size:10px; text-transform:uppercase; letter-spacing:2px;
  padding:6px 10px; border-radius:999px;
  background:rgba(240,196,106,.14);
  border:1px solid rgba(240,196,106,.22);
  color:rgba(240,196,106,.92);
  height:fit-content;
}
.dl-actions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}

.callout{
  margin-top:16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px dashed rgba(240,196,106,.28);
  background:rgba(16,13,24,.38);
}
.callout-title{color:rgba(240,196,106,.92); font-weight:900; letter-spacing:.4px}
.callout-text{color:rgba(232,227,247,.82); margin-top:6px; line-height:1.7; font-size:12px}

.info-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}
@media (max-width: 980px){ .info-grid{grid-template-columns:1fr} }
.info-card{padding:16px}
.big{font-weight:900; margin-top:10px}
.big.gold{color:var(--gold)}
.cmds{display:grid; gap:10px; margin-top:12px}
.cmd{
  display:grid; grid-template-columns: 110px 1fr; gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.06);
}
.cmd code{color:rgba(240,196,106,.95)}
.cmd span{color:rgba(232,227,247,.82); font-size:12px; line-height:1.5}

.timeline{margin-top:18px}
.timeline-grid{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin-top:12px}
@media (max-width: 980px){ .timeline-grid{grid-template-columns:1fr} }
.timeline-item{padding:14px}

.news-grid{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px}
@media (max-width: 980px){ .news-grid{grid-template-columns:1fr} }
.news{overflow:hidden}
.news-img{
  height:170px;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid rgba(240,196,106,.14);
}
.news-body{padding:14px}
.news-meta{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px}
.tag{
  font-size:10px; letter-spacing:2px; text-transform:uppercase;
  padding:6px 10px; border-radius:999px;
  background:rgba(120,86,190,.16);
  border:1px solid rgba(120,86,190,.25);
  color:rgba(232,227,247,.92);
}

.rank-grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 980px){ .rank-grid{grid-template-columns:1fr} }
.rank{padding:16px}
.rank-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px}
.rank-table{border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.06)}
.rt{display:grid; grid-template-columns: 40px 1fr 130px; gap:10px; padding:10px 12px}
.rt-head{
  background:rgba(240,196,106,.08);
  color:rgba(232,227,247,.9);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:2px;
}
.rt-row{
  background:rgba(0,0,0,.18);
  border-top:1px solid rgba(255,255,255,.05);
  font-size:12px;
}
.player{font-weight:800}
.right{text-align:right}

.join-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:12px}
@media (max-width: 980px){ .join-grid{grid-template-columns:1fr} }
.join{padding:16px}
.step{display:grid; grid-template-columns: 34px 1fr; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.06)}
.step:last-child{border-bottom:none}
.num{
  width:28px; height:28px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:900;
  background:rgba(240,196,106,.16);
  border:1px solid rgba(240,196,106,.25);
  color:rgba(240,196,106,.95);
}
.mini-grid{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; margin-top:12px}
.mini{padding:12px; border-radius:16px; background:rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.06)}
.footer{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.scroll-hint{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:rgba(232,227,247,.68);
  font-size:11px;
  letter-spacing:1px;
  user-select:none;
}
.chev{font-size:18px; opacity:.9}

.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  width:44px;
  height:44px;
  border-radius:18px;
  border:1px solid rgba(240,196,106,.22);
  background:rgba(16,13,24,.66);
  color:rgba(232,227,247,.92);
  cursor:pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  display:none;
}
.to-top.show{display:inline-grid; place-items:center}

/* ===== RANKING SYSTEM STYLES ===== */
#rankings .tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 3px solid #5d4f2e;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 20px;
}

#rankings .tab {
  padding: 18px 28px;
  cursor: pointer;
  color: #c8b273;
  border-bottom: 4px solid transparent;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 18px;
  border-radius: 8px 8px 0 0;
  margin: 0 3px;
  background: rgba(0, 0, 0, 0.3);
  min-width: 120px;
  text-align: center;
}

#rankings .tab.active {
  border-bottom-color: #ffd700;
  color: #ffd700;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

#rankings .tab:hover {
  background: linear-gradient(180deg, rgba(200, 178, 115, 0.3) 0%, transparent 100%);
  transform: translateY(-3px);
  color: #ffd700;
}

#rankings .ranking-container {
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  border: 3px solid #5d4f2e;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.8);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

#rankings .ranking-header {
  display: grid;
  grid-template-columns: 100px 1fr 250px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 25px 30px;
  font-weight: bold;
  color: #ffd700;
  border-bottom: 4px solid #5d4f2e;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#rankings .ranking-header > div {
  padding: 0 15px;
  display: flex;
  align-items: center;
}

#rankings .ranking-row {
  display: grid;
  grid-template-columns: 100px 1fr 250px;
  padding: 25px 30px;
  border-bottom: 2px solid #3a3a3a;
  transition: all 0.3s ease;
  min-height: 90px;
  align-items: center;
  gap: 20px;
}

#rankings .ranking-row:last-child {
  border-bottom: none;
}

#rankings .ranking-row > div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 15px;
}

#rankings .ranking-position {
  justify-content: center;
  font-weight: bold;
  font-size: 28px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  min-width: 80px;
}

#rankings .ranking-player {
  font-weight: 600;
  font-size: 20px;
  flex-grow: 1;
  align-items: center;
}

#rankings .ranking-value {
  justify-content: flex-end;
  font-weight: bold;
  font-size: 20px;
  color: #e0e0e0;
  min-width: 200px;
  padding-right: 20px;
}

#rankings .reward-badge {
  background: linear-gradient(135deg, #77FF77 0%, #55CC55 100%);
  color: #000;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 20px;
  box-shadow: 0 4px 15px rgba(119, 255, 119, 0.4);
}

#rankings .online-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 15px;
  box-shadow: 0 0 15px currentColor;
}

#rankings .online-indicator.online {
  background: #66FF66;
  box-shadow: 0 0 20px #66FF66;
}

#rankings .online-indicator.offline {
  background: #FF5555;
  box-shadow: 0 0 20px #FF5555;
}

#rankings .ranking-icon {
  font-size: 28px;
  margin-right: 15px;
  min-width: 40px;
  text-align: center;
}

#rankings .cache-info {
  text-align: center;
  margin-top: 35px;
  color: #c8b273;
  font-size: 18px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  border: 2px solid #5d4f2e;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Ranking colors for positions */
#rankings .ranking-row[style*="2B1B00"] .ranking-position { 
  color: #FFD15C;
  text-shadow: 0 0 20px #FFD15C;
}

#rankings .ranking-row[style*="1B1B1B"] .ranking-position { 
  color: #E0E0E0;
  text-shadow: 0 0 15px #E0E0E0;
}

#rankings .ranking-row极[style*="2A1C16"] .ranking-position { 
  color: #D4A373;
  text-shadow: 0 0 15px #D4A373;
}

#rankings .ranking-row[style*="0E1F12"] .ranking-position { 
  color: #77FF77;
  text-shadow: 0 0 15px #77FF77;
}

/* Responsive */
@media (max-width: 1200px) {
  #rankings .ranking-header,
  #rankings .ranking-row {
    grid-template-columns: 80px 1fr 200px;
    padding: 20px 25px;
  }
  
  #rankings .ranking-position {
    font-size: 24px;
  }
  
  #rankings .ranking-player {
    font-size: 18px;
  }
  
  #rankings .ranking-value {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #rankings .ranking-header,
  #rankings .ranking-row {
    grid-template-columns: 60px 1fr 150px;
    padding: 15px;
    gap: 12px;
  }
  
  #rankings .ranking-header {
    font-size: 16px;
    padding: 20px 15px;
  }
  
  #rankings .ranking-position {
    font-size: 20px;
  }
  
  #rankings .ranking-player {
    font-size: 14px;
  }
  
  #rankings .ranking-value {
    font-size: 14px;
  }
  
/* Reparo de Alinhamento e Largura Total */
.ranking-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: fixed; /* O segredo para alinhar com o menu */
    margin: 0;
}

.ranking-table th {
    padding: 15px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.ranking-table td {
    padding: 20px 15px; /* Mais espaço interno para destaque */
    background: var(--card);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    font-size: 16px;
    vertical-align: middle;
}

/* Colunas Proporcionais */
.ranking-table th:nth-child(1), .ranking-table td:nth-child(1) { width: 10%; text-align: center; }
.ranking-table th:nth-child(2), .ranking-table td:nth-child(2) { width: 65%; text-align: left; }
.ranking-table th:nth-child(3), .ranking-table td:nth-child(3) { width: 25%; text-align: right; }

/* Bordas Arredondadas (Estética High Five) */
.ranking-table td:first-child { 
    border-left: 1px solid var(--stroke);
    border-top-left-radius: 12px; 
    border-bottom-left-radius: 12px; 
}
.ranking-table td:last-child { 
    border-right: 1px solid var(--stroke);
    border-top-right-radius: 12px; 
    border-bottom-right-radius: 12px; 
}

.rank-grid {
  display: block;
  width: 100%;
}

#rankings .wrap {
    max-width: 1200px !important; /* Certifique-se que este valor é o mesmo do seu menu */
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important; /* Removemos o flex/grid que encurta o conteúdo */
}

.tab-content {
    width: 100% !important;
}

.tab-content.active {
    display: block !important;
}

/* Garante que a tabela não herde restrições */
table {
    margin: 0 !important;
    padding: 0 !important;
}

/* RESET FINAL PARA LARGURA TOTAL */
#rankings .wrap {
    max-width: 1200px !important; /* Mesma largura do seu menu superior */
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important; /* Importante: Remove grid/flex que encurta o rank */
}

.tab-content {
    width: 100% !important;
    display: none;
}

.tab-content.active {
    display: block !important;
}

.ranking-table {
    width: 100% !important;
    margin: 0 !important;
}
}