/* Sorisup language/parent shell: parent-only promotions, zero child-facing ads. */
#familyOpen,.analytics-parent-entry {display:none!important}
.shion-shell-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.shion-langs{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #d7cdeb;background:#fff;border-radius:999px}
.shion-langs button{font:700 12px/1.3 inherit;white-space:nowrap;border:0;background:transparent;border-radius:999px;padding:8px 9px;min-height:37px;color:#605873;cursor:pointer}
.shion-langs button[aria-pressed="true"]{background:#e6d9f7;color:#3c2268}
#shionParentButton{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:112px;padding:9px 14px;border:1.5px solid #a691c9;border-radius:999px;background:#f8f3ff;color:#54317d;font-size:13px;font-weight:800;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.shion-overlay{position:fixed;inset:0;z-index:35000;background:rgba(37,27,54,.65);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;overscroll-behavior:contain}
.shion-overlay[hidden]{display:none!important}
.shion-dialog{position:relative;background:#fffefa;color:#362f3d;border-radius:23px;box-shadow:0 18px 70px #0004;width:min(94vw,640px);max-height:min(91dvh,800px);overflow:auto;padding:24px;text-align:left}
.shion-dialog h2{font-size:23px;line-height:1.35;margin:5px 0 12px}
.shion-dialog h3{font-size:17px;margin:18px 0 8px}
.shion-dialog p{font-size:14px;line-height:1.6;margin:8px 0}
.shion-close{position:absolute;right:12px;top:12px;border:0;background:#eee6f7;color:#432c66;width:36px;height:36px;border-radius:50%;font-size:20px;cursor:pointer}
.shion-question{font-size:36px;text-align:center;font-weight:850;margin:20px auto}
.shion-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.shion-answer-grid button,.shion-parent-action,.shion-rest-extend{min-height:50px;background:#f2eafa;border:2px solid #cfbae9;border-radius:14px;color:#3c2968;font-size:16px;font-weight:800;cursor:pointer}
.shion-answer-grid button:focus-visible,#shionParentButton:focus-visible,.shion-langs button:focus-visible{outline:3px solid #53419e;outline-offset:2px}
.shion-error{color:#a32736!important;min-height:23px;text-align:center}
.shion-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:10px}
.shion-product{border:1px solid #e4dced;background:#fcfaff;border-radius:14px;padding:13px}
.shion-product .art{font-size:31px}
.shion-product strong{display:block;margin:4px 0;font-size:15px}
.shion-product p{font-size:12px;color:#5f5869;margin:3px 0 9px}
.shion-links{display:flex;gap:6px;flex-wrap:wrap}
.shion-links a,.shion-links button,.shion-donate{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 10px;border-radius:10px;font-size:12px;font-weight:800;text-decoration:none;background:#eee2ff;color:#382a65;border:0}
.shion-links button:disabled,.shion-donate:disabled{opacity:.58;cursor:not-allowed}
.shion-disclosure{position:sticky;bottom:-24px;z-index:2;background:#fffefa;border-top:1px solid #ddd2e6;padding:12px 0 8px;color:#5f536e;font-size:11px!important}
.shion-rest-select{width:100%;margin:8px 0;padding:10px;border:1px solid #ae98c7;border-radius:10px;font-size:15px}
.shion-parent-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.shion-parent-tools button{padding:8px 11px;border:1px solid #bbaaCF;border-radius:10px;background:white}
.shion-rest-body{text-align:center}
.shion-sleep-bunny{width:min(54vw,220px);height:auto;margin:14px auto 6px;display:block;filter:drop-shadow(0 8px 9px #7e67ac26)}
.shion-rest-body p{font-size:18px;line-height:1.6}
.shion-rest-extend{padding:12px 16px;width:100%;margin-top:14px}
body.shion-rest-active #mainContent{pointer-events:none}
@media(max-width:790px){.topbar{flex-wrap:wrap}.shion-shell-controls{order:4;flex-basis:100%;justify-content:center}.shion-langs button{font-size:11px;padding:7px}.shion-dialog{padding:18px}.shion-disclosure{bottom:-18px}}

/* Sticky header must reserve actual space for the second control row on phones. */
@media(max-width:790px){
 .topbar{height:auto!important;min-height:62px;padding:8px 12px;display:flex;flex-wrap:wrap;align-items:center;row-gap:6px}
 .header-right{display:contents}
 .topbar .home-button{order:0}
 .topbar .top-logo{order:1;flex:1;min-width:0}
 .topbar #soundButton{order:2}
 .shion-shell-controls{order:3;flex:0 0 100%;width:100%;justify-content:center;min-width:0}
 .topbar #screenName{display:none}
 .three-d-viewer-bar{scroll-margin-top:112px}
}

/* Quiz for a 10-minute extension appears above the active rest overlay. */
#shionModal{z-index:36001}
#shionRest{z-index:36000}

/* Preserve the original first-run lock, but keep the parent gate in the sticky header reachable. */
#familyLock.family-stop-wrapper{z-index:8!important}
#shionRest{z-index:2147483550}
#shionModal{z-index:2147483600}

/* Play-first parent menu: useful actions above all optional recommendations. */
.shion-parent-page{scroll-padding-top:24px}
.shion-play-first{margin:6px 0 15px!important;font-weight:650;color:#64527a}
.shion-core{padding:15px 16px;background:#f4effb;border-radius:17px;border:1px solid #e2d7f3}
.shion-core h3:first-child{margin-top:0}
.shion-core > p:last-child{color:#756a80;font-size:12px;margin-top:12px}
.shion-parent-tools{margin:8px 0;gap:9px}
.shion-parent-tools button{min-height:42px;cursor:pointer;background:#fff;font-weight:750;color:#433260}
.shion-promotion{margin-top:32px;padding-top:18px;border-top:2px solid #ece6f2}
.shion-promotion > h3:first-child{font-size:17px;color:#594971;margin:0 0 8px}
.shion-promotion .shion-donate{margin:6px 0}
.shion-promotion .shion-card-list{margin-top:10px}
#shionParentButton{box-shadow:none}
@media(max-width:790px){.shion-core{padding:13px 14px}.shion-promotion{margin-top:26px}}
