:root {
  color-scheme: dark;
  --ink: #0d0a0b;
  --surface: #151011;
  --raised: #1b1315;
  --line: #342125;
  --edge: #543139;
  --text: #f8edef;
  --muted: #c8afb4;
  --red: #ff737a;
  --wrap: 1140px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--ink); color: var(--text); line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }
a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #ff959b; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset: 12px auto auto 12px; z-index: 10; padding: .65rem 1rem; background: #3d1b22; }

.masthead { border-bottom: 1px solid var(--line); background: #100c0e; }
.masthead-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.masthead-inner { min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 1.33rem; font-weight: 900; letter-spacing: -.075em; white-space: nowrap; }
.wordmark > span > span { color: var(--red); }
.brand-mark { display: inline-block; flex: none; width: 32px; aspect-ratio: 1; border: 1px solid #512a32; border-radius: 8px; background: #160d10 url("favicon.svg") center / cover; }
.mastnav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(12px, 3vw, 36px); font-size: .88rem; font-weight: 700; color: var(--muted); }
.mastnav a { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; white-space: nowrap; }
.mastnav .mastnav-entry { min-height: 40px; padding-inline: 12px; border: 1px solid var(--edge); border-radius: 6px; color: var(--text); }

.wing-hero {
  --hero-height: clamp(550px, 49vw, 690px);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: var(--hero-height);
  padding: 48px 20px 60px;
  place-items: center;
  overflow: hidden;
  background: #070506;
  text-align: center;
}
.wing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, #0d0a0b 0%, transparent 14%, transparent 77%, #0d0a0b 100%),
    url("devil-wings.webp") center center / 100% 100% no-repeat;
}

