/* HearHeart 유저 셸. t3 폰 프레임(480px)·하단 탭·기존 홈 헤더를 홈에서 끈다. */
body.hh-shell .bottom-tab-bar { display: none !important; }

body.hh-browse {
  background: var(--hh-bg, #0f0f0f) !important;
  color: var(--hh-text, #f1f1f1);
}
body.hh-browse::before,
body.hh-browse::after { display: none !important; }
body.hh-browse .app {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: var(--hh-bg, #0f0f0f) !important;
}
body.hh-browse #screen-list.screen.active {
  display: block;
  width: 100%;
  min-height: 100dvh;
  background: var(--hh-bg, #0f0f0f);
  color: var(--hh-text, #f1f1f1);
}
body.hh-browse #screen-list > .list-header,
body.hh-browse #screen-list > #homeHero,
body.hh-browse #screen-list > #homeMagazineRoot,
body.hh-browse #screen-list > #list-empty,
body.hh-browse #screen-list > .site-legal-footer,
body.hh-browse #screen-list > .home-hero,
body.hh-browse #screen-list > .demo-signup-nudge {
  display: none !important;
}
body.hh-browse #character-list {
  padding: 0 !important;
  display: block !important;
  gap: 0 !important;
  max-width: none !important;
}

body.hh-browse {
  --hh-bg: #0f0f0f;
  --hh-bg-2: #161618;
  --hh-card: #1c1c20;
  --hh-card-2: #24242a;
  --hh-line: #2d2d33;
  --hh-text: #f1f1f1;
  --hh-muted: #9b9ba6;
  --hh-pink: #ff2f86;
  --hh-pink-2: #ff4d9a;
  --hh-gold: #f5c451;
}
body.hh-browse.hh-light {
  --hh-bg: #f5f5f7;
  --hh-bg-2: #ffffff;
  --hh-card: #ffffff;
  --hh-card-2: #f0f0f3;
  --hh-line: #e4e4ea;
  --hh-text: #16161a;
  --hh-muted: #6d6d78;
}

#hhRoot {
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--hh-text);
  background: var(--hh-bg);
  min-height: 100dvh;
}
#hhRoot button, #hhRoot input { font: inherit; color: inherit; }
#hhRoot button { cursor: pointer; }

.hh-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--hh-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hh-line);
}
.hh-icon, .hh-ghost, .hh-pink, .hh-line-btn {
  border: 0;
  background: transparent;
  color: var(--hh-text);
}
.hh-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hh-icon:hover, .hh-ghost:hover { background: var(--hh-card); }
.hh-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--hh-text);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  padding: 0;
  flex: 0 0 auto;
}
.hh-logo i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hh-pink);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}
.hh-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hh-card);
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  padding: 0 8px 0 16px;
  min-width: 0;
}
.hh-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  height: 42px;
  min-width: 0;
}
.hh-search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #2a2a30;
  color: var(--hh-text);
}
body.hh-light .hh-search button { background: #ececf1; }
.hh-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.hh-actions .header-right { display: flex; align-items: center; gap: 8px; }
#hhRoot .home-carat-chip {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #3a2416;
  background: #2a2416;
  color: var(--hh-gold);
  font-weight: 800;
  cursor: pointer;
}
#hhRoot .mypage-btn, #hhRoot .hdr-lang-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hh-text);
}
.hh-ghost, .hh-pink, .hh-line-btn {
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.hh-line-btn { border: 1px solid var(--hh-pink); color: var(--hh-pink); }
.hh-pink { background: var(--hh-pink); color: #fff; }
.hh-ghost { border: 1px solid var(--hh-line); background: var(--hh-card); }

.hh-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}
.hh-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--hh-bg-2);
  z-index: 41;
  overflow: auto;
  padding: 18px 14px 32px;
  border-right: 1px solid var(--hh-line);
  color: var(--hh-text);
}
.hh-drawer button {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--hh-text);
}
.hh-drawer button:hover, .hh-drawer button.on { background: var(--hh-card); }
.hh-drawer .hh-group { margin: 8px 12px 4px; color: var(--hh-muted); font-size: 12px; }

