/* Conversation frame: scalable borders with fixed-size SVG corner ornaments. */
#conversation .conversation-panel,
#scene-reader .scene-text-panel{
 padding:18px 22px 16px;
 border:1px solid #bc866780;
 border-radius:12px;
 background-color:#21131eeF;
 background-image:url("assets/images/ui/dialogue-corner.svg?v=1"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20fill%3D%22none%22%3E%0A%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%2288%22%20y2%3D%2288%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23f4d6a3%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23bf835f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23865449%22%2F%3E%3C%2FlinearGradient%3E%0A%3Cg%20id%3D%22flower%22%20stroke%3D%22%23daa381%22%20stroke-width%3D%22.7%22%3E%3Cpath%20d%3D%22M0-3C-7-13%206-16%203-5C14-10%2016%204%205%202C12%2012-1%2015%200%205C-10%2014-16%203-5%201C-16-5-4-14%200-3Z%22%20fill%3D%22%2370283c%22%2F%3E%3Ccircle%20r%3D%221.8%22%20fill%3D%22%23edc79a%22%2F%3E%3C%2Fg%3E%3C%2Fdefs%3E%0A%3Cg%20transform%3D%22rotate(180%2050%2050)%22%3E%3Cg%20stroke%3D%22url(%23gold)%22%20stroke-width%3D%22.7%22%20stroke-linecap%3D%22round%22%3E%0A%3Cpath%20d%3D%22M7%2091V30Q7%207%2030%207H91M12%2084V31Q12%2012%2031%2012H84%22%20opacity%3D%22.8%22%2F%3E%0A%3Cpath%20d%3D%22M5%2065C25%2055-3%2034%2020%2021C33%2012%2051%2024%2058%205M14%2048C25%2038%2018%2024%2032%2018M25%2014C31%2029%2049%2020%2058%2012%22%2F%3E%0A%3Cpath%20d%3D%22M12%2047C-1%2042%200%2029%209%2026C17%2027%2017%2036%2012%2035M45%2013C40%200%2029%202%2027%2010C29%2017%2036%2017%2035%2012%22%2F%3E%0A%3Cpath%20d%3D%22M14%2059Q29%2053%2025%2045Q14%2046%2014%2059M58%2014Q54%2028%2046%2024Q47%2014%2058%2014%22%20fill%3D%22%23a17152%22%20fill-opacity%3D%22.15%22%2F%3E%0A%3Cpath%20d%3D%22M4%2077l3-4%203%204-3%204ZM77%204l4%203-4%203-4-3Z%22%20fill%3D%22%23d5a077%22%2F%3E%0A%3C%2Fg%3E%0A%3Cuse%20href%3D%22%23flower%22%20transform%3D%22translate(19%2022)%20scale(.84)%22%2F%3E%0A%3Cuse%20href%3D%22%23flower%22%20transform%3D%22translate(42%2012)%20scale(.48)%22%2F%3E%0A%3Cuse%20href%3D%22%23flower%22%20transform%3D%22translate(10%2043)%20scale(.46)%22%2F%3E%0A%3Cpath%20d%3D%22M31%2035q10-6%2012-1q-3%209-12%201M7%2068q-5%207-1%2011q6-5%201-11%22%20fill%3D%22%23b84b63%22%20opacity%3D%22.75%22%2F%3E%0A%3C%2Fg%3E%3C%2Fsvg%3E"),linear-gradient(115deg,#581a2c80 0%,#27152235 44%,#140f1be8 100%);
 background-position:left top,right bottom,center;
 background-size:82px 82px,82px 82px,100% 100%;
 background-repeat:no-repeat;
 box-shadow:inset 0 0 0 4px #190e1880,inset 0 0 0 5px #c38d6426,0 0 22px #9a263525,0 10px 30px #0007;
 scrollbar-color:#986577 #24151f;
}
#conversation .conversation-panel::after{
 content:none;position:absolute;right:0;bottom:0;width:82px;height:82px;
 background:url("assets/images/ui/dialogue-corner.svg?v=1") no-repeat center/contain;
 transform:rotate(180deg);pointer-events:none;opacity:.85;
}
#conversation .conversation-name{
 display:flex;align-items:center;gap:12px;
 margin:0 0 8px;padding-left:7px;
 color:#f2d2b8;font-family:"Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif;
 font-size:15px;font-weight:400;letter-spacing:.16em;
}
#conversation .conversation-name::after{
 content:"";display:block;flex:1;max-width:120px;height:7px;
 background:linear-gradient(90deg,#dba68399,transparent) right center/calc(100% - 12px) 1px no-repeat,
 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 1L7 4L4 7L1 4Z' fill='none' stroke='%23dba683' stroke-width='.8'/%3E%3C/svg%3E") left center/7px 7px no-repeat;
}
#conversation .conversation-panel.is-yukina .conversation-name{color:#f2bccc}
#conversation .conversation-line{position:relative;color:#f8e9e4;line-height:1.75;min-height:2.8em;margin-bottom:8px;text-shadow:0 1px 3px #100711}
#conversation .conversation-next{color:#e9c4ad}
#conversation .conversation-actions,#conversation .conversation-choices,#conversation .heartbeat-controls{position:relative;z-index:1}
#conversation .conversation-choices button{border-color:#c38d6470;background:linear-gradient(115deg,#6230458a,#332031aa)}
#conversation .conversation-choices button:active{background:#724052b0}
#conversation button:focus-visible{outline-color:#f2c79e}
@media(max-width:350px),(max-height:550px){
 #conversation .conversation-panel{padding:16px 17px 15px;background-size:66px 66px,66px 66px,100% 100%}
 #conversation .conversation-panel::after{width:66px;height:66px}
 #conversation .conversation-name{margin-bottom:8px;font-size:14px}
}

