/* Community tools share ERAWLN's printed borders and flat colours. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.community-card {
  border: 3px solid #171717;
  background: #fffdf5;
  padding: 28px;
  min-width: 0;
  box-shadow: 5px 5px 0 #171717;
}
.community-card h2 {
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 900;
}
.community-card > p {
  font-size: 13px;
  line-height: 1.8;
  color: #55544f;
  margin: 0 0 22px;
}
.community-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 50px;
}
.community-card form label:not(.check-label) {
  display: block;
  font:
    700 10px 'Courier New',
    monospace;
  margin-top: 22px;
}
.community-card input:not([type='checkbox']),
.community-card select,
.community-card textarea {
  width: 100%;
  border: 2px solid #171717;
  background: #f3f0e5;
  color: #171717;
  padding: 15px;
  margin: 10px 0 0;
  min-width: 0;
  font-size: 15px;
}
#redeemCode {
  font:
    700 23px 'Courier New',
    monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#redeemForm .spin-button {
  width: 100%;
  margin-top: 22px;
}
.community-feedback {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 16px;
  overflow-wrap: anywhere;
  min-height: 1em;
}
.redeem-note {
  padding: 20px 14px;
}
.redeem-note > span {
  font:
    700 10px 'Courier New',
    monospace;
}
.redeem-note h2 {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -2px;
  margin: 20px 0;
}
.redeem-note p {
  font-size: 13px;
  line-height: 1.9;
  color: #55544f;
  max-width: 350px;
  margin: 15px 0;
}
.chat-card {
  padding: 0;
  overflow: hidden;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 2px solid #171717;
  padding: 18px 22px;
  background: #e6e2d6;
}
.chat-heading strong {
  font-size: 14px;
}
.chat-heading > span {
  font:
    700 9px 'Courier New',
    monospace;
}
.chat-messages {
  height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 22px;
  scrollbar-width: thin;
}
.chat-message {
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid #d2cec1;
  min-width: 0;
}
.chat-message.from-admin {
  border-left: 4px solid #f24c32;
  padding-left: 14px;
  margin-left: -10px;
}
.chat-author {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}
.chat-name {
  font:
    700 12px 'Courier New',
    monospace;
  overflow-wrap: anywhere;
  color: #171717;
}
.from-admin .chat-name {
  color: var(--name-color, #f24c32);
}
.chat-author time {
  margin-left: auto;
  font-size: 9px;
  color: #67655e;
  white-space: nowrap;
}
.chat-message > p {
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  background: #171717;
  color: white;
  font:
    900 11px Arial,
    sans-serif;
  flex-shrink: 0;
  border: 1px solid #171717;
}
.verified-badge {
  border-radius: 50%;
  border: 0;
  clip-path: polygon(
    50% 0,
    64% 9%,
    81% 7%,
    88% 24%,
    100% 35%,
    93% 52%,
    96% 70%,
    78% 79%,
    67% 96%,
    49% 91%,
    31% 100%,
    21% 82%,
    5% 74%,
    9% 55%,
    0 40%,
    14% 25%,
    18% 9%,
    36% 10%
  );
}
.chat-compose {
  display: flex;
  gap: 0;
  padding: 16px 20px;
  border-top: 2px solid #171717;
  background: #f3f0e5;
}
.community-card .chat-compose input {
  margin: 0;
  background: #fffdf5;
  border: 2px solid #171717;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}
.chat-compose button {
  padding: 12px 20px;
  border: 2px solid #171717;
  border-left: 0;
  background: #f24c32;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-card .community-feedback {
  padding: 0 20px;
  margin: 0;
  font-size: 11px;
}
.chat-rule {
  display: block;
  color: #67655e;
  font-size: 10px;
  line-height: 1.6;
  padding: 12px 20px;
}
.chat-empty {
  padding: 30px 0;
  color: #67655e;
  font-size: 13px;
}
.chat-delete {
  font-size: 10px;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid #171717;
}
.deleted-message {
  color: #67655e;
  font-style: italic;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.news-item time {
  display: block;
  font:
    700 10px 'Courier New',
    monospace;
  color: #67655e;
  margin-bottom: 22px;
}
.news-item h2 {
  font-size: 30px;
}
.news-item p {
  margin: 0;
  white-space: pre-wrap;
}
.community-empty {
  border: 2px dashed #171717;
  padding: 40px;
  color: #67655e;
  font-size: 14px;
  grid-column: 1/-1;
}
#extraProducts {
  margin-top: 24px;
  margin-bottom: 40px;
}
.extra-product {
  background: #f5d75b !important;
}
.extra-product .collection-art img {
  width: 180px;
  height: 170px;
  object-fit: contain;
}
.community-dialog {
  border: 3px solid #171717;
  background: #fffdf5;
  color: #171717;
  width: min(380px, calc(100% - 30px));
  padding: 45px 24px 24px;
  box-shadow: 5px 5px 0 #171717;
}
.community-dialog h2 {
  font-size: 26px;
  margin: 10px 0 25px;
}
.community-dialog > button[data-view] {
  display: block;
  width: 100%;
  text-align: left;
  border: 2px solid #171717;
  padding: 16px;
  background: #f3f0e5;
  margin: 10px 0;
  font-weight: 700;
}
.notification-gate {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  padding: 30px 18px;
  background: #f3f0e5;
  color: #171717;
  overflow-y: auto;
}
.notification-gate[open] {
  display: grid;
  place-items: center;
}
.notification-gate::backdrop {
  background: #f3f0e5;
}
.gate-card {
  width: 100%;
  max-width: 470px;
  border: 3px solid #171717;
  padding: 34px;
  background: #fffdf5;
  box-shadow: 7px 7px 0 #171717;
}
.gate-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 2px solid #171717;
  background: #f24c32;
  font:
    900 34px Arial,
    sans-serif;
  margin-bottom: 28px;
}
.gate-card .overline {
  font:
    700 10px 'Courier New',
    monospace;
  color: #171717;
  letter-spacing: 1px;
}
.gate-card h2 {
  font:
    900 43px/0.98 Arial,
    sans-serif;
  letter-spacing: -2px;
  margin: 20px 0;
}
.gate-card > p {
  font-size: 14px;
  line-height: 1.8;
  margin: 18px 0;
  white-space: normal;
}
.gate-card .gate-details {
  font-size: 12px;
  color: #67655e;
}
.gate-card .spin-button,
.gate-card .secondary-button {
  width: 100%;
  margin: 12px 0 0;
  display: block;
}
.gate-card > a {
  display: block;
  font-size: 11px;
  text-decoration: underline;
  margin-top: 20px;
}
#notificationFeedback {
  font-size: 12px;
  color: #55544f;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
.admin-body .check-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin-top: 15px;
  line-height: 1.6;
}
.admin-body .check-label input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #f24c32;
  flex-shrink: 0;
}
.community-admin-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.small-card {
  padding: 22px;
  box-shadow: 3px 3px 0 #171717;
}
.small-card h3 {
  font-size: 19px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.small-card p,
.small-card time {
  font-size: 11px;
  line-height: 1.8;
  color: #55544f;
  margin-bottom: 12px;
}
.small-card > .secondary-button {
  margin: 7px 8px 0 0;
  font-size: 11px;
  padding: 10px 13px;
}
.small-card > img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  float: right;
  margin: 0 0 10px 10px;
}
#productForm .secondary-button {
  margin-top: 18px;
  width: 100%;
}
#chatAdminColor,
#newBadgeColor {
  padding: 5px;
  min-height: 46px;
  max-width: 100px;
}
.chat-name-preview,
.badge-catalog-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 0;
  flex-wrap: wrap;
}
.chat-name-preview {
  border-bottom: 2px solid #171717;
  margin-bottom: 25px;
}
#chatProfileForm .spin-button {
  margin-top: 20px;
}
.badge-catalog {
  margin-top: 30px;
}
.badge-catalog-row {
  border-top: 1px solid #d2cec1;
  font-size: 12px;
}
.badge-choices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 20px 0;
}
.live-name {
  background: linear-gradient(
    100deg,
    var(--name-color, #f24c32),
    #171717,
    var(--name-color, #f24c32)
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: chat-colour 3.5s linear infinite !important;
}
@keyframes chat-colour {
  from {
    background-position: 0 50%;
  }
  to {
    background-position: 220% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-name {
    animation: none !important;
    background: none;
    color: var(--name-color, #f24c32) !important;
  }
}
@media (max-width: 1100px) {
  .club-app .club-nav {
    display: none;
  }
  .club-app .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    justify-content: space-around;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fffdf5;
    border-top: 3px solid #171717;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    font-size: 9px;
    padding: 8px 4px;
    min-height: 50px;
  }
  .mobile-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }
  .mobile-nav .mobile-letter {
    display: block;
    font:
      700 22px/20px 'Courier New',
      monospace;
  }
  .club-app .club-footer {
    padding-bottom: 180px;
  }
  .community-two-col {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .community-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .redeem-note {
    padding: 15px 0;
  }
  .redeem-note h2 {
    font-size: 35px;
  }
  .redeem-note h2 br {
    display: none;
  }
  .redeem-note p {
    max-width: 100%;
  }
  .community-card {
    padding: 23px;
  }
  .chat-card {
    padding: 0;
  }
  .chat-messages {
    height: 400px;
  }
  .community-two-col > .chat-card {
    order: -1;
  }
}
@media (max-width: 620px) {
  .community-card {
    padding: 22px;
    box-shadow: 4px 4px 0 #171717;
  }
  .chat-card {
    padding: 0;
  }
  .community-card h2 {
    font-size: 28px;
  }
  .community-card > p {
    font-size: 12px;
  }
  .chat-heading {
    padding: 15px;
  }
  .chat-heading > span {
    font-size: 8px;
  }
  .chat-messages {
    padding: 0 15px;
    height: 390px;
  }
  .chat-name {
    font-size: 11px;
  }
  .chat-author time {
    font-size: 8px;
  }
  .chat-message > p {
    font-size: 13px;
  }
  .chat-compose {
    padding: 14px;
  }
  .chat-compose button {
    padding: 10px 14px;
    font-size: 12px;
  }
  .gate-card {
    padding: 26px 23px;
    box-shadow: 5px 5px 0 #171717;
  }
  .gate-card h2 {
    font-size: 37px;
  }
  .filter-tabs button {
    min-width: 0;
    font-size: 10px;
    padding: 12px 6px;
  }
  .small-card {
    padding: 20px;
  }
  .page-heading h1 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .chat-messages {
    height: min(350px, 34svh);
    min-height: 220px;
  }
  .club-app #chatPage .page-heading {
    padding-bottom: 22px;
  }
  .club-app #chatPage .page-heading h1 {
    font-size: 48px;
  }
}
