@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Quicksand:wght@400;500;700&display=swap');

:root {
  --ffxiv-pink-1: #fff4fb;
  --ffxiv-pink-2: #ffe3f3;
  --ffxiv-pink-3: #ffd0ea;
  --ffxiv-pink-4: #f7b3db;
  --ffxiv-pink-5: #e78bc0;
  --ffxiv-pink-6: #cc6ca4;
  --ffxiv-lavender: #ecdfff;
  --ffxiv-white: rgba(255, 255, 255, 0.74);
  --ffxiv-border: rgba(231, 139, 192, 0.45);
  --ffxiv-shadow: 0 10px 30px rgba(209, 126, 171, 0.18);
  --ffxiv-text: #7b4b67;
  --ffxiv-text-soft: #9a6a86;
}

.ffxiv-ach-page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: var(--ffxiv-text);
  font-family: 'Quicksand', sans-serif;
}

.ffxiv-ach-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(255, 220, 240, 0.85), transparent 30%),
    radial-gradient(circle at top right, rgba(236, 223, 255, 0.85), transparent 30%),
    linear-gradient(180deg, #fff7fc 0%, #fff0f8 45%, #fff9fd 100%);
}

.ffxiv-ach-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image: radial-gradient(rgba(255,255,255,0.95) 1px, transparent 1px);
  background-size: 22px 22px;
}

.ffxiv-bg-icons {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-icon {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.18;
  animation: floaty 7s ease-in-out infinite;
}

.bg-icon.pom { top: 1rem; left: 6%; font-size: 2rem; }
.bg-icon.star { top: 7rem; right: 10%; }
.bg-icon.heart { top: 18rem; left: 8%; }
.bg-icon.flower { bottom: 7rem; right: 7%; }
.bg-icon.sparkle { bottom: 14rem; left: 14%; }

.ffxiv-ach-hero {
  position: relative;
  margin-bottom: 1.5rem;
}

.ffxiv-ach-hero__card,
.ffxiv-ach-card,
.ffxiv-ach-stat-card,
.ffxiv-cat-card {
  background: var(--ffxiv-white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--ffxiv-border);
  box-shadow: var(--ffxiv-shadow);
}

.ffxiv-ach-hero__card {
  border-radius: 30px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.ffxiv-ach-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), transparent 45%),
    radial-gradient(circle at top right, rgba(255,255,255,0.45), transparent 30%);
  pointer-events: none;
}

.ffxiv-ach-hero__profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.ffxiv-ach-portrait {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 20px rgba(206, 128, 172, 0.22);
  background: #fff;
}

.ffxiv-ach-kicker {
  margin: 0 0 0.35rem;
  font-family: 'Gaegu', cursive;
  font-size: 1.25rem;
  color: var(--ffxiv-pink-6);
}

.ffxiv-ach-hero__info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-family: 'Gaegu', cursive;
  color: #c95c9e;
}

.ffxiv-ach-world {
  margin: 0.35rem 0 0.75rem;
  font-weight: 700;
  color: var(--ffxiv-text-soft);
}

.ffxiv-ach-desc {
  max-width: 42rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.ffxiv-ach-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ffxiv-ach-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd9ef 0%, #ffc6e5 100%);
  border: 2px solid rgba(224, 123, 180, 0.35);
  color: #9b4f79;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(214, 126, 176, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ffxiv-ach-links a:hover,
.ffxiv-cat-card h3 a:hover,
.suggest-list a:hover,
.ffxiv-ach-item__text a:hover {
  transform: translateY(-2px);
  text-decoration: underline;
}

.ffxiv-ach-hero__mascot {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floaty 4.8s ease-in-out infinite;
}

.ffxiv-ach-hero__mascot.left {
  top: -14px;
  left: -8px;
}

.ffxiv-ach-hero__mascot.right {
  right: 10px;
  bottom: -12px;
}

.moogle-ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff6fae;
  box-shadow: 0 0 12px rgba(255, 111, 174, 0.4);
  position: absolute;
  top: -12px;
  left: 26px;
}

.mascot-blob {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5fb 0%, #ffe2f0 100%);
  border: 2px solid rgba(232, 157, 198, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--ffxiv-shadow);
}

.axolotl-face {
  width: 64px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd8ee 0%, #ffc7e6 100%);
  border: 2px solid rgba(227, 132, 185, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--ffxiv-shadow);
  position: relative;
}

.axolotl-face::before,
.axolotl-face::after {
  content: "✿";
  position: absolute;
  top: 12px;
  font-size: 0.8rem;
  color: #e37eb8;
}

