/* RiM achievements page only. Keeps the existing RiM atmosphere, with denser premium cards. */
.achievements-luxury-page {
  --ach-red: #d7192d;
  --ach-red-deep: #760914;
  --ach-gold: #c8a55d;
  --ach-gold-light: #f0d99d;
  --ach-ink: #151112;
  --ach-paper: #f2eee7;
  --ach-muted: #746d67;
  background:
    radial-gradient(circle at 50% 0%, rgba(164,26,42,.09), transparent 34rem),
    linear-gradient(180deg, #f5f1ea 0%, #ebe6dd 100%);
  color: #171416;
}

.achievement-main {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 78px;
}

.achievement-hero {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  margin-bottom: 22px;
  text-align: center;
}
.achievement-hero-copy { position: relative; z-index: 2; }
.achievement-kicker {
  display: block;
  margin-bottom: 7px;
  color: #9b7a38;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .24em;
}
.achievement-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  line-height: .96;
  letter-spacing: -.05em;
  color: #171416;
}
.achievement-hero p {
  margin: 7px 0 0;
  color: #756e69;
  font-size: 12px;
  font-weight: 700;
}
.hero-line {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(360px, 62vw); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(157,119,49,.55), transparent);
}
.hero-laurel {
  position: relative;
  width: 52px; height: 82px;
  opacity: .62;
}
.hero-laurel span {
  position: absolute;
  width: 10px; height: 22px;
  border: 1px solid rgba(150,113,48,.75);
  border-radius: 100% 0 100% 0;
  transform: rotate(34deg);
}
.hero-laurel span:nth-child(1){left:21px;top:3px}.hero-laurel span:nth-child(2){left:12px;top:15px}.hero-laurel span:nth-child(3){left:6px;top:29px}.hero-laurel span:nth-child(4){left:4px;top:44px}.hero-laurel span:nth-child(5){left:9px;top:59px}.hero-laurel span:nth-child(6){left:20px;top:68px}
.hero-laurel-right { transform: scaleX(-1); }

.achievement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.achievement-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112,91,52,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 42px rgba(45,34,28,.10), inset 0 1px 0 rgba(255,255,255,.8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .42s ease var(--card-delay), transform .42s ease var(--card-delay), box-shadow .2s ease;
}
.achievement-card.is-visible { opacity: 1; transform: none; }
.achievement-card:hover { box-shadow: 0 21px 50px rgba(45,34,28,.14), 0 0 0 1px rgba(189,145,57,.09); }
.achievement-card::before {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.achievement-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(216,37,54,.28), transparent 36%),
    linear-gradient(135deg, #2a1c1f, #100d0e 72%);
}
.achievement-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.achievement-card:hover .achievement-media img { transform: scale(1.025); }
.achievement-media.is-empty::before {
  content: 'RiM';
  position: absolute;
  right: 18px; top: 12px;
  color: rgba(255,255,255,.06);
  font-size: 68px;
  font-weight: 950;
  letter-spacing: -.07em;
}
.achievement-media-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,9,.04) 22%, rgba(10,8,9,.83) 100%),
    linear-gradient(90deg, rgba(87,8,18,.20), transparent 65%);
}
.achievement-media-copy {
  position: absolute;
  z-index: 2;
  left: 17px; right: 17px; bottom: 15px;
  color: #fff;
}
.achievement-date {
  display: inline-flex;
  margin-bottom: 5px;
  color: #e8d39e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.achievement-media-copy h2 {
  margin: 0;
  max-width: 96%;
  color: #fff;
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-shadow: 0 3px 16px rgba(0,0,0,.48);
}
.achievement-headline {
  display: inline-flex;
  margin: 7px 0 0;
  padding: 4px 8px 4px 7px;
  border-left: 2px solid #d5b267;
  background: rgba(11,9,10,.56);
  color: #f1dda9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  backdrop-filter: blur(5px);
}

.achievement-body { padding: 12px 14px 14px; }
.achievement-summary {
  margin: 0 0 9px;
  color: #6e6762;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}
.achievement-entry-list { display: grid; gap: 6px; }
.achievement-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid rgba(122,100,58,.12);
  background: rgba(245,241,234,.82);
}
.achievement-entry-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.achievement-avatar-wrap {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(171,130,55,.55);
  background: #221719;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.achievement-avatar { width: 100%; height: 100%; object-fit: cover; }
.achievement-avatar-fallback { color: #ead49f; font-size: 12px; font-weight: 900; }
.achievement-member-name {
  min-width: 0;
  overflow: hidden;
  color: #292325;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.achievement-member-name:hover { color: #b20f21; }
.achievement-entry-result {
  flex: 0 0 auto;
  color: #9c1724;
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}
.achievement-source {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
  color: #806a3e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}
.achievement-source i {
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid #a9853e;
}
.achievement-empty { padding: 60px 0; text-align:center; color:#8a837d; }

@media (max-width: 720px) {
  .achievement-main { width: min(100% - 20px, 560px); padding-top: 22px; }
  .achievement-hero { grid-template-columns: 36px 1fr 36px; min-height: 104px; margin-bottom: 15px; }
  .hero-laurel { transform: scale(.72); transform-origin: center; }
  .hero-laurel-right { transform: scale(-.72,.72); }
  .achievement-hero h1 { font-size: 42px; }
  .achievement-list { grid-template-columns: 1fr; gap: 12px; }
  .achievement-media { height: 170px; }
  .achievement-media-copy { left: 14px; right: 14px; bottom: 13px; }
  .achievement-media-copy h2 { font-size: 19px; }
  .achievement-body { padding: 10px 11px 12px; }
  .achievement-entry { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .achievement-card, .achievement-media img { transition: none !important; }
}
