article.gbook-article {
  font-weight: 500;
  line-height: 1.3;
  border-bottom: var(--pixel) solid var(--text-light);
  margin: var(--unit);
  padding: var(--2unit);
  width: calc(100% - var(--2unit));
  display: flex;
  flex-direction: column;
}

article.gbook-article article.gbook-article {
  font-size: var(--citeSize);
  line-height: 1.2;
  border: var(--pixel) solid var(--accent-t1) !important;
  background: var(--accent2-t);
  margin: 0;
  width: 100% !important;
  padding: var(--1unit);
}


main > article.new > .bottom > a:first-child{
padding-right: var(--8unit);
background: var(--accent2-t1);
}

main > article:first-child {
  border-top: var(--half-unit) solid var(--accent2);
}


article > .top {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--3unit);
}

article > .top > a {
  flex: 1;
  font-size: var(--3unit);
  color: var(--accent-t2);
}

article > .top > a[data-state='1'] {
  text-decoration: underline dashed !important;
}  

article > .main {
  text-align: justify;
  overflow: hidden;
  line-height: 1.518;
}

article > .main.replytome {
  color: var(--accent2);
}

article > .bottom {
  font-size: var(--3unit);
  font-weight: 400;
  color: var(--text-2);
  margin-top: var(--4unit);
  margin-bottom: var(--2unit);
  position: relative;
}

article > .bottom > a.nick {
  font-size: var(--3unit);
  font-weight: 700;
}

span.separator::before {
  content: "::";
  color: var(--text);
  padding-left: var(--2unit);
  padding-right: var(--2unit);
}

.popupmenu {
  position: absolute;
  min-width: max-content;
  color: var(--text-2);
  top: var(--5unit);
  font-size: var(--3unit);
  left: var(--2unit);
  line-height: 1.2;
  z-index: 99;
  background: var(--bg);
  border-radius: var(--1unit);
}

.usermenu-wrapper {
  display: flex;
  flex-direction: row;
  border: calc(0.2 * var(--1unit)) solid var(--accent2);
  padding: var(--2unit);
  background: var(--accent-t);
  border-radius: var(--1unit);
  box-shadow: 0 0 var(--3unit) var(--accent2-t2);
}

.usermenu-ava {
  background: var(--bg);
  width: calc(var(--1unit) * 12);
  height: calc(var(--1unit) * 12);
  border-radius: 100%;
  border: calc(0.2 * var(--1unit)) solid var(--accent2-t1);
  overflow: hidden;
}

.usermenu-ava > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usermenu-card {
  font-weight: 400;
  padding-left: var(--2unit);
  display: flex;
  flex-direction: column;
}
.usermenu-card-title {
  color: var(--text);
  font-weight: 500;
  margin-bottom: var(--1unit);
}

.usermenu-delimeter{
display: block;
width: 100%;
border-bottom: var(--pixel) solid var(--accent-t2);
padding-bottom: var(--2unit);
margin-bottom: var(--2unit);
}


.user-wrapper {
display: flex;
flex-direction: row;
padding: var(--2unit);
}

.user-ava {
background: var(--accent2-t);
width: calc(var(--1unit) * 12);
height: calc(var(--1unit) * 12);
border-radius: 100%;
border: var(--min-unit) solid var(--accent2-t1);
overflow: hidden;
}

.user-ava > img {
width: 100%;
height: 100%;
object-fit: cover;
}

.user-card {
font-weight: 400;
padding-left: var(--2unit);
display: flex;
flex-direction: column;
}
.user-card-title {
color: var(--text);
font-weight: 500;
margin-bottom: var(--1unit);
}

.gamescard {
  background: var(--green1);
  border: var(--half-unit) solid var(--green1);
  width: min(100%, calc(var(--unit) * 144));
  padding: var(--2unit);
  margin-bottom: var(--4unit);
}

.gamescard > span{
font-weight: 400;
font-size: var(--3-5unit);
color: var(--text-2-t1);
background: var(--bg-header);
padding: var(--2-5unit) 0 var(--4unit) var(--4unit);
text-align: left;
display: flex;
flex:1;
z-index: 5;
}

.gamescard  .scheme {
  display: flex;
  flex:14;
  flex-direction: column;
  min-height: calc(var(--unit) * 48);
  background: var(--green1);
  border: var(--2unit) solid var(--bg-t1);
  outline: var(--2unit) solid var(--green1);
  position: relative;

}

