@charset "UTF-8"; .rank-dashboard-card { flex: 1; background: var(--card-bg, #ffffff); border-radius: var(--radius-sheet, 32px) var(--radius-sheet, 32px) 0 0; padding: 26px 20px 32px; box-shadow: var(--shadow-sheet, 0 -10px 30px rgba(0, 60, 115, 0.14)); margin-top: -18px; position: relative; z-index: 3; display: flex; flex-direction: column; gap: 16px; } .rank-dashboard-head { text-align: center; } .rank-live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 800; color: #087957; background: #e8f7f1; border: 1px solid #b2f2bb; padding: 4px 12px; border-radius: var(--radius-pill, 9999px); margin-bottom: 8px; } .rank-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b886; animation: pulseLiveDot 1.6s ease-in-out infinite; } @keyframes pulseLiveDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.55; } } .rank-dashboard-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text-strong, #111827); margin: 2px 0 6px; } .rank-dashboard-meta { font-size: 0.84rem; color: var(--text-muted, #52667a); margin: 0; } .rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .rank-row-asset { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; background: var(--option-bg, #f8fafc); border: 2px solid var(--option-border, #e5ebf2); border-radius: 20px; box-shadow: var(--shadow-option, 0 3px 10px rgba(15, 23, 42, 0.05)); transition: transform 0.18s ease, box-shadow 0.18s ease; } .rank-row-asset.is-top-1 { background: linear-gradient(90deg, #fffdf2 0%, #ffffff 100%); border-color: var(--sun-yellow, #ffd43b); box-shadow: 0 4px 16px rgba(255, 212, 59, 0.22); } .rank-row-asset.is-top-2 { background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%); border-color: #cbd5e1; } .rank-row-asset.is-top-3 { background: linear-gradient(90deg, #fff9f5 0%, #ffffff 100%); border-color: #ecc19c; } .rank-badge-asset { width: 42px; height: 42px; border-radius: var(--radius-pill, 9999px); display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 900; font-variant-numeric: tabular-nums; flex-shrink: 0; position: relative; user-select: none; } .rank-badge-asset img { width: 100%; height: 100%; display: block; object-fit: contain; } .rank-badge-asset.normal { background: #f1f5f9; color: var(--text-muted, #52667a); border: 1.5px solid #e2e8f0; font-weight: 800; } .rank-student-slot { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; flex: 1; text-align: left; } .student-meta-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .student-id-chip { display: inline-flex; align-items: center; justify-content: center; background: #e1f0ff; color: var(--primary-blue-dark, #1668b8); font-size: 0.74rem; font-weight: 800; padding: 2px 9px; border-radius: var(--radius-pill, 9999px); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; } .student-grade-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted, #52667a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .student-nickname { font-size: 1rem; font-weight: 800; color: var(--text-strong, #111827); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rank-score-slot { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; flex-shrink: 0; } .rank-score-pill { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 2px; min-width: 76px; padding: 6px 13px; border-radius: var(--radius-pill, 9999px); background: #ffffff; border: 1.5px solid #d0e5fb; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 2px rgba(34, 130, 220, 0.06); } .rank-score-number { font-size: 1.08rem; font-weight: 900; color: var(--primary-blue, #2282dc); line-height: 1; } .rank-score-unit { font-size: 0.75rem; font-weight: 700; color: var(--text-muted, #52667a); } .rank-score-pill.is-top-score { background: linear-gradient(180deg, #2b8be6 0%, #1c76ce 100%); border-color: var(--primary-blue-dark, #1668b8); box-shadow: 0 3px 10px rgba(34, 130, 220, 0.26); } .rank-score-pill.is-top-score .rank-score-number, .rank-score-pill.is-top-score .rank-score-unit { color: #ffffff; } .ranking-page .mobile-app { max-width: none; padding: 0 20px; background: linear-gradient(150deg,#c7edff,#eef9ff 65%,#d9f0ff); box-shadow: none; } .ranking-page .quiz-header { flex-direction: row; justify-content: space-between; gap: 16px; padding: 12px 0; } .ranking-page .quiz-header-title { text-align: left; font-size: 20px; } .rank-back { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; } .ranking-page main { min-height: 0; } .ranking-page .rank-dashboard-card { margin: 0 0 12px; padding: 18px 20px 12px; border-radius: 24px; box-shadow: 0 12px 40px #10588412; gap: 10px; } .ranking-page .rank-dashboard-head { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 20px; } .ranking-page .rank-dashboard-title { font-size: clamp(24px,3vw,36px); margin-bottom: 10px; } .rank-live-pill[data-state="offline"], .rank-live-pill[data-state="waiting"] { background: #f1f5f9; color: #637a90; border-color: #dbe5ed; } .rank-live-pill:not([data-state="live"]) .rank-live-dot { background: #94a3b8; animation: none; } .rank-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: #637a90; min-height: 36px; } .rank-scroll-toggle { color: #1668b8; background: #edf6ff; border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 700; flex-shrink: 0; } .rank-columns { display: grid; grid-template-columns: 64px 1fr 100px; gap: 16px; padding: 0 24px; font-size: 12px; color: #637a90; font-weight: 700; } .rank-columns span:last-child { text-align: right; } .rank-scroll-window { height: max(220px, calc(100dvh - 464px)); min-height: 220px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 6px 10px; border-radius: 18px; } .rank-scroll-window::-webkit-scrollbar { display: none; width: 0; height: 0; } .rank-scroll-window:focus-visible { outline: 3px solid #2282dc; outline-offset: 2px; } .rank-scroll-window:has(.rank-list:empty) { background: repeating-linear-gradient(180deg,#f7fbfe 0,#f7fbfe 80px,white 80px,white 92px); } .ranking-page .rank-list { gap: 12px; } .ranking-page .rank-row-asset { gap: 20px; min-height: 88px; padding: 14px 20px; } .ranking-page .rank-badge-asset { width: 52px; height: 52px; font-size: 19px; } .ranking-page .student-nickname { font-size: 20px; } .ranking-page .rank-score-pill { min-width: 96px; padding: 12px 18px; } .ranking-page .rank-score-number { font-size: 26px; } .rank-footnote { color: #7e90a2; font-size: 12px; text-align: center; margin: 0; } .ranking-page footer { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px 20px; background: transparent; border-color: #cfe5f1; padding: 8px 0 10px; font-size: 11px; } @media(max-width: 650px) { .ranking-page .mobile-app { padding: 0 14px; } .ranking-page .quiz-header { flex-wrap: wrap; padding: 16px 0; } .ranking-page .quiz-header-title { font-size: 17px; } .ranking-page .head-right { flex-wrap: wrap; } .ranking-page .rank-dashboard-card { padding: 22px 14px 16px; gap: 12px; } .ranking-page .rank-dashboard-title { font-size: 25px; } .rank-dashboard-meta { font-size: 12px; } .rank-toolbar { font-size: 11px; flex-wrap: wrap; } .rank-columns { grid-template-columns: 36px 1fr 65px; gap: 10px; padding: 0 16px; } .ranking-page .rank-row-asset { padding: 12px 10px; gap: 10px; } .ranking-page .rank-badge-asset { width: 36px; height: 36px; font-size: 15px; } .ranking-page .student-nickname { font-size: 15px; } .ranking-page .rank-score-pill { min-width: 60px; padding: 8px 10px; } .ranking-page .rank-score-number { font-size: 22px; } .rank-footnote { font-size: 10px; } } .ranking-page .mobile-app { height: 100dvh; min-height: 650px; } .ranking-page main { flex: 1; min-height: 0; } .rank-page-title { text-align: center; padding: 0 0 12px; flex-shrink: 0; } .ranking-page .rank-page-title .rank-dashboard-title { margin: 4px 0 0; font-size: clamp(28px,2.6vw,34px); } .rank-page-title .eyebrow { background: transparent; margin: 0; font-size: 11px; letter-spacing: .16em; color: #417b9f; } .ranking-page .rank-dashboard-card { min-height: 0; flex: 1; padding-top: 16px; } .ranking-page .rank-dashboard-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; } .ranking-page .rank-live-pill { margin: 0; } .ranking-page .rank-scroll-window { flex: 1; height: auto; min-height: 140px; } .ranking-page .rank-columns, .ranking-page .rank-row-asset { display: grid; grid-template-columns: 64px minmax(150px,.65fr) minmax(200px,1fr) minmax(100px,.65fr); gap: 16px; } .ranking-page .rank-columns span:nth-child(3) { text-align: center; } .ranking-page .rank-columns { padding-inline: 30px; } .ranking-page .rank-row-asset .student-grade-label { display: none; } .ranking-page .rank-row-asset .student-nickname { font-size: 17px; } .rank-nickname-slot { min-width: 0; padding: 12px 16px; border: 1px solid #dbeaf7; border-radius: 14px; background: #ffffffb3; font-size: 19px; font-weight: 800; color: #205b89; overflow-wrap: anywhere; text-align: center; } .ranking-page footer { flex-shrink: 0; } @media(max-width: 650px) { .ranking-page .mobile-app { min-height: 700px; } .rank-page-title { padding-block: 6px 18px; } .ranking-page .rank-page-title .rank-dashboard-title { font-size: 26px; } .ranking-page .rank-dashboard-card { padding-top: 18px; } .ranking-page .rank-columns, .ranking-page .rank-row-asset { grid-template-columns: 32px minmax(75px,1fr) minmax(65px,1fr) 54px; gap: 7px; } .ranking-page .rank-columns { padding-inline: 15px; } .ranking-page .rank-badge-asset { width: 32px; height: 32px; } .ranking-page .rank-row-asset .student-nickname { font-size: 12px; white-space: normal; word-break: keep-all; } .ranking-page .student-id-chip { font-size: 10px; padding: 2px 6px; } .rank-nickname-slot { font-size: 13px; padding: 9px 7px; border-radius: 10px; } .ranking-page .rank-score-pill { min-width: 50px; padding: 8px 6px; } .ranking-page .rank-score-number { font-size: 20px; } }
