* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eaf4fb;
    color: #2c3e50;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    padding: 48px 24px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    font-size: 2.4rem;
    color: #1a3a5c;
    font-weight: 300;
    letter-spacing: 2px;
}

header h1 .logo {
    height: 2.4rem;
    vertical-align: middle;
}

header p {
    margin-top: 10px;
    color: #7aa3c0;
    font-size: 0.9rem;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb-item {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    border: 1px solid #c8dff0;
    background: #ffffff;
    color: #4a7a9b;
    transition: all 0.2s ease;
    user-select: none;
}

.breadcrumb-item:hover {
    border-color: #5bacdf;
    color: #2e7ab8;
    background: #f0f8ff;
}

.breadcrumb-item.active {
    background: #5bacdf;
    color: #ffffff;
    border-color: #5bacdf;
}

.container {
    max-width: 1200px;
    margin: 0 auto 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.card {
    background: #ffffff;
    border: 1px solid #d0e6f5;
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5bacdf, #87ceeb, transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #5bacdf;
    background: #f0f8ff;
    box-shadow: 0 6px 24px rgba(91, 172, 223, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card:active {
    transform: scale(0.97);
}

.card-art {
    font-family: 'Courier New', 'Noto Sans', 'Segoe UI Symbol', monospace;
    font-size: 1.05rem;
    text-align: center;
    padding: 4px 2px;
    color: #1a3a5c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-name {
    font-size: 0.68rem;
    text-align: center;
    color: #8badc4;
    margin-top: 4px;
}

.card.copied {
    border-color: #3d9be0;
    background: #e8f4fd;
}

.card.copied .card-name {
    color: #3d9be0;
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ffffff;
    border: 1px solid #5bacdf;
    color: #2e7ab8;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(91, 172, 223, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.stats {
    text-align: center;
    color: #8badc4;
    font-size: 0.8rem;
    margin-top: 48px;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #eaf4fb;
}
::-webkit-scrollbar-thumb {
    background: #b8d8ed;
    border-radius: 3px;
}
