

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    gap: 5px;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    position: absolute;
    top: 1.5625rem;
    right: 0.75rem;
    z-index: 100;
    background: #ffff00;
    border: 2px solid #000;
    
    border-radius: 9px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    cursor: pointer;
}
.burger:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25); }
.burger:active { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(0, 0, 0, 0.25); }

.profile-chip {
    position: absolute;
    top: 1.5625rem;
    
    --nav-icon: 2.875rem;
    --bs: 1;
    right: calc(0.75rem + var(--nav-icon) + 0.6rem);   
    width: var(--nav-icon);
    height: var(--nav-icon);
    z-index: 100;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
    
    transform: translateX(var(--tuck-x, 0px)) scale(var(--bs));
    transform-origin: center right;
    transition: transform 0.26s cubic-bezier(0.45, 0.05, 0.3, 1.04), visibility 0s;
}
.profile-chip img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 1; }

.profile-chip.is-guest {
    z-index: 99;
    visibility: hidden;
    --tuck-x: calc((var(--nav-icon) + 0.6rem) * var(--bs));
    
    transition-delay: 0s, 0.26s;
}
body.menu-open .profile-chip.is-guest {
    visibility: visible;
    --tuck-x: 0px;
    transition-delay: 0s;
}
.profile-chip:hover { transform: translate(1px, 1px); }
.profile-chip:active { transform: translate(3px, 3px); }
.burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }

body.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 768px) {
    .burger {
        width: 3.875rem;
        height: 3.875rem;
        gap: 6px;
    }
    .burger span {
        width: 30px;
        height: 4px;
    }
    body.menu-open .burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    body.menu-open .burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
    .profile-chip { --nav-icon: 3.875rem; }   
}
.mobile-menu { display: none; }
body.menu-open .mobile-menu { display: flex; }

body.menu-open .brand {
    position: relative;
    z-index: 95;
}



.menu-apps {
    display: flex;
    gap: 1.25rem;
}
.app-btn {
    width: 9.75rem;
    min-height: 9.75rem;
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: center;
    gap: 1.125rem;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #000;
    text-decoration: none;
    background: #ffff00;
    border: 3px solid #000;
    border-radius: 2.375rem;
    box-shadow: 5px 5px 0 #000;
}
.app-btn.app-site {
    background: #0000FF;
    color: #fff;
}

.menu-status {
    font-family: "Archivo Narrow", "Archivo", sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1;
}

.menu-home {
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.3rem;
    color: #000;
    text-decoration: none;
    background: #ffff00;
    border: 3px solid #000;
    border-radius: 0.75rem;
    padding: 0.875rem 1.625rem 0.875rem 3.75rem;
    box-shadow: 4px 4px 0 #000;
}
.menu-home img {
    position: absolute;
    left: 0.25rem;
    top: -0.9375rem;   
    width: 3rem;
    height: auto;
}



.menu-trust {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.menu-trust a {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #000;
    text-decoration: none;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0.6rem;
    padding: 0.45rem 0.7rem;
    box-shadow: 3px 3px 0 #000;
}
.menu-trust .ext {
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.4em;
    vertical-align: -0.05em;
}
.app-btn:active,
.menu-home:active,
.menu-trust a:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.menu-legal {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.72rem;
    color: #000;
}



.menu-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 28rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.1;
    color: #000;
    background: #ffff00;
    border: 3px solid #000;
    border-radius: 1rem;
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    box-shadow: 5px 5px 0 #000;
}
.menu-cancel-btn:active { transform: translate(4px, 4px); box-shadow: none; }
.mc-x { font-size: 1.05em; line-height: 1; }


