:root {
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --secondary-color: #0d9488;
  --accent-color: #f59e0b;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e293b;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.4);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-lg: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', 'Outfit', sans-serif;
}

body {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  padding: 20px;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.portal-container {
  width: 100%;
  max-width: 1040px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Header */
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-badge {
  font-size: 3.2rem;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  padding: 10px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* 할로매쓰 로고(양순이). 배지 칸은 7번 누르면 관리자 로그인이 열리므로 그대로 두고 내용만 로고로 바꾼다 */
.brand {
  flex-wrap: wrap;
}

.logo-badge.logo-mark {
  background: none;
  padding: 0;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}

.logo-badge.logo-mark img {
  display: block;
  width: 270px;
  height: auto;
}

@media (max-width: 520px) {
  .logo-badge.logo-mark img {
    width: 220px;
  }
}

.brand h1 {
  font-family: 'Jua', sans-serif;
  font-size: 2.2rem;
  color: #0284c7;
  letter-spacing: -0.5px;
  word-break: keep-all;
  line-height: 1.3;
}

.brand .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Main Content Grid */
.portal-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Jua', sans-serif;
  font-size: 1.5rem;
  color: #0369a1;
}

/* Game Cards Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tool-grid {
  grid-template-columns: minmax(280px, 420px);
}

.game-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
}

.game-card.active {
  border-color: #0284c7;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.game-card.coming-soon {
  opacity: 0.75;
  background: #f8fafc;
}

.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.card-tag.tag-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.card-tag.tag-soon {
  background: #f1f5f9;
  color: #64748b;
}

.game-icon-box {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

/* 카드 위 그림(games/<게임>/assets/card.webp, tools/make-cards.py). 카드 가장자리까지 꽉 채운다 */
.game-cover {
  margin: -24px -24px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-bottom: 2px solid #e0f2fe;
}

.game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-cover img {
  transform: scale(1.04);
}

/* 아직 그림이 없는 게임은 큰 이모지로 자리만 맞춘다 */
.game-cover-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* 그림 속 게임 제목이 대개 오른쪽 위에 있어서 표시는 왼쪽 위로 옮긴다 */
.game-card:has(.game-cover) .card-tag {
  right: auto;
  left: 12px;
  top: 12px;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* 학년·단원 꼬리표: 선생님이 카드를 고를 때 보는 정보 */
.game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-bottom: 10px;
}

.game-chips li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.game-chips .chip-grade {
  background: #0284c7;
  color: #fff;
}

.game-title {
  font-family: 'Jua', sans-serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin-bottom: 6px;
  word-break: keep-all;
}

.game-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
  word-break: keep-all;
}

.btn-play-game {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  text-align: center;
  display: block;
}

.btn-play-game:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: scale(1.02);
}

.btn-disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* Leaderboard Section */
.leaderboard-fold {
  border: none;
}

.leaderboard-fold-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.leaderboard-fold-summary::-webkit-details-marker {
  display: none;
}

.leaderboard-fold-summary::before {
  content: '▸ ';
  color: #64748b;
  font-weight: 700;
}

.leaderboard-fold[open] .leaderboard-fold-summary::before {
  content: '▾ ';
}

.leaderboard-fold-summary h2 {
  display: inline;
  font-family: 'Jua', sans-serif;
  font-size: 1.35rem;
  color: #0f172a;
  margin: 0;
}

.leaderboard-fold[open] .leaderboard-container {
  margin-top: 12px;
}

