#cq-dollhouse {
  --ink: #3a2729; --wine: #623b4a; --brown: #7a594a; --gold: #ad8860;
  --paper: #f0e5d0; --pale: #fff7e8;
  color: var(--ink); font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55; box-sizing: border-box;
}
#cq-dollhouse *, #cq-dollhouse *::before, #cq-dollhouse *::after { box-sizing: inherit; }
#cq-dollhouse a { color: var(--wine); }
#cq-dollhouse a:focus-visible, #cq-dollhouse summary:focus-visible {
  outline: 3px solid #9f6070; outline-offset: 5px;
}
#cq-dollhouse .dh-banner {
  position: relative !important; width: min(100%, 1100px); min-height: 180px;
  margin: 0 auto 18px; padding: 25px 170px 20px 240px;
  display: flex; flex-direction: column; justify-content: center;
}
#cq-dollhouse .dh-banner h1 {
  font-size: clamp(2.9rem, 7vw, 5.2rem); line-height: 1.05;
  color: #f4e7d0; text-shadow: 2px 2px 1px #29171d, 0 0 14px #251a1a;
  margin: 0; padding: 0; position: static;
}
#cq-dollhouse .dh-banner .dh-kicker {
  font-family: Georgia, serif; font-size: .78rem; letter-spacing: .25em;
  text-transform: uppercase; color: #f7e3d2;
  text-shadow: 1px 1px 4px #24171b; margin-bottom: 6px;
}
#cq-dollhouse .dh-banner .dh-house {
  position: absolute; width: 200px; height: auto; right: 12px; bottom: 0;
  max-height: 200px; object-fit: contain;
}
#cq-dollhouse .dh-main {
  width: min(1080px, calc(100% - 26px)); margin: 16px auto 60px;
  background-color: tan !important;
  background-image: url('/paper-background2.jpg') !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  background-size: auto !important;
  border: 1px solid #a58865; border-radius: 15px;
  box-shadow: 0 7px 25px rgba(25, 14, 19, .35), inset 0 0 0 5px rgba(255, 247, 231, .35);
  padding: clamp(18px, 4vw, 45px);
}
#cq-dollhouse .dh-welcome { text-align: center; max-width: 670px; margin: 0 auto 30px; }
#cq-dollhouse .dh-welcome h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: normal; margin: 7px 0;
}
#cq-dollhouse .dh-welcome p { font-size: .98rem; margin: 8px auto 0; }
#cq-dollhouse .dh-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 11px;
  border-top: 1px solid #c5a885; border-bottom: 1px solid #c5a885;
  padding: 15px 0; margin: 24px auto 32px; max-width: 900px;
}
#cq-dollhouse .dh-nav a {
  padding: 7px 12px; border: 1px solid #b79a7a; border-radius: 999px;
  background: rgba(255, 249, 235, .75); text-decoration: none;
  font-size: .9rem; transition: background .2s ease, transform .2s ease;
}
#cq-dollhouse .dh-nav a:hover { background: #fffaf0; transform: translateY(-2px); }
#cq-dollhouse .dh-history {
  border: 1px solid #baa083; border-radius: 10px; max-width: 920px;
  margin: 0 auto 48px; background: rgba(255, 248, 232, .57);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25);
}
#cq-dollhouse .dh-history summary {
  padding: 14px 19px; text-align: center; cursor: pointer;
  font-size: 1.2rem; font-weight: bold; color: var(--wine); list-style: none;
}
#cq-dollhouse .dh-history summary::-webkit-details-marker { display: none; }
#cq-dollhouse .dh-history summary::after { content: '  ▾'; font-size: .82rem; }
#cq-dollhouse .dh-history[open] summary::after { content: '  ▴'; }
#cq-dollhouse .dh-history[open] summary { border-bottom: 1px solid #c6aa8d; }
#cq-dollhouse .dh-history-body { padding: 12px clamp(15px, 3vw, 30px) 18px; font-size: .98rem; }
#cq-dollhouse .dh-history-body p { margin: 12px 0; }
#cq-dollhouse .dh-section { position: relative; scroll-margin-top: 15px; margin: 38px 0 52px; }
#cq-dollhouse .dh-section-heading {
  display: block;
  text-align: center;
  max-width: 930px;
  margin: 0 auto 24px;
  padding: 15px 16px 12px;
  border: 3px double #c4a47d;
  border-radius: 7px;
  background-color: #563240;
  background-image: linear-gradient(rgba(67, 35, 49, .91), rgba(91, 51, 66, .91)), url('/paper-background2.jpg');
  background-repeat: repeat;
  box-shadow: inset 0 0 0 1px rgba(247, 222, 187, .28), 0 3px 9px rgba(42, 25, 28, .2);
}

