/* 이어서 볼 풀이(src/next-reads.js): 모든 운세 결과 맨 아래(공유하기 바로 위). 2027년 신년 운세 · 인생 지도 · 우리 궁합 · 오늘의 운세 중
   지금 보는 풀이를 뺀 것을 3:4 카드로, 한 줄에 2개. 카드 전체가 링크.
   오늘의 운세 칸의 바탕·그림·빛은 홈 기능 카드와 같은 것(--feature-*, src/assets/home/icon-*.png). 인생 지도·우리 궁합 칸은 아래 .photo. */
/* 묶음: 위 6px 회색 구분선(화면 가장자리까지, 위 40 · 아래 32) + 제목 24 + 작은 설명 14 (사주 명식 결과 묶음과 같은 모양) */
.next-group { margin-top: var(--space-10); }
.next-group::before { content: ""; display: block; height: 6px; margin: 0 calc(var(--gutter) * -1) var(--space-8); background: var(--gray-100); }
.next-group > h3 { margin: 0 0 var(--space-3); color: var(--color-text-primary); font-size: var(--text-display); line-height: var(--leading-display); }
.next-group > h3 small { display: block; margin-top: var(--space-1); color: var(--color-text-tertiary); font-size: var(--text-caption); font-weight: var(--weight-regular); }
.next-group + .actions { margin-top: var(--space-8); }

.next-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.next-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
  aspect-ratio: 3 / 4; padding: var(--space-4); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--color-line);
  color: var(--color-text-primary); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.next-tile:active { transform: scale(.98); }
.next-tile:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.tile-art { position: relative; flex: 1; min-height: 0; margin-bottom: var(--space-2); }
/* 그림: 칸의 80% 크기로 가운데 */
.tile-art::after { content: ""; position: absolute; inset: 10%; background: var(--art) center / contain no-repeat; }
/* 뒤 둥근 빛 */
.tile-art::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: 165%; aspect-ratio: 1; max-width: 176px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow) 0, var(--glow) 40%, transparent 100%);
}
.next-tile b { font-size: min(var(--text-title-1), 6.2vw); line-height: var(--leading-title-2); font-weight: var(--weight-bold); white-space: nowrap; }  /* 22px, 좁은 폰에선 한 줄에 들도록 조금 작게 */
@media (max-width: 359px) { .next-tile { padding: var(--space-3); } }
.next-tile small { font-size: var(--text-caption); color: var(--color-text-secondary); word-break: keep-all; }
/* 궁금하게 만드는 값: 흐리게(실제 값 아님) */
.tease { display: inline-block; filter: blur(5px); user-select: none; -webkit-user-select: none; font-weight: var(--weight-bold); color: var(--color-text-primary); }
.next-tile.map { background: linear-gradient(180deg, var(--feature-map), var(--feature-map-end)); --art: url("./assets/home/icon-map.png"); --glow: var(--feature-map-glow); }
.next-tile.compat { background: linear-gradient(180deg, var(--feature-compat), var(--feature-compat-end)); --art: url("./assets/home/icon-compat.png"); --glow: var(--feature-compat-glow); }
.next-tile.today { background: linear-gradient(180deg, var(--feature-today), var(--feature-today-end)); --art: url("./assets/home/icon-today.png"); --glow: var(--feature-today-glow); }
/* 인생 지도·우리 궁합 칸: 홈 히어로 카드와 같은 그림(영상 첫 장면)을 꽉 채우고, 누르면 그 히어로 카드의 대화형으로.
   글자 자리는 오늘의 운세 칸과 같이 아래(제목 + 한 줄). 아래쪽은 흰색이 위로 흐려지며 글자를 받쳐 줌 */
.next-tile.photo { justify-content: flex-end; background: var(--photo) center top / cover no-repeat; }
/* 흐림 색: 그림 아래 25% 평균색(--tone)을 흰색에 섞어 밝게(글자가 읽히게) — 인생 지도 #bdaa90 모래빛, 우리 궁합 #c66d4d 문어 산호빛 */
.next-tile.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; --soft: color-mix(in srgb, var(--tone) 45%, #fff);
  background: linear-gradient(to top, var(--soft) 0%, var(--soft) 24%, color-mix(in srgb, var(--soft) 80%, transparent) 33%, color-mix(in srgb, var(--soft) 0%, transparent) 54%); }  /* 아래 24%는 꽉 채워 인생 지도 그림을 올린 경계(약 18%)가 안 보이게 */
