/* School Building Tycoon • families / privacy UI; safe to place after existing game CSS. */
html:not([data-sbt-age-approved="true"]) .app,
html:not([data-sbt-age-approved="true"]) #loadingOverlay {
  visibility:hidden !important;
  pointer-events:none !important;
}
#sbt-age-screen {
  position:fixed; inset:0; z-index:2147483646; overflow:auto;
  padding:max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background:radial-gradient(ellipse 85% 70% at 50% 9%,#18354a 0,#091722 63%,#06111a 100%);
  color:#edf3f8; display:flex; align-items:center; justify-content:center;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
#sbt-age-screen[hidden]{display:none!important}
#sbt-age-screen *{box-sizing:border-box}
#sbt-age-screen .sbt-age-panel{width:min(460px,100%);border:1px solid rgba(242,192,99,.35);border-radius:26px;background:linear-gradient(155deg,#152c3d,#0c1a27 70%);box-shadow:0 35px 85px #0009;padding:clamp(22px,5vw,38px);text-align:center}
#sbt-age-screen .sbt-age-emblem{width:62px;height:62px;margin:0 auto 18px;border:1px solid #d8aa5e;border-radius:19px;display:grid;place-items:center;color:#f4cf83;background:#f4c57618;font-weight:800;font-size:28px;letter-spacing:.05em}
#sbt-age-screen h1{font-size:clamp(24px,5vw,31px);line-height:1.18;color:#fff;margin:0 0 12px;font-weight:750}
#sbt-age-screen p{line-height:1.6;color:#bfcfda;font-size:14px;margin:0 auto 20px;max-width:360px}
#sbt-age-screen .sbt-age-fields{display:grid;grid-template-columns:1fr 1.65fr 1.2fr;gap:9px;margin:15px 0 8px}
#sbt-age-screen label{display:block;text-align:left;font-weight:650;font-size:12px;color:#e3eaf0}
#sbt-age-screen select{display:block;width:100%;background:#0b1a26;border:1px solid #486175;color:#edf4f9;padding:12px 6px;border-radius:10px;margin-top:8px;font-size:14px;min-height:46px}
#sbt-age-screen button.sbt-primary{appearance:none;background:linear-gradient(125deg,#f5d086,#d99f4c);color:#17212d;font-weight:800;padding:13px 22px;border:0;border-radius:12px;width:100%;margin-top:13px;min-height:48px}
#sbt-age-screen button:focus-visible,#sbt-age-screen select:focus-visible,.sbt-family-actions button:focus-visible{outline:3px solid #f7ca73;outline-offset:3px}
#sbt-age-screen .sbt-age-error{min-height:24px;font-size:13px;color:#ffc5bc;margin:10px 0 0;line-height:1.35}
#sbt-age-screen .sbt-age-small{font-size:12px;color:#9eb1c3;margin-top:18px}
#sbt-age-screen a{color:#ffdf9a;text-decoration:underline;text-underline-offset:3px}
.sbt-family-section{margin:18px 0;border:1px solid rgba(227,185,109,.27);border-radius:17px;background:linear-gradient(145deg,rgba(28,49,67,.85),rgba(10,25,37,.94));padding:18px;min-width:0}
.sbt-family-section h3{margin:0 0 7px;color:#f5cf82;font-size:17px}
.sbt-family-section p{color:#b9cad7;font-size:13px;line-height:1.6;margin:5px 0 10px}
.sbt-family-metadata{display:inline-flex;align-items:center;gap:7px;border-radius:999px;border:1px solid #a27d49;padding:5px 10px;font-size:12px;color:#f1ce90;background:#b78e4722;margin:2px 0 12px}
.sbt-family-actions{display:flex;flex-direction:column;gap:9px;margin-top:13px}
.sbt-family-actions button,.sbt-family-actions a{width:100%;display:block;text-align:left;padding:12px 14px;border:1px solid #526578;border-radius:11px;background:#14283a;color:#f2f6fa;text-decoration:none;font-size:13px;font-weight:650;cursor:pointer}
.sbt-family-actions button:hover,.sbt-family-actions a:hover{border-color:#e6b974;background:#1a3448}
.sbt-family-actions button:disabled{opacity:.52;cursor:default}
.sbt-family-actions .sbt-danger{border-color:#9d565d;color:#ffcbcd;background:#3a1e29}
.sbt-family-actions .sbt-state-on{border-color:#b9a070;background:#384036}
.sbt-family-actions .sbt-state-on:before{content:'✓  '}
.sbt-family-notice{color:#e3d5b0!important;word-break:break-word}
#sbt-family-dialog{position:fixed;inset:0;background:#020913d9;z-index:2147483640;display:grid;place-items:center;padding:18px}
#sbt-family-dialog[hidden]{display:none}
#sbt-family-dialog .sbt-dialog-card{background:#102535;color:#f1f6fb;border:1px solid #c3a16d;border-radius:20px;padding:24px;width:min(460px,100%);box-shadow:0 30px 80px #000b}
#sbt-family-dialog h3{font-size:19px;margin:0 0 10px;color:#f4ce84}
#sbt-family-dialog p{font-size:13px;line-height:1.65;color:#d5e2eb}
#sbt-family-dialog input{width:100%;border-radius:9px;background:#071723;color:white;border:1px solid #718597;padding:12px;margin:8px 0}
#sbt-family-dialog .sbt-dialog-buttons{display:flex;gap:8px;margin-top:15px}
#sbt-family-dialog button{flex:1;background:#203b51;border:1px solid #718597;color:#fff;padding:12px 8px;border-radius:10px;font-weight:700}
#sbt-family-dialog button.sbt-confirm{background:#73353b;border-color:#c06e78}
body.sbt-reduce-motion #sbt-age-screen *,body.sbt-reduce-motion #sbt-family-dialog *{animation:none!important;transition:none!important}
