/* Shared member presentation; gameplay controls and runtime keep their own styles. */
.member-polished:not(.game-playing) .page-heading{margin:0 0 24px;padding:28px 32px;border:1px solid #e6dced;border-radius:25px;background:linear-gradient(115deg,#f0e9f8,#fffaf2)}
.member-polished .page-heading h1{font-size:clamp(28px,3.5vw,40px);line-height:1.18;letter-spacing:-1px;margin-bottom:12px}
.member-polished .page-heading .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:12px}
.member-polished .page-heading p{font-size:15px;line-height:1.7;margin:0;max-width:650px}
.member-polished .member-content-total{margin-top:16px}.member-polished .member-content-pill,.member-polished .worksheet-total-pill{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%;min-height:36px;padding:7px 14px;border:1px solid #b8d9cf;border-radius:999px;background:#e3f3ec;color:#245e50;font-size:13px;line-height:1.4;font-weight:600}.member-polished .member-content-pill strong,.member-polished .worksheet-total-pill strong{font-weight:800}
.member-polished .profile-grid{gap:20px}.member-polished .profile-grid>.tile,.member-polished .child-photo-panel,.member-polished .profile-navigation{border-color:#e6ddec;background:#fffdfb;box-shadow:0 6px 24px #39234b04}
.member-polished .profile-grid h2,.member-polished .child-photo-panel h2,.member-polished .profile-navigation h2{font-size:22px;margin-bottom:16px}
.member-polished .profile-grid h2::before,.member-polished .child-photo-panel h2::before{content:"";display:inline-block;width:9px;height:22px;border-radius:5px;background:#c5b1df;vertical-align:-3px;margin-right:10px}
.member-polished .profile-grid>.tile:nth-child(2) h2::before{background:#9cc8b4}
.member-polished .profile-grid form>label:first-of-type{margin-top:0}
.member-polished .profile-grid input,.member-polished .profile-grid select,.member-polished .auth-card input{background:#fff;border-color:#dcd3e6;min-height:48px;border-radius:13px}
.member-polished .profile-grid .primary,.member-polished .auth-card .primary,.member-polished .child-photo-panel .primary{min-height:48px;background:#70539b}
.member-polished .profile-grid .primary:hover,.member-polished .auth-card .primary:hover{background:#60448c}
.member-polished .profile-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px}.member-polished .profile-navigation h2{margin:0}
.member-polished .email-display{background:#f4f0f8;padding:14px 16px;border:1px solid #e8e0ee}
.member-polished .child-photo-panel{max-width:720px}.member-polished .child-photo-panel input::file-selector-button{background:#eee6f8;border:0;border-radius:9px;padding:10px;color:#614986;margin-right:12px;cursor:pointer}
.member-polished .auth-main{min-height:60vh;margin:36px auto 48px}.member-polished .auth-card{border-color:#e5d9ef;box-shadow:0 16px 48px #58406f09;border-top:5px solid #bda6d7;max-width:480px;padding:32px}
.member-polished .auth-card h1{font-size:34px;line-height:1.2;letter-spacing:-1px;margin-bottom:16px}.member-polished .auth-card .eyebrow{font-size:10px;letter-spacing:1.5px;color:#70539b}.member-polished .auth-card .auth-link{min-height:44px;display:flex;align-items:center;justify-content:center;margin:16px 0 8px;font-size:14px}
.member-polished .collection-tip{font-size:14px;margin:0 0 22px;padding:14px 18px;background:#edf3ed;border-radius:14px;color:#52695a}
.member-polished .files-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.member-polished .files-grid .tile{display:flex;flex-direction:row;align-items:stretch;padding:0;overflow:hidden;background:#fffdfb;border-color:#e5ddec}
.file-cover{background:#e8eee7;display:grid;place-items:center;padding:22px 14px;flex:0 0 34%;min-width:0}.files-grid .tile:nth-child(2n) .file-cover{background:#f0e8f8}.file-cover img{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;filter:drop-shadow(3px 6px 5px #2c26321c)}
.file-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;padding:24px 20px}.file-copy .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:12px}.file-copy h2{font-size:21px;margin-bottom:10px}.file-copy p{font-size:14px;margin-bottom:20px}.file-copy .button-row{margin-top:auto;gap:8px}.file-copy .primary,.file-copy .secondary{font-size:13px;min-height:46px;padding:10px 14px}.file-copy .secondary{background:transparent}
.member-polished .games-browser .browser-heading{padding:24px 28px;margin-top:0;border:1px solid #e6dced;border-radius:24px;background:linear-gradient(115deg,#f0e9f8,#fffaf2)}
.member-polished .games-browser .available-count{background:#fffdfb;border:1px solid #e6dced;border-radius:30px;padding:3px 10px;font-size:12px;display:inline-block;margin:8px 0 0 8px}
.member-polished .games-browser .browser-controls{border-bottom:0;padding:0;margin-bottom:24px}.member-polished .games-browser .all-categories{margin:0 0 16px;background:#fffdfb}
.member-polished .games-browser .category-art{border:1px solid #ffffff80}.member-polished .games-browser .browser-game{box-shadow:0 5px 20px #3d2d5605}
@media(max-width:1000px){.member-polished .files-grid .tile{flex-direction:column}.file-cover{flex-basis:auto;padding:20px;min-height:210px}.file-cover img{height:180px;width:auto;max-width:100%}}
@media(max-width:700px){.member-polished:not(.game-playing) .page-heading{padding:23px 21px;border-radius:22px;margin-bottom:20px}.member-polished .page-heading p{font-size:14px}.member-polished .profile-grid{gap:16px}.member-polished .profile-grid>.tile,.member-polished .child-photo-panel,.member-polished .profile-navigation{padding:23px 21px;border-radius:21px}.member-polished .profile-navigation{align-items:flex-start;flex-direction:column}.member-polished .auth-main{margin-top:26px}.member-polished .auth-card{padding:26px 22px;border-radius:24px}.member-polished .auth-card h1{font-size:30px}.member-polished .games-browser .browser-heading{padding:22px 20px;border-radius:22px}.member-polished .games-browser .available-count{margin-left:0}.member-polished .files-grid{grid-template-columns:1fr;gap:16px}.member-polished .files-grid .tile{flex-direction:row}.file-cover{flex:0 0 31%;padding:15px 10px;min-height:0}.file-cover img{width:100%;height:auto}.file-copy{padding:20px 16px}.file-copy h2{font-size:19px}.file-copy p{font-size:13px}.member-polished .collection-tip{font-size:13px}}
@media(max-width:359px){.member-polished .files-grid .tile{flex-direction:column}.file-cover{flex-basis:auto}.file-cover img{height:150px;width:auto}.file-copy{padding:20px}.member-polished .page-heading h1{font-size:27px}}

/* Member Games collection. All overrides stop when a game session begins. */
body.page-member-games:not(.pandai-playing) .games-browser .games-hero{position:relative;overflow:hidden;text-align:left;border:1px solid #e4dcec;border-radius:28px;padding:32px;background:linear-gradient(115deg,#eee7f7,#f9f6ef);box-shadow:0 8px 28px #55406d08}
body.page-member-games:not(.pandai-playing) .games-hero::after{content:"";position:absolute;right:48px;top:35px;width:112px;height:132px;border:7px solid #fffdf8;border-radius:22px;transform:rotate(12deg);background:radial-gradient(circle at 30% 30%,#a7c9b8 0 13%,transparent 14%),radial-gradient(circle at 72% 30%,#eed094 0 13%,transparent 14%),linear-gradient(#c4b2dc,#c4b2dc) 50% 68%/64% 10px no-repeat,linear-gradient(#ded2eb,#ded2eb) 50% 84%/48% 8px no-repeat,#f7f2fb;box-shadow:0 14px 24px #7a63881c;pointer-events:none}
body.page-member-games:not(.pandai-playing) .games-hero h1{color:#303047;font-size:clamp(28px,3.4vw,40px);max-width:70%;letter-spacing:-.035em;line-height:1.18}
body.page-member-games:not(.pandai-playing) .games-hero>.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#277568}
body.page-member-games:not(.pandai-playing) .games-hero>p{color:#747184;max-width:70%;font-size:15px;line-height:1.7}
body.page-member-games:not(.pandai-playing) .games-hero-actions{justify-content:flex-start;gap:12px;margin-top:22px}
body.page-member-games:not(.pandai-playing) .games-hero-actions .available-count{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;width:auto;max-width:100%;min-height:36px;margin:0;border:1px solid #b8d9cf;background:#e3f3ec;color:#245e50;border-radius:999px;padding:7px 14px;font-size:13px;line-height:1.4;font-weight:800}
body.page-member-games:not(.pandai-playing) .games-hero-actions .secondary{width:auto;min-height:40px;padding:8px 13px;border:1px solid #e0d7e8;background:#fffdf8;border-radius:99px;color:#755b99;font-size:12px;box-shadow:none}
body.page-member-games:not(.pandai-playing) #pandai-shell{--bg:#fbf9f5;--card:#fffefa;--ink:#303047;--soft:#787384;--p:#8063aa;--back:#eee7f7;background:radial-gradient(ellipse at 100% 0,#eee7f750,transparent 60%),#fbf9f5;border:1px solid #e8e1ed;border-radius:28px;padding:24px;font-family:"Segoe UI",Arial,sans-serif;line-height:1.5;box-shadow:0 6px 24px #59436b06}
body.page-member-games:not(.pandai-playing) #pandai-shell #app{max-width:1000px;padding:0 0 8px}
body.page-member-games:not(.pandai-playing) #pandai-shell .pandai-title{font:750 28px/1.25 "Segoe UI",Arial,sans-serif;letter-spacing:-.035em;margin:0 0 8px}
body.page-member-games:not(.pandai-playing) #pandai-shell .pandai-title span{color:#353149;transform:none}
body.page-member-games:not(.pandai-playing) #pandai-shell .lead{font-size:14px;line-height:1.6;color:#797285;margin:0 0 22px}
body.page-member-games:not(.pandai-playing) #pandai-shell .top{margin-bottom:16px}
body.page-member-games:not(.pandai-playing) #pandai-shell .btn.s{min-height:44px;padding:10px 14px;border:1px solid #e4dcec;border-radius:14px;background:#fffdf9;color:#79638e;font:600 13px/1.4 "Segoe UI",Arial,sans-serif;box-shadow:none;transform:none}
body.page-member-games:not(.pandai-playing) #pandai-shell input.sr{min-height:52px;padding:14px 18px 14px 46px;font:400 15px/1.4 "Segoe UI",Arial,sans-serif;border:1px solid #dcd2e6;border-radius:16px;color:#353149;background:#fffefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23978aa9' stroke-width='1.7'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") 16px center/19px no-repeat;margin-bottom:18px;box-shadow:0 3px 12px #5b3f7905}
body.page-member-games:not(.pandai-playing) #pandai-shell .ages{gap:8px;margin:0 0 24px}
body.page-member-games:not(.pandai-playing) #pandai-shell .ages .btn{border-radius:99px;padding:10px 15px;min-height:44px;background:#fffdf9;color:#797285;border:1px solid #e4dcec;box-shadow:none}
body.page-member-games:not(.pandai-playing) #pandai-shell .ages .btn[aria-pressed=true]{background:#eee6f7;color:#72519a;border-color:#bfacd7;box-shadow:inset 0 0 0 1px #bfacd7}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th{position:relative;align-items:flex-start;text-align:left;gap:8px;padding:20px;min-height:204px;border:1px solid #dbe6df;border-radius:23px;background:#e6f0e9;color:#353149;box-shadow:0 4px 16px #493c6507;transform:none;transition:transform .18s,border-color .18s,box-shadow .18s}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:nth-child(5n+2){background:#eee7f6;border-color:#e0d6ed}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:nth-child(5n+3){background:#f8e9df;border-color:#efdbce}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:nth-child(5n+4){background:#e7eef8;border-color:#d9e2ef}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:nth-child(5n+5){background:#f8efda;border-color:#ebe0c6}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:last-child:nth-child(odd){grid-column:auto}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th .em{display:grid;place-items:center;width:72px;height:72px;margin-bottom:8px;border-radius:20px;background:#ffffff7d;font-size:37px;filter:none}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th b{color:#353149;font:700 17px/1.35 "Segoe UI",Arial,sans-serif;letter-spacing:-.02em}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th small{display:inline-flex;align-items:center;background:#fffaf8b5;color:#74657e;font:600 11px/1.4 "Segoe UI",Arial,sans-serif;padding:5px 9px;border-radius:99px;margin-top:auto;opacity:1}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th::after{content:"↗";position:absolute;right:18px;top:20px;color:#8b7e9d;font-size:17px}
body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:hover{transform:translateY(-3px);box-shadow:0 10px 24px #55436e14;border-color:#b6a4ca}
body.page-member-games:not(.pandai-playing) #pandai-shell .tile{min-height:100px;margin:0;padding:18px;gap:14px;border:1px solid #e5ddec;border-radius:22px;background:#fffdf9;color:#353149;box-shadow:0 4px 16px #493c6507;transform:none}
body.page-member-games:not(.pandai-playing) #pandai-shell .tile .em{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:17px;background:#eee7f7;font-size:30px}
body.page-member-games:not(.pandai-playing) #pandai-shell .tile b{font:650 17px/1.4 "Segoe UI",Arial,sans-serif;letter-spacing:-.01em}
body.page-member-games:not(.pandai-playing) #pandai-shell .tile .sc{font-size:14px;letter-spacing:1px;color:#a3874f;white-space:nowrap}
body.page-member-games:not(.pandai-playing) #pandai-shell #res{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.page-member-games:not(.pandai-playing):not(.pandai-home) #pandai-shell #app{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.page-member-games:not(.pandai-playing) #pandai-shell :is(.btn,input):focus-visible{outline:3px solid #aa8bcb;outline-offset:3px}
@media(max-width:1000px){body.page-member-games:not(.pandai-playing) #pandai-shell .themes{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){body.page-member-games:not(.pandai-playing) .games-browser .games-hero{padding:24px 21px;border-radius:24px}body.page-member-games:not(.pandai-playing) .games-hero::after{display:none}body.page-member-games:not(.pandai-playing) .games-hero h1,body.page-member-games:not(.pandai-playing) .games-hero>p{max-width:100%}body.page-member-games:not(.pandai-playing) .games-hero-actions{gap:9px}body.page-member-games:not(.pandai-playing) #pandai-shell{padding:18px 14px;border-radius:24px}body.page-member-games:not(.pandai-playing) #pandai-shell .pandai-title{font-size:25px}body.page-member-games:not(.pandai-playing) #pandai-shell .themes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th{min-height:181px;padding:16px 14px;border-radius:21px}body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th .em{width:60px;height:60px;font-size:32px;border-radius:17px}body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th b{font-size:16px}body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th::after{top:17px;right:13px;font-size:14px}body.page-member-games:not(.pandai-playing) #pandai-shell #res,body.page-member-games:not(.pandai-playing):not(.pandai-home) #pandai-shell #app{grid-template-columns:1fr}body.page-member-games:not(.pandai-playing) #pandai-shell .tile{min-height:94px;padding:16px}body.page-member-games:not(.pandai-playing) #pandai-shell .tile b{font-size:16px}body.page-member-games:not(.pandai-playing) #pandai-shell .tile .sc{font-size:12px}}
@media(prefers-reduced-motion:reduce){body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th{transition:none}body.page-member-games:not(.pandai-playing) #pandai-shell .themes .th:hover{transform:none}}

.member-polished .completion-badge,.completion-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;max-width:100%;padding:6px 11px;margin:10px 0;border:1px solid #bdddcf;border-radius:999px;background:#e4f3eb;color:#27634e!important;font:700 12px/1.4 Arial,sans-serif;letter-spacing:0}
.completion-paper{margin-top:16px;font-size:13px;color:#60556f}.completion-paper summary{cursor:pointer;min-height:44px;padding:10px 0}.completion-paper label{display:flex;gap:9px;align-items:flex-start;line-height:1.6}.completion-paper form{margin-top:10px}.completion-paper button{margin-top:12px}.completion-paper [role=status]{font-size:13px}

/* Compact mobile profile header stays in normal flow and pins while scrolling. */
@media(max-width:700px){
 .member-polished.has-member-bottom-nav:not(.game-playing):not(.pandai-playing)>.member-header{position:sticky;top:0;z-index:40;padding:calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));background:#fffaf3;border-bottom:1px solid #e7dfeb;box-shadow:0 3px 16px #3024400a}
 .member-polished.has-member-bottom-nav .child-header{gap:10px}
 .member-polished.has-member-bottom-nav .child-header-link{flex:1;min-width:0;gap:9px;min-height:44px}
 .member-polished.has-member-bottom-nav .child-header-avatar{width:40px;height:40px;flex-basis:40px;font-size:20px}
 .member-polished.has-member-bottom-nav .child-header-copy{flex:0 1 auto;min-width:0}
 .member-polished.has-member-bottom-nav .child-header-copy small{font-size:9px;line-height:1.4}
 .member-polished.has-member-bottom-nav .child-header-name{display:block;font-size:15px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .member-polished.has-member-bottom-nav .child-header-stars{max-width:40%;padding:7px 9px;gap:5px;border-radius:14px}
 .member-polished.has-member-bottom-nav .child-header-stars svg{width:19px;height:19px}
 .member-polished.has-member-bottom-nav .child-header-stars strong{font-size:16px}
 .member-polished.has-member-bottom-nav .member-main [id],.member-polished.has-member-bottom-nav .member-main :focus{scroll-margin-top:var(--member-header-offset,90px)}
}

.page-member-login .auth-main{min-height:0;margin:28px auto 32px}
.page-member-login .auth-card{max-width:440px;padding:28px;border-top-width:1px;border-radius:24px}
.page-member-login .auth-card .eyebrow{margin-bottom:10px}
.page-member-login .auth-card h1{font-size:28px;margin-bottom:10px;line-height:1.2}
.page-member-login .auth-card>p{font-size:14px;line-height:1.6;margin-bottom:22px}
.page-member-login .auth-card form label{font-size:13px;margin-top:14px}
.page-member-login .auth-card input{min-height:48px}
.page-member-login .auth-card .full{margin-top:18px;min-height:48px}
.page-member-login .login-help{border-top:1px solid #ece5f1;margin-top:20px;padding-top:10px;display:flex;flex-direction:column;align-items:center}
.page-member-login .login-help a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px;text-align:center;line-height:1.5;text-decoration:none}
.page-member-login .login-help a:hover{text-decoration:underline}
.page-member-login .member-footer{justify-content:center;text-align:center;gap:8px 20px;padding:18px 20px;font-size:12px}
.page-member-login .member-footer>span{width:100%}
@media(max-width:700px){.page-member-login .auth-main{margin-top:20px;margin-bottom:24px}.page-member-login .auth-card{padding:24px 22px}.page-member-login .member-header{padding-top:18px;padding-bottom:18px}}