.hh-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}
.hh-hero {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 14px;
}
.hh-banner, .hh-side, .hh-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--hh-card) center/cover no-repeat;
  color: #fff;
  border: 0;
  text-align: left;
  padding: 0;
}
.hh-banner, .hh-side { isolation: isolate; }
.hh-banner::before, .hh-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.78));
}
.hh-banner > *, .hh-side > * { position: relative; z-index: 1; }
.hh-banner {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
.hh-banner h2, .hh-side h3 { margin: 0 0 8px; letter-spacing: -0.04em; }
.hh-banner p, .hh-muted { color: #d5d5dc; }
.hh-kicker { color: var(--hh-pink-2); font-weight: 700; font-size: 13px; }
.hh-side-stack { display: grid; gap: 14px; }
.hh-side {
  min-height: 133px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  width: 100%;
}
.hh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}
.hh-row h2, .hh-page h1 { margin: 0; letter-spacing: -0.04em; color: var(--hh-text); }
.hh-row button {
  border: 0;
  background: transparent;
  color: var(--hh-pink-2);
  padding: 0;
}
.hh-hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 12px;
  overflow: auto;
  padding-bottom: 6px;
}
.hh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.hh-poster { aspect-ratio: 16 / 10; display: block; width: 100%; cursor: pointer; }
.hh-shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.hh-shade strong { display: block; letter-spacing: -0.03em; }
.hh-shade span { color: #ddd; font-size: 12px; }
.hh-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}
.hh-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--hh-muted); font-size: 12px; margin-top: 6px; }
.hh-title { font-weight: 700; letter-spacing: -0.03em; color: var(--hh-text); }
.hh-card {
  background: var(--hh-card);
  border: 1px solid var(--hh-line);
  border-radius: 18px;
  overflow: hidden;
  color: var(--hh-text);
  text-align: left;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.hh-card .art { height: 140px; background: #241018 center/cover no-repeat; }
.hh-card .pad { padding: 10px 12px 12px; }
.hh-card p { margin: 4px 0 0; color: var(--hh-muted); font-size: 13px; }

.hh-rank-list { display: grid; gap: 8px; }
.hh-rank {
  display: grid;
  grid-template-columns: 28px 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: var(--hh-card);
  border: 0;
  color: var(--hh-text);
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.hh-rank .thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #241018 center/cover no-repeat;
}
.hh-coin {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #3a2030;
  color: #ffd0e4;
}
.hh-filters { display: flex; gap: 8px; overflow: auto; margin: 8px 0 14px; padding-bottom: 4px; }
.hh-filters button {
  flex: 0 0 auto;
  border: 1px solid var(--hh-line);
  background: transparent;
  color: var(--hh-text);
  border-radius: 999px;
  padding: 7px 12px;
}
.hh-filters button.on { background: var(--hh-text); color: var(--hh-bg); border-color: var(--hh-text); }
.hh-panel {
  background: var(--hh-card);
  border: 1px solid var(--hh-line);
  border-radius: 18px;
  padding: 4px 14px;
}
.hh-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hh-line);
  background: transparent;
  color: var(--hh-text);
  text-align: left;
  cursor: pointer;
}
.hh-line:last-child { border-bottom: 0; }
.hh-line em { font-style: normal; color: var(--hh-pink); font-weight: 700; flex: 0 0 auto; }
.hh-line span { color: var(--hh-muted); }
.hh-empty { color: var(--hh-muted); padding: 8px 0 16px; }
.hh-footer {
  border-top: 1px solid var(--hh-line);
  padding: 28px 16px 48px;
  color: var(--hh-muted);
  font-size: 13px;
}
.hh-footer .inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.hh-footer button {
  border: 0;
  background: transparent;
  color: var(--hh-muted);
  margin-right: 12px;
  padding: 0;
}

#hhReturn {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 12px;
  left: 12px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ff2f86;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
body.hh-away #hhReturn { display: inline-flex; }

@media (max-width: 900px) {
  .hh-header {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 12px;
    row-gap: 8px;
  }
  .hh-search { order: 5; flex: 1 1 100%; }
  .hh-hide-sm { display: none !important; }
  .hh-hero, .hh-rank { grid-template-columns: 1fr; }
  .hh-rank { grid-template-columns: 24px 92px 1fr; }
  .hh-coin { display: none; }
  .hh-hscroll { grid-auto-columns: 150px; }
  .hh-banner { min-height: 220px; padding: 18px; }
  .hh-page { width: min(1180px, calc(100% - 20px)); padding-top: 14px; }
}
