[data-portal-icon]::before { content: none !important; }
.portal-lockup { display: inline-flex !important; align-items: center; flex: 0 1 auto; min-width: 100px; }
.portal-lockup img { display: block; object-fit: contain; object-position: left center; width: auto !important; height: 42px !important; max-width: min(34vw,330px) !important; border-radius: 0 !important; }
[data-layout="wild"] .portal-lockup img { height: 43px !important; }
[data-layout="archive"] .portal-lockup { margin-right: 5px; }
.portal-guide {
  width: min(100% - 32px, 1200px);
  margin: 20px auto;
  padding: 14px 16px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 8px;
}
.portal-guide h2 { font-size: 1.18rem; margin: 0 0 8px; }
.portal-guide summary { cursor: pointer; padding: 6px 0; }
.portal-guide p { margin: 3px 0 10px; }
.portal-quick-icon { display: grid; place-items: center; min-height: 74px; min-width: 74px; border-radius: 12px; background: #fff2fa; color: #a3286c; font-size: 42px; }
[data-layout="download"] .download-message h1 { font-size: clamp(21px, 2.5vw, 40px); overflow-wrap: anywhere; }
[data-layout="wild"] .hero h1 { font-size: clamp(26px, 3.1vw, 52px); }
[data-layout="rank"] .hero-text h1 { font-size: clamp(25px, 2.8vw, 46px); }
[data-layout="rank"] .hero-image { object-fit: cover; object-position: 50% 30%; }
[data-layout="rank"] .timeline-content p { overflow-wrap: anywhere; }
[data-layout="show"] .portal-show-title {
  position: absolute;
  top: 88px;
  left: max(16px, calc((100vw - 1200px) / 2));
  z-index: 3;
  max-width: min(560px, calc(100vw - 36px));
  padding: 5px 9px;
  border-radius: 4px;
  background: #151018bb;
  color: white;
  font-size: clamp(14px, 1.27vw, 23px);
  line-height: 1.38;
  pointer-events: none;
}
[data-layout="show"] [class*="FeaturedHero_backdrop"] img { object-position: center 28%; }
[data-layout="show"] [data-portal-track] { transition: transform .34s ease; }
[data-layout="show"] [class*="FeaturedHero_preview"] img { object-fit: cover; width: 100%; height: 100%; }
[data-layout="show"] [class*="FeaturedHero_preview"] .portal-preview-cover { object-fit: contain; background: #100d16ab; object-position: 50% 50%; }
[data-layout="show"] .portal-inline-cover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
[data-layout="archive"] .hg-hero__site-title { font-size: clamp(.98rem, 1.55vw, 1.45rem); max-width: min(740px, calc(100vw - 50px)); }
[data-layout="archive"] .hg-hero__bg-img { object-position: 50% 30%; }
[data-layout="archive"] .hg-hero__favorite.is-saved { background: #9a6200; color: white; }
[data-layout="archive"] .hg-announce { max-width: 100%; overflow: hidden; }
[data-layout="archive"] .hg-announce__entry { min-width: 0; }
html:has(body[data-layout="archive"]), body[data-layout="archive"] { overflow-x: clip; }
.portal-archive-strip {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  min-height: 0 !important;
  padding: 9px 0;
}
.portal-archive-strip a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border-radius: 7px;
  color: #f5efd9;
  background: #221e19;
  font-size: 13px;
}
.portal-archive-strip img { width: 46px; height: 48px; border-radius: 5px; object-fit: cover; flex: none; }
.portal-footer { color: inherit; }
@media (max-width:767px) {
  .portal-lockup img { height: 35px !important; max-width: min(65vw,253px) !important; }
  [data-layout="show"] .portal-show-title { top: 103px; }
  [data-layout="wild"] main > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: minmax(0,1fr) !important; }
  [data-layout="download"] .download-message h1 { font-size: clamp(20px, 5.7vw, 28px); }
  .portal-archive-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  [data-portal-track] { transition: none !important; }
}
