:root {
  --primary: #2B7FD6;
  --primary-light: #4A90D9;
  --primary-lighter: #7AB3E8;
  --primary-dark: #1E6BB5;
  --primary-bg: #EEF4FB;
  --bg: #F5F7FA;
  --bg-card: #FFFFFF;
  --text: #2C3E50;
  --text-secondary: #6B7C93;
  --text-muted: #A0AEC0;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --success: #38A169;
  --danger: #E53E3E;
  --warning: #D69E2E;
  --nav-height: 48px;
  --max-width: 800px;
  --header-height: 56px;
  --primary-gradient: linear-gradient(135deg, #2B7FD6, #4A90D9);
  --bg-layer: #EDF2F7;
  --font-cn: 'DolphinCN', 'Microsoft YaHei', sans-serif;
}

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

@font-face {
  font-family: 'DolphinCN';
  src: local('Microsoft YaHei');
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3400-4DBF;
}

@font-face {
  font-family: 'DolphinEN';
  src: local('-apple-system'), local('Segoe UI'), local('Roboto'), local('Helvetica Neue');
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+0020-002F, U+003A-0040, U+005B-0060, U+007B-007E;
}

@font-face {
  font-family: 'DolphinNum';
  src: local('SF Mono'), local('Cascadia Code'), local('Fira Code'), local('Consolas'), local('Menlo');
  font-display: swap;
  unicode-range: U+0030-0039, U+002E, U+002C;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DolphinCN', 'Microsoft YaHei', sans-serif;
  --font-en: 'DolphinEN', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-num: 'DolphinNum', 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-height);
  overflow-x: hidden;
}

body.nav-hidden {
  padding-top: 0;
}

.en { font-family: var(--font-en); }
.num { font-family: var(--font-num); }

a {
  color: var(--primary);
  text-decoration: none;
  transition:none;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding: 20px 0 40px;
}

main {
  padding-top: 0;
}

main {
  padding-top: 20px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-en);
  margin-bottom: 20px;
  color: var(--text);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.num {
  font-family: var(--font-num);
  font-weight: 700;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 20px;
  margin-bottom: 16px;
  transition:none;
}

.card:hover {
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-en);
  font-weight: 500;
  cursor: pointer;
  transition:none;
  text-decoration: none;
  line-height: 1.3;
}

.btn-primary {
  background: #2B7FD6;
  color: #fff;
}

.btn-primary:hover {
  background: #1E6BB5;
  color: #e0f0ff;
}

.btn-primary:active {
  background: #155799;
  color: #c0e0ff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.btn-outline:active {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-ghost:active {
  background: var(--border);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #C53030;
  color: #ffe0e0;
}

.btn-danger:active {
  background: #9B2C2C;
  color: #ffcccc;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 0.68rem;
  border-radius: 6px;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-en);
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  transition:none;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow:none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-input[type="file"] {
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-secondary);
}
.form-input[type="file"]::file-selector-button {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  margin-right: 10px;
  transition: opacity 0.2s;
}
.form-input[type="file"]::file-selector-button:hover {
  opacity: 0.85;
}

.eco-input {
  max-width: 260px !important;
}

.eco-tab.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
}
.eco-tab:hover {
  color: var(--text) !important;
}

.form-input.error {
  border-color: var(--danger);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
}

.strength-fill {
  height: 100%;
  width: 0;
  background: transparent;
  transition: width 0.2s, background 0.2s;
}

.strength-text {
  font-size: 0.75rem;
  font-family: var(--font-en);
  min-width: 28px;
  text-align: right;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-row .form-input {
  flex: 1;
}

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

.input-group .form-input {
  flex: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border-light);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-brand:hover {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-en);
  transition:none;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-link.active svg {
  stroke: var(--primary);
}

.nav-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    display: none;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link, .nav-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    justify-content: center;
  }

  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.nav-bottom {
  display: none;
}

