/*
Theme Name: fra-practice
Theme URI: https://example.com
Description: Custom theme
Author: Your Name
Version: 1.0
*/

/* =========================
   0) RESET / BASE
========================= */
*{ margin:0; padding:0; box-sizing:border-box; }

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color:#111;
  line-height:1.6;
}

h1,h2,h3{
  font-weight:600;
  letter-spacing:-0.02em;
}

p{
  line-height:1.7;
  color:#444;
}

/* 섹션 기본 패딩(필요 없으면 조정) */
section{ padding:50px 0; }

/* =========================
   1) COMMON CONTAINER
========================= */
.container,
.entry-content{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* page.php main은 폭 제한 없음 */
.page-content{
  max-width:none;
  margin:0 auto;
  padding:0;
}

/* =========================
   2) HEADER / NAV
========================= */
.site-header{ padding:24px 0; }

.site-header .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.main-nav ul{
  list-style:none;
  display:flex;
  gap:20px;
  margin:0;
  padding:0;
}

.main-nav a{
  text-decoration:none;
  color:#111;
  font-size:15px;
  display:inline-block;
  padding:6px 0;
}
.main-nav a:hover{ text-decoration:underline; }

/* =========================
   3) CATEGORY PAGE (목록)
========================= */
.page-layout{
  max-width:1440px;
  margin:0 auto;
  padding:0 48px;

  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:64px;
  align-items:start;
}

.category-page{
  min-width:0;
  padding:80px 0;
  max-width:1100px;
}

.page-title{
  font-size:42px;
  letter-spacing:-0.03em;
  margin-bottom:28px;
}

.post-list{ display:grid; gap:14px; }

.post-row{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:14px;
  align-items:start;

  padding:12px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
}

.post-row-thumb{ background:transparent; }
.post-row-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.post-row-thumb.is-empty{ background:transparent; }

.post-row-body{ min-width:0; }

.post-row-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.post-row-title{
  margin:0;
  font-size:18px;
  line-height:1.25;
}
.post-row-title a{
  color:#111;
  text-decoration:none;
}
.post-row-title a:hover{ text-decoration:underline; }

.post-row-date{
  font-size:13px;
  color:#777;
  white-space:nowrap;
}

/* 2줄 클램프 (중복 제거: 여기만 유지) */
.post-row-excerpt{
  font-size:14px;
  color:#444;
  line-height:1.6;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;

  white-space:normal !important;
  text-overflow:clip !important;
}

.pagination{ margin-top:18px; font-size:14px; }
.pagination a, .pagination span{ margin-right:10px; text-decoration:none; }
.pagination a:hover{ text-decoration:underline; }

/* 대표이미지 없으면 2컬럼 → 1컬럼 */
.post-row.no-thumb{ grid-template-columns:1fr; }
.post-row.no-thumb .post-row-thumb{ display:none; }

/* =========================
   4) SIDEBAR (공용)
========================= */
.page-sidebar,
.single-sidebar{
  width:100%;
  position:static;
  top:auto;
}

.page-sidebar .sidebar-box,
.single-sidebar .sidebar-box{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  padding:16px;
  background:#fff;
}

.sidebar-title{
  margin:0 0 12px;
  font-size:14px;
  letter-spacing:0.02em;
}

.sidebar-post-list{
  list-style:none;
  padding:0;
  margin:0;
}

.sidebar-post-list li{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:8px 0;
  border-top:1px solid rgba(0,0,0,0.06);
}
.sidebar-post-list li:first-child{ border-top:0; }

.sidebar-post-list a{
  color:#111;
  text-decoration:none;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sidebar-post-list a:hover{ text-decoration:underline; }

.sidebar-date{
  color:#777;
  font-size:12px;
  white-space:nowrap;
}

.sidebar-pagination{ margin-top:12px; font-size:13px; }
.sidebar-pagination a, .sidebar-pagination span{ margin-right:8px; text-decoration:none; }
.sidebar-pagination a:hover{ text-decoration:underline; }

/* =========================
   5) SINGLE (single.php)
========================= */
.single-layout{
  max-width:1440px;
  margin:0 auto;
  padding:0 48px;

  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:64px;
  align-items:start;
}

.single-main{
  min-width:0;
  max-width:1100px;
}

.single-hero{
  margin:20px 0 24px;
  text-align:center;
}

.single-hero img{
  width:30%;
  height:auto;
  display:inline-block;
  border-radius:18px;
}

/* Single featured under hero */
.single-featured{
  margin:18px 0 24px;
  text-align:center;
}
.single-featured img{
  width:min(480px, 100%);
  height:auto;
  border-radius:18px;
  display:inline-block;
}

/* Single prev/next */
.post-nav{
  margin-top:28px;
  padding-top:18px;
  border-top:none;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}
.post-nav a{
  display:block;
  text-decoration:none;
  color:#111;
  padding:12px 14px;
  border:none;
  border-radius:14px;
  background:#fff;
}
.post-nav a:hover{ text-decoration:underline; }
.post-nav-prev{ text-align:left; }
.post-nav-next{ text-align:right; }

/* =========================
   6) ANYTHING: 카드형 그리드
========================= */
.anything-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
}

.any-card{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.any-card-thumb{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  background:transparent;
}

.any-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.any-card-body{ padding:14px 14px 16px; }

.any-card-title{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.25;
}
.any-card-title a{
  color:#111;
  text-decoration:none;
}
.any-card-title a:hover{ text-decoration:underline; }

.any-card-meta{
  font-size:13px;
  color:#777;
  margin-bottom:10px;
}

.any-card-excerpt{
  font-size:14px;
  color:#444;
  line-height:1.6;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

/* =========================
   3) HERO (홈)
========================= */
.hero{
  padding: 140px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1{
  font-size: 3rem;
  line-height: 1.2;
}

.hero-text{
  text-align: center;
  margin-bottom: 40px;
}

.hero-sub{
  margin-top: 24px;
  font-size: 18px;
  color: #555;
}

.hero-image-box{
  position: relative;
  margin-top: 90px;

  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;

  aspect-ratio: 16 / 9;
  height: clamp(320px, 45vw, 520px);

  border-radius: 22px;
  overflow: hidden;
}

.hero-image-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(59, 59, 59, 0.35);
  z-index: 1;
}

.hero-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #fff;
  padding: 24px;
  z-index: 2;
}

.hero-sub2{ color: #f5f4f4; }

/* ===== ACF HERO ===== */
.acf-hero{
  padding: 10px 0 10px;
}

.acf-hero-inner{
  max-width: 1740px;
  margin: 0 auto;
  padding: 0 48px;
}

.acf-hero-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: clamp(260px, 38vw, 660px);
}

.acf-hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acf-hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
}

.acf-hero-text{
  margin-top: 18px;
}

.acf-hero-text h1{
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.acf-hero-text p{
  margin-top: 10px;
  font-size: 16px;
  color: #555;
}

@media (max-width: 1024px){
  .acf-hero-inner{
    padding: 0 24px;
  }
  .acf-hero-text h1{
    font-size: 32px;
  }
}

/* =========================
   7) HOME SLIDER
========================= */
.home-slider{
  position:relative;
  max-width:1200px;
  margin:70px auto 0;
  padding:0;
  overflow:hidden;
}

.slider-viewport{
  overflow:hidden;
  width:100%;
  border-radius:22px;
}

.slider-track{
  display:flex;
  flex-wrap:nowrap;
  width:100%;
}

.slide{
  position:relative;
  flex:0 0 100%;
}

.slide img{
  width:100%;
  height:clamp(260px, 40vw, 520px);
  object-fit:cover;
  display:block;
}

.slide-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:9999px;
  background:rgba(255,255,255,0.85);
  cursor:pointer;
}
.slide-btn.prev{ left:10px; }
.slide-btn.next{ right:10px; }

.slide-caption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;

  border-radius:16px;
  padding:14px 16px;

  display:grid;
  gap:6px;
}