.menu-confirm { display: none; width: 100%; flex-direction: column; align-items: center; gap: 1.25rem; }
.mobile-menu.confirming .menu-apps,
.mobile-menu.confirming .menu-cancel-btn,
.mobile-menu.confirming .menu-home,
.mobile-menu.confirming .menu-trust { display: none; }
.mobile-menu.confirming .menu-confirm { display: flex; }
.confirm-title {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; max-width: 30rem;
    font-weight: 800; font-size: 1.4rem; color: #000;
    background: #fff; border: 3px solid #000; border-radius: 0.9rem;
    padding: 0.55rem 1rem;
}
.confirm-body { display: flex; flex-direction: column; gap: 1.1rem; }
.confirm-q { margin: 0; font-weight: 800; font-size: 1.3rem; line-height: 1.25; color: #000; text-align: center; }
.confirm-name {
    align-self: center;
    border: 3px solid #0000ff; border-radius: 0.9rem;
    padding: 0.7rem 1.5rem;
    color: #0000ff; font-weight: 800; font-size: 1.45rem; line-height: 1.15; text-align: center;
}
.confirm-name span { display: block; }
.confirm-undone { margin: 0; align-self: flex-start; font-weight: 800; font-size: 1.2rem; color: #000; }
.confirm-no, .confirm-yes {
    align-self: flex-start;
    font-family: inherit; font-weight: 800; cursor: pointer;
    border: 3px solid #000; border-radius: 0.8rem;
}
.confirm-no {
    font-size: 1.4rem; color: #000; background: #ffff00;
    padding: 0.75rem 1.75rem; box-shadow: 5px 5px 0 #000;
}
.confirm-yes {
    font-size: 1rem; color: #dd0000; background: #fff;
    padding: 0.55rem 1.25rem; box-shadow: 4px 4px 0 #000;
}
.confirm-no:active, .confirm-yes:active { transform: translate(4px, 4px); box-shadow: none; }
.confirm-hero { display: block; pointer-events: none; }   


@media (max-width: 767px) {
    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 90;
        
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        
        background: url("/images/logo-generator/set/top-bg.png") repeat-x left top #F8EED5;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        
        padding-top: calc(2.4rem + 14.47vw);
        padding-bottom: 2.5rem;   
        gap: clamp(0.5rem, 1.6vh, 1.1rem);
    }
    
    .app-btn {
        width: 8.25rem;
        min-height: 8.25rem;
        font-size: 1.45rem;
        gap: 0.6rem;
        border-radius: 1.9rem;
    }
    .menu-status { font-size: 1rem; }
    
    .menu-tv, .menu-tv-center { display: contents; }
    .mtv { display: none; }
    .menu-trust {
        margin-top: 0.15rem;
        margin-bottom: 0;   
    }
    
    .menu-confirm { position: relative; flex: 1; width: 100%; gap: 1.1rem; padding: 0 1.1rem; }
    .confirm-main { position: static; width: 100%; }
    .confirm-body { width: 100%; }
    
    .confirm-hero { position: absolute; right: -0.75rem; bottom: 0; width: 50%; max-width: 17rem; height: auto; }
}


@media (min-width: 768px) {
    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(0, 0, 0, 0.55);
        align-items: center;
        justify-content: center;
    }
    .menu-tv {
        display: grid;
        grid-template-columns: 60px 1fr 60px;
        grid-template-rows: 60px 1fr 60px;
        width: min(47rem, 92vw);
        
        height: auto;
        max-height: 94vh;
        background-color: #F2F8FF;   
    }
    .mtv {
        background-repeat: no-repeat;
        background-size: 60px 60px;
    }
    .mtv-tl { background-image: url("/images/television/corner-top-left.png"); }
    .mtv-tr { background-image: url("/images/television/corner-top-right.png"); }
    .mtv-bl { background-image: url("/images/television/corner-bottom-left.png"); }
    .mtv-br { background-image: url("/images/television/corner-bottom-right.png"); }
    .mtv-top    { background: url("/images/television/edge-top.png")    repeat-x; background-size: 60px 60px; }
    .mtv-bottom { background: url("/images/television/edge-bottom.png") repeat-x; background-size: 60px 60px; }
    .mtv-left   { background: url("/images/television/edge-left.png")   repeat-y; background-size: 60px 60px; }
    .mtv-right  { background: url("/images/television/edge-right.png")  repeat-y; background-size: 60px 60px; }
    .menu-tv-center {
        min-height: 0;
        overflow: hidden;   
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        
        padding: clamp(1rem, 2.5vh, 1.75rem) 1rem;
        gap: clamp(1.25rem, 3.5vh, 2.5rem);
    }
    .app-btn {
        width: 12rem;
        min-height: 12rem;
    }
    .menu-trust { margin-top: clamp(1rem, 4vh, 3.5rem); }
    .menu-legal { display: none; }
    
    .confirm-main { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
    .confirm-hero { width: 40%; max-width: 13rem; height: auto; object-fit: contain; flex: none; }
    .confirm-body { flex: 1; min-width: 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu { align-items: flex-start; padding-top: calc(6.6rem + 5vh); }   
    .menu-tv { max-height: calc(100vh - 7.6rem - 5vh); }
    .menu-tv-center { padding: clamp(0.6rem, 1.6vh, 1.2rem) 1rem; gap: clamp(0.8rem, 2.2vh, 1.6rem); }
    .app-btn { width: 10rem; min-height: 10rem; font-size: 1.5rem; }
    .menu-trust { margin-top: clamp(0.6rem, 2vh, 2rem); }
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 1100px) {
    .mobile-menu { padding-top: calc(5.4rem + 5vh); }
    .menu-tv { max-height: calc(100vh - 6.2rem - 5vh); }
    .menu-tv-center { padding: 0.5rem 1rem; gap: 0.7rem; }
    .app-btn { width: 8.4rem; min-height: 8.4rem; font-size: 1.3rem; }
    .menu-trust { margin-top: 0.4rem; }
}

@media (min-width: 768px) and (max-height: 850px) {
    .app-btn {
        width: 9.75rem;
        min-height: 9.75rem;
        font-size: 1.5rem;
    }
}


.menu-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;   
    gap: 6px;
    width: 100%;
    margin: 0.9rem 0 0;
}
.mnav-row {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;          
    min-height: 88px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #0b1a2e;
    overflow: hidden;
}

.mnav-row--wide { grid-column: 1 / -1; align-items: center; text-align: center; }
.mnav-row:not(.mnav-row--wide) { align-items: flex-start; text-align: left; }
.mnav-label {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    line-height: 1.05;
    
    color: rgba(21, 36, 58, 0.42);
    
    max-width: 100%;
}

.mnav-row:not(.mnav-row--wide) .mnav-label { font-size: clamp(1.1rem, 4.6vw, 1.55rem); }

.mnav-row.is-public .mnav-label { color: #0b1a2e; }
.mnav-note {
    font-family: "Archivo", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    color: rgba(21, 36, 58, 0.55);
    margin-top: 0.1rem;
    max-width: 100%;
}

.menu-nav.is-authed .mnav-label { color: #0b1a2e; }
.mnav-row:active { transform: translate(3px, 3px); }


@media (max-width: 767px) {
    .menu-nav {
        width: 100vw; margin-left: calc(50% - 50vw); gap: 5px;
        flex: 1 1 auto;
        min-height: 0;
        margin-top: 0.3rem;
        grid-auto-rows: minmax(52px, 1fr);
    }
    .mnav-row { border-left: none; border-right: none; min-height: 0; }
    .mnav-label { font-size: clamp(1.2rem, 4.8vw, 1.75rem); }
}
