/* CombatsLite — оформление в духе бойцовских клубов 2002 года */

body {
    background: #e6e6e6;
    color: #000000;
    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin: 0;
    padding: 0;
}
body.simple { padding: 6px; background: #ececec; }
a { color: #1a3a8a; }
a:hover { color: #cc0000; }
h1 { font-size: 15px; font-weight: bold; margin: 8px 0 6px 0; color: #8b1a1a; }
h2 { font-size: 12px; font-weight: bold; margin: 10px 0 4px 0; color: #8b1a1a; }
p { margin: 4px 0 6px 0; }
input, select, textarea, button {
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 12px;
}
input[type=text], input[type=password], input[type=number], select, textarea {
    border: 1px solid #888;
    padding: 2px 3px;
    background: #fff;
}
input[type=submit], button {
    border: 1px solid #777;
    background: #d8d8d8;
    padding: 1px 8px;
    cursor: pointer;
}
input[type=submit]:hover, button:hover { background: #c8c8c8; }
img.ic { vertical-align: middle; margin: 0 1px; }
/* значок склонности перед ником: чуть приподнят к строке и с отступом до имени */
img.ic-al { vertical-align: -3px; margin: 0 3px 0 0; }
small, .small { font-size: 10px; color: #555; }
.sep { color: #888; }
.gray { color: #777; }
.red { color: #b00; }
.green { color: #080; }
.blue { color: #039; }

/* ----- меню и строка состояния ----- */
table.menu {
    background: #d2d2d2;
    border-bottom: 1px solid #a0a0a0;
    border-top: 3px solid #8b1a1a;
}
table.menu td { white-space: normal; line-height: 18px; }
table.menu a { color: #1a3a8a; text-decoration: none; font-weight: bold; }
table.menu a:hover { text-decoration: underline; color: #c00; }
table.menu .menu-off { color: #999; font-weight: bold; }
table.menu a.adm { color: #900; }
table.status {
    background: #dedede;
    border-bottom: 1px solid #b8b8b8;
}
table.status td { white-space: nowrap; padding-left: 8px; }
table.status td.st-city { text-align: right; color: #555; padding-right: 8px; width: 100%; }
table.status td.st-free a { color: #c00; font-weight: bold; }
.content { padding: 4px 8px; }
.foot { padding: 10px 8px; color: #888; font-size: 10px; border-top: 1px solid #ccc; margin-top: 12px; }

/* ----- сообщения ----- */
.msg-ok { background: #e8f5e0; border: 1px solid #8c8; padding: 4px 8px; margin: 4px 0; }
.msg-err { background: #fbe6e6; border: 1px solid #d88; padding: 4px 8px; margin: 4px 0; color: #800; }

/* ----- таблицы ----- */
table.b { border-collapse: collapse; background: #f4f4f4; }
table.b td, table.b th { border: 1px solid #b8b8b8; padding: 3px 6px; vertical-align: top; }
table.b th { background: #d2d2d2; font-weight: bold; text-align: left; }
table.b tr.hi td { background: #fffbe0; }
table.b tr.me td { background: #e6ecf8; }
table.list td { padding: 2px 6px; }

/* ----- здоровье ----- */
.hpwrap { white-space: nowrap; }
.hpbar { display: inline-block; height: 9px; border: 1px solid #555; background: #fff; vertical-align: middle; margin-left: 2px; }
.hpfill { display: block; height: 9px; }
.hpfill.hp-g { background: #1f9a1f; }
.hpfill.hp-y { background: #e8e000; }
.hpfill.hp-r { background: #d01010; }
.hptxt { }

/* ----- ник ----- */
.ctag { color: #555; font-size: 10px; }

/* ----- карточка персонажа ----- */
.statlines { margin-top: 8px; line-height: 17px; }
.statlines a.plus { color: #060; font-weight: bold; text-decoration: none; border: 1px solid #6a6; padding: 0 4px; background: #efe; margin-left: 4px; }
.room-loc { margin-top: 6px; text-align: center; }
table.stats td { padding: 2px 6px; }
table.stats td.v { font-weight: bold; text-align: right; }

/* ----- предметы ----- */
/* картинка вещи: сама вещь на прозрачном фоне, вокруг единый квадрат-рамка — так же она сядет в ячейку экипировки */
/* серая подложка под каждой вещью, как на карточках клуба, — чтобы вещь выделялась */
img.item-img { vertical-align: middle; border: 1px solid #c9c9c9; background: #e6e6e6; border-radius: 2px; }
table.items td.pic { width: 44px; text-align: center; }
.item-name { font-weight: bold; }
.item-props { color: #333; }
.item-req { color: #777; font-size: 10px; }
.item-dur { color: #777; font-size: 10px; }
.dur-low { color: #b00; }

/* ----- поединок ----- */
table.fight { width: 100%; }
table.fight td.side { width: 200px; vertical-align: top; padding: 0 4px; }
table.fight td.mid { vertical-align: top; padding: 0 12px; }
.ftitle { color: #8b1a1a; font-size: 16px; font-weight: bold; text-align: center; margin: 0 0 6px 0; }
.fmove { color: #8b1a1a; font-weight: bold; }
table.zonebox { margin: 0 auto; border-collapse: separate; }
table.zonebox th { background: #d2d2d2; font-weight: bold; text-align: center; padding: 2px 30px; }
table.zonebox td { padding: 2px 6px; vertical-align: top; white-space: nowrap; }
table.zonebox td label { display: block; padding: 2px 0; cursor: pointer; }
table.zonebox td.btn { text-align: center; padding-top: 4px; }
.fteams { border-top: 1px solid #999; border-bottom: 1px solid #999; padding: 6px 0; margin: 12px 0 8px 0; }
.log { margin-top: 4px; }
.log .ll { padding: 2px 0; line-height: 17px; }
.log .lt { color: #1a7a1a; background: #c8f0c8; padding: 0 2px; font-size: 11px; }
.log .lend { font-weight: bold; }
.log .lwhen { color: #333; }
.log .dmg { color: #c00; font-weight: bold; }
.log .hpv { color: #333; }
.ln { font-weight: bold; }
.ln1 { color: #2a4fd0; }
.ln2 { color: #c06a00; }
.ln0 { color: #000; }
.waiting { color: #666; font-style: italic; }
.timer { color: #900; font-weight: bold; }
.ftimeout { color: #777; }
.fresult { font-size: 14px; font-weight: bold; text-align: center; margin: 6px 0; }

/* ----- чат ----- */
#chatbox { overflow-y: auto; background: #f4f4f4; padding: 2px 4px; }
.cl { padding: 1px 0; line-height: 15px; word-wrap: break-word; }
.ct { color: #777; font-size: 10px; }
.cn { font-weight: bold; text-decoration: none; color: #1a3a8a; }
.cn:hover { text-decoration: underline; }
.cs { color: #a00; }
.cf { color: #666; }
.cp { color: #0066cc; }
.cpriv { color: #0066cc; font-weight: bold; font-size: 10px; }
.cme { background: #fff3c0; }
#online { overflow-y: auto; background: #e6e6e6; padding: 2px 4px; }
#online .ou { padding: 1px 0; white-space: nowrap; }
#online .ou a { text-decoration: none; color: #000; font-weight: bold; }
#online .ou a:hover { text-decoration: underline; }
#online .infight a { color: #777; }
#online .oh { font-weight: bold; color: #555; border-bottom: 1px solid #bbb; margin-bottom: 2px; }
#chaterr { color: #b00; font-size: 10px; }

/* ----- вход ----- */
.login-box { width: 380px; margin: 40px auto; border: 1px solid #a8a8a8; background: #f2f2f2; padding: 12px 16px; }
.login-box h1 { margin-top: 0; }
.logo { font-size: 22px; font-weight: bold; color: #8b1a1a; letter-spacing: 1px; font-family: Georgia, "Times New Roman", serif; }
.logo small { display: block; font-size: 10px; color: #777; letter-spacing: 0; font-family: Verdana, sans-serif; }

/* ----- инфо о персонаже ----- */
.info-box { max-width: 620px; }

/* ----- карточка предмета при наведении ----- */
.tip { position: relative; display: inline-block; }
.tip .tipbox { display: none; position: absolute; left: 44px; top: 0; z-index: 10; width: 260px;
    background: #fffdf0; border: 1px solid #888; padding: 6px 8px; text-align: left; box-shadow: 2px 2px 4px rgba(0,0,0,.25); }
.tip:hover .tipbox { display: block; }
.icard { font-size: 11px; line-height: 15px; }

.newsitem { margin-bottom: 10px; line-height: 16px; }
.avpick label { display: inline-block; text-align: center; margin: 0 4px 4px 0; vertical-align: top; }
.avpick img { border: 1px solid #aaa; background: #e4e4e4; display: block; }

/* ----- вход в клуб / регистрация — классический чёрный экран 2002 года ----- */
html:has(body.entrypage) { height: 100%; }
body.entrypage {
    background: #000000; color: #a89a6a; margin: 0; padding: 0;
    min-height: 100vh; display: flex; flex-direction: column;
}
.entrywrap { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 10px 14px; text-align: center; }
.entry-banner { margin-bottom: 16px; }
.entry-banner img { display: block; max-width: 94vw; height: auto; }
.entry-err { color: #ffb0b0; background: #340404; border: 1px solid #7a1414; padding: 5px 12px; margin-bottom: 12px; font-size: 11px; }
.entry-ok { color: #d8e8b0; background: #142e04; border: 1px solid #3a6a14; padding: 5px 12px; margin-bottom: 12px; font-size: 11px; }
table.entryform { border-collapse: collapse; margin: 0 auto; }
table.entryform td.entry-side { width: 128px; vertical-align: middle; font-size: 10px; color: #9a8c60; padding: 0 16px; line-height: 13px; }
table.entryform td.entry-side img { display: block; margin: 0 auto 6px; }
table.entryform td.entry-mid { padding: 0 22px; border-left: 1px solid #332a18; border-right: 1px solid #332a18; }
table.entry-fields { margin: 0 auto; }
table.entry-fields td { padding: 3px 6px; text-align: left; font-size: 11px; color: #b8aa78; }
table.entry-fields input[type=text], table.entry-fields input[type=password] {
    background: #141210; border: 1px solid #5a4e28; color: #e8d8a0; padding: 3px 5px;
}
.entry-btns { margin-top: 12px; }
.btn-classic {
    display: inline-block; min-width: 92px; text-align: center; margin: 0 4px; vertical-align: middle;
    background: linear-gradient(#544a34, #201b10);
    border-top: 1px solid #8a7a50; border-left: 1px solid #8a7a50;
    border-right: 1px solid #100d08; border-bottom: 1px solid #100d08;
    color: #e8d8a0; font-weight: bold; font-size: 11px; padding: 4px 12px; text-decoration: none; cursor: pointer;
}
.btn-classic:hover { background: linear-gradient(#645840, #2a2418); color: #fff2c0; }
input[type=submit].btn-classic, button.btn-classic {
    font-family: inherit; appearance: none; -webkit-appearance: none;
    background: linear-gradient(#544a34, #201b10);
    border-top: 1px solid #8a7a50; border-left: 1px solid #8a7a50;
    border-right: 1px solid #100d08; border-bottom: 1px solid #100d08;
    color: #e8d8a0;
}
input[type=submit].btn-classic:hover, button.btn-classic:hover { background: linear-gradient(#645840, #2a2418); color: #fff2c0; }
.entry-footbar { flex: 0 0 auto; width: 100%; box-sizing: border-box; position: relative; border-top: 1px solid #241e10; padding: 8px 14px 28px; text-align: center; }
.entry-menu { font-size: 10px; }
.entry-menu a { color: #9a8c60; text-decoration: none; }
.entry-menu a:hover { color: #e8d8a0; text-decoration: underline; }
.entry-copy { position: absolute; right: 14px; bottom: 8px; font-size: 10px; color: #665a38; }
body.entrypage .avpick img { background: #141210; border-color: #5a4e28; }
body.entrypage .avpick { color: #b8aa78; }
body.entrypage h2 { color: #c9a24a; }

/* ----- анкета регистрации на "пергаменте", как в классических флеш-версиях клуба ----- */
.parchment {
    background: linear-gradient(#f2e7c4, #e2d09e);
    border: 5px solid #241a0c;
    box-shadow: 0 0 0 1px #8a7346 inset, 0 10px 26px rgba(0,0,0,.65);
    color: #2a2015;
    padding: 20px 30px 24px;
    width: 560px;
    max-width: 92vw;
    box-sizing: border-box;
    text-align: left;
    border-radius: 3px;
}
.parchment .p-title { color: #6b1418; border-bottom: 2px solid #8a7346; padding-bottom: 6px; margin-bottom: 12px; }
.parchment .p-err { color: #6b1418; background: #f3d9d9; border: 1px solid #8b1a1a; }
.p-row { margin-bottom: 11px; font-size: 12px; }
.p-label { display: inline-block; min-width: 190px; font-weight: bold; color: #241a0c; }
.p-hint { margin: 3px 0 0 0; font-size: 10px; color: #6b5a38; max-width: 480px; }
.p-warn { border: 1px solid #8b1a1a; background: #f3e6c8; color: #6b1418; padding: 7px 10px; margin: 4px 0 12px; font-size: 11px; max-width: 480px; }
.parchment input[type=text], .parchment input[type=password], .parchment select {
    background: #fbf3dc; border: 1px solid #8a7346; color: #2a2015; padding: 3px 5px;
}
.parchment a { color: #6b1418; }
.parchment a.btn-classic { color: #e8d8a0; }
.parchment a.btn-classic:hover { color: #fff2c0; }
.parchment .avpick img { background: #fbf3dc; border-color: #8a7346; }
.parchment .avpick { color: #2a2015; }
.captcha-img { vertical-align: middle; border: 1px solid #8a7346; cursor: pointer; margin-right: 6px; }

/* ----- [ Рюкзак ] [ Образы ] [ Анкета ] ----- */
.invnav { margin: 0 0 8px 0; font-weight: bold; color: #555; }
.invnav a { text-decoration: none; }
.invnav a:hover { text-decoration: underline; }

/* ----- классическая панель с заголовком (анкета, рюкзак) ----- */
.panel { border: 1px solid #b8b8b8; background: #f4f4f4; margin: 0 0 14px 0; max-width: 440px; }
.panel .panel-h, .section-h { background: #d2d2d2; border-bottom: 1px solid #b8b8b8; padding: 3px 8px; font-weight: bold; color: #8b1a1a; font-size: 12px; }
.section-h { border-top: 1px solid #b8b8b8; margin: 0; }
.panel .panel-b { padding: 9px 11px; }
.panel .panel-b p:first-child { margin-top: 0; }
table.pf td { padding: 2px 6px 2px 0; vertical-align: top; }
table.pf td.pf-l { color: #555; white-space: nowrap; }
.charbox { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
table.avgrid td.avcell { text-align: center; vertical-align: top; padding: 4px; border: 1px solid #c0c0c0; background: #ececec; }
table.avgrid td.avcur { border: 2px solid #8b1a1a; background: #f6efe6; }
table.avgrid img { border: 1px solid #999; background: #e4e4e4; display: block; margin: 0 auto 3px auto; }

.log .linj { color: #c00000; font-weight: bold; }
table.zonebox td.scrollrow { text-align: left; border-top: 1px solid #c8c8c8; padding-top: 6px; white-space: normal; }
/* настройки хода: запоминание, варианты, автоход */
table.zonebox td.prefrow { text-align: left; border-top: 1px solid #c8c8c8; padding-top: 5px; white-space: normal; font-size: 11px; color: #444; }
table.zonebox td.prefrow label { display: inline; padding: 0; margin-right: 10px; }
.fp-sets { margin-right: 10px; white-space: nowrap; }
.fp-set { font: bold 10px Verdana, Tahoma, sans-serif; width: 20px; height: 18px; padding: 0; margin: 0 1px; border: 1px solid #999; background: #f2f2f2; color: #777; cursor: pointer; border-radius: 2px; }
.fp-set.has { color: #222; background: #e6e6e6; }
.fp-set.on { border-color: #8b0000; box-shadow: inset 0 0 0 1px #c55; background: #fff; }
.fp-cnt { color: #8b0000; font-weight: bold; }

/* ===== Классический вид клуба 2002 года: карточка, комната, инфо, магазин, чат ===== */
.hpbar { height: 10px; border: 1px solid #333; background: #fff; }
.hpfill { height: 10px; }
.hpfill.hp-g { background: #2f9e2f; }
.hpfill.hp-y { background: #d8c800; }
.hpfill.hp-r { background: #c81010; }
.statlines { line-height: 17px; font-size: 12px; }
.room-stats { margin-top: 24px; }
.info-stats { margin-top: 24px; }
.stat-sep { border: 0; border-top: 1px solid #8a8a8a; margin: 9px 0 9px 0; width: 240px; margin-left: 0; }
.room-loc { margin-top: 5px; }
.room-loc b { font-size: 12px; }
.room-loc .small, .info-loc .small { font-size: 10px; color: #333; }
.info-loc { text-align: center; margin-top: 5px; }
.anketa-h { color: #8b0000; font-weight: bold; font-size: 15px; text-align: center; margin: 22px 0 10px 0; }
.anketa { line-height: 17px; }
.info-box { max-width: 720px; }

/* блок предмета: магазин, рюкзак */
.shop-h { background: #d2d2d2; border: 1px solid #b0b0b0; padding: 3px 8px; font-weight: bold; text-align: center; margin: 6px 0 0 0; }
table.ib { width: 100%; border-collapse: collapse; background: #eeeeee; border: 1px solid #c4c4c4; border-top: none; }
table.ib td { vertical-align: top; padding: 6px 8px; }
table.ib td.ib-pic { width: 70px; text-align: center; background: #e2e2e2; border-right: 1px solid #c4c4c4; }
table.ib td.ib-pic img.item-img { display: block; margin: 2px auto 4px; width: 48px; height: 48px; }
.ib-act form { margin: 0; }
.ib-name { color: #1a3a8a; font-weight: bold; }
.ib-price { color: #c00; font-weight: bold; }
table.ib ul { margin: 1px 0 3px 0; padding-left: 15px; }
table.ib li { line-height: 15px; }
input.lnk { display: block; margin: 0 auto; background: none; border: none; padding: 1px 0; color: #1a3a8a; font-weight: bold; font-size: 11px; cursor: pointer; }
input.lnk:hover { text-decoration: underline; background: none; color: #c00; }

/* чат */
#chatbox { background: #ffffff; }
.ct { color: #2f8f2f; background: #d9f0d9; padding: 0 2px; font-size: 10px; }
.cto { color: #555; }
#online { background: #f2f2f2; }

/* поединок */
.ftitle { color: #8b0000; font-size: 15px; }
.log .lt { background: none; color: #2f8f2f; font-size: 11px; }
.avimg { filter: grayscale(1); }

/* ===== Современный вид клуба: чёрный бокс фигуры, HP внутри карточки, рюкзак, чат-слой ===== */

/* кнопки-вкладки сверху справа */
.topbtns { text-align: right; margin: 0 0 6px 0; }
.btn2 { display: inline-block; background: #d8d8d8; border: 1px solid #a0a0a0; color: #1a3a8a; font-size: 10px; padding: 2px 8px; margin-left: 4px; text-decoration: none; }
.btn2:hover { background: #c8c8c8; color: #c00; }
.btn3 { font-size: 10px; padding: 1px 8px; }

/* рюкзак */
table.invwrap { width: 100%; }
table.invwrap td { vertical-align: top; }
table.invwrap td.inv-left { width: 250px; padding-right: 12px; }
table.invwrap td.inv-right { width: auto; }
.inv-stats { margin-top: 8px; line-height: 17px; }
.inv-sect { font-weight: bold; border-bottom: 1px solid #999; margin: 10px 0 3px 0; padding-bottom: 1px; }
.inv-lines { line-height: 16px; }
.tabs { background: #c9c9c9; border: 1px solid #a8a8a8; border-bottom: none; padding: 0; display: flex; flex-wrap: wrap; }
.tabs .tab { display: inline-block; padding: 4px 14px; font-weight: bold; color: #1a3a8a; text-decoration: none; font-size: 13px; }
.tabs .tab.on { background: #f0f0f0; color: #1a3a8a; }
.tabs .tab:hover { color: #c00; }
.ib-empty { background: #eeeeee; border: 1px solid #c4c4c4; border-top: none; padding: 12px; }
table.ib td.ib-body b, table.ib td.ib-body .ib-price { font-weight: bold; }
input.lnk { font-size: 12px; }

/* образы */
.av-title { color: #8b0000; font-weight: bold; font-size: 15px; text-align: center; margin: 4px 0 6px 0; }
table.avgrid td.avcell { background: #000; border: 1px solid #333; padding: 3px; }
table.avgrid td.avcur { border: 2px solid #b00; background: #000; }
table.avgrid img { border: none; background: #000; filter: none; }
table.avgrid label { color: #ccc; cursor: pointer; }
table.avgrid label .small { color: #bbb; }
.avimg { filter: none; }

/* чат-слой */
#chatbox { flex: 1 1 auto; height: auto; overflow-y: auto; background: #f4f4f4; border: none; padding: 3px 6px; }
#online { flex: 1 1 auto; overflow-y: auto; background: #faf2f2; padding: 0 6px 4px 8px; }
#online .oh { color: #b00000; font-weight: bold; font-size: 13px; border: none; margin: 0 0 4px 0; }
#online .ou { padding: 1px 0 1px 8px; }
#online .ou a { color: #1a3a8a; }
.cl .cn { color: #1a3a8a; }
.cl.cs { color: #c00; }

/* ===== админка ===== */
.adm-tabs { margin-bottom: 10px; }
.adm-tabs .tab { font-size: 12px; padding: 3px 10px; }
.adm-tabs .tab.back { margin-left: auto; color: #555; }
table.b input[type=number] { width: 64px; }
table.b td.lbl { color: #333; white-space: nowrap; }
table.b td.hint { color: #777; font-size: 10px; }
table.b tr.ovr td { background: #fffbe0; }
.avgrid-adm { display: flex; flex-wrap: wrap; gap: 8px; }
.avcard { width: 132px; background: #f4f4f4; border: 1px solid #b8b8b8; padding: 4px; text-align: center; font-size: 10px; }
.avcard img { width: 60px; height: 120px; background: #000; border: 1px solid #444; display: block; margin: 0 auto 3px; object-fit: contain; }
.avcard .nm { font-weight: bold; font-size: 11px; }
.avcard form { margin: 2px 0 0 0; }
.motd { margin: 0 0 8px 0; }
.adm-box { border: 1px solid #b8b8b8; background: #f4f4f4; padding: 8px 10px; margin: 0 0 10px 0; }
.adm-box h3 { margin: 0 0 6px 0; font-size: 12px; color: #8b1a1a; }
.adm-cols { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.adm-cols > div { flex: 1 1 320px; }
select.avsel { max-width: 220px; }
input.danger { color: #b00; }

/* компактный режим админки */
body.adm .content { padding: 4px 8px; }
body.adm h2 { margin: 8px 0 4px; }
body.adm table.b td, body.adm table.b th { padding: 2px 5px; font-size: 11px; }
body.adm table.b input[type=number] { width: 58px; padding: 1px 2px; font-size: 11px; }
body.adm table.b input[type=text], body.adm select, body.adm textarea { font-size: 11px; padding: 1px 3px; }
body.adm table.quick td.pic img { width: 28px; height: 28px; }
body.adm table.b tr.me td { background: #e8e8e8; color: #666; }
body.adm .adm-box { padding: 5px 8px; margin-bottom: 6px; }
body.adm .adm-cols { gap: 8px; }
body.adm h3 { font-size: 11px; }
body.adm .foot { display: none; }

/* ===== залы, площадь, плитки админки ===== */
.halls-title { margin: 2px 0 8px; font-size: 12px; }
.red-title { color: #8b0000; font-weight: bold; font-size: 15px; }
.halls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hall { display: flex; gap: 8px; border: 2px solid #9a9a9a; padding: 6px; box-shadow: 1px 1px 3px rgba(0,0,0,.3); }
.hall.here { border-color: #8b0000; }
.hall.locked { opacity: .78; }
.hall-ic img { width: 48px; height: 48px; background: #fff; border: 1px solid #777; display: block; }
.hall-body { flex: 1 1 auto; min-width: 0; }
.hall-name { font-size: 13px; }
.hall-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hall-row form { margin: 0; }
.hall-row .btn2 { margin-left: 0; font-size: 11px; padding: 2px 12px; }
.btn2.on { background: #8b0000; color: #fff; border-color: #600; }
.btn2.off { color: #999; cursor: not-allowed; }
input.btn2 { cursor: pointer; }
.hall-cnt { font-size: 13px; }
.hall-descr { display: none; margin-top: 4px; color: #333; }
.st-room { color: #8b0000; font-weight: bold; text-decoration: none; }
.st-room:hover { text-decoration: underline; }
.sq-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.sq-title { font-weight: bold; color: #8b0000; font-size: 14px; }
.sq-warn { color: #c00; font-size: 13px; flex: 1 1 auto; text-align: center; }
.scene-wrap { text-align: center; margin: 2px 0 6px; }
.scene { max-width: 100%; height: auto; display: inline-block; }
.scene a { cursor: pointer; }
.scene-img { max-width: 100%; border: 1px solid #888; }
.scene-btns { text-align: center; margin: 4px 0 8px; }
/* навигация админки: одна компактная полоса, значки в стиле игры (img/admin, tools/admin_icons.py), разделы группами */
.anav { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 0; margin: 0 0 6px; padding: 2px 4px; background: #e9e9e9; border: 1px solid #b4b4b4; }
.anav-i { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; font: bold 11px Verdana, Tahoma, sans-serif; color: #1a3a8a; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.anav-i img { width: 17px; height: 17px; }
.anav-i:hover { color: #c00; }
.anav-i.on { background: #fff; color: #8b0000; border-color: #a9a9a9; cursor: default; }
.anav-sep { width: 1px; height: 18px; background: #b4b4b4; margin: 0 5px; }
.anav-i.back { margin-left: auto; color: #555; }
/* заголовок раздела: значок, название, одной строкой — что здесь делают */
.asec-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 11px; color: #666; }
.asec-h img { width: 16px; height: 16px; }
.asec-h b { color: #8b0000; font-size: 12px; }
/* панорамы в разделе «Оформление» */
.adm-scenes { display: flex; gap: 12px; flex-wrap: wrap; }
.adm-scene { text-align: center; font-size: 11px; }
.adm-scene img { display: block; width: 400px; max-width: 100%; height: auto; border: 1px solid #888; margin-bottom: 3px; }
.adm-scene.now b { color: #8b0000; }
table.b td.ok { color: #060; }
/* миграции по дням: свёрнутые группы, раскрываются щелчком по заголовку */
.mig-day { border: 1px solid #c4c4c4; margin: 0 0 4px; background: #fafafa; }
.mig-day-h { padding: 3px 8px; cursor: pointer; background: #e4e4e4; user-select: none; }
.mig-day-h:hover { background: #ececec; }
.mig-tg { display: inline-block; width: 0; height: 0; margin-right: 6px; border: 5px solid transparent; border-left-color: #555; vertical-align: 1px; }
.mig-day.open .mig-tg { border: 5px solid transparent; border-top-color: #555; vertical-align: -3px; }
.mig-day .mig-list { display: none; }
.mig-day.open .mig-list { display: table; }
table.b td.closed { color: #a00; }
.upspec { font-size: 10px; color: #333; background: #f7f3e3; border: 1px solid #d8c890; padding: 3px 6px; margin: 4px 0; line-height: 14px; }
.slotpick label { display: inline-block; width: 110px; font-size: 11px; }

/* здание на реконструкции */
.rebuild { max-width: 520px; margin: 30px auto; text-align: center; background: #f4f4f4; border: 1px solid #b8b8b8; padding: 16px 20px 20px; }
.rebuild .rebuild-ic { font-size: 40px; color: #8b0000; }
.rebuild h1 { margin: 4px 0 8px; }
.scene g.closed rect, .scene g.closed polygon, .scene g.closed circle { opacity: .8; }

.scene .lbl-closed.off { display: none; }
.scene a .bld { transition: filter .15s; }
.scene a:hover .bld { filter: drop-shadow(0 0 1.5px #fff6c8) drop-shadow(0 0 4px #ffe680) drop-shadow(0 0 9px #ffcc33); }
.scene a:hover text { fill: #fff; }

/* ----- карточка персонажа: классическая раскладка клуба ----- */
table.cc { border-collapse: separate; border-spacing: 0; }
table.cc td { vertical-align: top; padding: 0; }
/* ник по центру над карточкой, с уровнем, значком «инфо» и склонностью как дополнением */
table.cc td.cc-head { padding: 1px 0 2px 0; white-space: nowrap; text-align: center; font-size: 12px; }
table.cc td.cc-head b { font-size: 13px; }
table.cc td.cc-hp { padding: 0 0 3px 2px; white-space: nowrap; text-align: left; font-size: 11px; }
table.cc td.cc-fig { padding: 0 2px; }
/* фигура — бледный серый силуэт без рамки, как на карточке клуба 2003 года */
table.cc td.cc-fig img { display: block; border: 0; background: transparent; object-fit: contain; }
/* рисованные образы (svg) осветляем до бледного силуэта; готовые картинки (a1.png и загруженные) показываем как есть */
table.cc td.cc-fig img[src*=".svg"] { filter: grayscale(1) contrast(.5) brightness(1.32) drop-shadow(0 0 1.5px rgba(255,255,255,.95)); }
table.cc td.cc-fig a.cc-figlink { display: block; cursor: pointer; }
table.cc td.cc-fig a.cc-figlink:hover img { filter: drop-shadow(0 0 2px #ffe680) drop-shadow(0 0 5px #ffd24d); }
table.cc-big td.cc-fig img { width: 121px; height: 242px; }
table.cc-small td.cc-fig img { width: 91px; height: 182px; }
.cc-coltd { vertical-align: top; }
.cc-col { display: flex; flex-direction: column; gap: 2px; width: 60px; }
table.cc-small .cc-col { width: 45px; }
/* ячейки — пропорции как в клубе: слева серьги, амулет, оружие, броня, кольца; справа шлем, перчатки, щит, сапоги */
.sl { box-sizing: border-box; width: 60px; height: 59px; flex: 0 0 auto; margin: 0;
      display: flex; align-items: center; justify-content: center; overflow: hidden;
      background: rgba(255,255,255,.38); border: 1px solid rgba(0,0,0,.2); box-shadow: inset 1px 1px 0 rgba(255,255,255,.7), inset -1px -1px 0 rgba(0,0,0,.08); }
.sl img { display: block; width: 48px; height: 48px; object-fit: contain; }
.sl form { margin: 0; }
.sl a img { cursor: pointer; }
/* пустая ячейка: блёклый рисунок вещи из клуба во всю ячейку */
.sl.sl-empty img.ph { width: 100%; height: 100%; object-fit: contain; opacity: .95; }
.cc-pair { display: flex; gap: 2px; width: 60px; }
.sl.sl-earring { width: 29px; height: 30px; }
.sl.sl-earring img { width: 22px; height: 22px; }
.sl.sl-amulet { height: 24px; }
.sl.sl-amulet img { width: 40px; height: 22px; }
.sl.sl-weapon { height: 70px; }
.sl.sl-weapon img { width: 52px; height: 60px; }
.sl.sl-armor { height: 90px; }
.sl.sl-armor img { width: 54px; height: 74px; }
.cc-rings { display: flex; gap: 2px; width: 60px; }
.cc-rings .sl.sl-ring { flex: 1 1 0; width: auto; height: 20px; }
.cc-rings .sl.sl-ring img { width: 16px; height: 16px; }
.sl.sl-helmet { height: 76px; }
.sl.sl-helmet img { width: 52px; height: 60px; }
.sl.sl-gloves, .sl.sl-boots { height: 46px; }
.sl.sl-gloves img, .sl.sl-boots img { width: 42px; height: 42px; }
.sl.sl-shield { height: 68px; }
.sl.sl-shield img { width: 52px; height: 56px; }
/* малая карточка (в списках): те же пропорции в 3/4 */
table.cc-small .sl { width: 45px; height: 44px; }
table.cc-small .sl img { width: 38px; height: 38px; }
table.cc-small .cc-pair { width: 45px; }
table.cc-small .sl.sl-earring { width: 21.5px; height: 22px; }
table.cc-small .sl.sl-earring img { width: 16px; height: 16px; }
table.cc-small .sl.sl-amulet { height: 18px; }
table.cc-small .sl.sl-amulet img { width: 30px; height: 16px; }
table.cc-small .sl.sl-weapon { height: 52px; }
table.cc-small .sl.sl-weapon img { width: 38px; height: 44px; }
table.cc-small .sl.sl-armor { height: 68px; }
table.cc-small .sl.sl-armor img { width: 40px; height: 54px; }
table.cc-small .cc-rings { width: 45px; }
table.cc-small .cc-rings .sl.sl-ring { height: 14px; }
table.cc-small .cc-rings .sl.sl-ring img { width: 12px; height: 12px; }
table.cc-small .sl.sl-helmet { height: 57px; }
table.cc-small .sl.sl-helmet img { width: 38px; height: 44px; }
table.cc-small .sl.sl-gloves, table.cc-small .sl.sl-boots { height: 34px; }
table.cc-small .sl.sl-gloves img, table.cc-small .sl.sl-boots img { width: 30px; height: 30px; }
table.cc-small .sl.sl-shield { height: 51px; }
table.cc-small .sl.sl-shield img { width: 38px; height: 42px; }

/* ===== оболочка игры (main.php): верхнее меню, фрейм игры, чат, список онлайн, нижняя панель ===== */
body.shell { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: #d6d6d6; font-size: 12px; }
body.shell.dragging { user-select: none; }
body.shell.dragging iframe { pointer-events: none; }
#sh-top { flex: 0 0 auto; background: linear-gradient(#d9d9d9, #bfbfbf); border-bottom: 1px solid #8c8c8c; }
.sh-top1 { display: flex; align-items: flex-end; justify-content: space-between; height: 22px; padding: 0 12px 0 15px; }
.sh-city { font: bold 14px Georgia, "Times New Roman", serif; color: #8b1a1a; letter-spacing: 1px; text-shadow: 1px 1px 0 #f4f4f4; padding-bottom: 3px; white-space: nowrap; }
.sh-tabs { display: flex; align-items: stretch; height: 17px; background: #cfcfcf; border: 1px solid #8c8c8c; border-bottom: none; border-radius: 4px 4px 0 0; padding: 0 2px; }
.sh-clockmini { font-size: 10px; color: #555; line-height: 17px; padding: 0 12px 0 8px; white-space: nowrap; }
.sh-tab { font-size: 11px; line-height: 17px; padding: 0 12px; color: #1a1a1a; cursor: pointer; white-space: nowrap; user-select: none; }
.sh-tab:hover { background: #bdbdbd; }
.sh-tab.on { background: #404040; color: #fff; }
.sh-tab.sh-exit { color: #7a1010; }
.sh-tabsep { width: 1px; background: #8c8c8c; margin: 3px 0; }
.sh-top2 { height: 17px; line-height: 17px; text-align: right; padding: 0 22px 0 15px; background: #e9e9e9; border-top: 1px solid #8c8c8c; font-size: 10px; white-space: nowrap; overflow: hidden; }
.sh-menu { display: none; }
.sh-menu a { color: #1a3a8a; text-decoration: none; padding: 0 5px; }
.sh-menu a:hover { color: #c00; text-decoration: underline; }
.sh-msep { color: #999; }
#sh-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin: 0 12px 0 9px; border-left: 1px solid #b4b4b4; border-right: 1px solid #b4b4b4; background: #e2e0e0; }
#sh-main { flex: 1 1 auto; min-height: 80px; display: flex; padding-top: 3px; }
#sh-main iframe { flex: 1 1 auto; border: 0; width: 100%; display: block; background: #e2e0e0; }
#sh-divider { flex: 0 0 8px; background: linear-gradient(#cfcfcf, #a8a8a8); border-top: 1px solid #8a8a8a; border-bottom: 1px solid #808080; cursor: ns-resize; position: relative; }
#sh-divider .sh-grip { position: absolute; left: 50%; top: 2px; width: 40px; margin-left: -20px; height: 3px; border-top: 1px dotted #555; border-bottom: 1px dotted #555; }
#sh-chat { flex: 0 1 35vh; max-height: 75vh; min-height: 60px; display: flex; background: #eeeeee; }
#sh-chatleft { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
#sh-chatmenus { flex: 0 0 auto; height: 16px; line-height: 16px; text-align: right; padding: 0 8px; color: #666; font-size: 10px; background: #e6e6e6; border-bottom: 1px solid #d0d0d0; }
#sh-smiles { display: none; flex: 0 0 auto; padding: 4px 8px; background: #f7f7f7; border-bottom: 1px solid #ccc; }
#sh-smiles .sh-smiles-list a { display: inline-block; font-size: 18px; text-decoration: none; padding: 0 3px; }
#sh-smiles button { float: right; }
#chatbox { flex: 1 1 auto; overflow-y: auto; background: #f4f4f4; padding: 3px 6px; }
#chatbox.only-me .cl:not(.cp):not(.cme) { display: none; }
#chatbox.no-sys .cl.cs, #chatbox.no-sys .cl.cf { display: none; }
/* жёлтая подсказка у курсора (карта миров, площадь): название и число бойцов */
.cl-tip { position: absolute; display: none; background: #ffffcc; border: 1px solid #333; padding: 2px 5px; font: 11px/14px Verdana, Tahoma, sans-serif; color: #000; white-space: nowrap; text-align: right; z-index: 50; pointer-events: none; }
#chatbox.only-sys .cl:not(.cs):not(.cf) { display: none; }
/* вкладки над чатом, как в клубе: висячие трапеции у правого края, активная светлая (жирная), другая — тёмная */
#sh-chatmenus { position: relative; height: 20px; overflow: visible; z-index: 2; }
.sh-ctabs { position: absolute; right: 12px; top: 0; display: flex; height: 20px; }
.sh-ctab { position: relative; z-index: 0; padding: 0 20px; height: 19px; line-height: 19px; font: 12px Verdana, Tahoma, sans-serif; color: #fff; cursor: pointer; margin-left: -6px; white-space: nowrap; }
.sh-ctab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2; background: #3c3c3c; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%); }
.sh-ctab::after { content: ""; position: absolute; left: 1px; right: 1px; top: 0; bottom: 1px; z-index: -1; background: #707070; clip-path: polygon(0 0, 100% 0, calc(100% - 11.5px) 100%, 11.5px 100%); }
.sh-ctab:hover { color: #ffe9a8; }
.sh-ctab.on { color: #000; font-weight: bold; z-index: 1; cursor: default; }
.sh-ctab.on::after { background: #f4f4f4; }
/* быстрая панель: готовые фразы */
#sh-quick { display: none; flex: 0 0 auto; padding: 4px 8px; background: #f7f7f7; border-bottom: 1px solid #ccc; font-size: 11px; }
#sh-quick .sh-quick-list a { display: inline-block; margin: 1px 6px 1px 0; padding: 1px 6px; background: #e6e6e6; border: 1px solid #bcbcbc; border-radius: 3px; color: #1a3a8a; text-decoration: none; }
#sh-quick .sh-quick-list a:hover { background: #fff; color: #c00; }
#sh-quick button { float: right; }
#online .ou .afk { font-size: 9px; color: #777; margin-right: 3px; }
#sh-online { flex: 0 0 240px; display: flex; flex-direction: column; background: #faf2f2; border-left: 2px solid #cccccc; min-height: 0; }
.sh-onl-top { flex: 0 0 auto; text-align: center; padding: 4px 0 3px; }
.sh-onl-opts { flex: 0 0 auto; border-top: 1px solid #cac2c2; padding: 3px 6px; font-size: 10px; }
.sh-onl-opts label { display: block; white-space: nowrap; cursor: pointer; }
.sh-onl-opts input { vertical-align: middle; margin: 0 3px 0 0; }
/* нижняя панель, как в клубе: серая полоса с цепочкой понизу, пиктограммы 30×30 без канта (img/icons/ui, tools/ui_icons.py),
   при наведении — только свет; разделитель, цифровые часы */
#sh-bottom { flex: 0 0 30px; display: flex; align-items: center; gap: 0; margin: 0; padding: 0 4px 0 2px;
  background: url(../img/ui/bar_chain.svg) repeat-x left bottom, linear-gradient(#f6f6f6, #e9e9e9 40%, #e9e9e9); border-top: 1px solid #8a8a8a; }
#sh-bottom #msg { flex: 1 1 auto; width: auto; height: 18px; margin: 0 4px 3px 1px; font-size: 12px; padding: 1px 4px; border: 1px solid #9a9a9a; border-radius: 2px; }
.sh-ib { width: 30px; height: 30px; margin: 0 -1px 0 0; padding: 0; cursor: pointer; border: 0; box-sizing: content-box; flex: 0 0 auto; }
.sh-ib:hover { filter: drop-shadow(0 0 3px #fff4b8) drop-shadow(0 0 1px #fff) brightness(1.1); }
.sh-ib:active { transform: translateY(1px); }
.sh-ib.sh-ib-static { cursor: default; }
.sh-ib.sh-ib-static:hover { filter: none; }
.sh-ib.sh-tog { opacity: .45; }
.sh-ib.sh-tog.on { opacity: 1; }
.sh-sep { width: 16px; height: 30px; margin: 0 1px; flex: 0 0 auto; }
/* цифровые часы: тёмные сегменты на сером табло, секунды мелко сверху, жёлтый значок режима снизу */
@font-face { font-family: "DSEG7"; src: url(fonts/DSEG7Classic-Bold.woff2) format("woff2"); font-weight: bold; font-display: swap; }
.sh-clock { display: inline-flex; align-items: flex-start; height: 26px; margin: 0 2px 0 6px; padding: 1px 3px 0 4px; background: #bbb8b6; border: 1px solid #8f8c89; border-radius: 2px; box-shadow: inset 1px 1px 2px rgba(0,0,0,.25); }
.sh-clock .lcd { position: relative; display: inline-block; height: 24px; line-height: 24px; font-family: "DSEG7", "Courier New", monospace; font-weight: bold; font-size: 19px; color: #3b3f48; cursor: pointer; user-select: none; }
.sh-clock .lcd-ghost { position: absolute; left: 0; top: 0; color: rgba(0,0,0,.07); }
.sh-clock .lcd b { position: relative; font-weight: bold; }
.sh-clock .lcd i { position: relative; display: inline-block; vertical-align: top; margin-left: 3px; font-style: normal; font-size: 9px; line-height: 12px; }
.sh-clock .sh-settime { width: 12px; height: 12px; margin: 12px 0 0 -12px; cursor: pointer; }
.sh-clock.sh-clock-alarm .lcd { color: #a52a1c; }
.sh-clock.sh-clock-timer .lcd { color: #1f4d2c; }
.sh-clock.sh-clock-timer.run .lcd b { animation: sh-blink 1s step-end infinite; }
@keyframes sh-blink { 50% { opacity: .55; } }
.sh-foot { flex: 0 0 5px; background: repeating-linear-gradient(90deg, #d2d2d2 0 3px, #c6c6c6 3px 6px); }
#chaterr { display: none; position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #fbe6e6; border: 1px solid #d88; color: #800; padding: 3px 10px; font-size: 11px; z-index: 50; }
/* плавающая админ-панель: окно поверх игры, тянется за заголовок, растягивается за угол, разворачивается на весь экран */
#sh-adm { display: none; position: fixed; right: 24px; bottom: 44px; width: 1040px; height: 660px; min-width: 520px; min-height: 240px; max-width: 100vw; max-height: 100vh;
  background: #ececec; border: 1px solid #6a6a6a; box-shadow: 0 6px 24px rgba(0,0,0,.45); z-index: 90; resize: both; overflow: hidden; display: none; flex-direction: column; }
#sh-adm[style*="display: block"] { display: flex !important; }
#sh-adm.max { left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; resize: none; }
.sh-adm-h { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 3px 8px; background: linear-gradient(#e2e2e2, #c6c6c6); border-bottom: 1px solid #8a8a8a; cursor: move; user-select: none; font: bold 12px Verdana, Tahoma, sans-serif; color: #8b0000; }
.sh-adm-h img { width: 16px; height: 16px; }
.sh-adm-h #sh-adm-sub { font-weight: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.sh-adm-btns { margin-left: auto; display: flex; gap: 2px; }
.sh-adm-btns a { display: inline-block; width: 20px; height: 18px; line-height: 18px; text-align: center; color: #333; text-decoration: none; font-size: 14px; border: 1px solid transparent; border-radius: 3px; }
.sh-adm-btns a:hover { background: #fff; border-color: #999; color: #c00; }
#sh-adm-frame { flex: 1 1 auto; width: 100%; border: 0; background: #ececec; }
.sh-tab.sh-adm { color: #8b0000; font-weight: bold; }
body.dragging #sh-adm-frame, body.dragging #fmain { pointer-events: none; }
/* админка внутри плавающего окна: без игрового меню и статуса, только разделы и содержимое */
body.adm.embed table.menu, body.adm.embed table.status, body.adm.embed .foot, body.adm.embed .anav-i.back { display: none; }
body.adm.embed .content { padding: 3px 6px; }
/* быстрая полоса админки: ник → карточка, предмет → поиск, объявление в чат */
.aquick { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 0 6px; padding: 3px 6px; background: #f4f4f4; border: 1px solid #c4c4c4; font-size: 11px; }
.aquick form { display: inline-flex; gap: 3px; align-items: center; margin: 0; }
.aquick input[type=text] { font-size: 11px; padding: 1px 3px; }
.aquick .aq-on { margin-left: auto; color: #555; }
#online .ou a.oadm { margin-left: 3px; text-decoration: none; opacity: .55; }
#online .ou a.oadm:hover { opacity: 1; }
#online .ou a.oadm img { width: 10px; height: 10px; vertical-align: -1px; }
#sh-notepad { display: none; position: fixed; right: 30px; bottom: 44px; width: 320px; height: 240px; background: #fffdf0; border: 1px solid #888; box-shadow: 2px 2px 6px rgba(0,0,0,.3); z-index: 60; }
#sh-notepad .sh-np-head { background: #d8d8d8; border-bottom: 1px solid #aaa; padding: 2px 6px; font-weight: bold; }
#sh-notepad .sh-np-head a { float: right; text-decoration: none; color: #800; font-size: 14px; line-height: 14px; }
#sh-notepad textarea { width: 100%; height: 210px; box-sizing: border-box; border: none; background: transparent; resize: none; padding: 4px 6px; font-size: 11px; }


/* ===== Карта миров: гравированный каменный план клуба (halls.php + inc/halls_map.php) ===== */
.hmap-wrap { width: 940px; max-width: 100%; margin: 0 auto 10px; }
.hmap { display: block; width: 100%; height: auto; border: 1px solid #1a1917; box-shadow: 0 6px 18px rgba(0,0,0,.45); background: #4a4741; }
.hmap a { cursor: pointer; outline: none; }
.hmap .hm-p { transition: filter .18s; }
.hmap a:hover .hm-p, .hmap a:focus .hm-p { filter: drop-shadow(0 0 1.5px #fff2cc) drop-shadow(0 0 5px #ffd27a) drop-shadow(0 0 11px rgba(255,180,80,.8)); }
.hmap .hm-p.here { animation: hm-glow 2.8s ease-in-out infinite alternate; }
@keyframes hm-glow {
    from { filter: drop-shadow(0 0 2px #ffe2a8) drop-shadow(0 0 6px rgba(255,200,110,.55)); }
    to   { filter: drop-shadow(0 0 3px #fff0c8) drop-shadow(0 0 12px rgba(255,205,120,.95)); }
}
.hmap .hm-p.locked { opacity: .58; filter: grayscale(.75) brightness(.86); }
.hmap .hm-p.locked, .hmap .hm-hub { cursor: default; }
.hmap .hm-lantern { animation: hm-flicker 3.1s ease-in-out infinite alternate; }
@keyframes hm-flicker { from { opacity: .82; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hmap .hm-p.here, .hmap .hm-lantern { animation: none; } .hmap .hm-p.here { filter: drop-shadow(0 0 3px #ffe8b4) drop-shadow(0 0 9px rgba(255,200,110,.8)); } }
/* компактный список залов под планом (работает и без JS) */
table.hlist { width: 940px; max-width: 100%; margin: 0 auto 6px; border-collapse: collapse; background: #f2f2f2; border: 1px solid #b8b8b8; }
table.hlist th { background: #d2d2d2; text-align: left; padding: 3px 8px; font-size: 11px; border-bottom: 1px solid #b8b8b8; }
table.hlist td { padding: 3px 8px; border-bottom: 1px solid #dcdcdc; vertical-align: middle; }
table.hlist tr.here td { background: #f6efe6; }
table.hlist tr.locked td.hl-name b { color: #777; }
table.hlist td.hl-name img { vertical-align: middle; background: #fff; border: 1px solid #999; }
table.hlist td.hl-act form { margin: 0; }
table.hlist td.hl-act .btn2 { margin-left: 0; font-size: 11px; padding: 1px 12px; }
table.hlist tr.hl-descr td { background: #fbf8ef; color: #333; border-bottom: 1px solid #c9c2ad; }

/* ===== Комната бойца в классическом виде (room.php): карточка, характеристики, столбик кнопок ===== */
body.classic table.menu, body.classic table.status { display: none; }
body.classic .content { padding: 6px 10px 4px 10px; }
body.classic .foot { display: none; }
table.rc td.rc-card { width: 260px; padding-right: 10px; }
table.rc td.rc-stats { width: 240px; padding: 22px 0 0 26px; font-size: 12px; line-height: 17px; }
table.rc td.rc-right { padding-top: 6px; font-size: 11px; }
table.rc-st td { padding: 0 4px 0 0; line-height: 17px; white-space: nowrap; }
table.rc-st td.v { font-weight: bold; text-align: right; padding-left: 6px; }
table.rc-st td.v.gray { font-weight: normal; }
.rc-free { margin-top: 2px; font-weight: bold; }
.rc-lines { line-height: 17px; }
hr.stat-sep { border: 0; border-top: 1px solid #8a8a8a; margin: 6px 0 6px 0; width: 220px; }
.rc-btns { line-height: 22px; }
.rc-btn { display: inline-block; background: #e4e4e4; border: 1px solid #7a7a7a; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #b0b0b0; color: #1a3a8a; font-weight: bold; font-size: 10px; text-decoration: none; padding: 1px 10px; margin: 2px 0 2px 6px; white-space: nowrap; }
.rc-btn:hover { background: #d6d6d6; color: #c00; }
.rc-btn-gap { margin-top: 12px; }
.rc-links { margin: 10px 0 8px 0; padding: 6px 0; border-top: 1px solid #8a8a8a; border-bottom: 1px solid #8a8a8a; font-weight: bold; font-size: 11px; }
.rc-links a { color: #1a3a8a; text-decoration: none; }
.rc-links a:hover { color: #c00; text-decoration: underline; }
.rc-btns2 { margin-bottom: 14px; }
.rc-warn { font-size: 10px; line-height: 13px; color: #222; max-width: 560px; margin-left: auto; }
.rc-warn u { color: #000; }
.rc-copy { margin-top: 22px; font-size: 10px; color: #444; line-height: 13px; }
.rc-hint { margin-top: 10px; }
/* ряд ячеек артефактов над фигурой */
table.cc td.cc-extra { padding: 0 0 3px 0; }
.cc-arts { display: flex; gap: 3px; justify-content: center; }
.cc-arts .art { display: flex; align-items: center; justify-content: center; width: 30px; height: 22px; background: #e6e6e6; border: 1px solid #9c9c9c; box-shadow: inset 1px 1px 0 #f9f9f9, inset -1px -1px 0 #cdcdcd; opacity: .8; }
.info-inj { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 4px; text-align: left; }
.info-loc { margin-top: 6px; text-align: center; }
.info-loc .info-inj { text-align: left; }
.info-banned { font-weight: bold; font-size: 12px; padding: 0 0 2px 2px; }

/* ---------- Государственный магазин (классический вид клуба) ---------- */
.shop-title { text-align: center; color: #8b0000; font-weight: bold; font-size: 15px; margin: 4px 0 10px; }
table.shop td.shop-main { padding-right: 12px; }
table.shop td.shop-side, td.side { width: 250px; font-size: 12px; }
.shop-dept { background: #c9c9c9; border: 1px solid #a8a8a8; padding: 3px 8px; font-weight: bold; text-align: center; font-size: 13px; }
.shop-filter { background: #dedede; border: 1px solid #a8a8a8; border-top: none; padding: 4px 8px; margin: 0; font-size: 12px; }
.shop-filter input[type=text] { font-size: 11px; width: 200px; padding: 1px 3px; }
.shop-filter select, .shop-filter input[type=submit] { font-size: 11px; }
.shop-filter input[type=submit] { padding: 1px 14px; margin-left: 6px; }
.shop-list table.ib { background: #e9e9e9; }
.shop-list table.ib.alt { background: #d7d7d7; }
.shop-list table.ib td.ib-pic { width: 190px; background: none; border-right: none; padding-top: 10px; }
.shop-list table.ib td.ib-pic img.item-img { width: 60px; height: 60px; margin: 6px auto 4px; }
.shop-list table.ib td.ib-body { font-size: 12px; padding: 8px 10px; }
.shop-list table.ib li { line-height: 17px; }
button.lnk { display: block; margin: 0 auto; background: none; border: none; padding: 1px 0; color: #1a3a8a; font-weight: bold; font-size: 12px; cursor: pointer; font-family: inherit; }
button.lnk:hover { text-decoration: underline; color: #c00; }
button.lnk .red { text-decoration: none; }
.shop-hint { margin: 8px 0 0; }
.ib-mass { color: #333; }
.ib-made { color: #c00; font-size: 10px; }
table.ib li.red { color: #d00; }
.side .side-sign { text-align: right; margin: 0 0 6px; }
.side .side-links a { display: block; text-align: right; font-weight: bold; color: #1a3a8a; text-decoration: none; background: #dedede; border: 1px solid #b8b8b8; padding: 2px 6px; margin: 0 0 3px; }
.side .side-links a:hover { color: #c00; }
.side .side-money { text-align: right; margin: 10px 0 8px; line-height: 17px; }
.side .side-btns { margin: 0 0 8px; }
.side .side-btns .btn2 { margin: 0 4px 0 0; font-size: 11px; padding: 2px 8px; }
.side .side-h { background: #c9c9c9; border: 1px solid #a8a8a8; font-weight: bold; text-align: center; padding: 2px; font-size: 13px; }
.side ul.depts { list-style: none; margin: 0; padding: 0; border: 1px solid #c4c4c4; border-top: none; }
.side ul.depts li { padding: 1px 6px; font-weight: bold; font-size: 13px; line-height: 18px; }
.side ul.depts li.sub { padding-left: 30px; }
.side ul.depts li.on { background: #c8c8c8; }
.side ul.depts a { color: #1a3a8a; text-decoration: none; }
.side ul.depts a:hover { color: #c00; text-decoration: underline; }
