/* World site: structure and components. Colours, fonts and shapes come from the theme tokens (themes/*.css). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
html.light { color-scheme: light; }
html.dark { color-scheme: dark; }

body {
    margin: 0;
    padding-top: var(--nav-height);
    background: var(--bg) var(--bg-image);
    color: var(--text);
    font: var(--font-size)/1.43 var(--font);
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 500; line-height: 1.1; color: var(--heading); }
h2 { font-size: 30px; margin: 20px 0 10px; }
h3 { font-size: 24px; margin: 20px 0 10px; }
h4 { font-size: 18px; margin: 10px 0; }
p { margin: 0 0 10px; }
code { padding: 2px 4px; font-size: 90%; color: var(--code); background: var(--code-bg); border-radius: var(--radius); }
img { vertical-align: middle; border: 0; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; margin: 20px 0; }
.clear { clear: both; }

/* Navigation */

.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30;
    min-height: var(--nav-height);
    background: var(--nav-bg) var(--nav-image);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
}
.site-nav__inner { display: flex; align-items: center; min-height: var(--nav-height); flex-wrap: wrap; }
.site-nav__brand { font: var(--brand-font); color: var(--nav-brand); padding: 0 15px 0 0; white-space: nowrap; }
.site-nav__brand:hover, .site-nav__brand:focus { color: var(--nav-link-hover); text-decoration: none; }
.site-nav__menu { display: flex; align-items: center; flex: 1; min-width: 0; }
.site-nav__links { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav__links a, .site-nav__mode {
    display: block; padding: 15px 12px; line-height: 20px;
    color: var(--nav-link); background: none; border: 0; font: inherit; font-size: 0.94em; cursor: pointer;
}
.site-nav__links a:hover, .site-nav__links a:focus, .site-nav__mode:hover, .site-nav__mode:focus { color: var(--nav-link-hover); text-decoration: none; }
.site-nav__links a.is-active { color: var(--nav-link-active); background: var(--nav-active-bg); }
.site-nav__mode-label { display: none; margin-left: 5px; }
.site-nav__toggle { display: none; margin-left: auto; padding: 9px 10px; background: none; border: 1px solid var(--nav-border); border-radius: var(--radius); cursor: pointer; }
.site-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--nav-link); border-radius: 1px; }
.site-nav__toggle span + span { margin-top: 4px; }

.site-nav__links.is-one-row { flex-wrap: nowrap; min-width: 0; }
.site-nav__links.is-one-row > li { flex: none; }
.site-nav__more { position: relative; }
.site-nav__more > a { white-space: nowrap; }
.site-nav__more-list {
    display: none; position: absolute; top: 100%; right: 0; z-index: 40; min-width: 190px;
    list-style: none; margin: 4px 0 0; padding: 6px;
    background: var(--nav-bg) var(--nav-image) no-repeat; border: 1px solid var(--nav-border); border-radius: var(--radius); box-shadow: var(--nav-shadow);
}
.site-nav__more.is-open .site-nav__more-list { display: flex; flex-direction: column; gap: 4px; }
.site-nav__more-list a { white-space: nowrap; text-align: left; }
@media (max-width: 1200px) and (min-width: 768px) {
    .site-nav__links a, .site-nav__mode { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 1000px) and (min-width: 768px) {
    .site-nav__links a, .site-nav__mode { padding-left: 5px; padding-right: 5px; font-size: 0.9em; }
}
@media (max-width: 767px) {
    .site-nav__toggle { display: block; }
    .site-nav__menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; max-height: calc(100vh - 60px); overflow: auto; border-top: 1px solid var(--nav-border); }
    .site-nav.is-open .site-nav__menu { display: flex; }
    .site-nav__links { flex-direction: column; }
    .site-nav__links a, .site-nav__mode { padding: 10px 15px; text-align: left; }
    .site-nav__mode-label { display: inline; }
}

/* Main, footer, ads */

.site-main { min-height: calc(100vh - 230px); padding-top: 40px; padding-bottom: 20px; }
.site-footer { text-align: center; padding: 20px 0; color: var(--muted); }
.site-ad { margin-bottom: 10px; }
.site-ad__slot { display: block; width: 100%; height: 280px; }
@media (max-width: 767px) { .site-ad__slot { height: 250px; } }

.site-preview {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 15px;
    text-align: center; font-size: 13px; color: #fff; background: rgba(20, 20, 20, .92);
}
.site-preview a { color: #ffd479; }

/* Layout helpers */

.narrow { max-width: 50%; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 10px 0; }
@media (max-width: 767px) {
    .narrow { max-width: none; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Panels (cards) */

.panel { background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow); padding: 15px; margin-bottom: 20px; }

/* Tables */

.tbl { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: var(--table-bg); }
.tbl th, .tbl td { padding: 8px; border-top: 1px solid var(--border); vertical-align: top; min-width: 10px; max-width: 500px; }
.tbl th { text-align: center; font-weight: bold; color: var(--heading); border-top: 0; border-bottom: 2px solid var(--border); background: var(--table-head-bg); }
.tbl--striped tbody tr:nth-child(odd) { background: var(--stripe); }
.tbl tbody tr:hover { background: var(--row-hover); }
.tbl td.center, .tbl td.bottom { text-align: center; vertical-align: middle; }
.tbl td.bottom img { vertical-align: bottom; }
.tbl tr.more td { text-align: right; padding-right: 15px; }

@media (max-width: 767px) {
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; max-width: 100%; }
    .tbl thead { display: none; }
    .tbl td { border-top: 0; text-align: center; }
    .tbl tbody tr { border-bottom: 2px solid var(--border); }
    h3 { text-align: center; }
}

/* Buttons */

.btn {
    display: inline-block; padding: 6px 12px; font: inherit; line-height: 1.43; text-align: center;
    color: var(--btn-text); background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: var(--radius);
    cursor: pointer; white-space: nowrap;
}
.btn:hover, .btn:focus { filter: brightness(0.92); text-decoration: none; color: var(--btn-text); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-accent); }
.btn--success { background: var(--success); border-color: var(--success); color: var(--on-accent); }
.btn--warning { background: var(--warning); border-color: var(--warning); color: var(--on-accent); }
.btn--primary:hover, .btn--success:hover, .btn--warning:hover { color: var(--on-accent); }
.btn.is-dimmed { opacity: 0.6; }
.btn.is-dimmed:hover { opacity: 1; }

