/* A quiet paper conversation panel, beside the user's own unchanged arrangement. */
#cameraFlash{position:fixed;inset:0;background:#fffdf5;opacity:0;pointer-events:none;z-index:5000}#cameraFlash.flashing{animation:camera-capture .65s ease-out 1}@keyframes camera-capture{0%{opacity:0}20%{opacity:.94}35%{opacity:.94}100%{opacity:0}}#world.flash-tail:after{content:"";position:fixed;inset:0;pointer-events:none;background:#fffdf5;z-index:100;animation:camera-tail .5s ease-out both}@keyframes camera-tail{from{opacity:.94}to{opacity:0}}
#world{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#e8bf89;background-position:center;background-size:cover}#world[open]{display:block}#world::backdrop{background:#d5ac7b}.world-room{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,31%);gap:20px;padding:24px 24px 24px 16px}.world-left{min-width:0;display:flex;flex-direction:column;position:relative}.back-world{align-self:flex-start;background:#fff1da!important;border:1px solid #cba178!important;padding:10px 18px!important;border-radius:24px!important;font-size:14px}.world-title{padding:20px 0 0 12%;flex-shrink:0}.world-title h2{font-family:"Songti SC",SimSun,serif;font-weight:600;font-size:clamp(32px,3.5vw,58px);letter-spacing:.06em;margin:0}.world-title p{font-family:"Songti SC",SimSun,serif;font-size:20px;margin:9px 0 0;letter-spacing:.08em}#worldImage{flex:1;min-height:0;margin:0;background:transparent;border:0;border-radius:0;position:relative;overflow:visible}#worldImage .mini-scene{position:absolute;transform-origin:top left}#worldImage .world-object{pointer-events:auto;cursor:pointer;padding:0;border:0;background:transparent;position:absolute;transform-origin:center;border-radius:10px;transition:filter .2s}#worldImage .world-object img{width:100%;height:100%;display:block;pointer-events:none}#worldImage .world-object:focus-visible{outline:3px solid #86542f;outline-offset:3px}#worldImage .world-object.current{filter:drop-shadow(0 0 6px #fff4b8) drop-shadow(0 4px 5px #5c361b45)}.world-actions{display:flex;align-items:center;gap:16px;padding:10px 16px 6px;min-height:60px}.world-actions button{background:#fff2db;border-radius:24px!important;font-size:16px;padding:12px 20px!important}.world-actions span{font-size:11px;color:#603b24;background:#fff3dcdd;border-radius:8px;padding:5px 8px;max-width:220px;line-height:1.6}
.conversation-panel{height:100%;min-height:0;min-width:0;background:#fff5e5;border:1px solid #cba178;border-radius:16px;padding:26px 20px 12px;display:flex;flex-direction:column;box-shadow:inset 0 0 0 6px #fffaf0,inset 0 0 0 7px #e7caa5}.conversation-panel header{display:block;margin:0 0 14px}.conversation-panel h2{font-size:clamp(24px,2vw,34px);line-height:1.4;font-weight:600}.world-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #ddc5a7;margin-bottom:12px;gap:8px}.world-tabs button{flex:1;border:0;border-radius:0!important;background:none;font-size:14px;padding:12px 0!important;white-space:nowrap;border-bottom:3px solid transparent}.world-tabs button[aria-selected=true]{border-bottom-color:#805031;font-weight:600}.world-tabs button:hover{background:#f5e8d4}#talkView{display:flex;flex:1;flex-direction:column;overflow:auto;min-height:0;scrollbar-width:thin}#talkView[hidden],#meaningView[hidden]{display:none}#worldMessages{padding:6px 2px 10px;flex:1}.world-message{margin:0 0 20px}.world-message .speaker{display:block;font-size:11px;color:#927254;margin-bottom:7px}.world-message p{font-size:16px;line-height:1.95;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.world-message.user{margin-left:20%;background:#f0e1c9;border-radius:12px 12px 2px 12px;padding:10px 14px}.world-message.user .speaker{display:none}.world-message.user p{font-size:14px}.object-tag{display:inline-block;border:1px solid #b68a5c;border-radius:16px;padding:4px 12px;font-size:12px;margin-bottom:12px}#worldChoices{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 14px;flex-shrink:0}#worldChoices button{font-size:13px;border:1px solid #c39c73;border-radius:20px;background:#fff8ec;line-height:1.7;padding:8px 14px;text-align:left}#worldChoices button:hover{background:#efdfc6;border-color:#996637}#worldComposer{flex-shrink:0;display:flex;align-items:flex-end;border:1px solid #b79065;border-radius:12px;background:#fffbf3;padding:7px;margin-top:10px;gap:5px}#worldComposer textarea{border:0;background:transparent;resize:none;min-height:54px;max-height:100px;padding:5px 6px;line-height:1.7;font-family:inherit;font-size:14px;outline:none}#worldComposer button{background:#96613b;border:0;border-radius:50%;width:38px;height:38px;flex-shrink:0;color:white;font-size:18px;padding:0}.conversation-foot{font-size:11px!important;line-height:1.7!important;color:#8a6d51;margin:7px 0 0!important}.meaning-note{font-size:12px!important;line-height:1.8!important;color:#806044;margin:2px 0 14px!important}#meaningView{overflow:auto;flex:1;min-height:0;scrollbar-width:thin}.meaning-overview{background:#f1e4cf;padding:12px 14px;border-radius:9px;font-size:13px;line-height:1.9;margin-bottom:16px}.meaning-overview h3{font-size:14px;margin:0 0 8px}.meaning-card{border-top:1px solid #e1caab;padding:16px 2px}.meaning-card.active{border-top-color:#9c683e}.meaning-card-head{display:flex;align-items:center;gap:10px}.meaning-card-head img{width:48px;height:48px;object-fit:contain}.meaning-card h3{font-size:17px;font-family:"Songti SC",SimSun,serif;margin:0}.meaning-card p{font-size:13px;line-height:1.95;margin:9px 0}.meaning-card .fact{color:#816045;font-size:12px}.meaning-card .interpretation-status{font-size:12px;color:#6c6540;margin:8px 0}.meaning-actions{display:flex;flex-wrap:wrap;gap:6px}.meaning-actions button{font-size:12px;border:1px solid #d1b18a;border-radius:16px;padding:6px 10px;background:#fff8ed}.meaning-actions button:hover,.meaning-actions button[aria-pressed=true]{background:#e7d5b8}.meaning-card .item-note{display:block;font-size:12px;line-height:1.8;color:#725538}
#savedWorld{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#59381b55;padding:20px}#savedWorld[hidden]{display:none}.saved-paper{background:#fff5e4;border:1px solid #b48759;border-radius:18px;padding:40px;max-width:600px;text-align:center;box-shadow:0 12px 60px #4f2c1f30}.saved-mark{font-size:42px;color:#9b7045}.saved-paper h2{font-size:30px;line-height:1.7;margin:15px 0}.saved-paper p{font-size:15px;line-height:1.9}.saved-privacy{font-size:12px!important;color:#927254}.saved-paper button{margin:8px 5px}.saved-paper #backAfterSave{background:#885634;color:white}.saved-paper .saved-error{color:#a53e28}
@media(min-width:1650px){.world-room{gap:32px;padding:32px}.conversation-panel{padding:32px 28px 18px}}@media(max-width:1000px){.world-room{grid-template-columns:minmax(0,1fr) minmax(320px,42%);gap:10px;padding:14px 12px}.world-title{padding:16px 0 0 7%}.world-title p{font-size:16px}.conversation-panel{padding:20px 16px 10px}.world-actions{flex-direction:column;align-items:flex-start;gap:6px}.world-actions span{max-width:none}.world-message p{font-size:15px}.world-tabs button{font-size:12px}}@media(max-width:700px){#world{overflow-y:auto}.world-room{min-height:100%;height:auto;display:flex;flex-direction:column;gap:12px;padding:12px}.world-left{height:42dvh;min-height:310px;flex-shrink:0}.world-title{padding:12px 0 0 12px}.world-title h2{font-size:28px}.world-title p{font-size:14px;margin:4px 0}.back-world{font-size:12px;padding:7px 12px!important}.world-actions{position:absolute;right:0;top:0;padding:0;min-height:0}.world-actions button{font-size:12px;padding:8px 13px!important}.world-actions span{display:none}#worldImage{min-height:170px}.conversation-panel{height:55dvh;min-height:440px;flex-shrink:0;padding:20px 16px 12px}.conversation-panel h2{font-size:24px}.world-tabs button{font-size:14px}.saved-paper{padding:28px 22px}.saved-paper h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){#cameraFlash.flashing,#world.flash-tail:after{animation:none;opacity:0}#worldImage .world-object{transition:none}}

@media(min-width:1001px){.world-title{padding-left:28%}.world-title p{font-size:20px}}

.conversation-panel header h2:focus{outline:none}