#cq-dollhouse .dh-section-heading h2 {
  display: block;
  margin: 0 0 2px;
  padding: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: .015em;
  color: #fff4e4 !important;
  text-shadow: 0 2px 2px #23171d !important;
  opacity: 1;
}
#cq-dollhouse .dh-section-heading .dh-count {
  display: block;
  margin-top: 5px;
  font-size: .79rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #f5d9b8 !important;
  text-shadow: 0 1px 2px #291920;
  opacity: 1;
}

#cq-dollhouse .dh-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(13px, 2.5vw, 30px); max-width: 930px; margin: auto;
}
#cq-dollhouse .dh-doll { min-width: 0; }
#cq-dollhouse .dh-doll a { text-decoration: none; display: block; }
#cq-dollhouse .dh-portrait {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 270px; aspect-ratio: 1 / 1.14; margin: auto;
  background: #d5bea2 url('/dollhouse/layout/dream_0000_1-mini.jpg') center / 100% 100% no-repeat;
  border: 1px solid #9e7d66; border-radius: 9px;
  box-shadow: 0 5px 9px rgba(48,31,26,.2);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
#cq-dollhouse .dh-portrait::after {
  content: ''; pointer-events: none; position: absolute; inset: 6%;
  border: 1px solid rgba(112,74,54,.35); border-radius: 3px;
}
#cq-dollhouse .dh-portrait img {
  display: block; max-width: 81%; width: auto; height: 81%; object-fit: contain;
  border-radius: 4px; box-shadow: 0 2px 10px rgba(34, 19, 20, .28);
}
#cq-dollhouse .dh-doll a:hover .dh-portrait,
#cq-dollhouse .dh-doll a:focus-visible .dh-portrait {
  transform: translateY(-5px); box-shadow: 0 9px 18px rgba(48,31,26,.28);
}
#cq-dollhouse .dh-doll-name {
  display: block; margin-top: 10px; text-align: center;
  font-size: 1.05rem; font-weight: bold; letter-spacing: .025em;
  overflow-wrap: anywhere; color: #4b2f35;
}
#cq-dollhouse .dh-doll a:hover .dh-doll-name { text-decoration: underline; text-underline-offset: 3px; }
#cq-dollhouse .dh-doll .dh-small-hint { display: block; color: #745f54; font-size: .76rem; text-align: center; }
#cq-dollhouse .dh-end { border-top: 1px solid #be9d80; padding-top: 24px; text-align: center; margin: 20px auto 0; }
#cq-dollhouse .dh-end a { text-decoration: none; border-bottom: 1px dotted currentColor; }
@media (max-width: 720px) {
  #cq-dollhouse .dh-banner { padding: 22px 105px 18px 18px; min-height: 150px; }
  #cq-dollhouse .dh-banner .dh-house { width: 190px; right: 3px; }
  #cq-dollhouse .dh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  #cq-dollhouse .dh-portrait { max-width: 235px; }
  #cq-dollhouse .dh-doll-name { font-size: .95rem; }
}
@media (max-width: 430px) {
  #cq-dollhouse .dh-banner { padding-top: 120px; padding-right: 8px; padding-left: 8px; text-align: center; }
  #cq-dollhouse .dh-banner .dh-house { width: 66px; top: 10px; bottom: auto; }
  #cq-dollhouse .dh-main { width: calc(100% - 14px); padding: 15px 12px 26px; }
  #cq-dollhouse .dh-grid { gap: 20px 8px; }
  #cq-dollhouse .dh-portrait img { max-width: 85%; height: 80%; }
  #cq-dollhouse .dh-doll-name { font-size: .86rem; }
  #cq-dollhouse .dh-nav a { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  #cq-dollhouse .dh-portrait, #cq-dollhouse .dh-nav a { transition: none; }
}

#cq-dollhouse .dh-welcome::after {
  content: '';
  display: block;
  width: 150px;
  height: 1px;
  margin: 19px auto 0;
  background: #ae8e74;
}

