/* Balaiak OT — visual do site.
   Paleta: azul-marinho com borda dourada (caixas e menu), pergaminho (conteúdo),
   vinho (títulos). Arte de fundo: images/balaiak-art.jpg (parallax). */
:root {
	--bk-navy: #141b26;
	--bk-navy-2: #2a3546;
	--bk-navy-dark: #0b1018;
	--bk-gold: #7d8ea3;
	--bk-gold-light: #bfeeff;
	--bk-parch: #f7ecd4;
	--bk-parch-2: #efdfbd;
	--bk-parch-edge: #d9c191;
	--bk-wine: #7a1d1d;
	--bk-text: #3a2914;
	--bk-link: #1d4fa3;
	--bk-green: #3f9d3a;
	--bk-shadow: 0 8px 22px rgba(0, 0, 0, .6);
	--bk-glow: 0 0 0 1px #05080d, 0 0 12px rgba(80, 200, 255, .25);
	--bk-title-font: 'Uncial Antiqua', 'Cinzel Decorative', Georgia, serif;
}

html {
	background: #070b13 radial-gradient(ellipse 70% 60% at 10% 60%, #0f2f45, transparent 70%) fixed,
		radial-gradient(ellipse 60% 60% at 95% 70%, #24124a, transparent 70%) fixed;
	background-color: #070b13;
}
body.bk {
	margin: 0;
	min-height: 100vh;
	font: 14px/1.55 Verdana, Geneva, 'Segoe UI', sans-serif;
	color: var(--bk-text);
	background: transparent;
}
/* Fundo: a arte do Balaiak (images/balaiak-art.jpg) no topo, com o brasão
   (images/balaiak-crest.webp) por cima da moldura vazia dela, sobre um fundo
   escuro com névoa e brasas. Tudo animado no navegador (CSS e um canvas), sem
   vídeo: o servidor só entrega as duas imagens. O script no index.php faz o
   parallax (a arte e o brasão sobem a 55% da rolagem) e os raios. */
:root { --art-w: min(100vw, 1500px); --art-h: calc(var(--art-w) * .5586); --art-shift: calc(var(--art-h) * .32); }
.bk-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bk-hero {
	position: absolute; left: 50%; top: 0; width: var(--art-w); height: calc(var(--art-shift) + var(--art-h));
	transform: translateX(-50%); will-change: transform;
}
.bk-art {
	position: absolute; left: 0; top: var(--art-shift); width: 100%; height: var(--art-h);
	background-size: cover; background-position: center;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent 99%);
	mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent 99%);
}
@media (min-width: 1501px) {
	/* Tela mais larga que a arte: as laterais somem no escuro. */
	.bk-art {
		-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent 99%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent 99%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
		mask-composite: intersect;
	}
}
/* Brasão: flutua, brilho pulsando atrás, reflexo passando e a gema acendendo. */
.bk-crest {
	position: absolute; left: 32%; width: 36%; top: calc(var(--art-h) * .015); aspect-ratio: 901 / 543;
	animation: bk-crest-float 6s ease-in-out infinite;
}
.bk-crest img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.bk-crest i { position: absolute; display: block; pointer-events: none; }
.bk-crest-glow {
	inset: -12% -8%; border-radius: 50%;
	background: radial-gradient(ellipse at 50% 60%, rgba(70, 200, 255, .55), rgba(90, 60, 220, .25) 45%, transparent 70%);
	animation: bk-crest-pulse 4s ease-in-out infinite;
}
.bk-crest-shine {
	inset: 0; overflow: hidden;
	-webkit-mask: var(--crest) center / 100% 100% no-repeat; mask: var(--crest) center / 100% 100% no-repeat;
}
.bk-crest-shine::before {
	content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 35%;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
	transform: translateX(-120%) skewX(-12deg); animation: bk-crest-shine 7s ease-in-out infinite;
}
.bk-crest-gem {
	left: 42%; width: 16%; top: 2%; height: 42%; border-radius: 50%;
	background: radial-gradient(ellipse at 50% 45%, rgba(170, 240, 255, .9), rgba(60, 170, 255, .35) 45%, transparent 70%);
	mix-blend-mode: screen; animation: bk-crest-pulse 2.6s ease-in-out infinite;
}
.bk-flash img { animation: bk-crest-flash .5s ease-out; }
@keyframes bk-crest-flash { 0% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)) brightness(1.5) drop-shadow(0 0 14px #7fe4ff); } 100% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); } }
@keyframes bk-crest-float { 50% { transform: translateY(-6px); } }
@keyframes bk-crest-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes bk-crest-shine { 0%, 55% { transform: translateX(-120%) skewX(-12deg); } 85%, 100% { transform: translateX(320%) skewX(-12deg); } }
.bk-fog {
	position: absolute; left: -10%; right: -10%; bottom: -220px; height: 75vh;
	background:
		radial-gradient(ellipse 40% 55% at 20% 70%, rgba(60, 170, 220, .22), transparent 70%),
		radial-gradient(ellipse 35% 50% at 75% 75%, rgba(130, 80, 220, .2), transparent 70%),
		radial-gradient(ellipse 45% 45% at 50% 95%, rgba(40, 200, 160, .16), transparent 70%);
	filter: blur(10px); animation: bk-fog 26s ease-in-out infinite alternate; will-change: transform;
}
@keyframes bk-fog { from { margin-left: -4%; opacity: .8; } to { margin-left: 4%; opacity: 1; } }
.bk-embers { position: absolute; inset: 0; }
.bk-vignette {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 85% 75% at 50% 35%, transparent 55%, rgba(0, 0, 0, .55));
}
@media (prefers-reduced-motion: reduce) { .bk-fog, .bk-crest, .bk-crest i, .bk-crest-shine::before { animation: none; } }
.bk a { color: var(--bk-link); }
.bk-icon { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; flex: none; }

