/* MOK 사이트 기능 스타일 (홈 타일, 허브, 카드, 시세, 용어 사전) */
.mok-section { margin: 0 0 56px; }
.mok-h { font-size: 22px; font-weight: 800; color: #f2ede4; margin: 0 0 18px; letter-spacing: -0.02em; }
.mok-h-sm { font-size: 16px; font-weight: 800; color: #f2ede4; margin: 0 0 12px; }
.mok-h-sm small { font-weight: 500; color: #8a8276; font-size: 12px; margin-left: 6px; }
.mok-more { margin: 16px 0 0; text-align: right; font-size: 14px; }
.mok-more a { color: #c9a45c; text-decoration: none; font-weight: 700; }

/* 게임 타일 */
.mok-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mok-tile {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px; border: 1px solid #2c2a26; background: #1c1b18; text-decoration: none;
}
.mok-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s ease, transform .3s ease; }
.mok-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,9,8,.92) 0%, rgba(10,9,8,.2) 65%); }
.mok-tile:hover .mok-tile-img { opacity: .75; transform: scale(1.03); }
.mok-tile-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.mok-tile-text strong { font-size: 21px; color: #f2ede4; font-weight: 800; }
.mok-tile-text em { font-style: normal; font-size: 13.5px; color: #c9c1b3; }
.mok-tile-text small { font-size: 12px; color: #8a8276; margin-top: 4px; }
.mok-tile.is-last { border-color: #c9a45c; }
.mok-tile.is-last .mok-tile-text strong::after {
  content: "최근 본 게임"; font-size: 11px; font-weight: 700; color: #15130f; background: #c9a45c;
  padding: 2px 7px; border-radius: 3px; margin-left: 8px; vertical-align: 3px;
}

/* 카드 */
.mok-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mok-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mok-card { background: #1c1b18; border: 1px solid #2c2a26; border-radius: 6px; overflow: hidden; transition: border-color .15s ease; }
.mok-card:hover { border-color: #4a4339; }
.mok-card[hidden] { display: none; }
.mok-card-link { display: block; text-decoration: none !important; color: inherit; }
.mok-card-thumb { aspect-ratio: 16 / 9; background: #24221f; overflow: hidden; }
.mok-card-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
.mok-card-body { padding: 14px 16px 16px; }
.mok-card-cat { font-size: 12px; font-weight: 700; color: #c9a45c; }
.mok-card-title { font-size: 16.5px; line-height: 1.45; font-weight: 700; color: #f2ede4; margin: 4px 0 8px; letter-spacing: -0.02em; border: 0 !important; padding: 0 !important; }
.mok-card-date { font-size: 12.5px; color: #8a8276; }

/* 허브 */
.mok-hub-head { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid #2c2a26; margin-bottom: 18px; aspect-ratio: 21 / 7; background: #1c1b18; }
.mok-hub-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; border-radius: 0 !important; }
.mok-hub-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,9,8,.9) 0%, rgba(10,9,8,.3) 70%); }
.mok-hub-text { position: absolute; left: 28px; bottom: 24px; z-index: 1; }
.mok-hub-text h1 { font-size: 34px; margin: 0 0 4px; color: #f2ede4; border: 0 !important; padding: 0 !important; }
.mok-hub-text p { margin: 0; color: #c9c1b3; font-size: 15px; }
.mok-hub-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.mok-hub-nav a, .mok-filter button {
  font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 6px;
  border: 1px solid #3a362f; background: #1c1b18; color: #d9d3c7 !important; text-decoration: none !important; cursor: pointer;
}
.mok-hub-nav a:hover, .mok-filter button:hover { border-color: #c9a45c; }
.mok-filter { display: flex; gap: 8px; margin: 22px 0 16px; }
.mok-filter button.is-on { background: #c9a45c; border-color: #c9a45c; color: #15130f !important; }

/* 시세 */
.mok-prices { border: 1px solid #2c2a26; background: #191816; border-radius: 6px; padding: 16px 18px; margin: 0 0 8px; }
.mok-prices-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.mok-prices-row div { display: flex; flex-direction: column; }
.mok-p-game { font-size: 12.5px; color: #8a8276; }
.mok-prices-row b { font-size: 17px; color: #e2c27f; }
.mok-prices-row small { font-size: 12.5px; color: #a39b8d; }
.mok-prices-time { margin: 10px 0 0; font-size: 12px; color: #6e675c; }

/* 글 하단 같은 게임 다른 글 */
.mok-related { margin-top: 56px; padding-top: 28px; border-top: 1px solid #2c2a26; }
.single-content .mok-related h2.mok-h { border-top: 0; padding-top: 0; margin-top: 0; }

/* 용어 사전 */
.mok-search {
  width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 6px; margin: 0 0 16px;
  background: #1c1b18; border: 1px solid #3a362f; color: #f2ede4;
}
.mok-search:focus { outline: none; border-color: #c9a45c; }
.mok-glossary tr[hidden] { display: none; }

@media (max-width: 767px) {
  .mok-hub-head { aspect-ratio: 16 / 9; }
  .mok-hub-text h1 { font-size: 26px; }
  .mok-h { font-size: 19px; }
}

/* 본문 제목 스타일(구분선·큰 여백)이 홈·카드에 번지지 않게 */
.entry-content .mok-h, .single-content .mok-h { border-top: 0; padding-top: 0; margin: 0 0 18px; }
.entry-content .mok-card-title, .single-content .mok-card-title { margin: 4px 0 8px; font-size: 16.5px; }
.entry-content .mok-card-img, .entry-content .mok-tile-img, .entry-content .mok-hub-img { margin: 0; }
.mok-tile-img { opacity: .45; }
/* 홈·허브: 위쪽 빈 공간 줄이기 */
.home .content-area, .mok-hub-page .content-area { margin-top: 32px; }
.home .entry-content-wrap { padding-top: 8px; }
.entry-content .mok-h-sm, .single-content .mok-h-sm { border-top: 0; padding-top: 0; margin: 0 0 12px; font-size: 16px; }

/* 도구 카드 (정규식·도구 페이지) */
.mok-toolcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 12px; }
.mok-toolcard { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid #2c2a26; border-radius: 6px;
  background: #1c1b18; text-decoration: none !important; transition: border-color .15s ease; }
.mok-toolcard:hover { border-color: #c9a45c; }
.mok-toolcard strong { font-size: 19px; color: #f2ede4; }
.mok-toolcard span { font-size: 14.5px; line-height: 1.65; color: #a39b8d; }
.mok-toolcard em { font-style: normal; font-size: 13.5px; font-weight: 700; color: #c9a45c; margin-top: auto; }
.mok-toolcard em b { color: #e2c27f; }

.mok-prices-row .mok-p-next { color: #c9a45c; margin-top: 2px; }

/* Steam 위젯 */
.mok-steam { margin: 12px 0 24px; max-width: 646px; }
.mok-steam iframe { width: 100%; height: 190px; border: 0; border-radius: 6px; background: #1b2838; }

/* 홈 머리말 (H1) */
.mok-home-head { margin: 0 0 40px; }
.entry-content .mok-home-head h1 { font-size: 30px; font-weight: 800; color: #f2ede4; margin: 0 0 8px; letter-spacing: -0.03em; border: 0; padding: 0; }
.mok-home-head p { margin: 0; font-size: 16px; color: #a39b8d; }
@media (max-width: 767px) { .entry-content .mok-home-head h1 { font-size: 24px; } }

/* 시리즈 순서 상자 (10/29, mok-site.php 'series') */
.single-content .mok-series { background: #1f1d1a; border: 1px solid var(--mok-line); border-left: 3px solid var(--mok-gold); border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 0 0 28px; }
.single-content .mok-series-head { margin: 0 0 8px; font-weight: 700; color: #f2ede4; }
.single-content .mok-series-head span { font-weight: 400; font-size: 13px; color: #a39b8d; margin-left: 6px; }
.single-content .mok-series ol { margin: 0; padding-left: 22px; }
.single-content .mok-series li { margin: 4px 0; color: #d9d3c7; }
.single-content .mok-series li.is-here { color: #a39b8d; }
.single-content .mok-series li.is-here strong { color: var(--mok-gold); }

/* 폰에서 표를 카드로 쌓기 (10/29) — 표 figure 에 class "mok-cards", 칸(td)에 data-label="열 이름" */
@media (max-width: 600px) {
  .single-content .wp-block-table.mok-cards { overflow: visible; }
  .single-content .mok-cards table, .single-content .mok-cards tbody,
  .single-content .mok-cards tr, .single-content .mok-cards td { display: block; width: 100%; }
  .single-content .mok-cards thead { display: none; }
  .single-content .mok-cards table { border: 0; background: none; }
  .single-content .mok-cards tr { border: 1px solid var(--mok-line); border-radius: 6px; margin: 0 0 12px; background: #191816; overflow: hidden; }
  .single-content .mok-cards tbody tr:nth-child(even) td { background: none; }
  .single-content .mok-cards td { border: 0; border-bottom: 1px solid var(--mok-line); padding: 9px 12px; }
  .single-content .mok-cards td:last-child { border-bottom: 0; }
  .single-content .mok-cards td:first-child { background: #24221f !important; color: #f2ede4; font-weight: 700; }
  .single-content .mok-cards td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; color: #a39b8d; margin-bottom: 3px; font-weight: 400; }
}

/* 한글 단어 중간에서 줄이 바뀌지 않게 (10/28) */
body { word-break: keep-all; overflow-wrap: break-word; }
body .entry-content, body .entry-content table, body .entry-content .wp-block-table td, body .entry-content .wp-block-table th, body .entry-title { word-break: keep-all; overflow-wrap: break-word; }