.gamescard  .scheme:after {
  content:'';
  position: absolute;
  display: flex;
  width: calc(24 * var(--unit));
  height: calc(24 * var(--unit));

  top: calc(-14 * var(--unit));
  left: calc(54 * var(--unit));

  border: var(--2unit) solid var(--bg-t1);
  border-radius: 100%;
  z-index: 1;

}

.gamescard .scheme:before {
  content:'';
  position: absolute;
  display: flex;
  width: calc(48 * var(--unit));
  height: calc(16 * var(--unit));
  bottom: calc(-2 * var(--unit));
  left: calc(41 * var(--unit));
  border: var(--2unit) solid var(--bg-t1);
  z-index: 1;
}




.gamescard .line {
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-around;
  margin: var(--2unit);

}

.scheme .player {
  flex: 1;
  background: var(--bg-header);
  border: var(--pixel) solid var(--bg-header);
  padding: var(--1unit) var(--3unit);
  max-width: max-content;
  display: flex;
  flex-direction: column;
}
.player + .player {
  margin-left: var(--4unit);
}

.scheme .player span {
  font-size: var(--3unit);
  text-align: center;
}

.scheme .player span:nth-of-type(2) {
  font-size: var(--2-5unit);
  background: var(--accent2-t1);
  text-align: center;
  margin-top: var(--1unit);
}


.scheme .player u {
  text-decoration: none;
  background: var(--accent);
  color: var(--text-accent);
  padding: 0 var(--1-5unit);
}

.scheme .player i {
  text-decoration: none;
  background: var(--accent2);
  color: var(--text-accent);
  padding: 0 var(--1-5unit);
}




.firecard {
  background: var(--accent0-t1);
  border: var(--pixel) solid var(--accent0);
  width: min(100%, calc(var(--unit) * 144));
}

.firecard > span{
  font-weight: 500;
  font-size: var(--3-5unit);
  color: var(--text);
  padding: var(--2-5unit) 0 0 var(--4unit);
  text-align: left;
  display: flex;
  flex:1;
  z-index: 5;
}

.firecard > p {
  font-weight: 400;
  font-size: var(--3unit);
  padding: var(--4unit);
}

.firecard > a {
  font-weight: 400;
  display: flex;
  text-align: right;
  padding: 0 var(--2unit) var(--1unit) var(--2unit);
  font-size: var(--2-5unit);
}



@media (orientation:portrait) { 
  article {
    width: 100%;
    margin: 0;
    margin-top: var(--1unit);
    border-bottom: var(--half-unit) solid var(--accent2);
  }
  span.separator::before {
    padding-left: var(--half-unit);
    padding-right: var(--half-unit);
  }

  article > .bottom {
    margin-top: var(--3unit);
    white-space: nowrap;
    overflow: hidden;
  }


article.gbook-article {
  line-height: 1;
  border-bottom: var(--pixel) solid var(--text-light);
  margin: var(--unit);
  padding: var(--half-unit);
  width: calc(100% - var(--2unit));
}

article.gbook-article article.gbook-article {
  font-size: var(--2-5unit);
  padding: var(--1unit);
}

article > .top {
  margin-bottom: var(--1-5unit);
}

article > .top > a {
  flex: 1;
  font-size: var(--2unit);
}


article > .main {
  line-height: 1.4;
}


article > .bottom {
  font-size: var(--2-5unit);
  font-weight: 400;
  margin-top: var(--3unit);
  margin-bottom: var(--2unit);
}

article > .bottom > a.nick {
  font-weight: 600;
  font-size: var(--2-5unit);
}

span.separator::before {
  padding-left: var(--unit);
  padding-right: var(--unit);
}
  
}



/* Оформление внутри сообщения гостевой: заголовок и выделение цветом.
   Заголовок — это <b class=gbh>: отдельной строкой и крупнее, чтобы абзацы отделялись сами
   и не приходилось пробивать пустые строки (просьба Жени 19.09.2026). */
.main b.gbh {
  display: block;
  margin: var(--2unit) 0 var(--unit);
  font-size: var(--4unit);
  line-height: 1.25;
  color: var(--accent);
}
.main .gbhl { color: var(--blue); }

/* Кнопка бана у сообщения — только модератору гостевой. Выглядит как обычная ссылка снизу. */
.bottom .banlink {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-2);
  cursor: pointer;
}
.bottom .banlink:hover { text-decoration: underline; color: var(--red, #c62828); }
