@import url("./assets/vendor/fonts/google-fonts.css");
@import url("./assets/vendor/fontawesome/css/all.min.css");
@import url("../../assets/fonts/material-symbols-outlined.css");
@import url("../../shared/styles/avatar-frame.css?v=20260428_MOBILE_AVATAR_INTERACTION");

:root {
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --spacing-main: 20px;
  --warning: #ff4a4a;
  --warning-bg: rgba(255, 74, 74, 0.12);
  --bg-body: #080b12;
  --bg-surface: rgba(16, 21, 35, 0.65);
  --bg-surface-solid: #101523;
  --bg-card-inner: rgba(0, 0, 0, 0.22);
  --bg-item: rgba(255, 255, 255, 0.06);
  --bg-item-hover: rgba(255, 255, 255, 0.1);
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.42);
  --primary-bg: rgba(0, 210, 255, 0.12);
  --secondary: #7b2cbf;
  --secondary-glow: rgba(123, 44, 191, 0.42);
  --accent-gold: #ffd75a;
  --gold-bg: rgba(255, 215, 90, 0.12);
  --success: #00e676;
  --success-bg: rgba(0, 230, 118, 0.12);
  --info: #00bcd4;
  --info-bg: rgba(0, 188, 212, 0.12);
  --orange: #ff9800;
  --orange-bg: rgba(255, 152, 0, 0.12);
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  --border-color: rgba(255, 255, 255, 0.07);
  --border-dashed: rgba(255, 255, 255, 0.22);
  --glass-border: 1px solid rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  --body-bg-gradient:
    radial-gradient(circle at 10% 40%, rgba(0, 210, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(123, 44, 191, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 215, 90, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #070910 0%, #0e121d 50%, #06080d 100%);
}

[data-theme="light"] {
  --bg-body: #f4f6f9;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-solid: #ffffff;
  --bg-card-inner: #f8f9fc;
  --bg-item: rgba(0, 0, 0, 0.045);
  --bg-item-hover: rgba(0, 0, 0, 0.08);
  --primary: #008fc2;
  --primary-glow: rgba(0, 143, 194, 0.28);
  --primary-bg: rgba(0, 143, 194, 0.1);
  --secondary: #6b21a8;
  --secondary-glow: rgba(107, 33, 168, 0.28);
  --accent-gold: #c99000;
  --gold-bg: rgba(214, 156, 0, 0.11);
  --success: #00a854;
  --success-bg: rgba(0, 168, 84, 0.1);
  --info: #008ba3;
  --info-bg: rgba(0, 139, 163, 0.1);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-dashed: rgba(0, 0, 0, 0.16);
  --glass-border: 1px solid rgba(255, 255, 255, 1);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --body-bg-gradient:
    radial-gradient(circle at 15% 50%, rgba(0, 143, 194, 0.06) 0%, transparent 48%),
    radial-gradient(circle at 85% 30%, rgba(107, 33, 168, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #f4f7fb 0%, #eef5ff 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--bg-body);
  background-image: var(--body-bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.015em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.text-cyan { color: var(--primary); }
.text-purple { color: var(--secondary); }
.text-gold { color: var(--accent-gold); }
.mt-4 { margin-top: 24px; }

.app-container {
  width: 100%;
  margin: 0 auto;
  padding: 76px var(--spacing-main) var(--spacing-main);
}

.main-grid-container {
  display: grid;
  gap: 24px;
}

.glass-panel {
  position: relative;
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.glass-panel:hover {
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.section-box {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-solid);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ui-hidden-profile,
[hidden] {
  display: none !important;
}

.profile-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.profile-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%);
}

.profile-card > * {
  position: relative;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.profile-header .avatar-container {
  --avatar-frame-size: 110px;
  --avatar-main-border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-header .avatar-container:hover {
  transform: scale(1.05);
}

.profile-header .avatar-container.is-avatar-interacting {
  transform: scale(1.05);
}

.avatar-image {
  display: block;
}
.profile-info {
  flex: 1;
  min-width: 0;
}

.nickname {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.badge-level {
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, var(--primary), var(--success));
  border-radius: 999px;
}

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.profile-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 12px 5px 5px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-main);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--token-color) 15%, transparent), transparent 62%),
    linear-gradient(135deg, var(--bg-item-hover), var(--bg-item));
  border: 1px solid color-mix(in srgb, var(--token-color) 35%, var(--border-color));
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 18px rgba(0, 0, 0, 0.12),
    0 0 18px color-mix(in srgb, var(--token-color) 14%, transparent);
}

.profile-token-id {
  --token-color: var(--primary);
}

.profile-token-title {
  --token-color: var(--accent-gold);
}

.profile-token-realm {
  --token-color: #fb7185;
}

.profile-token-gold {
  --token-color: #ffb800;
  --token-bg-glow: rgba(255, 184, 0, 0.22);
}

[data-theme="light"] .profile-token-gold {
  --token-color: #d97706;
  --token-bg-glow: rgba(217, 119, 6, 0.12);
}

.profile-token-gold {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--token-color) 20%, transparent), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.03);
  border-color: color-mix(in srgb, var(--token-color) 40%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 0 15px var(--token-bg-glow);
}

.profile-token-gold .profile-token-label {
  background: linear-gradient(135deg, #fff7ad, var(--token-color), #b48a00);
  color: #1a1a1a;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

.profile-token-label {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 20px;
  padding: 0 8px;
  place-items: center;
  font-size: 0.72rem;
  line-height: 1;
  color: #071018;
  background: linear-gradient(135deg, color-mix(in srgb, var(--token-color) 84%, #fff), var(--token-color));
  border-radius: 999px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--token-color) 24%, transparent);
}

.profile-token-gold .profile-token-label i {
  font-size: 0.85rem;
}

.profile-token-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-token-title .profile-token-value {
  color: var(--accent-gold);
}

.profile-token-realm .profile-token-value {
  color: color-mix(in srgb, var(--token-color) 34%, var(--text-main));
}

.profile-token-gold .profile-token-value {
  color: var(--accent-gold);
}

.profile-id-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.profile-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.profile-social-item {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  min-height: 30px;
  padding: 5px 12px;
  color: var(--text-muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--bg-item);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

.profile-social-item strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
}

.profile-social-item span {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

[data-theme="light"] .profile-token-label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(12, 20, 32, 0.28);
}

[data-theme="light"] .profile-token-id .profile-token-label {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .profile-token-title .profile-token-label {
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

[data-theme="light"] .profile-token-realm .profile-token-value {
  color: #881337;
}

[data-theme="light"] .profile-token-realm .profile-token-label {
  text-shadow: 0 1px 2px rgba(76, 5, 25, 0.45);
  background: linear-gradient(135deg, #e11d48, #9f1239);
  box-shadow: 0 0 10px rgba(190, 18, 60, 0.22);
}

.checkin-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
}

.checkin-main {
  display: flex;
  flex: 0 1 auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 5px 10px 5px 7px;
  color: var(--text-main);
  cursor: pointer;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-gold) 12%, transparent), transparent 62%),
    var(--bg-item);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 30%, var(--border-color));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.checkin-main:hover {
  border-color: color-mix(in srgb, var(--accent-gold) 62%, var(--border-color));
  transform: translateY(-2px);
}

.checkin-icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #2c1600;
  background: linear-gradient(135deg, #ffe28a, var(--accent-gold));
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(255, 215, 90, 0.18);
}

.checkin-icon i {
  font-size: 0.74rem;
}

.checkin-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  text-align: left;
}

.checkin-copy strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.checkin-streak {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid rgba(255, 74, 74, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 74, 74, 0.1);
  white-space: nowrap;
}

.checkin-panel.is-checked .checkin-main {
  background:
    linear-gradient(135deg, var(--success-bg), transparent 62%),
    var(--bg-item);
  border-color: color-mix(in srgb, var(--success) 40%, var(--border-color));
}

.checkin-panel.is-checked .checkin-icon {
  color: #001b0c;
  background: linear-gradient(135deg, #b9ffd8, var(--success));
  box-shadow: 0 5px 12px rgba(0, 230, 118, 0.16);
}

.profile-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
}

.profile-metric {
  min-width: 0;
  min-height: 50px;
  padding: 9px 10px;
  color: var(--text-main);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.profile-metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin-bottom: 2px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.profile-metric-value .unit {
  font-size: 0.58rem;
  font-weight: 900;
  opacity: 0.72;
}

.profile-metric-label {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exp-section {
  margin-bottom: 16px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.exp-bar-bg {
  height: 8px;
  overflow: hidden;
  background: var(--bg-item);
  border-radius: 999px;
}

.exp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 0.45s ease;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.status-tag {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-item);
  border-radius: 999px;
}

.status-tag i {
  font-size: 18px;
}

.status-tag.active {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(0, 230, 118, 0.22);
}

.status-tag.highlight {
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid rgba(255, 74, 74, 0.2);
}

.profile-achievements {
  margin-top: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-more {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.view-more:hover {
  color: var(--primary);
}

.showcase-area {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  margin-top: 16px;
  background: var(--bg-card-inner);
  border-radius: var(--radius-md);
}

.display-badge {
  text-align: center;
}

.display-badge img {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 90, 0.35));
  animation: float 4s ease-in-out infinite;
}

.badge-label {
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  background: var(--bg-item-hover);
  border-radius: 6px;
}

.recent-badges {
  display: flex;
  flex: 1;
  gap: 10px;
  justify-content: flex-end;
}

.badge-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent-gold);
  background: var(--bg-item);
  border: 1px dashed var(--border-dashed);
  border-radius: 50%;
}

.badge-slot.locked {
  color: var(--text-muted);
  opacity: 0.45;
}

.decorate-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.share-card-action {
  grid-column: 1 / -1;
}

.btn-action {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px;
  color: var(--text-main);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0;
  pointer-events: none;
}

.theme-new-badge[hidden] {
  display: none;
}

.theme-new-label {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 22px;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.34);
}

