@charset "UTF-8";
/* 행운 부적: 오행마다 색 두 값(--tl-c 강조, --tl-bg 배경)만 바뀐다. 색·글꼴·모서리는 테마 토큰을 쓴다. */
.tl { --tl-c: #4f9a5b; --tl-ink: #29683e; --tl-bg: #e8f3dc; --tl-bg2: #b9dcae; }
.tl[data-el="fire"] { --tl-c: #e2553a; --tl-ink: #a02818; --tl-bg: #fde8da; --tl-bg2: #f6b69f; }
.tl[data-el="earth"] { --tl-c: #c28a3a; --tl-ink: #7e521e; --tl-bg: #f6ead2; --tl-bg2: #e5c88e; }
.tl[data-el="metal"] { --tl-c: #b8923a; --tl-ink: #6e5516; --tl-bg: #f1f2f5; --tl-bg2: #cfd5e0; }
.tl[data-el="water"] { --tl-c: #4c60b2; --tl-ink: #232f70; --tl-bg: #e3e8f6; --tl-bg2: #a9b7e6; }

.tl-hero { text-align: center; }
.tl-title { margin: 6px 0 8px; }
.tl .tl-lead { margin: 0 auto; max-width: 560px; text-align: center; }
.tl .pm-card ~ .pm-card { margin-top: 16px; }

.tl-who { padding: 18px 22px; }
.tl-who-line { margin: 0 0 6px; font-size: 16px; line-height: 1.6; }
.tl-who-el { display: inline-block; padding: 0 10px; border-radius: var(--pm-r-pill); background: var(--tl-c); color: #fff; font-family: var(--pm-font-head); }
.tl-who-el[data-el="wood"] { background: #4f9a5b; }
.tl-who-el[data-el="fire"] { background: #d4492e; }
.tl-who-el[data-el="earth"] { background: #a8732a; }
.tl-who-el[data-el="metal"] { background: #8a6d1f; }
.tl-who-el[data-el="water"] { background: #4c60b2; }
.tl-who-note { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--pm-sub-text); }
.tl-face { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--pm-r-card); background: var(--pm-soft); }
.tl-face[hidden], .tl-act[hidden] { display: none; }
.tl-face-t { flex: 1 1 200px; margin: 0; font-size: 14.5px; line-height: 1.55; word-break: keep-all; }
.tl-face .pm-btn { min-height: 44px; flex: 0 0 auto; }
.tl-who--cta { text-align: center; }
.tl-who--cta .tl-cta { margin: 6px 0 4px; }

.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.tl-grid > * { max-width: none; }
.tl-grid .pm-card + .pm-card { margin-top: 0; }

/* ---- 무대 ---- */
.tl-stage-card { display: flex; flex-direction: column; align-items: center; padding: 20px 16px 14px; }
.tl-stage { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 5; border-radius: var(--pm-r-card); overflow: hidden; background: radial-gradient(120% 90% at 50% 38%, #fff 0%, var(--tl-bg) 55%, var(--tl-bg2) 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: 3px; }
.tl-stage:focus-visible { outline: 3px solid var(--pm-focus); }
.tl-fallback, .tl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tl-fallback { object-fit: cover; transition: opacity .35s; }
.tl-canvas { opacity: 0; transition: opacity .35s; cursor: grab; }
.tl-stage.is-3d .tl-canvas { opacity: 1; }
.tl-stage.is-3d .tl-fallback { opacity: 0; pointer-events: none; }
.tl-stage.is-drag .tl-canvas { cursor: grabbing; }
.tl-hint { margin: 10px 0 0; font-size: 13px; color: var(--pm-sub-text); text-align: center; }
.tl-hint[hidden] { display: none; }

/* ---- 고르기 ---- */
.tl-panel { padding: 22px 20px; }
.tl-h { margin: 0 0 8px; font-family: var(--pm-font-head); font-size: 18px; font-weight: 400; color: var(--pm-ink); }
.tl-h:not(:first-child) { margin-top: 18px; }
.tl-chips { display: grid; gap: 8px; }
.tl-chips--el { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tl-chips--th { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-chip { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; padding: 6px 4px; border: 2px solid var(--pm-line); border-radius: var(--pm-r-input); background: var(--pm-cream); color: var(--pm-ink); font-family: var(--pm-font-body); cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.tl-chips--th .tl-chip { min-height: var(--pm-tap); flex-direction: row; }
.tl-chip:hover { background: var(--pm-soft); }
.tl-chip:focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }
.tl-chip[aria-checked="true"] { border-color: var(--tl-c); background: var(--tl-bg); box-shadow: 0 0 0 2px var(--tl-c) inset; }
.tl-chip-main { font-family: var(--pm-font-head); font-size: 20px; line-height: 1.1; }
.tl-chip-sub { font-size: 12px; line-height: 1.2; color: var(--pm-sub-text); white-space: nowrap; }
.tl-chips--el .tl-chip[data-el="wood"] .tl-chip-main { color: #2f7a43; }
.tl-chips--el .tl-chip[data-el="fire"] .tl-chip-main { color: #c23a22; }
.tl-chips--el .tl-chip[data-el="earth"] .tl-chip-main { color: #94611f; }
.tl-chips--el .tl-chip[data-el="metal"] .tl-chip-main { color: #7d6320; }
.tl-chips--el .tl-chip[data-el="water"] .tl-chip-main { color: #34459a; }

.tl-text { margin-top: 18px; padding: 16px 16px 14px; border-radius: var(--pm-r-card); background: var(--tl-bg); }
.tl-motif { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--tl-ink); }
.tl-card-title { margin: 0 0 8px; font-family: var(--pm-font-head); font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--pm-ink); }
.tl-card-body { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--pm-ink); }
.tl-vow { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--pm-r-input); background: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.5; color: var(--pm-ink); }
.tl-vow span { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: var(--pm-r-pill); background: var(--tl-ink); color: #fff; font-size: 12px; font-weight: 700; }
.tl-el-desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--pm-sub-text); }

.tl-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tl-act { box-sizing: border-box; padding: 10px 6px; font-size: 15px; text-align: center; line-height: 1.25; }
.tl-toast { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--pm-info-ink); text-align: center; }
.tl-note { margin: 16px auto 0; max-width: 560px; font-size: 13px; line-height: 1.6; color: var(--pm-sub-text); text-align: center; }

@media (min-width: 860px) {
  .tl-grid { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .tl-stage { width: min(100%, 360px); }
}
@media (max-width: 420px) {
  .tl-stage-card { padding: 14px 10px 10px; }
  .tl-panel { padding: 18px 14px; }
  .tl-chip-main { font-size: 19px; }
  .tl-act { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-chip, .tl-fallback, .tl-canvas { transition: none; }
}