.slide-title{
  margin:0;
  font-size:18px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:-0.01em;
  color:aliceblue;
  text-shadow:
    0 2px 2px rgba(0,0,0,0.8),
    0 0 12px rgba(0,0,0,0.6);
}

.slide-subtitle{
  margin:0;
  font-size:14px;
  color:aliceblue;
  text-shadow:
    0 2px 2px rgba(0,0,0,0.8),
    0 0 12px rgba(0,0,0,0.6);
}

/* =========================
   8) HOME THOUGHT HERO (SPACE)
   - 현재 사용 중인 최종본만 남김
========================= */

/* 홈에서 헤더는 히어로 위에 투명/흰색 */
.home header.site-header{
  position:absolute;
  top:0; left:0; right:0;
  background:transparent !important;
  border-bottom:0 !important;
  z-index:50;
  opacity:0.92;
}

.home header.site-header a,
.home header.site-header .site-title{
  color:rgba(255,255,255,0.88) !important;
}
.home header.site-header a:hover{
  color:#fff !important;
}

/* 히어로 */
.hero-thought{
  position:relative;
  height:200vh;
  overflow:hidden;
  background:#000;
  color:#e6e6e6;

  /* 우주 배경 URL */
  --space-bg: url("https://vinaida.xyz/wp-content/uploads/2026/02/space11.webp");

  /* JS 제어 변수 */
  --hero-fade: 1;
  --earth-o: 0;
  --earth-s: 0.96;
  --earth-t-o: 0;
  --earth-t-b: 10px;
}

/* 우주 배경 레이어 */
.hero-thought::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;

  background-image:var(--space-bg);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  filter:brightness(0.72) contrast(1.08) saturate(1.05);

  transform:scale(1.06);
  will-change:transform;
  animation:spaceDrift 22s ease-in-out infinite;

  opacity:var(--hero-fade);
  transition:opacity .6s ease;
}