.axolotl-face::before { left: -10px; }
.axolotl-face::after { right: -10px; }

.axolotl-face span {
  font-size: 0.9rem;
  color: #8c5574;
}

.ffxiv-ach-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ffxiv-ach-stat-card {
  border-radius: 24px;
  padding: 1rem;
  text-align: center;
}

.stat-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  color: var(--ffxiv-text-soft);
  margin-bottom: 0.35rem;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #b3568d;
}

.stat-value--small {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2,
.ffxiv-ach-card h2 {
  margin: 0;
  font-family: 'Gaegu', cursive;
  font-size: 2rem;
  color: #c45a99;
}

.section-sub {
  margin: 0.35rem 0 0;
  color: var(--ffxiv-text-soft);
}

.ffxiv-ach-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1rem;
}

.ffxiv-ach-card {
  border-radius: 28px;
  padding: 1.25rem;
}

.ffxiv-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.ffxiv-cat-card {
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 247, 252, 0.86);
}

.ffxiv-cat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.ffxiv-cat-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd7ec 0%, #ffc2e2 100%);
  box-shadow: 0 4px 10px rgba(215, 136, 179, 0.18);
  font-size: 1.1rem;
}

.ffxiv-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: #fff0f8;
  border: 1px solid rgba(224, 123, 180, 0.25);
  color: #9b4f79;
}

.ffxiv-cat-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.ffxiv-cat-card h3 a,
.suggest-list a,
.ffxiv-ach-item__text a {
  color: #9d4f79;
  text-decoration: none;
  font-weight: 700;
}

.ffxiv-cat-hint {
  margin: 0 0 0.85rem;
  color: var(--ffxiv-text-soft);
  line-height: 1.5;
  min-height: 3em;
}

.ffxiv-cat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ffxiv-cat-stats > div {
  border-radius: 16px;
  padding: 0.75rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(235, 170, 206, 0.5);
}

.mini-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ffxiv-text-soft);
  margin-bottom: 0.2rem;
}

.ffxiv-cat-stats strong {
  color: #b3568d;
  font-size: 1.1rem;
}

.ffxiv-ach-list,
.suggest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ffxiv-ach-list {
  display: grid;
  gap: 0.85rem;
}

.ffxiv-ach-item {
  border-radius: 20px;
  padding: 0.9rem 1rem;
  background: rgba(255, 247, 252, 0.85);
  border: 1.5px solid rgba(235, 170, 206, 0.5);
}

.ffxiv-ach-item__left {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.ffxiv-ach-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd7ec 0%, #ffc2e2 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  color: #b44d85;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(215, 136, 179, 0.18);
}

.ffxiv-ach-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ffxiv-ach-item__text small,
.suggest-list small {
  color: var(--ffxiv-text-soft);
}

.suggest-block + .suggest-block {
  margin-top: 1rem;
}

.suggest-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #b3568d;
}

.suggest-list {
  display: grid;
  gap: 0.7rem;
}

.suggest-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(235, 170, 206, 0.5);
}

.ffxiv-empty {
  margin: 0;
  line-height: 1.6;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 860px) {
  .ffxiv-ach-hero__profile,
  .ffxiv-ach-stats-grid,
  .ffxiv-ach-layout {
    grid-template-columns: 1fr;
  }

  .ffxiv-ach-hero__profile {
    text-align: center;
  }

  .ffxiv-ach-portrait {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .ffxiv-ach-page {
    padding: 1rem 0.75rem 2rem;
  }

  .ffxiv-ach-hero__card,
  .ffxiv-ach-card,
  .ffxiv-ach-stat-card,
  .ffxiv-cat-card {
    border-radius: 22px;
  }
}

.ffxiv-cat-recent {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--ffxiv-text-soft);
}

.ffxiv-cat-recent li + li {
  margin-top: 0.3rem;
}

.ffxiv-cat-empty {
  margin: 0.75rem 0 0;
  color: var(--ffxiv-text-soft);
}

.ffxiv-ach-category {
  color: var(--ffxiv-pink-6);
  font-weight: 700;
}

.ffxiv-cat-focus {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--ffxiv-text-soft);
  font-size: 0.92rem;
}

.ffxiv-cat-focus li + li {
  margin-top: 0.25rem;
}

.ffxiv-cat-recent {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--ffxiv-text-soft);
}

.ffxiv-cat-recent li + li {
  margin-top: 0.3rem;
}

.ffxiv-cat-empty {
  margin: 0.75rem 0 0;
  color: var(--ffxiv-text-soft);
}

.ffxiv-ach-category {
  color: var(--ffxiv-pink-6);
  font-weight: 700;
}