"""
Horse display with ASCII art.
"""

# Static ASCII art horse - smaller version
HORSE_LINES = [
    "            .''",
    "  ._.-.___.' (`\\",
    " //(        ( `'",
    "'/ )\\ ).__. )",
    "' <' `\\  ._/'\\",
    "   `   \\     \\",
]


def get_horse_art() -> str:
    """Get the horse ASCII art string."""
    return "\n".join(HORSE_LINES)


def get_centered_horse(width: int) -> str:
    """Get the horse ASCII art centered for given width."""
    max_line_len = max(len(line) for line in HORSE_LINES)

    centered_lines = []
    for line in HORSE_LINES:
        padding = (width - max_line_len) // 2
        if padding > 0:
            centered_lines.append(" " * padding + line)
        else:
            centered_lines.append(line)

    return "\n".join(centered_lines)