@keyframes spaceDrift{
  0%   { transform: translate3d(-1.2%, -0.8%, 0) scale(1.06); }
  50%  { transform: translate3d( 1.2%,  0.9%, 0) scale(1.10); }
  100% { transform: translate3d(-1.2%, -0.8%, 0) scale(1.06); }
}

/* 그레인은 우주버전에선 OFF */
.hero-thought::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:transparent;
  opacity:0;
  animation:none;

  opacity:var(--hero-fade);
  transition:opacity .6s ease;
}

/* 화면에 붙어있는 패널 */
.hero-inner{
  position:sticky;
  top:0;
  height:100vh;
  display:grid;
  align-items:center;
  padding:clamp(28px, 5vw, 64px);
  z-index:2;
  background:transparent;
}

/* 스크롤 힌트 */
.hero-hint{
  opacity:0.75;
  font-size:12px;
}

.hint-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(230,230,230,0.9);
  animation:hintPulse 1.4s ease-in-out infinite;
}
@keyframes hintPulse{
  0%,100%{ transform:translateY(0); opacity:0.55; }
  50%{ transform:translateY(4px); opacity:0.95; }
}
.hint-text{ color:rgba(230,230,230,0.75); }

/* 문장 */
.hero-lines{
  max-width:860px;
  padding-top:6vh;
  margin-left:clamp(18px, 6vw, 110px);
}

.hero-line{
  margin:0;
  line-height:1.15;
  letter-spacing:-0.01em;
}

.hero-line.line-1{
  font-size:clamp(28px, 5vw, 56px);
  font-weight:650;
  color:#e8e8e8;
  text-shadow:0 10px 30px rgba(0,0,0,0.55);
}

.hero-line.line-2,
.hero-line.line-3{
  margin-top:14px;
  font-size:clamp(16px, 2.3vw, 22px);
  font-weight:400;

  opacity:0;
  transform:translateY(16px);
  filter:blur(2px);
  transition: opacity .9s ease, transform .9s ease, filter .9s ease;

  color:rgba(230,230,230,0.80);
  text-shadow:0 10px 30px rgba(0,0,0,0.55);
}

.hero-line.is-visible{
  opacity:1;
  transform:translateY(0);
  filter:blur(0);
}

.hero-line em{
  font-style:normal;
  color:rgba(255,255,255,0.95);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:6px;
  text-decoration-color:rgba(255,255,255,0.22);
}

/* 지구 오버레이 */
.hero-earth{
  position:fixed;
  left:50%;
  top:52%;
  transform:translate(-50%, -50%);
  z-index:3;
  pointer-events:none;

  opacity:var(--earth-o);
  transition:opacity .35s linear;
}

.hero-earth img{
  width:min(720px, 62vw);
  height:auto;
  display:block;
  transform:scale(var(--earth-s));
  filter:drop-shadow(0 28px 80px rgba(0,0,0,0.6));
  will-change:transform, opacity;
}

/* 지구 중앙 타이틀 */
.hero-earth-title{
  position:fixed;
  left:55%;
  top:52%;
  transform:translate(-50%, -50%);
  z-index:4;
  pointer-events:none;
  text-align:center;
  width:min(720px, 86vw);

  opacity:var(--earth-t-o);
  filter:blur(var(--earth-t-b));
  transition:opacity .35s linear, filter .35s linear;
}

.earth-title-main{
  margin:0;
  font-size:clamp(20px, 3.2vw, 38px);
  font-weight:650;
  letter-spacing:-0.02em;
  color:rgba(255,255,255,0.92);
  text-shadow:
    0 12px 40px rgba(0,0,0,0.75),
    0 2px 0 rgba(0,0,0,0.35);
}

.earth-title-sub{
  margin:10px 0 0;
  font-size:clamp(13px, 1.6vw, 18px);
  font-weight:400;
  letter-spacing:0.02em;
  color:rgba(255,255,255,0.78);
  text-shadow:0 12px 40px rgba(0,0,0,0.75);
}

/* 구분선 */
.hero-divider{
  position:absolute;
  left:clamp(28px, 5vw, 64px);
  right:clamp(28px, 5vw, 64px);
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(230,230,230,0.25), transparent);
  opacity:0.6;
}

.home .hero-divider{
  display: none !important;
}


/* =========================
   9) RESPONSIVE
========================= */
@media (max-width: 1024px){
  .page-layout,
  .single-layout{
    grid-template-columns:1fr;
    padding:0 24px;
    gap:28px;
  }
  .category-page,
  .single-main{
    max-width:100%;
  }

  .anything-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 768px){
  .category-page{ padding:56px 0; }
  .page-title{ font-size:32px; }

  .post-row{ grid-template-columns:110px 1fr; }
  .post-row-thumb{ width:110px; height:82px; }
  .post-row-title{ font-size:16px; }

  .post-nav{ grid-template-columns:1fr; }
  .post-nav-next{ text-align:left; }

  .hero-lines{ padding-bottom:92px; }
  .hero-hint{ opacity:0.6; }
}