@media (min-width: 881px) {
  .wing-hero { background: linear-gradient(180deg, #0d0a0b, #070506 14%, #070506 77%, #0d0a0b); }
  .wing-hero::before {
    inset: 50% 0 auto;
    width: min(calc(100% - 72px), calc(var(--hero-height) * 1.5));
    aspect-ratio: 3 / 2;
    margin-inline: auto;
    transform: translateY(-50%);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
}

.hero-content { position: relative; width: min(100%, 540px); margin-block-start: -10px; }
.hero-ident { display: flex; justify-content: center; align-items: center; gap: 12px; color: #ff9a9e; font-size: .91rem; font-weight: 800; letter-spacing: .12em; }
.hero-rule { width: clamp(20px, 4.5vw, 53px); height: 1px; background: linear-gradient(90deg, transparent, #ac4a55); }
.hero-rule:last-child { transform: rotate(180deg); }
.hero-content h1 { margin: .18em 0 .17em; font-size: clamp(4.4rem, 9vw, 8.15rem); line-height: 1.04; font-weight: 900; letter-spacing: -.09em; white-space: nowrap; }
.hero-content h1 span { color: #f26973; }
.hero-content p { color: #d5c3c6; font-size: clamp(.91rem, 1.6vw, 1.08rem); font-weight: 600; word-break: keep-all; }
.mobile-break { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 7px; font-weight: 800; transition: transform .18s ease, background-color .18s ease; }
.button-primary { color: #faebed; border-color: #c75158; background: linear-gradient(#b5192e, #8f1224); box-shadow: inset 0 1px 0 #ffaeb23b, 0 3px 0 #500913, 0 10px 36px #6a13275e; }
.hero-cta { min-height: 60px; width: min(100%, 310px); margin-top: 26px; font-size: 1.04rem; }
.hero-cta span { font-size: 1.21rem; }
.current-address { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 9px; min-height: 44px; width: fit-content; margin: 13px auto 0; color: #ceb7bb; font-size: .84rem; }
.current-address strong { color: #f7e3e5; font-weight: 800; }
.current-address span:last-child { color: var(--red); }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.section-heading h2, .contact-strip h2 { font-size: clamp(1.28rem, 2.3vw, 1.83rem); letter-spacing: -.065em; line-height: 1.25; overflow-wrap: anywhere; }
.section-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.section-link span, .ad-arrow { color: var(--red); }
.entry-directory { padding: 34px 0 0; border-top: 1px solid var(--line); }
.entry-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.entry-category-grid a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: background-color .18s ease, border-color .18s ease; }
.entry-category-grid strong, .entry-category-grid small { display: block; word-break: keep-all; overflow-wrap: anywhere; }
.entry-category-grid strong { font-size: .96rem; }
.entry-category-grid small { margin-top: 2px; color: var(--muted); font-size: .73rem; }
.entry-category-grid i { color: #e87c83; font-size: .84rem; font-style: normal; }
.category-symbol {
  display: inline-grid;
  width: 36px;
  flex: none;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #62404a;
  border-radius: 7px;
  background: linear-gradient(150deg, #36222a, #21161d 69%, #191218);
  box-shadow: inset 0 1px #f5becc18, 0 2px 5px #0005;
}
.category-symbol[data-category-icon]::before {
  width: calc(100% - 2px);
  aspect-ratio: 1;
  background: var(--category-art) center / contain no-repeat;
  content: "";
}
.category-symbol[data-category-icon="adult"] { --category-art: url("category-icons.svg#adult"); }
.category-symbol[data-category-icon="webtoon"] { --category-art: url("category-icons.svg#webtoon"); }
.category-symbol[data-category-icon="betting"] { --category-art: url("category-icons.svg#betting"); }
.category-symbol[data-category-icon="replay"] { --category-art: url("category-icons.svg#replay"); }
.category-symbol[data-category-icon="night"] { --category-art: url("category-icons.svg#night"); }
.category-symbol[data-category-icon="checks"] { --category-art: url("category-icons.svg#checks"); }
.category-symbol[data-category-icon="sports"] { --category-art: url("category-icons.svg#sports"); }
.category-symbol[data-category-icon="torrent"] { --category-art: url("category-icons.svg#torrent"); }
.category-symbol[data-category-icon="community"] { --category-art: url("category-icons.svg#community"); }
.category-symbol[data-category-icon="adultshop"] { --category-art: url("category-icons.svg#adultshop"); }
.category-symbol[data-category-icon="korean"] { --category-art: url("category-icons.svg#korean"); }
.category-symbol[data-category-icon="adultlive"] { --category-art: url("category-icons.svg#adultlive"); }
.category-symbol[data-category-icon="globaladult"] { --category-art: url("category-icons.svg#globaladult"); }
.category-symbol[data-category-icon="adultphoto"] { --category-art: url("category-icons.svg#adultphoto"); }
.category-symbol[data-category-icon="aiadult"] { --category-art: url("category-icons.svg#aiadult"); }
.symbol-game::before, .symbol-game::after, .symbol-learning::before { grid-area: 1 / 1; content: ""; }
.symbol-game::before { width: 66%; height: 42%; border: 1px solid currentColor; border-radius: 5px; }
.symbol-game::after { content: "+ ·"; font: 700 9px/1 sans-serif; }
.symbol-learning::before { width: 49%; height: 63%; background: currentColor; clip-path: polygon(5% 0, 95% 0, 95% 100%, 50% 77%, 5% 100%, 5% 0, 21% 14%, 21% 72%, 50% 59%, 79% 72%, 79% 14%, 21% 14%); }
.entry-guide { margin-block: 54px 68px; }
.entry-guide .section-heading { margin-bottom: 12px; }
.entry-guide details { border-bottom: 1px solid var(--line); }
.entry-guide details:first-of-type { border-top: 1px solid var(--line); }
.entry-guide summary { position: relative; min-height: 48px; padding: 13px 36px 13px 0; color: var(--text); cursor: pointer; font-size: .94rem; font-weight: 700; list-style: none; }
.entry-guide summary::-webkit-details-marker { display: none; }
.entry-guide summary::after { position: absolute; inset-inline-end: 3px; color: var(--red); content: "+"; }
.entry-guide details[open] summary::after { content: "−"; }
.entry-guide details p { padding: 0 30px 17px 0; color: var(--muted); font-size: .87rem; word-break: keep-all; }
.entry-guide p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.directory-main { padding-bottom: 54px; }
.directory-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 44px 0 24px; }
.directory-intro h1 { font-size: clamp(2.65rem, 6.4vw, 4.8rem); letter-spacing: -.085em; line-height: 1.1; }
.directory-intro h1 span { color: var(--red); }
.directory-intro p { margin-top: 9px; color: var(--muted); font-size: .93rem; word-break: keep-all; }
.site-search { position: relative; flex: 0 1 335px; }
.site-search input { width: 100%; min-height: 48px; padding: 10px 36px 10px 39px; border: 1px solid var(--edge); border-radius: 7px; background: var(--surface); color: var(--text); font-size: .94rem; }
.site-search input::placeholder { color: var(--muted); opacity: 1; }
.search-icon { position: absolute; top: calc(50% - 7px); left: 14px; width: 13px; height: 13px; border: 1.5px solid var(--red); border-radius: 50%; pointer-events: none; }
.search-icon::after { position: absolute; top: 10px; left: 9px; width: 6px; height: 1.5px; background: var(--red); transform: rotate(45deg); transform-origin: left center; content: ""; }
.shortcut-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.shortcut-grid a { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 47px; padding: 6px 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: .81rem; font-weight: 800; }
.shortcut-grid a span { display: grid; width: 20px; height: 20px; place-items: center; flex: none; border-radius: 4px; background: #432128; color: #ffc3c6; font-size: .71rem; line-height: 1; }
.advertising, .directory-section { margin-top: 34px; }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.ad-feature { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 108px; padding: 16px clamp(14px, 3vw, 25px); border: 1px solid #62323b; border-radius: 8px; background: linear-gradient(90deg, #1a0b0eee, #211013b8 49%, #2e0e1555), url("devil-wings.webp") center 37% / 100% auto, #201013; }
.ad-feature strong, .ad-feature small { display: block; }
.ad-feature strong { font-size: clamp(1.08rem, 2.3vw, 1.65rem); letter-spacing: -.065em; word-break: keep-all; }
.ad-feature small { margin-top: 2px; color: #f2c8cc; font-size: .82rem; }
.ad-feature-icon { width: 41px; }
.ad-arrow { font-size: 1.3rem; }
.ad-slot { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: clamp(43px, 5vw, 60px); padding: 6px clamp(8px, 2vw, 13px); border: 1px dashed #58343a; border-radius: 5px; background-color: #1e1316; color: #ddbec3; font-size: .8rem; font-weight: 700; }
.ad-slot span:last-child { color: #b8767e; }
.ad-tone-2 { background-color: #211216; }
.ad-tone-3 { background-color: #181216; }
.ad-tone-4 { background-color: #1e1413; }

.result-count { color: var(--muted); font-size: .85rem; }
.category-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.category-nav a { display: inline-flex; min-height: 42px; align-items: center; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .81rem; font-weight: 700; }
.empty-result { padding: 24px 14px; border: 1px dashed var(--edge); border-radius: 8px; color: var(--muted); text-align: center; word-break: keep-all; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.category-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.category-card:target { border-color: #d5656b; box-shadow: 0 0 0 2px #8c394344; }
.category-card h3 { display: flex; gap: 8px; align-items: center; min-height: 56px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--raised); font-size: .99rem; letter-spacing: -.045em; word-break: keep-all; overflow-wrap: anywhere; }
.category-card .category-symbol { width: 30px; }
.category-card ol { margin: 0; padding: 0; list-style: none; }
.category-card li + li { border-top: 1px solid #2c1c20; }
.category-card li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 44px; padding: 8px; font-size: .84rem; font-weight: 700; overflow-wrap: anywhere; word-break: keep-all; }
.category-card li a:focus-visible { outline-offset: -2px; }
.outbound { color: #df8e95; font-size: .8rem; }
.rank { display: inline-grid; width: 20px; aspect-ratio: 1; place-items: center; border: 1px solid #57343b; border-radius: 4px; background: #251519; color: #f4bdc4; font-variant-numeric: tabular-nums; font-size: .67rem; }
.rank-1 { border-color: #826146; background: #3a2919; color: #ffda97; }
.rank-2 { border-color: #656371; background: #302d38; color: #f4e8f6; }
.rank-3 { border-color: #794637; background: #35221d; color: #f8b79e; }
.contact-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 30px; padding: 18px; border: 1px solid #543039; border-radius: 8px; background: var(--raised); }
.contact-strip p { margin-top: 5px; color: var(--muted); font-size: .85rem; }

.site-footer { border-top: 1px solid var(--line); background: #100c0e; }
.footer-inner { min-height: 88px; padding-block: 11px; }
.footer-inner p, .footer-inner > a:last-child { color: var(--muted); font-size: .81rem; }
.footer-inner > a:last-child { display: grid; min-height: 44px; align-items: center; white-space: nowrap; }

@media (hover: hover) {
  .mastnav a:hover, .section-link:hover, .current-address:hover, .footer-inner > a:last-child:hover { color: #ff989e; }
  .button-primary:hover { transform: translateY(-2px); background: linear-gradient(#c02338, #a9192f); }
  .button-primary:active { transform: translateY(2px); }
  .entry-category-grid a:hover, .shortcut-grid a:hover, .category-nav a:hover { border-color: #914e55; background: #28181c; color: var(--text); }
  .category-card li a:hover { background: #25171a; }
  .entry-guide summary:hover { color: #ff989e; }
}

@media (max-width: 880px) {
  .entry-category-grid, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .masthead-inner { min-height: 60px; gap: 8px; }
  .mastnav { gap: clamp(6px, 2.5vw, 13px); font-size: .75rem; }
  .mastnav .mastnav-entry { min-height: 44px; padding-inline: 3px; border: 0; }
  .mastnav-entry span { display: none; }
  .wordmark { gap: 6px; font-size: 1.15rem; }
  .brand-mark { width: 27px; }
  .wing-hero { min-height: 475px; padding: 38px 17px 48px; }
  .wing-hero::before {
    background-image:
      linear-gradient(180deg, #0d0a0b 0%, transparent 13%, transparent 83%, #0d0a0b 100%),
      linear-gradient(90deg, transparent, #0d0a0b66 26%, #0d0a0b66 74%, transparent),
      url("devil-wings.webp");
    background-position: center;
    background-size: 100% 100%;
  }
  .hero-content { max-width: 365px; }
  .hero-content h1 { font-size: clamp(3.38rem, 12.9vw, 5rem); }
  .hero-content p { font-size: .87rem; }
  .hero-cta { min-height: 54px; width: min(100%, 252px); font-size: .96rem; }
  .mobile-break { display: initial; }
  .entry-directory { padding-top: 20px; }
  .entry-category-grid { gap: 6px; margin-top: 8px; }
  .entry-category-grid a { min-height: 72px; gap: 6px; padding: 8px 6px; }
  .entry-category-grid .category-symbol { width: 27px; font-size: .93rem; }
  .entry-category-grid strong { font-size: .8rem; }
  .entry-category-grid small { font-size: .67rem; }
  .entry-category-grid i { display: none; }
  .entry-guide { margin-block: 36px 45px; }
  .directory-intro { flex-direction: column; align-items: stretch; gap: 13px; padding: 26px 0 14px; }
  .site-search { flex: none; }
  .shortcut-grid { gap: 5px; }
  .shortcut-grid a { flex-direction: column; gap: 2px; font-size: .69rem; line-height: 1.2; }
  .shortcut-grid a span { width: 16px; height: 16px; font-size: .64rem; }
  .advertising, .directory-section { margin-top: 23px; }
  .ad-grid, .directory-grid { gap: 5px; }
  .ad-feature { min-height: 80px; background-size: auto, 100% 120%; }
  .ad-feature-icon { width: 34px; }
  .category-card h3 { min-height: 48px; font-size: .89rem; }
  .category-card .category-symbol { width: 24px; font-size: .88rem; }
  .category-card li a { gap: 5px; padding-inline: 6px; font-size: .78rem; }
  .category-nav a { min-height: 44px; }
  .footer-inner { flex-wrap: wrap; gap: 3px 10px; }
  .footer-inner p { width: 100%; order: 1; }
}

@media (max-width: 350px) {
  .masthead-inner { gap: 5px; }
  .mastnav { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
