:root {
  --paper: #fffaf5;
  --paper-deep: #fff2eb;
  --cream: #fff7df;
  --pink-50: #fff0f5;
  --pink-100: #ffddea;
  --pink-200: #ffc3d9;
  --pink-500: #cf3f75;
  --burgundy: #8f294d;
  --plum: #4b2634;
  --brown: #6a443f;
  --line: #efb8c8;
  --shadow: 0 18px 50px rgba(124, 47, 74, 0.14);
  --small-shadow: 0 8px 22px rgba(124, 47, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  color: var(--plum);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 194, 218, 0.48) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 16%, rgba(255, 246, 185, 0.62) 0 150px, transparent 151px),
    linear-gradient(135deg, #fff5f7 0%, #fff9ed 46%, #ffeef5 100%);
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 24px;
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.page-tabs {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px 14px;
  border: 1px solid rgba(239, 184, 200, 0.88);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.82);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(12px);
}

.page-tabs::before {
  content: "tab stickers";
  display: block;
  margin-bottom: 4px;
  color: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tab-button,
.sticker-tabs button,
.character-tabs button,
.primary-action,
.soft-action {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--plum);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tab-button {
  position: relative;
  padding: 10px 12px;
  background: #fff7fb;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: left;
}

.tab-button::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd0df;
}

.tab-button:hover,
.sticker-tabs button:hover,
.character-tabs button:hover,
.primary-action:hover,
.soft-action:hover {
  transform: translateY(-1px) rotate(-0.3deg);
  box-shadow: var(--small-shadow);
}

.tab-button.is-active,
.sticker-tabs button.is-active,
.character-tabs button.is-active {
  color: #fffaf6;
  border-color: #b63160;
  background: var(--burgundy);
}

.tab-button.is-active::after {
  background: #ffe7a8;
}

.book {
  min-width: 0;
}

.page {
  position: relative;
  display: none;
  min-height: calc(100vh - 48px);
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(239, 184, 200, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 221, 234, 0.35) 0 32px, transparent 33px),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(239, 184, 200, 0.22) 36px),
    var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.page.is-active {
  display: block;
  animation: pageIn 240ms ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.binder-holes {
  position: absolute;
  top: 44px;
  bottom: 44px;
  left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 0;
}

.binder-holes span {
  width: 14px;
  height: 14px;
  border: 1px solid #e8a9bd;
  border-radius: 50%;
  background: #fff8f4;
  box-shadow: inset 0 2px 5px rgba(122, 58, 75, 0.16);
}

.cover-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: 72vh;
}

.cover-copy {
  max-width: 760px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid #ebb2c2;
  border-radius: 999px;
  color: var(--burgundy);
  background: #fff4c7;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  color: var(--plum);
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
}

h1 span {
  display: block;
  color: var(--burgundy);
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.7rem);
}

h3 {
  font-size: 1.18rem;
}

.subtitle {
  margin: 22px 0 8px;
  color: var(--burgundy);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
}

.lead,
.section-heading p,
.guide-header p {
  max-width: 760px;
  color: var(--brown);
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.soft-action {
  padding: 11px 18px;
  font-weight: 900;
}

.primary-action {
  color: #fffaf6;
  border-color: #b63160;
  background: var(--burgundy);
}

.soft-action {
  background: #fff8fb;
}

.logo-sticker {
  position: relative;
  justify-self: center;
  width: min(100%, 286px);
  padding: 34px 24px 22px;
  border: 1px solid #f0b8c8;
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 16px 30px rgba(116, 54, 75, 0.12);
  transform: rotate(2deg);
}

.logo-sticker img {
  width: min(100%, 210px);
  margin: 0 auto;
  filter: drop-shadow(0 8px 12px rgba(78, 32, 45, 0.15));
}

.paper-tape {
  position: absolute;
  left: 50%;
  width: 104px;
  height: 25px;
  border: 1px solid rgba(229, 164, 185, 0.72);
  background: rgba(255, 219, 231, 0.72);
  transform: translateX(-50%) rotate(-5deg);
}

.paper-tape.top {
  top: -13px;
}

.sticker-note {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding: 4px 10px;
  border: 1px dashed #db8faa;
  border-radius: 999px;
  color: var(--burgundy);
  background: #fff7df;
  font-size: 0.76rem;
  font-weight: 900;
}

.section-heading,
.guide-header {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.diary-grid,
.ally-grid,
.doks-grid,
.files-stack,
.pulse-board,
.pulse-reader {
  position: relative;
  z-index: 1;
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.memo-card,
.pulse-board article {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: var(--small-shadow);
}

.memo-card:nth-child(2) {
  transform: rotate(1deg);
}

.memo-card:nth-child(3) {
  transform: rotate(-1deg);
}

.memo-pin {
  display: inline-block;
  margin-bottom: 16px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fffaf6;
  background: var(--pink-500);
  font-size: 0.72rem;
  font-weight: 900;
}

.ally-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ally-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ally-line, #efb8c8);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 248, 251, 0.94)),
    var(--ally-soft, #fff8fb);
  box-shadow: var(--small-shadow);
}

.ally-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 78px;
  height: 20px;
  border: 1px solid rgba(255, 187, 207, 0.75);
  background: rgba(255, 218, 230, 0.74);
  transform: translateX(-50%) rotate(-4deg);
}

.ally-jessica {
  --ally-line: #e9a4bd;
  --ally-soft: #fff1f7;
}

.ally-marilyn {
  --ally-line: #efbd78;
  --ally-soft: #fff7df;
}

.ally-victoria {
  --ally-line: #c5a0d7;
  --ally-soft: #f8f0ff;
}

.ally-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px 14px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(255, 232, 241, 0.58));
}