.theme-new-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #0ea5e9;
  border-radius: 999px;
  background: #fff;
  color: #0ea5e9;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.24);
}

.btn-action span {
  white-space: nowrap;
}

.btn-action:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.main-shortcuts {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.shortcut-btn {
  position: relative;
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shortcut-btn:hover {
  transform: translateY(-2px);
}

.shortcut-btn.is-login-entry-guide {
  z-index: 12;
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 5px;
  animation: login-entry-lobby-pulse 1.1s ease-in-out infinite;
}

.shortcut-btn.is-login-entry-guide::after {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: calc(var(--radius-md) + 10px);
  animation: login-entry-lobby-ring 1.1s ease-out infinite;
}

@keyframes login-entry-lobby-pulse {
  0%, 100% {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 0 0 0 rgba(142, 45, 226, 0.55), 0 4px 15px var(--secondary-glow);
  }
  50% {
    transform: translateY(-5px) scale(1.035);
    box-shadow: 0 0 0 10px rgba(142, 45, 226, 0), 0 16px 34px rgba(142, 45, 226, 0.42);
  }
}

@keyframes login-entry-lobby-ring {
  0% {
    opacity: 0.86;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.shortcut-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #00a2ff);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.shortcut-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  color: #fff;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ff4a4a, #d41414);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 74, 74, 0.36);
}

.shortcut-badge[hidden] {
  display: none;
}

.shortcut-btn.secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #4a00e0);
  box-shadow: 0 4px 15px var(--secondary-glow);
}

.grid-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  border: 0;
  background: transparent;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grid-item:hover {
  transform: scale(1.08) translateY(-4px);
  color: var(--text-main);
}

.grid-item.locked {
  cursor: not-allowed;
  opacity: 0.58;
}

.grid-item.locked:hover {
  color: var(--text-muted);
  transform: none;
}

.grid-item span:last-child {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 26px;
  border-radius: 16px;
}

.icon-wrap.warning { color: var(--orange); background: var(--orange-bg); }
.icon-wrap.info { color: var(--info); background: var(--info-bg); }
.icon-wrap.success { color: var(--success); background: var(--success-bg); }
.icon-wrap.special { color: var(--accent-gold); background: var(--gold-bg); }

.shortcut-lock {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--text-main);
  font-size: 11px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--bg-card-inner);
  border-radius: var(--radius-md);
}

