/* SANCHINA R71 homepage share UI. Strictly scoped; never changes the header. */
body.sc-home-share-open {overflow:hidden;}
#sc-home-share-root {position:fixed;inset:0;z-index:2147483640;background:rgba(13,22,30,.48);display:flex;align-items:flex-end;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif;color:#182d31;font-size:15px;}
#sc-home-share-root * {box-sizing:border-box;}
#sc-home-share-root .sc-home-panel {width:min(100%,530px);max-height:87dvh;overflow:auto;-webkit-overflow-scrolling:touch;background:#fff;border-radius:26px 26px 0 0;padding:19px 18px max(24px,env(safe-area-inset-bottom));box-shadow:0 -9px 35px rgba(0,0,0,.16);}
#sc-home-share-root .sc-home-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;}
#sc-home-share-root .sc-home-head strong {font-size:22px;line-height:1.4;color:#162334;font-weight:800;}
#sc-home-share-root .sc-home-head button {border:0;background:#f0f3f6;border-radius:50%;height:42px;width:42px;font-size:28px;line-height:1;color:#536171;cursor:pointer;}
#sc-home-share-root .sc-home-intro,#sc-home-share-root .sc-home-hint,#sc-home-share-root .sc-home-note {font-size:13px;line-height:1.6;color:#63727b;margin:7px 0 15px;}
#sc-home-share-root .sc-home-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));row-gap:18px;column-gap:7px;margin:12px 0 19px;}
#sc-home-share-root .sc-home-app {display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;cursor:pointer;background:none;border:0;padding:0;min-height:80px;font-size:12px;color:#263747;}
#sc-home-share-root .sc-home-appicon {width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#f1f3f6;color:#243648;font-size:23px;font-weight:800;}
#sc-home-share-root .sc-home-appicon.line {background:#06c755;color:#fff;font-size:16px;}
#sc-home-share-root .sc-home-appicon.x {background:#101a2a;color:#fff;}
#sc-home-share-root .sc-home-appicon.instagram {background:linear-gradient(135deg,#8134af,#dd2a7b,#feda77);color:#fff;}
#sc-home-share-root .sc-home-appicon.facebook {background:#1877f2;color:#fff;}
#sc-home-share-root .sc-home-appicon.wechat {background:#09b657;color:#fff;font-size:17px;}
#sc-home-share-root .sc-home-appicon.rednote {background:#fa244c;color:#fff;font-size:15px;}
#sc-home-share-root .sc-home-thumbrow {background:#f6faf8;border:1px solid #ccebd9;border-radius:14px;padding:9px;display:flex;align-items:center;gap:12px;}
#sc-home-share-root .sc-home-thumbrow img {height:93px;width:62px;object-fit:contain;flex:none;border:1px solid #d9e4dc;border-radius:4px;background:#fff;}
#sc-home-share-root .sc-home-thumbrow span {display:flex;flex-direction:column;gap:6px;}
#sc-home-share-root .sc-home-thumbrow b {font-size:15px;}
#sc-home-share-root .sc-home-thumbrow small {font-size:12px;line-height:1.4;color:#546960;}
#sc-home-share-root .sc-home-preview {margin:10px auto 14px;text-align:center;}
#sc-home-share-root .sc-home-preview img {display:block;max-width:100%;width:auto;max-height:30dvh;object-fit:contain;margin:auto;border-radius:6px;border:1px solid #e6ded2;background:#fff;}
#sc-home-share-root .sc-home-status {font-size:13px;line-height:1.5;color:#516a71;margin:6px 0 12px;}
#sc-home-share-root .sc-home-actions {display:flex;flex-direction:column;gap:9px;}
#sc-home-share-root .sc-home-actions button {cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;width:100%;border-radius:15px;background:#f7fcf8;border:1px solid #bee8d1;padding:12px 15px;color:#144b33;}
#sc-home-share-root .sc-home-actions button b {font-size:16px;}
#sc-home-share-root .sc-home-actions button small {font-size:12px;line-height:1.45;color:#46645a;}
#sc-home-share-root .sc-home-actions button:first-child {background:#06c755;border-color:#06c755;color:#fff;}
#sc-home-share-root .sc-home-actions button:first-child small {color:#fff;}
#sc-home-share-root .sc-home-actions button:last-child {background:#fff;color:#6b7580;border-color:#dee7e2;}
#sc-home-share-root .sc-home-copytext {white-space:pre-wrap;overflow-wrap:anywhere;margin-top:14px;background:#f7faf8;border:1px solid #d3e7dc;border-radius:13px;padding:12px;font-size:13px;line-height:1.7;max-height:145px;overflow:auto;user-select:text;-webkit-user-select:text;}
#sc-home-share-root .sc-home-back,#sc-home-share-root .sc-home-download {margin-top:14px;display:block;width:100%;border-radius:12px;padding:13px;text-align:center;border:1px solid #bddfc8;background:#fff;color:#087e4e;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer;}
@media(min-width:700px){#sc-home-share-root{align-items:center}#sc-home-share-root .sc-home-panel{border-radius:26px;max-height:85vh;padding:22px;}}

/* R72: Instagram posting format selection, matching GAME QUIZ. */
#sc-home-share-root .sc-home-instagram-modes { display:flex; flex-direction:column; gap:12px; margin:14px 0 18px; }
#sc-home-share-root .sc-home-instagram-modes button { width:100%; min-height:100px; text-align:left; padding:19px 20px; border-radius:18px; background:#f5fbf7; border:1px solid #bde4cd; cursor:pointer; color:#087f52; display:flex; flex-direction:column; gap:9px; }
#sc-home-share-root .sc-home-instagram-modes b { font-size:20px; line-height:1.4; }
#sc-home-share-root .sc-home-instagram-modes small { font-size:13px; line-height:1.4; color:#647589; }
#sc-home-share-root .sc-home-actions button:disabled { opacity:.58; cursor:progress; }
