/* 운세·테스트 쪽 (assets/play/play.css). 사이트 토큰만 써요(밝은·어두운 화면 모두). */
.play-fun .callout { margin-top: 0; padding: 8px 12px; }
.play-fun .callout p { margin: 0; }
.play-fun details { margin-top: 4px; font-size: 13px; color: var(--sub); }
.play-fun summary { cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; }
.play-fun .callout details p { margin: 4px 0 0; }
.small { font-size: 13px; }
.play-go { margin: 10px 0 0; font-weight: 700; }

/* 오늘의 운세 */
.fortune-lines { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.fortune-lines li { background: var(--sunk); border-radius: var(--r-sm); padding: 10px 12px; }
.fortune-lines strong { display: block; font-size: 12px; color: var(--brand-strong); margin-bottom: 2px; }
.fortune-all { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fortune-all li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fortune-all li a { font-weight: 700; margin-right: 6px; }

/* 타로 */
.tarot-glyph { width: 90px; height: auto; color: var(--brand); flex: none; }
.tarot-one { display: flex; gap: 16px; align-items: flex-start; }
.tarot-one h3 { margin: 0 0 4px; font-size: 16px; }
.tarot-one h3 + p { margin-top: 0; }
.tarot-spread { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tarot-spread > li { background: var(--sunk); border-radius: var(--r); padding: 12px; text-align: center; }
.tarot-spread > li p { text-align: left; }
.tarot-pos { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--sub); text-align: center !important; }
.tarot-slot { color: var(--weak); font-size: 13px; padding: 28px 0; }
.tarot-card { display: inline-block; transition: transform .4s; }
.tarot-card.rev { transform: rotate(180deg); }
.tarot-name { font-weight: 800; text-align: center !important; }
.tarot-topic { color: var(--brand-strong); }
@media (prefers-reduced-motion: reduce) { .tarot-card { transition: none; } }

/* 스낵 테스트 */
.ptest-q { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 0 0 12px; }
.ptest-q.done { border-color: var(--brand); }
.ptest-q legend { font-weight: 800; padding: 0 4px; }
.ptest-n { color: var(--brand-strong); font-size: 13px; margin-right: 4px; }
.ptest-o { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.ptest-o:hover { background: var(--sunk); }
.ptest-o input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.ptest-type { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.ptest-type:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.ptest-type h3 { margin: 0; font-size: 17px; }
.ptest-type.mine { background: var(--brand-soft); border-radius: var(--r-sm); padding: 10px; }

/* 이름 궁합 피라미드 */
.pyramid { display: grid; gap: 4px; justify-items: center; margin: 8px 0; }
.pyramid p { margin: 0; display: flex; gap: 4px; }
.pyramid span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--sunk); font-weight: 700; font-variant-numeric: tabular-nums; }
.pyramid p:last-child span { background: var(--brand); color: #fff; }

/* 스도쿠 */
.sudoku { display: grid; grid-template-columns: repeat(9, 1fr); width: 100%; max-width: 432px; margin: 12px auto; border: 2px solid var(--text); border-radius: 6px; overflow: hidden; }
.sd-cell { aspect-ratio: 1; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0; text-align: center; font: inherit; font-size: clamp(16px, 4.6vw, 22px); font-weight: 600; background: var(--card); color: var(--brand-strong); padding: 0; caret-color: transparent; }
.sd-cell.given { color: var(--text); font-weight: 800; background: var(--sunk); }
.sd-cell:focus { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.sd-cell:nth-child(9n + 3), .sd-cell:nth-child(9n + 6) { border-right: 2px solid var(--text); }
.sd-cell:nth-child(n + 19):nth-child(-n + 27), .sd-cell:nth-child(n + 46):nth-child(-n + 54) { border-bottom: 2px solid var(--text); }
.sd-cell.bad { color: var(--up); }
.sd-cell.wrong { background: var(--rose-soft); }
.sudoku.solved .sd-cell { background: var(--mint-soft); }
.sd-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 432px; margin: 0 auto; }
.sd-pad button { min-height: 44px; font: inherit; font-weight: 700; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--text); cursor: pointer; }
.sd-status, .mn-status { text-align: center; font-weight: 700; }

/* 지뢰찾기 */
.mines-wrap { overflow-x: auto; }
.mines { display: grid; grid-template-columns: repeat(var(--cols, 9), minmax(28px, 1fr)); max-width: calc(var(--cols, 9) * 36px); margin: 8px auto; gap: 2px; user-select: none; -webkit-user-select: none; }
.mn-cell { aspect-ratio: 1; min-width: 28px; border: 0; border-radius: 4px; background: var(--sunk); color: var(--text); font: inherit; font-weight: 800; font-size: 14px; padding: 0; cursor: pointer; }
.mn-cell.start { outline: 2px dashed var(--brand); outline-offset: -3px; }
.mn-cell.open { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.mn-cell.flag { color: var(--up); }
.mn-cell.boom { background: var(--rose-soft); color: var(--up); }
.mn-cell.mine { color: var(--up); }
.mn-cell.n1 { color: var(--down); } .mn-cell.n2 { color: var(--mint); } .mn-cell.n3 { color: var(--up); } .mn-cell.n4 { color: var(--brand-strong); }
.mn-cell.n5, .mn-cell.n6, .mn-cell.n7, .mn-cell.n8 { color: var(--sun-ink, var(--text)); }