.task-item.completed {
  opacity: 0.72;
}

.task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 50%;
}

.task-item.completed .task-icon { color: var(--success); background: var(--success-bg); }
.task-icon.in-progress { color: var(--primary); background: var(--primary-bg); }
.task-icon.pending { color: var(--text-muted); background: var(--bg-item); }

.task-details {
  flex: 1;
  min-width: 0;
}

.task-name {
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 800;
}

.task-reward {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.task-description {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.task-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.task-milestone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-surface-solid);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.task-milestone.completed {
  color: var(--success);
  border-color: rgba(94, 184, 124, 0.22);
  background: var(--success-bg);
}

.task-milestone.current {
  color: var(--primary);
  border-color: rgba(10, 132, 255, 0.22);
  background: var(--primary-bg);
}

.task-status {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.task-item.completed .task-status {
  color: var(--success);
}

.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.stat-card.alert {
  background: var(--warning-bg);
  border: 1px solid rgba(255, 74, 74, 0.2);
}

.stat-card.alert .stat-value {
  color: var(--warning);
}

.stat-value {
  margin-bottom: 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
}

.stat-value .unit {
  margin-left: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.72;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.settings-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.setting-info {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.setting-info i {
  width: 24px;
  color: var(--text-muted);
  text-align: center;
}

.setting-value {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}

.setting-value.success {
  color: var(--success);
}

.quick-setting-select {
  min-width: 128px;
  padding: 8px 32px 8px 12px;
  color: var(--text-main);
  cursor: pointer;
  background:
    linear-gradient(135deg, var(--bg-item-hover), var(--bg-item)),
    var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-setting-select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.setting-action-button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--primary);
  cursor: pointer;
  background: var(--primary-bg);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border-color));
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.setting-action-button:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border-color));
  transform: translateY(-1px);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--bg-item);
  border-radius: 999px;
  transition: 0.3s;
}

.slider::before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: var(--primary);
}

input:checked + .slider::before {
  background: #fff;
  transform: translateX(20px);
}

.btn-logout {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--warning);
  cursor: pointer;
  background: var(--warning-bg);
  border: 1px solid rgba(255, 74, 74, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(255, 74, 74, 0.2);
}