@media (max-width: 640px) {
  .nav-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    z-index: 9998;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .nav-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    transition: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 48px;
    min-height: 40px;
  }
  .nav-bottom-link svg {
    width: 20px;
    height: 20px;
  }
  .nav-bottom-link span {
    font-size: 0.6rem;
    line-height: 1;
  }
  .nav-bottom-link:hover, .nav-bottom-link.active {
    color: var(--primary);
  }
  .nav-bottom-link.active svg {
    stroke: var(--primary);
  }

  main {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0));
  }
}

.hero {
  background: #2B7FD6;
  color: #fff;
  padding: 40px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-icon {
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-en);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 24px;
  font-family: var(--font-en);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero .btn:hover {
  background: rgba(255,255,255,0.9);
  color: #1E6BB5;
  border-color: rgba(255,255,255,0.9);
}

.hero .btn:active {
  background: #fff;
  color: #155799;
  border-color: #fff;
}

.hero .btn-primary-hero {
  background: #fff;
  color: var(--primary);
  border: none;
  box-shadow:none;
}

.hero .btn-primary-hero:hover {
  background: #f0f4ff;
  color: var(--primary-dark);
}

.hero .btn-primary-hero:active {
  background: #dce8f8;
  color: #155799;
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 32px 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition:none;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.gameplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 14px 0 0;
}
@media (max-width: 900px) {
  .gameplay-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .gameplay-grid {
    grid-template-columns: 1fr;
  }
}

.gameplay-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.gameplay-card.gameplay-score {
  border-top: 3px solid var(--primary);
}
.gameplay-card.gameplay-coin {
  border-top: 3px solid #D69E2E;
}
.gameplay-card.gameplay-vitality {
  border-top: 3px solid #38A169;
}

.gameplay-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}
.gameplay-header svg {
  flex-shrink: 0;
}
.gameplay-score .gameplay-header svg {
  color: var(--primary);
}
.gameplay-coin .gameplay-header svg {
  color: #D69E2E;
}
.gameplay-vitality .gameplay-header svg {
  color: #38A169;
}

.gameplay-name {
  font-size: 0.95rem;
  font-weight: 700;
}
.gameplay-diff {
  font-size: 0.7rem;
  display: block;
  margin-top: 1px;
}
.gameplay-score .gameplay-diff {
  color: var(--primary);
}
.gameplay-coin .gameplay-diff {
  color: #D69E2E;
}
.gameplay-vitality .gameplay-diff {
  color: #38A169;
}

.gameplay-body {
  padding: 10px 16px 14px;
}

.gameplay-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.gameplay-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gameplay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.gameplay-row .gameplay-plus {
  font-weight: 600;
  font-family: var(--font-num);
}
.gameplay-card.gameplay-score .gameplay-plus {
  color: var(--primary);
}
.gameplay-card.gameplay-coin .gameplay-plus {
  color: #D69E2E;
}
.gameplay-card.gameplay-vitality .gameplay-plus {
  color: #38A169;
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0 4px;
}
.stats-item {
  text-align: center;
  padding: 0 20px;
}
.stats-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-num);
  color: var(--text);
}
.stats-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stats-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
}