.leaderboard-container {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.leaderboard-mode-note {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.lb-tab {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.lb-tab.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.leaderboard-table th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.leaderboard-table th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

.leaderboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

@keyframes lb-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.lb-skeleton-row td {
  vertical-align: middle;
}

.lb-skeleton-bar {
  display: block;
  height: 0.9em;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.28) 25%,
    rgba(148, 163, 184, 0.5) 37%,
    rgba(148, 163, 184, 0.28) 63%
  );
  background-size: 400% 100%;
  animation: lb-skeleton-shimmer 1.15s ease-in-out infinite;
}

.lb-skeleton-bar.w-xs { width: 22%; }
.lb-skeleton-bar.w-sm { width: 36%; }
.lb-skeleton-bar.w-md { width: 58%; }
.lb-skeleton-bar.w-lg { width: 44%; }

.rank-1 { color: #d97706; font-weight: 800; font-size: 1.1rem; }
.rank-2 { color: #475569; font-weight: 700; }
.rank-3 { color: #b45309; font-weight: 700; }

.app-footer {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.privacy-link {
  color: #64748b;
  text-decoration: none;
}

.hidden,
[hidden] {
  display: none !important;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

#btn-admin-toggle-mode {
  font-weight: 800;
}

.session-usage-fold {
  margin-bottom: 12px;
}

.session-usage-body {
  padding: 0 4px 12px;
}

.session-usage-note,
.session-usage-config-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.session-usage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.purge-confirm {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
}

.purge-confirm-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #0f172a;
}

.purge-confirm-body {
  overflow: visible;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.purge-confirm-body h4 {
  margin: 14px 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.purge-confirm-body h4:first-child {
  margin-top: 0;
}

.purge-confirm-body ul {
  margin: 0;
  padding-left: 1.2em;
}

.purge-confirm-body li {
  margin: 2px 0;
}

.purge-confirm-note {
  margin: 8px 0 0;
}

.purge-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.session-usage-config-note {
  color: #b45309;
}

.session-usage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.play-mismatch-warning {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.play-mismatch-warning ul {
  margin: 6px 0;
  padding-left: 1.2em;
}

.play-mismatch-warning p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.8rem;
}

.session-usage-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.session-usage-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.session-usage-card-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.session-usage-card-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #475569;
}

.session-usage-by-game {
  margin-bottom: 12px;
}

.session-usage-by-game + .session-usage-by-game {
  margin-top: 4px;
}

.session-usage-by-game table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.session-usage-by-game caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 6px;
}

.session-usage-by-game th,
.session-usage-by-game td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.session-usage-by-game th:last-child,
.session-usage-by-game td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.session-usage-by-game th {
  color: #64748b;
  font-weight: 700;
}

.session-usage-charts {
  display: grid;
  gap: 16px;
}

.usage-chart-panel {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.usage-chart-heading {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.usage-chart-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.usage-chart-nav-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  flex: 1;
}

.usage-chart-nav-btn {
  min-width: 36px;
  padding: 6px 10px;
}

.usage-chart-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.usage-bar-chart {
  display: grid;
  gap: 8px;
}

.usage-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  gap: 8px;
  align-items: center;
}

.usage-bar-label {
  font-size: 0.78rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.usage-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.usage-bar-fill-today {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.usage-bar-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.usage-column-chart-wrap {
  margin-bottom: 10px;
  padding: 8px 4px 4px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.usage-column-chart {
  display: grid;
  gap: 2px;
  align-items: end;
  height: 140px;
}

.usage-column {
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-width: 0;
}

.usage-column-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.usage-column-fill {
  width: 100%;
  min-height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7dd3fc, #0284c7);
}

.usage-column-today .usage-column-fill {
  background: linear-gradient(180deg, #fde68a, #f59e0b);
}

.usage-column-labels {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  min-height: 14px;
}

.usage-column-day {
  text-align: center;
  font-size: 0.62rem;
  color: #94a3b8;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.usage-column-label-today {
  color: #b45309;
  font-weight: 700;
}

.usage-month-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  max-height: 200px;
  display: block;
  overflow-y: auto;
}

.usage-month-table thead,
.usage-month-table tbody {
  display: table;
  width: 100%;
}

.usage-month-table th,
.usage-month-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.usage-month-table th:last-child,
.usage-month-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 날짜×게임 칸이 있는 표: 머리와 몸이 따로 그려져서 칸 너비를 고정해 줄을 맞춘다 */
.usage-month-table--games thead,
.usage-month-table--games tbody {
  table-layout: fixed;
}

.usage-month-table--games th:nth-child(1),
.usage-month-table--games td:nth-child(1) {
  width: 32%;
}

.usage-month-table--games th:nth-child(2),
.usage-month-table--games td:nth-child(2) {
  width: 18%;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.usage-month-table--games th:last-child,
.usage-month-table--games td:last-child {
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.4;
}

.usage-day-game-none {
  color: #94a3b8;
}

.session-usage-charts tr.session-usage-day-today td {
  font-weight: 700;
}

@media (max-width: 520px) {
  .usage-bar-row {
    grid-template-columns: 60px 1fr 32px;
    gap: 6px;
  }

  .usage-column-chart {
    height: 110px;
  }
}

.session-usage-loading {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.admin-search-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9a3412;
}

.admin-search-label input {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  font-size: 0.95rem;
}

.admin-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-btn-primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.admin-btn-delete {
  position: relative;
  z-index: 2;
  border-color: #fecaca;
  color: #b91c1c;
  padding: 6px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

.admin-btn-exit {
  margin-left: auto;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9a3412;
}

.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-gate-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.admin-gate-card .admin-search-label {
  margin-bottom: 10px;
  text-align: left;
}

.admin-gate-card h2 {
  font-family: 'Jua', sans-serif;
  color: #0369a1;
  margin-bottom: 8px;
}

.admin-gate-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 14px;
}

.admin-gate-error {
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-gate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

body.admin-mode .portal-container {
  max-width: 1120px;
}

body.admin-mode .leaderboard-table {
  min-width: 640px;
}

/* 사이트 건강 진단 (관리자) */
.site-health-banner {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.site-health-banner.site-health-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #78350f;
}

.site-health-banner.site-health-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.site-health-banner ul {
  margin: 6px 0 0;
  padding-left: 1.1em;
}

.site-health-when {
  margin-left: 8px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-health-heading {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  color: #0f172a;
}

.site-health-card-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.site-health-card-danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.site-health-file {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.site-health-list {
  margin: 0 0 12px;
  padding-left: 1.2em;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #334155;
}

.site-health-list ul {
  margin: 2px 0 6px;
  padding-left: 1.1em;
}

#site-health-games .session-usage-by-game {
  overflow-x: auto;
}

/* 사용량 카드: 한도 막대 */
.site-health-usage-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-health-usage-cards .session-usage-card-value {
  font-size: 1.6rem;
}

.site-health-meter {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.site-health-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
  transition: width 0.4s ease;
}

.site-health-meter-warn {
  background: #f59e0b;
}

.site-health-meter-danger {
  background: #ef4444;
}

.site-health-card-setup {
  border-style: dashed;
}

.site-health-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

/* 연결 안내 */
.site-health-setup {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155;
}

.site-health-setup summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}

.site-health-setup ol {
  margin: 8px 0 4px;
  padding-left: 1.3em;
}

.site-health-setup code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #e2e8f0;
  font-size: 0.82em;
}

/* 파일 점검: 접어 두는 칸 */
.site-health-subfold {
  margin: 4px 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.site-health-subfold > summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.site-health-subfold[open] > summary {
  margin-bottom: 8px;
}

/* 그림이 있는 카드: 설명 길이가 달라도 꼬리표·제목 줄이 맞도록 위에서부터 쌓고 버튼만 바닥에 붙인다 */
.game-card:has(.game-cover) {
  justify-content: flex-start;
}

.game-card:has(.game-cover) .btn-play-game {
  margin-top: auto;
}