.bottom-spacer {
  height: 40px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10050;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  color: var(--text-main);
  pointer-events: none;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@media (max-width: 1023px) {
  .app-container {
    max-width: 600px;
  }

  .main-grid-container {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .profile-header .avatar-container {
    align-self: center;
  }

  .profile-info {
    width: 100%;
  }

  .nickname {
    justify-content: center;
  }

  .profile-meta-list {
    align-items: center;
  }

  .profile-id-social-row {
    justify-content: center;
  }

  .checkin-panel {
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .checkin-main {
    flex: 0 1 auto;
    max-width: none;
  }

  .profile-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .app-container {
    padding: 64px 14px 14px;
  }

  .profile-card {
    padding: 18px;
  }

  .profile-id-social-row {
    gap: 6px;
  }

  .profile-social-stats {
    gap: 6px;
  }

  .profile-social-item {
    min-height: 28px;
    padding: 4px 9px;
  }

  .profile-social-item strong {
    font-size: 0.86rem;
  }

  .profile-social-item span {
    font-size: 0.68rem;
  }

  .checkin-panel {
    gap: 6px;
  }

  .checkin-main,
  .checkin-streak {
    min-height: 34px;
  }

  .checkin-main {
    padding: 5px 8px 5px 6px;
  }

  .checkin-icon {
    width: 22px;
    height: 22px;
  }

  .checkin-copy strong {
    font-size: 0.8rem;
  }

  .checkin-streak {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .profile-metrics-strip {
    gap: 7px;
  }

  .profile-metric {
    min-height: 46px;
    padding: 8px;
    border-radius: 12px;
  }

  .profile-metric-value {
    font-size: 1.04rem;
  }

  .profile-metric-label {
    font-size: 0.64rem;
  }

  .main-shortcuts {
    flex-direction: column;
  }

  .grid-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }

  .decorate-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .app-container {
    max-width: 1200px;
    padding-top: 84px;
  }

  .main-grid-container {
    grid-template-areas:
      "profile profile"
      "shortcuts settings"
      "tasks settings";
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  #section-profile { grid-area: profile; }
  #section-shortcuts { grid-area: shortcuts; }
  #section-tasks { grid-area: tasks; }
  #section-settings { grid-area: settings; }

  .profile-card {
    display: grid;
    grid-template-areas:
      "header achieve"
      "checkin achieve"
      "metrics achieve"
      "exp achieve"
      "actions actions";
    grid-template-columns: 1fr auto;
    gap: 0;
    align-items: start;
    padding: 48px;
  }

  .profile-main-info {
    display: contents;
  }

  .profile-header {
    grid-area: header;
    gap: 40px;
    padding-right: 48px;
    margin-bottom: 32px;
  }

  .profile-header .avatar-container {
    --avatar-frame-size: 210px;
  }

  .nickname {
    margin-bottom: 16px;
    font-size: 2.8rem;
  }

  .badge-level {
    padding: 6px 16px;
    font-size: 1.1rem;
  }

  .profile-meta-list {
    gap: 10px;
  }

  .profile-token {
    min-height: 38px;
    padding: 7px 16px 7px 7px;
    font-size: 1.02rem;
  }

  .profile-token-label {
    min-width: 46px;
    min-height: 26px;
    font-size: 0.86rem;
  }

  .profile-social-item {
    min-height: 34px;
    padding: 6px 14px;
  }

  .profile-social-item strong {
    font-size: 1.05rem;
  }

  .profile-social-item span {
    font-size: 0.82rem;
  }

  .exp-section {
    grid-area: exp;
    padding-right: 48px;
    margin-bottom: 24px;
  }

  .checkin-panel {
    grid-area: checkin;
    padding-right: 48px;
    margin-bottom: 14px;
  }

  .profile-metrics-strip {
    grid-area: metrics;
    padding-right: 48px;
    margin-bottom: 18px;
  }

  .profile-metric {
    min-height: 58px;
    padding: 10px 8px;
  }

  .profile-metric-value {
    font-size: 1.24rem;
  }

  .profile-metric-label {
    font-size: 0.7rem;
  }

  .profile-achievements {
    grid-area: achieve;
    min-width: 320px;
    height: 100%;
    padding-left: 48px;
    margin-top: 0;
    border-left: 1px dashed var(--border-dashed);
  }

  .profile-achievements .showcase-area {
    gap: 20px;
    padding: 24px;
    margin-top: 24px;
    background: var(--bg-item);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
  }

  .decorate-actions {
    grid-area: actions;
    display: flex;
    gap: 18px;
    width: 100%;
    padding-top: 32px;
    border-top: 1px dashed var(--border-dashed);
  }

  .btn-action {
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    min-height: 60px;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 800;
  }
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.guide-overlay::before {
  display: none;
}

.guide-spotlight {
  display: none;
}

.guide-tooltip {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  top: auto !important;
  right: auto !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  width: min(520px, calc(100vw - 32px));
  max-height: min(52dvh, 420px);
  padding: 22px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  animation: fadeInTooltip 0.32s ease forwards;
  transform: translateX(-50%) !important;
  transition: width 0.3s ease, max-height 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
}

.profile-guide-flash-target {
  position: relative;
  z-index: 20;
  animation: profile-guide-area-pulse 1.15s ease-in-out infinite;
}

.profile-guide-flash-target::after {
  position: absolute;
  inset: -8px;
  z-index: 5;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(142, 45, 226, 0.22), rgba(0, 194, 255, 0.16));
  border-radius: inherit;
  box-shadow:
    0 0 0 8px rgba(142, 45, 226, 0.08),
    0 18px 42px rgba(0, 194, 255, 0.22);
  opacity: 0.85;
  animation: profile-guide-area-wash 1.15s ease-in-out infinite;
}

.profile-guide-flash-target > * {
  position: relative;
  z-index: 6;
}

@keyframes profile-guide-area-pulse {
  0%, 100% {
    filter: brightness(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.08);
    transform: translateY(-2px);
  }
}

@keyframes profile-guide-area-wash {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.99);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.015);
  }
}

.guide-tooltip.is-welcome {
  bottom: 50% !important;
  width: min(560px, calc(100vw - 32px));
  max-height: min(72dvh, 520px);
  padding: 34px 30px;
  text-align: center;
  transform: translate(-50%, 50%) !important;
}

.guide-tooltip.is-welcome #guide-title {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 6vw, 2.2rem);
}

.guide-tooltip.is-welcome #guide-desc {
  margin-bottom: 32px;
  font-size: 1.15rem;
  opacity: 0.82;
}

.guide-tooltip.is-welcome .guide-footer {
  justify-content: center;
  gap: 20px;
}

