:root {
  --page: #f5f3f1;
  --card: #ffffff;
  --raised: #f3f1f0;
  --ink: #292526;
  --ink2: #6f6a6c;
  --ink4: #b9b5b6;
  --hairline: #e7e3e1;
  --teal: #73a89a;
  --teal-dark: #578577;
  --warn-bg: #fdf6ec;
  --warn-line: #ecd9b8;
  --live: #d4574e;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.boot { padding: 60px 20px; text-align: center; color: var(--ink2); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 64px; }
.card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px 20px 32px;
  box-shadow: 0 1px 2px rgba(30,25,28,0.05), 0 8px 28px rgba(30,25,28,0.06);
}

/* Header */
.hk-brand-title { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 16px; color: #1e3a5f; }
.hk-eyebrow { font-size: 13px; font-weight: 600; color: var(--teal-dark); margin: 0 0 4px; }
.hk-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.hk-intro { color: var(--ink2); margin: 0 0 8px; }
.hk-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--live);
  margin: 2px 0 20px;
}
.hk-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Groups */
.hk-group { margin-top: 26px; }
.hk-group-label { font-size: 12px; font-weight: 600; color: var(--ink2); margin: 0 0 2px; }
.hk-group-heading { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.hk-caption { font-size: 12px; color: var(--ink2); margin: 8px 0 0; }

/* Map */
.hk-map { position: relative; width: 100%; aspect-ratio: 0.95; background: var(--raised); border-radius: 24px; overflow: hidden; }
.hk-river { position: absolute; inset: 0; width: 100%; height: 100%; }
.hk-river-label { position: absolute; left: 62%; top: 63%; font-size: 12px; color: #7d9db0; font-weight: 600; }
.hk-pin {
  position: absolute; transform: translate(-50%, -12px);
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; min-width: 44px; min-height: 44px; padding-top: 2px; z-index: 1;
}
.hk-pin:hover, .hk-pin:focus-visible { z-index: 3; }
.hk-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,0.18);
}
.hk-dot.is-mine { background: var(--ink); }
.hk-name {
  margin-top: 3px; font-size: 11px; font-weight: 600; line-height: 1.2;
  color: var(--ink); background: rgba(255,255,255,0.88);
  padding: 1px 4px; border-radius: 4px; white-space: nowrap;
}
@media (max-width: 480px) {
  .hk-dot { width: 22px; height: 22px; font-size: 10px; }
  .hk-name { font-size: 10px; }
}

/* Ranking list */
.hk-row {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0;
  border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink);
}
.hk-row:last-child { border-bottom: none; }
.hk-rank { flex: 0 0 30px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.hk-row-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.hk-row-main b { font-weight: 600; }
.hk-row-sub { color: var(--ink2); font-size: 12px; }
.hk-votes { font-size: 11px; color: var(--teal-dark); }
.hk-mine {
  flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--teal-dark);
  border: 1px solid var(--teal); border-radius: 999px; padding: 2px 8px;
}
.hk-score { flex: 0 0 auto; font-weight: 700; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.hk-score small { color: var(--ink4); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; color: var(--ink);
  background: var(--raised);
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; border-color: var(--hairline); }
.btn-compact { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* Detail */
.hk-back { margin-bottom: 16px; }
.hk-photo { position: relative; border-radius: 24px; overflow: hidden; cursor: pointer; margin-bottom: 8px; }
.hk-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hk-photo-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(20,16,18,0.82) 30%, rgba(20,16,18,0.35) 70%, rgba(20,16,18,0.08));
  color: #fff; opacity: 0; transition: opacity 160ms ease;
}
.hk-photo:hover .hk-photo-overlay, .hk-photo.is-open .hk-photo-overlay { opacity: 1; }
.hk-photo-overlay b { display: block; font-size: 12px; letter-spacing: 0.02em; margin-bottom: 4px; }
.hk-photo-overlay ul { margin: 0; padding-left: 18px; }
.hk-photo-overlay li { font-size: 13px; line-height: 1.5; }