.post-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
@media (max-width: 480px) {
  .post-list-grid {
    grid-template-columns: 1fr;
  }
}
.post-card-alt {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.15s;
  min-height: 72px;
}
.post-card-alt:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(43,127,214,0.08);
}
.post-card-alt-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: auto;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-alt-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.post-card-alt-meta.post-meta-auto {
  margin-top: auto;
}
.post-card-alt-meta svg {
  vertical-align: middle;
  margin-right: 2px;
}
.post-card-alt-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
  line-height: 1.6;
}
.post-card-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-light);
  background: transparent;
  opacity: 0.6;
  transition: all 0.15s;
  min-height: 44px;
}
.post-card-more:hover {
  opacity: 1;
  border-color: var(--primary);
  border-style: solid;
  background: transparent;
}
.post-card-more span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.discuss-tabs {
  display: flex;
  gap: 4px;
  padding: 2px;
  background: var(--bg-layer);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 12px;
}
.discuss-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.discuss-tab:hover {
  color: var(--text);
  background: var(--bg-card);
}
.discuss-tab.active {
  color: var(--primary);
  background: var(--bg-card);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.discuss-tab svg {
  flex-shrink: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 4px;
}
@media (max-width: 480px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
.cert-shop-grid {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 820px) {
  .cert-shop-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .cert-shop-grid {
    grid-template-columns: 1fr;
  }
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}
.cert-shop-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.cert-shop-assets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.cert-shop-assets-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cert-shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.cert-shop-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.cert-shop-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  position: relative;
  cursor: pointer;
}
.cert-shop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.cert-shop-preview:hover img {
  transform: scale(1.05);
}
.cert-shop-preview-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .2s;
}
.cert-shop-preview:hover .cert-shop-preview-tag {
  background: var(--primary);
}
.cert-shop-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cert-shop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.cert-icon-gold { background: linear-gradient(135deg,#d4a050,#c09040); }
.cert-icon-darkgold { background: linear-gradient(135deg,#d4a020,#c49010); }
.cert-icon-blue { background: linear-gradient(135deg,#1a5a8a,#0a4a7a); }
.cert-icon-ocean { background: linear-gradient(135deg,#2a8aba,#1a6a9a); }
.cert-icon-purple { background: linear-gradient(135deg,#7a4ac9,#5a2ab0); }
.cert-icon-rose { background: linear-gradient(135deg,#e85a7a,#d44a6a); }
.cert-icon-red { background: linear-gradient(135deg,#c94a3a,#b83a2a); }
.cert-shop-meta {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cert-shop-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.cert-shop-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-shop-prices {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  min-height: 22px;
}
.cert-shop-price {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.cert-shop-price strong {
  font-weight: 700;
}
.cert-shop-action {
  margin-top: auto;
  padding-top: 10px;
}
.cert-shop-action .btn {
  width: 100%;
}
.cert-shop-owned {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  cursor: default !important;
  border-color: transparent !important;
}
.guide-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.guide-icon-blue {
  background: var(--primary-bg);
  color: var(--primary);
}
.guide-icon-gold {
  background: #FFF8E7;
  color: #D69E2E;
}
.guide-icon-green {
  background: #F0FFF4;
  color: #38A169;
}
.guide-icon-purple {
  background: #FAF5FF;
  color: #805AD5;
}
.guide-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.guide-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Cert Preview Modal ── */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  padding: 20px;
}
.cert-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cert-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 10;
}
.cert-modal-close:hover {
  background: rgba(0,0,0,0.8);
}
.cert-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 85vh;
}
.cert-modal-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  object-fit: contain;
}
.cert-modal-loading {
  padding: 40px 60px;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cert-modal-loading svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.about-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.about-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}
.about-card p:last-child {
  margin-bottom: 0;
}

.user-level-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-cn);
  background: var(--primary-gradient);
  color: #fff;
  padding: 2px 12px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 2px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(43,127,214,0.25);
}

.feature-card svg {
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-en);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-en);
}

.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow:none;
  border: 1px solid var(--border-light);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header svg {
  color: var(--primary);
  margin-bottom: 12px;
}

.auth-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.auth-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-en);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-en);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-footer a {
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  width: 100%;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  border: none;
  background: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  position: relative;
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background: #F0FFF4;
  color: #276749;
  border: 1px solid #C6F6D5;
}

.alert-danger {
  background: #FFF5F5;
  color: #9B2C2C;
  border: 1px solid #FED7D7;
}

.alert-warning {
  background: #FFFAF0;
  color: #9C4221;
  border: 1px solid #FEEBC8;
}

.alert-info {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid #BEE3F8;
}

.post-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--border-light);
  transition:none;
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--primary-lighter);
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

.post-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-waterfall {
  column-count: 2;
  column-gap: 14px;
}

.waterfall-item {
  break-inside: avoid;
  margin-bottom: 14px;
}

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

.excerpt-more {
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-en);
}

.post-content {
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text);
}

.post-content h1, .post-content h2, .post-content h3 {
  margin: 20px 0 10px;
  font-family: var(--font-en);
}

.post-content p {
  margin-bottom: 12px;
}

.post-content img {
  border-radius: 8px;
  margin: 16px 0;
}

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--primary-bg);
  border-radius: 8px;
  color: var(--text-secondary);
}

