/* Chibi theatre and cozy cooperative games. */
:root{--candy:#a27d99;--blue-soft:#e5eef9;--pink-soft:#fae9ee}
button:focus-visible,[tabindex]:focus-visible{outline:3px solid #729bca;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chibi-art{display:block;overflow:visible;max-width:100%;flex-shrink:0}
svg.chibi-art.body-art{height:100%;width:100%}
.cover-stage .start-character{width:38%;right:6%;bottom:9%;max-height:85%}
.cover-stage .character-caption{background:#fff7ebec;color:#58788f;border:1px solid #cbd8e0;border-radius:18px;padding:12px 20px;text-shadow:none}
.cover-label{color:#87718c}.cover-features strong{color:#7d7396}
#musicQuick{background:#f6eff9;border:1px solid #d6c9df;color:#786184;font-size:11px;max-width:162px;overflow:hidden;text-overflow:ellipsis}
#musicQuick[aria-pressed=true]{background:#e4edf8;border-color:#bbcede;color:#587890}
.has-cinema{background:#e9efe8!important}
.has-cinema .shade{background:linear-gradient(180deg,#e6e8cf22,transparent 70%,#e9efe8)!important}
.cast.duo-cast{top:104px;left:4%;right:4%;height:335px;z-index:2;pointer-events:none}
.duo-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:32%;height:100%;padding:20px 0 0;border:0;border-radius:40%;background:transparent!important;box-shadow:none!important;pointer-events:auto;transform-origin:center 85%;transition:filter .3s;overflow:visible}
.duo-slot:hover:not(:disabled){transform:none;background:transparent;filter:drop-shadow(0 0 9px #e5f5ff)}
.duo-slot .actor,.stage.choosing .duo-slot .actor{position:relative;display:block;height:310px;max-width:100%;width:auto;max-height:none;margin:0;animation:chibi-breathe 5.5s ease-in-out infinite;filter:drop-shadow(0 7px 6px #40565d22)}
.duo-slot .actor.npc{animation-delay:-2.5s;height:308px}
.duo-slot .actor.kitten{width:180px;height:170px;margin-bottom:8px}
.duo-name{display:block;background:#fffaf0eb;border:1px solid #ccd9dc;border-radius:15px;padding:4px 12px;font-size:10px;color:#5f7790;white-space:nowrap;margin-top:3px}
.duo-slot.speaking .duo-name{background:#dcecfb;border-color:#91b5d4;color:#3c6587}
.duo-bubble{position:absolute;top:0;left:50%;translate:-50% 0;width:max-content;max-width:100%;background:#fffcf4f2;color:#65758b;font-size:11px;line-height:1.5;padding:6px 13px;border:1px solid #c5d8e3;border-radius:14px 14px 14px 3px;box-shadow:0 4px 9px #40565d12;z-index:3;opacity:.82}
.duo-right .duo-bubble{border-radius:14px 14px 3px 14px}
.duo-performing .duo-bubble{animation:bubble-nod 2.6s ease both}
.duo-tools{position:absolute;top:452px;left:0;right:0;display:flex;justify-content:center;gap:10px;z-index:4;padding:0 12px}
.duo-tools button{font-size:11px;min-height:34px;padding:7px 15px;background:#fffbf3f5;border-color:#c4d2dc;box-shadow:0 3px 0 #58728e12;color:#57748a}
.duo-tools button+button{background:#f8ebf2;color:#926f88;border-color:#d7c6d5}
.has-cinema .dialogue-area,.stage.choosing .dialogue-area{margin-top:416px}
.has-cinema .cinema,.stage.choosing .cinema{top:180px;left:37%;right:37%;height:142px;z-index:1}
.cinema .shot-caption,.stage.choosing .cinema .shot-caption{bottom:-65px;left:-48%;right:-48%}
.cinema .object-hint{top:-29px;left:-15%;right:-15%;font-size:9px;letter-spacing:1px}
.shot-caption{font-size:10px}.replay-shot{font-size:9px;min-height:30px}
.duo-flight{position:absolute;left:22%;top:57%;width:52px;height:52px;opacity:0;pointer-events:none;z-index:4}
.duo-flight img{width:100%;height:100%}
.duo-spark{position:absolute;left:49%;top:31%;font-size:36px;color:#f4ca72;opacity:0;pointer-events:none}
.duo-performing[data-reaction=offer] .duo-left,.duo-performing[data-reaction=share] .duo-left{animation:duo-offer 2.6s ease-in-out both}
.duo-performing[data-reaction=offer] .duo-right,.duo-performing[data-reaction=share] .duo-right{animation:duo-receive 2.6s ease-in-out both}
.duo-performing[data-reaction=offer] .duo-flight,.duo-performing[data-reaction=share] .duo-flight{animation:duo-pass 2.6s ease-in-out both}
.duo-performing[data-reaction=shelter] .duo-left{animation:duo-near-left 2.6s ease-in-out both}
.duo-performing[data-reaction=shelter] .duo-right{animation:duo-near-right 2.6s ease-in-out both}
.duo-performing[data-reaction=firm] .duo-left{animation:duo-stand 2.6s ease-in-out both}
.duo-performing[data-reaction=firm] .duo-right{animation:duo-space 2.6s ease-in-out both}
.duo-performing[data-reaction=cooperate] .duo-left,.duo-performing[data-reaction=care] .duo-left{animation:duo-work 2.6s ease-in-out both}
.duo-performing[data-reaction=cooperate] .duo-right,.duo-performing[data-reaction=care] .duo-right{animation:duo-work 2.6s .25s ease-in-out both}
.duo-performing[data-reaction=cheer] .duo-left,.duo-performing[data-reaction=listen] .duo-left{animation:duo-bounce 2.6s ease-in-out both}
.duo-performing[data-reaction=cheer] .duo-right,.duo-performing[data-reaction=listen] .duo-right{animation:duo-bounce 2.6s .28s ease-in-out both}
.duo-performing .duo-spark{animation:duo-spark 2.6s ease both}
.portrait-card>.chibi-art{height:193px;width:100%;margin:auto}
.prop-inspect>.chibi-art{width:100%;max-height:280px}
.ending-art>.chibi-art{position:absolute;width:36%;bottom:0;right:0}
.music-card{border:1px solid #d7d4e1;background:linear-gradient(120deg,#eff4fc,#fff3f5);border-radius:18px;padding:22px;margin-top:18px}
.music-card h3{font-size:19px;color:#726888}.music-card .settings-row{border-color:#dadfe7}
#musicVolume{max-width:45%;accent-color:#8b8ebb;padding:0;min-height:32px}#volumeValue{min-width:40px;font-size:12px}
.co-op-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.co-op-heading h2{margin:0;font-size:28px}.co-op-heading>strong{color:#867499;white-space:nowrap}
.co-op-stage{position:relative;background:radial-gradient(ellipse at 50% 20%,#fffafa,#e5edf8 75%);border:1px solid #d4dce4;border-radius:26px;margin:24px 0 18px;display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:center;padding:22px 20px 12px;overflow:hidden;min-height:240px}
.co-op-stage:after{content:"✧　·　✦　·　✧";position:absolute;top:13px;left:15%;right:15%;color:#b8a5c1;font-size:17px;text-align:center;pointer-events:none;letter-spacing:6px}
.co-op-person{display:flex;flex-direction:column;align-items:center;align-self:end;gap:5px}
.co-op-person>.dressed,.co-op-person>.chibi-art{width:134px;height:214px;max-width:100%;animation:chibi-breathe 5s ease-in-out infinite}
.co-op-person>span:last-child:not(.dressed){font-size:11px;color:#77839a}
.co-op-message{background:#fffcf7ee;border:1px solid #d9d9e2;border-radius:20px;text-align:center;padding:18px 10px;z-index:1;font-size:13px;color:#74738b;box-shadow:0 4px 0 #c4cddb20}
.co-op-message strong,.co-op-message small{display:block}.co-op-message strong{font-size:15px;line-height:1.65}.co-op-message small{margin-top:8px;font-size:11px}
.co-op-treat{height:65px;width:65px;display:block;margin:0 auto 8px;animation:treat-deliver .7s ease-out both}
.co-op-note{font-size:48px;color:#b09ac5}
.treat-tray{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0 13px}
.treat-tray button{display:flex;flex-direction:column;gap:8px;justify-content:center;font-size:12px;background:#fff8f0;border:1px solid #decfbb;min-height:106px}
.treat-tray img{width:51px;height:51px}
.catch-treat{display:flex;justify-content:center;margin:10px 0 16px auto;min-width:45%;animation:catch-ready 1.5s ease-in-out infinite}
.co-op-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #d9dee3;padding-top:18px;margin-top:23px}
.co-op-footer button{font-size:12px;min-height:42px}
.duet-score{display:flex;gap:8px;justify-content:center;margin:18px 0;flex-wrap:wrap}
.duet-score>span{width:42px;height:36px;display:grid;place-items:center;background:#f1edf5;border:1px solid #d9d0e1;border-radius:11px;font-size:13px;color:#8a7998}
.duet-score .next-note{background:#e6f0fa;border:2px solid #7a9fc4;color:#3c6385;font-weight:700}.duet-score .played{background:#e3efe4;color:#5f8c66;border-color:#b6cfb9}
.bell-keys{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0}
.bell-key{flex-direction:column;gap:6px;min-height:108px;border-radius:17px;border:1px solid #d4ccdd;color:#746a88;background:#f5e9f2;box-shadow:0 5px 0 #c5bdd03d;transition:background .12s,translate .12s}
.bell-key span{font-size:26px;color:#b796be}.bell-key small{font-size:10px;opacity:.65}.bell-1{background:#fbeedc}.bell-2{background:#edf4e4}.bell-3{background:#e3eff8}.bell-4{background:#ede8f8}
.bell-key.lit{background:#f8dbaa;translate:0 -7px;box-shadow:0 0 20px #f0c67588}.bell-key:disabled{opacity:1;cursor:default}
.duet-options{display:flex;gap:10px;flex-wrap:wrap}.duet-options button{font-size:12px;min-height:42px}
#duetHint,#relayHint{min-height:26px;font-size:13px;color:#77819b}
@keyframes chibi-breathe{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-4px) rotate(.6deg)}}
@keyframes bubble-nod{0%,100%{opacity:.82;scale:1}25%,70%{opacity:1;scale:1.035}}
@keyframes duo-offer{0%,100%{transform:none}35%,65%{transform:translateX(9%) rotate(4deg)}}
@keyframes duo-receive{0%,100%{transform:none}45%,70%{transform:translateX(-9%) rotate(-4deg)}}
@keyframes duo-pass{0%,10%{left:23%;opacity:0;transform:translateY(4px) rotate(-12deg)}22%{opacity:1}55%{left:48%;transform:translateY(-50px) rotate(5deg)}80%{left:70%;opacity:1;transform:translateY(4px)}100%{left:70%;opacity:0}}
@keyframes duo-near-left{0%,100%{transform:none}30%,75%{transform:translateX(15%) rotate(2deg)}}
@keyframes duo-near-right{0%,100%{transform:none}30%,75%{transform:translateX(-15%) rotate(-2deg)}}
@keyframes duo-stand{0%,100%{transform:none}23%{transform:translateX(-5%) rotate(-2deg)}45%{transform:rotate(2deg)}65%{transform:rotate(-1deg)}80%{transform:translateY(-4px)}}
@keyframes duo-space{0%,100%{transform:none}35%,75%{transform:translateX(6%)}}
@keyframes duo-work{0%,100%{transform:none}25%,60%{transform:translateY(8px) rotate(3deg)}40%,75%{transform:translateY(-2px) rotate(-2deg)}}
@keyframes duo-bounce{0%,100%{transform:none}25%,62%{transform:translateY(-10px) rotate(2deg)}43%,80%{transform:translateY(0) rotate(-1deg)}}
@keyframes duo-spark{0%,20%,100%{opacity:0;transform:scale(.5)}45%{opacity:.9;transform:translateY(-12px) scale(1.1)}80%{opacity:0;transform:translateY(-30px) scale(.8)}}
@keyframes treat-deliver{from{transform:translateX(-70px) rotate(-15deg);opacity:0}to{transform:none;opacity:1}}
@keyframes catch-ready{0%,100%{box-shadow:0 0 0 0 #a2bba244}50%{box-shadow:0 0 0 6px #a2bba200}}
@media(max-width:1100px){header{flex-wrap:wrap;height:auto;min-height:90px;padding-top:12px;padding-bottom:12px}nav{flex-wrap:wrap}.duo-tools{top:447px}}
@media(max-width:760px){
 header{padding:10px 12px 7px}nav{gap:2px}nav button{min-height:36px}#musicQuick{max-width:170px;font-size:10px}
 .cover-stage .start-character{top:7px;bottom:auto;right:calc(50% - 102px);width:204px;height:310px;max-height:none}
 .cover-stage .character-caption{top:238px;right:12px;bottom:auto;padding:8px;width:100px;font-size:13px}
 .cast.duo-cast,.stage.choosing .cast.duo-cast{top:119px;left:1%;right:1%;height:248px}
 .duo-slot{width:39%;padding:24px 0 0}.duo-slot .actor,.duo-slot .actor.npc,.stage.choosing .duo-slot .actor{height:218px;max-width:100%;width:auto}
 .duo-slot .actor.kitten{width:112px;height:111px;margin-bottom:8px}
 .duo-bubble{font-size:9px;padding:5px 7px;max-width:114px;white-space:normal;text-align:center;line-height:1.45}
 .duo-name{font-size:9px;padding:3px 8px}.duo-tools{top:392px;gap:7px;padding:0 8px}
 .duo-tools button{font-size:10px;min-height:39px;padding:8px 10px}
 .has-cinema .dialogue-area,.stage.choosing .dialogue-area{margin:348px 10px 0}
 .has-cinema .cinema,.stage.choosing .cinema{top:227px;left:40%;right:40%;height:74px}
 .cinema .object-hint{display:none}
 .cinema .shot-caption,.stage.choosing .cinema .shot-caption{bottom:-83px;left:-176%;right:-176%;font-size:8px}
 .shot-caption span{padding:4px 7px;max-width:85%}.cinema .replay-shot{display:none}
 .duo-flight{width:32px;height:32px;top:61%}.duo-spark{font-size:23px;top:37%;left:47%}
 .music-card{padding:15px}.music-card h3{font-size:17px}.music-card .settings-row{font-size:12px;gap:8px}.music-card .settings-row select{max-width:60%;font-size:12px}
 .co-op-heading h2{font-size:21px}.co-op-heading>strong{font-size:13px}
 .co-op-stage{padding:22px 8px 11px;grid-template-columns:1fr 1.15fr 1fr;min-height:181px;margin:18px 0 13px;border-radius:19px}
 .co-op-person>.dressed,.co-op-person>.chibi-art{width:88px;height:142px}
 .co-op-message{padding:10px 6px;border-radius:14px}.co-op-message strong{font-size:11px}.co-op-message small{font-size:9px}.co-op-note{font-size:31px}
 .co-op-treat{height:40px;width:40px}.co-op-stage:after{font-size:11px;top:6px;letter-spacing:2px}
 .co-op-person>span:last-child:not(.dressed){font-size:9px}.treat-tray{gap:7px;margin:17px 0 10px}
 .treat-tray button{font-size:10px;padding:8px 3px;min-height:84px;gap:4px}.treat-tray img{height:39px;width:39px}
 .catch-treat{font-size:12px;width:100%;min-height:44px}.bell-keys{gap:7px}.bell-key{padding:10px 3px;min-height:88px;font-size:12px;border-radius:14px}.bell-key span{font-size:21px}
 .duet-score{gap:6px}.duet-score>span{height:31px;width:35px;font-size:11px}
 .duet-options{gap:7px}.duet-options button,.co-op-footer button{font-size:11px;padding:9px 11px}
 .co-op-footer{gap:8px}#duetHint,#relayHint{font-size:11px}
}
.reduce .duo-cast *,.reduce .co-op-stage *,.reduce .catch-treat{animation:none!important;transition:none!important}
.reduce .duo-flight,.reduce .duo-spark{display:none}
@media(prefers-reduced-motion:reduce){.duo-cast *,.co-op-stage *,.catch-treat{animation:none!important;transition:none!important}.duo-flight,.duo-spark{display:none}}

.reduce .bell-key{transition:none!important}.reduce .bell-key.lit{translate:none}
@media(prefers-reduced-motion:reduce){.bell-key{transition:none!important}.bell-key.lit{translate:none}}
