/* ============================================
 * 소리튠 주니어 - 프리미엄 학생 페이지
 * Premium Mobile App Design
 * ============================================ */

/* ── 배경 그래디언트 ── */
.student-page {
    background: linear-gradient(165deg, #FF8C2E 0%, #FF6B1A 25%, #F05A1A 50%, #E8491C 75%, #D43A1E 100%);
    min-height: 100vh;
    position: relative;
}

.student-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 600px at 20% 10%, rgba(255,200,50,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 80%, rgba(255,100,50,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.student-page .app-container {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ============================================
 * 로딩 화면 (브랜드 스플래시)
 * ============================================ */
.view-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #FF8C2E 0%, #FF6B1A 30%, #E8491C 100%);
}

.loading-brand {
    text-align: center;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-logo-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.9), rgba(255,255,255,0.1), rgba(255,255,255,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 2s linear infinite;
    padding: 3px;
}

.loading-logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B1A, #E8491C);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    animation: none;
}

.loading-brand-text {
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.loading-brand-sub {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================
 * 히어로 섹션 (로그인/형제선택)
 * ============================================ */
.login-hero {
    position: relative;
    padding: calc(env(safe-area-inset-top, 0px) + 48px) 24px 40px;
    text-align: center;
    overflow: hidden;
}

.login-hero-compact {
    padding-bottom: 28px;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.hero-circle-1 {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -60px;
    animation: float 8s ease-in-out infinite;
}

.hero-circle-2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-circle-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 60%;
    background: rgba(255,255,255,0.04);
    animation: float 10s ease-in-out infinite 2s;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 16px;
}

.hero-logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    margin-top: 6px;
}

/* ============================================
 * 로그인 바디
 * ============================================ */
.login-body {
    padding: 0 16px 40px;
}

/* ── 반 선택 그리드 ── */
.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.class-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.15);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.class-item:active {
    transform: scale(0.93);
}

.class-item.selected {
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.9);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.12),
        0 0 0 3px rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.class-item-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: 2px solid rgba(255,255,255,0.2);
}

.class-item.selected .class-item-logo {
    border-color: #FF6B1A;
}

.class-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-item-name {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.3px;
}

.class-item.selected .class-item-name {
    color: #FF6B1A;
}

/* ── 학생 선택 리스트 ── */
.student-list-container {
    margin-top: 20px;
}

.student-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.student-list-title {
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.student-list-back {
    display: flex;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(5px);
    transition: all 0.15s ease;
}

.student-list-back:active {
    background: rgba(255,255,255,0.2);
}

.student-select-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.student-select-item:active {
    transform: scale(0.98);
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.student-select-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF8C2E, #FF6B1A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.student-select-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

/* ── 동명이인 전화번호 입력 ── */
.phone-verify {
    margin-top: 20px;
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1.5px solid rgba(255,255,255,0.5);
}

.phone-verify-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #FFF3E8, #FFE8D6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-verify-title {
    font-size: 17px;
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
}

.phone-verify-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group input {
    flex: 1;
    padding: 14px;
    border: 2px solid #E8E8E8;
    border-radius: 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #333;
    background: #FAFAFA;
    transition: all 0.2s ease;
}

.phone-input-group input:focus {
    border-color: #FF6B1A;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}

.btn-glow {
    box-shadow: 0 4px 16px rgba(255,107,26,0.35);
}

/* ============================================
 * 형제 선택
 * ============================================ */
.sibling-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sibling-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.sibling-item:active {
    transform: scale(0.97);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.sibling-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF8C2E, #FF6B1A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,26,0.25);
}

.sibling-item-name {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.sibling-item-class {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* ============================================
 * 마이페이지 히어로
 * ============================================ */
.mypage-hero {
    position: relative;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 28px;
    overflow: hidden;
}

.mypage-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mypage-hero-bg .hero-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
}

.mypage-hero-bg .hero-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -50px;
}

.mypage-hero-bg .hero-circle-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 50%;
}

.mypage-hero-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mypage-brand {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mypage-logout-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.15s ease;
}

.mypage-logout-btn:active {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ── 프로필 섹션 ── */
.mypage-profile {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 20px;
}

.mypage-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.mypage-student-name {
    font-size: 26px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mypage-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mypage-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: -0.2px;
}

/* ── 코인 카드 (글래스모피즘) ── */
.mypage-coin-card {
    position: relative;
    z-index: 2;
    margin: 0 auto 20px;
    max-width: 280px;
}

.coin-card-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    border-radius: 24px;
    opacity: 0.4;
    filter: blur(12px);
    animation: coinGlow 3s ease-in-out infinite;
}

.coin-card-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg,
        rgba(255,215,0,0.3),
        rgba(255,165,0,0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255,215,0,0.4);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.coin-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,165,0,0.3);
}

.coin-card-icon span {
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.coin-card-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.coin-card-value {
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: -1px;
}

/* ── 랭킹 카드 ── */
.mypage-rankings {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow: hidden;
}

.mypage-rank-card {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
}

.rank-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.2);
}

.rank-card-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.rank-card-value {
    font-size: 22px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
 * 마이페이지 바디 (카드 컬렉션)
 * ============================================ */
.mypage-body {
    position: relative;
    z-index: 2;
    padding: 0 16px 40px;
    margin-top: 4px;
}

/* ── 카드 컬렉션 ── */
.card-collection {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.04);
}

.card-collection-header {
    margin-bottom: 16px;
}

.card-collection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #333;
    letter-spacing: -0.3px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.reward-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
}

.reward-card:active {
    transform: scale(0.98);
}

