/* =====================================================================
   Universo da Han: perfil coquette / cute gothic.
   Cinza e branco com renda, rosa-malva, detalhes em preto e um azul suave.
   ===================================================================== */

.han {
  background: var(--h-field);
  color: var(--h-ink);
  font-family: var(--f-body);
}

.han-field {
  position: relative;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 64px) clamp(10px, 3vw, 32px) 72px;
  background-color: var(--h-field);
  background-image:
    radial-gradient(ellipse 60% 40% at 12% 8%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 96%, rgba(245, 211, 223, 0.55), transparent 70%);
  overflow: hidden;
}

/* enfeites soltos no fundo */
.han-decor .shape { position: absolute; color: #fff; --shape-line: #8f8494; }
.han-decor__bow--a { width: 64px; left: 3%; top: 18px; color: #f5d3df; --shape-line: #1c171d; rotate: -12deg; }
.han-decor__bow--b { width: 54px; right: 4%; bottom: 26px; color: #fff; --shape-line: #1c171d; rotate: 14deg; }
.han-decor__spark--a { width: 26px; left: 2%; bottom: 18%; color: #c3dbf1; }
.han-decor__spark--b { width: 20px; right: 2.4%; top: 22%; color: #b98aa1; animation: twinkle 4s ease-in-out infinite; }
.han-card__key { position: absolute; z-index: 6; right: 30%; top: -18px; width: 150px; color: #8f8494; rotate: 38deg; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.18)); }
.han-decor__heart--a { width: 26px; right: 7%; top: 14px; color: #f5d3df; --shape-line: #1c171d; }

.han-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--h-card);
  border: 2px solid #cbb7c3;
  border-radius: 18px;
  box-shadow: 0 30px 60px -34px rgba(60, 40, 60, 0.45);
}

/* ---------- cabeçalho em colagem ---------- */
.han-banner {
  position: relative;
  min-height: 0;
  padding: 12px;
  border-bottom: 2px solid #cbb7c3;
  border-radius: 16px 16px 0 0;
  background: #f1eef3;
}
.han-banner__collage {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.1fr;
  gap: 8px;
  height: 246px;
}
.han-banner__panel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1.5px solid #ddd3dc;
}
.han-banner__panel--lace > svg { width: 100%; height: 100%; display: block; }
.han-banner__panel .shape { height: auto; aspect-ratio: auto; max-width: none; }
.han-banner__heart { height: auto; }
.han-banner__panel--keys { background: #ebe5ed; }
.han-banner__key { position: absolute; color: #8f8494; }
.han-banner__key--a { width: 62%; left: 10%; top: 26%; rotate: -24deg; }
.han-banner__key--b { width: 48%; right: 4%; bottom: 14%; rotate: 32deg; color: #b98aa1; }
.han-banner__bow { position: absolute; width: 34%; left: 50%; top: 52%; translate: -50% -50%; color: #2c2430; --shape-line: #000; }
.han-banner__panel--hearts {
  background-color: #f8e4ec;
  background-image: radial-gradient(circle at 8px 8px, rgba(255, 255, 255, 0.9) 3px, transparent 3.5px);
  background-size: 22px 22px;
}
.han-banner__heart { position: absolute; width: 30px; color: #fff; --shape-line: #1c171d; }
.han-banner__heart--0 { left: 14%; top: 18%; rotate: -12deg; }
.han-banner__heart--1 { left: 58%; top: 10%; width: 22px; color: #1c171d; }
.han-banner__heart--2 { left: 34%; top: 48%; width: 40px; color: #f5c6d6; rotate: 8deg; }
.han-banner__heart--3 { left: 72%; top: 62%; width: 26px; rotate: 16deg; }
.han-banner__heart--4 { left: 10%; top: 72%; width: 20px; color: #c3dbf1; }

.han-banner__profile {
  position: absolute;
  left: clamp(18px, 3vw, 36px);
  top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100% - 140px);
}
.han-banner__avatar {
  flex: none;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 0 0 2px #b98aa1, 0 10px 24px -10px rgba(40, 20, 40, 0.5);
  background: #fff;
}
.han-banner__avatar .ph-photo { border-radius: 50%; font-size: 0.85em; }
.han-banner__avatar .ph-photo__file { display: none; }
.han-banner__name {
  padding: 10px 18px 12px;
  border-radius: 10px;
  background: rgba(233, 222, 230, 0.94);
  max-width: 420px;
}
.han-banner__handle {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--h-ink);
}
.han-banner__phrase { margin-top: 6px; font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.15; color: var(--h-ink); }
.han-banner__fnaf { position: absolute; right: 22px; top: 18px; }
.han-banner__chococat { position: absolute; right: 30%; bottom: -26px; z-index: 4; }
.han-banner__star { left: 46%; top: 14px; --star-color: #fff; --shape-line: #1c171d; }
.han-banner__lace-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 12px;
  z-index: 3;
  background: radial-gradient(circle at 9px 0, #fff 6px, #cbb7c3 6.5px, transparent 7.5px) 0 0 / 18px 12px repeat-x;
  pointer-events: none;
}

/* ---------- três colunas ---------- */
.han-cols {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 300px;
  min-height: 600px;
}
.han-left {
  position: relative;
  padding: 34px 20px 28px;
  border-right: 1px solid #ddd3dc;
  background: #fbfafc;
  display: grid;
  align-content: start;
  gap: 26px;
}
.han-feed {
  position: relative;
  padding: 30px clamp(16px, 2.4vw, 30px) 34px;
  min-width: 0;
}
.han-right {
  position: relative;
  padding: 34px 20px 28px;
  border-left: 1px solid #ddd3dc;
  background: #f7e7ef;
  display: grid;
  align-content: start;
  gap: 18px;
}

/* calendário: só o dia de hoje */
.han-cal {
  display: grid;
  justify-items: center;
  padding: 14px 10px 12px;
  border: 2px solid #e4b9cb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 14px -10px rgba(40, 20, 40, 0.4);
}
.han-cal__month { display: flex; align-items: center; gap: 6px; font-family: var(--f-body); font-weight: 600; font-size: 1.1rem; }
.han-cal__key { width: 22px; height: 22px; color: #8f8494; rotate: -30deg; }
.han-cal__day {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 3.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--h-ink);
}
.han-cal__weekday { font-style: italic; color: var(--h-ink-soft); }

/* menu em serifa, com linhas pontilhadas como na referência */
.han-menu ul { display: grid; }
.han-menu li { border-bottom: 2px dotted #cfc6d2; }
.han-menu__link {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 2px 10px;
  text-align: left;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.3rem;
  color: #7a7080;
  transition: color 160ms ease, transform 200ms var(--ease-out);
}
.han-menu__link:hover { color: var(--h-pink-deep); transform: translateX(4px); }

.han-box__title { font-family: var(--f-display); font-weight: 500; font-size: 1.55rem; line-height: 1.1; margin-bottom: 10px; }
.han-likes__list { display: flex; flex-wrap: wrap; gap: 6px; }
.han-likes__list li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px dashed #cfb3c2;
  font-size: 0.92rem;
  background: #fff;
}
.han-mine { padding: 14px 10px; border-radius: 14px; background: #f1eef3; border: 1.5px solid #ddd3dc; text-align: center; }
.han-mine .han-box__title { font-size: 1.3rem; }
.han-left__star { right: 14px; top: 300px; --star-color: #c3dbf1; --shape-line: #3f6d9e; }
.han-left__pochacco { position: absolute; left: -46px; bottom: 90px; z-index: 5; }

/* ---------- feed ---------- */
.han .tabs__list { border-bottom-color: #e2c8d4; }
.han .tabs__tab {
  --tab-bg: #f4eef1;
  --tab-active: #f5d3df;
  border-color: #e2c8d4;
  font-family: var(--f-body);
  font-size: 1.12rem;
  color: #6a5470;
}
.han .tabs__tab[aria-selected='true'] { color: var(--h-ink); font-weight: 600; }

.han-posts { display: grid; }
.han-post {
  display: grid;
  gap: 8px;
  padding: 18px 4px 14px;
  border-bottom: 1.5px solid #ead9e1;
}
.han-post.is-pinned { padding: 18px 16px 16px; margin-bottom: 8px; border: 1.5px solid #e4b9cb; border-radius: 14px; background: #fff8fb; }
.han-post__head { display: flex; align-items: center; gap: 12px; }
.han-post__avatar {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5d3df;
  border: 2px solid #1c171d;
  color: #fff;
  --shape-line: #1c171d;
}
.han-post__avatar .shape { width: 30px; }
.han-post__who { font-weight: 600; font-size: 1.05rem; }
.han-post__pin { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 0.85rem; color: var(--h-ink-soft); }
.han-post__pin .icon { width: 16px; height: 16px; }
.han-post__text {
  font-family: var(--f-body);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--h-pink-deep);
  max-width: 60ch;
  padding-left: 58px;
}
.han-post.is-pinned .han-post__text { color: var(--h-ink); font-family: var(--f-hand); font-size: 1.7rem; line-height: 1.3; }
.han-post__foot { padding-left: 58px; }
.han-post__like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 10px;
  margin-left: -10px;
  border-radius: 999px;
  color: var(--h-ink-soft);
  font-size: 0.95rem;
}
.han-post__like:hover,
.han-post__like[aria-pressed='true'] { color: var(--h-pink-deep); }
.han-post__like[aria-pressed='true'] .icon { animation: found-burst 360ms var(--ease-out); }

.han-letters__note { color: var(--h-ink-soft); font-style: italic; margin: 0 4px 6px; }
.han .letters-grid { padding-top: 16px; }

.han-mural {
  border-radius: 14px;
  background-color: #f3f0f4;
  background-image: radial-gradient(circle, #ddd3dc 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  padding: 26px 18px 18px;
  --tape: rgba(245, 198, 214, 0.8);
  --pin: #1c171d;
  --frame-color: #fff;
  --frame-edge: #1c171d;
}
.han-feed__star { right: 18px; top: 22px; --star-color: #f5d3df; --shape-line: #a8436c; }

/* ---------- coluna direita ---------- */
.han-about {
  position: relative;
  padding: 16px 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #e4c3d1;
  display: grid;
  gap: 12px;
}
.han-about__photo {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px #d8c3cf;
}
.han-about__chococat { position: absolute; right: -14px; top: -16px; z-index: 2; }
.han-about__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--h-pink-deep);
}
.han-about__title .icon { color: #8f8494; rotate: -30deg; }
.han-about__decl { font-family: var(--f-hand); font-size: 1.75rem; line-height: 1.22; }
.han-love { display: grid; gap: 8px; justify-items: start; }
.han-love__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: #1c171d;
  color: #fbe3ec;
  font-family: var(--f-body);
  font-size: 1rem;
}
.han-love__heart { width: 24px; color: #f5c6d6; --shape-line: transparent; }
.han-love__btn:hover .han-love__heart { animation: found-burst 420ms var(--ease-out); }
.han-love__reply {
  font-family: var(--f-hand);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--h-pink-deep);
  min-height: 1.2em;
}
.han-love__reply.is-on { animation: pop-in 320ms var(--ease-out) both; }
.han-about__sub { font-family: var(--f-body); font-size: 0.95rem; font-weight: 600; color: var(--h-ink-soft); margin-bottom: 6px; }
.han-about__chars { display: flex; gap: 6px; }
.han-about__poke { display: grid; justify-items: center; gap: 6px; padding-top: 8px; border-top: 1.5px dotted #e4c3d1; }
.han-about__poke-hint { font-size: 0.9rem; font-style: italic; color: var(--h-ink-soft); }
.han-about__star { left: -16px; bottom: 120px; --star-color: #fff; --shape-line: #1c171d; }

.han .counter { background: #fff; border-color: #d9a9bd; }
.han .player { --player-bg: #fff; border-color: #e4c3d1; }
.han .player__disc { background: #1c171d; color: #f5c6d6; }

/* ---------- rodapé ---------- */
.han-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  padding: 26px clamp(18px, 3vw, 36px) 28px;
  border-top: 2px solid #cbb7c3;
  border-radius: 0 0 16px 16px;
  background: #ead9e2;
}
.han-footer__bye { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.2; max-width: 46ch; }
.han-footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; }
.han-footer .leave-btn { background: #fff; }
.han-footer .rbx-portal__frame { width: 74px; height: 74px; }
.han-footer .rbx-portal__swirl { width: 40px; height: 40px; }
.tiny-envelope--han { right: 22px; top: -18px; --tiny-body: #1c171d; --tiny-line: #f5c6d6; }
.han-footer__star { left: 42%; top: -20px; --star-color: #c3dbf1; --shape-line: #3f6d9e; }

/* ---------- telas menores ---------- */
@media (max-width: 1120px) {
  .han-cols { grid-template-columns: 210px minmax(0, 1fr) 270px; }
}

@media (max-width: 960px) {
  .han-cols {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'feed feed'
      'left right';
  }
  .han-feed { grid-area: feed; border-bottom: 1px solid #ddd3dc; }
  .han-left { grid-area: left; }
  .han-right { grid-area: right; }
  .han-left__pochacco { left: auto; right: -20px; bottom: 30px; }
}

@media (max-width: 680px) {
  .han-field { padding: 14px 8px 48px; }
  .han-banner { min-height: 0; padding: 8px; }
  .han-banner__collage { height: 150px; grid-template-columns: 1fr 1fr; }
  .han-banner__panel--hearts { display: none; }
  .han-banner__profile {
    position: relative;
    left: 0;
    top: 0;
    margin: -64px 0 0;
    padding: 0 6px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: none;
  }
  .han-banner__avatar { width: 118px; height: 118px; }
  .han-banner__fnaf { right: 10px; top: 10px; }
  .han-banner__chococat { right: 12px; bottom: -22px; }
  .han-cols { grid-template-columns: 1fr; grid-template-areas: 'left' 'feed' 'right'; }
  .han-left { grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; padding: 20px 14px; border-top: 0; }
  .han-left .han-menu { display: none; }
  .han-left .han-likes { grid-column: 1 / -1; grid-row: 2; }
  .han-left .han-mine { grid-row: 1; grid-column: 2; }
  .han-left .han-cal { grid-row: 1; grid-column: 1; }
  .han-left__star { top: auto; bottom: 10px; }
  .han-card__key { display: none; }
  .han-left,
  .han-right { border: 0; border-top: 1px solid #ddd3dc; }
  .han-post__text,
  .han-post__foot { padding-left: 0; }
  .han .tabs__tab { padding: 8px 12px; font-size: 1rem; }
  .han-footer { grid-template-columns: 1fr; }
  .han-footer__links { justify-content: flex-start; }
  .han-left__pochacco { right: 6px; left: auto; bottom: -40px; }
}
