/* PlayOT Global: ajustes do layout por cima do basic.css (que fica como veio).
   Pagina de 1200 px, titulos em faixa azul-escura, menu escuro e caixas de rank na lateral. */

/* ---------------------------------------------------------------- largura e fundo */
/* o fundo fica no body, preso na janela: cobre a tela inteira em qualquer altura de pagina */
body {
  background-color: #0b0a14;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
#ArtworkHelper {
  min-width: 1200px;
}
/* o topo e espaco de verdade (padding), nao deslocamento: o rodape continua dentro do fundo */
#Bodycontainer {
  width: 1200px;
  min-width: 1200px;
  max-width: 1200px;
  padding-top: 270px;
}
#ContentRow {
  top: 0;
}

/* ---------------------------------------------------------------- topo */
/* emblema do dono, ao centro; a arte tem o dobro do tamanho mostrado */
#HeaderLogo {
  position: absolute;
  top: -266px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
#HeaderLogo img {
  display: block;
  height: 262px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .7));
}
#HeaderSocial {
  position: absolute;
  top: -66px;
  left: 208px;
  z-index: 6;
  white-space: nowrap;
}
#HeaderSocial .HeaderSocialLink {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  border-radius: 50%;
  border: 1px solid #000;
  box-shadow: 0 1px 3px #000, inset 0 0 0 1px rgba(255, 255, 255, .35);
  text-align: center;
  background: #5865f2;
}
#HeaderSocial .HeaderSocialLink img { margin-top: 6px; }
#HeaderSocial .HeaderSocial-whatsapp { background: #25d366; }
#HeaderSocial .HeaderSocial-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
#HeaderSocial .HeaderSocial-facebook { background: #1877f2; }
#HeaderSocial .HeaderSocialLink:hover { filter: brightness(1.2); }

/* pedestal com a placa de jogadores online, logo acima da primeira caixa */
#RightArtwork {
  top: 0;
  right: 24px;
}
#RightArtwork #Monster {
  top: -137px;
  left: 34px;
}
#PedestalAndOnline {
  left: 0;
  top: -126px;
  width: 132px;
  height: 111px;
}
#RightArtwork #PlayersOnline {
  top: -57px;
  bottom: auto;
  left: 21px;
  width: 92px;
  height: 22px;
  border-bottom: 0;
  color: #dfc061;
  font-size: 7pt;
  line-height: 11px;
}

/* ---------------------------------------------------------------- menu */
.MenuButton .Label {
  filter: saturate(.25) brightness(1.35);
}
.MenuButton .Icon {
  left: 12px;
}
.SubmenuitemLabel {
  color: #fff;
}

/* ---------------------------------------------------------------- caixas de conteudo */
.Content .Title {
  top: 5px;
  left: 6px;
}
.Content .BoxContent {
  min-height: 0;
}
#News .BoxContent {
  min-height: 367px;
}

/* ---------------------------------------------------------------- caixas de rank */
#Themeboxes {
  padding-top: 0;
}
#Themeboxes .RankBox {
  position: relative;
  width: 180px;
  margin: 0 0 16px;
  text-align: left;
}
#Themeboxes .RankHead {
  position: relative;
  width: 180px;
  height: 31px;
  background-repeat: no-repeat;
  z-index: 3;
}
#Themeboxes .RankIcon {
  position: absolute;
  top: -2px;
  left: -4px;
  width: 40px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
}
#Themeboxes .RankIconMedal {
  top: 1px;
  left: 4px;
}
#Themeboxes .RankTitle {
  position: absolute;
  top: 2px;
  left: 30px;
  right: 10px;
  text-align: center;
  white-space: nowrap;
  color: #ffd698;
  font: 400 14pt Fondamento, Georgia, "Times New Roman", serif;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #2c2c2c, -1px 1px 0 #000, 1px 1px 0 #000;
  cursor: default;
  user-select: none;
}
#Themeboxes .RankBody {
  position: relative;
  width: 180px;
  padding: 4px 0 3px;
  background-repeat: repeat-y;
}
#Themeboxes .RankList {
  position: relative;
  margin: 0 8px;
}
#Themeboxes .RankRow {
  position: relative;
  min-height: 33px;
  margin-bottom: 3px;
}
#Themeboxes .RankRowOdd { background-color: rgba(241, 224, 198, .75); }
#Themeboxes .RankRowEven { background-color: rgba(212, 192, 161, .75); }
#Themeboxes .RankRow:hover { background-color: #f6ecd9; }

