@charset "UTF-8";

.orklin-credit {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: transparent;
  border-top: 1px solid rgba(151, 157, 151, .1);
}

.forum-body .orklin-credit {
  background: var(--forum-surface, #111412);
}

.orklin-credit__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-block: 7px;
  color: rgba(151, 157, 151, .82);
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
}

.orklin-credit__lead,
.orklin-credit__detail {
  display: inline;
}

.orklin-credit__button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 1px 0;
  color: #aeb5af;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(151, 157, 151, .2);
  cursor: pointer;
  font: inherit;
  font-weight: 680;
  line-height: inherit;
  transition: color .2s ease, border-color .2s ease;
}

.orklin-credit__button::after {
  content: "↗";
  color: #6f8f99;
  font-size: 10px;
  transform: translateY(-1px);
}

.orklin-credit__button:hover {
  color: #f4f5ef;
  border-color: #8EE8F5;
}

.orklin-modal[hidden] {
  display: none !important;
}

.orklin-modal {
  position: fixed;
  z-index: 420;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 7, .78);
  opacity: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity .2s ease;
}

.orklin-modal.is-open {
  opacity: 1;
}

body.orklin-modal-open {
  overflow: hidden;
}

.orklin-modal__panel {
  position: relative;
  width: min(100%, 520px);
  padding: 32px;
  color: #f4f5ef;
  background:
    radial-gradient(circle at 50% -18%, rgba(55,198,227, .1), transparent 42%),
    #111412;
  border: 1px solid #303630;
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .2, 1);
}

.orklin-modal.is-open .orklin-modal__panel {
  opacity: 1;
  transform: none;
}

.orklin-modal__close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #979d97;
  background: #171b18;
  border: 1px solid #303630;
  border-radius: 11px;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.orklin-modal__close:hover {
  color: #f4f5ef;
  background: #202521;
  border-color: #4a534c;
}

.orklin-modal__logo {
  min-height: 126px;
  display: grid;
  place-items: center;
  margin: 0 48px 20px;
}

.orklin-modal__logo img {
  grid-area: 1 / 1;
  width: auto;
  max-width: min(100%, 315px);
  max-height: 126px;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s ease;
}

.orklin-modal__logo.is-loaded img {
  opacity: 1;
}

.orklin-modal__logo-fallback {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  color: #f4f5ef;
  font: 800 34px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.orklin-modal__logo-fallback small {
  margin-top: 10px;
  color: #7f8881;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .36em;
}

.orklin-modal__logo.is-loaded .orklin-modal__logo-fallback {
  opacity: 0;
}

.orklin-modal__heading {
  margin-bottom: 22px;
  text-align: center;
}

.orklin-modal__heading h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 27px);
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.orklin-modal__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 94px;
  overflow: hidden;
  background: #171b18;
  border: 1px solid #303630;
  border-radius: 14px;
}

.orklin-modal__creator {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 18px 20px;
}

.orklin-modal__creator > span {
  color: #858d86;
  font-size: 11px;
  font-weight: 650;
}

.orklin-modal__creator strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.orklin-modal__telegram {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  color: #f4f5ef;
  border-left: 1px solid #303630;
  transition: color .2s ease, background .2s ease;
}

.orklin-modal__telegram:hover {
  background: rgba(55,198,227, .12);
}

.orklin-modal__telegram-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #8EE8F5;
  background: rgba(55,198,227, .16);
  border: 1px solid rgba(142,232,245, .18);
  border-radius: 50%;
}

.orklin-modal__telegram-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.orklin-modal__telegram-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.orklin-modal__telegram-copy small {
  color: #858d86;
  font-size: 10px;
  font-weight: 650;
}

.orklin-modal__telegram-copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orklin-modal__telegram-arrow {
  color: #6f8f99;
  font-size: 13px;
  transition: color .2s ease, transform .2s ease;
}

.orklin-modal__telegram:hover .orklin-modal__telegram-arrow {
  color: #8EE8F5;
  transform: translate(2px, -2px);
}

@media (max-width: 560px) {
  .orklin-credit__inner {
    min-height: 44px;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 9px 14px max(9px, env(safe-area-inset-bottom));
    font-size: 10.5px;
    line-height: 1.4;
  }

  .orklin-credit__lead,
  .orklin-credit__button {
    white-space: nowrap;
  }

  .orklin-credit__detail {
    display: none;
  }

  .orklin-modal {
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .orklin-modal__panel {
    width: min(100%, 380px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 20px 16px 16px;
    border-radius: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .orklin-modal__close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 20px;
  }

  .orklin-modal__logo {
    min-height: 88px;
    margin: 0 52px 10px;
  }

  .orklin-modal__logo img {
    max-width: min(100%, 220px);
    max-height: 88px;
  }

  .orklin-modal__logo-fallback {
    font-size: 28px;
  }

  .orklin-modal__logo-fallback small {
    margin-top: 7px;
    font-size: 9px;
  }

  .orklin-modal__heading {
    margin-bottom: 16px;
  }

  .orklin-modal__heading h2 {
    font-size: 22px;
  }

  .orklin-modal__details {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 12px;
  }

  .orklin-modal__creator {
    min-height: 64px;
    padding: 13px 16px;
  }

  .orklin-modal__creator strong {
    font-size: 15px;
  }

  .orklin-modal__telegram {
    min-height: 68px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 14px;
    border-top: 1px solid #303630;
    border-left: 0;
  }

  .orklin-modal__telegram-icon {
    width: 34px;
    height: 34px;
  }

  .orklin-modal__telegram-icon svg {
    width: 15px;
    height: 15px;
  }

  .orklin-modal__telegram-copy strong {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .orklin-modal {
    padding-inline: 10px;
  }

  .orklin-modal__panel {
    padding-inline: 14px;
  }

  .orklin-modal__logo {
    min-height: 78px;
    margin-inline: 48px;
  }

  .orklin-modal__logo img {
    max-width: min(100%, 195px);
    max-height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orklin-credit__button,
  .orklin-modal,
  .orklin-modal__panel,
  .orklin-modal__close,
  .orklin-modal__telegram,
  .orklin-modal__telegram-arrow,
  .orklin-modal__logo img,
  .orklin-modal__logo-fallback {
    transition-duration: .01ms !important;
  }
}

@media print {
  .orklin-credit,
  .orklin-modal {
    display: none !important;
  }
}
/* Owner rank is loaded after the main forum stylesheet so its gradient stays authoritative. */
.forum-role-owner {
  color: #fffdf4;
  background:
    linear-gradient(118deg,rgba(55,198,227,.2),rgba(111,92,210,.2) 52%,rgba(233,169,77,.19));
  border-color: rgba(243,202,119,.68);
  box-shadow:
    0 0 0 1px rgba(55,198,227,.08) inset,
    0 5px 18px rgba(55,198,227,.09),
    0 0 14px rgba(233,169,77,.08);
  text-shadow: 0 0 12px rgba(255,220,151,.3);
}
