

:root {
    
    --maxw: 100rem;          
    
    --edge: var(--frame);
    
    --gap: 12px;
}


@media (min-width: 768px) {
    html { height: 100%; }
    body {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;    
    }
}


@media (min-width: 768px) {


.top-row {
    height: 30%;
    display: flex;
    flex-direction: column;
}


.nav-row {
    position: relative;
    height: 30%;             
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 var(--edge);  
}

.nav-row .brand { margin: 0; display: flex; align-items: center; height: 100%; position: relative; z-index: 5; }

.nav-row .brand img { height: clamp(2.4rem, 6vh, 4.75rem); width: auto; }

.nav-row .burger {
    --bs: 1;
    top: 0; bottom: 0; margin: auto 0;
    right: var(--edge);
    transform: scale(var(--bs));
    transform-origin: center right;
    
    z-index: 100;
}
.nav-row .burger:hover  { transform: scale(var(--bs)) translate(1px, 1px); }
.nav-row .burger:active { transform: scale(var(--bs)) translate(3px, 3px); }

.nav-row .profile-chip {
    --bs: 1;
    --nav-icon: 3.875rem;   
    top: 0; bottom: 0; margin: auto 0;
    right: calc(var(--edge) + (var(--nav-icon) + 0.6rem) * var(--bs));
    
    transform: translateX(var(--tuck-x, 0px)) scale(var(--bs));
    transform-origin: center right;
    z-index: 100;
}
.nav-row .profile-chip.is-guest { z-index: 99; }   
.nav-row .profile-chip:hover  { transform: translateX(var(--tuck-x, 0px)) scale(var(--bs)) translate(1px, 1px); }
.nav-row .profile-chip:active { transform: translateX(var(--tuck-x, 0px)) scale(var(--bs)) translate(3px, 3px); }
@media (min-width: 768px) and (max-height: 56rem) { .nav-row .burger, .nav-row .profile-chip { --bs: 0.85; } }
@media (min-width: 768px) and (max-height: 44rem) { .nav-row .burger, .nav-row .profile-chip { --bs: 0.72; } }


.title-row {
    height: 70%;             
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;   
    padding: 0 var(--edge);  
}
.title-row.flip { flex-direction: row-reverse; }
.heading-col { width: 50%; height: 100%; min-width: 0; }


.heading-col.heading {
    display: flex;
    align-items: center;          
    justify-content: flex-start;
}
.heading-col.heading h1 {
    font-family: "Bangers", cursive; font-weight: 400; letter-spacing: 0.03em;
    margin: 0; color: #15243a; line-height: 0.95;
    font-size: clamp(2rem, 1rem + 4vw, 4.5rem);
}


.heading-col.mascot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;       
}
.heading-col.mascot img {
    height: 150%; width: auto; max-width: none;
    position: relative; bottom: -8rem; z-index: 2;
    object-fit: contain; object-position: bottom center;
    display: block;
    pointer-events: none;
}

}   


.g-title {
    font-family: "Bangers", cursive; font-weight: 400; letter-spacing: 0.03em;
    margin: 0; color: #15243a; line-height: 0.95;
}
.g-mascot { display: block; }

@media (min-width: 768px) {
    
    .nav-row { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 35px; }
    .nav-row .burger { right: 35px; }
    .nav-row .profile-chip { right: calc(35px + (var(--nav-icon) + 0.6rem) * var(--bs)); }

    
    .title-row {
        max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 35px;
        display: flex; align-items: flex-end; overflow: visible;
    }
    
    .g-title {
        flex: 0 0 30%; min-width: 0; align-self: center;
        font-size: 3.7rem;
    }
    
    .g-hero {
        flex: 1; min-width: 0;            
        margin-right: 30px;              
        display: flex; align-items: flex-end; column-gap: 2rem;
    }
    
    .g-mascot-col {
        width: 60%;
        display: flex; align-items: flex-end; justify-content: flex-end;
    }
    .g-mascot { width: auto; height: 18rem; pointer-events: none; }
    
    .g-balloon {
        width: 40%; align-self: flex-start; position: relative;
        
        right: 0;
        background: #fff; border: 3px solid #111;
        border-radius: 1.4rem 1.5rem 1.4rem 1.5rem / 1.5rem 1.4rem 1.5rem 1.4rem;
        padding: 0.9rem 0.75rem;
        box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
        z-index: 1;
    }
    .g-balloon p {
        margin: 0; font-weight: 700; color: #15243a;
        font-size: clamp(1rem, 0.55rem + 0.8vw, 1.3rem); line-height: 1.35;
    }
    
    .g-balloon::before, .g-balloon::after { content: ""; position: absolute; }
    
    .g-balloon::before {
        top: 50%; left: -1.5rem; width: 1.5rem; height: 1.7rem;
        transform: translateY(-50%);
        background: #111; clip-path: polygon(100% 0, 100% 100%, 0 50%);
    }
    .g-balloon::after {
        top: 50%; left: -1.13rem; width: 1.53rem; height: 1.74rem;
        transform: translateY(-50%);
        background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 50%);
    }
}



@media (min-width: 768px) and (max-width: 1024px) {
    .g-mascot  { height: 22vh; }
    
    .g-balloon { top: -2vh; }
}


@media (min-width: 1025px) {
    .g-title   { font-size: 4.5rem; }
    .g-mascot  { height: 28vh; }
    .g-balloon { top: 3.7vh; }
}


@media (min-width: 768px) {


.bottom-row {
    height: 70%;
    
    padding: 0 var(--gap) var(--gap);
}


.tool-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    height: 100%;
}

}   


.content {
    position: relative;      
    padding: var(--pad);
    overflow: hidden;        
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.frame-legal {
    position: absolute;
    left: 0; right: 0;
    bottom: -3.5%;                 
    height: var(--frame);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--edge);        
    color: #fff; font-size: 0.8rem; font-weight: 600;
    pointer-events: none;          
}
.frame-legal a { color: #fff; pointer-events: auto; }




.content.pop-content {
    overflow: visible;             
    justify-content: flex-start;
    text-align: left;
}

.pop-content .demo {
    font-weight: 700; color: #15243a;
    font-size: clamp(1rem, 0.6rem + 1.2vw, 1.5rem); line-height: 1.4;
    left: 0; max-width: 40%;
}

.pop-content .hero-pop {
    position: absolute;
    right: 0;
    bottom: 0;
    height: min(155%, 58vw);
    width: auto;
    max-width: 60%;
    z-index: 2;
    pointer-events: none;
}


@media (min-width: 1024px) {
    .stage { display: flex; flex-direction: column; }
    .title-row { display: none; }
    .top-row { height: auto; }
    .nav-row { height: auto; padding: 1.25rem 35px; }
    .bottom-row { height: auto; flex: 1; min-height: 0; padding-top: var(--gap); }
}
