/* Tibia Farm - site estático no layout clássico do tibia.com (assets do template tibiacom do MyAAC). */
@font-face { font-family: "Martel"; src: url(fonts/martel.ttf) format("truetype"); font-display: swap; }

:root {
  --ink: #5a2800;          /* texto marrom do pergaminho */
  --link: #004294;
  --gold: #f0d1a4;         /* títulos (headline.php: 240,209,164) */
  --menu-bg: #0d2e2b;
  --menu-hover: #14433f;
  --caption: #5f4d41;
  --odd: #f1e0c6;
  --even: #d5c0a1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #051122; color: #fff;
  font: 13px/1.5 Verdana, Arial, sans-serif;
  overflow-x: hidden;
}
img { border: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

#Artwork { background: url(img/background-artwork.jpg) no-repeat top center; min-height: 100vh; }
#Body { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- Cabeçalho ---------- */
#Header { position: relative; height: 155px; }
#Logo { position: absolute; left: 0; top: 6px; width: 240px; height: 145px; display: block; text-decoration: none; }
#Logo .Statue { position: absolute; top: 0; width: 32px; height: 30px; z-index: 2; }
#Logo .s1 { left: 18px; } #Logo .s2 { right: 18px; }
#Logo .LogoText {
  position: absolute; left: 0; right: 0; top: 22px; text-align: center; white-space: nowrap;
  font: 44px/1 "Martel", Georgia, serif; letter-spacing: 1px;
}
#Logo .LogoText span {
  color: #e8b64c;
  -webkit-text-stroke: 1px #2a1200;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 8px rgba(0,0,0,.9);
}
#Logo .LogoText span + span { margin-left: 10px; }
#Logo .LogoBase { position: absolute; left: 37px; top: 100px; width: 166px; height: 43px; }
#Logo .LogoUrl { position: absolute; left: 37px; width: 166px; top: 113px; text-align: center; font: bold 10px Verdana, sans-serif; color: #cfa600; }

#Pedestal { position: absolute; right: 24px; top: 12px; width: 132px; height: 143px; display: block; text-decoration: none; }
#Pedestal .Monster { position: absolute; left: 26px; top: 8px; width: 80px; height: 80px; object-fit: none; object-position: center bottom; z-index: 2; }
#Pedestal .Base { position: absolute; left: 0; top: 32px; width: 132px; height: 111px; }
#Pedestal .PlayersOnline {
  position: absolute; left: 21px; bottom: 16px; width: 92px; text-align: center; z-index: 3;
  font: 10px/10px Verdana, sans-serif; color: #cfa600;
}
#Pedestal .PlayersOnline b { color: #ffe08a; }
#MenuToggle { display: none; }

/* ---------- Colunas ---------- */
#Columns { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; column-gap: 25px; align-items: start; }

/* caixa com corrente dos lados (login e menu) */
.ChainBox {
  position: relative; width: 180px; padding: 12px 10px;
  background: url(img/box-top.gif) no-repeat left top, url(img/box-bottom.gif) no-repeat left bottom,
              url(img/chain.gif) repeat-y 2px 0, url(img/chain.gif) repeat-y 171px 0;
}
#Loginbox { margin-bottom: 14px; }
#Loginbox .Line {
  display: block; height: 18px; line-height: 18px; text-align: center; text-decoration: none;
  background: url(img/loginbox-textfield-background.gif) repeat-y; background-size: 100% 100%;
  font: bold 11px Verdana, sans-serif; color: #e2c98d;
}
#Loginbox .Link:hover { color: #fff; }
.SButton, .BlueButton {
  display: block; height: 25px; line-height: 25px; text-align: center; text-decoration: none; cursor: pointer;
  font: bold 12px Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000, 0 0 2px #000;
  background: url(img/sbutton.gif) no-repeat center / 100% 100%;
}
.SButton:hover, .BlueButton:hover { background-image: url(img/sbutton_over.gif); }
#Loginbox .SButton { width: 135px; margin: 4px auto; }

.MediumButton {
  display: block; width: 150px; height: 37px; margin: 0 auto 16px; text-decoration: none;
  background: url(img/mediumbutton.gif) no-repeat;
  font: 19px/37px "Martel", Georgia, serif; text-align: center; color: #fff;
  text-shadow: 1px 1px 0 #000, 0 0 3px #001a66;
}
.MediumButton:hover { background-image: url(img/mediumbutton-over.gif); }
.MediumButton span { position: relative; top: 2px; }