.post-two-col {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.post-sidebar {
  width: 180px;
  min-width: 180px;
  flex-shrink: 0;
}
.post-sidebar .user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.post-sidebar .user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary);
}
.post-sidebar .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-all;
}
.post-sidebar .user-level {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px;
}
.post-sidebar .user-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 4px;
}
.post-sidebar .user-stats div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.post-sidebar .user-stats .num {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--text);
}
.post-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .post-two-col {
    flex-direction: column;
  }
  .post-sidebar {
    width: 100%;
    min-width: unset;
  }
  .post-sidebar .user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
  }
  .post-sidebar .user-avatar {
    margin: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .post-sidebar .user-info-wrap {
    flex: 1;
  }
  .post-sidebar .user-stats {
    display: none;
  }
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}

.editor-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition:none;
}

.editor-toolbar button:hover {
  background: var(--border);
  color: var(--text);
}

.editor-toolbar button.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.editor-toolbar .separator {
  width: 1px;
  background: var(--border);
  margin: 4px;
}

.editor-textarea {
  width: 100%;
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-card);
  resize: vertical;
  outline: none;
  transition:none;
}

.editor-textarea:focus {
  border-color: var(--primary);
}

.editor-preview {
  padding: 16px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 200px;
  background: var(--bg-card);
  display: none;
}

.editor-preview.show {
  display: block;
}

.changelog-timeline {
  position: relative;
  padding-left: 28px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.changelog-item {
  position: relative;
  padding-bottom: 28px;
}

.changelog-item:last-child {
  padding-bottom: 0;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2B7FD6;
  border: 3px solid var(--primary-bg);
}
.changelog-item.cl-expanded::before {
  background: #FF6B9D;
  box-shadow: 0 0 0 3px rgba(255,107,157,0.15);
}

.changelog-version {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-num);
  color: var(--primary);
  margin-bottom: 4px;
}

.changelog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-en);
  margin-bottom: 8px;
}

.changelog-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.changelog-content section {
  margin-bottom: 16px;
}

.changelog-content section:last-child {
  margin-bottom: 0;
}

.changelog-content h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: var(--font-en);
}

.changelog-content ul {
  list-style: none;
  padding: 0;
}

.changelog-content li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.6;
}

.changelog-content li.cl-highlight {
  font-weight: 600;
  color: var(--text);
}

.changelog-content li.cl-highlight::before {
  background: var(--primary);
  width: 7px;
  height: 7px;
  left: 3px;
  top: 12px;
}

.cl-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-en);
  color: var(--primary);
  background: var(--primary-bg);
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.cl-tag.cl-new {
  color: #805AD5;
  background: #FAF5FF;
}

.cl-version-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
  margin: -8px 0;
  transition: none;
}
.cl-version-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cl-version-left .changelog-version {
  margin-bottom: 0;
  white-space: nowrap;
}
.cl-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: #fff;
  background: linear-gradient(135deg, #FF6B9D, #FF8DB3);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  line-height: 1.5;
  flex-shrink: 0;
}
.cl-badge-cl {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  font-family: var(--font-num);
  color: #fff;
  background: linear-gradient(135deg, #805AD5, #B794F4);
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1.5;
  flex-shrink: 0;
}
.cl-chevron {
  margin-left: auto;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.changelog-item.cl-expanded .cl-chevron {
  transform: rotate(180deg);
}
.cl-version-header .changelog-date {
  margin-bottom: 0;
  white-space: nowrap;
}

.cl-cross {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #F5F0FF, #EDE4FF);
  border: 1px solid #D6B8FF;
  border-radius: 8px;
}
.cl-cross-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: #fff;
  background: linear-gradient(135deg, #805AD5, #B794F4);
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  line-height: 1.6;
  flex-shrink: 0;
}
.cl-cross-sep {
  color: #C8B0E8;
  font-weight: 300;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cl-cross-title {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-num);
  color: #6B3FA0;
  flex-shrink: 0;
}
.cl-cross-desc {
  font-size: 0.72rem;
  color: #7C6A9E;
  line-height: 1.4;
}

.changelog-content li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-lighter);
}