/* ---------- topo ---------- */
.bk-header {
	position: relative; max-width: 1320px; margin: 0 auto; padding: 0 16px;
	/* o conteúdo começa logo abaixo do brasão (1,5% + 36% da largura * 543/901) */
	height: calc(var(--art-h) * .43); box-sizing: border-box;
}
.bk-logo { position: absolute; left: 50%; top: 3%; width: 36%; height: 94%; transform: translateX(-50%); }
.bk-logo > span {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.bk-creature {
	position: absolute; right: 16px; top: 22px;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 10px 14px 8px; border-radius: 18px;
	background: radial-gradient(circle at 50% 40%, #2c3a4c, #0d131c);
	border: 2px solid var(--bk-gold); box-shadow: var(--bk-shadow), var(--bk-glow);
	text-decoration: none !important; color: #d7e9f7 !important; font-size: 11px; text-align: center; line-height: 1.2;
}
.bk-creature img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }

/* ---------- colunas ---------- */
.bk-layout {
	max-width: 1320px; margin: 0 auto; padding: 0 16px 24px;
	display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 22px; align-items: start;
}

/* caixas laterais (pergaminho com título azul) */
.bk-box {
	background: var(--bk-parch); border: 2px solid var(--bk-gold); border-radius: 4px;
	box-shadow: var(--bk-shadow), var(--bk-glow); margin-bottom: 16px; overflow: hidden;
}
.bk-box-title {
	margin: 0; padding: 9px 12px; text-align: center;
	font: 400 18px/1.2 var(--bk-title-font); letter-spacing: .5px; color: var(--bk-gold-light);
	background: linear-gradient(180deg, var(--bk-navy-2), var(--bk-navy) 60%, var(--bk-navy-dark));
	border-bottom: 2px solid var(--bk-gold); text-shadow: 0 0 8px rgba(80, 200, 255, .6), 0 2px 2px #000;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -6px 10px rgba(0, 0, 0, .35);
}
.bk-box-body { padding: 12px 14px; }
.bk-muted { color: #7a6a52; font-size: 12px; margin: 4px 0 8px; }
.bk-more { display: block; text-align: center; font-weight: bold; margin-top: 8px; }

/* conta */
.bk-login label { display: block; font: 400 13px var(--bk-title-font); margin: 6px 0 3px; }
.bk-login input {
	width: 100%; box-sizing: border-box; padding: 6px 8px; font-size: 14px;
	background: #fffaf0; border: 1px solid #b59d70; border-radius: 4px;
}
.bk-hello { margin: 0 0 10px; text-align: center; }
.bk-links { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; font-weight: bold; }

.bk-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; box-sizing: border-box; margin-top: 10px; padding: 8px 12px;
	border-radius: 6px; border: 1px solid rgba(0, 0, 0, .35); cursor: pointer;
	font: bold 14px Verdana, sans-serif; text-decoration: none !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .25);
}
.bk-btn-blue { background: linear-gradient(180deg, #3f6cc4, #1f428c); color: #fff !important; }
.bk-btn-blue:hover { filter: brightness(1.1); }
.bk-btn-gold { background: linear-gradient(180deg, #ffe08a, #e2a93a); color: #4a2a05 !important; font-family: var(--bk-title-font); font-weight: 400; font-size: 17px; border-color: #9a6a12; }
.bk-btn-gold:hover { filter: brightness(1.07); }
.bk-btn-google { background: #fff; color: #1f1f1f !important; border-color: #8a8a8a; font-size: 13px; }
.bk-btn-google svg { width: 18px; height: 18px; }

/* chamadas grandes */
.bk-cta {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	margin-bottom: 12px; padding: 12px; border-radius: 10px;
	font: 400 17px/1.1 var(--bk-title-font); color: #fff !important; text-decoration: none !important;
	border: 2px solid rgba(0, 0, 0, .3); white-space: nowrap; box-shadow: var(--bk-shadow), inset 0 1px 0 rgba(255, 255, 255, .35);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.bk-cta .bk-icon { width: 22px; height: 22px; }
.bk-cta-play { background: linear-gradient(180deg, #59c24f, #2f8a2b); }
.bk-cta-download { background: linear-gradient(180deg, #3f6cc4, #1f428c); }
.bk-cta:hover { filter: brightness(1.08); }

/* menu sanfona */
.bk-menu-group {
	margin-bottom: 10px; border-radius: 4px; overflow: hidden; box-shadow: var(--bk-shadow), var(--bk-glow);
	border: 2px solid var(--bk-gold);
}
.bk-menu-group summary {
	list-style: none; cursor: pointer; position: relative; padding: 10px 36px; text-align: center;
	font: 400 19px/1.2 var(--bk-title-font); color: #e9f6ff;
	background: linear-gradient(180deg, var(--bk-navy-2), var(--bk-navy) 60%, var(--bk-navy-dark));
	text-shadow: 0 0 8px rgba(80, 200, 255, .5), 0 2px 2px #000;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -6px 10px rgba(0, 0, 0, .35);
}
.bk-menu-group summary::-webkit-details-marker { display: none; }
.bk-menu-group summary::after {
	content: ''; position: absolute; right: 14px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 2px solid var(--bk-gold-light); border-bottom: 2px solid var(--bk-gold-light); transform: rotate(45deg);
	transition: transform .15s;
}
.bk-menu-group[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bk-menu-group summary:hover { filter: brightness(1.12); }
.bk-menu-group ul { list-style: none; margin: 0; padding: 8px 12px; background: var(--bk-parch); }
.bk-menu-group li a {
	display: block; padding: 4px 4px 4px 18px; position: relative;
	font-weight: bold; color: #3a2914; text-decoration: none;
}
.bk-menu-group li a::before { content: '◆'; position: absolute; left: 2px; font-size: 9px; top: 8px; color: #b78a3e; }
.bk-menu-group li a:hover, .bk-menu-group li.active a { color: #c0581b; }

/* barra de atalhos */
.bk-topnav {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
	padding: 14px 18px; margin-bottom: 16px; border-radius: 4px;
	background: linear-gradient(180deg, var(--bk-navy-2), var(--bk-navy) 55%, var(--bk-navy-dark));
	border: 2px solid var(--bk-gold); box-shadow: var(--bk-shadow), var(--bk-glow), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.bk-topnav a {
	display: inline-flex; align-items: center; gap: 6px;
	font: 400 17px/1.2 var(--bk-title-font); color: #fff !important; text-decoration: none !important;
	text-shadow: 0 1px 2px #000;
}
.bk-topnav a:hover { color: var(--bk-gold-light) !important; }
.bk-online-pill {
	padding: 4px 12px; border-radius: 20px; border: 1px solid var(--bk-gold);
	background: rgba(0, 0, 0, .3); font-family: Verdana, sans-serif !important; font-size: 14px !important;
}
.bk-online-pill i, .bk-status-line i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c33; }
.bk-online-pill.on i, .bk-status-line.on i { background: #4ee04a; box-shadow: 0 0 6px #4ee04a; }
.bk-online-pill b { color: #8ff58a; }

/* conteúdo */
.bk-content {
	background: var(--bk-parch); border: 2px solid var(--bk-gold); border-radius: 4px;
	box-shadow: var(--bk-shadow), var(--bk-glow); padding: 24px 30px 30px;
	background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, .35), transparent 70%);
}
.bk-title {
	margin: 0 0 20px; padding: 14px 0 12px;
	border-top: 3px solid var(--bk-wine); border-bottom: 3px solid var(--bk-wine);
	font: 400 32px/1.15 var(--bk-title-font); color: var(--bk-wine);
}
.bk-content-body { overflow-x: auto; }
.bk-content-body img { max-width: 100%; height: auto; }
.bk-lead { font-size: 15px; }
.bk-empty, .bk-note {
	padding: 14px 16px; margin: 12px 0; border-radius: 6px;
	background: var(--bk-parch-2); border: 1px solid var(--bk-parch-edge);
}
.bk-note { font-size: 12px; }

/* tabelas das páginas do plugin */
.bk-table { width: 100%; border-collapse: collapse; margin: 10px 0; background: #fbf4e4; }
.bk-table th { background: #5a5148; color: #fff; padding: 8px; font-size: 13px; }
.bk-table td { padding: 8px; border-bottom: 1px solid var(--bk-parch-edge); vertical-align: middle; }
.bk-table tbody tr:nth-child(odd) td { background: #f3e7cc; }
.bk-center { text-align: center; }
.bk-avatar { width: 44px; height: 44px; border-radius: 50%; }
.bk-thumb { width: 110px; border-radius: 4px; display: block; }
.bk-outfit { width: 48px; height: 48px; }
.bk-twitch { color: #7b3fe4; font-weight: bold; }
.bk-yes { color: #2f8a2b; font-weight: bold; }
.bk-no { color: #999; }
.bk-gain {
	display: inline-block; padding: 1px 8px; border-radius: 12px; font-weight: bold; font-size: 12px;
	color: #7a3a00; background: linear-gradient(180deg, #ffe7b0, #f7c768); border: 1px solid #c78b2a;
}

/* status */
.bk-status-line i { margin-right: 8px; vertical-align: 3px; }
.bk-status-line { text-align: center; font: 400 20px var(--bk-title-font); margin-bottom: 8px; }
.bk-status-line.on { color: #2f8a2b; }
.bk-status-line.off { color: #b02a2a; }
.bk-status dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.bk-status dt { color: #7a6a52; }
.bk-status dd { margin: 0; font-weight: bold; text-align: right; word-break: break-all; }
.bk-play p { margin: 0; font-size: 13px; text-align: center; }

/* powergamers */
.bk-rank { list-style: none; margin: 0; padding: 0; }
.bk-rank li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--bk-parch-edge); }
.bk-rank-pos { font: 400 20px var(--bk-title-font); color: var(--bk-wine); width: 18px; text-align: center; }
.bk-rank-outfit { width: 48px; height: 48px; background: #e9dcc0; border: 1px solid var(--bk-parch-edge); border-radius: 6px; }
.bk-rank-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bk-rank-info a { font-weight: bold; overflow: hidden; text-overflow: ellipsis; max-width: 150px; white-space: nowrap; }
.bk-rank-info small { color: #7a6a52; font-size: 11px; }

/* streamers */
.bk-live { list-style: none; margin: 0; padding: 0; }
.bk-live li { border-bottom: 1px solid var(--bk-parch-edge); }
.bk-live a { display: flex; align-items: center; gap: 8px; padding: 7px 0; text-decoration: none; color: inherit; }
.bk-live-avatar { width: 36px; height: 36px; border-radius: 50%; }
.bk-live-thumb { position: relative; flex: none; }
.bk-live-thumb img { width: 76px; height: 43px; object-fit: cover; border-radius: 4px; display: block; }
.bk-live-thumb .bk-icon { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; padding: 2px; border-radius: 4px; background: #9146ff; fill: #fff; }
.bk-live-info { display: flex; flex-direction: column; min-width: 0; }
.bk-live-info b { color: var(--bk-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-live-info small { font-size: 12px; }
.bk-live-info small .bk-icon { width: 14px; height: 14px; }

/* rodapé */
.bk-footer { text-align: center; padding: 10px 16px 30px; color: #f3ead8; font-size: 12px; text-shadow: 0 1px 3px #000; }
.bk-footer p { margin: 4px 0; }
.bk-footer a { color: #ffe7a6; }
.bk-footer-legal { opacity: .8; font-size: 11px; }

/* ---------- páginas internas (estilos herdados do tibiacom) ---------- */
.bk-content .TableContainer { margin-bottom: 14px; }
.bk-content .CaptionContainer, .bk-content .CaptionInnerContainer {
	background: linear-gradient(180deg, var(--bk-navy-2), var(--bk-navy)) !important;
}
.bk-content .CaptionContainer span[class^='Caption'] { display: none; }
.bk-content .CaptionContainer .Text { color: var(--bk-gold-light) !important; font-family: var(--bk-title-font); font-size: 16px; text-shadow: 0 1px 2px #000; }
.bk-content .Table1, .bk-content .Table2, .bk-content .Table3, .bk-content .Table4, .bk-content .Table5 {
	background: #fbf4e4 !important; border-color: var(--bk-parch-edge) !important;
}
.bk-content .InnerTableContainer { background: transparent; }
.bk-content .TableShadowContainerRightTop, .bk-content .TableShadowContainer { display: none; }
.bk-content .TableContentAndRightShadow { background: none !important; }
.bk-content .TableContent { border-color: var(--bk-parch-edge) !important; }
.bk-content .NewsHeadline, .bk-content .NewsHeadlineBackground { border-radius: 4px; }
.bk-content input[type=text], .bk-content input[type=password], .bk-content input[type=email], .bk-content select, .bk-content textarea {
	padding: 4px 6px; border: 1px solid #b59d70; border-radius: 4px; background: #fffaf0;
}

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
	.bk-layout { grid-template-columns: 230px minmax(0, 1fr); }
	.bk-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
	.bk-right .bk-box { margin-bottom: 0; }
}
@media (max-width: 820px) {
	.bk-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.bk-main { order: -1; }
	.bk-header { height: auto; padding-top: calc(var(--art-h) * .43); }
	.bk-creature { position: static; margin: 0 auto 12px; flex-direction: row; width: max-content; }
	.bk-content { padding: 16px; }
	.bk-title { font-size: 24px; }
	.bk-topnav { gap: 6px 12px; padding: 10px; }
	.bk-topnav a { font-size: 15px; }
}

/* notícias: faixa vinho com data e título */
.bk-content .NewsHeadline { margin: 18px 0 10px; }
.bk-content .NewsHeadlineBackground {
	position: static !important; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	height: auto !important; min-height: 36px; padding: 6px 14px; box-sizing: border-box;
	background-color: #7a1d1d; background-size: auto !important;
	border-bottom: 3px solid #3d0c0c; box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.bk-content .NewsHeadlineIcon, .bk-content .NewsHeadlineDate, .bk-content .NewsHeadlineText, .bk-content .NewsHeadlineAuthor {
	position: static !important; float: none !important; margin: 0 !important; padding: 0 !important;
	width: auto !important; height: auto !important; color: #fff !important; text-shadow: 0 1px 2px #000;
}
.bk-content .NewsHeadlineIcon { width: 22px !important; height: 22px !important; }
.bk-content .NewsHeadlineDate { font: bold 13px Verdana, sans-serif; letter-spacing: .5px; }
.bk-content .NewsHeadlineText { flex: 1; font: bold 15px Verdana, sans-serif; }
.bk-content .NewsHeadlineAuthor { font-size: 11px; opacity: .85; }

/* o tibiacom zera a fonte do .TableContainer (1px) e só restaura no layout dele */
.bk-content .TableContainer table { font-size: 13px; }
.bk-content .FormFieldError { font-size: 11px; }
.bk-content .white, .bk-content .white a { color: #fff !important; }

/* ---------- Bazar (plugins/balaiak-bazaar) ---------- */
.bz-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.bz-tabs a {
	padding: 6px 14px; border-radius: 6px; border: 1px solid var(--bk-parch-edge); background: var(--bk-parch-2);
	font-weight: bold; color: var(--bk-text); text-decoration: none;
}
.bz-tabs a:hover { border-color: var(--bk-wine); }
.bz-tabs a.on { background: var(--bk-wine); border-color: var(--bk-wine); color: #fff; }

.bz-filters {
	padding: 10px 14px; margin: 14px 0; border-radius: 6px;
	background: var(--bk-parch-2); border: 1px solid var(--bk-parch-edge);
}
.bz-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; }
.bz-filter-row > b { min-width: 70px; }
.bz-chip {
	padding: 4px 12px; border-radius: 4px; border: 1px solid #8b7a5c; background: #fffaf0;
	font-weight: bold; font-size: 13px; color: var(--bk-text) !important; text-decoration: none !important; white-space: nowrap;
}
.bz-chip:hover { border-color: var(--bk-wine); }
.bz-chip.on { background: var(--bk-wine); border-color: var(--bk-wine); color: #fff !important; }
.bz-search { flex: 1 1 180px; margin: 0; }
.bz-search input { width: 100%; box-sizing: border-box; padding: 5px 8px; border: 1px solid #8b7a5c; border-radius: 4px; background: #fffaf0; font-size: 13px; }

.bz-scroll { overflow-x: auto; }
.bz-table td { vertical-align: middle; }
.bz-name { font-weight: bold; color: var(--bk-wine) !important; text-decoration: none; }
.bz-name:hover { text-decoration: underline; }
.bz-sub { display: block; color: #7a6a52; font-size: 12px; }
.bz-price-cell { text-align: right; white-space: nowrap; }
.bz-price-cell b { display: block; color: #2f8a2b; font-size: 15px; }
.bz-price-cell small { color: #2b4585; font-weight: bold; }
.bz-item-img { width: 32px; height: 32px; image-rendering: pixelated; }
.bz-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #fde7b0; border: 1px solid #c78b2a; color: #6a3d00; white-space: nowrap; }
.bz-btn-view {
	display: inline-block; padding: 5px 14px; border-radius: 5px; font-weight: bold; white-space: nowrap;
	background: linear-gradient(180deg, #6b6b6b, #454545); color: #fff !important; text-decoration: none !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bz-btn-view:hover { filter: brightness(1.15); }

.bz-msg { padding: 10px 14px; margin: 10px 0; border-radius: 6px; border: 1px solid; }
.bz-msg-ok { background: #e3f4dd; border-color: #7fbf6f; color: #1f5a18; }
.bz-msg-error { background: #fbe1dc; border-color: #d48a7c; color: #7a1d1d; }
.bz-muted { color: #7a6a52; font-size: 13px; }

/* anúncio: conteúdo + caixa de compra */
.bz-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.bz-detail-main { min-width: 0; }
.bz-card { margin: 0 0 16px; border: 1px solid var(--bk-parch-edge); border-radius: 6px; background: #fbf4e4; overflow: hidden; }
.bz-card > h3 { margin: 0; padding: 9px 14px; background: #5a5148; color: #fff; font-size: 15px; text-align: center; }
.bz-card > p, .bz-card > form, .bz-card > table, .bz-card > div, .bz-card > .bz-scroll { margin: 12px 14px; }
.bz-kv { width: calc(100% - 28px); border-collapse: collapse; }
.bz-kv th, .bz-kv td { padding: 7px 10px; border-bottom: 1px solid var(--bk-parch-edge); text-align: left; }
.bz-kv th { width: 40%; background: #efe2c4; }
.bz-char-head { display: flex; align-items: center; gap: 14px; }
.bz-char-outfit { width: 64px; height: 64px; background: #e9dcc0; border: 1px solid var(--bk-parch-edge); border-radius: 6px; }
.bz-char-head > div { display: flex; flex-direction: column; }
.bz-char-name { font: 400 22px var(--bk-title-font); color: var(--bk-wine) !important; text-decoration: none; }
.bz-item-title { font-weight: bold; font-size: 17px; color: var(--bk-wine); }

.bz-equip { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; }
.bz-equip .bz-slot:nth-child(10) { grid-column: 2; }
.bz-slot {
	position: relative; width: 40px; height: 40px; box-sizing: border-box; padding: 3px;
	background: #2b2b2b; border: 1px solid #111; border-radius: 3px; box-shadow: inset 0 0 0 1px #4a4a4a;
}
.bz-slot img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
.bz-slot i {
	position: absolute; right: 2px; bottom: 0; font: bold 11px Verdana, sans-serif; font-style: normal; color: #fff;
	text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.bz-slot-big { transform: scale(1.4); transform-origin: left center; margin-right: 20px; flex: none; }
.bz-single { display: flex; align-items: center; gap: 10px; }
.bz-containers { display: flex; flex-wrap: wrap; gap: 12px; }
.bz-container { background: #3a3a3a; border: 1px solid #111; border-radius: 4px; padding: 0 0 6px; }
.bz-container-head { display: flex; align-items: center; gap: 6px; padding: 4px 8px; color: #eee; font-size: 13px; background: #4a4a4a; border-bottom: 1px solid #111; }
.bz-container-head img { width: 20px; height: 20px; image-rendering: pixelated; }
.bz-container-head small { margin-left: auto; color: #aaa; }
.bz-grid { display: grid; grid-template-columns: repeat(4, 40px); gap: 4px; padding: 6px 8px 0; }
.bz-grid .bz-muted { grid-column: 1 / -1; color: #bbb; margin: 4px 0; }
.bz-total { font-weight: bold; text-align: center; }

.bz-buy {
	position: sticky; top: 12px; padding: 16px 18px; border: 3px solid var(--bk-wine); border-radius: 6px; background: #fffaf0;
}
.bz-buy-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bz-buy-price span { font-weight: bold; }
.bz-buy-price b { font-size: 30px; color: #2f8a2b; white-space: nowrap; }
.bz-buy-accepts b { color: #2b4585; }
.bz-buy-label { display: block; margin: 8px 0; font-weight: bold; font-size: 13px; }
.bz-buy-label select { display: block; width: 100%; margin-top: 4px; padding: 6px; border: 1px solid #b59d70; border-radius: 4px; background: #fffaf0; }
.bz-pix-btn {
	display: block; width: 100%; box-sizing: border-box; margin: 10px 0; padding: 11px 12px; text-align: center; cursor: pointer;
	font: 400 20px/1.1 var(--bk-title-font); color: #fff !important; text-decoration: none !important;
	background: linear-gradient(180deg, #59c24f, #2f8a2b); border: 2px solid #1f5a18; border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 4px rgba(0, 0, 0, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.bz-pix-btn:hover { filter: brightness(1.08); }
.bz-buy-note { font-size: 13px; }
.bz-buy-list { padding-left: 18px; font-size: 13px; }
.bz-buy-ends { text-align: center; font-weight: bold; margin-bottom: 0; }
.bz-buy-closed { font-weight: bold; color: var(--bk-wine); }

/* pagamento */
.bz-pay { max-width: 640px; margin: 0 auto; }
.bz-pay h3 { color: var(--bk-wine); margin: 0 0 4px; }
.bz-pay-amount { font-size: 32px; font-weight: bold; color: #2f8a2b; margin: 0 0 10px; }
.bz-pay-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; padding: 16px; border: 3px solid var(--bk-wine); border-radius: 6px; background: #fffaf0; }
.bz-qr { width: 240px; height: 240px; image-rendering: pixelated; background: #fff; border: 1px solid #ccc; }
.bz-pay-code { flex: 1 1 240px; min-width: 0; }
.bz-pay-code label { font-weight: bold; }
.bz-pay-code textarea { width: 100%; box-sizing: border-box; margin-top: 4px; font: 12px monospace; word-break: break-all; resize: none; }
.bz-pay-status { font-size: 13px; }

/* formulários e situações */
.bz-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.bz-form label { display: flex; flex-direction: column; gap: 3px; font-weight: bold; font-size: 13px; flex: 1 1 180px; }
.bz-form input, .bz-form select { padding: 6px 8px; border: 1px solid #b59d70; border-radius: 4px; background: #fffaf0; font-size: 14px; }
.bz-btn, .bz-btn-small {
	padding: 7px 16px; border-radius: 5px; border: 1px solid #1f428c; cursor: pointer; font-weight: bold;
	background: linear-gradient(180deg, #3f6cc4, #1f428c); color: #fff;
}
.bz-btn-small { padding: 4px 10px; font-size: 12px; }
.bz-inline { display: inline-flex; gap: 4px; margin: 2px 0; }
.bz-inline input { padding: 3px 6px; font-size: 12px; border: 1px solid #b59d70; border-radius: 4px; width: 150px; }
.bz-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; border: 1px solid; white-space: nowrap; }
.bz-status-active, .bz-status-pending { background: #fff3cd; border-color: #d9b44a; color: #6a4d00; }
.bz-status-reserved { background: #fde7b0; border-color: #c78b2a; color: #6a3d00; }
.bz-status-sold, .bz-status-approved { background: #e3f4dd; border-color: #7fbf6f; color: #1f5a18; }
.bz-status-cancelled, .bz-status-expired { background: #eee; border-color: #bbb; color: #555; }
.bz-status-conflict { background: #fbe1dc; border-color: #d48a7c; color: #7a1d1d; }

@media (max-width: 900px) {
	.bz-detail { grid-template-columns: minmax(0, 1fr); }
	.bz-buy { position: static; }
}
@media (max-width: 600px) {
	.bz-filter-row > b { min-width: 100%; }
	.bz-qr { width: 200px; height: 200px; }
}

/* ---------- Store (plugins/balaiak-store) ---------- */
.st-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--bk-line, #b9975b); border-radius: 6px; background: #f6ecd2; }
.st-balance b { color: var(--bk-wine); }
.st-balance .bz-btn-view { margin-left: auto; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.st-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; text-align: center; border: 1px solid var(--bk-line, #b9975b); border-radius: 8px; background: #fbf4e2; }
.st-card h4 { margin: 2px 0 0; font-size: 15px; color: var(--bk-wine); }
.st-card form { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: auto; }
.st-card select { width: 100%; }
.st-card > .bz-btn-view, .st-card > .bz-muted { margin-top: auto; }
.st-img { width: 48px; height: 48px; image-rendering: pixelated; }
.st-desc { margin: 0; font-size: 12px; color: #6b5a40; }
.st-gold { margin: 0; font-weight: bold; color: #a87a12; }
.st-price { margin: 4px 0 0; font-size: 17px; font-weight: bold; color: #2b4585; }
.st-money { color: #2f8a2b; }
.st-bonus { margin: 0; font-weight: bold; color: #2f8a2b; }
.st-vip, .st-points { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; font: 900 20px Georgia, serif; color: #3b1f04; background: radial-gradient(circle at 35% 30%, #fff3b0, #f6c94a 55%, #c9861d); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.st-vip small, .st-points small { font: 700 10px Verdana, sans-serif; text-transform: uppercase; }
.st-points { font-size: 18px; }
.st-btn-off { opacity: 0.7; }
.st-wait { background: #fbe8c4; }
.st-h { margin: 18px 0 8px; }
.st-admin input:not([type="checkbox"]), .st-admin select { width: 100%; min-width: 60px; box-sizing: border-box; }

/* ---------- página de download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.dl-card {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px;
	border-radius: 4px; border: 2px solid var(--bk-gold); text-decoration: none !important; text-align: center;
	background: linear-gradient(180deg, var(--bk-navy-2), var(--bk-navy) 60%, var(--bk-navy-dark));
	box-shadow: var(--bk-shadow), var(--bk-glow), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.dl-card b { font: 400 22px/1.2 var(--bk-title-font); color: #e9f6ff; text-shadow: 0 0 8px rgba(80, 200, 255, .5), 0 2px 2px #000; }
.dl-card span { font-size: 12px; color: #b9c9d8; }
.dl-card i {
	margin-top: 8px; padding: 6px 14px; border-radius: 4px; font: bold 13px Verdana, sans-serif; font-style: normal;
	color: #4a2a05; background: linear-gradient(180deg, #ffe08a, #e2a93a); border: 1px solid #9a6a12;
}
.dl-card.dl-web i { color: #fff; background: linear-gradient(180deg, #59c24f, #2f8a2b); border-color: #1f5e1c; }
.dl-card:hover { filter: brightness(1.12); }