/* Compact round actions keep the portrait's hands exposed. */
#conversation .conversation-actions{display:flex;justify-content:center;gap:22px;margin-top:8px}
#conversation .conversation-actions button{
 position:relative;display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;
 box-sizing:border-box;gap:3px;width:60px;height:60px;min-width:60px;min-height:60px;padding:6px;
 border:1px solid #c68c70a0;border-radius:50%;
 background:radial-gradient(ellipse at 50% 0,#ac415142,transparent 68%),linear-gradient(#35131fe0,#1c131fd9);
 box-shadow:inset 0 0 0 3px #1c111c,inset 0 0 0 4px #c18a5a22,0 3px 12px #10071050;
 color:#f5dfcc;
}
#conversation .conversation-actions button img{width:24px;height:24px;pointer-events:none;filter:drop-shadow(0 0 5px #ce74654a)}
#conversation .action-title{font-family:"Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif;font-size:10px;line-height:1.2;white-space:nowrap}
#conversation .conversation-actions button[aria-disabled=true]{opacity:.48;cursor:default}
#conversation .conversation-actions button:not([aria-disabled=true]):active{background:#613044;transform:translateY(1px)}
@media(max-width:350px),(max-height:550px){
 #conversation .conversation-actions{gap:14px;margin-top:6px}
 #conversation .conversation-actions button{width:56px;height:56px;min-width:56px;min-height:56px}
 #conversation .conversation-actions button img{width:22px;height:22px}
}

/* State visibility must outrank themed layout display rules. */
#conversation .conversation-actions[hidden],
#conversation .conversation-choices[hidden],
#conversation .heartbeat-controls[hidden]{display:none}

#conversation .heartbeat-controls{gap:10px}
#conversation .heartbeat-status{color:#e9c4ad}
#conversation .heartbeat-controls button{
 min-height:44px;padding:9px 8px;border:1px solid #c68c70a0;border-radius:22px;
 color:#f5dfcc;font-family:"Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif;
 background:radial-gradient(ellipse at 50% 0,#ac415142,transparent 75%),linear-gradient(#35131fe0,#1c131fd9);
 box-shadow:inset 0 0 0 3px #1c111c,inset 0 0 0 4px #c18a5a22;
}
#conversation .heartbeat-modes button[aria-pressed=true]{
 border-color:#efc49a;color:#fff0dc;
 background:linear-gradient(120deg,#80364e,#4f2439);
 box-shadow:inset 0 0 0 3px #321724,inset 0 0 0 4px #dcaa6a66,0 0 10px #c3656333;
}
#conversation .heartbeat-controls button:active{transform:translateY(1px)}
#conversation .heartbeat-controls label{color:#e9c4ad}
#conversation .heartbeat-controls input{accent-color:#dba683}