.cl-section {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 4px;
  padding: 4px 10px;
  background: var(--primary-bg);
  border-radius: 6px;
  display: inline-block;
}

/* Verify page */
.verify-page {
  max-width: 520px;
}
.verify-form-card {
  padding: 16px;
}
.verify-form {
  margin: 0;
}
.verify-result {
  margin-top: 16px;
  padding: 24px;
  text-align: center;
}
.verify-result-icon {
  color: var(--success);
  margin-bottom: 8px;
}
.verify-result-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 16px;
}
.verify-result-detail {
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}
.verify-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.verify-row:last-child {
  border-bottom: none;
}
.verify-label {
  color: var(--text-secondary);
}
.verify-val {
  color: var(--text);
  font-weight: 500;
}
.verify-result-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.verify-fail {
  border-color: var(--danger) !important;
}
.cl-item {
  padding: 3px 0 3px 14px;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.6;
}
.cl-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-lighter);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:none;
}

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

.modal {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 420px;
  transition:none;
  position: relative;
}

.modal-overlay.open .modal {

}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-header svg {
  color: var(--primary);
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition:none;
}

.modal-close:hover {
  color: var(--text);
}

.modal-important {
  background: #FFFAF0;
  border: 1px solid #FEEBC8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.modal-important svg {
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-important p {
  font-size: 0.82rem;
  color: #9C4221;
  line-height: 1.5;
}

.modal-important strong {
  color: #7B341E;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-en);
}

.admin-tab {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-en);
}
.admin-tab:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--border);
}
.admin-tab.active,
.admin-tab.active:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.eco-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: var(--font-en);
}
.eco-tab:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--border);
}
.eco-tab.active,
.eco-tab.active:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Admin Certs ── */
.admin-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.admin-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}
.admin-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.cert-tabbar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}
.cert-panel {
  padding: 20px;
}
.panel-hidden {
  display: none;
}
.cert-panel-formgrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cert-panel-full {
  grid-column: 1 / -1;
}
.cert-panel-btn {
  margin-top: 16px;
}
.form-inline {
  display: contents;
}
.form-inline-delete {
  display: inline;
}
.admin-table-wrap {
  padding: 0;
  overflow-x: auto;
}
.admin-input-sm {
  width: 100px;
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
}
.admin-input-sm:focus {
  outline: none;
  border-color: var(--primary);
}
.admin-input-xs {
  width: 60px;
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  text-align: center;
  transition: border-color .2s;
}
.admin-input-xs:focus {
  outline: none;
  border-color: var(--primary);
}
.admin-input-xxs {
  width: 50px;
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  text-align: center;
  transition: border-color .2s;
}
.admin-input-xxs:focus {
  outline: none;
  border-color: var(--primary);
}
.admin-select-sm {
  padding: 4px 6px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s;
}
.admin-select-sm:focus {
  outline: none;
  border-color: var(--primary);
}
.admin-td-actions {
  display: flex;
  gap: 4px;
}
.admin-btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}
.admin-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}



.vitality-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.vitality-status.active { color: var(--success); background: #F0FFF4; }
.vitality-status.warning { color: var(--warning); background: #FFFFF0; }
.vitality-status.danger { color: var(--danger); background: #FFF5F5; }
.vitality-status.frozen { color: #805AD5; background: #FAF5FF; }

.post-blurred {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.post-blurred:hover {
  filter: blur(3px);
}

.user-group-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 10px;
  border-radius: 10px;
  vertical-align: middle;
}

.profile-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1a5fa8 60%, #0d3b6d 100%);
  opacity: .85;
}
.mat-frost .profile-hero-bg {
  opacity: .75;
}
.profile-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}
.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.profile-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.profile-hero-info {
  min-width: 0;
}
.profile-hero-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.profile-hero-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  padding: 1px 10px;
  border-radius: 10px;
}
.profile-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255,255,255,.78);
}
.profile-hero-meta svg {
  vertical-align: -2px;
}
.profile-hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.profile-hero-status {
  flex-shrink: 0;
}
.profile-hero-vitality {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
}
.profile-heart-icon {
  display: inline-flex;
}
.profile-hero-vitality.active { background: rgba(72,187,120,.3); }
.profile-hero-vitality.warning { background: rgba(237,137,54,.3); }
.profile-hero-vitality.danger { background: rgba(245,101,101,.3); }
.profile-hero-vitality.frozen { background: rgba(128,90,213,.3); }

