/* ===== SITE-HD2/HD4 18/11: visual classico do Tibia usando SO as imagens originais do template (sem texturas/gradientes gerados).
   Titulos das caixas em texto (nitidos). Reverter: tirar a linha <link ... infinity-hd2.css> do index.php
   (backups em /root/backups_recentes/site_hd2_20261118/) ===== */
@font-face { font-family: 'MartelIB'; src: url(martel.ttf) format("truetype"); font-display: swap; unicode-range: U+0020, U+0041-005A, U+0061-007A; }

/* ---------- titulos das caixas do meio: mesma fonte/cor do Tibia, mas em texto ---------- */
.Box .ibTitle {
	position: absolute; top: 6px; left: 8px; height: 28px; z-index: 5; pointer-events: none; white-space: nowrap;
	font: 400 18px/28px 'MartelIB', Fondamento, Georgia, serif; color: #f0d1a4; text-shadow: 1px 1px 0 #000;
}

/* ---------- News Ticker: etiquetas HOT / NEW brilhando ---------- */
.ibBadge {
	position: relative; display: inline-block; overflow: hidden; margin-right: 5px; padding: 0 4px; border-radius: 2px;
	font: bold 9px/13px Verdana, Arial, sans-serif; letter-spacing: .3px; vertical-align: 1px; color: #fff;
}
.ibBadge.hot { background: #d2210f; border: 1px solid #7a0d04; animation: ibHot 1.2s ease-in-out infinite; }
.ibBadge.new { background: #f0b621; color: #4a1d00; border: 1px solid #8a5a00; animation: ibNew 1.6s ease-in-out infinite; }
.ibBadge::after { content: ''; position: absolute; top: 0; left: -70%; width: 40%; height: 100%; transform: skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: ibShine 2.4s ease-in-out infinite; }
@keyframes ibHot { 50% { box-shadow: 0 0 7px 1px rgba(255, 60, 20, .85); } }
@keyframes ibNew { 50% { box-shadow: 0 0 7px 1px rgba(255, 200, 60, .85); } }
@keyframes ibShine { 0% { left: -70%; } 55%, 100% { left: 130%; } }
.NewsTickerShortText b.ibTk, .NewsTickerFullText b.ibTk { color: #7a0d06; }
@media (prefers-reduced-motion: reduce) { .ibBadge, .ibBadge::after { animation: none; } }

/* ---------- texto dos botoes Shopping / Wiki (Login e Download usam as imagens originais) ---------- */
.ibBtnTxt {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 5;
	font: 400 18px/1 'MartelIB', Fondamento, Georgia, serif; cursor: pointer; white-space: nowrap; color: #ffd27a; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
#ShoppingBox span, #WikiBox span { font-family: 'MartelIB', Fondamento, Georgia, serif !important; font-weight: 400 !important; }

/* ---------- caixas da direita no padrao Tibia: barra de metal + placa de pedra + pergaminho + moldura fina ---------- */
#Themeboxes .tx-head, #Themeboxes .tc-head, #CastleWarBox .cw-top, #Castle24hBox .cw-top {
	width: 180px !important; height: 42px !important;
	background: url(images/general/box-top.gif?v=tb3) center top no-repeat, url(images/menu/button-background.gif?v=tb3) 5px 9px no-repeat !important;
}
#Themeboxes .tx-shield, #Themeboxes .tc-shield { display: none !important; }
#Themeboxes .tx-title, #Themeboxes .tc-title, #CastleWarBox .cw-title, #Castle24hBox .cw-title {
	left: 0 !important; right: 0 !important; top: 12px !important; padding: 0 !important; text-align: center; z-index: 4 !important;
	font: 400 16px/26px 'MartelIB', Fondamento, Georgia, serif !important; color: #ffd27a !important;
	text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000 !important;
}
#CastleWarBox .cw-title, #Castle24hBox .cw-title { position: absolute !important; }
#CastleWarBox .cw-swords, #Castle24hBox .cw-swords { top: 9px !important; left: 9px !important; width: 32px !important; height: 32px !important; z-index: 5 !important; transform: scale(.8); }
#Themeboxes .tx-body, #Themeboxes .tc-body, #CastleWarBox .cw-bg, #Castle24hBox .cw-bg {
	background: url(images/content/box-frame-vertical.gif?v=tb3) left top repeat-y, url(images/content/box-frame-vertical.gif?v=tb3) right top repeat-y, url(images/content/scroll.gif?v=tb3) !important;
	border-left: 1px solid #000; border-right: 1px solid #000;
}
#Themeboxes .tx-body, #Themeboxes .tc-body { margin: -1px 6px 0 !important; padding: 5px 6px !important; }
#CastleWarBox .cw-bg, #Castle24hBox .cw-bg { left: 6px !important; right: 6px !important; top: 40px !important; bottom: 8px !important; }
#Themeboxes .tx-bottom, #Themeboxes .tc-bottom, #CastleWarBox .cw-bottom, #Castle24hBox .cw-bottom {
	width: 180px !important; height: 12px !important; background: url(images/general/box-bottom.gif?v=tb3) center top no-repeat !important;
}
#Themeboxes .tx-bottom, #Themeboxes .tc-bottom { margin: -2px 0 10px !important; }
#CastleWarBox, #Castle24hBox { margin-bottom: 10px !important; }
#CastleWarBox .cw-bottom, #Castle24hBox .cw-bottom { bottom: 0 !important; }
#CastleWarBox .cw-content, #Castle24hBox .cw-content { padding: 50px 14px 22px !important; }
#CastleWarBox .cw-winner, #Castle24hBox .cw-winner { color: #004294 !important; text-shadow: none !important; }
#CastleWarBox .cw-sub, #Castle24hBox .cw-sub, #CastleWarBox .cw-status, #Castle24hBox .cw-status { color: #000 !important; text-shadow: none !important; }
#CastleWarBox .cw-name, #Castle24hBox .cw-name, #CastleWarBox .cw-name a, #Castle24hBox .cw-name a { color: #a3170f !important; }
#CastleWarBox .cw-live, #Castle24hBox .cw-live { color: #b3120a !important; }

