/* New presentation only. The original renderer, chart controls and action gates remain intact. */
#pixel-frontend #character-card>.character-heading{order:2}
#pixel-frontend .character-heading>span:first-child:after{content:'情绪'}
#pixel-frontend #character-card>.sanity-label{order:3}
#pixel-frontend #character-card>.sanity-meter{order:4}
#pixel-frontend .pixel-stamina{order:5;margin:0 3px 12px;color:var(--px-ink);min-width:0}
#pixel-frontend .pixel-stamina-label{display:flex;align-items:center;gap:7px;min-height:29px;font-size:18px;line-height:29px}
#pixel-frontend .pixel-stamina-caption{font-weight:700;margin-right:auto}
#pixel-frontend .pixel-stamina-value{font-size:23px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;white-space:nowrap}
#pixel-frontend .pixel-stamina-state{font-size:15px;font-weight:700;color:#a16d00}
#pixel-frontend .pixel-stamina-track{position:relative;height:15px;margin-top:4px;border:1px solid #d8dfee;border-radius:15px;background:#f6f3f8}
#pixel-frontend .pixel-stamina-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#36daca,#42e3d2)}
#pixel-frontend .pixel-stamina[data-low="true"] .pixel-stamina-fill{background:linear-gradient(90deg,#ffbc31,#ffd66b)}
#pixel-frontend .pixel-stamina[data-low="true"] .pixel-stamina-track:after{content:'';position:absolute;left:20%;top:-3px;bottom:-3px;border-left:1px dashed #8992bc}
/* This lane exists while empty or dismissed, so entering/leaving a reminder
   never changes the chart height or shifts trading, news or comment controls. */
#pixel-frontend .single-action-slot{order:5;flex:none;width:100%;height:94px;min-height:94px;padding:8px 0;box-sizing:border-box}
#pixel-frontend .single-action-card{height:100%;box-sizing:border-box;display:grid;grid-template-columns:46px minmax(0,1fr) 116px 28px;align-items:center;gap:10px;margin:0;padding:7px 8px;border:1px solid #f3a4c8;border-radius:8px;background:linear-gradient(105deg,#fff5f8,#fff0f5);color:var(--px-ink)}
#pixel-frontend .single-action-card[hidden],#pixel-frontend .single-action-card button[hidden],#pixel-frontend .pixel-stamina-state[hidden]{display:none!important}
#pixel-frontend .single-action-icon{width:44px;height:49px;display:block}
#pixel-frontend .single-action-icon svg{width:100%;height:100%;display:block}
#pixel-frontend .single-action-copy{min-width:0}
#pixel-frontend .single-action-title{display:block;font-size:18px;line-height:25px;color:#991852}
#pixel-frontend .single-action-message{margin:1px 0 0;font-size:15px;line-height:22px;overflow-wrap:anywhere}
#pixel-frontend .single-action-card[data-kind="risk"]{border-color:#ef9a85;background:linear-gradient(105deg,#fff7ee,#fff2ee)}
#pixel-frontend .single-action-card[data-kind="risk"] .single-action-title{color:#a4412f}
#pixel-frontend .single-action-card :is(.single-action-close,.single-action-rest){grid-column:3;grid-row:1;min-height:44px;border-color:#f075b1;background:linear-gradient(#ffb6d9,#ff87bf);font-size:17px;font-weight:700;color:var(--px-ink)}
#pixel-frontend .single-action-dismiss{grid-column:4;grid-row:1;align-self:start;min-width:28px;min-height:28px;padding:0;background:transparent;border-color:transparent;color:#9b6682;font-size:22px;line-height:26px}
#pixel-frontend .single-action-card button:disabled{opacity:.55;cursor:default}
/* The lids are clipped to the chart stage, below its risk actions (z-index 2).
   They never take input, are excluded from accessibility, and show one short sweep. A hidden tab/modal cancels both sweep and timers. */
body[data-frontend="pixel"] .stamina-eyelids{position:absolute;inset:0;z-index:1;pointer-events:none!important;overflow:hidden}
body[data-frontend="pixel"] .stamina-eyelids[hidden],body:not([data-frontend="pixel"]) .stamina-eyelids{display:none!important}
body[data-frontend="pixel"] .stamina-eyelid{position:absolute;left:-2%;width:104%;height:52%;pointer-events:none!important;will-change:transform}
body[data-frontend="pixel"] .stamina-eyelid-top{top:0;transform:translateY(-105%);border-radius:0 0 45% 45% / 0 0 9% 9%;background:linear-gradient(#281322 80%,#281322e6 94%,#28132200)}
body[data-frontend="pixel"] .stamina-eyelid-bottom{bottom:0;transform:translateY(105%);border-radius:45% 45% 0 0 / 9% 9% 0 0;background:linear-gradient(0deg,#281322 80%,#281322e6 94%,#28132200)}
body[data-frontend="pixel"] .stamina-eyelids.is-blinking .stamina-eyelid-top{animation:kurumi-stamina-top 1s ease-in-out both}
body[data-frontend="pixel"] .stamina-eyelids.is-blinking .stamina-eyelid-bottom{animation:kurumi-stamina-bottom 1s ease-in-out both}
@keyframes kurumi-stamina-top{0%,100%{transform:translateY(-105%)}40%,47%{transform:translateY(0)}}
@keyframes kurumi-stamina-bottom{0%,100%{transform:translateY(105%)}40%,47%{transform:translateY(0)}}
@media(max-width:1200px){
 #pixel-frontend #character-card{grid-template-rows:29px minmax(36px,auto) minmax(25px,auto) 15px 52px}
 #pixel-frontend #character-card>.portrait{grid-row:1/6}
 #pixel-frontend #character-card>.character-heading{grid-column:2;grid-row:2}
 #pixel-frontend #character-card>.sanity-label{grid-column:2;grid-row:3}
 #pixel-frontend #character-card>.sanity-meter{grid-column:2;grid-row:4}
 #pixel-frontend .pixel-stamina{grid-column:2;grid-row:5;margin:2px 0 0}
 #pixel-frontend .pixel-stamina-label{font-size:15px;line-height:25px;min-height:25px}
 #pixel-frontend .pixel-stamina-value{font-size:20px}
 #pixel-frontend .pixel-stamina-state{font-size:12px}
 #pixel-frontend .pixel-stamina-track{height:13px;margin-top:2px}
 #pixel-frontend .single-action-slot{height:126px;min-height:126px}
 #pixel-frontend .single-action-card{grid-template-columns:35px minmax(0,1fr) 86px;grid-template-rows:minmax(0,1fr);gap:7px;padding:7px}
 #pixel-frontend .single-action-icon{width:34px;height:43px}
 #pixel-frontend .single-action-title{font-size:15px;line-height:22px}
 #pixel-frontend .single-action-message{font-size:13px;line-height:20px}
 #pixel-frontend .single-action-card :is(.single-action-close,.single-action-rest){font-size:14px;padding:3px 7px;align-self:end}
 #pixel-frontend .single-action-dismiss{grid-column:3;min-width:44px;min-height:44px;justify-self:end;margin-top:-7px;margin-right:-7px}
}
@media(prefers-reduced-motion:reduce){body:not(.motion-full)[data-frontend="pixel"] .stamina-eyelids{display:none!important}}