.ally-photo img {
  width: 100%;
  max-height: 370px;
  border: 1px solid rgba(239, 184, 200, 0.82);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 10px 22px rgba(95, 42, 57, 0.14);
}

.ally-copy {
  padding: 18px;
}

.ally-role {
  width: fit-content;
  margin: 0 0 9px;
  padding: 4px 9px;
  border: 1px dashed var(--ally-line, #efb8c8);
  border-radius: 999px;
  color: var(--burgundy);
  background: #fffefa;
  font-size: 0.78rem;
  font-weight: 900;
}

.ally-copy p {
  color: var(--brown);
  font-size: 0.93rem;
}

.ally-quote {
  margin: 16px 0 0;
  padding: 12px;
  border-left: 4px solid var(--ally-line, #efb8c8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--burgundy) !important;
  font-weight: 900;
}

.bunny-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bunny-strip img {
  width: 100%;
  max-height: 210px;
  padding: 12px;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: #fff8fb;
}

.guide-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: center;
}

.guide-header img {
  justify-self: end;
  width: 150px;
  max-height: 150px;
  padding: 10px;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: #fff8fb;
  transform: rotate(3deg);
}

.sticker-tabs,
.character-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.sticker-tabs button,
.character-tabs button {
  padding: 9px 13px;
  background: #fff4f8;
  font-size: 0.92rem;
  font-weight: 900;
}

.category-note {
  position: relative;
  z-index: 1;
  margin: 12px 0 20px;
  padding: 16px 18px;
  border: 1px dashed #dc91aa;
  border-radius: 8px;
  color: var(--brown);
  background: #fff9e8;
}

.guide-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.guide-entry {
  overflow: hidden;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--small-shadow);
}

.guide-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.guide-number {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fffaf6;
  background: var(--burgundy);
  font-weight: 900;
}

.guide-summary strong {
  display: block;
  margin-bottom: 3px;
  color: var(--plum);
}

.guide-summary span {
  display: block;
  color: var(--brown);
  font-size: 0.92rem;
}

.guide-arrow {
  color: var(--burgundy);
  font-weight: 900;
}

.guide-body {
  padding: 0 18px 20px 74px;
  color: var(--brown);
}

.guide-body p {
  margin: 0 0 14px;
}

.doks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doks-card,
.file-card {
  overflow: hidden;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--small-shadow);
}

.doks-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.doks-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 226, 237, 0.7), rgba(255, 249, 231, 0.72)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 184, 210, 0.22) 19px 22px);
}

.doks-image img {
  width: 100%;
  max-height: 330px;
}

.card-copy {
  padding: 20px;
}

.character-role {
  margin: 6px 0 10px;
  color: var(--burgundy);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  border: 1px solid #ebb2c2;
  border-radius: 999px;
  color: var(--burgundy);
  background: #fff4f8;
  font-size: 0.8rem;
  font-weight: 800;
}

.files-stack {
  display: grid;
  gap: 22px;
}

.file-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1fr);
  gap: 18px;
  padding: 18px;
}

.file-visuals {
  position: relative;
  min-height: 450px;
}

.profile-frame,
.id-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: #fff8fb;
}

.profile-frame {
  min-height: 450px;
  height: 100%;
  padding: 12px;
}

.profile-frame img {
  width: 100%;
  max-height: 450px;
}

.id-frame {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: min(66%, 320px);
  min-height: 210px;
  padding: 10px;
  background: #fff9e8;
  box-shadow: 0 12px 26px rgba(93, 42, 58, 0.18);
  transform: rotate(1.2deg);
}

.id-frame img {
  width: 100%;
  max-height: 220px;
}

.file-copy {
  align-self: center;
  padding: 12px;
}