.next-tile.map.photo { --photo: url("./assets/characters/turtle/main-poster.jpg"); --tone: #bdaa90; background-size: 100% auto; background-position: center calc(-1 * min(14vw, 64px)); background-color: color-mix(in srgb, #bdaa90 45%, #fff); }  /* 그림을 위로 올려 구선생이 글자 위로 보이게(아래 빈 곳은 흐림 색) */
.next-tile.compat.photo { --photo: url("./assets/characters/love/main-poster_v2.jpg"); --tone: #c66d4d; }
/* 2027년 신년 운세 칸: 정자의 붉은양 선비(히어로 카드 영상 첫 장면). 양이 그림 오른쪽 아래(81%, 74%)라 200%로 키워 아래·오른쪽(90%)에 맞추면
   양이 칸의 가운데 위(약 72%, 48%)로 와서 글자 위로 보임. 흐림 색은 그림 아래 25% 평균색 #d3a484(볕 든 흙빛) */
.next-tile.newyear.photo { --photo: url("./assets/characters/2027/main-poster_v2.jpg"); --tone: #d3a484; background-size: 200% auto; background-position: 90% 100%; }
/* 부자 사주 칸: 바닷속 다이아몬드와 문어 다리(히어로 카드 영상 첫 장면). 그림이 어두운 바다라 다른 칸과 달리 아래를 짙은 바다색
   #1b246b(그림 아래 25% 평균색)로 덮고 글자는 흰색. 다이아몬드(그림 가운데 아래 약 62%)가 글자 위로 오게 그림을 폭에 맞춰 위로 올림(최대 48px, 아래 빈 곳은 바다색) */
.next-tile.rich.photo { --photo: url("./assets/characters/rich/main-poster_v3.jpg"); --tone: #1b246b; background-size: 100% auto; background-position: center calc(-1 * min(12vw, 48px)); background-color: var(--tone); color: var(--color-text-inverse); }
.next-tile.rich.photo::before { background: linear-gradient(to top, var(--tone) 0%, var(--tone) 22%, color-mix(in srgb, var(--tone) 70%, transparent) 36%, transparent 58%); }
.next-tile.rich small, .next-tile.rich .tease { color: var(--color-text-inverse); }
/* 전생 사주 칸: 바닷속 동굴의 문어 마법사(히어로 카드 영상 첫 장면). 부자 사주 칸처럼 어두운 그림이라 아래를 그림 아래 25% 평균색 #424e99(남빛 바위)로 덮고 글자는 흰색.
   문어 마법사(그림 가운데)가 글자 위로 오게 위쪽 기준 */
.next-tile.previous.photo { --photo: url("./assets/characters/previous/main-poster_v3.jpg"); --tone: #424e99; background-position: center 35%; background-color: var(--tone); color: var(--color-text-inverse); }
.next-tile.previous.photo::before { background: linear-gradient(to top, var(--tone) 0%, var(--tone) 22%, color-mix(in srgb, var(--tone) 70%, transparent) 36%, transparent 58%); }
.next-tile.previous small, .next-tile.previous .tease { color: var(--color-text-inverse); }
/* 정통 사주 칸(사주 명식을 아직 안 본 사람에게만): 홈 정통 사주 히어로 카드와 같은 그림(붓을 든 문어도사, 영상 첫 장면).
   흐림 색은 그림 왼쪽 바닷물 평균색 #8eb4bc(물빛)를 흰색에 섞어 밝게, 글자는 다른 사진 칸처럼 어두운 색.
   문어도사 얼굴(그림 가운데 약 45%)이 글자에 덮이지 않게 그림을 폭에 맞춰 조금만 위로 올림(최대 20px: 더 올리면 다리가 글자 위로 드러남, 아래 빈 곳은 흐림 색) */
.next-tile.saju.photo { --photo: url("./assets/characters/muneo/motion/main-poster_v2.jpg"); --tone: #8eb4bc; background-size: 100% auto; background-position: center calc(-1 * min(5vw, 20px)); background-color: color-mix(in srgb, #8eb4bc 45%, #fff); }
/* '한정무료' 딱지(결제 켜기 전, 유료가 될 풀이 모두. 예전 NEW 딱지 자리·모양): 칸 왼쪽 위 12, 어디서나 빨강 바탕(--color-brand) + 흰 글자 11 굵게(홈 히어로 뱃지 옆 .hero-new와 같은 모양).
   홈 배너 그림(.banner) 위에도 같은 자리에 얹어요. 결제를 켜면(html.pay-on) 숨김 */
.pay-on .tile-new { display: none; }
.tile-new { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1; padding: 3px var(--space-2); border-radius: var(--radius-pill); background: var(--color-brand); color: var(--color-text-inverse); font-size: 11px; font-weight: var(--weight-bold); line-height: 1.4; letter-spacing: .02em; }
/* 홈 배너(.banner): 칸 모양 그대로 찍어 둔 3:4 그림 한 장(src/assets/banners, tools/save-banners.mjs). 제목·한 줄이 그림에 들어 있고 alt에 같은 글이 있어요. 딱지는 그림 위에 따로 */
.next-tile.banner { display: block; padding: 0; }
.next-tile.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.next-tile.banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--color-line); pointer-events: none; }
