/* Myriad Pro (лицензия пользователя) — как в оригинале */
@font-face {
  font-family: "Myriad Pro";
  src: url("fonts/MyriadPro-Light.otf?v=1") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("fonts/MYRIADPRO-REGULAR.OTF?v=1") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("fonts/MYRIADPRO-SEMIBOLD.OTF?v=1") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("fonts/MYRIADPRO-BOLD.OTF?v=1") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* Иконочный шрифт соцсетей (usocial) — те же глифы, что на оригинале */
@font-face {
  font-family: "uscl";
  src: url("fonts/uscl.woff2?v=1") format("woff2"),
       url("fonts/uscl.woff?v=1") format("woff"),
       url("fonts/uscl.ttf?v=1") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}

html,
body,
div,
span,
p,
strong,
form,
label,
input,
main,
section {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

body {
  min-width: 720px;
  min-height: 100vh;
  display: flex;
  font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  text-align: center;
  font-size: 17px;
  letter-spacing: 1px;
  line-height: 1;
  background: #fff;
  color: #000;
}

.overlay {
  width: 740px;
  min-height: 925px;
  box-sizing: border-box;
  margin: auto;
  padding: 25px 10px 20px;
  color: #000;
}

.main-title {
  margin-bottom: 2px;
  color: #000;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sub-title {
  color: #000;
  font-size: 38px;
}

.sub-title strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0;
}

.string,
.string2 {
  background-repeat: no-repeat;
  background-position: center;
  margin-right: auto;
  margin-left: auto;
}

.string {
  width: 620px;
  height: 6px;
  background-image: url(string.png?v=1);
  margin-top: 10px;
  margin-bottom: 20px;
}

.string2 {
  width: 318px;
  height: 7px;
  background-image: url(string2.png?v=1);
  margin-top: 8px;
  margin-bottom: 30px;
}

.out-outer {
  position: relative;
}

.out,
.out-hide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 25px 0;
}

.out {
  position: absolute;
  width: 100%;
}

.out-hide {
  opacity: 0;
}

.digit {
  margin: 0 20px 20px;
  text-align: center;
  font-size: 153px;
  font-weight: 400;
}

.digit.big {
  min-width: 100%;
}

.digit.middle {
  font-size: 100px;
  min-width: 27%;
}

.digit.small {
  font-size: 72px;
  min-width: 27%;
}

.btn-bold {
  display: table;
  margin: 0 auto 15px;
  padding: 18px 20px;
  border: 3px solid #000;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 500;
  user-select: none;
}

.btn-bold:hover,
.btn:hover {
  cursor: pointer;
}

.btn-bold:active {
  box-shadow: inset 0 7px 4px 0 rgba(28, 39, 41, 0.38);
}

/* кнопка СБРОСИТЬ (появляется, когда числа закончились) — как в оригинале: 16px / 12x14, рамка 3px */
.btn-bold.btn-sm {
  padding: 12px 14px;
  font-size: 16px;
}

.time {
  font-size: 13px;
  display: grid;            /* обе строки в одной ячейке -> накладываются */
  justify-items: center;
  overflow: hidden;        /* прячем уезжающие строки за края */
}

.time .time-item {
  grid-area: 1 / 1;        /* обе строки в одном месте */
  white-space: nowrap;
  transition: transform .35s ease, opacity .35s ease;
}

/* по умолчанию: «Сейчас» на месте, «Создано» ждёт справа */
#now-line     { transform: translateX(0);     opacity: 1; }
#created-line { transform: translateX(90px);  opacity: 0; }

/* после генерации: «Сейчас» уезжает влево, «Создано» въезжает справа */
.time.show-created #now-line     { transform: translateX(-90px); opacity: 0; }
.time.show-created #created-line { transform: translateX(0);     opacity: 1; }