/* menu */
#Menu { padding: 12px 5px; }
.MenuButton {
  position: relative; display: block; width: 170px; height: 32px; padding: 0; border: 0; cursor: pointer;
  background: url(img/button-background.gif) no-repeat; text-align: left;
}
.MenuButton:hover { background-image: url(img/button-background-over.gif); }
.MenuButton i { position: absolute; left: 8px; top: 0; width: 32px; height: 32px; }
.MenuButton b {
  position: absolute; left: 44px; top: 0; line-height: 34px;
  font: 16px/34px "Martel", Georgia, serif; color: var(--gold); text-shadow: 1px 1px 0 #000, 0 0 3px #000;
}
.MenuButton em { position: absolute; right: -2px; top: 20px; width: 12px; height: 12px; background: url(img/plus.gif); }
.MenuCat.open .MenuButton em { background-image: url(img/minus.gif); }
.Submenu { display: none; margin: 0 5px; background: var(--menu-bg); }
.MenuCat.open .Submenu { display: block; }
.Submenu a {
  display: block; position: relative; padding: 4px 6px 4px 17px; border-bottom: 1px solid #4b7874;
  font: bold 12px Verdana, sans-serif; color: #d7d7d7; text-decoration: none;
}
.Submenu a:hover { background: var(--menu-hover); color: #fff; }
.Submenu a.active { color: #fff; }
.Submenu a.active::before { content: ""; position: absolute; left: 3px; top: 8px; width: 10px; height: 10px; background: url(img/icon-activesubmenu.gif); }

/* ---------- Coluna central ---------- */
#StatusBar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  margin: 0 5px 16px; padding: 7px 12px; text-decoration: none;
  background: linear-gradient(#8c1a12, #5a0c07 60%, #470805); color: #ffdca0;
  border: 1px solid #1a0000; box-shadow: inset 0 0 0 1px #c89a4a, 0 2px 6px rgba(0,0,0,.6);
  font: bold 13px Verdana, sans-serif; text-shadow: 1px 1px 0 #000;
}
#StatusBar b { color: #fff; }
#StatusBar .Sep { color: #c89a4a; }
#StatusBar .Dot { width: 10px; height: 10px; border-radius: 50%; background: #888; box-shadow: 0 0 4px #000; }
#StatusBar.on .Dot { background: #3fdc4a; box-shadow: 0 0 6px #3fdc4a; }
#StatusBar.off .Dot { background: #ff3a2a; }

/* Box clássica (pergaminho com cantos de metal) */
.Box {
  position: relative; margin: 5px 5px 22px;
  border-left: 2px solid #3a3738; border-right: 2px solid #3a3738;
  background: url(img/border-1.gif) repeat-x left bottom, #debb9d;
  padding: 0 4px 10px; color: var(--ink);
}
.Box::before, .Box::after { content: ""; position: absolute; left: -7px; right: -7px; height: 17px; z-index: 5; pointer-events: none; }
.Box::before { top: -4px; background: url(img/corner-tl.gif) no-repeat left top, url(img/corner-tr.gif) no-repeat right top; }
.Box::after { bottom: -4px; background: url(img/corner-bl.gif) no-repeat left bottom, url(img/corner-br.gif) no-repeat right bottom; }
.BoxHead {
  margin: 0 -4px 4px; height: 30px; padding-top: 6px;
  background: url(img/border-1.gif) repeat-x left top, url(img/title-background-green.gif) repeat-x 0 6px;
}
.BoxHead h2 {
  margin: 0; padding-left: 10px; height: 24px; overflow: hidden; white-space: nowrap;
  font: 19px/28px "Martel", Georgia, serif; color: var(--gold); text-shadow: 1px 1px 0 #000, 0 0 3px #000;
}
.BoxContent {
  background: url(img/scroll.gif) #fff2db; border: 1px solid #793d03; outline: 1px solid #793d03; outline-offset: 1px;
  margin: 2px; padding: 12px; min-height: 120px; font-size: 13px; color: var(--ink);
}
.BoxContent a { color: var(--link); font-weight: bold; text-decoration: none; }
.BoxContent a:hover { color: #0063dc; text-decoration: underline; }
.BoxContent a.BlueButton { color: #fff; text-decoration: none; }
.BoxContent p { margin: 0 0 10px; }
.Lead { font-size: 13px; }
.Loading, .Note { font-size: 11px; color: #7a4a20; }

/* News Ticker */
#NewsTicker .BoxContent { padding: 4px; min-height: 0; }
.Ticker { position: relative; padding: 4px 22px 4px 24px; cursor: pointer; }
.Ticker:nth-child(odd) { background: var(--odd); }
.Ticker:nth-child(even) { background: var(--even); }
.Ticker .Icon { position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; }
.Ticker .Plus { position: absolute; right: 5px; top: 7px; width: 12px; height: 12px; background: url(img/plus.gif); }
.Ticker.open .Plus { background-image: url(img/minus.gif); }
.Ticker .Date { font-size: 11px; font-weight: bold; margin-right: 6px; white-space: nowrap; }
.Ticker .Short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.Ticker.open .Short { white-space: normal; }

/* News */
.NewsItem { margin-bottom: 22px; }
.NewsHeadline {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0 0 10px; padding: 3px 10px 3px 4px;
  background: url(img/newsheadline_background.gif) repeat-x; background-size: auto 100%;
  border-left: 1px solid #000; border-right: 1px solid #000; color: #fff;
}
.NewsHeadline img { width: 32px; height: 32px; flex: none; margin-top: -6px; }
.NewsHeadline .Date { font-size: 11px; white-space: nowrap; flex: none; }
.NewsHeadline h3 { margin: 0; font: bold 14px/1.25 Verdana, sans-serif; }
.NewsBody { line-height: 1.6; }
.NewsBody ul { margin: 0 0 10px; padding-left: 22px; }
.NewsBody li { margin-bottom: 3px; }
.Ornament { display: block; width: 340px; max-width: 100%; height: 30px; margin: 14px auto 0; background: url(img/ornament.gif) no-repeat center; background-size: contain; }

/* Tabelas (TableContainer do tibia.com) */
.Table { margin: 0 0 16px; border: 1px solid #000; background: #d4c0a1; box-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.Caption { background: var(--caption); color: #fff; font: bold 13px Verdana, sans-serif; padding: 4px 10px; border-bottom: 1px solid #000; }
.Rows { width: 100%; border-collapse: collapse; }
.Rows td, .Rows th { padding: 4px 8px; text-align: left; vertical-align: top; }
.Rows th { background: #d4c0a1; font-weight: bold; border-bottom: 1px solid var(--caption); }
.Rows tr:nth-child(odd) td { background: var(--odd); }
.Rows tr:nth-child(even) td { background: var(--even); }
.Rows .L { font-weight: bold; white-space: nowrap; width: 1%; }
.Rows .R { text-align: right; }
.Rows .Me td { background: #c9e6b3 !important; }
.Rows .Hunt { color: #8b1a00; font-weight: bold; }
.Inner { padding: 10px 12px; background: var(--odd); }
.Inner p:last-child { margin-bottom: 0; }

.Tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.Tabs button {
  flex: 1 1 auto; min-height: 30px; padding: 4px 10px; cursor: pointer;
  font: bold 12px Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#7a6656, #4e3d32); border: 1px solid #000; box-shadow: inset 0 0 0 1px #a08670;
}
.Tabs button:hover { background: linear-gradient(#8e7864, #5f4d41); }
.Tabs button[aria-selected="true"] { background: linear-gradient(#a8410a, #6b2603); box-shadow: inset 0 0 0 1px #f0c070; }
.Pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 8px; }
.Pager button {
  min-width: 32px; min-height: 30px; padding: 2px 8px; cursor: pointer;
  font: bold 12px Verdana, sans-serif; color: var(--link); background: var(--odd); border: 1px solid var(--caption);
}
.Pager button[disabled] { color: #fff; background: var(--caption); cursor: default; }

/* Download */
.DlGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.DlCard {
  display: flex; flex-direction: column; background: var(--odd); border: 1px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,.25), inset 0 0 0 1px #fff7e6;
}
.DlHead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(#3b2c22, #1e140e); border-bottom: 2px solid #c89a4a; color: #fff; }
.DlIcon { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 4px rgba(0,0,0,.8)); }
.DlHead h3 { margin: 0; font: 22px/1.1 "Martel", Georgia, serif; color: var(--gold); text-shadow: 1px 1px 0 #000; }
.DlHead span { font-size: 11px; color: #e8d6b4; }
.DlInfo { list-style: none; margin: 0; padding: 10px 12px 4px; font-size: 12px; }
.DlInfo li { padding: 2px 0; border-bottom: 1px dotted #b89c78; }
.DlCard .BlueButton { width: auto; height: 34px; line-height: 32px; margin: 10px 12px; font-size: 13px; background-image: url(img/button_blue.gif); }
.DlCard .BlueButton:hover { background-image: url(img/button_blue_over.gif); }
.DlCard .BlueButton.Green { background-image: url(img/sbutton_green.gif); }
.DlCard .BlueButton.Green:hover { background-image: url(img/sbutton_green_over.gif); }
.Steps { margin: 0 12px 10px; padding-left: 20px; font-size: 12px; }
.Steps li { margin-bottom: 3px; }
.Steps.Big { margin: 0 0 10px; font-size: 13px; }
.Attention {
  margin: auto 12px 12px; padding: 8px 10px 8px 44px; font-size: 12px; line-height: 1.5;
  background: url(img/attentionsign.gif) no-repeat 8px 9px, #f5d9a8; border: 1px solid #b0702a;
}
.Attention.Info { background: url(img/info.gif) no-repeat 12px 9px, #e4ddc6; border-color: #8a7a5a; }

.Systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.Systems div { padding: 6px 8px 6px 26px; background: url(img/bullet.gif) no-repeat 6px 8px, var(--even); border: 1px solid #b89c78; font-size: 12px; }
.Systems b { display: block; font-size: 13px; }

/* ---------- Coluna direita (themeboxes) ---------- */
#ThemeboxesColumn { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.Themebox { width: 180px; position: relative; }
.ThemeHead { display: block; width: 180px; position: relative; z-index: 2; }
.ThemeBody { margin: -2px 5px 0; padding: 10px 10px 14px; border-left: 2px solid #3a3738; border-right: 2px solid #3a3738; font-size: 12px; }
.ThemeBottom { display: block; width: 180px; height: 12px; margin-top: -6px; position: relative; z-index: 2; }
.Parchment { background: url(img/scroll.gif) #f1e0c6; color: var(--ink); }
.Stone { background: url(img/bg_top.png) center top / 100% 100% no-repeat, #d6c4ad; color: var(--ink); }
.Dark { background: #111; padding: 6px; }
.SmallLink { display: block; margin-top: 8px; text-align: center; font-weight: bold; font-size: 11px; text-decoration: none; }
.Stone .SmallLink { color: var(--link); }
.Parchment .SmallLink { color: var(--link); }
.SmallLink:hover { text-decoration: underline; }
#TopList { list-style: none; margin: 0; padding: 0; }
#TopList li { display: flex; gap: 6px; align-items: baseline; padding: 3px 0; border-bottom: 1px dotted #a08670; }
#TopList .Pos { color: #8b1a00; font-weight: bold; min-width: 16px; }
#TopList .Nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
#TopList .Lv { color: #6b4a2a; font-size: 11px; white-space: nowrap; }
.Kv { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px dotted #b89c78; }
.Kv b.on { color: #127a12; } .Kv b.off { color: #c00; }
#NetworksBox p { margin: 0 0 6px; font-weight: bold; }
.NetLink { display: block; margin: 0 0 5px; padding: 4px 6px; text-align: center; text-decoration: none; font-weight: bold; font-size: 12px; color: #fff; background: linear-gradient(#2a5d9e, #12305c); border: 1px solid #000; text-shadow: 1px 1px 0 #000; }
.NetLink:hover { background: linear-gradient(#3a76c4, #1a4380); }
.Shot { display: block; width: 100%; height: auto; border: 1px solid #555; }

#Footer { text-align: center; padding: 20px 10px 30px; font-size: 11px; color: #ddd; text-shadow: 1px 1px 0 #000; }
#Footer a { color: #fff; text-decoration: none; }
#Footer a:hover { text-decoration: underline; }

/* ---------- Celular / tablet ---------- */
@media (max-width: 980px) {
  #Artwork { background-size: 1000px auto; }
  #Body { padding: 0 8px; }
  #Header { height: 140px; }
  #Logo { left: 50%; margin-left: -120px; transform: scale(.9); transform-origin: top center; }
  #Pedestal { display: none; }
  #MenuToggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; position: absolute; left: 0; top: 12px; z-index: 20;
    width: 48px; height: 48px; padding: 0 11px; cursor: pointer;
    background: linear-gradient(#3b2c22, #1e140e); border: 1px solid #000; box-shadow: inset 0 0 0 1px #c89a4a;
  }
  #MenuToggle span { display: block; height: 3px; background: var(--gold); border-radius: 1px; }
  #Columns { grid-template-columns: minmax(0, 1fr); }
  #MenuColumn {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: 200px; padding: 14px 10px; overflow-y: auto;
    background: #0a1a2a; box-shadow: 4px 0 16px rgba(0,0,0,.7);
    transform: translateX(-105%); transition: transform .2s;
  }
  body.menu-open #MenuColumn { transform: none; }
  #Backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); }
  .Submenu a { padding-top: 9px; padding-bottom: 9px; }
  #ContentColumn { grid-row: 1; }
  #ThemeboxesColumn { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
  #StatusBar { margin: 0 2px 14px; font-size: 12px; }
  .Box { margin: 5px 2px 22px; }
  .BoxContent { padding: 8px; }
  .Rows td, .Rows th { padding: 6px 6px; }
}
@media (max-width: 420px) {
  #Logo .LogoText { font-size: 38px; }
  #StatusBar .Rec { display: none; }
  .NewsHeadline { flex-wrap: wrap; gap: 2px 8px; }
  .NewsHeadline h3 { flex-basis: 100%; }
}
