/* ==========================================================================
   SuperOJ Shared Reusable UI Components (v2.1)
   - Aligned Split/Multi-Column Grids & Form Controls
   - Global Hydro Native Button Beautification (Item 27)
   - Metallic Emblem Badges & Holographic Collectible Cards (Items 17, 23, 24)
   - Record Rejudge / Cancel Score Action Buttons (Item 22)
   - Built-in User Profile Activity Heatmap & Modals
   ========================================================================== */

.soj-container {
  max-width: 1256px;
  margin: 0 auto;
  padding: 6px 12px 28px;
}

/* 严格等高双栏与多栏布局，彻底消除 Foundation 浮动错位（修复 Items 16, 18, 19） */
.soj-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.soj-split-grid--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.soj-split-grid--duel {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
.soj-split-grid > .soj-card,
.soj-split-col > .soj-card:last-child {
  margin-bottom: 0;
}
.soj-split-grid > .soj-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.soj-split-grid > .soj-card > .soj-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.soj-split-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.soj-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.soj-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

@media screen and (max-width: 980px) {
  .soj-split-grid,
  .soj-split-grid--equal,
  .soj-split-grid--duel {
    grid-template-columns: minmax(0, 1fr);
  }
  .soj-grid-3,
  .soj-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  .soj-grid-3,
  .soj-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.soj-card {
  background: var(--soj-card);
  border: 1px solid var(--soj-border);
  border-radius: var(--soj-radius);
  box-shadow: var(--soj-shadow);
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--soj-body-text);
}

.soj-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 22px;
  border-bottom: 1px solid var(--soj-divider);
}

.soj-card__title {
  margin: 0 !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: var(--soj-text) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.soj-card__body {
  padding: 18px 22px;
}

/* ---------- SuperOJ Buttons ---------- */
.soj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.16s ease;
}
.soj-btn:disabled,
.soj-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.soj-btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 8px;
}
.soj-btn-p {
  background: var(--soj-primary);
  color: #ffffff !important;
  border-color: var(--soj-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}
.soj-btn-p:hover {
  background: var(--soj-primary-hover);
  border-color: var(--soj-primary-hover);
  transform: translateY(-1px);
}
.soj-btn-s {
  background: var(--soj-primary-soft);
  color: var(--soj-primary) !important;
  border-color: rgba(37, 99, 235, 0.22);
}
.soj-btn-s:hover {
  background: var(--soj-primary);
  color: #ffffff !important;
}
.soj-btn-ghost {
  background: var(--soj-elevated);
  color: var(--soj-body-text) !important;
  border-color: var(--soj-border);
}
.soj-btn-ghost:hover {
  background: var(--soj-hover);
  border-color: var(--soj-primary);
  color: var(--soj-primary) !important;
}
.soj-btn-dark {
  background: #0f172a;
  color: #ffffff !important;
  border-color: #0f172a;
}
.soj-btn-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
html.theme--dark .soj-btn-dark,
body.theme--dark .soj-btn-dark {
  background: var(--soj-primary);
  border-color: var(--soj-primary);
}
.soj-btn-success {
  background: var(--soj-green);
  color: #ffffff !important;
}
.soj-btn-success:hover {
  background: var(--soj-green-hover);
}
.soj-btn-danger {
  background: var(--soj-danger-soft);
  color: var(--soj-danger) !important;
  border-color: rgba(239, 68, 68, 0.25);
}
.soj-btn-danger:hover {
  background: var(--soj-danger);
  color: #ffffff !important;
}

/* ---------- 全站原生未美化按钮统一升级（修复 Item 27） ---------- */
.main .button,
.main a.button,
.main button.button,
.main input[type="submit"].button,
.main input[type="button"].button,
.main .tool-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border: 1px solid var(--soj-border) !important;
  background: var(--soj-elevated) !important;
  color: var(--soj-body-text) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  transition: all 0.16s ease !important;
  margin-bottom: 0 !important;
}
.main .button:hover,
.main a.button:hover,
.main .tool-button:hover {
  background: var(--soj-hover) !important;
  border-color: var(--soj-primary) !important;
  color: var(--soj-primary) !important;
  transform: translateY(-1px);
}
.main .button.primary,
.main a.button.primary,
.main button.button.primary,
.main input[type="submit"].button.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22) !important;
}
.main .button.primary:hover,
.main a.button.primary:hover,
.main button.button.primary:hover,
.main input[type="submit"].button.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  filter: brightness(1.04);
}
.main .button.alert,
.main .button.danger,
.main .button[value="delete"],
.main button[name="operation"][value*="delete"].button {
  background: var(--soj-danger-soft) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: var(--soj-danger) !important;
  box-shadow: none !important;
}
.main .button.alert:hover,
.main .button.danger:hover,
.main button[name="operation"][value*="delete"].button:hover {
  background: var(--soj-danger) !important;
  border-color: var(--soj-danger) !important;
  color: #ffffff !important;
}
.main .button.compact,
.main .tool-button {
  height: 30px !important;
  padding: 0 11px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
}