@media (min-width: 1000px) {
  #cq-dollhouse .dh-section::before,
  #cq-dollhouse .dh-section::after {
    content: '';
    position: absolute;
    width: 39px;
    height: 175px;
    top: 75px;
    background: url('/dollhouse/layout/ornament-vertical.png') center / contain no-repeat;
    pointer-events: none;
    opacity: .7;
  }
  #cq-dollhouse .dh-section::before { left: -29px; }
  #cq-dollhouse .dh-section::after { right: -29px; transform: scaleX(-1); }
}

.dh-profile-body, .dh-profile-body *, .dh-profile-body *::before, .dh-profile-body *::after { box-sizing: border-box; }
.dh-profile-body { margin: 0; padding: 22px 12px 50px; background: #33232d; color: #38272d; font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; }
.dh-profile-body a { color: #673a50; }
.dh-profile-body a:focus-visible { outline: 3px solid #a96979; outline-offset: 4px; }
.dh-profile-body .profile-page { width: min(900px, 100%); background: #e9d8bb url('/paper-background2.jpg') repeat; border: 1px solid #b0926d; border-radius: 13px; box-shadow: 0 5px 25px #1d161c; margin: 0 auto; padding: clamp(20px,5vw,45px); }
.dh-profile-body .profile-nav { font-size: .9rem; margin-bottom: 18px; }
.dh-profile-body .profile-nav a { text-decoration: none; border-bottom: 1px dotted; }
.dh-profile-body .profile-header { text-align: center; margin-bottom: 25px; }
.dh-profile-body .profile-header h1 { color: #573646; font-weight: normal; font-size: clamp(2.2rem,6vw,3.6rem); margin: 4px 0 0; }
.dh-profile-body .profile-header p { margin-top: 0; font-style: italic; color: #755f56; }
.dh-profile-body .profile-hero { display: grid; grid-template-columns: minmax(220px, .9fr) 1fr; gap: clamp(18px,5vw,45px); align-items: center; }
.dh-profile-body .profile-portrait { min-height: 320px; aspect-ratio: 1/1.16; max-width: 380px; display: flex; align-items: center; justify-content: center; padding: 10%; background: #dac5a9 url('/dollhouse/layout/dream_0000_1-mini.jpg') center / 100% 100% no-repeat; border: 1px solid #b18d6a; border-radius: 9px; box-shadow: 0 4px 13px #0002; }
.dh-profile-body .profile-portrait img { max-width: 95%; width: auto; height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 3px 14px #0003; }
.dh-profile-body .profile-text { padding: 20px; border: 1px solid #c6aa86; background: #fff5e4bb; border-radius: 9px; min-height: 220px; }
.dh-profile-body .profile-text h2 { font-size: 1.4rem; font-weight: normal; margin-top: 0; }
.dh-profile-body .profile-text p { margin-bottom: 0; }
.dh-profile-body .profile-album { border-top: 1px solid #b99d7e; margin-top: 35px; padding-top: 20px; }
.dh-profile-body .profile-album h2 { font-size: 1.45rem; font-weight: normal; }
.dh-profile-body .profile-album p { font-style: italic; color: #735b54; }
.dh-profile-body .profile-footer { text-align: center; margin-top: 38px; padding-top: 18px; border-top: 1px solid #b99d7e; }
@media (max-width:650px) { .profile-hero { grid-template-columns: 1fr; } .profile-portrait { margin: auto; width: 100%; max-width: 340px; } }
@media (min-width: 1010px) {
  .dh-profile-body .profile-page { position: relative; }
  .dh-profile-body .profile-page::before,
  .dh-profile-body .profile-page::after {
    content: '';
    position: absolute;
    top: 105px;
    width: 35px;
    height: 170px;
    opacity: .7;
    pointer-events: none;
    background: url('/dollhouse/layout/ornament-vertical.png') center / contain no-repeat;
  }
  .dh-profile-body .profile-page::before { left: -44px; }
  .dh-profile-body .profile-page::after { right: -44px; transform: scaleX(-1); }
}

.dh-profile-body .profile-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 25px;
}
.dh-profile-body .profile-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #573646;
  font-weight: bold;
  line-height: 1.18;
  text-shadow: none;
}
.dh-profile-body .profile-header .profile-maker {
  display: block;
  margin: 10px 0 0;
  color: #604353;
  font-size: 1rem;
  font-style: normal;
}
.dh-profile-body .profile-maker strong {
  color: #492d39;
  font-weight: bold;
}
@media (max-width: 650px) {
  .dh-profile-body .profile-hero { grid-template-columns: 1fr; }
  .dh-profile-body .profile-portrait {
    margin: auto;
    width: 100%;
    max-width: 340px;
  }
}