/* a imagem de outfit tem 64x64 com o personagem no canto de baixo, a direita */
#Themeboxes .RankOutfit {
  position: absolute;
  top: -33px;
  left: -32px;
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-position: right bottom;
  pointer-events: none;
  z-index: 2;
}
/* faixa de 8 quadros de caminhada (outfits/outfit.php?anim=1) */
#Themeboxes .RankOutfitWalk {
  background-position: 0 0;
  background-size: 512px 64px;
  animation: RankWalk .9s steps(8) infinite;
}
@keyframes RankWalk {
  to { background-position: -512px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #Themeboxes .RankOutfitWalk { animation: none; }
}
#Themeboxes .RankInfo {
  margin-left: 34px;
  padding: 4px 3px 3px 2px;
}
#Themeboxes a.RankName {
  display: block;
  color: #5f4d41;
  font: 700 8pt Tahoma, Geneva, sans-serif;
  line-height: 11px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#Themeboxes a.RankName small { font-size: 7pt; }
#Themeboxes a.RankName:hover { color: #4e3131; text-decoration: underline; }
#Themeboxes .RankDetail {
  color: #5a2800;
  font: 400 7pt Verdana, Arial, "Times New Roman", sans-serif;
  line-height: 12px;
  white-space: nowrap;
}
#Themeboxes .RankDetail .RankSkull { width: 8px; height: 8px; vertical-align: -1px; }
#Themeboxes .RankDetail .RankGold { color: #1f7a1f; }

/* bonequinho verde (online) ou vermelho (offline), desenhado por mascara */
#Themeboxes .RankStatus {
  float: right;
  width: 9px;
  height: 10px;
  margin: 1px 1px 0 3px;
  background-color: #bf2015;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Ccircle cx='5' cy='3' r='2.7'/%3E%3Cpath d='M0 11c0-3.3 2.2-4.7 5-4.7s5 1.4 5 4.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Ccircle cx='5' cy='3' r='2.7'/%3E%3Cpath d='M0 11c0-3.3 2.2-4.7 5-4.7s5 1.4 5 4.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#Themeboxes .RankStatus.RankOnline { background-color: #128a12; }

#Themeboxes .RankFirst {
  position: absolute;
  top: -5px;
  left: 33px;
  padding: 0 3px 0 2px;
  border: 1px solid #8a6d1c;
  border-radius: 2px;
  background: linear-gradient(#3a332b, #1f1b17);
  color: #ffd24a;
  font: 700 5.5pt/8px Verdana, Arial, sans-serif;
  letter-spacing: .3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  z-index: 3;
}
#Themeboxes .RankRow:first-of-type .RankInfo { padding-top: 6px; }

/* aba "VIEW" presa na lateral direita da caixa */
#Themeboxes a.RankView {
  position: absolute;
  top: 0;
  right: -26px;
  width: 16px;
  height: 72px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 208, 121, .36);
  border-radius: 1px 12px 12px 0;
  background: linear-gradient(to bottom, #22201e, #47423b);
  box-shadow: 0 1px 3px #000;
  color: #ffc314;
  font: 700 10px/1.2 monospace;
  text-decoration: none;
}
#Themeboxes a.RankView:hover { opacity: .9; color: #fff0b8; }

#Themeboxes .RankPill {
  width: 133px;
  height: 14px;
  margin: 3px auto 7px;
  border: 1px solid #898784;
  border-radius: 16px;
  background: linear-gradient(to bottom, #5a5a5a 41%, #4e4e4e 41%);
  box-shadow: 0 1px 3px #000;
  color: antiquewhite;
  font: 400 11px/14px sans-serif;
  text-align: center;
}
#Themeboxes .RankList + .RankPill { margin-top: 9px; }
#Themeboxes .RankEmpty {
  padding: 9px 4px 10px;
  color: darkred;
  font: italic 400 8pt Verdana, Arial, sans-serif;
  text-align: center;
}
#Themeboxes .RankFoot {
  width: 180px;
  height: 14px;
  background-repeat: no-repeat;
}