/* ---------- 评测与比赛提交列表【重测】【取消成绩】按钮化（修复 Item 22） ---------- */
.rm-tr-op-form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 8px 0 0 !important;
  vertical-align: middle !important;
}
.rm-tr-op-sep {
  display: none !important;
}
.soj-op-btn,
button.rm-tr-op-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  height: 24px !important;
  padding: 0 9px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.14s ease !important;
}
.soj-op-btn--rejudge,
button.rm-tr-op-btn[value="rejudge"] {
  background: rgba(37, 99, 235, 0.10) !important;
  border: 1px solid rgba(37, 99, 235, 0.26) !important;
  color: var(--soj-primary) !important;
}
.soj-op-btn--rejudge:hover,
button.rm-tr-op-btn[value="rejudge"]:hover {
  background: var(--soj-primary) !important;
  color: #ffffff !important;
}
.soj-op-btn--cancel,
button.rm-tr-op-btn[value="cancel"] {
  background: rgba(239, 68, 68, 0.10) !important;
  border: 1px solid rgba(239, 68, 68, 0.26) !important;
  color: var(--soj-danger) !important;
}
.soj-op-btn--cancel:hover,
button.rm-tr-op-btn[value="cancel"]:hover {
  background: var(--soj-danger) !important;
  color: #ffffff !important;
}

/* ---------- Form Controls（单行对齐标签，杜绝折行错位） ---------- */
.soj-field,
input.soj-field,
select.soj-field,
textarea.soj-field {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px !important;
  border: 1px solid var(--soj-border) !important;
  background: var(--soj-elevated) !important;
  color: var(--soj-text) !important;
  font-size: 13.5px !important;
  box-sizing: border-box;
  margin: 0 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.soj-field {
  height: auto;
  min-height: 92px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}
.soj-field:focus {
  outline: none !important;
  border-color: var(--soj-primary) !important;
  background: var(--soj-card) !important;
  box-shadow: 0 0 0 3px var(--soj-primary-soft) !important;
}
.soj-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: end;
}
.soj-form-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.soj-form-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
@media screen and (max-width: 900px) {
  .soj-form-grid--3,
  .soj-form-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 600px) {
  .soj-form-grid--3,
  .soj-form-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.soj-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.soj-label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 18px;
  color: var(--soj-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Tags, Pills & Coin Counter ---------- */
.soj-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--soj-elevated);
  color: var(--soj-muted);
  border: 1px solid var(--soj-border);
  white-space: nowrap;
}
.soj-tag.ok,
.soj-tag--green {
  background: var(--soj-green-soft);
  color: var(--soj-green);
  border-color: rgba(16, 185, 129, 0.25);
}
.soj-tag--primary {
  background: var(--soj-primary-soft);
  color: var(--soj-primary);
  border-color: rgba(37, 99, 235, 0.22);
}
.soj-tag--amber {
  background: var(--soj-amber-soft);
  color: var(--soj-amber);
  border-color: rgba(245, 158, 11, 0.25);
}
.soj-tag--purple {
  background: var(--soj-purple-soft);
  color: var(--soj-purple);
  border-color: rgba(124, 58, 237, 0.25);
}
.soj-tag--danger {
  background: var(--soj-danger-soft);
  color: var(--soj-danger);
  border-color: rgba(239, 68, 68, 0.25);
}

.soj-coin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soj-gold-soft);
  color: #b45309;
  font-weight: 800;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
html.theme--dark .soj-coin,
body.theme--dark .soj-coin {
  color: var(--soj-gold);
}
.soj-coin::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 9.5a2.5 2.5 0 0 0-5 0c0 2.5 5 2 5 4.5a2.5 2.5 0 0 1-5 0'/%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.5 9.5a2.5 2.5 0 0 0-5 0c0 2.5 5 2 5 4.5a2.5 2.5 0 0 1-5 0'/%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3C/svg%3E") no-repeat center / contain;
  font-size: 13px;
}

