.ly-hero {
  position: relative;
  padding: 56px 0 28px;
  overflow: hidden;
}

.ly-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(168,216,255,0.42),
    rgba(179,136,255,0.22) 60%,
    transparent 75%
  );
  pointer-events: none;
}

.ly-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.ly-hero__kicker {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ly-hero__title {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
}

.ly-hero__desc {
  max-width: 560px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.9;
}

.ly-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ly-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
}

.ly-hero__visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168,216,255,0.34), rgba(179,136,255,0.14) 60%, transparent 75%);
  filter: blur(12px);
  z-index: 0;
}

.ly-hero__visual img {
  display: block;
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 560px;
  height: auto;
  transform: translateY(-10px);
  transform-origin: center center;
  object-fit: contain;
}

.ly-section {
  padding: 28px 0 20px;
}

.ly-section__head {
  margin-bottom: 24px;
}

.ly-section__head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.ly-section__head p {
  margin: 0;
  opacity: 0.78;
}

.ly-tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ly-tag-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(140, 170, 255, 0.18);
  box-shadow: 0 10px 24px rgba(120, 140, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ly-tag-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(120, 140, 255, 0.16);
}

.ly-tag-card strong {
  font-size: 18px;
}

.ly-tag-card span {
  line-height: 1.65;
  opacity: 0.82;
}

.home-template .l-post-grid .m-article-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-template .l-post-grid .m-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(120, 140, 255, 0.14);
}

.ly-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.ly-post-card {
  --card-glow-1: rgba(168, 216, 255, 0.12);
  --card-glow-2: rgba(179, 136, 255, 0.06);
  --card-border: rgba(179, 136, 255, 0.18);
  --card-gold-1: rgba(255, 215, 140, 0.16);
  --card-gold-2: rgba(255, 215, 140, 0.06);
  --rotateX: 0deg;
  --rotateY: 0deg;

  opacity: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(140, 170, 255, 0.16);
  box-shadow: 0 10px 24px rgba(120, 140, 255, 0.08);
  transform-style: preserve-3d;
  transform: perspective(1000px) translateY(20px) rotateX(0deg) rotateY(0deg);
  will-change: transform, box-shadow;
  transition:
    opacity 0.6s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ly-post-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ly-post-card--tarot {
  --card-glow-1: rgba(179, 136, 255, 0.18);
  --card-glow-2: rgba(122, 162, 255, 0.08);
  --card-border: rgba(179, 136, 255, 0.24);
  --card-gold-1: rgba(255, 220, 160, 0.22);
  --card-gold-2: rgba(255, 215, 140, 0.08);
}

.ly-post-card--notice {
  --card-glow-1: rgba(143, 194, 255, 0.16);
  --card-glow-2: rgba(168, 216, 255, 0.08);
  --card-border: rgba(143, 194, 255, 0.22);
}

.ly-post-card--broadcast {
  --card-glow-1: rgba(122, 162, 255, 0.16);
  --card-glow-2: rgba(168, 216, 255, 0.06);
  --card-border: rgba(122, 162, 255, 0.22);
}

.ly-post-card--yugioh {
  --card-glow-1: rgba(255, 214, 102, 0.14);
  --card-glow-2: rgba(179, 136, 255, 0.05);
  --card-border: rgba(255, 214, 102, 0.22);
  --card-gold-1: rgba(255, 220, 160, 0.22);
  --card-gold-2: rgba(255, 215, 140, 0.08);
}

.ly-post-card:hover {
  transform:
    perspective(1000px)
    translateY(-6px)
    rotateX(var(--rotateX))
    rotateY(var(--rotateY));
  border-color: rgba(122, 162, 255, 0.32);
  box-shadow: 0 20px 40px rgba(120, 140, 255, 0.22);
}

.ly-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    180px circle at var(--x, 50%) var(--y, 50%),
    var(--card-glow-1),
    var(--card-glow-2) 35%,
    transparent 65%
  );
  opacity: 0;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ly-post-card:hover::before {
  opacity: 1;
}

.ly-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--card-border) 60%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--card-glow-1) 45%, transparent);
}

.ly-post-card:hover::after {
  box-shadow:
    inset 0 0 0 1px var(--card-border),
    inset 0 0 24px color-mix(in srgb, var(--card-glow-1) 65%, transparent),
    0 0 28px color-mix(in srgb, var(--card-glow-1) 55%, transparent);
}

.ly-post-card--tarot::after,
.ly-post-card--yugioh::after {
  box-shadow:
    inset 0 0 0 1px var(--card-gold-1),
    inset 0 0 22px var(--card-gold-2),
    inset 0 0 0 2px rgba(179, 136, 255, 0.04);
}

