.chumking-dialog { position: fixed; inset: 0; width: min(960px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 36px); margin: auto; padding: 22px 12px; overflow: visible; border: 0; background: transparent; color: #355a48; }
.chumking-dialog::backdrop { background: #243c3a42; backdrop-filter: blur(3px); }
.chumking-stage { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(340px, 1.15fr); align-items: center; gap: 18px; }
.chumking-dialog[open] .chumking-stage { animation: chumking-arrive .65s cubic-bezier(.2,.8,.2,1) both; }
.chumking-dialog[open].chumking-arrived .chumking-stage { animation: none; }
.chumking-portrait { align-self: end; padding-bottom: 15px; text-align: center; filter: drop-shadow(0 12px 18px #263f3320); }
.chumking-art { display: block; width: 100%; max-height: 390px; overflow: visible; }
.chumking-bob { transform-origin: 50% 90%; animation: chumking-giggle 3.6s ease-in-out infinite; }
.chumking-giggles { animation: chumking-hehe 3.6s ease-in-out infinite; }
.chumking-name { display: block; width: fit-content; margin: -5px auto 0; padding: 10px 20px; border: 1px solid #ebdcad; border-radius: 20px; background: #fff8e4; font-size: 25px; font-weight: 900; box-shadow: 0 4px 0 #d1bf8d; }
.chumking-name small { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; color: #728064; }
.chumking-bubble { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 80px); padding: 26px 28px 22px; overflow: hidden; border: 2px solid #d1d7bc; border-radius: 30px; background: #fffdf0; box-shadow: 0 7px 0 #9da986, 0 22px 60px #233e3330; }
.chumking-bubble-scroll { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #c1ceb0 transparent; }
.chumking-bubble::before { content: ''; position: fixed; width: 25px; height: 25px; top: 55%; margin-left: -42px; transform: rotate(45deg); border-bottom: 2px solid #d1d7bc; border-left: 2px solid #d1d7bc; background: #fffdf0; }
.chumking-bubble-header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chumking-bubble-header > span { font-size: 9px; font-weight: 850; letter-spacing: .09em; color: #71866a; }
.chumking-music { min-height: 30px; padding: 4px 10px; border: 1px solid #d9dfc7; border-radius: 20px; background: #edf2df; color: #476a54; font-size: 11px; font-weight: 750; }
.chumking-message h2 { margin: 0 0 14px; color: #355d4b; font-size: clamp(24px, 3vw, 32px); line-height: 1.08; letter-spacing: -.035em; }
.chumking-message p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #63715c; }
.chumking-message strong { color: #47634c; font-weight: 800; }
.chumking-map { display: grid; gap: 8px; margin: 20px 0; padding: 14px 16px; border-radius: 16px; color: #66805e; background: #eef2df; font-size: 12px; font-weight: 750; }
.chumking-message .chumking-hint { padding: 10px 14px; border-radius: 14px; background: #f1eedb; color: #7c795f; font-size: 12px; }
.chumking-actions { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }
.chumking-actions button { min-height: 44px; font-weight: 800; }
.chumking-skip { padding: 8px 0; border: 0; background: transparent; color: #849077; font-size: 12px; }
.chumking-next { padding: 11px 22px; border: 1px solid #3b634b; border-radius: 14px; color: #fff9df; background: #4d795b; box-shadow: 0 3px 0 #355a43; font-size: 13px; }
.chumking-next:hover { background: #416c50; }
.chumking-dialog button:focus-visible { outline: 3px solid #d6aa4f; outline-offset: 4px; }
.chumking-dialog button:disabled { opacity: .6; cursor: wait; }
.chumking-error { color: #a05038; font-size: 12px; }
.chumking-boombox-slot { display: flex; justify-content: center; min-height: 170px; margin: 20px 0 0; }
.chumking-boombox-slot[hidden] { display: none; }
.chumking-boombox-slot .boombox { position: relative !important; inset: auto !important; z-index: auto !important; display: flex !important; margin: 6px auto !important; transform: none !important; width: 155px !important; height: 260px; max-height: none; background: #e3cd9e; border: 2px solid #887452; border-radius: 22px; box-shadow: 0 6px 0 #a98d65, 0 16px 24px #40523b20; cursor: default; touch-action: auto; }
.chumking-boombox-slot .boombox-level { display: none; }
.chumking-boombox-slot .boombox button { min-height: 32px; }
.chumking-boombox-slot .boombox-listen { min-height: 32px; border-radius: 8px; font-size: 10px; letter-spacing: .04em; }
.chumking-boombox-slot .boombox-handle { border-color: #836f50; }
.chumking-boombox-slot .boombox-screen { background: #365d50; color: #e3edba; border-color: #2c4b40; }
.chumking-boombox-slot .boombox button { color: #49664b; background: #fff4d4; border-color: #af9873; }
.chumking-boombox-slot .boombox-speaker { background: #ad9470; border-color: #826b4e; }
.chumking-boombox-slot .boombox-speaker i { background: repeating-radial-gradient(circle, #514c39 0 2px, #7c7856 3px 5px); }
.chumking-egg { position: relative; width: 61px; height: 79px; margin: 20px auto 22px; border: 3px solid #b99e6c; border-radius: 50% 50% 43% 43% / 65% 65% 35% 35%; background: linear-gradient(125deg, #fff5c9, #f1dd9d); box-shadow: 0 8px 0 -3px #65795120; transform: rotate(-8deg); }
.chumking-egg i, .chumking-egg b { position: absolute; width: 12px; height: 15px; border-radius: 50%; background: #a8bd81; top: 22px; left: 14px; }
.chumking-egg b { width: 8px; height: 10px; top: 49px; left: 37px; }
.chumking-pet-preview { height: 110px; text-align: center; margin: 0 0 8px; }
.chumking-pet-preview canvas { max-width: 100%; width: 200px; height: 110px; }
.chumking-traits { display: grid; gap: 8px; margin: 15px 0 0; padding: 0; list-style: none; }
.chumking-traits li { padding: 11px 14px; border: 1px solid #e1e5ce; border-radius: 15px; background: #f2f4e6; }
.chumking-traits strong, .chumking-traits span { display: block; }
.chumking-traits strong { margin-bottom: 3px; font-size: 13px; }
.chumking-traits span { color: #78816a; font-size: 12px; line-height: 1.5; }
.chumking-care-icons { display: flex; justify-content: center; gap: 24px; margin: 20px 0; font-size: 29px; color: #d9aa6a; }
.chumking-nanny-link { padding: 12px 16px; border: 1px solid #d6dfc4; border-radius: 13px; background: #eef2e1; color: #557353; font-size: 12px; font-weight: 800; }
.chumking-dialog[open].chumking-leaving .chumking-stage { animation: chumking-depart .42s ease-in both; }
@keyframes chumking-arrive { from { transform: translateX(-90px) translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chumking-depart { to { transform: translateX(-110px) translateY(35px); opacity: 0; } }
@keyframes chumking-giggle { 0%, 45%, 80%, 100% { transform: none; } 51%, 65% { transform: translateY(-6px) rotate(-1.5deg) scaleY(1.015); } 57%, 71% { transform: translateY(1px) rotate(1deg) scaleY(.99); } }
@keyframes chumking-hehe { 0%, 42%, 85%, 100% { opacity: .2; } 54%, 68% { opacity: .85; } }
@media (max-width: 700px) {
  .chumking-dialog { width: calc(100vw - 20px); padding: 5px; max-height: calc(100dvh - 20px); overflow: auto; }
  .chumking-stage { display: flex; flex-direction: column; gap: 0; }
  .chumking-portrait { display: flex; align-self: center; align-items: center; padding: 0 0 7px; width: 100%; justify-content: center; gap: 8px; }
  .chumking-art { width: 126px; height: 120px; flex-shrink: 0; }
  .chumking-name { margin: 0; padding: 8px 12px; font-size: 22px; }
  .chumking-name small { font-size: 9px; max-width: 140px; }
  .chumking-bubble { width: 100%; max-height: calc(100dvh - 168px); padding: 20px; border-radius: 25px; }
  .chumking-bubble::before { display: none; }
  .chumking-message p { font-size: 13px; line-height: 1.5; }
  .chumking-actions { margin-top: 18px; gap: 8px; }
  .chumking-next { padding: 10px 14px; }
  .chumking-boombox-slot { margin-top: 10px; }
}
@media (max-height: 650px) { .chumking-bubble { padding: 18px 22px; } .chumking-message p { font-size: 12px; margin-bottom: 9px; } .chumking-art { max-height: 270px; } .chumking-portrait { padding-bottom: 0; } }
@media (max-width: 700px) and (max-height: 650px) { .chumking-art { width: 70px; height: 66px; } .chumking-name { font-size: 18px; padding: 5px 10px; } .chumking-bubble { max-height: calc(100dvh - 108px); } }
@media (prefers-reduced-motion: reduce) { .chumking-dialog[open] .chumking-stage, .chumking-bob, .chumking-giggles, .chumking-dialog[open].chumking-leaving .chumking-stage { animation: none; } }