.soj-muted { color: var(--soj-muted); font-size: 13px; }
.soj-hint { color: var(--soj-muted); font-size: 12.5px; line-height: 1.55; }
.soj-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--soj-muted);
  font-size: 13.5px;
}

/* ---------- Progress Bar ---------- */
.soj-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--soj-header-bg);
  overflow: hidden;
}
.soj-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.35s ease;
}

/* ---------- Clean Data Table ---------- */
.soj-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.soj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.soj-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--soj-muted);
  background: var(--soj-elevated);
  border-bottom: 1px solid var(--soj-border);
  white-space: nowrap;
}
.soj-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--soj-divider);
  color: var(--soj-body-text);
  vertical-align: middle;
}
.soj-table tbody tr:hover {
  background: var(--soj-hover);
}
.soj-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Horizontal Filter Tabs ---------- */
.soj-pill-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.soj-pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soj-muted) !important;
  background: var(--soj-elevated);
  border: 1px solid var(--soj-border);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.soj-pill-tab:hover {
  color: var(--soj-primary) !important;
  border-color: var(--soj-primary);
}
.soj-pill-tab.is-active {
  background: var(--soj-primary);
  color: #ffffff !important;
  border-color: var(--soj-primary);
}

/* ---------- 炫酷金属流光荣耀纹章（Items 17 & 23，对齐参考图质感） ---------- */
.soj-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 11px 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #f8fafc !important;
  vertical-align: middle;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.soj-emblem--lg {
  height: 34px;
  padding: 0 15px 0 11px;
  font-size: 13.5px;
  border-radius: 10px;
}
.soj-emblem::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-22deg);
  animation: sojEmblemSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sojEmblemSheen {
  0%, 72%, 100% { left: -120%; }
  36% { left: 160%; }
}
.soj-emblem svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.soj-emblem--lg svg {
  width: 18px;
  height: 18px;
}
/* 5种高质感金属/星辉色板 */
.soj-emblem--storm {
  background: linear-gradient(135deg, #0f2942 0%, #0d4a6b 55%, #0284c7 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(186, 230, 253, 0.35);
}
.soj-emblem--starlight {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #312e81 100%);
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 3px 12px rgba(30, 58, 138, 0.32), inset 0 1px 0 rgba(253, 224, 71, 0.35);
}
.soj-emblem--arcane {
  background: linear-gradient(135deg, #2e1065 0%, #5b21b6 55%, #7c3aed 100%);
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.32), inset 0 1px 0 rgba(237, 233, 254, 0.35);
}
.soj-emblem--emerald {
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #0d9488 100%);
  border-color: rgba(110, 231, 183, 0.52);
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.28), inset 0 1px 0 rgba(167, 243, 208, 0.35);
}
.soj-emblem--crimson-gold {
  background: linear-gradient(135deg, #7c2d12 0%, #b45309 48%, #d97706 100%);
  border-color: rgba(253, 224, 71, 0.72);
  color: #fef9c3 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.38), inset 0 1px 0 rgba(254, 249, 195, 0.48);
}

/* 商城与背包中的纹章展示台 */
.soj-emblem-stage {
  height: 82px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 25%, rgba(59, 130, 246, 0.12), var(--soj-elevated) 75%);
  border: 1px solid var(--soj-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Legacy rarity tag compatibility */
.soj-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  vertical-align: middle;
  border: 1px solid transparent;
}
.soj-user-badge--common { background: rgba(100, 116, 139, 0.12); color: #475569; border-color: rgba(100, 116, 139, 0.25); }
.soj-user-badge--rare { background: rgba(37, 99, 235, 0.12); color: #2563eb; border-color: rgba(37, 99, 235, 0.28); }
.soj-user-badge--epic { background: rgba(124, 58, 237, 0.13); color: #7c3aed; border-color: rgba(124, 58, 237, 0.30); }
.soj-user-badge--legendary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(239, 68, 68, 0.16));
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.45);
}
html.theme--dark .soj-user-badge--legendary,
body.theme--dark .soj-user-badge--legendary { color: #fcd34d; }

/* ---------- 炫酷全息集换式算法卡（Item 24，个人主页与商城展示） ---------- */
.soj-holo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  padding: 15px 16px;
  color: #f8fafc;
  overflow: hidden;
  min-height: 208px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.soj-holo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}
.soj-holo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.10) 0%, transparent 45%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}
.soj-holo-card--common,
.soj-holo-card--titanium {
  background: linear-gradient(145deg, #1e293b 0%, #334155 55%, #0f172a 100%);
  border-color: rgba(148, 163, 184, 0.42);
}
.soj-holo-card--rare,
.soj-holo-card--oceanic {
  background: linear-gradient(145deg, #0c4a6e 0%, #1d4ed8 55%, #0f172a 100%);
  border-color: rgba(96, 165, 250, 0.52);
}
.soj-holo-card--epic,
.soj-holo-card--nebula,
.soj-holo-card--cyber {
  background: linear-gradient(145deg, #3b0764 0%, #6d28d9 52%, #1e1b4b 100%);
  border-color: rgba(192, 132, 252, 0.58);
}
.soj-holo-card--legendary,
.soj-holo-card--solar-gold {
  background: linear-gradient(145deg, #78350f 0%, #b45309 42%, #be123c 88%, #3b0764 100%);
  border-color: rgba(253, 224, 71, 0.72);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.28);
}
.soj-holo-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.soj-holo-card__foil-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.soj-holo-card__stars {
  color: #fde047;
  font-size: 12px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.soj-holo-card__art {
  position: relative;
  z-index: 1;
  margin: 12px 0 10px;
  height: 68px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.soj-holo-card__title {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.soj-holo-card__desc {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.soj-holo-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  color: rgba(248, 250, 252, 0.88);
}

/* Standard Shop / Inventory Card Container */
.soj-collect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 15px;
  background: var(--soj-card);
  border: 1px solid var(--soj-border);
  box-shadow: var(--soj-shadow-sm);
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.soj-collect-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--soj-shadow);
}
.soj-collect-card--rare { border-color: rgba(37, 99, 235, 0.30); }
.soj-collect-card--epic { border-color: rgba(124, 58, 237, 0.36); }
.soj-collect-card--legendary {
  border-color: rgba(245, 158, 11, 0.52);
  background: linear-gradient(165deg, var(--soj-card) 68%, rgba(245, 158, 11, 0.07) 100%);
}
.soj-collect-card__icon {
  font-size: 28px;
  line-height: 1;
  margin: 8px 0;
}
.soj-collect-card__stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ---------- Built-in User Profile Activity Heatmap ---------- */
.soj-heatmap-card {
  padding: 18px 26px;
  border-top: 1px solid var(--soj-divider);
}
.soj-heatmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.soj-heatmap-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--soj-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.soj-heatmap-kpis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--soj-muted);
}
.soj-heatmap-kpis strong {
  color: var(--soj-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.soj-heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.soj-heatmap-months {
  display: grid;
  grid-template-columns: repeat(53, 12px);
  gap: 3px;
  margin-bottom: 5px;
  font-size: 10.5px;
  color: var(--soj-muted);
  min-width: 792px;
}
.soj-heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 3px;
  min-width: 792px;
}
.soj-hm-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--soj-hm-0);
  transition: transform 0.1s ease;
}
.soj-hm-cell:hover {
  transform: scale(1.25);
  outline: 1.5px solid var(--soj-primary);
}
.soj-hm-cell.lv-1 { background: var(--soj-hm-1); }
.soj-hm-cell.lv-2 { background: var(--soj-hm-2); }
.soj-hm-cell.lv-3 { background: var(--soj-hm-3); }
.soj-hm-cell.lv-4 { background: var(--soj-hm-4); }

.soj-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--soj-muted);
}