.profile-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 6px 4px;
  margin-bottom: 20px;
}
.profile-stat-item {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  min-width: 0;
}
.profile-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-num);
  line-height: 1.3;
}
.profile-stat-value.stat-primary { color: var(--primary); }
.profile-stat-value.stat-gold { color: #D69E2E; }
.profile-stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .66rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.profile-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
  flex-shrink: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.profile-card-header svg {
  flex-shrink: 0;
}
.profile-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--font-num);
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 10px;
  padding: 0 6px;
  margin-left: auto;
}
.profile-card-body {
  padding: 16px 18px;
}
.profile-grid-main,
.profile-grid-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-vitality-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.profile-vitality-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-num);
  line-height: 1;
}
.profile-vitality-slash {
  font-size: .82rem;
  color: var(--text-muted);
  font-family: var(--font-num);
}
.profile-vitality-bonus {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-family: var(--font-num);
  color: var(--success);
  background: #F0FFF4;
  padding: 2px 9px;
  border-radius: 8px;
  border: 1px solid #BBF7D0;
  margin-left: auto;
}
.vitality-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.vitality-bar-fill {
  height: 100%;
  background: var(--success);
  border-radius: 3px;
  transition: width .4s ease;
}
.vitality-bar-fill.danger { background: var(--danger); }
.vitality-bar-fill.warning { background: var(--warning); }

.profile-vitality-log {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.profile-vitality-log-title {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.profile-vitality-log-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  padding: 4px 6px;
  border-radius: 6px;
}
.profile-vitality-log-item:nth-child(odd) {
  background: var(--bg);
}
.profile-vitality-log-amt {
  font-weight: 600;
  font-family: var(--font-num);
  width: 36px;
  flex-shrink: 0;
  text-align: right;
}
.profile-vitality-log-reason {
  flex: 1;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-vitality-log-time {
  color: var(--text-muted);
  font-family: var(--font-num);
  font-size: .66rem;
  flex-shrink: 0;
}

.profile-cert-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.profile-cert-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: border-color .15s;
  display: block;
}
.profile-cert-thumb:hover {
  border-color: var(--primary);
}
.profile-cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-cert-info {
  flex: 1;
  min-width: 0;
}
.profile-cert-name {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.profile-cert-sn {
  font-size: .72rem;
  font-family: var(--font-num);
  color: var(--text-muted);
  margin-bottom: 6px;
  word-break: break-all;
}
.profile-cert-actions {
  display: flex;
  gap: 6px;
}

.profile-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-cert-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.profile-cert-thumb-sm {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 6px;
  aspect-ratio: 16/10;
}
.profile-cert-thumb-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-cert-item-name {
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-cert-item-sn {
  font-size: .65rem;
  font-family: var(--font-num);
  color: var(--text-muted);
  margin-bottom: 6px;
  word-break: break-all;
}
.profile-cert-item-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.profile-cert-count {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.profile-invite-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px dashed var(--primary);
  flex-wrap: wrap;
}
.profile-invite-code-label {
  font-size: .7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.profile-invite-code-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-num);
  letter-spacing: 2px;
  color: var(--primary);
  flex: 1;
  min-width: 0;
}
.profile-invite-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.profile-invite-reward {
  font-size: .68rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-bg);
  color: var(--primary-dark);
}
.profile-invite-reward.gold {
  background: #FFF4E5;
  color: #C05621;
}
.profile-invite-scripts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.profile-friends-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-friend-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: background .15s;
}
.profile-friend-chip:hover {
  background: var(--primary-bg);
}
.profile-friend-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-friend-name {
  flex: 1;
  font-size: .8rem;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-friend-intimacy {
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-num);
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-mode-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-mode-info {
  flex: 1;
  min-width: 0;
}
.profile-mode-name {
  font-size: .82rem;
  font-weight: 500;
}
.profile-mode-desc {
  font-size: .72rem;
  color: var(--text-muted);
}
.profile-mode-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 0;
}
.profile-settings-hint {
  font-size: .62rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.profile-empty-sm {
  text-align: center;
  padding: 16px 0;
  color: var(--text-muted);
  font-size: .82rem;
}
.profile-empty-sm p {
  margin-bottom: 8px;
}
.profile-empty-wide {
  grid-column: 1 / -1;
  padding: 40px 0;
}

.profile-posts-section {
  margin-bottom: 32px;
}
.profile-posts-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0 2px;
}
.profile-posts-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-num);
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 11px;
  padding: 0 7px;
}