.reward-card[data-color="steady"]   { background: linear-gradient(135deg, #F0FFF0, #E8F5E9); }
.reward-card[data-color="steady"]::before { background: #4CAF50; }
.reward-card[data-color="leader"]   { background: linear-gradient(135deg, #F0F7FF, #E3F2FD); }
.reward-card[data-color="leader"]::before { background: #2196F3; }
.reward-card[data-color="mission"]  { background: linear-gradient(135deg, #FFFCF0, #FFF3E0); }
.reward-card[data-color="mission"]::before { background: #FF9800; }
.reward-card[data-color="posture"]  { background: linear-gradient(135deg, #FCF0FF, #F3E5F5); }
.reward-card[data-color="posture"]::before { background: #9C27B0; }
.reward-card[data-color="passion"]  { background: linear-gradient(135deg, #FFF0F0, #FFEBEE); }
.reward-card[data-color="passion"]::before { background: #F44336; }

.reward-card-image {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.reward-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reward-card-info {
    flex: 1;
    min-width: 0;
}

.reward-card-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.reward-card-coins {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    font-weight: 500;
}

.reward-card-hint {
    font-size: 11px;
    color: #CCC;
    margin-top: 3px;
    font-weight: 500;
}

.reward-card-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 48px;
}

.reward-card-count-number {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.reward-card-count-label {
    font-size: 10px;
    color: #BBB;
    font-weight: 600;
}

/* ── 전체 랭킹 버튼 ── */
.ranking-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-top: 16px;
    background: white;
    color: #FF6B1A;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.ranking-btn:active {
    transform: scale(0.98);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.ranking-btn-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFF3E8, #FFE8D6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ranking-btn span {
    flex: 1;
    text-align: left;
}

.ranking-btn svg:last-child {
    color: #CCC;
}

/* ── 하단 푸터 ── */
.mypage-footer {
    text-align: center;
    padding: 24px 0 16px;
}

.footer-logo {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
 * 전체 랭킹 페이지
 * ============================================ */
.ranking-page {
    background: #F8F9FA;
    min-height: 100vh;
}

.ranking-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
    background: linear-gradient(135deg, #FF8C2E, #FF6B1A);
    box-shadow: 0 4px 20px rgba(255,107,26,0.2);
}

.ranking-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    transition: all 0.15s ease;
}

.ranking-back-btn:active {
    background: rgba(255,255,255,0.25);
}

.ranking-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

.ranking-body {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}

/* ── 포디움 (탑3) ── */
.ranking-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px 24px;
    background: linear-gradient(180deg, #FF6B1A 0%, #F8F9FA 100%);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 110px;
}

.podium-item.rank-1 {
    order: 2;
}

.podium-item.rank-2 {
    order: 1;
}

.podium-item.rank-3 {
    order: 3;
}

.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    position: relative;
}

.podium-item.rank-1 .podium-avatar {
    width: 60px;
    height: 60px;
    font-size: 22px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 20px rgba(255,215,0,0.4);
    border: 3px solid rgba(255,255,255,0.5);
}

.podium-item.rank-2 .podium-avatar {
    background: linear-gradient(135deg, #E0E0E0, #BDBDBD);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.4);
}

.podium-item.rank-3 .podium-avatar {
    background: linear-gradient(135deg, #D4A574, #CD7F32);
    box-shadow: 0 4px 16px rgba(205,127,50,0.3);
    border: 2px solid rgba(255,255,255,0.4);
}

.podium-trophy {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 20px;
}

.podium-item.rank-1 .podium-trophy { font-size: 24px; top: -10px; right: -8px; }

.podium-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.podium-class {
    font-size: 11px;
    color: #999;
}

.podium-coins {
    font-size: 14px;
    font-weight: 800;
    color: #F5A623;
}

.podium-bar {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    font-weight: 800;
    color: white;
    font-size: 14px;
}

.podium-item.rank-1 .podium-bar {
    height: 72px;
    background: linear-gradient(180deg, #FFD700, #FFA500);
}

.podium-item.rank-2 .podium-bar {
    height: 52px;
    background: linear-gradient(180deg, #E0E0E0, #BDBDBD);
}

.podium-item.rank-3 .podium-bar {
    height: 40px;
    background: linear-gradient(180deg, #D4A574, #CD7F32);
}

/* ── 랭킹 리스트 (4위 이하) ── */
.ranking-list {
    padding: 0 16px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: white;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ranking-item:active {
    transform: scale(0.99);
    background: #FAFAFA;
}

.ranking-rank {
    width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: #999;
    flex-shrink: 0;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF8C2E, #FF6B1A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.ranking-class {
    font-size: 12px;
    color: #999;
    margin-top: 1px;
}

.ranking-coins {
    flex-shrink: 0;
}

/* ── 카드 히스토리 모달 ── */
.card-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.card-history-item:last-child {
    border-bottom: none;
}

.card-history-date {
    font-size: 13px;
    color: #999;
}

.card-history-detail {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-history-amount {
    font-weight: 800;
    font-size: 16px;
}

.card-history-amount.positive { color: #4CAF50; }
.card-history-amount.negative { color: #F44336; }

/* ============================================
 * 애니메이션
 * ============================================ */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -15px); }
    66% { transform: translate(-8px, 8px); }
}

@keyframes coinGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.03); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slideUp {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
 * 반응형 (PC)
 * ============================================ */
@media (min-width: 768px) {
    .student-page {
        background: #1a1a1a;
    }

    .student-page::before {
        display: none;
    }

    .student-page .app-container {
        background: linear-gradient(165deg, #FF8C2E 0%, #FF6B1A 25%, #F05A1A 50%, #E8491C 75%, #D43A1E 100%);
        box-shadow:
            0 0 80px rgba(255,107,26,0.2),
            0 20px 60px rgba(0,0,0,0.3);
        border-radius: 0;
        min-height: 100vh;
    }

    .ranking-page {
        background: #F8F9FA;
    }
}
