/* 놀이 화면 공용 광고 칸 + "다른 놀이" 줄(2026-10-26 개발자3). fun-ads.js와 짝. 본문 14px 이상. */
/* 무효 클릭 방지(2026-10-26 대표 "무효 클릭 위험부터 고쳐"): 광고 칸 위·아래를 놀이 판·버튼에서 --fun-ad-gap 이상 띄우고,
   광고가 붙은 칸 위에 "광고" 표시를 단다. 간격 값은 이 변수 하나로만 정한다. */
:root { --fun-ad-gap: 48px; }
.fun-ad { max-width: none; margin: var(--fun-ad-gap) 16px var(--fun-ad-gap); }
.fun-ad:empty { margin-top: 0; margin-bottom: 0; }            /* 광고 설정이 꺼져 있으면 자리도 차지하지 않음 */
.fun-ad:not(:empty)::before { content: '광고'; display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #9CA3AF; text-align: center; }
.fun-ad:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }   /* 애드센스가 못 채운 칸은 숨김(표시만 남는 빈칸 방지) */
.fun-ad.hidden { display: none !important; }
.fun-ad-rect { text-align: center; }                          /* 고정 사각형(300×250·336×280, data-ad-size="rect") 가운데 정렬 - 2026-10-27 */
.fun-ad.preview { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed #9CA3AF; border-radius: 14px;
    background: #F9FAFB; font-size: 14px; font-weight: 800; color: #6B7280; }

.fun-more { margin: 24px 16px 0; padding: 16px; background: #fff; border: 1.5px solid #E5E7EB; border-radius: 22px; }
.fun-more:empty { display: none; }
.fun-more-title { font-size: 16px; font-weight: 900; color: #111827; margin-bottom: 10px; }
.fun-more-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fun-more-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: #F8F9FA;
    text-decoration: none; color: #212529; -webkit-tap-highlight-color: transparent; }
.fun-more-item:active { background: #F1F3F5; }
.fun-more-item .e { font-size: 26px; line-height: 1; }
.fun-more-item .n { font-size: 14px; font-weight: 800; text-align: center; word-break: keep-all; }
.fun-more-all { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 800; color: #7048E8; text-decoration: none; }
@media (min-width: 768px) { .fun-more-row { grid-template-columns: repeat(5, 1fr); } }

/* 쓰는 법(2026-10-27): 글이 적은 놀이 화면에 실제 도움말. 본문 15px. */
.fun-guide { margin: 24px 16px 0; padding: 18px 16px; background: #fff; border: 1.5px solid #E5E7EB; border-radius: 22px; color: #374151; }
.fun-guide h2 { font-size: 18px; font-weight: 900; color: #111827; margin: 0 0 8px; }
.fun-guide p, .fun-guide li { font-size: 15px; line-height: 1.7; word-break: keep-all; }
.fun-guide p { margin: 0 0 8px; }
.fun-guide ul { margin: 0 0 8px; padding-left: 18px; }
.fun-guide li { margin-bottom: 4px; }
.fun-guide b { color: #111827; }
.fun-guide-note { font-size: 14px !important; color: #6B7280; margin: 0 !important; }
/* 화면 아래 고정 광고(애드센스 자동 광고)가 맨 끝 내용을 덮지 않게 문서 끝에 여유를 둔다(2026-10-27) */
body::after { content: ''; display: block; height: 96px; }
/* 카톡으로 결과 보내기 버튼(2026-10-27, play/fun-share.js) - 노란 바탕(로고 없이 글자만) */
.fun-kakao { display: block; width: 100%; margin-top: 14px; font-family: inherit; font-size: 17px; font-weight: 900; color: #191919; background: #FEE500;
    border: 0; border-radius: 14px; padding: 14px; cursor: pointer; box-shadow: 0 4px 0 #E0C800; }
.fun-kakao:active { transform: translateY(2px); box-shadow: 0 2px 0 #E0C800; }