.profile-frozen-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  font-size: .82rem;
  color: #805AD5;
  font-weight: 500;
}

@media (max-width: 640px) {
  .profile-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
  }
  .profile-hero-left {
    gap: 12px;
  }
  .profile-hero-avatar {
    width: 44px;
    height: 44px;
  }
  .profile-hero-name {
    font-size: 1rem;
  }
  .profile-hero-meta {
    font-size: .72rem;
    gap: 4px;
  }
  .profile-hero-status {
    align-self: stretch;
  }
  .profile-hero-vitality {
    width: 100%;
    justify-content: center;
    padding: 6px 14px;
  }
  .profile-stats-bar {
    flex-wrap: wrap;
    padding: 8px 6px;
    gap: 2px;
  }
  .profile-stat-item {
    flex: 0 0 33.33%;
    padding: 6px 2px;
  }
  .profile-stat-divider {
    display: none;
  }
  .profile-stat-value {
    font-size: 1rem;
  }
  .profile-card-header {
    padding: 12px 14px;
    font-size: .82rem;
  }
  .profile-card-body {
    padding: 14px;
  }
  .profile-vitality-value {
    font-size: 1.6rem;
  }
  .profile-cert-thumb {
    width: 80px;
    height: 54px;
  }
  .profile-invite-code {
    padding: 8px 10px;
  }
  .profile-invite-code-val {
    font-size: .88rem;
  }
  .profile-frozen-banner {
    font-size: .76rem;
    padding: 8px 12px;
  }
  .profile-posts-header {
    font-size: .9rem;
  }
}

.admin-layout {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  min-height: calc(100vh - 180px);
}
.admin-nav {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}
.admin-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 12px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.admin-nav-link:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
.admin-nav-link.active {
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
}
.admin-nav-back {
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 12px;
}
.admin-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .admin-layout { flex-direction: column; }
  .admin-nav { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .admin-nav-title { display: none; }
  .admin-nav-link { font-size: 0.78rem; padding: 6px 10px; }
  .admin-nav-back { border-top: none; margin-top: 0; padding-top: 6px; }
}

.badge-primary {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.72rem;
}
.badge-success {
  background: #F0FFF4;
  color: #276749;
}

.badge-warning {
  background: #FFFAF0;
  color: #9C4221;
}

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transition:none;
  max-width: 90vw;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-success svg { color: var(--success); }
.toast-error svg { color: var(--danger); }
.toast-info svg { color: var(--primary); }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header .page-title {
  margin-bottom: 0;
}

.subtitle-stats {
  display: flex;
  gap: 24px;
  padding: 24px 0 8px;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-num);
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 28px 0;
  text-align: center;
  font-size: 0.82rem;
  font-family: var(--font-en);
  color: var(--text-muted);
  margin-top: 48px;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer a {
  color: var(--text-muted);
  font-weight: 500;
}
.footer a:hover {
  color: var(--primary);
}
.footer .version {
  font-family: var(--font-num);
  color: var(--primary);
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-en);
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition:none;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
  background: var(--bg);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-top-color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

.pwa-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 32px;
}
@media (max-width: 480px) {
  .pwa-faq {
    grid-template-columns: 1fr;
  }
}