@media (max-width: 640px){
  .anything-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .hero-thought::before{ animation:none; }
  .hero-earth, .hero-earth img, .hero-earth-title{
    transition:none !important;
    filter:none !important;
  }
}

/* 홈 히어로 위 헤더 색상 고정 */
.home header.site-header,
.home header.site-header a,
.home header.site-header .site-title{
  color: rgba(255,255,255,0.88) !important;
}

/* 호버 시 */
.home header.site-header a:hover{
  color: #ffffff !important;
}

/* ===============================
   HERO STAR NAV (earth overlay)
   =============================== */

/* 지구 박스 자체가 기준 박스가 되도록 "크기"를 명시 */
.hero-earth{
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;

  /* ✅ 이게 중요: 별의 기준 컨테이너 크기 */
  width: min(720px, 62vw);
}

.hero-earth > img{
  width: 100%;
  height: auto;
  display: block;
}

/* 지구 위에 덮이는 별 네비 */
.hero-star-nav{
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none; /* 링크만 살림 */
}

/* 스크롤로 제어되는 변수(기본값) */
.hero-thought{
  --stars-o: 0;
  --stars-s: 0.96;
}

/* 별 링크: 지구 중심에서 회전+반경으로 배치 */
.star-link{
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: auto;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  user-select: none;

  opacity: var(--stars-o);

  transform:
    translate(-50%, -50%)
    rotate(var(--ang))
    translateX(var(--rad))
    rotate(calc(var(--ang) * -1))
    scale(var(--stars-s, 1));

  transition: opacity .35s linear, transform .35s linear;
}

/* 각 별: 각도/반경만 다르게 */
.star-1{ --ang: -35deg; --rad: 170px; }
.star-2{ --ang:  20deg; --rad: 220px; }
.star-3{ --ang:  75deg; --rad: 165px; }
.star-4{ --ang: 140deg; --rad: 205px; }
.star-5{ --ang: 230deg; --rad: 205px; }
/* 별 떠다니는 애니메이션 */
.star-link{
  animation: starFloat 6s ease-in-out infinite;
}
.star-2{ animation-delay: .6s; }
.star-3{ animation-delay: 1.2s; }
.star-4{ animation-delay: 1.8s; }
.star-5{ animation-delay: 1.3s; }


@keyframes starFloat{
  0%,100%{
    transform:
      translate(-50%, -50%)
      rotate(var(--ang))
      translateX(var(--rad))
      rotate(calc(var(--ang) * -1))
      scale(var(--stars-s));
  }
  50%{
    transform:
      translate(-50%, -50%)
      rotate(var(--ang))
      translateX(calc(var(--rad) + 10px))
      rotate(calc(var(--ang) * -1))
      scale(calc((var(--stars-s) + 0.02) * var(--star-scale)));

  }
}



/* 별 이미지 */
.star-dot{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  filter:
    drop-shadow(0 0 18px rgba(255,255,255,0.25))
    drop-shadow(0 0 48px rgba(120,200,255,0.18));
}

.star-dot img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 라벨 */
.star-label{
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 12px 40px rgba(0,0,0,0.75);
}

/* 모바일: 라벨 숨기고 반경 줄이기 */
@media (max-width: 768px){
  .star-label{ display: none; }
  .star-dot{ width: 52px; height: 52px; }

  .star-1{ --ang: -35deg; --rad: 120px; }
  .star-2{ --ang:  20deg; --rad: 150px; }
  .star-3{ --ang:  75deg; --rad: 115px; }
  .star-4{ --ang: 140deg; --rad: 140px; }
}



/* ===== FINAL: HERO STAR NAV POSITION (override) ===== */
.hero-earth{
  pointer-events: none; /* 지구는 클릭 막고 */
}