/* Facts */
.hk-facts { border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; margin: 4px 0 12px; }
.hk-fact { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.hk-fact:last-child { border-bottom: none; }
.hk-fact-label { color: var(--ink2); font-size: 13px; }
.hk-fact-value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hk-fact-value small { color: var(--ink4); font-weight: 500; }

/* Callout */
.hk-callout {
  margin-top: 26px; border: 1px solid var(--warn-line); background: var(--warn-bg);
  border-radius: 16px; padding: 14px 16px;
}
.hk-callout b { display: block; font-size: 13px; margin-bottom: 4px; }
.hk-callout p { margin: 0; font-size: 13px; color: var(--ink2); }
.hk-closing { margin-top: 28px; text-align: center; font-size: 12px; color: var(--ink2); }

/* Rate box */
.hk-rate { display: flex; flex-direction: column; gap: 14px; }
.hk-stars { display: flex; gap: 4px; }
.hk-star {
  width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 8px;
  background: transparent; font-size: 22px; line-height: 1; color: var(--ink4); cursor: pointer;
}
.hk-star.is-on { color: var(--teal-dark); border-color: var(--teal); background: rgba(115,168,154,0.10); }
.hk-field { display: flex; flex-direction: column; gap: 6px; }
.hk-field-label { font-size: 12px; color: var(--ink2); }
.hk-field input, .hk-field textarea {
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--hairline); border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--page); resize: none;
}
.hk-rate-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hk-myphoto { width: auto; height: auto; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; border: 1px solid var(--hairline); }
.hk-status { margin: 0; font-size: 13px; color: var(--ink2); }
.hk-status.is-error { color: var(--live); }
.hk-myrate {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px;
}
.hk-myrate-stars { color: var(--teal-dark); font-weight: 600; }

