@charset "UTF-8";

.egg-characters-page { background: #171421; }
.egg-characters-page [id] { scroll-margin-top: 82px; }
.char-hero, .char-intro, .char-profiles { position: relative; isolation: isolate; }
.char-hero {
  display: flex;
  min-height: 590px;
  align-items: center;
  overflow: hidden;
  background: #1b1726;
}
.char-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("../images/eggsign/bg_rooftop.jpg") center 43% / cover no-repeat;
  opacity: .58;
}
.char-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(23, 18, 34, .97) 0%, rgba(23, 18, 34, .81) 49%, rgba(23, 18, 34, .2) 100%), linear-gradient(0deg, #171421, transparent 42%);
}
.char-hero__inner { width: min(100% - 80px, 1200px); margin: 118px auto 85px; }
.char-hero__eyebrow { margin: 0 0 30px; color: #ead7ba; font: 600 .8rem Georgia, serif; letter-spacing: .25em; }
.char-hero__eyebrow span { padding: 0 12px; color: #e1bf8c; }
.char-hero h1, .char-intro h2, .char-profiles h2 {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  letter-spacing: .075em;
}
.char-hero h1 { max-width: 1000px; margin: 0; font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: 1.42; }
.char-hero__lead { margin: 30px 0 36px; color: #f1e8e8; font: 1rem/2 Georgia, "Yu Mincho", serif; letter-spacing: .06em; }
.char-hero__link, .char-back a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 20px;
  border: 1px solid #d9bf91;
  color: #f8eedf;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .25s ease, color .25s ease;
}
.char-hero__link:hover, .char-back a:hover { background: #d9bf91; color: #181727; }
.char-hero__decoration { position: absolute; right: 35px; bottom: 35px; color: #fff9; font: .7rem Georgia, serif; letter-spacing: .2em; writing-mode: vertical-rl; }

.char-intro {
  padding: 115px 24px 135px;
  background: radial-gradient(circle at 50% -10%, #fffaf8 0%, transparent 50%), #efe4e3;
  color: #302536;
}
.char-intro::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 148px, rgba(106, 72, 93, .045) 149px, transparent 150px);
  pointer-events: none;
}
.char-intro__heading, .char-profiles__heading { max-width: 900px; margin: 0 auto 65px; text-align: center; }
.char-intro__heading .egg-section-mark, .char-profiles__heading .egg-section-mark { justify-content: center; }
.char-intro .egg-section-mark { color: #9b6c79; }
.char-intro .egg-section-mark span { color: #4c3446; }
.char-intro h2, .char-profiles h2 { margin: 0; font-size: clamp(2.45rem, 4.5vw, 4.4rem); line-height: 1.5; }
.char-intro__heading > p:last-child, .char-profiles__heading > p:last-child { margin: 25px auto 0; font-size: .87rem; line-height: 2; letter-spacing: .03em; }
.char-intro__heading > p:last-child { color: #665965; }
.char-index {
  display: grid;
  width: min(100%, 1400px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}
.char-index__item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(113, 75, 97, .23);
  background: #fffaf7;
  box-shadow: 0 11px 25px rgba(61, 35, 54, .07);
  color: #322536;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.char-index__item:hover, .char-index__item[aria-current] { transform: translateY(-6px); border-color: #a66f84; box-shadow: 0 18px 38px rgba(74, 41, 63, .19); }
.char-index__item-art { position: relative; display: block; height: clamp(145px, 14vw, 205px); overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tile-accent) 50%, white), #e5d9dc 72%); }
.char-index__item-art img { position: absolute; top: 6px; left: 50%; width: auto; max-width: none; height: 178%; transform: translateX(-50%); }
.char-index__item-text { display: flex; min-height: 95px; flex-direction: column; align-items: flex-start; padding: 13px 12px 15px; }
.char-index__item-text small { color: #907583; font: .57rem Georgia, serif; letter-spacing: .07em; white-space: nowrap; }
.char-index__item-text strong { margin: 4px 0 2px; font: 600 clamp(.93rem, 1.15vw, 1.12rem) Georgia, "Yu Mincho", serif; letter-spacing: .05em; white-space: nowrap; }
.char-index__item-text em { color: #796675; font-size: .68rem; font-style: normal; }

.char-profiles {
  padding: 115px 24px 130px;
  background: radial-gradient(circle at 50% 0, #392840 0%, transparent 55%), #171421;
}
.char-profiles__heading { margin-bottom: 45px; }
.char-profiles__heading > p:last-child { color: #d6cbd2; }
.char-profile-controls {
  display: flex;
  width: min(100%, 1320px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 20px;
}
.char-profile-controls[hidden] { display: none; }
.char-profile-controls button { display: inline-flex; align-items: center; gap: 13px; padding: 11px 15px; border: 1px solid #b99eac; background: transparent; color: #f4e8eb; font: 700 .75rem sans-serif; letter-spacing: .05em; cursor: pointer; transition: background .25s ease, color .25s ease; }
.char-profile-controls button:hover { background: #f1e4df; color: #2e2334; }
.char-profile-controls__count { min-width: 5ch; color: #dec9d1; font: italic 1.1rem Georgia, serif; letter-spacing: .14em; text-align: center; white-space: nowrap; }
.char-grid { display: grid; width: min(100%, 1320px); gap: 26px; margin: auto; }
.char-card {
  display: grid;
  min-width: 0;
  min-height: 660px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(232, 207, 211, .4);
  background: #241e31;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}
.char-card[hidden] { display: none; }
.char-card.is-active { animation: char-stage-enter .5s ease both; }
.char-card__portrait {
  position: relative;
  display: flex;
  min-height: 660px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--char-accent) 45%, #d9cdd9) 0%, #4b3d51 55%, #211c2e 100%);
}
.char-card__portrait::before { position: absolute; inset: 20px; content: ""; border: 1px solid rgba(255, 255, 255, .27); pointer-events: none; }
.char-card__portrait::after { position: absolute; right: 0; bottom: 0; left: 0; height: 120px; content: ""; background: linear-gradient(0deg, rgba(28, 22, 39, .65), transparent); pointer-events: none; }
.char-card__portrait > img { position: relative; display: block; width: auto; max-width: none; height: 93%; max-height: 690px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 15px 20px rgba(24, 16, 32, .3)); }
.char-card__number { position: absolute; z-index: 1; top: 32px; left: 35px; color: #fff; font: italic 2.2rem Georgia, serif; letter-spacing: .05em; }
.char-card__body { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 78px); }
.char-card__sign, .char-card__effect-title { margin: 0; color: var(--char-accent); font: .82rem Georgia, "Yu Mincho", serif; letter-spacing: .18em; }
.char-card__sign span { color: #c9bbc8; }
.char-card h3 { margin: 18px 0 23px; color: #fff; font: 600 clamp(2.5rem, 4vw, 4.5rem)/1.25 Georgia, "Yu Mincho", serif; letter-spacing: .09em; }
.char-card__line { order: 2; margin: 0 0 24px; color: #eee6ea; font-size: .9rem; line-height: 2; }
.char-card__quote { order: 1; position: relative; margin: 0 0 25px; padding: 25px 0 25px 25px; border-left: 2px solid var(--char-accent); color: #fff7f6; font: 600 clamp(.97rem, 1.5vw, 1.25rem)/1.9 Georgia, "Yu Mincho", serif; letter-spacing: .035em; }
.char-card__effects { order: 3; margin-top: 8px; padding-top: 27px; border-top: 1px solid rgba(217, 191, 145, .35); }
.char-card__effect-title { margin-bottom: 20px; color: #e5c9a5; }
.char-card__effect-title span { color: #bdafbf; font: .7rem sans-serif; letter-spacing: .02em; }
.char-card__effects dl { display: grid; gap: 10px; margin: 0; }
.char-card__effects dl > div { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: start; gap: 14px; padding: 13px 15px; border: 1px solid rgba(219, 192, 207, .2); background: rgba(255, 255, 255, .055); }
.char-card__effects dt { padding: 3px 0; border: 1px solid #d9bf91; color: #e7d0ad; font-size: .7rem; font-weight: 700; line-height: 1.5; text-align: center; }
.char-card__effects dd { min-width: 0; margin: 0; color: #eee7eb; font-size: .8rem; line-height: 1.75; }
.char-back { padding: 105px 20px 120px; background: #291f32; text-align: center; }
.char-back p { margin: 0 0 26px; font: 600 clamp(1.3rem, 2.5vw, 2rem) Georgia, "Yu Mincho", serif; letter-spacing: .1em; }
@keyframes char-stage-enter { from { opacity: .65; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .char-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .char-index__item-art { height: 185px; }
  .char-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .char-card__body { padding: 38px; }
}
@media (max-width: 700px) {
  .char-hero { min-height: 570px; }
  .char-hero__inner { width: calc(100% - 40px); margin: 108px auto 70px; }
  .char-hero::after { background: linear-gradient(90deg, rgba(23, 18, 34, .93), rgba(23, 18, 34, .5)), linear-gradient(0deg, #171421, transparent 45%); }
  .char-hero h1 { font-size: clamp(2.3rem, 8vw, 3.7rem); }
  .char-hero__lead { font-size: .9rem; }
  .char-hero__decoration { display: none; }
  .char-intro, .char-profiles { padding: 85px 16px 95px; }
  .char-intro__heading, .char-profiles__heading { margin-bottom: 38px; }
  .char-intro h2, .char-profiles h2 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
  .char-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .char-index__item-art { height: clamp(145px, 45vw, 210px); }
  .char-index__item-text { min-height: 88px; }
  .char-index__item-text strong { font-size: 1rem; }
  .char-profile-controls { gap: 7px; }
  .char-profile-controls button { padding: 9px; font-size: .68rem; }
  .char-profile-controls__count { font-size: .84rem; white-space: nowrap; }
  .char-card { grid-template-columns: 1fr; }
  .char-card__portrait { min-height: 0; height: min(103vw, 450px); }
  .char-card__portrait > img { height: 100%; max-height: none; }
  .char-card__body { padding: 31px 25px 36px; }
  .char-card h3 { font-size: 2.7rem; }
  .char-card__line { font-size: .85rem; }
  .char-card__quote { font-size: .98rem; }
  .char-card__effects dl > div { grid-template-columns: 43px minmax(0, 1fr); gap: 10px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .char-card.is-active { animation: none; }
  .char-index__item, .char-profile-controls button { transition: none; }
}

/* Larger character targets and profile navigation */
.char-index {
  width: min(100%, 1280px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.char-index__item {
  display: flex;
  min-height: 375px;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(61, 35, 54, .08);
}
.char-index__item:hover, .char-index__item:focus-visible, .char-index__item[aria-current] {
  transform: translateY(-5px);
  border-color: #9a6179;
  box-shadow: 0 20px 42px rgba(74, 41, 63, .2);
}
.char-index__item-art { height: 245px; flex: 0 0 245px; }
.char-index__item-art img { top: 7px; height: 175%; }
.char-index__item-text { display: flex; min-height: 130px; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px 18px 17px; }
.char-index__item-text small { color: #856674; font-size: .68rem; letter-spacing: .08em; }
.char-index__item-text strong { margin: 7px 0 2px; color: #35273a; font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.char-index__item-text em { color: #756170; font-size: .8rem; }
.char-index__item-action { display: flex; width: 100%; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #e8dadd; color: #794c67; font-size: .73rem; font-weight: 700; letter-spacing: .04em; }
.char-index__item-action span { font-size: 1rem; line-height: 1; }
.char-index__note {
  display: flex;
  min-height: 375px;
  grid-column: span 3;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(25px, 4vw, 58px);
  background: linear-gradient(125deg, #5c3b55, #342538);
  color: #fff6f5;
}
.char-index__note span { color: #f0cddc; font: .78rem Georgia, serif; letter-spacing: .18em; }
.char-index__note strong { margin: 20px 0; font: 600 clamp(2rem, 3vw, 3.2rem)/1.45 Georgia, "Yu Mincho", serif; letter-spacing: .07em; }
.char-index__note small { color: #f4dce6; font-size: .83rem; }
.char-profile-controls { gap: 18px; margin-bottom: 24px; }
.char-profile-controls button { min-height: 48px; white-space: nowrap; }
@media (max-width: 1000px) {
  .char-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .char-index__note { grid-column: span 2; }
}
@media (max-width: 720px) {
  .char-index { width: min(100%, 520px); grid-template-columns: 1fr; gap: 10px; }
  .char-index__item { display: grid; min-height: 142px; grid-template-columns: 120px minmax(0, 1fr); }
  .char-index__item-art { height: 100%; min-height: 142px; }
  .char-index__item-art img { height: 205%; top: 3px; }
  .char-index__item-text { min-height: 0; justify-content: center; padding: 13px 16px; }
  .char-index__item-text small { font-size: .63rem; }
  .char-index__item-text strong { margin: 5px 0 1px; font-size: 1.32rem; }
  .char-index__item-text em { font-size: .74rem; }
  .char-index__item-action { margin-top: 11px; padding-top: 8px; font-size: .7rem; }
  .char-index__note { display: none; }
  .char-profile-controls { flex-wrap: nowrap; gap: 10px; }
  .char-profile-controls button { flex: 1; justify-content: center; min-width: 0; }
}
@media (max-width: 390px) {
  .char-index__item { grid-template-columns: 105px minmax(0, 1fr); }
  .char-index__item-text { padding-right: 12px; padding-left: 12px; }
}

#eris { --char-accent: #dfc37b; }
#tarl { --char-accent: #a7c3a4; }
#jess { --char-accent: #93b7d9; }
#mina { --char-accent: #93b7d9; }
#cancer { --char-accent: #c6d1d9; }
#leo { --char-accent: #d6978f; }
#virgo { --char-accent: #ded5d8; }
#liv { --char-accent: #cab4d4; }
#spirio { --char-accent: #aa9ac9; }
#sagia { --char-accent: #d6b382; }
#corn { --char-accent: #b7b4bc; }
#quali { --char-accent: #96bdca; }
#piske { --char-accent: #dbaabc; }