.ly-post-card--tarot:hover::after,
.ly-post-card--yugioh:hover::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 160, 0.34),
    inset 0 0 28px rgba(255, 215, 140, 0.10),
    0 0 24px rgba(255, 215, 140, 0.08);
}

.ly-post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(168, 216, 255, 0.12);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.ly-post-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 55%,
    rgba(21, 26, 51, 0.25)
  );
}

.ly-post-card:hover .ly-post-card__media::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 45%,
    rgba(21, 26, 51, 0.35)
  );
}

.ly-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ly-post-card:hover .ly-post-card__media {
  transform: scale(1.01);
  box-shadow:
    inset 0 0 24px color-mix(in srgb, var(--card-glow-1) 30%, transparent);
}

.ly-post-card:hover .ly-post-card__media img {
  transform: scale(1.05);
  filter: brightness(1.06) contrast(1.05);
}

.ly-post-card:hover .ly-post-card__title a {
  text-shadow:
    0 0 12px color-mix(in srgb, var(--card-glow-1) 40%, transparent);
}

.ly-post-card__content {
  display: block;
  flex: none;
  padding: 18px 18px 20px;
  background: rgba(255, 255, 255, 0.92);
}

.ly-post-card--tarot .ly-post-card__content,
.ly-post-card--yugioh .ly-post-card__content {
  background-image: linear-gradient(
    135deg,
    rgba(255, 220, 160, 0.03),
    rgba(179, 136, 255, 0.02)
  );
  background-blend-mode: screen;
}

.ly-post-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(122, 162, 255, 0.12);
  color: #6b9cff;
  opacity: 1;
}

.ly-post-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.ly-post-card__title a,
.ly-post-card__title a:visited {
  color: #2b3345;
  text-decoration: none;
}

.ly-post-card__title a:hover {
  color: #6b9cff;
  text-shadow: 0 0 10px rgba(122, 162, 255, 0.18);
}

.ly-post-card__meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(43, 51, 69, 0.68);
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at 15% 0%, rgba(122,162,255,0.18), transparent 30%),
      radial-gradient(circle at 85% 10%, rgba(179,136,255,0.16), transparent 24%),
      radial-gradient(circle at 50% 80%, rgba(168,216,255,0.08), transparent 40%),
      linear-gradient(180deg, #151a33 0%, #0d1020 100%);
  }

  .ly-tag-card {
    background: rgba(23, 28, 56, 0.72);
    border-color: rgba(179, 136, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }

  .ly-tag-card:hover {
    box-shadow: 0 16px 34px rgba(122, 162, 255, 0.18);
  }

  .ly-post-card {
    background: rgba(23, 28, 56, 0.72);
    border-color: rgba(179, 136, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }

  .ly-post-card__content {
    background: rgba(22, 26, 44, 0.96);
  }

  .ly-post-card--tarot .ly-post-card__content,
  .ly-post-card--yugioh .ly-post-card__content {
    background-image: linear-gradient(
      135deg,
      rgba(255, 220, 160, 0.04),
      rgba(179, 136, 255, 0.03)
    );
  }

  .ly-post-card__tag {
    color: #8fc2ff;
    background: rgba(143, 194, 255, 0.12);
  }

  .ly-post-card__title a,
  .ly-post-card__title a:visited {
    color: #f4f7ff;
  }

  .ly-post-card__title a:hover {
    color: #a8d8ff;
  }

  .ly-post-card__meta,
  .ly-post-card__meta span {
    color: rgba(234, 238, 255, 0.72);
  }

  .ly-post-card:hover {
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.28),
      0 0 24px color-mix(in srgb, var(--card-glow-1) 35%, transparent);
  }
}

@media (max-width: 980px) {
  .ly-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ly-hero__desc {
    margin: 0 auto;
  }

  .ly-hero__actions {
    justify-content: center;
  }

  .ly-hero__visual {
    min-height: auto;
  }

  .ly-hero__visual img {
    width: min(88vw, 380px);
  }

  .ly-tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ly-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ly-hero {
    padding-top: 48px;
  }

  .ly-tag-grid,
  .ly-post-grid {
    grid-template-columns: 1fr;
  }

  .ly-section__head h2 {
    font-size: 24px;
  }

  .ly-hero__desc {
    font-size: 16px;
  }
}

.ly-section--featured {
  padding-top: 8px;
}

.ly-featured-card {
  --featured-glow-1: rgba(168, 216, 255, 0.14);
  --featured-glow-2: rgba(179, 136, 255, 0.08);

  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(140, 170, 255, 0.16);
  box-shadow: 0 18px 40px rgba(120, 140, 255, 0.10);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ly-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(120, 140, 255, 0.18);
}