.file-quote {
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--pink-500);
  border-radius: 8px;
  background: #fff4f8;
  color: var(--burgundy);
  font-weight: 900;
}

.gallery-stage {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid var(--char-line, #efb8c8);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 223, 0.72)),
    var(--char-soft, #fff4f8);
  box-shadow: var(--small-shadow);
}

.theme-dominic {
  --char-main: #8b2945;
  --char-line: #d6a15e;
  --char-soft: #fff1ed;
}

.theme-ethan {
  --char-main: #57212c;
  --char-line: #9b3345;
  --char-soft: #fff2f4;
}

.theme-luka {
  --char-main: #4b3c9b;
  --char-line: #9bb5f2;
  --char-soft: #f2f4ff;
}

.theme-julian {
  --char-main: #3d7653;
  --char-line: #b9d3a2;
  --char-soft: #f5faee;
}

.gallery-patches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0 0 16px;
  pointer-events: none;
}

.patch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 38px;
  border: 1px solid var(--char-line, #efb8c8);
  border-radius: 13px 10px 14px 9px;
  color: var(--char-main, var(--burgundy));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 248, 0.86)),
    var(--char-soft, #fff4f8);
  box-shadow: 0 8px 16px rgba(95, 42, 57, 0.12);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1;
}

.patch::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(143, 41, 77, 0.28);
  border-radius: 10px 8px 11px 7px;
}

.patch-1 {
  transform: rotate(-5deg);
}

.patch-2 {
  width: 50px;
  height: 34px;
  transform: rotate(3deg);
}

.patch-3 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: rotate(-2deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 13px;
}

.gallery-thumb {
  position: relative;
  min-height: 170px;
  padding: 8px;
  border: 1px solid var(--char-line, #efb8c8);
  border-radius: 8px;
  background: #fffefa;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(95, 42, 57, 0.12);
}

.gallery-thumb::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 54px;
  height: 15px;
  border: 1px solid rgba(255, 187, 207, 0.78);
  background: rgba(255, 218, 230, 0.72);
  transform: translateX(-50%) rotate(-4deg);
}

.gallery-thumb img {
  width: 100%;
  height: 150px;
}

.webtoon-reader {
  display: grid;
  gap: 30px;
  width: min(860px, 100%);
  margin: 24px auto 0;
}

.webtoon-reader img {
  width: 100%;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: var(--small-shadow);
}

.pulse-reader {
  display: grid;
  gap: 30px;
  width: min(860px, 100%);
  margin: 24px auto 0;
}

.pulse-image {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #efb8c8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 244, 248, 0.92)),
    #fffefa;
  box-shadow: var(--small-shadow);
  cursor: zoom-in;
}

.pulse-image img {
  width: 100%;
  max-height: none;
}

.pulse-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pulse-board span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fffaf6;
  background: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(72, 28, 43, 0.72);
}

.modal img {
  width: min(100%, 1080px);
  max-height: 88vh;
  border: 10px solid #fffaf5;
  border-radius: 8px;
  background: #fffaf5;
  box-shadow: 0 18px 60px rgba(30, 14, 20, 0.35);
  cursor: zoom-out;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid #ffd6e3;
  border-radius: 50%;
  color: #fffaf6;
  background: var(--burgundy);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .page-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .page-tabs::before {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-width: 108px;
    text-align: center;
  }

  .cover-layout,
  .guide-header,
  .file-card,
  .pulse-board {
    grid-template-columns: 1fr;
  }

  .logo-sticker,
  .guide-header img {
    justify-self: start;
  }

  .diary-grid,
  .doks-grid,
  .bunny-strip {
    grid-template-columns: 1fr;
  }

  .ally-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-frame {
    min-height: 330px;
  }

  .profile-frame img {
    max-height: 340px;
  }

  .file-visuals {
    display: grid;
    gap: 12px;
    min-height: 0;
  }

  .id-frame {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }

  .ally-photo img {
    max-height: 315px;
  }
}

@media (max-width: 640px) {
  .page {
    min-height: calc(100vh - 28px);
    padding: 28px 16px 26px 34px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .cta-row,
  .sticker-tabs,
  .character-tabs {
    display: grid;
  }

  .primary-action,
  .soft-action,
  .sticker-tabs button,
  .character-tabs button {
    width: 100%;
  }

  .guide-toggle {
    grid-template-columns: 1fr auto;
  }

  .guide-number {
    grid-column: 1 / -1;
  }

  .guide-body {
    padding: 0 16px 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ally-grid,
  .diary-grid,
  .bunny-strip {
    grid-template-columns: 1fr;
  }

  .gallery-thumb {
    min-height: 140px;
  }

  .gallery-thumb img {
    height: 122px;
  }
}
