/* ==========================================================================
   Paleta BIAŁA (S1 / tirania.pl) — nakładka na feru.css.
   Jasne tło i karty, ciemny tekst, złote akcenty. Włączana przez 'palette' => 'white' w site.php.
   ========================================================================== */
.fx-pal-white {
	--tn-bg: #f6f4ef;
	--tn-bg-2: #ffffff;
	--tn-surface: #ffffff;
	--tn-surface-2: #ffffff;
	--tn-line: rgba(30, 26, 20, .10);
	--tn-line-gold: rgba(185, 131, 47, .35);
	--tn-text: #1f1b16;
	--tn-text-dim: #6b6357;
	--tn-gold: #c9922f;
	--tn-gold-2: #a8741f;
	--tn-gold-dk: #8a5d16;
	--tn-paper: #ffffff;
	--tn-paper-2: #f7f3ec;
	--tn-paper-3: #ece3d4;
	--tn-ink: #1f1b16;
	--tn-ink-dim: #6b6357;
	--tn-link: #9a5b10;
	--tn-head-row: #2b2620;
	color: var(--tn-text);
}

body.fx.fx-pal-white {
	background:
		radial-gradient(1100px 600px at 75% -10%, rgba(232, 180, 90, .16), transparent 62%),
		radial-gradient(900px 520px at 5% 15%, rgba(232, 180, 90, .08), transparent 60%),
		linear-gradient(180deg, #ffffff 0%, #f7f4ee 55%, #f1ece3 100%);
	background-attachment: fixed;
}
.fx-pal-white .fx-stars { opacity: .35; mix-blend-mode: multiply; filter: sepia(1) saturate(3) hue-rotate(-10deg) brightness(.7); }
.fx-pal-white ::selection { color: #fff; background: #b9832f; }
html:has(.fx-pal-white) { scrollbar-color: #c9922f #f1ece3; }

/* ---- nawigacja */
.fx-pal-white .fx-nav { background: rgba(255, 255, 255, .78); border-bottom-color: transparent; }
.fx-pal-white .fx-nav.is-scrolled { background: rgba(255, 255, 255, .95); box-shadow: 0 8px 30px rgba(60, 40, 10, .08); }
.fx-pal-white .fx .tn-menu-btn, .fx-pal-white .tn-menu-btn { color: #4a4238; }
.fx-pal-white .tn-menu-btn:hover, .fx-pal-white .tn-menu-btn[aria-expanded="true"] { color: #1f1b16; }
.fx-pal-white .tn-menu-btn.active { color: #9a5b10; background: rgba(232, 180, 90, .12); }
.fx-pal-white .tn-dropdown { background: #fff; border-color: rgba(185, 131, 47, .3); box-shadow: 0 18px 44px rgba(60, 40, 10, .14); --bs-dropdown-link-color: #2b2620; --bs-dropdown-link-hover-color: #1f1b16; }
.fx-pal-white .tn-dropdown .dropdown-item:hover { color: #9a5b10; background: rgba(232, 180, 90, .12); }
.fx-pal-white .fx-online { color: #1f1b16; background: #fff; border-color: rgba(185, 131, 47, .35); box-shadow: 0 4px 14px rgba(60, 40, 10, .06); }
.fx-pal-white .fx-online > strong { color: #1f1b16; text-shadow: none; }
.fx-pal-white .fx-online-lbl b { color: #9a5b10; }
.fx-pal-white .tn-btn-ghost { color: #2b2620 !important; background: #fff; border-color: rgba(185, 131, 47, .4); }
.fx-pal-white .tn-burger { color: #2b2620; background: #fff; border-color: rgba(30, 26, 20, .12); }
.fx-pal-white .tn-icon-btn { color: #2b2620; background: #fff; }
.fx-pal-white .fx-logo-name, .fx-pal-white .fx-title, .fx-pal-white .fx-world-name, .fx-pal-white .fx-page-title {
	background-image:
		linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 47%, rgba(255, 250, 230, .9) 50%, transparent 58%),
		linear-gradient(180deg, #e2b25a 0%, #c48a2a 45%, #9a6416 75%, #6e440c 100%);
	filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .8)) drop-shadow(0 6px 18px rgba(120, 80, 20, .18));
}

/* ---- hero */
.fx-pal-white .fx-hero::before { opacity: .45; }
.fx-pal-white .fx-hero::after { background: radial-gradient(closest-side, rgba(232, 180, 90, .22), rgba(232, 180, 90, .06) 55%, transparent 100%); }
.fx-pal-white .fx-eyebrow { color: #5a5247; }
.fx-pal-white .fx-motto { color: #4a4238; text-shadow: none; }
.fx-pal-white .fx-pill { color: #8a5d16; background: #fff; box-shadow: 0 6px 20px rgba(120, 80, 20, .08); }
.fx-pal-white .fx-lead { color: #4a4238; }
.fx-pal-white .fx-lead strong { color: #1f1b16; }
.fx-pal-white .fx-btn-dark { color: #2b2620 !important; background: #fff; border-color: rgba(185, 131, 47, .5); box-shadow: 0 6px 18px rgba(60, 40, 10, .08); }
.fx-pal-white .fx-btn-dark:hover { color: #1f1b16 !important; }
.fx-pal-white .fx-btn-here { color: #8a5d16; }
.fx-pal-white .fx-sec-title { color: #2b2620; text-shadow: none; }
.fx-pal-white .fx-pagehead .fx-eyebrow-sm { color: #9a5b10; }

/* ---- karty światów */
.fx-pal-white .fx-world {
	background:
		radial-gradient(520px 240px at 50% 0%, rgba(232, 180, 90, .14), transparent 70%),
		linear-gradient(180deg, #ffffff, #faf6ee);
	border-color: rgba(185, 131, 47, .5);
	box-shadow: 0 24px 60px rgba(60, 40, 10, .12), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.fx-pal-white .fx-world:hover { box-shadow: 0 30px 70px rgba(60, 40, 10, .16), 0 0 30px rgba(232, 180, 90, .22); }
.fx-pal-white .fx-world::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 180, 90, .14), transparent 45%); }
.fx-pal-white .fx-world::before { opacity: .6; }
.fx-pal-white .fx-wpill { color: #4a4238; background: #f6efe2; border-color: rgba(185, 131, 47, .3); }
.fx-pal-white .fx-wpill-on { color: #146c38; background: #e7f7ee; border-color: rgba(21, 128, 61, .3); }
.fx-pal-white .fx-medal { background: radial-gradient(circle at 50% 40%, #fffaf0, #efe3cc 70%); box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(185, 131, 47, .35), 0 14px 30px rgba(60, 40, 10, .15), inset 0 0 20px rgba(120, 80, 20, .12); }
.fx-pal-white .fx-world-type { color: #6e4a12; background: #fff; }
.fx-pal-white .fx-world-desc { color: #3a332b; }
.fx-pal-white .fx-world-list li { color: #4a4238; border-bottom-color: rgba(185, 131, 47, .18); }
.fx-pal-white .fx-world-since { color: #6e4a12; }
.fx-pal-white .fx-world-stats > div { background: #fff; border-color: rgba(185, 131, 47, .35); }
.fx-pal-white .fx-world-stats strong { color: #1f1b16; text-shadow: none; }
.fx-pal-white .fx-ribbon-alt { color: #fff; background: linear-gradient(180deg, #3a332b, #1f1b16); }
.fx-pal-white .fx-corner { border-color: rgba(185, 131, 47, .6); }

/* ---- karta treści */
.fx-pal-white .fx-card { background: #fff; box-shadow: 0 20px 50px rgba(60, 40, 10, .10); }
.fx-pal-white .fx-card::before { background: linear-gradient(160deg, rgba(201, 146, 47, .7), rgba(201, 146, 47, .12) 40%, rgba(201, 146, 47, .45)); }
.fx-pal-white .fx-card::after, .fx-pal-white .tn-panel::after { background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent); }
.fx-pal-white .fx-card-head { background: linear-gradient(180deg, #fffaf0, #fff); border-bottom-color: rgba(185, 131, 47, .2); }
.fx-pal-white .fx .tn-card-head h2, .fx-pal-white .tn-card-head h2 { color: #8a5d16; }
.fx-pal-white .tib-box-content.tn-content { color: #1f1b16; }
.fx-pal-white .tn-content h1, .fx-pal-white .tn-content h2, .fx-pal-white .tn-content h3, .fx-pal-white .tn-content h4, .fx-pal-white .tn-content h5,
.fx-pal-white .tib-news-title { color: #2a1d0c; background: none; -webkit-text-fill-color: currentColor; }
.fx-pal-white .tn-content strong, .fx-pal-white .tn-content b { color: #1f1b16; }
.fx-pal-white .tn-content a { color: #9a5b10; }
.fx-pal-white .tn-content code { color: #8a3b08; background: #f7efe1; }
.fx-pal-white .tn-content .table, .fx-pal-white .tn-content .tib-table { background: #fff; color: #1f1b16; border-color: #ece3d4; --bs-table-color: #1f1b16; --bs-table-hover-color: #1f1b16; }
.fx-pal-white .tn-content .table > :not(caption) > * > * { color: #1f1b16; }
.fx-pal-white .tn-content .tib-table td, .fx-pal-white .tn-content .tib-table th { border-bottom-color: #f0e8db; }
.fx-pal-white .tn-content table tr[bgcolor]:nth-child(even) > td { background-color: #faf6ee !important; }
.fx-pal-white .tn-content table tr[bgcolor] > td { color: #1f1b16 !important; }
.fx-pal-white .tn-content tr[bgcolor="#505050"] > *, .fx-pal-white .tn-content thead.table-dark > tr > *, .fx-pal-white .tn-content thead.table-light > tr > *, .fx-pal-white .tn-content .table-tibia > thead > tr > * { background: linear-gradient(180deg, #3a332b, #2b2620) !important; color: #fbe7bf !important; }
.fx-pal-white .tn-content .myaac-table, .fx-pal-white .tn-content .myaac-table td, .fx-pal-white .tn-content .myaac-table th { background: #fff !important; color: #1f1b16 !important; }
.fx-pal-white .tn-content .form-control, .fx-pal-white .tn-content .form-select, .fx-pal-white .tn-content input[type="text"], .fx-pal-white .tn-content input[type="password"],
.fx-pal-white .tn-content input[type="email"], .fx-pal-white .tn-content input[type="number"], .fx-pal-white .tn-content input[type="search"], .fx-pal-white .tn-content select, .fx-pal-white .tn-content textarea {
	color: #1f1b16; background-color: #fff; border-color: #dccfb8;
}
.fx-pal-white .tn-content input::placeholder { color: #a39a8c; }
.fx-pal-white .tn-content .input-group-text { color: #4a4238; background: #f7f3ec; border-color: #dccfb8; }
.fx-pal-white .tn-content .card, .fx-pal-white .tn-content .list-group-item, .fx-pal-white .tn-content .modal-content { background-color: #fff; color: #1f1b16; border-color: #ece3d4; }
.fx-pal-white .tn-content .alert-info, .fx-pal-white .tn-content .alert-warning, .fx-pal-white .tn-content .alert-danger, .fx-pal-white .tn-content .alert-success { background-color: #fbf6ec; color: #1f1b16; }
.fx-pal-white .tn-content .Text, .fx-pal-white .tn-content .CaptionContainer .Text { color: #8a5d16 !important; }
.fx-pal-white .tn-content .form-check-input { background-color: #fff; border-color: #c9b48f; }
.fx-pal-white .text-online { color: #15803d; }
.fx-pal-white .text-offline { color: #b91c1c; }
.fx-pal-white .tib-news::after { color: #c9922f; }

/* ---- panele boczne */
.fx-pal-white .tn-panel, .fx-pal-white .fx .tn-panel {
	background: radial-gradient(420px 140px at 0% 0%, rgba(232, 180, 90, .12), transparent 65%), #fff;
	box-shadow: 0 12px 32px rgba(60, 40, 10, .08);
}
.fx-pal-white .tn-panel::before { background: linear-gradient(160deg, rgba(201, 146, 47, .7), rgba(201, 146, 47, .12) 35%, rgba(30, 26, 20, .05) 60%, rgba(201, 146, 47, .45)); }
.fx-pal-white .tn-panel:hover { box-shadow: 0 16px 40px rgba(60, 40, 10, .12), 0 0 24px rgba(232, 180, 90, .16); }
.fx-pal-white .tn-panel-title { background: linear-gradient(180deg, #b47e26, #8a5d16); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-pal-white .tn-panel-body { color: #1f1b16; }
.fx-pal-white .tn-muted { color: #6b6357; }
.fx-pal-white .tn-status-head { background: #fbf8f2; border-color: rgba(30, 26, 20, .08); }
.fx-pal-white .tn-status-head.is-online { background: linear-gradient(90deg, rgba(61, 220, 132, .14), rgba(61, 220, 132, .03)); }
.fx-pal-white .tn-status-count { color: #6b6357; }
.fx-pal-white .tn-status-count strong { color: #8a5d16; text-shadow: none; }
.fx-pal-white .tn-kv li { border-top-color: rgba(185, 131, 47, .15); }
.fx-pal-white .tn-kv span { color: #6b6357; }
.fx-pal-white .tn-kv strong { color: #1f1b16; }
.fx-pal-white .tn-link-more { color: #9a5b10; }
.fx-pal-white .tn-world-row { color: #1f1b16; background: #fbf8f2; border-color: rgba(185, 131, 47, .2); }
.fx-pal-white .tn-world-row.is-current { background: linear-gradient(90deg, rgba(232, 180, 90, .18), rgba(232, 180, 90, .04)); }
.fx-pal-white .tn-world-row small { color: #6b6357; }
.fx-pal-white a.tn-world-row:hover { color: #1f1b16; }
.fx-pal-white .tn-top li { border-bottom-color: rgba(185, 131, 47, .14); }
.fx-pal-white .tn-top li::before { color: #6b6357; background: #f3ede2; }
.fx-pal-white .tn-top-name a { color: #1f1b16; }
.fx-pal-white .tn-top-name small, .fx-pal-white .tn-top-lvl::before { color: #6b6357; }
.fx-pal-white .tn-top-lvl { color: #8a5d16; }
.fx-pal-white .tn-panel-accent { background: radial-gradient(380px 180px at 100% 0%, rgba(232, 180, 90, .2), transparent 70%), #fffdf8; }
.fx-pal-white .tn-panel-discord { background: radial-gradient(400px 160px at 100% 0, rgba(88, 101, 242, .12), transparent 70%), #fff; }
.fx-pal-white .tn-discord-guild strong { color: #1f1b16; }
.fx-pal-white .tn-discord-counts { color: #6b6357; }

/* ---- pobieranie / kroki */
.fx-pal-white .fx-dl-intro, .fx-pal-white .fx-dl-card p, .fx-pal-white .fx-steps span { color: #4a4238; }
.fx-pal-white .fx-dl-card { background: radial-gradient(360px 160px at 100% 0, rgba(232, 180, 90, .12), transparent 70%), #fff; border-color: #ece3d4; }
.fx-pal-white .fx-dl-main { border-color: rgba(201, 146, 47, .55); }
.fx-pal-white .fx-steps li { background: #fbf8f2; border-color: #ece3d4; }
.fx-pal-white .fx-dl-note { color: #3a332b; background: #f7f1fb; border-color: rgba(139, 92, 246, .3); }
.fx-pal-white .fx-start li { background: #fff; border-color: rgba(185, 131, 47, .3); }
.fx-pal-white .fx-start strong { color: #2b2620; }
.fx-pal-white .fx-feature { background: #fff; border-color: #ece3d4; }
.fx-pal-white .fx-feature h3 { color: #2a1d0c; }
.fx-pal-white .fx-feature p { color: #4a4238; }

/* ---- wiki */
.fx-pal-white .wk { --wk-line: #ece3d4; --wk-soft: #f7f3ec; --wk-ink: #1f1b16; --wk-dim: #6b6357; }
.fx-pal-white .tn-content .wk-card, .fx-pal-white .tn-content .wk-cat, .fx-pal-white .wk-box, .fx-pal-white .wk-stats > div, .fx-pal-white .wk-table-wrap { background: #fff; color: #1f1b16; }
.fx-pal-white .tn-content .wk-tab { color: #4a4238; }
.fx-pal-white .wk-sprite { background: radial-gradient(circle at 50% 72%, #f1e6d2, transparent 70%); }
.fx-pal-white .wk-sprite-xl { background: radial-gradient(circle at 50% 70%, #ead9bb, transparent 70%); }
.fx-pal-white .wk-stats strong { color: #2a1d0c; }
.fx-pal-white .wk-badge { color: #6e4a12; background: rgba(232, 180, 90, .18); }
.fx-pal-white .wk-voices q { color: #4a4238; }
.fx-pal-white .wk-gold { color: #9a5b10; }
.fx-pal-white .wk-el strong.is-res { color: #15803d; }
.fx-pal-white .wk-el strong.is-weak { color: #b91c1c; }
.fx-pal-white .tn-content .wk-table td { color: #1f1b16; }
.fx-pal-white .wk-hero { color: #f3ead9; }
.fx-pal-white .wk-r-common { --wk-r: #6b7280; }
.fx-pal-white .wk-r-uncommon { --wk-r: #15803d; }
.fx-pal-white .wk-r-semi-rare { --wk-r: #2563eb; }
.fx-pal-white .wk-r-rare { --wk-r: #9333ea; }
.fx-pal-white .wk-r-very-rare { --wk-r: #d97706; }

/* ---- stopka */
.fx-pal-white .fx-footer { background: #fff; border-top-color: rgba(185, 131, 47, .25); }
.fx-pal-white .tn-footer-links a { color: #4a4238; }
.fx-pal-white .tn-footer-links a:hover { color: #9a5b10; }
.fx-pal-white .tn-footer-brand small, .fx-pal-white .tn-footer-copy { color: #6b6357; }
.fx-pal-white .tn-footer-copy { border-top-color: rgba(30, 26, 20, .08); }
.fx-pal-white .tn-footer-myaac a { color: #6b6357; }

/* poprawki: jasne tlo calej strony (html) i czytelne naglowki paneli */
html:has(body.fx-pal-white) { background: #f6f4ef; }
.fx-pal-white .tn-panel-title, .fx-pal-white .fx .tn-panel-title {
	background: none; -webkit-text-fill-color: #8a5d16; color: #8a5d16; letter-spacing: .2em;
}
.fx-pal-white .tn-panel-title .bi {
	color: #fff; -webkit-text-fill-color: #fff;
	background: linear-gradient(145deg, #e2b25a, #a8741f);
	box-shadow: 0 4px 12px rgba(168, 116, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.fx-pal-white .tn-panel-title::after { background: linear-gradient(90deg, rgba(185, 131, 47, .45), rgba(185, 131, 47, .08) 70%, transparent); }
.fx-pal-white .fx .tn-card-head h2 .bi, .fx-pal-white .tn-card-head h2 .bi { color: #a8741f; }
.fx-pal-white .tn-btn-gold { color: #fff !important; background: linear-gradient(180deg, #e2b25a, #c18c34 55%, #9a6416); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
/* szklane odbicie (biala warstwa u gory kart) na jasnym tle tylko wybiela tresc — wylaczone */
.fx-pal-white .fx-card::after, .fx-pal-white .tn-panel::after, .fx-pal-white .fx .tn-panel::after { display: none; }
