@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: #fffbf7;
  color: #1a1a2e;
  line-height: 1.8;
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes headerFadeIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 공통 헤더 ── */
header {
  background: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
  color: white;
  text-align: center;
  padding: 56px 20px 36px;
  animation: headerFadeIn 0.6s ease both;
}

header h1 {
  font-size: 38px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

header .hero-slogan {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.97;
  letter-spacing: -0.3px;
}

header p {
  font-size: 15px;
  opacity: 0.87;
}

/* ── 네비게이션 ── */
nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #e85d20;
  padding: 12px 16px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(255,255,255,0.4);
}

/* ── 메인 레이아웃 ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 16px 56px;
}

/* ── 히어로 섹션 ── */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.seo-intro {
  font-size: 13px;
  color: #aaa;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 20px;
}

.hero h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.hero p {
  color: #888;
  font-size: 15px;
}

/* ── 카테고리 그리드 ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.category-card {
  background: white;
  border-radius: 22px;
  padding: 36px 20px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 2px solid transparent;
  animation: cardFadeUp 0.55s ease both;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0,0,0,0.13);
}

.category-grid .category-card:nth-child(1) { animation-delay: 0.05s; }
.category-grid .category-card:nth-child(2) { animation-delay: 0.13s; }
.category-grid .category-card:nth-child(3) { animation-delay: 0.21s; }
.category-grid .category-card:nth-child(4) { animation-delay: 0.29s; }

.card-indoor:hover  { border-color: #4f8ef7; }
.card-outdoor:hover { border-color: #4fcf8e; }
.card-small:hover   { border-color: #9b59b6; }
.card-large:hover   { border-color: #f7934f; }
.card-young:hover   { border-color: #ff6b9d; }
.card-older:hover   { border-color: #45b7d1; }
.card-adult:hover   { border-color: #4f46e5; }

.emoji-wrap, .card-illu {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 36px;
  transition: transform 0.22s ease;
}

.category-card:hover .emoji-wrap,
.category-card:hover .card-illu {
  transform: scale(1.12) rotate(-2deg);
}

.card-indoor  .emoji-wrap, .card-indoor  .card-illu { background: #e8f0ff; }
.card-outdoor .emoji-wrap, .card-outdoor .card-illu { background: #e6faf0; }
.card-small   .emoji-wrap, .card-small   .card-illu { background: #f3e8ff; }
.card-large   .emoji-wrap, .card-large   .card-illu { background: #fff3e0; }
.card-young   .emoji-wrap, .card-young   .card-illu { background: #fdf0f6; }
.card-older   .emoji-wrap, .card-older   .card-illu { background: #e8f7fd; }
.card-adult   .emoji-wrap, .card-adult   .card-illu { background: #eef2ff; }

.category-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

.category-card p {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
}

.category-card .arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}

.card-indoor  .arrow { color: #4f8ef7; }
.card-outdoor .arrow { color: #4fcf8e; }
.card-small   .arrow { color: #9b59b6; }
.card-large   .arrow { color: #f7934f; }
.card-young   .arrow { color: #ff6b9d; }
.card-older   .arrow { color: #45b7d1; }
.card-adult   .arrow { color: #4f46e5; }

/* ── 목록 페이지 공통 ── */
.page-header {
  background: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
  color: white;
  padding: 48px 20px 32px;
  text-align: center;
  animation: headerFadeIn 0.5s ease both;
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-header p {
  font-size: 14px;
  opacity: 0.9;
}

.page-header .tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tag {
  background: rgba(255,255,255,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 16px 56px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: #FF6B35;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.back-btn:hover { text-decoration: underline; }

/* ── 게임 목록 그리드 ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: white;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 30px rgba(255,107,53,0.15);
  border-color: #FF6B35;
}

.game-card .game-emoji {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.game-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.game-card .desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.6;
}

.game-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-badge {
  background: #fff3e0;
  color: #d45a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── 게임 상세 페이지 ── */
.game-header {
  background: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
  color: white;
  padding: 48px 20px 32px;
  text-align: center;
  animation: headerFadeIn 0.5s ease both;
}

.game-header h1 {
  font-size: 30px;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-header .subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.game-header .tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.info-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  margin-bottom: 40px;
}

.info-item {
  text-align: center;
}

.info-item .label {
  font-size: 11px;
  color: #bbb;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .value {
  font-size: 15px;
  font-weight: 700;
  color: #FF6B35;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid #FF6B35;
  color: #1a1a2e;
}

/* 단계별 설명 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  background: white;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  align-items: flex-start;
}

.step-num {
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step p {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-top: 3px;
}

/* 팁 박스 */
.tip-box {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.tip-box strong {
  color: #e65100;
}

.tip-box ul {
  margin-top: 10px;
  padding-left: 18px;
}

.tip-box li {
  margin-bottom: 6px;
}

/* 변형 방법 */
.variation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variation {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.75;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 3px solid #FFD700;
}

.variation strong {
  color: #e85d20;
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

/* ── 빙고 주제 카드 ── */
.bingo-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bingo-topic-card {
  border-radius: 14px;
  padding: 20px;
  border-left: 4px solid transparent;
}

.bingo-topic-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bingo-topic-sub {
  font-size: 12px;
  margin-bottom: 14px;
  opacity: 0.75;
}

.bingo-topic-list {
  padding-left: 18px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
}

.bingo-topic-list li {
  margin-bottom: 2px;
}

.bingo-blue  { background: #eff6ff; border-left-color: #3b82f6; }
.bingo-blue .bingo-topic-header  { color: #1d4ed8; }

.bingo-orange { background: #fff7ed; border-left-color: #f97316; }
.bingo-orange .bingo-topic-header { color: #c2410c; }

.bingo-green  { background: #f0fdf4; border-left-color: #22c55e; }
.bingo-green .bingo-topic-header  { color: #15803d; }

.bingo-pink   { background: #fdf2f8; border-left-color: #ec4899; }
.bingo-pink .bingo-topic-header   { color: #be185d; }

@media (max-width: 600px) {
  .bingo-topic-grid { grid-template-columns: 1fr; }
}

/* ── 섹션 타이틀 ── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a2e;
  text-align: center;
}

.section-title span {
  color: #FF6B35;
}

/* ── 히어로 배지 ── */
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* ── 푸터 ── */
footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
  color: #bbb;
  border-top: 1px solid #f0e8e0;
  background: white;
}

/* ── 검색 ── */
.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  padding: 0 16px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.search-wrap:focus-within {
  border-color: #FF6B35;
}

.search-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 14px 0;
  background: transparent;
  color: #1a1a2e;
  font-family: inherit;
}

#searchInput::placeholder {
  color: #bbb;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 50%;
  display: none;
  flex-shrink: 0;
  transition: color 0.15s;
}

.search-clear:hover { color: #888; }

.search-results {
  max-width: 480px;
  margin: 8px auto 0;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  text-decoration: none;
  color: #1a1a2e;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fff8f5; }

.search-result-item .r-emoji { font-size: 22px; flex-shrink: 0; }
.search-result-item .r-name { font-size: 14px; font-weight: 700; }
.search-result-item .r-tag { font-size: 12px; color: #bbb; margin-left: auto; flex-shrink: 0; }

.search-no-result {
  padding: 18px;
  color: #bbb;
  font-size: 14px;
  text-align: center;
}

/* ── 인기 게임 TOP5 ── */
.top5-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top5-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.top5-card:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(255,107,53,0.13);
  border-color: #FF6B35;
}

.top5-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top5-card:nth-child(1) .top5-rank { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.top5-card:nth-child(2) .top5-rank { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.top5-card:nth-child(3) .top5-rank { background: linear-gradient(135deg, #d97706, #fbbf24); }

.top5-emoji { font-size: 28px; flex-shrink: 0; }

.top5-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top5-info strong { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.top5-info span { font-size: 12px; color: #999; }

.top5-arrow {
  color: #FF6B35;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.top5-card:hover .top5-arrow { opacity: 1; }

/* ── 이런 분들에게 추천해요 ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.audience-card {
  background: white;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  border-left: 4px solid #FF6B35;
}

.audience-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.audience-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audience-card h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.45;
}

.audience-desc {
  font-size: 12.5px;
  color: #888;
  line-height: 1.75;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f3f3;
}

.audience-games {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audience-games a {
  display: block;
  font-size: 12.5px;
  color: #555;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 10px;
  background: #fafafa;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
}

.audience-games a:hover {
  background: #fff3e0;
  color: #FF6B35;
}

/* ── 상황별 추천 ── */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.situation-card {
  background: white;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
}

.situation-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fff3e0;
}

.situation-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.situation-games a {
  display: block;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fafafa;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
}

.situation-games a:hover {
  background: #fff3e0;
  color: #FF6B35;
}

/* ── 상황별 맞춤 추천 ── */
.smart-search { margin-bottom: 48px; }

.filter-panel {
  background: white;
  border-radius: 22px;
  padding: 24px 22px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.filter-row {
  padding: 13px 0;
  border-bottom: 1px solid #f3f3f3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.filter-row:last-of-type { border-bottom: none; padding-bottom: 4px; }

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #bbb;
  white-space: nowrap;
  padding-top: 9px;
  min-width: 52px;
  letter-spacing: 0.2px;
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }

.filter-btn {
  padding: 7px 15px;
  border-radius: 50px;
  border: 2px solid #e8e8e8;
  background: white;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.12s;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  outline: none;
  line-height: 1.4;
}
.filter-btn:hover  { border-color: #4f46e5; color: #4f46e5; transform: translateY(-1px); }
.filter-btn.active { background: #4f46e5; border-color: #4f46e5; color: white; transform: translateY(-1px); }

.reset-row { display: flex; justify-content: flex-end; margin-top: 14px; }

.reset-btn {
  background: none;
  border: 2px solid #e8e8e8;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #bbb;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  outline: none;
}
.reset-btn:hover { border-color: #FF6B35; color: #FF6B35; }

/* ── 전체 게임 보기 배너 ── */
.all-games-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff8f0, #fff3e0);
  border: 2px solid #fde8cc;
  border-radius: 20px;
  padding: 20px 24px;
  margin: 32px 0 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.all-games-banner:hover {
  border-color: #FF6B35;
  box-shadow: 0 6px 24px rgba(255,107,53,0.14);
  transform: translateY(-2px);
}
.all-games-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.all-games-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.all-games-text strong {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
}
.all-games-text span {
  font-size: 12px;
  color: #aaa;
}
.all-games-arrow {
  flex-shrink: 0;
  background: #FF6B35;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ── all-games.html 필터 바 ── */
.ag-filter-bar {
  background: white;
  border-radius: 18px;
  padding: 20px 20px 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  margin-bottom: 28px;
}
.ag-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ag-filter-row:last-child { margin-bottom: 0; }
.ag-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  min-width: 36px;
}
.ag-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid #eee;
  background: #fafafa;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  outline: none;
}
.ag-btn:hover { border-color: #FF6B35; color: #FF6B35; }
.ag-btn.active { background: #FF6B35; border-color: #FF6B35; color: white; }
.ag-count {
  font-size: 13px;
  color: #aaa;
  font-weight: 600;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.ag-count strong { color: #FF6B35; }

/* ── 하단 돌아가기 버튼 ── */
.bottom-back-nav {
  text-align: center;
  padding: 36px 0 12px;
}

.bottom-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border: 2px solid currentColor;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.15s;
  margin-bottom: 0;
}

.bottom-back-btn:hover {
  opacity: 1;
  text-decoration: none;
  transform: translateX(-3px);
}

/* ── 맨 위로 플로팅 버튼 ── */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FF6B35;
  color: white;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background: #e85d20;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.55);
}

/* ── FAQ 섹션 ── */
.faq-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 36px;
}

.faq-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid #FF6B35;
  color: #1a1a2e;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.5;
}

.faq-a {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}

/* ── 추천 게임 섹션 ── */
.recommended-section {
  padding: 44px 16px 36px;
  border-top: 1px solid #f0e8e0;
  background: #fffbf7;
}

.recommended-inner {
  max-width: 760px;
  margin: 0 auto;
}

.recommended-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.recommended-cta {
  text-align: center;
  margin-top: 28px;
}

.recommended-all-btn {
  display: inline-block;
  padding: 13px 32px;
  background: #FF6B35;
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.recommended-all-btn:hover {
  background: #e85d20;
  transform: translateX(3px);
  text-decoration: none;
}

/* ── 모바일 대응 ── */
@media (max-width: 480px) {
  header h1 { font-size: 28px; }
  header .hero-slogan { font-size: 14px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { padding: 24px 12px 20px; }
  .emoji-wrap { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-header h1, .page-header h1 { font-size: 24px; }
  .info-box { grid-template-columns: repeat(3, 1fr); }
  main { padding: 28px 14px 40px; }
  .search-wrap { margin-top: 20px; }
  #searchInput { font-size: 14px; }
  .situation-grid { grid-template-columns: 1fr; }
  .top5-info span { display: none; }
  .filter-panel { padding: 16px 14px 10px; }
  .filter-row { flex-direction: column; gap: 6px; }
  .filter-label { padding-top: 0; min-width: unset; }
  .filter-btn { font-size: 12px; padding: 6px 12px; }
  .all-games-banner { flex-wrap: wrap; gap: 12px; }
  .all-games-arrow { width: 100%; text-align: center; }
}
