.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    text-align: center;
    padding: 40px 0;
    margin-top: 140px;
}

.minecraft-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: #FFF;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 20px;
}

.minecraft-subtitle {
    font-size: 1.3rem;
    color: #CCC;
    margin-bottom: 30px;
}

.capes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.cape-card {
    background: rgba(0, 0, 0, 0.2);
    border: 3px solid #000;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 2px 2px 0px rgba(255,255,255,0.1), inset -2px -2px 0px rgba(0,0,0,0.2);
}

.cape-card:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.cape-image-container {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cape-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.cape-rarity {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.cape-rarity.common {
    background: rgba(51, 51, 51, 0.7);
    color: #ccc;
}
.cape-rarity.uncommon {
    background: rgba(30, 70, 42, 0.7);
    color: #4ade80;
}
.cape-rarity.rare {
    background: rgba(30, 58, 138, 0.7);
    color: #93c5fd;
}
.cape-rarity.epic {
    background: rgba(75, 37, 130, 0.7);
    color: #d8b4fe;
}
.cape-rarity.legendary {
    background: rgba(126, 30, 135, 0.7);
    color: #e9d5ff;
}
.cape-rarity.mythic {
    background: rgba(133, 77, 14, 0.7);
    color: #fef08a;
}

.cape-info {
    width: 100%;
    padding: 0.5rem 0.25rem;
}

.cape-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ddd;
    text-align: center;
    font-family: 'VT323', monospace;
}

.cape-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    font-size: 0.7rem;
}

.cape-owners {
    font-size: 1rem;
    color: #888;
}

.cape-loading {
    text-align: center;
    padding: 4rem 0;
    color: #888;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #222;
    border-top: 4px solid #4ade80;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.error-message {
    color: #f87171;
    background: #222;
    border: 2px solid #a00;
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 400px;
    text-align: center;
    font-family: 'VT323', monospace;
}

.hidden {
    display: none;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}