/* JH PlayLab — existing app layouts must be preserved. */
.jh-brand-home { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; z-index:40; max-width:95%; }
.jh-brand-home img { display:block; width:clamp(125px,15vw,210px); max-width:65vw; height:auto; }
.jh-brand-home.large img { width:clamp(210px,26vw,360px); }
.jh-brand-home button { border:1px solid #c9baf2; border-radius:20px; background:#fff; color:#272365; padding:6px 10px; font:12px system-ui,sans-serif; cursor:pointer; white-space:nowrap; }
.jh-brand-game { position:fixed; right:8px; bottom:6px; color:rgba(40,40,70,.55); font:10px system-ui,sans-serif; z-index:40; pointer-events:none; }
.jh-brand-overlay { position:fixed; inset:0; background:rgba(16,12,40,.56); display:none; align-items:center; justify-content:center; padding:16px; z-index:9999; }
.jh-brand-overlay.open { display:flex; }
.jh-brand-dialog { position:relative; box-sizing:border-box; width:min(92vw,560px); max-height:85vh; overflow:auto; border:4px solid #d9cafa; border-radius:24px; background:white; padding:24px; box-shadow:0 12px 35px #15103a55; color:#222250; text-align:center; font:15px/1.6 system-ui,sans-serif; }
.jh-brand-dialog img { display:block; width:min(80%,310px); margin:0 auto; }
.jh-brand-dialog h2 { font-size:19px; }
.jh-brand-dialog .jh-warning { background:#fff0f4; padding:12px; border-radius:12px; font-weight:650; }
.jh-brand-dialog .jh-close { position:absolute; right:10px; top:6px; font-size:28px; border:0; background:transparent; cursor:pointer; color:#24245c; }
@media(max-width:600px){.jh-brand-home{gap:5px;bottom:6px}.jh-brand-home img{width:130px}.jh-brand-home button{font-size:11px;padding:5px 7px}.jh-brand-dialog{padding:20px 12px}}


/* Tooth Change Lab integration: overlay without changing existing app layout */
#jh-brand-root{position:fixed;inset:0;z-index:90;pointer-events:none;}
#jh-brand-root .jh-brand-home{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));pointer-events:auto;justify-content:center;}
#jh-brand-root .jh-brand-home img{width:clamp(126px,14vw,188px);max-width:min(42vw,188px);}
#jh-brand-root .jh-brand-home button{font-size:12px;padding:7px 11px;min-height:32px;box-shadow:0 2px 9px rgba(38,49,103,.14)}
#jh-brand-root .jh-brand-overlay{pointer-events:auto;padding:calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom));}
#jh-brand-root .jh-brand-dialog{max-height:min(85dvh,650px);overscroll-behavior:contain;}
#jh-brand-root .jh-brand-dialog .jh-close{min-width:44px;min-height:44px;top:3px;right:5px;}
#jh-brand-root .jh-brand-game{position:fixed;right:max(6px,env(safe-area-inset-right));bottom:max(3px,env(safe-area-inset-bottom));pointer-events:none;font-size:10px;opacity:.72;text-shadow:0 1px 2px #ffffffaa;}
@media(max-width:760px){#jh-brand-root .jh-brand-home{bottom:max(7px,env(safe-area-inset-bottom));gap:7px}#jh-brand-root .jh-brand-home img{width:clamp(120px,21vw,166px)}#jh-brand-root .jh-brand-home button{font-size:11px;padding:6px 8px}}
@media(max-height:520px) and (orientation:landscape){#jh-brand-root .jh-brand-home img{width:116px}#jh-brand-root .jh-brand-home button{font-size:10px;padding:5px 7px}#jh-brand-root .jh-brand-dialog{max-height:94dvh;padding:12px}}
