:root {
  --bg: #07110f;
  --panel: #0d1a17;
  --text: #f5f8f6;
  --muted: #96a8a2;
  --lime: #baff63;
  --red: #ff3f5f;
}
* {
  box-sizing: border-box;
}
html {
  background: #020806;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 63, 95, 0.12),
      transparent 32rem
    ),
    #020806;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.directory-shell {
  position: relative;
  width: min(100%, 820px);
  min-height: 100vh;
  margin: auto;
  overflow: hidden;
  padding-bottom: 105px;
  border-inline: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg);
  box-shadow: 0 0 80px #000;
}
.directory-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 15px;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}
.directory-ticker span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.directory-ticker a {
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
  color: #17100f;
  font-size: 10px;
}
.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.directory-header > a {
  display: flex;
  align-items: center;
  gap: 11px;
}
.directory-header img {
  max-width: 185px;
  height: 43px;
  object-fit: contain;
}
.directory-header strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}
.directory-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px 5px;
  background: var(--red);
  box-shadow: 5px 5px 0 var(--lime);
  color: #fff;
  font-size: 23px;
  font-weight: 950;
}
.age-label {
  padding: 7px 9px;
  border: 1px solid rgba(255, 63, 95, 0.3);
  border-radius: 9px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}
.directory-intro {
  padding: 38px 18px 28px;
}
.directory-intro > p,
.section-head small {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.directory-intro h1 {
  margin: 0;
  font-size: clamp(36px, 9vw, 63px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}
.directory-intro h1 em {
  display: block;
  color: var(--lime);
  font-style: normal;
}
.directory-intro > span {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(186, 255, 99, 0.2);
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
}
.directory-section,
.list-section,
.guide-section {
  padding: 20px 14px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 4px 15px;
}
.section-head h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}
.section-head i {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}
.section-head .all-link {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.directory-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 7px;
  background: var(--panel);
}
.card-art {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 160px;
  padding: 12px;
  background: linear-gradient(145deg, #592137, #be315e);
}
.tone-red .card-art {
  background: linear-gradient(145deg, #3b1d25, #bd334a);
}
.tone-green .card-art {
  background: linear-gradient(145deg, #17362c, #16865f);
}
.card-art:after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border: 25px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.card-art span {
  z-index: 1;
  padding: 5px 7px;
  border-radius: 6px;
  background: #fff;
  color: #17100f;
  font-size: 8px;
  font-weight: 900;
}
.card-art b {
  position: absolute;
  right: 10px;
  bottom: 2px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 55px;
}
.card-copy {
  padding: 14px;
}
.card-copy h3 {
  margin: 0;
  font-size: 16px;
}
.card-copy p {
  margin: 6px 0;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}
.card-copy small {
  display: block;
  min-height: 28px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.card-copy a {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px;
  border-radius: 9px;
  background: var(--red);
  font-size: 10px;
  font-weight: 900;
}
.mini-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--panel);
}
.mini-list article {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mini-list article:last-child {
  border: 0;
}
.mini-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red), #6e243b);
  font-size: 11px;
  font-weight: 900;
}
.mini-list h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.mini-list p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-list a {
  padding: 9px;
  border-radius: 8px;
  background: var(--lime);
  color: #07110f;
  font-size: 9px;
  font-weight: 900;
}
.trust-note {
  display: flex;
  gap: 12px;
  margin: 20px 18px;
  padding: 16px;
  border: 1px solid rgba(186, 255, 99, 0.18);
  border-radius: 15px;
  background: rgba(186, 255, 99, 0.05);
}
.trust-note > b {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: #07110f;
}
.trust-note strong {
  font-size: 13px;
}
.trust-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.guide-grid article {
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--panel);
}
.guide-grid span {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
}
.guide-grid h3 {
  min-height: 55px;
  margin: 8px 0;
  font-size: 14px;
}
.guide-grid small {
  color: var(--muted);
  font-size: 9px;
}
.guide-grid a {
  display: block;
  margin-top: 12px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
}
.guide-grid .guide-image {
  height: 122px;
  margin: -17px -17px 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.guide-image:hover img {
  transform: scale(1.035);
}
footer {
  padding: 38px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer strong {
  font-size: 17px;
}
footer p {
  color: var(--muted);
  font-size: 10px;
}
footer small {
  color: #52635d;
  font-size: 9px;
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 56px;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(255, 63, 95, 0.24);
  border-radius: 20px;
  background: rgba(28, 17, 21, 0.95);
  box-shadow: 0 16px 45px #000;
  backdrop-filter: blur(18px);
  scrollbar-width: none;
  transform: translateX(-50%);
  transition: 0.22s;
}
.bottom-nav::-webkit-scrollbar {
  display: none;
}
.bottom-nav.is-hidden {
  opacity: 0;
  transform: translate(-50%, 110%);
  pointer-events: none;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  gap: 4px;
  border-radius: 12px;
  background: rgba(255, 63, 95, 0.055);
  color: #ac929b;
}
.bottom-nav a.active {
  background: var(--red);
  color: #fff;
}
.bottom-nav a span {
  font-size: 20px;
}
.bottom-nav a small {
  font-size: 8px;
  font-weight: 800;
}
.maintenance-screen {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}
.maintenance-screen > span {
  margin-top: 28px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.maintenance-screen h1 {
  margin: 8px 0 14px;
  font-size: 48px;
}
.maintenance-screen p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}
.site-popup {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(8, 2, 4, 0.76);
  backdrop-filter: blur(13px);
}
.site-popup-card {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  border: 1px solid rgba(255, 63, 95, 0.34);
  border-radius: 24px 8px;
  background: linear-gradient(145deg, #261319, #100a0c);
  box-shadow: 0 30px 90px #000;
}
.site-popup-card > img {
  display: block;
  width: 100%;
  max-height: 270px;
  object-fit: cover;
}
.site-popup-card > div {
  padding: 28px;
}
.site-popup-card > div > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.site-popup-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1;
}
.site-popup-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.site-popup-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(10, 4, 6, 0.82);
  color: #fff;
  cursor: pointer;
  font-size: 25px;
}
.close-top_left .site-popup-close {
  right: auto;
  left: 12px;
}
.close-bottom .site-popup-close {
  top: auto;
  bottom: 12px;
}
.popup-cta {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
}
.popup-cta.is-red {
  background: var(--red);
}
.popup-cta.is-lime {
  background: var(--lime);
  color: #07110f;
}
.popup-cta.is-neutral {
  background: #fff;
  color: #07110f;
}
.popup-dismiss {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
body.has-open-popup {
  overflow: hidden;
}
@media (min-width: 700px) {
  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-art {
    min-height: 190px;
  }
  .mini-list article {
    padding-inline: 18px;
  }
  .guide-grid h3 {
    min-height: auto;
    font-size: 17px;
  }
}
@media (max-width: 380px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .card-art {
    min-height: 175px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.directory-card.has-media {
  display: block;
}
.directory-media-link {
  position: relative;
  display: block;
  min-height: 180px;
}
.directory-media-link img {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 310px;
  object-fit: cover;
}
.directory-media-link span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.mini-avatar {
  overflow: hidden;
}
.mini-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.front-empty {
  grid-column: 1/-1;
  padding: 30px 18px;
  border: 1px dashed rgba(255, 63, 95, 0.28);
  border-radius: 18px;
  text-align: center;
}
.front-empty strong,
.front-empty p {
  display: block;
}
.front-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.front-empty.compact {
  border: 0;
}