@keyframes fadeInTooltip {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guide-kicker {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#guide-title {
  margin-bottom: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
}

#guide-desc {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.9;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.btn-guide-next {
  padding: 8px 20px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: var(--primary);
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-guide-skip {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
}

.btn-guide-skip:hover {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .guide-tooltip {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 20px);
    max-height: min(50dvh, 390px);
    padding: 18px;
    border-radius: 22px;
  }

  .guide-tooltip.is-welcome {
    bottom: 50% !important;
    width: calc(100vw - 24px);
    max-height: min(78dvh, 520px);
    padding: 28px 22px;
  }

  .guide-tooltip.is-welcome #guide-desc,
  #guide-desc {
    font-size: 0.95rem;
  }

  .guide-footer {
    position: sticky;
    bottom: -18px;
    margin: 0 -18px -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg-surface-solid) 28%);
  }

  .btn-guide-next,
  .btn-guide-skip {
    min-height: 40px;
  }
}

/* --- 签到日历弹窗样式 --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.logout-modal-content {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 24px 24px;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  transform: scale(0.92) translateY(18px);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .logout-modal-content {
  transform: scale(1) translateY(0);
}

.logout-modal-content::before {
  position: absolute;
  top: -72px;
  right: -72px;
  width: 180px;
  height: 180px;
  content: "";
  background: radial-gradient(circle, rgba(255, 74, 74, 0.2), transparent 68%);
  pointer-events: none;
}

.logout-modal-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--warning);
  place-items: center;
  background: var(--warning-bg);
  border: 1px solid rgba(255, 74, 74, 0.24);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(255, 74, 74, 0.13);
}

.logout-modal-icon i {
  font-size: 1.55rem;
}

.logout-modal-title {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 900;
  color: var(--text-main);
}

.logout-modal-desc {
  max-width: 330px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.logout-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.logout-modal-actions button {
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.logout-modal-actions button:active {
  transform: scale(0.98);
}

.logout-modal-cancel {
  color: var(--text-main);
  background: var(--bg-item);
  border: 1px solid var(--border-color);
}

.logout-modal-cancel:hover {
  background: var(--bg-item-hover);
}

.logout-modal-confirm {
  color: #fff;
  background: linear-gradient(135deg, #ff4a4a, #ef4444);
  border: 1px solid rgba(255, 74, 74, 0.45);
  box-shadow: 0 14px 28px rgba(255, 74, 74, 0.2);
}

.logout-modal-confirm:hover {
  box-shadow: 0 18px 34px rgba(255, 74, 74, 0.28);
}

.checkin-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .checkin-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-item);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
  background: var(--bg-item-hover);
  transform: rotate(90deg);
}

.checkin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-streak-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 12px;
  margin-top: 10px;
  width: fit-content;
  background: var(--warning-bg);
  border: 1px solid rgba(255, 74, 74, 0.2);
  border-radius: 999px;
  color: var(--warning);
}

.modal-streak-info i {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 5px var(--warning));
}

.modal-streak-info span {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.checkin-calendar-container {
  margin-bottom: 20px;
  background: var(--bg-card-inner);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.calendar-weekdays span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.checkin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-item);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: default;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

.calendar-day.is-checked {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 4px 10px var(--primary-glow);
  transform: scale(0.95);
}

.calendar-day.is-checked::after {
  content: "✓";
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.55rem;
  font-weight: 900;
  opacity: 0.9;
}

.calendar-day.is-today {
  border-color: var(--primary);
  border-width: 2px;
  color: var(--primary);
  font-weight: 900;
}

.calendar-day.is-reward {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.calendar-day.is-reward .reward-mark {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c1600;
  font-size: 0.45rem;
  box-shadow: 0 0 8px var(--gold-bg);
  z-index: 2;
}

.checkin-status-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.checked {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.status-dot.reward {
  background: var(--accent-gold);
}

.modal-bg-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.modal-streak-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 74, 74, 0.1);
  border: 1px solid rgba(255, 74, 74, 0.3);
  border-radius: 999px;
  color: #ff4a4a;
  box-shadow: 0 4px 12px rgba(255, 74, 74, 0.15);
}

.streak-fire-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.streak-fire-wrap i {
  font-size: 1.1rem;
  z-index: 1;
  filter: drop-shadow(0 0 5px #ff4a4a);
}

.fire-glow {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ff4a4a;
  filter: blur(10px);
  opacity: 0.6;
  animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

/* 按钮优化 */
.btn-checkin-confirm {
  position: relative;
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-checkin-confirm:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-checkin-confirm:hover .btn-shine {
  left: 150%;
  transition: 0.8s;
}

/* 成功覆盖层样式 */
.checkin-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 50% 22%, rgba(0, 210, 255, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(8, 14, 28, 0.97), rgba(19, 24, 44, 0.97));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
}

.checkin-success-overlay.show {
  opacity: 1;
  visibility: visible;
}

.checkin-success-content {
  transform: translateY(30px);
  opacity: 1;
  width: min(320px, 100%);
  text-align: center;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.1s;
}

.checkin-success-overlay.show .checkin-success-content {
  transform: translateY(0);
}

.success-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-wrap i {
  font-size: 4rem;
  color: var(--primary);
  z-index: 1;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.checkin-success-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.3;
  animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}

.checkin-success-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, #7fe8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checkin-success-reward-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold-bg);
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--gold-bg);
}