.ly-featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(168, 216, 255, 0.04),
    rgba(179, 136, 255, 0.03)
  );
}

.ly-featured-card__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
}

.ly-featured-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.18)
  );
}

.ly-featured-card__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ly-featured-card:hover .ly-featured-card__media img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

.ly-featured-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 38px;
  background: rgba(255, 255, 255, 0.92);
}

.ly-featured-card__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(122, 162, 255, 0.12);
  color: #6b9cff;
}

.ly-featured-card__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.ly-featured-card__title a {
  text-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

[data-theme="dark"] .ly-featured-card__title a {
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.ly-featured-card__title a,
.ly-featured-card__title a:visited {
  color: #2b3345;
  text-decoration: none;
}

.ly-featured-card__title a:hover {
  color: #6b9cff;
}

.ly-featured-card__desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(43, 51, 69, 0.82);
}

.ly-featured-card__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: rgba(43, 51, 69, 0.66);
}

.ly-featured-card__actions {
  display: flex;
  gap: 12px;
}

/* 카드별 톤 */
.ly-featured-card--tarot {
  --featured-glow-1: rgba(179, 136, 255, 0.16);
  --featured-glow-2: rgba(122, 162, 255, 0.08);
}

.ly-featured-card--notice {
  --featured-glow-1: rgba(143, 194, 255, 0.16);
  --featured-glow-2: rgba(168, 216, 255, 0.08);
}

.ly-featured-card--broadcast {
  --featured-glow-1: rgba(122, 162, 255, 0.16);
  --featured-glow-2: rgba(168, 216, 255, 0.06);
}

.ly-featured-card--yugioh {
  --featured-glow-1: rgba(255, 214, 102, 0.14);
  --featured-glow-2: rgba(179, 136, 255, 0.06);
}

.ly-featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--featured-glow-1) 50%, transparent),
    inset 0 0 28px color-mix(in srgb, var(--featured-glow-2) 60%, transparent);
}

@media (prefers-color-scheme: dark) {
  .ly-featured-card {
    background: rgba(23, 28, 56, 0.72);
    border-color: rgba(179, 136, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  }

  .ly-featured-card__content {
    background: rgba(22, 26, 44, 0.96);
  }

  .ly-featured-card__title a,
  .ly-featured-card__title a:visited {
    color: #f4f7ff;
  }

  .ly-featured-card__title a:hover {
    color: #a8d8ff;
  }

  .ly-featured-card__desc {
    color: rgba(234, 238, 255, 0.80);
  }

  .ly-featured-card__meta {
    color: rgba(234, 238, 255, 0.68);
  }

  .ly-featured-card__tag {
    color: #8fc2ff;
    background: rgba(143, 194, 255, 0.12);
  }
}

@media (max-width: 980px) {
  .ly-featured-card {
    grid-template-columns: 1fr;
  }

  .ly-featured-card__media img {
    min-height: 280px;
  }

  .ly-featured-card__content {
    padding: 28px 24px;
  }
}

.ly-section--notice-banner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.ly-notice-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 22px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(140, 170, 255, 0.16);
  box-shadow: 0 12px 28px rgba(120, 140, 255, 0.08);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ly-notice-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(168, 216, 255, 0.07),
    rgba(179, 136, 255, 0.05)
  );
}

.ly-notice-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 162, 255, 0.28);
  box-shadow: 0 20px 36px rgba(120, 140, 255, 0.14);
}

.ly-notice-banner__label {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b9cff;
  background: rgba(122, 162, 255, 0.12);
}

.ly-notice-banner__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ly-notice-banner__title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
  color: #2b3345;
}

.ly-notice-banner__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(43, 51, 69, 0.78);
}

.ly-notice-banner__meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(43, 51, 69, 0.62);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .ly-notice-banner {
    background: rgba(23, 28, 56, 0.76);
    border-color: rgba(179, 136, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }

  .ly-notice-banner__label {
    color: #8fc2ff;
    background: rgba(143, 194, 255, 0.12);
  }

  .ly-notice-banner__title {
    color: #f4f7ff;
  }

  .ly-notice-banner__desc {
    color: rgba(234, 238, 255, 0.78);
  }

  .ly-notice-banner__meta {
    color: rgba(234, 238, 255, 0.64);
  }

  .ly-notice-banner:hover {
    box-shadow:
      0 20px 36px rgba(0, 0, 0, 0.28),
      0 0 24px rgba(122, 162, 255, 0.10);
  }
}

@media (max-width: 980px) {
  .ly-notice-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ly-notice-banner__meta {
    white-space: normal;
  }
}
