/* Город 2D: дополнения к общим стилям арены (battle2d/css/arena.css). */

[hidden] { display: none !important; }

#stage { cursor: default; touch-action: manipulation; }

/* название комнаты поверх сцены */
.whud {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 12px 14px 22px;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
}
.whud b { display: block; font: 700 21px Georgia, "Times New Roman", serif; color: #fff3d6; text-shadow: 0 1px 2px #000; }
.whud span { font-size: 12.5px; color: #dccfb8; text-shadow: 0 1px 2px #000; }
.wopen { display: block; margin: 8px auto 0; pointer-events: auto; border-color: var(--amber); color: var(--amber-2); font-weight: 600; }

/* строка состояния и задержка перехода */
.wstatus {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center; pointer-events: none;
  font-size: 13px; color: #f1e6d0; text-shadow: 0 1px 2px #000;
}
.wbar { width: 170px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: rgba(0, 0, 0, .6); overflow: hidden; visibility: hidden; }
.wbar.on { visibility: visible; }
.wbar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .2s linear; }

/* подсказка у выхода и карточка игрока */
.wtip, .wcard {
  position: absolute; z-index: 3;
  transform: translate(-50%, -100%);
  background: rgba(17, 13, 10, .95);
  border: 1px solid #5a4838; border-radius: 8px;
  color: var(--text); font-size: 12.5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.wtip { padding: 6px 10px; max-width: 250px; pointer-events: none; white-space: nowrap; }
.wtip b { color: #fff3d6; }
.wtip small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.wtip .lk { color: #ff9a80; }
.wcard { z-index: 4; padding: 10px 12px; min-width: 190px; border-color: #8a6a35; }
.wcard b { display: block; font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.wcard b span { color: var(--amber-2); }
.wcard small { display: block; margin-top: 2px; color: #ff9a80; }
.wcard .btns { justify-content: flex-start; gap: 6px; margin-top: 9px; }
.wcard .tgl { padding: 5px 10px; font-size: 12.5px; }
.wcard .tgl.quiet { color: var(--muted); }
.wcard .tgl.danger { border-color: #b04a36; color: #ffb4a2; }
.wcard .tgl.danger:hover:not(:disabled) { background: #3a1611; }
.wcard .tgl:disabled { opacity: .45; cursor: default; }
.wcard small.warn { color: #ffcf7a; }
.wcard > small { margin-top: 6px; color: var(--muted); }

.wtoast {
  position: absolute; left: 50%; top: 78px; z-index: 5;
  transform: translateX(-50%);
  max-width: 86%; padding: 8px 14px;
  background: rgba(62, 20, 14, .95); border: 1px solid #b04a36; border-radius: 8px;
  color: #ffe2d8; font-size: 13.5px; text-align: center;
  animation: fadein .2s ease-out;
}

/* доска поединков */
.wboard {
  position: absolute; right: 12px; top: 70px; z-index: 6;
  width: 392px; max-width: calc(100% - 24px); max-height: calc(100% - 118px); overflow: auto;
  padding: 12px 14px 12px;
  background: rgba(20, 15, 11, .96);
  border: 1px solid #8a6a35; border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .6);
  font-size: 13px; color: var(--text);
}
.wboard.busy { opacity: .7; }
.wboard.busy button, .wboard.busy input, .wboard.busy select, .wboard.busy label { pointer-events: none; }
.bhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bhead b { font: 700 18px Georgia, "Times New Roman", serif; color: #fff3d6; }
.bx { width: 28px; height: 28px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.bx:hover { border-color: var(--amber); color: var(--text); }
.btabs { display: flex; gap: 6px; margin-bottom: 9px; }
.btabs button { flex: 1; padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font: 600 12.5px "Segoe UI", sans-serif; cursor: pointer; }
.btabs button:hover { color: var(--text); border-color: #6a5540; }
.btabs button.on { background: #2a2013; border-color: var(--amber); color: var(--amber-2); }
.bmine small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.bform label { margin-bottom: 6px; }
.bchk { display: flex !important; align-items: flex-start; gap: 7px; margin: 0 0 5px !important; font-size: 12px; line-height: 1.35; color: var(--text) !important; }
.bchk input { accent-color: var(--amber); margin: 2px 0 0; flex: none; }
.brow span b { color: #fff3d6; }
.bmsg { margin-bottom: 8px; padding: 7px 9px; background: rgba(255, 207, 122, .08); border: 1px solid rgba(255, 207, 122, .3); border-radius: 8px; color: var(--amber-2); }
.bmine, .bform { padding: 9px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; line-height: 1.45; }
.bmine b { color: #fff3d6; }
.bmine.hot { border-color: var(--amber); background: #2a2013; }
.wboard .btns { justify-content: flex-start; gap: 6px; margin-top: 9px; }
.wboard .go { width: auto; padding: 8px 16px; font-size: 14px; }
.wboard .tgl { padding: 7px 11px; font-size: 12.5px; }
.wboard .tgl:disabled { opacity: .45; cursor: default; }
.bform label { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; color: var(--muted); }
.bform select { background: #120f0c; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color: var(--text); font: inherit; }
.bform .bwho { display: flex; margin-right: 0; }
.bform .bwho input { flex: 1; min-width: 0; background: #120f0c; border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; color: var(--text); font: inherit; }
.bform .bwho input:focus { outline: none; border-color: var(--amber); }
.bform .bwho input::placeholder { color: #7d705f; }
.bnote { margin: 0 0 8px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.bmine + .bmine, .bmine + .bform { margin-top: 8px; }
.wboard .btabs { flex-wrap: wrap; }
.wboard .btabs button { flex: 1 1 auto; padding: 6px; white-space: nowrap; }      /* четыре вкладки со счётчиками — в одну строку */
.brow small i { font-style: normal; }
.bnote.tsp { margin: 10px 0 0; }
.btabs button.call:not(.on) { border-color: #8a6a35; color: var(--amber-2); }
.brow.call { margin: 0 -6px; padding-left: 8px; padding-right: 8px; background: rgba(255, 207, 122, .07); border-radius: 8px; border-top-color: transparent; }
.brow.call small em { font-style: normal; font-weight: 600; color: var(--amber-2); }
.blist { margin-top: 10px; }
.bcap { margin-bottom: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bempty { padding: 8px 2px; color: var(--muted); }
.brow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 2px; border-top: 1px solid var(--line); }
.brow b { color: #7fd3e2; }
.brow small { display: block; font-size: 11.5px; color: var(--muted); }
.blink { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.blink:hover { color: var(--amber-2); }
.pl.board { border-color: #8a6a35; }
.pl.board b { color: var(--amber-2); }

/* экран персонажа */
.hero { position: fixed; inset: 0; z-index: 20; display: flex; overflow: auto; padding: 16px 12px; background: rgba(8, 6, 5, .88); }
.hero[hidden] { display: none; }
.hero.busy .hpanel { opacity: .75; pointer-events: none; }
.hpanel { margin: auto; width: 100%; max-width: 980px; background: #17120e; border: 1px solid #8a6a35; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .7); }
.hhead { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.hhead b { font: 700 20px Georgia, "Times New Roman", serif; color: #fff3d6; }
.hhead span { flex: 1; color: var(--amber-2); font-weight: 600; }
.hbody { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; padding: 14px 16px 16px; }
.hdoll { display: grid; grid-template-columns: 74px 1fr 74px; gap: 8px; align-items: start; }
.hcol { display: flex; flex-direction: column; gap: 6px; }
.hfig { display: flex; flex-direction: column; align-items: center; }
#hCanvas { width: 100%; aspect-ratio: 200 / 300; background: radial-gradient(circle at 50% 62%, #2b241d, #17120e 72%); border-radius: 10px; }
.hrings { display: flex; gap: 6px; margin-top: 8px; }
.hs, .hi {
  position: relative; width: 74px; height: 62px; padding: 0; overflow: hidden;
  background: #100d0a; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer;
}
.hrings .hs { width: 62px; }
.hs img, .hi img { position: absolute; left: 50%; top: 3px; height: 40px; max-width: 66px; transform: translateX(-50%); object-fit: contain; }
.hs span, .hi span { position: absolute; left: 2px; right: 2px; bottom: 2px; font-size: 9.5px; line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs:not(.full) span { bottom: 22px; font-size: 11px; }
.hs.full, .hi { border-color: #5a4838; color: #d8cbb4; }
.hs:hover, .hi:hover { border-color: var(--amber); }
.hs.on, .hi.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; background: #241b10; }
.hi.fit { border-color: #4fa9bb; box-shadow: 0 0 0 1px #4fa9bb inset; }
.hbelt { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.hbelt > span { flex: 1 1 100%; text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hbelt .hs { width: 62px; }
.htabs { display: flex; flex-wrap: wrap; gap: 5px; }
.htabs button { padding: 5px 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font: 600 12px "Segoe UI", sans-serif; cursor: pointer; }
.htabs button:hover { color: var(--text); border-color: #6a5540; }
.htabs button.on { background: #2a2013; border-color: var(--amber); color: var(--amber-2); }
.hdesc { margin-top: 8px; color: #cfc2ad; line-height: 1.4; }
.hinfo .tgl { padding: 8px 14px; }
.hside { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.hhp, .hmp { position: relative; height: 16px; background: rgba(0, 0, 0, .6); border: 1px solid #000; border-radius: 4px; overflow: hidden; }
.hmp { height: 9px; margin-top: 3px; }
.hhp i, .hmp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#f0714f, #ad2e1e); }
.hmp i { background: linear-gradient(#6fb7ff, #2a5f9e); }
.hhp span { position: absolute; inset: 0; font: 700 11px/15px "Segoe UI", sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 1px #000; }
.hmp span { display: none; }
.hst { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.hst b { color: #f1e6d0; }
.hmsg { padding: 7px 10px; background: rgba(255, 207, 122, .08); border: 1px solid rgba(255, 207, 122, .3); border-radius: 8px; color: var(--amber-2); font-size: 13px; }
.hinfo { min-height: 96px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.hhint { color: var(--muted); line-height: 1.45; }
.hhint b { color: #f1e6d0; }
.hname { display: flex; gap: 10px; align-items: center; }
.hname img { height: 44px; max-width: 60px; object-fit: contain; flex: none; }
.hname b { display: block; font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.hname small { color: var(--muted); }
.hprops { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 8px; color: #cfc2ad; }
.hprops b { color: #8be38f; }
.hreq { margin-top: 7px; color: var(--muted); }
.hreq .bad { color: #ff8a70; font-weight: 600; }
.hinfo .btns { justify-content: flex-start; margin-top: 10px; }
.hinfo .go { width: auto; padding: 8px 22px; font-size: 15px; }
.hcap { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hcap span { text-transform: none; letter-spacing: 0; }
.hbag { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; max-height: 214px; overflow: auto; padding-right: 2px; }
.hi { width: auto; }
.hfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.hfoot .tgl { font-size: 12.5px; text-decoration: none; }

/* распределение свободных очков на экране персонажа */
.hfree { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 6px 9px; background: rgba(255, 207, 122, .08); border: 1px solid rgba(255, 207, 122, .3); border-radius: 8px; font-size: 12.5px; color: var(--amber-2); }
.hfree b { color: #fff3d6; }
.hfree .tgl { margin-left: auto; padding: 5px 12px; font-size: 12.5px; }
.ucap { display: flex; justify-content: space-between; margin: 9px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ucap:first-child { margin-top: 0; }
.ucap span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--amber-2); }
.urow { display: grid; grid-template-columns: minmax(0, 1fr) 34px 30px auto minmax(0, 108px); align-items: center; gap: 6px; padding: 3px 0; }
.un { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8cbb4; }
.uv { text-align: right; font-size: 14px; color: #fff3d6; }
.ud { font-weight: 600; color: #8be38f; }
.ub { display: flex; gap: 4px; }
.ub button { min-width: 28px; height: 26px; padding: 0 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: 600 13px "Segoe UI", sans-serif; cursor: pointer; }
.ub button:hover:not(:disabled) { border-color: var(--amber); }
.ub button:disabled { opacity: .35; cursor: default; }
.uneed { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.uneed.bad { color: #ff8a70; }
.unote { margin-top: 8px; font-size: 11.5px; }
.hinfo .go:disabled { opacity: .45; cursor: default; }
.hfree + .hfree { margin-top: 5px; }

/* особенности на экране персонажа */
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ucap + .prow { border-top: 0; padding-top: 2px; }
.pmain b { color: #d8cbb4; font-size: 13.5px; }
.prow.has .pmain b { color: #fff3d6; }
.pmain small { display: block; margin-top: 2px; color: var(--muted); line-height: 1.35; }
.pmain small.pnote { color: #ffb4a2; }
.pdots { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.pdots i { width: 8px; height: 8px; border: 1px solid #6a5540; border-radius: 50%; }
.pdots i.on { background: var(--amber); border-color: var(--amber); }
.pbtn { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.pbtn small { max-width: 130px; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.pbtn .tgl { padding: 6px 14px; font-size: 12.5px; }
.pbtn .tgl:disabled { opacity: .45; cursor: default; }
.pbtn .go { width: auto; padding: 6px 16px; font-size: 13.5px; }
.prow.ask { margin: 0 -6px; padding: 8px 6px; background: #2a2013; border: 1px solid var(--amber); border-radius: 8px; }
.prow.ask + .prow { border-top: 0; }

/* магазин */
/* (div.shop, не .shop: у кнопок магазинов в списке мест тоже есть класс shop) */
div.shop { position: fixed; inset: 0; z-index: 20; display: flex; overflow: auto; padding: 16px 12px; background: rgba(8, 6, 5, .88); }
div.shop[hidden] { display: none; }
div.shop.busy .spanel { opacity: .8; pointer-events: none; }
.spanel { margin: auto; width: 100%; max-width: 1080px; background: #17120e; border: 1px solid #8a6a35; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .7); }
.spanel .hhead span { text-align: right; color: var(--muted); font-weight: 500; }
.spanel .hhead span b { font: 700 15px "Segoe UI", sans-serif; color: var(--amber-2); }
.sbody { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 14px; padding: 14px 16px 12px; align-items: start; }
div.shop, .sdepts, .sgoods { scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.sdepts { max-height: 64vh; overflow: auto; padding-right: 2px; }
.sdg { margin-bottom: 9px; }
.sdg > span { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sdg button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; margin-bottom: 3px; padding: 5px 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  color: var(--text); font: 500 12.5px "Segoe UI", sans-serif; text-align: left; cursor: pointer;
}
.sdg button i { font-style: normal; font-size: 11px; color: var(--muted); }
.sdg button:hover { border-color: #6a5540; }
.sdg button.on { background: #2a2013; border-color: var(--amber); color: var(--amber-2); }
.smid { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.sbar > b { font: 700 17px Georgia, "Times New Roman", serif; color: #fff3d6; }
.sbar .bchk { margin: 0 !important; color: var(--muted) !important; }
.sbar small { font-size: 12px; color: var(--muted); }
.sg.sale .sgp { color: #8be38f; }
.sgn b i { margin-left: 4px; font-style: normal; font-weight: 700; color: var(--amber-2); }
.snone { flex: none; padding: 6px 2px 2px; font-size: 12px; }
.sask { margin-top: 11px; padding: 8px 10px; background: #2a2013; border: 1px solid var(--amber); border-radius: 8px; color: #fff3d6; line-height: 1.4; }
.sask + .sbuy { margin-top: 8px; }
.sbuy .tgl { flex: none; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; }
.smid .hmsg .tgl { margin-left: 8px; padding: 4px 10px; font-size: 12.5px; }
.sgoods { display: flex; flex-direction: column; gap: 4px; max-height: 58vh; overflow: auto; padding-right: 2px; }
.sg {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; flex: none;
  padding: 5px 11px 5px 5px;
  background: #100d0a; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.sgi { display: flex; align-items: center; justify-content: center; height: 38px; }
.sgi img { max-width: 56px; max-height: 38px; object-fit: contain; }
.sgn { min-width: 0; }
.sgn b { display: block; overflow: hidden; font-weight: 600; font-size: 13px; color: #f1e6d0; white-space: nowrap; text-overflow: ellipsis; }
.sgn small { display: block; overflow: hidden; font-size: 11.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.sgn small em { font-style: normal; color: #e08d76; }
.sgp { font: 700 13.5px "Segoe UI", sans-serif; color: var(--amber-2); white-space: nowrap; }
.sg.poor .sgp { color: #ff8a70; }
.sg.nofit .sgi, .sg.nofit .sgn b { opacity: .6; }
.sg:hover { border-color: var(--amber); }
.sg.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; background: #241b10; }
.scard { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.sfig { position: relative; }
#sCanvas { display: block; width: 100%; height: 216px; background: radial-gradient(circle at 50% 66%, #2b241d, #17120e 72%); border-radius: 10px; }
.sfig span { position: absolute; left: 10px; top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sinfo { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.sworn { margin-top: 7px; color: var(--muted); }
.sworn b { font-weight: 600; color: #d8cbb4; }
.sneed { margin-top: 7px; color: var(--muted); line-height: 1.7; }
.sneed span { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; color: #d8cbb4; }
.sneed span img { height: 22px; max-width: 30px; object-fit: contain; }
.sneed span i { font-style: normal; color: var(--muted); }
.sneed span.bad, .sneed span.bad i { color: #ff8a70; }
.sgp { text-align: right; }
.sgp small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.sbuy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; }
.sqty { display: inline-flex; align-items: center; flex: none; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.sqty button { width: 28px; height: 34px; padding: 0; background: var(--panel-2); border: 0; color: var(--text); font-size: 16px; cursor: pointer; }
.sqty button:hover { color: var(--amber-2); }
.sqty b { min-width: 30px; font-size: 13px; text-align: center; color: #f1e6d0; }
.sbuy .go { flex: 1; width: auto; padding: 8px 12px; font-size: 14.5px; white-space: nowrap; }
.sbuy .go:disabled { opacity: .45; cursor: default; }
.snote { display: block; margin-top: 6px; color: #ff9a80; }
.snote.calm { color: var(--muted); }
.sfoot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.sfoot .tgl { font-size: 12.5px; text-decoration: none; }

/* ремонтная мастерская (окно построено на тех же блоках, что и магазин) */
.fixwin .spanel { margin: 0 auto auto; max-width: 760px; }   /* a2d 2026-12-02 (этап 4, правка): окно прижато к верху — вкладки не прыгают при разной высоте списка */
.fbody { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; }
.fcap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 6px; }
.fcap:first-child { margin-top: 0; }
.fcap b { font: 700 16px Georgia, "Times New Roman", serif; color: #fff3d6; }
.fcap small { font-size: 12px; color: var(--muted); }
.fcap .go { width: auto; margin-left: auto; padding: 7px 16px; font-size: 14px; }
.fcap .go:disabled, .fbtns button:disabled { opacity: .45; cursor: default; }
.fx {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  margin-bottom: 4px; padding: 5px 9px 5px 5px;
  background: #100d0a; border: 1px solid var(--line); border-radius: 8px;
}
.fbar { display: block; height: 4px; margin-top: 4px; max-width: 220px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 2px; }
.fbar i { display: block; height: 100%; background: linear-gradient(90deg, #d98a3a, #c2452f); }
.fbtns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.fbtns .tgl { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
.fbtns .go { width: auto; padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
.fwas { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .fbody { padding: 10px; }
  .fx { grid-template-columns: 48px minmax(0, 1fr); }
  .fx .fbtns { grid-column: 1 / -1; justify-content: flex-start; }
}

/* комиссионный магазин (на блоках магазина) */
.commwin .sdg button { justify-content: flex-start; }
.commwin .sbar .tgl { padding: 5px 10px; font-size: 12.5px; }
.commwin .sbar select.kin { flex: 0 1 220px; width: auto; height: 30px; font-size: 12.5px; }
.commwin .sbuy .kin { flex: 1 1 80px; }

/* почта (на блоках мастерской и банка) */
.postwin .spanel { max-width: 800px; }
.postwin .btabs { margin-bottom: 0; }
.postwin .kcard { margin-bottom: 8px; }
.postwin .kcard > small.bad { color: #ff8a70; }
.postwin .kgrid .kcard { margin-bottom: 0; }
.postwin .kgrid { margin-bottom: 8px; }
.pp { align-items: start; }
.pp .fbtns { align-self: center; }
.pp .sgn b { white-space: normal; }
.pp .sgn small { white-space: normal; }
.ptext { display: block; margin: 5px 0; padding: 7px 9px; background: #1b1612; border-left: 3px solid #8a6a35; border-radius: 4px; color: #e6dcc4; font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.pcoin { display: block; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a6, #d9a93a 60%, #9a6f17); box-shadow: 0 0 0 2px #7a5512 inset; }
.ptarea { flex: 1 1 100%; width: 100%; height: 86px; padding: 8px 9px; resize: vertical; font-weight: 500; line-height: 1.4; }
.plog { max-height: 52vh; }

/* банк */
.bankwin .spanel { max-width: 820px; }
.bankwin .hhead span { text-align: left; color: var(--muted); font-weight: 500; }
.ktiles { display: flex; flex-wrap: wrap; gap: 8px; }
.ktiles div { flex: 1 1 150px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ktiles small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ktiles b { font: 700 19px Georgia, "Times New Roman", serif; color: #fff3d6; }
.ktiles b.ekr { color: #7fd3e2; }
.kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kcard { padding: 10px 12px 12px; background: #100d0a; border: 1px solid var(--line); border-radius: 10px; }
.kcard > b { display: block; font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.kcard > small { display: block; min-height: 16px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.krow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.kin {
  flex: 1 1 90px; min-width: 0; width: 90px; height: 34px; padding: 0 9px;
  background: #1b1612; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: 600 14px "Segoe UI", sans-serif;
}
.kin:focus { outline: none; border-color: var(--amber); }
.kin.num { flex: 0 1 96px; }
.kin.wide { flex: 1 1 150px; }
.krow .tgl { padding: 7px 10px; font-size: 12.5px; }
.krow .go { width: auto; padding: 7px 16px; font-size: 14px; white-space: nowrap; }
.khist { max-height: 180px; overflow: auto; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; font-size: 12.5px; color: #cfc2ad; }
.khist div { padding: 5px 2px; border-top: 1px solid var(--line); line-height: 1.4; }
.khist div:first-child { border-top: 0; }
.khist i { margin-right: 8px; font-style: normal; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .kgrid { grid-template-columns: minmax(0, 1fr); }
}

/* чат под сценой */
.wchat { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wchat[hidden] { display: none; }
.wchat-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.wchat-head b { font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.wchat-head span { flex: 1; font-size: 12px; color: var(--amber-2); }
.wchat-head span[hidden] { display: block; visibility: hidden; }
.wchat-head .tgl { padding: 3px 9px; font-size: 12px; }
.wchat-body { position: relative; display: flex; height: 170px; }
/* панель смайлов: открывается поверх ленты */
.wsm { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--panel); }
.wsm[hidden] { display: none; }
.wsm-head { display: flex; align-items: center; gap: 10px; padding: 3px 6px 3px 10px; border-bottom: 1px solid var(--line); }
.wsm-head span { flex: 1; font-size: 12px; color: var(--muted); }
.wsm-head span.warn { color: #ff9a80; }
.wsm-head .bx { width: 24px; height: 24px; font-size: 16px; }
.wsm-grid { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 2px; overflow-y: auto; padding: 6px 8px 8px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.wsm-cap { flex: 0 0 100%; margin: 2px 0 1px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wsm-cap:not(:first-child) { margin-top: 8px; }
.sm { display: flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 3px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.sm:hover, .sm:focus-visible { background: #2a2013; border-color: var(--amber); outline: none; }
.sm img { display: block; }
.wchat-form .wsm-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 34px; padding: 0; }
.wchat-form .wsm-btn.on { border-color: var(--amber); color: var(--amber-2); }
.wchat-log { flex: 1; min-width: 0; overflow-y: auto; padding: 6px 10px; font-size: 13px; line-height: 1.5; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.wchat.fold .wchat-body, .wchat.fold .wchat-form { display: none; }
/* кто в комнате: колонка справа от ленты */
.wchat-who { flex: 0 0 300px; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); }
.wchat-who[hidden] { display: none; }
.who-cap { padding: 5px 10px 4px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-list { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 4px 6px 6px 8px; font-size: 13px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.wu { display: flex; align-items: center; gap: 4px; min-height: 23px; }
.wu .cname { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wu.fem .cname { color: #f0a8cf; }
.wu.me .cname { color: var(--amber-2); }
.wal { flex: none; width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; }
.wal img { max-width: 15px; max-height: 15px; }
.wcl { flex: none; width: 24px; height: 15px; }
.wclt { flex: 0 2 auto; min-width: 22px; max-width: 76px; overflow: hidden; font-size: 11px; color: #b9ad9a; white-space: nowrap; text-overflow: ellipsis; }
.wlv { flex: none; font-size: 12px; color: var(--muted); }
.wst { flex: none; padding: 0 6px; border-radius: 8px; background: #2a221b; font-size: 10.5px; line-height: 16px; color: #cfc2ad; white-space: nowrap; cursor: default; }
.wst.fight { color: #ff9a80; }
.wst.mute { color: #9fb9e6; }
.wst.hurt { color: #e8b56a; }
.wacts { flex: none; display: flex; gap: 3px; margin-left: auto; padding-left: 4px; }
.wbtn { display: flex; align-items: center; justify-content: center; width: 24px; height: 20px; padding: 0; background: #1b1612; border: 1px solid var(--line); border-radius: 5px; color: #cfc2ad; font: 700 11.5px Georgia, "Times New Roman", serif; cursor: pointer; }
.wbtn.atk { color: #ff9a80; }
.wbtn.blood { color: #ff5a46; border-color: #7a3a2c; } /* a2d 2026-12-02 (о6в) */
.wbtn:hover, .wbtn:focus-visible { border-color: var(--amber); color: #fff3d6; outline: none; }
.who-more { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) {
  .wchat-body { flex-direction: column; height: auto; }
  .wchat-body.sm-open { min-height: 250px; }                 /* с открытыми смайлами — повыше, чтобы было что листать */
  .wchat-log { flex: none; height: 150px; }
  .wchat-who { flex: none; max-height: 132px; border-left: 0; border-top: 1px solid var(--line); }
}
.wchat.fold .wchat-head { border-bottom: 0; }
.cl { color: #e6dcc4; word-break: break-word; }
.cl > i { margin-right: 6px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.cl.sys { color: #cfc2ad; }
.cl.priv { color: #d7c6ff; }
.cl.tome { background: rgba(255, 207, 122, .08); border-radius: 4px; }
.cl.err { color: #ff9a80; }
.cl.room { margin: 3px 0; font-size: 11.5px; text-align: center; color: var(--muted); }
.cname { margin: 0 5px 0 0; padding: 0; background: none; border: 0; color: #7fd3e2; font: 700 13px "Segoe UI", sans-serif; cursor: pointer; }
.cname:hover { text-decoration: underline; }
.cto { margin-right: 5px; font-size: 12px; color: var(--muted); }
.ctext a { color: #a9d4f5; }
.csm { max-height: 35px; vertical-align: middle; }
.csm.own { max-height: 50px; }
.cimg { max-height: 40px; vertical-align: middle; }
.wchat-form { display: flex; gap: 6px; padding: 6px 8px 8px; border-top: 1px solid var(--line); }
.wchat-form input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  background: #1b1612; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: 500 13.5px "Segoe UI", sans-serif;
}
.wchat-form input:focus { outline: none; border-color: var(--amber); }
.wchat-form .go { width: auto; padding: 6px 16px; font-size: 14px; }

/* список мест под сценой */
.places { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pl {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; color: var(--text); cursor: pointer;
}
.pl b { font-weight: 600; color: #f1e6d0; }
.pl small { font-size: 11px; color: var(--muted); }
.pl:hover { border-color: #6a5540; background: var(--panel-2); }
.pl.street { border-color: #4a6076; }
.pl.street b { color: #a9d4f5; }
.pl.shop b { color: #ffcf7a; }
.pl.portal b { color: #d7b6ff; }
.pl.cave { border-color: #5a4466; }
.pl.cave b { color: #d7b6ff; }
.pl.locked { opacity: .6; }
.pl.locked small { color: #ff9a80; }
.whint { margin-top: 10px; }

@media (max-width: 640px) {
  .whud b { font-size: 16px; }
  .whud { padding: 8px 10px 16px; }
  .wstatus { font-size: 12px; bottom: 7px; }
  .pl { padding: 6px 8px; font-size: 12px; }
  .whint { display: block; font-size: 11.5px; }
  .hbody { grid-template-columns: 1fr; padding: 10px; }
  .hdoll { grid-template-columns: 66px 1fr 66px; }
  .hs { width: 66px; height: 56px; }
  .hs img, .hi img { height: 34px; }
  .wboard { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; max-height: 70vh; z-index: 9; }
  .wboard .btabs { gap: 4px; }
  .wboard .btabs button { padding: 6px 4px; font-size: 12px; }
  .trow { grid-template-columns: 62px minmax(0, 1fr); }
  .urow { grid-template-columns: minmax(0, 1fr) 30px 28px auto; }
  .uneed { grid-column: 1 / -1; }
  .pbtn small { max-width: 92px; }
  .tteams { grid-template-columns: 1fr; }
}

/* магазин на узком экране: отделы — лентой сверху, карточка товара — под списком */
@media (max-width: 860px) {
  div.shop { padding: 8px 6px; }
  .spanel .hhead { padding: 10px 12px 8px; }
  .spanel .hhead b { font-size: 17px; }
  .spanel .hhead span { white-space: nowrap; }
  .spanel .hhead span b { font-size: 14px; }
  .sbody { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
  .sdepts { display: flex; gap: 12px; max-height: none; overflow-x: auto; padding: 0 0 5px; }
  .sdg { display: flex; flex: none; align-items: center; gap: 4px; margin: 0; }
  .sdg > span { margin: 0 2px 0 0; }
  .sdg button { width: auto; margin: 0; white-space: nowrap; }
  .sgoods { max-height: 38vh; }
  .scard { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
  #sCanvas { height: 176px; }
  .sfoot { padding: 0 10px 10px; }
}

/* турниры: отсчёт под названием комнаты, итог турнира, окно турнирной комнаты (на блоках магазина и доски) */
.whud .wtur { display: inline-block; margin-left: 8px; padding: 1px 8px; background: rgba(42, 32, 19, .9); border: 1px solid #8a6a35; border-radius: 999px; color: var(--amber-2); font-weight: 600; }
.whud .wtur[hidden] { display: none; }
.wprize { position: absolute; inset: 0; z-index: 8; display: flex; padding: 12px; background: rgba(8, 6, 5, .62); }
.wprize[hidden] { display: none; }
.wprize-in { margin: auto; width: 100%; max-width: 340px; padding: 18px 20px 16px; background: #17120e; border: 1px solid #8a6a35; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .7); text-align: center; font-size: 13.5px; }
.wprize-in > b { display: block; font: 700 22px Georgia, "Times New Roman", serif; color: #fff3d6; }
.wprize-in.win > b { color: var(--amber-2); }
.wprize-in p { margin: 6px 0 10px; color: var(--muted); line-height: 1.45; }
.pz { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px; color: #d8cbb4; }
.pz i { font-style: normal; font-weight: 700; color: #8be38f; }
.wprize-in p.pzlost { margin: -4px 0 12px; font-size: 12px; color: #ffb4a2; }
.wprize-in .btns { justify-content: center; }
.wprize-in .go { width: auto; padding: 8px 28px; font-size: 15px; }
.turwin .spanel { max-width: 980px; }
.turwin .hhead span { text-align: right; color: var(--amber-2); font-weight: 600; }
.thead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.thead b { font: 700 17px Georgia, "Times New Roman", serif; color: #fff3d6; }
.thead span { font-size: 12.5px; color: var(--muted); }
.tsteps { display: flex; flex-wrap: wrap; gap: 6px; }
.tsteps span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.tsteps span.on { background: #2a2013; border-color: var(--amber); color: var(--amber-2); }
.tsteps span.done { border-color: #3f6a43; color: #8be38f; }
.tkit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.tslots { max-height: 58vh; overflow: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.trow { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; padding-top: 0; }
.tslot { padding-top: 4px; font-size: 12.5px; font-weight: 600; color: #d8cbb4; }
.tslot small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.titems { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.tside { display: flex; flex-direction: column; gap: 8px; }
.tside .bmine + .bmine { margin-top: 0; }
.turwin .bmine small b { color: #fff3d6; }
.turwin .bmine > b.th { display: block; }
.bmine.tbad { background: #2a1511; border-color: #b04a36; }
.bmine small.twarn { color: #ffb4a2; }
.turwin .btns { flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin-top: 9px; }
.turwin .go { width: auto; padding: 8px 16px; font-size: 14px; }
.turwin .tgl { padding: 7px 11px; font-size: 12.5px; }
.turwin .go:disabled, .turwin .tgl:disabled { opacity: .45; cursor: default; }
.tprep { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.tprep .bmine + .bmine { margin-top: 0; }
.tprep .hhp { margin-top: 6px; }
.tcap { margin: 6px 0 0; }
.tteams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tteam { padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.tteam b { display: block; margin-bottom: 4px; }
.tteam.tm1 b { color: #9a9af0; }
.tteam.tm2 b { color: #e0a04a; }
.tteam span { display: block; padding: 1px 0; color: #d8cbb4; }
.tteam span.me, .tnone span.me { font-weight: 600; color: var(--amber-2); }
.tteam small { color: var(--muted); }
.tnone { font-size: 12.5px; color: var(--muted); }
.tspells { display: flex; flex-wrap: wrap; gap: 6px; }
.tspells .tgl { display: inline-flex; align-items: center; gap: 6px; }
.tspells img { height: 22px; }
@media (max-width: 860px) {
  .tkit { grid-template-columns: minmax(0, 1fr); }
  .tslots { max-height: 42vh; }
}

/* приёмы (на блоках магазина и экрана персонажа) */
.prmwin .spanel { max-width: 1080px; }
.prmwin .fcap { margin: 0 0 6px; }
.prmwin .fcap .mclear { margin-left: auto; padding: 5px 11px; font-size: 12.5px; }
.mslots { display: flex; flex-wrap: wrap; gap: 6px; }
.msl { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 40px; padding: 0; background: #100d0a; border: 1px dashed #4a3c2f; border-radius: 7px; color: var(--muted); }
button.msl { border-style: solid; border-color: #5a4838; cursor: pointer; }
button.msl:hover { border-color: var(--amber); }
button.msl.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; background: #241b10; }
.msl img, .mi img, .mname img { width: 48px; height: 30px; border-radius: 3px; image-rendering: auto; }
.mgrid { display: grid; grid-template-columns: 190px minmax(0, 1fr) 320px; gap: 14px; align-items: start; margin-top: 12px; }
.mcats { max-height: 60vh; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.mcats .sdg { margin-bottom: 6px; }
.monly { margin: 0 !important; }
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 60vh; overflow: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.mi {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 76px; padding: 6px 3px 5px;
  background: #100d0a; border: 1px solid #5a4838; border-radius: 8px; color: #d8cbb4; font: 500 10.5px/1.15 "Segoe UI", sans-serif; cursor: pointer;
}
.mi span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
.mi:hover { border-color: var(--amber); }
.mi.sel { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; background: #241b10; }
.mi.on { border-color: #3f6a43; }
.mi.on.sel { border-color: var(--amber); }
.mi.off img, .mi.off span { opacity: .38; }
.mi i { position: absolute; right: 3px; top: 3px; padding: 0 4px; background: #1f3a22; border-radius: 4px; color: #8be38f; font: 600 9.5px/14px "Segoe UI", sans-serif; }
.mside { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mname img { width: 56px; height: 35px; flex: none; }
.mcost { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.mcost span { padding: 2px 8px; background: #1b1612; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: #cfc2ad; }
.mcost b { color: var(--amber-2); }
.msets { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.mset { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); }
.mset:first-of-type { border-top: 0; }
.mset span { flex: 1; min-width: 0; }
.mset b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff3d6; }
.mset small { color: var(--muted); }
.mset .tgl, .msave .tgl { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
.mset .tgl:disabled { opacity: .45; cursor: default; }
.mset .bx { width: 26px; height: 26px; font-size: 16px; flex: none; }
.msave { display: flex; gap: 6px; margin-top: 8px; }
.msave input { flex: 1; min-width: 0; height: 32px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 13px "Segoe UI", sans-serif; }
.msave input:focus { outline: none; border-color: var(--amber); }
.msave input::placeholder { color: #7d705f; }
.prmwin .bmine { margin-bottom: 8px; }
.prmwin .bmine .btns, .msets .bmine .btns { justify-content: flex-start; gap: 6px; margin-top: 8px; }
.prmwin .bmine .go { width: auto; padding: 7px 16px; font-size: 14px; }
.prmwin .bmine .tgl { padding: 6px 11px; font-size: 12.5px; }
@media (max-width: 860px) {
  .mgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mcats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-height: none; }
  .mcats .sdg { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; overflow-x: auto; padding-bottom: 4px; max-width: 100%; }
  .mcats .sdg button { width: auto; margin: 0; white-space: nowrap; }
  .mlist { max-height: 38vh; }
  .msl { width: 52px; height: 36px; }
  .msl img { width: 42px; height: 26px; }
}

/* обмен между игроками */
div.tradewin { z-index: 22; }
.tradewin .spanel { max-width: 860px; }
.tradewin .bnote { margin: 0; font-size: 12.5px; }
.tradewin .bmine .btns, .xform .btns { justify-content: flex-start; gap: 6px; margin-top: 8px; }
.tradewin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.tradewin .go:disabled, .tradewin .tgl:disabled, .tradewin .bx:disabled, .tradewin .hi:disabled { opacity: .45; cursor: default; }
.tradewin .tgl { padding: 7px 12px; font-size: 12.5px; }
.xform { display: flex; flex-direction: column; gap: 8px; }
.xform label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.xform input, .xmoney input { height: 34px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }
.xform input:focus, .xmoney input:focus { outline: none; border-color: var(--amber); }
.xform input::placeholder { color: #7d705f; }
.xform small { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.xtop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: #dccfb8; }
.xtop b { color: #fff3d6; }
.xleft { color: var(--muted); font-size: 12.5px; }
.xleft i { font-style: normal; color: var(--amber-2); font-weight: 600; }
.xcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xcol { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 10px 12px 12px; background: #100d0a; border: 1px solid var(--line); border-radius: 10px; }
.xcol.rdy { border-color: #5fa05a; box-shadow: 0 0 0 1px #5fa05a inset; }
.xcap { display: flex; align-items: center; gap: 8px; font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.xcap i { padding: 1px 8px; background: #1d3a1b; border: 1px solid #5fa05a; border-radius: 999px; font: 600 11px "Segoe UI", sans-serif; color: #b6e6ae; }
.xmoney { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.xmoney input { width: 110px; }
.xmoney input:disabled { opacity: .6; }
.xmoney b { font: 700 17px Georgia, "Times New Roman", serif; color: var(--amber-2); }
.xrow { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.xrow img, .xres img { flex: none; width: 44px; height: 30px; object-fit: contain; }
.xrow span { flex: 1; min-width: 0; }
.xrow b { display: block; font-size: 13px; color: #f1e6d0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xrow small { font-size: 11px; color: var(--muted); }
.xnone { color: #7d705f; font-size: 12.5px; }
.xact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.xact small { flex: 1 1 220px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.xact .xexit { margin-left: auto; }
.xbag.off .xitems { opacity: .5; }
.xbag { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.xbag .fcap { margin-top: 0; }
.xitems { display: flex; flex-wrap: wrap; gap: 6px; max-height: 30vh; overflow: auto; margin-top: 8px; padding: 2px; }
.xitems .hi.xoff { opacity: .45; }
.xsel { margin-top: 8px; }
.xres { display: flex; align-items: center; gap: 8px; }
.xres .pcoin { flex: none; width: 22px; height: 22px; }
.xres b { font-size: 13px; color: #f1e6d0; }
.xres small { font-size: 11px; color: var(--muted); }
.whud .wtrade { pointer-events: auto; cursor: pointer; border-color: var(--amber); font: 600 12.5px "Segoe UI", sans-serif; }
.whud .wtrade:hover { background: #3a2c18; }
@media (max-width: 640px) {
  .xcols { grid-template-columns: minmax(0, 1fr); }
  .xcol { min-height: 0; }
  .xact .xexit { margin-left: 0; }
}

/* информация об игроке */
div.infowin { z-index: 23; }
.infowin .spanel { max-width: 900px; }
.ntop { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; }
.nfig { display: flex; flex-direction: column; gap: 6px; }
#nCanvas { width: 100%; aspect-ratio: 200 / 300; background: radial-gradient(circle at 50% 62%, #2b241d, #17120e 72%); border-radius: 10px; }
.nbar { position: relative; height: 16px; background: #100d0a; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.nbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #2f8a3c; }
.nbar.mp i { background: #2f6f9c; }
.nbar span { position: relative; display: block; text-align: center; font: 600 11px/14px "Segoe UI", sans-serif; color: #fff; text-shadow: 0 1px 1px #000; }
.nwhere { padding: 7px 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; line-height: 1.4; color: #dccfb8; text-align: center; }
.nobr { margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.nobr img { display: block; max-width: 120px; max-height: 220px; margin: 0 auto; border-radius: 4px; }
.nobr figcaption { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.nobr:not(:has(img)) { display: none; }
.nwhere b { display: block; color: #fff3d6; }
.nwhere small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.nwhere a, .nform a { color: var(--amber-2); }
.nmain { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nmain .fcap { margin: 4px 0 -2px; }
.nmain .nitems .hi { width: 68px; height: 58px; }
.nname { display: flex; align-items: center; gap: 6px; font: 700 21px Georgia, "Times New Roman", serif; color: #fff3d6; }
.nname span { color: var(--amber-2); font-size: 17px; }
.nname img { height: 15px; }
.nname i { font: 600 11px "Segoe UI", sans-serif; color: var(--muted); }
.nstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.nstats div, .nform div { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; border-bottom: 1px dotted #3a2f25; }
.nstats span, .nform span, .nrec span { color: var(--muted); font-size: 12.5px; }
.nstats span { flex: 1; }
.nstats b { font: 700 16px Georgia, "Times New Roman", serif; color: #f1e6d0; }
.nstats b.up { color: #8fd486; }
.nstats b.dn { color: #ff8a70; }
.nstats small { min-width: 62px; font-size: 11px; color: var(--muted); text-align: right; }
.nrec { display: flex; gap: 8px; }
.nrec div { flex: 1; padding: 7px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.nrec span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.nrec b { font: 700 18px Georgia, "Times New Roman", serif; color: #fff3d6; }
.nline { display: block; font-size: 12px; color: var(--muted); }
.nfacts { font-size: 13px; line-height: 1.55; color: #dccfb8; }
.nfacts b { color: #fff3d6; }
.nfacts i { font-style: normal; color: #7fd3e2; }
.nwarn { border-color: #b04a36; background: #2a1511; font-size: 13px; }
.nitems { display: flex; flex-wrap: wrap; gap: 6px; }
.nitems .hi { display: block; cursor: default; }
.nchips { display: flex; flex-wrap: wrap; gap: 6px; }
.nchip { padding: 4px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: #dccfb8; }
.nchip.r1 { border-color: #9a6a3c; }
.nchip.r2 { border-color: #a9b0b8; }
.nchip.r3 { border-color: var(--amber); color: var(--amber-2); }
.nlink { padding: 0; background: none; border: 0; color: var(--amber-2); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.ngifts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ngifts > span { flex: 0 0 76px; font-size: 12px; color: var(--muted); }
.ngift { width: 66px; height: 46px; padding: 2px; background: #100d0a; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.ngift:hover, .ngift.on { border-color: var(--amber); }
.ngift img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ngsel small { margin-top: 4px; }
.nform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.nform span { flex: 0 0 auto; }
.nform b { min-width: 0; color: #f1e6d0; font-weight: 600; overflow-wrap: anywhere; }
.nhobby > span { display: block; margin: 4px 0 2px; font-size: 12.5px; color: var(--muted); }
.nhobby .ptext { max-height: 220px; overflow: auto; }
.nfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.nfoot .tgl, .nfind .tgl { padding: 7px 12px; font-size: 12.5px; text-decoration: none; }
.nfind { display: flex; gap: 6px; margin-left: auto; }
.infowin .hhint + .nfind { margin: 4px 0 0; }
.nfind input { width: 190px; height: 32px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 13px "Segoe UI", sans-serif; }
.nfind input:focus { outline: none; border-color: var(--amber); }
.nfind input::placeholder { color: #7d705f; }
@media (max-width: 640px) {
  .ntop { grid-template-columns: minmax(0, 1fr); }
  .nfig { max-width: 230px; width: 100%; margin: 0 auto; }
  .nform { grid-template-columns: minmax(0, 1fr); }
  .nfind { margin-left: 0; flex: 1 1 100%; }
  .nfind input { flex: 1; width: auto; min-width: 0; }
}

/* контакты */
div.frwin { z-index: 21; }
.frwin .spanel { max-width: 880px; }
.frwin .tgl { padding: 5px 10px; font-size: 12.5px; }
.radd { display: grid; grid-template-columns: minmax(0, 1.2fr) 170px minmax(0, 1.6fr) auto; gap: 8px 10px; align-items: end; }
.radd label { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.radd input, .radd select, .rform input, .rform select { min-width: 0; height: 34px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }
.radd input:focus, .radd select:focus, .rform input:focus, .rform select:focus { outline: none; border-color: var(--amber); }
.radd input::placeholder, .rform input::placeholder { color: #7d705f; }
.radd input:disabled, .radd select:disabled { opacity: .5; }
.radd .go, .rform .go { width: auto; height: 34px; padding: 0 18px; font-size: 14px; }
.radd .go:disabled { opacity: .45; cursor: default; }
.radd small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.frwin .fcap .rclear { margin-left: auto; }
.frwin .bnote { margin: -2px 0 6px; }
.bnote.rbad { color: #ffb4a2; }
.rlist { display: flex; flex-direction: column; gap: 4px; }
.rrow { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(110px, 1fr) minmax(0, 1.2fr) auto; gap: 4px 12px; align-items: center; padding: 6px 8px 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.rrow.off .rwho, .rrow.off .rwhere { opacity: .62; }
.rrow.redit { grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr); border-color: var(--amber); background: #2a2013; }
.rrow.redit small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.rrow.rmod { grid-template-columns: minmax(0, 1fr) auto; }
.rwho { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rwho img { flex: none; height: 15px; }
.rwho span { flex: none; color: var(--amber-2); font-size: 12.5px; }
.rdot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #5a4c3e; }
.rdot.on { background: #58c25a; box-shadow: 0 0 5px rgba(88, 194, 90, .7); }
.rname { min-width: 0; padding: 0; background: none; border: 0; color: #fff3d6; font: 700 14px "Segoe UI", sans-serif; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rname:hover { color: var(--amber-2); text-decoration: underline; }
.rwhere { font-size: 12.5px; color: #dccfb8; }
.rnote { font-size: 12.5px; font-style: italic; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ract, .rform { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ract { justify-content: flex-end; }
.rform input { flex: 1 1 160px; }
.rform select { flex: 0 0 150px; }
.rq { margin-right: 6px; color: #fff3d6; }
@media (max-width: 760px) {
  .radd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .radd .rwide, .radd .go { grid-column: 1 / -1; }
  .rrow { grid-template-columns: minmax(0, 1fr) auto; }
  .rrow .rnote { grid-column: 1 / -1; white-space: normal; }
  .rrow .rnote:empty { display: none; }
  .rrow .ract { grid-column: 1 / -1; justify-content: flex-start; }
  .rrow.redit, .rrow.rmod { grid-template-columns: minmax(0, 1fr); }
  .rrow.rmod .ract { grid-column: auto; }
}

/* кланы */
div.clwin { z-index: 21; }
.clwin .spanel { max-width: 900px; }
.clwin .tgl { padding: 6px 11px; font-size: 12.5px; text-decoration: none; }
.clwin .htabs button:disabled { cursor: default; }
.ctop { display: flex; gap: 14px; align-items: center; }
.cbig { flex: none; width: 96px; height: 60px; object-fit: contain; image-rendering: pixelated; }
.csmall { flex: none; width: 24px; height: 15px; object-fit: contain; vertical-align: middle; }
.cmain { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.clname { display: flex; align-items: center; gap: 7px; font: 700 23px Georgia, "Times New Roman", serif; color: #fff3d6; }
.clname img { height: 16px; }
.cfacts { font-size: 13px; color: #dccfb8; }
.cfacts b { color: var(--amber-2); }
.cmotto { font: italic 15px Georgia, "Times New Roman", serif; color: #e6dcc4; }
.cline { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dotted #3a2f25; font-size: 13px; color: #dccfb8; }
.cline > span { flex: 0 0 110px; font-size: 12.5px; color: var(--muted); }
.cline > div { min-width: 0; flex-wrap: wrap; }
.cline b { color: #fff3d6; }
.cline a { color: var(--amber-2); }
.cline .cekr { color: #7fd3e2; }
.cabout.cut { max-height: 96px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.cfoot { display: flex; flex-wrap: wrap; gap: 6px; }
.rrow.cmem { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cnote { white-space: normal; font-style: normal; }
.cnote .chead { color: #7fd3e2; }
.cnote .ctitle { filter: brightness(1.9) saturate(.8); }
.cnews { display: flex; flex-direction: column; gap: 6px; }
.cnew { padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.cnew > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cnew b { color: #fff3d6; }
.cnew small { font-size: 11.5px; color: var(--muted); }
.cnew .ptext { margin: 5px 0 0; }
.cpager { justify-content: center; gap: 8px; }
.cpager .tgl:disabled { opacity: .4; cursor: default; }
.cfind { margin: 0 0 4px; }
.ctable { display: flex; flex-direction: column; gap: 2px; }
.crow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 90px 90px; gap: 8px; align-items: center; padding: 5px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: #dccfb8; }
.crow > span { text-align: center; }
.crow > .cwide { display: flex; align-items: center; gap: 6px; min-width: 0; text-align: left; }
.crow.mine { border-color: var(--amber); background: #2a2013; }
.crow.chdr { position: sticky; top: 0; z-index: 1; background: #17120e; border-color: #8a6a35; }
.cth { padding: 2px 0; background: none; border: 0; color: var(--muted); font: 600 11px "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.cth.cwide { text-align: left; }
.cth:hover, .cth.on { color: var(--amber-2); }
@media (max-width: 640px) {
  .ctop { align-items: flex-start; }
  .cbig { width: 64px; height: 40px; }
  .clname { font-size: 19px; }
  .cline { flex-direction: column; gap: 1px; }
  .cline > span { flex: none; }
  .crow { grid-template-columns: 34px minmax(0, 1fr) 52px 52px; gap: 5px; padding: 5px 7px; }
  .cth { font-size: 9.5px; letter-spacing: 0; }
}

/* клан: формы управления */
.cform { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.rrow > .cform, .cnew > .cform { grid-column: 1 / -1; margin: 6px 0 2px; }
.cform label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cform input, .cform select, .cform textarea { min-width: 0; padding: 7px 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px/1.4 "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }
.cform input, .cform select { height: 34px; padding: 0 9px; }
.cform textarea { resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--amber); }
.cform input::placeholder, .cform textarea::placeholder { color: #7d705f; }
.cform .btns { justify-content: flex-start; gap: 6px; margin: 0; }
.cform .go { width: auto; padding: 7px 18px; font-size: 14px; }
.cform small { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.cmoney { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cmoney .tgl { padding: 3px 10px; }
.cnew > div:first-child .cdel { margin-left: auto; width: 24px; height: 24px; font-size: 15px; }

/* регистратура кланов */
div.regwin { z-index: 20; }
.regwin .spanel { max-width: 820px; }
.regwin .tgl { padding: 6px 11px; font-size: 12.5px; }
.regwin .bmine .btns, .gform .btns { justify-content: flex-start; align-items: center; gap: 6px; margin-top: 8px; }
.regwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.regwin .go:disabled, .regwin .tgl:disabled { opacity: .45; cursor: default; }
.ginv .csmall { margin-right: 6px; }
.gwarn { color: #ffb4a2 !important; }
.gwhere { border-color: #8a6a35; }
.gform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.gform label, .gform .alab { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gform input[type="text"], .gform select, .gform textarea { min-width: 0; padding: 7px 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px/1.4 "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }
.gform input[type="text"], .gform select { height: 34px; padding: 0 9px; }
.gform textarea { resize: vertical; }
.gform input:focus, .gform select:focus, .gform textarea:focus { outline: none; border-color: var(--amber); }
.gform input:disabled, .gform select:disabled, .gform textarea:disabled { opacity: .5; }
.gform input::placeholder { color: #7d705f; }
.gform .gwide { grid-column: 1 / -1; }
.gform .btns small { font-size: 12px; color: #ffb4a2; }
.gfile { display: flex; align-items: center; gap: 8px; min-height: 34px; text-transform: none; letter-spacing: 0; }
.gfile i { min-width: 0; font-style: normal; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gprev { flex: none; width: 48px; height: 30px; padding: 3px; background: #2b241d; border: 1px solid var(--line); border-radius: 5px; object-fit: contain; image-rendering: pixelated; }
@media (max-width: 640px) {
  .gform { grid-template-columns: minmax(0, 1fr); }
}

/* анкета персонажа */
div.ankwin { z-index: 24; }
.ankwin .spanel { max-width: 760px; }
.ankwin .tgl { padding: 6px 11px; font-size: 12.5px; }
.ankwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.ankwin .go:disabled, .ankwin .tgl:disabled { opacity: .45; cursor: default; }
.ankwin .bnote { margin: 0; font-size: 12.5px; }
.hmsg.ok { background: rgba(139, 227, 143, .08); border-color: rgba(139, 227, 143, .35); color: #b9ecbb; }
.acap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.acnt { font-style: normal; font-size: 11px; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.acnt.over { color: #ffb4a2; }
.aform input.over, .aform textarea.over { border-color: #b04a36; }
.aform small { font-size: 11.5px; line-height: 1.35; text-transform: none; letter-spacing: 0; color: var(--muted); }
.aform .btns small { color: #ffb4a2; }
.aform textarea { min-height: 130px; }
.aborn { display: flex; gap: 6px; }
.aborn select { flex: 1 1 0; }
.aborn.fix { align-items: center; min-height: 34px; font: 500 14px/1.4 "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; color: var(--text); }
.gform label.acheck { flex-direction: row; align-items: center; gap: 7px; margin-top: 3px; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: #dccfb8; cursor: pointer; }
.acheck input { flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--amber); }
.acolors { display: flex; flex-wrap: wrap; gap: 6px; }
.achip { padding: 5px 11px; background: #1b1612; border: 1px solid var(--line); border-radius: 999px; font: 600 12.5px "Segoe UI", sans-serif; color: #e6dcc4; cursor: pointer; }
.achip:hover:not(:disabled) { border-color: #8a6a35; }
.achip.on { border-color: var(--amber); background: #2a2013; box-shadow: inset 0 0 0 1px var(--amber); }
.achip:disabled { opacity: .5; cursor: default; }
.aprev { margin-top: 4px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; color: #e6dcc4; word-break: break-word; }
.aprev i { margin-right: 6px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.aprev b { margin-right: 5px; color: #7fd3e2; }

/* питомцы */
div.petwin { z-index: 24; }
.petwin .spanel { max-width: 880px; }
.petwin .tgl { padding: 6px 11px; font-size: 12.5px; }
.petwin .go { width: auto; padding: 7px 16px; font-size: 14px; }
.petwin .go:disabled, .petwin .tgl:disabled { opacity: .45; cursor: default; }
.petwin .bnote { margin: 0; font-size: 12.5px; }
.petwin .bnote a { color: #a9d4f5; }
.petwin .bnote.ptail { margin-top: 4px; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { display: flex; gap: 12px; min-width: 0; padding: 10px 12px; background: #100d0a; border: 1px solid var(--line); border-radius: 10px; }
.pcard.on { border-color: var(--amber); background: #1d160d; }
.pcard.pfree { border-style: dashed; }
.pcard.pnew { grid-column: 1 / -1; border-color: #8a6a35; }
.ppic { flex: none; align-self: flex-start; width: 84px; height: 154px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ppic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; }
.pname b { font: 700 16px Georgia, "Times New Roman", serif; color: #fff3d6; overflow-wrap: anywhere; }
.pname span { color: var(--amber-2); font-weight: 600; }
.pname i { font-style: normal; font-size: 12px; color: var(--muted); }
.pname em { padding: 1px 8px; border: 1px solid var(--amber); border-radius: 999px; font-style: normal; font-size: 11px; color: var(--amber-2); }
.pname em.pcage { border-color: #8a6a35; color: var(--muted); }
.pbar { position: relative; height: 18px; background: #1b1612; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #5a4a2c; }
.pbar.peda i { background: #3f6a3a; }
.pbar.empty { border-color: #b04a36; }
.pbar span { position: relative; display: block; padding: 0 8px; font-size: 11.5px; line-height: 16px; color: #ece2d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstats { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pstats b { color: #e6dcc4; }
.pcard .btns { justify-content: flex-start; gap: 6px; margin-top: auto; padding-top: 2px; }
.pform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pform label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pform input { width: 170px; height: 34px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px "Segoe UI", sans-serif; }
.pform input[type="number"] { width: 96px; }
.pform input:focus { outline: none; border-color: var(--amber); }
.pform .btns { margin: 0; padding: 0; }
.pform small { flex-basis: 100%; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.pform .rq { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.4; }
.pcost { align-self: center; font-size: 13px; color: #e6dcc4; }
.pcost.pbad { color: #ffb4a2; }
.ptypes { display: flex; flex-wrap: wrap; gap: 6px; }
.ptype { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 6px 4px 5px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: #e6dcc4; font: 600 12px "Segoe UI", sans-serif; cursor: pointer; }
.ptype img { width: 44px; height: 44px; object-fit: contain; }
.ptype:hover { border-color: #8a6a35; }
.ptype.on { border-color: var(--amber); background: #2a2013; box-shadow: inset 0 0 0 1px var(--amber); }
@media (max-width: 640px) {
  .pcards { grid-template-columns: minmax(0, 1fr); }
  .ppic { width: 66px; height: 121px; }
  .pform label { flex: 1 1 140px; }
  .pform input, .pform input[type="number"] { width: 100%; }
}

/* образ персонажа */
div.obrwin { z-index: 24; }
.obrwin .spanel { max-width: 900px; }
.obrwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.obrwin .go:disabled { opacity: .45; cursor: default; }
.obrwin .bnote { margin: auto 0 0; font-size: 12.5px; }
.otop { display: flex; gap: 14px; padding: 10px 12px; background: #100d0a; border: 1px solid var(--line); border-radius: 10px; }
.obig { flex: none; width: 120px; height: 220px; background: #1b1612; border: 1px solid #8a6a35; border-radius: 8px; overflow: hidden; }
.obig img, .othumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.oside > b { font: 700 17px Georgia, "Times New Roman", serif; color: #fff3d6; }
.oside .btns { justify-content: flex-start; }
.oneed { font-size: 13px; line-height: 1.45; color: var(--muted); }
.oneed ul { margin: 2px 0 0; padding-left: 18px; }
.oneed li.met { color: #b9ecbb; }
.oneed li.miss, .oneed .miss { color: #ffb4a2; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.othumb { position: relative; display: block; aspect-ratio: 6 / 11; padding: 0; background: #1b1612; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; cursor: pointer; }
.othumb:hover { border-color: #8a6a35; }
.othumb.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.othumb.cur { border-color: #6fbf73; }
.othumb.cur.on { box-shadow: 0 0 0 1px #6fbf73; }
.othumb.off img { filter: grayscale(.85) brightness(.6); }
.othumb i { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(8, 6, 5, .82); font: 600 10.5px "Segoe UI", sans-serif; font-style: normal; text-align: center; color: #e6dcc4; }
.othumb.cur i { color: #b9ecbb; }
@media (max-width: 640px) {
  .otop { gap: 10px; padding: 8px; }
  .obig { width: 96px; height: 176px; }
  .ogrid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
}

/* общежитие */
div.hostwin { z-index: 20; }
.hostwin .spanel { max-width: 820px; }
.hostwin .tgl { padding: 6px 11px; font-size: 12.5px; }
.hostwin .tgl.on { border-color: var(--amber); color: var(--amber-2); }
.hostwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.hostwin .go:disabled, .hostwin .tgl:disabled { opacity: .45; cursor: default; }
.hostwin .bnote { margin: 0; font-size: 12.5px; }
.hostwin .bnote a, .hostwin .bmine a { color: #a9d4f5; }
.hostwin .bmine .btns, .jleft { justify-content: flex-start; align-items: center; gap: 6px; margin-top: 8px; }
.jleft { margin-top: 0; }
.jkinds { display: flex; flex-direction: column; gap: 8px; }
.jkinds .bmine + .bmine { margin-top: 0; }
.jwarn { margin: 0 !important; color: #ffb4a2 !important; }
.jfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.jfacts b { color: #fff3d6; }
.jfacts em { font-style: normal; color: #ffb4a2; }
.jpay { display: flex; flex-wrap: wrap; gap: 6px; }
.jpay input { width: 130px; height: 34px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px "Segoe UI", sans-serif; }
.jpay input:focus, .jnotes textarea:focus { outline: none; border-color: var(--amber); }
.jtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.jnotes label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.jnotes textarea { flex-basis: 100%; min-height: 150px; padding: 8px 10px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px/1.45 "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; resize: vertical; }
.jnotes .btns { margin-top: 8px; }
.jnotes .btns small { font-size: 12px; color: #ffb4a2; }
.jpets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jpet { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; background: #100d0a; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.jpet i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.jpet b { font: 700 14px Georgia, "Times New Roman", serif; color: #fff3d6; overflow-wrap: anywhere; }
.jpet b span { color: var(--amber-2); font: 600 12px "Segoe UI", sans-serif; }
.jpet.empty b { font: 500 13px "Segoe UI", sans-serif; color: var(--muted); }
.jpic { width: 84px; height: 154px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.jpic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jtail { margin-top: 4px !important; }
@media (max-width: 640px) {
  .jfacts { grid-template-columns: minmax(0, 1fr); }
  .jpets { gap: 6px; }
  .jpic { width: 66px; height: 121px; }
  .jpay input { flex: 1 1 110px; width: auto; }
}

/* общежитие: сундук */
.jshelf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jshelf .tgl small { margin-left: 4px; font-size: 11.5px; color: var(--muted); }
.jshelf input { flex: 1 1 160px; min-width: 0; height: 32px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 13.5px "Segoe UI", sans-serif; }
.jshelf input:focus { outline: none; border-color: var(--amber); }
.jwarnbox { border-color: #b04a36; color: #ffb4a2; }
.jchest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jcol { min-width: 0; }
.jcol .fcap { margin: 0 0 6px; }
.jlist { display: flex; flex-direction: column; gap: 4px; max-height: 340px; padding-right: 2px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.jrow { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 7px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; }
.jrow[hidden] { display: none; }
.jrow img, .jnoimg { flex: none; width: 40px; height: 34px; object-fit: contain; }
.jname { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; color: #e6dcc4; overflow-wrap: anywhere; }
.jname b { color: var(--amber-2); }
.jname small { display: block; font-size: 11px; color: var(--muted); }
.jrow .tgl { flex: none; padding: 5px 9px; font-size: 12px; }
@media (max-width: 640px) {
  .jchest { grid-template-columns: minmax(0, 1fr); }
  .jlist { max-height: 250px; }
}

/* хижина Знахаря (js/wznahar.js): слева перенос очков между характеристиками, справа сбросы */
div.znwin { z-index: 20; }
.znwin .spanel { max-width: 820px; }
.znwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.znwin .go:disabled, .znwin .tgl:disabled { opacity: .45; cursor: default; }
.znwin .bnote { margin: 0 0 4px; }
.zlead { margin: 0; font-size: 12.5px; font-style: italic; line-height: 1.45; color: #c9b89a; }
.zgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.zcol { min-width: 0; }
.zrow { display: grid; grid-template-columns: minmax(0, 1fr) 52px 30px auto; align-items: center; gap: 6px; padding: 3px 0; }
.zn { min-width: 0; color: #d8cbb4; line-height: 1.25; }
.zn small { display: block; font-size: 11px; color: var(--muted); }
.zv { text-align: right; font-size: 14px; color: #fff3d6; white-space: nowrap; }
.zv small { margin-left: 3px; font-size: 11px; color: #8be38f; }
.zd { font-weight: 600; text-align: center; }
.zd.up { color: #8be38f; }
.zd.down { color: #ff8a70; }
.zrow.closed .zn, .zrow.closed .zv { color: #7b6e5d; }
.zsum { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.zsum b { color: var(--amber-2); }
.zbtns { justify-content: flex-start; gap: 8px; margin-top: 8px; }
.zdrop { display: flex; flex-direction: column; gap: 8px; }
.zcard { padding: 9px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; line-height: 1.4; }
.zcard b { display: block; color: #fff3d6; }
.zcard small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.zcard > .tgl { margin-top: 8px; padding: 6px 12px; font-size: 12.5px; }
.zcard.ask { border-color: var(--amber); background: #2a2013; }
.zcard.ask .sask { margin-top: 6px; }
.znwin .sfoot small { flex: 1 1 220px; align-self: center; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .zgrid { grid-template-columns: minmax(0, 1fr); }
}

/* Фонтан Удачи (js/wfontan.js): слева монетка, вода и выигрыши, справа доска пожеланий */
div.ftwin { z-index: 20; }
.ftwin .spanel { max-width: 880px; }
.ftwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.ftwin .go:disabled, .ftwin .tgl:disabled { opacity: .45; cursor: default; }
.ftwin .zlead { margin-bottom: 2px; }
.ftwin .hmsg.win { background: rgba(255, 207, 122, .14); border-color: var(--amber); color: #ffe2a3; font-weight: 600; font-size: 14px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.fcol { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fcard .go { margin-top: 9px; }
.fcard em { font-style: normal; font-weight: 700; color: var(--amber-2); }
.fcard .hhp { margin-top: 7px; }
.fcard .fmp { height: 14px; margin-top: 4px; }
.fcard .fmp span { display: block; font: 700 10px/13px "Segoe UI", sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 1px #000; position: absolute; inset: 0; }
.fcard .sask { margin-top: 9px; }
small.fwarn, .fnote.fwarn { color: #ffb4a2; }
.fwins .ucap:first-child { margin-top: 2px; }
.flist { margin: 0; padding: 0; list-style: none; max-height: 230px; overflow: auto; font-size: 12.5px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.flist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 2px; border-top: 1px solid var(--line); }
.flist li:first-child { border-top: 0; }
.flist li b { color: var(--amber-2); white-space: nowrap; }
.fboard { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.fwish { flex: none; padding: 7px 9px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; }
.fwish.ask { border-color: var(--amber); }
.fwho { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.fwho small { margin-left: auto; font-size: 11px; color: var(--muted); }
.ftext { margin-top: 4px; color: #f1e6d0; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.fname { padding: 0; background: none; border: 0; color: #fff3d6; font: 600 12.5px "Segoe UI", sans-serif; cursor: pointer; }
.fname:hover { color: var(--amber-2); text-decoration: underline; }
.flv { margin-left: 3px; color: var(--muted); }
.fnone { color: #7b6e5d; }
.fal { width: 12px; height: 15px; vertical-align: middle; }
.fcl { width: 24px; height: 15px; object-fit: contain; vertical-align: middle; }
.fdel { padding: 0 2px 0 6px; background: none; border: 0; color: #ff9a80; font: 500 11.5px "Segoe UI", sans-serif; cursor: pointer; }
.fdel:hover { text-decoration: underline; }
.fform { display: flex; gap: 6px; margin-top: 2px; }
.fform input { flex: 1; min-width: 0; height: 36px; padding: 0 9px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 13.5px "Segoe UI", sans-serif; }
.fform input:focus { outline: none; border-color: var(--amber); }
.fform input::placeholder { color: #7d705f; }
.fform .go { flex: none; }
.fnote { min-height: 16px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.ftwin .sfoot small { flex: 1 1 220px; align-self: center; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fboard, .flist { max-height: none; }
}
/* Фонтан Удачи на Центральной площади — место на площади, а не дом и не улица */
.pl.square { border-color: #3f6a80; }
.pl.square b { color: #9fd8f0; }

/* разговор с хозяином места (js/wtalk.js): портрет, страница диалога движка и ответы — как у разговора в пещере (cave.css) */
div.tlkwin { z-index: 20; }
.tlkwin .spanel { max-width: 640px; }
.tlkwin .dlg-body { display: flex; gap: 14px; align-items: flex-start; }
.tlkwin .tkpic { flex: none; width: 120px; height: 220px; object-fit: contain; background: radial-gradient(ellipse at 50% 85%, rgba(255, 207, 122, .14), rgba(0, 0, 0, 0) 70%); border-radius: 8px; }
.tlkwin .dlg-body .hhint { align-self: center; }
.tlkwin .dlg-text { flex: 1; min-width: 0; color: #eadfcb; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.tlkwin .dlg-ans { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.tlkwin .dlg-a { text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 207, 122, .25); border-radius: 7px; padding: 6px 10px; color: #ffcf7a; font: inherit; font-size: 13.5px; cursor: pointer; }
.tlkwin .dlg-a:hover:not(:disabled) { background: rgba(255, 207, 122, .12); }
.tlkwin .dlg-a:disabled { opacity: .6; cursor: default; }
.tlkwin .dlg-a.pg::after { content: " \2197"; color: var(--muted); }
.tlkwin .dlg-off { padding: 6px 10px; color: #8d8272; font-size: 13.5px; cursor: help; }
.tlkwin .dlg-off small { display: block; margin-top: 2px; font-size: 11.5px; color: #7b6e5d; }
.tlkwin .tkbtns { justify-content: flex-start; margin-top: 4px; }
.tlkwin .sfoot small { flex: 1 1 220px; align-self: center; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .tlkwin .tkpic { width: 72px; height: 132px; }
}

/* алтари Храма Знаний (js/waltar.js): вещи с наградой за каждую; руны плитками по уровням, выбор трёх */
div.altwin { z-index: 20; }
.altwin .spanel { max-width: 860px; }
.altwin .go { width: auto; padding: 7px 16px; font-size: 14px; }
.altwin .go:disabled, .altwin .tgl:disabled { opacity: .45; cursor: default; }
.altwin .hmsg.win { background: rgba(255, 207, 122, .14); border-color: var(--amber); color: #ffe2a3; font-weight: 600; font-size: 14px; }
.altinfo small.fwarn { color: #ffb4a2; }
.altgot { border-color: #5f7f4f; background: #161d10; }
.altgot.uni { border-color: var(--amber); background: #2a2013; }
.altgot .hname img { height: 36px; }
.altgot .hprops { margin-top: 6px; }
.altgot .hprops b { display: inline; color: #8be38f; }
.altlist { display: flex; flex-direction: column; max-height: 52vh; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #5a4838 transparent; }
.altrow .sgn small.altg { color: #d9b86c; white-space: normal; }
.altrow.ask { border-color: var(--amber); background: #241b10; }
.altrow .sask, .altrow .sbuy { grid-column: 1 / -1; margin-top: 2px; }
.altbtns { justify-content: flex-start; gap: 6px; margin-top: 8px; }
.altbtns .tgl { padding: 6px 12px; font-size: 12.5px; text-decoration: none; }
.altpick small { display: block; margin-top: 3px; color: var(--muted); }
.altpick .sask { margin-top: 8px; }
.altrunes { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 6px; }
.altr { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.altr img { flex: none; width: 36px; height: 36px; object-fit: contain; }
.altr span { min-width: 0; }
.altr b { display: block; font-size: 12.5px; font-weight: 600; color: #f1e6d0; }
.altr small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.altr small b { display: inline; font-size: 11.5px; color: #8be38f; }
.altr small.altwhy { color: #ffb4a2; }
.altr:hover:not(:disabled) { border-color: var(--amber); }
.altr.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; background: #241b10; }
.altr.off { opacity: .6; }
.altr:disabled { cursor: default; }
.altwin .sfoot small { flex: 1 1 220px; align-self: center; font-size: 12px; color: var(--muted); }

/* Новогодняя ёлка (js/welka.js): слева подарок, чаша и эффект, справа надписи на стволе с листалкой (части — как у фонтана) */
div.elwin { z-index: 20; }
.elwin .spanel { max-width: 880px; }
.elwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.elwin .go:disabled, .elwin .tgl:disabled { opacity: .45; cursor: default; }
.elwin .zlead { margin-bottom: 2px; }
.elwin .hmsg.win { background: rgba(255, 207, 122, .14); border-color: var(--amber); color: #ffe2a3; font-weight: 600; font-size: 14px; }
.elwin .sfoot small { flex: 1 1 220px; align-self: center; font-size: 12px; color: var(--muted); }
.elhd { display: flex; gap: 10px; align-items: center; }
.elhd > div { min-width: 0; }
.elico { flex: none; width: 48px; height: 48px; object-fit: contain; }
.elbrick { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.elbrick img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.eleffs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: #d8cbb4; }
.eleffs span { display: inline-flex; align-items: center; gap: 4px; }
.eleffs img { flex: none; width: 24px; height: 24px; object-fit: contain; }
.elbtns { justify-content: flex-start; margin-top: 8px; }
.elbtns .tgl { padding: 6px 12px; font-size: 12.5px; text-decoration: none; }
.elpages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.elpages .tgl { min-width: 30px; padding: 3px 7px; font-size: 12.5px; text-align: center; }
.elpages .tgl.on { border-color: var(--amber); color: var(--amber-2); font-weight: 700; }
.elpages span { padding: 0 2px; color: var(--muted); }
.elnm { cursor: default; }
.elnm:hover { color: #fff3d6; text-decoration: none; }

/* a2d 2026-11-25 (лес, этап 2): Озеро (js/wozero.js): слева профессия, снасти в карманах, заброс с отсчётом и улов, справа
   таблица шансов (окно — копия фонтана: .ftwin; части — .fgrid, .fcol, .zcard, .fcard, .hmsg.ok/.win, small.fwarn, .elhd,
   .elico, .sask, .sbuy) */
div.ozwin { z-index: 20; }
.ozwin .spanel { max-width: 880px; }
.ozwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.ozwin .go:disabled, .ozwin .tgl:disabled { opacity: .45; cursor: default; }
.ozwin .zlead { margin-bottom: 2px; }
.ozwin .hmsg.win { background: rgba(255, 207, 122, .14); border-color: var(--amber); color: #ffe2a3; font-weight: 600; font-size: 14px; }
.ozwin .sfoot small { flex: 1 1 220px; align-self: center; font-size: 12px; color: var(--muted); }
.ozexp { height: 5px; margin-top: 7px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 3px; }
.ozexp i { display: block; height: 100%; background: linear-gradient(90deg, #3f6a80, #9fd8f0); }
.ozgear { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ozg { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; }
.ozg.on { border-color: #3f6a80; }
.ozg > div { min-width: 0; }
.ozg b { display: block; font-size: 12.5px; font-weight: 600; color: #f1e6d0; }
.ozg small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.ozg small.fwarn { color: #ffb4a2; }
.ozg .tgl { margin-top: 5px; padding: 4px 10px; font-size: 12px; }
.ozico { flex: none; width: 40px; height: 40px; object-fit: contain; }
.ozg:not(.on) .ozico { opacity: .45; }
.ozno { display: block; border: 1px dashed #4a3c2e; border-radius: 6px; }
.ozpock small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.ozpock small.fwarn { color: #ffb4a2; }
.ozbtns { justify-content: flex-start; margin-top: 6px; }
.ozbtns .tgl { padding: 6px 12px; font-size: 12.5px; }
.ozcast { border-color: #3f6a80; }   /* a2d 2026-11-25 (лес, этап 2): карточка заброса — рамка цвета воды, как у надетой снасти */
.ozclock { margin-top: 6px; font: 700 26px/1.1 Georgia, "Times New Roman", serif; color: #9fd8f0; letter-spacing: .02em; }
.ozbar { height: 6px; margin-top: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 3px; }
.ozbar i { display: block; height: 100%; background: linear-gradient(90deg, #3f6a80, #9fd8f0); transition: width .25s linear; }
.ozres.win { border-color: var(--amber); background: #2a2013; }
.ozres em { font-style: normal; font-weight: 700; color: var(--amber-2); }
.oztab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.oztab th { padding: 4px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); }
.oztab td { padding: 4px 6px; border-top: 1px solid var(--line); color: #f1e6d0; vertical-align: middle; }
.oztab tbody tr:first-child td { border-top: 0; }
.oztab td + td, .oztab th + th { text-align: right; white-space: nowrap; }
.oztab td + td { color: var(--amber-2); }
.ozfn { display: inline-flex; align-items: center; gap: 6px; }
.ozti { flex: none; width: 28px; height: 28px; object-fit: contain; }
@media (max-width: 640px) {
  .ozgear { grid-template-columns: minmax(0, 1fr); }
}

/* город видом сверху (js/wtop.js): сцена выше, чем у прежней сцены сбоку; под ней — авторы графики */
.wcredit { margin: 6px 2px 0; font-size: 11px; color: #8d8272; }
/* окно похода у входа в пещеру и окно портала (js/wapp.js) — в стиле доски поединков */
#gate .brow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
#gate .brow small { display: block; color: var(--muted); }
#gate .gjoin { display: flex; gap: 6px; align-items: center; flex: none; }
#gate .gjoin input { width: 86px; background: #120f0c; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color: var(--text); font: inherit; }
#gate .bform b { display: block; margin-bottom: 6px; color: #fff3d6; }
#gate .bform .bwho { margin-bottom: 6px; }
#gate .bmine small { display: block; margin-top: 4px; color: var(--muted); }
#gate .gfull { flex: none; color: var(--muted); }
.wcredit a { color: #c9a86a; }
.stage-wrap.top { aspect-ratio: 1280 / 720; }
@media (max-width: 640px) {
  .stage-wrap.top { aspect-ratio: 4 / 3.8; }
}

/* a2d 2026-11-23: окно «Бонусы» (js/wbonus.js): бонус за онлайн, ежедневное испытание и праздничные задания —
   карточки одна под другой (части — как у фонтана и ёлки: .zcard, .fcard, .hmsg.ok, small.fwarn, .elhd, .elico) */
div.bnwin { z-index: 20; }
.bnwin .spanel { max-width: 640px; }
.bnwin .go { width: auto; padding: 8px 18px; font-size: 14px; }
.bnwin .go:disabled { opacity: .45; cursor: default; }
.bncards { display: flex; flex-direction: column; gap: 8px; }
.bnwin small.bnok { color: #b9ecbb; }
.bnwin i.fwarn { font-style: normal; color: #ffb4a2; }
.bnwin .bnx2 { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--amber-2); }
.bnwin .bnimg { width: 24px; height: 24px; margin-right: 4px; object-fit: contain; vertical-align: middle; }
.bnwin .bnbtns { justify-content: flex-start; margin-top: 8px; }
.bnwin .bnbtns .tgl { padding: 6px 12px; font-size: 12.5px; text-decoration: none; }

/* a2d 2026-11-29 (Излом): окно Излома Хаоса (js/wizlom.js) */
.izwin .iz-start { margin: 10px 0; }
.izwin .iz-start small { color: var(--muted); }
.izwin .iz-cool { margin-top: 6px; color: var(--amber-2); }
.izwin .iz-start .btns { margin-top: 8px; }
.izwin .iztab { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.izwin .iztab th, .izwin .iztab td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.izwin .iztab th { color: var(--muted); font-weight: normal; }
.izwin .iztab td:last-child, .izwin .iztab th:last-child { text-align: right; }
.izwin .iztab small { color: var(--muted); }

/* a2d 2026-11-29 (башня, этап 2): окно Башни Смерти (js/wtower.js) */
.twwin .tw-next { margin-bottom: 8px; }
.twwin .tw-bet { margin: 8px 0; }
.twwin .tw-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.twwin .tw-row input { width: 90px; }
.twwin .tw-bet small { color: var(--muted); }
.twwin .tw-why { margin: 6px 0; color: var(--amber-2); }
.twwin .tw-bet .btns { margin-top: 8px; }
.twwin .tw-log { max-height: 220px; overflow-y: auto; margin: 8px 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.45; }
.twwin .tw-log small { color: var(--muted); }
.twwin .iztab { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.twwin .iztab th, .twwin .iztab td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.twwin .iztab th { color: var(--muted); font-weight: normal; }
.twwin .iztab small { color: var(--muted); }

/* a2d 2026-11-30 (Вокзал): окно кассы вокзала и поездки в карете (js/wvokzal.js) */
div.vzwin { z-index: 20; }
.vzwin .spanel { max-width: 720px; }
.vzwin .go { width: auto; padding: 7px 16px; font-size: 14px; }
.vzwin .go:disabled { opacity: .45; cursor: default; }
.vzwin .vz-h { margin: 12px 0 6px; font-size: 14px; color: var(--muted); font-weight: normal; }
.vzwin .vz-car { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; line-height: 1.5; }
.vzwin .vz-car.here { border-color: var(--amber-2); }
.vzwin .vz-car small, .vzwin .vz-tp small { color: var(--muted); }
.vzwin .vz-car .btns { margin-top: 6px; }
.vzwin .vz-warn { margin: 6px 0; font-size: 13px; color: var(--amber-2); }
.vzwin .vz-why { margin: 6px 0; color: var(--amber-2); }
.vzwin .vz-board { color: var(--amber-2); font-weight: bold; }
.vzwin .vz-tk { margin: 4px 0; font-size: 13px; line-height: 1.45; }
.vzwin .vz-tp { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.vzwin .vz-guard .btns, .vzwin .vz-ride { margin-top: 8px; }

/* a2d 2026-11-30 (Карта миров): окно карты (js/wwmap.js) */
div.wmwin { z-index: 20; }
.wmwin .spanel { max-width: 860px; }
.wmwin .wm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.wmwin .wm-cell { padding: 6px 8px 8px; border: 1px solid var(--line); border-left: 6px solid #888; border-radius: 8px; line-height: 1.4; }
.wmwin .wm-cell.locked { opacity: .7; }
.wmwin .wm-name small, .wmwin .wm-sub { color: var(--muted); font-size: 12px; }
.wmwin .wm-lock { color: var(--amber-2); font-size: 12px; }
.wmwin .go { width: auto; padding: 4px 14px; margin-top: 6px; font-size: 13px; }

/* a2d 2026-11-30 (Храм Репутации): окно обмена (js/whrep.js); строки, вопрос и кнопки — как у окна алтаря (.altwin) */
.hrwin .hrbar { height: 8px; margin: 6px 0 2px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.hrwin .hrbar i { display: block; height: 100%; background: var(--amber-2); }
.hrwin .hrall { margin: 8px 0 4px; }
.hrwin .hrkind { color: var(--muted); font-size: 12px; font-style: normal; margin-left: 6px; }

/* a2d 2026-11-30 (Лото): окно лотереи (js/wloto.js); строки и кнопки — как у окна алтаря (.altwin) */
.ltwin .hrkind { color: var(--muted); font-size: 12px; font-style: normal; margin-left: 6px; }
.ltwin .ltbuy { margin-top: 8px; }
.ltwin .lttk { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.ltwin .lttk b { padding: 2px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.ltwin .ltme small { color: var(--amber-2); font-weight: bold; }

/* a2d 2026-12-01 (Лачуга Деда Мороза): окно заданий (js/wded.js); строки и кнопки — как у окна алтаря (.altwin) */
.dedwin .ddtask { margin-top: 6px; }
.dedwin .ddbar { height: 8px; margin: 8px 0 2px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.dedwin .ddbar i { display: block; height: 100%; background: #7fb8ff; }
.dedwin .ddprog { color: var(--muted); }
.dedwin .ddbtns { margin-top: 10px; }

/* a2d 2026-12-01 (Хижина Искателей Приключений): окно заданий старика (js/whip.js); строки и кнопки — как у окна алтаря (.altwin) */
.hipwin .hptask { margin-top: 6px; }
.hipwin .hpline { margin: 8px 0 2px; font-size: 13px; }
.hipwin .hpneed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 8px; font-size: 13px; }
.hipwin .hpneed span { flex: 1 1 auto; }
.hipwin .hpbar { flex: 1 1 100%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.hipwin .hpbar i { display: block; height: 100%; background: #8fcf7a; }
.hipwin .hpbtns { margin-top: 10px; align-items: center; }
.hipwin .hpbtns small { color: var(--muted); }
.hipwin .tgl.warn { border-color: #c0503a; color: #ffb0a0; }

/* a2d 2026-12-01 (пещеры, этап 1): окно «Задания и награды» у входа в пещеру (js/wdnq.js) */
.dnqwin .dqtask { margin-top: 6px; }
.dnqwin .dqprog { color: var(--amber-2); }
.dnqwin .dqbtns { margin-top: 8px; align-items: center; }
.dnqwin .dqbtns small, .dnqwin .dqbtn small { color: var(--muted); }
.dnqwin .dqlist { margin: 4px 0 8px; }
.dnqwin .dqrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dnqwin .dqrow > span:first-child { flex: 1 1 auto; }
.dnqwin .dqhint { display: block; color: var(--muted); font-size: 11.5px; }
.dnqwin .dqprice { white-space: nowrap; color: var(--amber-2); }
.dnqwin .dqbtn { display: flex; gap: 4px; white-space: nowrap; }
.dnqwin .tgl.warn { border-color: #c0503a; color: #ffb0a0; }
.dnqwin .hpline { margin: 6px 0 2px; font-size: 13px; }

/* a2d 2026-12-01 (окна персонажа, этап 2): сведения о персонаже, колодцы и комплекты (js/wchar.js) — поверх экрана персонажа */
div.chwin { z-index: 24; }
.chwin .spanel { max-width: 780px; }
.chwin .tgl { padding: 6px 11px; font-size: 12.5px; }
.chwin .tgl:disabled, .chwin .go:disabled { opacity: .45; cursor: default; }
.chwin .tgl.warn { border-color: #c0503a; color: #ffb0a0; }
.chwin .go { width: auto; padding: 7px 16px; font-size: 14px; }
.chwin .bnote { margin: 0; font-size: 12.5px; }
.chwin .hmsg.ok { border-color: rgba(139, 227, 143, .35); color: #b8efb0; }
.chwin .chh { margin: 12px 0 4px; font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.chwin .chh:first-child { margin-top: 0; }
.chwin .chp { margin: 2px 0; font-size: 13px; line-height: 1.45; white-space: pre-line; color: #e6dccb; overflow-wrap: anywhere; }
.chwin .chq { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 7px 10px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; }
.chwin .chq b { flex: 1; min-width: 0; color: #fff3d6; }
.chwin .chask { margin: 6px 0 4px; font-size: 13px; }
.chwin .chask .btns { justify-content: flex-start; gap: 6px; margin-top: 8px; }
.chwin .chtw { overflow-x: auto; }
.chwin .chtab { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 12.5px; }
.chwin .chtab th, .chwin .chtab td { padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; white-space: pre-line; }
.chwin .chtab th { color: var(--amber-2); font-weight: 600; }
.chwin .chpar td + td { text-align: right; font-variant-numeric: tabular-nums; }
.chwin .chpar a { color: var(--amber-2); }
.chwin .chwells { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 4px; }
.chwin .chwell small { min-height: 0; }
.chwin .chwell .btns { justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chwin .chwhy { color: var(--muted); font-size: 12px; }
.chwin .chwhy b { color: var(--amber-2); }
.chwin .chbar { height: 8px; margin: 8px 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.chwin .chbar i { display: block; height: 100%; background: #c9553e; }
.chwin .chbar.mp i { background: #5a8fd6; }
.chwin .msets > b { display: block; margin-bottom: 2px; color: #fff3d6; }
.chwin .msets > small { display: block; margin-top: 6px; color: var(--muted); }
.chwin .chset { margin-top: 8px; padding: 8px 10px; background: #100d0a; border: 1px solid var(--line); border-radius: 9px; }
.chwin .chset-h { display: flex; align-items: center; gap: 8px; }
.chwin .chset-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff3d6; }
.chwin .chset-h .bx { width: 26px; height: 26px; font-size: 16px; flex: none; }
.chwin .chon { color: #8be38f; }
.chwin .chits { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: #cfc2ad; }
.chwin .chits span { display: inline-flex; align-items: center; gap: 4px; }
.chwin .chits img { width: 26px; height: 26px; object-fit: contain; }
.chwin .chits .on { color: #8be38f; }
.chwin .chits .off { opacity: .45; text-decoration: line-through; }
.chwin .chmiss { display: block; margin-top: 4px; color: #ffb0a0; font-size: 12px; }

/* a2d 2026-12-01 (окна персонажа, этап 3): рюкзак на экране персонажа — пачка ×N, выбросить, разделить, руна или свиток на вещь */
.hi .hcnt { position: absolute; right: 3px; top: 2px; padding: 0 4px; background: rgba(0, 0, 0, .72); border-radius: 4px; color: var(--amber-2); font: 700 10px/14px "Segoe UI", sans-serif; font-style: normal; }
.hi .hcave { position: absolute; left: 3px; top: 2px; padding: 0 4px; background: #5a2a1a; border-radius: 4px; color: #ffb0a0; font: 700 10px/14px "Segoe UI", sans-serif; font-style: normal; }
.hinfo .tgl.warn { border-color: #c0503a; color: #ffb0a0; }
.hinfo .hask { margin-top: 10px; padding: 9px 11px; background: #100d0a; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; line-height: 1.45; color: #e6dccb; }
.hinfo .hask b { color: #ffb0a0; }
.hinfo .hask .btns { justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.hinfo .hask input[type=number] { width: 72px; height: 32px; padding: 0 7px; background: #1b1612; border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: 500 13px "Segoe UI", sans-serif; }
.hinfo .hask input[type=number]:focus { outline: none; border-color: var(--amber); }
.hinfo .hrt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 260px; overflow-y: auto; }

/* a2d 2026-12-02 (окна персонажа, этап 4): вкладки мастерской и вопрос перед действием */
.fixwin .htabs { margin-bottom: 4px; }
.fx .fask { grid-column: 1 / -1; margin-top: 4px; padding: 9px 11px; background: #17120d; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; line-height: 1.45; color: #e6dccb; }
.fx .fask label { display: block; margin-bottom: 6px; }
.fx .fask .btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; margin-top: 8px; }
.fx .fask .go, .fx .fask .tgl { width: auto; }
.fx .fask input[type=text] { flex: 1 1 180px; max-width: 260px; height: 32px; padding: 0 8px; background: #1b1612; border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: 500 13px "Segoe UI", sans-serif; }
.fx .fask input[type=text]:focus { outline: none; border-color: var(--amber); }
.fx .fask small { display: block; margin-top: 6px; color: var(--muted); }

/* a2d 2026-12-02 (окна персонажа, этап 5а): ящик «Телеграммы» */
div.tgfwin { z-index: 21; }
.tgfwin .spanel { margin: 0 auto auto; max-width: 760px; }
.tgfwin .htabs { margin-bottom: 4px; }
.tgfwin .tgl0 { display: flex; flex-direction: column; gap: 4px; }
.tgr { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; }
.tgr.new { border-color: var(--amber); }
.tgr.new .tgo b { color: var(--amber-2); }
.tgr .tgo { display: grid; flex: 1; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 8px; background: none; border: 0; color: var(--text); font: 500 13px "Segoe UI", sans-serif; text-align: left; cursor: pointer; }
.tgr .tgo:hover { color: #fff; }
.tgr .tgo b, .tgr .tgo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgr .tgo small { color: var(--muted); white-space: nowrap; }
.tgr .tgl, .tga .tgl { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.tga { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #ffb0a0; white-space: nowrap; }
.tgfwin .tgl.warn { border-color: #c0503a; color: #ffb0a0; }
.tgp { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.tgv { display: flex; flex-direction: column; gap: 10px; }
.tgh { padding: 9px 11px; background: #100d0a; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; line-height: 1.5; color: #e6dccb; }
.tgh small { color: var(--muted); }
.tgt { min-height: 110px; max-height: 320px; overflow: auto; padding: 10px 12px; background: #100d0a; border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tgfwin .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tgfwin .btns .go { width: auto; padding: 7px 18px; }
.tgf { display: flex; flex-direction: column; gap: 10px; }
.tgf label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.tgf input, .tgf textarea { padding: 7px 10px; background: #1b1612; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 500 14px "Segoe UI", sans-serif; resize: vertical; }
.tgf input:focus, .tgf textarea:focus { outline: none; border-color: var(--amber); }
.tgf .btns small { color: var(--muted); }
.topbar .tgbadge { display: inline-block; min-width: 15px; margin-left: 6px; padding: 0 4px; background: #c0503a; border-radius: 9px; color: #fff; font: 700 11px/15px "Segoe UI", sans-serif; text-align: center; }
.topbar .tgbadge[hidden] { display: none; }
@media (max-width: 640px) { .tgr .tgo { grid-template-columns: 1fr; gap: 2px; } }

/* a2d 2026-12-02 (окна персонажа, этап 5б): вкладка «Достижения» */
.chwin .chft { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; padding: 7px 10px; background: #100d0a; border: 1px solid var(--line); border-radius: 9px; }
.chwin .chft.got { border-color: rgba(232, 181, 74, .45); }
.chwin .chfi { flex: none; width: 44px; height: 44px; object-fit: contain; }
.chwin .chfb { flex: 1; min-width: 0; }
.chwin .chft-h { display: flex; align-items: baseline; gap: 10px; }
.chwin .chft-h b { flex: 1; min-width: 0; color: #fff3d6; font-size: 13.5px; }
.chwin .chft small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.chwin .chft-h small { flex: none; }
.chwin .chhow { color: #cfc2ad; }
.chwin .chfb .chbar { display: block; height: 6px; margin: 5px 0 3px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 3px; }
.chwin .chfb .chbar i { display: block; height: 100%; background: linear-gradient(90deg, #c98a2e, #f0c35c); }
.chwin .chok { color: #8be38f; }

/* a2d 2026-12-02 (окна персонажа, этап 5в): рейтинг */
div.ratewin { z-index: 21; }
.ratewin .spanel { margin: 0 auto auto; max-width: 640px; }
.ratewin .htabs { margin-bottom: 4px; }
.ratewin .rth, .ratewin .rtr { display: grid; grid-template-columns: 52px 46px minmax(0, 1fr) 110px; align-items: center; gap: 6px; padding: 4px 9px; }
.ratewin .rth { color: var(--muted); font-size: 11.5px; }
.ratewin .rth span:last-child { text-align: right; }
.ratewin .rtr { margin-bottom: 3px; background: #100d0a; border: 1px solid var(--line); border-radius: 8px; }
.ratewin .rtr.mine { border-color: var(--amber); background: #221a10; }
.ratewin .rtp { font: 700 15px Georgia, "Times New Roman", serif; color: #fff3d6; }
.ratewin .rtc { font-size: 11.5px; }
.ratewin .rtup { color: #8be38f; font-style: normal; } .ratewin .rtdn { color: #ff9c8c; font-style: normal; } .ratewin .rt0 { color: var(--muted); font-style: normal; }
.ratewin .rtn { min-width: 0; padding: 2px 0; background: none; border: 0; color: var(--text); font: 500 13.5px "Segoe UI", sans-serif; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ratewin .rtn:hover { color: #fff; }
.ratewin .rtn small { color: var(--muted); }
.ratewin .rtv { text-align: right; font: 600 14px "Segoe UI", sans-serif; color: var(--amber-2); }
.ratewin .rtme { margin-top: 10px; padding: 8px 11px; background: #17120d; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: #e6dccb; }
.ratewin .rtme .tgl { padding: 3px 10px; font-size: 12px; }
/* a2d 2026-12-02 (о4): «Банк игры» (js/wbill.js) */
.blrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.blrow input[type=text] { width: 110px; }
.blrow input.blname { width: 220px; max-width: 100%; }
.blrow input[type=file] { max-width: 100%; color: var(--muted); font-size: 13px; }
.bltop { white-space: pre-line; }
/* a2d 2026-12-02 (о7): «Кабинет» (js/wcab.js) */
.cblist { max-height: 300px; overflow: auto; font-size: 13px; line-height: 1.6; margin-top: 8px; }
.cbvip { display: flex; flex-wrap: wrap; gap: 8px; }
.cbvip .hi { width: 96px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; position: relative; font-size: 11px; }
.cbvip .hi i { position: absolute; right: 6px; top: 4px; font-style: normal; font-weight: 700; color: var(--amber-2); }
.cbvip .hi[disabled] { opacity: .35; }
.cabwin .kin.wide { display: block; width: 100%; max-width: 380px; margin: 6px 0; box-sizing: border-box; }
.cabwin .blrow .kin.wide { flex: 0 1 380px; margin: 0; }
.cabwin .btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 8px; }
.cabwin .btns .go, .cabwin .btns .tgl, .cabwin .blrow .go, .cabwin .sbuy .go { width: auto; padding: 7px 18px; }
/* a2d 2026-12-02 (о6а): вкладки клана (js/wclan.js) */
.clwin .citem { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.clwin .citem .cim { width: 40px; height: 40px; object-fit: contain; flex: none; }
.clwin .rrow.dipm { padding-left: 26px; border-top: 0; } /* a2d 2026-12-02 (о6в): люди клана союза */
.clwin .citem.off > div, .clwin .citem.off .cim { opacity: .5; } /* a2d 2026-12-02 (о6б) */
.clwin .citem > div { flex: 1 1 auto; min-width: 0; }
.clwin .citem b { display: block; font-size: 14px; }
.clwin .citem small { color: var(--muted); font-size: 12px; }
.clwin .citem small i { color: var(--amber-2); font-style: normal; }
.clwin .crights { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 14px; margin: 8px 0; }
.clwin .cright { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.clwin .cright.off { opacity: .5; }
.clwin .cform label.cright { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); }
.clwin .cform .cright input { width: 16px; height: 16px; padding: 0; margin: 0; flex: none; }
.clwin .cform input[type=color] { width: 60px; height: 30px; padding: 2px; }