.checkin-success-desc {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  margin-bottom: 32px;
}

.checkin-success-desc span {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 4px;
}

.checkin-success-close {
  width: 160px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
}

.checkin-success-close:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--primary);
  color: var(--primary);
}

/* 日历格子入场动画 */
@keyframes day-fade-in {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.calendar-day {
  animation: day-fade-in 0.4s ease forwards;
  opacity: 0;
}

/* 动态生成各格子的延迟 (1-42格) */
.calendar-day:nth-child(1) { animation-delay: 0.02s; }
.calendar-day:nth-child(2) { animation-delay: 0.04s; }
.calendar-day:nth-child(3) { animation-delay: 0.06s; }
.calendar-day:nth-child(4) { animation-delay: 0.08s; }
.calendar-day:nth-child(5) { animation-delay: 0.10s; }
.calendar-day:nth-child(6) { animation-delay: 0.12s; }
.calendar-day:nth-child(7) { animation-delay: 0.14s; }
.calendar-day:nth-child(8) { animation-delay: 0.16s; }
.calendar-day:nth-child(9) { animation-delay: 0.18s; }
.calendar-day:nth-child(10) { animation-delay: 0.20s; }
.calendar-day:nth-child(11) { animation-delay: 0.22s; }
.calendar-day:nth-child(12) { animation-delay: 0.24s; }
.calendar-day:nth-child(13) { animation-delay: 0.26s; }
.calendar-day:nth-child(14) { animation-delay: 0.28s; }
.calendar-day:nth-child(15) { animation-delay: 0.30s; }
.calendar-day:nth-child(16) { animation-delay: 0.32s; }
.calendar-day:nth-child(17) { animation-delay: 0.34s; }
.calendar-day:nth-child(18) { animation-delay: 0.36s; }
.calendar-day:nth-child(19) { animation-delay: 0.38s; }
.calendar-day:nth-child(20) { animation-delay: 0.40s; }
.calendar-day:nth-child(21) { animation-delay: 0.42s; }
.calendar-day:nth-child(22) { animation-delay: 0.44s; }
.calendar-day:nth-child(23) { animation-delay: 0.46s; }
.calendar-day:nth-child(24) { animation-delay: 0.48s; }
.calendar-day:nth-child(25) { animation-delay: 0.50s; }
.calendar-day:nth-child(26) { animation-delay: 0.52s; }
.calendar-day:nth-child(27) { animation-delay: 0.54s; }
.calendar-day:nth-child(28) { animation-delay: 0.56s; }
.calendar-day:nth-child(29) { animation-delay: 0.58s; }
.calendar-day:nth-child(30) { animation-delay: 0.60s; }
.calendar-day:nth-child(31) { animation-delay: 0.62s; }

/* 响应式调整 */
@media (max-width: 768px) {
  .checkin-panel {
    width: 100%;
    gap: 12px;
  }

  .profile-token-gold {
    width: 100% !important;
    display: flex !important;
    max-width: none !important;
    margin-top: 4px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .logout-modal-content {
    max-width: calc(100% - 24px);
    padding: 28px 18px 20px;
  }

  .logout-modal-actions {
    grid-template-columns: 1fr;
  }

  .checkin-modal-content {
    max-width: calc(100% - 32px);
    margin: 16px;
    padding: 24px 20px;
  }
}

/* --- 新手 7 天活动样式 --- */
.newbie-entry-wrapper {
  display: inline-flex;
  position: relative;
  z-index: 100;
}

.newbie-desktop {
  margin-left: 16px;
}

.newbie-7day-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(123, 44, 191, 0.5),
    0 0 40px rgba(0, 210, 255, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  animation: entrance-float 3s ease-in-out infinite;
  overflow: hidden;
  z-index: 1;
  border: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.newbie-mobile {
  display: none;
}

.newbie-7day-entry::before {
  content: '';
  position: absolute;
  top: -200%;
  left: -200%;
  width: 500%;
  height: 500%;
  background: conic-gradient(
    transparent,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent
  );
  animation: rotate-border 4s linear infinite;
  z-index: -2;
  pointer-events: none;
}

.newbie-7day-entry::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, #7b2cbf, #00d2ff, #7b2cbf);
  background-size: 200% auto;
  border-radius: 999px;
  z-index: -1;
  animation: shine-gradient 4s linear infinite;
}

@keyframes rotate-border {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shine-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes entrance-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes entrance-float-mobile {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 5px)); }
}

.newbie-7day-entry i {
  font-size: 0.85rem;
}

.newbie-modal-content {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  padding: 32px 24px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 28px;
  text-align: center;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* 隐藏自定义滚动条但保持可滚动 */
.newbie-modal-content::-webkit-scrollbar {
  width: 4px;
}
.newbie-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.newbie-modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.15) 0%, transparent 50%);
  z-index: -1;
}

.newbie-modal-bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.newbie-header {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.newbie-title {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 2.8rem;
  font-weight: 950;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 20%, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.4));
  letter-spacing: 3px;
  text-transform: uppercase;
}

.newbie-subtitle {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.8;
}

.newbie-days-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
  margin-bottom: 24px;
}

.day-card {
  position: relative;
  padding: 16px 10px;
  --card-accent: rgba(255, 255, 255, 0.32);
  --card-glow: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 30%, var(--card-glow) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--card-accent);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
  min-height: 180px;
}