.pwa-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.pwa-faq-item:hover {
  border-color: var(--primary);
}

.pwa-faq-q {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: default;
}

.pwa-faq-q svg {
  flex-shrink: 0;
  color: var(--primary);
}

.pwa-faq-a {
  padding: 0 16px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pwa-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 14px 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 150;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.pwa-prompt.show {
  display: flex;
}

.pwa-prompt p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text);
}

.pwa-prompt .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .post-card {
    padding: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-waterfall {
    column-count: 1;
  }

  .pwa-prompt {
    bottom: 52px;
  }
}

@media (max-width: 400px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: none;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.speed-mode * {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}
.speed-mode .mat-frost *,
.speed-mode.mat-frost * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mat-frost .navbar {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: rgba(226,232,240,0.3);
}
.mat-frost .nav-bottom {
  background: rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  border-top-color: rgba(226,232,240,0.3) !important;
}
.mat-frost .card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: rgba(226,232,240,0.4);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s cubic-bezier(0.22,1,0.36,1);
}
.mat-frost .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,127,214,0.08);
}
.mat-frost .modal {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  animation: matFadeUp 0.35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes matFadeUp {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mat-frost .post-card-alt,
.mat-frost .pwa-faq-item,
.mat-frost .guide-card,
.mat-frost .gameplay-card,
.mat-frost .profile-section {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: rgba(226,232,240,0.4);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), border-color 0.2s;
}
.mat-frost .post-card-alt:hover,
.mat-frost .guide-card:hover,
.mat-frost .gameplay-card:hover {
  transform: translateY(-2px);
  border-color: rgba(43,127,214,0.25);
  box-shadow: 0 8px 20px rgba(43,127,214,0.06);
}
.mat-frost .stats-bar {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-color: rgba(226,232,240,0.3);
  border-radius: 14px;
}
.mat-frost .about-card {
  background: linear-gradient(135deg, rgba(43,127,214,0.08), rgba(74,144,217,0.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(43,127,214,0.12);
}
.mat-frost .hero {
  background-size: 200% 200%;
  animation: heroShimmer 6s ease infinite;
}
@keyframes heroShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mat-frost .gameplay-card {
  border-top-width: 0;
  position: relative;
  overflow: hidden;
}
.mat-frost .gameplay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.mat-frost .gameplay-card.gameplay-score::before { background: var(--primary); }
.mat-frost .gameplay-card.gameplay-coin::before { background: #D69E2E; }
.mat-frost .gameplay-card.gameplay-vitality::before { background: #38A169; }
.mat-frost .post-card-alt {
  border-radius: 12px;
}
.mat-frost .pwa-faq-item {
  border-radius: 12px;
}
.mat-frost .fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: matFadeIn 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes matFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.mat-frost .fade-in:nth-child(1) { animation-delay: 0s; }
.mat-frost .fade-in:nth-child(2) { animation-delay: 0.06s; }
.mat-frost .fade-in:nth-child(3) { animation-delay: 0.12s; }
.mat-frost .fade-in:nth-child(4) { animation-delay: 0.18s; }
.mat-frost .fade-in:nth-child(5) { animation-delay: 0.24s; }
.mat-frost .fade-in:nth-child(6) { animation-delay: 0.3s; }
.mat-frost .fade-in:nth-child(7) { animation-delay: 0.36s; }
.mat-frost .fade-in:nth-child(8) { animation-delay: 0.42s; }
.mat-frost .fade-in:nth-child(9) { animation-delay: 0.48s; }
.mat-frost .fade-in:nth-child(10) { animation-delay: 0.54s; }
.mat-frost .btn-primary-hero {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}
.mat-frost .btn-primary-hero:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.mat-frost .modal-header {
  border-bottom-color: rgba(226,232,240,0.3);
}
.mat-frost .modal-important {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mat-frost .discuss-tab:hover {
  background: rgba(255,255,255,0.6);
  color: var(--text);
}
.mat-frost .discuss-tab.active {
  background: rgba(255,255,255,0.72);
}