/* Pager */

.pager { display: flex; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.pager a, .pager span {
    padding: 6px 12px; margin-left: -1px; line-height: 1.43;
    color: var(--pager-link); background: var(--pager-bg); border: 1px solid var(--pager-border);
}
.pager > :first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.pager > :last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.pager a:hover { background: var(--row-hover); text-decoration: none; }
.pager .pager__current { position: relative; z-index: 1; color: var(--on-accent); background: var(--primary); border-color: var(--primary); }

/* Game pictures: items, players, mobs */

.itemborder { width: 32px; height: 32px; display: inline-block; margin: 1px; }
.itemborder img { background: url(https://addons.darro.eu/assets/images/it_borders.png); }
.itemborder img[tip*="upgraded"] { background-position: -96px 0; }
.itemborder img[tip*="unique"] { background-position: -32px 0; }
.itemborder img[tip*="heroic"] { background-position: -64px 0; }
.itemborder img[tip*="legendary"] { background-position: -128px 0; }
.itemborder img[tip*="artefact"] { background-position: -160px 0; }
.item-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-bottom: 20px; }
.item-grid .itemborder { margin: 0; }

.out { width: 32px; height: 48px; display: inline-block; vertical-align: bottom; margin: 1px; overflow: hidden; }
.out > img { display: block; max-width: none; }
.mob { margin: 1px; max-width: 100%; max-height: 96px; width: auto; image-rendering: pixelated; }
.out, .mob, .itemborder img, .js-filter { cursor: pointer; }
.is-linked { box-shadow: 0 0 15px red; border-radius: 10px; }

.battle_division { cursor: pointer; }
.battle_division::before { content: '[Podział łupów]'; }
@media (max-width: 767px) {
    .battle_division::before { content: 'Podział łupów:'; display: block; font-weight: bold; }
    .battle_division::after { content: attr(tip); }
}

.filter-note { text-align: center; margin: 10px 0; }

/* Mob boxes (Potwory summary) */

.mobs-box { clear: both; text-align: center; margin-bottom: 20px; }
.box {
    position: relative; display: inline-flex; flex-direction: column; vertical-align: top;
    margin: 10px; padding: 10px; width: 200px; min-height: 190px; text-align: center;
    background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
.box .name { color: var(--mob-name); font-size: 17px; line-height: 1.1em; }
.box .img { height: 115px; background-repeat: no-repeat; background-position: center; background-size: auto; margin: 5px 0; }
.box .img.is-big { background-size: contain; }

/* Game tooltips */

#tip {
    line-height: normal; position: absolute; display: none; z-index: 2000;
    background: #222; color: gold; border: 3px double #a95; padding: 3px 3px 4px;
    font-family: Verdana, Arial, sans-serif; font-size: 11px; max-width: 280px; word-wrap: break-word; text-align: left;
}
#tip-o1, #tip-o2 { position: absolute; width: 35px; height: 23px; }
#tip-o1 { top: -6px; left: -6px; background: url(https://classic.margonem.pl/img/tip-cor.png) no-repeat 0 -69px; }
#tip-o2 { right: -6px; bottom: -6px; background: url(https://classic.margonem.pl/img/tip-cor.png) no-repeat -35px -69px; }
#tip B, #tip I { display: block; text-align: center; }
#tip.t_npc { text-align: center; background: #0d3d01; border-color: #5b7d00; }
#tip.t_npc #tip-o1 { background-position: 0 -23px; }
#tip.t_npc #tip-o2 { background-position: -35px -23px; }
#tip.t_npc B, #tip.t_other B { color: white; }
#tip.t_other { text-align: center; background: #040469; border-color: #2c2cff; }
#tip.t_other #tip-o1 { background-position: 0 -46px; }
#tip.t_other #tip-o2 { background-position: -35px -46px; }
#tip.t_other I { color: #f90; }
@media (hover: none) {
    [tip], a:has([tip]) { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* Start page (wizytówka): banner, links, number tiles and cards */

.start-hero {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 300px; padding: 30px 20px; margin-bottom: 24px; text-align: center; color: #fff;
    border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .62)), var(--opt-map, linear-gradient(135deg, var(--primary), var(--nav-bg))) center / cover;
}
.start-hero__title { margin: 0; font-family: var(--heading-font); font-size: clamp(34px, 7vw, 62px); font-weight: 700; line-height: 1.1; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }
.start-hero__motto { margin: 8px 0 0; font-size: 19px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.start-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin: 12px 0 0; font-size: 14px; }
.start-hero .start-meta { text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.start-badge { padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.start-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 24px; }
.start-hero .start-links { margin-bottom: 0; }
.start-link--play { padding-left: 30px; padding-right: 30px; font-size: 1.12em; }

.start-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; }
.start-stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 10px; text-align: center;
    background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
.start-stat__value { font-family: var(--heading-font); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--heading); }
.start-stat__label { margin-top: 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.start-card { padding: 16px 18px; margin-bottom: 20px; background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.start-card__title { margin: 0 0 12px; font-size: 21px; }
.start-card__more { margin: 10px 0 0; text-align: right; font-size: 14px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.start-grid--single { grid-template-columns: minmax(0, 1fr); }
.start-col { display: flex; flex-direction: column; gap: inherit; min-width: 0; }
.start-grid .start-card { margin: 0; }
.start-about p:last-child { margin-bottom: 0; }

.start-names, .start-ranks, .start-kills, .start-list { list-style: none; margin: 0; padding: 0; }
.start-names { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.start-names.has-outfits { gap: 10px 6px; }
.start-names.has-outfits li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 92px; font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.start-names__blank { width: 32px; height: 48px; margin: 1px; }

.start-params { width: 100%; border-collapse: collapse; }
.start-params th, .start-params td { padding: 6px 8px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.start-params th { width: 45%; font-weight: normal; color: var(--muted); }
.start-params tr:first-child > * { border-top: 0; }

.start-rank, .start-kill, .start-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.start-rank:first-child, .start-kill:first-child, .start-list li:first-child { border-top: 0; }
.start-list li { display: block; }
.start-rank__place { flex: 0 0 26px; font-family: var(--heading-font); font-size: 18px; font-weight: 700; line-height: 1; text-align: center; color: var(--muted); }
.start-rank .out, .start-kill .out { margin: 0; }
.start-rank__blank { width: 32px; height: 48px; }
.start-rank__nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.start-rank__lvl { color: var(--muted); }
.start-kill__mob { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.start-kill__mob img { max-width: 64px; max-height: 64px; object-fit: contain; }
.start-kill__text { flex: 1; min-width: 0; line-height: 1.35; }
.start-kill__players { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.start-items { margin-bottom: 0; }

@media (max-width: 767px) {
    .start-hero { min-height: 210px; padding: 24px 12px; }
    .start-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .start-stat__value { font-size: 24px; }
    .start-card { padding: 14px 12px; }
}

/* Search field (parts/search.php), player profile (?t=gracz), search results (?t=szukaj), players online (?t=online) */

.site-search { position: relative; margin: 0 8px; width: 120px; flex: 0 0 auto; height: 30px; }
.site-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-search__input {
    position: absolute; right: 0; top: 0; width: 120px; height: 30px; padding: 5px 9px; font: inherit; font-size: 13px;
    color: var(--text); background: linear-gradient(var(--panel-bg), var(--panel-bg)), Canvas; border: 1px solid var(--border); border-radius: var(--radius);
    transition: width .2s;
}
.site-search__input:focus { width: 230px; z-index: 41; outline: 2px solid var(--link); outline-offset: 0; }
.site-search__list {
    position: absolute; z-index: 40; top: calc(100% + 4px); right: 0; width: 280px; max-height: 70vh; overflow: auto;
    margin: 0; padding: 4px 0; list-style: none; text-align: left;
    background: linear-gradient(var(--panel-bg), var(--panel-bg)), Canvas; border: var(--panel-border); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.site-search__group { padding: 6px 12px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-search__none { padding: 8px 12px; color: var(--muted); }
.site-search__list a { display: flex; align-items: center; gap: 6px; padding: 5px 12px; color: var(--text); }
.site-search__list a:hover, .site-search__list a.is-active { background: var(--row-hover); text-decoration: none; }
.site-search__list img { width: 24px; height: 24px; object-fit: contain; }
.search-page .site-search, .profile--missing .site-search { margin: 0 0 16px; width: 100%; max-width: 420px; height: auto; }
.search-page .site-search__input, .search-page .site-search__input:focus, .profile--missing .site-search__input { position: static; width: 100%; }
.search-page .site-search__list { left: 0; right: auto; width: 100%; }
.search-page__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.search-page__list { list-style: none; margin: 0; padding: 0; }
.search-page__list li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.search-page__list img { width: 24px; height: 24px; object-fit: contain; }
@media (max-width: 767px) {
    .site-nav__menu .site-search { margin: 8px 15px; width: auto; height: auto; }
    .site-nav__menu .site-search__input, .site-nav__menu .site-search__input:focus { position: static; width: 100%; }
    .site-nav__menu .site-search__list { position: static; width: 100%; max-height: none; margin-top: 4px; box-shadow: none; }
}

.profile { margin-bottom: 20px; }
.profile--with-others { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 20px; align-items: start; }
.profile--with-others > .profile__section, .profile--with-others > .profile--missing { grid-column: 1 / -1; }
.profile__head, .profile__section, .profile__others {
    margin-bottom: 20px; padding: 16px 18px;
    background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
.profile__nick { margin: 0; word-break: break-word; }
.profile__lvl { font-size: .8em; color: var(--muted); }
.profile__line { margin: 4px 0 6px; }
.profile__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.profile__ph b { font-size: 18px; }
.profile__badge { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: bold; border-radius: 10px; border: 1px solid currentColor; }
.profile__badge--leg { color: #e9772b; }
.profile__body { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.profile__outfit { flex: 0 0 auto; min-width: 64px; display: flex; justify-content: center; }
.profile__outfit .out { transform: scale(2); transform-origin: center; margin: 24px 16px; image-rendering: pixelated; }
.profile__outfit .out-neon { transform: scale(2); transform-origin: center; margin: 30px 22px 38px; }
.profile__outfit .out-neon .out { transform: none; margin: 1px; }
.profile__outfit .out-neon::before { image-rendering: pixelated; }
.profile__equipment { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(4, 40px); gap: 4px; }
.profile__slot--10 { grid-area: 1 / 1; } .profile__slot--1 { grid-area: 1 / 2; }
.profile__slot--2 { grid-area: 2 / 1; } .profile__slot--3 { grid-area: 2 / 2; } .profile__slot--4 { grid-area: 2 / 3; }
.profile__slot--5 { grid-area: 3 / 1; } .profile__slot--6 { grid-area: 3 / 2; } .profile__slot--7 { grid-area: 3 / 3; }
.profile__slot--9 { grid-area: 4 / 1; } .profile__slot--8 { grid-area: 4 / 2; }
.profile__slot { position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--stripe); }
.profile__slot .itemborder { margin: 0; }
.profile__upgrade { position: absolute; right: 1px; bottom: 0; font-size: 10px; font-weight: bold; line-height: 1; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; pointer-events: none; }
.profile__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.profile__facts div { min-width: 90px; }
.profile__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.profile__facts dd { margin: 0; font-size: 16px; }
.profile__history, .profile__external { font-size: 12px; }
.profile__external { display: inline-block; margin-top: 12px; }
.profile__external + .profile__external { margin-left: 16px; }
.profile__section h3, .profile__others h3 { margin-top: 0; }
.profile__others h3 { font-size: 18px; }
.profile__char-list, .profile__loot-list, .profile__kill-list, .profile__hero-list { list-style: none; margin: 0; padding: 0; }
.profile__char a { display: flex; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.profile__char:last-child a { border-bottom: 0; }
.profile__char a:hover { text-decoration: none; background: var(--row-hover); }
.profile__char-out { flex: 0 0 36px; display: flex; justify-content: center; }
.profile__char-nick { color: var(--link); }
.profile__char-lvl, .profile__char-ph { font-size: 12px; color: var(--muted); }
.profile__loot, .profile__kill, .profile__hero-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.profile__hero-list li { display: block; }
.profile__loot-items { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 2px; max-width: 50%; }
.profile__loot-items .itemborder { display: inline-block; }
.profile__loot-where { flex: 1; min-width: 0; }
.profile__kill .mob { max-height: 64px; }
.profile__more { display: inline-block; margin-top: 10px; }
.profile--missing { text-align: center; }
.profile--missing .site-search { display: inline-block; text-align: left; }
@media (max-width: 991px) {
    .profile--with-others { display: block; }
}
@media (max-width: 767px) {
    .profile__head { text-align: center; }
    .profile__badges, .profile__body, .profile__facts { justify-content: center; }
    .profile__loot { flex-direction: column; align-items: flex-start; }
    .profile__loot-items { max-width: none; }
}

.online-page__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.online-page__tile {
    display: flex; flex-direction: column; align-items: center; padding: 14px 8px;
    background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
.online-page__tile b { font-size: 28px; line-height: 1.1; }
.online-page__tile span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.online-page__tile small { font-size: 11px; color: var(--muted); }
.online-chart { display: block; width: 100%; height: auto; overflow: visible; }
.online-chart__bar { fill: var(--link); }
.online-chart__bar:hover { fill: var(--link-hover); }
.online-chart__grid { stroke: var(--border); stroke-width: 1; }
.online-chart__day { stroke: var(--border); stroke-dasharray: 3 3; }
.online-chart__axis { fill: var(--muted); font-size: 13px; }
.online-page__chart { overflow-x: auto; }
.online-page__names { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) {
    .online-chart { min-width: 640px; }
}

/* Dates, ads that did not fill or were blocked */

time.ago { white-space: nowrap; }
.site-ad:has(> .site-ad__slot[data-ad-status="unfilled"]), html.ads-blocked .site-ad { display: none; }

/* Loot log: rarity tabs, filter bar; on phones every battle is a compact card */

.loots-tools { margin: 0 0 16px; }
.loots-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.loots-tabs__tab.is-active { color: var(--on-accent); background: var(--primary); border-color: var(--primary); }
.loots-filter { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px 10px; }
.loots-filter__field { display: flex; flex-direction: column; flex: 1 1 150px; max-width: 220px; font-size: 13px; }
.loots-filter__label { margin-bottom: 2px; color: var(--muted); }
.loots-filter__input {
    width: 100%; padding: 6px 8px; font: inherit; font-size: 14px; line-height: 1.43;
    color: var(--text); background: var(--table-bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.loots-filter__input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.loots-filter__actions { display: flex; gap: 6px; }
.loots-note { text-align: center; color: var(--muted); }

@media (max-width: 767px) {
    .loots-filter__field { flex-basis: calc(50% - 5px); max-width: none; }
    .loots-filter__actions { flex-basis: 100%; justify-content: center; }
    .loots tbody tr {
        display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 4px;
        grid-template-areas: "items map date" "players players mobs";
    }
    .loots td { width: auto; padding: 0; }
    .loots td.loots__items { grid-area: items; text-align: left; }
    .loots td.loots__map { grid-area: map; text-align: left; overflow-wrap: anywhere; font-size: 14px; }
    .loots td.loots__date { grid-area: date; text-align: right; font-size: 13px; color: var(--muted); }
    .loots td.loots__players { grid-area: players; display: flex; flex-wrap: wrap; align-items: flex-end; text-align: left; }
    .loots td.loots__mobs { grid-area: mobs; text-align: right; }
    .loots .mob { max-height: 64px; }
    .loots .loots__items br { display: none; }
    .loots .battle_division { display: block; font-size: 12px; }
}

/* Hero cards (Potwory): one size, the card opens the loot of that monster */

a.box { color: inherit; text-decoration: none; }
a.box:hover, a.box:focus { color: inherit; text-decoration: none; }
a.box:hover .name, a.box:focus .name { text-decoration: underline; }
.mob-card { height: 205px; }
.mob-card .name { flex: none; height: 2.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mob-card .img { flex: none; }
.mob-card__date { margin-top: auto; font-size: 13px; color: var(--muted); }

/* Server heroes log */

.gheros td { vertical-align: middle; }
.gheros__hero a, .gheros__award a { display: inline-flex; align-items: center; gap: 8px; }
.gheros__outfit, .market-list__outfit { display: inline-block; vertical-align: middle; margin-right: 6px; }
.gheros__outfit .out, .market-list__outfit .out { margin: 0; }
.gheros__award .itemborder { flex: none; margin: 0; }
.gheros__date { white-space: nowrap; }
@media (max-width: 767px) {
    .gheros tbody tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 4px;
        grid-template-areas: "hero date" "player award" "map map";
    }
    .gheros td { width: auto; padding: 0; text-align: left; }
    .gheros td.gheros__hero { grid-area: hero; }
    .gheros td.gheros__date { grid-area: date; text-align: right; font-size: 13px; color: var(--muted); }
    .gheros td.gheros__player { grid-area: player; }
    .gheros td.gheros__award { grid-area: award; text-align: right; }
    .gheros td.gheros__map { grid-area: map; font-size: 14px; }
}

/* Start page on phones: both columns become one list in the order of importance */

@media (max-width: 767px) {
    .start-grid { display: flex; flex-direction: column; align-items: stretch; }
    .start-col { display: contents; }
    .start-card--kills { order: 1; }
    .start-card--loots { order: 2; }
    .start-card--ranking { order: 3; }
    .start-card--online { order: 4; }
    .start-card--gheros { order: 5; }
    .start-card--about { order: 6; }
    .start-card--params { order: 7; }
    .start-card--managers { order: 8; }
}

/* Server heroes (site/heroes.php): cards on ?t=mobs, small pictures in the kill log and on the start page */

.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.hero-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.hero-card__head { display: flex; align-items: center; gap: 12px; }
.hero-card__pic { flex: 0 0 96px; height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.hero-card__name { margin: 0; font-size: 19px; }
.hero-card__kills { font-size: 14px; }
.hero-drops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero-drop { display: flex; flex-direction: column; align-items: center; min-width: 40px; font-size: 13px; }
.hero-drop--text { justify-content: flex-end; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--radius); min-height: 34px; }
.hero-drop__chance { font-size: 12px; opacity: .8; }
.hero-mini { display: inline-flex; width: 40px; height: 40px; align-items: flex-end; justify-content: center; flex: 0 0 40px; }
.hero-mini img { max-width: 40px; max-height: 40px; width: auto; height: auto; }
.start-heroes li { display: flex; align-items: center; gap: 10px; }
.start-hero-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* Świat z dodatku (site/world.php): mob and NPC cards by map, on the hero card markup */

.world-maps { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 4px 0 12px; font-size: 14px; }
.world-map { margin-top: 18px; }
.world-cards { align-items: start; }
/* site.js packs the cards like a wall: 1px rows, each card spans its own height plus the gap */
.world-cards.is-packed { grid-auto-rows: 1px; row-gap: 0; }
.world-cards.is-packed > * { margin-bottom: 16px; }
.world-map .muted { font-size: 14px; font-weight: normal; }
.world-card .hero-card__name { font-size: 18px; }
.world-line { font-size: 14px; }
.world-info { font-style: italic; }
.world-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.world-tag { font-size: 12px; line-height: 1.4; padding: 0 7px; border: 1px solid var(--border); border-radius: 10px; opacity: .85; }
.world-spots, .world-goods-wrap { display: inline; }
.world-spots summary, .world-goods-wrap summary { display: inline; cursor: pointer; }
.world-spots span, details.world-spots[open] > span { display: block; font-size: 13px; color: var(--muted); }
span.world-spots { display: inline; }
.world-goods-wrap { display: block; font-size: 14px; }
.world-goods { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; font-size: 13px; line-height: 1.25; }
.world-goods li { display: flex; align-items: center; gap: 6px; }
.world-goods .itemborder { margin: 0; flex: none; }
.world-quest__stage { font-size: 14px; }
.world-quest__stage + .world-quest__stage { padding-top: 6px; border-top: 1px solid var(--border); }
.world-quest__titles { margin: 2px 0 0; padding-left: 22px; }
.world-note { font-size: 14px; padding-top: 6px; border-top: 1px dashed var(--border); }
.world-note p { margin: 0 0 6px; }
.world-note p:last-child { margin-bottom: 0; }
.world-text .world-note { padding-top: 0; border-top: 0; }
.hero-card__pic--item { height: auto; }

/* Banned characters and clans */
a.is-banned { text-decoration: line-through; opacity: .6; }
.profile__badge--ban { background: light-dark(#f3d6d6, #4a1e1e); color: light-dark(#8a1c1c, #f0b4b4); }
.clan__line { margin-top: -.5em; opacity: .8; }

/* Ranking-like tables on phones: one compact row per character or clan (Arena draws its own) */
@media (max-width: 767px) {
    .tbl--rank:not(.ar-rank) tbody tr:not(.more) {
        display: grid; grid-template-columns: 2.4em auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 6px 8px;
        grid-template-areas: "pos out nick lvl" "pos out prof ph";
    }
    .tbl--rank:not(.ar-rank) td { width: auto; padding: 0; border: 0; text-align: left; }
    .tbl--rank:not(.ar-rank) .rank__pos { grid-area: pos; text-align: center; font-weight: bold; opacity: .7; }
    .tbl--rank:not(.ar-rank) .ranking__out { grid-area: out; }
    .tbl--rank:not(.ar-rank) .ranking__out:empty { display: none; }
    .tbl--rank:not(.ar-rank) .rank__nick { grid-area: nick; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
    .tbl--rank:not(.ar-rank) .rank__lvl { grid-area: lvl; text-align: right; font-weight: bold; }
    .tbl--rank:not(.ar-rank) .rank__lvl::before { content: "Poz. "; font-weight: normal; font-size: 12px; opacity: .7; }
    .tbl--rank:not(.ar-rank) .rank__prof, .tbl--rank:not(.ar-rank) .rank__members { grid-area: prof; font-size: 13px; opacity: .75; }
    .tbl--rank:not(.ar-rank) .rank__members::before { content: "Członkowie: "; }
    .tbl--rank:not(.ar-rank) .rank__ph { grid-area: ph; text-align: right; font-size: 13px; opacity: .75; }
    .tbl--rank:not(.ar-rank) .rank__ph::after { content: " PH"; }
    .tbl--rank.clans:not(.ar-rank) tbody tr:not(.more) { grid-template-columns: 2.4em minmax(0, 1fr) auto; grid-template-areas: "pos nick lvl" "pos prof ph"; }
}

/* Phones: short tables stay tables, hero cards two in a row */

@media (max-width: 767px) {
    .tbl.tbl--keep { display: table; }
    .tbl--keep thead { display: table-header-group; }
    .tbl--keep tbody { display: table-row-group; }
    .tbl--keep tr { display: table-row; }
    .tbl--keep td { display: table-cell; width: auto; }
    .mobs-box .box { width: calc(50% - 12px); margin: 6px; }
}

.online-stale { margin: 0 0 8px; font-size: 13px; opacity: .75; }

/* the neon of a player under the outfit, at its feet like in the game (52x24, 16px above the bottom of the 48px sprite) */
.out-neon { position: relative; display: inline-block; vertical-align: bottom; }
.out-neon::before { content: ""; position: absolute; left: 50%; bottom: -7px; width: 52px; height: 24px; margin-left: -26px; background: var(--neon) no-repeat; pointer-events: none; }
.out-neon > .out { position: relative; }
.out--unknown img { image-rendering: pixelated; }
html.dark .out--unknown img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .45)); }
@media (prefers-color-scheme: dark) { html:not(.light) .out--unknown img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .45)); } }
a.out { color: inherit; }

.profile__dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #8a8f98; vertical-align: 1px; }
.profile__dot--on { background: #35b04a; box-shadow: 0 0 0 3px rgba(53, 176, 74, .22); }

.profile__pets-land { margin: 4px 0 10px; font-size: 15px; }
.profile__pet-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.profile__pet { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--stripe); }
.profile__pet-img { flex: none; display: block; width: 64px; height: 64px; overflow: hidden; }
.profile__pet-img img { display: block; width: 400%; max-width: none; height: auto; image-rendering: pixelated; }
.profile__pet-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile__pet-name { overflow-wrap: anywhere; }
.profile__pet-lvl { font-size: 13px; }
.profile__pet-form { font-size: 12px; }
.profile__pet--unique { border-left: 4px solid #d6b11e; }
.profile__pet--heroic { border-left: 4px solid #3a8fd9; }
.profile__pet--upgraded { border-left: 4px solid #b34fcf; }
.profile__pet--legendary { border-left: 4px solid #f07a1f; }
.profile__pet-gear { display: flex; gap: 4px; margin-top: 4px; }
.profile__pet-slot { width: 36px; height: 36px; }
.profile__pet-slot .itemborder { margin: 0; }

/* Targowisko: offer lists (tabs and filter bar come from the loot log), offers on the profile */

.market-filter__range { flex: 1 1 170px; max-width: 240px; }
.market-filter__pair { display: flex; gap: 4px; }
.market-filter__pair .loots-filter__input { min-width: 0; }
.market-note { text-align: center; }
.market-list th { text-align: left; }
.market-list td { vertical-align: middle; }
.market-item { display: flex; align-items: center; gap: 8px; }
.market-item .itemborder, .profile__market-offer .itemborder { flex: none; margin: 0; }
.market-item__text, .profile__market-text { display: flex; flex-direction: column; min-width: 0; }
.market-item__name { overflow-wrap: anywhere; }
.market-item__info { font-size: 13px; }
.market-list__want .itemborder { margin: 1px; }
.market-list__price, .market-list__date { white-space: nowrap; }
.market-badge { display: inline-block; padding: 0 5px; font-size: 12px; line-height: 1.5; border: 1px solid var(--border); border-radius: var(--radius); }
.market-badge--auction { border-color: var(--primary); }
.market-name--unique { color: light-dark(#8f6f00, #e8c547); }
.market-name--heroic { color: light-dark(#1d64b0, #5fb3f2); }
.market-name--upgraded { color: light-dark(#7a2fb0, #c792f0); }
.market-name--legendary { color: light-dark(#b85400, #ff9a2e); }
.market-name--artefact { color: light-dark(#b0261e, #ff6f62); }
.itemborder img.market-r--unique { background-position: -32px 0; }
.itemborder img.market-r--heroic { background-position: -64px 0; }
.itemborder img.market-r--upgraded { background-position: -96px 0; }
.itemborder img.market-r--legendary { background-position: -128px 0; }
.itemborder img.market-r--artefact { background-position: -160px 0; }
.profile__market-side { margin: 14px 0 8px; font-size: 15px; }
.profile__market-side:first-of-type { margin-top: 4px; }
.profile__market-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.profile__market-offer { display: flex; align-items: center; gap: 8px; }
.profile__market .profile__more { margin-top: 6px; }

@media (max-width: 767px) {
    .market-filter__range { flex-basis: calc(50% - 5px); max-width: none; }
    .market-list tbody tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 4px;
        grid-template-areas: "item price" "want want" "player date";
    }
    .market-list td { width: auto; padding: 0; text-align: left; }
    .market-list td.market-list__item { grid-area: item; }
    .market-list td.market-list__want { grid-area: want; }
    .market-list td.market-list__want:empty { display: none; }
    .market-list td.market-list__price { grid-area: price; text-align: right; }
    .market-list td.market-list__player { grid-area: player; font-size: 14px; }
    .market-list td.market-list__date { grid-area: date; text-align: right; font-size: 13px; color: var(--muted); }
}

/* Potwory: respawn timer (?t=ht&type=timer) */

.ht-timer { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 800px; margin: 0 auto 20px; }
.ht-timer__mob {
    display: flex; flex-direction: column; flex: 1 1 180px; max-width: 260px; padding: 4px 6px; text-align: center; font-weight: bold;
    color: var(--text); background: var(--panel-bg); border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
a.ht-timer__mob:hover, a.ht-timer__mob:focus { color: var(--text); text-decoration: none; }
a.ht-timer__mob:hover b, a.ht-timer__mob:focus b { text-decoration: underline; }
.ht-timer__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: normal; }
.ht-timer__mob--heros .ht-timer__prefix { color: light-dark(#c020c0, #fe5afb); }
.ht-timer__mob--tytan .ht-timer__prefix { color: light-dark(#2040d0, #6080ff); }
.ht-timer__mob--kolos .ht-timer__prefix { color: light-dark(#8900d1, #b060f0); }
.ht-timer__resp { font-variant-numeric: tabular-nums; }
.ht-timer .is-past-1, .ht-timer__tip .is-past-1 { color: light-dark(#c06000, orange); }
.ht-timer .is-past-2 { color: light-dark(#d03000, #ff4400); }
.ht-timer__tip { text-align: center; }
.ht-timer__tip img { max-width: 100%; }

/* Fantasy: parchment, gilding and a wooden beam drawn with CSS over a map of the world. */

@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Falegreya-italic-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Falegreya-italic-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Falegreya-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400; font-display: swap; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Falegreya-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Falegreya-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 700; font-display: swap; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Falegreya-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500; font-display: block; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Fcinzel-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500; font-display: block; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Fcinzel-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: block; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Fcinzel-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: block; src: url("/world.php?file=theme-asset&theme=fantasy&path=fonts%2Fcinzel-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --fx-accent: var(--opt-accent, #b8862b);
    --fx-accent-hi: color-mix(in srgb, var(--fx-accent) 60%, #fff3c4);
    --fx-accent-lo: color-mix(in srgb, var(--fx-accent) 70%, #2a1606);
    --fx-gold-line: linear-gradient(90deg, transparent, var(--fx-accent) 20%, var(--fx-accent-hi) 50%, var(--fx-accent) 80%, transparent);
    --fx-ink: light-dark(#3a2816, #eadcc2);
    --fx-ink-soft: light-dark(#6f5636, #b9a483);
    --fx-parch: light-dark(#f4e7c9, #2a2018);
    --fx-parch-deep: light-dark(#e6d3a8, #1d1610);
    --fx-tint: light-dark(transparent, rgba(8, 12, 36, .68));
    --fx-wood: light-dark(#4a2f1a, #22150c);
    --fx-wood-hi: light-dark(#6b4526, #3a2414);
    --fx-mote: light-dark(#f2c25a, #c8ff7a);
    --fx-row-line: light-dark(rgba(90, 60, 25, .22), rgba(234, 220, 194, .14));

    --font: Alegreya, Georgia, "Times New Roman", serif;
    --heading-font: Cinzel, Georgia, serif;
    --brand-font: 700 18px/46px Cinzel, Georgia, serif;
    --font-size: 16px;
    --radius: 3px;
    --nav-height: 46px;

    --bg: light-dark(#d9c7a0, #0c0f1e);
    --text: var(--fx-ink);
    --heading: light-dark(#4a2a10, #f0d9a8);
    --muted: var(--fx-ink-soft);
    --link: light-dark(#8a3b12, #f0c46a);
    --link-hover: light-dark(#5e2408, #ffe0a0);
    --code: light-dark(#7a2e10, #ffd58a);
    --code-bg: light-dark(rgba(120, 80, 30, .12), rgba(255, 220, 150, .1));

    --nav-bg: var(--fx-wood);
    --nav-border: var(--fx-accent);
    --nav-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    --nav-brand: var(--fx-accent-hi);
    --nav-link: #f1dfb8;
    --nav-link-hover: var(--fx-accent-hi);
    --nav-link-active: #fff3c4;
    --nav-active-bg: rgba(255, 220, 140, .12);

    --border: var(--fx-row-line);
    --table-bg: transparent;
    --table-head-bg: transparent;
    --stripe: light-dark(rgba(140, 100, 40, .07), rgba(255, 230, 180, .04));
    --row-hover: light-dark(rgba(184, 134, 43, .14), rgba(240, 196, 106, .09));
    --panel-bg: var(--fx-parch-deep);
    --panel-border: 1px solid color-mix(in srgb, var(--fx-accent) 55%, transparent);
    --panel-shadow: inset 0 0 0 3px var(--fx-parch), inset 0 0 0 4px color-mix(in srgb, var(--fx-accent) 45%, transparent), 0 3px 10px rgba(40, 20, 0, .25);
    --pager-bg: transparent;
    --pager-border: transparent;
    --pager-link: #2b1806;

    --primary: light-dark(#2f4a72, #3d5f94);
    --success: light-dark(#3f6b34, #4d8240);
    --warning: light-dark(#b0681a, #c97a22);
    --on-accent: #fff8e6;
    --btn-bg: var(--fx-parch-deep);
    --btn-border: var(--fx-accent);
    --btn-text: var(--fx-ink);

    --mob-name: light-dark(#7a2e10, #f0c46a);
}

/* Background: the chosen map under a warm tint by day and a moonlit one by night */

body {
    padding-top: 0;
    background:
        linear-gradient(var(--fx-tint), var(--fx-tint)) fixed,
        var(--opt-map, none) center top / auto fixed,
        var(--bg);
}
html.dark body { background-image: linear-gradient(var(--fx-tint), var(--fx-tint)), var(--opt-night_map, var(--opt-map, none)); }
@media (prefers-color-scheme: dark) {
    html:not(.light) body { background-image: linear-gradient(var(--fx-tint), var(--fx-tint)), var(--opt-night_map, var(--opt-map, none)); }
}

h2, h3, h4 { letter-spacing: .03em; }
h3 { font-size: 26px; text-align: center; margin: 26px 0 16px; }
h3::after { content: ''; display: block; width: 180px; height: 2px; margin: 10px auto 0; background: var(--fx-gold-line); }
h4 { font-size: 19px; }

.fx-motes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Header: the name of the world over the map */

.fx-hero {
    position: relative; z-index: 1; height: 230px; display: flex; align-items: center; text-align: center;
    background: linear-gradient(light-dark(transparent, rgba(5, 8, 25, .25)), transparent 70%);
}
[data-opt-hero="low"] .fx-hero { height: 140px; }
.fx-hero__inner { position: relative; }
.fx-hero__title {
    display: inline-block; font: 700 clamp(34px, 6vw, 64px)/1.1 var(--heading-font); letter-spacing: .06em;
    color: light-dark(#4a2a10, #f6dfa6);
    text-shadow: 0 1px 0 light-dark(#fff6dc, #000), 0 0 18px light-dark(rgba(255, 244, 214, .95), rgba(240, 190, 90, .45)), 0 0 42px light-dark(rgba(255, 240, 200, .8), rgba(0, 0, 0, .8));
}
.fx-hero__title:hover, .fx-hero__title:focus { text-decoration: none; color: light-dark(#2e1806, #fff0c8); }
.fx-hero__motto {
    margin: 6px 0 0; font-style: italic; font-size: 20px; color: light-dark(#4f3518, #e4d2ad);
    text-shadow: 0 1px 0 light-dark(#fff6dc, #000), 0 0 14px light-dark(rgba(255, 244, 214, .95), rgba(0, 0, 0, .9));
}
.fx-divider { display: block; width: 280px; max-width: 70vw; height: 2px; margin: 14px auto 0; background: var(--fx-gold-line); box-shadow: 0 0 8px color-mix(in srgb, var(--fx-accent) 60%, transparent); }
@media (max-width: 767px) {
    .fx-hero { height: 160px; }
    [data-opt-hero="low"] .fx-hero { height: 115px; }
}

/* Menu: a wooden beam with gilded edges that sticks to the top */

.site-nav {
    position: sticky; top: 0;
    background: linear-gradient(var(--fx-wood-hi), var(--fx-wood) 45%, color-mix(in srgb, var(--fx-wood) 80%, #000)) top / 100% var(--nav-height) repeat-y;
    border-top: 2px solid var(--fx-accent); border-bottom: 2px solid var(--fx-accent);
}
.site-nav__brand { display: none; }
.site-nav__links { justify-content: center; }
.site-nav__links a, .site-nav__mode {
    padding-top: 13px; padding-bottom: 13px;
    font: 500 13px/20px var(--heading-font); letter-spacing: .06em; text-transform: uppercase;
    transition: color .2s, text-shadow .2s;
}
.site-nav__links a:hover, .site-nav__links a:focus { text-shadow: 0 0 10px color-mix(in srgb, var(--fx-accent) 80%, transparent); }
.site-nav__links a.is-active { background: none; box-shadow: inset 0 -2px 0 var(--fx-accent); }
@media (max-width: 767px) {
    .site-nav__brand { display: block; font-size: 17px; }
    .site-nav__links { justify-content: flex-start; }
    .site-nav { background-repeat: no-repeat; background-color: color-mix(in srgb, var(--fx-wood) 80%, #000); }
}

/* The parchment sheet with the page, in a double gilded frame */

.site-main { position: relative; z-index: 1; padding-top: 28px; }
.fx-scroll {
    position: relative; padding: 24px 34px;
    background:
        radial-gradient(ellipse at 20% 10%, light-dark(rgba(255, 250, 230, .7), rgba(255, 220, 160, .05)), transparent 60%),
        radial-gradient(ellipse at 85% 90%, light-dark(rgba(150, 100, 40, .18), rgba(0, 0, 0, .35)), transparent 55%),
        var(--fx-parch);
    border: 1px solid color-mix(in srgb, var(--fx-accent) 60%, transparent);
    box-shadow:
        inset 0 0 0 5px var(--fx-parch),
        inset 0 0 0 6px color-mix(in srgb, var(--fx-accent) 45%, transparent),
        inset 0 0 60px light-dark(rgba(120, 80, 20, .25), rgba(0, 0, 0, .6)),
        0 10px 30px rgba(20, 10, 0, .4);
}
@media (max-width: 767px) {
    .site-main { padding-left: 6px; padding-right: 6px; }
    .fx-scroll { padding: 16px 12px; }
}

/* Tables: entries in a ledger */

.tbl { font-size: 15px; }
.tbl th {
    font: 700 13px/1.4 var(--heading-font); letter-spacing: .1em; text-transform: uppercase; color: var(--heading);
    border-bottom: 2px solid color-mix(in srgb, var(--fx-accent) 70%, transparent);
}
.tbl td { border-top: 1px dashed var(--fx-row-line); }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { box-shadow: inset 3px 0 0 var(--fx-accent); }
.tbl tr.more td { font-style: italic; }

/* Buttons: gilded plates; pager: coins */

.btn {
    font: 700 13px/1.5 var(--heading-font); letter-spacing: .08em; text-transform: uppercase; padding: 7px 16px;
    border-radius: 2px; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(30, 15, 0, .3);
    background-image: linear-gradient(rgba(255, 255, 255, .16), rgba(0, 0, 0, .14));
}
.btn--primary, .btn--success, .btn--warning { border-color: var(--fx-accent); }
.btn:hover { filter: brightness(1.08); }

.pager { gap: 6px; }
.pager a, .pager span {
    min-width: 36px; height: 36px; padding: 0 6px; margin: 0; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50% !important; font: 700 14px var(--heading-font);
    background: radial-gradient(circle at 35% 30%, var(--fx-accent-hi), var(--fx-accent) 55%, var(--fx-accent-lo));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fx-accent-lo) 60%, transparent), 0 2px 3px rgba(30, 15, 0, .35);
}
.pager a:hover { background: radial-gradient(circle at 35% 30%, #fff6d0, var(--fx-accent-hi) 60%, var(--fx-accent)); text-decoration: none; }
.pager .pager__current { background: var(--fx-wood); color: var(--fx-accent-hi); border: 0; }

/* Cards of the monsters page: portraits in gilded frames */

.box {
    background: linear-gradient(light-dark(rgba(255, 250, 235, .6), rgba(255, 230, 180, .04)), transparent), var(--fx-parch-deep);
    border: 2px solid var(--fx-accent); border-radius: 2px;
    box-shadow: inset 0 0 0 3px var(--fx-parch-deep), inset 0 0 0 4px color-mix(in srgb, var(--fx-accent) 50%, transparent), 0 4px 10px rgba(30, 15, 0, .3);
    transition: transform .2s, box-shadow .2s;
}
.box:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--fx-parch-deep), inset 0 0 0 4px var(--fx-accent), 0 8px 18px rgba(30, 15, 0, .4), 0 0 18px color-mix(in srgb, var(--fx-accent) 35%, transparent); }
.box .name { font: 700 16px/1.2 var(--heading-font); }
.mobs-box h3 { margin-top: 30px; }

.itemborder img, .mob, .out { transition: filter .2s; }
.itemborder img:hover, .mob:hover, .out:hover { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--fx-accent) 85%, transparent)); }
.filter-note, .empty { font-style: italic; }

/* Footer: the beam again */

.site-footer {
    position: relative; z-index: 1; margin-top: 30px; color: #e9d6ae;
    background: linear-gradient(var(--fx-wood-hi), var(--fx-wood));
    border-top: 2px solid var(--fx-accent);
}
.site-footer a { color: var(--fx-accent-hi); }
.site-footer .container::before { content: ''; display: block; width: 200px; height: 2px; margin: 0 auto 14px; background: var(--fx-gold-line); }

@media (prefers-reduced-motion: reduce) {
    .box, .box:hover { transition: none; transform: none; }
}

/* Start page: tiles and cards framed like the monster cards, the first places on gold coins */

.page-start .start-meta { margin-top: 0; color: var(--fx-ink-soft); font-style: italic; }
.start-badge { border-color: var(--fx-accent); color: var(--heading); font: 700 11px/1.6 var(--heading-font); font-style: normal; }
.start-stat {
    background: linear-gradient(light-dark(rgba(255, 250, 235, .6), rgba(255, 230, 180, .04)), transparent), var(--fx-parch-deep);
    border: 2px solid var(--fx-accent); border-radius: 2px;
    box-shadow: inset 0 0 0 3px var(--fx-parch-deep), inset 0 0 0 4px color-mix(in srgb, var(--fx-accent) 50%, transparent), 0 4px 10px rgba(30, 15, 0, .25);
}
.start-stat__value { color: var(--link); text-shadow: 0 1px 0 light-dark(#fff6dc, #000); }
.start-stat__label { font: 700 11px/1.4 var(--heading-font); letter-spacing: .1em; }
.start-card__title { font-size: 21px; }
.start-card__more { font-style: italic; }
.start-rank__place {
    flex-basis: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 14px; color: #2b1806;
    background: radial-gradient(circle at 35% 30%, var(--fx-accent-hi), var(--fx-accent) 55%, var(--fx-accent-lo));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fx-accent-lo) 60%, transparent), 0 2px 3px rgba(30, 15, 0, .35);
}
.start-rank:nth-child(n+4) .start-rank__place { filter: saturate(.2) brightness(1.05); }
.start-rank, .start-kill, .start-list li, .start-params th, .start-params td { border-top-style: dashed; }
.start-params th { font: 700 12px/1.6 var(--heading-font); letter-spacing: .06em; text-transform: uppercase; }