/* ---------- Top Experience: linhas de pergaminho, nome vermelho (verde online), level e vocacao embaixo ---------- */
#Themeboxes .tx-row { min-height: 40px !important; height: 40px; padding: 0 2px !important; border-radius: 0 !important; margin: 0 !important; }
#Themeboxes .tx-row + .tx-row { margin-top: 0 !important; }
#Themeboxes .tx-row:nth-child(odd) { background: rgba(241, 224, 198, .55) !important; }
#Themeboxes .tx-row:nth-child(even) { background: rgba(212, 192, 161, .55) !important; }
#Themeboxes .tx-out { flex: 0 0 38px !important; height: 40px !important; }
#Themeboxes .tx-out div { right: -8px !important; bottom: 2px !important; }
#Themeboxes .tx-info { padding-left: 6px !important; line-height: 13px !important; font-family: Verdana, Arial, sans-serif !important; }
#Themeboxes .tx-name { font-size: 11px !important; font-weight: bold; color: #bf2015 !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; text-shadow: none !important; }
#Themeboxes .tx-name small { font-size: 10px; color: inherit !important; }
#Themeboxes .tx-row.on .tx-name { color: #1f8a12 !important; }
#Themeboxes .tx-sub { font-size: 9px !important; color: #000 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#Themeboxes .tx-sub b { color: #000 !important; }
#Themeboxes .tx-on { display: none !important; }
#Themeboxes .tc-empty { color: #000 !important; background: transparent !important; }
#Themeboxes .tc-body a, #Themeboxes .tc-name, #Themeboxes .tc-body .n { color: #bf2015 !important; text-shadow: none !important; }
#Themeboxes #TopExpBox .tx-name.pOff, #Themeboxes .TopColBox .tc-name.pOff { color: #bf2015 !important; }
#Themeboxes #TopExpBox .tx-name.pOn, #Themeboxes .TopColBox .tc-name.pOn { color: #1f8a12 !important; }

/* ---------- cards da pagina inicial (guilds / killers) pretos ---------- */
.IbCards { background: #0b0707 !important; border: 1px solid #5f4d41 !important; border-radius: 3px !important; }
.IbCards .h { background: #1b1210 !important; border-bottom: 1px solid #5f4d41 !important; font: 400 15px/1.4 'MartelIB', Fondamento, Georgia, serif !important; color: #f0d1a4 !important; text-shadow: 1px 1px 0 #000; }
.IbCards .c { background: #141010 !important; border-color: #3a2f28 !important; }
.IbCards a.c:hover { border-color: #c9a24a !important; }
.IbCards .c.p1 { background: #241612 !important; border-color: #c9a24a !important; }
.IbCards .r { background: #5f4d41 !important; }
.IbCards .c.p1 .r { background: #c9a24a !important; color: #2a0b00 !important; }
.IbCards .n { color: #f1dcc0 !important; }
.IbCards .k { color: #d64a35 !important; font-weight: bold; }
.IbCards .c.vz .n { color: #7a6a5c !important; }