.title {
  margin-bottom: 13px;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.wrapper {
  margin: 0 auto 25px;
}

.wrapper span {
  margin: 0 15px;
}

.wrapper input {
  width: 190px;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #4d4d4d;
  border-radius: 5px;
  outline: 0;
  color: #878382;
  font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.wrapper input.count {
  width: 190px;
}

.wrapper input:focus {
  color: #000;
  outline: none;
}

.check-row {
  margin: -15px auto 25px;
  user-select: none;
}

.check-row b {
  font-weight: 400;
}

.green {
  color: #09a106;
}

.checkbox {
  display: none;
}

.checkbox ~ label span {
  position: relative;
  top: 3px;
  left: 4px;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url(images/not-check.png?v=1) no-repeat center;
  cursor: pointer;
}

.checkbox:checked ~ label span {
  background-image: url(images/check.png?v=1);
}

.share-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 0;
}

.share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e0e2e6;
  color: #2c2e32;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background .2s;
}

.share:hover { background: #d4d7dc; }

.btn {
  display: inline-block;
  margin: 30px 5px;
  padding: 10px 20px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  user-select: none;
}

.btn:active {
  box-shadow: inset 0 2px 4px 0 rgba(28, 39, 41, 0.75);
}

/* ---- ДЕМО-надстройка (наша) ---- */
.demo-note {
  box-sizing: border-box;
  margin: 0 auto 18px;
  padding: 10px 14px;
  max-width: 620px;
  border: 1px solid #d99;
  background: #fdeaea;
  color: #7a1212;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  border-radius: 4px;
}

.result-list {
  margin: -10px 0 6px;
  font-size: 22px;
  font-weight: 400;
  color: #333;
  letter-spacing: 0;
  word-break: break-word;
}

.badge-row {
  margin: 0 0 14px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.badge.idle   { background: #eee;    color: #777; }
.badge.honest { background: #e3f7e3; color: #1d7a1d; border: 1px solid #b6e3b6; }
.badge.rig    { background: #ffdede; color: #b50000; border: 1px solid #f0b0b0; }

.btn-reset {
  display: table;
  margin: 0 auto 15px;
  padding: 9px 18px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  user-select: none;
  cursor: pointer;
}

.btn-reset:active {
  box-shadow: inset 0 2px 4px 0 rgba(28, 39, 41, 0.75);
}

.share { text-decoration: none; cursor: pointer; }
.share i { font-family: "uscl"; font-style: normal; font-weight: normal; font-size: 28px; line-height: 1; }

.journal-title {
  margin-top: 30px;
}

.journal {
  box-sizing: border-box;
  width: 620px;
  max-width: 100%;
  height: 180px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 5px;
  background: #fafafa;
  overflow-y: auto;
  text-align: left;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.journal .empty { color: #999; font-style: italic; }
.journal .log-row { padding: 2px 0; border-bottom: 1px solid #eee; }
.journal .lh { color: #1d7a1d; font-weight: 700; }
.journal .lr { color: #b50000; font-weight: 700; }

.stat {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0;
}
.stat-rig { color: #b50000; }

.admin-link {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0;
}
.admin-link a { color: #1a73c4; }

/* ---- модалка "В закладки" (как на оригинале) ---- */
.bm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.bm-modal {
  position: relative;
  box-sizing: border-box;
  width: 550px;
  max-width: 94%;
  padding: 30px 20px 14px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.bm-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  color: #c2c2c2;
  cursor: pointer;
}
.bm-close:hover { color: #888; }

.bm-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  letter-spacing: 0;
}

.bm-input {
  display: block;
  width: 300px;
  max-width: 90%;
  box-sizing: border-box;
  margin: 0 auto 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 7px;
  font-family: inherit;
  font-size: 15px;
  color: #999;
  text-align: left;
  outline: 0;
}

.bm-text {
  margin: 7px 0;
  font-size: 15px;
  color: #444;
  letter-spacing: 0;
}

.bm-key {
  display: inline-block;
  padding: 2px 8px;
  background: #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
}
