@import url('./avatar.css');
.chse-helper-dock{position:fixed;left:max(10px,env(safe-area-inset-left));top:calc(8px + env(safe-area-inset-top));z-index:2147483000}
.chse-helper-dock button{display:block;width:56px;height:56px;padding:0;border:0;background:transparent;touch-action:manipulation}
.chse-helper-dock .chse-avatar{width:52px;max-width:none}
.chse-helper-dock button:focus-visible{outline:3px solid #d6ff3c;outline-offset:3px}
html.chse-helper-page .top{padding-left:70px;min-height:66px}
html.chse-helper-page .app-header{padding-left:70px}
html.chse-helper-page main:not(.voice-chat)>header:not(.top):not(.app-header){padding-left:64px}
.voice-chat{height:100svh;height:100dvh;min-height:360px;display:grid;grid-template-rows:48px 1fr auto;gap:8px;max-width:none}
.voice-top{justify-content:space-between}
.voice-home{display:grid;place-items:center;width:48px;height:48px;color:#f2f3e9}
.voice-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px 0;min-height:0}
.voice-character{width:clamp(160px,34svh,280px);aspect-ratio:240/230;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;color:inherit}
.voice-character .chse-avatar{max-width:none}
.voice-status{font-size:17px;line-height:1.4;font-weight:600;min-height:24px;max-width:28ch;text-align:center;text-wrap:balance}
.voice-controls{display:flex;align-items:center;justify-content:center;gap:24px;padding:0 0 22px}
.voice-control{display:grid;place-items:center;width:56px;height:56px;border:0;border-radius:50%;background:#292f36;color:#f2f3e9;cursor:pointer;touch-action:manipulation}
.voice-end{background:#ffc6e8;color:#2f1f51}
.voice-control:disabled{opacity:.35;cursor:default}
.voice-mute[aria-pressed="true"]{background:#f2f3e9;color:#14191e}
.voice-chat svg:not(.chse-avatar svg){width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.voice-chat .mic-slash{display:none}.voice-chat .is-muted .mic-slash{display:block}
.voice-chat :focus-visible{outline:3px solid #d6ff3c;outline-offset:6px}
.voice-chat[data-state="listening"] .voice-status{color:#d6ff3c}

.chse-helper-dock[hidden],.voice-chat[hidden]{display:none}
.voice-overlay{position:fixed;inset:0;z-index:2147483001;background:#14191e;padding:16px 24px;box-sizing:border-box;overflow:auto}
html:has(.voice-overlay:not([hidden])){overflow:hidden}

@font-face{font-family:Bricolage;src:url('/games/assets/bricolage.ttf') format('truetype');font-weight:200 800;font-display:swap}
.voice-chat{font-family:Bricolage,Arial,sans-serif;color:#f2f3e9;font-synthesis:none}
.voice-overlay{width:100%;margin:0;padding:calc(19px + env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))}
.voice-chat .voice-top{display:flex;align-items:center;padding:0;min-height:48px}
.voice-chat .brand{display:inline-flex;align-items:baseline;min-height:48px;font-size:35px;font-weight:800;letter-spacing:-.04em;line-height:48px}
.voice-chat a{color:inherit;text-decoration:none}.voice-chat .brand-dot{color:#d6ff3c}.voice-chat .domain{font-size:.57em;letter-spacing:-.025em}
.voice-chat .voice-status{margin:0}.voice-chat button{font-family:inherit}

.voice-chat{height:auto;min-height:100svh;min-height:100dvh;grid-template-rows:48px minmax(260px,1fr) auto auto auto;gap:16px}
.voice-stage{padding:16px 0;gap:18px}
.voice-explore{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:660px;width:100%;margin:0 auto}
.voice-explore button{display:flex;align-items:center;gap:10px;min-height:54px;padding:12px 14px;border:1px solid #46504e;border-radius:14px;background:transparent;color:#f2f3e9;font-size:15px;line-height:1.2;font-weight:650;text-align:left;cursor:pointer;touch-action:manipulation}
.voice-explore button:hover{background:#292f36;border-color:#d6ff3c}
.voice-explore button:active{background:#d6ff3c;color:#14191e}
.voice-explore button:disabled{opacity:.4;cursor:default}
.voice-explore svg{flex-shrink:0;color:#d6ff3c}
.voice-explore button:active svg{color:inherit}
.voice-chat[data-state="connecting"] .voice-explore,.voice-chat[data-state="listening"] .voice-explore,.voice-chat[data-state="speaking"] .voice-explore,.voice-chat[data-state="muted"] .voice-explore{display:none}
.voice-creations{width:100%;max-width:860px;margin:0 auto;min-width:0}
.creation-status{text-align:center;font-size:15px;line-height:1.4;color:#d6ff3c}
.creation-status:empty{display:none}
.creation-gallery{max-width:660px;margin:12px auto 0;border-top:1px solid #46504e}
.creation-gallery summary{padding:14px 0;cursor:pointer;font-size:16px;font-weight:650;min-height:48px;color:#ffc6e8}
.creation-count{font-size:13px;color:#f2f3e9;margin-left:5px}
.creation-list{display:grid;gap:2px;max-height:280px;overflow:auto}
.creation-item{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:12px 8px;border:0;border-radius:6px;min-height:48px;background:transparent;color:#f2f3e9;cursor:pointer;font-size:16px}
.creation-item:hover{background:#292f36}.creation-item>span:first-child{overflow-wrap:anywhere}
.creation-item-action{color:#d6ff3c;font-size:14px;flex-shrink:0}
.creation-empty,.creation-saving{font-size:14px;line-height:1.5;color:#f2f3e9;padding:8px 0}.creation-saving:empty{display:none}
.creation-viewer{margin:16px 0 12px;min-width:0}
.creation-viewer[hidden]{display:none}
.creation-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.creation-title{font-size:24px;line-height:1.15;overflow-wrap:anywhere}
.creation-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#292f36;color:#f2f3e9;cursor:pointer}
.creation-description{margin:4px 0 14px;font-size:15px;line-height:1.45;max-width:65ch;overflow-wrap:anywhere}
.creation-description:empty{display:none}
.creation-content{overflow:hidden;border-radius:16px;background:#292f36;min-height:80px}
.creation-content img{display:block;width:100%;max-height:60svh;object-fit:contain}
.creation-content iframe{display:block;width:100%;height:480px;height:min(60svh,520px);min-height:320px;border:0;background:#f2f3e9}
.creation-content>p{padding:24px;font-size:16px;line-height:1.5}
.creation-change{display:block;margin:12px 0 0;padding:12px 20px;min-height:48px;border:0;border-radius:24px;background:#d6ff3c;color:#14191e;font-size:16px;font-weight:750;cursor:pointer}
.creation-change:hover{background:#e2ff78}
.voice-chat.has-creation{grid-template-rows:48px auto auto auto auto}
.has-creation .voice-character{width:160px}.has-creation .voice-stage{gap:10px;padding:10px 0}.has-creation .voice-status{font-size:15px}
.voice-controls{padding:6px 0 0}
.voice-chat ::selection{background:#d6ff3c;color:#14191e}
.voice-chat{scrollbar-color:#46504e #14191e;scrollbar-width:thin}
@media(max-width:599px){
 .voice-explore{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .voice-explore button{font-size:14px;padding:11px 10px;gap:8px;min-height:54px}
 .voice-explore svg{width:22px!important;height:22px!important}
 .voice-stage{min-height:260px}.voice-character{width:clamp(160px,30svh,250px)}
 .has-creation .voice-stage{min-height:0}.has-creation .voice-character{width:130px}
 .creation-title{font-size:22px}
}
@media(min-width:900px){
 .voice-chat.has-creation{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);grid-template-rows:48px 1fr auto;column-gap:48px}
 .has-creation .voice-top{grid-column:1/-1}.has-creation .voice-stage{grid-column:1;grid-row:2}.has-creation .voice-character{width:clamp(200px,30svh,280px)}
 .has-creation .voice-creations{grid-column:2;grid-row:2;align-self:center}.has-creation .voice-controls{grid-column:1;grid-row:3}.has-creation .voice-explore{grid-column:1;grid-row:3}
 .has-creation[data-state="idle"] .voice-controls,.has-creation[data-state="ready"] .voice-controls{grid-row:4}
}