/* 별 네비는 클릭 가능 */
.hero-earth .hero-star-nav{
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.hero-thought{ 
  --stars-o: 1; 
  --stars-s: 1; }

.hero-earth .star-link{
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: auto;

  opacity: var(--stars-o);
  transform:
    translate(-50%, -50%)
    rotate(var(--ang))
    translateX(var(--rad))
    rotate(calc(var(--ang) * -1))
    scale(var(--stars-s));

  transition: opacity .35s linear, transform .35s linear;
  animation: starFloat 6s ease-in-out infinite;
}

/* 각도/반경(지구 주변 흩뿌리기) */
.hero-earth .star-1{ --ang:-35deg; --rad:480px; }
.hero-earth .star-2{ --ang: 20deg; --rad:380px; animation-delay:.6s; }
.hero-earth .star-3{ --ang: 95deg; --rad:350px; animation-delay:1.2s; }
.hero-earth .star-4{ --ang:155deg; --rad:410px; animation-delay:1.8s; }
.hero-earth .star-5{ --ang:230deg; --rad:410px; animation-delay:1.8s; }

@keyframes starFloat{
  0%,100%{
    transform:
      translate(-50%, -50%)
      rotate(var(--ang))
      translateX(var(--rad))
      rotate(calc(var(--ang) * -1))
      scale(calc(var(--stars-s) * var(--star-scale)));
  }
  50%{
    transform:
      translate(-50%, -50%)
      rotate(var(--ang))
      translateX(calc(var(--rad) + 10px))
      rotate(calc(var(--ang) * -1))
      scale(calc((var(--stars-s) + 0.02) * var(--star-scale)));
  }
}

.hero-earth .star-dot{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  filter:
    drop-shadow(0 0 18px rgba(255,255,255,0.25))
    drop-shadow(0 0 48px rgba(120,200,255,0.18));
}

.hero-earth .star-dot img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-earth .star-label{
  margin-left: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 12px 40px rgba(0,0,0,0.75);
}

@media (max-width: 768px){
  .hero-earth .star-1{ --rad:170px; }
  .hero-earth .star-2{ --rad:215px; }
  .hero-earth .star-3{ --rad:185px; }
  .hero-earth .star-4{ --rad:230px; }
  .hero-earth .star-5{ --rad:220px; }
}

.star-1{ --star-scale: 1.45; }   /* something */
.star-2{ --star-scale: 1.05; }   /* anything */
.star-3{ --star-scale: 0.9;  }   /* nothing */
.star-4{ --star-scale: 1.3;  }   /* whatelse (메인 느낌) */
.star-5{ --star-scale: 1.6;  }   /* whatever */

/* 홈(첫화면)에서만 우측 상단 메인 메뉴 숨김 */
.home .main-nav{
  display: none !important;
}

/* 🌍 Earth slow rotation (very subtle) */
.hero-earth > img{
  animation: earthSpin 480s linear infinite;
  transform-origin: 50% 50%;
}

/* 극저속 자전 */
@keyframes earthSpin{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(360deg);
  }
}


/* ===============================
   HOME - LATEST POSTS 첫화면에 최근글 3개 카드 보이기
=============================== */

.home-latest{
  padding: 120px 0 140px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.0),
    rgba(0,0,0,0.85)
  );
}

.home-latest-title{
  margin-bottom: 36px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92);
}

.home-latest-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
}

.home-latest-card{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  transition: transform .4s ease, box-shadow .4s ease;
}

.home-latest-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.home-latest-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-latest-thumb img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-latest-body{
  padding: 18px 18px 22px;
}

.home-latest-title-sm{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  color: rgba(255,255,255,0.92);
}

.home-latest-date{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.home-latest-excerpt{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}

/* 모바일 */
@media (max-width: 1024px){
  .home-latest-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .home-latest-grid{
    grid-template-columns: 1fr;
  }
}

/* 홈 최신글 카드: 썸네일 없는 버전 */
.home .home-latest .post-card{
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* 홈에서는 썸네일 영역이 있으면 숨김 */
.home .home-latest .post-card-thumb{
  display:none !important;
}

/* 발췌 텍스트 줄 수 제한(너무 길어지지 않게) */
.home .home-latest .post-card-excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 2~4로 조절 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.85;
}


/* ✅ FINAL OVERRIDE: 최근글 구간에서는 히어로(지구/별) 강제 숨김 */
.home .hero-thought.hero-out .hero-earth,
.home .hero-thought.hero-out .hero-star-nav{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .35s ease, visibility .35s ease;
}

/* 별 링크도 확실히 */
.home .hero-thought.hero-out .star-link{
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================
   FOOTER – Quiet Space
========================= */



.site-footer{
  margin-top: 80px; /* 본문과 확실한 거리 */
  padding: 60px 24px 44px;
  background: linear-gradient(
    180deg,
    #e4e3e300 10%,
    rgba(67, 67, 68, 0.65) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  color: rgba(20, 20, 20, 0.75);
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 브랜드 문구 */
.footer-title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.footer-tagline{
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.644);
}

/* 하단 메타 */
.footer-meta{
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(241, 241, 241, 0.986);
}


/* 모바일 */
@media (max-width: 768px){
  .site-footer{
    margin-top: 96px;
    padding: 64px 20px 56px;
  }
}

/* =========================
   POST AFTERGLOW
========================= */

.post-afterglow{
  margin-top: 100px;
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
}

/* 위쪽 은은한 구분선 */
.post-afterglow::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width: 180px;
  height:1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
}

/* 내용 */
.afterglow-inner{
  max-width: 680px;
  margin: 0 auto;
}

.afterglow-line{
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.801);
  text-shadow: 0 12px 40px rgba(0,0,0,0.65);
}

/* 링크 */
.afterglow-actions{
  margin-top: 40px;
}

.afterglow-link{
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  position: relative;
}

.afterglow-link::after{
  content:"";
  display:block;
  width:100%;
  height:1px;
  background: rgba(255,255,255,0.35);
  margin-top: 6px;
  opacity: 0.4;
  transition: opacity .3s ease;
}

.afterglow-link:hover::after{
  opacity: 0.9;
}
.post-afterglow{
  margin-top: 80px;
  padding: 90px 24px 110px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,12,18,0), rgba(10,12,18,0.08), rgba(10,12,18,0));
}

