 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
}
 
.hero {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
    padding: 72px 24px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
 
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
 
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 680px;
    width: 100%;
}
 
.badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #d4b8ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 999px;
}
 
.hero-icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
 
.gh-icon {
    width: 36px;
    height: 36px;
    color: rgba(255,255,255,0.85);
}
 
.welcome-text {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
}
 
.hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}
 
.highlight { color: #c9a0ff; }
 
.hero > .hero-inner > p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    line-height: 1.7;
}
 
.search-bar {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 520px;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
}
 
input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
 
input::placeholder { color: rgba(255,255,255,0.35); }
 
button {
    padding: 14px 26px;
    background-color: #9b6dff;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
}
 
button:hover { background-color: #8558f0; }
 
.hint {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-top: -4px;
}
 
 
.main {
    width: 100%;
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: stretch;
    background-color: #0d1117;
}
 
 
.profile-card {
    width: 300px;
    flex-shrink: 0;
    background-color: #161b22;
    border-right: 1px solid #30363d;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
 
.profile-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30363d;
    margin-bottom: 4px;
}
 
.profile-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
}
 
.bio {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.6;
}
 
.meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0;
}
 
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c9d1d9;
    font-weight: 500;
}
 
.meta-item:nth-child(1) { border-left: 3px solid #f87171; }
.meta-item:nth-child(2) { border-left: 3px solid #4ade80; }
.meta-item:nth-child(3) { border-left: 3px solid #60a5fa; }
 
.meta-icon { font-size: 15px; }
 
.github-link {
    color: #9b6dff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    transition: color 0.2s;
}
 
.github-link:hover {
    color: #c9a0ff;
    text-decoration: underline;
}
 
#downloadBtn {
    width: 100%;
    margin-top: 6px;
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
 
#downloadBtn:hover {
    background-color: #2d333b;
    border-color: #6e40c9;
}
 
.rpg-card {
    flex: 1;
    background-color: #0d1117;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}
 
.rpg-top {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
 
.rpg-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #21262d;
}
 
.class-icon { font-size: 36px; }
 
.class-name {
    font-size: 20px;
    font-weight: 700;
    color: #e6edf3;
}
 
.class-sub {
    font-size: 13px;
    color: #6e7681;
    margin-top: 3px;
}
 
 
.rpg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 48px;
}
 
.rpg-stat { display: flex; flex-direction: column; gap: 8px; }
 
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.stat-label {
    font-size: 12px;
    color: #8b949e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
 
.stat-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
 
.rpg-stat:nth-child(1) .stat-label::before { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.5); }
.rpg-stat:nth-child(2) .stat-label::before { background: #c084fc; box-shadow: 0 0 6px rgba(192,132,252,0.5); }
.rpg-stat:nth-child(3) .stat-label::before { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.rpg-stat:nth-child(4) .stat-label::before { background: #60a5fa; box-shadow: 0 0 6px rgba(96,165,250,0.5); }
 
.stat-val {
    font-size: 12px;
    color: #484f58;
    font-variant-numeric: tabular-nums;
}
 
.bar-track {
    background: #21262d;
    border-radius: 6px;
    height: 7px;
    overflow: hidden;
    border: 1px solid #30363d;
}
 
.bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
 
.bar-fill.str  {
    background: linear-gradient(90deg, #b91c1c, #f87171);
    box-shadow: 0 0 8px rgba(248,113,113,0.4);
}
.bar-fill.cha  {
    background: linear-gradient(90deg, #6d28d9, #c084fc);
    box-shadow: 0 0 8px rgba(192,132,252,0.4);
}
.bar-fill.wis  {
    background: linear-gradient(90deg, #15803d, #4ade80);
    box-shadow: 0 0 8px rgba(74,222,128,0.4);
}
.bar-fill.mana {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    box-shadow: 0 0 8px rgba(96,165,250,0.4);
}
 
 
.roast-box {
    border-left: 3px solid #6e40c9;
    padding: 16px 20px;
    background-color: #161b22;
    border-radius: 0 8px 8px 0;
    border-top: 1px solid #30363d;
    border-right: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
}
 
.roast-label {
    font-size: 11px;
    color: #9b6dff;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
 
.roast-text {
    font-size: 14px;
    color: #8b949e;
    line-height: 1.75;
    font-style: italic;
}
 
 
@media (max-width: 768px) {
    .hero h1 { font-size: 26px; }
    .main { flex-direction: column; }
    .profile-card {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #30363d;
    }
    .rpg-card { padding: 28px 20px; }
    .rpg-stats { grid-template-columns: 1fr; gap: 16px; }
    .search-bar { max-width: 100%; }
}

.profile-card,
.rpg-card,
.rpg-header,
.rpg-stat,
.meta-item,
.roast-box,
#avatar,
#name,
#bio {
    opacity: 0;
}
 
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
 
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
 

.anim-fade-up {
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
 
.anim-fade {
    animation: fadeIn 0.5s ease forwards;
}
 
.anim-scale {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
 