/* ---------------------------------------------------------------- artigo em destaque */
.Content #FeaturedArticle .QuickLinks {
  margin: 0 0 7px;
  text-align: center;
  line-height: 14pt;
}
.Content #FeaturedArticle .QuickLinks a {
  margin: 0 3px;
  color: #5a2800;
  font-size: 8pt;
  white-space: nowrap;
}
.Content #FeaturedArticle .QuickLinks a:hover {
  color: #004294;
}
.Content #FeaturedArticle #TeaserText {
  height: auto;
  min-height: 100px;
}

/* ---------------------------------------------------------------- guia de bosses e acessos (pages/bosses.php) */
.Guide { line-height: 1.45; }
.Guide h2 {
  margin: 22px 0 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #5f4d41;
  color: #5a2800;
  font: 700 13pt Verdana, Arial, sans-serif;
}
.Guide h3 { margin: 0 0 6px; color: #5a2800; font-size: 10pt; }
.Guide h4 { margin: 12px 0 4px; color: #004294; font-size: 9pt; }
.Guide ul, .Guide ol { margin: 4px 0 8px; padding-left: 22px; }
.Guide li { margin-bottom: 4px; }
.Guide .GuideIndex, .Guide .GuideBox, .Guide details {
  margin: 0 0 8px;
  border: 1px solid #5f4d41;
  background-color: #f1e0c6;
}
.Guide .GuideIndex, .Guide .GuideBox { padding: 8px 10px; }
.Guide .GuideIndex p { margin: 0 0 5px; }
.Guide .GuideIndex p:last-child, .Guide .GuideBox > :last-child { margin-bottom: 0; }
.Guide .GuideTools { margin: 0 0 4px; font-size: 8pt; text-align: right; }
.Guide .GuideTools a { cursor: pointer; }
.Guide summary {
  padding: 7px 10px;
  background-color: #d5c0a1;
  color: #5a2800;
  font-weight: 700;
  cursor: pointer;
}
.Guide summary span { float: right; color: #6b5a48; font-size: 8pt; font-weight: 400; }
.Guide details[open] > summary { border-bottom: 1px solid #5f4d41; }
.Guide details > :not(summary) { margin-right: 10px; margin-left: 10px; }
.Guide table { width: calc(100% - 20px); margin-bottom: 10px; border-collapse: collapse; }
.Guide th { padding: 3px 6px; background-color: #5f4d41; color: #fff; font-size: 8pt; text-align: left; }
.Guide td { padding: 3px 6px; border-bottom: 1px solid #d5c0a1; vertical-align: top; }
.Guide tr:nth-child(odd) td { background-color: #f7ecd9; }
.Guide .GuideLoot td:nth-child(n+2) { white-space: nowrap; }
.Guide > table { width: 100%; }
.Guide .GuideTasks td:nth-child(-n+5) { white-space: nowrap; }
.Guide .GuideNote { color: #6b5a48; font-style: italic; }

/* ---------------------------------------------------------------- guildas mais fortes */
.Content .PowerfulGuilds {
  margin: 4px 4px 18px;
  border: 1px solid #5f4d41;
  background-color: #d5c0a1;
  box-shadow: 3px 3px 2px rgba(135, 91, 39, .55);
}
.Content .PowerfulGuildsTitle {
  height: 28px;
  padding-left: 8px;
  background-repeat: repeat-x;
  color: #fff;
  font: 700 10pt/28px Verdana, Arial, "Times New Roman", sans-serif;
}
.Content .PowerfulGuildsList {
  display: flex;
  justify-content: space-around;
  padding: 12px 6px 10px;
}
.Content a.PowerfulGuild {
  flex: 1 1 0;
  text-align: center;
  font-size: 10pt;
  text-decoration: none;
}
.Content a.PowerfulGuild img {
  display: block;
  margin: 0 auto 3px;
}
.Content a.PowerfulGuild .PowerfulGuildName {
  display: block;
  font-weight: 700;
}
.Content a.PowerfulGuild:hover .PowerfulGuildName {
  text-decoration: underline;
}
.Content a.PowerfulGuild .PowerfulGuildKills {
  display: block;
  color: #5a2800;
  font-weight: 400;
}

/* o ticker fica da altura das linhas que tiver */
.Content #NewsTicker .BoxContent,
.Content #newsticker .BoxContent {
  min-height: 0;
}

/* ---------------------------------------------------------------- apresentacao do servidor (noticia de entrada) */
/* O texto fica em dev/news_bem_vindo.html e vai para o banco pelo dev/make_news.py. Os icones sao tiras de 4
   quadros de 56 px (dev/make_news_art.py): o <img> mostra um quadro por vez e o hover passa os outros. */
.Intro { padding: 4px 0 6px; line-height: 1.5; }
.Intro p { margin: 0 0 8px; }
.Intro .IntroLead { margin-bottom: 14px; font-size: 10.5pt; }
.Intro h2 {
  margin: 22px 0 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid #5f4d41;
  color: #5a2800;
  font: 700 12pt Verdana, Arial, sans-serif;
}
.Intro h3 { margin: 0 0 3px; color: #004294; font-size: 9.5pt; }
.Intro ul { margin: 4px 0 10px; padding-left: 22px; }
.Intro li { margin-bottom: 5px; }
.Intro img.IntroIcon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: none;
  object-position: 0 0;
}
@keyframes IntroGlow {
  0% { object-position: 0 0; }
  16.6% { object-position: -56px 0; }
  33.3% { object-position: -112px 0; }
  50% { object-position: -168px 0; }
  66.6% { object-position: -112px 0; }
  83.3% { object-position: -56px 0; }
}
.Intro .IntroBar span:hover .IntroIcon,
.Intro .IntroCard:hover .IntroIcon {
  animation: IntroGlow .66s step-end infinite;
}
@media (prefers-reduced-motion: reduce) {
  .Intro .IntroBar span:hover .IntroIcon,
  .Intro .IntroCard:hover .IntroIcon { animation: none; object-position: -168px 0; }
}
.Intro .IntroBar {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px 9px;
  border: 1px solid #8a6a2f;
  background: linear-gradient(#2b2119, #15100d);
}
.Intro .IntroBar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 66px;
  color: #e8d6ac;
  font-size: 7pt;
  line-height: 15px;
}
.Intro .IntroNote { margin: 5px 0 12px; color: #6b5a48; font-size: 8pt; text-align: center; }
.Intro .IntroGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.Intro .IntroCard {
  position: relative;
  min-height: 56px;
  padding: 8px 10px 8px 76px;
  border: 1px solid #5f4d41;
  background-color: #f1e0c6;
}
.Intro .IntroCard .IntroIcon { position: absolute; top: 8px; left: 10px; }
.Intro .IntroCard p, .Intro .IntroList p { margin: 0; }
.Intro .IntroList { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.Intro .IntroList > div { padding-left: 10px; border-left: 3px solid #b8892d; }
.Intro .IntroCta { margin: 20px 0 4px; text-align: center; }
.Intro a.IntroButton {
  display: inline-block;
  margin-right: 14px;
  padding: 7px 24px;
  border: 1px solid #3d2b12;
  border-radius: 3px;
  background: linear-gradient(#c79a35, #8a6417);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}
.Intro a.IntroButton:hover { background: linear-gradient(#d8ab45, #9a7422); }

/* ---------------------------------------------------------------- Items Custom (pages/items-custom.php) */
/* A imagem do item tem 32 px (dev/export_items.py) e aparece em dobro, sem borrar. */
.Guide h3.ItemGroup { margin: 14px 0 6px; }
.Guide h3.ItemGroup a { color: #004294; }
.Guide .ItemGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.Guide .ItemCard {
  position: relative;
  min-height: 64px;
  padding: 8px 10px 8px 84px;
  border: 1px solid #5f4d41;
  background-color: #f1e0c6;
}
.Guide .ItemCard > img {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.Guide .ItemCard h4 { margin: 0 0 2px; }
.Guide .ItemCard ul { margin: 4px 0; padding-left: 16px; }
.Guide .ItemCard li { margin-bottom: 1px; }
.Guide .ItemMeta { margin: 0; color: #6b5a48; font-size: 8pt; }
.Guide .ItemOrigin { margin: 4px 0 0; font-size: 8pt; }
.Guide .ItemTag {
  padding: 0 5px 1px;
  border-radius: 2px;
  color: #fff;
  font-size: 7pt;
  font-weight: 400;
  white-space: nowrap;
}
.Guide h4 .ItemTag { margin-left: 4px; vertical-align: 1px; }
.Guide .ItemTag-caca { background-color: #4a7a2c; }
.Guide .ItemTag-pvp { background-color: #9a2b1f; }
.Guide .ItemTag-vip { background-color: #8a6417; }
.Guide .GuideCaps td:first-child { white-space: nowrap; }

/* ---------------------------------------------------------------- montarias (pagina Montarias) */
.Guide .MountTable { width: 100%; border-collapse: collapse; border: 1px solid #faf0d7; margin: 0 0 14px; }
.Guide .MountTable th { background: #505050; color: #fff; padding: 4px 6px; text-align: center; }
.Guide .MountTable td, .Guide .MountTable tr:nth-child(odd) td { background: #d4c0a1; padding: 6px 8px; border-top: 1px solid #faf0d7; vertical-align: middle; }
.Guide .MountTable td.MountName { width: 22%; text-align: center; }
.Guide .MountTable td.MountName img { image-rendering: pixelated; }
/* Outfits (pages/outfits-lista.php): faixa de 8 quadros do outfits/outfit.php?anim=1 dentro de uma janela de 64x64 */
.Guide .OutfitTable td.OutfitName { width: 26%; text-align: center; }
.Guide .OutfitWalk { display: inline-block; width: 64px; height: 64px; overflow: hidden; vertical-align: bottom; }
.Guide .OutfitWalk img { display: block; max-width: none; image-rendering: pixelated; animation: OutfitWalk .9s steps(8) infinite; }
@keyframes OutfitWalk { to { transform: translateX(-512px); } }
@media (prefers-reduced-motion: reduce) { .Guide .OutfitWalk img { animation: none; } }

/* ---------------------------------------------------------------- VIP: nome dourado e icone escolhido (system/functions_custom.php) */
.VipName { color: #a87308; font-weight: 700; text-shadow: 0 0 1px rgba(255, 214, 102, .6); white-space: nowrap; }
.VipName .VipIcon { width: 20px; height: 20px; margin: -4px 3px -4px 0; vertical-align: middle; image-rendering: pixelated; }
.VipIconForm .VipIconChoice { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 4px; border: 1px solid #d5c0a1; cursor: pointer; vertical-align: middle; }
.VipIconForm .VipIconChoice img { width: 32px; height: 32px; vertical-align: middle; image-rendering: pixelated; }
.VipIconForm .VipIconChoice input { vertical-align: middle; }
.VipIconForm .VipIconSubmit { margin-top: 8px; }
.VipAdminForm { margin: 6px 0 0; }
.VipAdminForm label { margin-right: 10px; white-space: nowrap; }
.VipAdminForm input[type="number"] { width: 60px; }

/* ---------------------------------------------------------------- Agenda e Roadmap (dev/make_agenda.py) */
.Guide .AgendaTable { width: 100%; }
.Guide .AgendaTable td.AgendaWhen { width: 32%; white-space: nowrap; }
.Guide .AgendaTable tr.AgendaPast td { color: #8a7a68; }
.Guide .AgendaTag {
  display: inline-block;
  margin: 0 2px 2px 0;
  padding: 0 5px;
  border-radius: 3px;
  background-color: #5f4d41;
  color: #fff;
  font-size: 7pt;
  font-weight: 700;
  vertical-align: 1px;
  white-space: nowrap;
}
.Guide .AgendaTag-bonus { background-color: #8a6417; }
.Guide .AgendaTag-marco { background-color: #9a2b1f; }
.Guide .AgendaTag-temporada { background-color: #004294; }
.Guide .AgendaTag-sazonal { background-color: #4a7a2c; }
.Guide .AgendaTag-liberacao { background-color: #6a3d8a; }
.Guide .AgendaStatus { margin-left: 6px; font-size: 7pt; font-weight: 700; text-transform: uppercase; }
.Guide .AgendaStatus.AgendaNow { color: #128a12; }
.Guide .AgendaStatus.AgendaEnded { color: #8a7a68; }