.afterglow-line{ color:#888888; }
.afterglow-link{ color:#333; }


.hero-world::before{
  filter: brightness(0.72) contrast(1.08) saturate(1.05) hue-rotate(var(--world-hue, 0deg)) !important;
}

/* 카테고리(월드) 페이지 히어로는 짧게 */
.hero-world{
  height: 100vh;         /* 200vh면 너무 김 */
  min-height: 720px;     /* 취향 */
}

/* 혹시 히어로가 아래 컨텐츠 클릭/표시를 덮는 느낌이면 */
.hero-world{ position: relative; z-index: 1; }
.page-layout{ position: relative; z-index: 2; }

/* 1) 홈에서는 지금처럼 fixed 유지 */
.home .hero-earth{
  position: fixed;
}

/* 2) 카테고리(월드) 페이지에서는 fixed 금지 → 히어로 안에만 */
.hero-world .hero-earth{
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* 별 네비도 히어로 안에서만 */
.hero-world .hero-star-nav{
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* 3) 히어로 아래 컨텐츠는 항상 위로 올라오게 */
.page-layout{
  position: relative;
  z-index: 10;
}

.category-page{
  background: rgba(0, 0, 0, 0.158);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
}

/* 글목록/사이드바 공통 패널 */
.category-page,
.page-sidebar{
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(102, 101, 101, 0.281);
}

/* 제목/본문/메타 흰색 계열 */
.category-page .page-title,
.category-page .post-row-title a,
.category-page .post-row-excerpt,
.category-page time,
.page-sidebar,
.page-sidebar a{
  color: rgba(241, 241, 241, 0.88) !important;
}

/* 링크 호버 */
.category-page a:hover,
.page-sidebar a:hover{
  color: #fff !important;
}

/* 카테고리 페이지: 사이드바/본문 패널을 “진짜” 반투명으로 */
.page-layout .category-page,
.page-layout .page-sidebar{
  background: rgba(0,0,0,0.38) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: rgba(255,255,255,0.88) !important;
}

/* ✅ 핵심: 사이드바 ‘안쪽 카드/위젯’까지 투명 처리 */
.page-layout .page-sidebar .widget,
.page-layout .page-sidebar .widget *:not(a):not(svg):not(path),
.page-layout .page-sidebar .sidebar-box,
.page-layout .page-sidebar .sidebar-card,
.page-layout .page-sidebar .postlist-box{
  background: transparent !important;
}

/* 사이드바 글자색/링크 */
.page-layout .page-sidebar,
.page-layout .page-sidebar a{
  color: rgba(255,255,255,0.88) !important;
}
.page-layout .page-sidebar a:hover{
  color: #fff !important;
}

/* 리스트 구분선이 너무 하얗게 보이면 */
.page-layout .page-sidebar li,
.page-layout .page-sidebar .post-row{
  border-color: rgba(255,255,255,0.10) !important;
}

/* ===============================
   SINGLE: Space Logbook Theme
   =============================== */

/* 글 상세 전체 배경을 우주로 */
.single .site{
  background: #000;
}

.single body{
  color: rgba(255,255,255,0.86);
}

/* 상단 로그북 히어로 */
.logbook-hero{
  position: relative;
  overflow: hidden;
  padding: 110px 0 54px;
  background: #00000010;
}

.logbook-bg{
  position: absolute;
  inset: 0;
  background-image: var(--space-bg, url("https://vinaida.xyz/wp-content/uploads/2026/02/space11.webp"));
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) contrast(1.05);
  transform: scale(1.06);
  animation: spaceDrift 22s ease-in-out infinite;
}

.logbook-inner{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;

  /* 글래스 패널 */
  background: rgba(10, 12, 18, 0.651);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  padding: 34px 34px 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.logbook-kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.62);
}

.logbook-title{
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: rgba(255,255,255,0.92);
}

.logbook-meta{
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

.logbook-sub{
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}

.logbook-divider{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0.9;
}

/* 본문 패널(가독성) */
.single-layout{
  position: relative;
  z-index: 2;
  margin-top: 26px;
}

.single-main{
  background: rgba(10, 12, 18, 0.199);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  padding: 28px 28px 32px;
}

.single-content p,
.single-content li,
.single-content blockquote{
  color: rgba(255,255,255,0.82);
}

/* 링크 */
.single a{ color: rgba(180,220,255,0.92); }
.single a:hover{ color: rgba(255,255,255,0.95); }

/* 대표이미지(로그북 안에 자연스럽게) */
.single-featured img{
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

/* 사이드바 글래스 */
.single-sidebar .sidebar-box{
  background: rgba(10,12,18,0.36) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(10px);
}

.single-sidebar .sidebar-title,
.single-sidebar a,
.single-sidebar .sidebar-date{
  color: rgba(255,255,255,0.78) !important;
}

/* 모바일 */
@media (max-width: 1024px){
  .logbook-inner, .logbook-divider{ padding: 0 24px; }
  .logbook-inner{ padding: 26px; }
  .single-main{ padding: 22px; }
}

/* ===============================
   SINGLE OVERRIDE (force space)
   =============================== */

/* 페이지 바탕도 우주로 */
.single body{
  background: #000;
  color: rgba(255,255,255,0.86);
}

/* 레이아웃 컨테이너(기존 흰 배경/패딩 제거) */
.single .page-content,
.single .single-layout{
  background: transparent !important;
}

/* 본문 카드: 회색 제거 → 글래스 */
.single .single-main{
  background: rgba(10, 12, 18, 0.26) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

/* 제목/메타(본문 안의 것) 색 보정 */
.single .single-title,
.single .single-meta{
  color: rgba(255,255,255,0.88) !important;
}

/* 본문 텍스트 전반 */
.single .single-content,
.single .single-content p,
.single .single-content li,
.single .single-content blockquote{
  color: rgba(255, 255, 255, 0.932) !important;
}

/* 본문 안 이미지도 톤 맞추기 */
.single .single-featured img,
.single .single-content img{
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

/* 이전/다음 네비도 우주 톤 */
.single .post-nav{
  background: rgba(10,12,18,0.30) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.single .post-nav a{
  color: rgba(200,230,255,0.88) !important;
}

/* ✅ 사이드바 박스: 회색 제거 → 글래스 */
.single .single-sidebar,
.single .single-sidebar .sidebar-box,
.single .single-sidebar .wp-block-group{
  background: rgba(60, 60, 61, 0.144) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 사이드바 글씨 */
.single .single-sidebar,
.single .single-sidebar *{
  color: rgba(255,255,255,0.82) !important;
}
.single .single-sidebar a:hover{
  color: rgba(255,255,255,0.95) !important;
}

/* 푸터도 우주톤으로 (밑에 흰 그라데이션 느낌 제거) */
.single .site-footer{
  background: transparent !important;
  color: rgba(255,255,255,0.62) !important;
}

.single .site,
.single .site-content,
.single main{
  background: transparent !important;
}

.single .single-main > .single-title,
.single .single-main > .single-meta{
  display:none;
}

/* =========================
   SINGLE: SPACE BACKGROUND
========================= */

/* 글 상세 페이지 전체에 우주 배경 */
body.single{
  background: url("https://vinaida.xyz/wp-content/uploads/2026/02/space11.webp") center/cover fixed no-repeat !important;
  color: rgba(255,255,255,0.86);
}

/* 테마가 깔아둔 흰 배경/래퍼 제거 */
body.single .site,
body.single .site-content,
body.single main,
body.single .page-content{
  background: transparent !important;
}

/* =========================
   SINGLE: GLASS PANELS
========================= */

/* 왼쪽 본문 패널(조금 밝은 회색 반투명) */
body.single .single-main{
  background: rgba(120, 120, 120, 0.158) !important; /* ✅ 회색 반투명 */
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 22px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 24px 90px rgba(0,0,0,0.45);
}

/* 대표이미지 영역도 반투명 카드 느낌으로 */

body.single .single-featured img{
  border-radius: 14px;
  display:block;
  width:300px;
  height:auto;
}

/* 오른쪽 사이드바(더 짙은 회색 반투명) */
body.single .single-sidebar,
body.single .single-sidebar .sidebar-box,
body.single .single-sidebar .wp-block-group{
  background: rgba(25, 25, 25, 0.123) !important; /* ✅ 짙은 회색 반투명 */
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 18px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* 글씨/링크는 흰색 계열로 */
body.single .single-title,
body.single .single-meta,
body.single .single-content,
body.single .single-content p,
body.single .single-content li{
  color: rgba(255,255,255,0.86) !important;
}

body.single .single-sidebar,
body.single .single-sidebar *{
  color: rgba(255,255,255,0.82) !important;
}
body.single .single-sidebar a:hover{
  color: rgba(255,255,255,0.95) !important;
}

/* ✅ 대표이미지 감싸는 박스(회색 2겹 원인) 제거 */
body.single .single-featured{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* 혹시 테마가 figure에 배경을 주는 경우까지 차단 */
body.single .single-featured,
body.single .single-featured *{
  box-shadow: none !important;
}

/* 이미지 자체만 깔끔하게 */
body.single .single-featured img{
  border-radius: 18px; /* 취향 */
  display:block;
}

/* ✅ WP 블록 이미지 wrapper가 배경/패딩 주는 경우 제거 */
body.single .single-content figure,
body.single .single-content .wp-block-image{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ✅ SPACE LOGBOOK 제목 카드(히어로 타이틀 박스) 뒤 비침 차단 */
body.single .space-logbook,
body.single .single-hero,
body.single .single-hero-inner,
body.single .logbook-hero,
body.single .hero-logbook,
body.single .post-hero{
  /* 위 클래스 중 실제로 있는 것만 먹음(안전하게 여러 개 걸어둠) */
  background: rgba(0, 0, 0, 0) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(10px);
}

/* ✅ ACF 히어로 텍스트 박스는 확실히 잡힘 */
body.single .acf-hero-text{
  background: rgba(0, 0, 0, 0) !important; /* 비침 끊기 */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

/* ✅ 히어로/배경 fixed 효과 끄기(움직임 체감 제거) */
body.single .acf-hero,
body.single .hero-thought,
body.single .hero-world{
  background-attachment: scroll !important;
}

/* ✅ 본문(에디터) 삽입 이미지 주변 박스/배경/패딩 제거 */
body.single .single-content figure,
body.single .single-content .wp-block-image,
body.single .single-content .wp-block-image figure,
body.single .single-content .wp-block-image .wp-element-caption{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ✅ 이미지 자체만 둥글게(원하면 값 조절/삭제) */
body.single .single-content img{
  display:block;
  border-radius: 18px;
}

/* ✅ 상단 포스트 제목 카드 뒤로 보이는 우주배경 완전 차단 */
body.single .acf-hero-text{
  background: #0b0f1800 !important;  /* 완전 불투명 */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ✅ 혹시 다른 래퍼가 배경 투명하게 만들어도 강제 불투명 */
body.single .acf-hero,
body.single .acf-hero-media{
  background: transparent !important; /* 히어로 자체는 투명 OK */
}

/* 1) 상단 포스트 제목 박스(로그북 헤더) 안쪽 "움직이는 우주배경" 제거 */
.logbook-hero .logbook-bg{
  background-image: none !important;
  filter: none !important;
  animation: none !important;
  opacity: 1 !important; /* 배경 레이어 자체는 유지(검은 그라데이션만 남기고 싶으면 OK) */
}

/* 혹시 logbook-bg가 "반투명 검은 그라데이션"까지 같이 담당해서 더 어두워지는 게 싫으면,
   아래처럼 완전 숨김으로 바꿔도 됨. (원하면 이걸로 교체)
.logbook-hero .logbook-bg{ display:none !important; }
*/


/* 2) 본문에 삽입한 이미지(블록 에디터 이미지) 주변의 옅은 박스/패딩/배경 제거 */
.single .single-content figure.wp-block-image,
.single .single-content .wp-block-image{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 24px 0 !important; /* 여백은 취향 */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 이미지 자체에 혹시 그림자/배경이 들어가면 제거 */
.single .single-content .wp-block-image img,
.single .single-content img{
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* ✅ single 상단 제목 영역: logbook-bg 우주배경/움직임 완전 제거 */
.single .logbook-hero .logbook-bg{
  background-image: none !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* 혹시 ::before/::after로도 깔아둔 경우까지 싹 제거 */
.single .logbook-hero .logbook-bg::before,
.single .logbook-hero .logbook-bg::after{
  content: none !important;
  background: none !important;
  animation: none !important;
}


.single .single-featured img{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* ===== Astronaut overlay: 항상 첫 화면에 보이도록 고정 ===== */
#astro-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999; /* 무조건 위로 */
  opacity: 1;
  transition: opacity 220ms linear;
}

/* 우주인: 둥둥(느린 리듬) */
#astro-img{
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(340px, 46vw);
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
  animation: astroFloat 4.6s ease-in-out infinite;
}

/* 공의 위치(우주인 옆) + 공 자체 둥둥(다른 리듬/위상) */
#ball-wrap{
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) translateX(170px) translateY(-20px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
  animation: ballFloat 3.1s ease-in-out infinite;
}

/* 공: 자전은 이미지에만(빠르게 2.6초/바퀴) */
#ball-img{
  width: min(76px, 10vw);
  height: auto;
  display: block;
  transform-origin: 50% 50%;
  animation: ballSpin 9.6s linear infinite;
}

/* 우주인 둥둥 */
@keyframes astroFloat{
  0%,100% { transform: translate(-50%, -50%) translateY(0); }
  50%     { transform: translate(-50%, -50%) translateY(-14px); }
}

/* 공 둥둥: 우주인과 “리듬 + 방향” 다르게 */
@keyframes ballFloat{
  0%,100% { transform: translate(-50%, -50%) translateX(170px) translateY(-20px) translateY(6px)  translateX(-6px) scale(1); }
  50%     { transform: translate(-50%, -50%) translateX(170px) translateY(-20px) translateY(-10px) translateX(8px)  scale(1.04); }
}

/* 공 자전 */
@keyframes ballSpin{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