/* ---------- Modal Dialog ---------- */
.soj-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
  z-index: 9990;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.soj-modal-backdrop.is-open {
  display: flex;
}
.soj-modal {
  width: 100%;
  max-width: 480px;
  background: var(--soj-card);
  border: 1px solid var(--soj-border);
  border-radius: 18px;
  box-shadow: var(--soj-shadow-lg);
  overflow: hidden;
  animation: sojModalIn 0.18s ease-out;
}
@keyframes sojModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.soj-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--soj-divider);
}
.soj-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--soj-text);
}
.soj-modal__body {
  padding: 18px 20px;
}
.soj-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--soj-divider);
  background: var(--soj-elevated);
}

/* ==================== v2.2.0 Global Enhancements ==================== */

/* 1. Auto-Dismissing Operation Toast Notifications */
.soj-toast-host {
  position: fixed;
  top: 74px;
  right: 22px;
  z-index: 10900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 390px;
}
.soj-toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 13px;
  background: var(--soj-card);
  color: var(--soj-text);
  border: 1px solid var(--soj-border);
  border-left: 4px solid var(--soj-green);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(22px) scale(0.97);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.soj-toast-item.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.soj-toast-item.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
}
.soj-toast-item--info { border-left-color: var(--soj-primary); }
.soj-toast-item--warn { border-left-color: var(--soj-amber); }
.soj-toast-item--error { border-left-color: var(--soj-danger); }
.soj-toast-item__text { flex: 1 1 auto; line-height: 1.45; }
.soj-toast-item__close {
  border: none;
  background: transparent;
  color: var(--soj-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

/* 2. Unified System & Submission Blockquote Notices */
.typo blockquote,
blockquote.note,
blockquote.warn,
blockquote.info,
.soj-sys-blockquote {
  margin: 10px 0 14px !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-left: 4px solid var(--soj-primary) !important;
  background: var(--soj-primary-soft) !important;
  color: var(--soj-body-text) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
blockquote.warn {
  border-color: rgba(245, 158, 11, 0.28) !important;
  border-left-color: var(--soj-amber) !important;
  background: var(--soj-amber-soft) !important;
}
blockquote.error,
blockquote.danger {
  border-color: rgba(239, 68, 68, 0.28) !important;
  border-left-color: var(--soj-danger) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}
.soj-sys-notice-row {
  max-width: 1220px;
  margin: 0 auto 8px !important;
  padding: 0 14px;
}

/* 3. Global User Inline Profile & Beautified Level/Mod/Emblem Badges */
.user-profile-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  vertical-align: middle;
}
.user-profile-inline .user-profile-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid var(--soj-border);
}
.user-profile-inline .user-profile-name {
  font-weight: 700;
  color: var(--soj-text);
  text-decoration: none;
  line-height: 1.3;
}
.user-profile-inline .user-profile-name:hover {
  color: var(--soj-primary);
}
.user-profile-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 19px;
  padding: 0 6px !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.02em;
  background: var(--soj-primary-soft);
  color: var(--soj-primary);
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.user-profile-badge.badge--su {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #92400e !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}
.soj-ledger-user-cell {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 9px;
  background: var(--soj-elevated);
  border: 1px solid var(--soj-divider);
}

/* 4. Compact Emblem Size (--sm) & Extended 12 Metallic Themes + DTOJ Glowing Square Tiles */
.soj-emblem--sm {
  height: 20px !important;
  padding: 0 7px !important;
  font-size: 10.5px !important;
  border-radius: 999px !important;
  gap: 3.5px !important;
  vertical-align: middle;
}
.soj-emblem--sm svg {
  width: 11px !important;
  height: 11px !important;
}

.soj-emblem--glacier {
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
  color: #e0f2fe !important;
  border: 1px solid rgba(125, 211, 252, 0.45);
}
.soj-emblem--sunset {
  background: linear-gradient(135deg, #9a3412, #ea580c, #f59e0b);
  color: #fff7ed !important;
  border: 1px solid rgba(253, 186, 116, 0.48);
}
.soj-emblem--obsidian {
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.42);
}
.soj-emblem--sakura {
  background: linear-gradient(135deg, #9d174d, #ec4899);
  color: #fdf2f8 !important;
  border: 1px solid rgba(249, 168, 212, 0.5);
}
.soj-emblem--jade {
  background: linear-gradient(135deg, #065f46, #10b981);
  color: #ecfdf5 !important;
  border: 1px solid rgba(110, 231, 183, 0.45);
}
.soj-emblem--void {
  background: linear-gradient(135deg, #2e1065, #6d28d9, #4f46e5);
  color: #ede9fe !important;
  border: 1px solid rgba(196, 181, 253, 0.48);
}
.soj-emblem--royal {
  background: linear-gradient(135deg, #78350f, #d97706, #b45309);
  color: #fef9c3 !important;
  border: 1px solid rgba(253, 224, 71, 0.58);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

/* DTOJ-style Glowing Rounded-Square Icon Tile */
.soj-emblem-tile {
  position: relative;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.42);
  background: linear-gradient(145deg, #1e3a8a, #3b82f6);
}
.soj-emblem-tile svg {
  width: 54%;
  height: 54%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}
.soj-emblem-tile__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 52%);
  z-index: 1;
}
.soj-emblem-tile--storm { background: linear-gradient(145deg, #0f172a, #0284c7, #38bdf8); }
.soj-emblem-tile--starlight { background: linear-gradient(145deg, #1e1b4b, #4338ca, #fbbf24); }
.soj-emblem-tile--arcane { background: linear-gradient(145deg, #3b0764, #7e22ce, #c084fc); }
.soj-emblem-tile--crimson-gold { background: linear-gradient(145deg, #7f1d1d, #dc2626, #f59e0b); }
.soj-emblem-tile--emerald { background: linear-gradient(145deg, #064e3b, #059669, #34d399); }
.soj-emblem-tile--glacier { background: linear-gradient(145deg, #082f49, #0369a1, #7dd3fc); }
.soj-emblem-tile--sunset { background: linear-gradient(145deg, #7c2d12, #ea580c, #fbbf24); }
.soj-emblem-tile--obsidian { background: linear-gradient(145deg, #090d16, #334155, #64748b); }
.soj-emblem-tile--sakura { background: linear-gradient(145deg, #831843, #db2777, #f472b6); }
.soj-emblem-tile--jade { background: linear-gradient(145deg, #14532d, #16a34a, #4ade80); }
.soj-emblem-tile--void { background: linear-gradient(145deg, #1e1b4b, #5b21b6, #818cf8); }
.soj-emblem-tile--royal { background: linear-gradient(145deg, #713f12, #d97706, #fde047); }

/* 5. Pseudo-3D Mouse-Tracking Scenic Holographic Cards */
.soj-holo-card[data-soj-3d-card="1"] {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  --holo-pos: 50%;
  position: relative;
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(920px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.16s ease-out, box-shadow 0.2s ease;
  will-change: transform;
  cursor: pointer;
}
.soj-holo-card[data-soj-3d-card="1"].is-tilting {
  transition: transform 0.05s linear;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.34);
}
.soj-holo-card--nebula { background: linear-gradient(145deg, #2e1065 0%, #831843 52%, #4c1d95 100%); }
.soj-holo-card--celestial { background: linear-gradient(145deg, #1e1b4b 0%, #1d4ed8 55%, #b45309 100%); }
.soj-holo-card--abyss { background: linear-gradient(145deg, #020617 0%, #083344 55%, #0284c7 100%); }

.soj-holo-card__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.soj-holo-card__foil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: color-dodge;
  background: linear-gradient(
    118deg,
    transparent 15%,
    rgba(56, 189, 248, 0.55) 32%,
    rgba(244, 114, 182, 0.55) 48%,
    rgba(250, 204, 21, 0.55) 64%,
    transparent 82%
  );
  background-size: 240% 240%;
  background-position: var(--holo-pos) var(--holo-pos);
  transition: opacity 0.2s ease;
}
.soj-holo-card.is-tilting .soj-holo-card__foil {
  opacity: 0.62;
}
.soj-holo-card__glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 62%);
  transition: opacity 0.2s ease;
}
.soj-holo-card.is-tilting .soj-holo-card__glare {
  opacity: 1;
}
.soj-holo-card__scene {
  position: relative;
  height: 92px;
  margin: 8px 0 10px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.soj-holo-scene-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.soj-holo-card__scene-badge {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 22px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

/* 6. Floating Heatmap Hover Tooltip & Modal Card */
.soj-hm-floating-tip {
  position: fixed;
  z-index: 10850;
  pointer-events: none;
  transform: translate(-50%, -100%);
  background: #0f172a;
  color: #f8fafc;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: none;
  flex-direction: column;
  white-space: nowrap;
}
.soj-hm-floating-tip.is-visible {
  display: flex;
}
.soj-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--soj-card);
  border: 1px solid var(--soj-border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--soj-shadow-lg);
}


/* ==========================================================================
   SuperOJ v2.3.0 Visual Upgrade Pack:
   1. Global File Input Beautification (Matches problem_import.html)
   2. Vector Icon Utility (.soj-vicon)
   3. 16 Rich Metallic/Gem Emblem Themes + Light Mode Shop Card Contrast
   4. 10 Vivid Scenic Holographic Card Themes (Light & Dark Mode High Contrast)
   ========================================================================== */

/* 1. 全站统一文件上传控件美化（对齐【从 Hydro 导入】清爽卡片按钮风格） */
input[type="file"] {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px !important;
  border-radius: 9px !important;
  border: 1px dashed var(--soj-border, #cbd5e1) !important;
  background: var(--soj-elevated, #f8fafc) !important;
  color: var(--soj-muted, #64748b) !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
input[type="file"]:hover {
  border-color: var(--soj-primary, #2563eb) !important;
}
.soj-import-upload-box input[type="file"] {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  padding: 6px 13px;
  margin-right: 10px;
  border-radius: 7px;
  border: 1px solid var(--soj-border, #cbd5e1);
  background: var(--soj-card, #ffffff);
  color: var(--soj-text, #0f172a);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--soj-primary-soft, #eff6ff);
  border-color: var(--soj-primary, #2563eb);
  color: var(--soj-primary, #2563eb);
}

/* 2. 全站跨平台一致性矢量小图标容器 */
.soj-vicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.12em;
  height: 1.12em;
  vertical-align: -0.16em;
  flex-shrink: 0;
}
.soj-vicon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 3. 16 种全覆盖荣耀纹章金属/宝石渐变主题（胶囊铭牌 + 立体方标同步支持） */
.soj-emblem--sm {
  height: 22px !important;
  padding: 0 8px 0 6px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
.soj-emblem--sm svg {
  width: 12.5px !important;
  height: 12.5px !important;
}

.soj-emblem--gold {
  background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #f59e0b 100%) !important;
  border-color: rgba(253, 224, 71, 0.72) !important;
  color: #fefce8 !important;
}
.soj-emblem--crimson {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 55%, #ef4444 100%) !important;
  border-color: rgba(252, 165, 165, 0.58) !important;
  color: #fef2f2 !important;
}
.soj-emblem--violet {
  background: linear-gradient(135deg, #3b0764 0%, #7c3aed 55%, #9333ea 100%) !important;
  border-color: rgba(216, 180, 254, 0.58) !important;
  color: #faf5ff !important;
}
.soj-emblem--indigo {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 55%, #6366f1 100%) !important;
  border-color: rgba(165, 180, 252, 0.55) !important;
  color: #eef2ff !important;
}
.soj-emblem--navy {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #2563eb 100%) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  color: #eff6ff !important;
}
.soj-emblem--sky {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 52%, #0ea5e9 100%) !important;
  border-color: rgba(186, 230, 253, 0.6) !important;
  color: #f0f9ff !important;
}
.soj-emblem--teal {
  background: linear-gradient(135deg, #115e59 0%, #0d9488 55%, #14b8a6 100%) !important;
  border-color: rgba(153, 246, 228, 0.58) !important;
  color: #f0fdfa !important;
}
.soj-emblem--aurora {
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 50%, #7c3aed 100%) !important;
  border-color: rgba(165, 243, 252, 0.58) !important;
  color: #ffffff !important;
}
.soj-emblem--amber {
  background: linear-gradient(135deg, #9a3412 0%, #d97706 55%, #ea580c 100%) !important;
  border-color: rgba(253, 186, 116, 0.6) !important;
  color: #fffbeb !important;
}
.soj-emblem--rose {
  background: linear-gradient(135deg, #881337 0%, #e11d48 52%, #ec4899 100%) !important;
  border-color: rgba(251, 207, 232, 0.62) !important;
  color: #fff1f2 !important;
}
.soj-emblem--cyber {
  background: linear-gradient(135deg, #083344 0%, #0891b2 48%, #7c3aed 100%) !important;
  border-color: rgba(103, 232, 249, 0.62) !important;
  color: #ecfeff !important;
}
.soj-emblem--frost {
  background: linear-gradient(135deg, #334155 0%, #475569 52%, #0284c7 100%) !important;
  border-color: rgba(226, 232, 240, 0.6) !important;
  color: #f8fafc !important;
}

.soj-emblem-tile--gold { background: linear-gradient(145deg, #78350f, #d97706, #fbbf24) !important; }
.soj-emblem-tile--crimson { background: linear-gradient(145deg, #7f1d1d, #dc2626, #f87171) !important; }
.soj-emblem-tile--violet { background: linear-gradient(145deg, #3b0764, #7c3aed, #c084fc) !important; }
.soj-emblem-tile--indigo { background: linear-gradient(145deg, #1e1b4b, #4338ca, #818cf8) !important; }
.soj-emblem-tile--navy { background: linear-gradient(145deg, #0f172a, #1d4ed8, #60a5fa) !important; }
.soj-emblem-tile--sky { background: linear-gradient(145deg, #0c4a6e, #0284c7, #38bdf8) !important; }
.soj-emblem-tile--teal { background: linear-gradient(145deg, #134e4a, #0d9488, #2dd4bf) !important; }
.soj-emblem-tile--aurora { background: linear-gradient(145deg, #0d9488, #2563eb, #9333ea) !important; }
.soj-emblem-tile--amber { background: linear-gradient(145deg, #7c2d12, #ea580c, #fbbf24) !important; }
.soj-emblem-tile--rose { background: linear-gradient(145deg, #881337, #e11d48, #f472b6) !important; }
.soj-emblem-tile--cyber { background: linear-gradient(145deg, #083344, #0891b2, #8b5cf6) !important; }
.soj-emblem-tile--frost { background: linear-gradient(145deg, #1e293b, #475569, #38bdf8) !important; }

/* 修复商城卡片在亮色主题下的文字清晰度 */
.soj-collect-card {
  color: var(--soj-text, #0f172a);
}
.soj-collect-card .soj-muted {
  color: var(--soj-muted, #475569) !important;
}

/* 4. 10 款全息典藏卡亮/暗双模式高饱和度底色与清晰排版（彻底杜绝亮色模式白底白字） */
.soj-holo-card {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 52%, #0f172a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22) !important;
}
.soj-holo-card--starlight {
  background: linear-gradient(145deg, #0f172a 0%, #312e81 50%, #5b21b6 100%) !important;
  border-color: rgba(196, 181, 253, 0.45) !important;
}
.soj-holo-card--sakura {
  background: linear-gradient(145deg, #4c0519 0%, #9d174d 52%, #db2777 100%) !important;
  border-color: rgba(251, 207, 232, 0.5) !important;
}
.soj-holo-card--dawn {
  background: linear-gradient(145deg, #1e3a8a 0%, #b45309 55%, #ea580c 100%) !important;
  border-color: rgba(253, 224, 71, 0.48) !important;
}
.soj-holo-card--oceanic {
  background: linear-gradient(145deg, #082f49 0%, #0369a1 52%, #0d9488 100%) !important;
  border-color: rgba(125, 211, 252, 0.48) !important;
}
.soj-holo-card--solar-gold,
.soj-holo-card--solar {
  background: linear-gradient(145deg, #451a03 0%, #92400e 48%, #d97706 100%) !important;
  border-color: rgba(253, 224, 71, 0.6) !important;
}
.soj-holo-card--cyber {
  background: linear-gradient(145deg, #090d1e 0%, #0e7490 48%, #6d28d9 100%) !important;
  border-color: rgba(103, 232, 249, 0.52) !important;
}
.soj-holo-card--crimson {
  background: linear-gradient(145deg, #450a0a 0%, #991b1b 50%, #c2410c 100%) !important;
  border-color: rgba(252, 165, 165, 0.52) !important;
}
.soj-holo-card--emerald {
  background: linear-gradient(145deg, #022c22 0%, #047857 52%, #059669 100%) !important;
  border-color: rgba(110, 231, 183, 0.48) !important;
}
.soj-holo-card--amethyst {
  background: linear-gradient(145deg, #2e1065 0%, #6b21a8 52%, #be185d 100%) !important;
  border-color: rgba(233, 213, 255, 0.5) !important;
}
.soj-holo-card--aurora {
  background: linear-gradient(145deg, #042f2e 0%, #1d4ed8 52%, #4f46e5 100%) !important;
  border-color: rgba(153, 246, 228, 0.5) !important;
}

.soj-holo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.soj-holo-card__foil-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.soj-holo-card__stars {
  color: #fde047 !important;
  font-size: 12px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.soj-holo-card__title {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
  margin-bottom: 4px;
}
.soj-holo-card__desc {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: rgba(248, 250, 252, 0.9) !important;
  margin-bottom: 10px;
}
.soj-holo-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px !important;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92) !important;
}
.soj-holo-card__scene {
  height: 104px !important;
  background: rgba(2, 6, 23, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
}
.soj-holo-card__scene-badge {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f8fafc !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}