/* 奖励层级颜色只由 data-tier 控制，避免 nth-of-type 和内联样式抢权 */
.day-card[data-tier="basic"] {
  --card-accent: rgba(255, 215, 90, 0.2);
  --card-glow: rgba(255, 215, 90, 0.14);
}

.day-card[data-tier="milestone"] {
  --card-accent: rgba(255, 82, 178, 0.46);
  --card-glow: rgba(255, 82, 178, 0.2);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 82, 178, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 82, 178, 0.13), rgba(255, 255, 255, 0.025));
}

.day-card[data-tier="rare"] {
  --card-accent: rgba(0, 210, 255, 0.42);
  --card-glow: rgba(0, 210, 255, 0.2);
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 210, 255, 0.2) 0%, transparent 58%),
    linear-gradient(180deg, rgba(0, 210, 255, 0.12), rgba(255, 255, 255, 0.025));
}

.day-card[data-tier="epic"] {
  --card-accent: rgba(123, 44, 191, 0.5);
  --card-glow: rgba(123, 44, 191, 0.24);
  background:
    radial-gradient(circle at 50% 30%, rgba(123, 44, 191, 0.26) 0%, transparent 58%),
    linear-gradient(180deg, rgba(123, 44, 191, 0.16), rgba(255, 255, 255, 0.025));
}

.day-card[data-tier="legendary"] {
  --card-accent: rgba(255, 215, 90, 0.72);
  --card-glow: rgba(255, 215, 90, 0.28);
  grid-column: span 2;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 215, 90, 0.26) 0%, transparent 45%),
    radial-gradient(circle at 14% 10%, rgba(255, 82, 178, 0.18) 0%, transparent 46%),
    linear-gradient(135deg, rgba(255, 179, 64, 0.18), rgba(0, 210, 255, 0.12) 42%, rgba(123, 44, 191, 0.2));
  border-width: 1.5px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(255, 215, 90, 0.18);
}

.day-card[data-tier="legendary"] .day-label::after {
  content: 'LEGENDARY';
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffe98a, #fff6c7, #ffc247);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 215, 90, 0.55));
}

.day-card.type-skin {
  grid-column: span 2;
}

@keyframes slide-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.day-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

/* 头部样式 */
.day-card .day-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 8px;
}

.day-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.day-card.active .day-label {
  color: #fff;
  opacity: 1;
  text-shadow: 0 0 10px var(--primary);
}

.day-card.big-day .day-label {
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 950;
}

.day-card .check-mark-inline {
  color: var(--success);
  font-size: 0.9rem;
}

/* 内容区域 */
.day-card .reward-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.reward-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: float-reward 3s ease-in-out infinite;
}

/* 奖励图标背光系统 */
.reward-icon-wrap::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--card-glow, var(--accent-gold)) 0%, transparent 70%);
  opacity: 0.55;
  filter: blur(15px);
  z-index: -1;
}

/* 传说级图标增强 */
.day-card.big-day .reward-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: rotate-border 4s linear infinite;
  border-radius: 50%;
  filter: blur(5px);
}

@keyframes float-reward {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.reward-icon-wrap .icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--card-glow, var(--accent-gold)) 0%, transparent 70%);
  opacity: 0.45;
  filter: blur(15px);
  z-index: -1;
  transition: all 0.5s ease;
}

.reward-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.reward-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.reward-tag.gold { color: #ffd700; border-color: rgba(255, 215, 0, 0.2); }
.reward-tag.exp { color: #00d2ff; border-color: rgba(0, 210, 255, 0.2); }
.reward-tag.skin {
  max-width: 100%;
  color: #ff00ff;
  border-color: rgba(255, 0, 255, 0.3);
  background: rgba(255, 0, 255, 0.05);
  animation: tag-glow 2s infinite alternate;
  justify-content: center;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

@keyframes tag-glow {
  from { box-shadow: 0 0 5px rgba(255, 0, 255, 0.2); }
  to { box-shadow: 0 0 12px rgba(255, 0, 255, 0.4); }
}

/* 状态样式 */
/* 锁定状态只提示未解锁，不再压灰整张卡片颜色 */
.day-card.locked {
  filter: none;
  opacity: 1;
}

.day-card.locked .reward-icon-wrap,
.day-card.locked .reward-tag {
  opacity: 0.66;
}

.day-card.locked .day-header::after {
  content: '\f023';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.36);
}

/* 已领取状态的成就感 */
.day-card.claimed {
  opacity: 0.9;
  border-color: rgba(0, 230, 118, 0.56);
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 230, 118, 0.16) 0%, transparent 58%),
    linear-gradient(180deg, rgba(0, 230, 118, 0.1), rgba(255, 255, 255, 0.025));
}

.day-card.claimed .reward-icon-wrap {
  opacity: 0.74;
  color: #d7ffe8;
  filter: drop-shadow(0 0 14px rgba(0, 230, 118, 0.22));
  animation: none;
}

.day-card.available {
  border-color: rgba(0, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 210, 255, 0.1));
  cursor: pointer;
  transform: translateY(-12px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 210, 255, 0.2);
}

.day-card.available::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shine-border 3s linear infinite;
}

