html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: clip;
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  line-height: 1.45;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

#feed.home-feed-list {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem !important;
  width: min(100%, 68rem);
  margin-inline: auto;
}

#feed.home-feed-list > * {
  min-width: 0;
  max-width: 100%;
}

#feed .post-card,
#feed .post-item {
  overflow-wrap: anywhere;
}

#feed .post-card > .p-1\.5 {
  padding: 0.75rem !important;
}

#feed .post-card p.break-words {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem) !important;
  line-height: 1.65 !important;
}

#feed .post-card .post-actions-row {
  gap: 0.5rem !important;
  padding-block: 0.7rem 1rem !important;
}

#feed img,
#feed video,
#feed iframe {
  max-width: 100%;
}

.wg-badge,
.tv-badge {
  font-size: 0.7rem !important;
  padding: 0.3rem 0.65rem !important;
}

.wg-prize,
.tv-prize,
.wg-time,
.tv-time {
  font-size: 0.75rem !important;
}

.wg-clue,
.tv-question {
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.05rem) !important;
  line-height: 1.55 !important;
}

.wg-note,
.tv-note {
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  #feed.home-feed-list {
    gap: 1rem !important;
  }
}

@media (max-width: 639px) {
  #feed.home-feed-list {
    gap: 0.7rem !important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