/* Comments */
.hk-comments { display: flex; flex-direction: column; }
.hk-comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.hk-comment:last-child { border-bottom: none; }
.hk-comment-photo { flex: 0 0 auto; align-self: flex-start; width: 96px; height: auto; max-height: 160px; object-fit: contain; border-radius: 10px; border: 1px solid var(--hairline); cursor: zoom-in; }
.hk-comment-body { flex: 1 1 auto; min-width: 0; }
.hk-comment-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hk-comment-nick { font-weight: 600; font-size: 13px; }
.hk-comment-stars { color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.hk-comment-time { color: var(--ink4); font-size: 11px; margin-left: auto; }
.hk-comment-text { margin: 3px 0 0; font-size: 14px; word-break: break-word; white-space: pre-wrap; }
.hk-empty { color: var(--ink2); font-size: 13px; padding: 8px 0; }

/* Lightbox */
.hk-lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(15,12,14,0.85);
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.hk-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

a { color: var(--teal-dark); }

/* External visitors */
.hk-ext {
  border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 16px;
}
.hk-ext-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hk-ext-badge {
  display: inline-flex; align-items: center; min-height: 28px;
  border-radius: 999px; padding: 3px 12px;
  font-size: 13px; font-weight: 700;
}
.hk-ext-badge.is-ok { background: rgba(115,168,154,0.16); color: var(--teal-dark); }
.hk-ext-badge.is-limited { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #a3742c; }
.hk-ext-badge.is-unknown { background: var(--raised); color: var(--ink2); }
.hk-ext-flag { font-size: 11px; color: var(--ink4); }
.hk-ext-note { margin: 0; font-size: 14px; }
.hk-ext-sources {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin: 10px 0 0; font-size: 12px; color: var(--ink2);
}

.hk-tabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 14px;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.hk-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:8px 12px;border-radius:999px;border:1px solid #d9d4d1;background:#fff;color:#4a4543;font-size:14px;text-decoration:none;white-space:nowrap}
.hk-tab svg{width:15px;height:15px;flex:none;color:#2b1b17}
.hk-tab.is-on{background:#2b2625;color:#fff;border-color:#2b2625;font-weight:600}
.hk-tab.is-on svg{color:#fff}
.hk-ph{width:100%;aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#f6efe9,#e8ddd3);border-radius:inherit;padding:12px;text-align:center}
.hk-ph-emoji{font-size:44px;line-height:1}
.hk-ph-name{font-size:15px;font-weight:600;color:#4a4543}
.hk-ext-badge.is-no{background:#fde8e8;color:#9b1c1c}
.hk-row-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60vw}

/* 대문 (landing) */
.hk-brand-link { color: inherit; text-decoration: none; }
.hk-land-title { font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 12px; color: #1e3a5f; }
.hk-pick { margin: 4px 0 8px; }
.hk-pick-btn { width: 100%; min-height: 52px; font-size: 16px; }
.hk-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hk-cat-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; min-height: 130px; border: 1px solid var(--hairline); border-radius: 18px; text-decoration: none; color: var(--ink); background: #fff; }
.hk-cat-card:hover, .hk-cat-card:focus-visible { border-color: var(--teal); background: #f8fbfa; }
.hk-cat-emoji { font-size: 26px; line-height: 1.2; }
.hk-cat-card b { font-size: 16px; font-weight: 700; }
.hk-cat-blurb { font-size: 12px; color: var(--ink2); flex: 1 1 auto; }
.hk-cat-tag { align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 600; color: #9a6b1f; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; padding: 1px 8px; }
.hk-cat-tag.is-open { color: var(--teal-dark); background: #eef6f3; border-color: var(--teal); }
.hk-steps { margin: 6px 0 0; padding-left: 20px; color: var(--ink2); }
.hk-steps li { margin-bottom: 6px; }
.hk-share { margin-top: 22px; flex-direction: column; align-items: flex-start; }

.hk-near-btn { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; text-decoration: none; background: #fff; border: 1px solid var(--teal); color: var(--teal-dark); font-weight: 700; }
.hk-near-out { margin-top: 14px; }
.hk-near-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hk-near-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.hk-near-item:hover { border-color: var(--teal); }
.hk-near-dist { min-width: 52px; font-weight: 800; color: var(--teal-dark); font-size: 14px; }
.hk-near-main { display: flex; flex-direction: column; gap: 2px; }
.hk-near-main small { color: var(--ink2); font-size: 12px; }

.hk-land-brand { display:block; width:min(260px,70%); height:auto; margin:0 auto 12px; border-radius:28px; }
.hk-land-title { text-align:center; font-size:22px; font-family:"Black Han Sans","Noto Sans KR","Apple SD Gothic Neo",sans-serif; font-weight:700; color:#2b1b17; text-shadow:1px 1px 0 #EA4630; letter-spacing:-0.01em; line-height:1.2; display:flex; align-items:center; justify-content:center; gap:8px; }
.hk-land-char { height:2.6em; width:auto; flex:none; }
.hk-brand-name { font-size:26px; margin-right:8px; color:#2b1b17; }
.hk-brand-sub { font-size:14px; font-weight:700; color:#1e3a5f; }

/* splash */
.hk-splash { position: fixed; inset: 0; z-index: 9999; background: #FFD84D; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .4s ease; }
.hk-splash-out { opacity: 0; pointer-events: none; }
.hk-splash-stage { position: relative; width: min(78vw, 440px, 70vh); aspect-ratio: 1 / 1; }
.hk-splash-stage img { width: 100%; height: 100%; display: block; }
.hk-splash-kimchi { position: absolute; left: 38%; top: 18%; width: 17%; margin: -6% 0 0 -8.5%; opacity: 0;
  animation: hk-kimchi-fly .9s cubic-bezier(.5,0,.9,.6) .35s forwards, hk-kimchi-stick .45s ease-out 1.25s forwards; }
.hk-splash-kimchi svg { width: 100%; display: block; }
@keyframes hk-kimchi-fly {
  0% { opacity: 1; transform: translate(-85vw,-85vh) rotate(-540deg) scale(1.6); }
  100% { opacity: 1; transform: translate(0,0) rotate(-14deg) scale(1); }
}
@keyframes hk-kimchi-stick {
  0% { opacity: 1; transform: rotate(-14deg) scale(1.25,.7); }
  45% { opacity: 1; transform: rotate(-14deg) scale(.9,1.12); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}

/* 상단 바: 대문 · 검색 (모든 화면) */
.hk-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 560px; margin: 0 auto; padding: 10px 16px 6px;
  background: #FFD84D;
}
.hk-tb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: #fff; border: 1.5px solid #2b1b17; box-shadow: 0 2px 0 #2b1b17;
  text-decoration: none;
}
.hk-tb-title { cursor: default; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; overflow: hidden; }
.hk-tb-char { height: 38px; width: auto; flex: none; }
.hk-tb-text { font-family: "Black Han Sans","Noto Sans KR","Apple SD Gothic Neo",sans-serif; font-weight: 700; font-size: clamp(11px, 3.9vw, 17px); color: #2b1b17; text-shadow: 1px 1px 0 #EA4630; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
@media (max-width: 340px) { .hk-tb-char { height: 30px; } }
.hk-tb-btn svg { width: 23px; height: 23px; display: block; }
.hk-tb-btn:active { transform: translateY(2px); box-shadow: none; }

/* 검색 */
.hk-search-pill {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2.5px solid #FFD84D; border-radius: 999px;
  padding: 13px 18px; margin: 4px 0 12px;
  box-shadow: 0 3px 0 #e0b820;
  text-decoration: none; color: var(--ink2); cursor: pointer;
}
.hk-search-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 #e0b820; }
.hk-search-pill-text { flex: 1 1 auto; font-size: 15px; }
.hk-search-pill svg { width: 22px; height: 22px; flex: none; }
.hk-search-pill.is-live { cursor: default; }
.hk-search-pill.is-live:active { transform: none; box-shadow: 0 3px 0 #e0b820; }
.hk-search-pill.is-live:focus-within { border-color: #f2c200; }
.hk-search-input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); padding: 0;
}
.hk-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hk-chip-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 172px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.hk-chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px;
  border-radius: 999px; border: 1.5px solid #FFD84D; background: #fff;
  color: #4a4543; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.hk-chip.is-on { background: #FFD84D; color: #2b1b17; border-color: #FFD84D; font-weight: 700; }
.hk-search-emoji { flex: 0 0 24px; font-size: 18px; text-align: center; }

.hk-cat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 대문 액션: 공유 + 커뮤니티 */
.hk-land-actions { display: flex; gap: 8px; margin-top: 8px; }
.hk-land-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.hk-land-actions + .hk-share-status { margin-top: 6px; }

/* 커뮤니티 피드 */
.hk-feed { display: flex; flex-direction: column; }
.hk-feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.hk-feed-item:last-child { border-bottom: none; }
.hk-feed-item.has-photo { flex-direction: column; gap: 8px; }
.hk-feed-photo { flex: 0 0 auto; width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(43,29,26,.04); }
.hk-feed-body { flex: 1 1 auto; min-width: 0; }
.hk-feed-place { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.hk-feed-empty { text-align: center; padding: 26px 12px 20px; }
.hk-feed-empty img { width: 92px; height: auto; margin-bottom: 6px; }
.hk-feed-empty-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.hk-feed-empty .hk-empty { padding: 0 0 16px; white-space: pre-line; }

/* 커뮤니티 게시판 탭 */
.hk-board-tabs { display: flex; gap: 8px; margin: 14px 0 6px; }
.hk-board-tabs .hk-chip { flex: 1 1 0; justify-content: center; min-height: 40px; font-size: 14px; }

.hk-post-media { display: block; width: 100%; max-width: 360px; max-height: 360px; object-fit: contain; background: #000; border-radius: 12px; border: 1px solid var(--hairline); margin-top: 8px; }
img.hk-post-media { cursor: zoom-in; background: transparent; }

.hk-install{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:60;max-width:480px;margin:0 auto;display:flex;align-items:center;gap:10px;background:#FFD84D;border:3px solid #2b1d1a;border-radius:18px;padding:8px 10px;box-shadow:3px 4px 0 #EA4A2D;animation:hkUp .35s ease-out}
.hk-install img{width:42px;height:42px;object-fit:contain}
.hk-install-t{flex:1;display:flex;flex-direction:column;color:#2b1d1a;line-height:1.25}.hk-install-t b{font-size:15px}.hk-install-t span{font-size:12px}
.hk-install-go{background:#EA4A2D;color:#fff;border:2px solid #2b1d1a;border-radius:12px;padding:8px 14px;font-weight:800;font-size:14px}
.hk-install-x{background:none;border:0;font-size:16px;color:#2b1d1a;padding:6px}
.hk-install-modal{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}
.hk-install-card{background:#FFD84D;border:3px solid #2b1d1a;border-radius:20px;padding:18px 20px;max-width:340px;color:#2b1d1a;text-align:center}
.hk-install-card img{width:64px}.hk-install-card h3{margin:6px 0 10px}.hk-install-card ol{text-align:left;padding-left:20px;line-height:1.7}
.hk-install-card button{margin-top:10px;background:#EA4A2D;color:#fff;border:2px solid #2b1d1a;border-radius:12px;padding:8px 22px;font-weight:800}
@keyframes hkUp{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}

/* 가로 흔들림 잠금 (v28): 가로 패닝·핀치 확대 차단, 세로 스크롤만 허용 */
html { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; -webkit-text-size-adjust: 100%; max-width: 100%; }
body { overflow-x: clip; overscroll-behavior-x: none; touch-action: pan-y; max-width: 100%; position: relative; }
.hk-tabs { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
img, video, canvas, svg { max-width: 100%; }
.hk-comment-text, .hk-feed-body, .hk-caption, .hk-status { overflow-wrap: anywhere; word-break: break-word; }
/* iOS는 16px 미만 입력창에 포커스하면 화면을 확대해 옆으로 밀림 */
input, textarea, select { font-size: 16px !important; max-width: 100%; min-width: 0; }
.hk-post-media{transform:translateZ(0);-webkit-transform:translateZ(0);height:auto}

/* v45: 첨부 미리보기 크기 고정 (흔들림 방지) */
.hk-post-preview{width:auto;max-width:100%;height:auto;max-height:240px;transform:none;-webkit-transform:none;contain:layout paint;box-sizing:border-box}
#app,.wrap,.card{overflow-x:clip;max-width:100%}
