/* ==========================================================================
   Global 8.60 — klimat tibia.com (2009-2010)
   Grafiki: assets/img (z szablonu tibiacom). Ścieżka bazowa w --tib-img (index.php).
   ========================================================================== */

@font-face {
	font-family: "Martel";
	src: url("img/fonts/martel.ttf") format("truetype");
	font-display: swap;
	/* martel.ttf ma tylko litery A-Z/a-z (bez cyfr, interpunkcji i polskich znaków — kropka
	   rysowała się jako szeroka pusta spacja). Resztę znaków rysuje zapasowa Georgia. */
	unicode-range: U+0020, U+0041-005A, U+0061-007A;
}

:root {
	--tib-bg: #00060d;
	--tib-bgw: max(1672px, 100vw); /* szerokość tła www_background (1672x941) */
	--tib-parchment: #F1E0C6;
	--tib-parchment-dk: #D4C0A1;
	--tib-header-row: #505050;
	--tib-ink: #000;
	--tib-link: #004294;
	--tib-gold: #F0D1A4;
	--tib-tan: #d9c49d;
	--tib-brown: #5f4d41;
	--tib-brown-dk: #3c2d1d;
	--tib-online: #3fd43f;
	--tib-offline: #e0533f;
	--tib-font: Verdana, Tahoma, Arial, sans-serif;
	--tib-title-font: "Martel", Georgia, "Times New Roman", serif;
	--tib-r-lg: 10px;  /* duże panele */
	--tib-r: 7px;      /* boksy, newsy, tabele */
	--tib-r-sm: 4px;   /* przyciski, pola */
	--tib-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
}

html { background: var(--tib-bg); }

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--tib-font);
	font-size: 13px;
	line-height: 1.45;
	color: var(--tib-tan);
	background: var(--tib-bg) url("img/www_background.jpg") center top / var(--tib-bgw) auto no-repeat;
}
@media (max-width: 767.98px) {
	:root { --tib-bgw: 1000px; }
}

a { text-decoration: none; }

.tib-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px;
}

