/* ========================================= */
/* 네리네 페이지 전체 */
/* ========================================= */

.nerine-body {
  margin: 0;
  background: #e8ddc6;
  color: #25251b;
  font-family: Georgia, "Times New Roman", serif;
}

.nerine-page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 22px 20px 90px;
  overflow-x: hidden;
}


/* ========================================= */
/* 타이틀 */
/* ========================================= */

.nerine-title-area {
  margin: 32px 0 28px;
}

.small-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.nerine-logo {
  margin: 0;
  font-size: 46px;
  line-height: 0.9;
  letter-spacing: -0.06em;
  transform: rotate(-4deg);
  transform-origin: left center;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nerine-subtitle {
  margin: 8px 0 0 10px;
  font-size: 14px;
  font-style: italic;
}


/* ========================================= */
/* HERO */
/* ========================================= */

.nerine-hero {
  position: relative;
  height: 560px;
  margin: 0 0 72px;
}

/* 프로필 표: CSS 종이 */
.profile-note {
  position: absolute;
  left: 10px;
  top: 80px;

  width: 180px;
  min-height: 340px;
  padding: 24px 18px;

  background: #d6c6a5;
  border: 1px solid rgba(37, 37, 27, 0.65);
  box-shadow: 4px 4px 0 rgba(37, 37, 27, 0.18);

  transform: rotate(-1.8deg);
  /* -3~-4 말고 -2 */
  z-index: 5;
}

.profile-note h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.profile-list {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.profile-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px;
  margin-bottom: 5px;
}

.profile-list dt {
  font-weight: bold;
}

.profile-list dd {
  margin: 0;
}

/* 네리네 사진 */
.character-stand {
  position: absolute;
  right: 10px;
  top:40px;

  width: 245px;
  height: 405px;

  background: #fff;
  border: 1px dashed #25251b;

  overflow: hidden;
  transform: rotate(0deg);
  /* ★ 회전 제거 */
  z-index: 2;
}

.character-stand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 현상금 종이 */
.bounty-slip {
  position: absolute;
  left: 118px;
  top: 425px;

  width: 245px;
  min-height: 82px;
  padding: 30px 34px;

  background: #d6c6a5;
  border: 1px solid rgba(37, 37, 27, 0.65);
  box-shadow: 4px 4px 0 rgba(37, 37, 27, 0.18);

  transform: rotate(1deg);   /* 거의 안 기울임 */
  z-index:8;

  font-size: 15px;
}


/* ========================================= */
/* 공통 섹션 */
/* ========================================= */

.page-section {
  margin: 58px 0;
}

.section-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;

  background: #f3ead7;
  border: 1px dashed #25251b;

  font-size: 15px;
  font-weight: normal;
  transform: rotate(-2deg);
}

.dark-photo-box {
  width: 100%;
  height: 150px;
  background: #292918;
  border: 1px solid #1c1c12;
}

.page-section p {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}


/* ========================================= */
/* 큰 문서 */
/* ========================================= */

.dashed-document {
  min-height: 190px;
  padding: 18px;
  background: #efe4cc;
  border: 1px dashed #25251b;
  transform: rotate(-1deg);
}


/* ========================================= */
/* 인간관계 */
/* ========================================= */

.relation-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;

  margin-bottom: 22px;
  padding: 14px;

  background: #f0e6d0;
  border: 1px solid rgba(37, 37, 27, 0.65);
  box-shadow: 3px 3px 0 rgba(37, 37, 27, 0.18);

  transform: rotate(-1deg);
}

.relation-card.reverse {
  grid-template-columns: 1fr 92px;
  transform: rotate(1deg);
}

.relation-card.reverse .relation-photo {
  order: 2;
}

.relation-photo {
  min-height: 120px;
  border: 1px solid #25251b;
  background: rgba(255, 255, 255, 0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 10px;
}

.relation-text h3 {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  background: #d6c6a5;
  font-size: 14px;
  font-weight: normal;
}

.relation-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}


/* ========================================= */
/* 항해일지 */
/* ========================================= */

.logbook-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.logbook-card {
  padding: 16px;
  background: #f0e6d0;
  border: 1px solid rgba(37, 37, 27, 0.65);
  box-shadow: 3px 3px 0 rgba(37, 37, 27, 0.18);
  transform: rotate(-1deg);
}

.logbook-card:nth-child(even) {
  transform: rotate(1deg);
}

.logbook-card h3 {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  background: #d6c6a5;
  font-size: 15px;
  font-weight: normal;
}

.logbook-image {
  height: 135px;
  margin-bottom: 12px;
  background: #292918;
  border: 1px solid #1c1c12;
}

.logbook-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}


/* ========================================= */
/* 각주 */
/* ========================================= */

.footnote {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-bottom: none;
  text-decoration: none;
}

.footnote-number,
.footnote sup {
  vertical-align: super;
  font-size: 0.65em;
  line-height: 0;
  text-decoration: none;
}

.footnote-popup {
  display: none;
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 80px;

  width: auto;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px;

  background: #f3ead7;
  border: 1px solid #25251b;
  box-shadow: 3px 3px 0 rgba(37, 37, 27, 0.2);

  font-size: 12px;
  line-height: 1.6;
  z-index: 9999;
}

.footnote:hover .footnote-popup,
.footnote:focus-within .footnote-popup {
  display: block;
}