/* 까치 타로 */
.tr-hero { position: relative; display: flex; align-items: center; gap: 16px; margin: 10px 0 16px; padding: 20px 18px; border-radius: 22px; background: radial-gradient(circle at 85% 0%, #37447d, #1c2a52 55%, #131c38); color: #fff; overflow: hidden; }
.tr-hero.hidden { display: none; }
.tr-fan { position: relative; flex: none; width: 118px; height: 136px; }
.tr-fan > div { position: absolute; left: 24px; top: 10px; width: 70px; aspect-ratio: 100 / 170; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.tr-fan > div:nth-child(1) { transform: rotate(-15deg) translate(-24px, 3px); }
.tr-fan > div:nth-child(2) { z-index: 1; }
.tr-fan > div:nth-child(3) { transform: rotate(15deg) translate(24px, 3px); }
.tr-fan .tr-face { border-radius: 8px; }
.tr-fan .tr-face b { font-size: 7.5px; }
.tr-hero small { color: #e3b95a; font-size: 13px; font-weight: 800; }
.tr-hero h1 { margin: 6px 0; font-size: 22px; color: #fff; }
.tr-hero p { color: #d5d8e4; font-size: 13.5px; line-height: 1.55; }
.tr-ico { display: inline-block; width: 24px; height: 36px; border: 2px solid #e3b95a; border-radius: 5px; background: #1c2a52; }
.tr-ico.three { box-shadow: 7px 0 0 -2px #1c2a52, 7px 0 0 0 #e3b95a, -7px 0 0 -2px #1c2a52, -7px 0 0 0 #e3b95a; }
.tr-ico.yn, .tr-ico.heart { display: inline-grid; place-items: center; color: #e3b95a; font-style: normal; font-size: 15px; font-weight: 800; line-height: 1; }
.f-card p.tr-yn { margin: 0 0 4px; text-align: center; font-family: var(--serif); font-size: 34px; font-weight: 800; color: #1c2a52; }
.f-card p.tr-yn-y { color: #2c6b45; }
.f-card p.tr-yn-n { color: #a33a2a; }
.f-card p.tr-yn-h { color: #8a6a20; font-size: 28px; }
.tr-qs { display: grid; gap: 8px; margin: 12px 0 4px; }
.tr-qs button { padding: 11px 14px; border: 1.5px solid #d8c7a3; border-radius: 12px; background: #fffaf0; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; }
.tr-qs button.on { border-color: #1c2a52; background: #1c2a52; color: #f3dfae; }
.tr-talk h2 { margin-top: 6px; font-size: 24px; line-height: 1.35; text-align: left; color: #1c2a52; }
.f-card p.tr-date + h2 { margin-top: 6px; }
.tr-talk p.tr-date { text-align: left; }
.f-card p.tr-answer { margin: 8px 0 6px; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.tr-talk h3 { margin-top: 16px; font-family: var(--serif); font-size: 17px; color: #1c2a52; }
.tr-say { margin: 4px 0 14px; text-align: center; font-weight: 700; line-height: 1.6; }
.tr-deck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 6px; padding: 18px 12px; border-radius: 22px; background: radial-gradient(circle at 50% 0%, #37447d, #1c2a52 60%, #131c38); }
.tr-back { position: relative; padding: 0; border: none; background: none; aspect-ratio: 100 / 170; border-radius: 7px; transition: transform .25s ease, box-shadow .25s ease; animation: trDeal .45s backwards; animation-delay: calc(var(--k) * 28ms); }
.tr-back:hover, .tr-back:focus-visible { transform: translateY(-6px); box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.tr-back.on { transform: translateY(-10px) scale(1.06); box-shadow: 0 0 0 2px #e3b95a, 0 0 22px rgba(227,185,90,.7); }
@keyframes trDeal { from { transform: translateY(18px) rotate(-4deg); } to { transform: none; } }
.tr-back svg, .tr-face svg, .tr-b svg { display: block; width: 100%; height: 100%; fill: none; stroke: #e3b95a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-back svg, .tr-b svg { background: #131c38; border-radius: 7px; }
.tr-back svg .thin, .tr-face svg .thin, .tr-b svg .thin { stroke-width: .7; opacity: .75; }
.tr-back img, .tr-b img { position: absolute; left: 29%; top: 38%; width: 42%; aspect-ratio: 1; object-fit: contain; filter: brightness(0) invert(82%) sepia(38%) saturate(640%) hue-rotate(352deg); }
.tr-flip { width: 172px; margin: 14px auto 16px; aspect-ratio: 100 / 170; perspective: 900px; }
.tr-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.7,.3,1); }
.tr-flip.open .tr-in { transform: rotateY(180deg); }
.tr-b, .tr-f { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.tr-f { transform: rotateY(180deg); }
.tr-face { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at 50% 35%, #37447d, #1c2a52 62%, #131c38); border-radius: 12px; }
.tr-face.rev { transform: rotate(180deg); }
.tr-face svg text { fill: #e3b95a; stroke: none; font: 800 10px var(--serif); text-anchor: middle; }
.tr-face b { white-space: nowrap; letter-spacing: -.02em; position: absolute; left: 0; right: 0; bottom: 4.5%; text-align: center; color: #f3dfae; font-family: var(--serif); font-size: 15px; }
.tr-card { text-align: left; }
.tr-card h2 { text-align: center; margin-top: 18px; }
.f-card p.tr-date { text-align: center; color: #8a6a20; font-size: 13px; font-weight: 700; }
.f-card p.tr-kw { color: #8a6a20; font-size: 13.5px; font-weight: 700; }
.tr-card > h2 + p.tr-kw { text-align: center; }
.f-card p.tr-line { margin: 8px 0 14px; text-align: center; color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 800; }
.tr-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 14px; }
.tr-col { text-align: center; }
.tr-col .tr-flip { width: 100%; max-width: 150px; margin: 6px auto 8px; }
.tr-col .tr-face b { font-size: 11px; }
.tr-col small { font-size: 12.5px; font-weight: 700; color: #8a6a20; }
@media (min-width: 900px) {
  .tr-hero { padding: 34px 44px; gap: 34px; }
  .tr-fan { width: 210px; height: 210px; margin-left: 10px; }
  .tr-fan > div { left: 48px; width: 114px; }
  .tr-fan > div:nth-child(1) { transform: rotate(-15deg) translate(-42px, 6px); }
  .tr-fan > div:nth-child(3) { transform: rotate(15deg) translate(42px, 6px); }
  .tr-fan .tr-face b { font-size: 12px; }
  .tr-hero h1 { font-size: 34px; }
  .tr-hero p { font-size: 16px; }
  .f-hub { grid-template-columns: repeat(2, 1fr); }
  .tr-deck { grid-template-columns: repeat(11, 1fr); gap: 16px 12px; padding: 30px 28px; }
  .tr-flip { width: 210px; }
  .tr-face b { font-size: 18px; }
  .tr-col .tr-flip { max-width: 180px; }
  .tr-col .tr-face b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tr-back { animation: none; } .tr-in, .tr-back { transition: none; } }