/* ---------------------------------------------------------------- Top bar */
.tib-topbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(0, 0, 0, .72);
	-webkit-backdrop-filter: blur(8px) saturate(1.3);
	backdrop-filter: blur(8px) saturate(1.3);
	border-bottom: 1px solid var(--tib-brown-dk);
	box-shadow: 0 1px 0 rgba(240, 209, 164, .08);
	font-size: 12px;
	padding: 6px 0;
}
.tib-status { white-space: nowrap; }
.tib-status i { font-size: 8px; vertical-align: 2px; margin-right: 4px; }
.tib-status.is-online i { color: var(--tib-online); text-shadow: 0 0 6px var(--tib-online); }
.tib-status.is-offline i { color: var(--tib-offline); }
.tib-status strong { color: #fff; }

.tib-topnav { gap: 2px; margin-left: 14px; }
.tib-topnav a {
	color: var(--tib-tan);
	padding: 2px 9px;
	border-left: 1px solid var(--tib-brown-dk);
}
.tib-topnav a:first-child { border-left: 0; }
.tib-topnav a:hover { color: #fff; }

.tib-discord-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	font-weight: bold;
	color: #fff;
	background: linear-gradient(#6d78f5, #4752c4);
	border: 1px solid #1e2470;
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 10px rgba(88, 101, 242, .35);
	text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
	transition: filter .15s, box-shadow .15s;
}
.tib-discord-btn:hover { color: #fff; filter: brightness(1.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 16px rgba(88, 101, 242, .6); }
.tib-discord-btn i { font-size: 15px; }

.tib-search { display: flex; }
.tib-search input {
	width: 170px;
	font: 12px var(--tib-font);
	color: #000;
	background: var(--tib-parchment);
	border: 1px solid var(--tib-brown);
	border-right: 0;
	padding: 3px 7px;
	border-radius: 14px 0 0 14px;
	padding-left: 11px;
}
.tib-search input:focus { outline: none; box-shadow: 0 0 0 2px rgba(240, 209, 164, .45); }
.tib-search button {
	background: linear-gradient(#3d79b3, #1d4f80 55%, #163d63);
	color: #fff;
	border: 1px solid #000;
	padding: 0 11px 0 9px;
	border-radius: 0 14px 14px 0;
}

/* ---------------------------------------------------------------- Header / logo */
.tib-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	/* postacie na tle kończą się ok. 29% szerokości obrazka — logo zaczyna się tuż pod nimi */
	padding: calc(var(--tib-bgw) * .285 - 34px) 12px 26px;
}
.tib-logo { display: inline-block; text-decoration: none; }
.tib-logo-name {
	display: block;
	font-family: var(--tib-title-font);
	font-size: clamp(34px, 5.6vw, 58px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: .02em;
	background: linear-gradient(180deg, #fff7d8 0%, #f6d27a 45%, #c58d2c 75%, #8a5a17 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(0, 0, 0, .9));
}
.tib-logo-sub {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 14px;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--tib-gold);
	background: rgba(0, 0, 0, .6);
	border: 1px solid rgba(240, 209, 164, .35);
	border-radius: 999px;
	text-shadow: 1px 1px 0 #000;
}

/* ---------------------------------------------------------------- Layout */
.tib-layout {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas: "left" "center" "right";
	gap: 14px;
	align-items: start;
	padding-bottom: 20px;
}
.tib-left { grid-area: left; }
.tib-center { grid-area: center; min-width: 0; }
.tib-right { grid-area: right; }

@media (min-width: 992px) {
	.tib-layout {
		grid-template-columns: 180px minmax(0, 1fr);
		grid-template-areas: "left center" "left right";
	}
	.tib-right {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
		gap: 14px;
	}
	.tib-right .tib-side-box { margin: 0; }
}
@media (min-width: 1200px) {
	.tib-layout {
		grid-template-columns: 180px minmax(0, 1fr) 190px;
		grid-template-areas: "left center right";
	}
	.tib-right { display: block; }
	.tib-right .tib-side-box { margin-bottom: 14px; }
}

/* ---------------------------------------------------------------- Left menu */
.tib-menu-toggle {
	width: 100%;
	margin-bottom: 8px;
	font: bold 13px var(--tib-font);
	color: #fff;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#4a4a4a, #2a2a2a);
	border: 1px solid #000;
	border-radius: var(--tib-r);
	box-shadow: inset 0 0 0 1px #777, 0 4px 12px rgba(0, 0, 0, .4);
	padding: 7px;
}

.tib-cat {
	width: 170px;
	margin: 0 auto 8px;
	border: 1px solid #000;
	border-radius: var(--tib-r);
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
@media (max-width: 991.98px) {
	.tib-cat { width: 100%; max-width: 420px; }
}

/* przycisk kategorii = zielony pasek jak tytuły boksów */
.tib-cat-btn {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 34px;
	padding: 0 0 0 2px;
	border: 0;
	background: url("img/title-background-green.gif") repeat;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -8px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: filter .15s;
}
.tib-cat-btn:hover { filter: brightness(1.15); }
.tib-cat.is-open .tib-cat-btn { border-bottom: 1px solid #000; }
.tib-cat-icon { flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.tib-cat-label { margin-left: 2px; image-rendering: pixelated; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .7)); }
.tib-cat-text {
	margin-left: 6px;
	font: 17px var(--tib-title-font);
	color: var(--tib-gold);
	text-shadow: 1px 1px 0 #000;
}
.tib-cat-sign {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 11px;
	height: 11px;
	margin-top: -5px;
	background: url("img/menu/plus.gif") center no-repeat;
}
.tib-cat.is-open .tib-cat-sign { background-image: url("img/menu/minus.gif"); }

/* Discord w menu: zielony pasek z ikoną Discorda, bezpośredni link */
.tib-cat-discord .tib-cat-btn { text-decoration: none; }
.tib-discord-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0 3px;
	font-size: 15px;
	color: #fff;
	background: radial-gradient(circle at 35% 30%, #7b85ff, #4752c4 70%);
	border: 1px solid #1e2470;
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(88, 101, 242, .55);
}
.tib-cat-ext {
	position: absolute;
	right: 10px;
	font-size: 10px;
	color: var(--tib-gold);
	opacity: .75;
}

/* podzakładki = jasny pergamin jak boksy po prawej */
.tib-cat-items {
	display: none;
	background: var(--tib-parchment) url("img/scroll.gif");
	box-shadow: inset 0 0 14px rgba(90, 40, 0, .15);
}
.tib-cat.is-open .tib-cat-items { display: block; }

.tib-sub {
	position: relative;
	display: block;
	padding: 4px 8px 4px 22px;
	font-size: 12px;
	color: #3b2a17 !important;
	border-bottom: 1px dotted #a8916c;
	transition: background-color .15s, padding-left .15s;
}
.tib-sub:last-child { border-bottom: 0; }
.tib-sub::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	margin-top: -3px;
	border: 3px solid transparent;
	border-left: 5px solid #a8916c;
}
.tib-sub:hover {
	background: rgba(212, 192, 161, .75);
	color: #000 !important;
	padding-left: 25px;
}
.tib-sub:hover::before { border-left-color: #5a2800; }
.tib-sub.active {
	color: #5a2800 !important;
	font-weight: bold;
	background: rgba(212, 192, 161, .9);
	box-shadow: inset 3px 0 0 #5a2800;
}
.tib-sub.active::before { border-left-color: #5a2800; }

/* ---------------------------------------------------------------- Content box */
.tib-box {
	position: relative;
	border: 4px solid;
	border-color: #8c8c8c #3a3a3a #3a3a3a #8c8c8c;
	border-radius: var(--tib-r-lg);
	background: #2b2b2b;
	box-shadow: 0 0 0 1px #000, var(--tib-shadow);
}
.tib-box::before,
.tib-box::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	height: 6px;
	border-radius: 3px;
	background: url("img/border-1.gif") repeat-x;
	z-index: 1;
}
.tib-box::before { top: -6px; }
.tib-box::after { bottom: -6px; }

.tib-corner {
	position: absolute;
	width: 17px;
	height: 17px;
	z-index: 2;
	background-repeat: no-repeat;
}
.tib-corner.tl { top: -9px; left: -9px; background-image: url("img/corner-tl.gif"); }
.tib-corner.tr { top: -9px; right: -9px; background-image: url("img/corner-tr.gif"); }
.tib-corner.bl { bottom: -9px; left: -9px; background-image: url("img/corner-bl.gif"); }
.tib-corner.br { bottom: -9px; right: -9px; background-image: url("img/corner-br.gif"); }

.tib-box-title {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 4px 48px;
	background: url("img/title-background-green.gif") repeat;
	border-bottom: 1px solid #000;
	border-radius: calc(var(--tib-r-lg) - 4px) calc(var(--tib-r-lg) - 4px) 0 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -8px 14px rgba(0, 0, 0, .25);
}
.tib-box-title h1 {
	margin: 0;
	font: 21px/1.2 var(--tib-title-font);
	color: var(--tib-gold);
	text-shadow: 1px 1px 0 #000, 0 0 6px rgba(0, 0, 0, .6);
	text-align: center;
}
.tib-bracer {
	position: absolute;
	top: 50%;
	width: 46px;
	height: 41px;
	margin-top: -20px;
	background-repeat: no-repeat;
}
.tib-bracer.left { left: -14px; background-image: url("img/headline-bracer-left.gif"); }
.tib-bracer.right { right: -14px; background-image: url("img/headline-bracer-right.gif"); }

.tib-box-content {
	padding: 16px 18px 20px;
	color: var(--tib-ink);
	background: var(--tib-parchment) url("img/scroll.gif");
	border-radius: 0 0 calc(var(--tib-r-lg) - 4px) calc(var(--tib-r-lg) - 4px);
	box-shadow: inset 0 0 24px rgba(90, 40, 0, .18);
	overflow-x: auto;
	--bs-body-color: #000;
	--bs-emphasis-color: #000;
	--bs-secondary-color: #4a3b2c;
	--bs-border-color: #a8916c;
}
.tib-box-content a { color: var(--tib-link); }
.tib-box-content a:hover { text-decoration: underline; }
.tib-box-content img { max-width: 100%; height: auto; }
.tib-box-content h1, .tib-box-content h2, .tib-box-content h3,
.tib-box-content h4, .tib-box-content h5 {
	font-family: var(--tib-title-font);
	color: #5a2800;
}
.tib-box-content hr { border-color: var(--tib-brown); opacity: .6; }

@media (max-width: 575.98px) {
	.tib-box-content { padding: 12px 10px 16px; }
	.tib-box-title { padding: 4px 36px; }
	.tib-box-title h1 { font-size: 18px; }
	.tib-bracer { transform: scale(.8); }
}

/* ---------------------------------------------------------------- News */
.tib-news {
	margin-bottom: 18px;
	border: 1px solid rgba(0, 0, 0, .75);
	border-radius: var(--tib-r);
	overflow: hidden;
	background: rgba(255, 255, 255, .14);
	box-shadow: 0 3px 10px rgba(90, 40, 0, .18);
}
.tib-news-head {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding: 2px 8px;
	background: #6e1a12 url("img/newsheadline_background.gif") repeat;
	color: #fff;
	font-weight: bold;
	text-shadow: 1px 1px 0 #000;
}
.tib-news-head img { flex: 0 0 auto; }
.tib-news-date { white-space: nowrap; font-weight: normal; color: var(--tib-gold); }
.tib-news-title { font-size: 14px; }
.tib-news-body { padding: 10px 12px; }
.tib-news-body p:last-child { margin-bottom: 0; }
.tib-news-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 12px 6px;
	font-size: 11px;
	border-top: 1px dotted var(--tib-brown);
}

/* ---------------------------------------------------------------- Tabele */
.tib-box-content .table,
.tib-box-content .tib-table {
	--bs-table-bg: transparent;
	--bs-table-color: #000;
	--bs-table-border-color: #faf0d7;
	--bs-table-striped-bg: rgba(90, 40, 0, .07);
	--bs-table-striped-color: #000;
	--bs-table-hover-bg: rgba(90, 40, 0, .12);
	--bs-table-hover-color: #000;
	--bs-table-active-bg: rgba(90, 40, 0, .15);
	border: 1px solid var(--tib-brown);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--tib-r);
	overflow: hidden;
	background: var(--tib-parchment);
	box-shadow: 0 2px 8px rgba(90, 40, 0, .15);
	font-size: 12px;
}
.tib-box-content .tib-table { width: 100%; }
.tib-box-content .tib-table td,
.tib-box-content .tib-table th {
	padding: 4px 6px;
	border: 0;
	border-right: 1px solid #faf0d7;
	border-bottom: 1px solid #faf0d7;
}
.tib-box-content .tib-table tr > :last-child { border-right: 0; }
.tib-box-content .tib-table tr:last-child > *,
.tib-box-content .table > :last-child > tr:last-child > * { border-bottom: 0; }
.tib-box-content .table > :not(caption) > * > * { padding: .35rem .5rem; }

/* wiersze nagłówkowe MyAAC (bgcolor = vdarkborder) i klasy table-* z konfigu */
.tib-box-content tr[bgcolor="#505050"] > *,
.tib-box-content .table-tibia > thead > tr > *,
.tib-box-content .table > thead.table-tibia > tr > *,
.tib-box-content .table-light > thead > tr > *,
.tib-box-content .table-dark > thead > tr > *,
.tib-box-content thead.table-light > tr > *,
.tib-box-content thead.table-dark > tr > * {
	background: var(--tib-header-row) !important;
	color: #fff !important;
	font-weight: bold;
	border-color: #faf0d7;
}
.tib-box-content tr[bgcolor="#505050"] a,
.tib-box-content thead a { color: #fff; }
.tib-box-content .white,
.tib-box-content .white a { color: #fff !important; }
.tib-box-content .table-tibia,
.tib-box-content .table-light,
.tib-box-content .table-dark {
	--bs-table-bg: transparent;
	--bs-table-color: #000;
	--bs-table-striped-color: #000;
	--bs-table-hover-color: #000;
}

/* ---------------------------------------------------------------- Formularze */
.tib-box-content .form-control,
.tib-box-content .form-select,
.tib-box-content input[type="text"],
.tib-box-content input[type="password"],
.tib-box-content input[type="email"],
.tib-box-content input[type="number"],
.tib-box-content select,
.tib-box-content textarea {
	font-family: var(--tib-font);
	color: #000;
	background-color: #fff8ec;
	border: 1px solid #8b7355;
	border-radius: var(--tib-r-sm);
	box-shadow: inset 0 1px 3px rgba(90, 40, 0, .15);
}
.tib-box-content .form-control:focus,
.tib-box-content .form-select:focus {
	border-color: #5a2800;
	box-shadow: 0 0 0 2px rgba(90, 40, 0, .2);
}
.tib-box-content .card,
.tib-box-content .list-group-item,
.tib-box-content .modal-content {
	--bs-card-bg: rgba(255, 255, 255, .25);
	background-color: rgba(255, 255, 255, .25);
	color: #000;
	border-color: var(--tib-brown);
}
.tib-box-content .alert { border-radius: var(--tib-r); }
.tib-box-content .card,
.tib-box-content .list-group { border-radius: var(--tib-r); overflow: hidden; }

.LabelV { width: 200px; }
.FormFieldError { color: #b00000; font-weight: bold; }
.text-online { color: #1d8a1d; }
.text-offline { color: #b3261e; }

/* ---------------------------------------------------------------- Przyciski */
.tib-btn,
.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary,
.btn.btn-info {
	display: inline-block;
	padding: 5px 14px;
	font: bold 12px var(--tib-font);
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#4a86c0, #1d4f80 55%, #163d63);
	border: 1px solid #000;
	border-radius: var(--tib-r-sm);
	box-shadow: inset 0 0 0 1px #c9a45c, inset 0 1px 0 1px rgba(255, 255, 255, .18), 0 2px 5px rgba(0, 0, 0, .45);
	cursor: pointer;
	transition: filter .15s, transform .1s;
}
.tib-btn:hover,
.btn.btn-primary:hover,
.btn.btn-secondary:hover,
.btn.btn-outline-primary:hover,
.btn.btn-info:hover { filter: brightness(1.18); }
.tib-btn:active,
.btn.btn-primary:active,
.btn.btn-secondary:active { filter: brightness(.9); transform: translateY(1px); }

.tib-btn-green,
.btn.btn-success {
	color: #fff !important;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#5aa646, #2f6d20 55%, #1f5216);
	border: 1px solid #000;
	box-shadow: inset 0 0 0 1px #c9a45c, 0 1px 2px rgba(0, 0, 0, .5);
}
.tib-btn-red,
.btn.btn-danger {
	color: #fff !important;
	text-shadow: 1px 1px 0 #000;
	background: linear-gradient(#c8503f, #8a2116 55%, #6e1a12);
	border: 1px solid #000;
	box-shadow: inset 0 0 0 1px #c9a45c, 0 1px 2px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------- Prawa kolumna */
.tib-side-box {
	margin-bottom: 14px;
	border: 1px solid #000;
	border-radius: var(--tib-r-lg);
	overflow: hidden;
	box-shadow: var(--tib-shadow);
	background: var(--tib-parchment) url("img/scroll.gif");
	color: #000;
}
/* nagłówek boksu jak tytuł głównej ramki: zielony wzór + złote klamry */
.tib-side-title {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 4px 34px;
	background: url("img/title-background-green.gif") repeat;
	border-bottom: 1px solid #000;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -8px 14px rgba(0, 0, 0, .25);
}
.tib-side-title h2 {
	margin: 0;
	font: 16px/1.2 var(--tib-title-font);
	color: var(--tib-gold);
	text-align: center;
	text-shadow: 1px 1px 0 #000, 0 0 6px rgba(0, 0, 0, .6);
}
.tib-side-title .tib-bracer {
	width: 32px;
	height: 29px;
	margin-top: -14px;
	background-size: contain;
}
.tib-side-title .tib-bracer.left { left: 0; }
.tib-side-title .tib-bracer.right { right: 0; }
.tib-side-body { padding: 10px; font-size: 12px; }
.tib-side-body a:not(.tib-btn) { color: var(--tib-link); }
.tib-muted { color: #4a3b2c; font-size: 11px; }

.tib-status-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 3px 0;
	border-bottom: 1px dotted #a8916c;
}

.tib-top { list-style: none; margin: 0; counter-reset: tib; }
.tib-top li {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 3px 0;
	border-bottom: 1px dotted #a8916c;
	counter-increment: tib;
}
.tib-top li::before {
	content: counter(tib) ".";
	min-width: 16px;
	font-weight: bold;
	color: #5a2800;
}
.tib-top li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.tib-top li span { font-size: 11px; color: #4a3b2c; white-space: nowrap; }
.tib-side-foot { padding: 0 10px 8px; font-size: 11px; text-align: right; }
.tib-side-foot a { color: var(--tib-link); }

/* ---------------------------------------------------------------- Stopka */
.tib-footer {
	position: relative;
	padding: 18px 0 30px;
	text-align: center;
	font-size: 11px;
	color: #8c7a5b;
	border-top: 1px solid var(--tib-brown-dk);
	background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .6));
}
.tib-footer a { color: var(--tib-tan); }



/* ==========================================================================
   Modernizacja: fakty o świecie, CTA, status, Discord, animacje
   ========================================================================== */

.tib-btn i { margin-right: 4px; }
.tib-btn-discord {
	color: #fff !important;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
	background: linear-gradient(#7782f7, #5865f2 55%, #4752c4);
	border: 1px solid #1e2470;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 8px rgba(88, 101, 242, .45);
}

/* duży status serwera z pulsującą kropką */
.tib-status-big {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 6px;
	padding: 6px;
	font: 18px var(--tib-title-font);
	border-radius: var(--tib-r);
	background: rgba(255, 255, 255, .3);
	border: 1px solid #a8916c;
}
.tib-status-big.is-online { color: #1d7a1d; }
.tib-status-big.is-offline { color: #b3261e; }
.tib-pulse {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
}
.tib-status-big.is-online .tib-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: currentColor;
	animation: tib-pulse 1.8s ease-out infinite;
}
@keyframes tib-pulse {
	from { transform: scale(1); opacity: .7; }
	to { transform: scale(2.8); opacity: 0; }
}

/* top gracze: nazwa + profesja, poziom w plakietce */
.tib-top li { align-items: center; }
.tib-top-name { flex: 1; min-width: 0; line-height: 1.2; }
.tib-top-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.tib-top-name small { display: block; font-size: 10px; color: #6b5a44; }
.tib-top-lvl {
	min-width: 30px;
	padding: 1px 6px;
	font-size: 11px !important;
	font-weight: bold;
	text-align: center;
	color: var(--tib-gold) !important;
	background: url("img/title-background-green.gif");
	border: 1px solid #000;
	border-radius: 999px;
	text-shadow: 1px 1px 0 #000;
}
.tib-top li:nth-child(1)::before { color: #b8860b; }
.tib-top li:nth-child(2)::before { color: #7d7d7d; }
.tib-top li:nth-child(3)::before { color: #8c5a2b; }

/* Discord */
.tib-discord-guild {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.tib-discord-guild img {
	flex: 0 0 auto;
	border-radius: 50%;
	border: 2px solid #5865f2;
	box-shadow: 0 0 8px rgba(88, 101, 242, .4);
}
.tib-discord-guild strong { display: block; font-size: 12px; line-height: 1.25; }
.tib-discord-counts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: #4a3b2c; }
.tib-discord-counts i { font-size: 7px; vertical-align: 2px; }
.tib-dot-grey { color: #8a8a8a; }

/* stopka */
.tib-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 18px;
	margin-bottom: 8px;
	font-size: 12px;
}
.tib-footer-links a:hover { color: #fff; }
.tib-footer-copy { margin-bottom: 4px; }
.tib-footer-myaac { opacity: .7; }

/* pływający przycisk "do góry" */
.tib-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1040;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	font-size: 18px;
	color: var(--tib-gold);
	background: url("img/title-background-green.gif");
	border: 1px solid #000;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px #c9a45c, 0 6px 16px rgba(0, 0, 0, .6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s, filter .15s;
}
.tib-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.tib-to-top:hover { color: #fff; filter: brightness(1.2); }

/* łagodne pojawianie się paneli */
.tib-reveal { animation: tib-fade-up .5s ease-out both; }
.tib-right .tib-reveal:nth-child(2) { animation-delay: .06s; }
.tib-right .tib-reveal:nth-child(3) { animation-delay: .12s; }
.tib-right .tib-reveal:nth-child(4) { animation-delay: .18s; }
.tib-right .tib-reveal:nth-child(5) { animation-delay: .24s; }
@keyframes tib-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

/* fokus z klawiatury */
.tib-btn:focus-visible,
.tib-cat-btn:focus-visible,
.tib-sub:focus-visible,
.tib-discord-btn:focus-visible,
.tib-to-top:focus-visible {
	outline: 2px solid var(--tib-gold);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.tib-reveal,
	.tib-status-big.is-online .tib-pulse::after { animation: none; }
	.tib-to-top, .tib-sub, .tib-btn { transition: none; }
	html { scroll-behavior: auto; }
}

@media (max-width: 575.98px) {
	.tib-discord-btn span { display: none; }
	.tib-search input { width: 130px; }
}

/* ---------------------------------------------------------------- Ekwipunek postaci (characters) */
/* kolumny: naszyjnik/lewa ręka/pierścień | hełm/zbroja/nogi/buty | plecak/prawa ręka/amunicja */
.tib-eq {
	display: inline-grid;
	grid-template-columns: repeat(3, 38px);
	grid-template-rows: repeat(4, 38px);
	grid-auto-flow: column;
	gap: 4px;
	padding: 7px;
	background: linear-gradient(160deg, #707070, #4d4d4d 55%, #3d3d3d);
	border: 1px solid #000;
	border-radius: var(--tib-r);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 4px 10px rgba(0, 0, 0, .35);
}
.tib-eq-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: radial-gradient(circle at 50% 40%, #3a3a3a, #232323);
	border: 1px solid;
	border-color: #151515 #8a8a8a #8a8a8a #151515;
	border-radius: 4px;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
}
.tib-eq-slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.tib-eq-skull { display: flex; align-items: center; justify-content: center; }
.tib-eq-skull img { image-rendering: pixelated; }
