.sparkle3d-book { position: absolute; z-index: 8; inset: 76px max(6%, calc((100% - 850px)/2)) 24px; overflow: auto; padding: 26px; border: 2px solid #e5c878; border-radius: 24px; background: rgba(255,248,237,.98); color: #69375e; box-shadow: 0 14px 50px #4c254b33; font-family: Georgia, serif; }
.sparkle3d-book[hidden] { display: none; }
.sparkle3d-reading .mini3d-controls { visibility: hidden; }
.sparkle3d-book.sparkle3d-success { inset: auto max(10%, calc((100% - 720px)/2)) 20px; padding: 20px; max-height: 60%; }
.sparkle3d-book h3 { margin: 0 0 12px; font-size: 25px; }
.sparkle3d-book p, .sparkle3d-book li { font: 16px/1.5 system-ui; }
.sparkle3d-recipes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.sparkle3d-book button { min-height: 62px; border: 2px solid #dcc09c; border-radius: 14px; padding: 13px 16px; background: #fffdf7; color: #69375e; font: 600 16px/1.3 system-ui; cursor: pointer; }
.sparkle3d-book button:hover, .sparkle3d-book button:focus-visible { background: #f4e4f5; outline: 3px solid #b989bc; outline-offset: 2px; }
.sparkle3d-book button:disabled { color: #74636d; background: #eee6df; cursor: default; }
.sparkle3d-book button strong, .sparkle3d-book button small { display: block; }
.sparkle3d-book button small { margin-top: 7px; font-size: 12px; font-weight: 500; }
.sparkle3d-book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sparkle3d-jar-label { position: absolute; z-index: 2; max-width: 130px; padding: 4px 8px; border-radius: 12px; background: #fff8ebf2; color: #69375e; font: 600 12px/1.2 system-ui; text-align: center; transform: translate(-50%,-50%); pointer-events: none; }
@media (max-width: 600px) { .sparkle3d-book { inset: 75px 12px 14px; padding: 18px; } .sparkle3d-book h3 { font-size: 21px; } .sparkle3d-recipes { gap: 9px; } .sparkle3d-book button { padding: 12px 10px; font-size: 14px; } .sparkle3d-book-actions { display: grid; grid-template-columns: 1fr; } .sparkle3d-book.sparkle3d-success { inset: auto 12px 14px; padding: 16px; max-height: 53%; } .sparkle3d-success h3 { font-size: 18px; } .sparkle3d-success p { margin: 8px 0; } .sparkle3d-success .sparkle3d-book-actions { margin-top: 12px; gap: 8px; } .sparkle3d-success button { min-height: 50px; } }
