/* ── Layout ── */ .page { display: flex; flex-direction: column; gap: 20px; max-width: 640px; } .loading { display: flex; justify-content: center; padding: 60px; } .spinner { width: 32px; height: 32px; border: 3px solid var(--surface-high); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; } .spinnerSm { width: 14px; height: 14px; border: 2px solid var(--surface-high); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } } .empty { color: var(--text-secondary); padding: 40px; text-align: center; } /* ── Header card ── */ .heroCard { padding: 24px; display: flex; align-items: flex-start; gap: 20px; } .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-dim); border: 2px solid rgba(75,183,248,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: var(--primary); flex-shrink: 0; } .heroInfo { flex: 1; min-width: 0; } .name { font-size: 22px; font-weight: 800; margin: 0 0 4px; } .rankBadge { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; } /* ── Team field ── */ .teamRow { margin-top: 4px; } .teamBtn { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; } .teamName { font-size: 13px; color: var(--text-secondary); font-weight: 600; } .teamEditHint { font-size: 11px; color: var(--text-muted); opacity: 0; transition: opacity 0.15s; } .teamBtn:hover .teamEditHint { opacity: 1; } .teamPlaceholder { font-size: 12px; color: var(--primary); opacity: 0.7; transition: opacity 0.15s; } .teamBtn:hover .teamPlaceholder { opacity: 1; } .teamEditRow { display: flex; align-items: center; gap: 6px; } .teamInput { background: var(--surface-high); border: 1px solid rgba(75,183,248,0.3); border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--text-primary); font-family: inherit; outline: none; width: 180px; transition: border-color 0.15s; } .teamInput:focus { border-color: var(--primary); } .teamSaveBtn, .teamCancelBtn { width: 28px; height: 28px; border-radius: 8px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: all 0.15s; } .teamSaveBtn { background: var(--primary); color: #fff; } .teamSaveBtn:hover:not(:disabled) { background: #6bc4fa; } .teamSaveBtn:disabled { opacity: 0.5; cursor: not-allowed; } .teamCancelBtn { background: var(--surface-high); color: var(--text-muted); } .teamCancelBtn:hover { color: var(--text-primary); } .teamMsg { font-size: 12px; margin-top: 4px; } .teamMsgOk { color: var(--success); } .teamMsgErr { color: var(--error); } /* ── Section title ── */ .sectionTitle { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px; } /* ── Stats ring card ── */ .ringCard { padding: 20px 24px 16px; } .accuracyRow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--surface-high); } .accuracyLabel { font-size: 13px; color: var(--text-secondary); } .accuracyVal { font-size: 24px; font-weight: 800; color: var(--text-primary); } /* ── Tip history ── */ .historyCard { padding: 20px 0 8px; overflow: hidden; } .historyCard .sectionTitle { padding: 0 20px; } .tipList { list-style: none; margin: 8px 0 0; padding: 0; max-height: 340px; overflow-y: auto; } .tipRow { display: flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 13px; min-width: 0; } .tipRowAlt { background: rgba(255,255,255,0.03); } .tipMatch { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); font-weight: 500; } .tipScore { color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; } .pointBadge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; background: var(--surface-high); color: var(--text-muted); } .badgeExact { background: linear-gradient(135deg, #FEAE32, #FFD700); color: #1a1a1a; box-shadow: 0 0 8px rgba(254,174,50,0.35); } .badgeTendency { background: rgba(34,197,94,0.22); color: #4ade80; border: 1px solid rgba(34,197,94,0.30); } .badgeWrong { background: var(--surface-high); color: var(--text-muted); border: 1px solid var(--border-subtle); } /* ── Fun stats ── */ .funStats { display: flex; flex-direction: column; gap: 12px; } .funGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } @media (max-width: 400px) { .funGrid { grid-template-columns: 1fr; } } .funCard { padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; } .funIcon { font-size: 22px; line-height: 1; } .funLabel { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; } .funValue { font-size: 13px; font-weight: 700; color: var(--text-primary); word-break: break-all; }