.horoscope-holder { display: flex; align-items: flex-start; gap: 8px; }
.dreambook-icon { width: 27px; height: 27px; display: block; }
#horoscope-toggle .horoscope-toggle-symbol {
  display: flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
}
body.is-night:not(.is-halloween) .dreambook-icon { --dreambook-face: #40557b; }
body.is-halloween .dreambook-icon { --dreambook-face: #4e2850; }
.dreambook-panel { width: min(320px, calc(100vw - 120px)); background-image: url("dreambook-sky.svg"), radial-gradient(circle at 88% 12%, rgba(244,190,148,.29), transparent 43%), radial-gradient(circle at 8% 92%, rgba(166,221,200,.3), transparent 48%); background-size: 150px 140px, auto, auto; background-position: right 2px bottom 2px, center, center; }
body.is-night:not(.is-halloween) .dreambook-panel { background-image: url("dreambook-sky.svg"), radial-gradient(circle at 88% 12%, rgba(139,161,213,.25), transparent 43%), radial-gradient(circle at 8% 92%, rgba(114,183,176,.19), transparent 48%); }
body.is-halloween .dreambook-panel { background-image: url("dreambook-sky.svg"), radial-gradient(circle at 88% 12%, rgba(238,143,80,.22), transparent 43%), radial-gradient(circle at 8% 92%, rgba(160,94,175,.25), transparent 48%); }
@media (min-width: 621px) {
  #horoscope-control > .horoscope-panel { left: calc(200% + 18px); }
}
.dreambook-panel .dreambook-intro { margin: 3px 0 10px; color: var(--muted); font-size: .75rem; }
.dreambook-label { display: block; margin-bottom: 4px; color: var(--deep-mint); font-size: .72rem; font-weight: 850; }
.dreambook-panel input { display: block; width: 100%; min-width: 0; height: 28px; margin: 0; padding: 0 8px; border: 1px solid rgba(45,108,98,.3); border-radius: 10px; background: #fffdf8; color: #18282b; font: inherit; font-size: .875rem; line-height: normal; appearance: none; }
.dreambook-panel input:focus-visible, .dreambook-search:focus-visible, .dreambook-suggestions button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.dreambook-panel .dreambook-hint { margin: 5px 0 7px; font-size: .66rem; line-height: 1.35; opacity: .8; }
.dreambook-suggestions { display: grid; gap: 3px; margin: 0 0 8px; padding: 5px; list-style: none; border: 1px solid rgba(45,108,98,.2); border-radius: 10px; background: #fffdf8; }
.dreambook-suggestions[hidden] { display: none; }
.dreambook-suggestions button { width: 100%; min-height: 32px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: #24594e; font: inherit; font-size: .76rem; text-align: left; cursor: pointer; }
.dreambook-suggestions button:hover, .dreambook-suggestions button:focus-visible { background: #e4f1e9; }
.dreambook-search { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 10px; background: var(--deep-mint); color: white; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.dreambook-results { display: grid; gap: 7px; margin-top: 9px; }
.dreambook-results:focus { outline: 2px solid #287566; outline-offset: 2px; border-radius: 10px; }
.dreambook-result { padding: 8px 10px; border: 1px solid rgba(45,108,98,.15); border-radius: 10px; background: rgba(228,241,233,.72); }
.dreambook-result h3 { margin: 0; color: var(--deep-mint); font-size: .78rem; line-height: 1.3; }
.dreambook-panel .dreambook-result p, .dreambook-panel .dreambook-empty { margin: 4px 0 0; font-size: .73rem; line-height: 1.4; }
.dreambook-panel .dreambook-disclaimer { margin-top: 12px; }
body.is-night:not(.is-halloween) .dreambook-panel .dreambook-intro, body.is-night:not(.is-halloween) .dreambook-label { color: #b8e5d9; }
body.is-night:not(.is-halloween) .dreambook-panel input, body.is-night:not(.is-halloween) .dreambook-suggestions { border-color: rgba(184,229,217,.4); background: #304663; color: #fffdf8; }
body.is-night:not(.is-halloween) .dreambook-panel input { border-color: rgba(184,229,217,.45); }
body.is-night:not(.is-halloween) .dreambook-panel input::placeholder { color: #cfdae7; }
body.is-night:not(.is-halloween) .dreambook-suggestions button { color: #e1fff5; }
body.is-night:not(.is-halloween) .dreambook-suggestions button:hover, body.is-night:not(.is-halloween) .dreambook-suggestions button:focus-visible, body.is-night:not(.is-halloween) .dreambook-result { background: #3c5970; }
body.is-night:not(.is-halloween) .dreambook-result h3 { color: #b8e5d9; }
body.is-night:not(.is-halloween) .dreambook-results:focus { outline-color: #b8e5d9; }
body.is-halloween .dreambook-panel .dreambook-intro, body.is-halloween .dreambook-label, body.is-halloween .dreambook-result h3 { color: #ffcc87; }
body.is-halloween .dreambook-panel input, body.is-halloween .dreambook-suggestions { border-color: rgba(255,190,110,.45); background: #4e2850; color: #fff4e7; }
body.is-halloween .dreambook-panel input::placeholder { color: #ead1e2; }
body.is-halloween .dreambook-suggestions button { color: #fff4e7; }
body.is-halloween .dreambook-suggestions button:hover, body.is-halloween .dreambook-suggestions button:focus-visible, body.is-halloween .dreambook-result { background: #60365f; }
body.is-halloween .dreambook-search { background: #a75a2f; }
body.is-halloween .dreambook-results:focus { outline-color: #ffcc87; }
@media (max-width: 620px) {
  .horoscope-holder { flex-direction: row; gap: 7px; }
  .horoscope-holder.dreambook-scrolled { display: grid; grid-template-columns: repeat(2, 46px); grid-template-rows: repeat(2, 46px); grid-template-areas: "horo gallery" "dreambook coloring"; align-items: flex-start; gap: 8px; }
  .horoscope-holder.dreambook-scrolled > #horoscope-control { grid-area: horo; }
  .horoscope-holder.dreambook-scrolled > #dreambook-control { grid-area: dreambook; }
  .horoscope-holder.dreambook-scrolled > .horoscope-shortcut-control:nth-of-type(3) { grid-area: gallery; }
  .horoscope-holder.dreambook-scrolled > .horoscope-shortcut-control:nth-of-type(4) { grid-area: coloring; }
  .horoscope-holder > .horoscope-control { will-change: transform, opacity; }
  .horoscope-toggle:hover, .horoscope-toggle:active { transform: none; }
  .horoscope-holder:not(.dreambook-scrolled) #horoscope-control > .horoscope-panel { top: calc(100% + 7px); left: 0; width: min(290px, calc(100vw - 28px)); }
  .horoscope-holder:not(.dreambook-scrolled) .dreambook-panel { top: calc(100% + 7px); left: calc(-100% - 7px); width: min(290px, calc(100vw - 28px)); }
  .dreambook-icon { width: 22px; height: 22px; flex-shrink: 0; }
  #horoscope-toggle .horoscope-toggle-symbol {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: min(1.25rem, 20px);
  }
  #horoscope-toggle .horoscope-toggle-content {
    gap: 1px;
    transform: none;
  }
  #horoscope-toggle .horoscope-toggle-label {
    font-size: min(.53rem, 10px);
    white-space: nowrap;
  }
  .dreambook-toggle .horoscope-toggle-content { gap: 1px; transform: none; }
  .dreambook-toggle .horoscope-toggle-label { font-size: min(.53rem, 10px); white-space: nowrap; }
  .dreambook-panel { width: min(290px, calc(100vw - 102px)); }
  .dreambook-panel input { height: 32px; padding: 0 10px; background: linear-gradient(145deg, #fffdf8, #e7f2ec); color: #243d38; font-size: .82rem; font-weight: 750; }
  body.is-night:not(.is-halloween) .dreambook-panel input { border-color: rgba(184,229,217,.4); }
  .hero { padding-top: 62px; }
}