@keyframes shine-border {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.day-card.available .day-label {
  color: var(--primary);
}

.day-card.available .icon-glow {
  opacity: 0.5;
  animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* 已领取蒙层 */
.claimed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: grayscale(1) blur(2px);
}

.claimed-overlay span {
  padding: 6px 16px;
  background: var(--success);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  border-radius: 99px;
  transform: rotate(-15deg);
  box-shadow: 0 4px 15px rgba(0, 200, 0, 0.4);
}

/* 可领取角标 */
.available-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 0 0 0 12px;
  animation: badge-shine 2s infinite;
}

@keyframes badge-shine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

/* 第七天终极奖励 */
.day-card.big-day {
  grid-column: span 2;
}

.day-card.big-day .reward-icon-wrap {
  width: 80px;
  height: 80px;
  font-size: 3.2rem;
  color: #fff;
  text-shadow: 0 0 20px var(--secondary);
  filter: drop-shadow(0 0 20px rgba(123, 44, 191, 0.6));
}

.btn-newbie-claim {
  position: relative;
  width: 280px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-newbie-claim.disabled {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

.btn-newbie-claim .btn-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-30deg);
  animation: btn-shine-loop 4s infinite;
}

.newbie-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@keyframes btn-shine-loop {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.btn-newbie-claim:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--secondary-glow);
}

.btn-newbie-claim:disabled {
  background: var(--bg-item);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.newbie-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.7;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-name-area {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* 响应式适配 - 提升断点到 1024px 以覆盖平板和紧凑型窗口 */
@media (max-width: 1024px) {
  .newbie-days-grid {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
  }

  .profile-name-area {
    display: block;
    text-align: center;
    padding-bottom: 4px;
  }

  .nickname {
    justify-content: center;
    padding: 0 20px;
  }

  .newbie-desktop {
    display: none !important;
  }

  .newbie-mobile {
    display: inline-flex !important;
    position: fixed;
    top: 65%;
    right: 0;
    z-index: 10000;
    animation: entrance-float-mobile 3s ease-in-out infinite;
  }

  .newbie-mobile .newbie-7day-entry {
    padding: 10px 20px 10px 14px;
    font-size: 0.8rem;
    border-radius: 30px 0 0 30px;
    box-shadow: -10px 0 30px rgba(123, 44, 191, 0.5);
    background: linear-gradient(135deg, #7b2cbf, #00d2ff);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
  }

  .newbie-days-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 10px max(4px, calc((100% - 180px) / 2)) 20px;
    margin-bottom: 10px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(4px, calc((100% - 180px) / 2));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* 隐藏滚动条 */
  }

  .newbie-days-grid::-webkit-scrollbar {
    display: none;
  }

  .newbie-title {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }

  .newbie-subtitle {
    font-size: 0.75rem;
    margin-bottom: 15px;
  }

  .newbie-modal-content {
    padding: 24px 16px;
    width: 94%;
    max-height: 85vh;
    border-radius: 24px;
  }

  /* 轮播卡片样式 */
  .day-card {
    flex: 0 0 130px; /* 固定宽度 */
    flex-direction: column;
    padding: 16px 10px;
    gap: 10px;
    scroll-snap-align: center;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.05);
  }

  .day-card .day-header {
    width: 100%;
    margin-bottom: 8px;
    justify-content: center;
  }

  .day-card .day-label {
    font-size: 0.65rem;
  }

  .day-card .reward-content {
    flex-direction: column;
    gap: 10px;
  }

  .reward-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .reward-details {
    flex-direction: column;
    gap: 4px;
  }

  .reward-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .day-card.type-skin {
    flex: 0 0 180px;
  }

  .day-card.available .day-header {
    padding-top: 16px;
  }

  .available-badge {
    left: 50%;
    right: auto;
    max-width: calc(100% - 18px);
    border-radius: 0 0 10px 10px;
    line-height: 1.05;
    text-align: center;
    transform: translateX(-50%);
    white-space: normal;
  }

  /* 第七天在轮播模式下 */
  .day-card.big-day {
    flex: 0 0 180px;
  }

  .btn-newbie-claim {
    width: 180px;
    height: 44px;
    font-size: 1rem;
    margin-top: 5px;
  }

  .newbie-tip {
    font-size: 0.7rem;
    line-height: 1.4;
    opacity: 0.7;
    margin-top: 8px;
  }
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .newbie-mobile {
  display: none !important;
}

/* --- 领取成功庆典系统 --- */
.newbie-success-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease;
}

.newbie-success-popup.show {
  display: flex;
}

.success-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
  filter: blur(50px);
  animation: rotate-glow 10s linear infinite;
}

.success-content {
  position: relative;
  width: 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 40px;
  text-align: center;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.newbie-success-popup.show .success-content {
  transform: scale(1);
  opacity: 1;
}

.celebration-icon {
  position: relative;
  font-size: 5rem;
  color: #ffcc00;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.5));
}

.icon-burst {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, #ffcc00 0%, transparent 70%);
  opacity: 0.2;
  animation: pulse-burst 2s infinite;
}

.success-title {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 950;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.success-reward-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.success-reward-item {
  position: relative;
  width: 140px;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.item-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.success-reward-item i {
  font-size: 2.4rem;
  color: #ffcc00;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.4));
}

.reward-value {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.reward-type-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.btn-success-close {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #00d2ff, #7b2cbf);
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: "Orbitron", "Inter", sans-serif;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(0, 210, 255, 0.4);
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-burst {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0.2; }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
