.card {
    width: 100%;
    max-width: 700px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.illustration {
    margin: 0.5rem 0;
    text-align: center;
    line-height: 2;
}

.profile-card {
    padding: .8rem 1.2rem;
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1rem;
    margin: 0 0 .4rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.profile-stat {
    font-size: .9rem;
    margin: 0;
}

.profile-goal{
    margin-top: 8px;
    margin-bottom: 3px;
    font-weight: 600;
    font-size: .9rem;
}

.profile-quest {
    font-size: .9rem;
    margin: 0 0 4px;
}

.profile-card progress {
    width: 50%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    border: none;
}

.profile-page-button {
    display: inline-block;
    margin: 0 auto 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: white !important;
}

.profile-page {
    padding: 1rem;
}

.profile-page-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.profile-page-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(79, 134, 247, 0.08);
    border-radius: 6px;
    padding: 0.25rem 0.3rem;
}

.stat-icon {
    font-size: 0.85rem;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.6rem;
    opacity: 0.7;
}

.profile-page-progress {
    width: 100%;
    margin-bottom: 0.6rem;
}

.profile-page-progress progress {
    width: 100%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    border: none;
}

.profile-page-quest {
    width: 100%;
    margin-bottom: 0.6rem;
}

.profile-page-quest-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.profile-page-daily {
    width: 100%;
    margin-bottom: 0.6rem;
}

.profile-page-daily h2 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.daily-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.4rem;
}

.daily-nav-btn {
    margin: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    min-width: auto;
}

.daily-date-label {
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 130px;
    text-align: center;
}

.daily-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.daily-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(79, 134, 247, 0.06);
    border-radius: 6px;
    padding: 0.35rem;
}

.daily-icon {
    font-size: 0.9rem;
}

.daily-value {
    font-size: 1rem;
    font-weight: 700;
}

.daily-label {
    font-size: 0.65rem;
    opacity: 0.7;
}

.type-breakdown {
    margin-top: 0.5rem;
}

.type-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.type-label {
    font-size: 0.7rem;
    min-width: 110px;
    white-space: nowrap;
}

.type-bar-wrap {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.type-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.type-pct {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

.quest-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.3rem;
}

.quest-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s;
}

.quest-dot.done {
    background: var(--secondary);
}

.profile-page-achievements {
    flex: 1;
    min-width: 0;
    margin-bottom: 0.3rem;
}

.profile-page-achievements h2 {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.35rem;
    border-radius: 5px;
    margin-bottom: 2px;
}

.achievement-item.unlocked {
    background: rgba(245, 158, 11, 0.12);
}

.achievement-item.locked {
    background: #f0f0f0;
    opacity: 0.6;
}

.achievement-icon {
    font-size: 0.8rem;
}

.achievement-info {
    display: flex;
    flex-direction: column;
}

.achievement-name {
    font-weight: 600;
    font-size: 0.65rem;
}

.achievement-req {
    font-size: 0.55rem;
    opacity: 0.7;
}

.profile-page-worlds {
    flex: 1;
    min-width: 0;
    margin-bottom: 0.3rem;
}

.profile-page-worlds h2 {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.world-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.35rem;
    border-radius: 5px;
    margin-bottom: 2px;
    transition: background .15s;
}

.world-item.unlocked {
    background: rgba(76, 175, 80, 0.1);
}

.world-item.unlocked:hover {
    background: rgba(76, 175, 80, 0.2);
}

.world-item.locked {
    background: #f0f0f0;
    opacity: 0.6;
}

.world-item.active {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.world-icon {
    font-size: 0.9rem;
}

.world-info {
    display: flex;
    flex-direction: column;
}

.world-name {
    font-weight: 600;
    font-size: 0.65rem;
}

.world-desc {
    font-size: 0.55rem;
    opacity: 0.7;
}

.skill-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-category {
    margin-bottom: 0.3rem;
}

.skill-category-title {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: #666;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.skill-label {
    font-size: 0.7rem;
    min-width: 110px;
    white-space: nowrap;
}

.skill-bar-wrap {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: var(--secondary);
    border-radius: 4px;
    transition: width 0.3s;
}

.skill-pct {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

.skill-detail {
    font-size: 0.65rem;
    opacity: 0.6;
    min-width: 40px;
    text-align: right;
}

.stats-tab-row {
    display: flex;
    gap: 0;
    margin-bottom: 0.8rem;
    width: 100%;
    border-bottom: 2px solid #e0e0e0;
}

.stats-tab {
    flex: 1;
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.stats-tab:hover {
    color: #333;
}

.stats-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.stats-section {
    width: 100%;
    margin-bottom: 0.6rem;
}

.stats-section h2 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.type-breakdown-title {
    font-size: 0.8rem;
    margin: 0.6rem 0 0.3rem;
    color: #666;
}